1"use strict";(("undefined"!=typeof self?self:this).webpackChunkthundr=("undefined"!=typeof self?self:this).webpackChunkthundr||[]).push([[350],{2959:(e,t,a)=>{a.r(t),a.d(t,{default:()=>p});var r=a(5703);const i="trailerOverlay__wrapper__Zyq6X",l="trailerOverlay__visible__rtQYQ",o="trailerOverlay__closeButton__EjUap",s="trailerOverlay__player__tDaXY",n="trailerOverlay__annotation__TnTkr";var d=a(3599),h=a(1163);h.Z.on("TOGGLE_TRAILER_OVERLAY",(e=>{h.Z.get().trailerOverlay||h.Z.get().set({trailerOverlay:{}}),"boolean"!=typeof e&&(e=!h.Z.get().trailerOverlay.overlayOpen),h.Z.get().trailerOverlay.set({overlayOpen:e}),e&&h.Z.get().trailerOverlay.set({overlayTriggered:!0}),h.Z.emit(e?"ENABLE_SCROLLING_LOCK":"DISABLE_SCROLLING_LOCK"),e?h.Z.emit("SET_HEADER_ACTION",{icon:"close",action:()=>h.Z.emit("TOGGLE_TRAILER_OVERLAY",!1),tag:"closeTrailerOverlay"}):h.Z.emit("REMOVE_HEADER_ACTIONS","closeTrailerOverlay")}));var v=a(7867),O=a(6442),y=a(6715),c=a(8145);class p extends r.wA{constructor(e){super(e),this.state={closed:!1,videoLoaded:!1},this.handleLoaded=this.handleLoaded.bind(this),this.toggleOverlayOpen=this.toggleOverlayOpen.bind(this),this.checkIfOverlayShouldShow=this.checkIfOverlayShouldShow.bind(this),this.overlayOpenTimer=0,this.disabled=(0,O.Z)()["no-overlay"]}componentDidMount(){this.checkIfOverlayShouldShow(null,!0),h.Z.on("SET_ACTIVE_PAGE",this.checkIfOverlayShouldShow)}componentWillUnmount(){window.clearTimeout(this.timeout),window.clearInterval(this.interval),h.Z.off("SET_ACTIVE_PAGE",this.checkIfOverlayShouldShow),this.toggleOverlayOpen(!1)}checkIfOverlayShouldShow(e,t){window.clearTimeout(this.timeout),window.clearInterval(this.interval);const a=(0,v.RK)(this.props,"store.trailerOverlay.overlayTriggered",!1),r=(0,v.RK)(this.props,"data.disableForGoogleBot",!1),i=/Googlebot/i.test(navigator.userAgent);if(a||r&&i)return;e||(e=(0,v.RK)(this.props,"store.activePage"));let l=(0,v.RK)(this.props,"data.inclusions","");l&&(l=l.split(",").map((e=>e.trim())));const o=this.props.manual&&t;if((0===l.length||l.indexOf(e)>-1)&&!this.disabled&&!o){const e=this.props.data.delay||0;this.timeout=window.setTimeout((()=>{this.toggleOverlayOpen(!0),this.interval=window.setInterval((()=>{this.overlayOpenTimer+=1}),1e3)}),1e3*e)}}toggleOverlayOpen(e,t){if(e||"youtubeCookieSettings"!==t?.target?.id){if(!e){window.clearInterval(this.interval);let e=10*Math.floor(this.overlayOpenTimer/10);this.overlayOpenTimer>100&&(e="100+"),h.Z.emit("POWSTER_GA_EVENT_TRACK","trailer-bounce","trailer",e)}(!t?.target||t.target.className?.includes("burgerMenu")||t.target.className.includes(i))&&h.Z.emit("TOGGLE_TRAILER_OVERLAY",e)}}handleLoaded(){this.setState({videoLoaded:!0})}render(){const{videoLoaded:e}=this.state,{data:t,store:a}=this.props,h=!this.disabled&&(0,v.RK)(a,"trailerOverlay.overlayOpen",!1),O=(0,v.RK)(a,"appData.styling.fontVariables.galleryAnnotations",{}),{video:p,annotation:u}=t;let _=Object.values(p).find((e=>e&&"object"==typeof e))||p;return(0,r.h)("div",{class:(0,v.WM)(i,e&&h&&l),onClick:e=>this.toggleOverlayOpen(!1,e)},(0,r.h)(d.Z,{type:h?"close":"burger",trailerOverlay:!0,extraClass:o}),h&&(0,r.h)(y.Z,{ref:e=>this.player=e,extraClass:s,activeVideo:_,onEnded:()=>this.toggleOverlayOpen(!1),onLoaded:this.handleLoaded,hiddenPlaylist:!0,overrideStyles:!0,isTrailerOverlay:!0}),u&&(0,r.h)("div",{style:O.galleryAnnotations,class:n},(0,r.h)(c.Z,{markdown:!0,content:u})))}}}}]); 2//# sourceMappingURL=trailerOverlay.bolt.js.map?v=0db5017b1fa65cb344d0
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.