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-906-138.js

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

2 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var f=Object.defineProperty;var y=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var k=(r,t,s)=>t in r?f(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,g=(r,t)=>{for(var s in t||(t={}))R.call(t,s)&&k(r,s,t[s]);if(y)for(var s of y(t))L.call(t,s)&&k(r,s,t[s]);return r};import{u as T,$ as F,r as o,j as e,_ as a,C as E,F as Z,g as I,S as _}from"./main-96.js";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 O}from"./bf-490-110.js";import{c as P}from"./bf-271-79.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 U({formID:r,analyticsConf:t,setAnalyticsConf:s,step:A,setStep:w,isLoading:m,setisLoading:h,setSnackbar:p,redirectLocation:u,isInfo:i,authorizedAction:x}){const n=T(F),{siteURL:j}=n,[l,v]=o.useState(!1),[c,z]=o.useState({dataCenter:"",clientId:"",clientSecret:"",ownerEmail:""}),d=b=>{const N=g({},t),S=g({},c);S[b.target.name]="",N[b.target.name]=b.target.value,z(S),s(N)};return o.useEffect(()=>{l&&x()},[l]),e.jsxs(e.Fragment,{children:[e.jsx(D,{title:C.zohoAnalytics.title,youTubeLink:C.zohoAnalytics.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:i}),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:i,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(E,{value:j,className:"field-key-cpy w-6 ml-0",readOnly:i}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorized Redirect URIs:")})}),e.jsx(E,{value:u||`${n.zohoRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:i}),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:i}),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:i}),e.jsx("div",{style:{color:"red"},children:c.clientSecret}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Zoho Analytics Owner Email:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:d,name:"ownerEmail",value:t.ownerEmail,type:"email",placeholder:a("Owner Email"),disabled:i}),e.jsx("div",{style:{color:"red"},children:c.ownerEmail}),!i&&e.jsxs(e.Fragment,{children:[e.jsx(O,{isAuthorized:l,isLoading:m,handleAuthorize:()=>P(t,s,z,v,h,p)}),e.jsx("br",{})]})]})]})}function le({formFields:r,setIntegration:t,integrations:s,allIntegURL:A}){const w=Z(),{formID:m}=I(),[h,p]=o.useState(!1),[u,i]=o.useState(1),[x,n]=o.useState({show:!1}),[j,l]=o.useState({name:"Zoho Analytics API",type:"Zoho Analytics",field_map:[{formField:"",zohoFormField:""}],actions:{}}),v=()=>{setTimeout(()=>{w(A)},1e3)};return o.useEffect(()=>{window.opener&&$("zohoAnalytics")},[]),e.jsxs("div",{children:[e.jsx(_,{snack:x,setSnackbar:n}),e.jsx(U,{formID:m,analyticsConf:j,setAnalyticsConf:l,step:u,setStep:i,isLoading:h,setisLoading:p,setSnackbar:n,authorizedAction:v})]})}export{le as default};
2