import{_ as l}from"./ItemsListing.vue_vue_type_style_index_0_lang-e3f0c114.js";import{_ as d,a as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-b493f7e4.js";import{y as f,r as y,w as _,A as i,H as b,q as h,B as a,z as k,K as o,E as m,N as s,ar as w}from"./index-9b822783.js";import"./ListviewItem-030e11e6.js";import"./VBadge-c9fb58c5.js";import"./Container-05be0da0.js";import"./forwardRefs-af0663a3.js";import"./VMenu-8029677e.js";/* empty css              */import"./VInput-c159036c.js";import"./VSlideGroup-d3ac8eca.js";import"./VCard-0d72f9dd.js";import"./VCardText-bc96863a.js";import"./VTooltip-5955b4ca.js";import"./PanelviewItem.vue_vue_type_style_index_0_lang-846c4785.js";import"./contextmenu-b55bad56.js";import"./Alert-112324b3.js";import"./VAlert-fddf489c.js";import"./VToolbar-79c684b4.js";import"./VTextField-7d804c49.js";import"./VVirtualScroll-a3d1c1c9.js";import"./layout-71937d76.js";import"./VDialog-a6f484ad.js";const g=m("br",null,null,-1),A=m("br",null,null,-1),U=f({__name:"AlbumDetails",props:{itemId:{},provider:{}},setup(n){const r=n,e=y(),p=async function(){e.value=await s.getAlbum(r.itemId,r.provider)};_(()=>r.itemId,t=>{t&&p()},{immediate:!0});const u=async function(t){return await s.getAlbumTracks(r.itemId,r.provider,t.libraryOnly)},c=async function(t){return await s.getAlbumVersions(e.value.item_id,e.value.provider)};return(t,B)=>(i(),b("section",null,[h(d,{item:e.value,"active-provider":t.provider},null,8,["item","active-provider"]),e.value?(i(),a(l,{key:0,itemtype:"albumtracks","parent-item":e.value,"show-provider":!0,"show-favorites-only-filter":!0,"show-library-only-filter":e.value.provider=="library"&&k(w)(e.value).length>0,"show-refresh-button":!1,"load-items":u,"sort-keys":["track_number","name","duration"],title:t.$t("tracks")},null,8,["parent-item","show-library-only-filter","title"])):o("",!0),g,e.value?(i(),a(l,{key:1,itemtype:"albumversions","parent-item":e.value,"show-provider":!0,"show-favorites-only-filter":!1,"show-refresh-button":!1,"load-items":c,"sort-keys":["provider","name","year"],title:t.$t("other_versions"),"hide-on-empty":!0},null,8,["parent-item","title"])):o("",!0),A,e.value?(i(),a(v,{key:2,"item-details":e.value},null,8,["item-details"])):o("",!0)]))}});export{U as default};
