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-387-155.js

bf-387-155.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at assets/bf-387-155.js

2 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var z=Object.defineProperty;var y=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var w=(a,t,s)=>t in a?z(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s,b=(a,t)=>{for(var s in t||(t={}))D.call(t,s)&&w(a,s,t[s]);if(y)for(var s of y(t))O.call(t,s)&&w(a,s,t[s]);return a};import{r as n,u as R,$ as C,j as e,_ as r,C as k,F as L,g as _,S as E}from"./main-762.js";/* empty css */import{c as F}from"./bf-767-42.js";import{A as M}from"./bf-704-110.js";import{b as T}from"./bf-214-159.js";import"./bf-871-60.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-281-48.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";function U({flowID:a,oneDriveConf:t,setOneDriveConf:s,step:f,setStep:g,isLoading:d,setIsLoading:m,setSnackbar:p,redirectLocation:u,isInfo:i,authorizedAction:h}){const[l,x]=n.useState(!1),[c,o]=n.useState({clientId:"",clientSecret:""}),S=R(C),{siteURL:I}=S,j=v=>{const A=b({},t),N=b({},c);N[v.target.name]="",A[v.target.name]=v.target.value,o(N),s(A)};return n.useEffect(()=>{l&&h()},[l]),e.jsxs("div",{className:"btcd-stp-page",style:{width:900,height:"100%"},children:[e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Account Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:j,name:"name",value:t.name,type:"text",placeholder:r("e.g. Marketing — work account"),disabled:i}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Homepage URL:")})}),e.jsx(k,{value:I,className:"field-key-cpy w-6 ml-0",readOnly:i,setSnackbar:p}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Authorized Redirect URIs:")})}),e.jsx(k,{value:u||`${S.oneDriveRedirectURL}`,className:"field-key-cpy w-6 ml-0",readOnly:i}),e.jsxs("small",{className:"d-blk mt-3",children:[r("To Get Client Id & Secret, Please Visit")," ",e.jsx("a",{className:"btcd-link",href:"https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade",target:"_blank",rel:"noreferrer",children:r("Azure Portal")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("OneDrive Client Id:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:j,name:"clientId",value:t.clientId,type:"text",placeholder:r("Client Id..."),disabled:i}),e.jsx("div",{style:{color:"red"},children:c.clientId}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("OneDrive Client Secret:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:j,name:"clientSecret",value:t.clientSecret,type:"text",placeholder:r("Client Secret..."),disabled:i}),e.jsx("div",{style:{color:"red"},children:c.clientSecret}),!i&&e.jsxs(e.Fragment,{children:[e.jsx(M,{isAuthorized:l,isLoading:d,handleAuthorize:()=>T(t,s,x,m,o)}),e.jsx("br",{})]})]})}function ne({formFields:a,setIntegration:t,integrations:s,allIntegURL:f}){const g=L(),{flowID:d}=_(),[m,p]=n.useState(!1),[u,i]=n.useState(1),[h,l]=n.useState({show:!1}),[x,c]=n.useState({name:"OneDrive",type:"OneDrive",clientId:"",clientSecret:"",field_map:[{formField:"",OneDriveFormField:""}],folder:"",folderMap:[],foldersList:[],actions:{}}),o=()=>{setTimeout(()=>{g(f)},1e3)};return n.useEffect(()=>{window.opener&&F("oneDrive")},[]),e.jsxs("div",{children:[e.jsx(E,{snack:h,setSnackbar:l}),e.jsx(U,{flowID:d,oneDriveConf:x,setOneDriveConf:c,step:u,setStep:i,isLoading:m,setIsLoading:p,setSnackbar:l,authorizedAction:o})]})}export{ne as default};
2