| 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";import{b as isAndroidWebView}from"./util.js";const prestoVimeoCss=":host{display:block}",PrestoVimeoStyle0=prestoVimeoCss,PrestoVimeo=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.src=void 0,this.poster=void 0,this.player=void 0,this.getRef=void 0}getId(e){const s=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(e||"");return(null==s?void 0:s[5])||""}parseHash(e){const s=e.match(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*\&*h=|\/)+(?<hash>[\d,a-f]+)/);return s?s.groups.hash:null}render(){if(this.src)return isAndroidWebView()?h("div",{class:"presto-iframe-fallback-container"},h("iframe",{src:`https://player.vimeo.com/video/${this.getId(this.src)}?h=${this.parseHash(this.src)}&loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media`,allowFullScreen:!0,allowTransparency:!0,allow:"autoplay",style:{width:"100%"},class:"presto-fallback-iframe"})):h("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"vimeo","data-plyr-embed-id":this.getId(this.src),"data-plyr-embed-hash":this.parseHash(this.src)})}static get style(){return PrestoVimeoStyle0}},[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["presto-vimeo"].forEach((e=>{"presto-vimeo"===e&&(customElements.get(e)||customElements.define(e,PrestoVimeo))}))}export{PrestoVimeo as P,defineCustomElement as d};