import{k as g,r as a,d as n,h as j,j as s}from"./main-406.js";import{$ as k,h as p,g as b,d as h,D as u,E as w,s as I}from"./bi.394.85.js";import E from"./bi.738.248.js";import{W}from"./bi.771.743.js";import"./bi.46.744.js";function $({allIntegURL:i}){const{formID:r}=g(),[d,m]=a.useState(!1),[t,c]=n(k),f=j(p),[e,l]=n(b),[x,o]=a.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(h,{snack:x,setSnackbar:o}),t.triggered_entity!=="Webhook"?s.jsx(u,{setSnackbar:o}):s.jsx(w,{setSnackbar:o}),s.jsx("div",{className:"mt-3",children:s.jsx(E,{formID:r,formFields:f,webHooks:e,setWebHooks:l,setSnackbar:o})}),s.jsx(W,{edit:!0,saveConfig:()=>I({flow:t,setFlow:c,allIntegURL:i,conf:e,edit:1,setIsLoading:m,setSnackbar:o}),isLoading:d}),s.jsx("br",{})]})}export{$ as default};
