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