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