import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{An as t,Ar as n,Dn as r,Fn as i,Ln as a,On as o,Sn as s,er as c,gr as l,jn as u,kn as d,sn as f,zr as p}from"./vendor-Dcerr41Y.js";import{i as m,u as h}from"./vendor-vue-CzT6iKrm.js";import{X as g,Y as _}from"./vendor-quasar-CU_esu6y.js";import{Yn as v,Zn as y,b,di as x,h as S,m as C,ui as w,x as T}from"./ws-DjAvcWfg.js";import{m as E,p as D}from"./index-IojTodLd.js";import{m as O,n as k,p as A,t as j}from"./AMPlaybackActions-BhoorvYm.js";import{n as M,t as ee}from"./VolumePopup-yaPZiHQg.js";import{i as N,n as P,r as F,t as I}from"./QueueButton-D2xC2ASx.js";import{i as L,n as R,r as z,t as B}from"./AirplayButton-Bo_jhcS1.js";import{n as V,t as H}from"./AMPLCD-CIQa0xvF.js";var U,W,G,K,q,J,Y,X=e((()=>{f(),m(),_(),T(),E(),v(),C(),L(),V(),O(),M(),R(),N(),P(),k(),U={class:`lcdplayer-controls window-drag`,id:`lcdplayer-controls-listen`},W={class:`playback-controls`},G={class:`lcdplayer-info window-drag`},K={key:0,class:`amp-lcd-container`},q={class:`lcdplayer-side window-drag`},J={key:0,class:`volume-slider q-mr-sm`},Y=a({__name:`LCDPlayerMavericks`,props:{showLcd:{type:Boolean,default:!0}},setup(e){let a=n(),f=h(a),m=g(),_=y(),v=r(()=>y().getWindowControlsSide()),x=S(),C=r(()=>v.value==`left`?800:1100),w=r(()=>!!(b(`visual.overlayDrawer`)||m.screen.width<850)),T=r(()=>!!(_.rightDrawerOpen&&_.isIfLayout&&v.value==`right`||_.leftDrawerOpen&&_.isIfLayout&&v.value==`left`)),E=r(()=>_.leftDrawerOpen?!b(`components.SidebarProfile.HasMainMenu`)||!b(`components.SidebarProfile.Enabled`):!0);return(n,r)=>(c(),u(`div`,{class:l([`lcdplayer-top lcdPlayer`,{"left-controls":v.value==`left`,"no-controls":T.value&&!w.value||p(_).hasTitleBar}]),onDblclick:r[0]||=s(e=>p(D).maximizeWindow(),[`self`]),ref_key:`LCDRef`,ref:a},[o(`div`,U,[o(`div`,null,[v.value==`right`&&E.value?(c(),d(z,{key:0})):t(``,!0)]),o(`div`,W,[i(j)])]),o(`div`,G,[e.showLcd&&p(x).isAuthorized?(c(),u(`div`,K,[i(H)])):t(``,!0)]),o(`div`,q,[p(f).width.value>C.value?(c(),u(`div`,J,[i(A)])):(c(),d(ee,{key:1})),p(b)(`casting.enabled`)&&p(b)(`audio.ciderAudio.enabled`)?(c(),d(B,{key:2})):t(``,!0),i(F),i(I),v.value==`left`&&E.value?(c(),d(z,{key:3})):t(``,!0)])],34))}})})),Z=e((()=>{})),Q,$=e((()=>{X(),X(),Z(),x(),Q=w(Y,[[`__scopeId`,`data-v-cdc81dba`]])}));$();export{Q as default,$ as t};