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-Dnfj1twE.js";import{Ht as v,Vt as y}from"./vendor-quasar-BP3JemFi.js";import{Ai as b,Lr as x,So as S,ao as C,bo as w,ia as T,io as E,ji as D,oo as O,ra as k,si as A,so as j,zr as M}from"./ws-Dl8XkIy4.js";import{bn as N,yn as P}from"./auth-tS4c9ju3.js";var F,I=e((()=>{f(),C(),N(),x(),S(),F=l({__name:`LyricsButton`,setup(e){let t=M(),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(P,{class:`lyrics-button`,active:u(r),onClick:a,title:u(w)(`term.lyrics`),"native-title":``},{default:m(()=>[_(E,{name:`lyrics`,size:`20px`})]),_:1},8,[`active`,`title`]))}})})),L=e((()=>{})),R,z=e((()=>{I(),I(),L(),j(),R=O(F,[[`__scopeId`,`data-v-e53acbcf`]])})),B=e((()=>{})),V,H,U,W,G=e((()=>{v(),f(),N(),A(),x(),k(),c(),B(),j(),V={class:`nav-glyph`},H={key:0,class:`autoplay-badge`},U={__name:`QueueButton`,setup(e){let c=M(),l=T(),f=i(`miniPlayerDrawerContext`,null),v=p(()=>f?f.isDrawerView(`queue`):c.isRightDrawerView(`queue`));function x(){f?f.invokeDrawerView(`queue`):c.invokeRightDrawerView(`queue`)}let S=r(!1);function C(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`,S.value=!0}function w(e){S.value=!1}function E(e){e.preventDefault(),S.value=!1;try{let t=JSON.parse(e.dataTransfer?.getData(`text`));Array.isArray(t.itemRefs)&&t.itemRefs.length?D({refs:t.itemRefs}):b({items:t.items,type:t.type})}catch{console.debug(`fail`,e.dataTransfer?.getData(`text`))}}return(e,r)=>(d(),o(P,{title:e.$i(`term.queue`),onDragleave:w,onDragover:C,onDrop:t(E,[`prevent`]),onClick:x,active:v.value,class:h({"drop-target":S.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=O(U,[[`__scopeId`,`data-v-8330b14f`]])}));export{z as i,G as n,R as r,W as t};