1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6100],{6100:(e,t,i)=>{i.r(t),i.d(t,{default:()=>n});var o=i(473),s=i(5645);const n=class Video{constructor(e){this.element=e,this.iframe=e.querySelector("iframe"),this.iframe&&(this.src=this.iframe.dataset.src,this.src&&(this.isYoutubeVideo=(0,s.mC)(this.src),this.init()))}init(){o.Z.cmpLoaded.then((()=>{if("1"===o.Z.getCookie("social"))if(this.isYoutubeVideo){const e=(0,s.P9)(this.src);this.iframe.src=`https://www.youtube-nocookie.com/embed/${e}`}else this.iframe.src=this.src;else o.Z.hideContent(this.iframe)}))}}},5645:(e,t,i)=>{i.d(t,{P9:()=>getYoutubeVideoId,ZP:()=>o,mC:()=>isYoutubeVideo});class YoutubeVideo{constructor(e){this.options=e,this.playerOptions={videoId:this.options.videoId,host:"https://www.youtube-nocookie.com",playerVars:{modestbranding:1,showinfo:0,rel:0,origin:window.location.href,autoplay:this.options.autoPlay,playsinline:1}},this.init()}init(){if(!window.YT)return this.checkAPIReady(),void YoutubeVideo.loadAPI();this.checkAPIReady()}static loadAPI(){const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}initPlayer(){window.youtubeIsReady=!0,this.videoInterval&&clearInterval(this.videoInterval),this.player=new window.YT.Player(this.options.player,this.playerOptions)}checkAPIReady(){window.YT&&(window.YT.ready&&window.YT.ready((()=>{window.youtubeIsReady=!0})),window.YT.loaded&&(window.youtubeIsReady=!0)),window.onYouTubeIframeAPIReady=()=>this.initPlayer(),this.videoInterval=setInterval((()=>{window.youtubeIsReady&&(this.initPlayer(),this.videoInterval&&clearInterval(this.videoInterval))}),200)}}const o=YoutubeVideo,isYoutubeVideo=e=>new URL(e).hostname.includes("youtu"),getYoutubeVideoId=e=>{const t=e.match(/(?:youtu\.be\/|(?:youtube|youtube-nocookie)\.com(?:\/embed\/|\/shorts\/|\/v\/|\/watch\?v=|\/user\/\S+|\/ytscreeningroom\?v=|\/sandalsResorts#\w\/\w\/.*\/))([^\/&]{10,12})/);return t?t[1]:void 0}}}]);
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.