File "p-53d3dd5b.entry.js"

Full Path: /home/tekvhqgl/public_html/dev2024_old_skip/wp-content/plugins/presto-player/dist/components/web-components/p-53d3dd5b.entry.js
File size: 519 bytes
MIME-type: text/x-java
Charset: utf-8

import{r as t,h as s}from"./p-d7399561.js";const e=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",{href:"#",class:"presto-timestamp",onClick:t=>this.handleClick(t)},s("slot",null,this.time))}};e.style=":host{display:inline}";export{e as presto_timestamp};