PageSourceSearch

https://www.nationalcar.com/etc/designs/nweb/assets/20260923183819/js/backgroundImage.js

js nationalcar.com collected 2026-10-01 11:59:20 UTC 1,674 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknational_aem=self.webpackChunknational_aem||[]).push([[7057],{49384:function(t,a,e){e.r(a);var n=e(4942),r=e(55382),c=e(12127),i="gradient",o=(0,n.Z)((0,n.Z)((0,n.Z)((0,n.Z)({DEFAULT:".data-attrs .data-none-src"},r.Z.SMALL,".data-attrs .data-small-src"),r.Z.MEDIUM,".data-attrs .data-medium-src"),r.Z.LARGE,".data-attrs .data-large-src"),r.Z.XLARGE,".data-attrs .data-large-src");function d(t){var a=t.querySelector(".".concat(i));a&&t.removeChild(a)}function l(t,a){var e=function(t,a){var e=t.querySelector(o[a])||t.querySelector(o.DEFAULT);return e?e.dataset:null}(t,a);if(e){var n=t.dataset,c=n.respectBgHeight,l=n.bgHeightProportion,s=e.height,g=e.width,u=e.gradient,h=e.gradientDirection,p=s&&g&&s/g,f=l&&t.clientWidth*(a===r.Z.SMALL?1:l),m=c&&f&&f*p;t.setAttribute("style","\n    ".concat(m?"min-height: ".concat(m,"px;"):"","\n    ").concat(a===r.Z.SMALL&&c?"padding-top: ".concat(m,"px;"):"","\n  ")),e.gradient?function(t,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,c=t.ownerDocument.createElement("div"),o="right"===e;c.className=i,c.style.backgroundImage="linear-gradient(to ".concat(e,", ").concat(a," ").concat(o?"10%":"20%",", rgba(0,0,0,0) 80%)"),c.style.right=o?"0px":"auto",c.style.left=o?"auto":"0px",c.style.width=o?"".concat(r,"px"):"100%",c.style.height=n?"".concat(n,"px"):"",d(t),c.style.backgroundImage&&t.appendChild(c)}(t,u,h,s,g):d(t)}}a.default={init:function(t,a){l(a,t.getState().get("breakpoint")),c.Et.observeStore(t,function(t){return t.get("breakpoint")},function(t){return l(a,t.breakpoint)})}}}}]);

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.