gauge-page-header 0.0.431 → 0.0.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/eswat2-io_2.cjs.entry.js +1 -1
- package/dist/cjs/gauge-page-header.cjs.js +2 -2
- package/dist/cjs/{index-7b8a2e69.js → index-8078f548.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/eswat2-io_2.entry.js +1 -1
- package/dist/esm/gauge-page-header.js +3 -3
- package/dist/esm/{index-8d6de6ac.js → index-050b3384.js} +3 -1
- package/dist/esm/loader.js +2 -2
- package/dist/gauge-page-header/gauge-page-header.esm.js +1 -1
- package/dist/gauge-page-header/{p-f3a3d94c.entry.js → p-2335a613.entry.js} +1 -1
- package/dist/gauge-page-header/{p-36000d95.js → p-2d8f65ac.js} +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8078f548.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-
|
|
5
|
+
const index = require('./index-8078f548.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.8.
|
|
8
|
+
Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gauge-page-header.cjs.js', document.baseURI).href));
|
|
@@ -1386,12 +1386,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1386
1386
|
// If we have styles, add them to the DOM
|
|
1387
1387
|
if (dataStyles.innerHTML.length) {
|
|
1388
1388
|
dataStyles.setAttribute('data-styles', '');
|
|
1389
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1390
1389
|
// Apply CSP nonce to the style tag if it exists
|
|
1391
1390
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1392
1391
|
if (nonce != null) {
|
|
1393
1392
|
dataStyles.setAttribute('nonce', nonce);
|
|
1394
1393
|
}
|
|
1394
|
+
// Insert the styles into the document head
|
|
1395
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1396
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1395
1397
|
}
|
|
1396
1398
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1397
1399
|
isBootstrapping = false;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-8078f548.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-050b3384.js';
|
|
2
|
+
export { s as setNonce } from './index-050b3384.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.8.
|
|
5
|
+
Stencil Client Patch Browser v4.8.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -1364,12 +1364,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1364
1364
|
// If we have styles, add them to the DOM
|
|
1365
1365
|
if (dataStyles.innerHTML.length) {
|
|
1366
1366
|
dataStyles.setAttribute('data-styles', '');
|
|
1367
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1368
1367
|
// Apply CSP nonce to the style tag if it exists
|
|
1369
1368
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1370
1369
|
if (nonce != null) {
|
|
1371
1370
|
dataStyles.setAttribute('nonce', nonce);
|
|
1372
1371
|
}
|
|
1372
|
+
// Insert the styles into the document head
|
|
1373
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1374
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1373
1375
|
}
|
|
1374
1376
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1375
1377
|
isBootstrapping = false;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-050b3384.js';
|
|
2
|
+
export { s as setNonce } from './index-050b3384.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-
|
|
1
|
+
import{p as e,b as a}from"./p-2d8f65ac.js";export{s as setNonce}from"./p-2d8f65ac.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((e=>a([["p-2335a613",[[1,"gauge-page-header",{vehicleInfo:[16]}],[1,"eswat2-io"]]]],e)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-
|
|
1
|
+
import{r as e,h as a}from"./p-2d8f65ac.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,2 +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=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=I.createTextNode(s.t);else{if(t||(t="svg"===s.u),i=s.p=I.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),h(null,s,t),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)c=w(e,s,r),c&&i.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},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","")
|
|
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=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=I.createTextNode(s.t);else{if(t||(t="svg"===s.u),i=s.p=I.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),h(null,s,t),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)c=w(e,s,r),c&&i.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},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
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}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gauge-page-header",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.433",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"format": "prettier --write src"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@stencil/core": "4.8.
|
|
27
|
+
"@stencil/core": "4.8.1"
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"cspell": "8.1.
|
|
31
|
+
"cspell": "8.1.3",
|
|
32
32
|
"eslint": "8.55.0",
|
|
33
33
|
"prettier": "3.1.0",
|
|
34
34
|
"tslint": "6.1.3",
|