import{r as t,h as s}from"./p-43f79dfb.js";const e=":host{display:inline}",r=e,n=class{constructor(e){t(this,e),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 s("a",{key:"643d2582416f86c927486f331bbb21fa631fc59b",href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},s("slot",{key:"6367df80d3a83fdc2acf7d1b7af9eca0525495f5"},this.time))}};n.style=r;export{n as presto_timestamp};