gauge-page-header 0.1.2 → 0.1.4

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-9b3c3192.js');
5
+ const index = require('./index-a04a6b98.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
  const Eswat2IoStyle0 = eswat2IoCss;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9b3c3192.js');
5
+ const index = require('./index-a04a6b98.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.27.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  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));
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'gauge-page-header';
24
- const BUILD = /* gauge-page-header */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* gauge-page-header */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.27.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -37,10 +37,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
37
37
  var HTML_NS = "http://www.w3.org/1999/xhtml";
38
38
 
39
39
  // src/client/client-host-ref.ts
40
- var hostRefs = /* @__PURE__ */ new WeakMap();
41
- var getHostRef = (ref) => hostRefs.get(ref);
40
+ var getHostRef = (ref) => {
41
+ if (ref.__stencil__getHostRef) {
42
+ return ref.__stencil__getHostRef();
43
+ }
44
+ return void 0;
45
+ };
42
46
  var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
47
+ lazyInstance.__stencil__getHostRef = () => hostRef;
48
+ hostRef.$lazyInstance$ = lazyInstance;
44
49
  };
45
50
  var registerHost = (hostElement, cmpMeta) => {
46
51
  const hostRef = {
@@ -54,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
54
59
  hostElement["s-p"] = [];
55
60
  hostElement["s-rc"] = [];
56
61
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
62
+ const ref = hostRef;
63
+ hostElement.__stencil__getHostRef = () => ref;
58
64
  return ref;
59
65
  };
60
66
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -98,7 +104,6 @@ var HYDRATED_STYLE_ID = "sty-id";
98
104
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
99
105
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
100
106
  var win = typeof window !== "undefined" ? window : {};
101
- var doc = win.document || { head: {} };
102
107
  var plt = {
103
108
  $flags$: 0,
104
109
  $resourcesUrl$: "",
@@ -158,9 +163,9 @@ var isComplexType = (o) => {
158
163
  };
159
164
 
160
165
  // src/utils/query-nonce-meta-tag-content.ts
161
- function queryNonceMetaTagContent(doc2) {
166
+ function queryNonceMetaTagContent(doc) {
162
167
  var _a, _b, _c;
163
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
168
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
164
169
  }
165
170
 
166
171
  // src/utils/result.ts
@@ -319,7 +324,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
319
324
  var _a;
320
325
  const scopeId2 = getScopeId(cmpMeta);
321
326
  const style = styles.get(scopeId2);
322
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
327
+ if (!win.document) {
328
+ return scopeId2;
329
+ }
330
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
323
331
  if (style) {
324
332
  if (typeof style === "string") {
325
333
  styleContainerNode = styleContainerNode.head || styleContainerNode;
@@ -330,9 +338,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
330
338
  }
331
339
  if (!appliedStyles.has(scopeId2)) {
332
340
  {
333
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
334
342
  styleElm.innerHTML = style;
335
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
343
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
336
344
  if (nonce != null) {
337
345
  styleElm.setAttribute("nonce", nonce);
338
346
  }
@@ -394,68 +402,69 @@ var attachStyles = (hostRef) => {
394
402
  };
395
403
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
396
404
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
397
- if (oldValue !== newValue) {
398
- let isProp = isMemberInElement(elm, memberName);
399
- let ln = memberName.toLowerCase();
400
- if (memberName === "class") {
401
- const classList = elm.classList;
402
- const oldClasses = parseClassList(oldValue);
403
- let newClasses = parseClassList(newValue);
404
- {
405
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
406
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
407
- }
408
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
409
- if (memberName[2] === "-") {
410
- memberName = memberName.slice(3);
411
- } else if (isMemberInElement(win, ln)) {
412
- memberName = ln.slice(2);
413
- } else {
414
- memberName = ln[2] + memberName.slice(3);
405
+ if (oldValue === newValue) {
406
+ return;
407
+ }
408
+ let isProp = isMemberInElement(elm, memberName);
409
+ let ln = memberName.toLowerCase();
410
+ if (memberName === "class") {
411
+ const classList = elm.classList;
412
+ const oldClasses = parseClassList(oldValue);
413
+ let newClasses = parseClassList(newValue);
414
+ {
415
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
416
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
417
+ }
418
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
419
+ if (memberName[2] === "-") {
420
+ memberName = memberName.slice(3);
421
+ } else if (isMemberInElement(win, ln)) {
422
+ memberName = ln.slice(2);
423
+ } else {
424
+ memberName = ln[2] + memberName.slice(3);
425
+ }
426
+ if (oldValue || newValue) {
427
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
428
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
429
+ if (oldValue) {
430
+ plt.rel(elm, memberName, oldValue, capture);
415
431
  }
416
- if (oldValue || newValue) {
417
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
418
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
419
- if (oldValue) {
420
- plt.rel(elm, memberName, oldValue, capture);
421
- }
422
- if (newValue) {
423
- plt.ael(elm, memberName, newValue, capture);
424
- }
432
+ if (newValue) {
433
+ plt.ael(elm, memberName, newValue, capture);
425
434
  }
426
- } else {
427
- const isComplex = isComplexType(newValue);
428
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
429
- try {
430
- if (!elm.tagName.includes("-")) {
431
- const n = newValue == null ? "" : newValue;
432
- if (memberName === "list") {
433
- isProp = false;
434
- } else if (oldValue == null || elm[memberName] != n) {
435
- if (typeof elm.__lookupSetter__(memberName) === "function") {
436
- elm[memberName] = n;
437
- } else {
438
- elm.setAttribute(memberName, n);
439
- }
435
+ }
436
+ } else {
437
+ const isComplex = isComplexType(newValue);
438
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
439
+ try {
440
+ if (!elm.tagName.includes("-")) {
441
+ const n = newValue == null ? "" : newValue;
442
+ if (memberName === "list") {
443
+ isProp = false;
444
+ } else if (oldValue == null || elm[memberName] != n) {
445
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
446
+ elm[memberName] = n;
447
+ } else {
448
+ elm.setAttribute(memberName, n);
440
449
  }
441
- } else if (elm[memberName] !== newValue) {
442
- elm[memberName] = newValue;
443
450
  }
444
- } catch (e) {
451
+ } else if (elm[memberName] !== newValue) {
452
+ elm[memberName] = newValue;
445
453
  }
454
+ } catch (e) {
446
455
  }
447
- if (newValue == null || newValue === false) {
448
- if (newValue !== false || elm.getAttribute(memberName) === "") {
449
- {
450
- elm.removeAttribute(memberName);
451
- }
452
- }
453
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
454
- newValue = newValue === true ? "" : newValue;
456
+ }
457
+ if (newValue == null || newValue === false) {
458
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
455
459
  {
456
- elm.setAttribute(memberName, newValue);
460
+ elm.removeAttribute(memberName);
457
461
  }
458
462
  }
463
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
464
+ newValue = newValue === true ? "" : newValue;
465
+ {
466
+ elm.setAttribute(memberName, newValue);
467
+ }
459
468
  }
460
469
  }
461
470
  };
@@ -518,12 +527,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
518
527
  let elm;
519
528
  let childNode;
520
529
  if (newVNode2.$text$ !== null) {
521
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
530
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
522
531
  } else {
523
532
  if (!isSvgMode) {
524
533
  isSvgMode = newVNode2.$tag$ === "svg";
525
534
  }
526
- elm = newVNode2.$elm$ = doc.createElementNS(
535
+ if (!win.document) {
536
+ throw new Error(
537
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
538
+ );
539
+ }
540
+ elm = newVNode2.$elm$ = win.document.createElementNS(
527
541
  isSvgMode ? SVG_NS : HTML_NS,
528
542
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
529
543
  ) ;
@@ -686,9 +700,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
686
700
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
687
701
  }
688
702
  {
689
- {
690
- updateElement(oldVNode, newVNode2, isSvgMode);
691
- }
703
+ updateElement(oldVNode, newVNode2, isSvgMode);
692
704
  }
693
705
  if (oldChildren !== null && newChildren !== null) {
694
706
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -771,6 +783,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
771
783
  );
772
784
  }
773
785
  let maybePromise;
786
+ if (isInitialLoad) {
787
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
788
+ } else {
789
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
790
+ }
791
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
774
792
  endSchedule();
775
793
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
776
794
  };
@@ -834,12 +852,15 @@ var postUpdateComponent = (hostRef) => {
834
852
  const tagName = hostRef.$cmpMeta$.$tagName$;
835
853
  const elm = hostRef.$hostElement$;
836
854
  const endPostUpdate = createTime("postUpdate", tagName);
855
+ const instance = hostRef.$lazyInstance$ ;
837
856
  const ancestorComponent = hostRef.$ancestorComponent$;
857
+ safeCall(instance, "componentDidRender", void 0, elm);
838
858
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
839
859
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
840
860
  {
841
861
  addHydratedFlag(elm);
842
862
  }
863
+ safeCall(instance, "componentDidLoad", void 0, elm);
843
864
  endPostUpdate();
844
865
  {
845
866
  hostRef.$onReadyResolve$(elm);
@@ -848,6 +869,7 @@ var postUpdateComponent = (hostRef) => {
848
869
  }
849
870
  }
850
871
  } else {
872
+ safeCall(instance, "componentDidUpdate", void 0, elm);
851
873
  endPostUpdate();
852
874
  }
853
875
  {
@@ -864,6 +886,16 @@ var postUpdateComponent = (hostRef) => {
864
886
  var appDidLoad = (who) => {
865
887
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
866
888
  };
889
+ var safeCall = (instance, method, arg, elm) => {
890
+ if (instance && instance[method]) {
891
+ try {
892
+ return instance[method](arg);
893
+ } catch (e) {
894
+ consoleError(e, elm);
895
+ }
896
+ }
897
+ return void 0;
898
+ };
867
899
  var addHydratedFlag = (elm) => {
868
900
  var _a;
869
901
  return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
@@ -888,6 +920,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
888
920
  hostRef.$instanceValues$.set(propName, newVal);
889
921
  if (instance) {
890
922
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
923
+ if (instance.componentShouldUpdate) {
924
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
925
+ return;
926
+ }
927
+ }
891
928
  scheduleUpdate(hostRef, false);
892
929
  }
893
930
  }
@@ -1006,6 +1043,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1006
1043
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1007
1044
  }
1008
1045
  endNewInstance();
1046
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1009
1047
  } else {
1010
1048
  Cstr = elm.constructor;
1011
1049
  const cmpTag = elm.localName;
@@ -1033,6 +1071,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1033
1071
  }
1034
1072
  };
1035
1073
  var fireConnectedCallback = (instance, elm) => {
1074
+ {
1075
+ safeCall(instance, "connectedCallback", void 0, elm);
1076
+ }
1036
1077
  };
1037
1078
 
1038
1079
  // src/runtime/connected-callback.ts
@@ -1065,20 +1106,27 @@ var connectedCallback = (elm) => {
1065
1106
  initializeComponent(elm, hostRef, cmpMeta);
1066
1107
  }
1067
1108
  } else {
1068
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1069
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1109
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1110
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1111
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1112
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1070
1113
  }
1071
1114
  }
1072
1115
  endConnected();
1073
1116
  }
1074
1117
  };
1075
1118
  var disconnectInstance = (instance, elm) => {
1119
+ {
1120
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1121
+ }
1076
1122
  };
1077
1123
  var disconnectedCallback = async (elm) => {
1078
1124
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1079
1125
  const hostRef = getHostRef(elm);
1080
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1081
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1126
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1127
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1128
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1129
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1082
1130
  }
1083
1131
  }
1084
1132
  if (rootAppliedStyles.has(elm)) {
@@ -1092,18 +1140,22 @@ var disconnectedCallback = async (elm) => {
1092
1140
  // src/runtime/bootstrap-lazy.ts
1093
1141
  var bootstrapLazy = (lazyBundles, options = {}) => {
1094
1142
  var _a;
1143
+ if (!win.document) {
1144
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1145
+ return;
1146
+ }
1095
1147
  const endBootstrap = createTime();
1096
1148
  const cmpTags = [];
1097
1149
  const exclude = options.exclude || [];
1098
1150
  const customElements2 = win.customElements;
1099
- const head = doc.head;
1151
+ const head = win.document.head;
1100
1152
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1101
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1153
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1102
1154
  const deferredConnectedCallbacks = [];
1103
1155
  let appLoadFallback;
1104
1156
  let isBootstrapping = true;
1105
1157
  Object.assign(plt, options);
1106
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1158
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1107
1159
  let hasSlotRelocation = false;
1108
1160
  lazyBundles.map((lazyBundle) => {
1109
1161
  lazyBundle[1].map((compactMeta) => {
@@ -1195,7 +1247,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1195
1247
  }
1196
1248
  if (dataStyles.innerHTML.length) {
1197
1249
  dataStyles.setAttribute("data-styles", "");
1198
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1250
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1199
1251
  if (nonce != null) {
1200
1252
  dataStyles.setAttribute("nonce", nonce);
1201
1253
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9b3c3192.js');
5
+ const index = require('./index-a04a6b98.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.26.0",
8
+ "version": "4.27.1",
9
9
  "typescriptVersion": "5.5.4"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-58f119b6.js';
1
+ import { r as registerInstance, h } from './index-aebaf980.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
  const Eswat2IoStyle0 = eswat2IoCss;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-58f119b6.js';
2
- export { s as setNonce } from './index-58f119b6.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-aebaf980.js';
2
+ export { s as setNonce } from './index-aebaf980.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.27.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'gauge-page-header';
2
- const BUILD = /* gauge-page-header */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* gauge-page-header */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.27.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -15,10 +15,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
15
15
  var HTML_NS = "http://www.w3.org/1999/xhtml";
16
16
 
17
17
  // src/client/client-host-ref.ts
18
- var hostRefs = /* @__PURE__ */ new WeakMap();
19
- var getHostRef = (ref) => hostRefs.get(ref);
18
+ var getHostRef = (ref) => {
19
+ if (ref.__stencil__getHostRef) {
20
+ return ref.__stencil__getHostRef();
21
+ }
22
+ return void 0;
23
+ };
20
24
  var registerInstance = (lazyInstance, hostRef) => {
21
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
25
+ lazyInstance.__stencil__getHostRef = () => hostRef;
26
+ hostRef.$lazyInstance$ = lazyInstance;
22
27
  };
23
28
  var registerHost = (hostElement, cmpMeta) => {
24
29
  const hostRef = {
@@ -32,7 +37,8 @@ var registerHost = (hostElement, cmpMeta) => {
32
37
  hostElement["s-p"] = [];
33
38
  hostElement["s-rc"] = [];
34
39
  }
35
- const ref = hostRefs.set(hostElement, hostRef);
40
+ const ref = hostRef;
41
+ hostElement.__stencil__getHostRef = () => ref;
36
42
  return ref;
37
43
  };
38
44
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -76,7 +82,6 @@ var HYDRATED_STYLE_ID = "sty-id";
76
82
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
77
83
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
78
84
  var win = typeof window !== "undefined" ? window : {};
79
- var doc = win.document || { head: {} };
80
85
  var plt = {
81
86
  $flags$: 0,
82
87
  $resourcesUrl$: "",
@@ -136,9 +141,9 @@ var isComplexType = (o) => {
136
141
  };
137
142
 
138
143
  // src/utils/query-nonce-meta-tag-content.ts
139
- function queryNonceMetaTagContent(doc2) {
144
+ function queryNonceMetaTagContent(doc) {
140
145
  var _a, _b, _c;
141
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
146
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
142
147
  }
143
148
 
144
149
  // src/utils/result.ts
@@ -297,7 +302,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
297
302
  var _a;
298
303
  const scopeId2 = getScopeId(cmpMeta);
299
304
  const style = styles.get(scopeId2);
300
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
305
+ if (!win.document) {
306
+ return scopeId2;
307
+ }
308
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
301
309
  if (style) {
302
310
  if (typeof style === "string") {
303
311
  styleContainerNode = styleContainerNode.head || styleContainerNode;
@@ -308,9 +316,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
308
316
  }
309
317
  if (!appliedStyles.has(scopeId2)) {
310
318
  {
311
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
319
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
312
320
  styleElm.innerHTML = style;
313
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
321
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
314
322
  if (nonce != null) {
315
323
  styleElm.setAttribute("nonce", nonce);
316
324
  }
@@ -372,68 +380,69 @@ var attachStyles = (hostRef) => {
372
380
  };
373
381
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
374
382
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
375
- if (oldValue !== newValue) {
376
- let isProp = isMemberInElement(elm, memberName);
377
- let ln = memberName.toLowerCase();
378
- if (memberName === "class") {
379
- const classList = elm.classList;
380
- const oldClasses = parseClassList(oldValue);
381
- let newClasses = parseClassList(newValue);
382
- {
383
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
384
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
385
- }
386
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
387
- if (memberName[2] === "-") {
388
- memberName = memberName.slice(3);
389
- } else if (isMemberInElement(win, ln)) {
390
- memberName = ln.slice(2);
391
- } else {
392
- memberName = ln[2] + memberName.slice(3);
383
+ if (oldValue === newValue) {
384
+ return;
385
+ }
386
+ let isProp = isMemberInElement(elm, memberName);
387
+ let ln = memberName.toLowerCase();
388
+ if (memberName === "class") {
389
+ const classList = elm.classList;
390
+ const oldClasses = parseClassList(oldValue);
391
+ let newClasses = parseClassList(newValue);
392
+ {
393
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
394
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
395
+ }
396
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
397
+ if (memberName[2] === "-") {
398
+ memberName = memberName.slice(3);
399
+ } else if (isMemberInElement(win, ln)) {
400
+ memberName = ln.slice(2);
401
+ } else {
402
+ memberName = ln[2] + memberName.slice(3);
403
+ }
404
+ if (oldValue || newValue) {
405
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
406
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
407
+ if (oldValue) {
408
+ plt.rel(elm, memberName, oldValue, capture);
393
409
  }
394
- if (oldValue || newValue) {
395
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
396
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
397
- if (oldValue) {
398
- plt.rel(elm, memberName, oldValue, capture);
399
- }
400
- if (newValue) {
401
- plt.ael(elm, memberName, newValue, capture);
402
- }
410
+ if (newValue) {
411
+ plt.ael(elm, memberName, newValue, capture);
403
412
  }
404
- } else {
405
- const isComplex = isComplexType(newValue);
406
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
407
- try {
408
- if (!elm.tagName.includes("-")) {
409
- const n = newValue == null ? "" : newValue;
410
- if (memberName === "list") {
411
- isProp = false;
412
- } else if (oldValue == null || elm[memberName] != n) {
413
- if (typeof elm.__lookupSetter__(memberName) === "function") {
414
- elm[memberName] = n;
415
- } else {
416
- elm.setAttribute(memberName, n);
417
- }
413
+ }
414
+ } else {
415
+ const isComplex = isComplexType(newValue);
416
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
417
+ try {
418
+ if (!elm.tagName.includes("-")) {
419
+ const n = newValue == null ? "" : newValue;
420
+ if (memberName === "list") {
421
+ isProp = false;
422
+ } else if (oldValue == null || elm[memberName] != n) {
423
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
424
+ elm[memberName] = n;
425
+ } else {
426
+ elm.setAttribute(memberName, n);
418
427
  }
419
- } else if (elm[memberName] !== newValue) {
420
- elm[memberName] = newValue;
421
428
  }
422
- } catch (e) {
429
+ } else if (elm[memberName] !== newValue) {
430
+ elm[memberName] = newValue;
423
431
  }
432
+ } catch (e) {
424
433
  }
425
- if (newValue == null || newValue === false) {
426
- if (newValue !== false || elm.getAttribute(memberName) === "") {
427
- {
428
- elm.removeAttribute(memberName);
429
- }
430
- }
431
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
432
- newValue = newValue === true ? "" : newValue;
434
+ }
435
+ if (newValue == null || newValue === false) {
436
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
433
437
  {
434
- elm.setAttribute(memberName, newValue);
438
+ elm.removeAttribute(memberName);
435
439
  }
436
440
  }
441
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
442
+ newValue = newValue === true ? "" : newValue;
443
+ {
444
+ elm.setAttribute(memberName, newValue);
445
+ }
437
446
  }
438
447
  }
439
448
  };
@@ -496,12 +505,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
496
505
  let elm;
497
506
  let childNode;
498
507
  if (newVNode2.$text$ !== null) {
499
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
508
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
500
509
  } else {
501
510
  if (!isSvgMode) {
502
511
  isSvgMode = newVNode2.$tag$ === "svg";
503
512
  }
504
- elm = newVNode2.$elm$ = doc.createElementNS(
513
+ if (!win.document) {
514
+ throw new Error(
515
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
516
+ );
517
+ }
518
+ elm = newVNode2.$elm$ = win.document.createElementNS(
505
519
  isSvgMode ? SVG_NS : HTML_NS,
506
520
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
507
521
  ) ;
@@ -664,9 +678,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
664
678
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
665
679
  }
666
680
  {
667
- {
668
- updateElement(oldVNode, newVNode2, isSvgMode);
669
- }
681
+ updateElement(oldVNode, newVNode2, isSvgMode);
670
682
  }
671
683
  if (oldChildren !== null && newChildren !== null) {
672
684
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -749,6 +761,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
749
761
  );
750
762
  }
751
763
  let maybePromise;
764
+ if (isInitialLoad) {
765
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
766
+ } else {
767
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
768
+ }
769
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
752
770
  endSchedule();
753
771
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
754
772
  };
@@ -812,12 +830,15 @@ var postUpdateComponent = (hostRef) => {
812
830
  const tagName = hostRef.$cmpMeta$.$tagName$;
813
831
  const elm = hostRef.$hostElement$;
814
832
  const endPostUpdate = createTime("postUpdate", tagName);
833
+ const instance = hostRef.$lazyInstance$ ;
815
834
  const ancestorComponent = hostRef.$ancestorComponent$;
835
+ safeCall(instance, "componentDidRender", void 0, elm);
816
836
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
817
837
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
818
838
  {
819
839
  addHydratedFlag(elm);
820
840
  }
841
+ safeCall(instance, "componentDidLoad", void 0, elm);
821
842
  endPostUpdate();
822
843
  {
823
844
  hostRef.$onReadyResolve$(elm);
@@ -826,6 +847,7 @@ var postUpdateComponent = (hostRef) => {
826
847
  }
827
848
  }
828
849
  } else {
850
+ safeCall(instance, "componentDidUpdate", void 0, elm);
829
851
  endPostUpdate();
830
852
  }
831
853
  {
@@ -842,6 +864,16 @@ var postUpdateComponent = (hostRef) => {
842
864
  var appDidLoad = (who) => {
843
865
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
844
866
  };
867
+ var safeCall = (instance, method, arg, elm) => {
868
+ if (instance && instance[method]) {
869
+ try {
870
+ return instance[method](arg);
871
+ } catch (e) {
872
+ consoleError(e, elm);
873
+ }
874
+ }
875
+ return void 0;
876
+ };
845
877
  var addHydratedFlag = (elm) => {
846
878
  var _a;
847
879
  return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
@@ -866,6 +898,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
866
898
  hostRef.$instanceValues$.set(propName, newVal);
867
899
  if (instance) {
868
900
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
901
+ if (instance.componentShouldUpdate) {
902
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
903
+ return;
904
+ }
905
+ }
869
906
  scheduleUpdate(hostRef, false);
870
907
  }
871
908
  }
@@ -984,6 +1021,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1021
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
985
1022
  }
986
1023
  endNewInstance();
1024
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
987
1025
  } else {
988
1026
  Cstr = elm.constructor;
989
1027
  const cmpTag = elm.localName;
@@ -1011,6 +1049,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1011
1049
  }
1012
1050
  };
1013
1051
  var fireConnectedCallback = (instance, elm) => {
1052
+ {
1053
+ safeCall(instance, "connectedCallback", void 0, elm);
1054
+ }
1014
1055
  };
1015
1056
 
1016
1057
  // src/runtime/connected-callback.ts
@@ -1043,20 +1084,27 @@ var connectedCallback = (elm) => {
1043
1084
  initializeComponent(elm, hostRef, cmpMeta);
1044
1085
  }
1045
1086
  } else {
1046
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1047
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1087
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1088
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1089
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1090
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1048
1091
  }
1049
1092
  }
1050
1093
  endConnected();
1051
1094
  }
1052
1095
  };
1053
1096
  var disconnectInstance = (instance, elm) => {
1097
+ {
1098
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1099
+ }
1054
1100
  };
1055
1101
  var disconnectedCallback = async (elm) => {
1056
1102
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1057
1103
  const hostRef = getHostRef(elm);
1058
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1059
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1104
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1105
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1106
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1107
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1060
1108
  }
1061
1109
  }
1062
1110
  if (rootAppliedStyles.has(elm)) {
@@ -1070,18 +1118,22 @@ var disconnectedCallback = async (elm) => {
1070
1118
  // src/runtime/bootstrap-lazy.ts
1071
1119
  var bootstrapLazy = (lazyBundles, options = {}) => {
1072
1120
  var _a;
1121
+ if (!win.document) {
1122
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1123
+ return;
1124
+ }
1073
1125
  const endBootstrap = createTime();
1074
1126
  const cmpTags = [];
1075
1127
  const exclude = options.exclude || [];
1076
1128
  const customElements2 = win.customElements;
1077
- const head = doc.head;
1129
+ const head = win.document.head;
1078
1130
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1079
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1131
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1080
1132
  const deferredConnectedCallbacks = [];
1081
1133
  let appLoadFallback;
1082
1134
  let isBootstrapping = true;
1083
1135
  Object.assign(plt, options);
1084
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1136
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1085
1137
  let hasSlotRelocation = false;
1086
1138
  lazyBundles.map((lazyBundle) => {
1087
1139
  lazyBundle[1].map((compactMeta) => {
@@ -1173,7 +1225,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1173
1225
  }
1174
1226
  if (dataStyles.innerHTML.length) {
1175
1227
  dataStyles.setAttribute("data-styles", "");
1176
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1228
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1177
1229
  if (nonce != null) {
1178
1230
  dataStyles.setAttribute("nonce", nonce);
1179
1231
  }
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-58f119b6.js';
2
- export { s as setNonce } from './index-58f119b6.js';
1
+ import { b as bootstrapLazy } from './index-aebaf980.js';
2
+ export { s as setNonce } from './index-aebaf980.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1 +1 @@
1
- import{p as a,b as e}from"./p-8f6ba117.js";export{s as setNonce}from"./p-8f6ba117.js";import{g as o}from"./p-e1255160.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((async a=>(await o(),e([["p-4d05a527",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],a))));
1
+ import{p as e,b as a}from"./p-170ff51e.js";export{s as setNonce}from"./p-170ff51e.js";import{g as o}from"./p-e1255160.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then((async e=>(await o(),a([["p-4ea13a8c",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,s="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],h=[],m=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&u.o?w(y):u.raf(y))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},y=()=>{v(p),v(h),(d=p.length>0)&&u.raf(y)},w=e=>a().then(e),b=m(h,!0),$=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>k,ok:()=>S,unwrap:()=>E,unwrapErr:()=>C});var S=e=>({isOk:!0,isErr:!1,value:e}),j=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>S(e))):S(n)}if(e.isErr)return j(e.value);throw"should never get here"}var O,E=e=>{if(e.isOk)return e.value;throw e.value},C=e=>{if(e.isErr)return e.value;throw e.value},M=(e,t,...n)=>{let o=null,l=null,i=!1,r=!1;const s=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!$(o))&&(o+=""),i&&r?s[s.length-1].i+=o:s.push(i?x(null,o):o),r=i)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=x(e,null);return u.u=t,s.length>0&&(u.p=s),u.h=l,u},x=(e,t)=>({o:0,m:e,i:t,v:null,p:null,u:null,h:null}),P={},D=e=>(null==e||$(e),e),R=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,i,r)=>{if(n===l)return;let s=o(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,o=A(n);let i=A(l);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(s||"o"!==t[0]||"n"!==t[1]){const o=$(l);if((s||o&&null!==l)&&!i)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?s=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&r||i)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(c,a)?a.slice(2):a[2]+t.slice(3),n||l){const o=t.endsWith(L);t=t.replace(T,""),n&&u.rel(e,t,n,o),l&&u.ael(e,t,l,o)}},N=/\s/,A=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(N):[]),L="Capture",T=RegExp(L+"$"),H=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},i=t.u||{};for(const e of z(Object.keys(l)))e in i||W(o,e,l[e],void 0,n,t.o);for(const e of z(Object.keys(i)))W(o,e,l[e],i[e],n,t.o)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var F=!1,V=(e,t,n)=>{const o=t.p[n];let l,i,r=0;if(null!==o.i)l=o.v=c.document.createTextNode(o.i);else{if(F||(F="svg"===o.m),!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=c.document.createElementNS(F?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),F&&"foreignObject"===o.m&&(F=!1),H(null,o,F),o.p)for(r=0;r<o.p.length;++r)i=V(e,o,r),i&&l.appendChild(i);"svg"===o.m?F=!1:"foreignObject"===l.tagName&&(F=!0)}return l["s-hn"]=O,l},q=(e,t,n,o,l,i)=>{let r,s=e;for(s.shadowRoot&&s.tagName===O&&(s=s.shadowRoot);l<=i;++l)o[l]&&(r=V(null,n,l),r&&(o[l].v=r,_(s,r,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.h&&t.h&&(e.h=t.h),!0):e.h===t.h),Y=(e,t,n=!1)=>{const o=t.v=e.v,l=e.p,i=t.p,r=t.m,s=t.i;null===s?(H(e,t,F="svg"===r||"foreignObject"!==r&&F),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,r,s=0,c=0,u=0,a=0,f=t.length-1,d=t[0],p=t[f],h=o.length-1,m=o[0],v=o[h];for(;s<=f&&c<=h;)if(null==d)d=t[++s];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(I(d,m,l))Y(d,m,l),d=t[++s],m=o[++c];else if(I(p,v,l))Y(p,v,l),p=t[--f],v=o[--h];else if(I(d,v,l))Y(d,v,l),_(e,d.v,p.v.nextSibling),d=t[++s],v=o[--h];else if(I(p,m,l))Y(p,m,l),_(e,p.v,d.v),p=t[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===m.h){u=a;break}u>=0?(r=t[u],r.m!==m.m?i=V(t&&t[c],n,u):(Y(r,m,l),t[u]=void 0,i=r.v),m=o[++c]):(i=V(t&&t[c],n,c),m=o[++c]),i&&_(d.v.parentNode,i,d.v)}s>f?q(e,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&G(t,s,f)})(o,l,t,i,n):null!==i?(null!==e.i&&(o.textContent=""),q(o,null,t,i,0,i.length-1)):!n&&null!==l&&G(l,0,l.length-1),F&&"svg"===r&&(F=!1)):e.i!==s&&(o.data=s)},_=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),B=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},J=(e,t)=>{if(e.o|=16,!(4&e.o))return B(e,e.j),b((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=oe(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=Q(l,(()=>oe(o,"componentWillRender",void 0,n))),Q(l,(()=>Z(e,o,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=U(t),l=r.get(o);if(!c.document)return o;if(e=11===e.nodeType?e:c.document,l)if("string"==typeof l){let i,r=R.get(e=e.head||e);if(r||R.set(e,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||c.document.createElement("style"),i.innerHTML=l;const r=null!=(n=u.O)?n:g(c.document);if(null!=r&&i.setAttribute("nonce",r),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(f){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(i)}else e.append(i);1&t.o&&e.insertBefore(i,null)}4&t.o&&(i.innerHTML+=s),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ee(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ee=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,i=e.C||x(null,null),r=(e=>e&&e.m===P)(t)?t:M(null,null,t);if(O=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.C=r,r.v=i.v=o.shadowRoot||o,Y(i,r,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.t,o=e.j;oe(n,"componentDidRender",void 0,t),64&e.o?oe(n,"componentDidUpdate",void 0,t):(e.o|=64,le(t),oe(n,"componentDidLoad",void 0,t),e.M(t),o||ne()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>J(e,!1))),e.o&=-517},ne=()=>{w((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},le=e=>e.classList.add("hydrated"),ie=(e,n,o,l)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.P.get(n),s=i.o,c=i.t;if(o=D(o),(!(8&s)||void 0===r)&&o!==r&&(!Number.isNaN(r)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&s))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,r,n))return;J(i,!1)}},re=(e,n,o)=>{var l;const i=e.prototype;return n.D&&Object.entries(null!=(l=n.D)?l:{}).map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:r,set:s}=Object.getOwnPropertyDescriptor(i,e)||{};r&&(n.D[e][0]|=2048),s&&(n.D[e][0]|=4096),(1&o||!r)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).P.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(i){const r=t(this);if(s){const t=32&l?this[e]:r.$hostElement$[e];return void 0===t&&r.P.get(e)?i=r.P.get(e):!r.P.get(e)&&t&&r.P.set(e,t),s.call(this,D(i)),void ie(this,e,i=32&l?this[e]:r.$hostElement$[e],n)}{if(!(1&o&&4096&n.D[e][0]))return ie(this,e,i,n),void(1&o&&!r.t&&r.R.then((()=>{4096&n.D[e][0]&&r.t[e]!==r.P.get(e)&&(r.t[e]=i)})));const t=()=>{const t=r.t[e];!r.P.get(e)&&t&&r.P.set(e,t),r.t[e]=D(i),ie(this,e,r.t[e],n)};r.t?t():r.R.then((()=>t()))}}})}})),e},se=(e,t)=>{oe(e,"connectedCallback",void 0,t)},ce=(e,t)=>{oe(e,"disconnectedCallback",void 0,t||e)},ue=(e,n={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=n.exclude||[],p=c.customElements,h=c.document.head,m=h.querySelector("meta[charset]"),v=c.document.createElement("style"),y=[];let w,b=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",c.document.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{const o={o:n[0],$:n[1],D:n[2],U:n[3]};4&o.o&&($=!0),o.D=n[2];const s=o.$,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,P:new Map};n.R=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,o),1&o.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),b?y.push(this):u.jmp((()=>(e=>{if(!(1&u.o)){const n=t(e),o=n.k,s=()=>{};if(1&n.o)(null==n?void 0:n.t)?se(n.t,e):(null==n?void 0:n.R)&&n.R.then((()=>se(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){B(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.W){const r=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.W;if(!o)return;const r=i.get(o);return r?r[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(r&&"then"in r){const e=()=>{};o=await r,e()}else o=r;if(!o)throw Error(`Constructor for "${n.$}#${t.N}" was not found`);o.isProxied||(re(o,n,2),o.isProxied=!0);const s=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,s(),se(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=U(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const s=t.j,c=()=>J(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(e,n,o)}s()}})(this)))}disconnectedCallback(){u.jmp((()=>(async e=>{if(!(1&u.o)){const n=t(e);(null==n?void 0:n.t)?ce(n.t,e):(null==n?void 0:n.R)&&n.R.then((()=>ce(n.t,e)))}R.has(e)&&R.delete(e),e.shadowRoot&&R.has(e.shadowRoot)&&R.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const n=t(this),o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).R}};o.W=e[0],d.includes(s)||p.get(s)||(a.push(s),p.define(s,re(c,o,1)))}))})),a.length>0&&($&&(v.textContent+=s),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=u.O)?o:g(c.document);null!=e&&v.setAttribute("nonce",e),h.insertBefore(v,m?m.nextSibling:h.firstChild)}b=!1,y.length?y.map((e=>e.connectedCallback())):u.jmp((()=>w=setTimeout(ne,30)))},ae=e=>u.O=e;export{ue as b,M as h,a as p,n as r,ae as s}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-8f6ba117.js";const r="eswat2",i=class{constructor(a){e(this,a)}render(){return a("a",{key:"19b3032cee637162468f46d0adee024409fe18bf",href:"https://eswat2.dev","aria-label":r,title:r},(({hex:e="currentColor",size:r=24})=>a("svg",{width:r,height:r,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"})))({}))}};i.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)}},c=class{constructor(a){e(this,a)}yearMakeModel(){const{ModelYear:e,Make:a,Model:r}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${r}`}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",{key:"0d991decd8f3decc5fed001f20690eaef654eeea",class:"gauge-page-header"},a("eswat2-io",{key:"79c472d52bd91b87dddbbaaa853c087b561cf5ba"}),a("div",{key:"f8525320a5f1e2f9b155d62667d4de85ed290032",class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{key:"185f78d4dbbbbb20850a520d4fd54acb18f25f9d",id:"year-make-model-header"},this.yearMakeModel()),a("span",{key:"960fdd7f015ad694464372f051ef1726c8a71ed2",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",{key:"0ae3adab71009085cb486c1c65dcdb4aaaa55ce6",class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{key:"a30f061c401340b209fca53ac65d36db175eb45c",id:"vehicle-identifier-info-header"},a("span",{key:"e94b11522a40108e0b99c480eff9d9e78aec470b",class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{key:"dadb1cfd52b87784a948f45f77f13963a35707ed",class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{key:"139955772a602590e5bbcec354b894921e5a592b",class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{key:"e2f7c14a8f5c1cad99e7821c20d5d053fa2abf6e",class:"vehicle-info-header-segment"},this.mileage()))),a("div",{key:"07394b4a1806ab3ccc9c2c454a0c4d9bf49d0413",class:"vehicle-data-container"},a("div",{key:"c8f377e4884b0cae8a32cdd3ceecd653c2372bfb",class:"vehicle-info-segment"},a("h4",{key:"9e2f6f3220f3b7d58993be4c085dd6c2d83bc5c4",class:"segment-heading"},"Body"),a("p",{key:"f738ba1e1c74287c20b1db6efc3b7fd4dc0eae6d",class:"segment-value"},this.body())),a("div",{key:"60c883e9d2a202f565e55de9de7f1ecbfd6883b1",class:"vehicle-info-segment"},a("h4",{key:"b764d8ad6418a96eb7ec6f20d6e8e497da48e7fa",class:"segment-heading"},"Color"),a("p",{key:"3b77c23c478c96e77c0e07ade7272077503e9f82",class:"segment-value"},this.exteriorColor())),a("div",{key:"4a705ee722143b8660eb839f71f39921c22672a4",class:"vehicle-info-segment"},a("h4",{key:"612d6888563cb44fc88e6fea22a784f64935f9e0",class:"segment-heading"},"Int. Color"),a("p",{key:"9b51b24a0ebc2b4b3200e9a554047e4d3e9054d4",class:"segment-value"},this.interiorColor())),a("div",{key:"b68e17bd9efdb425f813ee9b94d2baf1e76ed1c0",class:"vehicle-info-segment"},a("h4",{key:"417d55c72032105115ece2f3aefe076be95ea80b",class:"segment-heading"},"Drive Train"),a("p",{key:"3b6ea726618ed8f84a39ffea0c75a85864f196a1",class:"segment-value"},this.driveTrain())),a("div",{key:"f12082fe6244ecc9f6cc3c02f9b035b1498fa04a",class:"vehicle-info-segment"},a("h4",{key:"27b4d35b5aed5054f6e7d68ee925425b7035bfb8",class:"segment-heading"},"Engine"),a("p",{key:"b8e4ca5e24ccdd1394ac4e149ae2c0771fca2ab7",class:"segment-value"},this.engine())),a("div",{key:"4abfe41c388cd113421c5eec4d444aa6db3f5676",class:"vehicle-info-segment"},a("h4",{key:"04d369b5fd240d3f38716379d46fd8b6103e32f4",class:"segment-heading"},"Transmission"),a("p",{key:"421e0ac28eabf1d2bd575c4b12e9f48b8342f892",class:"segment-value"},this.transmission()))))]}};c.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{i as eswat2_io,c as gauge_page_header}
1
+ import{r as e,h as a}from"./p-170ff51e.js";const r="eswat2",i=class{constructor(a){e(this,a)}render(){return a("a",{key:"19b3032cee637162468f46d0adee024409fe18bf",href:"https://eswat2.dev","aria-label":r,title:r},(({hex:e="currentColor",size:r=24})=>a("svg",{width:r,height:r,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"})))({}))}};i.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)}},c=class{constructor(a){e(this,a)}yearMakeModel(){const{ModelYear:e,Make:a,Model:r}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${r}`}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",{key:"0d991decd8f3decc5fed001f20690eaef654eeea",class:"gauge-page-header"},a("eswat2-io",{key:"79c472d52bd91b87dddbbaaa853c087b561cf5ba"}),a("div",{key:"f8525320a5f1e2f9b155d62667d4de85ed290032",class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{key:"185f78d4dbbbbb20850a520d4fd54acb18f25f9d",id:"year-make-model-header"},this.yearMakeModel()),a("span",{key:"960fdd7f015ad694464372f051ef1726c8a71ed2",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",{key:"0ae3adab71009085cb486c1c65dcdb4aaaa55ce6",class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{key:"a30f061c401340b209fca53ac65d36db175eb45c",id:"vehicle-identifier-info-header"},a("span",{key:"e94b11522a40108e0b99c480eff9d9e78aec470b",class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{key:"dadb1cfd52b87784a948f45f77f13963a35707ed",class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{key:"139955772a602590e5bbcec354b894921e5a592b",class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{key:"e2f7c14a8f5c1cad99e7821c20d5d053fa2abf6e",class:"vehicle-info-header-segment"},this.mileage()))),a("div",{key:"07394b4a1806ab3ccc9c2c454a0c4d9bf49d0413",class:"vehicle-data-container"},a("div",{key:"c8f377e4884b0cae8a32cdd3ceecd653c2372bfb",class:"vehicle-info-segment"},a("h4",{key:"9e2f6f3220f3b7d58993be4c085dd6c2d83bc5c4",class:"segment-heading"},"Body"),a("p",{key:"f738ba1e1c74287c20b1db6efc3b7fd4dc0eae6d",class:"segment-value"},this.body())),a("div",{key:"60c883e9d2a202f565e55de9de7f1ecbfd6883b1",class:"vehicle-info-segment"},a("h4",{key:"b764d8ad6418a96eb7ec6f20d6e8e497da48e7fa",class:"segment-heading"},"Color"),a("p",{key:"3b77c23c478c96e77c0e07ade7272077503e9f82",class:"segment-value"},this.exteriorColor())),a("div",{key:"4a705ee722143b8660eb839f71f39921c22672a4",class:"vehicle-info-segment"},a("h4",{key:"612d6888563cb44fc88e6fea22a784f64935f9e0",class:"segment-heading"},"Int. Color"),a("p",{key:"9b51b24a0ebc2b4b3200e9a554047e4d3e9054d4",class:"segment-value"},this.interiorColor())),a("div",{key:"b68e17bd9efdb425f813ee9b94d2baf1e76ed1c0",class:"vehicle-info-segment"},a("h4",{key:"417d55c72032105115ece2f3aefe076be95ea80b",class:"segment-heading"},"Drive Train"),a("p",{key:"3b6ea726618ed8f84a39ffea0c75a85864f196a1",class:"segment-value"},this.driveTrain())),a("div",{key:"f12082fe6244ecc9f6cc3c02f9b035b1498fa04a",class:"vehicle-info-segment"},a("h4",{key:"27b4d35b5aed5054f6e7d68ee925425b7035bfb8",class:"segment-heading"},"Engine"),a("p",{key:"b8e4ca5e24ccdd1394ac4e149ae2c0771fca2ab7",class:"segment-value"},this.engine())),a("div",{key:"4abfe41c388cd113421c5eec4d444aa6db3f5676",class:"vehicle-info-segment"},a("h4",{key:"04d369b5fd240d3f38716379d46fd8b6103e32f4",class:"segment-heading"},"Transmission"),a("p",{key:"421e0ac28eabf1d2bd575c4b12e9f48b8342f892",class:"segment-value"},this.transmission()))))]}};c.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{i as eswat2_io,c as gauge_page_header}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gauge-page-header",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,13 +24,13 @@
24
24
  "format": "prettier --write src"
25
25
  },
26
26
  "dependencies": {
27
- "@stencil/core": "4.26.0"
27
+ "@stencil/core": "4.27.1"
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
- "cspell": "8.17.4",
31
+ "cspell": "8.17.5",
32
32
  "eslint": "9.21.0",
33
- "prettier": "3.5.1",
33
+ "prettier": "3.5.2",
34
34
  "typescript": "5.7.3"
35
35
  }
36
36
  }
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?b($):f.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(y),(p=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?N(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=N(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},N=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),R={},T=e=>(null==e||S(e),e),A=new WeakMap,H=e=>"sc-"+e.$,U=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=F(n);let s=F(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(L);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},D=/\s/,F=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(D):[]),L="Capture",V=RegExp(L+"$"),W=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of q(Object.keys(l)))e in s||U(o,e,l[e],void 0,n,t.o);for(const e of q(Object.keys(s)))U(o,e,l[e],s[e],n,t.o)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else{if(G||(G="svg"===o.m),l=o.v=a.createElementNS(G?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),G&&"foreignObject"===o.m&&(G=!1),W(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(e,o,i),s&&l.appendChild(s);"svg"===o.m?G=!1:"foreignObject"===l.tagName&&(G=!0)}return l["s-hn"]=C,l},z=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].v=i,K(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),J=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(W(e,t,G="svg"===i||"foreignObject"!==i&&G),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(I(h,m,l))J(h,m,l),h=t[++r],m=o[++c];else if(I(d,y,l))J(d,y,l),d=t[--f],y=o[--p];else if(I(h,y,l))J(h,y,l),K(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(I(d,m,l))J(d,m,l),K(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=_(t&&t[c],n,c),m=o[++c]),s&&K(h.v.parentNode,s,h.v)}r>f?z(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&B(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1),G&&"svg"===i&&(G=!1)):e.i!==r&&(o.data=r)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},X=(e,t)=>{if(e.o|=16,!(4&e.o))return Q(e,e.j),g((()=>Y(e,t)));e.o|=512},Y=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Z(void 0,(()=>te(e,n,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=H(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=A.get(e=e.head||e);if(i||A.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ne(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>oe(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ne=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||N(null,null),i=(e=>e&&e.m===R)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,J(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},oe=e=>{const t=e.$hostElement$,n=e.j;64&e.o||(e.o|=64,se(t),e.M(t),n||le()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>X(e,!1))),e.o&=-517},le=()=>{b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(t),t})(u)))},se=e=>e.classList.add("hydrated"),ie=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=T(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&X(s,!1))},re=(e,t,o)=>{var l;const s=e.prototype;return t.N&&Object.entries(null!=(l=t.N)?l:{}).map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(t.N[e][0]|=2048),r&&(t.N[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&t.N[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,T(s)),void ie(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.N[e][0]))return ie(this,e,s,t),void(1&o&&!i.t&&i.R.then((()=>{4096&t.N[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=T(s),ie(this,e,i.t[e],t)};i.t?n():i.R.then((()=>n()))}}})}})),e},ce=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],N:o[2],T:o[3]};4&l.o&&(S=!0),l.N=o[2];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.R=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(t,t.j=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.A){const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.A;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(re(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,r()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=H(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>X(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.then((()=>{}))}A.has(e)&&A.delete(e),e.shadowRoot&&A.has(e.shadowRoot)&&A.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this),o=$.findIndex((e=>e===this));o>-1&&$.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).R}};l.A=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,re(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=f.k)?l:j(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(le,30)))},ue=e=>f.k=e;export{ce as b,P as h,h as p,o as r,ue as s}