import{_ as s}from"./ItemsListing.vue_vue_type_style_index_0_lang-e3f0c114.js";import{_ as y,a as v}from"./ProviderDetails.vue_vue_type_script_setup_true_lang-b493f7e4.js";import{y as h,r as b,w,A as i,H as _,q as k,B as a,z as n,K as o,E as p,N as l,ar as m}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 A=p("br",null,null,-1),g=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),A,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),g,t.value?(i(),a(v,{key:2,"item-details":t.value},null,8,["item-details"])):o("",!0)]))}});export{R as default};
