import{n as e,r as t}from"./rolldown-runtime-DAXXjFlN.js";import{Dn as ee,Fn as n,Fr as r,Mn as i,Nn as a,Pn as o,Sr as te,Vn as s,Wr as c,ar as l,cr as u,dn as d,jn as f,vr as p,xr as m,yr as ne,zn as h}from"./vendor-6bGPahzI.js";import{$ as g,Lt as re,Nt as ie,Pt as _,Q as ae,Rt as v,X as y,Y as b}from"./vendor-quasar-Bl8FKFQs.js";import{$n as oe,Da as x,Ei as se,Nt as ce,Oa as S,Pt as C,Qn as w,Ti as T,fr as le,qt as ue,ur as de}from"./ws-BfVPV0ME.js";import{J as fe,Kn as E,U as pe,j as me,k as he,qn as ge}from"./auth-WD4QDKIv.js";import{n as _e,t as ve}from"./CTooltip-Cuxty1Ws.js";import{n as ye,t as be}from"./SteamIntegration-DSPT-i0k.js";import{n as xe,t as Se}from"./SleepTimerBadge-Dtc2vNBO.js";import{n as Ce,t as D}from"./MoreBtn-Ce1x55q0.js";import{b as O,m as k,n as A,p as we,t as Te,y as Ee}from"./AMPlaybackActions-DE3IQYo9.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,n as Me,o as Ne,r as Pe,s as Fe,t as Ie}from"./PlaybackSpeedButton-BQ_cdbJF.js";import{n as Le,t as Re}from"./AMProgressWidget-BnNUgeKq.js";import{n as ze,t as Be}from"./VolumePopup-DJnRwd2B.js";import{i as Ve,n as j,r as He,t as Ue}from"./QueueButton-BwAUAUXa.js";var M,N,P=e((()=>{d(),ze(),Ve(),j(),M={class:`SteamMojaveControls`},N=s({__name:`SteamMojaveControls`,setup(e){return(e,t)=>(l(),n(`div`,M,[h(Be),h(Ue),h(He)]))}})})),We=e((()=>{})),F,Ge=e((()=>{P(),P(),We(),S(),F=x(N,[[`__scopeId`,`data-v-b1fcccb4`]])})),I,L,R,z,B,V,H,U,W,G,K,q,J,Y,X,Z,Q=e((()=>{_e(),g(),_(),v(),d(),b(),C(),be(),pe(),he(),de(),w(),T(),O(),Ae(),Le(),k(),Oe(),ge(),Ce(),xe(),Ne(),je(),Me(),A(),Ge(),I={key:0,class:`metadata-artwork`},L={class:`popover-artwork`},R={class:`metadata-info-container`},z={class:`metadata-info`},B={key:1,class:`metadata-menu`},V={class:`col-4 gt-xs`},H={class:`flex flex-center`},U={class:`progress-bar`},W={class:`flex flex-center q-gutter-sm`},G={class:`col flex gt-xs items-center justify-end`},K={class:`volume-slider`},q={class:`col-3 flex items-center q-pr-lg justify-end lt-sm`},J=[`theme`],Y=[`theme`],X={key:1,class:`lcdPlayer_loader`},Z=s({inheritAttrs:!1,__name:`LCDPlayer`,props:{forceUndocked:{type:Boolean,default:!1},noArtwork:{type:Boolean,default:!1}},setup(e){let t=se(),s=oe(),d=ue(),g=r(!0),_=y();r(null);let v=le(),b=e,{elementRef:x,showContextMenu:S}=me();function C(){_.screen.lt.sm&&fe()}function w(){let e=v?.layout?.view?.split(` `)?.[2]?.[0]==`F`;return b.forceUndocked?!1:!!(v.dockedPlayer||e)}let T=f(()=>t.nowPlayingItemMediaItem);return(r,f)=>{let y=ve;return l(),a(ke,null,{default:p(()=>[h(ie,{class:m([`q-pa-md lcdPlayer`,{docked:w(),"lcd-sm":c(_).screen.lt.sm}]),onClick:f[1]||=e=>C(),flat:``},{default:p(()=>[c(s).isAuthorized?(l(),n(`div`,{key:0,class:`row lcdControls`,style:te([c(_).screen.lt.sm?`height: 50px`:``])},[i(`div`,{class:`col player-metadata`,ref_key:`elementRef`,ref:x,style:{overflow:`hidden`,position:`relative`}},[(l(),n(`div`,{class:`full-width`,key:c(t).player.nowPlayingItem?.id},[i(`div`,{class:m([`metadata-container`,{"no-artwork":e.noArtwork}])},[e.noArtwork?o(``,!0):(l(),n(`div`,I,[i(`div`,{class:m([`LCDArtwork q-ml-sm q-mr-md`,{"no-artwork-transition":c(v).appMode==`immersive`}]),onClick:f[0]||=(...e)=>c(S)&&c(S)(...e)},[ne((l(),a(E,{classes:`rounded-sm outline`,loading:`eager`,key:c(t).nowPlayingArtwork?.url,artwork:c(t).nowPlayingArtwork,"desired-height":296,"desired-width":296},null,8,[`artwork`])),[[re]])],2),g.value?(l(),a(y,{key:0,"fit-content":``},{default:p(()=>[i(`div`,L,[(l(),a(E,{classes:`rounded-sm outline`,loading:`eager`,key:c(t).nowPlayingArtwork?.url+`-big`,artwork:c(t).nowPlayingArtwork,"desired-height":296,"desired-width":296},null,8,[`artwork`]))])]),_:1})):o(``,!0)])),i(`div`,R,[i(`div`,z,[h(Ee)])]),e.noArtwork?(l(),n(`div`,B,[h(D,{class:`bg-transparent`,onClick:c(S)},null,8,[`onClick`])])):o(``,!0)],2)])),c(T)&&c(d).components.MojaveLayouts.ShowQuickActions?(l(),n(`div`,{class:`player-metadata__actions`,key:`actions-${c(t).player.nowPlayingId??c(T)?.id??`d`}`},[h(Fe)])):o(``,!0)],512),i(`div`,V,[i(`div`,H,[i(`div`,U,[h(Re)])]),i(`div`,W,[h(Te)])]),i(`div`,G,[c(ye)()?(l(),a(F,{key:0})):(l(),n(ee,{key:1},[h(Se,{class:`q-mr-sm`}),i(`div`,K,[h(we)])],64)),u(r.$slots,`end_before`,{},void 0,!0),c(t).player.playerType==`podcast`||c(ce)(`audio.allowPlaybackRateChangeEverywhere`)?(l(),a(Ie,{key:2})):o(``,!0),h(Pe),h(De),u(r.$slots,`end_after`,{},void 0,!0)]),i(`div`,q,[i(`amp-playback-controls-play`,{theme:c(_).dark.isActive?`dark`:`light`},null,8,J),i(`amp-playback-controls-item-skip`,{theme:c(_).dark.isActive?`dark`:`light`},null,8,Y)])],4)):c(v).bootRevealed?(l(),n(`div`,X,[h(ae,{height:`98px`,square:``,width:`100%`})])):o(``,!0)]),_:3},8,[`class`])]),_:3})}}})})),Ke=e((()=>{})),qe=t({default:()=>$}),$,Je=e((()=>{Q(),Q(),Ke(),S(),$=x(Z,[[`__scopeId`,`data-v-36aaf621`]])}));export{qe as n,Je as r,$ as t};