import{b as m,h as u,$ as h,k as j,i as S,j as t,_ as c}from"./main.2.8.1.js";import{u as b,h as C,d}from"./react-router-dom.9mCuUg3q.js";import{S as I}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as _,I as k,s as w}from"./Integrations.D2bgBas2.js";import{S as v}from"./SlackIntegLayout.B64MGeCX.js";import{h as N}from"./SlackCommonFunc.lwaW_xKy.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";function q({allIntegURL:l}){const f=b(),{formID:p}=C(),[s,e]=m(u),[o,y]=m(h),i=j(S),[n,r]=d.useState(!1),[x,a]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(I,{snack:x,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>N(g,s,e),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(v,{formID:p,formFields:i,slackConf:s,setSlackConf:e,isLoading:n,setIsLoading:r,setSnackbar:a}),t.jsx(k,{edit:!0,saveConfig:()=>w({flow:o,allIntegURL:l,conf:s,navigate:f,edit:1,setIsLoading:r,setSnackbar:a}),disabled:s.channel_id===""||n,isLoading:n,dataConf:s,setDataConf:e,formFields:i}),t.jsx("br",{})]})}export{q as default};
