import{b as m,h,$ as C,k as j,i as v,j as t,_ as c}from"./main.2.8.1.js";import{u as b,h as I,d}from"./react-router-dom.9mCuUg3q.js";import{S as _}from"./SnackMsg.S8DrwLlT.js";import{S as w,I as S,s as N}from"./Integrations.D2bgBas2.js";import{h as y}from"./ActiveCampaignCommonFunc.COwV6A41.js";import{A}from"./ActiveCampaignIntegLayout.MLWsTVcw.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function G({allIntegURL:p}){const l=b(),{id:k,formID:f}=I(),[a,s]=m(h),[i,g]=m(C),n=j(v),[o,r]=d.useState(!1),[x,e]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:x,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:u=>y(u,a,s),name:"name",value:a.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:i.triggered_entity,setSnackbar:e}),t.jsx(A,{formID:f,formFields:n,activeCampaingConf:a,setActiveCampaingConf:s,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(S,{edit:!0,saveConfig:()=>N({flow:i,setFlow:g,allIntegURL:p,navigate:l,conf:a,edit:1,setIsLoading:r,setSnackbar:e}),disabled:a.field_map.length<1,isLoading:o,dataConf:a,setDataConf:s,formFields:n}),t.jsx("br",{})]})}export{G as default};
