import{u as j,k as b,r as o,j as e}from"./main-333.js";import{d as k,F as S}from"./bi.636.93.js";import{S as v}from"./bi.563.969.js";import w from"./bi.27.259.js";import{W as T}from"./bi.740.766.js";import{T as r,t as y}from"./bi.318.783.js";import"./bi.429.767.js";function E({formFields:c,setFlow:n,flow:u,allIntegURL:m}){const p=j(),{formID:d}=b(),[s,l]=o.useState(1),[f,a]=o.useState({show:!1}),[x,h]=o.useState(!1),{zohoFlowLinks:t}=y,[i,g]=o.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(k,{snack:f,setSnackbar:a}),e.jsx("div",{className:"txt-center mt-2",children:e.jsx(v,{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(r,{title:"Zoho Flow",youTubeLink:t==null?void 0:t.youTubeLink}),(t==null?void 0:t.docLink)&&e.jsx(r,{title:"Zoho Flow",docLink:t==null?void 0:t.docLink}),e.jsx(w,{formID:d,formFields:c,webHooks:i,setWebHooks:g,step:s,setStep:l,setSnackbar:a,create:!0})]}),e.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&900,height:s===2&&"auto"},children:e.jsx(T,{step:s,saveConfig:()=>S(u,n,m,i,p,"","",h),isLoading:x})})]})}export{E as default};
