import{u as h,k as j,d,h as b,r as l,j as t}from"./main-406.js";import{g as C,$ as I,h as w,d as _,j as m,i as v,I as L,s as N}from"./bi.394.85.js";import{h as S}from"./bi.465.893.js";import{L as y}from"./bi.653.894.js";function D({allIntegURL:c}){const f=h(),{id:k,formID:g}=j(),[s,a]=d(C),[n,x]=d(I),i=b(w),[o,r]=l.useState(!1),[p,e]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:p,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>S(u,s,a),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(v,{entity:n.triggered_entity,setSnackbar:e}),t.jsx(y,{formID:g,formFields:i,lemlistConf:s,setLemlistConf:a,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(L,{edit:!0,saveConfig:()=>N({flow:n,setFlow:x,allIntegURL:c,navigate:f,conf:s,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.field_map.length<1,isLoading:o,dataConf:s,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{D as default};
