import{u,k as h,d,h as j,r as c,j as s}from"./main-333.js";import{g as b,$ as C,h as I,d as v,_ as l,i as w,I as _,s as S}from"./bi.636.93.js";import{D}from"./bi.484.953.js";import{h as N}from"./bi.403.954.js";/* empty css          */function R({allIntegURL:m}){const f=u(),{formID:x}=h(),[e,a]=d(b),[o,y]=d(C),i=j(I),[n,r]=c.useState(!1),[g,t]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(v,{snack:g,setSnackbar:t}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:p=>N(p,e,a),name:"name",value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(w,{entity:o.triggered_entity,setSnackbar:t}),s.jsx(D,{formID:x,formFields:i,discordConf:e,setDiscordConf:a,isLoading:n,setIsLoading:r,setSnackbar:t}),s.jsx(_,{edit:!0,saveConfig:()=>S({flow:o,allIntegURL:m,conf:e,navigate:f,edit:1,setIsLoading:r,setSnackbar:t}),disabled:e.selectedChannel===""||e.selectedServer===""||n,isLoading:n,dataConf:e,setDataConf:a,formFields:i}),s.jsx("br",{})]})}export{R as default};
