diff --git a/dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs b/dist/AuthMechanismRsa-e40gyg0q.chunk.mjs
similarity index 76%
rename from dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs
rename to dist/AuthMechanismRsa-e40gyg0q.chunk.mjs
index 74e6e3bb1b8..2bfa155da7a 100644
--- a/dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs
+++ b/dist/AuthMechanismRsa-e40gyg0q.chunk.mjs
@@ -1,2 +1,2 @@
-import{b as g,p as y,q as v,c as p,u as o,o as n,N as h,w as _,g as V,t as k,r as x,s as M,j as d,e as f,F as q,C as w,E as U,G as j}from"./runtime-dom.esm-bundler-BrYCUcZF.chunk.mjs";import{c as C}from"./index-FffHbzvj.chunk.mjs";import{a as E}from"./index-JpgrUA2Z-BU0x-nEh.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-Cr5LJw9O.chunk.mjs";import{g as N}from"./createElementId-DhjFt1I9-CmaX6aVQ.chunk.mjs";import{c as S}from"./NcNoteCard-CVhtNL04-DvQ-q8jC.chunk.mjs";import{N as A}from"./NcSelect-Czzsi3P_-DYeov0Mn.chunk.mjs";import{N as K}from"./NcCheckboxRadioSwitch-BCSKF7Tk-BfYgMYeK.chunk.mjs";import{N as z}from"./NcPasswordField-djttkA5Q-PPKLVftl.chunk.mjs";import{_ as B}from"./TrashCanOutline-Dy-u-_ok.chunk.mjs";import{a as c,C as b}from"./types-enGIHWiM.chunk.mjs";import{l as G}from"./logger-CrDakPzW.chunk.mjs";const P=g({__name:"ConfigurationEntry",props:y({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=v(e,"modelValue");return(t,i)=>e.configOption.type!==o(c).Boolean?(n(),p(h(e.configOption.type===o(c).Password?o(z):o(B)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),name:e.configKey,required:!(e.configOption.flags&o(b).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(n(),p(o(K),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=l=>a.value=l),type:"switch",title:e.configOption.tooltip},{default:_(()=>[V(k(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=g({__name:"AuthMechanismRsa",props:y({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=v(e,"modelValue"),t=x();M(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:l}=await C.post(N("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=l.data.private_key,a.value.public_key=l.data.public_key}catch(l){G.error("Error generating RSA key pair",{error:l}),E(s("files_external","Error generating key pair"))}}return(l,m)=>(n(),d("div",null,[(n(!0),d(q,null,w(e.authMechanism.configuration,(r,u)=>U((n(),p(P,{key:r.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,"config-key":u,"config-option":r},null,8,["modelValue","onUpdate:modelValue","config-key","config-option"])),[[j,!(r.flags&o(b).Hidden)]])),128)),f(o(A),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=r=>t.value=r),clearable:!1,"input-label":o(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","input-label"]),f(o(S),{disabled:!t.value,wide:"",onClick:i},{default:_(()=>[V(k(o(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,P as _};
-//# sourceMappingURL=AuthMechanismRsa-C7Dhz5x5.chunk.mjs.map
+import{b as g,p as y,q as v,c as p,u as o,o as n,N as h,w as _,g as V,t as k,r as x,s as M,j as d,e as f,F as q,C as w,E as U,G as j}from"./runtime-dom.esm-bundler-BrYCUcZF.chunk.mjs";import{c as C}from"./index-BfylblLb.chunk.mjs";import{a as E}from"./index-JpgrUA2Z-BFiKKJ1W.chunk.mjs";import{t as s}from"./translation-DoG5ZELJ-gw0g4US-.chunk.mjs";import{g as N}from"./createElementId-DhjFt1I9--Zqj3wLs.chunk.mjs";import{c as S}from"./NcNoteCard-CVhtNL04-hwuc093N.chunk.mjs";import{N as A}from"./NcSelect-Czzsi3P_-DLFUGW7z.chunk.mjs";import{N as K}from"./NcCheckboxRadioSwitch-BCSKF7Tk-yPckcGKs.chunk.mjs";import{N as z}from"./NcPasswordField-djttkA5Q-2g87vOpY.chunk.mjs";import{_ as B}from"./TrashCanOutline-CvWRJ8GE.chunk.mjs";import{a as c,C as b}from"./types-BoPN4zt3.chunk.mjs";import{l as G}from"./logger-CrDakPzW.chunk.mjs";const P=g({__name:"ConfigurationEntry",props:y({configKey:{},configOption:{}},{modelValue:{type:[String,Boolean],default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=v(e,"modelValue");return(t,i)=>e.configOption.type!==o(c).Boolean?(n(),p(h(e.configOption.type===o(c).Password?o(z):o(B)),{key:0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=l=>a.value=l),name:e.configKey,required:!(e.configOption.flags&o(b).Optional),label:e.configOption.value,title:e.configOption.tooltip},null,8,["modelValue","name","required","label","title"])):(n(),p(o(K),{key:1,modelValue:a.value,"onUpdate:modelValue":i[1]||(i[1]=l=>a.value=l),type:"switch",title:e.configOption.tooltip},{default:_(()=>[V(k(e.configOption.value),1)]),_:1},8,["modelValue","title"]))}}),R=g({__name:"AuthMechanismRsa",props:y({authMechanism:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=v(e,"modelValue"),t=x();M(t,()=>{t.value&&(a.value.private_key="",a.value.public_key="")});async function i(){try{const{data:l}=await C.post(N("/apps/files_external/ajax/public_key.php"),{keyLength:t.value});a.value.private_key=l.data.private_key,a.value.public_key=l.data.public_key}catch(l){G.error("Error generating RSA key pair",{error:l}),E(s("files_external","Error generating key pair"))}}return(l,m)=>(n(),d("div",null,[(n(!0),d(q,null,w(e.authMechanism.configuration,(r,u)=>U((n(),p(P,{key:r.value,modelValue:a.value[u],"onUpdate:modelValue":O=>a.value[u]=O,"config-key":u,"config-option":r},null,8,["modelValue","onUpdate:modelValue","config-key","config-option"])),[[j,!(r.flags&o(b).Hidden)]])),128)),f(o(A),{modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=r=>t.value=r),clearable:!1,"input-label":o(s)("files_external","Key size"),options:[1024,2048,4096],required:""},null,8,["modelValue","input-label"]),f(o(S),{disabled:!t.value,wide:"",onClick:i},{default:_(()=>[V(k(o(s)("files_external","Generate keys")),1)]),_:1},8,["disabled"])]))}}),$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{$ as A,P as _};
+//# sourceMappingURL=AuthMechanismRsa-e40gyg0q.chunk.mjs.map
diff --git a/dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs.license b/dist/AuthMechanismRsa-e40gyg0q.chunk.mjs.license
similarity index 100%
rename from dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs.license
rename to dist/AuthMechanismRsa-e40gyg0q.chunk.mjs.license
diff --git a/dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs.map b/dist/AuthMechanismRsa-e40gyg0q.chunk.mjs.map
similarity index 98%
rename from dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs.map
rename to dist/AuthMechanismRsa-e40gyg0q.chunk.mjs.map
index 70b410e0d8e..8e0ae1a30bc 100644
--- a/dist/AuthMechanismRsa-C7Dhz5x5.chunk.mjs.map
+++ b/dist/AuthMechanismRsa-e40gyg0q.chunk.mjs.map
@@ -1 +1 @@
-{"version":3,"file":"AuthMechanismRsa-C7Dhz5x5.chunk.mjs","sources":["../build/frontend/apps/files_external/src/components/AddExternalStorageDialog/ConfigurationEntry.vue","../build/frontend/apps/files_external/src/views/AuthMechanismRsa.vue"],"sourcesContent":["\n\n\n\n\n\t\n\t\n\t\t{{ configOption.value }}\n\t\n\n","\n\n\n\n\n\t
\n\n"],"names":["value","_useModel","__props","_unref","ConfigurationType","_createBlock","_resolveDynamicComponent","NcPasswordField","NcTextField","$event","ConfigurationFlag","NcCheckboxRadioSwitch","_createTextVNode","_toDisplayString","modelValue","keySize","ref","watch","generateKeys","data","axios","generateUrl","error","logger","showError","t","_createElementBlock","_openBlock","_Fragment","configOption","configKey","ConfigurationEntry","_vShow","_createVNode","NcSelect","NcButton"],"mappings":"s/BAaA,MAAMA,EAAQC,EAA6BC,EAAC,YAA6B,eAWjEA,EAAA,aAAa,OAASC,EAAAC,CAAA,EAAkB,aAF/CC,EAOiCC,EAN3BJ,EAAA,aAAa,OAASC,EAAAC,CAAA,EAAkB,SAAWD,EAAAI,CAAA,EAAkBJ,EAAAK,CAAA,CAAW,EAAA,kBAE5ER,EAAA,2CAAAA,EAAK,MAAAS,GACb,KAAMP,EAAA,UACN,WAAYA,EAAA,aAAa,MAAQC,EAAAO,CAAA,EAAkB,UACnD,MAAOR,EAAA,aAAa,MACpB,MAAOA,EAAA,aAAa,OAAA,iEACtBG,EAMwBF,EAAAQ,CAAA,EAAA,kBAJdX,EAAA,2CAAAA,EAAK,MAAAS,GACd,KAAK,SACJ,MAAOP,EAAA,aAAa,OAAA,aACrB,IAAwB,CAArBU,EAAAC,EAAAX,EAAA,aAAa,KAAK,EAAA,CAAA,CAAA,mLChBvB,MAAMY,EAAab,EAA6CC,EAAA,YAAmB,EAM7Ea,EAAUC,EAAA,EAChBC,EAAMF,EAAS,IAAM,CAChBA,EAAQ,QACXD,EAAW,MAAM,YAAc,GAC/BA,EAAW,MAAM,WAAa,GAEhC,CAAC,EAKD,eAAeI,GAAe,CAC7B,GAAI,CAEH,KAAM,CAAE,KAAAC,GAAS,MAAMC,EAAM,KAAKC,EAAY,0CAA0C,EAAG,CAC1F,UAAWN,EAAQ,KAAA,CACnB,EAEDD,EAAW,MAAM,YAAcK,EAAK,KAAK,YACzCL,EAAW,MAAM,WAAaK,EAAK,KAAK,UACzC,OAASG,EAAO,CACfC,EAAO,MAAM,gCAAiC,CAAE,MAAAD,CAAA,CAAO,EACvDE,EAAUC,EAAE,iBAAkB,2BAA2B,CAAC,CAC3D,CACD,mBAICC,EAsBM,MAAA,KAAA,EArBLC,EAAA,EAAA,EAAAD,EAMiCE,SALE1B,EAAA,cAAc,cAAa,CAAtD2B,EAAcC,WADtBzB,EAMiC0B,EAAA,CAH/B,IAAKF,EAAa,MACV,WAAAf,EAAA,MAAWgB,CAAS,EAApB,sBAAArB,GAAAK,EAAA,MAAWgB,CAAS,EAAArB,EAC5B,aAAYqB,EACZ,gBAAeD,CAAA,8EAJN,CAAAG,EAAA,EAAAH,EAAa,MAAQ1B,EAAAO,CAAA,EAAkB,OAAM,CAAA,UAMxDuB,EAKY9B,EAAA+B,CAAA,EAAA,YAJFnB,EAAA,2CAAAA,EAAO,MAAAN,GACf,UAAW,GACX,cAAaN,EAAAsB,CAAA,EAAC,iBAAA,UAAA,EACd,QAAS,CAAA,KAAA,KAAA,IAAA,EACV,SAAA,EAAA,uCAEDQ,EAKW9B,EAAAgC,CAAA,EAAA,CAJT,UAAWpB,EAAA,MACZ,KAAA,GACC,QAAOG,CAAA,aACR,IAA0C,KAAvCf,EAAAsB,CAAA,EAAC,iBAAA,eAAA,CAAA,EAAA,CAAA,CAAA"}
\ No newline at end of file
+{"version":3,"file":"AuthMechanismRsa-e40gyg0q.chunk.mjs","sources":["../build/frontend/apps/files_external/src/components/AddExternalStorageDialog/ConfigurationEntry.vue","../build/frontend/apps/files_external/src/views/AuthMechanismRsa.vue"],"sourcesContent":["\n\n\n\n\n\t\n\t\n\t\t{{ configOption.value }}\n\t\n\n","\n\n\n\n\n\t
\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ version.label === '' ? t('files_versions', 'Name this version') : t('files_versions', 'Edit version name') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Compare to current version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Restore version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Download version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Delete version') }}\n\t\t\t\n\t\t\n\t\n\n\n\n\n\n","\n\n\t\n\t\t\n\n\t\t
\n\t\t\t{{ t('files_versions', 'Named versions are persisted, and excluded from automatic cleanups when your storage quota is full.') }}\n\t\t
\n\t\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nexport default getLoggerBuilder()\n\t.setApp('files_version')\n\t.detectUser()\n\t.build()\n","\n\n\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t
\n\t
\n\t\t\n\t\t\n\t
\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nexport default `\n\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\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'\nimport type { FileStat, ResponseDataDetailed } from 'webdav'\n\nimport { getCurrentUser } from '@nextcloud/auth'\nimport axios from '@nextcloud/axios'\nimport { getClient } from '@nextcloud/files/dav'\nimport { getCanonicalLocale } from '@nextcloud/l10n'\nimport { encodePath, join } from '@nextcloud/paths'\nimport { generateRemoteUrl, generateUrl } from '@nextcloud/router'\nimport davRequest from '../utils/davRequest.ts'\nimport logger from '../utils/logger.ts'\n\nexport interface Version {\n\tfileId: string // The id of the file associated to the version.\n\tlabel: string // 'Current version' or ''\n\tauthor: string | null // UID for the author of the version\n\tauthorName: string | null // Display name of the author\n\tfilename: string // File name relative to the version DAV endpoint\n\tbasename: string // A base name generated from the mtime\n\tmime: string // Empty for the current version, else the actual mime type of the version\n\tetag: string // Empty for the current version, else the actual mime type of the version\n\tsize: number // File size in bytes\n\ttype: string // 'file'\n\tmtime: number // Version creation date as a timestamp\n\tpermissions: string // Only readable: 'R'\n\tpreviewUrl: string // Preview URL of the version\n\turl: string // Download URL of the version\n\tsource: string // The WebDAV endpoint of the resource\n\tfileVersion: string | null // The version id, null for the current version\n}\n\nconst client = getClient()\n\n/**\n * Get file versions for a given node\n *\n * @param node - The node to fetch versions for\n */\nexport async function fetchVersions(node: INode): Promise {\n\tconst path = `/versions/${getCurrentUser()?.uid}/versions/${node.fileid}`\n\n\ttry {\n\t\tconst response = await client.getDirectoryContents(path, {\n\t\t\tdata: davRequest,\n\t\t\tdetails: true,\n\t\t}) as ResponseDataDetailed\n\n\t\tconst versions = response.data\n\t\t\t// Filter out root\n\t\t\t.filter(({ mime }) => mime !== '')\n\t\t\t.map((version) => formatVersion(version as Required, node))\n\n\t\tconst authorIds = new Set(versions.map((version) => String(version.author)))\n\t\tconst authors = await axios.post(generateUrl('/displaynames'), { users: [...authorIds] })\n\n\t\tfor (const version of versions) {\n\t\t\tconst author = authors.data.users[version.author ?? '']\n\t\t\tif (author) {\n\t\t\t\tversion.authorName = author\n\t\t\t}\n\t\t}\n\n\t\treturn versions\n\t} catch (exception) {\n\t\tlogger.error('Could not fetch version', { exception })\n\t\tthrow exception\n\t}\n}\n\n/**\n * Restore the given version\n *\n * @param version - The version to restore\n */\nexport async function restoreVersion(version: Version) {\n\ttry {\n\t\tlogger.debug('Restoring version', { url: version.url })\n\t\tawait client.moveFile(\n\t\t\t`/versions/${getCurrentUser()?.uid}/versions/${version.fileId}/${version.fileVersion}`,\n\t\t\t`/versions/${getCurrentUser()?.uid}/restore/target`,\n\t\t)\n\t} catch (exception) {\n\t\tlogger.error('Could not restore version', { exception })\n\t\tthrow exception\n\t}\n}\n\n/**\n * Format version\n *\n * @param version - The version data from WebDAV\n * @param node - The original node\n */\nfunction formatVersion(version: Required, node: INode): Version {\n\tconst mtime = Date.parse(version.lastmod)\n\tlet previewUrl = ''\n\n\tif (mtime === node.mtime?.getTime()) { // Version is the current one\n\t\tpreviewUrl = generateUrl('/core/preview?fileId={fileId}&c={fileEtag}&x=250&y=250&forceIcon=0&a=0&forceIcon=1&mimeFallback=1', {\n\t\t\tfileId: node.fileid,\n\t\t\tfileEtag: node.attributes.etag,\n\t\t})\n\t} else {\n\t\tpreviewUrl = generateUrl('/apps/files_versions/preview?file={file}&version={fileVersion}&mimeFallback=1', {\n\t\t\tfile: node.path,\n\t\t\tfileVersion: version.basename,\n\t\t})\n\t}\n\n\treturn {\n\t\tfileId: node.fileid!.toString(),\n\t\t// If version-label is defined make sure it is a string (prevent issue if the label is a number an PHP returns a number then)\n\t\tlabel: version.props['version-label'] ? String(version.props['version-label']) : '',\n\t\tauthor: version.props['version-author'] ? String(version.props['version-author']) : null,\n\t\tauthorName: null,\n\t\tfilename: version.filename,\n\t\tbasename: new Date(mtime).toLocaleString(\n\t\t\t[getCanonicalLocale(), getCanonicalLocale().split('-')[0]!],\n\t\t\t{\n\t\t\t\ttimeStyle: 'long',\n\t\t\t\tdateStyle: 'medium',\n\t\t\t},\n\t\t),\n\t\tmime: version.mime,\n\t\tetag: `${version.props.getetag}`,\n\t\tsize: version.size,\n\t\ttype: version.type,\n\t\tmtime,\n\t\tpermissions: 'R',\n\t\tpreviewUrl,\n\t\turl: join('/remote.php/dav', version.filename),\n\t\tsource: generateRemoteUrl('dav') + encodePath(version.filename),\n\t\tfileVersion: version.basename,\n\t}\n}\n\n/**\n * Set version label\n *\n * @param version - The version to set the label for\n * @param newLabel - The new label\n */\nexport async function setVersionLabel(version: Version, newLabel: string) {\n\treturn await client.customRequest(\n\t\tversion.filename,\n\t\t{\n\t\t\tmethod: 'PROPPATCH',\n\t\t\tdata: `\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${newLabel}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t`,\n\t\t},\n\t)\n}\n\n/**\n * Delete version\n *\n * @param version - The version to delete\n */\nexport async function deleteVersion(version: Version) {\n\tawait client.deleteFile(version.filename)\n}\n","\n\n\t
\n\n\n\n\n\n"],"names":["_sfc_main","_hoisted_3","_createElementBlock","_mergeProps","_ctx","$props","_cache","$event","_createElementVNode","_openBlock","props","__props","emit","__emit","previewLoaded","ref","previewErrored","capabilities","loadState","humanReadableSize","computed","formatFileSize","versionLabel","label","t","versionAuthor","getCurrentUser","versionHumanExplicitDate","getCanonicalLocale","downloadURL","getRootUrl","enableLabeling","enableDeletion","hasDeletePermissions","hasPermission","Permission","hasUpdatePermissions","isDownloadable","attribute","labelUpdate","restoreVersion","deleteVersion","nextTick","click","event","compareVersion","node","permission","_createBlock","_unref","NcListItem","_createVNode","ImageOffOutline","_hoisted_1","_hoisted_4","_hoisted_5","_hoisted_6","NcAvatar","_hoisted_8","_hoisted_9","NcDateTime","NcActionButton","Pencil","_createTextVNode","FileCompare","BackupRestore","NcActionLink","Download","Delete","labelInput","useTemplateRef","internalLabel","dialogButtons","buttons","setVersionLabel","svgCheck","watchEffect","NcDialog","$emit","NcTextField","_toDisplayString","logger","getLoggerBuilder","_sfc_main$1","defineComponent","containerHeight","containerTop","containerBottom","currentRowTop","currentRowBottom","visibleSections","section","visibleRows","row","distance","visibleItems","rows","items","rowIdToKeyMap","item","usedTokens","key","unusedTokens","finalMapping","id","totalHeight","sectionHeight","paddingTop","buffer","value","currentRowTopDistanceFromTop","entries","entry","cr","_normalizeStyle","_renderSlot","davRequest","client","getClient","fetchVersions","path","versions","mime","version","formatVersion","authorIds","authors","axios","generateUrl","author","exception","mtime","previewUrl","join","generateRemoteUrl","encodePath","newLabel","__expose","setActive","isMobile","useIsMobile","isActive","loading","showVersionLabelForm","editedVersion","watch","toRef","currentVersionMtime","orderedVersions","a","b","sections","initialVersionMtime","canView","canCompare","active","handleRestore","restoredNode","restoreStartedEventState","showSuccess","showError","handleLabelUpdateRequest","handleLabelUpdate","oldLabel","handleDelete","index","openVersion","_versions","v","VirtualScrolling","_withCtx","_Fragment","_renderList","VersionEntry","NcLoadingIcon","VersionLabelDialog"],"mappings":"21CAoBA,MAAKA,GAAU,CACb,KAAM,oBACN,MAAO,CAAC,OAAO,EACf,MAAO,CACL,MAAO,CACL,KAAM,QAER,UAAW,CACT,KAAM,OACN,QAAS,gBAEX,KAAM,CACJ,KAAM,OACN,QAAS,EACX,CACF,CACF,+DAxBYC,GAAA,CAAA,EAAE,uPAAuP,iDAXnQC,EAeO,OAfPC,EAAcC,EAAA,OAAM,CACb,cAAaC,EAAA,MAAK,KAAA,OAClB,aAAYA,EAAA,MACb,MAAM,2CACN,KAAK,MACJ,QAAKC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAEH,EAAA,MAAK,QAAUG,CAAM,WACjCL,EAQM,MAAA,CARA,KAAMG,EAAA,UACP,MAAM,4BACL,MAAOA,EAAA,KACP,OAAQA,EAAA,KACT,QAAQ,cACXG,EAEO,OAFPP,GAEO,CADQI,EAAA,OAAbI,EAAA,EAAAP,EAAuC,aAAhBG,EAAA,KAAK,EAAA,CAAA,6DCO/BL,GAAU,CACb,KAAM,kBACN,MAAO,CAAC,OAAO,EACf,MAAO,CACL,MAAO,CACL,KAAM,QAER,UAAW,CACT,KAAM,OACN,QAAS,gBAEX,KAAM,CACJ,KAAM,OACN,QAAS,EACX,CACF,CACF,+DAxBYC,GAAA,CAAA,EAAE,wMAAwM,iDAXpNC,EAeO,OAfPC,EAAcC,EAAA,OAAM,CACb,cAAaC,EAAA,MAAK,KAAA,O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,CAZxB,IAAKhF,EAAI,MAAK,CAAA,EAAI,QAAQ,MAC1B,WAAU4D,EAAA,MACV,cAAaC,EAAA,MACb,eAAcb,EAAA,MACd,QAAShD,EAAI,SAAS,QACtB,KAAMlF,EAAA,KACN,aAAYkF,EAAI,SAAS,QAAQ,QAAUsD,EAAA,MAC3C,mBAAkBtD,EAAI,SAAS,QAAQ,QAAU2D,EAAA,MACjD,QAAOc,EACP,UAASzH,EACT,UAAS+G,EACT,yBAAsBK,EAAyBpE,EAAI,SAAS,OAAO,EACnE,SAAQuE,CAAA,sJAIF,SACV,IAAkE,CAA7CtB,EAAA,WAArB9F,EAAkEC,EAAA6H,EAAA,EAAA,OAApC,MAAM,2BAAA,oCAI/B9B,EAAA,WADPhG,EAIqC+H,GAAA,OAF5B,KAAMhC,EAAA,qCAAAA,EAAoB,MAAAxI,GACjC,MAAOyI,EAAA,MAAc,MACrB,iBAAckB,CAAA","x_google_ignoreList":[0,1,2]}
\ No newline at end of file
diff --git a/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map.license b/dist/FilesVersionsSidebarTab-CMRfJo7f.chunk.mjs.map.license
similarity index 100%
rename from dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map.license
rename to dist/FilesVersionsSidebarTab-CMRfJo7f.chunk.mjs.map.license
diff --git a/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs b/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs
deleted file mode 100644
index 59628e583ac..00000000000
--- a/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs
+++ /dev/null
@@ -1,26 +0,0 @@
-import{N as te,u as oe,e as W,a as Y}from"./index-JpgrUA2Z-BU0x-nEh.chunk.mjs";import{a as O,g as se,e as I}from"./index-6_gsQFyp.chunk.mjs";import{t as l}from"./translation-DoG5ZELJ-Cr5LJw9O.chunk.mjs";import{N as ne}from"./mdi-Ds-fACAT.chunk.mjs";import{h as re,P as J}from"./index-UotFO_A_.chunk.mjs";import{a as A,l as ae,j as le,e as ce}from"./index-xFugdZPW.chunk.mjs";import{m as Z,N as ue}from"./index-CVAGoLat.chunk.mjs";import{d as de,g as G,b as ve}from"./createElementId-DhjFt1I9-CmaX6aVQ.chunk.mjs";import{a as T,N as me,_ as pe}from"./NcDateTime.vue_vue_type_script_setup_true_lang-BhB8yA4U-BCDyH1PU.chunk.mjs";import{N as fe}from"./NcAvatar-DmUGApWA-doOIHe1I.chunk.mjs";import{j as f,o as a,k as C,l as g,t as _,z as X,b as M,r as L,x as b,c as H,w as h,u as d,g as E,e as V,J as Q,v as he,a5 as ee,m as N,K as ie,s as be,Y as ge,F as ye,C as we}from"./runtime-dom.esm-bundler-BrYCUcZF.chunk.mjs";import{P as _e}from"./PencilOutline-DGmdu8CF.chunk.mjs";import{D as Ce,_ as ke}from"./TrashCanOutline-Dy-u-_ok.chunk.mjs";import{D as Ve,s as He}from"./TrayArrowDown-Dax641oC.chunk.mjs";import{c as Se}from"./index-FffHbzvj.chunk.mjs";import{g as Le}from"./dav-DNJaNsn7.chunk.mjs";import"./NcNoteCard-CVhtNL04-DvQ-q8jC.chunk.mjs";import"./string_decoder-BO00msnV.chunk.mjs";import"./colors-Go3zmZRD-QB5rieLi.chunk.mjs";import"./NcInputField-Bwsh2aHY-CDnfv5zO.chunk.mjs";import"./index-DY1sONrk.chunk.mjs";const ze={name:"BackupRestoreIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},xe=["aria-hidden","aria-label"],$e=["fill","width","height"],Ae={d:"M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z"},Ee={key:0};function De(i,t,e,u,p,r){return a(),f("span",X(i.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon backup-restore-icon",role:"img",onClick:t[0]||(t[0]=v=>i.$emit("click",v))}),[(a(),f("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[C("path",Ae,[e.title?(a(),f("title",Ee,_(e.title),1)):g("",!0)])],8,$e))],16,xe)}const Ie=A(ze,[["render",De]]),Te={name:"FileCompareIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ne=["aria-hidden","aria-label"],Oe=["fill","width","height"],Me={d:"M10,18H6V16H10V18M10,14H6V12H10V14M10,1V2H6C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H10V23H12V1H10M20,8V20C20,21.11 19.11,22 18,22H14V20H18V11H14V9H18.5L14,4.5V2L20,8M16,14H14V12H16V14M16,18H14V16H16V18Z"},Be={key:0};function Pe(i,t,e,u,p,r){return a(),f("span",X(i.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon file-compare-icon",role:"img",onClick:t[0]||(t[0]=v=>i.$emit("click",v))}),[(a(),f("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[C("path",Me,[e.title?(a(),f("title",Be,_(e.title),1)):g("",!0)])],8,Oe))],16,Ne)}const Re=A(Te,[["render",Pe]]),Ue={name:"ImageOffOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Fe=["aria-hidden","aria-label"],qe=["fill","width","height"],Ke={d:"M22 20.7L3.3 2L2 3.3L3 4.3V19C3 20.1 3.9 21 5 21H19.7L20.7 22L22 20.7M5 19V6.3L12.6 13.9L11.1 15.8L9 13.1L6 17H15.7L17.7 19H5M8.8 5L6.8 3H19C20.1 3 21 3.9 21 5V17.2L19 15.2V5H8.8"},je={key:0};function We(i,t,e,u,p,r){return a(),f("span",X(i.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon image-off-outline-icon",role:"img",onClick:t[0]||(t[0]=v=>i.$emit("click",v))}),[(a(),f("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[C("path",Ke,[e.title?(a(),f("title",je,_(e.title),1)):g("",!0)])],8,qe))],16,Fe)}const Ye=A(Ue,[["render",We]]),Je={key:0,class:"version__image"},Ze=["src"],Ge={key:2,class:"version__image"},Qe={class:"version__info"},Xe=["title"],ei={key:1,class:"version__info","data-cy-files-version-author-name":""},ii={key:0},ti=["title"],oi={class:"version__info version__info__subline"},si=M({__name:"VersionEntry",props:{version:{type:Object,required:!0},node:{type:Object,required:!0},isCurrent:{type:Boolean,default:!1},isFirstVersion:{type:Boolean,default:!1},loadPreview:{type:Boolean,default:!1},canView:{type:Boolean,default:!1},canCompare:{type:Boolean,default:!1}},emits:["click","compare","restore","delete","label-update-request"],setup(i,{emit:t}){const e=i,u=t,p=L(!1),r=L(!1),v=L(ae("core","capabilities",{files:{version_labeling:!1,version_deletion:!1}})),w=b(()=>re(e.version.size)),c=b(()=>{const n=e.version.label??"";return e.isCurrent?n===""?l("files_versions","Current version"):`${n} (${l("files_versions","Current version")})`:e.isFirstVersion&&n===""?l("files_versions","Initial version"):n}),y=b(()=>!e.version.author||!e.version.authorName?"":e.version.author===O()?.uid?l("files_versions","You"):e.version.authorName??e.version.author),s=b(()=>Z(e.version.mtime).format("LLLL")),k=b(()=>e.isCurrent?e.node.source:de()+e.version.url),S=b(()=>v.value.files.version_labeling===!0),z=b(()=>v.value.files.version_deletion===!0),P=b(()=>o(e.node,J.DELETE)),D=b(()=>o(e.node,J.UPDATE)),R=b(()=>!((e.node.permissions&J.READ)===0||e.node.attributes["mount-type"]==="shared"&&e.node.attributes["share-attributes"]&&(JSON.parse(e.node.attributes["share-attributes"]).find(n=>n.scope==="permissions"&&n.key==="download")||{})?.value===!1));function U(){u("label-update-request")}function F(){u("restore",e.version)}async function q(){await Q(),await Q(),u("delete",e.version)}function K(n){e.canView&&n.preventDefault(),u("click",{version:e.version})}function j(){if(!e.canView)throw new Error("Cannot compare version of this file");u("compare",{version:e.version})}function o(n,m){return(n.permissions&m)!==0}return(n,m)=>(a(),H(d(ue),{class:"version","force-display-actions":!0,"actions-aria-label":d(l)("files_versions","Actions for version from {versionHumanExplicitDate}",{versionHumanExplicitDate:s.value}),"data-files-versions-version":i.version.fileVersion,href:k.value,onClick:K},{icon:h(()=>[i.loadPreview||p.value?i.version.previewUrl&&!r.value?(a(),f("img",{key:1,src:i.version.previewUrl,alt:"",decoding:"async",fetchpriority:"low",loading:"lazy",class:"version__image",onLoad:m[0]||(m[0]=$=>p.value=!0),onError:m[1]||(m[1]=$=>r.value=!0)},null,40,Ze)):(a(),f("div",Ge,[V(Ye,{size:20})])):(a(),f("div",Je))]),name:h(()=>[C("div",Qe,[c.value?(a(),f("div",{key:0,class:"version__info__label","data-cy-files-version-label":"",title:c.value},_(c.value),9,Xe)):g("",!0),y.value?(a(),f("div",ei,[c.value?(a(),f("span",ii,"•")):g("",!0),V(d(fe),{class:"avatar",user:i.version.author??void 0,size:20,"disable-menu":"","disable-tooltip":"","hide-status":""},null,8,["user"]),C("div",{class:"version__info__author_name",title:y.value},_(y.value),9,ti)])):g("",!0)])]),subname:h(()=>[C("div",oi,[V(d(pe),{class:"version__info__date","relative-time":"short",timestamp:i.version.mtime},null,8,["timestamp"]),m[2]||(m[2]=C("span",null,"•",-1)),C("span",null,_(w.value),1)])]),actions:h(()=>[S.value&&D.value?(a(),H(d(T),{key:0,"data-cy-files-versions-version-action":"label","close-after-click":!0,onClick:U},{icon:h(()=>[V(_e,{size:22})]),default:h(()=>[E(" "+_(i.version.label===""?d(l)("files_versions","Name this version"):d(l)("files_versions","Edit version name")),1)]),_:1})):g("",!0),!i.isCurrent&&i.canView&&i.canCompare?(a(),H(d(T),{key:1,"data-cy-files-versions-version-action":"compare","close-after-click":!0,onClick:j},{icon:h(()=>[V(Re,{size:22})]),default:h(()=>[E(" "+_(d(l)("files_versions","Compare to current version")),1)]),_:1})):g("",!0),!i.isCurrent&&D.value?(a(),H(d(T),{key:2,"data-cy-files-versions-version-action":"restore","close-after-click":!0,onClick:F},{icon:h(()=>[V(Ie,{size:22})]),default:h(()=>[E(" "+_(d(l)("files_versions","Restore version")),1)]),_:1})):g("",!0),R.value?(a(),H(d(me),{key:3,"data-cy-files-versions-version-action":"download",href:k.value,"close-after-click":!0,download:k.value},{icon:h(()=>[V(Ve,{size:22})]),default:h(()=>[E(" "+_(d(l)("files_versions","Download version")),1)]),_:1},8,["href","download"])):g("",!0),!i.isCurrent&&z.value&&P.value?(a(),H(d(T),{key:4,"data-cy-files-versions-version-action":"delete","close-after-click":!0,onClick:q},{icon:h(()=>[V(Ce,{size:22})]),default:h(()=>[E(" "+_(d(l)("files_versions","Delete version")),1)]),_:1})):g("",!0)]),_:1},8,["actions-aria-label","data-files-versions-version","href"]))}}),ni=A(si,[["__scopeId","data-v-ef281a62"]]),ri={class:"version-label-modal__info"},ai=M({__name:"VersionLabelDialog",props:{open:{type:Boolean,default:!1},label:{type:String,default:""}},emits:["update:open","update:label"],setup(i,{emit:t}){const e=i,u=t,p=he("labelInput"),r=L(""),v=b(()=>{const c=[];return e.label.trim()===""?c.push({label:l("files_versions","Cancel")}):c.push({label:l("files_versions","Remove version name"),type:"reset",variant:"error",callback:()=>{w("")}}),[...c,{label:l("files_versions","Save version name"),icon:He,type:"submit",variant:"primary"}]});ee(()=>{r.value=e.label??""}),ee(()=>{e.open&&Q(()=>p.value?.focus()),r.value=e.label});function w(c){u("update:label",c)}return(c,y)=>(a(),H(d(te),{buttons:v.value,"content-classes":"version-label-modal","is-form":"",open:i.open,size:"normal",name:d(l)("files_versions","Name this version"),"onUpdate:open":y[1]||(y[1]=s=>c.$emit("update:open",s)),onSubmit:y[2]||(y[2]=s=>w(r.value))},{default:h(()=>[V(d(ke),{ref_key:"labelInput",ref:p,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=s=>r.value=s),class:"version-label-modal__input",label:d(l)("files_versions","Version name"),placeholder:d(l)("files_versions","Version name")},null,8,["modelValue","label","placeholder"]),C("p",ri,_(d(l)("files_versions","Named versions are persisted, and excluded from automatic cleanups when your storage quota is full.")),1)]),_:1},8,["buttons","open","name"]))}}),li=A(ai,[["__scopeId","data-v-6a69577b"]]),x=se().setApp("files_version").detectUser().build(),ci=M({name:"VirtualScrolling",props:{sections:{type:Array,required:!0},containerElement:{type:HTMLElement,default:null},useWindow:{type:Boolean,default:!1},headerHeight:{type:Number,default:75},renderDistance:{type:Number,default:.5},bottomBufferRatio:{type:Number,default:2},scrollToKey:{type:String,default:""}},emits:["need-content"],data(){return{scrollPosition:0,containerHeight:0,rowsContainerHeight:0,resizeObserver:null}},computed:{visibleSections(){x.debug("[VirtualScrolling] Computing visible section",{sections:this.sections});const i=this.containerHeight,t=this.scrollPosition,e=t+i;let u=0,p=0;const r=this.sections.map(s=>(p+=this.headerHeight,{...s,rows:s.rows.reduce((k,S)=>{u=p,p+=S.height;let z=0;return pe&&(z=(u-e)/i),z>this.renderDistance?k:[...k,{...S,distance:z}]},[])})).filter(s=>s.rows.length>0),v=r.flatMap(({rows:s})=>s).flatMap(({items:s})=>s),w=this._rowIdToKeyMap;v.forEach(s=>s.key=w[s.id]);const c=v.map(({key:s})=>s).filter(s=>s!==void 0),y=Object.values(w).filter(s=>!c.includes(s));return v.filter(({key:s})=>s===void 0).forEach(s=>s.key=y.pop()??Math.random().toString(36).substr(2)),this._rowIdToKeyMap=v.reduce((s,{id:k,key:S})=>({...s,[`${k}`]:S}),{}),r},totalHeight(){return this.sections.map(i=>this.headerHeight+i.height).reduce((i,t)=>i+t,0)+0},paddingTop(){if(this.visibleSections.length===0)return 0;let i=0;for(const t of this.sections){if(t.key!==this.visibleSections[0].rows[0].sectionKey){i+=this.headerHeight+t.height;continue}for(const e of t.rows){if(e.key===this.visibleSections[0].rows[0].key)return i;i+=e.height}i+=this.headerHeight}return i},rowsContainerStyle(){return{height:`${this.totalHeight}px`,paddingTop:`${this.paddingTop}px`}},isNearBottom(){const i=this.containerHeight*this.bottomBufferRatio;return this.scrollPosition+this.containerHeight>=this.totalHeight-i},container(){return x.debug("[VirtualScrolling] Computing container"),this.containerElement!==null?this.containerElement:this.useWindow?window:this.$refs.container}},watch:{isNearBottom(i){x.debug("[VirtualScrolling] isNearBottom changed",{value:i}),i&&this.$emit("need-content")},visibleSections(){this.isNearBottom&&this.$emit("need-content")},scrollToKey(i){let t=0;for(const e of this.sections){if(e.key!==i){t+=this.headerHeight+e.height;continue}break}x.debug("[VirtualScrolling] Scrolling to",{currentRowTopDistanceFromTop:t}),this.container.scrollTo({top:t,behavior:"smooth"})}},beforeCreate(){this._rowIdToKeyMap={}},mounted(){this.resizeObserver=new ResizeObserver(i=>{for(const t of i){const e=t.contentRect;t.target===this.container&&(this.containerHeight=e.height),t.target.classList.contains("vs-rows-container")&&(this.rowsContainerHeight=e.height)}}),this.useWindow?(window.addEventListener("resize",this.updateContainerSize,{passive:!0}),this.containerHeight=window.innerHeight):this.resizeObserver.observe(this.container),this.resizeObserver.observe(this.$refs.rowsContainer),this.container.addEventListener("scroll",this.updateScrollPosition,{passive:!0})},beforeUnmount(){this.useWindow&&window.removeEventListener("resize",this.updateContainerSize),this.resizeObserver?.disconnect(),this.container.removeEventListener("scroll",this.updateScrollPosition)},methods:{updateScrollPosition(){this._onScrollHandle??=requestAnimationFrame(()=>{this._onScrollHandle=null,this.useWindow?this.scrollPosition=this.container.scrollY:this.scrollPosition=this.container.scrollTop})},updateContainerSize(){this.containerHeight=window.innerHeight}}}),ui={key:0,ref:"container",class:"vs-container"};function di(i,t,e,u,p,r){return!i.useWindow&&i.containerElement===null?(a(),f("div",ui,[C("div",{ref:"rowsContainer",class:"vs-rows-container",style:ie(i.rowsContainerStyle)},[N(i.$slots,"default",{visibleSections:i.visibleSections},void 0,!0),N(i.$slots,"loader",{},void 0,!0)],4)],512)):(a(),f("div",{key:1,ref:"rowsContainer",class:"vs-rows-container",style:ie(i.rowsContainerStyle)},[N(i.$slots,"default",{visibleSections:i.visibleSections},void 0,!0),N(i.$slots,"loader",{},void 0,!0)],4))}const vi=A(ci,[["render",di],["__scopeId","data-v-b0f92288"]]),mi=`
-
-
-
-
-
-
-
-
-
-
-`,B=Le();async function pi(i){const t=`/versions/${O()?.uid}/versions/${i.fileid}`;try{const e=(await B.getDirectoryContents(t,{data:mi,details:!0})).data.filter(({mime:r})=>r!=="").map(r=>hi(r,i)),u=new Set(e.map(r=>String(r.author))),p=await Se.post(G("/displaynames"),{users:[...u]});for(const r of e){const v=p.data.users[r.author??""];v&&(r.authorName=v)}return e}catch(e){throw x.error("Could not fetch version",{exception:e}),e}}async function fi(i){try{x.debug("Restoring version",{url:i.url}),await B.moveFile(`/versions/${O()?.uid}/versions/${i.fileId}/${i.fileVersion}`,`/versions/${O()?.uid}/restore/target`)}catch(t){throw x.error("Could not restore version",{exception:t}),t}}function hi(i,t){const e=Z(i.lastmod).unix()*1e3;let u="";return e===t.mtime?.getTime()?u=G("/core/preview?fileId={fileId}&c={fileEtag}&x=250&y=250&forceIcon=0&a=0&forceIcon=1&mimeFallback=1",{fileId:t.fileid,fileEtag:t.attributes.etag}):u=G("/apps/files_versions/preview?file={file}&version={fileVersion}&mimeFallback=1",{file:t.path,fileVersion:i.basename}),{fileId:t.fileid.toString(),label:i.props["version-label"]?String(i.props["version-label"]):"",author:i.props["version-author"]?String(i.props["version-author"]):null,authorName:null,filename:i.filename,basename:Z(e).format("LLL"),mime:i.mime,etag:`${i.props.getetag}`,size:i.size,type:i.type,mtime:e,permissions:"R",previewUrl:u,url:le("/remote.php/dav",i.filename),source:ve("dav")+ce(i.filename),fileVersion:i.basename}}async function bi(i,t){return await B.customRequest(i.filename,{method:"PROPPATCH",data:`
-
-
-
- ${t}
-
-
- `})}async function gi(i){await B.deleteFile(i.filename)}const yi={key:0,class:"versions-tab__container"},wi=["aria-label"],Fi=M({__name:"FilesVersionsSidebarTab",props:{node:{},folder:{},view:{}},setup(i,{expose:t}){const e=i;t({setActive:D});const u=oe(),p=L(!1),r=L([]),v=L(!1),w=L(!1),c=L(null);be(ge(()=>e.node),async()=>{if(e.node)try{v.value=!0,r.value=await pi(e.node)}finally{v.value=!1}},{immediate:!0});const y=b(()=>e.node?.mtime?.getTime()??0),s=b(()=>[...r.value].sort((o,n)=>e.node?o.mtime===e.node.mtime?.getTime()?-1:n.mtime===e.node.mtime?.getTime()?1:n.mtime-o.mtime:0)),k=b(()=>[{key:"versions",rows:s.value.map(o=>({key:o.mtime.toString(),height:68,sectionKey:"versions",items:[{id:o.mtime.toString(),version:o}]})),height:68*s.value.length}]),S=b(()=>r.value.map(o=>o.mtime).reduce((o,n)=>Math.min(o,n))),z=b(()=>e.node?window.OCA.Viewer?.mimetypes?.includes(e.node?.mime):!1),P=b(()=>!u.value&&window.OCA.Viewer?.mimetypesCompare?.includes(e.node?.mime));function D(o){p.value=o}async function R(o){if(!e.node)return;const n=e.node.clone();n.attributes.etag=o.etag,n.size=o.size,n.mtime=new Date(o.mtime);const m={preventDefault:!1,node:n,version:o};if(I("files_versions:restore:requested",m),!m.preventDefault)try{await fi(o),o.label?W(l("files_versions",`${o.label} restored`)):o.mtime===S.value?W(l("files_versions","Initial version restored")):W(l("files_versions","Version restored")),I("files:node:updated",n),I("files_versions:restore:restored",{node:n,version:o})}catch{Y(l("files_versions","Could not restore version")),I("files_versions:restore:failed",o)}}function U(o){w.value=!0,c.value=o}async function F(o){if(c.value===null)throw new Error("editedVersion should be set at that point");const n=c.value.label;c.value.label=o,w.value=!1;try{await bi(c.value,o),c.value=null}catch(m){c.value.label=n,Y(l("files_versions","Could not set version label")),x.error("Could not set version label",{exception:m})}}async function q(o){const n=r.value.indexOf(o);r.value.splice(n,1);try{await gi(o)}catch{r.value.push(o),Y(l("files_versions","Could not delete version"))}}function K({version:o}){if(e.node!==null){if(o.mtime===e.node?.mtime?.getTime()){window.OCA.Viewer.open({path:e.node.path});return}window.OCA.Viewer.open({fileInfo:{...o,filename:o.filename,previewUrl:void 0},enableSidebar:!1})}}function j({version:o}){const n=r.value.map(m=>({...m,previewUrl:void 0}));window.OCA.Viewer.compare({path:e.node.path},n.find(m=>m.source===o.source))}return(o,n)=>i.node?(a(),f("div",yi,[V(vi,{sections:k.value,"header-height":0},{default:h(({visibleSections:m})=>[C("ul",{"aria-label":d(l)("files_versions","File versions"),"data-files-versions-versions-list":""},[m.length===1?(a(!0),f(ye,{key:0},we(m[0].rows,$=>(a(),H(ni,{key:$.items[0].version.mtime,"can-view":z.value,"can-compare":P.value,"load-preview":p.value,version:$.items[0].version,node:i.node,"is-current":$.items[0].version.mtime===y.value,"is-first-version":$.items[0].version.mtime===S.value,onClick:K,onCompare:j,onRestore:R,onLabelUpdateRequest:_i=>U($.items[0].version),onDelete:q},null,8,["can-view","can-compare","load-preview","version","node","is-current","is-first-version","onLabelUpdateRequest"]))),128)):g("",!0)],8,wi)]),loader:h(()=>[v.value?(a(),H(d(ne),{key:0,class:"files-list-viewer__loader"})):g("",!0)]),_:1},8,["sections"]),c.value?(a(),H(li,{key:0,open:w.value,"onUpdate:open":n[0]||(n[0]=m=>w.value=m),label:c.value.label,"onUpdate:label":F},null,8,["open","label"])):g("",!0)])):g("",!0)}});export{Fi as default};
-//# sourceMappingURL=FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map
diff --git a/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map b/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map
deleted file mode 100644
index cdbdbb0d334..00000000000
--- a/dist/FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"FilesVersionsSidebarTab-DJgFZnW4.chunk.mjs","sources":["../node_modules/vue-material-design-icons/BackupRestore.vue","../node_modules/vue-material-design-icons/FileCompare.vue","../node_modules/vue-material-design-icons/ImageOffOutline.vue","../build/frontend/apps/files_versions/src/components/VersionEntry.vue","../build/frontend/apps/files_versions/src/components/VersionLabelDialog.vue","../build/frontend/apps/files_versions/src/utils/logger.ts","../build/frontend/apps/files_versions/src/components/VirtualScrolling.vue","../build/frontend/apps/files_versions/src/utils/davRequest.ts","../build/frontend/apps/files_versions/src/utils/versions.ts","../build/frontend/apps/files_versions/src/views/FilesVersionsSidebarTab.vue"],"sourcesContent":["\n \n \n \n\n\n","\n \n \n \n\n\n","\n \n \n \n\n\n","\n\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ version.label === '' ? t('files_versions', 'Name this version') : t('files_versions', 'Edit version name') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Compare to current version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Restore version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Download version') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_versions', 'Delete version') }}\n\t\t\t\n\t\t\n\t\n\n\n\n\n\n","\n\n\t\n\t\t\n\n\t\t
\n\t\t\t{{ t('files_versions', 'Named versions are persisted, and excluded from automatic cleanups when your storage quota is full.') }}\n\t\t
\n\t\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getLoggerBuilder } from '@nextcloud/logger'\n\nexport default getLoggerBuilder()\n\t.setApp('files_version')\n\t.detectUser()\n\t.build()\n","\n\n\t
\n\t\t
\n\t\t\t\n\t\t\t\n\t\t
\n\t
\n\t
\n\t\t\n\t\t\n\t
\n\n\n\n\n\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nexport default `\n\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\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'\nimport type { FileStat, ResponseDataDetailed } from 'webdav'\n\nimport { getCurrentUser } from '@nextcloud/auth'\nimport axios from '@nextcloud/axios'\nimport { getClient } from '@nextcloud/files/dav'\nimport moment from '@nextcloud/moment'\nimport { encodePath, join } from '@nextcloud/paths'\nimport { generateRemoteUrl, generateUrl } from '@nextcloud/router'\nimport davRequest from '../utils/davRequest.ts'\nimport logger from '../utils/logger.ts'\n\nexport interface Version {\n\tfileId: string // The id of the file associated to the version.\n\tlabel: string // 'Current version' or ''\n\tauthor: string | null // UID for the author of the version\n\tauthorName: string | null // Display name of the author\n\tfilename: string // File name relative to the version DAV endpoint\n\tbasename: string // A base name generated from the mtime\n\tmime: string // Empty for the current version, else the actual mime type of the version\n\tetag: string // Empty for the current version, else the actual mime type of the version\n\tsize: number // File size in bytes\n\ttype: string // 'file'\n\tmtime: number // Version creation date as a timestamp\n\tpermissions: string // Only readable: 'R'\n\tpreviewUrl: string // Preview URL of the version\n\turl: string // Download URL of the version\n\tsource: string // The WebDAV endpoint of the resource\n\tfileVersion: string | null // The version id, null for the current version\n}\n\nconst client = getClient()\n\n/**\n * Get file versions for a given node\n *\n * @param node - The node to fetch versions for\n */\nexport async function fetchVersions(node: INode): Promise {\n\tconst path = `/versions/${getCurrentUser()?.uid}/versions/${node.fileid}`\n\n\ttry {\n\t\tconst response = await client.getDirectoryContents(path, {\n\t\t\tdata: davRequest,\n\t\t\tdetails: true,\n\t\t}) as ResponseDataDetailed\n\n\t\tconst versions = response.data\n\t\t\t// Filter out root\n\t\t\t.filter(({ mime }) => mime !== '')\n\t\t\t.map((version) => formatVersion(version as Required, node))\n\n\t\tconst authorIds = new Set(versions.map((version) => String(version.author)))\n\t\tconst authors = await axios.post(generateUrl('/displaynames'), { users: [...authorIds] })\n\n\t\tfor (const version of versions) {\n\t\t\tconst author = authors.data.users[version.author ?? '']\n\t\t\tif (author) {\n\t\t\t\tversion.authorName = author\n\t\t\t}\n\t\t}\n\n\t\treturn versions\n\t} catch (exception) {\n\t\tlogger.error('Could not fetch version', { exception })\n\t\tthrow exception\n\t}\n}\n\n/**\n * Restore the given version\n *\n * @param version - The version to restore\n */\nexport async function restoreVersion(version: Version) {\n\ttry {\n\t\tlogger.debug('Restoring version', { url: version.url })\n\t\tawait client.moveFile(\n\t\t\t`/versions/${getCurrentUser()?.uid}/versions/${version.fileId}/${version.fileVersion}`,\n\t\t\t`/versions/${getCurrentUser()?.uid}/restore/target`,\n\t\t)\n\t} catch (exception) {\n\t\tlogger.error('Could not restore version', { exception })\n\t\tthrow exception\n\t}\n}\n\n/**\n * Format version\n *\n * @param version - The version data from WebDAV\n * @param node - The original node\n */\nfunction formatVersion(version: Required, node: INode): Version {\n\tconst mtime = moment(version.lastmod).unix() * 1000\n\tlet previewUrl = ''\n\n\tif (mtime === node.mtime?.getTime()) { // Version is the current one\n\t\tpreviewUrl = generateUrl('/core/preview?fileId={fileId}&c={fileEtag}&x=250&y=250&forceIcon=0&a=0&forceIcon=1&mimeFallback=1', {\n\t\t\tfileId: node.fileid,\n\t\t\tfileEtag: node.attributes.etag,\n\t\t})\n\t} else {\n\t\tpreviewUrl = generateUrl('/apps/files_versions/preview?file={file}&version={fileVersion}&mimeFallback=1', {\n\t\t\tfile: node.path,\n\t\t\tfileVersion: version.basename,\n\t\t})\n\t}\n\n\treturn {\n\t\tfileId: node.fileid!.toString(),\n\t\t// If version-label is defined make sure it is a string (prevent issue if the label is a number an PHP returns a number then)\n\t\tlabel: version.props['version-label'] ? String(version.props['version-label']) : '',\n\t\tauthor: version.props['version-author'] ? String(version.props['version-author']) : null,\n\t\tauthorName: null,\n\t\tfilename: version.filename,\n\t\tbasename: moment(mtime).format('LLL'),\n\t\tmime: version.mime,\n\t\tetag: `${version.props.getetag}`,\n\t\tsize: version.size,\n\t\ttype: version.type,\n\t\tmtime,\n\t\tpermissions: 'R',\n\t\tpreviewUrl,\n\t\turl: join('/remote.php/dav', version.filename),\n\t\tsource: generateRemoteUrl('dav') + encodePath(version.filename),\n\t\tfileVersion: version.basename,\n\t}\n}\n\n/**\n * Set version label\n *\n * @param version - The version to set the label for\n * @param newLabel - The new label\n */\nexport async function setVersionLabel(version: Version, newLabel: string) {\n\treturn await client.customRequest(\n\t\tversion.filename,\n\t\t{\n\t\t\tmethod: 'PROPPATCH',\n\t\t\tdata: `\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${newLabel}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t`,\n\t\t},\n\t)\n}\n\n/**\n * Delete version\n *\n * @param version - The version to delete\n */\nexport async function deleteVersion(version: Version) {\n\tawait client.deleteFile(version.filename)\n}\n","\n\n\t