| 1 |
var j=Object.defineProperty;var l=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var v=(s,e,t)=>e in s?j(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,x=(s,e)=>{for(var t in e||(e={}))D.call(e,t)&&v(s,t,e[t]);if(l)for(var t of l(e))w.call(e,t)&&v(s,t,e[t]);return s};import{v as O,t as I,r,j as o,S as b}from"./main-914.js";/* empty css */import{S as C}from"./bf-358-131.js";import{a as N,b as k}from"./bf-10-72.js";import{I as y}from"./bf-747-322.js";import{N as L}from"./bf-804-391.js";import E from"./bf-476-260.js";import{O as F}from"./bf-148-379.js";import"./bf-977-77.js";import"./bf-914-191.js";import"./bf-236-73.js";import"./bf-624-69.js";import"./bf-935-390.js";import"./bf-123-378.js";import"./bf-759-123.js";function V({formFields:s,setIntegration:e,integrations:t,allIntegURL:g}){const u=O(),{flowID:m}=I(),[p,c]=r.useState(!1),[a,f]=r.useState(1),[h,n]=r.useState({show:!1}),[i,d]=r.useState({name:"OneDrive",type:"OneDrive",clientId:"",clientSecret:"",field_map:[{formField:"",OneDriveFormField:""}],folder:"",folderMap:[],foldersList:[],actions:{}});r.useEffect(()=>{window.opener&&N("oneDrive")},[]);const S=()=>{k(t,e,g,i,u)};return o.jsxs("div",{children:[o.jsx(b,{snack:h,setSnackbar:n}),o.jsx("div",{className:"txt-center w-9 mt-2 cal-width",children:o.jsx(C,{step:3,active:a})}),o.jsx(E,{flowID:m,oneDriveConf:i,setOneDriveConf:d,step:a,setStep:f,isLoading:p,setIsLoading:c,setSnackbar:n}),o.jsxs("div",{className:"btcd-stp-page",style:x({},a===2&&{width:900,height:"100%",overflow:"visible"}),children:[o.jsx(F,{flowID:m,formFields:s,oneDriveConf:i,setOneDriveConf:d,isLoading:p,setIsLoading:c,setSnackbar:n}),o.jsx(L,{nextPageHandler:()=>f(3),disabled:!i.actions.attachments||!i.folder})]}),o.jsx(y,{step:a,saveConfig:()=>S()})]})}export{V as default}; |