import{h as d,g as h,$ as j,k as b,i as I,j as t,_ as c}from"./main.2.9.0.js";import{u as _,e as w,b as l}from"./react-router.DMwpH23k.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as v,I as N,s as y}from"./Integrations.DL8wqGct.js";import{h as p}from"./ConstantContactCommonFunc.Dsf6c4AN.js";import{C as k}from"./ConstantContactIntegLayout.D0MDvKnQ.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.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};
