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