gauge-page-header 0.0.397 → 0.0.398

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b78d664a.js');
5
+ const index = require('./index-79e67e4f.js');
6
6
 
7
7
  const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
8
8
 
@@ -2,19 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b78d664a.js');
5
+ const index = require('./index-79e67e4f.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v3.4.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gauge-page-header.cjs.js', document.baseURI).href));
12
12
  const opts = {};
13
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
14
13
  if (importMeta !== '') {
15
14
  opts.resourcesUrl = new URL('.', importMeta).href;
16
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
17
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
18
15
  }
19
16
  return index.promiseResolve(opts);
20
17
  };
@@ -236,9 +236,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
236
236
  }
237
237
  styles.set(scopeId, style);
238
238
  };
239
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
239
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
240
240
  var _a;
241
- let scopeId = getScopeId(cmpMeta);
241
+ const scopeId = getScopeId(cmpMeta);
242
242
  const style = styles.get(scopeId);
243
243
  // if an element is NOT connected then getRootNode() will return the wrong root node
244
244
  // so the fallback is to always use the document for the root node in those cases
@@ -253,11 +253,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
253
253
  }
254
254
  if (!appliedStyles.has(scopeId)) {
255
255
  {
256
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
257
- {
258
- styleElm = doc.createElement('style');
259
- styleElm.innerHTML = style;
260
- }
256
+ styleElm = doc.createElement('style');
257
+ styleElm.innerHTML = style;
261
258
  // Apply CSP nonce to the style tag if it exists
262
259
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
263
260
  if (nonce != null) {
@@ -282,7 +279,6 @@ const attachStyles = (hostRef) => {
282
279
  const flags = cmpMeta.$flags$;
283
280
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
284
281
  const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
285
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
286
282
  if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
287
283
  // only required when we're NOT using native shadow dom (slot)
288
284
  // or this browser doesn't support native shadow dom
@@ -2,20 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b78d664a.js');
6
-
7
- /*
8
- Stencil Client Patch Esm v3.4.0 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
5
+ const index = require('./index-79e67e4f.js');
13
6
 
14
7
  const defineCustomElements = (win, options) => {
15
8
  if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
17
9
  return index.bootstrapLazy([["eswat2-io_2.cjs",[[1,"gauge-page-header",{"vehicleInfo":[16]}],[1,"eswat2-io"]]]], options);
18
- });
19
10
  };
20
11
 
21
12
  exports.setNonce = index.setNonce;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/eswat2-io/eswat2-io.js",
4
- "./components/gauge-page-header/gauge-page-header.js"
3
+ "components/eswat2-io/eswat2-io.js",
4
+ "components/gauge-page-header/gauge-page-header.js"
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "3.4.0",
8
+ "version": "4.0.1",
9
9
  "typescriptVersion": "5.0.4"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { h } from '@stencil/core';
1
+ import { h } from "@stencil/core";
2
2
  const url = 'https://eswat2.dev';
3
3
  const who = 'eswat2';
4
4
  const pawIcon = ({ hex = 'currentColor', size = 24 }) => {
@@ -1,5 +1,5 @@
1
- import { h } from '@stencil/core';
2
- import { copyToClipboard } from '../../utils';
1
+ import { h } from "@stencil/core";
2
+ import { copyToClipboard } from "../../utils";
3
3
  export class GaugePageHeader {
4
4
  constructor() {
5
5
  this.vehicleInfo = undefined;
@@ -101,7 +101,8 @@ export class GaugePageHeader {
101
101
  "references": {
102
102
  "VehicleInfo": {
103
103
  "location": "import",
104
- "path": "../../typings"
104
+ "path": "../../typings",
105
+ "id": "src/typings/index.ts::VehicleInfo"
105
106
  }
106
107
  }
107
108
  },
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-71c91888.js';
1
+ import { r as registerInstance, h } from './index-affa252d.js';
2
2
 
3
3
  const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
4
4
 
@@ -1,17 +1,14 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-71c91888.js';
2
- export { s as setNonce } from './index-71c91888.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-affa252d.js';
2
+ export { s as setNonce } from './index-affa252d.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v3.4.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
9
9
  const opts = {};
10
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
11
10
  if (importMeta !== '') {
12
11
  opts.resourcesUrl = new URL('.', importMeta).href;
13
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
14
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
15
12
  }
16
13
  return promiseResolve(opts);
17
14
  };
@@ -214,9 +214,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
214
214
  }
215
215
  styles.set(scopeId, style);
216
216
  };
217
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
217
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
218
218
  var _a;
219
- let scopeId = getScopeId(cmpMeta);
219
+ const scopeId = getScopeId(cmpMeta);
220
220
  const style = styles.get(scopeId);
221
221
  // if an element is NOT connected then getRootNode() will return the wrong root node
222
222
  // so the fallback is to always use the document for the root node in those cases
@@ -231,11 +231,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
231
231
  }
232
232
  if (!appliedStyles.has(scopeId)) {
233
233
  {
234
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
235
- {
236
- styleElm = doc.createElement('style');
237
- styleElm.innerHTML = style;
238
- }
234
+ styleElm = doc.createElement('style');
235
+ styleElm.innerHTML = style;
239
236
  // Apply CSP nonce to the style tag if it exists
240
237
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
241
238
  if (nonce != null) {
@@ -260,7 +257,6 @@ const attachStyles = (hostRef) => {
260
257
  const flags = cmpMeta.$flags$;
261
258
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
262
259
  const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
263
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
264
260
  if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
265
261
  // only required when we're NOT using native shadow dom (slot)
266
262
  // or this browser doesn't support native shadow dom
@@ -1,18 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-71c91888.js';
2
- export { s as setNonce } from './index-71c91888.js';
3
-
4
- /*
5
- Stencil Client Patch Esm v3.4.0 | MIT Licensed | https://stenciljs.com
6
- */
7
- const patchEsm = () => {
8
- return promiseResolve();
9
- };
1
+ import { b as bootstrapLazy } from './index-affa252d.js';
2
+ export { s as setNonce } from './index-affa252d.js';
10
3
 
11
4
  const defineCustomElements = (win, options) => {
12
5
  if (typeof window === 'undefined') return Promise.resolve();
13
- return patchEsm().then(() => {
14
6
  return bootstrapLazy([["eswat2-io_2",[[1,"gauge-page-header",{"vehicleInfo":[16]}],[1,"eswat2-io"]]]], options);
15
- });
16
7
  };
17
8
 
18
9
  export { defineCustomElements };
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-70cd36b2.js";export{s as setNonce}from"./p-70cd36b2.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-fcfb070d",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
1
+ import{p as e,b as o}from"./p-c0488479.js";export{s as setNonce}from"./p-c0488479.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-30f1082e",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-70cd36b2.js";const i="eswat2",r=class{constructor(a){e(this,a)}render(){return a("a",{href:"https://eswat2.dev","aria-label":i,title:i},(({hex:e="currentColor",size:i=24})=>a("svg",{width:i,height:i,viewBox:"0 0 24 24"},a("g",{fill:e},a("path",{d:"M8.35,3C9.53,2.83 10.78,4.12 11.14,5.9C11.5,7.67 10.85,9.25\n 9.67,9.43C8.5,9.61 7.24,8.32 6.87,6.54C6.5,4.77 7.17,3.19\n 8.35,3M15.5,3C16.69,3.19 17.35,4.77 17,6.54C16.62,8.32 15.37,9.61\n 14.19,9.43C13,9.25 12.35,7.67 12.72,5.9C13.08,4.12 14.33,2.83\n 15.5,3M3,7.6C4.14,7.11 5.69,8 6.5,9.55C7.26,11.13 7,12.79\n 5.87,13.28C4.74,13.77 3.2,12.89 2.41,11.32C1.62,9.75 1.9,8.08\n 3,7.6M21,7.6C22.1,8.08 22.38,9.75 21.59,11.32C20.8,12.89 19.26,13.77\n 18.13,13.28C17,12.79 16.74,11.13 17.5,9.55C18.31,8 19.86,7.11\n 21,7.6M19.33,18.38C19.37,19.32 18.65,20.36 17.79,20.75C16,21.57\n 13.88,19.87 11.89,19.87C9.9,19.87 7.76,21.64 6,20.75C5,20.26 4.31,18.96\n 4.44,17.88C4.62,16.39 6.41,15.59 7.47,14.5C8.88,13.09 9.88,10.44\n 11.89,10.44C13.89,10.44 14.95,13.05 16.3,14.5C17.41,15.72 19.26,16.75\n 19.33,18.38Z"})),a("path",{d:"M0 0h24v24H0z",fill:"none"})))({}))}};r.style="a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";const s=e=>{if(navigator.clipboard)try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy!",e)}},t=class{constructor(a){e(this,a),this.vehicleInfo=void 0}yearMakeModel(){const{ModelYear:e,Make:a,Model:i}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${i}`}isCertified(){const{IsCertified:e}=this.vehicleInfo||{IsCertified:!1};return e}isRetail(){const{RetailWholesale:e}=this.vehicleInfo||{RetailWholesale:"R"};return"R"===e}isNew(){const{NewUsed:e}=this.vehicleInfo||{NewUsed:"N"};return"N"===e}stockNumber(){const{StockNumber:e}=this.vehicleInfo||{StockNumber:"-"};return e}vin(){const{Vin:e}=this.vehicleInfo||{Vin:"-"};return e}daysInInventory(){const{DaysInInventory:e}=this.vehicleInfo||{DaysInInventory:0};return`${e} Days`}mileage(){const{Odometer:e}=this.vehicleInfo||{Odometer:0};return`${Intl.NumberFormat().format(e)} mi`}body(){const{BodyDescription:e}=this.vehicleInfo||{BodyDescription:"-"};return e}exteriorColor(){const{ExteriorColor:e}=this.vehicleInfo||{ExteriorColor:"-"};return e}interiorColor(){const{InteriorColor:e}=this.vehicleInfo||{InteriorColor:"-"};return e}driveTrain(){const{DriveTrainType:e}=this.vehicleInfo||{DriveTrainType:"-"};return e}engine(){const{EngineDescription:e}=this.vehicleInfo||{EngineDescription:"-"};return e}transmission(){const{TransmissionDescription:e}=this.vehicleInfo||{TransmissionDescription:"- "};return e}render(){var e="";return this.isNew()||(e=this.isCertified()?a("span",{class:"certified badge"},a("span",{role:"label"},"Certified")):a("span",{class:"not-certified badge"},a("span",{role:"label"},"Not Certified"))),[a("div",{class:"gauge-page-header"},a("eswat2-io",null),a("div",{class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{id:"year-make-model-header"},this.yearMakeModel()),a("span",{class:"badge-set-container"},e,this.isRetail()?a("span",{class:"retail badge"},a("span",{role:"label"},"Retail")):a("span",{class:"wholesale badge"},a("span",{role:"label"},"Wholesale")))),a("div",{class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{id:"vehicle-identifier-info-header"},a("span",{class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{class:"vehicle-info-header-segment"},this.mileage()))),a("div",{class:"vehicle-data-container"},a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Body"),a("p",{class:"segment-value"},this.body())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Color"),a("p",{class:"segment-value"},this.exteriorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Int. Color"),a("p",{class:"segment-value"},this.interiorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Drive Train"),a("p",{class:"segment-value"},this.driveTrain())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Engine"),a("p",{class:"segment-value"},this.engine())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Transmission"),a("p",{class:"segment-value"},this.transmission()))))]}};t.style=":host{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}.gauge-page-header{padding:0 5px;display:flex;flex-direction:column;color:var(--clrs-navy)}.gauge-page-header *{font-family:'Roboto'}.gauge-page-header .year-make-model-container{height:35px;display:flex;align-items:center}.gauge-page-header #year-make-model-header{font-size:32px;font-weight:500;margin-left:0}.gauge-page-header .vehicle-identifier-info-container{height:30px;margin-bottom:5px;}.gauge-page-header #vehicle-identifier-info-header{font-weight:400;margin-top:8px}.gauge-page-header .vehicle-info-header-segment{margin-right:1em}.gauge-page-header .vehicle-info-header-segment.capitalize{text-transform:uppercase}.gauge-page-header .vehicle-info-header-segment:not(:last-child):after{padding-left:1em;content:'|'}.gauge-page-header .vehicle-info-segment{float:left;margin-right:30px;font-size:14px}.gauge-page-header .vehicle-data-container{display:flex;flex-direction:row}.gauge-page-header .segment-heading{color:var(--clrs-slate);font-size:14px;font-weight:400;margin-bottom:4px}.gauge-page-header .segment-value{margin-top:0;font-weight:400}.gauge-page-header .badge-set-container{display:flex;padding-left:8px}.gauge-page-header .badge{display:flex;align-items:center;justify-content:center;margin-left:8px;padding:3px 10px;font-size:12px;border-radius:1em;font-weight:600;border:solid 1px;}.gauge-page-header .badge.certified{background-color:#f9fffb;border-color:#5ebb47}.gauge-page-header .badge.certified [role='label']{color:#008629}.gauge-page-header .badge.not-certified{border-color:#46576f}.gauge-page-header .badge.not-certified [role='label']{color:#46576f}.gauge-page-header .badge.retail{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.retail [role='label']{color:#0576b3}.gauge-page-header .badge.wholesale{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.wholesale [role='label']{color:#0576b3}";export{r as eswat2_io,t as gauge_page_header}
1
+ import{r as e,h as a}from"./p-c0488479.js";const i="eswat2",r=class{constructor(a){e(this,a)}render(){return a("a",{href:"https://eswat2.dev","aria-label":i,title:i},(({hex:e="currentColor",size:i=24})=>a("svg",{width:i,height:i,viewBox:"0 0 24 24"},a("g",{fill:e},a("path",{d:"M8.35,3C9.53,2.83 10.78,4.12 11.14,5.9C11.5,7.67 10.85,9.25\n 9.67,9.43C8.5,9.61 7.24,8.32 6.87,6.54C6.5,4.77 7.17,3.19\n 8.35,3M15.5,3C16.69,3.19 17.35,4.77 17,6.54C16.62,8.32 15.37,9.61\n 14.19,9.43C13,9.25 12.35,7.67 12.72,5.9C13.08,4.12 14.33,2.83\n 15.5,3M3,7.6C4.14,7.11 5.69,8 6.5,9.55C7.26,11.13 7,12.79\n 5.87,13.28C4.74,13.77 3.2,12.89 2.41,11.32C1.62,9.75 1.9,8.08\n 3,7.6M21,7.6C22.1,8.08 22.38,9.75 21.59,11.32C20.8,12.89 19.26,13.77\n 18.13,13.28C17,12.79 16.74,11.13 17.5,9.55C18.31,8 19.86,7.11\n 21,7.6M19.33,18.38C19.37,19.32 18.65,20.36 17.79,20.75C16,21.57\n 13.88,19.87 11.89,19.87C9.9,19.87 7.76,21.64 6,20.75C5,20.26 4.31,18.96\n 4.44,17.88C4.62,16.39 6.41,15.59 7.47,14.5C8.88,13.09 9.88,10.44\n 11.89,10.44C13.89,10.44 14.95,13.05 16.3,14.5C17.41,15.72 19.26,16.75\n 19.33,18.38Z"})),a("path",{d:"M0 0h24v24H0z",fill:"none"})))({}))}};r.style="a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";const s=e=>{if(navigator.clipboard)try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy!",e)}},t=class{constructor(a){e(this,a),this.vehicleInfo=void 0}yearMakeModel(){const{ModelYear:e,Make:a,Model:i}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${i}`}isCertified(){const{IsCertified:e}=this.vehicleInfo||{IsCertified:!1};return e}isRetail(){const{RetailWholesale:e}=this.vehicleInfo||{RetailWholesale:"R"};return"R"===e}isNew(){const{NewUsed:e}=this.vehicleInfo||{NewUsed:"N"};return"N"===e}stockNumber(){const{StockNumber:e}=this.vehicleInfo||{StockNumber:"-"};return e}vin(){const{Vin:e}=this.vehicleInfo||{Vin:"-"};return e}daysInInventory(){const{DaysInInventory:e}=this.vehicleInfo||{DaysInInventory:0};return`${e} Days`}mileage(){const{Odometer:e}=this.vehicleInfo||{Odometer:0};return`${Intl.NumberFormat().format(e)} mi`}body(){const{BodyDescription:e}=this.vehicleInfo||{BodyDescription:"-"};return e}exteriorColor(){const{ExteriorColor:e}=this.vehicleInfo||{ExteriorColor:"-"};return e}interiorColor(){const{InteriorColor:e}=this.vehicleInfo||{InteriorColor:"-"};return e}driveTrain(){const{DriveTrainType:e}=this.vehicleInfo||{DriveTrainType:"-"};return e}engine(){const{EngineDescription:e}=this.vehicleInfo||{EngineDescription:"-"};return e}transmission(){const{TransmissionDescription:e}=this.vehicleInfo||{TransmissionDescription:"- "};return e}render(){var e="";return this.isNew()||(e=this.isCertified()?a("span",{class:"certified badge"},a("span",{role:"label"},"Certified")):a("span",{class:"not-certified badge"},a("span",{role:"label"},"Not Certified"))),[a("div",{class:"gauge-page-header"},a("eswat2-io",null),a("div",{class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{id:"year-make-model-header"},this.yearMakeModel()),a("span",{class:"badge-set-container"},e,this.isRetail()?a("span",{class:"retail badge"},a("span",{role:"label"},"Retail")):a("span",{class:"wholesale badge"},a("span",{role:"label"},"Wholesale")))),a("div",{class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{id:"vehicle-identifier-info-header"},a("span",{class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{class:"vehicle-info-header-segment"},this.mileage()))),a("div",{class:"vehicle-data-container"},a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Body"),a("p",{class:"segment-value"},this.body())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Color"),a("p",{class:"segment-value"},this.exteriorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Int. Color"),a("p",{class:"segment-value"},this.interiorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Drive Train"),a("p",{class:"segment-value"},this.driveTrain())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Engine"),a("p",{class:"segment-value"},this.engine())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Transmission"),a("p",{class:"segment-value"},this.transmission()))))]}};t.style=":host{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}.gauge-page-header{padding:0 5px;display:flex;flex-direction:column;color:var(--clrs-navy)}.gauge-page-header *{font-family:'Roboto'}.gauge-page-header .year-make-model-container{height:35px;display:flex;align-items:center}.gauge-page-header #year-make-model-header{font-size:32px;font-weight:500;margin-left:0}.gauge-page-header .vehicle-identifier-info-container{height:30px;margin-bottom:5px;}.gauge-page-header #vehicle-identifier-info-header{font-weight:400;margin-top:8px}.gauge-page-header .vehicle-info-header-segment{margin-right:1em}.gauge-page-header .vehicle-info-header-segment.capitalize{text-transform:uppercase}.gauge-page-header .vehicle-info-header-segment:not(:last-child):after{padding-left:1em;content:'|'}.gauge-page-header .vehicle-info-segment{float:left;margin-right:30px;font-size:14px}.gauge-page-header .vehicle-data-container{display:flex;flex-direction:row}.gauge-page-header .segment-heading{color:var(--clrs-slate);font-size:14px;font-weight:400;margin-bottom:4px}.gauge-page-header .segment-value{margin-top:0;font-weight:400}.gauge-page-header .badge-set-container{display:flex;padding-left:8px}.gauge-page-header .badge{display:flex;align-items:center;justify-content:center;margin-left:8px;padding:3px 10px;font-size:12px;border-radius:1em;font-weight:600;border:solid 1px;}.gauge-page-header .badge.certified{background-color:#f9fffb;border-color:#5ebb47}.gauge-page-header .badge.certified [role='label']{color:#008629}.gauge-page-header .badge.not-certified{border-color:#46576f}.gauge-page-header .badge.not-certified [role='label']{color:#46576f}.gauge-page-header .badge.retail{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.retail [role='label']{color:#0576b3}.gauge-page-header .badge.wholesale{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.wholesale [role='label']{color:#0576b3}";export{r as eswat2_io,t as gauge_page_header}
@@ -0,0 +1,2 @@
1
+ let n,e,t=!1,l=!1;const o={},s=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(n,e,...t)=>{let l=null,o=!1,c=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&c?r[r.length-1].t+=l:r.push(o?i(null,l):l),c=o)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=i(n,null);return a.l=e,r.length>0&&(a.o=r),a},i=(n,e)=>({i:0,u:n,t:e,$:null,o:null,l:null}),u={},a=new WeakMap,f=n=>"sc-"+n.m,d=(n,e,t,l,o,c)=>{if(t!==l){let r=q(n,e),i=e.toLowerCase();if("class"===e){const e=n.classList,o=m(t),s=m(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(r||"o"!==e[0]||"n"!==e[1]){const i=s(l);if((r||i&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!r||4&c||o)&&!i&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):q(z,i)?i.slice(2):i[2]+e.slice(3),t&&D.rel(n,e,t,!1),l&&D.ael(n,e,l,!1)}},$=/\s/,m=n=>n?n.split($):[],p=(n,e,t,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,c=n&&n.l||o,r=e.l||o;for(l in c)l in r||d(s,l,c[l],void 0,t,e.i);for(l in r)d(s,l,c[l],r[l],t,e.i)},y=(e,l,o)=>{const s=l.o[o];let c,r,i=0;if(null!==s.t)c=s.$=B.createTextNode(s.t);else{if(t||(t="svg"===s.u),c=s.$=B.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),p(null,s,t),null!=n&&c["s-si"]!==n&&c.classList.add(c["s-si"]=n),s.o)for(i=0;i<s.o.length;++i)r=y(e,s,i),r&&c.appendChild(r);"svg"===s.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c},h=(n,t,l,o,s,c)=>{let r,i=n;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);s<=c;++s)o[s]&&(r=y(null,l,s),r&&(o[s].$=r,i.insertBefore(r,t)))},w=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.$;n&&n.remove()}}},v=(n,e)=>n.u===e.u,g=(n,e)=>{const l=e.$=n.$,o=n.o,s=e.o,c=e.u,r=e.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,p(n,e,t),null!==o&&null!==s?((n,e,t,l)=>{let o,s=0,c=0,r=e.length-1,i=e[0],u=e[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&c<=a;)null==i?i=e[++s]:null==u?u=e[--r]:null==f?f=l[++c]:null==d?d=l[--a]:v(i,f)?(g(i,f),i=e[++s],f=l[++c]):v(u,d)?(g(u,d),u=e[--r],d=l[--a]):v(i,d)?(g(i,d),n.insertBefore(i.$,u.$.nextSibling),i=e[++s],d=l[--a]):v(u,f)?(g(u,f),n.insertBefore(u.$,i.$),u=e[--r],f=l[++c]):(o=y(e&&e[c],t,c),f=l[++c],o&&i.$.parentNode.insertBefore(o,i.$));s>r?h(n,null==l[a+1]?null:l[a+1].$,t,l,c,a):c>a&&w(e,s,r)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),h(l,null,e,s,0,s.length-1)):null!==o&&w(o,0,o.length-1),t&&"svg"===c&&(t=!1)):n.t!==r&&(l.data=r)},b=(n,e)=>{e&&!n.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.p=e)))},S=(n,e)=>{if(n.i|=16,!(4&n.i))return b(n,n.h),nn((()=>j(n,e)));n.i|=512},j=(n,e)=>{const t=n.v;return O(void 0,(()=>k(n,t,e)))},O=(n,e)=>M(n)?n.then(e):e(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,e,t)=>{var l;const o=n.g,s=o["s-rc"];t&&(n=>{const e=n.S,t=n.g,l=e.i,o=((n,e)=>{var t;const l=f(e),o=_.get(l);if(n=11===n.nodeType?n:B,o)if("string"==typeof o){let e,s=a.get(n=n.head||n);if(s||a.set(n,s=new Set),!s.has(l)){{e=B.createElement("style"),e.innerHTML=o;const l=null!==(t=D.j)&&void 0!==t?t:c(B);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}s&&s.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);C(n,e),s&&(s.map((n=>n())),o["s-rc"]=void 0);{const e=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>P(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},C=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.g,s=t.O||i(null,null),c=(n=>n&&n.u===u)(l)?l:r(null,null,l);e=o.tagName,c.u=null,c.i|=4,t.O=c,c.$=s.$=o.shadowRoot||o,n=o["s-sc"],g(s,c)})(t,l)}catch(n){F(n,t.g)}return null},P=n=>{const e=n.g,t=n.h;64&n.i||(n.i|=64,E(e),n.M(e),t||x()),n.p&&(n.p(),n.p=void 0),512&n.i&&Z((()=>S(n,!1))),n.i&=-517},x=()=>{E(B.documentElement),Z((()=>(n=>{const e=D.ce("appload",{detail:{namespace:"gauge-page-header"}});return n.dispatchEvent(e),e})(z)))},E=n=>n.classList.add("hydrated"),N=(n,e,t)=>{if(e.k){const l=Object.entries(e.k),o=n.prototype;l.map((([n,[e]])=>{(31&e||2&t&&32&e)&&Object.defineProperty(o,n,{get(){return((n,e)=>R(this).C.get(e))(0,n)},set(e){((n,e,t)=>{const l=R(n),o=l.C.get(e),c=l.i,r=l.v;t=(n=>(null==n||s(n),n))(t),8&c&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.C.set(e,t),r&&2==(18&c)&&S(l,!1))})(this,n,e)},configurable:!0,enumerable:!0})}))}return n},T=(n,e={})=>{var t;const l=[],o=e.exclude||[],s=z.customElements,r=B.head,i=r.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,$=!0;Object.assign(D,e),D.P=new URL(e.resourcesUrl||"./",B.baseURI).href,n.map((n=>{n[1].map((e=>{const t={i:e[0],m:e[1],k:e[2],N:e[3]};t.k=e[2];const c=t.m,r=class extends HTMLElement{constructor(n){super(n),W(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?a.push(this):D.jmp((()=>(n=>{if(0==(1&D.i)){const e=R(n),t=e.S,l=()=>{};if(!(1&e.i)){e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){b(e,e.h=t);break}}t.k&&Object.entries(t.k).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t,l,o)=>{if(0==(32&e.i)){e.i|=32;{if((o=V(t)).then){const n=()=>{};o=await o,n()}o.isProxied||(N(o,t,2),o.isProxied=!0);const n=()=>{};e.i|=8;try{new o(e)}catch(n){F(n)}e.i&=-9,n()}if(o.style){let n=o.style;const e=f(t);if(!_.has(e)){const l=()=>{};((n,e,t)=>{let l=_.get(n);I&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,_.set(n,l)})(e,n,!!(1&t.i)),l()}}}const s=e.h,c=()=>S(e,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,e,t)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>{}))}componentOnReady(){return R(this).T}};t.A=n[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,N(r,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=D.j)&&void 0!==t?t:c(B);null!=n&&u.setAttribute("nonce",n),r.insertBefore(u,i?i.nextSibling:r.firstChild)}$=!1,a.length?a.map((n=>n.connectedCallback())):D.jmp((()=>d=setTimeout(x,30)))},A=n=>D.j=n,L=new WeakMap,R=n=>L.get(n),U=(n,e)=>L.set(e.v=n,e),W=(n,e)=>{const t={i:0,g:n,S:e,C:new Map};return t.T=new Promise((n=>t.M=n)),n["s-p"]=[],n["s-rc"]=[],L.set(n,t)},q=(n,e)=>e in n,F=(n,e)=>(0,console.error)(n,e),H=new Map,V=n=>{const e=n.m.replace(/-/g,"_"),t=n.A,l=H.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(H.set(t,n),n[e])),F)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},G=n=>Promise.resolve(n),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),J=[],K=[],Q=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&D.i?Z(Y):D.raf(Y))},X=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){F(n)}n.length=0},Y=()=>{X(J),X(K),(l=J.length>0)&&D.raf(Y)},Z=n=>G().then(n),nn=Q(K,!0);export{T as b,r as h,G as p,U as r,A as s}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gauge-page-header",
3
- "version": "0.0.397",
3
+ "version": "0.0.398",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,14 +24,14 @@
24
24
  "format": "prettier --write src"
25
25
  },
26
26
  "dependencies": {
27
- "@stencil/core": "3.4.0"
27
+ "@stencil/core": "4.0.1"
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "cspell": "6.31.1",
32
- "eslint": "8.42.0",
33
- "prettier": "2.8.8",
32
+ "eslint": "8.44.0",
33
+ "prettier": "3.0.0",
34
34
  "tslint": "6.1.3",
35
- "typescript": "5.1.3"
35
+ "typescript": "5.1.6"
36
36
  }
37
37
  }
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
@@ -1,2 +0,0 @@
1
- let e,n,t=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=!1,c=!1;const r=[],u=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&c?r[r.length-1].t+=l:r.push(o?i(null,l):l),c=o)};if(u(t),n){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}const a=i(e,null);return a.l=n,r.length>0&&(a.o=r),a},i=(e,n)=>({i:0,u:e,t:n,$:null,o:null,l:null}),u={},a=new WeakMap,f=e=>"sc-"+e.m,d=(e,n,t,l,o,c)=>{if(t!==l){let r=q(e,n),i=n.toLowerCase();if("class"===n){const n=e.classList,o=m(t),s=m(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if(r||"o"!==n[0]||"n"!==n[1]){const i=s(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?r=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!r||4&c||o)&&!i&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):q(z,i)?i.slice(2):i[2]+n.slice(3),t&&D.rel(e,n,t,!1),l&&D.ael(e,n,l,!1)}},$=/\s/,m=e=>e?e.split($):[],p=(e,n,t,l)=>{const s=11===n.$.nodeType&&n.$.host?n.$.host:n.$,c=e&&e.l||o,r=n.l||o;for(l in c)l in r||d(s,l,c[l],void 0,t,n.i);for(l in r)d(s,l,c[l],r[l],t,n.i)},y=(n,l,o)=>{const s=l.o[o];let c,r,i=0;if(null!==s.t)c=s.$=B.createTextNode(s.t);else{if(t||(t="svg"===s.u),c=s.$=B.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),p(null,s,t),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),s.o)for(i=0;i<s.o.length;++i)r=y(n,s,i),r&&c.appendChild(r);"svg"===s.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c},h=(e,t,l,o,s,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=c;++s)o[s]&&(r=y(null,l,s),r&&(o[s].$=r,i.insertBefore(r,t)))},w=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.$;e&&e.remove()}}},v=(e,n)=>e.u===n.u,g=(e,n)=>{const l=n.$=e.$,o=e.o,s=n.o,c=n.u,r=n.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,p(e,n,t),null!==o&&null!==s?((e,n,t,l)=>{let o,s=0,c=0,r=n.length-1,i=n[0],u=n[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&c<=a;)null==i?i=n[++s]:null==u?u=n[--r]:null==f?f=l[++c]:null==d?d=l[--a]:v(i,f)?(g(i,f),i=n[++s],f=l[++c]):v(u,d)?(g(u,d),u=n[--r],d=l[--a]):v(i,d)?(g(i,d),e.insertBefore(i.$,u.$.nextSibling),i=n[++s],d=l[--a]):v(u,f)?(g(u,f),e.insertBefore(u.$,i.$),u=n[--r],f=l[++c]):(o=y(n&&n[c],t,c),f=l[++c],o&&i.$.parentNode.insertBefore(o,i.$));s>r?h(e,null==l[a+1]?null:l[a+1].$,t,l,c,a):c>a&&w(n,s,r)})(l,o,n,s):null!==s?(null!==e.t&&(l.textContent=""),h(l,null,n,s,0,s.length-1)):null!==o&&w(o,0,o.length-1),t&&"svg"===c&&(t=!1)):e.t!==r&&(l.data=r)},b=(e,n)=>{n&&!e.p&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.p=n)))},S=(e,n)=>{if(e.i|=16,!(4&e.i))return b(e,e.h),ee((()=>j(e,n)));e.i|=512},j=(e,n)=>{const t=e.v;return O(void 0,(()=>k(e,t,n)))},O=(e,n)=>M(e)?e.then(n):n(),M=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,k=async(e,n,t)=>{var l;const o=e.g,s=o["s-rc"];t&&(e=>{const n=e.S,t=e.g,l=n.i,o=((e,n)=>{var t;let l=f(n);const o=_.get(l);if(e=11===e.nodeType?e:B,o)if("string"==typeof o){let n,s=a.get(e=e.head||e);if(s||a.set(e,s=new Set),!s.has(l)){{n=B.createElement("style"),n.innerHTML=o;const l=null!==(t=D.j)&&void 0!==t?t:c(B);null!=l&&n.setAttribute("nonce",l),e.insertBefore(n,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(e);C(e,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>P(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},C=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.g,s=t.O||i(null,null),c=(e=>e&&e.u===u)(l)?l:r(null,null,l);n=o.tagName,c.u=null,c.i|=4,t.O=c,c.$=s.$=o.shadowRoot||o,e=o["s-sc"],g(s,c)})(t,l)}catch(e){F(e,t.g)}return null},P=e=>{const n=e.g,t=e.h;64&e.i||(e.i|=64,E(n),e.M(n),t||x()),e.p&&(e.p(),e.p=void 0),512&e.i&&Z((()=>S(e,!1))),e.i&=-517},x=()=>{E(B.documentElement),Z((()=>(e=>{const n=D.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(n),n})(z)))},E=e=>e.classList.add("hydrated"),N=(e,n,t)=>{if(n.k){const l=Object.entries(n.k),o=e.prototype;l.map((([e,[n]])=>{(31&n||2&t&&32&n)&&Object.defineProperty(o,e,{get(){return((e,n)=>R(this).C.get(n))(0,e)},set(n){((e,n,t)=>{const l=R(e),o=l.C.get(n),c=l.i,r=l.v;t=(e=>(null==e||s(e),e))(t),8&c&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.C.set(n,t),r&&2==(18&c)&&S(l,!1))})(this,e,n)},configurable:!0,enumerable:!0})}))}return e},T=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=z.customElements,r=B.head,i=r.querySelector("meta[charset]"),u=B.createElement("style"),a=[];let d,$=!0;Object.assign(D,n),D.P=new URL(n.resourcesUrl||"./",B.baseURI).href,e.map((e=>{e[1].map((n=>{const t={i:n[0],m:n[1],k:n[2],N:n[3]};t.k=n[2];const c=t.m,r=class extends HTMLElement{constructor(e){super(e),W(e=this,t),1&t.i&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?a.push(this):D.jmp((()=>(e=>{if(0==(1&D.i)){const n=R(e),t=n.S,l=()=>{};if(!(1&n.i)){n.i|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){b(n,n.h=t);break}}t.k&&Object.entries(t.k).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.i)){n.i|=32;{if((o=V(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(N(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){F(e)}n.i&=-9,e()}if(o.style){let e=o.style;const n=f(t);if(!_.has(n)){const l=()=>{};((e,n,t)=>{let l=_.get(e);I&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,_.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.h,c=()=>S(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>{}))}componentOnReady(){return R(this).T}};t.A=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,N(r,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=D.j)&&void 0!==t?t:c(B);null!=e&&u.setAttribute("nonce",e),r.insertBefore(u,i?i.nextSibling:r.firstChild)}$=!1,a.length?a.map((e=>e.connectedCallback())):D.jmp((()=>d=setTimeout(x,30)))},A=e=>D.j=e,L=new WeakMap,R=e=>L.get(e),U=(e,n)=>L.set(n.v=e,n),W=(e,n)=>{const t={i:0,g:e,S:n,C:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],L.set(e,t)},q=(e,n)=>n in e,F=(e,n)=>(0,console.error)(e,n),H=new Map,V=e=>{const n=e.m.replace(/-/g,"_"),t=e.A,l=H.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(H.set(t,e),e[n])),F)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,P:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},G=e=>Promise.resolve(e),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),J=[],K=[],Q=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&D.i?Z(Y):D.raf(Y))},X=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){F(e)}e.length=0},Y=()=>{X(J),X(K),(l=J.length>0)&&D.raf(Y)},Z=e=>G().then(e),ee=Q(K,!0);export{T as b,r as h,G as p,U as r,A as s}