/*! For license information please see files-init.js.LICENSE.txt */ (()=>{var e,t,s,n={80002:(e,t,s)=>{"use strict";s(25440)},9052:e=>{"use strict";var t=Object.prototype.hasOwnProperty,s="~";function n(){}function a(e,t,s){this.fn=e,this.context=t,this.once=s||!1}function i(e,t,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,i||e,o),r=s?s+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],l]:e._events[r].push(l):(e._events[r]=l,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(s=!1)),l.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(s?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},l.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 a=0,i=n.length,o=new Array(i);a{"use strict";s.d(t,{A:()=>n});const n=(0,s(53529).YK)().setApp("files").detectUser().build()},20743:(e,t,s)=>{"use strict";var n=s(78791),a=s(85168),i=s(53334),o=s(49264),l=s(76150),r=s(61338),m=s(87485),d=s(26287);const c=()=>{var e;return!0===(null===(e=(0,m.F)())||void 0===e||null===(e=e.files)||void 0===e?void 0:e.undelete)},u=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"shared"===e.attributes["mount-type"])),g=e=>e.every((e=>!0===e.attributes["is-mount-root"]&&"external"===e.attributes["mount-type"])),f=(e,t)=>"trashbin"!==t.id&&c()?(e=>{if(1===e.length)return!1;const t=e.some((e=>u([e]))),s=e.some((e=>!u([e])));return t&&s})(e)?(0,i.t)("files","Delete and unshare"):u(e)?1===e.length?(0,i.t)("files","Leave this share"):(0,i.t)("files","Leave these shares"):g(e)?1===e.length?(0,i.t)("files","Disconnect storage"):(0,i.t)("files","Disconnect storages"):(e=>!e.some((e=>e.type!==n.pt.File)))(e)?1===e.length?(0,i.t)("files","Delete file"):(0,i.t)("files","Delete files"):(e=>!e.some((e=>e.type!==n.pt.Folder)))(e)?1===e.length?(0,i.t)("files","Delete folder"):(0,i.t)("files","Delete folders"):(0,i.t)("files","Delete"):(0,i.t)("files","Delete permanently"),p=async(e,t)=>{const s="trashbin"!==t.id&&c()?(0,i.n)("files","You are about to delete {count} item","You are about to delete {count} items",e.length,{count:e.length}):(0,i.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,i.t)("files","Confirm deletion"),{type:window.OC.dialogs.YES_NO_BUTTONS,confirm:f(e,t),confirmClasses:"error",cancel:(0,i.t)("files","Cancel")},(e=>{n(e)}))}))},h=async e=>{await d.A.delete(e.encodedSource),(0,r.Ic)("files:node:deleted",e)},w=new o.A({concurrency:5}),x=new n.hY({id:"delete",displayName:f,iconSvgInline:e=>u(e)?'':g(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,a.cf)((0,i.Tl)("files","Deletion cancelled")),null):(await h(e),!0)}catch(t){return l.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&&!u(e)&&!g(e)&&(s=await p(e,t)):s=await p(e,t),!1===s)return(0,a.cf)((0,i.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){l.A.error("Error while deleting a file",{error:s,source:e.source,node:e}),t(!1)}}))}))));return Promise.all(n)},order:100});var v=s(63814);const A=function(e){const t=document.createElement("a");t.download="",t.href=e,t.click()},T=function(e,t){const s=Math.random().toString(36).substring(2),n=(0,v.Jv)("/apps/files/ajax/download.php?dir={dir}&files={files}&downloadStartSecret={secret}",{dir:e,secret:s,files:JSON.stringify(t.map((e=>e.basename)))});A(n)},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"),a=null==n||null===(s=n.find)||void 0===s?void 0:s.call(n,(e=>"permissions"===e.scope&&"download"===e.key));if(void 0!==a&&!1===a.enabled)return!1}return!0},y=new n.hY({id:"download",default:n.m9.DEFAULT,displayName:()=>(0,i.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?(T(s,[e]),null):(A(e.encodedSource),null),async execBatch(e,t,s){return 1===e.length?(this.exec(e[0],t,s),[null]):(T(s,e),new Array(e.length).fill(null))},order:30});var b=s(71225),k=s(21777),L=s(65659);const _=async function(e){const t=(0,v.KT)("apps/files/api/v1")+"/openlocaleditor?format=json";try{var s;const n=await d.A.post(t,{path:e}),a=null===(s=(0,k.HW)())||void 0===s?void 0:s.uid;let i="nc://open/".concat(a,"@")+window.location.host+(0,b.O0)(e);i+="?token="+n.data.ocs.data.token,window.location.href=i}catch(e){(0,a.Qg)((0,i.Tl)("files","Failed to redirect to client"))}},S=new n.hY({id:"edit-locally",displayName:()=>(0,i.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 a.ik).setName((0,i.Tl)("files","Edit file locally")).setText((0,i.Tl)("files","The file should now open locally. If you don't see this happening, make sure that the desktop client is installed on your system.")).setButtons([{label:(0,i.Tl)("files","Retry local edit"),icon:'',callback:()=>{t=!0,e(!1)}},{label:(0,i.Tl)("files","Edit online"),icon:L,type:"primary",callback:()=>{t=!0,e(!0)}}]).build().show().then((()=>{t||e(!1)}))}((t=>{t?_(e):window.OCA.Viewer.open({path:e})}))})(e.path),null),order:25});var B=s(85471);const E='',F=e=>e.some((e=>1!==e.attributes.favorite)),U=async(e,t,s)=>{try{const n=(0,v.Jv)("/apps/files/api/v1/files")+(0,b.O0)(e.path);return await d.A.post(n,{tags:s?[window.OC.TAG_FAVORITE]:[]}),"favorites"!==t.id||s||"/"!==e.dirname||(0,r.Ic)("files:node:deleted",e),B.Ay.set(e.attributes,"favorite",s?1:0),s?(0,r.Ic)("files:favorites:added",e):(0,r.Ic)("files:favorites:removed",e),!0}catch(t){const n=s?"adding a file to favourites":"removing a file from favourites";return l.A.error("Error while "+n,{error:t,source:e.source,node:e}),!1}},P=new n.hY({id:"favorite",displayName:e=>F(e)?(0,i.Tl)("files","Add to favorites"):(0,i.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 U(e,t,s)},async execBatch(e,t){const s=F(e);return Promise.all(e.map((async e=>await U(e,t,s))))},order:-50});var N=s(85072),I=s.n(N),j=s(97825),z=s.n(j),O=s(77659),D=s.n(O),R=s(55056),M=s.n(R),H=s(10540),V=s.n(H),Y=s(41113),W=s.n(Y),q=s(14456),$={};$.styleTagTransform=W(),$.setAttributes=M(),$.insert=D().bind(null,"head"),$.domAPI=z(),$.insertStyleElement=V(),I()(q.A,$),q.A&&q.A.locals&&q.A.locals;var G=s(96995),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,ae=s(36117),ie=s(44719);const oe="/files/".concat(null===(ne=(0,k.HW)())||void 0===ne?void 0:ne.uid),le=(0,v.dC)("dav"+oe),re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le;const t=(0,ie.UU)(e),s=e=>{null==t||t.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=e?e:""})};return(0,k.zo)(s),s((0,k.do)()),(0,ie.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},me=function(e){let t=0;for(let s=0;s>>0},de=re(),ce=function(e){var t,s;const a=null===(t=(0,k.HW)())||void 0===t?void 0:t.uid;if(!a)throw new Error("No user id found");const i=e.props,o=(0,n.vb)(null==i?void 0:i.permissions),l=String(i["owner-id"]||a),r=(0,v.dC)("dav"+oe+e.filename),m=(null==i?void 0:i.fileid)<0?me(r):(null==i?void 0:i.fileid)||0;void 0!==(null===(s=e.props)||void 0===s?void 0:s.displayname)&&(e.props.displayname=String(e.props.displayname));const d={id:m,source:r,mtime:new Date(e.lastmod),mime:e.mime||"application/octet-stream",size:(null==i?void 0:i.size)||0,permissions:o,owner:l,root:oe,attributes:{...e,...i,"owner-id":l,"owner-display-name":String(i["owner-display-name"]),hasPreview:!(null==i||!i["has-preview"]),failed:(null==i?void 0:i.fileid)<0}};return delete d.attributes.props,"file"===e.type?new n.ZH(d):new n.vd(d)},ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=new AbortController,s=(0,n.VL)();return new ae.CancelablePromise((async(n,a,i)=>{i((()=>t.abort()));try{const a=await de.getDirectoryContents(e,{details:!0,data:s,includeSelf:!0,signal:t.signal}),i=a.data[0],o=a.data.slice(1);if(i.filename!==e)throw new Error("Root node does not match requested path");n({folder:ce(i),contents:o.map((e=>{try{return ce(e)}catch(t){return l.A.error("Invalid node detected '".concat(e.basename,"'"),{error:t}),null}})).filter(Boolean)})}catch(e){a(e)}}))},ge=e=>te(e)?se(e)?ee.MOVE_OR_COPY:ee.MOVE:ee.COPY,fe=async function(e,t,s){let m=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t)return;if(t.type!==n.pt.Folder)throw new Error((0,i.Tl)("files","Destination is not a folder"));if(s===ee.MOVE&&e.dirname===t.path)throw new Error((0,i.Tl)("files","This file/folder is already in that directory"));if("".concat(t.path,"/").startsWith("".concat(e.path,"/")))throw new Error((0,i.Tl)("files","You cannot move a file/folder onto itself or into a subfolder of itself"));B.Ay.set(e,"status",n.zI.LOADING);const d=(Q||(Q=new o.A({concurrency:5})),Q);return await d.add((async()=>{const o=e=>1===e?(0,i.Tl)("files","(copy)"):(0,i.Tl)("files","(copy %n)",void 0,e);try{const l=(0,n.H4)(),d=(0,J.join)(n.lJ,e.path),c=(0,J.join)(n.lJ,t.path);if(s===ee.COPY){let s=e.basename;if(!m){const t=await l.getDirectoryContents(c);s=(0,n.E6)(e.basename,t.map((e=>e.basename)),{suffix:o,ignoreFileExtension:e.type===n.pt.Folder})}if(await l.copyFile(d,(0,J.join)(c,s)),e.dirname===t.path){const{data:e}=await l.stat((0,J.join)(c,s),{details:!0,data:(0,n.VL)()});(0,r.Ic)("files:node:created",(0,n.Al)(e))}}else{const s=await ue(t.path);if((0,G.h)([e],s.contents))try{const{selected:n,renamed:a}=await(0,G.o)(t.path,[e],s.contents);if(!n.length&&!a.length)return}catch(e){return void(0,a.Qg)((0,i.Tl)("files","Move cancelled"))}await l.moveFile(d,(0,J.join)(c,e.basename)),(0,r.Ic)("files:node:deleted",e)}}catch(e){if(e instanceof K.pe){var d,c,u;if(412===(null==e||null===(d=e.response)||void 0===d?void 0:d.status))throw new Error((0,i.Tl)("files","A file or folder with that name already exists in this folder"));if(423===(null==e||null===(c=e.response)||void 0===c?void 0:c.status))throw new Error((0,i.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,i.Tl)("files","The file does not exist anymore"));if(e.message)throw new Error(e.message)}throw l.A.debug(e),new Error}finally{B.Ay.set(e,"status",void 0)}}))};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:r}=Promise.withResolvers(),m=s.map((e=>e.fileid)).filter(Boolean);return(0,a.a1)((0,i.Tl)("files","Choose destination")).allowDirectories(!0).setFilter((e=>!m.includes(e.fileid))).setMimeTypeFilter([]).setMultiSelect(!1).startAt(t).setButtonFactory(((t,a)=>{const o=[],l=(0,J.basename)(a),r=s.map((e=>e.dirname)),m=s.map((e=>e.path));return e!==ee.COPY&&e!==ee.MOVE_OR_COPY||o.push({label:l?(0,i.Tl)("files","Copy to {target}",{target:l},void 0,{escape:!1,sanitize:!1}):(0,i.Tl)("files","Copy"),type:"primary",icon:Z,async callback(e){n({destination:e[0],action:ee.COPY})}}),r.includes(a)||m.includes(a)||e!==ee.MOVE&&e!==ee.MOVE_OR_COPY||o.push({label:l?(0,i.Tl)("files","Move to {target}",{target:l},void 0,{escape:!1,sanitize:!1}):(0,i.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=>{l.A.debug(e),e instanceof a.vT?n(!1):o(new Error((0,i.Tl)("files","Move or copy operation failed")))})),r}const he=new n.hY({id:"move-copy",displayName(e){switch(ge(e)){case ee.MOVE:return(0,i.Tl)("files","Move");case ee.COPY:return(0,i.Tl)("files","Copy");case ee.MOVE_OR_COPY:return(0,i.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=ge([e]);let o;try{o=await pe(n,s,[e])}catch(e){return l.A.error(e),!1}if(!1===o)return(0,a.cf)((0,i.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,a.Qg)(e.message),null)}},async execBatch(e,t,s){const n=ge(e),o=await pe(n,s,e);if(!1===o)return(0,a.cf)(1===e.length?(0,i.Tl)("files",'Cancelled move or copy of "{filename}".',{filename:e[0].displayname}):(0,i.Tl)("files","Cancelled move or copy operation")),e.map((()=>null));const r=e.map((async e=>{try{return await fe(e,o.destination,o.action),!0}catch(t){return l.A.error("Failed to ".concat(o.action," node"),{node:e,error:t}),!1}}));return await Promise.all(r)},order:15}),we='',xe=new n.hY({id:"open-folder",displayName(e){const t=e[0].displayname;return(0,i.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}),ve=new n.hY({id:"open-in-files-recent",displayName:()=>(0,i.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,i.Tl)("files","Rename"),iconSvgInline:()=>'',enabled:e=>e.length>0&&e.map((e=>e.permissions)).every((e=>!!(e&n.aX.UPDATE))),exec:async e=>((0,r.Ic)("files:node:rename",e),null),order:10});var Te=s(49981);const Ce=new n.hY({id:"details",displayName:()=>(0,i.Tl)("files","Open details"),iconSvgInline:()=>Te,enabled:e=>{var t,s,a;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===(a=e[0].root)||void 0===a?void 0:a.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 l.A.error("Error while opening sidebar",{error:e}),!1}},order:-50}),ye=new n.hY({id:"view-in-folder",displayName:()=>(0,i.Tl)("files","View in folder"),iconSvgInline:()=>X,enabled(e,t){if("files"===t.id)return!1;if(1!==e.length)return!1;const s=e[0];return!!s.isDavRessource&&s.permissions!==n.aX.NONE&&s.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 be=s(54332),ke=s(94219),Le=s(82182);const _e=(0,B.pM)({__name:"NewNodeDialog",props:{defaultName:{type:String,default:(0,i.t)("files","New folder")},otherNames:{type:Array,default:()=>[]},open:{type:Boolean,default:!0},name:{type:String,default:(0,i.t)("files","Create new folder")},label:{type:String,default:(0,i.t)("files","Folder name")}},emits:["close"],setup(e,t){let{emit:s}=t;const a=e,o=(0,B.KR)(a.defaultName),l=(0,B.KR)(),r=(0,B.KR)(),m=(0,B.KR)("");function d(){(0,B.dY)((()=>{var e;const t=null===(e=l.value)||void 0===e?void 0:e.$el.querySelector("input");if(!a.open||!t)return;const s=o.value.length-(0,J.extname)(o.value).length;t.focus(),t.setSelectionRange(0,s)}))}return(0,B.wB)((()=>a.defaultName),(()=>{o.value=(0,n.E6)(a.defaultName,a.otherNames)})),(0,B.nT)((()=>{var e;a.otherNames.includes(o.value)?m.value=(0,i.t)("files","This name is already in use."):m.value=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(""===e.trim())return(0,i.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,i.t)("files",'"{char}" is not allowed inside a filename.',{char:e.segment},void 0,{escape:t});case n.nF.ReservedName:return(0,i.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,i.t)("files",'"{extension}" is not an allowed filetype.',{extension:e.segment},void 0,{escape:!1}):(0,i.t)("files",'Filenames must not end with "{extension}".',{extension:e.segment},void 0,{escape:!1});default:return(0,i.t)("files","Invalid filename.")}}}(o.value);const t=null===(e=l.value)||void 0===e?void 0:e.$el.querySelector("input");t&&(t.setCustomValidity(m.value),t.reportValidity())})),(0,B.wB)((()=>a.open),(()=>{(0,B.dY)((()=>{d()}))})),(0,B.sV)((()=>{o.value=(0,n.E6)(o.value,a.otherNames),(0,B.dY)((()=>d()))})),{__sfc:!0,props:a,emit:s,localDefaultName:o,nameInput:l,formElement:r,validity:m,focusInput:d,submit:function(){var e;null===(e=r.value)||void 0===e||e.requestSubmit()},t:i.t,NcButton:be.A,NcDialog:ke.A,NcTextField:Le.A}}});var Se=s(11028),Be={};Be.styleTagTransform=W(),Be.setAttributes=M(),Be.insert=D().bind(null,"head"),Be.domAPI=z(),Be.insertStyleElement=V(),I()(Se.A,Be),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,a.Ss)(Ee,{...s,defaultName:e,otherNames:n},(e=>{t(e)}))}))}const Ue={id:"newFolder",displayName:(0,i.Tl)("files","New folder"),enabled:e=>!!(e.permissions&n.aX.CREATE),iconSvgInline:'',order:0,async handler(e,t){const s=await Fe((0,i.Tl)("files","New folder"),t);if(null!==s){var o,m,c,u,g;const{fileid:t,source:f}=await(async(e,t)=>{const s=e.source+"/"+t,n=e.encodedSource+"/"+encodeURIComponent(t),a=await(0,d.A)({method:"MKCOL",url:n,headers:{Overwrite:"F"}});return{fileid:parseInt(a.headers["oc-fileid"]),source:s}})(e,s.trim()),p=new n.vd({source:f,id:t,mtime:new Date,owner:(null===(o=(0,k.HW)())||void 0===o?void 0:o.uid)||null,permissions:n.aX.ALL,root:(null==e?void 0:e.root)||"/files/"+(null===(m=(0,k.HW)())||void 0===m?void 0:m.uid),attributes:{"mount-type":null===(c=e.attributes)||void 0===c?void 0:c["mount-type"],"owner-id":null===(u=e.attributes)||void 0===u?void 0:u["owner-id"],"owner-display-name":null===(g=e.attributes)||void 0===g?void 0:g["owner-display-name"]}});(0,r.Ic)("files:node:created",p),(0,a.Te)((0,i.Tl)("files",'Created new folder "{name}"',{name:(0,J.basename)(f)})),l.A.debug("Created new folder",{folder:p,source:f}),window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:p.fileid},{dir:e.path})}}};var Pe=s(32981);let Ne=(0,Pe.C)("files","templates_path",!1);l.A.debug("Initial templates folder",{templatesPath:Ne});const Ie={id:"template-picker",displayName:(0,i.Tl)("files","Create new templates folder"),iconSvgInline:'',order:10,enabled(e){var t;return!Ne&&e.owner===(null===(t=(0,k.HW)())||void 0===t?void 0:t.uid)&&!!(e.permissions&n.aX.CREATE)},async handler(e,t){const s=await Fe((0,i.Tl)("files","Templates"),t,{name:(0,i.Tl)("files","New template folder")});null!==s&&(async function(e,t){const s=(0,J.join)(e.path,t);try{l.A.debug("Initializing the templates directory",{templatePath:s});const{data:e}=await d.A.post((0,v.KT)("apps/files/api/v1/templates/path"),{templatePath:s,copySystemTemplates:!0});window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:void 0},{dir:s}),l.A.info("Created new templates folder",{...e.ocs.data}),Ne=e.ocs.data.templates_path}catch(e){l.A.error("Unable to initialize the templates directory"),(0,a.Qg)((0,i.Tl)("files","Unable to initialize the templates directory"))}}(e,s),(0,n.gj)("template-picker"))}},je=(0,B.$V)((()=>Promise.all([s.e(4208),s.e(9647)]).then(s.bind(s,29647))));let ze=null;const Oe=async e=>{if(null===ze){const t=document.createElement("div");t.id="template-picker",document.body.appendChild(t),ze=new B.Ay({render:t=>t(je,{ref:"picker",props:{parent:e}}),methods:{open(){this.$refs.picker.open(...arguments)}},el:t})}return ze},De=re(),Re=async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const s=(0,n.VL)(),a=(0,n.b2)();let i;"/"===t&&(i=await De.stat(t,{details:!0,data:s}));const o=await De.getDirectoryContents(t,{details:!0,data:"/"===t?a:s,headers:{method:"/"===t?"REPORT":"PROPFIND"},includeSelf:!0}),l=(null===(e=i)||void 0===e?void 0:e.data)||o.data[0],r=o.data.filter((e=>e.filename!==t));return{folder:ce(l),contents:r.map(ce)}},Me=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new n.Ss({id:He(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:Re})},He=function(e){return"favorite-".concat(me(e))};var Ve=s(19166),Ye=s(63757),We=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="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&Ze,Qe=(()=>"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 et(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(){We.error("could not download file")},n.send()}function tt(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function st(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 nt="object"==typeof navigator?navigator:{userAgent:""},at=(()=>/Macintosh/.test(nt.userAgent)&&/AppleWebKit/.test(nt.userAgent)&&!/Safari/.test(nt.userAgent))(),it=Ze?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!at?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?tt(n.href)?et(e,t,s):(n.target="_blank",st(n)):st(n)):(n.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(n.href)}),4e4),setTimeout((function(){st(n)}),0))}:"msSaveOrOpenBlob"in nt?function(e,t="download",s){if("string"==typeof e)if(tt(e))et(e,t,s);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){st(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 et(e,t,s);const a="application/octet-stream"===e.type,i=/constructor/i.test(String(Qe.HTMLElement))||"safari"in Qe,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i||at)&&"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 ot(e,t){const s="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(s,t):"error"===t?We.error(s):"warn"===t?We.warn(s):We.log(s)}function lt(e){return"_a"in e&&"install"in e}function rt(){if(!("clipboard"in navigator))return ot("Your browser doesn't support the Clipboard API","error"),!0}function mt(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(ot('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let dt;function ct(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 ut(e){return{_custom:{display:e}}}const gt="🍍 Pinia (root)",ft="_root";function pt(e){return lt(e)?{id:ft,label:gt}:{id:e.$id,label:e.$id}}function ht(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:ut(e.type),key:ut(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function wt(e){switch(e){case Je.direct:return"mutation";case Je.patchFunction:case Je.patchObject:return"$patch";default:return"unknown"}}let xt=!0;const vt=[],At="pinia:mutations",Tt="pinia",{assign:Ct}=Object,yt=e=>"🍍 "+e;function bt(e,t){(0,Ye.$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&&ot("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:At,label:"Pinia 🍍",color:15064968}),s.addInspector({id:Tt,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)),ot("Global state copied to clipboard.")}catch(e){if(mt(e))return;ot("Failed to serialize the state. Check the console for more details.","error"),We.error(e)}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!rt())try{ct(e,JSON.parse(await navigator.clipboard.readText())),ot("Global state pasted from clipboard.")}catch(e){if(mt(e))return;ot("Failed to deserialize the state from clipboard. Check the console for more details.","error"),We.error(e)}}(t),s.sendInspectorTree(Tt),s.sendInspectorState(Tt)},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){ot("Failed to export the state as JSON. Check the console for more details.","error"),We.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:a}=s;ct(e,JSON.parse(n)),ot(`Global state imported from "${a.name}".`)}catch(e){ot("Failed to import the state from JSON. Check the console for more details.","error"),We.error(e)}}(t),s.sendInspectorTree(Tt),s.sendInspectorState(Tt)},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?ot(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),ot(`Store "${e}" reset.`)):ot(`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,Ve.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===Tt){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(pt)}})),s.on.getInspectorState((s=>{if(s.app===e&&s.inspectorId===Tt){const e=s.nodeId===ft?t:t._s.get(s.nodeId);if(!e)return;e&&(s.state=function(e){if(lt(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===Tt){const e=s.nodeId===ft?t:t._s.get(s.nodeId);if(!e)return ot(`store "${s.nodeId}" not found`,"error");const{path:n}=s;lt(e)?n.unshift("state"):1===n.length&&e._customProperties.has(n[0])&&!(n[0]in e.$state)||n.unshift("$state"),xt=!1,s.set(e,n,s.state.value),xt=!0}})),s.on.editComponentState((e=>{if(e.type.startsWith("🍍")){const s=e.type.replace(/^🍍\s*/,""),n=t._s.get(s);if(!n)return ot(`store "${s}" not found`,"error");const{path:a}=e;if("state"!==a[0])return ot(`Invalid path for store "${s}":\n${a}\nOnly state can be modified.`);a[0]="$state",xt=!1,e.set(n,a,e.state.value),xt=!0}}))}))}let kt,Lt=0;function _t(e,t,s){const n=t.reduce(((t,s)=>(t[s]=(0,Ve.ux)(e)[s],t)),{});for(const t in n)e[t]=function(){const a=Lt,i=s?new Proxy(e,{get:(...e)=>(kt=a,Reflect.get(...e)),set:(...e)=>(kt=a,Reflect.set(...e))}):e;kt=a;const o=n[t].apply(i,arguments);return kt=void 0,o}}function St({app:e,store:t,options:s}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!s.state,_t(t,Object.keys(s.actions),t._isOptionsAPI);const n=t._hotUpdate;(0,Ve.ux)(t)._hotUpdate=function(e){n.apply(this,arguments),_t(t,Object.keys(e._hmrPayload.actions),!!t._isOptionsAPI)},function(e,t){vt.includes(yt(t.$id))||vt.push(yt(t.$id)),(0,Ye.$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:a,name:i,args:o})=>{const l=Lt++;e.addTimelineEvent({layerId:At,event:{time:s(),title:"🛫 "+i,subtitle:"start",data:{store:ut(t.$id),action:ut(i),args:o},groupId:l}}),n((n=>{kt=void 0,e.addTimelineEvent({layerId:At,event:{time:s(),title:"🛬 "+i,subtitle:"end",data:{store:ut(t.$id),action:ut(i),args:o,result:n},groupId:l}})})),a((n=>{kt=void 0,e.addTimelineEvent({layerId:At,event:{time:s(),logType:"error",title:"💥 "+i,subtitle:"end",data:{store:ut(t.$id),action:ut(i),args:o,error:n},groupId:l}})}))}),!0),t._customProperties.forEach((n=>{(0,Ve.wB)((()=>(0,Ve.R1)(t[n])),((t,a)=>{e.notifyComponentUpdate(),e.sendInspectorState(Tt),xt&&e.addTimelineEvent({layerId:At,event:{time:s(),title:"Change",subtitle:n,data:{newValue:t,oldValue:a},groupId:kt}})}),{deep:!0})})),t.$subscribe((({events:n,type:a},i)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(Tt),!xt)return;const o={time:s(),title:wt(a),data:Ct({store:ut(t.$id)},ht(n)),groupId:kt};a===Je.patchFunction?o.subtitle="⤵️":a===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:At,event:o})}),{detached:!0,flush:"sync"});const n=t._hotUpdate;t._hotUpdate=(0,Ve.IG)((a=>{n(a),e.addTimelineEvent({layerId:At,event:{time:s(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:ut(t.$id),info:ut("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(Tt),e.sendInspectorState(Tt)}));const{$dispose:a}=t;t.$dispose=()=>{a(),e.notifyComponentUpdate(),e.sendInspectorTree(Tt),e.sendInspectorState(Tt),e.getSettings().logStoreChanges&&ot(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(Tt),e.sendInspectorState(Tt),e.getSettings().logStoreChanges&&ot(`"${t.$id}" store installed 🆕`)}))}(e,t)}const Bt=()=>{};function Et(e,t,s,n=Bt){e.push(t);const a=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),n())};return!s&&(0,Ve.o5)()&&(0,Ve.jr)(a),a}function Ft(e,...t){e.slice().forEach((e=>{e(...t)}))}const Ut=e=>e();function Pt(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],a=e[s];Ke(a)&&Ke(n)&&e.hasOwnProperty(s)&&!(0,Ve.i9)(n)&&!(0,Ve.g8)(n)?e[s]=Pt(a,n):e[s]=n}return e}const Nt=Symbol(),It=new WeakMap,{assign:jt}=Object;function zt(e,t,s={},n,a,i){let o;const l=jt({actions:{}},s),r={deep:!0};let m,d,c,u=[],g=[];const f=n.state.value[e];i||f||(Ve.LE?(0,Ve.hZ)(n.state.value,e,{}):n.state.value[e]={});const p=(0,Ve.KR)({});let h;function w(t){let s;m=d=!1,"function"==typeof t?(t(n.state.value[e]),s={type:Je.patchFunction,storeId:e,events:c}):(Pt(n.state.value[e],t),s={type:Je.patchObject,payload:t,storeId:e,events:c});const a=h=Symbol();(0,Ve.dY)().then((()=>{h===a&&(m=!0)})),d=!0,Ft(u,s,n.state.value[e])}const x=i?function(){const{state:e}=s,t=e?e():{};this.$patch((e=>{jt(e,t)}))}:Bt;function v(t,s){return function(){$e(n);const a=Array.from(arguments),i=[],o=[];let l;Ft(g,{args:a,name:t,store:C,after:function(e){i.push(e)},onError:function(e){o.push(e)}});try{l=s.apply(this&&this.$id===e?this:C,a)}catch(e){throw Ft(o,e),e}return l instanceof Promise?l.then((e=>(Ft(i,e),e))).catch((e=>(Ft(o,e),Promise.reject(e)))):(Ft(i,l),l)}}const A=(0,Ve.IG)({actions:{},getters:{},state:[],hotState:p}),T={_p:n,$id:e,$onAction:Et.bind(null,g),$patch:w,$reset:x,$subscribe(t,s={}){const a=Et(u,t,s.detached,(()=>i())),i=o.run((()=>(0,Ve.wB)((()=>n.state.value[e]),(n=>{("sync"===s.flush?d:m)&&t({storeId:e,type:Je.direct,events:c},n)}),jt({},r,s))));return a},$dispose:function(){o.stop(),u=[],g=[],n._s.delete(e)}};Ve.LE&&(T._r=!1);const C=(0,Ve.Kh)(Xe?jt({_hmrPayload:A,_customProperties:(0,Ve.IG)(new Set)},T):T);n._s.set(e,C);const y=(n._a&&n._a.runWithContext||Ut)((()=>n._e.run((()=>(o=(0,Ve.uY)()).run(t)))));for(const t in y){const s=y[t];if((0,Ve.i9)(s)&&(k=s,!(0,Ve.i9)(k)||!k.effect)||(0,Ve.g8)(s))i||(!f||(b=s,Ve.LE?It.has(b):Ke(b)&&b.hasOwnProperty(Nt))||((0,Ve.i9)(s)?s.value=f[t]:Pt(s,f[t])),Ve.LE?(0,Ve.hZ)(n.state.value[e],t,s):n.state.value[e][t]=s);else if("function"==typeof s){const e=v(t,s);Ve.LE?(0,Ve.hZ)(y,t,e):y[t]=e,l.actions[t]=s}}var b,k;if(Ve.LE?Object.keys(y).forEach((e=>{(0,Ve.hZ)(C,e,y[e])})):(jt(C,y),jt((0,Ve.ux)(C),y)),Object.defineProperty(C,"$state",{get:()=>n.state.value[e],set:e=>{w((t=>{jt(t,e)}))}}),Xe){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(C,t,jt({value:C[t]},e))}))}return Ve.LE&&(C._r=!0),n._p.forEach((e=>{if(Xe){const t=o.run((()=>e({store:C,app:n._a,pinia:n,options:l})));Object.keys(t||{}).forEach((e=>C._customProperties.add(e))),jt(C,t)}else jt(C,o.run((()=>e({store:C,app:n._a,pinia:n,options:l}))))})),f&&i&&s.hydrate&&s.hydrate(C.$state,f),m=!0,d=!0,C}const Ot=(0,Pe.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,Ve.uY)(!0),t=e.run((()=>(0,Ve.KR)({})));let s=[],n=[];const a=(0,Ve.IG)({install(e){$e(a),Ve.LE||(a._a=e,e.provide(Ge,a),e.config.globalProperties.$pinia=a,Xe&&bt(e,a),n.forEach((e=>s.push(e))),n=[])},use(e){return this._a||Ve.LE?s.push(e):n.push(e),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return Xe&&"undefined"!=typeof Proxy&&a.use(St),a}(),Rt=(0,n.H4)(),Mt=Math.round(Date.now()/1e3-1209600);(0,n.Gg)(x),(0,n.Gg)(y),(0,n.Gg)(S),(0,n.Gg)(P),(0,n.Gg)(he),(0,n.Gg)(xe),(0,n.Gg)(ve),(0,n.Gg)(Ae),(0,n.Gg)(Ce),(0,n.Gg)(ye),(0,n.zj)(Ue),(0,n.zj)(Ie),(0,Pe.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=Oe(t),a=await Fe("".concat(e.label).concat(e.extension),s,{label:(0,i.Tl)("files","Filename"),name:e.label});null!==a&&(await n).open(a.trim(),e)}})})),(()=>{const e=(0,Pe.C)("files","favoriteFolders",[]),t=e.map(((e,t)=>Me(e,t)));l.A.debug("Generating favorites view",{favoriteFolders:e});const s=(0,n.bh)();s.register(new n.Ss({id:"favorites",name:(0,i.Tl)("files","Favorites"),caption:(0,i.Tl)("files","List of favorites files and folders."),emptyTitle:(0,i.Tl)("files","No favorites yet"),emptyCaption:(0,i.Tl)("files","Files and folders you mark as favorite will show up here"),icon:E,order:5,columns:[],getContents:Re})),t.forEach((e=>s.register(e))),(0,r.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):l.A.error("Favorite folder is not within user files root",{node:e}))})),(0,r.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")?m(e.path):l.A.error("Favorite folder is not within user files root",{node:e}))})),(0,r.B1)("files:node:renamed",(e=>{e.type===n.pt.Folder&&1===e.attributes.favorite&&d(e)}));const a=function(){e.sort(((e,t)=>e.path.localeCompare(t.path,(0,i.Z0)(),{ignorePunctuation:!0}))),e.forEach(((e,s)=>{const n=t.find((t=>t.id===He(e.path)));n&&(n.order=s)}))},o=function(n){const i={path:n.path,fileid:n.fileid},o=Me(i);e.find((e=>e.path===n.path))||(e.push(i),t.push(o),a(),s.register(o))},m=function(n){const i=He(n),o=e.findIndex((e=>e.path===n));-1!==o&&(e.splice(o,1),t.splice(o,1),s.remove(i),a())},d=function(t){const s=e.find((e=>e.fileid===t.fileid));void 0!==s&&(m(s.path),o(t))}})(),(0,n.bh)().register(new n.Ss({id:"files",name:(0,i.Tl)("files","All files"),caption:(0,i.Tl)("files","List of your files and folders."),icon:we,order:0,getContents:ue})),(0,n.bh)().register(new n.Ss({id:"recent",name:(0,i.Tl)("files","Recent"),caption:(0,i.Tl)("files","List of recently modified files and folders."),emptyTitle:(0,i.Tl)("files","No recently modified files"),emptyCaption:(0,i.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,a;const i="function"==typeof t;function o(e,s){const o=(0,Ve.PS)();return(e=e||(o?(0,Ve.WQ)(Ge,null):null))&&$e(e),(e=qe)._s.has(n)||(i?zt(n,t,a,e):function(e,t,s,n){const{state:a,actions:i,getters:o}=t,l=s.state.value[e];let r;r=zt(e,(function(){l||(Ve.LE?(0,Ve.hZ)(s.state.value,e,a?a():{}):s.state.value[e]=a?a():{});const t=(0,Ve.QW)(s.state.value[e]);return jt(t,i,Object.keys(o||{}).reduce(((t,n)=>(t[n]=(0,Ve.IG)((0,Ve.EW)((()=>{$e(s);const t=s._s.get(e);if(!Ve.LE||t._r)return o[n].call(t,t)}))),t)),{}))}),t,s,0,!0)}(n,a,e)),e._s.get(n)}return"string"==typeof e?(n=e,a=i?s:t):(a=e,n=e.id),o.$id=n,o}("userconfig",{state:()=>({userConfig:Ot}),actions:{onUpdate(e,t){B.Ay.set(this.userConfig,e,t)},async update(e,t){await d.A.put((0,v.Jv)("/apps/files/api/v1/config/"+e),{value:t}),(0,r.Ic)("files:config:updated",{key:e,value:t})}}})(...arguments);return e._initialized||((0,r.B1)("files:config:updated",(function(t){let{key:s,value:n}=t;e.onUpdate(s,n)})),e._initialized=!0),e}(Dt),a=(await Rt.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,k.HW)())||void 0===e?void 0:e.uid)||null,permissions:n.aX.READ}),contents:a.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,v.Jv)("/apps/files/preview-service-worker.js",{},{noRewrite:!0}),t=await navigator.serviceWorker.register(e,{scope:"/"});l.A.debug("SW registered: ",{registration:t})}catch(e){l.A.error("SW registration failed: ",{error:e})}})):l.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:metadata-files-live-photo",{nc:"http://nextcloud.org/ns"})},14456:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var n=s(71354),a=s.n(n),i=s(76314),o=s.n(i),l=s(4417),r=s.n(l),m=new URL(s(98383),s.b),d=new URL(s(39075),s.b),c=o()(a()),u=r()(m),g=r()(d);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(${u});\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(${g});\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},30521:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(71354),a=s.n(n),i=s(76314),o=s.n(i)()(a());o.push([e.id,".upload-picker[data-v-eca9500a] {\n display: inline-flex;\n align-items: center;\n height: 44px;\n}\n.upload-picker__progress[data-v-eca9500a] {\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-eca9500a] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.upload-picker--uploading .upload-picker__progress[data-v-eca9500a] {\n max-width: 200px;\n margin-right: 20px;\n margin-left: 8px;\n}\n.upload-picker--paused .upload-picker__progress[data-v-eca9500a] {\n animation: breathing-eca9500a 3s ease-out infinite normal;\n}\n@keyframes breathing-eca9500a {\n 0% {\n opacity: .5;\n }\n 25% {\n opacity: 1;\n }\n 60% {\n opacity: .5;\n }\n to {\n opacity: .5;\n }\n}\n","",{version:3,sources:["webpack://./node_modules/@nextcloud/upload/dist/assets/index-Ussc_ol3.css"],names:[],mappings:"AAAA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,YAAY;AACd;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;EACE;IACE,WAAW;EACb;EACA;IACE,UAAU;EACZ;EACA;IACE,WAAW;EACb;EACA;IACE,WAAW;EACb;AACF",sourcesContent:[".upload-picker[data-v-eca9500a] {\n display: inline-flex;\n align-items: center;\n height: 44px;\n}\n.upload-picker__progress[data-v-eca9500a] {\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-eca9500a] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.upload-picker--uploading .upload-picker__progress[data-v-eca9500a] {\n max-width: 200px;\n margin-right: 20px;\n margin-left: 8px;\n}\n.upload-picker--paused .upload-picker__progress[data-v-eca9500a] {\n animation: breathing-eca9500a 3s ease-out infinite normal;\n}\n@keyframes breathing-eca9500a {\n 0% {\n opacity: .5;\n }\n 25% {\n opacity: 1;\n }\n 60% {\n opacity: .5;\n }\n to {\n opacity: .5;\n }\n}\n"],sourceRoot:""}]);const l=o},11028:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var n=s(71354),a=s.n(n),i=s(76314),o=s.n(i)()(a());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