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-285-148.js

bf-285-148.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-285-148.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 A=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,t,s)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[t]=s,b=(o,t)=>{for(var s in t||(t={}))B.call(t,s)&&f(o,s,t[s]);if(A)for(var s of A(t))E.call(t,s)&&f(o,s,t[s]);return o};import{u as L,$ as T,r as i,j as e,_ as a,C as w,F,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 $}from"./bf-60-114.js";import{A as D}from"./bf-490-110.js";import{e as P}from"./bf-355-99.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:o,biginConf:t,setBiginConf:s,step:c,setstep:N,isLoading:p,setisLoading:u,setSnackbar:x,redirectLocation:j,isInfo:r,authorizedAction:v}){const l=L(T),{siteURL:S}=l,[d,g]=i.useState(!1),[n,m]=i.useState({dataCenter:"",clientId:"",clientSecret:""}),h=z=>{const y=b({},t),k=b({},n);k[z.target.name]="",y[z.target.name]=z.target.value,m(k),s(y)};return i.useEffect(()=>{d&&v()},[d]),e.jsxs(e.Fragment,{children:[e.jsx($,{title:C.zohoBigin.title,youTubeLink:C.zohoBigin.link}),e.jsxs("div",{className:"btcd-stp-page",style:{width:c===1&&900,height:c===1&&"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:h,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:h,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:n.dataCenter}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Homepage URL:")})}),e.jsx(w,{value:S,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(w,{value:j||`${l.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:h,name:"clientId",value:t.clientId,type:"text",placeholder:a("Client id..."),disabled:r}),e.jsx("div",{style:{color:"red"},children:n.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:h,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:a("Client secret..."),disabled:r}),e.jsx("div",{style:{color:"red"},children:n.clientSecret}),!r&&e.jsxs(e.Fragment,{children:[e.jsx(D,{isAuthorized:d,isLoading:p,handleAuthorize:()=>P(t,s,m,g,u,x)}),e.jsx("br",{})]})]})]})}function ce({formFields:o,setIntegration:t,integrations:s,allIntegURL:c}){const N=F(),{formID:p}=I(),[u,x]=i.useState(!1),[j,r]=i.useState(1),[v,l]=i.useState({show:!1}),[S,d]=i.useState(0),[g,n]=i.useState({name:"Zoho Bigin API",type:"Zoho Bigin",clientId:"",clientSecret:"",module:"",field_map:[{formField:"",zohoFormField:""}],relatedlists:[],actions:{}}),m=()=>{setTimeout(()=>{N(c)},1e3)};return i.useEffect(()=>{window.opener&&_("zohoBigin")},[]),e.jsxs("div",{children:[e.jsx(Z,{snack:v,setSnackbar:l}),e.jsx(U,{formID:p,biginConf:g,setBiginConf:n,step:j,setstep:r,isLoading:u,setisLoading:x,setSnackbar:l,authorizedAction:m})]})}export{ce as default};
2