diff --git a/js/firstrunwizard-about.mjs b/js/firstrunwizard-about.mjs index 931a9245f..5fc2f4bd9 100644 --- a/js/firstrunwizard-about.mjs +++ b/js/firstrunwizard-about.mjs @@ -1,8 +1,3 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-BXu4P0tX.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} +const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-BXu4P0tX.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); /*! third party licenses: js/vendor.LICENSE.txt */ import{_ as i}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",function(){const o=document.querySelector("#firstrunwizard_about button"),t=()=>{document.querySelector("#firstrunwizard_about button").addEventListener("click",async function(e){var n;e.stopPropagation(),e.preventDefault();const r=(n=document.querySelector('[aria-controls="header-menu-user-menu"]'))!=null?n:void 0,{open:u}=await i(()=>import("./main-BXu4P0tX.mjs"),__vite__mapDeps([0,1]),import.meta.url);u(r),OC.hideMenus(()=>!1)})};o?t():window._nc_event_bus.subscribe("core:user-menu:mounted",t)}); diff --git a/js/firstrunwizard-about.mjs.map b/js/firstrunwizard-about.mjs.map index 6b0fef640..0ea2c1234 100644 --- a/js/firstrunwizard-about.mjs.map +++ b/js/firstrunwizard-about.mjs.map @@ -1 +1 @@ -{"version":3,"mappings":";;;;;;;0DA4BA,SAAS,iBAAiB,mBAAoB,UAAW,CACxD,MAAMA,EAAa,SAAS,cAAc,8BAA8B,EAElEC,EAAc,IAAM,CACN,SAAS,cAAc,8BAA8B,EAE7D,iBAAiB,QAAS,eAAeC,EAAO,OAC1DA,EAAM,gBAAiB,EACvBA,EAAM,eAAgB,EACtB,MAAMC,GAAcC,EAAA,SAAS,cAAc,yCAAyC,IAAhE,KAAAA,EAAqE,OACnF,CAAE,KAAAC,CAAM,EAAG,MAAKC,EAAA,IAAC,OAAO,qBAAW,EAAC,wCAC1CD,EAAKF,CAAW,EAChB,GAAG,UAAU,IAAM,EAAK,CAC3B,CAAG,CACD,EAEGH,EACHC,EAAa,EAEb,OAAO,cAAc,UAAU,yBAA0BA,CAAW,CAEtE,CAAC","names":["aboutEntry","addListener","event","focusReturn","_a","open","__vitePreload"],"ignoreList":[],"sources":["../src/app-menu.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen \n *\n * @author Ferdinand Thiessen \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\n/**\n * Handle adding the first-run-wizard as an app menu entry\n */\ndocument.addEventListener('DOMContentLoaded', function() {\n\tconst aboutEntry = document.querySelector('#firstrunwizard_about button')\n\n\tconst addListener = () => {\n\t\tconst aboutEntry = document.querySelector('#firstrunwizard_about button')\n\n\t\taboutEntry.addEventListener('click', async function(event) {\n\t\t\tevent.stopPropagation()\n\t\t\tevent.preventDefault()\n\t\t\tconst focusReturn = document.querySelector('[aria-controls=\"header-menu-user-menu\"]') ?? undefined\n\t\t\tconst { open } = await import('./main.js')\n\t\t\topen(focusReturn)\n\t\t\tOC.hideMenus(() => false)\n\t\t})\n\t}\n\n\tif (aboutEntry) {\n\t\taddListener()\n\t} else {\n\t\twindow._nc_event_bus.subscribe('core:user-menu:mounted', addListener)\n\t}\n})\n"],"file":"js/firstrunwizard-about.mjs"} \ No newline at end of file +{"version":3,"mappings":";;0DA4BA,SAAS,iBAAiB,mBAAoB,UAAW,CACxD,MAAMA,EAAa,SAAS,cAAc,8BAA8B,EAElEC,EAAc,IAAM,CACN,SAAS,cAAc,8BAA8B,EAE7D,iBAAiB,QAAS,eAAeC,EAAO,OAC1DA,EAAM,gBAAiB,EACvBA,EAAM,eAAgB,EACtB,MAAMC,GAAcC,EAAA,SAAS,cAAc,yCAAyC,IAAhE,KAAAA,EAAqE,OACnF,CAAE,KAAAC,CAAM,EAAG,MAAKC,EAAA,IAAC,OAAO,qBAAW,EAAC,wCAC1CD,EAAKF,CAAW,EAChB,GAAG,UAAU,IAAM,EAAK,CAC3B,CAAG,CACD,EAEGH,EACHC,EAAa,EAEb,OAAO,cAAc,UAAU,yBAA0BA,CAAW,CAEtE,CAAC","names":["aboutEntry","addListener","event","focusReturn","_a","open","__vitePreload"],"ignoreList":[],"sources":["../src/app-menu.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen \n *\n * @author Ferdinand Thiessen \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\n/**\n * Handle adding the first-run-wizard as an app menu entry\n */\ndocument.addEventListener('DOMContentLoaded', function() {\n\tconst aboutEntry = document.querySelector('#firstrunwizard_about button')\n\n\tconst addListener = () => {\n\t\tconst aboutEntry = document.querySelector('#firstrunwizard_about button')\n\n\t\taboutEntry.addEventListener('click', async function(event) {\n\t\t\tevent.stopPropagation()\n\t\t\tevent.preventDefault()\n\t\t\tconst focusReturn = document.querySelector('[aria-controls=\"header-menu-user-menu\"]') ?? undefined\n\t\t\tconst { open } = await import('./main.js')\n\t\t\topen(focusReturn)\n\t\t\tOC.hideMenus(() => false)\n\t\t})\n\t}\n\n\tif (aboutEntry) {\n\t\taddListener()\n\t} else {\n\t\twindow._nc_event_bus.subscribe('core:user-menu:mounted', addListener)\n\t}\n})\n"],"file":"js/firstrunwizard-about.mjs"} \ No newline at end of file diff --git a/js/firstrunwizard-activate.mjs b/js/firstrunwizard-activate.mjs index d03dae8f0..565f63e3a 100644 --- a/js/firstrunwizard-activate.mjs +++ b/js/firstrunwizard-activate.mjs @@ -1,8 +1,3 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [OC.filePath('firstrunwizard', '', 'js/main-BXu4P0tX.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} +const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-BXu4P0tX.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); /*! third party licenses: js/vendor.LICENSE.txt */ import{_ as t}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",async function(){(await t(()=>import("./main-BXu4P0tX.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()}); diff --git a/js/firstrunwizard-activate.mjs.map b/js/firstrunwizard-activate.mjs.map index f17e0f35d..618302494 100644 --- a/js/firstrunwizard-activate.mjs.map +++ b/js/firstrunwizard-activate.mjs.map @@ -1 +1 @@ -{"version":3,"mappings":";;;;;;;0DA8BA,SAAS,iBAAiB,mBAAoB,gBAAiB,EAC/C,MAAKA,EAAA,IAAC,OAAO,qBAAW,EAAC,yCACjC,KAAM,CACd,CAAC","names":["__vitePreload"],"ignoreList":[],"sources":["../src/first-run.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen \n *\n * @author Ferdinand Thiessen \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\n/**\n * Handling opening the first-run-wizard the first time\n *\n * Dynamically load the first-run-wizard and open it when loaded\n */\ndocument.addEventListener('DOMContentLoaded', async function() {\n\tconst wizard = await import('./main.js')\n\twizard.open()\n})\n"],"file":"js/firstrunwizard-activate.mjs"} \ No newline at end of file +{"version":3,"mappings":";;0DA8BA,SAAS,iBAAiB,mBAAoB,gBAAiB,EAC/C,MAAKA,EAAA,IAAC,OAAO,qBAAW,EAAC,yCACjC,KAAM,CACd,CAAC","names":["__vitePreload"],"ignoreList":[],"sources":["../src/first-run.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2024 Ferdinand Thiessen \n *\n * @author Ferdinand Thiessen \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// eslint-disable-next-line import/no-unresolved, n/no-missing-import\nimport 'vite/modulepreload-polyfill'\n\n/**\n * Handling opening the first-run-wizard the first time\n *\n * Dynamically load the first-run-wizard and open it when loaded\n */\ndocument.addEventListener('DOMContentLoaded', async function() {\n\tconst wizard = await import('./main.js')\n\twizard.open()\n})\n"],"file":"js/firstrunwizard-activate.mjs"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 627e993b8..197691b62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "@nextcloud/vite-config": "^1.2.3", "@vue/tsconfig": "^0.5.1", "sass": "^1.72.0", - "vite": "^5.2.8" + "vite": "^5.2.11" }, "engines": { "node": "^20.0.0", @@ -15132,9 +15132,9 @@ } }, "node_modules/vite": { - "version": "5.2.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.8.tgz", - "integrity": "sha512-OyZR+c1CE8yeHw5V5t59aXsUPPVTHMDjEZz8MgguLL/Q7NblxhZUlTu9xSPqlsUO/y+X7dlU05jdhvyycD55DA==", + "version": "5.2.11", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.11.tgz", + "integrity": "sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==", "dev": true, "dependencies": { "esbuild": "^0.20.1", diff --git a/package.json b/package.json index 8c4d40b39..63b66d28f 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,6 @@ "@nextcloud/vite-config": "^1.2.3", "@vue/tsconfig": "^0.5.1", "sass": "^1.72.0", - "vite": "^5.2.8" + "vite": "^5.2.11" } }