import{h7 as a,a7 as c}from"./app-BgLa5dit.js";const u={VIDEO:"{limit:25,status:all}rating,thumbnail,libraries{typeId:[17,18]},series[tallPoster,banner],producers,distributors,resources{permissions.value:['protected']},subtitles{permissions.value:['protected']},interactives{permissions.value:['protected']}"},d={videosById(e){if(!e)return;const r=e.slice().sort();return{key:`workbench:videos:${r.join(":")}`,url:c.urlBuilder("/api/master/v2/objects",{id:r,query:u.VIDEO})}},getSubjectTree(e,r,i,o){return{url:"/api/subjects/v1/backbone-classifications/tree",key:"workbench:subject:tree",formatData:s=>{const t=s.find(n=>n.name===e);return t?{children:t.children,name:t.name,id:t.id}:{children:s,name:a.Root,id:null}},success:r,error:i,always:o}}};export{d as W};
//# sourceMappingURL=CnYYY4AA.chunk.js.map
