import{l as d,J as v,r as i,B as n,O as o,S as y,b as m,o as E,af as s,q as I,v as A}from"./index-ade73b84.js";import{_ as D}from"./ItemsListing.vue_vue_type_script_setup_true_lang-3b792876.js";import"./ListviewItem-2bd74fad.js";import"./MediaItemThumb.vue_vue_type_style_index_0_lang-cd169f56.js";import"./VMenu-ccc026f2.js";import"./VDivider-adefbf87.js";import"./VBtn-61e39030.js";import"./VListItem-f848c028.js";import"./Container-282a676b.js";/* empty css              */import"./VDialog-93a2100b.js";import"./VCard-f3e11b51.js";import"./VToolbar-806969a3.js";import"./VSelect-a66ffc02.js";/* empty css                             */import"./PanelviewItem.vue_vue_type_style_index_0_lang-93dbfb68.js";import"./Alert-4d78da02.js";import"./VSpacer-159b0383.js";import"./VBadge-12aff0c7.js";import"./VRow-74a0e5a5.js";const F=d({__name:"LibraryArtists",setup(M){const{t:p}=v(),l=i([]),r=i(!1),u=async function(t,a,e,c,_=!0,f=!0){const b=_||void 0;return r.value=!1,await o.getLibraryArtists(b,c,a,t,e,f)};return n.topBarContextMenuItems=[{label:"sync_now",labelArgs:[p("artists")],action:()=>{o.startSync([y.ARTIST])},icon:"mdi-sync"}],m(()=>{n.topBarContextMenuItems=[]}),E(()=>{const t=o.subscribe_multi([s.MEDIA_ITEM_ADDED,s.MEDIA_ITEM_UPDATED,s.MEDIA_ITEM_DELETED],a=>{var e;(e=a.object_id)!=null&&e.startsWith("library://artist")&&(r.value=!0)});m(t)}),(t,a)=>(I(),A(D,{itemtype:"artists",items:l.value,"show-provider":!1,"show-favorites-only-filter":!0,"load-data":u,"show-album-artists-only-filter":!0,"update-available":r.value},null,8,["items","update-available"]))}});export{F as default};
