import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{An as t,Ar as n,Dn as r,En as i,Fn as a,Ln as o,On as s,_r as c,dr as l,er as u,gr as d,jn as f,kn as p,pr as m,sn as h,zr as g}from"./vendor-Dcerr41Y.js";import{D as _,Dr as v,Er as y,St as b,di as x,ui as S,x as C,xt as w}from"./ws-DjAvcWfg.js";import{C as T,Ln as E,Rn as D,T as O}from"./smart-playlist-store-U6zHlhLg.js";import{n as k,t as A}from"./CTooltip-VbAiroE6.js";import{S as j,_ as M,v as N,x as P}from"./AMPlaybackActions-BhoorvYm.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-BHP63xOm.js";var U,W,G,K,q=e((()=>{k(),h(),C(),v(),T(),w(),j(),N(),R(),D(),I(),z(),B(),U={class:`popover-artwork`},W={class:`player-info`},G={class:`playback-timeline`},K=o({__name:`AMPLCD`,setup(e){let o=_(),h=b(),v=n(!0),x=r(()=>b().player),S=r(()=>!!x.value.currentArtworkUrlHiRes),{isIdle:C}=L(),{elementRef:w,showContextMenu:T}=O(),D=n(!1),k=n(null),j=n({}),N=n(!1);return r(()=>h.nowPlayingItemMediaItem?.attributes?.artwork?h.nowPlayingItemMediaItem?.attributes?.artwork:{url:x.value.currentArtworkUrlHiRes}),l(D,e=>{if(e&&k.value){let e=k.value.getBoundingClientRect();j.value={position:`fixed`,left:`${e.left+e.width/2}px`,top:`${e.top-10}px`}}}),(e,n)=>{let r=A;return u(),f(`div`,{class:d([`player`,{"glass-lcd":g(o).components.AMPLCD.Style===`glass`,"lcd-idle":g(C)}]),ref_key:`elementRef`,ref:w},[s(`div`,{class:`player-artwork`,onClick:n[0]||=(...e)=>g(T)&&g(T)(...e),"data-show-context-menu":``,onMouseenter:n[1]||=e=>D.value=!0,onMouseleave:n[2]||=e=>D.value=!1,ref_key:`artworkEl`,ref:k},[a(V,{ref:`artwork`,class:`no-shadow no-radius`,artwork:g(h).nowPlayingArtwork,loading:`eager`,"artwork-type":`list-item`,"no-shadow":``},null,8,[`artwork`]),v.value?(u(),p(r,{key:0},{default:m(()=>[s(`div`,U,[a(V,{ref:`artwork`,class:`no-shadow`,artwork:g(h).nowPlayingArtwork,loading:`eager`,"artwork-type":`list-item`,"no-shadow":``},null,8,[`artwork`])])]),_:1})):t(``,!0)],544),(u(),p(i,{to:`body`},[D.value&&k.value&&S.value?(u(),f(`div`,{key:0,class:`artwork-hover-preview`,style:c(j.value)},[(u(),p(E,{classes:`hover-artwork no-shadow`,loading:`eager`,key:x.value.currentArtworkUrlHiRes,"desired-height":200,"desired-width":200,url:x.value.currentArtworkUrlHiRes},null,8,[`url`]))],4)):t(``,!0)])),s(`div`,W,[s(`div`,{class:d([`lcd-info`,{blurred:N.value}])},[a(P,{class:`metadata-small`})],2),s(`div`,G,[s(`div`,{class:d([`time-codes`,{lifted:N.value}])},[s(`div`,null,[a(H,{type:`current`})]),s(`div`,null,[a(H,{type:`duration`})])],2),s(`div`,{class:`playback-bar`,onMouseenter:n[3]||=e=>N.value=!0,onMouseleave:n[4]||=e=>N.value=!1},[a(M,{class:`mavericks`})],32)]),s(`button`,{class:`menu-btn`,onClick:n[5]||=(...e)=>g(T)&&g(T)(...e),"data-show-context-menu":``},[a(y,{name:`menu-dots`})])]),a(F,{visible:g(C)},null,8,[`visible`])],2)}}})})),J=e((()=>{})),Y,X=e((()=>{q(),q(),J(),x(),Y=S(K,[[`__scopeId`,`data-v-262f78fc`]])}));export{X as n,Y as t};