import{j as o}from"./main.2.8.10.js";import{u as g,e as w,b as s}from"./react-router.DMwpH23k.js";import"./CopyIcn.BnhKHfEP.js";import{S as x}from"./SnackMsg.7BjcJK1j.js";import{S as k}from"./Steps.B84Ui3GU.js";import{g as S}from"./Integrations.BFhED4ck.js";import j from"./WebHooksIntegration.CoprJ8QL.js";import{W as b}from"./WebHooksStepTwo.BQfnOc8x.js";import{T as v}from"./TutorialLink.D6K_DiHL.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./BackIcn.BFDZx8No.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};
