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