/*! For license information please see files-init.js.LICENSE.txt */ (()=>{var e,t,s,n={9052:e=>{"use strict";var t=Object.prototype.hasOwnProperty,s="~";function n(){}function i(e,t,s){this.fn=e,this.context=t,this.once=s||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var r=new i(n,a||e,o),l=s?s+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],r]:e._events[l].push(r):(e._events[l]=r,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(s=!1)),r.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(s?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},r.prototype.listeners=function(e){var t=s?s+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i{"use strict";s.d(t,{A:()=>n});const n=(0,s(53529).YK)().setApp("files").detectUser().build()},54950:(e,t,s)=>{"use strict";var n=s(78791),i=s(85168),a=s(53334),o=s(49264),r=s(76150),l=s(61338),d=s(87485),m=s(65043);const c=()=>{var e;return!0===(null===(e=(0,d.F)())||void 0===e||null===(e=e.files)||void 0===e?void 0:e.undelete)},g=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"shared"===e.attributes["mount-type"])),u=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"external"===e.attributes["mount-type"])),f=(e,t)=>g(e)?1===e.length?(0,a.t)("files","Leave this share"):(0,a.t)("files","Leave these shares"):u(e)?1===e.length?(0,a.t)("files","Disconnect storage"):(0,a.t)("files","Disconnect storages"):"trashbin"!==t.id&&c()?(e=>{if(1===e.length)return!1;const t=e.some((e=>g([e]))),s=e.some((e=>!g([e])));return t&&s})(e)?(0,a.t)("files","Delete and unshare"):(e=>!e.some((e=>e.type!==n.pt.File)))(e)?1===e.length?(0,a.t)("files","Delete file"):(0,a.t)("files","Delete files"):(e=>!e.some((e=>e.type!==n.pt.Folder)))(e)?1===e.length?(0,a.t)("files","Delete folder"):(0,a.t)("files","Delete folders"):(0,a.t)("files","Delete"):(0,a.t)("files","Delete permanently"),p=async(e,t)=>{const s="trashbin"!==t.id&&c()?(0,a.n)("files","You are about to delete {count} item","You are about to delete {count} items",e.length,{count:e.length}):(0,a.n)("files","You are about to permanently delete {count} item","You are about to permanently delete {count} items",e.length,{count:e.length});return new Promise((n=>{window.OC.dialogs.confirmDestructive(s,(0,a.t)("files","Confirm deletion"),{type:window.OC.dialogs.YES_NO_BUTTONS,confirm:f(e,t),confirmClasses:"error",cancel:(0,a.t)("files","Cancel")},(e=>{n(e)}))}))},h=async e=>{await m.Ay.delete(e.encodedSource),(0,l.Ic)("files:node:deleted",e)},w=new o.A({concurrency:5}),v=new n.hY({id:"delete",displayName:f,iconSvgInline:e=>g(e)?'':u(e)?'':'',enabled:e=>e.length>0&&e.map((e=>e.permissions)).every((e=>!!(e&n.aX.DELETE))),async exec(e,t){try{let s=!0;return c()||(s=await p([e],t)),!1===s?((0,i.cf)((0,a.Tl)("files","Deletion cancelled")),null):(await h(e),!0)}catch(t){return r.A.error("Error while deleting a file",{error:t,source:e.source,node:e}),!1}},async execBatch(e,t){let s=!0;if(c()?e.length>=5&&!g(e)&&!u(e)&&(s=await p(e,t)):s=await p(e,t),!1===s)return(0,i.cf)((0,a.Tl)("files","Deletion cancelled")),Promise.all(e.map((()=>null)));const n=e.map((e=>new Promise((t=>{w.add((async()=>{try{await h(e),t(!0)}catch(s){r.A.error("Error while deleting a file",{error:s,source:e.source,node:e}),t(!1)}}))}))));return Promise.all(n)},order:100});var x=s(63814);const A=function(e){const t=document.createElement("a");t.download="",t.href=e,t.click()};function b(e,t){const s=e.split("/").filter(Boolean),n=t.split("/").filter(Boolean);let i="/";for(const[e,a]of s.entries()){if(e>=t.length)break;if(a!==n[e])break;const s="/"===i?"":"/";i="".concat(i).concat(s).concat(a)}return i}function y(e){const t=e.filter((t=>void 0===e.find((e=>e.type===n.pt.Folder&&t.path.startsWith("".concat(e.path,"/"))))));let s=t[0].dirname;for(const e of t.slice(1))s=b(s,e.dirname);s=s||"/";const i=t.map((e=>e.path.slice("/"===s?1:s.length+1))),a=Math.random().toString(36).substring(2),o=(0,x.Jv)("/apps/files/ajax/download.php?dir={base}&files={files}&downloadStartSecret={secret}",{base:s,secret:a,files:JSON.stringify(i)});A(o)}const C=function(e){if(!(e.permissions&n.aX.READ))return!1;if("shared"===e.attributes["mount-type"]){var t,s;const n=JSON.parse(null!==(t=e.attributes["share-attributes"])&&void 0!==t?t:"null"),i=null==n||null===(s=n.find)||void 0===s?void 0:s.call(n,(e=>"permissions"===e.scope&&"download"===e.key));if(void 0!==i&&!1===i.enabled)return!1}return!0},T=new n.hY({id:"download",default:n.m9.DEFAULT,displayName:()=>(0,a.Tl)("files","Download"),iconSvgInline:()=>'',enabled:e=>0!==e.length&&(!e.some((e=>e.type===n.pt.Folder))||!e.some((e=>{var t;return!(null!==(t=e.root)&&void 0!==t&&t.startsWith("/files"))})))&&e.every(C),exec:async(e,t,s)=>e.type===n.pt.Folder?(y([e]),null):(A(e.encodedSource),null),async execBatch(e,t,s){return 1===e.length?(this.exec(e[0],t,s),[null]):(y(e),new Array(e.length).fill(null))},order:30});var k=s(71225),L=s(21777);const _=async function(e){const t=(0,x.KT)("apps/files/api/v1")+"/openlocaleditor?format=json";try{var s;const n=await m.Ay.post(t,{path:e}),i=null===(s=(0,L.HW)())||void 0===s?void 0:s.uid;let a="nc://open/".concat(i,"@")+window.location.host+(0,k.O0)(e);a+="?token="+n.data.ocs.data.token,window.location.href=a}catch(e){(0,i.Qg)((0,a.Tl)("files","Failed to redirect to client"))}},S=new n.hY({id:"edit-locally",displayName:()=>(0,a.Tl)("files","Edit locally"),iconSvgInline:()=>'',enabled:e=>1===e.length&&!!(e[0].permissions&n.aX.UPDATE),exec:async e=>((async e=>{_(e),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=!1;(new i.ik).setName((0,a.Tl)("files","Edit file locally")).setText((0,a.Tl)("files","The file should now open on your device. If it doesn't, please check that you have the desktop app installed.")).setButtons([{label:(0,a.Tl)("files","Retry and close"),type:"secondary",callback:()=>{t=!0,e(!0)}},{label:(0,a.Tl)("files","Edit online"),icon:'',type:"primary",callback:()=>{t=!0,e(!1)}}]).build().show().then((()=>{t||e(!1)}))}((t=>{t?_(e):window.OCA.Viewer.open({path:e})}))})(e.path),null),order:25});var U=s(85471);const E='',F=e=>e.some((e=>1!==e.attributes.favorite)),P=async(e,t,s)=>{try{const n=(0,x.Jv)("/apps/files/api/v1/files")+(0,k.O0)(e.path);return await m.Ay.post(n,{tags:s?[window.OC.TAG_FAVORITE]:[]}),"favorites"!==t.id||s||"/"!==e.dirname||(0,l.Ic)("files:node:deleted",e),U.Ay.set(e.attributes,"favorite",s?1:0),s?(0,l.Ic)("files:favorites:added",e):(0,l.Ic)("files:favorites:removed",e),!0}catch(t){const n=s?"adding a file to favourites":"removing a file from favourites";return r.A.error("Error while "+n,{error:t,source:e.source,node:e}),!1}},B=new n.hY({id:"favorite",displayName:e=>F(e)?(0,a.Tl)("files","Add to favorites"):(0,a.Tl)("files","Remove from favorites"),iconSvgInline:e=>F(e)?'':E,enabled:e=>!e.some((e=>{var t,s;return!(null!==(t=e.root)&&void 0!==t&&null!==(s=t.startsWith)&&void 0!==s&&s.call(t,"/files"))}))&&e.every((e=>e.permissions!==n.aX.NONE)),async exec(e,t){const s=F([e]);return await P(e,t,s)},async execBatch(e,t){const s=F(e);return Promise.all(e.map((async e=>await P(e,t,s))))},order:-50});var N=s(85072),I=s.n(N),j=s(97825),z=s.n(j),R=s(77659),O=s.n(R),D=s(55056),W=s.n(D),M=s(10540),Y=s.n(M),H=s(41113),V=s.n(H),q=s(14456),$={};$.styleTagTransform=V(),$.setAttributes=W(),$.insert=O().bind(null,"head"),$.domAPI=z(),$.insertStyleElement=Y(),I()(q.A,$),q.A&&q.A.locals&&q.A.locals;var G=s(76210),K=s(53110),J=s(43627),Z=s(36882),X=s(39285);let Q;var ee;!function(e){e.MOVE="Move",e.COPY="Copy",e.MOVE_OR_COPY="move-or-copy"}(ee||(ee={}));const te=e=>!!(e.reduce(((e,t)=>Math.min(e,t.permissions)),n.aX.ALL)&n.aX.UPDATE),se=e=>(e=>e.every((e=>{var t,s;return!JSON.parse(null!==(t=null===(s=e.attributes)||void 0===s?void 0:s["share-attributes"])&&void 0!==t?t:"[]").some((e=>"permissions"===e.scope&&!1===e.enabled&&"download"===e.key))})))(e)&&!e.some((e=>e.permissions===n.aX.NONE));var ne,ie=s(36117),ae=s(44719);const oe="/files/".concat(null===(ne=(0,L.HW)())||void 0===ne?void 0:ne.uid),re=(0,x.dC)("dav"+oe),le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re;const t=(0,ae.UU)(e),s=e=>{null==t||t.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=e?e:""})};return(0,L.zo)(s),s((0,L.do)()),(0,ae.Gu)().patch("fetch",((e,t)=>{const s=t.headers;return null!=s&&s.method&&(t.method=s.method,delete s.method),fetch(e,t)})),t},de=function(e){let t=0;for(let s=0;s>>0},me=le(),ce=function(e){var t,s;const i=null===(t=(0,L.HW)())||void 0===t?void 0:t.uid;if(!i)throw new Error("No user id found");const a=e.props,o=(0,n.vb)(null==a?void 0:a.permissions),r=String(a["owner-id"]||i),l=(0,x.dC)("dav"+oe+e.filename),d=(null==a?void 0:a.fileid)<0?de(l):(null==a?void 0:a.fileid)||0;void 0!==(null===(s=e.props)||void 0===s?void 0:s.displayname)&&(e.props.displayname=String(e.props.displayname));const m={id:d,source:l,mtime:new Date(e.lastmod),mime:e.mime||"application/octet-stream",size:(null==a?void 0:a.size)||0,permissions:o,owner:r,root:oe,attributes:{...e,...a,"owner-id":r,"owner-display-name":String(a["owner-display-name"]),hasPreview:!(null==a||!a["has-preview"]),failed:(null==a?void 0:a.fileid)<0}};return delete m.attributes.props,"file"===e.type?new n.ZH(m):new n.vd(m)},ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=new AbortController,s=(0,n.VL)();return new ie.CancelablePromise((async(n,i,a)=>{a((()=>t.abort()));try{const i=await me.getDirectoryContents(e,{details:!0,data:s,includeSelf:!0,signal:t.signal}),a=i.data[0],o=i.data.slice(1);if(a.filename!==e)throw new Error("Root node does not match requested path");n({folder:ce(a),contents:o.map((e=>{try{return ce(e)}catch(t){return r.A.error("Invalid node detected '".concat(e.basename,"'"),{error:t}),null}})).filter(Boolean)})}catch(e){i(e)}}))},ue=e=>te(e)?se(e)?ee.MOVE_OR_COPY:ee.MOVE:ee.COPY,fe=async function(e,t,s){let d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t)return;if(t.type!==n.pt.Folder)throw new Error((0,a.Tl)("files","Destination is not a folder"));if(s===ee.MOVE&&e.dirname===t.path)throw new Error((0,a.Tl)("files","This file/folder is already in that directory"));if("".concat(t.path,"/").startsWith("".concat(e.path,"/")))throw new Error((0,a.Tl)("files","You cannot move a file/folder onto itself or into a subfolder of itself"));U.Ay.set(e,"status",n.zI.LOADING);const m=function(e,t,s){const n=e===ee.MOVE?(0,a.Tl)("files",'Moving "{source}" to "{destination}" …',{source:t,destination:s}):(0,a.Tl)("files",'Copying "{source}" to "{destination}" …',{source:t,destination:s});let o;return o=(0,i.cf)(' '.concat(n),{isHTML:!0,timeout:i.DH,onRemove:()=>{var e;null===(e=o)||void 0===e||e.hideToast(),o=void 0}}),()=>o&&o.hideToast()}(s,e.basename,t.path),c=(Q||(Q=new o.A({concurrency:5})),Q);return await c.add((async()=>{const o=e=>1===e?(0,a.Tl)("files","(copy)"):(0,a.Tl)("files","(copy %n)",void 0,e);try{const r=(0,n.H4)(),m=(0,J.join)(n.lJ,e.path),c=(0,J.join)(n.lJ,t.path);if(s===ee.COPY){let s=e.basename;if(!d){const t=await r.getDirectoryContents(c);s=(0,n.E6)(e.basename,t.map((e=>e.basename)),{suffix:o,ignoreFileExtension:e.type===n.pt.Folder})}if(await r.copyFile(m,(0,J.join)(c,s)),e.dirname===t.path){const{data:e}=await r.stat((0,J.join)(c,s),{details:!0,data:(0,n.VL)()});(0,l.Ic)("files:node:created",(0,n.Al)(e))}}else{if(!d){const s=await ge(t.path);if((0,G.h)([e],s.contents))try{const{selected:n,renamed:i}=await(0,G.o)(t.path,[e],s.contents);if(!n.length&&!i.length)return}catch(e){return void(0,i.Qg)((0,a.Tl)("files","Move cancelled"))}}await r.moveFile(m,(0,J.join)(c,e.basename)),(0,l.Ic)("files:node:deleted",e)}}catch(e){if(e instanceof K.pe){var c,g,u;if(412===(null==e||null===(c=e.response)||void 0===c?void 0:c.status))throw new Error((0,a.Tl)("files","A file or folder with that name already exists in this folder"));if(423===(null==e||null===(g=e.response)||void 0===g?void 0:g.status))throw new Error((0,a.Tl)("files","The files is locked"));if(404===(null==e||null===(u=e.response)||void 0===u?void 0:u.status))throw new Error((0,a.Tl)("files","The file does not exist anymore"));if(e.message)throw new Error(e.message)}throw r.A.debug(e),new Error}finally{U.Ay.set(e,"status",""),m()}}))};async function pe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",s=arguments.length>2?arguments[2]:void 0;const{resolve:n,reject:o,promise:l}=Promise.withResolvers(),d=s.map((e=>e.fileid)).filter(Boolean);return(0,i.a1)((0,a.Tl)("files","Choose destination")).allowDirectories(!0).setFilter((e=>!d.includes(e.fileid))).setMimeTypeFilter([]).setMultiSelect(!1).startAt(t).setButtonFactory(((t,i)=>{const o=[],r=(0,J.basename)(i),l=s.map((e=>e.dirname)),d=s.map((e=>e.path));return e!==ee.COPY&&e!==ee.MOVE_OR_COPY||o.push({label:r?(0,a.Tl)("files","Copy to {target}",{target:r},void 0,{escape:!1,sanitize:!1}):(0,a.Tl)("files","Copy"),type:"primary",icon:Z,async callback(e){n({destination:e[0],action:ee.COPY})}}),l.includes(i)||d.includes(i)||e!==ee.MOVE&&e!==ee.MOVE_OR_COPY||o.push({label:r?(0,a.Tl)("files","Move to {target}",{target:r},void 0,{escape:!1,sanitize:!1}):(0,a.Tl)("files","Move"),type:e===ee.MOVE?"primary":"secondary",icon:X,async callback(e){n({destination:e[0],action:ee.MOVE})}}),o})).build().pick().catch((e=>{r.A.debug(e),e instanceof i.vT?n(!1):o(new Error((0,a.Tl)("files","Move or copy operation failed")))})),l}const he=new n.hY({id:"move-copy",displayName(e){switch(ue(e)){case ee.MOVE:return(0,a.Tl)("files","Move");case ee.COPY:return(0,a.Tl)("files","Copy");case ee.MOVE_OR_COPY:return(0,a.Tl)("files","Move or copy")}},iconSvgInline:()=>X,enabled:e=>!!e.every((e=>{var t;return null===(t=e.root)||void 0===t?void 0:t.startsWith("/files/")}))&&e.length>0&&(te(e)||se(e)),async exec(e,t,s){const n=ue([e]);let o;try{o=await pe(n,s,[e])}catch(e){return r.A.error(e),!1}if(!1===o)return(0,i.cf)((0,a.Tl)("files",'Cancelled move or copy of "{filename}".',{filename:e.displayname})),null;try{return await fe(e,o.destination,o.action),!0}catch(e){return!!(e instanceof Error&&e.message)&&((0,i.Qg)(e.message),null)}},async execBatch(e,t,s){const n=ue(e),o=await pe(n,s,e);if(!1===o)return(0,i.cf)(1===e.length?(0,a.Tl)("files",'Cancelled move or copy of "{filename}".',{filename:e[0].displayname}):(0,a.Tl)("files","Cancelled move or copy operation")),e.map((()=>null));const l=e.map((async e=>{try{return await fe(e,o.destination,o.action),!0}catch(t){return r.A.error("Failed to ".concat(o.action," node"),{node:e,error:t}),!1}}));return await Promise.all(l)},order:15}),we='',ve=new n.hY({id:"open-folder",displayName(e){const t=e[0].displayname;return(0,a.Tl)("files","Open folder {displayName}",{displayName:t})},iconSvgInline:()=>we,enabled(e){if(1!==e.length)return!1;const t=e[0];return!!t.isDavRessource&&t.type===n.pt.Folder&&!!(t.permissions&n.aX.READ)},exec:async(e,t)=>!(!e||e.type!==n.pt.Folder)&&(window.OCP.Files.Router.goToRoute(null,{view:t.id,fileid:e.fileid},{dir:e.path}),null),default:n.m9.HIDDEN,order:-100}),xe=new n.hY({id:"open-in-files-recent",displayName:()=>(0,a.Tl)("files","Open in Files"),iconSvgInline:()=>"",enabled:(e,t)=>"recent"===t.id,async exec(e){let t=e.dirname;return e.type===n.pt.Folder&&(t=t+"/"+e.basename),window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:e.fileid},{dir:t,openfile:"true"}),null},order:-1e3,default:n.m9.HIDDEN}),Ae=new n.hY({id:"rename",displayName:()=>(0,a.Tl)("files","Rename"),iconSvgInline:()=>'',enabled:e=>e.length>0&&e.map((e=>e.permissions)).every((e=>!!(e&n.aX.UPDATE))),exec:async e=>((0,l.Ic)("files:node:rename",e),null),order:10});var be=s(49981);const ye=new n.hY({id:"details",displayName:()=>(0,a.Tl)("files","Open details"),iconSvgInline:()=>be,enabled:e=>{var t,s,i;return 1===e.length&&!!e[0]&&!(null===(t=window)||void 0===t||null===(t=t.OCA)||void 0===t||null===(t=t.Files)||void 0===t||!t.Sidebar)&&null!==(s=(null===(i=e[0].root)||void 0===i?void 0:i.startsWith("/files/"))&&e[0].permissions!==n.aX.NONE)&&void 0!==s&&s},async exec(e,t,s){try{return await window.OCA.Files.Sidebar.open(e.path),window.OCP.Files.Router.goToRoute(null,{view:t.id,fileid:e.fileid},{...window.OCP.Files.Router.query,dir:s},!0),null}catch(e){return r.A.error("Error while opening sidebar",{error:e}),!1}},order:-50}),Ce=new n.hY({id:"view-in-folder",displayName:()=>(0,a.Tl)("files","View in folder"),iconSvgInline:()=>X,enabled(e,t){var s;if("files"===t.id)return!1;if(1!==e.length)return!1;const i=e[0];return!(!i.isDavRessource||null===(s=i.root)||void 0===s||!s.startsWith("/files")||i.permissions===n.aX.NONE||i.type!==n.pt.File)},exec:async e=>!(!e||e.type!==n.pt.File)&&(window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:e.fileid},{dir:e.dirname}),null),order:80});var Te=s(54332),ke=s(94219),Le=s(82182);const _e=(0,U.pM)({__name:"NewNodeDialog",props:{defaultName:{type:String,default:(0,a.t)("files","New folder")},otherNames:{type:Array,default:()=>[]},open:{type:Boolean,default:!0},name:{type:String,default:(0,a.t)("files","Create new folder")},label:{type:String,default:(0,a.t)("files","Folder name")}},emits:["close"],setup(e,t){let{emit:s}=t;const i=e,o=(0,U.KR)(i.defaultName),r=(0,U.KR)(),l=(0,U.KR)(),d=(0,U.KR)("");function m(){(0,U.dY)((()=>{var e;const t=null===(e=r.value)||void 0===e?void 0:e.$el.querySelector("input");if(!i.open||!t)return;const s=o.value.length-(0,J.extname)(o.value).length;t.focus(),t.setSelectionRange(0,s)}))}return(0,U.wB)((()=>i.defaultName),(()=>{o.value=(0,n.E6)(i.defaultName,i.otherNames)})),(0,U.nT)((()=>{var e;i.otherNames.includes(o.value)?d.value=(0,a.t)("files","This name is already in use."):d.value=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(""===e.trim())return(0,a.t)("files","Filename must not be empty.");try{return(0,n.KT)(e),""}catch(e){if(!(e instanceof n.di))throw e;switch(e.reason){case n.nF.Character:return(0,a.t)("files",'"{char}" is not allowed inside a filename.',{char:e.segment},void 0,{escape:t});case n.nF.ReservedName:return(0,a.t)("files",'"{segment}" is a reserved name and not allowed for filenames.',{segment:e.segment},void 0,{escape:!1});case n.nF.Extension:return e.segment.match(/\.[a-z]/i)?(0,a.t)("files",'"{extension}" is not an allowed filetype.',{extension:e.segment},void 0,{escape:!1}):(0,a.t)("files",'Filenames must not end with "{extension}".',{extension:e.segment},void 0,{escape:!1});default:return(0,a.t)("files","Invalid filename.")}}}(o.value);const t=null===(e=r.value)||void 0===e?void 0:e.$el.querySelector("input");t&&(t.setCustomValidity(d.value),t.reportValidity())})),(0,U.wB)((()=>i.open),(()=>{(0,U.dY)((()=>{m()}))})),(0,U.sV)((()=>{o.value=(0,n.E6)(o.value,i.otherNames),(0,U.dY)((()=>m()))})),{__sfc:!0,props:i,emit:s,localDefaultName:o,nameInput:r,formElement:l,validity:d,focusInput:m,submit:function(){var e;null===(e=l.value)||void 0===e||e.requestSubmit()},t:a.t,NcButton:Te.A,NcDialog:ke.A,NcTextField:Le.A}}});var Se=s(11028),Ue={};Ue.styleTagTransform=V(),Ue.setAttributes=W(),Ue.insert=O().bind(null,"head"),Ue.domAPI=z(),Ue.insertStyleElement=Y(),I()(Se.A,Ue),Se.A&&Se.A.locals&&Se.A.locals;const Ee=(0,s(14486).A)(_e,(function(){var e=this,t=e._self._c,s=e._self._setupProxy;return t(s.NcDialog,{attrs:{"data-cy-files-new-node-dialog":"",name:e.name,open:e.open,"close-on-click-outside":"","out-transition":""},on:{"update:open":function(e){return s.emit("close",null)}},scopedSlots:e._u([{key:"actions",fn:function(){return[t(s.NcButton,{attrs:{"data-cy-files-new-node-dialog-submit":"",type:"primary",disabled:""!==s.validity},on:{click:s.submit}},[e._v("\n\t\t\t"+e._s(s.t("files","Create"))+"\n\t\t")])]},proxy:!0}])},[e._v(" "),t("form",{ref:"formElement",staticClass:"new-node-dialog__form",on:{submit:function(e){return e.preventDefault(),s.emit("close",s.localDefaultName)}}},[t(s.NcTextField,{ref:"nameInput",attrs:{"data-cy-files-new-node-dialog-input":"",error:""!==s.validity,"helper-text":s.validity,label:e.label,value:s.localDefaultName},on:{"update:value":function(e){s.localDefaultName=e}}})],1)])}),[],!1,null,"59c120f6",null).exports;function Fe(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=t.map((e=>e.basename));return new Promise((t=>{(0,i.Ss)(Ee,{...s,defaultName:e,otherNames:n},(e=>{t(e)}))}))}const Pe={id:"newFolder",displayName:(0,a.Tl)("files","New folder"),enabled:e=>!!(e.permissions&n.aX.CREATE),iconSvgInline:'',order:0,async handler(e,t){const s=await Fe((0,a.Tl)("files","New folder"),t);if(null!==s){var o,d,c,g,u;const{fileid:t,source:f}=await(async(e,t)=>{const s=e.source+"/"+t,n=e.encodedSource+"/"+encodeURIComponent(t),i=await(0,m.Ay)({method:"MKCOL",url:n,headers:{Overwrite:"F"}});return{fileid:parseInt(i.headers["oc-fileid"]),source:s}})(e,s.trim()),p=new n.vd({source:f,id:t,mtime:new Date,owner:(null===(o=(0,L.HW)())||void 0===o?void 0:o.uid)||null,permissions:n.aX.ALL,root:(null==e?void 0:e.root)||"/files/"+(null===(d=(0,L.HW)())||void 0===d?void 0:d.uid),attributes:{"mount-type":null===(c=e.attributes)||void 0===c?void 0:c["mount-type"],"owner-id":null===(g=e.attributes)||void 0===g?void 0:g["owner-id"],"owner-display-name":null===(u=e.attributes)||void 0===u?void 0:u["owner-display-name"]}});(0,l.Ic)("files:node:created",p),(0,i.Te)((0,a.Tl)("files",'Created new folder "{name}"',{name:(0,J.basename)(f)})),r.A.debug("Created new folder",{folder:p,source:f}),window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:p.fileid},{dir:e.path})}}};var Be=s(32981);let Ne=(0,Be.C)("files","templates_path",!1);r.A.debug("Initial templates folder",{templatesPath:Ne});const Ie={id:"template-picker",displayName:(0,a.Tl)("files","Create new templates folder"),iconSvgInline:'',order:10,enabled(e){var t;return!Ne&&e.owner===(null===(t=(0,L.HW)())||void 0===t?void 0:t.uid)&&!!(e.permissions&n.aX.CREATE)},async handler(e,t){const s=await Fe((0,a.Tl)("files","Templates"),t,{name:(0,a.Tl)("files","New template folder")});null!==s&&(async function(e,t){const s=(0,J.join)(e.path,t);try{r.A.debug("Initializing the templates directory",{templatePath:s});const{data:e}=await m.Ay.post((0,x.KT)("apps/files/api/v1/templates/path"),{templatePath:s,copySystemTemplates:!0});window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:void 0},{dir:s}),r.A.info("Created new templates folder",{...e.ocs.data}),Ne=e.ocs.data.templates_path}catch(e){r.A.error("Unable to initialize the templates directory"),(0,i.Qg)((0,a.Tl)("files","Unable to initialize the templates directory"))}}(e,s),(0,n.gj)("template-picker"))}},je=(0,U.$V)((()=>Promise.all([s.e(4208),s.e(3412)]).then(s.bind(s,63412))));let ze=null;const Re=async e=>{if(null===ze){const t=document.createElement("div");t.id="template-picker",document.body.appendChild(t),ze=new U.Ay({render:t=>t(je,{ref:"picker",props:{parent:e}}),methods:{open(){this.$refs.picker.open(...arguments)}},el:t})}return ze},Oe=le(),De=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const s=(0,n.VL)(),i=(0,n.b2)();let a;"/"===t&&(a=await Oe.stat(t,{details:!0,data:s}));const o=await Oe.getDirectoryContents(t,{details:!0,data:"/"===t?i:s,headers:{method:"/"===t?"REPORT":"PROPFIND"},includeSelf:!0}),r=(null===(e=a)||void 0===e?void 0:e.data)||o.data[0],l=o.data.filter((e=>e.filename!==t));return{folder:ce(r),contents:l.map(ce)}},We=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new n.Ss({id:Me(e.path),name:(0,J.basename)(e.path),icon:we,order:t,params:{dir:e.path,fileid:e.fileid.toString(),view:"favorites"},parent:"favorites",columns:[],getContents:De})},Me=function(e){return"favorite-".concat(de(e))};var Ye=s(19166),He=s(63757),Ve=s(96763);let qe;const $e=e=>qe=e,Ge=Symbol();function Ke(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Je;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(Je||(Je={}));const Ze="undefined"!=typeof window,Xe=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function Qe(e,t,s){const n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){it(n.response,t,s)},n.onerror=function(){Ve.error("could not download file")},n.send()}function et(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function tt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(s)}}const st="object"==typeof navigator?navigator:{userAgent:""},nt=(()=>/Macintosh/.test(st.userAgent)&&/AppleWebKit/.test(st.userAgent)&&!/Safari/.test(st.userAgent))(),it=Ze?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!nt?function(e,t="download",s){const n=document.createElement("a");n.download=t,n.rel="noopener","string"==typeof e?(n.href=e,n.origin!==location.origin?et(n.href)?Qe(e,t,s):(n.target="_blank",tt(n)):tt(n)):(n.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(n.href)}),4e4),setTimeout((function(){tt(n)}),0))}:"msSaveOrOpenBlob"in st?function(e,t="download",s){if("string"==typeof e)if(et(e))Qe(e,t,s);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){tt(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,s),t)}:function(e,t,s,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return Qe(e,t,s);const i="application/octet-stream"===e.type,a=/constructor/i.test(String(Xe.HTMLElement))||"safari"in Xe,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||nt)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw n=null,new Error("Wrong reader.result type");e=o?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location.assign(e),n=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);n?n.location.assign(t):location.href=t,n=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};function at(e,t){const s="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(s,t):"error"===t?Ve.error(s):"warn"===t?Ve.warn(s):Ve.log(s)}function ot(e){return"_a"in e&&"install"in e}function rt(){if(!("clipboard"in navigator))return at("Your browser doesn't support the Clipboard API","error"),!0}function lt(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(at('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let dt;function mt(e,t){for(const s in t){const n=e.state.value[s];n?Object.assign(n,t[s]):e.state.value[s]=t[s]}}function ct(e){return{_custom:{display:e}}}const gt="🍍 Pinia (root)",ut="_root";function ft(e){return ot(e)?{id:ut,label:gt}:{id:e.$id,label:e.$id}}function pt(e){return e?Array.isArray(e)?e.reduce(((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ct(e.type),key:ct(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ht(e){switch(e){case Je.direct:return"mutation";case Je.patchFunction:case Je.patchObject:return"$patch";default:return"unknown"}}let wt=!0;const vt=[],xt="pinia:mutations",At="pinia",{assign:bt}=Object,yt=e=>"🍍 "+e;function Ct(e,t){(0,He.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vt,app:e},(s=>{"function"!=typeof s.now&&at("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),s.addTimelineLayer({id:xt,label:"Pinia 🍍",color:15064968}),s.addInspector({id:At,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(e){if(!rt())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),at("Global state copied to clipboard.")}catch(e){if(lt(e))return;at("Failed to serialize the state. Check the console for more details.","error"),Ve.error(e)}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!rt())try{mt(e,JSON.parse(await navigator.clipboard.readText())),at("Global state pasted from clipboard.")}catch(e){if(lt(e))return;at("Failed to deserialize the state from clipboard. Check the console for more details.","error"),Ve.error(e)}}(t),s.sendInspectorTree(At),s.sendInspectorState(At)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(e){try{it(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){at("Failed to export the state as JSON. Check the console for more details.","error"),Ve.error(e)}}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(e){try{const t=(dt||(dt=document.createElement("input"),dt.type="file",dt.accept=".json"),function(){return new Promise(((e,t)=>{dt.onchange=async()=>{const t=dt.files;if(!t)return e(null);const s=t.item(0);return e(s?{text:await s.text(),file:s}:null)},dt.oncancel=()=>e(null),dt.onerror=t,dt.click()}))}),s=await t();if(!s)return;const{text:n,file:i}=s;mt(e,JSON.parse(n)),at(`Global state imported from "${i.name}".`)}catch(e){at("Failed to import the state from JSON. Check the console for more details.","error"),Ve.error(e)}}(t),s.sendInspectorTree(At),s.sendInspectorState(At)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:e=>{const s=t._s.get(e);s?"function"!=typeof s.$reset?at(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),at(`Store "${e}" reset.`)):at(`Cannot reset "${e}" store because it wasn't found.`,"warn")}}]}),s.on.inspectComponent(((e,t)=>{const s=e.componentInstance&&e.componentInstance.proxy;if(s&&s._pStores){const t=e.componentInstance.proxy._pStores;Object.values(t).forEach((t=>{e.instanceData.state.push({type:yt(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:(0,Ye.ux)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce(((e,s)=>(e[s]=t.$state[s],e)),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:yt(t.$id),key:"getters",editable:!1,value:t._getters.reduce(((e,s)=>{try{e[s]=t[s]}catch(t){e[s]=t}return e}),{})})}))}})),s.on.getInspectorTree((s=>{if(s.app===e&&s.inspectorId===At){let e=[t];e=e.concat(Array.from(t._s.values())),s.rootNodes=(s.filter?e.filter((e=>"$id"in e?e.$id.toLowerCase().includes(s.filter.toLowerCase()):gt.toLowerCase().includes(s.filter.toLowerCase()))):e).map(ft)}})),globalThis.$pinia=t,s.on.getInspectorState((s=>{if(s.app===e&&s.inspectorId===At){const e=s.nodeId===ut?t:t._s.get(s.nodeId);if(!e)return;e&&(s.nodeId!==ut&&(globalThis.$store=(0,Ye.ux)(e)),s.state=function(e){if(ot(e)){const t=Array.from(e._s.keys()),s=e._s,n={state:t.map((t=>({editable:!0,key:t,value:e.state.value[t]}))),getters:t.filter((e=>s.get(e)._getters)).map((e=>{const t=s.get(e);return{editable:!1,key:e,value:t._getters.reduce(((e,s)=>(e[s]=t[s],e)),{})}}))};return n}const t={state:Object.keys(e.$state).map((t=>({editable:!0,key:t,value:e.$state[t]})))};return e._getters&&e._getters.length&&(t.getters=e._getters.map((t=>({editable:!1,key:t,value:e[t]})))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map((t=>({editable:!0,key:t,value:e[t]})))),t}(e))}})),s.on.editInspectorState(((s,n)=>{if(s.app===e&&s.inspectorId===At){const e=s.nodeId===ut?t:t._s.get(s.nodeId);if(!e)return at(`store "${s.nodeId}" not found`,"error");const{path:n}=s;ot(e)?n.unshift("state"):1===n.length&&e._customProperties.has(n[0])&&!(n[0]in e.$state)||n.unshift("$state"),wt=!1,s.set(e,n,s.state.value),wt=!0}})),s.on.editComponentState((e=>{if(e.type.startsWith("🍍")){const s=e.type.replace(/^🍍\s*/,""),n=t._s.get(s);if(!n)return at(`store "${s}" not found`,"error");const{path:i}=e;if("state"!==i[0])return at(`Invalid path for store "${s}":\n${i}\nOnly state can be modified.`);i[0]="$state",wt=!1,e.set(n,i,e.state.value),wt=!0}}))}))}let Tt,kt=0;function Lt(e,t,s){const n=t.reduce(((t,s)=>(t[s]=(0,Ye.ux)(e)[s],t)),{});for(const t in n)e[t]=function(){const i=kt,a=s?new Proxy(e,{get:(...e)=>(Tt=i,Reflect.get(...e)),set:(...e)=>(Tt=i,Reflect.set(...e))}):e;Tt=i;const o=n[t].apply(a,arguments);return Tt=void 0,o}}function _t({app:e,store:t,options:s}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!s.state,!t._p._testing){Lt(t,Object.keys(s.actions),t._isOptionsAPI);const e=t._hotUpdate;(0,Ye.ux)(t)._hotUpdate=function(s){e.apply(this,arguments),Lt(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)}}!function(e,t){vt.includes(yt(t.$id))||vt.push(yt(t.$id)),(0,He.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(e=>{const s="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction((({after:n,onError:i,name:a,args:o})=>{const r=kt++;e.addTimelineEvent({layerId:xt,event:{time:s(),title:"🛫 "+a,subtitle:"start",data:{store:ct(t.$id),action:ct(a),args:o},groupId:r}}),n((n=>{Tt=void 0,e.addTimelineEvent({layerId:xt,event:{time:s(),title:"🛬 "+a,subtitle:"end",data:{store:ct(t.$id),action:ct(a),args:o,result:n},groupId:r}})})),i((n=>{Tt=void 0,e.addTimelineEvent({layerId:xt,event:{time:s(),logType:"error",title:"💥 "+a,subtitle:"end",data:{store:ct(t.$id),action:ct(a),args:o,error:n},groupId:r}})}))}),!0),t._customProperties.forEach((n=>{(0,Ye.wB)((()=>(0,Ye.R1)(t[n])),((t,i)=>{e.notifyComponentUpdate(),e.sendInspectorState(At),wt&&e.addTimelineEvent({layerId:xt,event:{time:s(),title:"Change",subtitle:n,data:{newValue:t,oldValue:i},groupId:Tt}})}),{deep:!0})})),t.$subscribe((({events:n,type:i},a)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(At),!wt)return;const o={time:s(),title:ht(i),data:bt({store:ct(t.$id)},pt(n)),groupId:Tt};i===Je.patchFunction?o.subtitle="⤵️":i===Je.patchObject?o.subtitle="🧩":n&&!Array.isArray(n)&&(o.subtitle=n.type),n&&(o.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:n}}),e.addTimelineEvent({layerId:xt,event:o})}),{detached:!0,flush:"sync"});const n=t._hotUpdate;t._hotUpdate=(0,Ye.IG)((i=>{n(i),e.addTimelineEvent({layerId:xt,event:{time:s(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:ct(t.$id),info:ct("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(At),e.sendInspectorState(At)}));const{$dispose:i}=t;t.$dispose=()=>{i(),e.notifyComponentUpdate(),e.sendInspectorTree(At),e.sendInspectorState(At),e.getSettings().logStoreChanges&&at(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(At),e.sendInspectorState(At),e.getSettings().logStoreChanges&&at(`"${t.$id}" store installed 🆕`)}))}(e,t)}}const St=()=>{};function Ut(e,t,s,n=St){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!s&&(0,Ye.o5)()&&(0,Ye.jr)(i),i}function Et(e,...t){e.slice().forEach((e=>{e(...t)}))}const Ft=e=>e(),Pt=Symbol(),Bt=Symbol();function Nt(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,s)=>e.set(s,t))):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],i=e[s];Ke(i)&&Ke(n)&&e.hasOwnProperty(s)&&!(0,Ye.i9)(n)&&!(0,Ye.g8)(n)?e[s]=Nt(i,n):e[s]=n}return e}const It=Symbol(),jt=new WeakMap,{assign:zt}=Object;function Rt(e,t,s={},n,i,a){let o;const r=zt({actions:{}},s),l={deep:!0};let d,m,c,g=[],u=[];const f=n.state.value[e];a||f||(Ye.LE?(0,Ye.hZ)(n.state.value,e,{}):n.state.value[e]={});const p=(0,Ye.KR)({});let h;function w(t){let s;d=m=!1,"function"==typeof t?(t(n.state.value[e]),s={type:Je.patchFunction,storeId:e,events:c}):(Nt(n.state.value[e],t),s={type:Je.patchObject,payload:t,storeId:e,events:c});const i=h=Symbol();(0,Ye.dY)().then((()=>{h===i&&(d=!0)})),m=!0,Et(g,s,n.state.value[e])}const v=a?function(){const{state:e}=s,t=e?e():{};this.$patch((e=>{zt(e,t)}))}:St,x=(t,s="")=>{if(Pt in t)return t[Bt]=s,t;const i=function(){$e(n);const s=Array.from(arguments),a=[],o=[];let r;Et(u,{args:s,name:i[Bt],store:y,after:function(e){a.push(e)},onError:function(e){o.push(e)}});try{r=t.apply(this&&this.$id===e?this:y,s)}catch(e){throw Et(o,e),e}return r instanceof Promise?r.then((e=>(Et(a,e),e))).catch((e=>(Et(o,e),Promise.reject(e)))):(Et(a,r),r)};return i[Pt]=!0,i[Bt]=s,i},A=(0,Ye.IG)({actions:{},getters:{},state:[],hotState:p}),b={_p:n,$id:e,$onAction:Ut.bind(null,u),$patch:w,$reset:v,$subscribe(t,s={}){const i=Ut(g,t,s.detached,(()=>a())),a=o.run((()=>(0,Ye.wB)((()=>n.state.value[e]),(n=>{("sync"===s.flush?m:d)&&t({storeId:e,type:Je.direct,events:c},n)}),zt({},l,s))));return i},$dispose:function(){o.stop(),g=[],u=[],n._s.delete(e)}};Ye.LE&&(b._r=!1);const y=(0,Ye.Kh)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&Ze?zt({_hmrPayload:A,_customProperties:(0,Ye.IG)(new Set)},b):b);n._s.set(e,y);const C=(n._a&&n._a.runWithContext||Ft)((()=>n._e.run((()=>(o=(0,Ye.uY)()).run((()=>t({action:x})))))));for(const t in C){const s=C[t];if((0,Ye.i9)(s)&&(k=s,!(0,Ye.i9)(k)||!k.effect)||(0,Ye.g8)(s))a||(!f||(T=s,Ye.LE?jt.has(T):Ke(T)&&T.hasOwnProperty(It))||((0,Ye.i9)(s)?s.value=f[t]:Nt(s,f[t])),Ye.LE?(0,Ye.hZ)(n.state.value[e],t,s):n.state.value[e][t]=s);else if("function"==typeof s){const e=x(s,t);Ye.LE?(0,Ye.hZ)(C,t,e):C[t]=e,r.actions[t]=s}}var T,k;if(Ye.LE?Object.keys(C).forEach((e=>{(0,Ye.hZ)(y,e,C[e])})):(zt(y,C),zt((0,Ye.ux)(y),C)),Object.defineProperty(y,"$state",{get:()=>n.state.value[e],set:e=>{w((t=>{zt(t,e)}))}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&Ze){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(y,t,zt({value:y[t]},e))}))}return Ye.LE&&(y._r=!0),n._p.forEach((e=>{if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&Ze){const t=o.run((()=>e({store:y,app:n._a,pinia:n,options:r})));Object.keys(t||{}).forEach((e=>y._customProperties.add(e))),zt(y,t)}else zt(y,o.run((()=>e({store:y,app:n._a,pinia:n,options:r}))))})),f&&a&&s.hydrate&&s.hydrate(y.$state,f),d=!0,m=!0,y}const Ot=(0,Be.C)("files","config",{show_hidden:!1,crop_image_previews:!0,sort_favorites_first:!0,sort_folders_first:!0,grid_view:!1}),Dt=function(){const e=(0,Ye.uY)(!0),t=e.run((()=>(0,Ye.KR)({})));let s=[],n=[];const i=(0,Ye.IG)({install(e){$e(i),Ye.LE||(i._a=e,e.provide(Ge,i),e.config.globalProperties.$pinia=i,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&Ze&&Ct(e,i),n.forEach((e=>s.push(e))),n=[])},use(e){return this._a||Ye.LE?s.push(e):n.push(e),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&"undefined"!=typeof Proxy&&i.use(_t),i}(),Wt=(0,n.H4)(),Mt=Math.round(Date.now()/1e3-1209600);(0,n.Gg)(v),(0,n.Gg)(T),(0,n.Gg)(S),(0,n.Gg)(B),(0,n.Gg)(he),(0,n.Gg)(ve),(0,n.Gg)(xe),(0,n.Gg)(Ae),(0,n.Gg)(ye),(0,n.Gg)(Ce),(0,n.zj)(Pe),(0,n.zj)(Ie),(0,Be.C)("files","templates",[]).forEach(((e,t)=>{(0,n.zj)({id:"template-new-".concat(e.app,"-").concat(t),displayName:e.label,iconClass:e.iconClass||"icon-file",enabled:e=>!!(e.permissions&n.aX.CREATE),order:11,async handler(t,s){const n=Re(t),i=await Fe("".concat(e.label).concat(e.extension),s,{label:(0,a.Tl)("files","Filename"),name:e.label});null!==i&&(await n).open(i.trim(),e)}})})),(()=>{const e=(0,Be.C)("files","favoriteFolders",[]),t=e.map(((e,t)=>We(e,t)));r.A.debug("Generating favorites view",{favoriteFolders:e});const s=(0,n.bh)();s.register(new n.Ss({id:"favorites",name:(0,a.Tl)("files","Favorites"),caption:(0,a.Tl)("files","List of favorites files and folders."),emptyTitle:(0,a.Tl)("files","No favorites yet"),emptyCaption:(0,a.Tl)("files","Files and folders you mark as favorite will show up here"),icon:E,order:5,columns:[],getContents:De})),t.forEach((e=>s.register(e))),(0,l.B1)("files:favorites:added",(e=>{var t;e.type===n.pt.Folder&&(null!==e.path&&null!==(t=e.root)&&void 0!==t&&t.startsWith("/files")?o(e):r.A.error("Favorite folder is not within user files root",{node:e}))})),(0,l.B1)("files:favorites:removed",(e=>{var t;e.type===n.pt.Folder&&(null!==e.path&&null!==(t=e.root)&&void 0!==t&&t.startsWith("/files")?d(e.path):r.A.error("Favorite folder is not within user files root",{node:e}))})),(0,l.B1)("files:node:renamed",(e=>{e.type===n.pt.Folder&&1===e.attributes.favorite&&m(e)}));const i=function(){e.sort(((e,t)=>e.path.localeCompare(t.path,(0,a.Z0)(),{ignorePunctuation:!0}))),e.forEach(((e,s)=>{const n=t.find((t=>t.id===Me(e.path)));n&&(n.order=s)}))},o=function(n){const a={path:n.path,fileid:n.fileid},o=We(a);e.find((e=>e.path===n.path))||(e.push(a),t.push(o),i(),s.register(o))},d=function(n){const a=Me(n),o=e.findIndex((e=>e.path===n));-1!==o&&(e.splice(o,1),t.splice(o,1),s.remove(a),i())},m=function(t){const s=e.find((e=>e.fileid===t.fileid));void 0!==s&&(d(s.path),o(t))}})(),(0,n.bh)().register(new n.Ss({id:"files",name:(0,a.Tl)("files","All files"),caption:(0,a.Tl)("files","List of your files and folders."),icon:we,order:0,getContents:ge})),(0,n.bh)().register(new n.Ss({id:"recent",name:(0,a.Tl)("files","Recent"),caption:(0,a.Tl)("files","List of recently modified files and folders."),emptyTitle:(0,a.Tl)("files","No recently modified files"),emptyCaption:(0,a.Tl)("files","Files and folders you recently modified will show up here."),icon:'',order:2,defaultSortKey:"mtime",getContents:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const s=function(){const e=function(e,t,s){let n,i;const a="function"==typeof t;function o(e,s){const o=(0,Ye.PS)();return(e=e||(o?(0,Ye.WQ)(Ge,null):null))&&$e(e),(e=qe)._s.has(n)||(a?Rt(n,t,i,e):function(e,t,s,n){const{state:i,actions:a,getters:o}=t,r=s.state.value[e];let l;l=Rt(e,(function(){r||(Ye.LE?(0,Ye.hZ)(s.state.value,e,i?i():{}):s.state.value[e]=i?i():{});const t=(0,Ye.QW)(s.state.value[e]);return zt(t,a,Object.keys(o||{}).reduce(((t,n)=>(t[n]=(0,Ye.IG)((0,Ye.EW)((()=>{$e(s);const t=s._s.get(e);if(!Ye.LE||t._r)return o[n].call(t,t)}))),t)),{}))}),t,s,0,!0)}(n,i,e)),e._s.get(n)}return"string"==typeof e?(n=e,i=a?s:t):(i=e,n=e.id),o.$id=n,o}("userconfig",{state:()=>({userConfig:Ot}),actions:{onUpdate(e,t){U.Ay.set(this.userConfig,e,t)},async update(e,t){await m.Ay.put((0,x.Jv)("/apps/files/api/v1/config/"+e),{value:t}),(0,l.Ic)("files:config:updated",{key:e,value:t})}}})(...arguments);return e._initialized||((0,l.B1)("files:config:updated",(function(t){let{key:s,value:n}=t;e.onUpdate(s,n)})),e._initialized=!0),e}(Dt),i=(await Wt.getDirectoryContents(t,{details:!0,data:(0,n.R3)(Mt),headers:{method:"SEARCH","Content-Type":"application/xml; charset=utf-8"},deep:!0})).data;return{folder:new n.vd({id:0,source:"".concat(n.PY).concat(n.lJ),root:n.lJ,owner:(null===(e=(0,L.HW)())||void 0===e?void 0:e.uid)||null,permissions:n.aX.READ}),contents:i.map((e=>(0,n.Al)(e))).filter((e=>"/"!==t||s.userConfig.show_hidden||!e.dirname.split("/").some((e=>e.startsWith(".")))))}}})),"serviceWorker"in navigator?window.addEventListener("load",(async()=>{try{const e=(0,x.Jv)("/apps/files/preview-service-worker.js",{},{noRewrite:!0}),t=await navigator.serviceWorker.register(e,{scope:"/"});r.A.debug("SW registered: ",{registration:t})}catch(e){r.A.error("SW registration failed: ",{error:e})}})):r.A.debug("Service Worker is not enabled on this browser."),(0,n.Yc)("nc:hidden",{nc:"http://nextcloud.org/ns"}),(0,n.Yc)("nc:is-mount-root",{nc:"http://nextcloud.org/ns"}),(0,n.Yc)("nc:is-federated",{nc:"http://nextcloud.org/ns"}),(0,n.Yc)("nc:metadata-files-live-photo",{nc:"http://nextcloud.org/ns"})},14456:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var n=s(71354),i=s.n(n),a=s(76314),o=s.n(a),r=s(4417),l=s.n(r),d=new URL(s(98383),s.b),m=new URL(s(39075),s.b),c=o()(i()),g=l()(d),u=l()(m);c.push([e.id,`/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n.toastify.dialogs {\n min-width: 200px;\n background: none;\n background-color: var(--color-main-background);\n color: var(--color-main-text);\n box-shadow: 0 0 6px 0 var(--color-box-shadow);\n padding: 0 12px;\n margin-top: 45px;\n position: fixed;\n z-index: 10100;\n border-radius: var(--border-radius);\n display: flex;\n align-items: center;\n}\n.toastify.dialogs .toast-undo-container {\n display: flex;\n align-items: center;\n}\n.toastify.dialogs .toast-undo-button,\n.toastify.dialogs .toast-close {\n position: static;\n overflow: hidden;\n box-sizing: border-box;\n min-width: 44px;\n height: 100%;\n padding: 12px;\n white-space: nowrap;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n min-height: 0;\n}\n.toastify.dialogs .toast-undo-button.toast-close,\n.toastify.dialogs .toast-close.toast-close {\n text-indent: 0;\n opacity: 0.4;\n border: none;\n min-height: 44px;\n margin-left: 10px;\n font-size: 0;\n /* dark theme overrides for Nextcloud 25 and later */\n}\n.toastify.dialogs .toast-undo-button.toast-close::before,\n.toastify.dialogs .toast-close.toast-close::before {\n background-image: url(${g});\n content: " ";\n filter: var(--background-invert-if-dark);\n display: inline-block;\n width: 16px;\n height: 16px;\n}\n.toastify.dialogs .toast-undo-button.toast-undo-button,\n.toastify.dialogs .toast-close.toast-undo-button {\n margin: 3px;\n height: calc(100% - 2 * 3px);\n margin-left: 12px;\n}\n.toastify.dialogs .toast-undo-button:hover, .toastify.dialogs .toast-undo-button:focus, .toastify.dialogs .toast-undo-button:active,\n.toastify.dialogs .toast-close:hover,\n.toastify.dialogs .toast-close:focus,\n.toastify.dialogs .toast-close:active {\n cursor: pointer;\n opacity: 1;\n}\n.toastify.dialogs.toastify-top {\n right: 10px;\n}\n.toastify.dialogs.toast-with-click {\n cursor: pointer;\n}\n.toastify.dialogs.toast-error {\n border-left: 3px solid var(--color-error);\n}\n.toastify.dialogs.toast-info {\n border-left: 3px solid var(--color-primary);\n}\n.toastify.dialogs.toast-warning {\n border-left: 3px solid var(--color-warning);\n}\n.toastify.dialogs.toast-success {\n border-left: 3px solid var(--color-success);\n}\n.toastify.dialogs.toast-undo {\n border-left: 3px solid var(--color-success);\n}\n\n/* dark theme overrides for Nextcloud 24 and earlier */\n.theme--dark .toastify.dialogs .toast-close {\n /* close icon style */\n}\n.theme--dark .toastify.dialogs .toast-close.toast-close::before {\n background-image: url(${u});\n}\n.nc-generic-dialog .dialog__actions {\n\tjustify-content: space-between;\n\tmin-width: calc(100% - 12px);\n}\n/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n/**\n * Icon styling of the file list row preview or fallback icon\n * (leading icon on the name row and header)\n */\n._file-picker__file-icon_19mjt_9 {\n width: 32px;\n height: 32px;\n min-width: 32px;\n min-height: 32px;\n background-repeat: no-repeat;\n background-size: contain;\n display: flex;\n justify-content: center;\n}/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\ntr.file-picker__row[data-v-15187afc] {\n height: var(--row-height, 50px);\n}\ntr.file-picker__row td[data-v-15187afc] {\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n border-bottom: none;\n}\ntr.file-picker__row td.row-checkbox[data-v-15187afc] {\n padding: 0 2px;\n}\ntr.file-picker__row td[data-v-15187afc]:not(.row-checkbox) {\n padding-inline: 14px 0;\n}\ntr.file-picker__row td.row-size[data-v-15187afc] {\n text-align: end;\n padding-inline: 0 14px;\n}\ntr.file-picker__row td.row-name[data-v-15187afc] {\n padding-inline: 2px 0;\n}\n@keyframes gradient-15187afc {\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n}\n.loading-row .row-checkbox[data-v-15187afc] {\n text-align: center !important;\n}\n.loading-row span[data-v-15187afc] {\n display: inline-block;\n height: 24px;\n background: linear-gradient(to right, var(--color-background-darker), var(--color-text-maxcontrast), var(--color-background-darker));\n background-size: 600px 100%;\n border-radius: var(--border-radius);\n animation: gradient-15187afc 12s ease infinite;\n}\n.loading-row .row-wrapper[data-v-15187afc] {\n display: inline-flex;\n align-items: center;\n}\n.loading-row .row-checkbox span[data-v-15187afc] {\n width: 24px;\n}\n.loading-row .row-name span[data-v-15187afc]:last-of-type {\n margin-inline-start: 6px;\n width: 130px;\n}\n.loading-row .row-size span[data-v-15187afc] {\n width: 80px;\n}\n.loading-row .row-modified span[data-v-15187afc] {\n width: 90px;\n}/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\ntr.file-picker__row[data-v-cb12dccb] {\n height: var(--row-height, 50px);\n}\ntr.file-picker__row td[data-v-cb12dccb] {\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n border-bottom: none;\n}\ntr.file-picker__row td.row-checkbox[data-v-cb12dccb] {\n padding: 0 2px;\n}\ntr.file-picker__row td[data-v-cb12dccb]:not(.row-checkbox) {\n padding-inline: 14px 0;\n}\ntr.file-picker__row td.row-size[data-v-cb12dccb] {\n text-align: end;\n padding-inline: 0 14px;\n}\ntr.file-picker__row td.row-name[data-v-cb12dccb] {\n padding-inline: 2px 0;\n}\n.file-picker__row--selected[data-v-cb12dccb] {\n background-color: var(--color-background-dark);\n}\n.file-picker__row[data-v-cb12dccb]:hover {\n background-color: var(--color-background-hover);\n}\n.file-picker__name-container[data-v-cb12dccb] {\n display: flex;\n justify-content: start;\n align-items: center;\n height: 100%;\n}\n.file-picker__file-name[data-v-cb12dccb] {\n padding-inline-start: 6px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.file-picker__file-extension[data-v-cb12dccb] {\n color: var(--color-text-maxcontrast);\n min-width: fit-content;\n}.file-picker__header-preview[data-v-006fdbd0] {\n width: 22px;\n height: 32px;\n flex: 0 0 auto;\n}\n.file-picker__files[data-v-006fdbd0] {\n margin: 2px;\n margin-inline-start: 12px;\n overflow: scroll auto;\n}\n.file-picker__files table[data-v-006fdbd0] {\n width: 100%;\n max-height: 100%;\n table-layout: fixed;\n}\n.file-picker__files th[data-v-006fdbd0] {\n position: sticky;\n z-index: 1;\n top: 0;\n background-color: var(--color-main-background);\n padding: 2px;\n}\n.file-picker__files th .header-wrapper[data-v-006fdbd0] {\n display: flex;\n}\n.file-picker__files th.row-checkbox[data-v-006fdbd0] {\n width: 44px;\n}\n.file-picker__files th.row-name[data-v-006fdbd0] {\n width: 230px;\n}\n.file-picker__files th.row-size[data-v-006fdbd0] {\n width: 100px;\n}\n.file-picker__files th.row-modified[data-v-006fdbd0] {\n width: 120px;\n}\n.file-picker__files th[data-v-006fdbd0]:not(.row-size) .button-vue__wrapper {\n justify-content: start;\n flex-direction: row-reverse;\n}\n.file-picker__files th[data-v-006fdbd0]:not(.row-size) .button-vue {\n padding-inline: 16px 4px;\n}\n.file-picker__files th.row-size[data-v-006fdbd0] .button-vue__wrapper {\n justify-content: end;\n}\n.file-picker__files th[data-v-006fdbd0] .button-vue__wrapper {\n color: var(--color-text-maxcontrast);\n}\n.file-picker__files th[data-v-006fdbd0] .button-vue__wrapper .button-vue__text {\n font-weight: normal;\n}.file-picker__breadcrumbs[data-v-b357227a] {\n flex-grow: 0 !important;\n}.file-picker__side[data-v-b42054b8] {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 0.5rem;\n min-width: 200px;\n padding: 2px;\n margin-block-start: 7px;\n overflow: auto;\n}\n.file-picker__side[data-v-b42054b8] .button-vue__wrapper {\n justify-content: start;\n}\n.file-picker__filter-input[data-v-b42054b8] {\n margin-block: 7px;\n max-width: 260px;\n}\n@media (max-width: 736px) {\n.file-picker__side[data-v-b42054b8] {\n flex-direction: row;\n min-width: unset;\n}\n}\n@media (max-width: 512px) {\n.file-picker__side[data-v-b42054b8] {\n flex-direction: row;\n min-width: unset;\n}\n.file-picker__filter-input[data-v-b42054b8] {\n max-width: unset;\n}\n}/* Ensure focus outline is visible */\n.file-picker__navigation {\n padding-inline: 8px 2px;\n}\n.file-picker__navigation, .file-picker__navigation * {\n box-sizing: border-box;\n}\n.file-picker__navigation .v-select.select {\n min-width: 220px;\n}\n@media (min-width: 513px) and (max-width: 736px) {\n.file-picker__navigation {\n gap: 11px;\n}\n}\n@media (max-width: 512px) {\n.file-picker__navigation {\n flex-direction: column-reverse !important;\n}\n}.file-picker__view[data-v-20b719ba] {\n height: 50px;\n display: flex;\n justify-content: start;\n align-items: center;\n}\n.file-picker__view h3[data-v-20b719ba] {\n font-weight: bold;\n height: fit-content;\n margin: 0;\n}\n.file-picker__main[data-v-20b719ba] {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n padding-inline: 2px;\n}\n.file-picker__main *[data-v-20b719ba] {\n box-sizing: border-box;\n}\n[data-v-20b719ba] .file-picker {\n height: min(80vh, 800px) !important;\n}\n@media (max-width: 512px) {\n[data-v-20b719ba] .file-picker {\n height: calc(100% - 16px - var(--default-clickable-area)) !important;\n}\n}\n[data-v-20b719ba] .file-picker__content {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}`,"",{version:3,sources:["webpack://./node_modules/@nextcloud/dialogs/dist/style.css"],names:[],mappings:"AAAA;;;EAGE;AACF;EACE,gBAAgB;EAChB,gBAAgB;EAChB,8CAA8C;EAC9C,6BAA6B;EAC7B,6CAA6C;EAC7C,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,cAAc;EACd,mCAAmC;EACnC,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;;EAEE,gBAAgB;EAChB,gBAAgB;EAChB,sBAAsB;EACtB,eAAe;EACf,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,4BAA4B;EAC5B,2BAA2B;EAC3B,6BAA6B;EAC7B,aAAa;AACf;AACA;;EAEE,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;EACZ,oDAAoD;AACtD;AACA;;EAEE,yDAAsf;EACtf,YAAY;EACZ,wCAAwC;EACxC,qBAAqB;EACrB,WAAW;EACX,YAAY;AACd;AACA;;EAEE,WAAW;EACX,4BAA4B;EAC5B,iBAAiB;AACnB;AACA;;;;EAIE,eAAe;EACf,UAAU;AACZ;AACA;EACE,WAAW;AACb;AACA;EACE,eAAe;AACjB;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,2CAA2C;AAC7C;AACA;EACE,2CAA2C;AAC7C;;AAEA,sDAAsD;AACtD;EACE,qBAAqB;AACvB;AACA;EACE,yDAAkgB;AACpgB;AACA;CACC,8BAA8B;CAC9B,4BAA4B;AAC7B;AACA;;;EAGE;AACF;;;EAGE;AACF;EACE,WAAW;EACX,YAAY;EACZ,eAAe;EACf,gBAAgB;EAChB,4BAA4B;EAC5B,wBAAwB;EACxB,aAAa;EACb,uBAAuB;AACzB,CAAC;;;EAGC;AACF;EACE,+BAA+B;AACjC;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,qBAAqB;AACvB;AACA;AACA;IACI,2BAA2B;AAC/B;AACA;IACI,6BAA6B;AACjC;AACA;IACI,2BAA2B;AAC/B;AACA;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,qBAAqB;EACrB,YAAY;EACZ,oIAAoI;EACpI,2BAA2B;EAC3B,mCAAmC;EACnC,8CAA8C;AAChD;AACA;EACE,oBAAoB;EACpB,mBAAmB;AACrB;AACA;EACE,WAAW;AACb;AACA;EACE,wBAAwB;EACxB,YAAY;AACd;AACA;EACE,WAAW;AACb;AACA;EACE,WAAW;AACb,CAAC;;;EAGC;AACF;EACE,+BAA+B;AACjC;AACA;EACE,eAAe;EACf,gBAAgB;EAChB,uBAAuB;EACvB,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,eAAe;EACf,sBAAsB;AACxB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,8CAA8C;AAChD;AACA;EACE,+CAA+C;AACjD;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,yBAAyB;EACzB,YAAY;EACZ,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,oCAAoC;EACpC,sBAAsB;AACxB,CAAC;EACC,WAAW;EACX,YAAY;EACZ,cAAc;AAChB;AACA;EACE,WAAW;EACX,yBAAyB;EACzB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,UAAU;EACV,MAAM;EACN,8CAA8C;EAC9C,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,WAAW;AACb;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,2BAA2B;AAC7B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,oBAAoB;AACtB;AACA;EACE,oCAAoC;AACtC;AACA;EACE,mBAAmB;AACrB,CAAC;EACC,uBAAuB;AACzB,CAAC;EACC,aAAa;EACb,sBAAsB;EACtB,oBAAoB;EACpB,WAAW;EACX,gBAAgB;EAChB,YAAY;EACZ,uBAAuB;EACvB,cAAc;AAChB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,iBAAiB;EACjB,gBAAgB;AAClB;AACA;AACA;IACI,mBAAmB;IACnB,gBAAgB;AACpB;AACA;AACA;AACA;IACI,mBAAmB;IACnB,gBAAgB;AACpB;AACA;IACI,gBAAgB;AACpB;AACA,CAAC,oCAAoC;AACrC;EACE,uBAAuB;AACzB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;AACA;IACI,SAAS;AACb;AACA;AACA;AACA;IACI,yCAAyC;AAC7C;AACA,CAAC;EACC,YAAY;EACZ,aAAa;EACb,sBAAsB;EACtB,mBAAmB;AACrB;AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,SAAS;AACX;AACA;EACE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,sBAAsB;EACtB,aAAa;EACb,OAAO;EACP,mBAAmB;AACrB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,mCAAmC;AACrC;AACA;AACA;IACI,oEAAoE;AACxE;AACA;AACA;EACE,aAAa;EACb,sBAAsB;EACtB,gBAAgB;AAClB",sourcesContent:["/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n.toastify.dialogs {\n min-width: 200px;\n background: none;\n background-color: var(--color-main-background);\n color: var(--color-main-text);\n box-shadow: 0 0 6px 0 var(--color-box-shadow);\n padding: 0 12px;\n margin-top: 45px;\n position: fixed;\n z-index: 10100;\n border-radius: var(--border-radius);\n display: flex;\n align-items: center;\n}\n.toastify.dialogs .toast-undo-container {\n display: flex;\n align-items: center;\n}\n.toastify.dialogs .toast-undo-button,\n.toastify.dialogs .toast-close {\n position: static;\n overflow: hidden;\n box-sizing: border-box;\n min-width: 44px;\n height: 100%;\n padding: 12px;\n white-space: nowrap;\n background-repeat: no-repeat;\n background-position: center;\n background-color: transparent;\n min-height: 0;\n}\n.toastify.dialogs .toast-undo-button.toast-close,\n.toastify.dialogs .toast-close.toast-close {\n text-indent: 0;\n opacity: 0.4;\n border: none;\n min-height: 44px;\n margin-left: 10px;\n font-size: 0;\n /* dark theme overrides for Nextcloud 25 and later */\n}\n.toastify.dialogs .toast-undo-button.toast-close::before,\n.toastify.dialogs .toast-close.toast-close::before {\n background-image: url(\"data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20height='16'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M6.4%2019%205%2017.6l5.6-5.6L5%206.4%206.4%205l5.6%205.6L17.6%205%2019%206.4%2013.4%2012l5.6%205.6-1.4%201.4-5.6-5.6L6.4%2019Z'%20style='fill-rule:nonzero'%20transform='matrix(.85714%200%200%20.85714%20-2.286%20-2.286)'/%3e%3c/svg%3e\");\n content: \" \";\n filter: var(--background-invert-if-dark);\n display: inline-block;\n width: 16px;\n height: 16px;\n}\n.toastify.dialogs .toast-undo-button.toast-undo-button,\n.toastify.dialogs .toast-close.toast-undo-button {\n margin: 3px;\n height: calc(100% - 2 * 3px);\n margin-left: 12px;\n}\n.toastify.dialogs .toast-undo-button:hover, .toastify.dialogs .toast-undo-button:focus, .toastify.dialogs .toast-undo-button:active,\n.toastify.dialogs .toast-close:hover,\n.toastify.dialogs .toast-close:focus,\n.toastify.dialogs .toast-close:active {\n cursor: pointer;\n opacity: 1;\n}\n.toastify.dialogs.toastify-top {\n right: 10px;\n}\n.toastify.dialogs.toast-with-click {\n cursor: pointer;\n}\n.toastify.dialogs.toast-error {\n border-left: 3px solid var(--color-error);\n}\n.toastify.dialogs.toast-info {\n border-left: 3px solid var(--color-primary);\n}\n.toastify.dialogs.toast-warning {\n border-left: 3px solid var(--color-warning);\n}\n.toastify.dialogs.toast-success {\n border-left: 3px solid var(--color-success);\n}\n.toastify.dialogs.toast-undo {\n border-left: 3px solid var(--color-success);\n}\n\n/* dark theme overrides for Nextcloud 24 and earlier */\n.theme--dark .toastify.dialogs .toast-close {\n /* close icon style */\n}\n.theme--dark .toastify.dialogs .toast-close.toast-close::before {\n background-image: url(\"data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20height='16'%20width='16'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M6.4%2019%205%2017.6l5.6-5.6L5%206.4%206.4%205l5.6%205.6L17.6%205%2019%206.4%2013.4%2012l5.6%205.6-1.4%201.4-5.6-5.6L6.4%2019Z'%20style='fill:%23fff;fill-rule:nonzero'%20transform='matrix(.85714%200%200%20.85714%20-2.286%20-2.286)'/%3e%3c/svg%3e\");\n}\n.nc-generic-dialog .dialog__actions {\n\tjustify-content: space-between;\n\tmin-width: calc(100% - 12px);\n}\n/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n/**\n * Icon styling of the file list row preview or fallback icon\n * (leading icon on the name row and header)\n */\n._file-picker__file-icon_19mjt_9 {\n width: 32px;\n height: 32px;\n min-width: 32px;\n min-height: 32px;\n background-repeat: no-repeat;\n background-size: contain;\n display: flex;\n justify-content: center;\n}/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\ntr.file-picker__row[data-v-15187afc] {\n height: var(--row-height, 50px);\n}\ntr.file-picker__row td[data-v-15187afc] {\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n border-bottom: none;\n}\ntr.file-picker__row td.row-checkbox[data-v-15187afc] {\n padding: 0 2px;\n}\ntr.file-picker__row td[data-v-15187afc]:not(.row-checkbox) {\n padding-inline: 14px 0;\n}\ntr.file-picker__row td.row-size[data-v-15187afc] {\n text-align: end;\n padding-inline: 0 14px;\n}\ntr.file-picker__row td.row-name[data-v-15187afc] {\n padding-inline: 2px 0;\n}\n@keyframes gradient-15187afc {\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n}\n.loading-row .row-checkbox[data-v-15187afc] {\n text-align: center !important;\n}\n.loading-row span[data-v-15187afc] {\n display: inline-block;\n height: 24px;\n background: linear-gradient(to right, var(--color-background-darker), var(--color-text-maxcontrast), var(--color-background-darker));\n background-size: 600px 100%;\n border-radius: var(--border-radius);\n animation: gradient-15187afc 12s ease infinite;\n}\n.loading-row .row-wrapper[data-v-15187afc] {\n display: inline-flex;\n align-items: center;\n}\n.loading-row .row-checkbox span[data-v-15187afc] {\n width: 24px;\n}\n.loading-row .row-name span[data-v-15187afc]:last-of-type {\n margin-inline-start: 6px;\n width: 130px;\n}\n.loading-row .row-size span[data-v-15187afc] {\n width: 80px;\n}\n.loading-row .row-modified span[data-v-15187afc] {\n width: 90px;\n}/*!\n * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\ntr.file-picker__row[data-v-cb12dccb] {\n height: var(--row-height, 50px);\n}\ntr.file-picker__row td[data-v-cb12dccb] {\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n border-bottom: none;\n}\ntr.file-picker__row td.row-checkbox[data-v-cb12dccb] {\n padding: 0 2px;\n}\ntr.file-picker__row td[data-v-cb12dccb]:not(.row-checkbox) {\n padding-inline: 14px 0;\n}\ntr.file-picker__row td.row-size[data-v-cb12dccb] {\n text-align: end;\n padding-inline: 0 14px;\n}\ntr.file-picker__row td.row-name[data-v-cb12dccb] {\n padding-inline: 2px 0;\n}\n.file-picker__row--selected[data-v-cb12dccb] {\n background-color: var(--color-background-dark);\n}\n.file-picker__row[data-v-cb12dccb]:hover {\n background-color: var(--color-background-hover);\n}\n.file-picker__name-container[data-v-cb12dccb] {\n display: flex;\n justify-content: start;\n align-items: center;\n height: 100%;\n}\n.file-picker__file-name[data-v-cb12dccb] {\n padding-inline-start: 6px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.file-picker__file-extension[data-v-cb12dccb] {\n color: var(--color-text-maxcontrast);\n min-width: fit-content;\n}.file-picker__header-preview[data-v-006fdbd0] {\n width: 22px;\n height: 32px;\n flex: 0 0 auto;\n}\n.file-picker__files[data-v-006fdbd0] {\n margin: 2px;\n margin-inline-start: 12px;\n overflow: scroll auto;\n}\n.file-picker__files table[data-v-006fdbd0] {\n width: 100%;\n max-height: 100%;\n table-layout: fixed;\n}\n.file-picker__files th[data-v-006fdbd0] {\n position: sticky;\n z-index: 1;\n top: 0;\n background-color: var(--color-main-background);\n padding: 2px;\n}\n.file-picker__files th .header-wrapper[data-v-006fdbd0] {\n display: flex;\n}\n.file-picker__files th.row-checkbox[data-v-006fdbd0] {\n width: 44px;\n}\n.file-picker__files th.row-name[data-v-006fdbd0] {\n width: 230px;\n}\n.file-picker__files th.row-size[data-v-006fdbd0] {\n width: 100px;\n}\n.file-picker__files th.row-modified[data-v-006fdbd0] {\n width: 120px;\n}\n.file-picker__files th[data-v-006fdbd0]:not(.row-size) .button-vue__wrapper {\n justify-content: start;\n flex-direction: row-reverse;\n}\n.file-picker__files th[data-v-006fdbd0]:not(.row-size) .button-vue {\n padding-inline: 16px 4px;\n}\n.file-picker__files th.row-size[data-v-006fdbd0] .button-vue__wrapper {\n justify-content: end;\n}\n.file-picker__files th[data-v-006fdbd0] .button-vue__wrapper {\n color: var(--color-text-maxcontrast);\n}\n.file-picker__files th[data-v-006fdbd0] .button-vue__wrapper .button-vue__text {\n font-weight: normal;\n}.file-picker__breadcrumbs[data-v-b357227a] {\n flex-grow: 0 !important;\n}.file-picker__side[data-v-b42054b8] {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 0.5rem;\n min-width: 200px;\n padding: 2px;\n margin-block-start: 7px;\n overflow: auto;\n}\n.file-picker__side[data-v-b42054b8] .button-vue__wrapper {\n justify-content: start;\n}\n.file-picker__filter-input[data-v-b42054b8] {\n margin-block: 7px;\n max-width: 260px;\n}\n@media (max-width: 736px) {\n.file-picker__side[data-v-b42054b8] {\n flex-direction: row;\n min-width: unset;\n}\n}\n@media (max-width: 512px) {\n.file-picker__side[data-v-b42054b8] {\n flex-direction: row;\n min-width: unset;\n}\n.file-picker__filter-input[data-v-b42054b8] {\n max-width: unset;\n}\n}/* Ensure focus outline is visible */\n.file-picker__navigation {\n padding-inline: 8px 2px;\n}\n.file-picker__navigation, .file-picker__navigation * {\n box-sizing: border-box;\n}\n.file-picker__navigation .v-select.select {\n min-width: 220px;\n}\n@media (min-width: 513px) and (max-width: 736px) {\n.file-picker__navigation {\n gap: 11px;\n}\n}\n@media (max-width: 512px) {\n.file-picker__navigation {\n flex-direction: column-reverse !important;\n}\n}.file-picker__view[data-v-20b719ba] {\n height: 50px;\n display: flex;\n justify-content: start;\n align-items: center;\n}\n.file-picker__view h3[data-v-20b719ba] {\n font-weight: bold;\n height: fit-content;\n margin: 0;\n}\n.file-picker__main[data-v-20b719ba] {\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n min-height: 0;\n flex: 1;\n padding-inline: 2px;\n}\n.file-picker__main *[data-v-20b719ba] {\n box-sizing: border-box;\n}\n[data-v-20b719ba] .file-picker {\n height: min(80vh, 800px) !important;\n}\n@media (max-width: 512px) {\n[data-v-20b719ba] .file-picker {\n height: calc(100% - 16px - var(--default-clickable-area)) !important;\n}\n}\n[data-v-20b719ba] .file-picker__content {\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}"],sourceRoot:""}]);const f=c},8567:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n=s(71354),i=s.n(n),a=s(76314),o=s.n(a)()(i());o.push([e.id,"\n.invalid-filename-dialog__input[data-v-3a479259] {\n\t/* Ensure the helper text can always be shown without jumping */\n\tmin-height: calc(var(--default-clickable-area) + 4 * var(--default-font-size));\n}\n.upload-picker[data-v-a005e528] {\n display: inline-flex;\n align-items: center;\n height: var(--default-clickable-area);\n}\n.upload-picker__progress[data-v-a005e528] {\n width: 200px;\n max-width: 0;\n transition: max-width var(--animation-quick) ease-in-out;\n margin-top: 8px;\n}\n.upload-picker__progress p[data-v-a005e528] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.upload-picker--uploading .upload-picker__progress[data-v-a005e528] {\n max-width: 200px;\n margin-right: 20px;\n margin-left: 8px;\n}\n.upload-picker--paused .upload-picker__progress[data-v-a005e528] {\n animation: breathing-a005e528 3s ease-out infinite normal;\n}\n@keyframes breathing-a005e528 {\n0% {\n opacity: 0.5;\n}\n25% {\n opacity: 1;\n}\n60% {\n opacity: 0.5;\n}\n100% {\n opacity: 0.5;\n}\n}","",{version:3,sources:["webpack://./node_modules/@nextcloud/upload/dist/assets/index-BbS3HZwl.css"],names:[],mappings:";AACA;CACC,+DAA+D;CAC/D,8EAA8E;AAC/E;AACA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,qCAAqC;AACvC;AACA;EACE,YAAY;EACZ,YAAY;EACZ,wDAAwD;EACxD,eAAe;AACjB;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,yDAAyD;AAC3D;AACA;AACA;IACI,YAAY;AAChB;AACA;IACI,UAAU;AACd;AACA;IACI,YAAY;AAChB;AACA;IACI,YAAY;AAChB;AACA",sourcesContent:["\n.invalid-filename-dialog__input[data-v-3a479259] {\n\t/* Ensure the helper text can always be shown without jumping */\n\tmin-height: calc(var(--default-clickable-area) + 4 * var(--default-font-size));\n}\n.upload-picker[data-v-a005e528] {\n display: inline-flex;\n align-items: center;\n height: var(--default-clickable-area);\n}\n.upload-picker__progress[data-v-a005e528] {\n width: 200px;\n max-width: 0;\n transition: max-width var(--animation-quick) ease-in-out;\n margin-top: 8px;\n}\n.upload-picker__progress p[data-v-a005e528] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.upload-picker--uploading .upload-picker__progress[data-v-a005e528] {\n max-width: 200px;\n margin-right: 20px;\n margin-left: 8px;\n}\n.upload-picker--paused .upload-picker__progress[data-v-a005e528] {\n animation: breathing-a005e528 3s ease-out infinite normal;\n}\n@keyframes breathing-a005e528 {\n0% {\n opacity: 0.5;\n}\n25% {\n opacity: 1;\n}\n60% {\n opacity: 0.5;\n}\n100% {\n opacity: 0.5;\n}\n}"],sourceRoot:""}]);const r=o},11028:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var n=s(71354),i=s.n(n),a=s(76314),o=s.n(a)()(i());o.push([e.id,"\n.new-node-dialog__form[data-v-59c120f6] {\n\t/* Ensure the dialog does not jump when there is a validity error */\n\tmin-height: calc(3 * var(--default-clickable-area));\n}\n","",{version:3,sources:["webpack://./apps/files/src/components/NewNodeDialog.vue"],names:[],mappings:";AAwJA;CACA,mEAAA;CACA,mDAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n\n