import{j as o}from"./main.2.9.0.js";import{u as g,e as w,b as s}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S as x}from"./SnackMsg.DYSD96P4.js";import{S as k}from"./Steps.BYe8zHkm.js";import{g as S}from"./Integrations.DL8wqGct.js";import j from"./WebHooksIntegration.CesI9y9U.js";import{W as b}from"./WebHooksStepTwo.C9DaqOtP.js";import{T as v}from"./TutorialLink.CFG7bS5c.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./BackIcn._8Wofmn2.js";function K({formFields:r,setFlow:i,flow:m,allIntegURL:n}){const p=g(),{formID:c}=w(),[t,l]=s.useState(1),[h,e]=s.useState({show:!1}),[f,d]=s.useState(!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(x,{snack:h,setSnackbar:e}),o.jsx("div",{className:"txt-center mt-2",children:o.jsx(k,{step:2,active:t})}),o.jsxs("div",{className:"btcd-stp-page",style:{width:t===1&&900,height:t===1&&"auto"},children:[o.jsx(v,{linkKey:"zohoFlowLinks"}),o.jsx(j,{formID:c,formFields:r,webHooks:a,setWebHooks:u,step:t,setStep:l,setSnackbar:e,create:!0})]}),o.jsx("div",{className:"btcd-stp-page",style:{width:t===2&&900,height:t===2&&"auto"},children:o.jsx(b,{step:t,saveConfig:()=>S(m,i,n,a,p,"","",d),isLoading:f})})]})}export{K as default};
