import{b as d,h as u,$ as h,k as j,i as b,j as t,_ as m}from"./main.2.8.1.js";import{u as C,h as I,d as c}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as v,I as w,s as _}from"./Integrations.D2bgBas2.js";import{D}from"./DiscordIntegLayout.DbQP6kDW.js";import{h as N}from"./DiscordCommonFunc.CxpQNkyY.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";/* empty css                */function z({allIntegURL:l}){const f=C(),{formID:p}=I(),[s,a]=d(u),[n,y]=d(h),i=j(b),[o,r]=c.useState(!1),[x,e]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:x,setSnackbar:e}),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,s,a),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(v,{entity:n.triggered_entity,setSnackbar:e}),t.jsx(D,{formID:p,formFields:i,discordConf:s,setDiscordConf:a,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(w,{edit:!0,saveConfig:()=>_({flow:n,allIntegURL:l,conf:s,navigate:f,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.selectedChannel===""||s.selectedServer===""||o,isLoading:o,dataConf:s,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{z as default};
