import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{En as t,Fn as n,Fr as r,Mn as i,Nn as a,Pn as o,Vn as s,Wr as c,ar as l,dn as u,jn as d,vr as f,xr as p,zn as m}from"./vendor-Dnfj1twE.js";import{i as h,u as g}from"./vendor-vue--4CNL3BY.js";import{X as _,Y as v}from"./vendor-quasar-BP3JemFi.js";import{Ht as y,Lr as b,Vt as x,ao as S,io as C,oo as w,or as T,so as E,sr as D,zr as O}from"./ws-Dl8XkIy4.js";import{f as k,p as A}from"./index-DEgYmG5l.js";import{bn as ee,yn as te}from"./auth-tS4c9ju3.js";import{m as ne,n as re,p as ie,t as ae}from"./AMPlaybackActions-Vw0z-V-k.js";import{n as oe,t as se}from"./VolumePopup-DBOlc2-y.js";import{i as ce,n as j,r as M,t as N}from"./QueueButton-Crq93vk_.js";import{n as P,t as F}from"./MainMenuButton-DANbZe5s.js";import{n as I,t as L}from"./AMPLCD-CtWhRXD8.js";var R,z,B=e((()=>{u(),S(),ee(),b(),R={class:`nav-glyph`},z=s({__name:`AirplayButton`,setup(e){let t=O();return(e,n)=>(l(),a(te,{class:`airplay-button`,"native-title":``,title:e.$i(`action.cast.airplay`),active:c(t).isRightDrawerView(`airplay`),onClick:n[0]||=e=>c(t).invokeRightDrawerView(`airplay`)},{default:f(()=>[i(`div`,R,[m(C,{name:`airplay`})])]),_:1},8,[`title`,`active`]))}})})),V=e((()=>{})),H,U=e((()=>{B(),B(),V(),E(),H=w(z,[[`__scopeId`,`data-v-41325ff2`]])})),W,G,K,q,J,Y,X,Z=e((()=>{u(),h(),v(),y(),A(),b(),T(),P(),I(),ne(),oe(),U(),ce(),j(),re(),W={class:`lcdplayer-controls window-drag`,id:`lcdplayer-controls-listen`},G={class:`playback-controls`},K={class:`lcdplayer-info window-drag`},q={key:0,class:`amp-lcd-container`},J={class:`lcdplayer-side window-drag`},Y={key:0,class:`volume-slider q-mr-sm`},X=s({__name:`LCDPlayerMavericks`,props:{showLcd:{type:Boolean,default:!0}},setup(e){let s=r(),u=g(s),f=_(),h=O(),v=d(()=>O().getWindowControlsSide()),y=D(),b=d(()=>v.value==`left`?800:1100),S=d(()=>!!(x(`visual.overlayDrawer`)||f.screen.width<850)),C=d(()=>!!(h.rightDrawerOpen&&h.isIfLayout&&v.value==`right`||h.leftDrawerOpen&&h.isIfLayout&&v.value==`left`)),w=d(()=>h.leftDrawerOpen?!x(`components.SidebarProfile.HasMainMenu`)||!x(`components.SidebarProfile.Enabled`):!0);return(r,d)=>(l(),n(`div`,{class:p([`lcdplayer-top lcdPlayer`,{"left-controls":v.value==`left`,"no-controls":C.value&&!S.value||c(h).hasTitleBar}]),onDblclick:d[0]||=t(e=>c(k).maximizeWindow(),[`self`]),ref_key:`LCDRef`,ref:s},[i(`div`,W,[i(`div`,null,[v.value==`right`&&w.value?(l(),a(F,{key:0})):o(``,!0)]),i(`div`,G,[m(ae)])]),i(`div`,K,[e.showLcd&&c(y).isAuthorized?(l(),n(`div`,q,[m(L)])):o(``,!0)]),i(`div`,J,[c(u).width.value>b.value?(l(),n(`div`,Y,[m(ie)])):(l(),a(se,{key:1})),c(x)(`casting.enabled`)&&c(x)(`audio.ciderAudio.enabled`)?(l(),a(H,{key:2})):o(``,!0),m(M),m(N),v.value==`left`&&w.value?(l(),a(F,{key:3})):o(``,!0)])],34))}})})),le=e((()=>{})),Q,$=e((()=>{Z(),Z(),le(),E(),Q=w(X,[[`__scopeId`,`data-v-cdc81dba`]])}));$();export{Q as default,H as n,U as r,$ as t};