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-259-141.js

bf-259-141.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-259-141.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 E=Object.defineProperty;var A=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var f=(i,t,s)=>t in i?E(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,v=(i,t)=>{for(var s in t||(t={}))L.call(t,s)&&f(i,s,t[s]);if(A)for(var s of A(t))T.call(t,s)&&f(i,s,t[s]);return i};import{u as I,$ as W,r,j as e,_ as a,C,F as Z,g as $,S as F}from"./main-96.js";/* empty css */import{c as P}from"./bf-13-42.js";import{t as R}from"./bf-374-48.js";import{T as U}from"./bf-60-114.js";import{A as _}from"./bf-490-110.js";import{d as w}from"./bf-279-85.js";import"./bf-825-45.js";import"./bf-781-46.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 M({formID:i,workDriveConf:t,setWorkDriveConf:s,step:z,setstep:N,isLoading:m,setisLoading:h,setSnackbar:p,redirectLocation:u,isInfo:o,authorizedAction:x}){const n=I(W),{siteURL:j}=n,[l,g]=r.useState(!1),[c,y]=r.useState({dataCenter:"",clientId:"",clientSecret:""}),d=b=>{const S=v({},t),k=v({},c);k[b.target.name]="",S[b.target.name]=b.target.value,y(k),s(S)};return r.useEffect(()=>{l&&x()},[l]),e.jsxs(e.Fragment,{children:[e.jsx(U,{title:R.zohoWorkDrive.title,youTubeLink:R.zohoWorkDrive.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:a("Account Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:d,name:"name",value:t.name,type:"text",placeholder:a("e.g. Marketing — work account"),disabled:o}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Data Center:")})}),e.jsxs("select",{onChange:d,name:"dataCenter",value:t.dataCenter,className:"btcd-paper-inp w-6 mt-1",disabled:o,children:[e.jsx("option",{value:"",children:a("--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:c.dataCenter}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Homepage URL:")})}),e.jsx(C,{value:j,className:"field-key-cpy w-6 ml-0",readOnly:o}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorized Redirect URIs:")})}),e.jsx(C,{value:u||`${n.zohoRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:o}),e.jsxs("small",{className:"d-blk mt-5",children:[a("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:a("Zoho API Console")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Client id:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:d,name:"clientId",value:t.clientId,type:"text",placeholder:a("Client id..."),disabled:o}),e.jsx("div",{style:{color:"red"},children:c.clientId}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Client secret:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:d,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:a("Client secret..."),disabled:o}),e.jsx("div",{style:{color:"red"},children:c.clientSecret}),!o&&e.jsxs(e.Fragment,{children:[e.jsx(_,{isAuthorized:l,isloading:m,handleAuthorize:()=>w(t,s,y,g,h,p)}),e.jsx("br",{})]})]})]})}function ce({formFields:i,setIntegration:t,integrations:s,allIntegURL:z}){const N=Z(),{formID:m}=$(),[h,p]=r.useState(!1),[u,o]=r.useState(1),[x,n]=r.useState({show:!1}),[j,l]=r.useState({name:"Zoho WorkDrive API",type:"Zoho WorkDrive",clientId:"",clientSecret:"",team:"",folder:"",folderMap:[],actions:{}}),g=()=>{setTimeout(()=>{N(z)},1e3)};return r.useEffect(()=>{window.opener&&P("zohoWorkDrive")},[]),e.jsxs("div",{children:[e.jsx(F,{snack:x,setSnackbar:n}),e.jsx(M,{formID:m,workDriveConf:j,setWorkDriveConf:l,step:u,setstep:o,isLoading:h,setisLoading:p,setSnackbar:n,authorizedAction:g})]})}export{ce as default};
2