import{b as m,h,$ as I,k as j,i as b,j as t,_ as d}from"./main.2.8.1.js";import{u as C,h as _,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S,I as v,s as D}from"./Integrations.D2bgBas2.js";import{h as N}from"./DirectIqCommonFunc.jFMz_bBh.js";import{D as y}from"./DirectIqIntegLayout.1Zs4y7ON.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";function z({allIntegURL:l}){const f=C(),{id:k,formID:p}=_(),[e,a]=m(h),[n,x]=m(I),i=j(b),[o,r]=c.useState(!1),[g,s]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("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:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(y,{formID:p,formFields:i,directIqConf:e,setDirectIqConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(v,{edit:!0,saveConfig:()=>D({flow:n,setFlow:x,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:i}),t.jsx("br",{})]})}export{z as default};
