import{n as e}from"./rolldown-runtime-CMxvf4Kt.js";import{Bn as t,Cn as n,_n as r,cn as i,gn as a,hn as o,hr as s,mn as c,pn as l,qt as u,tr as d,wr as f,xn as p}from"./vendor-C4JLrdLj.js";import{i as m,u as h}from"./vendor-vue-SNAXxxQe.js";import{Q as g,Z as _}from"./vendor-quasar-BMuYn1t2.js";import{Bn as v,Hn as y,Jr as b,b as x,h as S,m as C,qr as w,x as T}from"./ws-JRT2XE7Y.js";import{T as E,w as D}from"./index-Dhwlon97.js";import{m as O,n as k,p as A,t as j}from"./AMPlaybackActions-CHMHzCPG.js";import{n as M,t as ee}from"./VolumePopup-ByCoL5-r.js";import{i as N,n as P,r as F,t as I}from"./QueueButton-CvYMzy0n.js";import{i as L,n as R,r as z,t as B}from"./AirplayButton-DT_n7WqN.js";import{n as V,t as H}from"./AMPLCD-BtIxCfTU.js";var U,W,G,K,q,J,Y,X=e((()=>{u(),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=n({__name:`LCDPlayerMavericks`,props:{showLcd:{type:Boolean,default:!0}},setup(e){let n=s(),u=h(n),m=g(),_=y(),v=l(()=>y().getWindowControlsSide()),b=S(),C=l(()=>v.value==`left`?800:1100),w=l(()=>!!(x(`visual.overlayDrawer`)||m.screen.width<850)),T=l(()=>!!(_.rightDrawerOpen&&_.isIfLayout&&v.value==`right`||_.leftDrawerOpen&&_.isIfLayout&&v.value==`left`)),E=l(()=>_.leftDrawerOpen?!x(`components.SidebarProfile.HasMainMenu`)||!x(`components.SidebarProfile.Enabled`):!0);return(s,l)=>(t(),r(`div`,{class:d([`lcdplayer-top lcdPlayer`,{"left-controls":v.value==`left`,"no-controls":T.value&&!w.value||f(_).hasTitleBar}]),onDblclick:l[0]||=i(e=>f(D).maximizeWindow(),[`self`]),ref_key:`LCDRef`,ref:n},[c(`div`,U,[c(`div`,null,[v.value==`right`&&E.value?(t(),o(z,{key:0})):a(``,!0)]),c(`div`,W,[p(j)])]),c(`div`,G,[e.showLcd&&f(b).isAuthorized?(t(),r(`div`,K,[p(H)])):a(``,!0)]),c(`div`,q,[f(u).width.value>C.value?(t(),r(`div`,J,[p(A)])):(t(),o(ee,{key:1})),f(x)(`casting.enabled`)&&f(x)(`audio.ciderAudio.enabled`)?(t(),o(B,{key:2})):a(``,!0),p(F),p(I),v.value==`left`&&E.value?(t(),o(z,{key:3})):a(``,!0)])],34))}})})),Z=e((()=>{})),Q,$=e((()=>{X(),X(),Z(),b(),Q=w(Y,[[`__scopeId`,`data-v-cdc81dba`]])}));$();export{Q as default,$ as t};