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