import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{En as t,Fn as n,Fr as r,Kn as i,Mn as a,Nn as o,Pn as s,R as c,Vn as l,Wr as u,ar as d,dn as f,jn as p,vr as m,xr as h,z as g,zn as _}from"./vendor-6bGPahzI.js";import{Ht as v,Vt as y}from"./vendor-quasar-Bl8FKFQs.js";import{$r as b,Da as x,Ei as S,Ki as C,Oa as w,Qr as T,Ti as E,Ua as D,Va as O,fr as k,kr as A,qi as j,ur as M}from"./ws-BfVPV0ME.js";import{fn as N,pn as P}from"./auth-WD4QDKIv.js";var F,I=e((()=>{f(),j(),P(),M(),D(),F=l({__name:`LyricsButton`,setup(e){let t=k(),n=i(`miniPlayerDrawerContext`,null),r=p(()=>n?n.isDrawerView(`lyrics`):t.isRightDrawerView(`lyrics`));function a(){n?n.invokeDrawerView(`lyrics`):t.invokeRightDrawerView(`lyrics`)}return(e,t)=>(d(),o(N,{class:`lyrics-button`,active:u(r),onClick:a,title:u(O)(`term.lyrics`),"native-title":``},{default:m(()=>[_(C,{name:`lyrics`,size:`20px`})]),_:1},8,[`active`,`title`]))}})})),L=e((()=>{})),R,z=e((()=>{I(),I(),L(),w(),R=x(F,[[`__scopeId`,`data-v-e53acbcf`]])})),B=e((()=>{})),V,H,U,W,G=e((()=>{v(),f(),P(),A(),M(),E(),c(),B(),w(),V={class:`nav-glyph`},H={key:0,class:`autoplay-badge`},U={__name:`QueueButton`,setup(e){let c=k(),l=S(),f=i(`miniPlayerDrawerContext`,null),v=p(()=>f?f.isDrawerView(`queue`):c.isRightDrawerView(`queue`));function x(){f?f.invokeDrawerView(`queue`):c.invokeRightDrawerView(`queue`)}let C=r(!1);function w(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`,C.value=!0}function E(e){C.value=!1}function D(e){e.preventDefault(),C.value=!1;try{let t=JSON.parse(e.dataTransfer?.getData(`text`));Array.isArray(t.itemRefs)&&t.itemRefs.length?b({refs:t.itemRefs}):T({items:t.items,type:t.type})}catch{console.debug(`fail`,e.dataTransfer?.getData(`text`))}}return(e,r)=>(d(),o(N,{title:e.$i(`term.queue`),onDragleave:E,onDragover:w,onDrop:t(D,[`prevent`]),onClick:x,active:v.value,class:h({"drop-target":C.value}),"native-title":``},{default:m(()=>[a(`div`,V,[_(u(g),{type:`list`}),u(l).player.autoplayEnabled?(d(),n(`div`,H,[_(y,{name:`ion-infinite`})])):s(``,!0)])]),_:1},8,[`title`,`active`,`class`]))}},W=x(U,[[`__scopeId`,`data-v-8330b14f`]])}));export{z as i,G as n,R as r,W as t};