import{r as t,h as i,H as s}from"./p-811c9fd4.js";import{f as e}from"./p-f021dfd0.js";import{c as h}from"./p-bd0aac21.js";import{w as r}from"./p-f3727652.js";import{f as o}from"./p-5ff08183.js";const m=class{constructor(i){t(this,i),this.currentTime=0,this.i18n={},this.alwaysShowHours=!1,r(this,["currentTime","i18n"])}render(){return i("vime-time",{label:this.i18n.currentTime,seconds:this.currentTime,alwaysShowHours:this.alwaysShowHours})}},n=class{constructor(i){t(this,i),this.duration=-1,this.i18n={},this.alwaysShowHours=!1,r(this,["duration","i18n"])}render(){return i("vime-time",{label:this.i18n.duration,seconds:Math.max(0,this.duration),alwaysShowHours:this.alwaysShowHours})}},a=class{constructor(i){t(this,i),this.lowVolumeIcon="#vime-volume-low",this.highVolumeIcon="#vime-volume-high",this.mutedIcon="#vime-volume-mute",this.tooltipPosition="top",this.hideTooltip=!1,this.keys="m",this.volume=50,this.muted=!1,this.i18n={},r(this,["muted","volume","i18n"])}connectedCallback(){this.dispatch=h(this)}getIcon(){return this.muted||0===this.volume?this.mutedIcon:this.volume<50?this.lowVolumeIcon:this.highVolumeIcon}onClick(){this.dispatch("muted",!this.muted)}render(){const t=this.muted?this.i18n.unmute:this.i18n.mute,s=e(this.keys)?t:`${t} (${this.keys})`;return i("vime-control",{label:this.i18n.mute,pressed:this.muted,keys:this.keys,onClick:this.onClick.bind(this)},i("vime-icon",{href:this.getIcon()}),i("vime-tooltip",{hidden:this.hideTooltip,position:this.tooltipPosition,direction:this.tooltipDirection},s))}},c=class{constructor(i){t(this,i),this.seconds=0,this.alwaysShowHours=!1}render(){return i(s,{"aria-label":this.label},o(Math.max(0,this.seconds),this.alwaysShowHours))}};c.style="vime-time{display:flex;align-items:center;color:var(--vm-time-color);font-size:var(--vm-time-font-size);font-weight:var(--vm-time-font-weight)}";export{m as vime_current_time,n as vime_end_time,a as vime_mute_control,c as vime_time}