File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.768.111.js
import{u as j,o as w,e as m,r as o,f as b,j as e}from"./main-685.js";import{$ as C,e as k,f as I,_ as n}from"./bi.878.0.js";import{S as _}from"./bi.674.13.js";import"./bi.451.455.js";import{S as v,I as F,s as y}from"./bi.776.3.js";import{h as N,c as d}from"./bi.276.913.js";import{Z as E}from"./bi.514.914.js";import"./bi.327.9.js";import"./bi.601.11.js";import"./bi.825.14.js";import"./bi.768.751.js";import"./bi.666.752.js";function G({allIntegURL:l}){const f=j();w();const[i,L]=m(C),[t,a]=m(k),[c,p]=o.useState(!1),[h,g]=o.useState({auth:!1,header:!1,workbooks:!1,worksheets:!1,workSheetHeaders:!0}),[u,s]=o.useState({show:!1}),r=b(I),x=()=>{if(!d(t)){s({show:!0,msg:n("Please map mandatory fields","bit-integrations")});return}y({flow:i,allIntegURL:l,conf:t,navigate:f,edit:1,setIsLoading:p,setSnackbar:s})};return e.jsxs("div",{style:{width:900},children:[e.jsx(_,{snack:u,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:n("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:S=>N(S,t,a),name:"name",value:t.name,type:"text",placeholder:n("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx(v,{entity:i.triggered_entity,setSnackbar:s}),e.jsx(E,{formFields:r,zohoSheetConf:t,setZohoSheetConf:a,loading:h,setLoading:g,setSnackbar:s}),e.jsx(F,{edit:!0,saveConfig:x,disabled:!d(t),isLoading:c,dataConf:t,setDataConf:a,formFields:r}),e.jsx("br",{})]})}export{G as default};