import{j as s}from"./main.2.8.10.js";import{u as f,e as l,b as e}from"./react-router.DMwpH23k.js";import"./CopyIcn.BnhKHfEP.js";import{S as W}from"./SnackMsg.7BjcJK1j.js";import{S as g}from"./Steps.B84Ui3GU.js";import{g as x}from"./Integrations.BFhED4ck.js";import S from"./WebHooksIntegration.CoprJ8QL.js";import{W as j}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 R({formFields:i,setFlow:r,flow:m,allIntegURL:n}){const p=f(),{formID:c}=l(),[t,h]=e.useState(1),[k,o]=e.useState({show:!1}),[d,u]=e.useState(!1),[a,b]=e.useState({name:"WPWebhooks Web Hooks",type:"WPWebhooks",method:"POST",url:""});return s.jsxs("div",{children:[s.jsx(W,{snack:k,setSnackbar:o}),s.jsx("div",{className:"txt-center mt-2",children:s.jsx(g,{step:2,active:t})}),s.jsxs("div",{className:"btcd-stp-page",style:{width:t===1&&1100,height:t===1&&"auto"},children:[s.jsx(v,{linkKey:"wPWebhooksLinks"}),s.jsx(S,{formID:c,formFields:i,webHooks:a,setWebHooks:b,step:t,setStep:h,setSnackbar:o,create:!0})]}),s.jsx("div",{className:"btcd-stp-page",style:{width:t===2&&"100%",height:t===2&&"auto"},children:s.jsx(j,{step:t,saveConfig:()=>x(m,r,n,a,p,"","",u),isLoading:d})})]})}export{R as default};
