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