@everymatrix/lottery-game-page 1.56.0 → 1.56.3
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/helper-accordion_14.cjs.entry.js +382 -770
- package/dist/cjs/{index-c77bea42.js → index-bc91a30a.js} +77 -212
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-game-page.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/lottery-game-page/lottery-game-page.js +32 -52
- package/dist/esm/helper-accordion_14.entry.js +382 -770
- package/dist/esm/{index-13ed46b6.js → index-1df2d78b.js} +77 -212
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-game-page.js +3 -3
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-486d5a35.js +2 -0
- package/dist/lottery-game-page/{p-f348243b.entry.js → p-9a6c64e8.entry.js} +166 -168
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/lottery-game-page/p-07f9838b.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'lottery-game-page';
|
|
24
|
-
const BUILD = /* lottery-game-page */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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,
|
|
24
|
+
const BUILD = /* lottery-game-page */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/client/client-host-ref.ts
|
|
36
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
37
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
38
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
39
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
41
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
42
38
|
const hostRef = {
|
|
43
39
|
$flags$: 0,
|
|
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
50
46
|
hostElement["s-p"] = [];
|
|
51
47
|
hostElement["s-rc"] = [];
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
55
50
|
};
|
|
56
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
57
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
88
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
89
84
|
/* webpackMode: "lazy" */
|
|
90
85
|
`./${bundleId}.entry.js${""}`
|
|
91
|
-
)); }).then(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cmpModules.set(bundleId, importedModule);
|
|
95
|
-
}
|
|
96
|
-
return importedModule[exportName];
|
|
97
|
-
},
|
|
98
|
-
(e) => {
|
|
99
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
100
89
|
}
|
|
101
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
102
92
|
};
|
|
103
93
|
|
|
104
94
|
// src/client/client-style.ts
|
|
105
95
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
107
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
108
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
109
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -183,6 +172,12 @@ var getAssetPath = (path) => {
|
|
|
183
172
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
184
173
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
185
174
|
};
|
|
175
|
+
|
|
176
|
+
// src/utils/constants.ts
|
|
177
|
+
var EMPTY_OBJ = {};
|
|
178
|
+
|
|
179
|
+
// src/utils/helpers.ts
|
|
180
|
+
var isDef = (v) => v != null;
|
|
186
181
|
var isComplexType = (o) => {
|
|
187
182
|
o = typeof o;
|
|
188
183
|
return o === "object" || o === "function";
|
|
@@ -386,40 +381,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
386
381
|
}
|
|
387
382
|
if (!appliedStyles.has(scopeId2)) {
|
|
388
383
|
{
|
|
389
|
-
styleElm =
|
|
384
|
+
styleElm = doc.createElement("style");
|
|
390
385
|
styleElm.innerHTML = style;
|
|
391
386
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
392
387
|
if (nonce != null) {
|
|
393
388
|
styleElm.setAttribute("nonce", nonce);
|
|
394
389
|
}
|
|
395
|
-
|
|
396
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
397
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
398
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
399
|
-
styleContainerNode.insertBefore(
|
|
400
|
-
styleElm,
|
|
401
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
402
|
-
);
|
|
403
|
-
} else if ("host" in styleContainerNode) {
|
|
404
|
-
if (supportsConstructableStylesheets) {
|
|
405
|
-
const stylesheet = new CSSStyleSheet();
|
|
406
|
-
stylesheet.replaceSync(style);
|
|
407
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
408
|
-
} else {
|
|
409
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
410
|
-
if (existingStyleContainer) {
|
|
411
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
412
|
-
} else {
|
|
413
|
-
styleContainerNode.prepend(styleElm);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
} else {
|
|
417
|
-
styleContainerNode.append(styleElm);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
421
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
422
|
-
}
|
|
390
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
423
391
|
}
|
|
424
392
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
425
393
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -442,25 +410,23 @@ var attachStyles = (hostRef) => {
|
|
|
442
410
|
const scopeId2 = addStyle(
|
|
443
411
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
444
412
|
cmpMeta);
|
|
445
|
-
if (
|
|
413
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
446
414
|
elm["s-sc"] = scopeId2;
|
|
447
415
|
elm.classList.add(scopeId2 + "-h");
|
|
448
416
|
}
|
|
449
417
|
endAttachStyles();
|
|
450
418
|
};
|
|
451
419
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
452
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
420
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
453
421
|
if (oldValue !== newValue) {
|
|
454
422
|
let isProp = isMemberInElement(elm, memberName);
|
|
455
423
|
let ln = memberName.toLowerCase();
|
|
456
424
|
if (memberName === "class") {
|
|
457
425
|
const classList = elm.classList;
|
|
458
426
|
const oldClasses = parseClassList(oldValue);
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
463
|
-
}
|
|
427
|
+
const newClasses = parseClassList(newValue);
|
|
428
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
429
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
464
430
|
} else if (memberName === "style") {
|
|
465
431
|
{
|
|
466
432
|
for (const prop in oldValue) {
|
|
@@ -513,13 +479,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
513
479
|
if (memberName === "list") {
|
|
514
480
|
isProp = false;
|
|
515
481
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
516
|
-
|
|
517
|
-
elm[memberName] = n;
|
|
518
|
-
} else {
|
|
519
|
-
elm.setAttribute(memberName, n);
|
|
520
|
-
}
|
|
482
|
+
elm[memberName] = n;
|
|
521
483
|
}
|
|
522
|
-
} else
|
|
484
|
+
} else {
|
|
523
485
|
elm[memberName] = newValue;
|
|
524
486
|
}
|
|
525
487
|
} catch (e) {
|
|
@@ -541,44 +503,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
541
503
|
}
|
|
542
504
|
};
|
|
543
505
|
var parseClassListRegex = /\s/;
|
|
544
|
-
var parseClassList = (value) =>
|
|
545
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
546
|
-
value = value.baseVal;
|
|
547
|
-
}
|
|
548
|
-
if (!value || typeof value !== "string") {
|
|
549
|
-
return [];
|
|
550
|
-
}
|
|
551
|
-
return value.split(parseClassListRegex);
|
|
552
|
-
};
|
|
506
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
553
507
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
554
508
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
555
509
|
|
|
556
510
|
// src/runtime/vdom/update-element.ts
|
|
557
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
511
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
558
512
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
559
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
560
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
513
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
514
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
561
515
|
{
|
|
562
516
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
563
517
|
if (!(memberName in newVnodeAttrs)) {
|
|
564
|
-
setAccessor(
|
|
565
|
-
elm,
|
|
566
|
-
memberName,
|
|
567
|
-
oldVnodeAttrs[memberName],
|
|
568
|
-
void 0,
|
|
569
|
-
isSvgMode2,
|
|
570
|
-
newVnode.$flags$);
|
|
518
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
571
519
|
}
|
|
572
520
|
}
|
|
573
521
|
}
|
|
574
522
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
575
|
-
setAccessor(
|
|
576
|
-
elm,
|
|
577
|
-
memberName,
|
|
578
|
-
oldVnodeAttrs[memberName],
|
|
579
|
-
newVnodeAttrs[memberName],
|
|
580
|
-
isSvgMode2,
|
|
581
|
-
newVnode.$flags$);
|
|
523
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
582
524
|
}
|
|
583
525
|
};
|
|
584
526
|
function sortedAttrNames(attrNames) {
|
|
@@ -590,10 +532,13 @@ function sortedAttrNames(attrNames) {
|
|
|
590
532
|
attrNames
|
|
591
533
|
);
|
|
592
534
|
}
|
|
535
|
+
|
|
536
|
+
// src/runtime/vdom/vdom-render.ts
|
|
537
|
+
var scopeId;
|
|
593
538
|
var hostTagName;
|
|
594
539
|
var useNativeShadowDom = false;
|
|
595
540
|
var isSvgMode = false;
|
|
596
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
541
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
597
542
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
598
543
|
let i2 = 0;
|
|
599
544
|
let elm;
|
|
@@ -607,6 +552,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
607
552
|
{
|
|
608
553
|
updateElement(null, newVNode2, isSvgMode);
|
|
609
554
|
}
|
|
555
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
556
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
557
|
+
}
|
|
610
558
|
if (newVNode2.$children$) {
|
|
611
559
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
612
560
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -736,9 +684,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
736
684
|
if (!isInitialRender) {
|
|
737
685
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
738
686
|
}
|
|
739
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
740
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
741
|
-
}
|
|
742
687
|
return true;
|
|
743
688
|
}
|
|
744
689
|
return false;
|
|
@@ -762,10 +707,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
762
707
|
elm.textContent = "";
|
|
763
708
|
}
|
|
764
709
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
765
|
-
} else if (
|
|
766
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
767
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
768
|
-
) {
|
|
710
|
+
} else if (oldChildren !== null) {
|
|
769
711
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
770
712
|
}
|
|
771
713
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -779,9 +721,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
779
721
|
}
|
|
780
722
|
};
|
|
781
723
|
var insertBefore = (parent, newNode, reference) => {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
}
|
|
724
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
725
|
+
return inserted;
|
|
785
726
|
};
|
|
786
727
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
787
728
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -806,21 +747,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
806
747
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
807
748
|
hostRef.$vnode$ = rootVnode;
|
|
808
749
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
809
|
-
|
|
750
|
+
{
|
|
751
|
+
scopeId = hostElm["s-sc"];
|
|
752
|
+
}
|
|
753
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
810
754
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
811
755
|
};
|
|
812
756
|
|
|
813
757
|
// src/runtime/update-component.ts
|
|
814
758
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
815
759
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
816
|
-
|
|
817
|
-
new Promise(
|
|
818
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
819
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
820
|
-
r();
|
|
821
|
-
}
|
|
822
|
-
)
|
|
823
|
-
);
|
|
760
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
824
761
|
}
|
|
825
762
|
};
|
|
826
763
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -849,16 +786,16 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
849
786
|
{
|
|
850
787
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
851
788
|
if (hostRef.$queuedListeners$) {
|
|
852
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
789
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
853
790
|
hostRef.$queuedListeners$ = void 0;
|
|
854
791
|
}
|
|
855
792
|
}
|
|
856
793
|
{
|
|
857
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
794
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
858
795
|
}
|
|
859
796
|
}
|
|
860
797
|
{
|
|
861
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"
|
|
798
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
862
799
|
}
|
|
863
800
|
endSchedule();
|
|
864
801
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -926,7 +863,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
926
863
|
const instance = hostRef.$lazyInstance$ ;
|
|
927
864
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
928
865
|
{
|
|
929
|
-
safeCall(instance, "componentDidRender"
|
|
866
|
+
safeCall(instance, "componentDidRender");
|
|
930
867
|
}
|
|
931
868
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
932
869
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -934,7 +871,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
934
871
|
addHydratedFlag(elm);
|
|
935
872
|
}
|
|
936
873
|
{
|
|
937
|
-
safeCall(instance, "componentDidLoad"
|
|
874
|
+
safeCall(instance, "componentDidLoad");
|
|
938
875
|
}
|
|
939
876
|
endPostUpdate();
|
|
940
877
|
{
|
|
@@ -958,14 +895,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
958
895
|
}
|
|
959
896
|
};
|
|
960
897
|
var appDidLoad = (who) => {
|
|
898
|
+
{
|
|
899
|
+
addHydratedFlag(doc.documentElement);
|
|
900
|
+
}
|
|
961
901
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
962
902
|
};
|
|
963
|
-
var safeCall = (instance, method, arg
|
|
903
|
+
var safeCall = (instance, method, arg) => {
|
|
964
904
|
if (instance && instance[method]) {
|
|
965
905
|
try {
|
|
966
906
|
return instance[method](arg);
|
|
967
907
|
} catch (e) {
|
|
968
|
-
consoleError(e
|
|
908
|
+
consoleError(e);
|
|
969
909
|
}
|
|
970
910
|
}
|
|
971
911
|
return void 0;
|
|
@@ -1024,68 +964,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1024
964
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1025
965
|
members.map(([memberName, [memberFlags]]) => {
|
|
1026
966
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1027
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1028
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1029
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1030
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1031
|
-
Object.defineProperty(prototype, memberName, {
|
|
1032
|
-
get() {
|
|
1033
|
-
{
|
|
1034
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1035
|
-
return getValue(this, memberName);
|
|
1036
|
-
}
|
|
1037
|
-
const ref = getHostRef(this);
|
|
1038
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1039
|
-
if (!instance) return;
|
|
1040
|
-
return instance[memberName];
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
configurable: true,
|
|
1044
|
-
enumerable: true
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
967
|
Object.defineProperty(prototype, memberName, {
|
|
968
|
+
get() {
|
|
969
|
+
return getValue(this, memberName);
|
|
970
|
+
},
|
|
1048
971
|
set(newValue) {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1054
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1055
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1056
|
-
}
|
|
1057
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1058
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1059
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
{
|
|
1063
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1064
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1065
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1066
|
-
ref.$onReadyPromise$.then(() => {
|
|
1067
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1068
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
return;
|
|
1073
|
-
}
|
|
1074
|
-
const setterSetVal = () => {
|
|
1075
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1076
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1077
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1078
|
-
}
|
|
1079
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1080
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1081
|
-
};
|
|
1082
|
-
if (ref.$lazyInstance$) {
|
|
1083
|
-
setterSetVal();
|
|
1084
|
-
} else {
|
|
1085
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
972
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
973
|
+
},
|
|
974
|
+
configurable: true,
|
|
975
|
+
enumerable: true
|
|
1089
976
|
});
|
|
1090
977
|
}
|
|
1091
978
|
});
|
|
@@ -1095,11 +982,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1095
982
|
plt.jmp(() => {
|
|
1096
983
|
var _a2;
|
|
1097
984
|
const propName = attrNameToPropName.get(attrName);
|
|
1098
|
-
if (this.hasOwnProperty(propName)
|
|
985
|
+
if (this.hasOwnProperty(propName)) {
|
|
1099
986
|
newValue = this[propName];
|
|
1100
987
|
delete this[propName];
|
|
1101
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1102
|
-
this[propName] == newValue) {
|
|
988
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1103
989
|
return;
|
|
1104
990
|
} else if (propName == null) {
|
|
1105
991
|
const hostRef = getHostRef(this);
|
|
@@ -1115,11 +1001,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1115
1001
|
}
|
|
1116
1002
|
return;
|
|
1117
1003
|
}
|
|
1118
|
-
|
|
1119
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1120
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1121
|
-
this[propName] = newValue;
|
|
1122
|
-
}
|
|
1004
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1123
1005
|
});
|
|
1124
1006
|
};
|
|
1125
1007
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1148,7 +1030,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1148
1030
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1149
1031
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1150
1032
|
if (bundleId) {
|
|
1151
|
-
const CstrImport = loadModule(cmpMeta
|
|
1033
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1152
1034
|
if (CstrImport && "then" in CstrImport) {
|
|
1153
1035
|
const endLoad = uniqueTime();
|
|
1154
1036
|
Cstr = await CstrImport;
|
|
@@ -1173,7 +1055,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1173
1055
|
try {
|
|
1174
1056
|
new Cstr(hostRef);
|
|
1175
1057
|
} catch (e) {
|
|
1176
|
-
consoleError(e
|
|
1058
|
+
consoleError(e);
|
|
1177
1059
|
}
|
|
1178
1060
|
{
|
|
1179
1061
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1182,7 +1064,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1182
1064
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1183
1065
|
}
|
|
1184
1066
|
endNewInstance();
|
|
1185
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1067
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1186
1068
|
} else {
|
|
1187
1069
|
Cstr = elm.constructor;
|
|
1188
1070
|
const cmpTag = elm.localName;
|
|
@@ -1209,9 +1091,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1209
1091
|
schedule();
|
|
1210
1092
|
}
|
|
1211
1093
|
};
|
|
1212
|
-
var fireConnectedCallback = (instance
|
|
1094
|
+
var fireConnectedCallback = (instance) => {
|
|
1213
1095
|
{
|
|
1214
|
-
safeCall(instance, "connectedCallback"
|
|
1096
|
+
safeCall(instance, "connectedCallback");
|
|
1215
1097
|
}
|
|
1216
1098
|
};
|
|
1217
1099
|
|
|
@@ -1247,17 +1129,17 @@ var connectedCallback = (elm) => {
|
|
|
1247
1129
|
} else {
|
|
1248
1130
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1249
1131
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1250
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1132
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1251
1133
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1252
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1134
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1253
1135
|
}
|
|
1254
1136
|
}
|
|
1255
1137
|
endConnected();
|
|
1256
1138
|
}
|
|
1257
1139
|
};
|
|
1258
|
-
var disconnectInstance = (instance
|
|
1140
|
+
var disconnectInstance = (instance) => {
|
|
1259
1141
|
{
|
|
1260
|
-
safeCall(instance, "disconnectedCallback"
|
|
1142
|
+
safeCall(instance, "disconnectedCallback");
|
|
1261
1143
|
}
|
|
1262
1144
|
};
|
|
1263
1145
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1270,17 +1152,11 @@ var disconnectedCallback = async (elm) => {
|
|
|
1270
1152
|
}
|
|
1271
1153
|
}
|
|
1272
1154
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1273
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1155
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1274
1156
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1275
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1157
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1276
1158
|
}
|
|
1277
1159
|
}
|
|
1278
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1279
|
-
rootAppliedStyles.delete(elm);
|
|
1280
|
-
}
|
|
1281
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1282
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1283
|
-
}
|
|
1284
1160
|
};
|
|
1285
1161
|
|
|
1286
1162
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1365,17 +1241,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1365
1241
|
}
|
|
1366
1242
|
disconnectedCallback() {
|
|
1367
1243
|
plt.jmp(() => disconnectedCallback(this));
|
|
1368
|
-
plt.raf(() => {
|
|
1369
|
-
var _a3;
|
|
1370
|
-
const hostRef = getHostRef(this);
|
|
1371
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1372
|
-
if (i2 > -1) {
|
|
1373
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1374
|
-
}
|
|
1375
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1376
|
-
delete hostRef.$vnode$.$elm$;
|
|
1377
|
-
}
|
|
1378
|
-
});
|
|
1379
1244
|
}
|
|
1380
1245
|
componentOnReady() {
|
|
1381
1246
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1439,7 +1304,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1439
1304
|
}
|
|
1440
1305
|
}
|
|
1441
1306
|
} catch (e) {
|
|
1442
|
-
consoleError(e
|
|
1307
|
+
consoleError(e);
|
|
1443
1308
|
}
|
|
1444
1309
|
};
|
|
1445
1310
|
var getHostListenerTarget = (elm, flags) => {
|
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-bc91a30a.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-bc91a30a.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.19.2 | 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('lottery-game-page.cjs.js', document.baseURI).href));
|