import{u as W,k as h,r as o,j as s}from"./main-333.js";import{d as j,F as b}from"./bi.636.93.js";import{S}from"./bi.563.969.js";import L from"./bi.27.259.js";import{W as P}from"./bi.740.766.js";import{T as n,t as v}from"./bi.318.783.js";import"./bi.429.767.js";function C({formFields:r,setFlow:c,flow:u,allIntegURL:m}){const d=W(),{formID:p}=h(),[e,k]=o.useState(1),[l,a]=o.useState({show:!1}),[x,f]=o.useState(!1),{automatorWP:t}=v,[i,g]=o.useState({name:"AutomatorWP Web Hooks",type:"AutomatorWP",method:"POST",url:""});return s.jsxs("div",{children:[s.jsx(j,{snack:l,setSnackbar:a}),s.jsx("div",{className:"txt-center mt-2",children:s.jsx(S,{step:2,active:e})}),s.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&1100,height:e===1&&"auto"},children:[(t==null?void 0:t.youTubeLink)&&s.jsx(n,{title:"AutomatorWP",youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&s.jsx(n,{title:"AutomatorWP",docLink:t==null?void 0:t.docLink}),s.jsx(L,{formID:p,formFields:r,webHooks:i,setWebHooks:g,step:e,setStep:k,setSnackbar:a,create:!0})]}),s.jsx("div",{className:"btcd-stp-page",style:{width:e===2&&"100%",height:e===2&&"auto"},children:s.jsx(P,{step:e,saveConfig:()=>b(u,c,m,i,d,"","",f),isLoading:x})})]})}export{C as default};
