PageSourceSearch

https://www.whistlerblackcomb.com/dist/layouts.hero-full.bundle.bb04563f4cc498b8d667.js

js whistlerblackcomb.com collected 2026-09-24 08:56:32 UTC 8,605 bytes, 1 lines download raw bytes

1(self.webpackChunkDigital_Freeride_Web=self.webpackChunkDigital_Freeride_Web||[]).push([[6496],{31959:function(e,o,n){var i,t;i=[n(98992),n(72577)],void 0===(t=function(a,s){"use strict";i=[n(53182),n(41669),n(22224),n(6479),n(20417)],void 0===(t=function(e,o,i,t,a){var s,r,d,c,u,l,p,v,m,f,_={init:function(){k(),_.checkClipPathSupport(),_.initializeResponsiveImages()},checkClipPathSupport:function(){a.supportClipPath(o(".hero"))},initializeResponsiveImages:function(){o.scene7.responsive()}},h={bitrate:null,droppedFrames:null,fps:23,startupTime:null},y={update:function(e,o){h[e]!==o&&(h[e]=o,g.video.trigger("ANPL_QoSChange",h))},bindEvents:function(){g.video.on("timeupdate",function(e){if(void 0!==w.video.webkitDroppedFrameCount){var o=w.video.webkitDroppedFrameCount;o!==C&&(C=o,y.update("droppedFrames",C))}}),g.video.one("canplay",function(){y.reportStartupTime()}),r&&y.bindDashEvents()},bindDashEvents:function(){r.on(s.MediaPlayer.events.QUALITY_CHANGE_RENDERED,function(e){var o=r.getBitrateInfoListFor("video"),n=e.newQuality;y.isSet(o)&&y.isSet(o[n])&&y.update("bitrate",o[n].bitrate)}),r.on(s.MediaPlayer.events.PLAYBACK_ERROR,function(e){g.video.trigger("videoError",{player:"dash.js",data:e,type:e.error,message:"PLAYBACK_ERROR occurred"})})},reportStartupTime:function(){y.update("startupTime",moment().diff(m,"milliseconds"))},isSet:function(e){return null!=e&&""!==e}},g={},C=0,w={autoplay:!0,init:function(){w.cacheJQueryElements(),w.setScene7Config(),w.setAssetUrls(),w.updateHeroImageSrc(v),w.modifyCSSClasses(),w.hideYoutubeVideo(),w.addAnalyticsAttributes(),w.checkVideoSupport()},cacheJQueryElements:function(){g.window=e.$el.window,g.document=o(document),g.body=e.$el.body,g.hero=o(".hero,.hero_with_promotion,.hero__epic"),g.mute=o('<a href="javascript:;" class="hero__background__video_sound muted"><span class="sr-only">Toggle Sound</span><svg viewBox="0 0 48 43"><use xlink:href="#mute" class="mute" /><use xlink:href="#unmute" class="unmute" /></svg></a>'),g.imageContainer=g.hero.find(".hero__background__image, .hero_with_promotion__background__image"),g.heroImage=g.imageContainer.find("img"),g.videoContainer=o('<div class="hero__background__video"></div>')},addAnalyticsAttributes:function(){g.hero.attr("data-component-dab-id","DAB-20")},modifyCSSClasses:function(){g.hero.addClass("DAB-20"),g.hero.hasClass("hero--no_image")&&(g.hero.removeClass("hero--no_image").addClass("hero--image_above"),g.hero.find(".hero__content").removeClass("text-center"))},setScene7Config:function(){o.scene7.config(e.scene7)},setAssetUrls:function(){l="/DAB/DAB-20/"+f.name,v=o.cloudinary.video_thumbnail_url(l,{start_offset:0}),p=o.cloudinary.video_thumbnail_url(l,{start_offset:f.timestamp})},checkVideoSupport:function(){d=t.video.hls&&""!==t.video.hls,c=!!window.MediaSource,d||!c?w.createVideo():n.e(9128).then(function(){var e=[n(19128)];(function(e){s=e,w.createVideo()}).apply(null,e)}).catch(n.oe)},updateHeroImageSrc:function(e){g.heroImage.data("src",e).attr("src",e)},createVideo:function(){var e=d||c?[]:["webm","mp4","ogv"];if(m=moment(),g.video=o(o.cloudinary.video(l,{autoplay:!0,transformation:f.non_vbr_transformation,muted:!0,source_types:e,poster:v})),g.video.attr({"data-component-element":"HTML5Video","data-component-video-id":encodeURI(f.name.toLowerCase()),"data-component-video-name":f.name}),w.video=g.video[0],w.video.muted=!0,d){var n=o.cloudinary.url(l,{format:"m3u8",resource_type:"video",streaming_profile:f.streaming_profile});g.video.prepend('<source src="'+n+'" type="application/x-mpegURL">')}else if(c){r=s.MediaPlayer().create();var i=o.cloudinary.url(l,{format:"mpd",resource_type:"video",streaming_profile:f.streaming_profile});r.getDebug().setLogToBrowserConsole(!1),r.initialize(w.video,i,!0),1e3===r.getInitialBitrateFor("video")&&r.setInitialBitrateFor("video",2e3)}g.imageContainer.first().before(g.videoContainer),g.video.css("background-image","url("+p+")"),g.videoContainer.append(g.video,g.mute),g.window.trigger("DigitalDataDOM_Changed"),w.bindEvents(),y.bindEvents(),w.setMuteButtonPosition()},showVideo:function(){g.hero.addClass("DAB-20--ready"),w.updateHeroImageSrc(p),w.getVideoIsInView()||w.pause()},hideYoutubeVideo:function(){o(".component_container").first().has(".youtube_video_player").hide()},bindEvents:function(){g.mute.on("click",function(){g.video.prop("muted",!g.video.prop("muted"))}),g.video.on("canplay",function(){w.showVideo(),w.setMuteButtonPosition()}),g.video.one("play",function(){g.video.attr("poster",p)}),g.video.on("volumechange",w.setMuteClass),g.video.on("pause",function(e){"hidden"
1!==document.visibilityState&&(u=w.getVideoIsInView())}),g.video.on("play",function(e,o){o?u&&e.preventDefault():u=!1}),g.document.on("visibilitychange",function(){"hidden"===document.visibilityState?w.pause():w.getVideoIsInView()&&w.play()}),g.video.on("ended",w.onEnd),g.window.on("scroll",w.onScroll)},onEnd:function(){w.stopped(),g.hero.removeClass("DAB-20--ready")},setMuteClass:function(){w.video.muted?g.mute.addClass("muted"):g.mute.removeClass("muted")},setMuteButtonPosition:function(){g.window.scrollTop()+g.window.height()<=g.video.outerHeight()+g.video.offset().top?g.mute.addClass("sticky"):g.mute.removeClass("sticky")},onScroll:i.throttle(function(){w.setMuteButtonPosition(),w.autoplay&&!u&&(w.getVideoIsInView()?w.play():w.pause())},100),play:function(){g.video.trigger("play",!0)},pause:function(){g.video.trigger("pause")},stopped:function(){w.autoplay=!1},getVideoIsInView:function(){return g.window.scrollTop()<=g.video.offset().top+g.video.outerHeight()-e.$el.mainNav.outerHeight(!0)},supportsVideoAutoplay:function(e){var o,n;(n=document.createElement("video")).paused=!0,o="play"in n&&n.play(),e(!n.paused||"Promise"in window&&o instanceof window.Promise)}},b=!1,k=function(){!0===b&&w.supportsVideoAutoplay(function(e){e&&w.init()})},I={set_DAB_20:function(e){if(b=!!e){var o,n,t=window.location.pathname.toLowerCase();n="/"===t?function(e){return t===e.path}:function(e){var o=e.path?e.path.toLowerCase():null;return-1!==t.indexOf(o)},o=i.find(e.videos,n),(b=!!o)&&(f={name:o.name,timestamp:o.timestamp,non_vbr_transformation:e.non_vbr_transformation||"static_bitrate_720_2m",streaming_profile:e.streaming_profile||"dab_20"})}}};return o(()=>_.init()),{AB:I,init:_.init}}.apply(o,i))||(e.exports=t)}.apply(o,i))||(e.exports=t)},37658:function(e,o,n){var i,t;void 0===(t=function(){"use strict";i=[n(53182),n(41669),n(20417)],void 0===(t=function(e,o,n){var i={init:function(){i.checkClipPathSupport(),i.initializeResponsiveImages()},checkClipPathSupport:function(){n.supportClipPath(o(".hero_with_promotion"))},initializeResponsiveImages:function(){o.scene7.responsive()}};o(()=>i.init())}.apply(o,i))||(e.exports=t)}.apply(o,i=[]))||(e.exports=t)},25439:function(e,o,n){var i,t;i=[n(98992),n(72577)],void 0===(t=function(a,s){"use strict";i=[n(53182),n(41669)],void 0===(t=function(e,o){var n={};o(()=>(n.headerInner=o(".secondary_navigation"),n.accordion=n.headerInner.find(".secondary_navigation__accordion"),n.l1Links=n.headerInner.find(".secondary_navigation__level1_item"),n.dropdowns=n.headerInner.find(".secondary_navigation__dropdown"),n.secondaryLink=n.headerInner.find(".secondary2"),n.levelOneLinks=n.headerInner.find(".level1"),n.l1Links.on("click",function(e){var i=o(this),t=i.hasClass("focused"),a=i.find(".level1"),s=i.closest(".secondary_navigation__level1_group").find(".secondary_navigation__dropdown");n.l1Links.removeClass("focused"),n.dropdowns.removeClass("focused"),n.levelOneLinks.removeClass("secondary1--active").addClass("secondary1"),t?(i.removeClass("focused"),s.removeClass("focused"),a.removeClass("secondary1--active").addClass("secondary1")):(i.addClass("focused"),s.addClass("focused"),a.removeClass("secondary1").addClass("secondary1--active"))}),n.secondaryLink.mouseover(function(){var e=o(this);e.hasClass("accordion")||e.removeClass("secondary2").addClass("secondary2--mouseover")}).mouseout(function(){var e=o(this);e.hasClass("accordion")||e.removeClass("secondary2--mouseover").addClass("secondary2")}),o(".secondary_navigation__accordion_Level1_item").on("click",function(){o(this).removeClass("secondary1").addClass("secondary1--active"),setTimeout(function(){o(".secondary_navigation__accordion_Level1_item").each(function(e){var n=o(this);n.hasClass("collapsed")&&n.removeClass("secondary1--active").addClass("secondary1")})},50)}),void n.accordion.collapse()))}.apply(o,i))||(e.exports=t)}.apply(o,i))||(e.exports=t)}},function(e){var o=function(o){return e(o)};e.O(0,[4121,7547,3057],function(){return o(31959),o(37658),o(25439)}),e.O()}]);

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.