import{b as r,h as j,$ as b,k as w,i as C,j as t,_ as m}from"./main.2.8.1.js";import{u as I,h as _,d as c}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as v,I as N,s as k}from"./Integrations.D2bgBas2.js";import{h as y,c as F}from"./GoogleContactsCommonFunc.Bmub4y1Z.js";import{G as E}from"./GoogleContactsIntegLayout.DYCsRiNI.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function H({allIntegURL:d}){const l=I(),{id:p}=_(),[s,e]=r(j),[o,f]=r(b),n=w(C),[i,x]=c.useState(!1),[g,a]=c.useState({show:!1}),u=()=>{k({flow:o,setFlow:f,allIntegURL:d,conf:s,navigate:l,edit:1,setIsLoading:x,setSnackbar:a})};return t.jsxs("div",{style:{width:900},className:"p-2",children:[t.jsx(S,{snack:g,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:h=>y(h,s,e),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(v,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(E,{flowID:p,formFields:n,googleContactsConf:s,setGoogleContactsConf:e}),t.jsx(N,{edit:!0,saveConfig:u,disabled:!F(s==null?void 0:s.field_map)||s.mainAction===""||i,isLoading:i,dataConf:s,setDataConf:e,formFields:n}),t.jsx("br",{})]})}export{H as default};
