gauge-page-header 0.0.355 → 0.0.357
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.
- package/dist/cjs/eswat2-io_2.cjs.entry.js +1 -1
- package/dist/cjs/gauge-page-header.cjs.js +6 -2
- package/dist/cjs/{index-cb6db74b.js → index-09323b0f.js} +32 -0
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/esm/eswat2-io_2.entry.js +1 -1
- package/dist/esm/gauge-page-header.js +3 -2
- package/dist/esm/{index-23027f6a.js → index-7ccefc8c.js} +32 -1
- package/dist/esm/loader.js +3 -2
- package/dist/gauge-page-header/gauge-page-header.esm.js +1 -1
- package/dist/gauge-page-header/{p-99cc86ad.entry.js → p-9c390ca3.entry.js} +1 -1
- package/dist/gauge-page-header/p-fbf49e46.js +2 -0
- package/dist/types/stencil-public-runtime.d.ts +9 -0
- package/loader/index.d.ts +9 -0
- package/package.json +3 -3
- package/dist/gauge-page-header/p-8cccb2c9.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-09323b0f.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
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-09323b0f.js');
|
|
4
6
|
|
|
5
7
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
7
9
|
*/
|
|
8
10
|
const patchBrowser = () => {
|
|
9
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));
|
|
@@ -17,3 +19,5 @@ const patchBrowser = () => {
|
|
|
17
19
|
patchBrowser().then(options => {
|
|
18
20
|
return index.bootstrapLazy([["eswat2-io_2.cjs",[[1,"gauge-page-header",{"vehicleInfo":[16]}],[1,"eswat2-io"]]]], options);
|
|
19
21
|
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
|
@@ -68,6 +68,18 @@ const isComplexType = (o) => {
|
|
|
68
68
|
o = typeof o;
|
|
69
69
|
return o === 'object' || o === 'function';
|
|
70
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
73
|
+
* out of a DOM's head.
|
|
74
|
+
*
|
|
75
|
+
* @param doc The DOM containing the `head` to query against
|
|
76
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
77
|
+
* exists or the tag has no content.
|
|
78
|
+
*/
|
|
79
|
+
function queryNonceMetaTagContent(doc) {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
82
|
+
}
|
|
71
83
|
/**
|
|
72
84
|
* Production h() function based on Preact by
|
|
73
85
|
* Jason Miller (@developit)
|
|
@@ -204,6 +216,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
204
216
|
styles.set(scopeId, style);
|
|
205
217
|
};
|
|
206
218
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
219
|
+
var _a;
|
|
207
220
|
let scopeId = getScopeId(cmpMeta);
|
|
208
221
|
const style = styles.get(scopeId);
|
|
209
222
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -223,6 +236,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
223
236
|
styleElm = doc.createElement('style');
|
|
224
237
|
styleElm.innerHTML = style;
|
|
225
238
|
}
|
|
239
|
+
// Apply CSP nonce to the style tag if it exists
|
|
240
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
241
|
+
if (nonce != null) {
|
|
242
|
+
styleElm.setAttribute('nonce', nonce);
|
|
243
|
+
}
|
|
226
244
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
227
245
|
}
|
|
228
246
|
if (appliedStyles) {
|
|
@@ -1046,6 +1064,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1046
1064
|
}
|
|
1047
1065
|
};
|
|
1048
1066
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1067
|
+
var _a;
|
|
1049
1068
|
const endBootstrap = createTime();
|
|
1050
1069
|
const cmpTags = [];
|
|
1051
1070
|
const exclude = options.exclude || [];
|
|
@@ -1119,6 +1138,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1119
1138
|
{
|
|
1120
1139
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1121
1140
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1141
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1142
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1143
|
+
if (nonce != null) {
|
|
1144
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1145
|
+
}
|
|
1122
1146
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1123
1147
|
}
|
|
1124
1148
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1134,6 +1158,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1134
1158
|
// Fallback appLoad event
|
|
1135
1159
|
endBootstrap();
|
|
1136
1160
|
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1163
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1164
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1165
|
+
* @returns void
|
|
1166
|
+
*/
|
|
1167
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1137
1168
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1138
1169
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1139
1170
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1244,3 +1275,4 @@ exports.bootstrapLazy = bootstrapLazy;
|
|
|
1244
1275
|
exports.h = h;
|
|
1245
1276
|
exports.promiseResolve = promiseResolve;
|
|
1246
1277
|
exports.registerInstance = registerInstance;
|
|
1278
|
+
exports.setNonce = setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-09323b0f.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -18,4 +18,5 @@ const defineCustomElements = (win, options) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
21
22
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -14,6 +14,15 @@ export { GaugePageHeader as GaugePageHeader } from '../types/components/gauge-pa
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const setAssetPath: (path: string) => void;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare const setNonce: (nonce: string) => void
|
|
25
|
+
|
|
17
26
|
export interface SetPlatformOptions {
|
|
18
27
|
raf?: (c: FrameRequestCallback) => number;
|
|
19
28
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
1
|
+
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
2
|
export { Eswat2Io, defineCustomElement as defineCustomElementEswat2Io } from './eswat2-io.js';
|
|
3
3
|
export { GaugePageHeader, defineCustomElement as defineCustomElementGaugePageHeader } from './gauge-page-header.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-7ccefc8c.js';
|
|
2
|
+
export { s as setNonce } from './index-7ccefc8c.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
5
|
+
Stencil Client Patch Browser v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchBrowser = () => {
|
|
7
8
|
const importMeta = import.meta.url;
|
|
@@ -46,6 +46,18 @@ const isComplexType = (o) => {
|
|
|
46
46
|
o = typeof o;
|
|
47
47
|
return o === 'object' || o === 'function';
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
51
|
+
* out of a DOM's head.
|
|
52
|
+
*
|
|
53
|
+
* @param doc The DOM containing the `head` to query against
|
|
54
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
55
|
+
* exists or the tag has no content.
|
|
56
|
+
*/
|
|
57
|
+
function queryNonceMetaTagContent(doc) {
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
60
|
+
}
|
|
49
61
|
/**
|
|
50
62
|
* Production h() function based on Preact by
|
|
51
63
|
* Jason Miller (@developit)
|
|
@@ -182,6 +194,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
182
194
|
styles.set(scopeId, style);
|
|
183
195
|
};
|
|
184
196
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
197
|
+
var _a;
|
|
185
198
|
let scopeId = getScopeId(cmpMeta);
|
|
186
199
|
const style = styles.get(scopeId);
|
|
187
200
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
@@ -201,6 +214,11 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
201
214
|
styleElm = doc.createElement('style');
|
|
202
215
|
styleElm.innerHTML = style;
|
|
203
216
|
}
|
|
217
|
+
// Apply CSP nonce to the style tag if it exists
|
|
218
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
219
|
+
if (nonce != null) {
|
|
220
|
+
styleElm.setAttribute('nonce', nonce);
|
|
221
|
+
}
|
|
204
222
|
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
205
223
|
}
|
|
206
224
|
if (appliedStyles) {
|
|
@@ -1024,6 +1042,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1024
1042
|
}
|
|
1025
1043
|
};
|
|
1026
1044
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1045
|
+
var _a;
|
|
1027
1046
|
const endBootstrap = createTime();
|
|
1028
1047
|
const cmpTags = [];
|
|
1029
1048
|
const exclude = options.exclude || [];
|
|
@@ -1097,6 +1116,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1097
1116
|
{
|
|
1098
1117
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1099
1118
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1119
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1120
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1121
|
+
if (nonce != null) {
|
|
1122
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1123
|
+
}
|
|
1100
1124
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1101
1125
|
}
|
|
1102
1126
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1112,6 +1136,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1112
1136
|
// Fallback appLoad event
|
|
1113
1137
|
endBootstrap();
|
|
1114
1138
|
};
|
|
1139
|
+
/**
|
|
1140
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1141
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1142
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1143
|
+
* @returns void
|
|
1144
|
+
*/
|
|
1145
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1115
1146
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1116
1147
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1117
1148
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1218,4 +1249,4 @@ const flush = () => {
|
|
|
1218
1249
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1219
1250
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1220
1251
|
|
|
1221
|
-
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
|
|
1252
|
+
export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-7ccefc8c.js';
|
|
2
|
+
export { s as setNonce } from './index-7ccefc8c.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
5
|
+
Stencil Client Patch Esm v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchEsm = () => {
|
|
7
8
|
return promiseResolve();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as
|
|
1
|
+
import{p as e,b as o}from"./p-fbf49e46.js";export{s as setNonce}from"./p-fbf49e46.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-9c390ca3",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-fbf49e46.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 e,n,t=!1,l=!1;const o={},s=e=>"object"==(e=typeof e)||"function"===e;function r(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 c=(e,n,...t)=>{let l=null,o=!1,r=!1;const c=[],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&&r?c[c.length-1].t+=l:c.push(o?i(null,l):l),r=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,c.length>0&&(a.o=c),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,r)=>{if(t!==l){let c=W(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(c||"o"!==n[0]||"n"!==n[1]){const i=s(l);if((c||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&r||o)&&!i&&e.setAttribute(n,l=!0===l?"":l)}else n="-"===n[2]?n.slice(3):W(_,i)?i.slice(2):i[2]+n.slice(3),t&&B.rel(e,n,t,!1),l&&B.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.$,r=e&&e.l||o,c=n.l||o;for(l in r)l in c||d(s,l,r[l],void 0,t,n.i);for(l in c)d(s,l,r[l],c[l],t,n.i)},y=(n,l,o)=>{const s=l.o[o];let r,c,i=0;if(null!==s.t)r=s.$=z.createTextNode(s.t);else{if(t||(t="svg"===s.u),r=s.$=z.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&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),s.o)for(i=0;i<s.o.length;++i)c=y(n,s,i),c&&r.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===r.tagName&&(t=!0)}return r},h=(e,t,l,o,s,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=r;++s)o[s]&&(c=y(null,l,s),c&&(o[s].$=c,i.insertBefore(c,t)))},w=(e,n,t,l)=>{for(;n<=t;++n)(l=e[n])&&l.$.remove()},g=(e,n)=>e.u===n.u,v=(e,n)=>{const l=n.$=e.$,o=e.o,s=n.o,r=n.u,c=n.t;null===c?(t="svg"===r||"foreignObject"!==r&&t,p(e,n,t),null!==o&&null!==s?((e,n,t,l)=>{let o,s=0,r=0,c=n.length-1,i=n[0],u=n[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&r<=a;)null==i?i=n[++s]:null==u?u=n[--c]:null==f?f=l[++r]:null==d?d=l[--a]:g(i,f)?(v(i,f),i=n[++s],f=l[++r]):g(u,d)?(v(u,d),u=n[--c],d=l[--a]):g(i,d)?(v(i,d),e.insertBefore(i.$,u.$.nextSibling),i=n[++s],d=l[--a]):g(u,f)?(v(u,f),e.insertBefore(u.$,i.$),u=n[--c],f=l[++r]):(o=y(n&&n[r],t,r),f=l[++r],o&&i.$.parentNode.insertBefore(o,i.$));s>c?h(e,null==l[a+1]?null:l[a+1].$,t,l,r,a):r>a&&w(n,s,c)})(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"===r&&(t=!1)):e.t!==c&&(l.data=c)},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),Z((()=>j(e,n)));e.i|=512},j=(e,n)=>{const t=e.g;return x(void 0,(()=>O(e,t,n)))},O=async(e,n,t)=>{const l=e.v,o=l["s-rc"];t&&(e=>{const n=e.S,t=e.v,l=n.i,o=((e,n)=>{var t;let l=f(n);const o=V.get(l);if(e=11===e.nodeType?e:z,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=z.createElement("style"),n.innerHTML=o;const l=null!==(t=B.j)&&void 0!==t?t:r(z);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);M(e,n),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const n=l["s-p"],t=()=>k(e);0===n.length?t():(Promise.all(n).then(t),e.i|=4,n.length=0)}},M=(t,l)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l)=>{const o=t.v,s=t.O||i(null,null),r=(e=>e&&e.u===u)(l)?l:c(null,null,l);n=o.tagName,r.u=null,r.i|=4,t.O=r,r.$=s.$=o.shadowRoot||o,e=o["s-sc"],v(s,r)})(t,l)}catch(e){q(e,t.v)}return null},k=e=>{const n=e.v,t=e.h;64&e.i||(e.i|=64,P(n),e.M(n),t||C()),e.p&&(e.p(),e.p=void 0),512&e.i&&Y((()=>S(e,!1))),e.i&=-517},C=()=>{P(z.documentElement),Y((()=>(e=>{const n=B.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(n),n})(_)))},x=(e,n)=>e&&e.then?e.then(n):n(),P=e=>e.classList.add("hydrated"),E=(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)=>L(this).C.get(n))(0,e)},set(n){((e,n,t)=>{const l=L(e),o=l.C.get(n),r=l.i,c=l.g;t=(e=>(null==e||s(e),e))(t),8&r&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.C.set(n,t),c&&2==(18&r)&&S(l,!1))})(this,e,n)},configurable:!0,enumerable:!0})}))}return e},N=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=_.customElements,c=z.head,i=c.querySelector("meta[charset]"),u=z.createElement("style"),a=[];let d,$=!0;Object.assign(B,n),B.P=new URL(n.resourcesUrl||"./",z.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 r=t.m,c=class extends HTMLElement{constructor(e){super(e),U(e=this,t),1&t.i&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?a.push(this):B.jmp((()=>(e=>{if(0==(1&B.i)){const n=L(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)){{if(n.i|=32,(o=H(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(E(o,t,2),o.isProxied=!0);const e=()=>{};n.i|=8;try{new o(n)}catch(e){q(e)}n.i&=-9,e()}if(o.style){let e=o.style;const n=f(t);if(!V.has(n)){const l=()=>{};((e,n,t)=>{let l=V.get(e);G&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,V.set(e,l)})(n,e,!!(1&t.i)),l()}}}const s=n.h,r=()=>S(n,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,n,t)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>{}))}componentOnReady(){return L(this).T}};t.A=e[0],o.includes(r)||s.get(r)||(l.push(r),s.define(r,E(c,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(t=B.j)&&void 0!==t?t:r(z);null!=e&&u.setAttribute("nonce",e),c.insertBefore(u,i?i.nextSibling:c.firstChild)}$=!1,a.length?a.map((e=>e.connectedCallback())):B.jmp((()=>d=setTimeout(C,30)))},T=e=>B.j=e,A=new WeakMap,L=e=>A.get(e),R=(e,n)=>A.set(n.g=e,n),U=(e,n)=>{const t={i:0,v:e,S:n,C:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,t)},W=(e,n)=>n in e,q=(e,n)=>(0,console.error)(e,n),F=new Map,H=e=>{const n=e.m.replace(/-/g,"_"),t=e.A,l=F.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(F.set(t,e),e[n])),q)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={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)},D=e=>Promise.resolve(e),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),I=[],J=[],K=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&B.i?Y(X):B.raf(X))},Q=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){q(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&B.raf(X)},Y=e=>D().then(e),Z=K(J,!0);export{N as b,c as h,D as p,R as r,T as s}
|
|
@@ -257,6 +257,15 @@ export declare function getAssetPath(path: string): string;
|
|
|
257
257
|
* @returns the set path
|
|
258
258
|
*/
|
|
259
259
|
export declare function setAssetPath(path: string): string;
|
|
260
|
+
/**
|
|
261
|
+
* Used to specify a nonce value that corresponds with an application's
|
|
262
|
+
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
|
263
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
264
|
+
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
|
265
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
|
266
|
+
* @param nonce The value to be used for the nonce attribute.
|
|
267
|
+
*/
|
|
268
|
+
export declare function setNonce(nonce: string): void;
|
|
260
269
|
/**
|
|
261
270
|
* Retrieve a Stencil element for a given reference
|
|
262
271
|
* @param ref the ref to get the Stencil element for
|
package/loader/index.d.ts
CHANGED
|
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gauge-page-header",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.357",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"format": "prettier --write src"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stencil/core": "2.
|
|
29
|
+
"@stencil/core": "2.22.1"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/jest": "29.2.5",
|
|
34
34
|
"@types/puppeteer": "5.4.7",
|
|
35
|
-
"cspell": "6.
|
|
35
|
+
"cspell": "6.19.0",
|
|
36
36
|
"eslint": "8.32.0",
|
|
37
37
|
"jest": "29.3.1",
|
|
38
38
|
"prettier": "2.8.3",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=!1;const s={},o=e=>"object"==(e=typeof e)||"function"===e,r=(e,t,...n)=>{let l=null,s=!1,r=!1;const i=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!o(l))&&(l+=""),s&&r?i[i.length-1].t+=l:i.push(s?c(null,l):l),r=s)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=c(e,null);return a.l=t,i.length>0&&(a.o=i),a},c=(e,t)=>({i:0,u:e,t,$:null,o:null,l:null}),i={},u=new WeakMap,a=e=>"sc-"+e.p,f=(e,t,n,l,s,r)=>{if(n!==l){let c=R(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,s=d(n),o=d(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if(c||"o"!==t[0]||"n"!==t[1]){const i=o(l);if((c||i&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&r||s)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):R(H,i)?i.slice(2):i[2]+t.slice(3),n&&_.rel(e,t,n,!1),l&&_.ael(e,t,l,!1)}},$=/\s/,d=e=>e?e.split($):[],p=(e,t,n,l)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,r=e&&e.l||s,c=t.l||s;for(l in r)l in c||f(o,l,r[l],void 0,n,t.i);for(l in c)f(o,l,r[l],c[l],n,t.i)},y=(t,l,s)=>{const o=l.o[s];let r,c,i=0;if(null!==o.t)r=o.$=V.createTextNode(o.t);else{if(n||(n="svg"===o.u),r=o.$=V.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),p(null,o,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=y(t,o,i),c&&r.appendChild(c);"svg"===o.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},h=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=y(null,l,o),c&&(s[o].$=c,i.insertBefore(c,n)))},m=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.$.remove()},w=(e,t)=>e.u===t.u,g=(e,t)=>{const l=t.$=e.$,s=e.o,o=t.o,r=t.u,c=t.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,p(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],$=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==$?$=l[--a]:w(i,f)?(g(i,f),i=t[++o],f=l[++r]):w(u,$)?(g(u,$),u=t[--c],$=l[--a]):w(i,$)?(g(i,$),e.insertBefore(i.$,u.$.nextSibling),i=t[++o],$=l[--a]):w(u,f)?(g(u,f),e.insertBefore(u.$,i.$),u=t[--c],f=l[++r]):(s=y(t&&t[r],n,r),f=l[++r],s&&i.$.parentNode.insertBefore(s,i.$));o>c?h(e,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&m(t,o,c)})(l,s,t,o):null!==o?(null!==e.t&&(l.textContent=""),h(l,null,t,o,0,o.length-1)):null!==s&&m(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.t!==c&&(l.data=c)},b=(e,t)=>{t&&!e.h&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.h=t)))},v=(e,t)=>{if(e.i|=16,!(4&e.i))return b(e,e.m),X((()=>S(e,t)));e.i|=512},S=(e,t)=>{const n=e.g;return C(void 0,(()=>j(e,n,t)))},j=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.S,n=e.v,l=t.i,s=((e,t)=>{let n=a(t);const l=F.get(n);if(e=11===e.nodeType?e:V,l)if("string"==typeof l){let t,s=u.get(e=e.head||e);s||u.set(e,s=new Set),s.has(n)||(t=V.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);O(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>M(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},O=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.v,o=n.j||c(null,null),u=(e=>e&&e.u===i)(l)?l:r(null,null,l);t=s.tagName,u.u=null,u.i|=4,n.j=u,u.$=o.$=s.shadowRoot||s,e=s["s-sc"],g(o,u)})(n,l)}catch(e){U(e,n.v)}return null},M=e=>{const t=e.v,n=e.m;64&e.i||(e.i|=64,x(t),e.O(t),n||k()),e.h&&(e.h(),e.h=void 0),512&e.i&&Q((()=>v(e,!1))),e.i&=-517},k=()=>{x(V.documentElement),Q((()=>(e=>{const t=_.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(t),t})(H)))},C=(e,t)=>e&&e.then?e.then(t):t(),x=e=>e.classList.add("hydrated"),P=(e,t,n)=>{if(t.M){const l=Object.entries(t.M),s=e.prototype;l.map((([e,[t]])=>{(31&t||2&n&&32&t)&&Object.defineProperty(s,e,{get(){return((e,t)=>T(this).k.get(t))(0,e)},set(t){((e,t,n)=>{const l=T(e),s=l.k.get(t),r=l.i,c=l.g;n=(e=>(null==e||o(e),e))(n),8&r&&void 0!==s||n===s||Number.isNaN(s)&&Number.isNaN(n)||(l.k.set(t,n),c&&2==(18&r)&&v(l,!1))})(this,e,t)},configurable:!0,enumerable:!0})}))}return e},E=(e,t={})=>{const n=[],l=t.exclude||[],s=H.customElements,o=V.head,r=o.querySelector("meta[charset]"),c=V.createElement("style"),i=[];let u,f=!0;Object.assign(_,t),_.C=new URL(t.resourcesUrl||"./",V.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],p:t[1],M:t[2],P:t[3]};o.M=t[2];const r=o.p,c=class extends HTMLElement{constructor(e){super(e),L(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),f?i.push(this):_.jmp((()=>(e=>{if(0==(1&_.i)){const t=T(e),n=t.S,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){b(t,t.m=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=q(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(P(s,n,2),s.isProxied=!0);const e=()=>{};t.i|=8;try{new s(t)}catch(e){U(e)}t.i&=-9,e()}if(s.style){let e=s.style;const t=a(n);if(!F.has(t)){const l=()=>{};((e,t,n)=>{let l=F.get(e);B&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,F.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.m,r=()=>v(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){_.jmp((()=>{}))}componentOnReady(){return T(this).N}};o.T=e[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,P(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),f=!1,i.length?i.map((e=>e.connectedCallback())):_.jmp((()=>u=setTimeout(k,30)))},N=new WeakMap,T=e=>N.get(e),A=(e,t)=>N.set(t.g=e,t),L=(e,t)=>{const n={i:0,v:e,S:t,k:new Map};return n.N=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],N.set(e,n)},R=(e,t)=>t in e,U=(e,t)=>(0,console.error)(e,t),W=new Map,q=e=>{const t=e.p.replace(/-/g,"_"),n=e.T,l=W.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(W.set(n,e),e[t])),U)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},F=new Map,H="undefined"!=typeof window?window:{},V=H.document||{head:{}},_={i:0,C:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},z=e=>Promise.resolve(e),B=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),D=[],G=[],I=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&_.i?Q(K):_.raf(K))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){U(e)}e.length=0},K=()=>{J(D),J(G),(l=D.length>0)&&_.raf(K)},Q=e=>z().then(e),X=I(G,!0);export{E as b,r as h,z as p,A as r}
|