PageSourceSearch

https://www.piaget.com/pia/dist/assets/background-video-ClqBoeER.js

js piaget.com collected 2026-10-02 04:03:20 UTC 2,653 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]=`4b41b69c-5577-4d35-9b02-03f6331b62bb`,e._sentryDebugIdIdentifier=`sentry-dbid-4b41b69c-5577-4d35-9b02-03f6331b62bb`)}catch{}})();import{mergeDeep as e}from"./object-B1REsa-W.js";import{VideoPlayer as t}from"./video-player-CPCC7Ti6.js";import"./index-9B0cnxH0.js";var n=class extends t{controls;handlePlayPause;handleMuteToggle;constructor(t,n={}){let r=typeof n.embed==`string`?n.embed.trim():``,i=r.includes(`youtube.com`)||r.includes(`youtu.be`);super(t,e({init:!1,plyr:!1,classes:{controls:`.phxsg-background-video__controls`}},n,i?{autoplay:!0,muted:!0,plyr:!0,plyrOptions:{autoplay:!0,muted:!0,controls:[],youtube:{playsinline:1,rel:0,modestbranding:1,controls:0,fs:0,disablekb:1,mute:1}}}:{}));let a=this.options.classes?.controls||`.phxsg-background-video__controls`;this.controls=this.element.querySelector(a)||null,this.handlePlayPause=this.handlePlayPauseMethod.bind(this),this.handleMuteToggle=this.handleMuteToggleMethod.bind(this),this.init()}handlePlayPauseMethod(e){let t=e.target.closest(`[data-background-video-control="play"]`);!t||!this.controls||!this.controls.contains(t)||this.toggle()}handleMuteToggleMethod(e){let t=e.target.closest(`[data-background-video-control="mute"]`);!t||!this.controls||!this.controls.contains(t)||this.toggleMute()}toggleMute(){let e=this.getPlyrInstance();e?(e.muted=!e.muted,this.updateMutedState(e.muted)):this.mediaElement instanceof HTMLVideoElement&&(this.mediaElement.muted=!this.mediaElement.muted,this.updateMutedState(this.mediaElement.muted))}updateMutedState(e){e?this.element.classList.add(`phxsg-is-muted`):this.element.classList.remove(`phxsg-is-muted`)}initMutedState(){let e=this.getPlyrInstance(),t=!0;e?t=e.muted??!0:this.mediaElement instanceof HTMLVideoElement&&(t=this.mediaElement.muted??!0),this.updateMutedState(t)}init(){!this.handlePlayPause||!this.handleMuteToggle||(this.element.addEventListener(`click`,this.handlePlayPause),this.element.addEventListener(`click`,this.handleMuteToggle),super.init(),this.initMutedState())}destroy(){this.handlePlayPause&&this.element.removeEventListener(`click`,this.handlePlayPause),this.handleMuteToggle&&this.element.removeEventListener(`click`,this.handleMuteToggle),super.destroy()}onEnded(e){super.onEnded(e);let t=this.getPlyrInstance();typeof t?.restart==`function`&&t.restart(),this.ended=!1}};export{n as BackgroundVideo};
2//# sourceMappingURL=background-video-ClqBoeER.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.