import{h as m,g as u,$ as j,k as h,i as S,j as t,_ as c}from"./main.2.9.0.js";import{u as b,e as C,b as l}from"./react-router.DMwpH23k.js";import{S as I}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as _,I as k,s as w}from"./Integrations.DL8wqGct.js";import{S as v}from"./SlackIntegLayout.BkSxQn7F.js";import{h as N}from"./SlackCommonFunc.D8dlseea.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.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};
