(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9201],{50057:function(t,n,e){Promise.resolve().then(e.bind(e,99383))},96773:function(t,n,e){"use strict";e.d(n,{H7:function(){return a},Ho:function(){return u},Iz:function(){return i},J5:function(){return o},SS:function(){return s},Yh:function(){return l},lo:function(){return r},mS:function(){return c},p4:function(){return f},rb:function(){return d}});let o=async()=>{let t=await fetch("http://localhost:3333/api/sync/dropbox/get-dropbox-auth-url",{method:"post",body:JSON.stringify({})});return await t.json()},s=async t=>{let n=await fetch("http://localhost:3333/api/sync/dropbox/dropbox-sync",{method:"post",body:JSON.stringify({accessToken:t})});return await n.json()},a=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 n=await fetch("http://localhost:3333/api/sync/google-drive/google-drive-sync",{method:"post",body:JSON.stringify({code:t})});return await n.json()},r=async(t,n,e)=>{let o=await fetch("http://localhost:3333/api/sync/webdav/save-webdav-config",{method:"post",body:JSON.stringify({url:t,userName:n,pwd:e})});return await o.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()},u=async()=>{let t=await fetch("http://localhost:3333/api/sync/webdav/webdav-sync",{method:"post",body:JSON.stringify({})});return await t.json()},l=async()=>{let t=await fetch("http://localhost:3333/api/sync/backup",{method:"post",body:JSON.stringify({})});return await t.json()},d=async()=>{let t=await fetch("http://localhost:3333/api/sync/init-sync",{method:"post",body:JSON.stringify({})});return await t.json()},f=async()=>{let t=await fetch("http://localhost:3333/api/sync/get-sync-json",{method:"post",body:JSON.stringify({})});return await t.json()}},99383:function(t,n,e){"use strict";e.r(n);var o=e(57437);e(21590);var s=e(61538),a=e(23766),i=e(2265),r=e(16463),c=e(96773);n.default=()=>{let[t,n]=(0,i.useState)(null),e=(0,r.useSearchParams)().get("code");return(0,i.useEffect)(()=>{(0,c.Iz)(e)},[]),(0,o.jsx)(s.Z,{className:"main-content",children:(0,o.jsxs)(a.Z,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",spacing:2,style:{marginBottom:"2em"},children:[(0,o.jsx)(a.Z,{item:!0,xs:12,md:9,children:(0,o.jsx)("h1",{children:"Success! The permission has been authorized by Google Drive."})}),(0,o.jsx)(a.Z,{item:!0,xs:12,md:3})]})})}},69430:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var o=e(3075);function s(t){let{theme:n,name:e,props:s}=t;return n&&n.components&&n.components[e]&&n.components[e].defaultProps?(0,o.Z)(n.components[e].defaultProps,s):s}},4686:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var o=e(2265);function s(t,n){return o.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)}},16463:function(t,n,e){"use strict";e.r(n);var o=e(71169),s={};for(var a in o)"default"!==a&&(s[a]=(function(t){return o[t]}).bind(0,a));e.d(n,s)}},function(t){t.O(0,[532,9662,3766,2971,7023,1744],function(){return t(t.s=50057)}),_N_E=t.O()}]);