import{u,k as h,d as c,h as j,r as d,j as s}from"./main-406.js";import{g as b,$ as S,h as C,d as I,_ as l,i as _,I as k,s as w}from"./bi.394.85.js";import{S as v}from"./bi.841.763.js";import{h as N}from"./bi.689.764.js";/* empty css          */function D({allIntegURL:m}){const f=u(),{formID:x}=h(),[t,e]=c(b),[o,y]=c(S),i=j(C),[n,r]=d.useState(!1),[g,a]=d.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(I,{snack:g,setSnackbar:a}),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,t,e),name:"name",value:t.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),s.jsx(v,{formID:x,formFields:i,slackConf:t,setSlackConf:e,isLoading:n,setIsLoading:r,setSnackbar:a}),s.jsx(k,{edit:!0,saveConfig:()=>w({flow:o,allIntegURL:m,conf:t,navigate:f,edit:1,setIsLoading:r,setSnackbar:a}),disabled:t.channel_id===""||n,isLoading:n,dataConf:t,setDataConf:e,formFields:i}),s.jsx("br",{})]})}export{D as default};
