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