import{j as t}from"./main.2.8.10.js";import{u as x,e as h,b as o}from"./react-router.DMwpH23k.js";import"./CopyIcn.BnhKHfEP.js";import{S}from"./SnackMsg.7BjcJK1j.js";import{S as j}from"./Steps.B84Ui3GU.js";import{g as k}from"./Integrations.BFhED4ck.js";import y from"./WebHooksIntegration.CoprJ8QL.js";import{W as b}from"./WebHooksStepTwo.BQfnOc8x.js";import{T as v}from"./TutorialLink.D6K_DiHL.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./BackIcn.BFDZx8No.js";function M({formFields:n,setFlow:r,flow:i,allIntegURL:m}){const c=x(),{formID:p}=h(),[s,u]=o.useState(1),[d,e]=o.useState({show:!1}),[f,l]=o.useState(!1),[a,g]=o.useState({name:"UncannyAutomator Web Hooks",type:"UncannyAutomator",method:"POST",url:""});return t.jsxs("div",{children:[t.jsx(S,{snack:d,setSnackbar:e}),t.jsx("div",{className:"txt-center mt-2",children:t.jsx(j,{step:2,active:s})}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&1100,height:s===1&&"auto"},children:[t.jsx(v,{linkKey:"uncannyAutomatorLinks"}),t.jsx(y,{formID:p,formFields:n,webHooks:a,setWebHooks:g,step:s,setStep:u,setSnackbar:e,create:!0})]}),t.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&"100%",height:s===2&&"auto"},children:t.jsx(b,{step:s,saveConfig:()=>k(i,r,m,a,c,"","",l),isLoading:f})})]})}export{M as default};
