import{v as d,w as x,r as s,j as o,S as f}from"./main-40.js";/* empty css          */import{t as i}from"./bf-892-199.js";import{S as k,T as j,W as b}from"./bf-679-136.js";import{b as S}from"./bf-132-75.js";import g from"./bf-627-203.js";import"./bf-860-126.js";import"./bf-141-80.js";import"./bf-586-70.js";import"./bf-476-127.js";function C({formFields:r,setIntegration:l,integrations:n,allIntegURL:p}){const c=d(),{formID:m}=x(),[t,h]=s.useState(1),[w,e]=s.useState({show:!1}),[a,u]=s.useState({name:"Zoho Flow Web Hooks",type:"Zoho Flow",method:"POST",url:"",apiConsole:"https://flow.zoho.com/#/workspace/default/flows/create"});return o.jsxs("div",{children:[o.jsx(f,{snack:w,setSnackbar:e}),o.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:o.jsx(k,{step:2,active:t})}),o.jsx(j,{title:i.zohoFlow.title,youTubeLink:i.zohoFlow.link}),o.jsx("div",{className:"btcd-stp-page",style:{width:t===1&&900,height:t===1&&"100%"},children:o.jsx(g,{formID:m,formFields:r,webHooks:a,setWebHooks:u,step:t,setstep:h,setSnackbar:e,create:!0})}),o.jsx("div",{className:"btcd-stp-page",style:{width:t===2&&900,minHeight:t===2&&"900px"},children:o.jsx(b,{step:t,saveConfig:()=>S(n,l,p,a,c)})})]})}export{C as default};
