PageSourceSearch

https://www.piaget.com/pia/dist/assets/media-player-COK1Tv1Y.js

js piaget.com collected 2026-10-02 04:07:30 UTC 3,859 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`103.33.4`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cb0c86b0-30f7-4821-b90d-05eae7c06557`,e._sentryDebugIdIdentifier=`sentry-dbid-cb0c86b0-30f7-4821-b90d-05eae7c06557`)}catch{}})();import{lazySelector as e}from"./dom-BtxA5uk7.js";import{isTouchDevice as t}from"./media-D4ZxYsw-.js";import{audioController as n}from"./audio-controller-vhK9eAhk.js";var r=class{element;mediaElement;audioController=n;handleVolumeListener;volumeElement;volumeToggle;volumePopup;updateVolumeListener;toggleVolumeListener;openVolumePopupListener;closeVolumePopupListener;focusInVolumeListener;focusOutVolumeListener;constructor(t,n){this.element=e(t),this.mediaElement=this.element.querySelector(n),this.handleVolumeListener=this.handleVolume.bind(this),this.updateVolumeListener=this.updateVolume.bind(this),this.toggleVolumeListener=this.toggleVolume.bind(this),this.openVolumePopupListener=this.openVolumePopup.bind(this),this.closeVolumePopupListener=this.closeVolumePopup.bind(this),this.focusInVolumeListener=this.focusInVolume.bind(this),this.focusOutVolumeListener=this.focusOutVolume.bind(this)}handleVolume(){if(this.volumeElement=this.element.querySelector(`.plyr__volume`),this.volumeElement&&(this.volumeToggle=this.volumeElement.querySelector(`[aria-haspopup]`),this.volumeToggle)){let e=this.volumeToggle.getAttribute(`aria-controls`);e&&(this.volumePopup=this.element.querySelector(`#${e}`)),this.mediaElement.addEventListener(`volumechange`,this.updateVolumeListener),this.volumeToggle.addEventListener(`click`,this.toggleVolumeListener),t()||(this.volumeElement.addEventListener(`mouseover`,this.openVolumePopupListener),this.volumeElement.addEventListener(`mouseout`,this.closeVolumePopupListener),this.volumeElement.addEventListener(`focusin`,this.focusInVolumeListener),this.volumeElement.addEventListener(`focusout`,this.focusOutVolumeListener)),this.updateVolume()}}updateVolume(){this.mediaElement.volume===0||this.mediaElement.muted?this.volumeElement?.classList.add(`plyr__volume--muted`):this.volumeElement?.classList.remove(`plyr__volume--muted`)}toggleVolume(){this.mediaElement.muted=!this.mediaElement.muted,this.updateVolume()}openVolumePopup(){this.volumePopup&&!this.volumePopup.classList.contains(`plyr--is-active`)&&(this.volumePopup.classList.add(`plyr--is-active`),this.volumeToggle?.setAttribute(`aria-expanded`,`true`),this.mediaElement.addEventListener(`controlshidden`,this.closeVolumePopupListener))}closeVolumePopup(){this.volumePopup&&this.volumePopup.classList.contains(`plyr--is-active`)&&(this.volumePopup.classList.remove(`plyr--is-active`),this.volumeToggle?.setAttribute(`aria-expanded`,`false`),this.mediaElement.removeEventListener(`controlshidden`,this.closeVolumePopupListener))}focusInVolume(){this.openVolumePopup()}focusOutVolume(){requestAnimationFrame(()=>{this.volumeElement&&!this.volumeElement.contains(document.activeElement)&&this.closeVolumePopup()})}getPlyrInstance(){return this.mediaElement.plyr}get muted(){return this.mediaElement.muted}get volume(){return this.mediaElement.volume}destroy(){this.getPlyrInstance()?.destroy?.(),this.volumeToggle&&(this.mediaElement.removeEventListener(`volumechange`,this.updateVolumeListener),this.volumeToggle.removeEventListener(`click`,this.toggleVolumeListener),t()||(this.volumeElement?.removeEventListener(`mouseover`,this.openVolumePopupListener),this.volumeElement?.removeEventListener(`mouseout`,this.closeVolumePopupListener),this.volumeElement?.removeEventListener(`focusin`,this.focusInVolumeListener),this.volumeElement?.removeEventListener(`focusout`,this.focusOutVolumeListener)))}};export{r as MediaPlayer};
2//# sourceMappingURL=media-player-COK1Tv1Y.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.