@everymatrix/casino-tournament-banner 1.55.0 → 1.56.0
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/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
- package/dist/casino-tournament-banner/{p-cf75bb37.entry.js → p-84129bcd.entry.js} +3 -3
- package/dist/casino-tournament-banner/p-91da2a22.js +2 -0
- package/dist/cjs/casino-tournament-banner.cjs.js +2 -2
- package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +37 -38
- package/dist/cjs/{index-ceec4c54.js → index-0b07ce8b.js} +173 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-tournament-banner/casino-tournament-banner.js +82 -26
- package/dist/esm/casino-tournament-banner.js +3 -3
- package/dist/esm/casino-tournament-banner_2.entry.js +37 -38
- package/dist/esm/{index-4d03c228.js → index-35b94b68.js} +173 -70
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-tournament-banner/p-890a4a7f.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-tournament-banner';
|
|
2
|
-
const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
2
|
+
const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/utils/constants.ts
|
|
14
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
+
|
|
17
|
+
// src/client/client-host-ref.ts
|
|
12
18
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
19
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
20
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
+
};
|
|
15
23
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
24
|
const hostRef = {
|
|
17
25
|
$flags$: 0,
|
|
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
32
|
hostElement["s-p"] = [];
|
|
25
33
|
hostElement["s-rc"] = [];
|
|
26
34
|
}
|
|
27
|
-
|
|
35
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
36
|
+
return ref;
|
|
28
37
|
};
|
|
29
38
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
39
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
70
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
71
|
/* webpackMode: "lazy" */
|
|
63
72
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
73
|
+
).then(
|
|
74
|
+
(importedModule) => {
|
|
75
|
+
{
|
|
76
|
+
cmpModules.set(bundleId, importedModule);
|
|
77
|
+
}
|
|
78
|
+
return importedModule[exportName];
|
|
79
|
+
},
|
|
80
|
+
(e) => {
|
|
81
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
82
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
83
|
+
);
|
|
70
84
|
};
|
|
71
85
|
|
|
72
86
|
// src/client/client-style.ts
|
|
73
87
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
91
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -144,14 +159,6 @@ var flush = () => {
|
|
|
144
159
|
};
|
|
145
160
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
146
161
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
|
-
|
|
148
|
-
// src/utils/constants.ts
|
|
149
|
-
var EMPTY_OBJ = {};
|
|
150
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
151
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
152
|
-
|
|
153
|
-
// src/utils/helpers.ts
|
|
154
|
-
var isDef = (v) => v != null;
|
|
155
162
|
var isComplexType = (o) => {
|
|
156
163
|
o = typeof o;
|
|
157
164
|
return o === "object" || o === "function";
|
|
@@ -352,7 +359,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
352
359
|
}
|
|
353
360
|
if (!appliedStyles.has(scopeId2)) {
|
|
354
361
|
{
|
|
355
|
-
styleElm = doc.createElement("style");
|
|
362
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
356
363
|
styleElm.innerHTML = style;
|
|
357
364
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
358
365
|
if (nonce != null) {
|
|
@@ -362,7 +369,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
362
369
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
363
370
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
364
371
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
365
|
-
styleContainerNode.insertBefore(
|
|
372
|
+
styleContainerNode.insertBefore(
|
|
373
|
+
styleElm,
|
|
374
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
375
|
+
);
|
|
366
376
|
} else if ("host" in styleContainerNode) {
|
|
367
377
|
if (supportsConstructableStylesheets) {
|
|
368
378
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -380,7 +390,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
380
390
|
styleContainerNode.append(styleElm);
|
|
381
391
|
}
|
|
382
392
|
}
|
|
383
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
393
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
384
394
|
styleContainerNode.insertBefore(styleElm, null);
|
|
385
395
|
}
|
|
386
396
|
}
|
|
@@ -405,23 +415,25 @@ var attachStyles = (hostRef) => {
|
|
|
405
415
|
const scopeId2 = addStyle(
|
|
406
416
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
407
417
|
cmpMeta);
|
|
408
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
418
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
409
419
|
elm["s-sc"] = scopeId2;
|
|
410
420
|
elm.classList.add(scopeId2 + "-h");
|
|
411
421
|
}
|
|
412
422
|
endAttachStyles();
|
|
413
423
|
};
|
|
414
424
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
415
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
425
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
416
426
|
if (oldValue !== newValue) {
|
|
417
427
|
let isProp = isMemberInElement(elm, memberName);
|
|
418
428
|
let ln = memberName.toLowerCase();
|
|
419
429
|
if (memberName === "class") {
|
|
420
430
|
const classList = elm.classList;
|
|
421
431
|
const oldClasses = parseClassList(oldValue);
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
432
|
+
let newClasses = parseClassList(newValue);
|
|
433
|
+
{
|
|
434
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
435
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
436
|
+
}
|
|
425
437
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
426
438
|
if (memberName[2] === "-") {
|
|
427
439
|
memberName = memberName.slice(3);
|
|
@@ -455,7 +467,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
455
467
|
elm.setAttribute(memberName, n);
|
|
456
468
|
}
|
|
457
469
|
}
|
|
458
|
-
} else {
|
|
470
|
+
} else if (elm[memberName] !== newValue) {
|
|
459
471
|
elm[memberName] = newValue;
|
|
460
472
|
}
|
|
461
473
|
} catch (e) {
|
|
@@ -477,24 +489,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
477
489
|
}
|
|
478
490
|
};
|
|
479
491
|
var parseClassListRegex = /\s/;
|
|
480
|
-
var parseClassList = (value) =>
|
|
492
|
+
var parseClassList = (value) => {
|
|
493
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
494
|
+
value = value.baseVal;
|
|
495
|
+
}
|
|
496
|
+
if (!value || typeof value !== "string") {
|
|
497
|
+
return [];
|
|
498
|
+
}
|
|
499
|
+
return value.split(parseClassListRegex);
|
|
500
|
+
};
|
|
481
501
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
482
502
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
483
503
|
|
|
484
504
|
// src/runtime/vdom/update-element.ts
|
|
485
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
505
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
486
506
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
487
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
488
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
507
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
508
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
489
509
|
{
|
|
490
510
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
491
511
|
if (!(memberName in newVnodeAttrs)) {
|
|
492
|
-
setAccessor(
|
|
512
|
+
setAccessor(
|
|
513
|
+
elm,
|
|
514
|
+
memberName,
|
|
515
|
+
oldVnodeAttrs[memberName],
|
|
516
|
+
void 0,
|
|
517
|
+
isSvgMode2,
|
|
518
|
+
newVnode.$flags$);
|
|
493
519
|
}
|
|
494
520
|
}
|
|
495
521
|
}
|
|
496
522
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
497
|
-
setAccessor(
|
|
523
|
+
setAccessor(
|
|
524
|
+
elm,
|
|
525
|
+
memberName,
|
|
526
|
+
oldVnodeAttrs[memberName],
|
|
527
|
+
newVnodeAttrs[memberName],
|
|
528
|
+
isSvgMode2,
|
|
529
|
+
newVnode.$flags$);
|
|
498
530
|
}
|
|
499
531
|
};
|
|
500
532
|
function sortedAttrNames(attrNames) {
|
|
@@ -506,13 +538,10 @@ function sortedAttrNames(attrNames) {
|
|
|
506
538
|
attrNames
|
|
507
539
|
);
|
|
508
540
|
}
|
|
509
|
-
|
|
510
|
-
// src/runtime/vdom/vdom-render.ts
|
|
511
|
-
var scopeId;
|
|
512
541
|
var hostTagName;
|
|
513
542
|
var useNativeShadowDom = false;
|
|
514
543
|
var isSvgMode = false;
|
|
515
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
544
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
516
545
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
517
546
|
let i2 = 0;
|
|
518
547
|
let elm;
|
|
@@ -533,11 +562,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
533
562
|
{
|
|
534
563
|
updateElement(null, newVNode2, isSvgMode);
|
|
535
564
|
}
|
|
536
|
-
const rootNode = elm.getRootNode();
|
|
537
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
538
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
539
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
540
|
-
}
|
|
541
565
|
if (newVNode2.$children$) {
|
|
542
566
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
543
567
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -673,6 +697,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
673
697
|
if (!isInitialRender) {
|
|
674
698
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
675
699
|
}
|
|
700
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
701
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
702
|
+
}
|
|
676
703
|
return true;
|
|
677
704
|
}
|
|
678
705
|
return false;
|
|
@@ -713,8 +740,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
713
740
|
}
|
|
714
741
|
};
|
|
715
742
|
var insertBefore = (parent, newNode, reference) => {
|
|
716
|
-
|
|
717
|
-
|
|
743
|
+
{
|
|
744
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
745
|
+
}
|
|
718
746
|
};
|
|
719
747
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
720
748
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -739,17 +767,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
739
767
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
740
768
|
hostRef.$vnode$ = rootVnode;
|
|
741
769
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
742
|
-
|
|
743
|
-
scopeId = hostElm["s-sc"];
|
|
744
|
-
}
|
|
745
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
770
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
746
771
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
747
772
|
};
|
|
748
773
|
|
|
749
774
|
// src/runtime/update-component.ts
|
|
750
775
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
751
776
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
752
|
-
ancestorComponent["s-p"].push(
|
|
777
|
+
const index = ancestorComponent["s-p"].push(
|
|
778
|
+
new Promise(
|
|
779
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
780
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
781
|
+
r();
|
|
782
|
+
}
|
|
783
|
+
)
|
|
784
|
+
);
|
|
753
785
|
}
|
|
754
786
|
};
|
|
755
787
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -778,12 +810,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
778
810
|
{
|
|
779
811
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
780
812
|
if (hostRef.$queuedListeners$) {
|
|
781
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
813
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
782
814
|
hostRef.$queuedListeners$ = void 0;
|
|
783
815
|
}
|
|
784
816
|
}
|
|
785
817
|
{
|
|
786
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
818
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
787
819
|
}
|
|
788
820
|
}
|
|
789
821
|
endSchedule();
|
|
@@ -852,7 +884,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
852
884
|
const instance = hostRef.$lazyInstance$ ;
|
|
853
885
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
854
886
|
{
|
|
855
|
-
safeCall(instance, "componentDidRender");
|
|
887
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
856
888
|
}
|
|
857
889
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
858
890
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -881,17 +913,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
881
913
|
}
|
|
882
914
|
};
|
|
883
915
|
var appDidLoad = (who) => {
|
|
884
|
-
{
|
|
885
|
-
addHydratedFlag(doc.documentElement);
|
|
886
|
-
}
|
|
887
916
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
888
917
|
};
|
|
889
|
-
var safeCall = (instance, method, arg) => {
|
|
918
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
890
919
|
if (instance && instance[method]) {
|
|
891
920
|
try {
|
|
892
921
|
return instance[method](arg);
|
|
893
922
|
} catch (e) {
|
|
894
|
-
consoleError(e);
|
|
923
|
+
consoleError(e, elm);
|
|
895
924
|
}
|
|
896
925
|
}
|
|
897
926
|
return void 0;
|
|
@@ -950,15 +979,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
950
979
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
951
980
|
members.map(([memberName, [memberFlags]]) => {
|
|
952
981
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
982
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
983
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
984
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
985
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
986
|
+
Object.defineProperty(prototype, memberName, {
|
|
987
|
+
get() {
|
|
988
|
+
{
|
|
989
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
990
|
+
return getValue(this, memberName);
|
|
991
|
+
}
|
|
992
|
+
const ref = getHostRef(this);
|
|
993
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
994
|
+
if (!instance) return;
|
|
995
|
+
return instance[memberName];
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
configurable: true,
|
|
999
|
+
enumerable: true
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
953
1002
|
Object.defineProperty(prototype, memberName, {
|
|
954
|
-
get() {
|
|
955
|
-
return getValue(this, memberName);
|
|
956
|
-
},
|
|
957
1003
|
set(newValue) {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1004
|
+
const ref = getHostRef(this);
|
|
1005
|
+
if (origSetter) {
|
|
1006
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1007
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1008
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1009
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1010
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1011
|
+
}
|
|
1012
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1013
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1014
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
{
|
|
1018
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1019
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1020
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1021
|
+
ref.$onReadyPromise$.then(() => {
|
|
1022
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1023
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
const setterSetVal = () => {
|
|
1030
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1031
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1032
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1033
|
+
}
|
|
1034
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1035
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1036
|
+
};
|
|
1037
|
+
if (ref.$lazyInstance$) {
|
|
1038
|
+
setterSetVal();
|
|
1039
|
+
} else {
|
|
1040
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
962
1044
|
});
|
|
963
1045
|
}
|
|
964
1046
|
});
|
|
@@ -968,7 +1050,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
968
1050
|
plt.jmp(() => {
|
|
969
1051
|
var _a2;
|
|
970
1052
|
const propName = attrNameToPropName.get(attrName);
|
|
971
|
-
if (this.hasOwnProperty(propName)) {
|
|
1053
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
972
1054
|
newValue = this[propName];
|
|
973
1055
|
delete this[propName];
|
|
974
1056
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -988,7 +1070,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
988
1070
|
}
|
|
989
1071
|
return;
|
|
990
1072
|
}
|
|
991
|
-
|
|
1073
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1074
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1075
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1076
|
+
this[propName] = newValue;
|
|
1077
|
+
}
|
|
992
1078
|
});
|
|
993
1079
|
};
|
|
994
1080
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1017,7 +1103,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1017
1103
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1018
1104
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1019
1105
|
if (bundleId) {
|
|
1020
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1106
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1021
1107
|
if (CstrImport && "then" in CstrImport) {
|
|
1022
1108
|
const endLoad = uniqueTime();
|
|
1023
1109
|
Cstr = await CstrImport;
|
|
@@ -1042,7 +1128,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1042
1128
|
try {
|
|
1043
1129
|
new Cstr(hostRef);
|
|
1044
1130
|
} catch (e) {
|
|
1045
|
-
consoleError(e);
|
|
1131
|
+
consoleError(e, elm);
|
|
1046
1132
|
}
|
|
1047
1133
|
{
|
|
1048
1134
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1077,7 +1163,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1077
1163
|
schedule();
|
|
1078
1164
|
}
|
|
1079
1165
|
};
|
|
1080
|
-
var fireConnectedCallback = (instance) => {
|
|
1166
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1081
1167
|
};
|
|
1082
1168
|
|
|
1083
1169
|
// src/runtime/connected-callback.ts
|
|
@@ -1118,7 +1204,7 @@ var connectedCallback = (elm) => {
|
|
|
1118
1204
|
endConnected();
|
|
1119
1205
|
}
|
|
1120
1206
|
};
|
|
1121
|
-
var disconnectInstance = (instance) => {
|
|
1207
|
+
var disconnectInstance = (instance, elm) => {
|
|
1122
1208
|
};
|
|
1123
1209
|
var disconnectedCallback = async (elm) => {
|
|
1124
1210
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1133,6 +1219,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1133
1219
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1134
1220
|
}
|
|
1135
1221
|
}
|
|
1222
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1223
|
+
rootAppliedStyles.delete(elm);
|
|
1224
|
+
}
|
|
1225
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1226
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1227
|
+
}
|
|
1136
1228
|
};
|
|
1137
1229
|
|
|
1138
1230
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1217,6 +1309,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1217
1309
|
}
|
|
1218
1310
|
disconnectedCallback() {
|
|
1219
1311
|
plt.jmp(() => disconnectedCallback(this));
|
|
1312
|
+
plt.raf(() => {
|
|
1313
|
+
var _a3;
|
|
1314
|
+
const hostRef = getHostRef(this);
|
|
1315
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1316
|
+
if (i2 > -1) {
|
|
1317
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1318
|
+
}
|
|
1319
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1320
|
+
delete hostRef.$vnode$.$elm$;
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1220
1323
|
}
|
|
1221
1324
|
componentOnReady() {
|
|
1222
1325
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1280,7 +1383,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1280
1383
|
}
|
|
1281
1384
|
}
|
|
1282
1385
|
} catch (e) {
|
|
1283
|
-
consoleError(e);
|
|
1386
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1284
1387
|
}
|
|
1285
1388
|
};
|
|
1286
1389
|
var getHostListenerTarget = (elm, flags) => {
|
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-35b94b68.js';
|
|
2
|
+
export { s as setNonce } from './index-35b94b68.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),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=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?$(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(d=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,T=(e,t,n)=>{const l=H(e);return{emit:e=>L(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},L=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,q=e=>e?e.split(F):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),_(null,l,B),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].v=r,Y(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(_(e,t,B="svg"===r||"foreignObject"!==r&&B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(p,y,o))X(p,y,o),p=t[--f],y=l[--d];else if(Q(h,y,o))X(h,y,o),Y(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(Q(p,m,o))X(p,m,o),Y(e,p.v,h.v),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Y(h.v.parentNode,s,h.v)}i>f?J(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ee=(e,t)=>{if(e.l|=16,!(4&e.l))return Z(e,e.j),g((()=>te(e,t)));e.l|=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`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>ce(n,e,t))),e.O=void 0),l=ce(n,"componentWillLoad")),ne(l,(()=>oe(e,n,t)))},ne=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:O(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))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(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);se(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},se=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||R(null,null),r=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ce(e.t,"componentDidRender"),64&e.l||(e.l|=64,ue(t),e.A(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>ee(e,!1))),e.l&=-517},ie=()=>{ue(a.documentElement),$((()=>L(u,"appload",{detail:{namespace:"casino-tournament-banner"}})))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),ae=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" 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=r.$hostElement$,c=r.H.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.H.set(t,l),a)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ee(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.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 l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.D)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.D)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],T:l[3]};4&c.l&&(S=!0),c.R=l[2],c.T=l[3],c.P=[],c.D=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,H:new Map};l.L=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,he(this,e,c.T)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)he(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.U}" was not found`);l.isProxied||(n.D=l.watchers,ae(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ee(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.L)&&e.L.then((()=>{}))}})()))}componentOnReady(){return n(this).L}};c.N=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:O(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(ie,30)))},he=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=de(e,n),r=pe(t,o),i=me(n);f.ael(s,l,r,i),(t.W=t.W||[]).push((()=>f.rel(s,l,r,i)))}))},pe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},de=(e,t)=>8&t?u:e,me=e=>({passive:!!(1&e),capture:!!(2&e)}),ye=e=>f.C=e;export{fe as b,T as c,H as g,A as h,h as p,l as r,ye as s}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|