gauge-page-header 0.1.52 → 0.1.54

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DxkxE9N8.js');
3
+ var index = require('./index-TPQSXXLh.js');
4
4
 
5
5
  const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
6
6
 
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DxkxE9N8.js');
3
+ var index = require('./index-TPQSXXLh.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.37.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["eswat2-io_2.cjs",[[257,"gauge-page-header",{"vehicleInfo":[16,"vehicle-info"]}],[257,"eswat2-io"]]]], options);
22
+ return index.bootstrapLazy([["eswat2-io_2.cjs",[[257,"gauge-page-header",{"vehicleInfo":[16]}],[257,"eswat2-io"]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const NAMESPACE = 'gauge-page-header';
4
- const BUILD = /* gauge-page-header */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
4
+ const BUILD = /* gauge-page-header */ { hydratedSelectorName: "hydrated", propChangeCallback: false, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.37.1 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
  var __defProp = Object.defineProperty;
10
10
  var __export = (target, all) => {
@@ -33,13 +33,17 @@ var registerHost = (hostElement, cmpMeta) => {
33
33
  $flags$: 0,
34
34
  $hostElement$: hostElement,
35
35
  $cmpMeta$: cmpMeta,
36
- $instanceValues$: /* @__PURE__ */ new Map()
36
+ $instanceValues$: /* @__PURE__ */ new Map(),
37
+ $serializerValues$: /* @__PURE__ */ new Map()
37
38
  };
38
39
  {
39
40
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
40
41
  hostElement["s-p"] = [];
41
42
  hostElement["s-rc"] = [];
42
43
  }
44
+ {
45
+ hostRef.$fetchedCbList$ = [];
46
+ }
43
47
  const ref = hostRef;
44
48
  hostElement.__stencil__getHostRef = () => ref;
45
49
  return ref;
@@ -814,6 +818,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
814
818
  }
815
819
  let maybePromise;
816
820
  if (isInitialLoad) {
821
+ {
822
+ if (hostRef.$fetchedCbList$.length) {
823
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
824
+ }
825
+ }
817
826
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
818
827
  } else {
819
828
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -967,9 +976,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
967
976
 
968
977
  // src/runtime/proxy-component.ts
969
978
  var proxyComponent = (Cstr, cmpMeta, flags) => {
970
- var _a, _b;
979
+ var _a;
971
980
  const prototype = Cstr.prototype;
972
- if (cmpMeta.$members$ || BUILD.watchCallback) {
981
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
973
982
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
974
983
  members.map(([memberName, [memberFlags]]) => {
975
984
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1003,8 +1012,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1003
1012
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1004
1013
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1005
1014
  newValue = ref.$instanceValues$.get(memberName);
1006
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1007
- ref.$instanceValues$.set(memberName, currentValue);
1008
1015
  }
1009
1016
  origSetter.apply(this, [
1010
1017
  parsePropertyValue(
@@ -1018,7 +1025,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1018
1025
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1019
1026
  setValue(this, memberName, newValue, cmpMeta);
1020
1027
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1021
- ref.$onReadyPromise$.then(() => {
1028
+ ref.$fetchedCbList$.push(() => {
1022
1029
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1023
1030
  ref.$lazyInstance$[memberName] = newValue;
1024
1031
  }
@@ -1038,57 +1045,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1038
1045
  if (ref.$lazyInstance$) {
1039
1046
  setterSetVal();
1040
1047
  } else {
1041
- ref.$onReadyPromise$.then(() => setterSetVal());
1048
+ ref.$fetchedCbList$.push(() => {
1049
+ setterSetVal();
1050
+ });
1042
1051
  }
1043
1052
  }
1044
1053
  }
1045
1054
  });
1046
1055
  }
1047
1056
  });
1048
- if ((flags & 1 /* isElementConstructor */)) {
1049
- const attrNameToPropName = /* @__PURE__ */ new Map();
1050
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1051
- plt.jmp(() => {
1052
- var _a2;
1053
- const propName = attrNameToPropName.get(attrName);
1054
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1055
- newValue = this[propName];
1056
- delete this[propName];
1057
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1058
- this[propName] == newValue) {
1059
- return;
1060
- } else if (propName == null) {
1061
- const hostRef = getHostRef(this);
1062
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1063
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1064
- const instance = hostRef.$lazyInstance$ ;
1065
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1066
- entry == null ? void 0 : entry.forEach((callbackName) => {
1067
- if (instance[callbackName] != null) {
1068
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1069
- }
1070
- });
1071
- }
1072
- return;
1073
- }
1074
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1075
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1076
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1077
- this[propName] = newValue;
1078
- }
1079
- });
1080
- };
1081
- Cstr.observedAttributes = Array.from(
1082
- /* @__PURE__ */ new Set([
1083
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1084
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1085
- const attrName = m[1] || propName;
1086
- attrNameToPropName.set(attrName, propName);
1087
- return attrName;
1088
- })
1089
- ])
1090
- );
1091
- }
1092
1057
  }
1093
1058
  return Cstr;
1094
1059
  };
@@ -1183,7 +1148,7 @@ var connectedCallback = (elm) => {
1183
1148
  }
1184
1149
  if (cmpMeta.$members$) {
1185
1150
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1186
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1151
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1187
1152
  const value = elm[memberName];
1188
1153
  delete elm[memberName];
1189
1154
  elm[memberName] = value;
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DxkxE9N8.js');
3
+ var index = require('./index-TPQSXXLh.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["eswat2-io_2.cjs",[[257,"gauge-page-header",{"vehicleInfo":[16,"vehicle-info"]}],[257,"eswat2-io"]]]], options);
9
+ return index.bootstrapLazy([["eswat2-io_2.cjs",[[257,"gauge-page-header",{"vehicleInfo":[16]}],[257,"eswat2-io"]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.37.1",
8
+ "version": "4.38.0",
9
9
  "typescriptVersion": "5.5.4"
10
10
  },
11
11
  "collections": [],
@@ -91,7 +91,6 @@ export class GaugePageHeader {
91
91
  return {
92
92
  "vehicleInfo": {
93
93
  "type": "unknown",
94
- "attribute": "vehicle-info",
95
94
  "mutable": false,
96
95
  "complexType": {
97
96
  "original": "VehicleInfo",
@@ -100,7 +100,7 @@ const GaugePageHeader$1 = /*@__PURE__*/ proxyCustomElement(class GaugePageHeader
100
100
  }
101
101
  static get style() { return gaugePageHeaderCss; }
102
102
  }, [257, "gauge-page-header", {
103
- "vehicleInfo": [16, "vehicle-info"]
103
+ "vehicleInfo": [16]
104
104
  }]);
105
105
  function defineCustomElement$1() {
106
106
  if (typeof customElements === "undefined") {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-UDbXpsql.js';
1
+ import { r as registerInstance, h } from './index-Dx70zZgw.js';
2
2
 
3
3
  const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
4
4
 
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-UDbXpsql.js';
2
- export { s as setNonce } from './index-UDbXpsql.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-Dx70zZgw.js';
2
+ export { s as setNonce } from './index-Dx70zZgw.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.37.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.38.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {
@@ -17,5 +17,5 @@ var patchBrowser = () => {
17
17
 
18
18
  patchBrowser().then(async (options) => {
19
19
  await globalScripts();
20
- return bootstrapLazy([["eswat2-io_2",[[257,"gauge-page-header",{"vehicleInfo":[16,"vehicle-info"]}],[257,"eswat2-io"]]]], options);
20
+ return bootstrapLazy([["eswat2-io_2",[[257,"gauge-page-header",{"vehicleInfo":[16]}],[257,"eswat2-io"]]]], options);
21
21
  });
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'gauge-page-header';
2
- const BUILD = /* gauge-page-header */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
2
+ const BUILD = /* gauge-page-header */ { hydratedSelectorName: "hydrated", propChangeCallback: false, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.37.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.38.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -31,13 +31,17 @@ var registerHost = (hostElement, cmpMeta) => {
31
31
  $flags$: 0,
32
32
  $hostElement$: hostElement,
33
33
  $cmpMeta$: cmpMeta,
34
- $instanceValues$: /* @__PURE__ */ new Map()
34
+ $instanceValues$: /* @__PURE__ */ new Map(),
35
+ $serializerValues$: /* @__PURE__ */ new Map()
35
36
  };
36
37
  {
37
38
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
38
39
  hostElement["s-p"] = [];
39
40
  hostElement["s-rc"] = [];
40
41
  }
42
+ {
43
+ hostRef.$fetchedCbList$ = [];
44
+ }
41
45
  const ref = hostRef;
42
46
  hostElement.__stencil__getHostRef = () => ref;
43
47
  return ref;
@@ -812,6 +816,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
812
816
  }
813
817
  let maybePromise;
814
818
  if (isInitialLoad) {
819
+ {
820
+ if (hostRef.$fetchedCbList$.length) {
821
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
822
+ }
823
+ }
815
824
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
816
825
  } else {
817
826
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -965,9 +974,9 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
965
974
 
966
975
  // src/runtime/proxy-component.ts
967
976
  var proxyComponent = (Cstr, cmpMeta, flags) => {
968
- var _a, _b;
977
+ var _a;
969
978
  const prototype = Cstr.prototype;
970
- if (cmpMeta.$members$ || BUILD.watchCallback) {
979
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
971
980
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
972
981
  members.map(([memberName, [memberFlags]]) => {
973
982
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1001,8 +1010,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1001
1010
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1002
1011
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1003
1012
  newValue = ref.$instanceValues$.get(memberName);
1004
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1005
- ref.$instanceValues$.set(memberName, currentValue);
1006
1013
  }
1007
1014
  origSetter.apply(this, [
1008
1015
  parsePropertyValue(
@@ -1016,7 +1023,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1016
1023
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1017
1024
  setValue(this, memberName, newValue, cmpMeta);
1018
1025
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1019
- ref.$onReadyPromise$.then(() => {
1026
+ ref.$fetchedCbList$.push(() => {
1020
1027
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1021
1028
  ref.$lazyInstance$[memberName] = newValue;
1022
1029
  }
@@ -1036,57 +1043,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1036
1043
  if (ref.$lazyInstance$) {
1037
1044
  setterSetVal();
1038
1045
  } else {
1039
- ref.$onReadyPromise$.then(() => setterSetVal());
1046
+ ref.$fetchedCbList$.push(() => {
1047
+ setterSetVal();
1048
+ });
1040
1049
  }
1041
1050
  }
1042
1051
  }
1043
1052
  });
1044
1053
  }
1045
1054
  });
1046
- if ((flags & 1 /* isElementConstructor */)) {
1047
- const attrNameToPropName = /* @__PURE__ */ new Map();
1048
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1049
- plt.jmp(() => {
1050
- var _a2;
1051
- const propName = attrNameToPropName.get(attrName);
1052
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1053
- newValue = this[propName];
1054
- delete this[propName];
1055
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1056
- this[propName] == newValue) {
1057
- return;
1058
- } else if (propName == null) {
1059
- const hostRef = getHostRef(this);
1060
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1061
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1062
- const instance = hostRef.$lazyInstance$ ;
1063
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1064
- entry == null ? void 0 : entry.forEach((callbackName) => {
1065
- if (instance[callbackName] != null) {
1066
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1067
- }
1068
- });
1069
- }
1070
- return;
1071
- }
1072
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1073
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1074
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1075
- this[propName] = newValue;
1076
- }
1077
- });
1078
- };
1079
- Cstr.observedAttributes = Array.from(
1080
- /* @__PURE__ */ new Set([
1081
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1082
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1083
- const attrName = m[1] || propName;
1084
- attrNameToPropName.set(attrName, propName);
1085
- return attrName;
1086
- })
1087
- ])
1088
- );
1089
- }
1090
1055
  }
1091
1056
  return Cstr;
1092
1057
  };
@@ -1181,7 +1146,7 @@ var connectedCallback = (elm) => {
1181
1146
  }
1182
1147
  if (cmpMeta.$members$) {
1183
1148
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1184
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1149
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1185
1150
  const value = elm[memberName];
1186
1151
  delete elm[memberName];
1187
1152
  elm[memberName] = value;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-UDbXpsql.js';
2
- export { s as setNonce } from './index-UDbXpsql.js';
1
+ import { b as bootstrapLazy } from './index-Dx70zZgw.js';
2
+ export { s as setNonce } from './index-Dx70zZgw.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["eswat2-io_2",[[257,"gauge-page-header",{"vehicleInfo":[16,"vehicle-info"]}],[257,"eswat2-io"]]]], options);
8
+ return bootstrapLazy([["eswat2-io_2",[[257,"gauge-page-header",{"vehicleInfo":[16]}],[257,"eswat2-io"]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-UDbXpsql.js";export{s as setNonce}from"./p-UDbXpsql.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,a={};return""!==s&&(a.resourcesUrl=new URL(".",s).href),e(a)})().then((async e=>(await o(),a([["p-446c4fe5",[[257,"gauge-page-header",{vehicleInfo:[16,"vehicle-info"]}],[257,"eswat2-io"]]]],e))));
1
+ import{p as a,b as e}from"./p-Dx70zZgw.js";export{s as setNonce}from"./p-Dx70zZgw.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((async a=>(await o(),e([["p-8a807a3c",[[257,"gauge-page-header",{vehicleInfo:[16]}],[257,"eswat2-io"]]]],a))));
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-UDbXpsql.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-Dx70zZgw.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}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{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=!!f&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),p=!1,h=[],m=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&u.o?$(y):u.raf(y))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},y=()=>{w(h),w(m),(p=h.length>0)&&u.raf(y)},$=e=>a().then(e),b=v(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=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=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value};function x(){const e=this.attachShadow({mode:"open"});void 0===E&&(E=null),E&&(d?e.adoptedStyleSheets.push(E):e.adoptedStyleSheets=[...e.adoptedStyleSheets,E])}var P=new WeakMap,R=e=>"sc-"+e.i,D=(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&&!g(o))&&(o+=""),i&&r?s[s.length-1].u+=o:s.push(i?U(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=U(e,null);return u.p=t,s.length>0&&(u.h=s),u.m=l,u},U=(e,t)=>({o:0,v:e,u:t,$:null,h:null,p:null,m:null}),W={},N=e=>{const t=(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};N("::slotted"),N(":host"),N(":host-context");var A,L=e=>(null==e||g(e),e),T=(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=H(n);let i=H(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=g(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(V);t=t.replace(q,""),n&&u.rel(e,t,n,o),l&&u.ael(e,t,l,o)}},z=/\s/,H=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(z):[]),V="Capture",q=RegExp(V+"$"),F=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.p||{},i=t.p||{};for(const e of G(Object.keys(l)))e in i||T(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(i)))T(o,e,l[e],i[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.h[n];let l,i,r=0;if(null!==o.u)l=o.$=c.document.createTextNode(o.u);else{if(I||(I="svg"===o.v),!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.$=c.document.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.v),I&&"foreignObject"===o.v&&(I=!1),F(null,o,I),o.h)for(r=0;r<o.h.length;++r)i=Y(e,o,r),i&&l.appendChild(i);"svg"===o.v?I=!1:"foreignObject"===l.tagName&&(I=!0)}return l["s-hn"]=A,l},_=(e,t,n,o,l,i)=>{let r,s=e;for(s.shadowRoot&&s.tagName===A&&(s=s.shadowRoot);l<=i;++l)o[l]&&(r=Y(null,n,l),r&&(o[l].$=r,Q(s,r,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},J=(e,t,n=!1)=>e.v===t.v&&(n?(n&&!e.m&&t.m&&(e.m=t.m),!0):e.m===t.m),K=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,i=t.h,r=t.v,s=t.u;null===s?(F(e,t,I="svg"===r||"foreignObject"!==r&&I),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(J(d,m,l))K(d,m,l),d=t[++s],m=o[++c];else if(J(p,v,l))K(p,v,l),p=t[--f],v=o[--h];else if(J(d,v,l))K(d,v,l),Q(e,d.$,p.$.nextSibling),d=t[++s],v=o[--h];else if(J(p,m,l))K(p,m,l),Q(e,p.$,d.$),p=t[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===m.m){u=a;break}u>=0?(r=t[u],r.v!==m.v?i=Y(t&&t[c],n,u):(K(r,m,l),t[u]=void 0,i=r.$),m=o[++c]):(i=Y(t&&t[c],n,c),m=o[++c]),i&&Q(d.$.parentNode,i,d.$)}s>f?_(e,null==o[h+1]?null:o[h+1].$,n,o,c,h):c>h&&B(t,s,f)})(o,l,t,i,n):null!==i?(null!==e.u&&(o.textContent=""),_(o,null,t,i,0,i.length-1)):!n&&null!==l&&B(l,0,l.length-1),I&&"svg"===r&&(I=!1)):e.u!==s&&(o.data=s)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(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()})))}},Z=(e,t)=>{if(e.o|=16,4&e.o)return void(e.o|=512);X(e,e.j);const n=()=>ee(e,t);if(!t)return b(n);queueMicrotask((()=>{n()}))},ee=(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 t?(e.O.length&&e.O.forEach((e=>e(n))),l=se(o,"componentWillLoad",void 0,n)):l=se(o,"componentWillUpdate",void 0,n),l=te(l,(()=>se(o,"componentWillRender",void 0,n))),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=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=R(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=P.get(e=e.head||e);if(r||P.set(e,r=new Set),!r.has(o)){{i=c.document.createElement("style"),i.innerHTML=l;const o=null!=(n=u.C)?n:S(c.document);if(null!=o&&i.setAttribute("nonce",o),!(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),d?e.adoptedStyleSheets.unshift(t):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)||(d?e.adoptedStyleSheets.push(l):e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.M||U(null,null),i=(e=>e&&e.v===W)(t)?t:D(null,null,t);if(A=o.tagName,n&&i.p)for(const e of Object.keys(i.p))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.p[e]=o[e]);i.v=null,i.o|=4,e.M=i,i.$=l.$=o.shadowRoot||o,K(l,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,o=e.j;se(n,"componentDidRender",void 0,t),64&e.o?se(n,"componentDidUpdate",void 0,t):(e.o|=64,ce(t),se(n,"componentDidLoad",void 0,t),e.P(t),o||re()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>Z(e,!1))),e.o&=-517},re=()=>{$((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(t),t})(c)))},se=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,n,o,l)=>{const i=t(e);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.i}" 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/stenciljs/core/issues/5457).`);const r=i.R.get(n),s=i.o,c=i.t;if(o=L(o),(!(8&s)||void 0===r)&&o!==r&&(!Number.isNaN(r)||!Number.isNaN(o))&&(i.R.set(n,o),c&&2==(18&s))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,r,n))return;Z(i,!1)}},ae=(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).R.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(r){if(s)return void 0===(32&l?this[e]:r.$hostElement$[e])&&r.R.get(e)&&(i=r.R.get(e)),s.call(this,L(i)),void ue(this,e,i=32&l?this[e]:r.$hostElement$[e],n);{if(!(1&o&&4096&n.D[e][0]))return ue(this,e,i,n),void(1&o&&!r.t&&r.O.push((()=>{4096&n.D[e][0]&&r.t[e]!==r.R.get(e)&&(r.t[e]=i)})));const t=()=>{const t=r.t[e];!r.R.get(e)&&t&&r.R.set(e,t),r.t[e]=L(i),ue(this,e,r.t[e],n)};r.t?t():r.O.push((()=>{t()}))}}}})}})),e},fe=(e,t)=>{se(e,"connectedCallback",void 0,t)},de=(e,t)=>{se(e,"disconnectedCallback",void 0,t||e)},pe=(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"),w=[];let y,$=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",c.document.baseURI).href;let b=!1;if(e.map((e=>{e[1].map((n=>{const o={o:n[0],i:n[1],D:n[2],U:n[3]};4&o.o&&(b=!0),o.D=n[2];const s=o.i,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,R:new Map,W:new Map};n.N=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],n.O=[];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.i}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(e,o)}connectedCallback(){t(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),$?w.push(this):u.jmp((()=>(e=>{if(!(1&u.o)){const n=t(e);if(!n)return;const o=n.k,s=()=>{};if(1&n.o)(null==n?void 0:n.t)?fe(n.t,e):(null==n?void 0:n.N)&&n.N.then((()=>fe(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){X(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&t in e&&e[t]!==Object.prototype[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 r=((e,t)=>{const n=e.i.replace(/-/g,"_"),o=e.A;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.i}#${t.L}" was not found`);o.isProxied||(ae(o,n,2),o.isProxied=!0);const s=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,s(),fe(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=R(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=()=>Z(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)?de(n.t,e):(null==n?void 0:n.N)&&n.N.then((()=>de(n.t,e)))}P.has(e)&&P.delete(e),e.shadowRoot&&P.has(e.shadowRoot)&&P.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const n=t(this);if(!n)return;const o=w.findIndex((e=>e===this));o>-1&&w.splice(o,1),(null==(e=null==n?void 0:n.M)?void 0:e.$)instanceof Node&&!n.M.$.isConnected&&delete n.M.$}))}componentOnReady(){var e;return null==(e=t(this))?void 0:e.N}};o.A=e[0],d.includes(s)||p.get(s)||(a.push(s),p.define(s,ae(c,o,1)))}))})),a.length>0&&(b&&(v.textContent+=s),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=u.C)?o:S(c.document);null!=e&&v.setAttribute("nonce",e),h.insertBefore(v,m?m.nextSibling:h.firstChild)}$=!1,w.length?w.map((e=>e.connectedCallback())):u.jmp((()=>y=setTimeout(re,30)))},he=e=>u.C=e;export{pe as b,D as h,a as p,n as r,he as s}
@@ -1,4 +1,4 @@
1
- declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1
+ type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
2
  type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
3
3
  export interface ComponentDecorator {
4
4
  (opts?: ComponentOptions): ClassDecorator;
@@ -152,7 +152,13 @@ export interface StateDecorator {
152
152
  (): PropertyDecorator;
153
153
  }
154
154
  export interface WatchDecorator {
155
- (propName: string): CustomMethodDecorator<any>;
155
+ (propName: any): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
156
+ }
157
+ export interface PropSerializeDecorator {
158
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
159
+ }
160
+ export interface AttrDeserializeDecorator {
161
+ (propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
156
162
  }
157
163
  export interface UserBuildConditionals {
158
164
  isDev: boolean;
@@ -234,6 +240,14 @@ export declare const State: StateDecorator;
234
240
  * https://stenciljs.com/docs/reactive-data#watch-decorator
235
241
  */
236
242
  export declare const Watch: WatchDecorator;
243
+ /**
244
+ * Decorator to serialize a property to an attribute string.
245
+ */
246
+ export declare const PropSerialize: PropSerializeDecorator;
247
+ /**
248
+ * Decorator to deserialize an attribute string to a property.
249
+ */
250
+ export declare const AttrDeserialize: AttrDeserializeDecorator;
237
251
  export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
238
252
  export type ErrorHandler = (err: any, element?: HTMLElement) => void;
239
253
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gauge-page-header",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,14 +24,14 @@
24
24
  "format": "prettier --write src"
25
25
  },
26
26
  "dependencies": {
27
- "@stencil/core": "4.37.1"
27
+ "@stencil/core": "4.38.0"
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "cspell": "9.2.1",
32
32
  "eslint": "9.36.0",
33
33
  "prettier": "3.6.2",
34
- "typescript": "5.9.2"
34
+ "typescript": "5.9.3"
35
35
  },
36
36
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
37
37
  }
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{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,s=new Map,r="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=!!f&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&u.o?b(w):u.raf(w))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&u.raf(w)},b=e=>a().then(e),$=v(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=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=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value};function x(){const e=this.attachShadow({mode:"open"});void 0===E&&(E=null),E&&(d?e.adoptedStyleSheets.push(E):e.adoptedStyleSheets=[...e.adoptedStyleSheets,E])}var P=new WeakMap,R=e=>"sc-"+e.i,D=(e,t,...n)=>{let o=null,l=null,i=!1,s=!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&&((i="function"!=typeof e&&!g(o))&&(o+=""),i&&s?r[r.length-1].u+=o:r.push(i?U(null,o):o),s=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=U(e,null);return u.h=t,r.length>0&&(u.p=r),u.m=l,u},U=(e,t)=>({o:0,v:e,u:t,$:null,p:null,h:null,m:null}),W={},A=e=>{const t=(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(e);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};A("::slotted"),A(":host"),A(":host-context");var N,L=e=>(null==e||g(e),e),T=(e,t,n,l,i,s)=>{if(n===l)return;let r=o(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n);let i=q(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(r||"o"!==t[0]||"n"!==t[1]){const o=g(l);if((r||o&&null!==l)&&!i)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!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):(!r||4&s||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(z);t=t.replace(F,""),n&&u.rel(e,t,n,o),l&&u.ael(e,t,l,o)}},H=/\s/,q=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(H):[]),z="Capture",F=RegExp(z+"$"),V=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.h||{},i=t.h||{};for(const e of G(Object.keys(l)))e in i||T(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(i)))T(o,e,l[e],i[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.p[n];let l,i,s=0;if(null!==o.u)l=o.$=c.document.createTextNode(o.u);else{if(I||(I="svg"===o.v),!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.$=c.document.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.v),I&&"foreignObject"===o.v&&(I=!1),V(null,o,I),o.p)for(s=0;s<o.p.length;++s)i=Y(e,o,s),i&&l.appendChild(i);"svg"===o.v?I=!1:"foreignObject"===l.tagName&&(I=!0)}return l["s-hn"]=N,l},_=(e,t,n,o,l,i)=>{let s,r=e;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=Y(null,n,l),s&&(o[l].$=s,Q(r,s,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},J=(e,t,n=!1)=>e.v===t.v&&(n?(n&&!e.m&&t.m&&(e.m=t.m),!0):e.m===t.m),K=(e,t,n=!1)=>{const o=t.$=e.$,l=e.p,i=t.p,s=t.v,r=t.u;null===r?(V(e,t,I="svg"===s||"foreignObject"!==s&&I),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(J(d,m,l))K(d,m,l),d=t[++r],m=o[++c];else if(J(h,v,l))K(h,v,l),h=t[--f],v=o[--p];else if(J(d,v,l))K(d,v,l),Q(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(J(h,m,l))K(h,m,l),Q(e,h.$,d.$),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===m.m){u=a;break}u>=0?(s=t[u],s.v!==m.v?i=Y(t&&t[c],n,u):(K(s,m,l),t[u]=void 0,i=s.$),m=o[++c]):(i=Y(t&&t[c],n,c),m=o[++c]),i&&Q(d.$.parentNode,i,d.$)}r>f?_(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&B(t,r,f)})(o,l,t,i,n):null!==i?(null!==e.u&&(o.textContent=""),_(o,null,t,i,0,i.length-1)):!n&&null!==l&&B(l,0,l.length-1),I&&"svg"===s&&(I=!1)):e.u!==r&&(o.data=r)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(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()})))}},Z=(e,t)=>{if(e.o|=16,4&e.o)return void(e.o|=512);X(e,e.j);const n=()=>ee(e,t);if(!t)return $(n);queueMicrotask((()=>{n()}))},ee=(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=re(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=te(l,(()=>re(o,"componentWillRender",void 0,n))),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,i=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=R(t),l=s.get(o);if(!c.document)return o;if(e=11===e.nodeType?e:c.document,l)if("string"==typeof l){let i,s=P.get(e=e.head||e);if(s||P.set(e,s=new Set),!s.has(o)){{i=c.document.createElement("style"),i.innerHTML=l;const o=null!=(n=u.k)?n:S(c.document);if(null!=o&&i.setAttribute("nonce",o),!(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),d?e.adoptedStyleSheets.unshift(t):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+=r),s&&s.add(o)}}else e.adoptedStyleSheets.includes(l)||(d?e.adoptedStyleSheets.push(l):e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),i&&(i.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.C||U(null,null),i=(e=>e&&e.v===W)(t)?t:D(null,null,t);if(N=o.tagName,n&&i.h)for(const e of Object.keys(i.h))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.h[e]=o[e]);i.v=null,i.o|=4,e.C=i,i.$=l.$=o.shadowRoot||o,K(l,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,o=e.j;re(n,"componentDidRender",void 0,t),64&e.o?re(n,"componentDidUpdate",void 0,t):(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>Z(e,!1))),e.o&=-517},se=()=>{b((()=>(e=>{const t=u.ce("appload",{detail:{namespace:"gauge-page-header"}});return e.dispatchEvent(t),t})(c)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,n,o,l)=>{const i=t(e);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.i}" 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/stenciljs/core/issues/5457).`);const s=i.P.get(n),r=i.o,c=i.t;if(o=L(o),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;Z(i,!1)}},ae=(e,n,o)=>{var l,i;const s=e.prototype;if(n.R){const r=Object.entries(null!=(l=n.R)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(n.R[e][0]|=2048),r&&(n.R[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&n.R[e][0]))return((e,n)=>t(this).P.get(n))(0,e);const o=t(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(i){const s=t(this);if(s){if(r){const t=32&l?this[e]:s.$hostElement$[e];return void 0===t&&s.P.get(e)?i=s.P.get(e):!s.P.get(e)&&t&&s.P.set(e,t),r.call(this,L(i)),void ue(this,e,i=32&l?this[e]:s.$hostElement$[e],n)}{if(!(1&o&&4096&n.R[e][0]))return ue(this,e,i,n),void(1&o&&!s.t&&s.D.then((()=>{4096&n.R[e][0]&&s.t[e]!==s.P.get(e)&&(s.t[e]=i)})));const t=()=>{const t=s.t[e];!s.P.get(e)&&t&&s.P.set(e,t),s.t[e]=L(i),ue(this,e,s.t[e],n)};s.t?t():s.D.then((()=>t()))}}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(e,l,i){u.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=t(this),s=null==o?void 0:o.o;if(o&&s&&!(8&s)&&128&s&&i!==l){const t=o.t,s=null==(r=n.U)?void 0:r[e];null==s||s.forEach((n=>{null!=t[n]&&t[n].call(t,i,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([e,t])=>31&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},de=(e,t)=>{re(e,"disconnectedCallback",void 0,t||e)},he=(e,n={})=>{var o;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const a=[],d=n.exclude||[],h=c.customElements,p=c.document.head,m=p.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],i:n[1],R:n[2],W:n[3]};4&o.o&&($=!0),o.R=n[2];const r=o.i,c=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,O:t,P:new Map};n.D=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.i}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else x.call(e,o)}connectedCallback(){t(this)&&(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);if(!n)return;const o=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?fe(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>fe(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){X(n,n.j=t);break}}o.R&&Object.entries(o.R).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 s=((e,t)=>{const n=e.i.replace(/-/g,"_"),o=e.A;if(!o)return;const s=i.get(o);return s?s[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(s&&"then"in s){const e=()=>{};o=await s,e()}else o=s;if(!o)throw Error(`Constructor for "${n.i}#${t.N}" was not found`);o.isProxied||(ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r(),fe(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=R(n);if(!s.has(t)){const o=()=>{};((e,t,n)=>{let o=s.get(e);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,s.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Z(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this))))}disconnectedCallback(){u.jmp((()=>(async e=>{if(!(1&u.o)){const n=t(e);(null==n?void 0:n.t)?de(n.t,e):(null==n?void 0:n.D)&&n.D.then((()=>de(n.t,e)))}P.has(e)&&P.delete(e),e.shadowRoot&&P.has(e.shadowRoot)&&P.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const n=t(this);if(!n)return;const o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.$)instanceof Node&&!n.C.$.isConnected&&delete n.C.$}))}componentOnReady(){var e;return null==(e=t(this))?void 0:e.D}};o.A=e[0],d.includes(r)||h.get(r)||(a.push(r),h.define(r,ae(c,o,1)))}))})),a.length>0&&($&&(v.textContent+=r),v.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=u.k)?o:S(c.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((e=>e.connectedCallback())):u.jmp((()=>w=setTimeout(se,30)))},pe=e=>u.k=e;export{he as b,D as h,a as p,n as r,pe as s}