import{h as d,g as h,$ as j,k as b,i as I,j as t,_ as c}from"./main.2.8.10.js";import{u as _,e as w,b as l}from"./react-router.DMwpH23k.js";import{S}from"./SnackMsg.7BjcJK1j.js";import{S as v,I as N,s as y}from"./Integrations.BFhED4ck.js";import{h as p}from"./ConstantContactCommonFunc.Dr0pZhTL.js";import{C as k}from"./ConstantContactIntegLayout.CoxlPr39.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function G({allIntegURL:f}){const g=_(),{id:x}=w(),[s,a]=d(h),[o,u]=d(j),[i,r]=l.useState(!1),[C,e]=l.useState({show:!1}),m=b(I);return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:C,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>p(n,s,a),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(v,{entity:o.triggered_entity,setSnackbar:e}),t.jsx(k,{id:x,formFields:m,handleInput:n=>p(n,s,a),constantContactConf:s,setConstantContactConf:a,isLoading:i,setIsLoading:r,setSnackbar:e}),t.jsx(N,{edit:!0,saveConfig:()=>y({flow:o,setFlow:u,allIntegURL:f,conf:s,navigate:g,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.listId===""||s.field_map.length<1,isLoading:i===!0,dataConf:s,setDataConf:a,formFields:m}),t.jsx("br",{})]})}export{G as default};
