import{G as w,g as x,r as t,j as s,S as f}from"./main-343.js";import"./bf-649-79.js";import{t as i}from"./bf-974-82.js";import{S as k}from"./bf-149-261.js";import{a5 as j,ad as g,a7 as S}from"./bf-659-81.js";import b from"./bf-526-116.js";function N({formFields:r,setIntegration:l,integrations:n,allIntegURL:c}){const p=w(),{formID:h}=x(),[o,m]=t.useState(1),[d,e]=t.useState({show:!1}),[a,u]=t.useState({name:"Zoho Flow Web Hooks",type:"Zoho Flow",method:"POST",url:"",apiConsole:"https://flow.zoho.com/#/workspace/default/flows/create"});return s.jsxs("div",{children:[s.jsx(f,{snack:d,setSnackbar:e}),s.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:s.jsx(k,{step:2,active:o})}),s.jsx(j,{title:i.zohoFlow.title,youTubeLink:i.zohoFlow.link}),s.jsx("div",{className:"btcd-stp-page",style:{width:o===1&&900,height:o===1&&"100%"},children:s.jsx(b,{formID:h,formFields:r,webHooks:a,setWebHooks:u,step:o,setstep:m,setSnackbar:e,create:!0})}),s.jsx("div",{className:"btcd-stp-page",style:{width:o===2&&900,minHeight:o===2&&"900px"},children:s.jsx(g,{step:o,saveConfig:()=>S(n,l,c,a,p)})})]})}export{N as default};
