import{h as r,$ as h,g as v,k as j,i as y,j as t,_ as l}from"./main.2.9.0.js";import{u as C,b as s}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 b}from"./Integrations.DL8wqGct.js";import{e as w,s as I}from"./KlaviyoCommonFunc.D3b-o2lZ.js";import{K as N}from"./KlaviyoIntegLayout.m8Lqx-Ms.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./ActionProFeatureLabels.gUp7_RXn.js";import"./ActionProFeatureComponent.FrU20tzT.js";function G({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{G as default};
