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