import{_ as l}from"./ItemsListing.vue_vue_type_style_index_0_lang-a1cd4f47.js";import{_ as d,a as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-befbcb89.js";import{v as f,r as y,w as _,y as i,E as b,l as h,z as a,x as k,I as o,B as m,L as s,ap as w}from"./index-b12bd80e.js";import"./ListviewItem-96050575.js";import"./VBadge-ee40611b.js";import"./Container-559ac507.js";import"./forwardRefs-ccde8f15.js";import"./VMenu-29f14170.js";/* empty css              */import"./VInput-07934be9.js";import"./VSlideGroup-59a451fd.js";import"./VCard-ff384e61.js";import"./VCardText-a5346cc1.js";import"./VTooltip-7261e542.js";import"./PanelviewItem.vue_vue_type_style_index_0_lang-9e7798b1.js";import"./contextmenu-1ea20272.js";import"./Alert-49bdea68.js";import"./VAlert-b44bc40e.js";import"./VToolbar-4a427573.js";import"./VTextField-7036077f.js";import"./VVirtualScroll-36f43258.js";import"./layout-7fb97d09.js";import"./VDialog-3a6bdc14.js";const g=m("br",null,null,-1),A=m("br",null,null,-1),R=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,I)=>(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{R as default};
