import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{En as t,Fn as n,Fr as ee,Mn as r,Nn as i,Pn as a,Vn as o,Wr as s,ar as c,dn as l,jn as u,vr as d,xr as f,zn as p}from"./vendor-6bGPahzI.js";import{i as m,u as h}from"./vendor-vue-DqH63YZy.js";import{X as g,Y as _}from"./vendor-quasar-Bl8FKFQs.js";import{$n as v,Da as y,Ki as b,Nt as x,Oa as S,Pt as C,Qn as w,fr as T,qi as E,ur as D}from"./ws-BfVPV0ME.js";import{f as O,p as k}from"./index-BfA-u3L9.js";import{fn as te,pn as ne}from"./auth-WD4QDKIv.js";import{m as re,n as ie,p as ae,t as oe}from"./AMPlaybackActions-DE3IQYo9.js";import{n as se,t as ce}from"./VolumePopup-DJnRwd2B.js";import{i as A,n as j,r as M,t as N}from"./QueueButton-BwAUAUXa.js";import{n as P,t as F}from"./MainMenuButton-COBoACPc.js";import{n as I,t as L}from"./AMPLCD-C4iMq0Av.js";var R,z,B=e((()=>{l(),E(),ne(),D(),R={class:`nav-glyph`},z=o({__name:`AirplayButton`,setup(e){let t=T();return(e,n)=>(c(),i(te,{class:`airplay-button`,"native-title":``,title:e.$i(`action.cast.airplay`),active:s(t).isRightDrawerView(`airplay`),onClick:n[0]||=e=>s(t).invokeRightDrawerView(`airplay`)},{default:d(()=>[r(`div`,R,[p(b,{name:`airplay`})])]),_:1},8,[`title`,`active`]))}})})),V=e((()=>{})),H,U=e((()=>{B(),B(),V(),S(),H=y(z,[[`__scopeId`,`data-v-41325ff2`]])})),W,G,K,q,J,Y,X,Z=e((()=>{l(),m(),_(),C(),k(),D(),w(),P(),I(),re(),se(),U(),A(),j(),ie(),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=o({__name:`LCDPlayerMavericks`,props:{showLcd:{type:Boolean,default:!0}},setup(e){let o=ee(),l=h(o),d=g(),m=T(),_=u(()=>T().getWindowControlsSide()),y=v(),b=u(()=>_.value==`left`?800:1100),S=u(()=>!!(x(`visual.overlayDrawer`)||d.screen.width<850)),C=u(()=>!!(m.rightDrawerOpen&&m.isIfLayout&&_.value==`right`||m.leftDrawerOpen&&m.isIfLayout&&_.value==`left`)),w=u(()=>m.leftDrawerOpen?!x(`components.SidebarProfile.HasMainMenu`)||!x(`components.SidebarProfile.Enabled`):!0);return(ee,u)=>(c(),n(`div`,{class:f([`lcdplayer-top lcdPlayer`,{"left-controls":_.value==`left`,"no-controls":C.value&&!S.value||s(m).hasTitleBar}]),onDblclick:u[0]||=t(e=>s(O).maximizeWindow(),[`self`]),ref_key:`LCDRef`,ref:o},[r(`div`,W,[r(`div`,null,[_.value==`right`&&w.value?(c(),i(F,{key:0})):a(``,!0)]),r(`div`,G,[p(oe)])]),r(`div`,K,[e.showLcd&&s(y).isAuthorized?(c(),n(`div`,q,[p(L)])):a(``,!0)]),r(`div`,J,[s(l).width.value>b.value?(c(),n(`div`,Y,[p(ae)])):(c(),i(ce,{key:1})),s(x)(`casting.enabled`)&&s(x)(`audio.ciderAudio.enabled`)?(c(),i(H,{key:2})):a(``,!0),p(M),p(N),_.value==`left`&&w.value?(c(),i(F,{key:3})):a(``,!0)])],34))}})})),le=e((()=>{})),Q,$=e((()=>{Z(),Z(),le(),S(),Q=y(X,[[`__scopeId`,`data-v-cdc81dba`]])}));$();export{Q as default,H as n,U as r,$ as t};