import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{Ar as t,Dn as n,Fn as r,Ln as i,On as a,er as o,jn as s,kn as c,sn as l,vr as u}from"./vendor-Dcerr41Y.js";import{H as d,St as f,Y as p,di as m,ui as h,xt as g}from"./ws-DjAvcWfg.js";import{_,b as v,v as y,y as b}from"./AMPlaybackActions-BhoorvYm.js";import{n as x,t as S}from"./LiveBadge-93d6EMsw.js";var C,w,T,E,D,O=e((()=>{l(),b(),g(),p(),y(),x(),C={key:0,class:`am-progress-widget`},w={class:`am-currenttime`},T={class:`am-progress`},E=[`title`],D=i({__name:`AMProgressWidget`,setup(e){let i=n(()=>!!(l.player.nowPlayingItem?.type===`radioStation`||l.isLiveRadio)),l=f(),{displaySeconds:p,duration:m,remainingSeconds:h}=v(),g=t(!0),y=n(()=>p.value<=0?`0:00`:d(p.value)),b=n(()=>{let e=m.value;return e<=0?`0:00`:g.value?`-`+d(h.value):d(e)}),x=n(()=>{let e=h.value;if(!(e<=0))return`Ends at ${new Date(Date.now()+e*1e3).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`});function D(){g.value=!g.value}return(e,t)=>i.value?(o(),c(S,{key:1})):(o(),s(`div`,C,[a(`div`,w,u(y.value),1),a(`div`,T,[r(_)]),a(`div`,{class:`am-duration clickable`,title:x.value,onClick:D},u(b.value),9,E)]))}})})),k=e((()=>{})),A,j=e((()=>{O(),O(),k(),m(),A=h(D,[[`__scopeId`,`data-v-a1fd3316`]])}));export{j as n,A as t};