import{h}from"@stencil/core";export class PrestoTimestamp{handleClick(t){t.preventDefault();const e=document.body.querySelector("presto-player");e&&e.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(t){let e,r=t.split(":");return r.length>1&&(e=60*parseInt(r[0])),parseInt(r[1])+parseInt(e)}render(){return h("a",{key:"643d2582416f86c927486f331bbb21fa631fc59b",href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},h("slot",{key:"6367df80d3a83fdc2acf7d1b7af9eca0525495f5"},this.time))}static get is(){return"presto-timestamp"}static get originalStyleUrls(){return{$:["presto-timestamp.scss"]}}static get styleUrls(){return{$:["presto-timestamp.css"]}}static get properties(){return{time:{type:"string",attribute:"time",mutable:!1,complexType:{original:"string",resolved:"string",references:{}},required:!1,optional:!1,docs:{tags:[],text:""},getter:!1,setter:!1,reflect:!1}}}}