import{n as e}from"./rolldown-runtime-CMxvf4Kt.js";import{Bn as t,Cn as n,Qn as r,Xn as i,_n as a,fn as o,gn as s,hn as c,hr as l,mn as u,nr as d,pn as f,qt as p,tr as m,wr as h,xn as g}from"./vendor-C4JLrdLj.js";import{nt as _,rt as v}from"./vendor-quasar-BMuYn1t2.js";import{E as y,Jr as b,gr as x,hr as S,qr as C,vt as w,x as T,yt as E}from"./ws-JRT2XE7Y.js";import{nn as D,tn as O,x as k,y as A}from"./smart-playlist-store-DUBQztY1.js";import{_ as j,b as M,v as N,y as P}from"./AMPlaybackActions-CHMHzCPG.js";import{a as F,c as I,i as L,n as R,o as z,r as B,s as V,t as H}from"./AMTime-BIeFfpiE.js";var U,W,G,K,q=e((()=>{v(),p(),T(),x(),A(),w(),M(),N(),R(),D(),I(),z(),B(),U={class:`popover-artwork`},W={class:`player-info`},G={class:`playback-timeline`},K=n({__name:`AMPLCD`,setup(e){let n=y(),p=E(),v=l(!0),b=f(()=>E().player),x=f(()=>!!b.value.currentArtworkUrlHiRes),{isIdle:C}=L(),{elementRef:w,showContextMenu:T}=k(),D=l(!1),A=l(null),M=l({}),N=l(!1);return f(()=>p.nowPlayingItemMediaItem?.attributes?.artwork?p.nowPlayingItemMediaItem?.attributes?.artwork:{url:b.value.currentArtworkUrlHiRes}),i(D,e=>{if(e&&A.value){let e=A.value.getBoundingClientRect();M.value={position:`fixed`,left:`${e.left+e.width/2}px`,top:`${e.top-10}px`}}}),(e,i)=>(t(),a(`div`,{class:m([`player`,{"glass-lcd":h(n).components.AMPLCD.Style===`glass`,"lcd-idle":h(C)}]),ref_key:`elementRef`,ref:w},[u(`div`,{class:`player-artwork`,onClick:i[0]||=(...e)=>h(T)&&h(T)(...e),"data-show-context-menu":``,onMouseenter:i[1]||=e=>D.value=!0,onMouseleave:i[2]||=e=>D.value=!1,ref_key:`artworkEl`,ref:A},[g(V,{ref:`artwork`,class:`no-shadow no-radius`,artwork:h(p).nowPlayingArtwork,loading:`eager`,"artwork-type":`list-item`,"no-shadow":``},null,8,[`artwork`]),v.value?(t(),c(_,{key:0},{default:r(()=>[u(`div`,U,[g(V,{ref:`artwork`,class:`no-shadow`,artwork:h(p).nowPlayingArtwork,loading:`eager`,"artwork-type":`list-item`,"no-shadow":``},null,8,[`artwork`])])]),_:1})):s(``,!0)],544),(t(),c(o,{to:`body`},[D.value&&A.value&&x.value?(t(),a(`div`,{key:0,class:`artwork-hover-preview`,style:d(M.value)},[(t(),c(O,{classes:`hover-artwork no-shadow`,loading:`eager`,key:b.value.currentArtworkUrlHiRes,"desired-height":200,"desired-width":200,url:b.value.currentArtworkUrlHiRes},null,8,[`url`]))],4)):s(``,!0)])),u(`div`,W,[u(`div`,{class:m([`lcd-info`,{blurred:N.value}])},[g(P,{class:`metadata-small`})],2),u(`div`,G,[u(`div`,{class:m([`time-codes`,{lifted:N.value}])},[u(`div`,null,[g(H,{type:`current`})]),u(`div`,null,[g(H,{type:`duration`})])],2),u(`div`,{class:`playback-bar`,onMouseenter:i[3]||=e=>N.value=!0,onMouseleave:i[4]||=e=>N.value=!1},[g(j,{class:`mavericks`})],32)]),u(`button`,{class:`menu-btn`,onClick:i[5]||=(...e)=>h(T)&&h(T)(...e),"data-show-context-menu":``},[g(S,{name:`menu-dots`})])]),g(F,{visible:h(C)},null,8,[`visible`])],2))}})})),J=e((()=>{})),Y,X=e((()=>{q(),q(),J(),b(),Y=C(K,[[`__scopeId`,`data-v-8d5a1c4c`]])}));export{X as n,Y as t};