proto-autos-wc 0.0.976 → 0.0.977
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/{index-30815dc3.js → index-e9f7876a.js} +187 -171
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-autos-wc.cjs.js +2 -2
- package/dist/cjs/proto-autos.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/{index-2ae8e3fb.js → index-843da774.js} +187 -171
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-autos-wc.js +3 -3
- package/dist/esm/proto-autos.entry.js +1 -1
- package/dist/proto-autos-wc/p-6ffb2af1.js +2 -0
- package/dist/proto-autos-wc/{p-3677a61b.entry.js → p-adf54c85.entry.js} +1 -1
- package/dist/proto-autos-wc/proto-autos-wc.esm.js +1 -1
- package/package.json +2 -2
- package/dist/proto-autos-wc/p-d592e8ae.js +0 -2
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-autos-wc';
|
|
|
24
24
|
const BUILD = /* proto-autos-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -206,6 +206,20 @@ var unwrapErr = (result) => {
|
|
|
206
206
|
throw result.value;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
+
var createTime = (fnName, tagName = "") => {
|
|
210
|
+
{
|
|
211
|
+
return () => {
|
|
212
|
+
return;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var uniqueTime = (key, measureText) => {
|
|
217
|
+
{
|
|
218
|
+
return () => {
|
|
219
|
+
return;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
};
|
|
209
223
|
var h = (nodeName, vnodeData, ...children) => {
|
|
210
224
|
let child = null;
|
|
211
225
|
let key = null;
|
|
@@ -307,6 +321,110 @@ var convertToPrivate = (node) => {
|
|
|
307
321
|
vnode.$name$ = node.vname;
|
|
308
322
|
return vnode;
|
|
309
323
|
};
|
|
324
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
325
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
326
|
+
if (propType & 1 /* String */) {
|
|
327
|
+
return String(propValue);
|
|
328
|
+
}
|
|
329
|
+
return propValue;
|
|
330
|
+
}
|
|
331
|
+
return propValue;
|
|
332
|
+
};
|
|
333
|
+
var emitEvent = (elm, name, opts) => {
|
|
334
|
+
const ev = plt.ce(name, opts);
|
|
335
|
+
elm.dispatchEvent(ev);
|
|
336
|
+
return ev;
|
|
337
|
+
};
|
|
338
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
339
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
340
|
+
let style = styles.get(scopeId2);
|
|
341
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
342
|
+
style = style || new CSSStyleSheet();
|
|
343
|
+
if (typeof style === "string") {
|
|
344
|
+
style = cssText;
|
|
345
|
+
} else {
|
|
346
|
+
style.replaceSync(cssText);
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
style = cssText;
|
|
350
|
+
}
|
|
351
|
+
styles.set(scopeId2, style);
|
|
352
|
+
};
|
|
353
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
354
|
+
var _a;
|
|
355
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
356
|
+
const style = styles.get(scopeId2);
|
|
357
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
358
|
+
if (style) {
|
|
359
|
+
if (typeof style === "string") {
|
|
360
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
361
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
362
|
+
let styleElm;
|
|
363
|
+
if (!appliedStyles) {
|
|
364
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
365
|
+
}
|
|
366
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
367
|
+
{
|
|
368
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
369
|
+
styleElm.innerHTML = style;
|
|
370
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
371
|
+
if (nonce != null) {
|
|
372
|
+
styleElm.setAttribute("nonce", nonce);
|
|
373
|
+
}
|
|
374
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
375
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
376
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
377
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
378
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
379
|
+
} else if ("host" in styleContainerNode) {
|
|
380
|
+
if (supportsConstructableStylesheets) {
|
|
381
|
+
const stylesheet = new CSSStyleSheet();
|
|
382
|
+
stylesheet.replaceSync(style);
|
|
383
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
384
|
+
} else {
|
|
385
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
386
|
+
if (existingStyleContainer) {
|
|
387
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
388
|
+
} else {
|
|
389
|
+
styleContainerNode.prepend(styleElm);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
} else {
|
|
393
|
+
styleContainerNode.append(styleElm);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
397
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
401
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
402
|
+
}
|
|
403
|
+
if (appliedStyles) {
|
|
404
|
+
appliedStyles.add(scopeId2);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
408
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return scopeId2;
|
|
412
|
+
};
|
|
413
|
+
var attachStyles = (hostRef) => {
|
|
414
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
415
|
+
const elm = hostRef.$hostElement$;
|
|
416
|
+
const flags = cmpMeta.$flags$;
|
|
417
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
418
|
+
const scopeId2 = addStyle(
|
|
419
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
420
|
+
cmpMeta);
|
|
421
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
422
|
+
elm["s-sc"] = scopeId2;
|
|
423
|
+
elm.classList.add(scopeId2 + "-h");
|
|
424
|
+
}
|
|
425
|
+
endAttachStyles();
|
|
426
|
+
};
|
|
427
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
310
428
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
311
429
|
if (oldValue !== newValue) {
|
|
312
430
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -360,7 +478,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
360
478
|
elm.setAttribute(memberName, n);
|
|
361
479
|
}
|
|
362
480
|
}
|
|
363
|
-
} else {
|
|
481
|
+
} else if (elm[memberName] !== newValue) {
|
|
364
482
|
elm[memberName] = newValue;
|
|
365
483
|
}
|
|
366
484
|
} catch (e) {
|
|
@@ -621,8 +739,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
621
739
|
}
|
|
622
740
|
};
|
|
623
741
|
var insertBefore = (parent, newNode, reference) => {
|
|
624
|
-
|
|
625
|
-
|
|
742
|
+
{
|
|
743
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
744
|
+
}
|
|
626
745
|
};
|
|
627
746
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
628
747
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -644,129 +763,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
644
763
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
645
764
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
646
765
|
};
|
|
647
|
-
var createTime = (fnName, tagName = "") => {
|
|
648
|
-
{
|
|
649
|
-
return () => {
|
|
650
|
-
return;
|
|
651
|
-
};
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
var uniqueTime = (key, measureText) => {
|
|
655
|
-
{
|
|
656
|
-
return () => {
|
|
657
|
-
return;
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
662
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
663
|
-
if (propType & 1 /* String */) {
|
|
664
|
-
return String(propValue);
|
|
665
|
-
}
|
|
666
|
-
return propValue;
|
|
667
|
-
}
|
|
668
|
-
return propValue;
|
|
669
|
-
};
|
|
670
|
-
var emitEvent = (elm, name, opts) => {
|
|
671
|
-
const ev = plt.ce(name, opts);
|
|
672
|
-
elm.dispatchEvent(ev);
|
|
673
|
-
return ev;
|
|
674
|
-
};
|
|
675
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
676
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
677
|
-
let style = styles.get(scopeId2);
|
|
678
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
679
|
-
style = style || new CSSStyleSheet();
|
|
680
|
-
if (typeof style === "string") {
|
|
681
|
-
style = cssText;
|
|
682
|
-
} else {
|
|
683
|
-
style.replaceSync(cssText);
|
|
684
|
-
}
|
|
685
|
-
} else {
|
|
686
|
-
style = cssText;
|
|
687
|
-
}
|
|
688
|
-
styles.set(scopeId2, style);
|
|
689
|
-
};
|
|
690
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
691
|
-
var _a;
|
|
692
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
693
|
-
const style = styles.get(scopeId2);
|
|
694
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
695
|
-
if (style) {
|
|
696
|
-
if (typeof style === "string") {
|
|
697
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
698
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
699
|
-
let styleElm;
|
|
700
|
-
if (!appliedStyles) {
|
|
701
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
702
|
-
}
|
|
703
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
704
|
-
{
|
|
705
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
706
|
-
styleElm.innerHTML = style;
|
|
707
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
708
|
-
if (nonce != null) {
|
|
709
|
-
styleElm.setAttribute("nonce", nonce);
|
|
710
|
-
}
|
|
711
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
712
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
713
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
714
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
715
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
716
|
-
} else if ("host" in styleContainerNode) {
|
|
717
|
-
if (supportsConstructableStylesheets) {
|
|
718
|
-
const stylesheet = new CSSStyleSheet();
|
|
719
|
-
stylesheet.replaceSync(style);
|
|
720
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
721
|
-
} else {
|
|
722
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
723
|
-
if (existingStyleContainer) {
|
|
724
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
725
|
-
} else {
|
|
726
|
-
styleContainerNode.prepend(styleElm);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
} else {
|
|
730
|
-
styleContainerNode.append(styleElm);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
734
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
738
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
739
|
-
}
|
|
740
|
-
if (appliedStyles) {
|
|
741
|
-
appliedStyles.add(scopeId2);
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
745
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
return scopeId2;
|
|
749
|
-
};
|
|
750
|
-
var attachStyles = (hostRef) => {
|
|
751
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
752
|
-
const elm = hostRef.$hostElement$;
|
|
753
|
-
const flags = cmpMeta.$flags$;
|
|
754
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
755
|
-
const scopeId2 = addStyle(
|
|
756
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
757
|
-
cmpMeta);
|
|
758
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
759
|
-
elm["s-sc"] = scopeId2;
|
|
760
|
-
elm.classList.add(scopeId2 + "-h");
|
|
761
|
-
}
|
|
762
|
-
endAttachStyles();
|
|
763
|
-
};
|
|
764
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
765
766
|
|
|
766
767
|
// src/runtime/update-component.ts
|
|
767
768
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
768
769
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
769
|
-
ancestorComponent["s-p"].push(
|
|
770
|
+
const index = ancestorComponent["s-p"].push(
|
|
771
|
+
new Promise(
|
|
772
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
773
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
774
|
+
r();
|
|
775
|
+
}
|
|
776
|
+
)
|
|
777
|
+
);
|
|
770
778
|
}
|
|
771
779
|
};
|
|
772
780
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -953,62 +961,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
953
961
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
954
962
|
members.map(([memberName, [memberFlags]]) => {
|
|
955
963
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
956
|
-
|
|
964
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
965
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
966
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
967
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
957
968
|
Object.defineProperty(prototype, memberName, {
|
|
958
969
|
get() {
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
},
|
|
964
|
-
configurable: true,
|
|
965
|
-
enumerable: true
|
|
966
|
-
});
|
|
967
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
968
|
-
{
|
|
969
|
-
Object.defineProperty(prototype, memberName, {
|
|
970
|
-
get() {
|
|
970
|
+
{
|
|
971
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
972
|
+
return getValue(this, memberName);
|
|
973
|
+
}
|
|
971
974
|
const ref = getHostRef(this);
|
|
972
975
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
973
976
|
if (!instance) return;
|
|
974
977
|
return instance[memberName];
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
configurable: true,
|
|
981
|
+
enumerable: true
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
Object.defineProperty(prototype, memberName, {
|
|
985
|
+
set(newValue) {
|
|
986
|
+
const ref = getHostRef(this);
|
|
987
|
+
if (origSetter) {
|
|
988
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
989
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
990
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
991
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
992
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
993
|
+
}
|
|
994
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
995
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
996
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
{
|
|
1000
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1001
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1002
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1003
|
+
ref.$onReadyPromise$.then(() => {
|
|
1004
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1005
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
993
1008
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
1001
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1002
|
-
};
|
|
1003
|
-
if (ref.$lazyInstance$) {
|
|
1004
|
-
setterSetVal();
|
|
1005
|
-
} else {
|
|
1006
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1009
|
+
return;
|
|
1010
|
+
}
|
|
1011
|
+
const setterSetVal = () => {
|
|
1012
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1013
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1014
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1007
1015
|
}
|
|
1016
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1017
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1018
|
+
};
|
|
1019
|
+
if (ref.$lazyInstance$) {
|
|
1020
|
+
setterSetVal();
|
|
1021
|
+
} else {
|
|
1022
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1008
1023
|
}
|
|
1009
|
-
}
|
|
1024
|
+
}
|
|
1010
1025
|
}
|
|
1011
|
-
}
|
|
1026
|
+
});
|
|
1012
1027
|
}
|
|
1013
1028
|
});
|
|
1014
1029
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -1038,8 +1053,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1038
1053
|
return;
|
|
1039
1054
|
}
|
|
1040
1055
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1041
|
-
|
|
1042
|
-
|
|
1056
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1057
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1058
|
+
this[propName] = newValue;
|
|
1043
1059
|
}
|
|
1044
1060
|
});
|
|
1045
1061
|
};
|
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-e9f7876a.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e9f7876a.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-autos-wc.cjs.js', document.baseURI).href));
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-autos-wc';
|
|
|
2
2
|
const BUILD = /* proto-autos-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -184,6 +184,20 @@ var unwrapErr = (result) => {
|
|
|
184
184
|
throw result.value;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
+
var createTime = (fnName, tagName = "") => {
|
|
188
|
+
{
|
|
189
|
+
return () => {
|
|
190
|
+
return;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
var uniqueTime = (key, measureText) => {
|
|
195
|
+
{
|
|
196
|
+
return () => {
|
|
197
|
+
return;
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
};
|
|
187
201
|
var h = (nodeName, vnodeData, ...children) => {
|
|
188
202
|
let child = null;
|
|
189
203
|
let key = null;
|
|
@@ -285,6 +299,110 @@ var convertToPrivate = (node) => {
|
|
|
285
299
|
vnode.$name$ = node.vname;
|
|
286
300
|
return vnode;
|
|
287
301
|
};
|
|
302
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
303
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
304
|
+
if (propType & 1 /* String */) {
|
|
305
|
+
return String(propValue);
|
|
306
|
+
}
|
|
307
|
+
return propValue;
|
|
308
|
+
}
|
|
309
|
+
return propValue;
|
|
310
|
+
};
|
|
311
|
+
var emitEvent = (elm, name, opts) => {
|
|
312
|
+
const ev = plt.ce(name, opts);
|
|
313
|
+
elm.dispatchEvent(ev);
|
|
314
|
+
return ev;
|
|
315
|
+
};
|
|
316
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
317
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
318
|
+
let style = styles.get(scopeId2);
|
|
319
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
320
|
+
style = style || new CSSStyleSheet();
|
|
321
|
+
if (typeof style === "string") {
|
|
322
|
+
style = cssText;
|
|
323
|
+
} else {
|
|
324
|
+
style.replaceSync(cssText);
|
|
325
|
+
}
|
|
326
|
+
} else {
|
|
327
|
+
style = cssText;
|
|
328
|
+
}
|
|
329
|
+
styles.set(scopeId2, style);
|
|
330
|
+
};
|
|
331
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
332
|
+
var _a;
|
|
333
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
334
|
+
const style = styles.get(scopeId2);
|
|
335
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
336
|
+
if (style) {
|
|
337
|
+
if (typeof style === "string") {
|
|
338
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
339
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
340
|
+
let styleElm;
|
|
341
|
+
if (!appliedStyles) {
|
|
342
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
343
|
+
}
|
|
344
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
345
|
+
{
|
|
346
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
347
|
+
styleElm.innerHTML = style;
|
|
348
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
349
|
+
if (nonce != null) {
|
|
350
|
+
styleElm.setAttribute("nonce", nonce);
|
|
351
|
+
}
|
|
352
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
353
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
354
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
355
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
356
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
357
|
+
} else if ("host" in styleContainerNode) {
|
|
358
|
+
if (supportsConstructableStylesheets) {
|
|
359
|
+
const stylesheet = new CSSStyleSheet();
|
|
360
|
+
stylesheet.replaceSync(style);
|
|
361
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
362
|
+
} else {
|
|
363
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
364
|
+
if (existingStyleContainer) {
|
|
365
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
366
|
+
} else {
|
|
367
|
+
styleContainerNode.prepend(styleElm);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
} else {
|
|
371
|
+
styleContainerNode.append(styleElm);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
375
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
379
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
380
|
+
}
|
|
381
|
+
if (appliedStyles) {
|
|
382
|
+
appliedStyles.add(scopeId2);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
386
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return scopeId2;
|
|
390
|
+
};
|
|
391
|
+
var attachStyles = (hostRef) => {
|
|
392
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
393
|
+
const elm = hostRef.$hostElement$;
|
|
394
|
+
const flags = cmpMeta.$flags$;
|
|
395
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
396
|
+
const scopeId2 = addStyle(
|
|
397
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
398
|
+
cmpMeta);
|
|
399
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
400
|
+
elm["s-sc"] = scopeId2;
|
|
401
|
+
elm.classList.add(scopeId2 + "-h");
|
|
402
|
+
}
|
|
403
|
+
endAttachStyles();
|
|
404
|
+
};
|
|
405
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
288
406
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
289
407
|
if (oldValue !== newValue) {
|
|
290
408
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -338,7 +456,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
338
456
|
elm.setAttribute(memberName, n);
|
|
339
457
|
}
|
|
340
458
|
}
|
|
341
|
-
} else {
|
|
459
|
+
} else if (elm[memberName] !== newValue) {
|
|
342
460
|
elm[memberName] = newValue;
|
|
343
461
|
}
|
|
344
462
|
} catch (e) {
|
|
@@ -599,8 +717,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
599
717
|
}
|
|
600
718
|
};
|
|
601
719
|
var insertBefore = (parent, newNode, reference) => {
|
|
602
|
-
|
|
603
|
-
|
|
720
|
+
{
|
|
721
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
722
|
+
}
|
|
604
723
|
};
|
|
605
724
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
606
725
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -622,129 +741,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
622
741
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
623
742
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
624
743
|
};
|
|
625
|
-
var createTime = (fnName, tagName = "") => {
|
|
626
|
-
{
|
|
627
|
-
return () => {
|
|
628
|
-
return;
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
var uniqueTime = (key, measureText) => {
|
|
633
|
-
{
|
|
634
|
-
return () => {
|
|
635
|
-
return;
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
640
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
641
|
-
if (propType & 1 /* String */) {
|
|
642
|
-
return String(propValue);
|
|
643
|
-
}
|
|
644
|
-
return propValue;
|
|
645
|
-
}
|
|
646
|
-
return propValue;
|
|
647
|
-
};
|
|
648
|
-
var emitEvent = (elm, name, opts) => {
|
|
649
|
-
const ev = plt.ce(name, opts);
|
|
650
|
-
elm.dispatchEvent(ev);
|
|
651
|
-
return ev;
|
|
652
|
-
};
|
|
653
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
654
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
655
|
-
let style = styles.get(scopeId2);
|
|
656
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
657
|
-
style = style || new CSSStyleSheet();
|
|
658
|
-
if (typeof style === "string") {
|
|
659
|
-
style = cssText;
|
|
660
|
-
} else {
|
|
661
|
-
style.replaceSync(cssText);
|
|
662
|
-
}
|
|
663
|
-
} else {
|
|
664
|
-
style = cssText;
|
|
665
|
-
}
|
|
666
|
-
styles.set(scopeId2, style);
|
|
667
|
-
};
|
|
668
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
669
|
-
var _a;
|
|
670
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
671
|
-
const style = styles.get(scopeId2);
|
|
672
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
673
|
-
if (style) {
|
|
674
|
-
if (typeof style === "string") {
|
|
675
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
676
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
677
|
-
let styleElm;
|
|
678
|
-
if (!appliedStyles) {
|
|
679
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
680
|
-
}
|
|
681
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
682
|
-
{
|
|
683
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
684
|
-
styleElm.innerHTML = style;
|
|
685
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
686
|
-
if (nonce != null) {
|
|
687
|
-
styleElm.setAttribute("nonce", nonce);
|
|
688
|
-
}
|
|
689
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
690
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
691
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
692
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
693
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
694
|
-
} else if ("host" in styleContainerNode) {
|
|
695
|
-
if (supportsConstructableStylesheets) {
|
|
696
|
-
const stylesheet = new CSSStyleSheet();
|
|
697
|
-
stylesheet.replaceSync(style);
|
|
698
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
699
|
-
} else {
|
|
700
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
701
|
-
if (existingStyleContainer) {
|
|
702
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
703
|
-
} else {
|
|
704
|
-
styleContainerNode.prepend(styleElm);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
} else {
|
|
708
|
-
styleContainerNode.append(styleElm);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
712
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
716
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
717
|
-
}
|
|
718
|
-
if (appliedStyles) {
|
|
719
|
-
appliedStyles.add(scopeId2);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
723
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
return scopeId2;
|
|
727
|
-
};
|
|
728
|
-
var attachStyles = (hostRef) => {
|
|
729
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
730
|
-
const elm = hostRef.$hostElement$;
|
|
731
|
-
const flags = cmpMeta.$flags$;
|
|
732
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
733
|
-
const scopeId2 = addStyle(
|
|
734
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
735
|
-
cmpMeta);
|
|
736
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
737
|
-
elm["s-sc"] = scopeId2;
|
|
738
|
-
elm.classList.add(scopeId2 + "-h");
|
|
739
|
-
}
|
|
740
|
-
endAttachStyles();
|
|
741
|
-
};
|
|
742
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
743
744
|
|
|
744
745
|
// src/runtime/update-component.ts
|
|
745
746
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
746
747
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
747
|
-
ancestorComponent["s-p"].push(
|
|
748
|
+
const index = ancestorComponent["s-p"].push(
|
|
749
|
+
new Promise(
|
|
750
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
751
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
752
|
+
r();
|
|
753
|
+
}
|
|
754
|
+
)
|
|
755
|
+
);
|
|
748
756
|
}
|
|
749
757
|
};
|
|
750
758
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -931,62 +939,69 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
931
939
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
932
940
|
members.map(([memberName, [memberFlags]]) => {
|
|
933
941
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
934
|
-
|
|
942
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
943
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
944
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
945
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
935
946
|
Object.defineProperty(prototype, memberName, {
|
|
936
947
|
get() {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
},
|
|
942
|
-
configurable: true,
|
|
943
|
-
enumerable: true
|
|
944
|
-
});
|
|
945
|
-
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
946
|
-
{
|
|
947
|
-
Object.defineProperty(prototype, memberName, {
|
|
948
|
-
get() {
|
|
948
|
+
{
|
|
949
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
950
|
+
return getValue(this, memberName);
|
|
951
|
+
}
|
|
949
952
|
const ref = getHostRef(this);
|
|
950
953
|
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
951
954
|
if (!instance) return;
|
|
952
955
|
return instance[memberName];
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
configurable: true,
|
|
959
|
+
enumerable: true
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
Object.defineProperty(prototype, memberName, {
|
|
963
|
+
set(newValue) {
|
|
964
|
+
const ref = getHostRef(this);
|
|
965
|
+
if (origSetter) {
|
|
966
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
967
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
968
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
969
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
970
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
971
|
+
}
|
|
972
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
973
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
974
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
{
|
|
978
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
979
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
980
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
981
|
+
ref.$onReadyPromise$.then(() => {
|
|
982
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
983
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
984
|
+
}
|
|
985
|
+
});
|
|
971
986
|
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
979
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
980
|
-
};
|
|
981
|
-
if (ref.$lazyInstance$) {
|
|
982
|
-
setterSetVal();
|
|
983
|
-
} else {
|
|
984
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
const setterSetVal = () => {
|
|
990
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
991
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
992
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
985
993
|
}
|
|
994
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
995
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
996
|
+
};
|
|
997
|
+
if (ref.$lazyInstance$) {
|
|
998
|
+
setterSetVal();
|
|
999
|
+
} else {
|
|
1000
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
986
1001
|
}
|
|
987
|
-
}
|
|
1002
|
+
}
|
|
988
1003
|
}
|
|
989
|
-
}
|
|
1004
|
+
});
|
|
990
1005
|
}
|
|
991
1006
|
});
|
|
992
1007
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -1016,8 +1031,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1016
1031
|
return;
|
|
1017
1032
|
}
|
|
1018
1033
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1019
|
-
|
|
1020
|
-
|
|
1034
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1035
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1036
|
+
this[propName] = newValue;
|
|
1021
1037
|
}
|
|
1022
1038
|
});
|
|
1023
1039
|
};
|
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-843da774.js';
|
|
2
|
+
export { s as setNonce } from './index-843da774.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
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-843da774.js';
|
|
2
|
+
export { s as setNonce } from './index-843da774.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?b($):a.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(m),w(y),(p=m.length>0)&&a.raf($)},b=t=>h().then(t),g=v(y,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,r,H);const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),D={},H={forEach:(t,e)=>t.map(N).forEach(e),map:(t,e)=>t.map(N).map(e).map(R)},N=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.$,vtag:t.m,vtext:t.i}),R=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),P(t.vtag,e,...t.vchildren||[])}const e=A(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.$=t.vname,e},T=(t,e)=>null==t||S(t)?t:1&e?t+"":t,L=new WeakMap,U=t=>"sc-"+t.S,F=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);t["s-si"]?(s.push(t["s-si"]),l.forEach((e=>{e.startsWith(t["s-si"])&&s.push(e)})),s=[...new Set(s)],e.add(...s),delete t["s-si"]):(e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t)))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},V=/\s/,W=t=>("object"==typeof t&&"baseVal"in t&&(t=t.baseVal),t?t.split(V):[]),q="Capture",G=RegExp(q+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of z(Object.keys(l)))t in s||F(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))F(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=f.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,h=e[0],d=e[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,y,l))X(d,y,l),d=e[--a],y=o[--p];else if(Q(h,y,l))X(h,y,l),Y(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(Q(d,m,l))X(d,m,l),Y(t,d.v,h.v),d=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){u=f;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>a?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.j&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.j=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.O),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return nt(void 0,(()=>lt(t,n,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=r.get(o);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let s,i=L.get(t=t.head||t);if(i||L.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,n)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);it(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=null,it=(t,e,n,o)=>{try{st=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||A(null,null),i=(t=>t&&t.m===D)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return st=null,null},rt=()=>st,ct=t=>{const e=t.$hostElement$,n=t.t,o=t.O;64&t.o||(t.o|=64,ht(e),at(n,"componentDidLoad"),t.P(e),o||ft()),t.j&&(t.j(),t.j=void 0),512&t.o&&b((()=>tt(t,!1))),t.o&=-517},ut=t=>{{const e=n(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.o)&&tt(e,!1),o}},ft=()=>{ht(f.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"proto-autos-wc"}});return t.dispatchEvent(e),e})(u)))},at=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},ht=t=>t.classList.add("hydrated"),dt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.A.get(e),r=s.o,c=s.t;o=T(o,l.D[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(e,o),c&&2==(18&r)&&tt(s,!1))},pt=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D){const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,T(s,l)),void dt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return dt(this,t,s,e),void(1&o&&!i.t&&i.H.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=T(s,l),dt(this,t,i.t[t],e)};i.t?n():i.H.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},mt=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],R:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.H=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,l),1&l.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.O=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.T){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.T;if(!n)return;const o=i.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(i.set(n,t),t[e])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.L}" was not found`);o.isProxied||(pt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=U(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.O,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).H}};l.T=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,pt(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=a.C)?l:j(f);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):a.jmp((()=>b=setTimeout(ft,30)))},yt=t=>a.C=t;export{mt as b,ut as f,rt as g,P as h,h as p,o as r,yt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e,f as r,h as t,r as o}from"./p-d592e8ae.js";const n="proto-autos",i="data",a="pick",l=e=>{const r=localStorage.getItem(e?`${n}-${e}`:n);return r?JSON.parse(r):void 0},s=(e,r)=>{const t=e?`${n}-${e}`:n,o=JSON.stringify(r);localStorage.setItem(t,o)},c=e=>!("isConnected"in e)||e.isConnected,d=(()=>{let e;return(...r)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let r of e.keys())e.set(r,e.get(r).filter(c))})(...r)}),2e3)}})(),u=e=>"function"==typeof e?e():e;var f=function(){function e(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}();function b(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(){var r=this;b(this,e),this.interceptors=[],this.fetch=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.interceptorWrapper.apply(r,[fetch].concat(t))}}return f(e,[{key:"addInterceptors",value:function(e){var r=this,t=[];return Array.isArray(e)?e.map((function(e){return t.push(r.interceptors.length),r.interceptors.push(e)})):e instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(e)),this.updateInterceptors(),function(){return r.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(e){var r=this;Array.isArray(e)&&(e.map((function(e){return r.interceptors.splice(e,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(e,r){return[r].concat(e)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];var n=Promise.resolve(t);return this.reversedInterceptors.forEach((function(e){var r=e.request,o=e.requestError;(r||o)&&(n=n.then((function(){return r.apply(void 0,t)}),o))})),n=n.then((function(){return e.apply(void 0,t)})),this.reversedInterceptors.forEach((function(e){var r=e.response,t=e.responseError;(r||t)&&(n=n.then(r,t))})),n}}]),e}(),m=function(){function e(r){var t=r.url,o=r.interceptors,n=r.headers,i=r.onStart,a=r.onEnd,l=r.omitEmptyVariables,s=void 0!==l&&l,c=r.requestOptions,d=void 0===c?{}:c;b(this,e);var u=function(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},n),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=s,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:i,onEnd:a},u.addInterceptors(o),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}(e,p),f(e,[{key:"query",value:function(e){var r,t=this,o=e.operationName,n=e.query,i=e.variables,a=e.opts,l=void 0===a?{}:a,s=e.requestOptions,c=Object.assign({},this.requestObject,void 0===s?{}:s);return r=this.omitEmptyVariables||l.omitEmptyVariables?this.doOmitEmptyVariables(i):i,c.body=JSON.stringify({operationName:o,query:n,variables:r}),this.onStart(),this.fetch(this.url,c).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var r=e.data,o=e.errors;return new Promise((function(e,n){return t.onEnd(),r?Object.keys(r).every((function(e){return!r[e]}))?n(o):e({data:r,errors:o}):n(o||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getEnumTypes",value:function(e){var r=this,t={},o=e.filter((function(e){return!r.EnumMap[e]||(t[e]=r.EnumMap[e],!1)}));if(!o.length)return new Promise((function(e){e({data:t})}));var n="\n query {\n "+o.map((function(e){return e+': __type(name: "'+e+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",i=Object.assign({},this.requestObject);return i.body=JSON.stringify({query:n}),this.onStart(),this.fetch(this.url,i).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var o=e.data,n=e.errors;return new Promise((function(e,i){if(r.onEnd(),!o)return i(n||[{message:"Do not get any data."}]);if(Object.keys(o).every((function(e){return!o[e]}))&&n&&n.length)return i(n);var a=Object.assign(t,o);return Object.keys(o).map((function(e){return r.EnumMap[e]=o[e],e})),e({data:a,errors:n})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(e){var r=this,t={};return Object.keys(e).map((function(o){var n=e[o];return"string"==typeof n&&0===n.length||null==n||(t[o]=n instanceof Object?r.doOmitEmptyVariables(n):n),o})),t}}]),e}();const g={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:h}=(()=>{const t=((e,r=((e,r)=>e!==r))=>{const t=u(e);let o=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var r;o=new Map(Object.entries(null!==(r=u(e))&&void 0!==r?r:{})),n.reset.forEach((e=>e()))},a=e=>(n.get.forEach((r=>r(e))),o.get(e)),l=(e,t)=>{const i=o.get(e);r(t,i,e)&&(o.set(e,t),n.set.forEach((r=>r(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,r)=>a(r),ownKeys:()=>Array.from(o.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,r)=>o.has(r),set:(e,r,t)=>(l(r,t),!0)}),c=(e,r)=>(n[e].push(r),()=>{((e,r)=>{const t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.length--)})(n[e],r)});return{state:s,get:a,set:l,on:c,onChange:(r,t)=>{const o=c("set",((e,o)=>{e===r&&t(o)})),n=c("reset",(()=>t(u(e)[r])));return()=>{o(),n()}},use:(...e)=>{const r=e.reduce(((e,r)=>(r.set&&e.push(c("set",r.set)),r.get&&e.push(c("get",r.get)),r.reset&&e.push(c("reset",r.reset)),r.dispose&&e.push(c("dispose",r.dispose)),e)),[]);return()=>r.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const r=o.get(e);n.set.forEach((t=>t(e,r,r)))}}})(g,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const o=e();o&&((e,r,t)=>{const o=e.get(r);o?o.includes(t)||o.push(t):e.set(r,[t])})(t,r,o)},set:e=>{const o=t.get(e);o&&t.set(e,o.filter(r)),d(t)},reset:()=>{t.forEach((e=>e.forEach(r))),d(t)}}})()),t})(),w=(e=!1)=>{h.loading=e,h.error=void 0,h.pick=0,h.data=void 0,h.dealer=void 0},v=e=>{if(e){const{pick:r}=h;h.dealer=null!=r?e.list[r]:void 0,h.data=e,h.loading=!1}else h.data=void 0,h.loading=!1},y=e=>{const{data:r}=h;r&&void 0!==e?(h.pick=e,h.dealer=r.list[e]):(h.pick=0,h.dealer=void 0)};var x=new m({url:"https://gt-forza.vercel.app/graphql"});const k=()=>{w(!0),s(a,0),x.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((e=>{const r=e.data.uuid[0];x.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:r}}).then((e=>{const t=JSON.parse(JSON.stringify(e.data.solution.data.dealers)),o={id:r,list:t};s(i,o),v(o)}))}))},j=()=>{w();const e=l(i),r=l(a);e?(v(e),r&&y(r)):k()},O=k,S=e=>{s(a,e),y(e)},z=(...e)=>e.filter(Boolean).join(" "),E=e=>{const{value:r}=e,{dealerId:o,name:n,vehicles:i}=r||{},a=i?i.length:0;return t("div",{class:z("flex flex-wrap content-center","mb-4 rounded-lg bg-blue-200 p-4","border border-solid border-blue-400")},t("label",{class:"text-xl font-bold"},n?`${n} `:"",t("sup",null,a||"")),t("label",{class:"ml-auto self-center text-right text-sm"},o||""))},$=/^\#[0-9]*/,C=e=>null!=e.match($),N=e=>2554===e,q=e=>e>2010,A=e=>{const{vin:r,make:o,model:n,year:i,color:a}=e.value||{};return t("div",{class:z("flex align-middle","mb-1 rounded-lg p-4","border border-solid",N(i)?"border-clrs-navy bg-clrs-navy text-clrs-white":C(n)?"border-yellow-600 bg-yellow-300":q(i)?"border-green-600 bg-green-200":"border-gray-600 bg-gray-300")},t("div",{class:"mr-1.5 flex flex-col"},t("label",{class:"mb-2 text-xs"},r||""),t("label",{class:"text-lg font-bold"},o||""),t("label",{class:"mb-2 text-sm italic"},n||""),t("label",null,i||"",", ",a||""),t("label",null,N(i)?"- exotic... [ Sierra 117 ]":C(n)?"- track only...":"")),t("proto-ikon-loader",{class:"ikon ml-auto self-center",name:o,label:o.toLowerCase()}))},I=e=>{const{list:r}=e,o=r.length;return 0===o?"":t("div",{class:"flex flex-col"},o?r.map((e=>t(A,{value:e}))):"")},T=e=>{const{dealer:r}=e,{vehicles:o}=r||{vehicles:[]},n=o;return r?t("div",{class:"flex flex-col"},t(E,{value:r}),t(I,{list:n})):""},P="eswat2",U=()=>t("a",{class:"absolute right-0 top-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},t("proto-ikon-loader",{name:"fingerprint",size:24,label:"eswat2"})),J=()=>t("div",{class:"mb-4 mr-2 mt-2 flex flex-row"},t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.17")),M=e=>{const{label:r}=e;return t("h1",{class:z("text-center uppercase text-clrs-red","mb-11 ml-0 mr-0 mt-11","text-6xl font-thin")},r)},_=e=>{const r=e.hex||"currentColor",o=e.label||"loading...",n=e.size||24;return t("svg",{class:z(e.class||"","animate-spin"),width:n,height:n,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,o),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},D=()=>{const{loading:e,pick:r,data:o}=h||{},{list:n}=o||{list:[]},i=n.length-1;return e?"":t("div",{class:"flex"},t("div",{class:"refresh hover:text-clrs-red md:w-auto",onClick:()=>O()},t("proto-ikon-loader",{name:"refresh",size:24})),t("div",{class:z("ml-auto inline-flex justify-end","border border-solid border-gray-600","rounded-md")},n.map(((e,o)=>t("button",{class:z("h-8 w-8 border-none font-bold",0==o?"rounded-bl-md rounded-br-none rounded-tl-md rounded-tr-none":o==i?"rounded-bl-none rounded-br-md rounded-tl-none rounded-tr-md":"rounded-none",r==o?"bg-clrs-red text-white":"bg-clrs-yellow text-clrs-navy"),onClick:()=>S(o),title:`${e.name} (${e.vehicles.length})`},o+1)))))},V=class{constructor(e){o(this,e),this.tag="proto-autos"}componentDidLoad(){j()}render(){const{loading:e,dealer:r}=h;return t("main",{key:"eb918bee95389cd4c78c6a7b3134ada507c5a042",id:"app",class:"ds1-main relative"},t(U,{key:"efa617ee04ddd6c58650d1cf4d00f899c3520efa"}),t(M,{key:"6762516c1c9fc2d4490e9343d75f4f09f657fae6",label:"Auto Dealers"}),t(D,{key:"ce1aeeb560729f66726b859d6f9d5a4a410703b1"}),e?t(_,null):t("hr",{class:z("mb-4 ml-0 mr-0 mt-4","border-solid border-gray-300","border-b-0 border-l-0 border-r-0")}),t(T,{key:"63ef8ba16a60533a147c06e126442e9f2481f8fe",dealer:r}),t(J,{key:"00d32c34fcf933386a5e5f920e09f02f95dbfbf1"}))}};V.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.right-0{right:0px}.top-0{top:0px}.mb-1{margin-bottom:0.25rem}.mb-11{margin-bottom:2.75rem}.mb-2{margin-bottom:0.5rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-1\\.5{margin-right:0.375rem}.mr-2{margin-right:0.5rem}.mt-11{margin-top:2.75rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.justify-end{justify-content:flex-end}.self-center{align-self:center}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-none{border-radius:0px}.rounded-bl-md{border-bottom-left-radius:0.375rem}.rounded-bl-none{border-bottom-left-radius:0px}.rounded-br-md{border-bottom-right-radius:0.375rem}.rounded-br-none{border-bottom-right-radius:0px}.rounded-tl-md{border-top-left-radius:0.375rem}.rounded-tl-none{border-top-left-radius:0px}.rounded-tr-md{border-top-right-radius:0.375rem}.rounded-tr-none{border-top-right-radius:0px}.border{border-width:1px}.border-b-0{border-bottom-width:0px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-solid{border-style:solid}.border-none{border-style:none}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity:1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.ikon{height:96px;width:96px}@media (min-width: 500px){.ikon{height:144px;width:144px}}@media (min-width: 700px){.ikon{height:192px;width:192px}}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red, #ff4136)}@media (min-width: 768px){.md\\:w-auto{width:auto}}";export{V as proto_autos}
|
|
1
|
+
import{g as e,f as r,h as t,r as o}from"./p-6ffb2af1.js";const n="proto-autos",i="data",a="pick",l=e=>{const r=localStorage.getItem(e?`${n}-${e}`:n);return r?JSON.parse(r):void 0},s=(e,r)=>{const t=e?`${n}-${e}`:n,o=JSON.stringify(r);localStorage.setItem(t,o)},c=e=>!("isConnected"in e)||e.isConnected,d=(()=>{let e;return(...r)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let r of e.keys())e.set(r,e.get(r).filter(c))})(...r)}),2e3)}})(),u=e=>"function"==typeof e?e():e;var f=function(){function e(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}();function b(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(){var r=this;b(this,e),this.interceptors=[],this.fetch=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.interceptorWrapper.apply(r,[fetch].concat(t))}}return f(e,[{key:"addInterceptors",value:function(e){var r=this,t=[];return Array.isArray(e)?e.map((function(e){return t.push(r.interceptors.length),r.interceptors.push(e)})):e instanceof Object&&(t.push(this.interceptors.length),this.interceptors.push(e)),this.updateInterceptors(),function(){return r.removeInterceptors(t)}}},{key:"removeInterceptors",value:function(e){var r=this;Array.isArray(e)&&(e.map((function(e){return r.interceptors.splice(e,1)})),this.updateInterceptors())}},{key:"updateInterceptors",value:function(){this.reversedInterceptors=this.interceptors.reduce((function(e,r){return[r].concat(e)}),[])}},{key:"clearInterceptors",value:function(){this.interceptors=[],this.updateInterceptors()}},{key:"interceptorWrapper",value:function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];var n=Promise.resolve(t);return this.reversedInterceptors.forEach((function(e){var r=e.request,o=e.requestError;(r||o)&&(n=n.then((function(){return r.apply(void 0,t)}),o))})),n=n.then((function(){return e.apply(void 0,t)})),this.reversedInterceptors.forEach((function(e){var r=e.response,t=e.responseError;(r||t)&&(n=n.then(r,t))})),n}}]),e}(),m=function(){function e(r){var t=r.url,o=r.interceptors,n=r.headers,i=r.onStart,a=r.onEnd,l=r.omitEmptyVariables,s=void 0!==l&&l,c=r.requestOptions,d=void 0===c?{}:c;b(this,e);var u=function(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return u.requestObject=Object.assign({},{method:"POST",headers:Object.assign({},{Accept:"application/json","Content-Type":"application/json"},n),credentials:"same-origin"},d),u.url=t,u.omitEmptyVariables=s,u.requestQueueLength=0,u.EnumMap={},u.callbacks={onStart:i,onEnd:a},u.addInterceptors(o),u}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}(e,p),f(e,[{key:"query",value:function(e){var r,t=this,o=e.operationName,n=e.query,i=e.variables,a=e.opts,l=void 0===a?{}:a,s=e.requestOptions,c=Object.assign({},this.requestObject,void 0===s?{}:s);return r=this.omitEmptyVariables||l.omitEmptyVariables?this.doOmitEmptyVariables(i):i,c.body=JSON.stringify({operationName:o,query:n,variables:r}),this.onStart(),this.fetch(this.url,c).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var r=e.data,o=e.errors;return new Promise((function(e,n){return t.onEnd(),r?Object.keys(r).every((function(e){return!r[e]}))?n(o):e({data:r,errors:o}):n(o||[{}])}))}))}},{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getEnumTypes",value:function(e){var r=this,t={},o=e.filter((function(e){return!r.EnumMap[e]||(t[e]=r.EnumMap[e],!1)}));if(!o.length)return new Promise((function(e){e({data:t})}));var n="\n query {\n "+o.map((function(e){return e+': __type(name: "'+e+'") {\n ...EnumFragment\n }'})).join("\n")+"\n }\n \n fragment EnumFragment on __Type {\n kind\n description\n enumValues {\n name\n description\n }\n }",i=Object.assign({},this.requestObject);return i.body=JSON.stringify({query:n}),this.onStart(),this.fetch(this.url,i).then((function(e){return e.ok?e.json():{errors:[{message:e.statusText,stack:e}]}})).then((function(e){var o=e.data,n=e.errors;return new Promise((function(e,i){if(r.onEnd(),!o)return i(n||[{message:"Do not get any data."}]);if(Object.keys(o).every((function(e){return!o[e]}))&&n&&n.length)return i(n);var a=Object.assign(t,o);return Object.keys(o).map((function(e){return r.EnumMap[e]=o[e],e})),e({data:a,errors:n})}))}))}},{key:"onStart",value:function(){this.requestQueueLength++,this.requestQueueLength>1||!this.callbacks.onStart||this.callbacks.onStart(this.requestQueueLength)}},{key:"onEnd",value:function(){this.requestQueueLength--,!this.requestQueueLength&&this.callbacks.onEnd&&this.callbacks.onEnd(this.requestQueueLength)}},{key:"doOmitEmptyVariables",value:function(e){var r=this,t={};return Object.keys(e).map((function(o){var n=e[o];return"string"==typeof n&&0===n.length||null==n||(t[o]=n instanceof Object?r.doOmitEmptyVariables(n):n),o})),t}}]),e}();const g={loading:!1,error:void 0,data:void 0,pick:0,dealer:void 0},{state:h}=(()=>{const t=((e,r=((e,r)=>e!==r))=>{const t=u(e);let o=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{var r;o=new Map(Object.entries(null!==(r=u(e))&&void 0!==r?r:{})),n.reset.forEach((e=>e()))},a=e=>(n.get.forEach((r=>r(e))),o.get(e)),l=(e,t)=>{const i=o.get(e);r(t,i,e)&&(o.set(e,t),n.set.forEach((r=>r(e,t,i))))},s="undefined"==typeof Proxy?{}:new Proxy(t,{get:(e,r)=>a(r),ownKeys:()=>Array.from(o.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,r)=>o.has(r),set:(e,r,t)=>(l(r,t),!0)}),c=(e,r)=>(n[e].push(r),()=>{((e,r)=>{const t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.length--)})(n[e],r)});return{state:s,get:a,set:l,on:c,onChange:(r,t)=>{const o=c("set",((e,o)=>{e===r&&t(o)})),n=c("reset",(()=>t(u(e)[r])));return()=>{o(),n()}},use:(...e)=>{const r=e.reduce(((e,r)=>(r.set&&e.push(c("set",r.set)),r.get&&e.push(c("get",r.get)),r.reset&&e.push(c("reset",r.reset)),r.dispose&&e.push(c("dispose",r.dispose)),e)),[]);return()=>r.forEach((e=>e()))},dispose:()=>{n.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const r=o.get(e);n.set.forEach((t=>t(e,r,r)))}}})(g,void 0);return t.use((()=>{if("function"!=typeof e)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const o=e();o&&((e,r,t)=>{const o=e.get(r);o?o.includes(t)||o.push(t):e.set(r,[t])})(t,r,o)},set:e=>{const o=t.get(e);o&&t.set(e,o.filter(r)),d(t)},reset:()=>{t.forEach((e=>e.forEach(r))),d(t)}}})()),t})(),w=(e=!1)=>{h.loading=e,h.error=void 0,h.pick=0,h.data=void 0,h.dealer=void 0},v=e=>{if(e){const{pick:r}=h;h.dealer=null!=r?e.list[r]:void 0,h.data=e,h.loading=!1}else h.data=void 0,h.loading=!1},y=e=>{const{data:r}=h;r&&void 0!==e?(h.pick=e,h.dealer=r.list[e]):(h.pick=0,h.dealer=void 0)};var x=new m({url:"https://gt-forza.vercel.app/graphql"});const k=()=>{w(!0),s(a,0),x.query({operationName:"Uuid",query:"\n query Uuid($count: Int!) {\n uuid(count: $count)\n }\n",variables:{count:1}}).then((e=>{const r=e.data.uuid[0];x.query({operationName:"Solution",query:"\n query Solution($id: String!) {\n solution(id: $id) {\n id\n data {\n dealers {\n dealerId\n name\n vehicles {\n vin\n year\n make\n model\n color\n }\n }\n }\n }\n }\n",variables:{id:r}}).then((e=>{const t=JSON.parse(JSON.stringify(e.data.solution.data.dealers)),o={id:r,list:t};s(i,o),v(o)}))}))},j=()=>{w();const e=l(i),r=l(a);e?(v(e),r&&y(r)):k()},O=k,S=e=>{s(a,e),y(e)},z=(...e)=>e.filter(Boolean).join(" "),E=e=>{const{value:r}=e,{dealerId:o,name:n,vehicles:i}=r||{},a=i?i.length:0;return t("div",{class:z("flex flex-wrap content-center","mb-4 rounded-lg bg-blue-200 p-4","border border-solid border-blue-400")},t("label",{class:"text-xl font-bold"},n?`${n} `:"",t("sup",null,a||"")),t("label",{class:"ml-auto self-center text-right text-sm"},o||""))},$=/^\#[0-9]*/,C=e=>null!=e.match($),N=e=>2554===e,q=e=>e>2010,A=e=>{const{vin:r,make:o,model:n,year:i,color:a}=e.value||{};return t("div",{class:z("flex align-middle","mb-1 rounded-lg p-4","border border-solid",N(i)?"border-clrs-navy bg-clrs-navy text-clrs-white":C(n)?"border-yellow-600 bg-yellow-300":q(i)?"border-green-600 bg-green-200":"border-gray-600 bg-gray-300")},t("div",{class:"mr-1.5 flex flex-col"},t("label",{class:"mb-2 text-xs"},r||""),t("label",{class:"text-lg font-bold"},o||""),t("label",{class:"mb-2 text-sm italic"},n||""),t("label",null,i||"",", ",a||""),t("label",null,N(i)?"- exotic... [ Sierra 117 ]":C(n)?"- track only...":"")),t("proto-ikon-loader",{class:"ikon ml-auto self-center",name:o,label:o.toLowerCase()}))},I=e=>{const{list:r}=e,o=r.length;return 0===o?"":t("div",{class:"flex flex-col"},o?r.map((e=>t(A,{value:e}))):"")},T=e=>{const{dealer:r}=e,{vehicles:o}=r||{vehicles:[]},n=o;return r?t("div",{class:"flex flex-col"},t(E,{value:r}),t(I,{list:n})):""},P="eswat2",U=()=>t("a",{class:"absolute right-0 top-0 text-clrs-gray hover:text-clrs-navy",href:"https://eswat2.dev","aria-label":P,target:"blank",title:P},t("proto-ikon-loader",{name:"fingerprint",size:24,label:"eswat2"})),J=()=>t("div",{class:"mb-4 mr-2 mt-2 flex flex-row"},t("label",{class:"ml-auto align-top text-xs italic text-clrs-slate4"},"Tailwind ","3.4.17")),M=e=>{const{label:r}=e;return t("h1",{class:z("text-center uppercase text-clrs-red","mb-11 ml-0 mr-0 mt-11","text-6xl font-thin")},r)},_=e=>{const r=e.hex||"currentColor",o=e.label||"loading...",n=e.size||24;return t("svg",{class:z(e.class||"","animate-spin"),width:n,height:n,fill:"none",viewBox:"0 0 24 24",role:"img","aria-label":"title"},t("title",null,o),t("g",null,t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:r,"stroke-width":"4"}),t("path",{class:"opacity-75",fill:r,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),t("path",{d:"M0 0h24v24H0z",fill:"none"}))},D=()=>{const{loading:e,pick:r,data:o}=h||{},{list:n}=o||{list:[]},i=n.length-1;return e?"":t("div",{class:"flex"},t("div",{class:"refresh hover:text-clrs-red md:w-auto",onClick:()=>O()},t("proto-ikon-loader",{name:"refresh",size:24})),t("div",{class:z("ml-auto inline-flex justify-end","border border-solid border-gray-600","rounded-md")},n.map(((e,o)=>t("button",{class:z("h-8 w-8 border-none font-bold",0==o?"rounded-bl-md rounded-br-none rounded-tl-md rounded-tr-none":o==i?"rounded-bl-none rounded-br-md rounded-tl-none rounded-tr-md":"rounded-none",r==o?"bg-clrs-red text-white":"bg-clrs-yellow text-clrs-navy"),onClick:()=>S(o),title:`${e.name} (${e.vehicles.length})`},o+1)))))},V=class{constructor(e){o(this,e),this.tag="proto-autos"}componentDidLoad(){j()}render(){const{loading:e,dealer:r}=h;return t("main",{key:"eb918bee95389cd4c78c6a7b3134ada507c5a042",id:"app",class:"ds1-main relative"},t(U,{key:"efa617ee04ddd6c58650d1cf4d00f899c3520efa"}),t(M,{key:"6762516c1c9fc2d4490e9343d75f4f09f657fae6",label:"Auto Dealers"}),t(D,{key:"ce1aeeb560729f66726b859d6f9d5a4a410703b1"}),e?t(_,null):t("hr",{class:z("mb-4 ml-0 mr-0 mt-4","border-solid border-gray-300","border-b-0 border-l-0 border-r-0")}),t(T,{key:"63ef8ba16a60533a147c06e126442e9f2481f8fe",dealer:r}),t(J,{key:"00d32c34fcf933386a5e5f920e09f02f95dbfbf1"}))}};V.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.ds1-main{margin:1.5rem;display:flex;flex-direction:column;font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';color:var(--clrs-navy, #001f3f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.absolute{position:absolute}.relative{position:relative}.right-0{right:0px}.top-0{top:0px}.mb-1{margin-bottom:0.25rem}.mb-11{margin-bottom:2.75rem}.mb-2{margin-bottom:0.5rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0px}.ml-auto{margin-left:auto}.mr-0{margin-right:0px}.mr-1\\.5{margin-right:0.375rem}.mr-2{margin-right:0.5rem}.mt-11{margin-top:2.75rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.h-8{height:2rem}.w-8{width:2rem}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.justify-end{justify-content:flex-end}.self-center{align-self:center}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-none{border-radius:0px}.rounded-bl-md{border-bottom-left-radius:0.375rem}.rounded-bl-none{border-bottom-left-radius:0px}.rounded-br-md{border-bottom-right-radius:0.375rem}.rounded-br-none{border-bottom-right-radius:0px}.rounded-tl-md{border-top-left-radius:0.375rem}.rounded-tl-none{border-top-left-radius:0px}.rounded-tr-md{border-top-right-radius:0.375rem}.rounded-tr-none{border-top-right-radius:0px}.border{border-width:1px}.border-b-0{border-bottom-width:0px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-solid{border-style:solid}.border-none{border-style:none}.border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-clrs-navy{border-color:var(--clrs-navy, #001f3f)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity:1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.bg-clrs-red{background-color:var(--clrs-red, #ff4136)}.bg-clrs-yellow{background-color:var(--clrs-yellow, #ffdc00)}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity:1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-6xl{font-size:3.75rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:0.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-clrs-gray{color:var(--clrs-gray, #aaaaaa)}.text-clrs-navy{color:var(--clrs-navy, #001f3f)}.text-clrs-red{color:var(--clrs-red, #ff4136)}.text-clrs-slate4{color:var(--clrs-slate4, #4e5964)}.text-clrs-white{color:var(--clrs-white, #ffffff)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-25{opacity:0.25}.opacity-75{opacity:0.75}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.ikon{height:96px;width:96px}@media (min-width: 500px){.ikon{height:144px;width:144px}}@media (min-width: 700px){.ikon{height:192px;width:192px}}.hover\\:text-clrs-navy:hover{color:var(--clrs-navy, #001f3f)}.hover\\:text-clrs-red:hover{color:var(--clrs-red, #ff4136)}@media (min-width: 768px){.md\\:w-auto{width:auto}}";export{V as proto_autos}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,b as o}from"./p-
|
|
1
|
+
import{p as a,b as o}from"./p-6ffb2af1.js";export{s as setNonce}from"./p-6ffb2af1.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),a(s)})().then((async a=>(await t(),o([["p-adf54c85",[[1,"proto-autos",{tag:[1]}]]]],a))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-autos-wc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.977",
|
|
4
4
|
"description": "prototype - a simple GraphQL demo rendered in Stencil and Tailwind",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "prettier --write src cSpell.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.
|
|
30
|
+
"@stencil/core": "4.24.0",
|
|
31
31
|
"@stencil/store": "2.0.16",
|
|
32
32
|
"fetchql": "3.0.0",
|
|
33
33
|
"proto-tailwindcss-clrs": "0.0.395",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?$(b):a.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(d=m.length>0)&&a.raf(b)},$=e=>h().then(e),g=v(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,H);const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(R)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),R=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),P(e.vtag,t,...e.vchildren||[])}const t=A(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},T=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=U(n);let s=U(o);e["s-si"]?(s.push(e["s-si"]),l.forEach((t=>{t.startsWith(e["s-si"])&&s.push(t)})),s=[...new Set(s)],t.add(...s),delete e["s-si"]):(t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e)))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},L=/\s/,U=e=>("object"==typeof e&&"baseVal"in e&&(e=e.baseVal),e?e.split(L):[]),F="Capture",V=RegExp(F+"$"),W=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of q(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of q(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,_=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=f.createTextNode(o.i);else{if(G||(G="svg"===o.m),l=o.v=f.createElementNS(G?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),G&&"foreignObject"===o.m&&(G=!1),W(null,o,G),o.h)for(i=0;i<o.h.length;++i)s=_(e,o,i),s&&l.appendChild(s);"svg"===o.m?G=!1:"foreignObject"===l.tagName&&(G=!0)}return l["s-hn"]=C,l},z=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=_(null,n,l),i&&(o[l].v=i,K(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),J=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(W(e,t,G="svg"===i||"foreignObject"!==i&&G),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],p=t[a],d=o.length-1,m=o[0],y=o[d];for(;r<=a&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(I(h,m,l))J(h,m,l),h=t[++r],m=o[++c];else if(I(p,y,l))J(p,y,l),p=t[--a],y=o[--d];else if(I(h,y,l))J(h,y,l),K(e,h.v,p.v.nextSibling),h=t[++r],y=o[--d];else if(I(p,m,l))J(p,m,l),K(e,p.v,h.v),p=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=_(t&&t[c],n,c),m=o[++c]),s&&K(h.v.parentNode,s,h.v)}r>a?z(e,null==o[d+1]?null:o[d+1].v,n,o,c,d):c>d&&B(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),z(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1),G&&"svg"===i&&(G=!1)):e.i!==r&&(o.data=r)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>null==e||S(e)?e:1&t?e+"":e,X=new WeakMap,Y=e=>"sc-"+e.S,Z=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},ee=(e,t)=>{if(e.o|=16,!(4&e.o))return Z(e,e.O),g((()=>te(e,t)));e.o|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return ne(void 0,(()=>le(e,n,t)))},ne=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Y(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=X.get(e=e.head||e);if(i||X.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||f.createElement("style"),s.innerHTML=l;const i=null!=(n=a.C)?n:j(f);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ie(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},se=null,ie=(e,t,n,o)=>{try{se=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.M||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.M=i,i.v=s.v=o.shadowRoot||o,J(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return se=null,null},re=()=>se,ce=e=>{const t=e.$hostElement$,n=e.t,o=e.O;64&e.o||(e.o|=64,he(t),ae(n,"componentDidLoad"),e.P(t),o||fe()),e.j&&(e.j(),e.j=void 0),512&e.o&&$((()=>ee(e,!1))),e.o&=-517},ue=e=>{{const t=n(e),o=t.$hostElement$.isConnected;return o&&2==(18&t.o)&&ee(t,!1),o}},fe=()=>{he(f.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-autos-wc"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},he=e=>e.classList.add("hydrated"),pe=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.A.get(t),r=s.o,c=s.t;o=Q(o,l.D[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&r)&&ee(s,!1))},de=(e,t,o)=>{var l,s;const i=e.prototype;if(t.D){const r=Object.entries(null!=(l=t.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.A.get(e)&&n&&s.A.set(e,n),o.call(this,Q(l,t.D[e][0])),void pe(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.A.get(e)&&n&&s.A.set(e,n),s.t[e]=Q(l,t.D[e][0]),pe(this,e,s.t[e],t)};s.t?i():s.H.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(n){pe(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.N)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.N)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},me=(e,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],S:o[1],D:o[2],R:o[3]};4&l.o&&(S=!0),l.D=o[2];const c=l.S,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.H=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.O=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.T;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.L}" was not found`);o.isProxied||(de(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}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=Y(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>ee(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}))}X.has(e)&&X.delete(e),e.shadowRoot&&X.has(e.shadowRoot)&&X.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.M)?void 0:e.v)instanceof Node&&!t.M.v.isConnected&&delete t.M.v}))}componentOnReady(){return n(this).H}};l.T=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,de(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(l=a.C)?l:j(f);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(fe,30)))},ye=e=>a.C=e;export{me as b,ue as f,re as g,P as h,h as p,o as r,ye as s}
|