PageSourceSearch

https://www.skiheavenly.com/dist/sharedUI.globalModal.bundle.fb418b7e6c1116cc8097.js

js skiheavenly.com collected 2026-10-02 05:23:34 UTC 5,407 bytes, 1 lines download raw bytes

1(self.webpackChunkDigital_Freeride_Web=self.webpackChunkDigital_Freeride_Web||[]).push([[6640],{34091:function(l,o,e){var a,n;a=[e(98992),e(54520),e(72577)],void 0===(n=function(i,t,d){"use strict";a=[e(53182),e(41669),e(22224),e(40961)],void 0===(n=function(l,o,e,a){var n,i={container:o(".global_modal__container")},t=function(l){l=l.trim();var a=new RegExp("^"+l+"[ ]+"),n=new RegExp("[ ]+"+l+"$");return function(i){var t=o(this).attr("data-track");if(t===l)return!0;if(t.match(a))return!0;if(t.match(n))return!0;var d=t.split(" ");return e.contains(d,l)}},d=t("shown"),s=t("closed"),r=!1,c=!0,g=!0,b={lastFocused:null,closeModal:function(o){c&&l.$el.globalModal.hasClass("global_modal--visible")&&(r=!0,l.$el.globalModal.removeAttr("tabindex").removeAttr("aria-describedby").removeAttr("aria-labelledby").blur(),l.$el.body.removeClass("body--modal_scroll_disabled"),l.$el.globalModal.removeClass("global_modal--visible"),l.$el.globalModal.removeClass("global_modal__overlay--visible"),l.$el.globalModal.removeClass("global_modal--noVisibilityChange"),l.$el.globalModal.removeClass("global_modal--challengeModal"),i.container.removeClass("global_modal__container--p
1osition_top"),b.setFocus(b.lastFocused),"string"==typeof n&&""!==n&&(l.$el.window.trigger(n),n=null),l.$el.window.trigger("ApplicationDOM_Changed"),b.fireClosedEvent(o),l.$el.globalModal.removeClass("global_modal--passes"),l.$el.window.trigger("global-modal-closed"))},openModalJSX:function(o,e){i.content.children().length>0&&(i.content.replaceWith(i.content.clone().empty()),i.content=l.$el.globalModal.find(".global_modal__content")),a.render(o,i.content[0],()=>b.postRender(e))},openModal:function(l,o){b.appendTemplate(l),b.postRender(o)},postRender(e){b.repositionContainer(),o("#modalDescription").length&&l.$el.globalModal.attr("aria-describedby","modalDescription"),o("#modalTitle").length&&l.$el.globalModal.attr("aria-labelledby","modalTitle"),c?l.$el.globalModal.removeClass("global_modal--noclose"):l.$el.globalModal.addClass("global_modal--noclose"),g?l.$el.globalModal.removeClass("global_modal--noVisibilityChange"):l.$el.globalModal.addClass("global_modal--noVisibilityChange"),i.overlay.addClass("global_modal__overlay--visible"),l.$el.globalModal.addClass("global_modal--visible"),l.$el.body.addClass("body--modal_scroll_disabled"),b.lastFocused=document.activeElement,b.setFocus(l.$el.globalModal.attr("tabindex",-1)),i.content.scrollTop(0),l.$el.window.trigger("ApplicationDOM_Changed"),l.$el.globalModal.find('[data-track*="shown"]').filter(d).trigger("shown"),"string"==typeof e&&""!==e&&l.$el.window.trigger(e)},setFocus:function(l){null!=l&&setTimeout(function(){l.focus()},100)},appendTemplate:function(l){i.content.html(l)},repositionContainer:function(){if(!r){var o=i.container.outerHeight(!0),e=i.container.position(),a=l.$el.window.height();o+e.top>
1=a||0===e.top?i.container.addClass("global_modal__container--position_top"):i.container.removeClass("global_modal__container--position_top")}},fireClosedEvent:e.debounce(function(o){(void 0===o||void 0===o.isTracked||o.isTracked)&&l.$el.globalModal.find('[data-track*="closed"]').filter(s).trigger("closed",o)},100,!0)},p={init:function(){p.setSelectors(),p.bindEvents(),p.setWatches()},setSelectors:function(){i.close=l.$el.globalModal.find(".global_modal__close"),i.overlay=l.$el.globalModal.find(".global_modal__overlay"),i.content=l.$el.globalModal.find(".global_modal__content")},bindEvents:function(){i.close.on("click",function(l){l.preventDefault(),b.closeModal({reason:"closeButton"})}),i.overlay.on("click",function(l){l.preventDefault(),b.closeModal({reason:"overlayClick"})}),l.$el.globalModal.keyup(function(l){27==l.which&&b.closeModal({reason:"escapeKey"})}),l.$el.window.on("visibilitychange",function(){"hidden"!==document.visibilityState||l.$el.globalModal.hasClass("global_modal--noVisibilityChange")||b.closeModal()})},setWatches:function(){l.$el.window.on("global-modal-open",function(l,o,e,a){void 0!==o&&(c=!0,n=a,b.openModal(o,e))}),l.$el.window.on("global-modal-open-jsx",function(o,e,a){void 0!==e&&(c=!0,b.openModalJSX(e),a&&a.className&&l.$el.globalModal.addClass(a.className),a&&a.dataTestid&&l.$el.globalModal.attr("data-testid",a.dataTestid))}),l.$el.window.on("global-modal-open--passes",function(o,e,a,n){l.$el.window.trigger("global-modal-open",e,a,n),l.$el.globalModal.addClass("global_modal--passes")}),l.$el.window.on("global-modal-open-jsx--passes",function(o,e,a,n){l.$el.window.trigger("global-modal-open-jsx",e,a,n),l.$el.globalModal.addClass("global_modal--passes")}),l.$el.window.on("global-modal-open-noclose",function(l,o,e,a){void 0!==o&&(c=!1,n=a,b.openModal(o,e))}),l.$el.window.on("global-modal-open-novisibilitychange",function(o,e,a,i,t){void 0!==e&&(c=!0,g=!1,n=i,t&&t.className&&l.$el.globalModal.addClass(t.className),b.openModal(e,a))}),l.$el.window.on("global-modal-close",function(l,o){b.closeModal(o)}),l.$el.window.on("global-modal-close-force",function(l,o){c=!0,b.closeModal(o)});var o=e.debounce(function(){b.repositionContainer()},100);l.$el.window.on("resize orientationchange ApplicationDOM_Changed",o),l.$el.window.on("global-modal-reposition",function(l){b.repositionContainer()}),l.$el.window.on("global-modal-closed",()=>{o.cancel(),r=!1})}};o(()=>p.init())}.apply(o,a))||(l.exports=n)}.apply(o,a))||(l.exports=n)}},function(l){l.O(0,[4121,7547,3057],function(){return l(34091)}),l.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.