| Server IP : 193.146.211.90 / Your IP : 10.85.6.55 Web Server : Apache System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 User : 1001 ( 1001) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/presto-player/dist/components/components/ |
Upload File : |
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";const prestoTimestampCss=":host{display:inline}",PrestoTimestampStyle0=prestoTimestampCss,PrestoTimestamp$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.time=void 0}handleClick(e){e.preventDefault();const t=document.body.querySelector("presto-player");t&&t.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(e){let t,s=e.split(":");return s.length>1&&(t=60*parseInt(s[0])),parseInt(s[1])+parseInt(t)}render(){return h("a",{key:"643d2582416f86c927486f331bbb21fa631fc59b",href:"#",class:"presto-timestamp",onClick:e=>this.handleClick(e)},h("slot",{key:"6367df80d3a83fdc2acf7d1b7af9eca0525495f5"},this.time))}static get style(){return PrestoTimestampStyle0}},[4,"presto-timestamp",{time:[1]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["presto-timestamp"].forEach((e=>{"presto-timestamp"===e&&(customElements.get(e)||customElements.define(e,PrestoTimestamp$1))}))}const PrestoTimestamp=PrestoTimestamp$1,defineCustomElement=defineCustomElement$1;export{PrestoTimestamp,defineCustomElement};