import{h as m,g as u,$ as j,k as h,i as S,j as t,_ as c}from"./main.2.8.10.js";import{u as b,e as C,b as l}from"./react-router.DMwpH23k.js";import{S as I}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as _,I as k,s as w}from"./Integrations.BFhED4ck.js";import{S as v}from"./SlackIntegLayout.3rMOHK0Z.js";import{h as N}from"./SlackCommonFunc.Csa7yXsB.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function z({allIntegURL:d}){const f=b(),{formID:p}=C(),[s,a]=m(u),[o,y]=m(j),i=h(S),[n,r]=l.useState(!1),[x,e]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(I,{snack:x,setSnackbar:e}),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,a),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:e}),t.jsx(v,{formID:p,formFields:i,slackConf:s,setSlackConf:a,isLoading:n,setIsLoading:r,setSnackbar:e}),t.jsx(k,{edit:!0,saveConfig:()=>w({flow:o,allIntegURL:d,conf:s,navigate:f,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.channel_id===""||n,isLoading:n,dataConf:s,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{z as default};
