import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{Cr as t,Fn as n,Fr as r,Mn as i,Nn as a,Vn as o,ar as s,dn as c,jn as l,zn as u}from"./vendor-Dnfj1twE.js";import{En as d,Mn as f,_ as p,ia as m,oo as h,ra as g,so as _,y as v}from"./ws-Dl8XkIy4.js";import{_ as y,v as b}from"./AMPlaybackActions-Vw0z-V-k.js";import{n as x,t as S}from"./LiveBadge-C_5qQWQd.js";var C,w,T,E,D,O=e((()=>{c(),p(),g(),f(),b(),x(),C={key:0,class:`am-progress-widget`},w={class:`am-currenttime`},T={class:`am-progress`},E=[`title`],D=o({__name:`AMProgressWidget`,setup(e){let o=l(()=>!!(c.player.nowPlayingItem?.type===`radioStation`||c.isLiveRadio)),c=m(),{displaySeconds:f,duration:p,remainingSeconds:h}=v(),g=r(!0),_=l(()=>f.value<=0?`0:00`:d(f.value)),b=l(()=>{let e=p.value;return e<=0?`0:00`:g.value?`-`+d(h.value):d(e)}),x=l(()=>{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,r)=>o.value?(s(),a(S,{key:1})):(s(),n(`div`,C,[i(`div`,w,t(_.value),1),i(`div`,T,[u(y)]),i(`div`,{class:`am-duration clickable`,title:x.value,onClick:D},t(b.value),9,E)]))}})})),k=e((()=>{})),A,j=e((()=>{O(),O(),k(),_(),A=h(D,[[`__scopeId`,`data-v-a1fd3316`]])}));export{j as n,A as t};