import{h as m,g as h,$ as j,k as b,i as w,j as s,_ as d}from"./main.2.9.0.js";import{u as C,e as I,b as c}from"./react-router.DMwpH23k.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as _,I as v,s as N}from"./Integrations.DL8wqGct.js";import{h as k,W as y,c as F}from"./WsmsIntegLayout.49StuSqN.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CHf_DzPf.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.B6YI8w_n.js";function J({allIntegURL:p}){const l=C(),{id:E,formID:f}=I(),[t,a]=m(h),[o,x]=m(j),i=b(w),[n,r]=c.useState(!1),[g,e]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(S,{snack:g,setSnackbar:e}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>k(u,t,a),name:"name",value:t.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx(_,{entity:o.triggered_entity,setSnackbar:e}),s.jsx(y,{formID:f,formFields:i,wsmsConf:t,setWsmsConf:a,setSnackbar:e,setIsLoading:r,isLoading:n}),s.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,setFlow:x,allIntegURL:p,conf:t,navigate:l,edit:1,setIsLoading:r,setSnackbar:e}),disabled:!F(t),isLoading:n,dataConf:t,setDataConf:a,formFields:i}),s.jsx("br",{})]})}export{J as default};
