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