import{u as h,k as I,d,h as j,r as c,j as t}from"./main-333.js";import{g as b,$ as C,h as _,d as w,_ as l,i as v,I as D,s as N}from"./bi.636.93.js";import{h as S}from"./bi.168.882.js";import{D as y}from"./bi.27.883.js";function L({allIntegURL:m}){const f=h(),{id:k,formID:g}=I(),[e,a]=d(b),[n,x]=d(C),i=j(_),[o,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=>S(u,e,a),name:"name",value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(v,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(y,{formID:g,formFields:i,directIqConf:e,setDirectIqConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(D,{edit:!0,saveConfig:()=>N({flow:n,setFlow:x,allIntegURL:m,navigate:f,conf:e,edit:1,setIsLoading:r,setSnackbar:s}),disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{L as default};
