import{u as h,k as j,d,h as C,r as m,j as t}from"./main-406.js";import{g as b,$ as I,h as w,d as _,j as c,i as v,I as N,s as S}from"./bi.394.85.js";import{h as y}from"./bi.326.897.js";import{C as M}from"./bi.593.898.js";function L({allIntegURL:l}){const f=h(),{formID:g}=j(),[a,e]=d(b),[n,p]=d(I),o=C(w),[i,r]=m.useState(!1),[x,s]=m.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:x,setSnackbar:s}),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,e),name:"name",value:a.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(v,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(M,{formID:g,formFields:o,campaignMonitorConf:a,setCampaignMonitorConf:e,isLoading:i,setIsLoading:r,setSnackbar:s}),t.jsx(N,{edit:!0,saveConfig:()=>S({flow:n,setFlow:p,allIntegURL:l,navigate:f,conf:a,edit:1,setIsLoading:r,setSnackbar:s}),disabled:a.field_map.length<1,isLoading:i,dataConf:a,setDataConf:e,formFields:o}),t.jsx("br",{})]})}export{L as default};
