import{D as d,g as x,r as t,j as o,S as f}from"./main-634.js";import"./bf-25-81.js";import{t as i}from"./bf-275-83.js";import{S as k}from"./bf-54-258.js";import{a5 as j,ae as g,a7 as S}from"./bf-746-82.js";import b from"./bf-363-117.js";import"./bf-822-108.js";function T({formFields:r,setIntegration:l,integrations:n,allIntegURL:c}){const p=d(),{formID:m}=x(),[s,h]=t.useState(1),[u,e]=t.useState({show:!1}),[a,w]=t.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:u,setSnackbar:e}),o.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:o.jsx(k,{step:2,active:s})}),o.jsx(j,{title:i.zohoFlow.title,youTubeLink:i.zohoFlow.link}),o.jsx("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"100%"},children:o.jsx(b,{formID:m,formFields:r,webHooks:a,setWebHooks:w,step:s,setstep:h,setSnackbar:e,create:!0})}),o.jsx("div",{className:"btcd-stp-page",style:{width:s===2&&900,minHeight:s===2&&"900px"},children:o.jsx(g,{step:s,saveConfig:()=>S(n,l,c,a,p)})})]})}export{T as default};
