PageSourceSearch

https://www.astonmartin.com/theme/10.3.52.0.4/assets/astonmartin/mjs/recall-campaign-search.bundle.js

js astonmartin.com collected 2026-09-24 08:40:07 UTC 9,699 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaml=self.webpackChunkaml||[]).push([[9520,9182,5737],{73493:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(76314),r=a.n(l)()((function(e){return e[1]}));r.push([e.id,".recall-search{display:flex;padding:60px 56px 0px 56px;flex-direction:column}@media(min-width: 1920px){.recall-search{padding:80px 80px 0}}@media(max-width: 1023px){.recall-search{padding:32px 16px}}.recall-search .recall-not-found .recall-results__cta{display:none}.recall-search .recall-not-found .recall-results__not-found{display:flex}.recall-search .recall-not-found .recall-results__items{display:none}.recall-search__container{display:flex;flex-direction:row;justify-content:center;padding:48px 0px 48px 100px;gap:132px}@media(min-width: 1920px){.recall-search__container{padding:48px 149px;gap:184px}}@media(max-width: 1023px){.recall-search__container{flex-direction:column;padding:0;gap:24px}}.recall-search__input-container{display:flex;flex-direction:row;gap:32px;width:100%;height:56px}@media(max-width: 1023px){.recall-search__input-container{flex-direction:column;gap:16px;height:-moz-fit-content;height:fit-content}}.recall-search__input{border-radius:2px;border:1.5px solid #e2e4e4;width:100%;padding:16px 12px 16px 16px;font-family:var(--ff-amsans);font-size:16px;font-style:normal;font-weight:400;line-height:24px}.recall-search__input:focus,.recall-search__input:active,.recall-search__input:focus-visible{border-color:#00665e;outline:none}.recall-search__button{height:56px}@media(max-width: 1023px){.recall-search__button{width:100%}}.recall-search .recall-results{display:flex;flex-direction:column;gap:32px;padding:60px 0 60px 100px}@media(min-width: 1920px){.recall-search .recall-results{padding:80px 149px}}@media(max-width: 1023px){.recall-search .recall-results{padding:32px 0 0;gap:24px}}.recall-search .recall-results__container{display:flex;gap:132px}@media(min-width: 1920px){.recall-search .recall-results__container{gap:182px}}@media(max-width: 1023px){.recall-search .recall-results__container{flex-direction:column;gap:16px}}.recall-search .recall-results__label{height:-moz-max-content;height:max-content;font-family:var(--ff-amflare);font-size:32px;font-style:normal;font-weight:400;line-height:40px;min-width:368px}@media(min-width: 1920px){.recall-search .recall-results__label{min-width:416px}}@media(max-width: 1023px){.recall-search .recall-results__label{min-width:100%;font-size:26px;line-height:36px}}.recall-search .recall-results__items{width:100%;display:flex;flex-direction:column;gap:16px}.recall-search .recall-results__item{display:flex;flex-direction:column;height:-moz-max-content;height:max-content;padding:16px 0px;position:relative;border-bottom:1px solid #d9d9d9}.recall-search .recall-results__item-container{display:flex}.recall-search .recall-results__item-info{width:100%;display:flex;flex-direction:column;gap:4px}.recall-search .recall-results__item-code{font-family:var(--ff-amflare);font-size:18px;font-style:normal;font-weight:400;line-height:24px;text-transform:uppercase}@media(max-width: 1023px){.recall-search .recall-results__item-code{font-size:14px;line-height:20px}}.recall-search .recall-results__item-title{color:#000;font-family:var(--ff-amsans);font-size:24px;font-style:normal;font-weight:400;line-height:32px}@media(max-width: 1023px){.recall-search .recall-results__item-title{font-size:20px;line-height:24px}}.recall-search .recall-results__item-desc{margin-top:4px;font-family:var(--ff-amsans);font-size:14px;font-style:normal;font-weight:400;line-height:20px}.recall-search .recall-results__item-date{color:#949696;text-align:right;font-family:var(--ff-amsans);font-size:18px;font-style:normal;font-weight:400;line-height:24px;width:-moz-fit-content;width:fit-content;display:inline-flex;white-space:nowrap;height:-moz-fit-content;height:fit-content}@media(max-width: 1023px){.recall-search .recall-results__item-date{position:absolute;right:0;font-size:14px;line-height:20px}}.recall-search .recall-results__cta{display:flex;align-self:flex-end}@media(max-width: 1023px){.recall-search .recall-results__cta{justify-content:center;width:100%}}.recall-search .recall-results__not-found{color:#000;font-family:var(--ff-amsans);font-size:18px;font-style:normal;font-weight:400;line-height:30px;display:none;align-items:center}.recall-search__label,.recall-search .recall-results__label{font-family:var(--ff-amflare);font-size:32px;font-weight:400;line-height:40px;text-align:left;min-width:368px;white-space:nowrap;text-transform:none}@media(min-width: 1920px){.recall-search__label,.recall-search .recall-results__label{min-width:416px}}@media(max-width: 1023px){.recall-search__label,.recall-search .recall-results__label{min-width:100%;font-size:26px;line-height:36px}}.recall-search .hide{display:none}",""]);const i=r},71124:(e,t,a)=>{a.d(t,{v:()=>i});var l=a(39754),r=a(60639);var i=new class{constructor(){var e=document.body.querySelectorAll("[data-hbs-template]");this.templates={},this.addHelpers(),l(e,(e=>{var t=e.getAttribute("data-hbs-template");this.templates[t]=r.compile(e.innerHTML)}))}addHelpers(){r.registerHelper("ifCond",(function(e,t,a){return e===t?a.fn(this):a.inverse(this)}))}render(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.templates[e]?this.templates[e](t):""}}},64524:(e,t,a)=>
1{a.r(t),a.d(t,{recallCampaignController:()=>p});var l=a(85072),r=a.n(l),i=a(73493),n={insert:"head",singleton:!1};r()(i.A,n);i.A.locals;var s=a(89695),c=a(71124),o=a(53479),h=a(42838);var p=new class{init(){this.initDOMElements(),this.initEventListeners()}initDOMElements(){this.elm=document.querySelector(".recall-search"),this.resultListContainer=this.elm.querySelector(".recall-results"),this.searchCta=this.elm.querySelector(".recall-search__button"),this.findDealerCta=this.elm.querySelector(".recall-results__cta"),this.searchInput=this.elm.querySelector(".recall-search__input")}initEventListeners(){this.searchInput.addEventListener("input",(()=>{this.searchInput.value.trim()?(this.searchCta.removeAttribute("disabled"),this.searchCta.classList.remove("cta_button--disabled")):(this.searchCta.setAttribute("disabled",!0),this.searchCta.classList.add("cta_button--disabled"))})),this.searchCta.addEventListener("click",(e=>{e.preventDefault();var t=this.searchInput.value.trim();this.search(t)})),this.findDealerCta.addEventListener("click",(()=>{var e=JSON.parse(this.findDealerCta.getAttribute("data-event-config")||null);e&&o.globalDatalayer.pushToDataLayer(e)}))}search(e){s.e.recallCampaignSearch(e).then((e=>{var t;this.resultListContainer.classList.remove("hide");var a=(null===(t=e.recalls)||void 0===t?void 0:t.length)||0;if(this.handleSearchCtaEvent(a),a){var l=this.resultListContainer.querySelector(".recall-results__items");l.innerHTML="",this.updateValueInTemplate(e.recalls,l),this.resultListContainer.classList.remove("recall-not-found")}else this.resultListContainer.classList.add("recall-not-found")}))}handleSearchCtaEvent(e){var t=JSON.parse(this.searchCta.getAttribute("data-event-config")||null);t&&(t.total_items=e,o.globalDatalayer.pushToDataLayer(t))}updateValueInTemplate(e,t){var a=new DocumentFragment;e.forEach((e=>{var t=c.v.render("recallCampaignResult",e),l=h.sanitize(t),r=document.createElement("div");r.innerHTML=l,a.append(r)})),t.appendChild(a)}}},53479:(e,t,a)=>{function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e,t,a){var l;return(t="symbol"==typeof(l=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var l=a.call(e,t||"default");if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?l:String(l))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.r(t),a.d(t,{globalDatalayer:()=>n});var n=new class{constructor(){i(this,"globaldata",{})}init(){try{var e,t=JSON.parse(document.body.getAttribute("data-global-layer"))||{};this.globaldata=r({event:"page_info",url:window.location.pathname,page_name:document.title,device:document.body.getAttribute("data-device-type")},t),window.globalGALayer=this.globaldata,null===(e=window.engagePromise)||void 0===e||e.then((()=>{this.personalizeGlobalData=window.engage.globalPageViewEventData;var e={url:window.location.pathname};engage.pageView(this.personalizeGlobalData,e)}))}catch(e){console.warn("Unable to read data-global-layer attribute")}this.pushGlobalDataLayer()}pushGlobalDataLayer(){var e=()=>{var e=r({screen_resolution:"".concat(window.screen.width,"x").concat(window.screen.height),viewport_size:"".concat(window.innerWidth,"x").concat(window.innerHeight)},this.globaldata);window.dataLayer&&window.dataLayer.push(e)};"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,0)}pushToDataLayer(e){window.dataLayer&&e&&(window.dataLayer.push(r({},e)),this.pushGlobalDataLayer())}pushToPersonalizeDatalayer(e){if(window.engage&&e){var t=r({},e),a=t.event;delete t.event,this.personalizeGlobalData||(this.personalizeGlobalData=window.engage.globalPageViewEventData),window.engage.event(a,this.personalizeGlobalData,t)}}}}}]);

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.