PageSourceSearch

https://www.jaguar.com/etc.clientlibs/jlr/clientlibs/clientlib-dyn…er-gallery-asset-js.131e5089bce5ec3cdc67.js

js jaguar.com collected 2026-09-24 08:55:20 UTC 3,056 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-gallerylist-video-player-gallery-asset-js"],{31403:function(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,{default:function(){return s}});var s=function(){return e=function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.aspectRatio=16/9,this.uiSelectors={VideoPlayer:this.element.querySelector(".VideoPlayer"),fullscreenHeader:document.querySelector(".Fullscreen__header"),fullscreenFooter:document.querySelector(".Fullscreen__footer"),resizeAreas:o(this.element.querySelectorAll(".posterImage > span, .playerWrapper"))},this._onResize(),window.addEventListener("resize",function(){r._onResize()})},(t=[{key:"_onResize",value:function(){this._setVideoWrapperDimensions()}},{key:"_setVideoWrapperDimensions",value:function(){var e=this,t=window.getComputedStyle(this.uiSelectors.VideoPlayer,null),r=window.innerWidth-(parseInt(t.getPropertyValue("padding-left"),10)+parseInt(t.getPropertyValue("padding-left"),10)),n=window.innerHeight-(this.uiSelectors.fullscreenHeader.offsetHeight+this.uiSelectors.fullscreenFooter.offsetHeight+parseInt(t.getPropertyValue("padding-top"),10)+parseInt(t.getPropertyValue("padding-bottom"),10)),o=r/n;this.aspectRatio>o?this.uiSelectors.resizeAreas.forEach(function(e){e.style.width="".concat(r,"px")}):this.uiSelectors.resizeAreas.forEach(function(t){t.style.width="".concat(n*e.aspectRatio,"px")})}}])&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()}}]);

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.