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