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-817-149.js

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

2 lines 3.4 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 R=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var k=(i,t,s)=>t in i?E(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,S=(i,t)=>{for(var s in t||(t={}))R.call(t,s)&&k(i,s,t[s]);if(A)for(var s of A(t))T.call(t,s)&&k(i,s,t[s]);return i};import{r as l,u as G,$ as L,j as e,_ as a,C as w,F,g as I,a as _}from"./main-96.js";/* empty css */import{j as D,s as P}from"./bf-599-101.js";import{t as z}from"./bf-374-48.js";import{T as U}from"./bf-60-114.js";import{A as $}from"./bf-490-110.js";import"./bf-331-47.js";import"./bf-781-46.js";import"./bf-798-54.js";import"./bf-425-69.js";import"./bf-570-115.js";function O({formID:i,sheetConf:t,setSheetConf:s,step:d,setstep:b,isLoading:m,setisLoading:p,setSnackbar:h,redirectLocation:u,isInfo:n,authorizedAction:v}){const[r,x]=l.useState(!1),[o,c]=l.useState({clientId:"",clientSecret:""}),f=G(L),{siteURL:C}=f,g=j=>{const N=S({},t),y=S({},o);y[j.target.name]="",N[j.target.name]=j.target.value,c(y),s(N)};return l.useEffect(()=>{r&&v()},[r]),e.jsxs(e.Fragment,{children:[e.jsx(U,{title:z.googelSheets.title,youTubeLink:z.googelSheets.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:g,name:"name",value:t.name,type:"text",placeholder:a("e.g. Marketing — work account"),disabled:n}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Homepage URL:")})}),e.jsx(w,{value:C,className:"field-key-cpy w-6 ml-0",readOnly:n}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Authorized Redirect URIs:")})}),e.jsx(w,{value:u||`${f.googleRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:n}),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://console.developers.google.com/apis/credentials",target:"_blank",rel:"noreferrer",children:a("Google 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:g,name:"clientId",value:t.clientId,type:"text",placeholder:a("Client id..."),disabled:n}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:o.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:g,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:a("Client secret..."),disabled:n}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:o.clientSecret}),!n&&e.jsxs(e.Fragment,{children:[e.jsx($,{isAuthorized:r,isLoading:m,handleAuthorize:()=>D(t,s,c,x,p,h)}),e.jsx("br",{})]})]})]})}function ee({formFields:i,setConnectedApps:t,connectedApps:s,allIntegURL:d}){const b=F(),{formID:m}=I(),[p,h]=l.useState(!1),[u,n]=l.useState(1);_();const[v,r]=l.useState({show:!1}),[x,o]=l.useState({name:"Google Sheet Authorization",type:"Google Sheet",clientId:"",clientSecret:"",actions:{}}),c=()=>{setTimeout(()=>{b(d)},1e3)};return l.useEffect(()=>{window.opener&&P("googleSheet")},[]),e.jsxs("div",{children:[e.jsx("div",{className:"txt-center w-9 mt-2 cal-width"}),e.jsx(O,{formID:m,allIntegURL:d,sheetConf:x,setSheetConf:o,step:u,setstep:n,setSnackbar:r,isLoading:p,setisLoading:h,authorizedAction:c})]})}export{ee as default};
2