import{b as i,h as g,$ as u,k as j,i as k,j as s}from"./main.2.8.1.js";import{u as b,h as w,d as a}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as h,s as v}from"./Integrations.D2bgBas2.js";import H from"./WebHooksIntegration.B7pcODxw.js";import{W}from"./WebHooksStepTwo.CLsJIPcj.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./BackIcn._kGL_vVw.js";function M({allIntegURL:n}){const r=b(),{id:_,formID:m}=w(),[t,c]=i(g),[e,d]=i(u),f=j(k),[p,o]=a.useState({show:!1}),[l,x]=a.useState(!1);return s.jsxs("div",{style:{width:900},children:[s.jsx(S,{snack:p,setSnackbar:o}),s.jsx(h,{entity:e.triggered_entity,setSnackbar:o}),s.jsx("div",{className:"mt-3",children:s.jsx(H,{formID:m,formFields:f,webHooks:t,setWebHooks:c,setSnackbar:o})}),s.jsx(W,{edit:!0,saveConfig:()=>v({flow:e,setFlow:d,allIntegURL:n,conf:t,navigate:r,edit:1,setIsLoading:x,setSnackbar:o}),isLoading:l}),s.jsx("br",{})]})}export{M as default};
