PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
bit-form / assets / bf-599-142.js

bf-599-142.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-599-142.js

2 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var f=Object.defineProperty;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var A=(t,s,a)=>s in t?f(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,g=(t,s)=>{for(var a in s||(s={}))M.call(s,a)&&A(t,a,s[a]);if(k)for(var a of k(s))R.call(s,a)&&A(t,a,s[a]);return t};import{u as E,$ as L,r,j as e,_ as i,C as w,F as T,g as I,S as Z}from"./main-96.js";/* empty css */import{c as $}from"./bf-13-42.js";import{t as C}from"./bf-374-48.js";import{T as F}from"./bf-60-114.js";import{A as P}from"./bf-490-110.js";import{a as U}from"./bf-467-87.js";import"./bf-431-60.js";import"./bf-63-62.js";import"./bf-781-46.js";import"./bf-825-45.js";import"./bf-551-68.js";import"./bf-894-52.js";import"./bf-331-47.js";import"./bf-798-54.js";import"./bf-425-69.js";import"./bf-533-49.js";import"./bf-531-50.js";import"./bf-128-51.js";import"./bf-681-53.js";import"./bf-20-55.js";import"./bf-570-115.js";function _({mailConf:t,setMailConf:s,step:a,setstep:z,isLoading:p,setisLoading:h,setSnackbar:u,redirectLocation:x,isInfo:o,authorizedAction:j}){const l=E(L),{siteURL:d}=l,[c,b]=r.useState(!1),[n,y]=r.useState({dataCenter:"",clientId:"",clientSecret:""}),m=v=>{const N=g({},t),S=g({},n);S[v.target.name]="",N[v.target.name]=v.target.value,y(S),s(N)};return r.useEffect(()=>{c&&j()},[c]),e.jsxs(e.Fragment,{children:[e.jsx(F,{title:C.zohoMail.title,youTubeLink:C.zohoMail.link}),e.jsxs("div",{className:"btcd-stp-page",style:{width:900,height:"100%"},children:[e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Account Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"name",value:t.name,type:"text",placeholder:i("e.g. Marketing — work account"),disabled:o}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Data Center:")})}),e.jsxs("select",{onChange:m,name:"dataCenter",value:t.dataCenter,className:"btcd-paper-inp w-6 mt-1",disabled:o,children:[e.jsx("option",{value:"",children:i("--Select a data center--")}),e.jsx("option",{value:"com",children:"zoho.com"}),e.jsx("option",{value:"eu",children:"zoho.eu"}),e.jsx("option",{value:"com.cn",children:"zoho.com.cn"}),e.jsx("option",{value:"in",children:"zoho.in"}),e.jsx("option",{value:"com.au",children:"zoho.com.au"})]}),e.jsx("div",{style:{color:"red"},children:n.dataCenter}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Homepage URL:")})}),e.jsx(w,{value:d,className:"field-key-cpy w-6 ml-0",readOnly:o}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Authorized Redirect URIs:")})}),e.jsx(w,{value:x||`${l.zohoRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:o}),e.jsxs("small",{className:"d-blk mt-5",children:[i("To get Client ID and SECRET , Please Visit")," ",e.jsx("a",{className:"btcd-link",href:`https://api-console.zoho.${(t==null?void 0:t.dataCenter)||"com"}/`,target:"_blank",rel:"noreferrer",children:i("Zoho API Console")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Client id:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"clientId",value:t.clientId,type:"text",placeholder:i("Client id..."),disabled:o}),e.jsx("div",{style:{color:"red"},children:n.clientId}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Client secret:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:i("Client secret..."),disabled:o}),e.jsx("div",{style:{color:"red"},children:n.clientSecret}),!o&&e.jsxs(e.Fragment,{children:[e.jsx(P,{isAuthorized:c,isLoading:p,handleAuthorize:()=>U(t,s,y,b,h,u)}),e.jsx("br",{})]})]})]})}function de({formFields:t,setIntegration:s,integrations:a,allIntegURL:z}){const p=T(),{formID:h}=I(),[u,x]=r.useState(!1),[o,j]=r.useState(1),[l,d]=r.useState({show:!1}),[c,b]=r.useState({name:"Zoho Mail API",type:"Zoho Mail",clientId:"",clientSecret:"",actions:{},to:"",cc:"",bcc:"",subject:"",body:""}),n=()=>{setTimeout(()=>{p(z)},1e3)};return r.useEffect(()=>{window.opener&&$("zohoMail")},[]),e.jsxs("div",{children:[e.jsx(Z,{snack:l,setSnackbar:d}),e.jsx(_,{formID:h,mailConf:c,setMailConf:b,step:o,setstep:j,isLoading:u,setisLoading:x,setSnackbar:d,authorizedAction:n})]})}export{de as default};
2