import{v as j,w as S,r as o,j as t,S as v}from"./main-40.js";/* empty css          */import{S as M}from"./bf-679-136.js";import{s as w,b as I}from"./bf-132-75.js";import{I as b}from"./bf-94-335.js";import{N as Z}from"./bf-504-404.js";import y from"./bf-920-260.js";import{Z as N}from"./bf-753-350.js";import"./bf-860-126.js";import"./bf-892-199.js";import"./bf-141-80.js";import"./bf-586-70.js";import"./bf-541-403.js";import"./bf-822-349.js";import"./bf-528-128.js";import"./bf-884-118.js";import"./bf-200-122.js";function K({formFields:n,setIntegration:m,integrations:c,allIntegURL:p}){const l=j(),{formID:f}=S(),[h,x]=o.useState(!1),[s,a]=o.useState(1),[d,i]=o.useState({show:!1}),[e,r]=o.useState({name:"Zoho Mail API",type:"Zoho Mail",clientId:"",clientSecret:"",actions:{},to:"",cc:"",bcc:"",subject:"",body:""});o.useEffect(()=>{window.opener&&w("zohoMail")},[]);const u=g=>{a(g)};return t.jsxs("div",{children:[t.jsx(v,{snack:d,setSnackbar:i}),t.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:t.jsx(M,{step:3,active:s})}),t.jsx(y,{formID:f,mailConf:e,setMailConf:r,step:s,setstep:a,isLoading:h,setisLoading:x,setSnackbar:i}),t.jsxs("div",{className:"btcd-stp-page",style:{width:s===2&&900,height:s===2&&"100%"},children:[t.jsx(N,{formFields:n,mailConf:e,setMailConf:r}),t.jsx(Z,{nextPageHandler:()=>u(3)})]}),t.jsx(b,{step:s,saveConfig:()=>I(c,m,p,e,l)})]})}export{K as default};
