PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
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 2.10.1 All 138 releases
bit-form / assets / bf-263-144.js

bf-263-144.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at assets/bf-263-144.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 P=Object.defineProperty;var A=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var w=(i,t,s)=>t in i?P(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,g=(i,t)=>{for(var s in t||(t={}))R.call(t,s)&&w(i,s,t[s]);if(A)for(var s of A(t))E.call(t,s)&&w(i,s,t[s]);return i};import{u as I,$ as L,r as o,j as e,_ as a,C as f,F as T,g as Z,S as _}from"./main-762.js";/* empty css */import{c as $}from"./bf-767-42.js";import{t as C}from"./bf-281-48.js";import{T as D}from"./bf-525-114.js";import{A as F}from"./bf-704-110.js";import{m as U}from"./bf-781-91.js";import"./bf-383-45.js";import"./bf-685-46.js";import"./bf-848-68.js";import"./bf-241-52.js";import"./bf-145-47.js";import"./bf-213-54.js";import"./bf-249-69.js";import"./bf-284-49.js";import"./bf-466-50.js";import"./bf-604-51.js";import"./bf-441-53.js";import"./bf-897-55.js";import"./bf-142-115.js";function G({formID:i,projectsConf:t,setProjectsConf:s,step:z,setstep:N,isLoading:m,setisLoading:h,setSnackbar:p,redirectLocation:u,isInfo:r,authorizedAction:x}){const n=I(L),{siteURL:j}=n,[l,v]=o.useState(!1),[c,y]=o.useState({dataCenter:"",clientId:"",clientSecret:""}),d=b=>{const S=g({},t),k=g({},c);k[b.target.name]="",S[b.target.name]=b.target.value,y(k),s(S)};return o.useEffect(()=>{l&&x()},[l]),e.jsxs(e.Fragment,{children:[e.jsx(D,{title:C.zohoProjects.title,youTubeLink:C.zohoProjects.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:r}),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:r,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(f,{value:j,className:"field-key-cpy w-6 ml-0",readOnly:r}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorized Redirect URIs:")})}),e.jsx(f,{value:u||`${n.zohoRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:r}),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:r}),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:r}),e.jsx("div",{style:{color:"red"},children:c.clientSecret}),!r&&e.jsxs(e.Fragment,{children:[e.jsx(F,{isAuthorized:l,isLoading:m,handleAuthorize:()=>U(t,s,y,v,h,p)}),e.jsx("br",{})]})]})]})}function ce({formFields:i,setIntegration:t,integrations:s,allIntegURL:z}){const N=T(),{formID:m}=Z(),[h,p]=o.useState(!1),[u,r]=o.useState(1),[x,n]=o.useState({show:!1}),[j,l]=o.useState({name:"Zoho Projects API",type:"Zoho Projects",clientId:"",clientSecret:"",portalId:"",event:"",field_map:{},actions:{}}),v=()=>{setTimeout(()=>{N(z)},1e3)};return o.useEffect(()=>{window.opener&&$("zohoProjects")},[]),e.jsxs("div",{children:[e.jsx(_,{snack:x,setSnackbar:n}),e.jsx(G,{formID:m,projectsConf:j,setProjectsConf:l,step:u,setstep:r,isLoading:h,setisLoading:p,setSnackbar:n,authorizedAction:v})]})}export{ce as default};
2