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A,QAAAyM,EACA,mBAAAE,CAAA,CAEF,CClGA,GAJA,OAAO,IAAI,MAAQ,OAAO,IAAI,OAAS,GACvC,OAAO,IAAI,MAAQ,OAAO,IAAI,OAAS,GAGnC,CAAC,OAAO,IAAI,MAAM,OAAQ,CAC7B,MAAMZ,EAAS,IAAIiB,GAActD,CAAM,EACvC,OAAO,OAAO,OAAO,IAAI,MAAO,CAAE,OAAAqC,EAAQ,CAC3C,CAIK9B,OACJgD,GAAuBX,IAA8B,EACrDY,GAAA,GAID,MAAMC,GAAW,IAAIC,GACrB,OAAO,OAAO,OAAO,IAAI,MAAO,CAAE,SAAAD,GAAU,EAC5C,OAAO,OAAO,OAAO,IAAI,MAAM,SAAU,CAAE,QAASE,GAAe,EAEnE,MAAMC,EAAMC,GAAUC,EAAQ,EAC9BF,EAAI,IAAIrB,CAAK,EACbqB,EAAI,IAAK,OAAO,IAAI,MAAM,OAAyB,OAAO,EAC1DA,EAAI,MAAM,UAAU","names":["_hoisted_1","_sfc_main","defineComponent","__props","__emit","emit","isCopied","copy","icon","altText","useCopy","whenever","_ctx","_cache","openBlock","createBlock","NcFormBoxButton","unref","createSlots","withCtx","createTextVNode","toDisplayString","createVNode","NcIconSvgWrapper","createElementVNode","renderSlot","collator","getLanguage","getCanonicalLocale","props","maxLevel","viewConfigStore","useViewConfigStore","viewConfig","computed","isExpanded","views","useVisibleViews","childViews","v","isDescendant","view","parent","parentView","sortedChildViews","a","b","hasChildViews","activeViewId","inject","ref","isActiveView","navigationRoute","dir","isLoading","childViewsLoaded","onMounted","loadChildViews","onExpandCollapse","expanded","folderTreeId","_createBlock","_unref","NcAppNavigationItem","_createVNode","_createElementBlock","_Fragment","_renderList","childView","_component_FilesNavigationListItem","rootViews","sortViews","NcAppNavigationList","_normalizeClass","$style","t","FilesNavigationListItem","onBeforeNavigation","fn","remove","useRouter","onUnmounted","activeStore","useActiveStore","searchStore","useSearchStore","to","from","VIEW_ID","isSearchView","searchLabel","NcAppNavigationSearch","$event","NcActions","mdiSearchWeb","mdiMagnify","NcActionButton","_createTextVNode","_hoisted_3","_mergeProps","$props","_createElementVNode","_openBlock","loadingStorageStats","storageStats","loadState","storageStatsTitle","usedQuotaByte","formatFileSize","quotaByte","storageStatsTooltip","throttleUpdateStorageStats","useThrottleFn","updateStorageStats","onBeforeMount","subscribe","unsubscribe","showStorageFullWarning","event","response","axios","generateUrl","error","logger","showError","ChartPie","NcProgressBar","store","useUserConfigStore","NcAppSettingsSection","NcFormBox","NcFormBoxSwitch","NcRadioGroup","NcRadioGroupButton","mdiFolderOutline","mdiAccountOutline","el","onBeforeUnmount","apiSettings","setting","FilesAppSettingsLegacyApiEntry","actions","useFileActions","actionHotkeys","action","hotkeyToString","hotkey","parts","NcAppSettingsShortcutsSection","NcHotkeyList","NcHotkey","webDavDocsUrl","webDavUrl","generateRemoteUrl","getCurrentUser","appPasswordUrl","isTwoFactorEnabled","NcFormBoxCopyButton","useHotKey","showKeyboardShortcuts","nextTick","NcAppSettingsDialog","FilesAppSettingsGeneral","FilesAppSettingsAppearance","FilesAppSettingsLegacyApi","FilesAppSettingsWarnings","FilesAppSettingsWebDav","FilesAppSettingsShortcuts","sidebar","useSidebarStore","settingsOpened","allViews","useViews","route","useRoute","currentViewId","currentNavigationViewId","matchingParams","key","value","matchingDir","provide","watchEffect","id","getNavigation","NcAppNavigation","FilesNavigationSearch","FilesNavigationList","FilesAppSettings","NavigationQuota","IconCog","useHotKeys","userConfigStore","directory","useRouteParameters","router","getFileActions","executeAction","goToParentDir","toggleGridView","dirname","isPublic","isPublicShare","NcContent","FilesNavigation","_component_RouterView","FilesSidebar","Setting","#name","#options","name","options","FilesListComponent","__vitePreload","stringifyNextcloudQuery","query","stringifyQuery","createRouter","createWebHistory","defaultView","isNavigationFailure","NavigationFailureType","fromDir","toDir","relative","getNode","useFilesStore","getPath","usePathsStore","fromSource","fileId","node","Router","params","pinia","source","parentFolder","Settings$1","e","createFilesStoreDataProvider","filesPinia","folder","setNode","newNode","onOpenStateChanged","isOpen","routerHookRegistered","path","fetchNode","RouterService","setSidebarDataProvider","exposeSidebarApi","Settings","SettingsService","SettingsModel","app","createApp","FilesApp"],"ignoreList":[0,5],"sources":["../node_modules/@nextcloud/vue/dist/chunks/NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang.mjs","../apps/files/src/components/FilesNavigationListItem.vue","../apps/files/src/components/FilesNavigationList.vue","../apps/files/src/composables/useBeforeNavigation.ts","../apps/files/src/components/FilesNavigationSearch.vue","../node_modules/vue-material-design-icons/ChartPieOutline.vue","../apps/files/src/components/NavigationQuota.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsAppearance.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsGeneral.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsLegacyApiEntry.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsLegacyApi.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsShortcuts.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsWarnings.vue","../apps/files/src/components/FilesAppSettings/FilesAppSettingsWebDav.vue","../apps/files/src/views/FilesAppSettings.vue","../apps/files/src/views/FilesNavigation.vue","../apps/files/src/composables/useHotKeys.ts","../apps/files/src/FilesApp.vue","../apps/files/src/models/Setting.ts","../apps/files/src/router/router.ts","../apps/files/src/services/Settings.js","../apps/files/src/sidebar/providers/filesStore.ts","../apps/files/src/main.ts"],"sourcesContent":["import { defineComponent, openBlock, createBlock, unref, createSlots, withCtx, createVNode, createTextVNode, toDisplayString, createElementVNode, renderSlot } from \"vue\";\nimport { whenever } from \"@vueuse/core\";\nimport { N as NcFormBoxButton } from \"./NcFormBoxButton.mjs\";\nimport { N as NcIconSvgWrapper } from \"./NcIconSvgWrapper.mjs\";\nimport { u as useCopy } from \"./useCopy.mjs\";\nconst _hoisted_1 = { class: \"hidden-visually\" };\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcFormBoxCopyButton\",\n props: {\n label: { default: () => void 0 },\n value: {},\n disabled: { type: Boolean, default: false }\n },\n emits: [\"copy\"],\n setup(__props, { emit: __emit }) {\n const emit = __emit;\n const { isCopied, copy, icon, altText } = useCopy(() => __props.value);\n whenever(isCopied, () => emit(\"copy\"));\n return (_ctx, _cache) => {\n return openBlock(), createBlock(NcFormBoxButton, {\n disabled: __props.disabled,\n invertedAccent: \"\",\n onClick: unref(copy)\n }, createSlots({\n description: withCtx(() => [\n createTextVNode(toDisplayString(__props.value), 1)\n ]),\n icon: withCtx(() => [\n createVNode(NcIconSvgWrapper, {\n path: unref(icon),\n inline: \"\"\n }, null, 8, [\"path\"])\n ]),\n _: 2\n }, [\n _ctx.$slots.default || __props.label ? {\n name: \"default\",\n fn: withCtx(() => [\n createElementVNode(\"span\", _hoisted_1, toDisplayString(unref(altText)), 1),\n renderSlot(_ctx.$slots, \"default\", {}, () => [\n createTextVNode(toDisplayString(__props.label), 1)\n ])\n ]),\n key: \"0\"\n } : void 0\n ]), 1032, [\"disabled\", \"onClick\"]);\n };\n }\n});\nexport {\n _sfc_main as _\n};\n//# sourceMappingURL=NcFormBoxCopyButton.vue_vue_type_script_setup_true_lang.mjs.map\n","<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type { IView } from '@nextcloud/files'\n\nimport { getCanonicalLocale, getLanguage } from '@nextcloud/l10n'\nimport { computed, inject, onMounted, ref } from 'vue'\nimport NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'\nimport NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'\nimport { useVisibleViews } from '../composables/useViews.ts'\nimport { folderTreeId } from '../services/FolderTree.ts'\nimport { useViewConfigStore } from '../store/viewConfig.ts'\n\nconst props = withDefaults(defineProps<{\n\tview: IView\n\tlevel?: number\n}>(), {\n\tlevel: 0,\n})\n\nconst maxLevel = 6 // Limit nesting to not exceed max call stack size\nconst viewConfigStore = useViewConfigStore()\nconst viewConfig = computed(() => viewConfigStore.viewConfigs[props.view.id])\nconst isExpanded = computed(() => viewConfig.value\n\t? (viewConfig.value.expanded === true)\n\t: (props.view.expanded === true))\n\nconst views = useVisibleViews()\nconst childViews = computed(() => {\n\tif (props.level < maxLevel) {\n\t\treturn views.value.filter((v) => v.parent === props.view.id)\n\t} else {\n\t\treturn views.value.filter((v) => isDescendant(v, props.view.id))\n\t}\n\n\t/**\n\t * Check if a view is a descendant of another view by recursively traversing up the parent chain.\n\t *\n\t * @param view - The view to check\n\t * @param parent - The parent view id to check against\n\t */\n\tfunction isDescendant(view: IView, parent: string): boolean {\n\t\tif (!view.parent) {\n\t\t\treturn false\n\t\t} else if (view.parent === parent) {\n\t\t\treturn true\n\t\t}\n\n\t\tconst parentView = views.value.find((v) => v.id === view.parent)\n\t\treturn !!parentView && isDescendant(parentView, parent)\n\t}\n})\nconst sortedChildViews = computed(() => childViews.value.slice().sort((a, b) => {\n\tif (a.order !== undefined && b.order === undefined) {\n\t\treturn -1\n\t} else if (a.order === undefined && b.order !== undefined) {\n\t\treturn 1\n\t}\n\treturn collator.compare(a.name, b.name)\n}))\nconst hasChildViews = computed(() => childViews.value.length > 0)\nconst activeViewId = inject('currentNavigationView', ref<string | undefined>(undefined))\nconst isActiveView = computed(() => activeViewId.value === props.view.id)\n\nconst navigationRoute = computed(() => {\n\tif (props.view.params) {\n\t\tconst { dir } = props.view.params\n\t\treturn { name: 'filelist', params: { ...props.view.params }, query: { dir } }\n\t}\n\treturn { name: 'filelist', params: { view: props.view.id } }\n})\n\nconst isLoading = ref(false)\nconst childViewsLoaded = ref(false)\n\n/**\n * Load child views on mount if the view is expanded by default\n * but has no child views loaded yet.\n */\nonMounted(() => {\n\tif (isExpanded.value && !hasChildViews.value) {\n\t\tloadChildViews()\n\t}\n})\n\n/**\n * Handle expanding/collapsing the navigation item.\n *\n * @param expanded - The expanded state\n */\nasync function onExpandCollapse(expanded: boolean) {\n\tif (viewConfig.value) {\n\t\tviewConfig.value.expanded = expanded\n\t} else if (expanded) {\n\t\tviewConfigStore.viewConfigs[props.view.id] = { expanded: true }\n\t}\n\n\t// folder tree should only show current directory by default,\n\t// so we don't want to persist the expanded state in the store for its views\n\tif (!props.view.id.startsWith(`${folderTreeId}::`)) {\n\t\tviewConfigStore.update(props.view.id, 'expanded', expanded)\n\t}\n\n\tif (expanded) {\n\t\tawait loadChildViews()\n\t}\n}\n\n/**\n * Load child views if a loader function is provided and child views haven't been loaded yet.\n */\nasync function loadChildViews() {\n\tif (props.view.loadChildViews && !childViewsLoaded.value) {\n\t\tisLoading.value = true\n\t\ttry {\n\t\t\tawait props.view.loadChildViews(props.view)\n\t\t\tchildViewsLoaded.value = true\n\t\t} finally {\n\t\t\tisLoading.value = false\n\t\t}\n\t}\n}\n</script>\n\n<script lang=\"ts\">\nconst collator = Intl.Collator(\n\t[getLanguage(), getCanonicalLocale()],\n\t{ numeric: true, usage: 'sort' },\n)\n</script>\n\n<template>\n\t<NcAppNavigationItem\n\t\tclass=\"files-navigation__item\"\n\t\t:data-cy-files-navigation-item=\"view.id\"\n\t\t:active=\"isActiveView\"\n\t\tallowCollapse\n\t\t:loading=\"isLoading\"\n\t\t:name=\"view.name\"\n\t\t:open=\"isExpanded\"\n\t\t:pinned=\"view.sticky\"\n\t\t:to=\"navigationRoute\"\n\t\t@update:open=\"onExpandCollapse\">\n\t\t<template v-if=\"view.icon\" #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"view.icon\" />\n\t\t</template>\n\n\t\t<!-- Recursively nest child views -->\n\t\t<template v-if=\"hasChildViews || (!childViewsLoaded && view.loadChildViews)\" #default>\n\t\t\t<FilesNavigationListItem\n\t\t\t\tv-for=\"childView in sortedChildViews\"\n\t\t\t\t:key=\"childView.id\"\n\t\t\t\t:level=\"level + 1\"\n\t\t\t\t:view=\"childView\" />\n\t\t</template>\n\t</NcAppNavigationItem>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type { IView } from '@nextcloud/files'\n\nimport { getCanonicalLocale, getLanguage, t } from '@nextcloud/l10n'\nimport { computed } from 'vue'\nimport NcAppNavigationList from '@nextcloud/vue/components/NcAppNavigationList'\nimport FilesNavigationListItem from './FilesNavigationListItem.vue'\nimport { useVisibleViews } from '../composables/useViews.ts'\n\nconst views = useVisibleViews()\nconst rootViews = computed(() => views.value\n\t.filter((view) => !view.parent)\n\t.sort(sortViews))\n\nconst collator = Intl.Collator(\n\t[getLanguage(), getCanonicalLocale()],\n\t{ numeric: true, usage: 'sort' },\n)\n\n/**\n * Sort views by their order property if available, otherwise sort alphabetically by name.\n *\n * @param a - first view\n * @param b - second view\n */\nfunction sortViews(a: IView, b: IView): number {\n\tif (a.order !== undefined && b.order !== undefined) {\n\t\treturn a.order - b.order\n\t} else if (a.order !== undefined && b.order === undefined) {\n\t\treturn -1\n\t} else if (a.order === undefined && b.order !== undefined) {\n\t\treturn 1\n\t}\n\treturn collator.compare(a.name, b.name)\n}\n</script>\n\n<template>\n\t<NcAppNavigationList\n\t\t:class=\"$style.filesNavigationList\"\n\t\t:aria-label=\"t('files', 'Views')\">\n\t\t<FilesNavigationListItem\n\t\t\tv-for=\"view in rootViews\"\n\t\t\t:key=\"view.id\"\n\t\t\t:view=\"view\" />\n\t</NcAppNavigationList>\n</template>\n\n<style module>\n.filesNavigationList {\n\theight: 100%; /* Fill all available space for sticky views */\n}\n</style>\n","/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { NavigationGuard } from 'vue-router'\n\nimport { onUnmounted } from 'vue'\nimport { useRouter } from 'vue-router'\n\n/**\n * Register a global navigation guard for the lifetime of the calling component.\n *\n * For components that are not rendered by a `RouterView` - such as the ones in\n * the app navigation - the in-component guards never run, so they need this.\n *\n * @param fn - The navigation guard\n */\nexport function onBeforeNavigation(fn: NavigationGuard) {\n\tconst router = useRouter()\n\tconst remove = router.beforeResolve(fn)\n\tonUnmounted(remove)\n}\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { mdiMagnify, mdiSearchWeb } from '@mdi/js'\nimport { t } from '@nextcloud/l10n'\nimport { computed } from 'vue'\nimport NcActionButton from '@nextcloud/vue/components/NcActionButton'\nimport NcActions from '@nextcloud/vue/components/NcActions'\nimport NcAppNavigationSearch from '@nextcloud/vue/components/NcAppNavigationSearch'\nimport NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'\nimport { onBeforeNavigation } from '../composables/useBeforeNavigation.ts'\nimport { useActiveStore } from '../store/active.ts'\nimport { useSearchStore } from '../store/search.ts'\nimport { VIEW_ID } from '../views/search.ts'\n\nconst activeStore = useActiveStore()\nconst searchStore = useSearchStore()\n\n/**\n * When the route is changed from search view to something different we need to clear the search box.\n *\n * This component is rendered by the navigation, not by a `RouterView`, so the\n * in-component guards do not apply to it and a global guard is needed.\n */\nonBeforeNavigation((to, from) => {\n\tif (to.params.view !== VIEW_ID\n\t\t&& (from.params.view === VIEW_ID || from.query.dir !== to.query.dir)) {\n\t\t// we are leaving the search view or navigate to another directory -> unset the query\n\t\tsearchStore.query = ''\n\t\tsearchStore.scope = 'filter'\n\t} else if (to.params.view === VIEW_ID && from.params.view === VIEW_ID) {\n\t\t// fix the query if the user refreshed the view\n\t\tif (searchStore.query && !to.query.query) {\n\t\t\treturn {\n\t\t\t\t...to,\n\t\t\t\tquery: {\n\t\t\t\t\t...to.query,\n\t\t\t\t\tquery: searchStore.query,\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\t}\n})\n\n/**\n * Are we currently on the search view.\n * Needed to disable the action menu (we cannot change the search mode there)\n */\nconst isSearchView = computed(() => activeStore.activeView?.id === VIEW_ID)\n\n/**\n * Different searchbox label depending if filtering or searching\n */\nconst searchLabel = computed(() => {\n\tif (searchStore.scope === 'globally') {\n\t\treturn t('files', 'Search everywhere')\n\t}\n\treturn t('files', 'Search here')\n})\n</script>\n\n<template>\n\t<NcAppNavigationSearch v-model=\"searchStore.query\" :label=\"searchLabel\">\n\t\t<template #actions>\n\t\t\t<NcActions :aria-label=\"t('files', 'Search scope options')\" :disabled=\"isSearchView\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path=\"searchStore.scope === 'globally' ? mdiSearchWeb : mdiMagnify\" />\n\t\t\t\t</template>\n\t\t\t\t<NcActionButton closeAfterClick @click=\"searchStore.scope = 'filter'\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<NcIconSvgWrapper :path=\"mdiMagnify\" />\n\t\t\t\t\t</template>\n\t\t\t\t\t{{ t('files', 'Search here') }}\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton closeAfterClick @click=\"searchStore.scope = 'globally'\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<NcIconSvgWrapper :path=\"mdiSearchWeb\" />\n\t\t\t\t\t</template>\n\t\t\t\t\t{{ t('files', 'Search everywhere') }}\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActions>\n\t\t</template>\n\t</NcAppNavigationSearch>\n</template>\n","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : 'true'\"\n :aria-label=\"title\"\n class=\"material-design-icon chart-pie-outline-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M13 11H19.95Q19.58 8.25 17.66 6.34 15.75 4.43 13 4.05M11 19.95V4.05Q8 4.43 6 6.69 4 8.95 4 12T6 17.31Q8 19.58 11 19.95M13 19.95Q15.75 19.6 17.68 17.68 19.6 15.75 19.95 13H13M12 12M12 22Q9.93 22 8.1 21.21 6.28 20.43 4.93 19.08 3.58 17.73 2.79 15.9 2 14.08 2 12T2.79 8.1Q3.58 6.28 4.93 4.93 6.28 3.58 8.1 2.79 9.93 2 12 2T15.89 2.79Q17.7 3.58 19.06 4.94 20.43 6.3 21.21 8.11 22 9.93 22 12 22 14.05 21.21 15.88 20.43 17.7 19.08 19.06 17.73 20.43 15.9 21.21 14.08 22 12 22Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"ChartPieOutlineIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n -->\n\n<script setup lang=\"ts\">\nimport axios from '@nextcloud/axios'\nimport { showError } from '@nextcloud/dialogs'\nimport { subscribe, unsubscribe } from '@nextcloud/event-bus'\nimport { formatFileSize } from '@nextcloud/files'\nimport { loadState } from '@nextcloud/initial-state'\nimport { t } from '@nextcloud/l10n'\nimport { generateUrl } from '@nextcloud/router'\nimport { useThrottleFn } from '@vueuse/core'\nimport { computed, onBeforeMount, onMounted, onUnmounted, ref } from 'vue'\nimport NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'\nimport NcProgressBar from '@nextcloud/vue/components/NcProgressBar'\nimport ChartPie from 'vue-material-design-icons/ChartPieOutline.vue'\nimport { logger } from '../utils/logger.ts'\n\ntype StorageStats = {\n\tused: number\n\tfree: number\n\ttotal: number\n\tquota: number\n\trelative: number\n}\n\nconst loadingStorageStats = ref(false)\nconst storageStats = ref(loadState<StorageStats | null>('files', 'storageStats', null))\n\nconst storageStatsTitle = computed(() => {\n\tconst usedQuotaByte = formatFileSize(storageStats.value?.used ?? 0, false, false)\n\tconst quotaByte = formatFileSize(storageStats.value?.total ?? 0, false, false)\n\n\t// If no quota set\n\tif (storageStats.value === null || storageStats.value?.quota < 0) {\n\t\treturn t('files', '{usedQuotaByte} used', { usedQuotaByte })\n\t}\n\n\treturn t('files', '{used} of {quota} used', {\n\t\tused: usedQuotaByte,\n\t\tquota: quotaByte,\n\t})\n})\n\nconst storageStatsTooltip = computed(() => {\n\tif (!storageStats.value?.relative) {\n\t\treturn ''\n\t}\n\n\treturn t('files', '{relative}% used', storageStats.value)\n})\n\nconst throttleUpdateStorageStats = useThrottleFn(updateStorageStats, 2000)\nonBeforeMount(() => {\n\tsubscribe('files:node:created', throttleUpdateStorageStats)\n\tsubscribe('files:node:deleted', throttleUpdateStorageStats)\n\tsubscribe('files:node:moved', throttleUpdateStorageStats)\n\tsubscribe('files:node:updated', throttleUpdateStorageStats)\n})\nonUnmounted(() => {\n\tunsubscribe('files:node:created', throttleUpdateStorageStats)\n\tunsubscribe('files:node:deleted', throttleUpdateStorageStats)\n\tunsubscribe('files:node:moved', throttleUpdateStorageStats)\n\tunsubscribe('files:node:updated', throttleUpdateStorageStats)\n})\n\nonMounted(() => {\n\t// If the user has a quota set, warn if the available account storage is <=0\n\t//\n\t// NOTE: This doesn't catch situations where actual *server*\n\t// disk (non-quota) space is low, but those should probably\n\t// be handled differently anyway since a regular user can't\n\t// can't do much about them (If we did want to indicate server disk\n\t// space matters to users, we'd probably want to use a warning\n\t// specific to that situation anyhow. So this covers warning covers\n\t// our primary day-to-day concern (individual account quota usage).\n\t//\n\tif (storageStats.value && storageStats.value?.quota > 0 && storageStats.value?.free === 0) {\n\t\tshowStorageFullWarning()\n\t}\n})\n\n/**\n * Update the storage stats\n * Throttled at max 1 refresh per minute\n *\n * @param event - If user interaction\n */\nasync function updateStorageStats(event?: unknown) {\n\tif (loadingStorageStats.value) {\n\t\treturn\n\t}\n\n\tloadingStorageStats.value = true\n\ttry {\n\t\tconst response = await axios.get(generateUrl('/apps/files/api/v1/stats'))\n\t\tif (!response?.data?.data) {\n\t\t\tthrow new Error('Invalid storage stats')\n\t\t}\n\n\t\t// Warn the user if the available account storage changed from > 0 to 0\n\t\t// (unless only because quota was intentionally set to 0 by admin in the interim)\n\t\tif (storageStats.value && storageStats.value?.free > 0 && response.data.data?.free === 0 && response.data.data?.quota > 0) {\n\t\t\tshowStorageFullWarning()\n\t\t}\n\n\t\tstorageStats.value = response.data.data\n\t} catch (error) {\n\t\tlogger.error('Could not refresh storage stats', { error })\n\t\t// Only show to the user if it was manually triggered\n\t\tif (event) {\n\t\t\tshowError(t('files', 'Could not refresh storage stats'))\n\t\t}\n\t} finally {\n\t\tloadingStorageStats.value = false\n\t}\n}\n\n/**\n * Show a warning that the user's storage is full and files can not be updated or synced anymore\n */\nfunction showStorageFullWarning() {\n\tshowError(t('files', 'Your storage is full, files can not be updated or synced anymore!'))\n}\n</script>\n\n<template>\n\t<NcAppNavigationItem\n\t\tv-if=\"storageStats\"\n\t\t:aria-description=\"t('files', 'Storage information')\"\n\t\t:class=\"{ 'app-navigation-entry__settings-quota--not-unlimited': storageStats.quota >= 0 }\"\n\t\t:loading=\"loadingStorageStats\"\n\t\t:name=\"storageStatsTitle\"\n\t\t:title=\"storageStatsTooltip\"\n\t\tclass=\"app-navigation-entry__settings-quota\"\n\t\tdata-cy-files-navigation-settings-quota\n\t\t@click.stop.prevent=\"throttleUpdateStorageStats\">\n\t\t<template #icon>\n\t\t\t<ChartPie :size=\"20\" />\n\t\t</template>\n\n\t\t<!-- Progress bar -->\n\t\t<template #extra>\n\t\t\t<NcProgressBar\n\t\t\t\tv-if=\"storageStats.quota >= 0\"\n\n\t\t\t\t:aria-label=\"t('files', 'Storage quota')\"\n\t\t\t\t:error=\"storageStats.relative > 80\"\n\t\t\t\t:value=\"Math.min(storageStats.relative, 100)\" />\n\t\t</template>\n\t</NcAppNavigationItem>\n</template>\n\n<style lang=\"scss\" scoped>\n// User storage stats display\n.app-navigation-entry__settings-quota {\n\t// Align title with progress and icon\n\t--app-navigation-quota-margin: calc((var(--default-clickable-area) - 24px) / 2); // 20px icon size and 4px progress bar\n\n\t&--not-unlimited :deep(.app-navigation-entry__name) {\n\t\tline-height: 1;\n\t\tmargin-top: var(--app-navigation-quota-margin);\n\t}\n\n\tprogress {\n\t\tposition: absolute;\n\t\tbottom: var(--app-navigation-quota-margin);\n\t\tmargin-inline-start: var(--default-clickable-area);\n\t\twidth: calc(100% - (1.5 * var(--default-clickable-area)));\n\t}\n}\n</style>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'\nimport NcFormBox from '@nextcloud/vue/components/NcFormBox'\nimport NcFormBoxSwitch from '@nextcloud/vue/components/NcFormBoxSwitch'\nimport { useUserConfigStore } from '../../store/userconfig.ts'\n\nconst store = useUserConfigStore()\n</script>\n\n<template>\n\t<NcAppSettingsSection id=\"appearance\" :name=\"t('files', 'Appearance')\">\n\t\t<NcFormBox>\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.show_hidden\"\n\t\t\t\t:label=\"t('files', 'Show hidden files')\"\n\t\t\t\t@update:modelValue=\"store.update('show_hidden', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.show_mime_column\"\n\t\t\t\t:label=\"t('files', 'Show file type column')\"\n\t\t\t\t@update:modelValue=\"store.update('show_mime_column', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.show_files_extensions\"\n\t\t\t\t:label=\"t('files', 'Show file extensions')\"\n\t\t\t\t@update:modelValue=\"store.update('show_files_extensions', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.crop_image_previews\"\n\t\t\t\t:label=\"t('files', 'Crop image previews')\"\n\t\t\t\t@update:modelValue=\"store.update('crop_image_previews', $event)\" />\n\t\t</NcFormBox>\n\t</NcAppSettingsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { mdiAccountOutline, mdiFolderOutline } from '@mdi/js'\nimport { t } from '@nextcloud/l10n'\nimport NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'\nimport NcFormBox from '@nextcloud/vue/components/NcFormBox'\nimport NcFormBoxSwitch from '@nextcloud/vue/components/NcFormBoxSwitch'\nimport NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'\nimport NcRadioGroup from '@nextcloud/vue/components/NcRadioGroup'\nimport NcRadioGroupButton from '@nextcloud/vue/components/NcRadioGroupButton'\nimport { useUserConfigStore } from '../../store/userconfig.ts'\n\nconst store = useUserConfigStore()\n</script>\n\n<template>\n\t<NcAppSettingsSection\n\t\tid=\"settings\"\n\t\t:name=\"t('files', 'General')\">\n\t\t<NcFormBox>\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.sort_favorites_first\"\n\t\t\t\t:label=\"t('files', 'Sort favorites first')\"\n\t\t\t\t@update:modelValue=\"store.update('sort_favorites_first', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.sort_folders_first\"\n\t\t\t\t:label=\"t('files', 'Sort folders before files')\"\n\t\t\t\t@update:modelValue=\"store.update('sort_folders_first', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.folder_tree\"\n\t\t\t\t:label=\"t('files', 'Enable folder tree view')\"\n\t\t\t\t@update:modelValue=\"store.update('folder_tree', $event)\" />\n\t\t</NcFormBox>\n\t\t<NcRadioGroup\n\t\t\tv-model=\"store.userConfig.default_view\"\n\t\t\t:label=\"t('files', 'Default view')\"\n\t\t\t@update:modelValue=\"store.update('default_view', $event)\">\n\t\t\t<NcRadioGroupButton :label=\"t('files', 'All files')\" value=\"files\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path=\"mdiFolderOutline\" />\n\t\t\t\t</template>\n\t\t\t</NcRadioGroupButton>\n\t\t\t<NcRadioGroupButton :label=\"t('files', 'Personal files')\" value=\"personal\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcIconSvgWrapper :path=\"mdiAccountOutline\" />\n\t\t\t\t</template>\n\t\t\t</NcRadioGroupButton>\n\t\t</NcRadioGroup>\n\t</NcAppSettingsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type Setting from '../../models/Setting.ts'\n\nimport { onBeforeMount, onBeforeUnmount, onMounted, ref } from 'vue'\n\nconst props = defineProps<{\n\tsetting: Setting\n}>()\n\nconst el = ref<HTMLElement>()\n\nonBeforeMount(() => props.setting.open())\nonBeforeUnmount(() => props.setting.close())\nonMounted(() => {\n\tel.value!.appendChild(props.setting.el())\n})\n</script>\n\n<template>\n\t<div ref=\"el\" />\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type Setting from '../../models/Setting.ts'\n\nimport { t } from '@nextcloud/l10n'\nimport NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'\nimport FilesAppSettingsLegacyApiEntry from './FilesAppSettingsLegacyApiEntry.vue'\n\nconst apiSettings = ((window.OCA?.Files?.Settings?.settings || []) as Setting[])\n\t.sort((a, b) => {\n\t\tif (a.order && b.order) {\n\t\t\treturn a.order - b.order\n\t\t}\n\t\treturn a.name.localeCompare(b.name)\n\t})\n</script>\n\n<template>\n\t<NcAppSettingsSection\n\t\tv-if=\"apiSettings.length !== 0\"\n\t\tid=\"api-settings\"\n\t\t:name=\"t('files', 'Additional settings')\">\n\t\t<FilesAppSettingsLegacyApiEntry v-for=\"setting in apiSettings\" :key=\"setting.name\" :setting=\"setting\" />\n\t</NcAppSettingsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport type { IHotkeyConfig } from '@nextcloud/files'\n\nimport { t } from '@nextcloud/l10n'\nimport { computed } from 'vue'\nimport NcAppSettingsShortcutsSection from '@nextcloud/vue/components/NcAppSettingsShortcutsSection'\nimport NcHotkey from '@nextcloud/vue/components/NcHotkey'\nimport NcHotkeyList from '@nextcloud/vue/components/NcHotkeyList'\nimport { useFileActions } from '../../composables/useFileActions.ts'\n\nconst actions = useFileActions()\nconst actionHotkeys = computed(() => actions.value\n\t.filter((action) => !!action.hotkey)\n\t.sort((a, b) => (a.order || 0) - (b.order || 0))\n\t.map((action) => ({\n\t\tid: action.id,\n\t\tlabel: action.hotkey!.description,\n\t\thotkey: hotkeyToString(action.hotkey!),\n\t})))\n\n/**\n * Convert a hotkey configuration to a hotkey string.\n *\n * @param hotkey - The hotkey configuration\n */\nfunction hotkeyToString(hotkey: IHotkeyConfig): string {\n\tconst parts: string[] = []\n\tif (hotkey.ctrl) {\n\t\tparts.push('Control')\n\t}\n\tif (hotkey.alt) {\n\t\tparts.push('Alt')\n\t}\n\tif (hotkey.shift) {\n\t\tparts.push('Shift')\n\t}\n\tif (hotkey.key.match(/^[a-z]$/)) {\n\t\tparts.push(hotkey.key.toUpperCase())\n\t} else {\n\t\tparts.push(hotkey.key)\n\t}\n\treturn parts.join(' ')\n}\n</script>\n\n<template>\n\t<NcAppSettingsShortcutsSection>\n\t\t<NcHotkeyList :label=\"t('files', 'Actions')\">\n\t\t\t<NcHotkey :label=\"t('files', 'File actions')\" hotkey=\"A\" />\n\n\t\t\t<NcHotkey\n\t\t\t\tv-for=\"hotkey of actionHotkeys\"\n\t\t\t\t:key=\"hotkey.id\"\n\t\t\t\t:label=\"hotkey.label\"\n\t\t\t\t:hotkey=\"hotkey.hotkey\" />\n\t\t</NcHotkeyList>\n\n\t\t<NcHotkeyList :label=\"t('files', 'Selection')\">\n\t\t\t<NcHotkey :label=\"t('files', 'Select all files')\" hotkey=\"Control A\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Deselect all')\" hotkey=\"Escape\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Select or deselect')\" hotkey=\"Control Space\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Select a range')\" hotkey=\"Control Shift Space\" />\n\t\t</NcHotkeyList>\n\n\t\t<NcHotkeyList :label=\"t('files', 'Navigation')\">\n\t\t\t<NcHotkey :label=\"t('files', 'Go to parent folder')\" hotkey=\"Alt ArrowUp\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Go to file above')\" hotkey=\"ArrowUp\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Go to file below')\" hotkey=\"ArrowDown\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Go left in grid')\" hotkey=\"ArrowLeft\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Go right in grid')\" hotkey=\"ArrowRight\" />\n\t\t</NcHotkeyList>\n\n\t\t<NcHotkeyList :label=\"t('files', 'View')\">\n\t\t\t<NcHotkey :label=\"t('files', 'Toggle grid view')\" hotkey=\"V\" />\n\t\t\t<NcHotkey :label=\"t('files', 'Show those shortcuts')\" hotkey=\"?\" />\n\t\t</NcHotkeyList>\n\t</NcAppSettingsShortcutsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script lang=\"ts\" setup>\nimport { t } from '@nextcloud/l10n'\nimport NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'\nimport NcFormBox from '@nextcloud/vue/components/NcFormBox'\nimport NcFormBoxSwitch from '@nextcloud/vue/components/NcFormBoxSwitch'\nimport { useUserConfigStore } from '../../store/userconfig.ts'\n\nconst store = useUserConfigStore()\n</script>\n\n<template>\n\t<NcAppSettingsSection id=\"warning\" :name=\"t('files', 'Warnings')\">\n\t\t<NcFormBox>\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.show_dialog_file_extension\"\n\t\t\t\t:label=\"t('files', 'Warn before changing a file extension')\"\n\t\t\t\t@update:modelValue=\"store.update('show_dialog_file_extension', $event)\" />\n\t\t\t<NcFormBoxSwitch\n\t\t\t\tv-model=\"store.userConfig.show_dialog_deletion\"\n\t\t\t\t:label=\"t('files', 'Warn before deleting a file')\"\n\t\t\t\t@update:modelValue=\"store.update('show_dialog_deletion', $event)\" />\n\t\t</NcFormBox>\n\t</NcAppSettingsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script lang=\"ts\" setup>\nimport { getCurrentUser } from '@nextcloud/auth'\nimport { loadState } from '@nextcloud/initial-state'\nimport { t } from '@nextcloud/l10n'\nimport { generateRemoteUrl, generateUrl } from '@nextcloud/router'\nimport NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'\nimport NcFormBox from '@nextcloud/vue/components/NcFormBox'\nimport NcFormBoxButton from '@nextcloud/vue/components/NcFormBoxButton'\nimport NcFormBoxCopyButton from '@nextcloud/vue/components/NcFormBoxCopyButton'\n\nconst webDavUrl = generateRemoteUrl('dav/files/' + encodeURIComponent(getCurrentUser()!.uid))\nconst webDavDocsUrl = 'https://docs.nextcloud.com/server/stable/go.php?to=user-webdav'\nconst appPasswordUrl = generateUrl('/settings/user/security#generate-app-token-section')\nconst isTwoFactorEnabled = loadState('files', 'isTwoFactorEnabled', false)\n</script>\n\n<template>\n\t<NcAppSettingsSection id=\"webdav\" name=\"WebDAV\">\n\t\t<NcFormBox>\n\t\t\t<NcFormBoxCopyButton :label=\"t('files', 'WebDAV URL')\" :value=\"webDavUrl\" />\n\t\t\t<NcFormBoxButton\n\t\t\t\tv-if=\"isTwoFactorEnabled\"\n\t\t\t\t:label=\"t('files', 'Create an app password')\"\n\t\t\t\t:description=\"t('files', 'Required for WebDAV authentication because Two-Factor Authentication is enabled for this account.')\"\n\t\t\t\t:href=\"appPasswordUrl\"\n\t\t\t\ttarget=\"_blank\" />\n\t\t\t<NcFormBoxButton\n\t\t\t\t:label=\"t('files', 'How to access files using WebDAV')\"\n\t\t\t\t:href=\"webDavDocsUrl\"\n\t\t\t\ttarget=\"_blank\" />\n\t\t</NcFormBox>\n\t</NcAppSettingsSection>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<script setup lang=\"ts\">\nimport { t } from '@nextcloud/l10n'\nimport { useHotKey } from '@nextcloud/vue/composables/useHotKey'\nimport { nextTick } from 'vue'\nimport NcAppSettingsDialog from '@nextcloud/vue/components/NcAppSettingsDialog'\nimport FilesAppSettingsAppearance from '../components/FilesAppSettings/FilesAppSettingsAppearance.vue'\nimport FilesAppSettingsGeneral from '../components/FilesAppSettings/FilesAppSettingsGeneral.vue'\nimport FilesAppSettingsLegacyApi from '../components/FilesAppSettings/FilesAppSettingsLegacyApi.vue'\nimport FilesAppSettingsShortcuts from '../components/FilesAppSettings/FilesAppSettingsShortcuts.vue'\nimport FilesAppSettingsWarnings from '../components/FilesAppSettings/FilesAppSettingsWarnings.vue'\nimport FilesAppSettingsWebDav from '../components/FilesAppSettings/FilesAppSettingsWebDav.vue'\n\ndefineProps<{\n\topen: boolean\n}>()\n\nconst emit = defineEmits<{\n\t(e: 'close'): void\n\t(e: 'update:open', open: boolean): void\n}>()\n\n// ? opens the settings dialog on the keyboard shortcuts section\nuseHotKey('?', showKeyboardShortcuts, {\n\tstop: true,\n\tprevent: true,\n})\n\n/**\n * Opens the settings dialog and scrolls to the keyboard shortcuts section\n */\nasync function showKeyboardShortcuts() {\n\temit('update:open', true)\n\n\tawait nextTick()\n\tdocument.getElementById('settings-section_keyboard-shortcuts')!.scrollIntoView({\n\t\tbehavior: 'smooth',\n\t\tinline: 'nearest',\n\t})\n}\n</script>\n\n<template>\n\t<NcAppSettingsDialog\n\t\t:legacy=\"false\"\n\t\t:name=\"t('files', 'Files settings')\"\n\t\tnoVersion\n\t\t:open=\"open\"\n\t\tshowNavigation\n\t\t@update:open=\"emit('close')\">\n\t\t<FilesAppSettingsGeneral />\n\t\t<FilesAppSettingsAppearance />\n\t\t<FilesAppSettingsLegacyApi />\n\t\t<FilesAppSettingsWarnings />\n\t\t<FilesAppSettingsWebDav />\n\t\t<FilesAppSettingsShortcuts />\n\t</NcAppSettingsDialog>\n</template>\n","<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<template>\n\t<NcAppNavigation\n\t\tdata-cy-files-navigation\n\t\tclass=\"files-navigation\"\n\t\t:aria-label=\"t('files', 'Files')\">\n\t\t<template #search>\n\t\t\t<FilesNavigationSearch />\n\t\t</template>\n\t\t<template #default>\n\t\t\t<FilesNavigationList />\n\n\t\t\t<!-- Settings modal-->\n\t\t\t<FilesAppSettings\n\t\t\t\tv-model:open=\"settingsOpened\"\n\t\t\t\tdata-cy-files-navigation-settings\n\t\t\t\t@close=\"settingsOpened = false\" />\n\t\t</template>\n\n\t\t<!-- Non-scrollable navigation bottom elements -->\n\t\t<template #footer>\n\t\t\t<ul class=\"app-navigation-entry__settings\">\n\t\t\t\t<!-- User storage usage statistics -->\n\t\t\t\t<NavigationQuota />\n\n\t\t\t\t<!-- Files settings modal toggle-->\n\t\t\t\t<NcAppNavigationItem\n\t\t\t\t\t:name=\"t('files', 'Files settings')\"\n\t\t\t\t\tdata-cy-files-navigation-settings-button\n\t\t\t\t\t@click.prevent.stop=\"settingsOpened = true\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<IconCog :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcAppNavigationItem>\n\t\t\t</ul>\n\t\t</template>\n\t</NcAppNavigation>\n</template>\n\n<script setup lang=\"ts\">\nimport { emit } from '@nextcloud/event-bus'\nimport { getNavigation } from '@nextcloud/files'\nimport { t } from '@nextcloud/l10n'\nimport { computed, provide, ref, watchEffect } from 'vue'\nimport { useRoute } from 'vue-router'\nimport NcAppNavigation from '@nextcloud/vue/components/NcAppNavigation'\nimport NcAppNavigationItem from '@nextcloud/vue/components/NcAppNavigationItem'\nimport IconCog from 'vue-material-design-icons/CogOutline.vue'\nimport FilesNavigationList from '../components/FilesNavigationList.vue'\nimport FilesNavigationSearch from '../components/FilesNavigationSearch.vue'\nimport NavigationQuota from '../components/NavigationQuota.vue'\nimport FilesAppSettings from './FilesAppSettings.vue'\nimport { useViews } from '../composables/useViews.ts'\nimport { useActiveStore } from '../store/active.ts'\nimport { useSidebarStore } from '../store/sidebar.ts'\nimport { logger } from '../utils/logger.ts'\n\nconst sidebar = useSidebarStore()\nconst activeStore = useActiveStore()\n\nconst settingsOpened = ref(false)\n\nconst allViews = useViews()\n\nconst route = useRoute()\nconst currentViewId = computed(() => route?.params?.view || 'files')\n\nconst currentNavigationViewId = computed(() => {\n\tconst views = allViews.value.filter((view) => view.id === currentViewId.value\n\t\t|| view.params?.view === currentViewId.value)\n\tconst matchingParams = views.filter((view) => view.params\n\t\t&& Object.entries(view.params).every(([key, value]) => {\n\t\t\tif (key in route.params) {\n\t\t\t\treturn route.params[key] === value\n\t\t\t}\n\t\t\treturn route.query[key] === value\n\t\t}))\n\t\t.sort((a, b) => Object.keys(b.params!).length - Object.keys(a.params!).length)\n\t// if we have a full match use that\n\tif (matchingParams.length > 0) {\n\t\treturn matchingParams[0]!.id\n\t}\n\t// otherwise check if at least view + dir matches\n\tconst matchingDir = views.find((view) => view.params?.dir === route.query.dir)\n\tif (matchingDir) {\n\t\treturn matchingDir.id\n\t}\n\t// finally fallback to the parent view\n\treturn views.find((view) => view.id === currentViewId.value)?.id\n})\nprovide('currentNavigationView', currentNavigationViewId)\n\nwatchEffect(() => {\n\tif (currentViewId.value !== activeStore.activeView?.id) {\n\t\tlogger.debug(`Route view id ${currentViewId.value} is different from active view id ${activeStore.activeView?.id}, updating active view...`)\n\t\tconst view = allViews.value.find(({ id }) => id === currentViewId.value)!\n\t\tif (view) {\n\t\t\tsidebar.close()\n\t\t\tgetNavigation().setActive(view.id)\n\t\t\temit('files:navigation:changed', view)\n\t\t}\n\t}\n})\n</script>\n\n<style scoped lang=\"scss\">\n.app-navigation {\n\t:deep(.app-navigation-entry.active .button-vue.icon-collapse:not(:hover)) {\n\t\tcolor: var(--color-primary-element-text);\n\t}\n\n\t> ul.app-navigation__list {\n\t\t// Use flex gap value for more elegant spacing\n\t\tpadding-bottom: var(--default-grid-baseline, 4px);\n\t}\n}\n\n.app-navigation-entry__settings {\n\theight: auto !important;\n\toverflow: hidden !important;\n\tpadding-top: 0 !important;\n\t// Prevent shrinking or growing\n\tflex: 0 0 auto;\n}\n\n.files-navigation {\n\t:deep(.app-navigation__content > ul.app-navigation__list) {\n\t\twill-change: scroll-position;\n\t}\n}\n</style>\n","/*!\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getFileActions } from '@nextcloud/files'\nimport { useHotKey } from '@nextcloud/vue/composables/useHotKey'\nimport { dirname } from 'path'\nimport { useRoute, useRouter } from 'vue-router'\nimport { useUserConfigStore } from '../store/userconfig.ts'\nimport { executeAction } from '../utils/actionUtils.ts'\nimport { logger } from '../utils/logger.ts'\nimport { useRouteParameters } from './useRouteParameters.ts'\n\n/**\n * This register the hotkeys for the Files app.\n * As much as possible, we try to have all the hotkeys in one place.\n * Please make sure to add tests for the hotkeys after adding a new one.\n */\nexport function useHotKeys(): void {\n\tconst userConfigStore = useUserConfigStore()\n\tconst { directory } = useRouteParameters()\n\tconst router = useRouter()\n\tconst route = useRoute()\n\n\tconst actions = getFileActions()\n\tfor (const action of actions) {\n\t\tif (!action.hotkey) {\n\t\t\tcontinue\n\t\t}\n\t\tconst key = action.hotkey.key.match(/^[a-z]$/)\n\t\t\t? action.hotkey.key.toUpperCase()\n\t\t\t: action.hotkey.key\n\n\t\tlogger.debug(`Register hotkey for action \"${action.id}\"`)\n\t\tuseHotKey(key, () => executeAction(action, 'hotkey'), {\n\t\t\tstop: true,\n\t\t\tprevent: true,\n\t\t\talt: action.hotkey.alt,\n\t\t\tctrl: action.hotkey.ctrl,\n\t\t\tshift: action.hotkey.shift,\n\t\t})\n\t}\n\n\t// alt+up go to parent directory\n\tuseHotKey('ArrowUp', goToParentDir, {\n\t\tstop: true,\n\t\tprevent: true,\n\t\talt: true,\n\t})\n\n\t// v toggle grid view\n\tuseHotKey('v', toggleGridView, {\n\t\tstop: true,\n\t\tprevent: true,\n\t})\n\n\tlogger.debug('Hotkeys registered')\n\n\t/**\n\t * Use the router to go to the parent directory\n\t */\n\tfunction goToParentDir() {\n\t\tconst dir = dirname(directory.value)\n\n\t\tlogger.debug('Navigating to parent directory', { dir })\n\t\trouter.push({ params: { ...route.params }, query: { ...route.query, dir } })\n\t}\n\n\t/**\n\t * Toggle the grid view\n\t */\n\tfunction toggleGridView() {\n\t\tconst value = userConfigStore.userConfig.grid_view\n\t\tlogger.debug('Toggling grid view', { old: value, new: !value })\n\t\tuserConfigStore.update('grid_view', !value)\n\t}\n}\n","<!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n -->\n<template>\n\t<NcContent appName=\"files\">\n\t\t<FilesNavigation v-if=\"!isPublic\" />\n\t\t<RouterView />\n\t\t<FilesSidebar v-if=\"!isPublic\" />\n\t</NcContent>\n</template>\n\n<script setup lang=\"ts\">\nimport { isPublicShare } from '@nextcloud/sharing/public'\nimport NcContent from '@nextcloud/vue/components/NcContent'\nimport FilesNavigation from './views/FilesNavigation.vue'\nimport FilesSidebar from './views/FilesSidebar.vue'\nimport { useHotKeys } from './composables/useHotKeys.ts'\n\nuseHotKeys()\n\nconst isPublic = isPublicShare()\n</script>\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nexport interface SettingData {\n\tel: () => HTMLElement\n\topen?: () => void\n\tclose?: () => void\n\torder?: number\n}\n\nexport default class Setting {\n\t#name: string\n\t#options: Required<SettingData>\n\n\t/**\n\t * Create a new files app setting\n\t *\n\t * @param name - The name of this setting\n\t * @param options - The setting options\n\t * @param options.el - Function that returns an unmounted dom element to be added\n\t * @param options.open - Callback for when setting is added\n\t * @param options.close - Callback for when setting is closed\n\t * @param options.order - The order of this setting, lower numbers are shown first\n\t * @since 19.0.0\n\t */\n\tconstructor(name: string, options: SettingData) {\n\t\tthis.#name = name\n\t\tthis.#options = {\n\t\t\topen: () => {},\n\t\t\tclose: () => {},\n\t\t\torder: 0,\n\t\t\t...options,\n\t\t}\n\n\t\tif (typeof this.#options.el !== 'function') {\n\t\t\tthrow new Error('Setting must have an `el` function that returns a DOM element')\n\t\t}\n\n\t\tif (typeof this.#name !== 'string') {\n\t\t\tthrow new Error('Setting must have a `name` string')\n\t\t}\n\n\t\tif (typeof this.#options.order !== 'number') {\n\t\t\tthrow new Error('Setting must have an `order` number')\n\t\t}\n\t}\n\n\tget name() {\n\t\treturn this.#name\n\t}\n\n\tget el() {\n\t\treturn this.#options.el\n\t}\n\n\tget open() {\n\t\treturn this.#options.open\n\t}\n\n\tget close() {\n\t\treturn this.#options.close\n\t}\n\n\tget order() {\n\t\treturn this.#options.order\n\t}\n}\n","/*\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { INode } from '@nextcloud/files'\n\nimport { subscribe } from '@nextcloud/event-bus'\nimport { generateUrl } from '@nextcloud/router'\nimport { relative } from 'path'\nimport { createRouter, createWebHistory, isNavigationFailure, NavigationFailureType, stringifyQuery } from 'vue-router'\nimport { useFilesStore } from '../store/files.ts'\nimport { pinia } from '../store/index.ts'\nimport { usePathsStore } from '../store/paths.ts'\nimport { defaultView } from '../utils/filesViews.ts'\nimport { logger } from '../utils/logger.ts'\n\nconst FilesListComponent = () => import('../views/FilesList.vue')\n\n/**\n * Stringify the query the way Nextcloud URLs have always looked: spaces as\n * \"%20\" rather than \"+\". A literal \"+\" is already encoded as \"%2B\" by then, so\n * this cannot corrupt a file name.\n *\n * @param query - The query to stringify\n */\nfunction stringifyNextcloudQuery(query: Parameters<typeof stringifyQuery>[0]): string {\n\treturn stringifyQuery(query).replace(/\\+/g, '%20')\n}\n\nexport const router = createRouter({\n\t// if index.php is in the url AND we got this far, then it's working:\n\t// let's keep using index.php in the url\n\thistory: createWebHistory(generateUrl('/apps/files')),\n\tlinkActiveClass: 'active',\n\tstringifyQuery: stringifyNextcloudQuery,\n\troutes: [\n\t\t{\n\t\t\tpath: '/',\n\t\t\t// Pretending we're using the default view\n\t\t\tredirect: { name: 'filelist', params: { view: defaultView() } },\n\t\t},\n\t\t{\n\t\t\tpath: '/:view/:fileid(\\\\d+)?',\n\t\t\tname: 'filelist',\n\t\t\tprops: true,\n\t\t\tcomponent: FilesListComponent,\n\t\t},\n\t],\n})\n\n// Handle aborted navigation (NavigationGuards) gracefully\nrouter.onError((error) => {\n\tif (isNavigationFailure(error, NavigationFailureType.aborted)) {\n\t\tlogger.debug('Navigation was aborted', { error })\n\t} else {\n\t\tthrow error\n\t}\n})\n\n// If navigating back from a folder to a parent folder,\n// we need to keep the current dir fileid so it's highlighted\n// and scrolled into view.\nrouter.beforeResolve((to, from) => {\n\tif (to.params.view !== from.params.view) {\n\t\t// skip if different views\n\t\treturn\n\t}\n\n\tconst fromDir = (from.query?.dir || '/') as string\n\tconst toDir = (to.query?.dir || '/') as string\n\n\t// We are going back to a parent directory\n\tif (relative(fromDir, toDir) === '..') {\n\t\tconst { getNode } = useFilesStore()\n\t\tconst { getPath } = usePathsStore()\n\n\t\tif (!from.params.view) {\n\t\t\tlogger.error('No current view id found, cannot navigate to parent directory', { fromDir, toDir })\n\t\t\treturn\n\t\t}\n\n\t\t// Get the previous parent's file id\n\t\tconst fromSource = getPath(from.params.view as string, fromDir)\n\t\tif (!fromSource) {\n\t\t\tlogger.error('No source found for the parent directory', { fromDir, toDir })\n\t\t\treturn\n\t\t}\n\n\t\tconst fileId = getNode(fromSource)?.fileid\n\t\tif (to.params.fileid === String(fileId)) {\n\t\t\t// prevent infinite loop of navigating to the same parent directory\n\t\t\treturn\n\t\t}\n\n\t\tif (!fileId) {\n\t\t\tlogger.error('No fileid found for the parent directory', { fromDir, toDir, fromSource })\n\t\t\treturn\n\t\t}\n\n\t\tlogger.debug('Navigating back to parent directory', { fromDir, toDir, fileId })\n\t\treturn {\n\t\t\tname: 'filelist',\n\t\t\tquery: to.query,\n\t\t\tparams: {\n\t\t\t\t...to.params,\n\t\t\t\tfileid: String(fileId),\n\t\t\t},\n\t\t\t// Replace the current history entry\n\t\t\treplace: true,\n\t\t}\n\t}\n})\n\n// Navigate through the router service, so stores reacting to the same deletion\n// (e.g. the sidebar closing) build on this navigation instead of the outdated route.\nsubscribe('files:node:deleted', (node: INode) => {\n\tconst { Router } = window.OCP.Files\n\tif (Router.params.fileid === String(node.fileid)) {\n\t\tconst params = { ...Router.params }\n\t\tconst { getPath } = usePathsStore(pinia)\n\t\tconst { getNode } = useFilesStore(pinia)\n\t\tconst source = getPath(Router.params.view, node.dirname)\n\t\tconst parentFolder = getNode(source!)\n\t\tif (source && parentFolder) {\n\t\t\tparams.fileid = String(parentFolder.fileid)\n\t\t} else {\n\t\t\tdelete params.fileid\n\t\t}\n\n\t\tconst query = { ...Router.query }\n\t\tdelete query.opendetails\n\t\tdelete query.openfile\n\n\t\tRouter.goToRoute(null, params, query, true)\n\t}\n})\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../utils/logger.ts'\n\nexport default class Settings {\n\t_settings\n\n\tconstructor() {\n\t\tthis._settings = []\n\t\tlogger.debug('OCA.Files.Settings initialized')\n\t}\n\n\t/**\n\t * Register a new setting\n\t *\n\t * @since 19.0.0\n\t * @param {OCA.Files.Settings.Setting} view element to add to settings\n\t * @return {boolean} whether registering was successful\n\t */\n\tregister(view) {\n\t\tif (this._settings.filter((e) => e.name === view.name).length > 0) {\n\t\t\tlogger.error('A setting with the same name is already registered')\n\t\t\treturn false\n\t\t}\n\t\tthis._settings.push(view)\n\t\treturn true\n\t}\n\n\t/**\n\t * All settings elements\n\t *\n\t * @return {OCA.Files.Settings.Setting[]} All currently registered settings\n\t */\n\tget settings() {\n\t\treturn this._settings\n\t}\n}\n","/*!\n * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport type { INode } from '@nextcloud/files'\nimport type { Pinia } from 'pinia'\nimport type { ISidebarDataProvider } from '../types.ts'\n\nimport { subscribe } from '@nextcloud/event-bus'\nimport { computed } from 'vue'\nimport { fetchNode } from '../../services/WebdavClient.ts'\nimport { useActiveStore } from '../../store/active.ts'\nimport { useFilesStore } from '../../store/files.ts'\nimport { pinia as filesPinia } from '../../store/index.ts'\nimport { useSidebarStore } from '../../store/sidebar.ts'\nimport { logger } from '../../utils/logger.ts'\n\n/**\n * Create the data provider used when the sidebar is rendered by the files app.\n *\n * The sidebar follows the state of the files app: it renders the active node\n * within the active folder and view, and keeps the current URL in sync.\n *\n * @param pinia - The pinia instance of the files app\n */\nexport function createFilesStoreDataProvider(pinia: Pinia = filesPinia): ISidebarDataProvider {\n\tconst node = computed(() => useActiveStore(pinia).activeNode)\n\tconst folder = computed(() => useActiveStore(pinia).activeFolder)\n\tconst view = computed(() => useActiveStore(pinia).activeView)\n\n\t/**\n\t * Make the node the active node of the files app.\n\t *\n\t * @param newNode - The node to render the sidebar for\n\t */\n\tfunction setNode(newNode?: INode): void {\n\t\tconst activeStore = useActiveStore(pinia)\n\t\tif (newNode && !activeStore.activeView) {\n\t\t\tlogger.debug('sidebar: opening without an active view', { node: newNode })\n\t\t}\n\n\t\tactiveStore.activeNode = newNode\n\t}\n\n\t/**\n\t * Keep the `opendetails` query parameter in sync with the open state,\n\t * so the sidebar can be restored when the URL is shared or reloaded.\n\t *\n\t * @param isOpen - The new open state\n\t */\n\tfunction onOpenStateChanged(isOpen: boolean): void {\n\t\tconst params = { ...(window.OCP?.Files?.Router?.params ?? {}) }\n\t\tconst query = { ...(window.OCP?.Files?.Router?.query ?? {}) }\n\n\t\tlogger.debug(`sidebar: ${isOpen ? 'opened' : 'closed'}`, { query, params })\n\t\tif (!isOpen && ('opendetails' in query)) {\n\t\t\tdelete query.opendetails\n\t\t\twindow.OCP.Files.Router.goToRoute(\n\t\t\t\tnull,\n\t\t\t\tparams,\n\t\t\t\tquery,\n\t\t\t\ttrue,\n\t\t\t)\n\t\t}\n\n\t\tif (isOpen && !('opendetails' in query)) {\n\t\t\twindow.OCP.Files.Router.goToRoute(\n\t\t\t\tnull,\n\t\t\t\tparams,\n\t\t\t\t{\n\t\t\t\t\t...query,\n\t\t\t\t\topendetails: 'true',\n\t\t\t\t},\n\t\t\t\ttrue,\n\t\t\t)\n\t\t}\n\t}\n\n\tlet routerHookRegistered = false\n\t// close the sidebar when the `opendetails` parameter is removed from the URL,\n\t// the router is only available once the files app is mounted\n\tsubscribe('files:list:updated', () => {\n\t\tif (routerHookRegistered) {\n\t\t\treturn\n\t\t}\n\n\t\trouterHookRegistered = true\n\t\twindow.OCP.Files.Router._router.afterEach((to, from) => {\n\t\t\tif ((from.query && ('opendetails' in from.query))\n\t\t\t\t&& (to.query && !('opendetails' in to.query))) {\n\t\t\t\tlogger.debug('sidebar: closing because \"opendetails\" query parameter was removed from URL.')\n\t\t\t\tuseSidebarStore(pinia).close()\n\t\t\t}\n\t\t})\n\t})\n\n\tsubscribe('viewer:sidebar:open', async ({ source, path }) => {\n\t\tlogger.debug('sidebar: opening for node from Viewer.', { source })\n\t\ttry {\n\t\t\t// Currently (as of Nextcloud 35) the viewer not fully uses the Node API\n\t\t\t// the emitted node is only partially filled, so we need to resolve it to a full node.\n\t\t\tconst node = useFilesStore(pinia).getNode(source)\n\t\t\t\t?? await fetchNode(path)\n\t\t\tif (!node) {\n\t\t\t\tthrow new Error(`Node '${source}' could not be resolved`)\n\t\t\t}\n\n\t\t\tuseSidebarStore(pinia).open(node)\n\t\t} catch (error) {\n\t\t\tlogger.error('sidebar: could not open for the node from the Viewer.', { error, source })\n\t\t}\n\t})\n\n\treturn {\n\t\tnode,\n\t\tfolder,\n\t\tview,\n\n\t\tsetNode,\n\t\tonOpenStateChanged,\n\t}\n}\n","/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { isPublicShare } from '@nextcloud/sharing/public'\nimport { createApp } from 'vue'\nimport FilesApp from './FilesApp.vue'\nimport SettingsModel from './models/Setting.ts'\nimport { router } from './router/router.ts'\nimport RouterService from './services/RouterService.ts'\nimport SettingsService from './services/Settings.js'\nimport { setSidebarDataProvider } from './sidebar/provider.ts'\nimport { createFilesStoreDataProvider } from './sidebar/providers/filesStore.ts'\nimport { exposeSidebarApi } from './sidebar/setup.ts'\nimport { pinia } from './store/index.ts'\n\nimport 'vite/modulepreload-polyfill'\n\n// Init private and public Files namespace\nwindow.OCA.Files = window.OCA.Files ?? {}\nwindow.OCP.Files = window.OCP.Files ?? {}\n\n// Expose router\nif (!window.OCP.Files.Router) {\n\tconst Router = new RouterService(router)\n\tObject.assign(window.OCP.Files, { Router })\n}\n\n// The files app renders the sidebar itself, so it also provides the sidebar data.\n// Same condition as for rendering it in `FilesApp.vue`.\nif (!isPublicShare()) {\n\tsetSidebarDataProvider(createFilesStoreDataProvider())\n\texposeSidebarApi()\n}\n\n// Init Files App Settings Service\nconst Settings = new SettingsService()\nObject.assign(window.OCA.Files, { Settings })\nObject.assign(window.OCA.Files.Settings, { Setting: SettingsModel })\n\nconst app = createApp(FilesApp)\napp.use(pinia)\napp.use((window.OCP.Files.Router as RouterService)._router)\napp.mount('#content')\n"],"file":"files-main.mjs"}