import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{An as t,Ar as n,Dn as r,Fn as i,Hn as a,I as o,L as s,Ln as c,On as l,Sn as u,er as d,gr as f,jn as p,kn as m,pr as h,sn as g,zr as _}from"./vendor-Dcerr41Y.js";import{Ut as v,Wt as y}from"./vendor-quasar-CU_esu6y.js";import{Dr as b,Er as x,Li as S,St as C,Xt as w,Yn as T,Zn as E,bn as D,di as O,ui as k,xt as A,yn as j,zi as M}from"./ws-DjAvcWfg.js";import{on as N,sn as P}from"./smart-playlist-store-U6zHlhLg.js";var F,I=e((()=>{g(),b(),P(),T(),M(),F=c({__name:`LyricsButton`,setup(e){let t=E(),n=a(`miniPlayerDrawerContext`,null),o=r(()=>n?n.isDrawerView(`lyrics`):t.isRightDrawerView(`lyrics`));function s(){n?n.invokeDrawerView(`lyrics`):t.invokeRightDrawerView(`lyrics`)}return(e,t)=>(d(),m(N,{class:`lyrics-button`,active:_(o),onClick:s,title:_(S)(`term.lyrics`),"native-title":``},{default:h(()=>[i(x,{name:`lyrics`,size:`20px`})]),_:1},8,[`active`,`title`]))}})})),L=e((()=>{})),R,z=e((()=>{I(),I(),L(),O(),R=k(F,[[`__scopeId`,`data-v-d1847668`]])})),B=e((()=>{})),V,H,U,W,G=e((()=>{y(),g(),P(),w(),T(),A(),o(),B(),O(),V={class:`nav-glyph`},H={key:0,class:`autoplay-badge`},U={__name:`QueueButton`,setup(e){let o=E(),c=C(),g=a(`miniPlayerDrawerContext`,null),y=r(()=>g?g.isDrawerView(`queue`):o.isRightDrawerView(`queue`));function b(){g?g.invokeDrawerView(`queue`):o.invokeRightDrawerView(`queue`)}let x=n(!1);function S(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`,x.value=!0}function w(e){x.value=!1}function T(e){e.preventDefault(),x.value=!1;try{let t=JSON.parse(e.dataTransfer?.getData(`text`));Array.isArray(t.itemRefs)&&t.itemRefs.length?D({refs:t.itemRefs}):j({items:t.items,type:t.type})}catch{console.debug(`fail`,e.dataTransfer?.getData(`text`))}}return(e,n)=>(d(),m(N,{title:e.$i(`term.queue`),onDragleave:w,onDragover:S,onDrop:u(T,[`prevent`]),onClick:b,active:y.value,class:f({"drop-target":x.value}),"native-title":``},{default:h(()=>[l(`div`,V,[i(_(s),{type:`list`}),_(c).player.autoplayEnabled?(d(),p(`div`,H,[i(v,{name:`ion-infinite`})])):t(``,!0)])]),_:1},8,[`title`,`active`,`class`]))}},W=k(U,[[`__scopeId`,`data-v-8330b14f`]])}));export{z as i,G as n,R as r,W as t};