import{_ as d}from"./ArtistIcon.vue_vue_type_script_setup_true_lang-9t03TnXO.js";import{I as p}from"./ItemsListing-DXn6klLW.js";import{s,a as o,E as m}from"./index-CxdMb--b.js";import{d as c,r as a,o as f,a3 as v,G as _,b as y}from"./lucide-6UWTdd2w.js";import"./Container-lfvDMCYz.js";import"./index-kQIztB-E.js";import"./vuetify-C-X2RQxn.js";import"./Toolbar-C902KdF1.js";import"./userPreferences-BZWvSioQ.js";import"./vue-router-DseMGm2G.js";import"./Button-CWkPf4BG.js";import"./ListItem-DmM_itD1.js";import"./NowPlayingBadge.vue_vue_type_style_index_0_lang-ChrddRO9.js";import"./MediaItemThumb-B9KDrdEa.js";import"./ProviderIcon.vue_vue_type_style_index_0_lang-BujA4SYo.js";import"./vue-i18n-QBroYIqB.js";import"./PanelviewItemCompact-ZzB81zav.js";import"./qrcode-DG5BmHWw.js";import"./marked-BPdRUrA1.js";import"./color-CqFg8eif.js";import"./vueuse-ulR2KBc1.js";/* empty css            */import"./swiper-7FOSZ2nt.js";const z=c({name:"Artists",__name:"LibraryArtists",setup(b){const r=a(!1),e=a(s.libraryArtistsCount),l=["name","name_desc","sort_name","sort_name_desc","timestamp_added","timestamp_added_desc","last_played","last_played_desc","play_count","play_count_desc"],n=async function(t){return r.value=!1,u(t),await o.getLibraryArtists(t.favoritesOnly||void 0,t.search,t.limit,t.offset,t.sortBy,t.albumArtistsFilter,t.provider&&t.provider.length>0?t.provider:void 0,t.genreIds)},u=async function(t){if(!t.favoritesOnly&&!t.albumArtistsFilter&&!t.provider){e.value=s.libraryArtistsCount;return}if(t.provider&&t.provider.length>0){e.value=void 0;return}e.value=await o.getLibraryArtistsCount(t.favoritesOnly||!1,t.albumArtistsFilter||!1)};return f(()=>{const t=o.subscribe(m.MEDIA_ITEM_ADDED,i=>{i.object_id?.startsWith("library://artist")&&(r.value=!0)});v(t)}),(t,i)=>(y(),_(p,{itemtype:"artists",path:"libraryartists","show-provider":!1,"show-favorites-only-filter":!0,"load-paged-data":n,"show-album-artists-only-filter":!0,"update-available":r.value,title:t.$t("artists"),"allow-key-hooks":!0,"show-search-button":!0,"show-genre-filter":!0,"sort-keys":l,icon:d,"restore-state":!0,total:e.value,"show-provider-filter":!0},null,8,["update-available","title","total"]))}});export{z as default};
