(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9794],{29106:(t,e,s)=>{"use strict";s.d(e,{QR:()=>h,T6:()=>l,W5:()=>y,Y7:()=>o,dz:()=>r,ke:()=>c,rL:()=>i,sS:()=>a,vq:()=>n,yz:()=>d});let a=async()=>{let t=await fetch("http://localhost:3333/api/sync/dropbox/get-dropbox-auth-url",{method:"post",body:JSON.stringify({})});return await t.json()},o=async t=>{let e=await fetch("http://localhost:3333/api/sync/dropbox/dropbox-sync",{method:"post",body:JSON.stringify({accessToken:t})});return await e.json()},n=async()=>{let t=await fetch("http://localhost:3333/api/sync/google-drive/get-google-auth-url",{method:"post",body:JSON.stringify({})});return await t.json()},i=async t=>{let e=await fetch("http://localhost:3333/api/sync/google-drive/google-drive-sync",{method:"post",body:JSON.stringify({code:t})});return await e.json()},r=async(t,e,s)=>{let a=await fetch("http://localhost:3333/api/sync/webdav/save-webdav-config",{method:"post",body:JSON.stringify({url:t,userName:e,pwd:s})});return await a.json()},c=async()=>{let t=await fetch("http://localhost:3333/api/sync/webdav/load-webdav-config",{method:"post",body:JSON.stringify({})});return await t.json()},l=async()=>{let t=await fetch("http://localhost:3333/api/sync/webdav/webdav-sync",{method:"post",body:JSON.stringify({})});return await t.json()},d=async()=>{let t=await fetch("http://localhost:3333/api/sync/backup",{method:"post",body:JSON.stringify({})});return await t.json()},h=async()=>{let t=await fetch("http://localhost:3333/api/sync/init-sync",{method:"post",body:JSON.stringify({})});return await t.json()},y=async()=>{let t=await fetch("http://localhost:3333/api/sync/get-sync-json",{method:"post",body:JSON.stringify({})});return await t.json()}},33005:(t,e,s)=>{Promise.resolve().then(s.bind(s,85739))},35695:(t,e,s)=>{"use strict";s.r(e);var a=s(18999),o={};for(let t in a)"default"!==t&&(o[t]=()=>a[t]);s.d(e,o)},61101:(t,e,s)=>{"use strict";s.d(e,{A:()=>o});var a=s(27346);function o(t){let{theme:e,name:s,props:o}=t;return e&&e.components&&e.components[s]&&e.components[s].defaultProps?(0,a.A)(e.components[s].defaultProps,o):o}},69480:(t,e,s)=>{"use strict";s.d(e,{A:()=>o});var a=s(12115);function o(t,e){return a.isValidElement(t)&&-1!==e.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)}},85739:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var a=s(95155);s(96343);var o=s(52269),n=s(28085),i=s(12115),r=s(35695),c=s(29106);let l=()=>{let[t,e]=(0,i.useState)(null),s=(0,r.useSearchParams)().get("code");return(0,i.useEffect)(()=>{(0,c.rL)(s)},[]),(0,a.jsx)(o.A,{className:"main-content",children:(0,a.jsxs)(n.A,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:2,style:{marginBottom:"2em"},children:[(0,a.jsx)(n.A,{item:!0,xs:12,md:9,children:(0,a.jsx)("h1",{children:"Success! The permission has been authorized by Google Drive."})}),(0,a.jsx)(n.A,{item:!0,xs:12,md:3})]})})}}},t=>{var e=e=>t(t.s=e);t.O(0,[1869,533,8085,8441,1684,7358],()=>e(33005)),_N_E=t.O()}]);