import{a as i}from"./preload-helper-B5suVMXI.chunk.mjs";const r=i({name:"FilesByMonthMixin",computed:{fileIdsByMonth(){const t={};for(const s of this.fetchedFileIds){const e=this.files[s];e&&(t[e.attributes.month]=t[e.attributes.month]??[],t[e.attributes.month].push(e.fileid))}return Object.keys(t).forEach(s=>t[s].sort(this.sortFilesByTimestamp)),t},monthsList(){return Object.keys(this.fileIdsByMonth).sort((t,s)=>t>s?-1:1)}},methods:{sortFilesByTimestamp(t,s){return this.files[t].attributes.timestamp>this.files[s].attributes.timestamp?-1:1}}});export{r as F};
//# sourceMappingURL=FilesByMonthMixin-B132Pu_9.chunk.mjs.map
