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