PageSourceSearch

https://www.landroverusa.com/etc.clientlibs/jlr/clientlibs/clientl…full-frame-index-js.546bd5a8a52eae068f6e.js

js landroverusa.com collected 2026-10-02 02:28:58 UTC 11,649 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-carousel-carousels-full-frame-constants-js","components-carousel-carousels-full-frame-index-js","components-carousel-constants-js","components-dynamic-media-handler-DynamicMediaHandler-js","components-dynamic-media-handler-js-renditions-js"],{10025:function(e,t,r){r.r(t),r.d(t,{CAROUSEL_CLASS:function(){return i},CAROUSEL_NAME:function(){return n},PAGINATION_CLASS:function(){return o},PAGINATION_SELECTOR:function(){return u}});var n="FullFrameCarousel",i="cmp-fullframe-carousel",o="cmp-fullframe_pagination",u=".".concat(o)},68612:function(e,t,r){r.r(t),r.d(t,{FullFrameCarousel:function(){return m}});var n=r(13442),i=r(73474),o=r(34865),u=r(10025);function s(e){return s="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},s(e)}function l(e){return function(e){if(Array.isArray(e))return a(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 a(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)?a(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 a(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 c(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,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var m=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.el=t,this.options={carouselClass:u.CAROUSEL_CLASS,carouselName:u.CAROUSEL_NAME,carouselPaginationClass:u.PAGINATION_CLASS,isTallImage:null!==t.querySelector(".tallImage")},this.breakpoints={1920:"desktop-xl",1280:"desktop",768:"tablet",0:"mobile"},this.setupClassic=this.setupClassic.bind(this),this.setupExtended=this.setupExtended.bind(this),this.adjustFullFramePagination=this.adjustFullFramePagination.bind(this),this.getPoster=this.getPoster.bind(this),this.setupSlideControls=this.setupSlideControls.bind(this),setTimeout(function(){r.setupRenditions()},100)},t=[{key:"setupRenditions",value:function(){l(this.el.querySelectorAll("[data-dynamic-renditions]")).forEach(function(e){var t={src:e.dataset.src,renditions:i.RENDITIONS.fullframecarousel};new n.default(e,t)}),l(this.el.querySelectorAll('[data-dynamic-renditions-enabled="true"]')).forEach(function(e){var t=e.querySelector(".cmp-video__poster img");if(t){var r={src:e.dataset.posterImg,renditions:i.RENDITIONS.fullframecarousel};new n.default(t,r)}})}},{key:"setupClassic",value:function(){var e=this,t=this.el.parentElement.classList.contains("remove-padding--bottom"),r=this.el.querySelector(".shelfComponent");if(this.el.querySelectorAll(o.GENERIC_ITEM_CLASS).length>0){var n=this.el.querySelector(u.PAGINATION_SELECTOR),i=function(){if(n){var i=e.el.querySelector(u.PAGINATION_SELECTOR),s=e.el.querySelector(o.GENERIC_ITEM_CLASS).clientHeight,l=e.el.querySelectorAll(".cmp-genericItem__element-poster");i.style.top=0;var a=0;if(window.innerWidth>=768)i.style.top=s-77+"px";else{var c=e.options.isTallImage?-54:27;i.style.top=l[0].offsetHeight+c+"px",a=e.options.isTallImage?0:50,!r&&t&&(e.el.style.paddingBottom="20px")}l.forEach(function(e){e.style.marginBottom=a+"px"})}};$(this.el).resize(function(){return i()}),i()}}},{key:"onResize",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]||t();var r=null;new ResizeObserver(function(){r&&clearTimeout(r),r=requestAnimationFrame(t)}).observe(e)}}
1,{key:"adjustFullFramePagination",value:function(){var e=this.getCurrentBreakpoint(),t=this.el.querySelector(u.PAGINATION_SELECTOR);if(t){var r=this.el.querySelector(".carousel").getBoundingClientRect(),n=this.getPoster();if(n){var i=n.getBoundingClientRect(),o="mobile"===e?15:0;t.style.left="".concat(i.left-r.left-o,"px"),t.style.top="".concat(i.height-{"desktop-xl":43,desktop:43,tablet:43,mobile:-20}[e],"px"),t.style.width="".concat(i.width,"px")}}}},{key:"setupExtended",value:function(){this.adjustFullFramePagination(),this.onResize(this.el,this.adjustFullFramePagination,!0)}},{key:"getCurrentBreakpoint",value:function(){var e=Object.keys(this.breakpoints).map(function(e){return Number(e)}).sort(function(e,t){return t-e}),t=e.map(function(e){return window.matchMedia("(min-width: ".concat(e,"px)")).matches}),r=e[t.indexOf(!0)];return this.breakpoints[r]}},{key:"setup",value:function(){("true"===this.el.dataset.extendedLayout?this.setupExtended:this.setupClassic)(),this.setupSlideControls(),this.onResize(this.el,this.setupSlideControls),this.setupNoText()}},{key:"getPoster",value:function(){var e,t,r,n=this.el.querySelector(".swiper-container"),i=null==n?void 0:n.swiper;if(!i)return null;var o=null!==(e=i.slides[i.activeIndex])&&void 0!==e?e:this.el.querySelector(".swiper-slide-active");return o?null!==(t=null!==(r=o.querySelector(".cmp-genericItem__element-poster .cmp-carousel__bgImage"))&&void 0!==r?r:o.querySelector(".cmp-genericItem__element-poster .cmp-video__poster"))&&void 0!==t?t:o.querySelector(".cmp-genericItem__element-poster .cmp-video__youtube-poster"):null}},{key:"setupSlideControls",value:function(){var e=this.getPoster();if(e){var t=e.getBoundingClientRect(),r=this.el.querySelector(".cmp-carousel__previous"),n=this.el.querySelector(".cmp-carousel__next"),i=this.el.querySelector(".cmp-genericItem__element-poster").getBoundingClientRect(),o=this.el.querySelector(u.PAGINATION_SELECTOR);[r,n].filter(Boolean).forEach(function(e){if(0===t.height){var r=window.innerWidth>=768?"90px":"25px";e.style.top=i.height/2+"px",o.style.left=r}else e.style.top=t.height/2+"px"})}}},{key:"setupNoText",value:function(){var e=this.el.querySelectorAll(".swiper-slide");Array.from(e).every(function(e){return!e.querySelector(".shelfComponent")})&&this.el.classList.add("cmp-fullframe-carousel--no-text")}}],t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},34865:function(e,t,r){r.r(t),r.d(t,{ACCOLADES_CLASS:function(){return p},CAROUSEL_CONTROLS:function(){return i},CAROUSEL_CONTROLS_CLASS:function(){return n},CAROUSEL_CONTROLS_FADE_IN:function(){return c},CAROUSEL_CONTROLS_FADE_OUT:function(){return f},CAROUSEL_NEXT_CLASS:function(){return a},CAROUSEL_NUMBERED_CONTROLS:function(){return u},CAROUSEL_NUMBERED_CONTROLS_CLASS:function(){return o},CAROUSEL_PRE_CLASS:function(){return l},CAROUSEL_SLIDER:function(){return s},DUAL_FRAME_ITEM:function(){return S},EXTENDED_VIDEO:function(){return A},FULL_FRAME_CAROUSEL_CLASS:function(){return m},FULL_FRAME_CLASS:function(){return y},GENERIC_ITEM_CLASS:function(){return C},HERO_ITEM_CLASS:function(){return d},HERO_TITLE_CLASS:function(){return h},MEDIA_OVERLAY:function(){return E},SHOP_THE_LOOK_CLASS:function(){return O},SHOP_THE_LOOK_CTA_CLASS:function(){return L},VIDEO:function(){return b},VIDEO_PLAYER:function(){return v},YOUTUBE_GALLERY:function(){return _},YOUTUBE_PLAYER:function(){return g}});var n="cmp-carousel__controls",i=".".concat(n),o="NumberedArrows",u=".".concat(o),s=".cmp-carousel__slider",l=".cmp-carousel__previous",a=".cmp-carousel__next",c="".concat(n,"--fade-in"),f="".concat(n,"--fade-out"),m="cmp-fullframe-carousel",p=".cmp-accolades",d=".cmp-hero",h=".cmp-heroTitleBanner",y=".cmp-fullframe",S=".cmp-dualFrameItem",v=".VideoPlayer",_=".YouTubeGalleryAsset",g=".YouTubePlayer",E=".mediaOverlay",b=".cmp-video video",A="cmp-extended-overlay-video",C=".cmp-genericItem__element-poster",O=".cmp-shopthelook",L=".ShopTheLook-trigger-cta"},13442: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 i(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,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;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 u}});var u=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.options=r,this.options.src&&this.options.renditions&&(this.renditions=e.renditionsToArray(this.options.renditions),this.currentUrl=this.options.src,this.maxSrc=this.getMaxSrc(),this.init())}return t=e,n=[{key:"renditionsToArray",value:function(e){return e.split(",").map(function(e){return Number(e)}).sort(function(e,t){return e-t})}},{key:"getDelimiter",value:function(e){return e.includes("?")?"&":"?"}},{key:"constructRenditionUrl",value:function(e,t){try{var r=new 
1URL(e,document.baseURI);return r.searchParams.set("wid",t),r.searchParams.set("fit","stretch,1"),r.toString()}catch(t){return e}}}],(r=[{key:"init",value:function(){var e=this;new ResizeObserver(function(t){var r=t[0],n=e.buildSrc(r.target);n!==e.currentUrl&&(e.currentUrl=n,"VIDEO"===r.target.tagName?r.target.poster=e.currentUrl:e.options.background?r.target.style.backgroundImage="url(".concat(e.currentUrl,")"):r.target.src=e.currentUrl)}).observe(this.element)}},{key:"findFirstHigherIndex",value:function(e){return this.renditions.findIndex(function(t){return t>=e})}},{key:"getUrlSrc",value:function(e){var t=this.options.overrideSmallSrc,r=this.options.overrideSmallSize;return!t||!r||e>Number(r)?this.options.src:t}},{key:"buildSrc",value:function(t){var r=t.getBoundingClientRect(),n=this.findFirstHigherIndex(r.width),i="";if(-1===n)i=this.maxSrc;else{var o=this.renditions[n],u=this.getUrlSrc(r.width);i=e.constructRenditionUrl(u,o)}return i}},{key:"getMaxSrc",value:function(){return e.constructRenditionUrl(this.options.src,this.renditions.at(-1))}}])&&i(t.prototype,r),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}()},73474:function(e,t,r){r.r(t),r.d(t,{RENDITIONS:function(){return n}});var n={accolades:{image:"260,460",background:"480,740,900,1280,1460,1660"},contentcard:"480,680",dualframecarousel:"480,740,900,1280",fullframecarousel:"480,740,900,1280,1660",gallerycategories:{landscape:"480,740,900,1280,1460,1660,2000"},gallerylist:{image:"480,740,900,1280,1460,1660,2000",video:"480,740,900,1280",thumbnail:"200"},heroitem:"480,740,900,1280,1660",herotitle:"480,740,900,1280,1660",signpost:"480,740",immersivehero:"1280,1660",masonrymedia:{support:"200,420,600",narrow:"0,240,360",main:"400,600,900"},preferredretailersignpost:"720,650,340",retailorLocator:"720,650,340"}}}]);

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.