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-213-143.js

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