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-6bGPahzI.js";import{Da as d,Ei as f,Oa as p,Ti as m,_ as h,_n as g,wn as _,y as v}from"./ws-BfVPV0ME.js";import{_ as y,v as b}from"./AMPlaybackActions-DE3IQYo9.js";import{n as x,t as S}from"./LiveBadge-BKryI5UK.js";var C,w,T,E,D,O=e((()=>{c(),h(),m(),_(),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=f(),{displaySeconds:d,duration:p,remainingSeconds:m}=v(),h=r(!0),_=l(()=>d.value<=0?`0:00`:g(d.value)),b=l(()=>{let e=p.value;return e<=0?`0:00`:h.value?`-`+g(m.value):g(e)}),x=l(()=>{let e=m.value;if(!(e<=0))return`Ends at ${new Date(Date.now()+e*1e3).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`});function D(){h.value=!h.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(),p(),A=d(D,[[`__scopeId`,`data-v-a1fd3316`]])}));export{j as n,A as t};