import{h as m,g as C,$ as h,k as j,i as v,j as t,_ as p}from"./main.2.8.10.js";import{u as b,e as I,b as c}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.7BjcJK1j.js";import{S as w,I as S,s as N}from"./Integrations.BFhED4ck.js";import{h as y}from"./ActiveCampaignCommonFunc.BGdNEPK9.js";import{A}from"./ActiveCampaignIntegLayout.BqLpfWP_.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 H({allIntegURL:d}){const l=b(),{id:k,formID:f}=I(),[e,s]=m(C),[i,g]=m(h),n=j(v),[o,r]=c.useState(!1),[x,a]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:x,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:p("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>y(u,e,s),name:"name",value:e.name,type:"text",placeholder:p("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(A,{formID:f,formFields:n,activeCampaingConf:e,setActiveCampaingConf:s,isLoading:o,setIsLoading:r,setSnackbar:a}),t.jsx(S,{edit:!0,saveConfig:()=>N({flow:i,setFlow:g,allIntegURL:d,navigate:l,conf:e,edit:1,setIsLoading:r,setSnackbar:a}),disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:s,formFields:n}),t.jsx("br",{})]})}export{H as default};
