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