gauge-page-header 0.0.436 → 0.0.438

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-86b6bd41.js');
5
+ const index = require('./index-6f928b8a.js');
6
6
 
7
7
  const eswat2IoCss = "a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";
8
8
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-86b6bd41.js');
5
+ const index = require('./index-6f928b8a.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gauge-page-header.cjs.js', document.baseURI).href));
@@ -645,8 +645,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
645
645
  * @param oldCh the old children of the parent node
646
646
  * @param newVNode the new VNode which will replace the parent
647
647
  * @param newCh the new children of the parent node
648
+ * @param isInitialRender whether or not this is the first render of the vdom
648
649
  */
649
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
650
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
650
651
  let oldStartIdx = 0;
651
652
  let newStartIdx = 0;
652
653
  let oldEndIdx = oldCh.length - 1;
@@ -670,25 +671,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
670
671
  else if (newEndVnode == null) {
671
672
  newEndVnode = newCh[--newEndIdx];
672
673
  }
673
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
674
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
674
675
  // if the start nodes are the same then we should patch the new VNode
675
676
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
676
677
  // indices to reflect that. We don't need to move any DOM Nodes around
677
678
  // since things are matched up in order.
678
- patch(oldStartVnode, newStartVnode);
679
+ patch(oldStartVnode, newStartVnode, isInitialRender);
679
680
  oldStartVnode = oldCh[++oldStartIdx];
680
681
  newStartVnode = newCh[++newStartIdx];
681
682
  }
682
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
683
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
683
684
  // likewise, if the end nodes are the same we patch new onto old and
684
685
  // decrement our end indices, and also likewise in this case we don't
685
686
  // need to move any DOM Nodes.
686
- patch(oldEndVnode, newEndVnode);
687
+ patch(oldEndVnode, newEndVnode, isInitialRender);
687
688
  oldEndVnode = oldCh[--oldEndIdx];
688
689
  newEndVnode = newCh[--newEndIdx];
689
690
  }
690
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
691
- patch(oldStartVnode, newEndVnode);
691
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
692
+ patch(oldStartVnode, newEndVnode, isInitialRender);
692
693
  // We need to move the element for `oldStartVnode` into a position which
693
694
  // will be appropriate for `newEndVnode`. For this we can use
694
695
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -710,8 +711,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
710
711
  oldStartVnode = oldCh[++oldStartIdx];
711
712
  newEndVnode = newCh[--newEndIdx];
712
713
  }
713
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
714
- patch(oldEndVnode, newStartVnode);
714
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
715
+ patch(oldEndVnode, newStartVnode, isInitialRender);
715
716
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
716
717
  // the same node, so since we're here we know that they are not. Thus we
717
718
  // can move the element for `oldEndVnode` _before_ the element for
@@ -765,9 +766,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
765
766
  *
766
767
  * @param leftVNode the first VNode to check
767
768
  * @param rightVNode the second VNode to check
769
+ * @param isInitialRender whether or not this is the first render of the vdom
768
770
  * @returns whether they're equal or not
769
771
  */
770
- const isSameVnode = (leftVNode, rightVNode) => {
772
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
771
773
  // compare if two vnode to see if they're "technically" the same
772
774
  // need to have the same element tag, and same key to be the same
773
775
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -782,8 +784,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
782
784
  *
783
785
  * @param oldVNode an old VNode whose DOM element and children we want to update
784
786
  * @param newVNode a new VNode representing an updated version of the old one
787
+ * @param isInitialRender whether or not this is the first render of the vdom
785
788
  */
786
- const patch = (oldVNode, newVNode) => {
789
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
787
790
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
788
791
  const oldChildren = oldVNode.$children$;
789
792
  const newChildren = newVNode.$children$;
@@ -806,7 +809,7 @@ const patch = (oldVNode, newVNode) => {
806
809
  if (oldChildren !== null && newChildren !== null) {
807
810
  // looks like there's child vnodes for both the old and new vnodes
808
811
  // so we need to call `updateChildren` to reconcile them
809
- updateChildren(elm, oldChildren, newVNode, newChildren);
812
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
810
813
  }
811
814
  else if (newChildren !== null) {
812
815
  // no old child vnodes, but there are new child vnodes to add
@@ -883,7 +886,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
883
886
  scopeId = hostElm['s-sc'];
884
887
  }
885
888
  // synchronous patch
886
- patch(oldVNode, rootVnode);
889
+ patch(oldVNode, rootVnode, isInitialLoad);
887
890
  };
888
891
  const attachToAncestor = (hostRef, ancestorComponent) => {
889
892
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-86b6bd41.js');
5
+ const index = require('./index-6f928b8a.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.8.2",
8
+ "version": "4.9.0",
9
9
  "typescriptVersion": "5.2.2"
10
10
  },
11
11
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-caaf2b59.js';
1
+ import { r as registerInstance, h } from './index-a6de55b0.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,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-caaf2b59.js';
2
- export { s as setNonce } from './index-caaf2b59.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a6de55b0.js';
2
+ export { s as setNonce } from './index-a6de55b0.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -623,8 +623,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
623
623
  * @param oldCh the old children of the parent node
624
624
  * @param newVNode the new VNode which will replace the parent
625
625
  * @param newCh the new children of the parent node
626
+ * @param isInitialRender whether or not this is the first render of the vdom
626
627
  */
627
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
628
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
628
629
  let oldStartIdx = 0;
629
630
  let newStartIdx = 0;
630
631
  let oldEndIdx = oldCh.length - 1;
@@ -648,25 +649,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
648
649
  else if (newEndVnode == null) {
649
650
  newEndVnode = newCh[--newEndIdx];
650
651
  }
651
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
652
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
652
653
  // if the start nodes are the same then we should patch the new VNode
653
654
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
654
655
  // indices to reflect that. We don't need to move any DOM Nodes around
655
656
  // since things are matched up in order.
656
- patch(oldStartVnode, newStartVnode);
657
+ patch(oldStartVnode, newStartVnode, isInitialRender);
657
658
  oldStartVnode = oldCh[++oldStartIdx];
658
659
  newStartVnode = newCh[++newStartIdx];
659
660
  }
660
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
661
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
661
662
  // likewise, if the end nodes are the same we patch new onto old and
662
663
  // decrement our end indices, and also likewise in this case we don't
663
664
  // need to move any DOM Nodes.
664
- patch(oldEndVnode, newEndVnode);
665
+ patch(oldEndVnode, newEndVnode, isInitialRender);
665
666
  oldEndVnode = oldCh[--oldEndIdx];
666
667
  newEndVnode = newCh[--newEndIdx];
667
668
  }
668
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
669
- patch(oldStartVnode, newEndVnode);
669
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
670
+ patch(oldStartVnode, newEndVnode, isInitialRender);
670
671
  // We need to move the element for `oldStartVnode` into a position which
671
672
  // will be appropriate for `newEndVnode`. For this we can use
672
673
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -688,8 +689,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
688
689
  oldStartVnode = oldCh[++oldStartIdx];
689
690
  newEndVnode = newCh[--newEndIdx];
690
691
  }
