export default function ServerCompendiumFolderMixin(t){return class extends db.Folder{static _compendium=t;static{Object.defineProperty(this,"_db",{get:()=>t._db})}static get collectionName(){return"folders"}static get sublevel(){return this._db.sublevels.folders}get compendium(){return this.constructor._compendium}static metadata=(()=>foundry.utils.mergeObject(super.metadata,{permissions:{create:this.#t.bind(this),update:this.#t.bind(this),delete:this.#t.bind(this)}},{inplace:!1}))();static async getMany(t,e={}){const i=[];for(let s of t)i.push(await this._compendium.getFolder(s,e));return i}static fromSource(t,e={}){return e.pack=this._compendium.collectionName,super.fromSource(t,e)}static#t(t,e,i){return db.packs.get(e.pack).isOwner(t)}}}