import{n as e}from"./rolldown-runtime-CMxvf4Kt.js";import{A as t,Bn as n,Cn as r,On as i,Qn as a,_n as o,cn as s,gn as c,hn as l,hr as u,j as d,mn as f,pn as p,qt as m,tr as h,wr as g,xn as _}from"./vendor-C4JLrdLj.js";import{Gt as v,Kt as y}from"./vendor-quasar-BMuYn1t2.js";import{Bn as b,Hn as x,Ht as S,Jr as C,_i as w,gr as T,hr as E,qr as D,un as O,vt as k,yi as A,yt as j}from"./ws-JRT2XE7Y.js";import{Lt as M,Rt as N}from"./smart-playlist-store-DUBQztY1.js";var P,F=e((()=>{m(),T(),N(),b(),A(),P=r({__name:`LyricsButton`,setup(e){let t=x(),r=i(`miniPlayerDrawerContext`,null),o=p(()=>r?r.isDrawerView(`lyrics`):t.isRightDrawerView(`lyrics`));function s(){r?r.invokeDrawerView(`lyrics`):t.invokeRightDrawerView(`lyrics`)}return(e,t)=>(n(),l(M,{class:`lyrics-button`,active:g(o),onClick:s,title:g(w)(`term.lyrics`),"native-title":``},{default:a(()=>[_(E,{name:`lyrics`,size:`20px`})]),_:1},8,[`active`,`title`]))}})})),I=e((()=>{})),L,R=e((()=>{F(),F(),I(),C(),L=D(P,[[`__scopeId`,`data-v-d1847668`]])})),z=e((()=>{})),B,V,H,U,W=e((()=>{y(),m(),N(),S(),b(),k(),t(),z(),C(),B={class:`nav-glyph`},V={key:0,class:`autoplay-badge`},H={__name:`QueueButton`,setup(e){let t=x(),r=j(),m=i(`miniPlayerDrawerContext`,null),y=p(()=>m?m.isDrawerView(`queue`):t.isRightDrawerView(`queue`));function b(){m?m.invokeDrawerView(`queue`):t.invokeRightDrawerView(`queue`)}let S=u(!1);function C(e){e.preventDefault(),e.dataTransfer.dropEffect=`move`,S.value=!0}function w(e){S.value=!1}function T(e){e.preventDefault(),S.value=!1;try{let t=JSON.parse(e.dataTransfer?.getData(`text`));console.log(t),O({items:t.items,type:t.type})}catch{console.debug(`fail`,e.dataTransfer?.getData(`text`))}}return(e,t)=>(n(),l(M,{title:e.$i(`term.queue`),onDragleave:w,onDragover:C,onDrop:s(T,[`prevent`]),onClick:b,active:y.value,class:h({"drop-target":S.value}),"native-title":``},{default:a(()=>[f(`div`,B,[_(g(d),{type:`list`}),g(r).player.autoplayEnabled?(n(),o(`div`,V,[_(v,{name:`ion-infinite`})])):c(``,!0)])]),_:1},8,[`title`,`active`,`class`]))}},U=D(H,[[`__scopeId`,`data-v-2ee37265`]])}));export{R as i,W as n,L as r,U as t};