import{_ as s}from"./ItemsListing.vue_vue_type_style_index_0_lang-a1cd4f47.js";import{_ as y,a as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-befbcb89.js";import{v as h,r as b,w,y as i,E as _,l as k,z as a,x as n,I as o,B as p,L as l,ap as m}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=p("br",null,null,-1),A=p("br",null,null,-1),R=h({__name:"ArtistDetails",props:{itemId:{},provider:{}},setup(u){const r=u,t=b(),c=async function(){t.value=await l.getArtist(r.itemId,r.provider)};w(()=>r.itemId,e=>{e&&c()},{immediate:!0});const d=async function(e){return await l.getArtistAlbums(r.itemId,r.provider,e.libraryOnly)},f=async function(e){return await l.getArtistTracks(r.itemId,r.provider,e.libraryOnly)};return(e,I)=>(i(),_("section",null,[k(y,{item:t.value},null,8,["item"]),t.value?(i(),a(s,{key:0,itemtype:"artisttracks","parent-item":t.value,"show-provider":!0,"show-favorites-only-filter":!0,"show-library-only-filter":t.value.provider=="library"&&n(m)(t.value).length>0,"show-refresh-button":!1,"show-track-number":!1,"load-items":f,"sort-keys":["recent","name","album"],title:e.$t("tracks"),"allow-collapse":!0},null,8,["parent-item","show-library-only-filter","title"])):o("",!0),g,t.value?(i(),a(s,{key:1,itemtype:"artistalbums","parent-item":t.value,"show-provider":!0,"show-favorites-only-filter":!0,"show-library-only-filter":t.value.provider=="library"&&n(m)(t.value).length>0,"show-refresh-button":!1,"load-items":d,"sort-keys":["recent","name","year"],title:e.$t("albums"),"allow-collapse":!0},null,8,["parent-item","show-library-only-filter","title"])):o("",!0),A,t.value?(i(),a(v,{key:2,"item-details":t.value},null,8,["item-details"])):o("",!0)]))}});export{R as default};
