PageSourceSearch

https://www.nationalcar.com/etc/designs/nweb/assets/20260728055140/js/consentBanner.js

js nationalcar.com collected 2026-09-24 09:41:46 UTC 2,507 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknational_aem=self.webpackChunknational_aem||[]).push([[85],{25545:function(e,n,t){t.r(n),t.d(n,{default:function(){return C}});var a=t(67294),c=t(20745),i=t(24011),o=function(e){var n=e.buttonText,t=e.closeConsentBanner,c=e.disclaimer,i=e.isOpen,o=e.viewPolicyText,r=e.viewPolicyUrl;return!!i&&a.createElement("div",{className:"footer-banner zl-section zl-section--bgcolor-heavy"},a.createElement("div",{className:"zl-section__xlarge-max-width"},a.createElement("div",{className:"zl-section__content"},a.createElement("div",{className:"footer-banner__disclaimer"},c),a.createElement("div",{className:"footer-banner__cta-container"},n&&a.createElement("button",{onClick:t,className:"btn btn--size-small btn--opaque",tabIndex:"0"},n),o&&a.createElement("div",{className:"footer-banner__list-of-links inline-seperated-links caret-links"},a.createElement("a",{href:r},o))))))},r=t(35369),s=t(31979);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.D5)();switch((arguments.length>1&&void 0!==arguments[1]?arguments[1]:null).type){case s.Z.COOKIE_CONSENT_BANNER_OPEN:return e.set("consentBanner",(0,r.D5)({isOpen:!0}));case s.Z.COOKIE_CONSENT_BANNER_CLOSED:return e.set("consentBanner",(0,r.D5)({isOpen:!1}))}return e}
1var _=t(55618),u=t(12127),O=function(){};function E(){u.tO.set(_.P_.COOKIE_POLICY,!0)}function m(e){return{isOpen:e.getIn(["consentBanner","isOpen"])}}function N(e){return{closeConsentBanner:function(){return e((E(),O(),{type:_.l0.COOKIE_CONSENT_BANNER_CLOSED}))}}}var C={init:function(e,n){if(!u.tO.get(_.P_.COOKIE_POLICY)&&_.at.COUNTRY!==_.yK.US_COUNTRY_CODE){u.Et.combineReducers(l);var t={};if(_.at.COUNTRY===_.yK.CA_COUNTRY_CODE){(0,u.TN)(_.a.DEEP_LINKS)||E(),Object.assign(t,{disclaimer:(0,u.ag)("cookiepolicy_acknowledge_adchoices",{0:a.createElement("b",{className:"ad-choices"},(0,u.ag)("cookiepolicy_adchoices"))},{jsx:!0}),buttonText:(0,u.ag)("common_close_cta")});var r=(0,i.$j)(m,N)(o);(0,c.createRoot)(n).render(a.createElement(i.zt,{store:e},a.createElement(r,t))),e.dispatch(function(e){return e&&function(e){O=(0,u.on)("focus",document.body,function(n){var t=(0,u.V7)(n.target,"nationalUi"),a=n.target.classList.value;if(a&&!a.match("page__content")&&"consentBanner"!==t){var c=(0,u.cx)(),i=n.target.getBoundingClientRect().top+c+n.target.clientHeight,o=e.firstElementChild;i>o.getBoundingClientRect().top+c&&(0,u.X5)(c+o.clientHeight,{skipAnimation:!0})}},!0)}(e),{type:_.l0.COOKIE_CONSENT_BANNER_OPEN}}(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.