import{b as r,$ as h,h as v,k as j,i as y,j as t,_ as l}from"./main.2.8.1.js";import{u as C,d as s}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as _,I as b}from"./Integrations.D2bgBas2.js";import{e as w,s as I}from"./KlaviyoCommonFunc.CO9ZvDMN.js";import{K as N}from"./KlaviyoIntegLayout.BPSL3Acf.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";import"./ActionProFeatureLabels.CuihmlQ8.js";import"./ActionProFeatureComponent.D5pbe8PT.js";function B({allIntegURL:m}){const d=C(),[p,i]=s.useState({show:!1}),[o,k]=r(h),[e,a]=r(v),n=j(y),[f,c]=s.useState(!1),[g,x]=s.useState({list:!1,field:!1,auth:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:p,setSnackbar:i}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",name:"name",onChange:u=>w(u,e,a),value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("div",{className:"my-3",children:t.jsx(_,{entity:o.triggered_entity,setSnackbar:i})}),t.jsx(N,{formFields:n,klaviyoConf:e,setKlaviyoConf:a,loading:g,setLoading:x}),t.jsx(b,{edit:!0,saveConfig:()=>{I(o,m,e,d,{edit:1},c)},disabled:e.field_map.length<1,isLoading:f,dataConf:e,setDataConf:a,formFields:n})]})}export{B as default};
