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