import{r as registerInstance,h}from"./index-2bbac65f.js";const prestoTimestampCss=":host{display:inline}",PrestoTimestamp=class{constructor(t){registerInstance(this,t),this.time=void 0}handleClick(t){t.preventDefault();const e=document.body.querySelector("presto-player");e&&e.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(t){let e,s=t.split(":");return s.length>1&&(e=60*parseInt(s[0])),parseInt(s[1])+parseInt(e)}render(){return h("a",{href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},h("slot",null,this.time))}};PrestoTimestamp.style=prestoTimestampCss;export{PrestoTimestamp as presto_timestamp};