PageSourceSearch

https://www.landrover.co.uk/etc.clientlibs/jlr/clientlibs/clientli…x-CountdownTimer-js.920d83d5a665c6d8e755.js

js landrover.co.uk collected 2026-09-24 21:22:18 UTC 2,242 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-header-box-CountdownTimer-js"],{67191:function(e,t,n){function r(e){return r="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},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,{default:function(){return u}});var u=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.parentElement=n,this.uiSelectors={CountdownTimerDays:this.element.querySelector("#CountdownTimerDays"),CountdownTimerHours:this.element.querySelector("#CountdownTimerHours"),CountdownTimerMinutes:this.element.querySelector("#CountdownTimerMinutes"),CountdownTimerSeconds:this.element.querySelector("#CountdownTimerSeconds")},this.endDate=new Date(this.element.getAttribute("data-countdown-end-date")).getTime()},(t=[{key:"init",value:function(){this.parentElement.classList.add("HeroSlide--has-lease-layout","HeroSlide--contains-TCO"),this._runTimer(this.endDate,this.uiSelectors)}},{key:"_runTimer",value:function(e,t){var n=setInterval(function(){var r=e-(new Date).getTime(),o=function(e){return e.toLocaleString("en-GB",{minimumIntegerDigits:2,useGrouping:!1})};if(r<0)clearInterval(n);else{var i=o(Math.floor(r/864e5)),u=o(Math.floor(r%864e5/36e5)),a=o(Math.floor(r%36e5/6e4)),l=o(Math.floor(r%6e4/1e3));t.CountdownTimerDays.innerHTML=i,t.CountdownTimerHours.innerHTML=u,t.CountdownTimerMinutes.innerHTML=a,t.CountdownTimerSeconds.innerHTML=l}},1e3)}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,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.