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