PageSourceSearch

https://www.landrover.nl/etc.clientlibs/jlr/clientlibs/clientlib-d…amicMediaHandler-js.9a300ab6b9527d7c0ac3.js

js landrover.nl collected 2026-10-02 19:12:39 UTC 2,788 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-dynamic-media-handler-DynamicMediaHandler-js"],{13442:function(t,r,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var r=function(t,r){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==n(r)?r:r+""}e.r(r),e.d(r,{default:function(){return u}});var u=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=r,this.options=e,this.options.src&&this.options.renditions&&(this.renditions=t.renditionsToArray(this.options.renditions),this.currentUrl=this.options.src,this.maxSrc=this.getMaxSrc(),this.init())}return r=t,n=[{key:"renditionsToArray",value:function(t){return t.split(",").map(function(t){return Number(t)}).sort(function(t,r){return t-r})}},{key:"getDelimiter",value:function(t){return t.includes("?")?"&":"?"}},{key:"constructRenditionUrl",value:function(t,r){try{var e=new URL(t,document.baseURI);return e.searchParams.set("wid",r),e.searchParams.set("fit","stretch,1"),e.toString()}catch(r){return t}}}],(e=[{key:"init",value:function(){var t=this;new ResizeObserver(function(r){var e=r[0],n=t.buildSrc(e.target);n!==t.currentUrl&&(t.currentUrl=n,"VIDEO"===e.target.tagName?e.target.poster=t.currentUrl:t.options.background?e.target.style.backgroundImage="url(".concat(t.currentUrl,")"):e.target.src=t.currentUrl)}).observe(this.element)}},{key:"findFirstHigherIndex",value:function(t){return this.renditions.findIndex(function(r){return r>=t})}},{key:"getUrlSrc",value:function(t){var r=this.options.overrideSmallSrc,e=this.options.overrideSmallSize;return!r||!e||t>Number(e)?this.options.src:r}},{key:"buildSrc",value:function(r){var e=r.getBoundingClientRect(),n=this.findFirstHigherIndex(e.width),i="";if(-1===n)i=this.maxSrc;else{var o=this.renditions[n],u=this.getUrlSrc(e.width);i=t.constructRenditionUrl(u,o)}return i}},{key:"getMaxSrc",value:function(){return t.constructRenditionUrl(this.options.src,this.renditions.at(-1))}}])&&i(r.prototype,e),n&&i(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,e,n}()}}]);

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.