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