import{h as m,g as I,$ as h,k as j,i as b,j as t,_ as c}from"./main.2.8.10.js";import{u as C,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S,I as v,s as D}from"./Integrations.BFhED4ck.js";import{h as N}from"./DirectIqCommonFunc.BQiP9mEM.js";import{D as y}from"./DirectIqIntegLayout.Cg2UE-O9.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function B({allIntegURL:l}){const f=C(),{id:k,formID:p}=_(),[e,a]=m(I),[i,g]=m(h),n=j(b),[o,r]=d.useState(!1),[x,s]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>N(u,e,a),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(y,{formID:p,formFields:n,directIqConf:e,setDirectIqConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(v,{edit:!0,saveConfig:()=>D({flow:i,setFlow:g,allIntegURL:l,navigate:f,conf:e,edit:1,setIsLoading:r,setSnackbar:s}),disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{B as default};
