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