691
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
692
- patch(oldEndVnode, newStartVnode);
692
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
693
+ patch(oldEndVnode, newStartVnode, isInitialRender);
693
694
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
694
695
  // the same node, so since we're here we know that they are not. Thus we
695
696
  // can move the element for `oldEndVnode` _before_ the element for
@@ -743,9 +744,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
743
744
  *
744
745
  * @param leftVNode the first VNode to check
745
746
  * @param rightVNode the second VNode to check
747
+ * @param isInitialRender whether or not this is the first render of the vdom
746
748
  * @returns whether they're equal or not
747
749
  */
748
- const isSameVnode = (leftVNode, rightVNode) => {
750
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
749
751
  // compare if two vnode to see if they're "technically" the same
750
752
  // need to have the same element tag, and same key to be the same
751
753
  if (leftVNode.$tag$ === rightVNode.$tag$) {
@@ -760,8 +762,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
760
762
  *
761
763
  * @param oldVNode an old VNode whose DOM element and children we want to update
762
764
  * @param newVNode a new VNode representing an updated version of the old one
765
+ * @param isInitialRender whether or not this is the first render of the vdom
763
766
  */
764
- const patch = (oldVNode, newVNode) => {
767
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
765
768
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
766
769
  const oldChildren = oldVNode.$children$;
767
770
  const newChildren = newVNode.$children$;
@@ -784,7 +787,7 @@ const patch = (oldVNode, newVNode) => {
784
787
  if (oldChildren !== null && newChildren !== null) {
785
788
  // looks like there's child vnodes for both the old and new vnodes
786
789
  // so we need to call `updateChildren` to reconcile them
787
- updateChildren(elm, oldChildren, newVNode, newChildren);
790
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
788
791
  }
789
792
  else if (newChildren !== null) {
790
793
  // no old child vnodes, but there are new child vnodes to add
@@ -861,7 +864,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
861
864
  scopeId = hostElm['s-sc'];
862
865
  }
863
866
  // synchronous patch
864
- patch(oldVNode, rootVnode);
867
+ patch(oldVNode, rootVnode, isInitialLoad);
865
868
  };
866
869
  const attachToAncestor = (hostRef, ancestorComponent) => {
867
870
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-caaf2b59.js';
2
- export { s as setNonce } from './index-caaf2b59.js';
1
+ import { b as bootstrapLazy } from './index-a6de55b0.js';
2
+ export { s as setNonce } from './index-a6de55b0.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-8140a5f1.js";export{s as setNonce}from"./p-8140a5f1.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((e=>a([["p-060a94a9",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
1
+ import{p as e,b as o}from"./p-15f75004.js";export{s as setNonce}from"./p-15f75004.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-481ebe51",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
@@ -0,0 +1,2 @@
1
+ let n,e,t=!1,l=!1;const o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(n,e,...t)=>{let l=null,o=!1,s=!1;const c=[],r=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(r(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=u(n,null);return a.l=e,c.length>0&&(a.o=c),a},u=(n,e)=>({i:0,u:n,t:e,p:null,o:null,l:null}),a={},f=new WeakMap,d=n=>"sc-"+n.$,p=(n,e,t,l,o,s)=>{if(t!==l){let c=V(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==e[0]||"n"!==e[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!c||4&s||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):V(G,r)?r.slice(2):r[2]+e.slice(3),t||l){const o=e.endsWith(m);e=e.replace(v,""),t&&J.rel(n,e,t,o),l&&J.ael(n,e,l,o)}}},y=/\s/,$=n=>n?n.split(y):[],m="Capture",v=RegExp(m+"$"),h=(n,e,t,l)=>{const o=11===e.p.nodeType&&e.p.host?e.p.host:e.p,i=n&&n.l||s,c=e.l||s;for(l in i)l in c||p(o,l,i[l],void 0,t,e.i);for(l in c)p(o,l,i[l],c[l],t,e.i)},w=(l,o,s)=>{const i=o.o[s];let c,r,u=0;if(null!==i.t)c=i.p=I.createTextNode(i.t);else{if(t||(t="svg"===i.u),c=i.p=I.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.u),t&&"foreignObject"===i.u&&(t=!1),h(null,i,t),null!=n&&c["s-si"]!==n&&c.classList.add(c["s-si"]=n),i.o)for(u=0;u<i.o.length;++u)r=w(l,i,u),r&&c.appendChild(r);"svg"===i.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c["s-hn"]=e,c},b=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=w(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},g=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.p;n&&n.remove()}}},j=(n,e)=>n.u===e.u,S=(n,e,l=!1)=>{const o=e.p=n.p,s=n.o,i=e.o,c=e.u,r=e.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,h(n,e,t),null!==s&&null!==i?((n,e,t,l,o=!1)=>{let s,i=0,c=0,r=e.length-1,u=e[0],a=e[r],f=l.length-1,d=l[0],p=l[f];for(;i<=r&&c<=f;)null==u?u=e[++i]:null==a?a=e[--r]:null==d?d=l[++c]:null==p?p=l[--f]:j(u,d)?(S(u,d,o),u=e[++i],d=l[++c]):j(a,p)?(S(a,p,o),a=e[--r],p=l[--f]):j(u,p)?(S(u,p,o),n.insertBefore(u.p,a.p.nextSibling),u=e[++i],p=l[--f]):j(a,d)?(S(a,d,o),n.insertBefore(a.p,u.p),a=e[--r],d=l[++c]):(s=w(e&&e[c],t,c),d=l[++c],s&&u.p.parentNode.insertBefore(s,u.p));i>r?b(n,null==l[f+1]?null:l[f+1].p,t,l,c,f):c>f&&g(e,i,r)})(o,s,e,i,l):null!==i?(null!==n.t&&(o.textContent=""),b(o,null,e,i,0,i.length-1)):null!==s&&g(s,0,s.length-1),t&&"svg"===c&&(t=!1)):n.t!==r&&(o.data=r)},O=(n,e)=>{e&&!n.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.m=e)))},k=(n,e)=>{if(n.i|=16,!(4&n.i))return O(n,n.v),ln((()=>C(n,e)));n.i|=512},C=(n,e)=>{const t=n.h;return M(void 0,(()=>P(n,t,e)))},M=(n,e)=>x(n)?n.then(e):e(),x=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,P=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.j,t=n.$hostElement$,l=e.i,s=((n,e)=>{var t;const l=d(e),s=D.get(l);if(n=11===n.nodeType?n:I,s)if("string"==typeof s){let i,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(l)){{i=I.createElement("style"),i.innerHTML=s;const e=null!==(t=J.S)&&void 0!==t?t:c(I);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.i&&(i.innerHTML+=o),r&&r.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);E(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>N(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},E=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O||u(null,null),c=(n=>n&&n.u===a)(l)?l:r(null,null,l);if(e=s.tagName,o&&c.l)for(const n of Object.keys(c.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(c.l[n]=s[n]);c.u=null,c.i|=4,t.O=c,c.p=i.p=s.shadowRoot||s,n=s["s-sc"],S(i,c,o)})(t,l,s)}catch(n){_(n,t.$hostElement$)}return null},N=n=>{const e=n.$hostElement$,t=n.v;64&n.i||(n.i|=64,T(e),n.k(e),t||R()),n.m&&(n.m(),n.m=void 0),512&n.i&&tn((()=>k(n,!1))),n.i&=-517},R=()=>{T(I.documentElement),tn((()=>(n=>{const e=J.ce("appload",{detail:{namespace:"gauge-page-header"}});return n.dispatchEvent(e),e})(G)))},T=n=>n.classList.add("hydrated"),A=(n,e,t)=>{const l=n.prototype;return e.C&&Object.entries(e.C).map((([n,[e]])=>{(31&e||2&t&&32&e)&&Object.defineProperty(l,n,{get(){return((n,e)=>q(this).M.get(e))(0,n)},set(e){((n,e,t)=>{const l=q(n),o=l.M.get(e),s=l.i,c=l.h;t=(n=>(null==n||i(n),n))(t),8&s&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.M.set(e,t),c&&2==(18&s)&&k(l,!1))})(this,n,e)},configurable:!0,enumerable:!0})})),n},L=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),a=I.createElement("style"),f=[];let p,y=!0;Object.assign(J,e),J.P=new URL(e.resourcesUrl||"./",I.baseURI).href;let $=!1;if(n.map((n=>{n[1].map((e=>{const t={i:e[0],$:e[1],C:e[2],N:e[3]};4&t.i&&($=!0),t.C=e[2];const o=t.$,c=class extends HTMLElement{constructor(n){super(n),H(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?f.push(this):J.jmp((()=>(n=>{if(0==(1&J.i)){const e=q(n),t=e.j,l=()=>{};if(1&e.i)(null==e?void 0:e.h)||(null==e?void 0:e.R)&&e.R.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){O(e,e.v=t);break}}t.C&&Object.entries(t.C).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=B(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(A(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){_(n)}e.i&=-9,n()}if(l.style){let n=l.style;const e=d(t);if(!D.has(e)){const l=()=>{};((n,e,t)=>{let l=D.get(n);Q&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,D.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.v,s=()=>k(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.i)){const n=q(this);(null==n?void 0:n.h)||(null==n?void 0:n.R)&&n.R.then((()=>{}))}})()))}componentOnReady(){return q(this).R}};t.T=n[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,A(c,t,1)))}))})),$&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=J.S)&&void 0!==t?t:c(I);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):J.jmp((()=>p=setTimeout(R,30)))},U=n=>J.S=n,W=new WeakMap,q=n=>W.get(n),F=(n,e)=>W.set(e.h=n,e),H=(n,e)=>{const t={i:0,$hostElement$:n,j:e,M:new Map};return t.R=new Promise((n=>t.k=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,t)},V=(n,e)=>e in n,_=(n,e)=>(0,console.error)(n,e),z=new Map,B=n=>{const e=n.$.replace(/-/g,"_"),t=n.T,l=z.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(z.set(t,n),n[e])),_)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},D=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},K=n=>Promise.resolve(n),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),X=[],Y=[],Z=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&J.i?tn(en):J.raf(en))},nn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){_(n)}n.length=0},en=()=>{nn(X),nn(Y),(l=X.length>0)&&J.raf(en)},tn=n=>K().then(n),ln=Z(Y,!0);export{L as b,r as h,K as p,F as r,U as s}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-8140a5f1.js";const i="eswat2",r=class{constructor(a){e(this,a)}render(){return a("a",{href:"https://eswat2.dev","aria-label":i,title:i},(({hex:e="currentColor",size:i=24})=>a("svg",{width:i,height:i,viewBox:"0 0 24 24"},a("g",{fill:e},a("path",{d:"M8.35,3C9.53,2.83 10.78,4.12 11.14,5.9C11.5,7.67 10.85,9.25\n 9.67,9.43C8.5,9.61 7.24,8.32 6.87,6.54C6.5,4.77 7.17,3.19\n 8.35,3M15.5,3C16.69,3.19 17.35,4.77 17,6.54C16.62,8.32 15.37,9.61\n 14.19,9.43C13,9.25 12.35,7.67 12.72,5.9C13.08,4.12 14.33,2.83\n 15.5,3M3,7.6C4.14,7.11 5.69,8 6.5,9.55C7.26,11.13 7,12.79\n 5.87,13.28C4.74,13.77 3.2,12.89 2.41,11.32C1.62,9.75 1.9,8.08\n 3,7.6M21,7.6C22.1,8.08 22.38,9.75 21.59,11.32C20.8,12.89 19.26,13.77\n 18.13,13.28C17,12.79 16.74,11.13 17.5,9.55C18.31,8 19.86,7.11\n 21,7.6M19.33,18.38C19.37,19.32 18.65,20.36 17.79,20.75C16,21.57\n 13.88,19.87 11.89,19.87C9.9,19.87 7.76,21.64 6,20.75C5,20.26 4.31,18.96\n 4.44,17.88C4.62,16.39 6.41,15.59 7.47,14.5C8.88,13.09 9.88,10.44\n 11.89,10.44C13.89,10.44 14.95,13.05 16.3,14.5C17.41,15.72 19.26,16.75\n 19.33,18.38Z"})),a("path",{d:"M0 0h24v24H0z",fill:"none"})))({}))}};r.style="a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";const s=e=>{if(navigator.clipboard)try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy!",e)}},t=class{constructor(a){e(this,a),this.vehicleInfo=void 0}yearMakeModel(){const{ModelYear:e,Make:a,Model:i}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${i}`}isCertified(){const{IsCertified:e}=this.vehicleInfo||{IsCertified:!1};return e}isRetail(){const{RetailWholesale:e}=this.vehicleInfo||{RetailWholesale:"R"};return"R"===e}isNew(){const{NewUsed:e}=this.vehicleInfo||{NewUsed:"N"};return"N"===e}stockNumber(){const{StockNumber:e}=this.vehicleInfo||{StockNumber:"-"};return e}vin(){const{Vin:e}=this.vehicleInfo||{Vin:"-"};return e}daysInInventory(){const{DaysInInventory:e}=this.vehicleInfo||{DaysInInventory:0};return`${e} Days`}mileage(){const{Odometer:e}=this.vehicleInfo||{Odometer:0};return`${Intl.NumberFormat().format(e)} mi`}body(){const{BodyDescription:e}=this.vehicleInfo||{BodyDescription:"-"};return e}exteriorColor(){const{ExteriorColor:e}=this.vehicleInfo||{ExteriorColor:"-"};return e}interiorColor(){const{InteriorColor:e}=this.vehicleInfo||{InteriorColor:"-"};return e}driveTrain(){const{DriveTrainType:e}=this.vehicleInfo||{DriveTrainType:"-"};return e}engine(){const{EngineDescription:e}=this.vehicleInfo||{EngineDescription:"-"};return e}transmission(){const{TransmissionDescription:e}=this.vehicleInfo||{TransmissionDescription:"- "};return e}render(){var e="";return this.isNew()||(e=this.isCertified()?a("span",{class:"certified badge"},a("span",{role:"label"},"Certified")):a("span",{class:"not-certified badge"},a("span",{role:"label"},"Not Certified"))),[a("div",{class:"gauge-page-header"},a("eswat2-io",null),a("div",{class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{id:"year-make-model-header"},this.yearMakeModel()),a("span",{class:"badge-set-container"},e,this.isRetail()?a("span",{class:"retail badge"},a("span",{role:"label"},"Retail")):a("span",{class:"wholesale badge"},a("span",{role:"label"},"Wholesale")))),a("div",{class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{id:"vehicle-identifier-info-header"},a("span",{class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{class:"vehicle-info-header-segment"},this.mileage()))),a("div",{class:"vehicle-data-container"},a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Body"),a("p",{class:"segment-value"},this.body())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Color"),a("p",{class:"segment-value"},this.exteriorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Int. Color"),a("p",{class:"segment-value"},this.interiorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Drive Train"),a("p",{class:"segment-value"},this.driveTrain())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Engine"),a("p",{class:"segment-value"},this.engine())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Transmission"),a("p",{class:"segment-value"},this.transmission()))))]}};t.style=":host{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}.gauge-page-header{padding:0 5px;display:flex;flex-direction:column;color:var(--clrs-navy)}.gauge-page-header *{font-family:'Roboto'}.gauge-page-header .year-make-model-container{height:35px;display:flex;align-items:center}.gauge-page-header #year-make-model-header{font-size:32px;font-weight:500;margin-left:0}.gauge-page-header .vehicle-identifier-info-container{height:30px;margin-bottom:5px;}.gauge-page-header #vehicle-identifier-info-header{font-weight:400;margin-top:8px}.gauge-page-header .vehicle-info-header-segment{margin-right:1em}.gauge-page-header .vehicle-info-header-segment.capitalize{text-transform:uppercase}.gauge-page-header .vehicle-info-header-segment:not(:last-child):after{padding-left:1em;content:'|'}.gauge-page-header .vehicle-info-segment{float:left;margin-right:30px;font-size:14px}.gauge-page-header .vehicle-data-container{display:flex;flex-direction:row}.gauge-page-header .segment-heading{color:var(--clrs-slate);font-size:14px;font-weight:400;margin-bottom:4px}.gauge-page-header .segment-value{margin-top:0;font-weight:400}.gauge-page-header .badge-set-container{display:flex;padding-left:8px}.gauge-page-header .badge{display:flex;align-items:center;justify-content:center;margin-left:8px;padding:3px 10px;font-size:12px;border-radius:1em;font-weight:600;border:solid 1px;}.gauge-page-header .badge.certified{background-color:#f9fffb;border-color:#5ebb47}.gauge-page-header .badge.certified [role='label']{color:#008629}.gauge-page-header .badge.not-certified{border-color:#46576f}.gauge-page-header .badge.not-certified [role='label']{color:#46576f}.gauge-page-header .badge.retail{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.retail [role='label']{color:#0576b3}.gauge-page-header .badge.wholesale{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.wholesale [role='label']{color:#0576b3}";export{r as eswat2_io,t as gauge_page_header}
1
+ import{r as e,h as a}from"./p-15f75004.js";const i="eswat2",r=class{constructor(a){e(this,a)}render(){return a("a",{href:"https://eswat2.dev","aria-label":i,title:i},(({hex:e="currentColor",size:i=24})=>a("svg",{width:i,height:i,viewBox:"0 0 24 24"},a("g",{fill:e},a("path",{d:"M8.35,3C9.53,2.83 10.78,4.12 11.14,5.9C11.5,7.67 10.85,9.25\n 9.67,9.43C8.5,9.61 7.24,8.32 6.87,6.54C6.5,4.77 7.17,3.19\n 8.35,3M15.5,3C16.69,3.19 17.35,4.77 17,6.54C16.62,8.32 15.37,9.61\n 14.19,9.43C13,9.25 12.35,7.67 12.72,5.9C13.08,4.12 14.33,2.83\n 15.5,3M3,7.6C4.14,7.11 5.69,8 6.5,9.55C7.26,11.13 7,12.79\n 5.87,13.28C4.74,13.77 3.2,12.89 2.41,11.32C1.62,9.75 1.9,8.08\n 3,7.6M21,7.6C22.1,8.08 22.38,9.75 21.59,11.32C20.8,12.89 19.26,13.77\n 18.13,13.28C17,12.79 16.74,11.13 17.5,9.55C18.31,8 19.86,7.11\n 21,7.6M19.33,18.38C19.37,19.32 18.65,20.36 17.79,20.75C16,21.57\n 13.88,19.87 11.89,19.87C9.9,19.87 7.76,21.64 6,20.75C5,20.26 4.31,18.96\n 4.44,17.88C4.62,16.39 6.41,15.59 7.47,14.5C8.88,13.09 9.88,10.44\n 11.89,10.44C13.89,10.44 14.95,13.05 16.3,14.5C17.41,15.72 19.26,16.75\n 19.33,18.38Z"})),a("path",{d:"M0 0h24v24H0z",fill:"none"})))({}))}};r.style="a{position:absolute;top:8px;right:8px;color:var(--clrs-gray)}:hover{fill:var(--clrs-navy)}";const s=e=>{if(navigator.clipboard)try{navigator.clipboard.writeText(e)}catch(e){console.error("Failed to copy!",e)}},t=class{constructor(a){e(this,a),this.vehicleInfo=void 0}yearMakeModel(){const{ModelYear:e,Make:a,Model:i}=this.vehicleInfo||{ModelYear:2020,Make:"-",Model:"-"};return`${e} ${a} ${i}`}isCertified(){const{IsCertified:e}=this.vehicleInfo||{IsCertified:!1};return e}isRetail(){const{RetailWholesale:e}=this.vehicleInfo||{RetailWholesale:"R"};return"R"===e}isNew(){const{NewUsed:e}=this.vehicleInfo||{NewUsed:"N"};return"N"===e}stockNumber(){const{StockNumber:e}=this.vehicleInfo||{StockNumber:"-"};return e}vin(){const{Vin:e}=this.vehicleInfo||{Vin:"-"};return e}daysInInventory(){const{DaysInInventory:e}=this.vehicleInfo||{DaysInInventory:0};return`${e} Days`}mileage(){const{Odometer:e}=this.vehicleInfo||{Odometer:0};return`${Intl.NumberFormat().format(e)} mi`}body(){const{BodyDescription:e}=this.vehicleInfo||{BodyDescription:"-"};return e}exteriorColor(){const{ExteriorColor:e}=this.vehicleInfo||{ExteriorColor:"-"};return e}interiorColor(){const{InteriorColor:e}=this.vehicleInfo||{InteriorColor:"-"};return e}driveTrain(){const{DriveTrainType:e}=this.vehicleInfo||{DriveTrainType:"-"};return e}engine(){const{EngineDescription:e}=this.vehicleInfo||{EngineDescription:"-"};return e}transmission(){const{TransmissionDescription:e}=this.vehicleInfo||{TransmissionDescription:"- "};return e}render(){var e="";return this.isNew()||(e=this.isCertified()?a("span",{class:"certified badge"},a("span",{role:"label"},"Certified")):a("span",{class:"not-certified badge"},a("span",{role:"label"},"Not Certified"))),[a("div",{class:"gauge-page-header"},a("eswat2-io",null),a("div",{class:"year-make-model-container",onClick:()=>s(this.yearMakeModel()),title:"Click to Copy Year/Make/Model"},a("h1",{id:"year-make-model-header"},this.yearMakeModel()),a("span",{class:"badge-set-container"},e,this.isRetail()?a("span",{class:"retail badge"},a("span",{role:"label"},"Retail")):a("span",{class:"wholesale badge"},a("span",{role:"label"},"Wholesale")))),a("div",{class:"vehicle-identifier-info-container",onClick:()=>s(this.vin()),title:"Click to Copy VIN"},a("h4",{id:"vehicle-identifier-info-header"},a("span",{class:"vehicle-info-header-segment capitalize"},this.stockNumber()),a("span",{class:"vehicle-info-header-segment capitalize"},this.vin()),a("span",{class:"vehicle-info-header-segment"},this.daysInInventory()),a("span",{class:"vehicle-info-header-segment"},this.mileage()))),a("div",{class:"vehicle-data-container"},a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Body"),a("p",{class:"segment-value"},this.body())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Color"),a("p",{class:"segment-value"},this.exteriorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Int. Color"),a("p",{class:"segment-value"},this.interiorColor())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Drive Train"),a("p",{class:"segment-value"},this.driveTrain())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Engine"),a("p",{class:"segment-value"},this.engine())),a("div",{class:"vehicle-info-segment"},a("h4",{class:"segment-heading"},"Transmission"),a("p",{class:"segment-value"},this.transmission()))))]}};t.style=":host{--clrs-navy:#001f3f;--clrs-blue:#0074d9;--clrs-aqua:#7fdbff;--clrs-teal:#39cccc;--clrs-olive:#3d9970;--clrs-green:#2ecc40;--clrs-lime:#01ff70;--clrs-yellow:#ffdc00;--clrs-orange:#ff851b;--clrs-red:#ff4136;--clrs-maroon:#85144b;--clrs-fuchsia:#f012be;--clrs-purple:#b10dc9;--clrs-black:#111111;--clrs-gray:#aaaaaa;--clrs-silver:#dddddd;--clrs-bada55:#bada55;--clrs-slate:#708090;--clrs-slate4:#4e5964;--clrs-white:#ffffff}.gauge-page-header{padding:0 5px;display:flex;flex-direction:column;color:var(--clrs-navy)}.gauge-page-header *{font-family:'Roboto'}.gauge-page-header .year-make-model-container{height:35px;display:flex;align-items:center}.gauge-page-header #year-make-model-header{font-size:32px;font-weight:500;margin-left:0}.gauge-page-header .vehicle-identifier-info-container{height:30px;margin-bottom:5px;}.gauge-page-header #vehicle-identifier-info-header{font-weight:400;margin-top:8px}.gauge-page-header .vehicle-info-header-segment{margin-right:1em}.gauge-page-header .vehicle-info-header-segment.capitalize{text-transform:uppercase}.gauge-page-header .vehicle-info-header-segment:not(:last-child):after{padding-left:1em;content:'|'}.gauge-page-header .vehicle-info-segment{float:left;margin-right:30px;font-size:14px}.gauge-page-header .vehicle-data-container{display:flex;flex-direction:row}.gauge-page-header .segment-heading{color:var(--clrs-slate);font-size:14px;font-weight:400;margin-bottom:4px}.gauge-page-header .segment-value{margin-top:0;font-weight:400}.gauge-page-header .badge-set-container{display:flex;padding-left:8px}.gauge-page-header .badge{display:flex;align-items:center;justify-content:center;margin-left:8px;padding:3px 10px;font-size:12px;border-radius:1em;font-weight:600;border:solid 1px;}.gauge-page-header .badge.certified{background-color:#f9fffb;border-color:#5ebb47}.gauge-page-header .badge.certified [role='label']{color:#008629}.gauge-page-header .badge.not-certified{border-color:#46576f}.gauge-page-header .badge.not-certified [role='label']{color:#46576f}.gauge-page-header .badge.retail{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.retail [role='label']{color:#0576b3}.gauge-page-header .badge.wholesale{background-color:#f6fcff;border-color:#0576b3}.gauge-page-header .badge.wholesale [role='label']{color:#0576b3}";export{r as eswat2_io,t as gauge_page_header}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gauge-page-header",
3
- "version": "0.0.436",
3
+ "version": "0.0.438",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,12 +24,12 @@
24
24
  "format": "prettier --write src"
25
25
  },
26
26
  "dependencies": {
27
- "@stencil/core": "4.8.2"
27
+ "@stencil/core": "4.9.0"
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
31
  "cspell": "8.1.3",
32
- "eslint": "8.55.0",
32
+ "eslint": "8.56.0",
33
33
  "prettier": "3.1.1",
34
34
  "tslint": "6.1.3",
35
35
  "typescript": "5.3.3"
@@ -1,2 +0,0 @@
1
- let n,e,t=!1,l=!1;const o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=n=>"object"==(n=typeof n)||"function"===n;function c(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(n,e,...t)=>{let l=null,o=!1,s=!1;const c=[],r=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(r(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=u(n,null);return a.l=e,c.length>0&&(a.o=c),a},u=(n,e)=>({i:0,u:n,t:e,p:null,o:null,l:null}),a={},f=new WeakMap,d=n=>"sc-"+n.$,p=(n,e,t,l,o,s)=>{if(t!==l){let c=V(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==e[0]||"n"!==e[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!c||4&s||o)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else if(e="-"===e[2]?e.slice(3):V(G,r)?r.slice(2):r[2]+e.slice(3),t||l){const o=e.endsWith(m);e=e.replace(v,""),t&&J.rel(n,e,t,o),l&&J.ael(n,e,l,o)}}},y=/\s/,$=n=>n?n.split(y):[],m="Capture",v=RegExp(m+"$"),h=(n,e,t,l)=>{const o=11===e.p.nodeType&&e.p.host?e.p.host:e.p,i=n&&n.l||s,c=e.l||s;for(l in i)l in c||p(o,l,i[l],void 0,t,e.i);for(l in c)p(o,l,i[l],c[l],t,e.i)},w=(l,o,s)=>{const i=o.o[s];let c,r,u=0;if(null!==i.t)c=i.p=I.createTextNode(i.t);else{if(t||(t="svg"===i.u),c=i.p=I.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.u),t&&"foreignObject"===i.u&&(t=!1),h(null,i,t),null!=n&&c["s-si"]!==n&&c.classList.add(c["s-si"]=n),i.o)for(u=0;u<i.o.length;++u)r=w(l,i,u),r&&c.appendChild(r);"svg"===i.u?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c["s-hn"]=e,c},b=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=w(null,l,s),c&&(o[s].p=c,r.insertBefore(c,t)))},g=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.p;n&&n.remove()}}},j=(n,e)=>n.u===e.u,S=(n,e)=>{const l=e.p=n.p,o=n.o,s=e.o,i=e.u,c=e.t;null===c?(t="svg"===i||"foreignObject"!==i&&t,h(n,e,t),null!==o&&null!==s?((n,e,t,l)=>{let o,s=0,i=0,c=e.length-1,r=e[0],u=e[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=e[++s]:null==u?u=e[--c]:null==f?f=l[++i]:null==d?d=l[--a]:j(r,f)?(S(r,f),r=e[++s],f=l[++i]):j(u,d)?(S(u,d),u=e[--c],d=l[--a]):j(r,d)?(S(r,d),n.insertBefore(r.p,u.p.nextSibling),r=e[++s],d=l[--a]):j(u,f)?(S(u,f),n.insertBefore(u.p,r.p),u=e[--c],f=l[++i]):(o=w(e&&e[i],t,i),f=l[++i],o&&r.p.parentNode.insertBefore(o,r.p));s>c?b(n,null==l[a+1]?null:l[a+1].p,t,l,i,a):i>a&&g(e,s,c)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),b(l,null,e,s,0,s.length-1)):null!==o&&g(o,0,o.length-1),t&&"svg"===i&&(t=!1)):n.t!==c&&(l.data=c)},O=(n,e)=>{e&&!n.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.m=e)))},k=(n,e)=>{if(n.i|=16,!(4&n.i))return O(n,n.v),ln((()=>C(n,e)));n.i|=512},C=(n,e)=>{const t=n.h;return M(void 0,(()=>P(n,t,e)))},M=(n,e)=>x(n)?n.then(e):e(),x=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,P=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.j,t=n.$hostElement$,l=e.i,s=((n,e)=>{var t;const l=d(e),s=D.get(l);if(n=11===n.nodeType?n:I,s)if("string"==typeof s){let i,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(l)){{i=I.createElement("style"),i.innerHTML=s;const e=null!==(t=J.S)&&void 0!==t?t:c(I);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.i&&(i.innerHTML+=o),r&&r.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);E(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>N(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},E=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O||u(null,null),c=(n=>n&&n.u===a)(l)?l:r(null,null,l);if(e=s.tagName,o&&c.l)for(const n of Object.keys(c.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(c.l[n]=s[n]);c.u=null,c.i|=4,t.O=c,c.p=i.p=s.shadowRoot||s,n=s["s-sc"],S(i,c)})(t,l,s)}catch(n){_(n,t.$hostElement$)}return null},N=n=>{const e=n.$hostElement$,t=n.v;64&n.i||(n.i|=64,T(e),n.k(e),t||R()),n.m&&(n.m(),n.m=void 0),512&n.i&&tn((()=>k(n,!1))),n.i&=-517},R=()=>{T(I.documentElement),tn((()=>(n=>{const e=J.ce("appload",{detail:{namespace:"gauge-page-header"}});return n.dispatchEvent(e),e})(G)))},T=n=>n.classList.add("hydrated"),A=(n,e,t)=>{const l=n.prototype;return e.C&&Object.entries(e.C).map((([n,[e]])=>{(31&e||2&t&&32&e)&&Object.defineProperty(l,n,{get(){return((n,e)=>q(this).M.get(e))(0,n)},set(e){((n,e,t)=>{const l=q(n),o=l.M.get(e),s=l.i,c=l.h;t=(n=>(null==n||i(n),n))(t),8&s&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.M.set(e,t),c&&2==(18&s)&&k(l,!1))})(this,n,e)},configurable:!0,enumerable:!0})})),n},L=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=G.customElements,r=I.head,u=r.querySelector("meta[charset]"),a=I.createElement("style"),f=[];let p,y=!0;Object.assign(J,e),J.P=new URL(e.resourcesUrl||"./",I.baseURI).href;let $=!1;if(n.map((n=>{n[1].map((e=>{const t={i:e[0],$:e[1],C:e[2],N:e[3]};4&t.i&&($=!0),t.C=e[2];const o=t.$,c=class extends HTMLElement{constructor(n){super(n),H(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?f.push(this):J.jmp((()=>(n=>{if(0==(1&J.i)){const e=q(n),t=e.j,l=()=>{};if(1&e.i)(null==e?void 0:e.h)||(null==e?void 0:e.R)&&e.R.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){O(e,e.v=t);break}}t.C&&Object.entries(t.C).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=B(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(A(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){_(n)}e.i&=-9,n()}if(l.style){let n=l.style;const e=d(t);if(!D.has(e)){const l=()=>{};((n,e,t)=>{let l=D.get(n);Q&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,D.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.v,s=()=>k(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){J.jmp((()=>(async()=>{if(0==(1&J.i)){const n=q(this);(null==n?void 0:n.h)||(null==n?void 0:n.R)&&n.R.then((()=>{}))}})()))}componentOnReady(){return q(this).R}};t.T=n[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,A(c,t,1)))}))})),$&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=J.S)&&void 0!==t?t:c(I);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=!1,f.length?f.map((n=>n.connectedCallback())):J.jmp((()=>p=setTimeout(R,30)))},U=n=>J.S=n,W=new WeakMap,q=n=>W.get(n),F=(n,e)=>W.set(e.h=n,e),H=(n,e)=>{const t={i:0,$hostElement$:n,j:e,M:new Map};return t.R=new Promise((n=>t.k=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,t)},V=(n,e)=>e in n,_=(n,e)=>(0,console.error)(n,e),z=new Map,B=n=>{const e=n.$.replace(/-/g,"_"),t=n.T,l=z.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(z.set(t,n),n[e])),_)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},D=new Map,G="undefined"!=typeof window?window:{},I=G.document||{head:{}},J={i:0,P:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},K=n=>Promise.resolve(n),Q=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),X=[],Y=[],Z=(n,e)=>t=>{n.push(t),l||(l=!0,e&&4&J.i?tn(en):J.raf(en))},nn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){_(n)}n.length=0},en=()=>{nn(X),nn(Y),(l=X.length>0)&&J.raf(en)},tn=n=>K().then(n),ln=Z(Y,!0);export{L as b,r as h,K as p,F as r,U as s}