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