import{u as b,k as S,r as o,j as s}from"./main-406.js";import{d as v,G as g}from"./bi.394.85.js";import{S as I}from"./bi.68.941.js";import T from"./bi.738.248.js";import{W as k}from"./bi.771.743.js";import{T as p,t as w}from"./bi.150.760.js";import"./bi.46.744.js";function y({formFields:c,setFlow:n,flow:u,allIntegURL:m}){const d=b(),{formID:x}=S(),[e,f]=o.useState(1),[l,r]=o.useState({show:!1}),[h,j]=o.useState(!1),{integratelyLinks:t}=w,[a,i]=o.useState({name:"Integrately Web Hooks",type:"Integrately",method:"POST",url:"",apiConsole:"https://app.integrately.com/"});return s.jsxs("div",{children:[s.jsx(v,{snack:l,setSnackbar:r}),s.jsx("div",{className:"txt-center mt-2",children:s.jsx(I,{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(p,{title:t==null?void 0:t.title,youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&s.jsx(p,{title:t==null?void 0:t.title,docLink:t==null?void 0:t.docLink}),s.jsx(T,{formID:x,formFields:c,webHooks:a,setWebHooks:i,step:e,setStep:f,setSnackbar:r,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:()=>g(u,n,m,a,d,"","",j),isLoading:h,dataConf:a,setDataConf:i,formFields:c})})]})}export{y as default};
