PageSourceSearch

https://www.astonmartin.com/theme/10.3.52.0.4/assets/astonmartin/mjs/cookiebar.bundle.js

js astonmartin.com collected 2026-10-01 09:04:01 UTC 1,642 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaml=self.webpackChunkaml||[]).push([[1424],{67091:(e,i,o)=>{o.r(i),o.d(i,{cookieBar:()=>t});var t=new class{init(){if(this.cookieName="AMLcookiePolicy",document.querySelectorAll(".cookies").length){if(this.getCookie(this.cookieName))return;this.initDOMElements(),this.initBindings(),this.showCookieBar()}}initDOMElements(){this.cookieBar=document.querySelector(".cookies"),this.cookieCTA=this.cookieBar.querySelector(".cookies__cta")}initBindings(){this.cookieCTA.addEventListener("click",this.hideCookieBar.bind(this))}showCookieBar(){this.cookieBar.classList.add("cookies--visible")}hideCookieBar(e){e.preventDefault(),this.setCookie(this.cookieName,"accepted",365,"/"),this.cookieBar.classList.remove("cookies--visible")}setCookie(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"accepted",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],n=new Date;n.setTime(n.getTime());var a=1e3*o*60*60*24,k=new Date(n.getTime()+a).toGMTString(),r=e+"="+escape(i)+(k?"; expires="+k:"")+(t?"; path="+t:"")+(c?"; domain="+c:"")+(s?"; secure":"");document.cookie=r}getCookie(e){if(document.cookie.length){var i=document.cookie.indexOf("".concat(e,"="));if(~i){i=i+e.length+1;var o=document.cookie.indexOf(";",i);return~o||(o=document.cookie.length),decodeURI(document.cookie.substring(i,o))}}return""}deleteCookie(e){this.getCookie(e)&&(document.cookie="".concat(e,"=; expiresThu, 01 Jan 1970 00:00:01 GMT;"))}}}}]);

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.