@everymatrix/lottery-game-details 1.56.0 → 1.56.2
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_4.cjs.entry.js +39 -98
- package/dist/cjs/{index-099339a6.js → index-b3fda73d.js} +74 -209
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-game-details.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/lottery-game-details/lottery-game-details.js +9 -29
- package/dist/esm/helper-accordion_4.entry.js +39 -98
- package/dist/esm/{index-ec9ae966.js → index-b2fc78ab.js} +74 -209
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-game-details.js +3 -3
- package/dist/lottery-game-details/lottery-game-details.esm.js +1 -1
- package/dist/lottery-game-details/p-34234672.js +2 -0
- package/dist/lottery-game-details/p-6cdd4410.entry.js +1 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/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-details/p-1cd44e8d.js +0 -2
- package/dist/lottery-game-details/p-65d99443.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-game-details/.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-details/.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-details/.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-details/.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-details';
|
|
24
|
-
const BUILD = /* lottery-game-details */ { 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: false, 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: 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,
|
|
24
|
+
const BUILD = /* lottery-game-details */ { 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: false, 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: 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, 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: false, 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 : {};
|
|
@@ -161,6 +150,12 @@ var flush = () => {
|
|
|
161
150
|
};
|
|
162
151
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
163
152
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
+
|
|
154
|
+
// src/utils/constants.ts
|
|
155
|
+
var EMPTY_OBJ = {};
|
|
156
|
+
|
|
157
|
+
// src/utils/helpers.ts
|
|
158
|
+
var isDef = (v) => v != null;
|
|
164
159
|
var isComplexType = (o) => {
|
|
165
160
|
o = typeof o;
|
|
166
161
|
return o === "object" || o === "function";
|
|
@@ -364,40 +359,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
364
359
|
}
|
|
365
360
|
if (!appliedStyles.has(scopeId2)) {
|
|
366
361
|
{
|
|
367
|
-
styleElm =
|
|
362
|
+
styleElm = doc.createElement("style");
|
|
368
363
|
styleElm.innerHTML = style;
|
|
369
364
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
370
365
|
if (nonce != null) {
|
|
371
366
|
styleElm.setAttribute("nonce", nonce);
|
|
372
367
|
}
|
|
373
|
-
|
|
374
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
375
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
376
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
377
|
-
styleContainerNode.insertBefore(
|
|
378
|
-
styleElm,
|
|
379
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
380
|
-
);
|
|
381
|
-
} else if ("host" in styleContainerNode) {
|
|
382
|
-
if (supportsConstructableStylesheets) {
|
|
383
|
-
const stylesheet = new CSSStyleSheet();
|
|
384
|
-
stylesheet.replaceSync(style);
|
|
385
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
386
|
-
} else {
|
|
387
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
388
|
-
if (existingStyleContainer) {
|
|
389
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
390
|
-
} else {
|
|
391
|
-
styleContainerNode.prepend(styleElm);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
} else {
|
|
395
|
-
styleContainerNode.append(styleElm);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
399
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
400
|
-
}
|
|
368
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
401
369
|
}
|
|
402
370
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
403
371
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -420,25 +388,23 @@ var attachStyles = (hostRef) => {
|
|
|
420
388
|
const scopeId2 = addStyle(
|
|
421
389
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
422
390
|
cmpMeta);
|
|
423
|
-
if (
|
|
391
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
424
392
|
elm["s-sc"] = scopeId2;
|
|
425
393
|
elm.classList.add(scopeId2 + "-h");
|
|
426
394
|
}
|
|
427
395
|
endAttachStyles();
|
|
428
396
|
};
|
|
429
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
430
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
398
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
431
399
|
if (oldValue !== newValue) {
|
|
432
400
|
let isProp = isMemberInElement(elm, memberName);
|
|
433
401
|
let ln = memberName.toLowerCase();
|
|
434
402
|
if (memberName === "class") {
|
|
435
403
|
const classList = elm.classList;
|
|
436
404
|
const oldClasses = parseClassList(oldValue);
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
441
|
-
}
|
|
405
|
+
const newClasses = parseClassList(newValue);
|
|
406
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
407
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
442
408
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
443
409
|
if (newValue) {
|
|
444
410
|
newValue(elm);
|
|
@@ -470,13 +436,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
470
436
|
if (memberName === "list") {
|
|
471
437
|
isProp = false;
|
|
472
438
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
473
|
-
|
|
474
|
-
elm[memberName] = n;
|
|
475
|
-
} else {
|
|
476
|
-
elm.setAttribute(memberName, n);
|
|
477
|
-
}
|
|
439
|
+
elm[memberName] = n;
|
|
478
440
|
}
|
|
479
|
-
} else
|
|
441
|
+
} else {
|
|
480
442
|
elm[memberName] = newValue;
|
|
481
443
|
}
|
|
482
444
|
} catch (e) {
|
|
@@ -498,44 +460,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
498
460
|
}
|
|
499
461
|
};
|
|
500
462
|
var parseClassListRegex = /\s/;
|
|
501
|
-
var parseClassList = (value) =>
|
|
502
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
503
|
-
value = value.baseVal;
|
|
504
|
-
}
|
|
505
|
-
if (!value || typeof value !== "string") {
|
|
506
|
-
return [];
|
|
507
|
-
}
|
|
508
|
-
return value.split(parseClassListRegex);
|
|
509
|
-
};
|
|
463
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
510
464
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
511
465
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
512
466
|
|
|
513
467
|
// src/runtime/vdom/update-element.ts
|
|
514
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
468
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
515
469
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
516
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
517
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
470
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
471
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
518
472
|
{
|
|
519
473
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
520
474
|
if (!(memberName in newVnodeAttrs)) {
|
|
521
|
-
setAccessor(
|
|
522
|
-
elm,
|
|
523
|
-
memberName,
|
|
524
|
-
oldVnodeAttrs[memberName],
|
|
525
|
-
void 0,
|
|
526
|
-
isSvgMode2,
|
|
527
|
-
newVnode.$flags$);
|
|
475
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
528
476
|
}
|
|
529
477
|
}
|
|
530
478
|
}
|
|
531
479
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
532
|
-
setAccessor(
|
|
533
|
-
elm,
|
|
534
|
-
memberName,
|
|
535
|
-
oldVnodeAttrs[memberName],
|
|
536
|
-
newVnodeAttrs[memberName],
|
|
537
|
-
isSvgMode2,
|
|
538
|
-
newVnode.$flags$);
|
|
480
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
539
481
|
}
|
|
540
482
|
};
|
|
541
483
|
function sortedAttrNames(attrNames) {
|
|
@@ -547,10 +489,13 @@ function sortedAttrNames(attrNames) {
|
|
|
547
489
|
attrNames
|
|
548
490
|
);
|
|
549
491
|
}
|
|
492
|
+
|
|
493
|
+
// src/runtime/vdom/vdom-render.ts
|
|
494
|
+
var scopeId;
|
|
550
495
|
var hostTagName;
|
|
551
496
|
var useNativeShadowDom = false;
|
|
552
497
|
var isSvgMode = false;
|
|
553
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
498
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
554
499
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
555
500
|
let i2 = 0;
|
|
556
501
|
let elm;
|
|
@@ -564,6 +509,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
564
509
|
{
|
|
565
510
|
updateElement(null, newVNode2, isSvgMode);
|
|
566
511
|
}
|
|
512
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
513
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
514
|
+
}
|
|
567
515
|
if (newVNode2.$children$) {
|
|
568
516
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
569
517
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -693,9 +641,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
693
641
|
if (!isInitialRender) {
|
|
694
642
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
695
643
|
}
|
|
696
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
697
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
698
|
-
}
|
|
699
644
|
return true;
|
|
700
645
|
}
|
|
701
646
|
return false;
|
|
@@ -719,10 +664,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
719
664
|
elm.textContent = "";
|
|
720
665
|
}
|
|
721
666
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
722
|
-
} else if (
|
|
723
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
724
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
725
|
-
) {
|
|
667
|
+
} else if (oldChildren !== null) {
|
|
726
668
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
727
669
|
}
|
|
728
670
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -736,9 +678,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
736
678
|
}
|
|
737
679
|
};
|
|
738
680
|
var insertBefore = (parent, newNode, reference) => {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
681
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
682
|
+
return inserted;
|
|
742
683
|
};
|
|
743
684
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
744
685
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -763,21 +704,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
763
704
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
764
705
|
hostRef.$vnode$ = rootVnode;
|
|
765
706
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
766
|
-
|
|
707
|
+
{
|
|
708
|
+
scopeId = hostElm["s-sc"];
|
|
709
|
+
}
|
|
710
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
767
711
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
768
712
|
};
|
|
769
713
|
|
|
770
714
|
// src/runtime/update-component.ts
|
|
771
715
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
772
716
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
773
|
-
|
|
774
|
-
new Promise(
|
|
775
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
776
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
777
|
-
r();
|
|
778
|
-
}
|
|
779
|
-
)
|
|
780
|
-
);
|
|
717
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
781
718
|
}
|
|
782
719
|
};
|
|
783
720
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -804,7 +741,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
804
741
|
let maybePromise;
|
|
805
742
|
if (isInitialLoad) {
|
|
806
743
|
{
|
|
807
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
744
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
808
745
|
}
|
|
809
746
|
}
|
|
810
747
|
endSchedule();
|
|
@@ -873,7 +810,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
873
810
|
const instance = hostRef.$lazyInstance$ ;
|
|
874
811
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
875
812
|
{
|
|
876
|
-
safeCall(instance, "componentDidRender"
|
|
813
|
+
safeCall(instance, "componentDidRender");
|
|
877
814
|
}
|
|
878
815
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
879
816
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -881,7 +818,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
881
818
|
addHydratedFlag(elm);
|
|
882
819
|
}
|
|
883
820
|
{
|
|
884
|
-
safeCall(instance, "componentDidLoad"
|
|
821
|
+
safeCall(instance, "componentDidLoad");
|
|
885
822
|
}
|
|
886
823
|
endPostUpdate();
|
|
887
824
|
{
|
|
@@ -905,14 +842,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
905
842
|
}
|
|
906
843
|
};
|
|
907
844
|
var appDidLoad = (who) => {
|
|
845
|
+
{
|
|
846
|
+
addHydratedFlag(doc.documentElement);
|
|
847
|
+
}
|
|
908
848
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
909
849
|
};
|
|
910
|
-
var safeCall = (instance, method, arg
|
|
850
|
+
var safeCall = (instance, method, arg) => {
|
|
911
851
|
if (instance && instance[method]) {
|
|
912
852
|
try {
|
|
913
853
|
return instance[method](arg);
|
|
914
854
|
} catch (e) {
|
|
915
|
-
consoleError(e
|
|
855
|
+
consoleError(e);
|
|
916
856
|
}
|
|
917
857
|
}
|
|
918
858
|
return void 0;
|
|
@@ -971,68 +911,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
971
911
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
972
912
|
members.map(([memberName, [memberFlags]]) => {
|
|
973
913
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
974
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
975
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
976
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
977
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
978
|
-
Object.defineProperty(prototype, memberName, {
|
|
979
|
-
get() {
|
|
980
|
-
{
|
|
981
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
982
|
-
return getValue(this, memberName);
|
|
983
|
-
}
|
|
984
|
-
const ref = getHostRef(this);
|
|
985
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
986
|
-
if (!instance) return;
|
|
987
|
-
return instance[memberName];
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
configurable: true,
|
|
991
|
-
enumerable: true
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
914
|
Object.defineProperty(prototype, memberName, {
|
|
915
|
+
get() {
|
|
916
|
+
return getValue(this, memberName);
|
|
917
|
+
},
|
|
995
918
|
set(newValue) {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1001
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1002
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1003
|
-
}
|
|
1004
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1005
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1006
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1007
|
-
return;
|
|
1008
|
-
}
|
|
1009
|
-
{
|
|
1010
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1011
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1012
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1013
|
-
ref.$onReadyPromise$.then(() => {
|
|
1014
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1015
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1016
|
-
}
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
return;
|
|
1020
|
-
}
|
|
1021
|
-
const setterSetVal = () => {
|
|
1022
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1023
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1024
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1025
|
-
}
|
|
1026
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1027
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1028
|
-
};
|
|
1029
|
-
if (ref.$lazyInstance$) {
|
|
1030
|
-
setterSetVal();
|
|
1031
|
-
} else {
|
|
1032
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
919
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
920
|
+
},
|
|
921
|
+
configurable: true,
|
|
922
|
+
enumerable: true
|
|
1036
923
|
});
|
|
1037
924
|
}
|
|
1038
925
|
});
|
|
@@ -1042,11 +929,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1042
929
|
plt.jmp(() => {
|
|
1043
930
|
var _a2;
|
|
1044
931
|
const propName = attrNameToPropName.get(attrName);
|
|
1045
|
-
if (this.hasOwnProperty(propName)
|
|
932
|
+
if (this.hasOwnProperty(propName)) {
|
|
1046
933
|
newValue = this[propName];
|
|
1047
934
|
delete this[propName];
|
|
1048
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1049
|
-
this[propName] == newValue) {
|
|
935
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1050
936
|
return;
|
|
1051
937
|
} else if (propName == null) {
|
|
1052
938
|
const hostRef = getHostRef(this);
|
|
@@ -1062,11 +948,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1062
948
|
}
|
|
1063
949
|
return;
|
|
1064
950
|
}
|
|
1065
|
-
|
|
1066
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1067
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1068
|
-
this[propName] = newValue;
|
|
1069
|
-
}
|
|
951
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1070
952
|
});
|
|
1071
953
|
};
|
|
1072
954
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1095,7 +977,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1095
977
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1096
978
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1097
979
|
if (bundleId) {
|
|
1098
|
-
const CstrImport = loadModule(cmpMeta
|
|
980
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1099
981
|
if (CstrImport && "then" in CstrImport) {
|
|
1100
982
|
const endLoad = uniqueTime();
|
|
1101
983
|
Cstr = await CstrImport;
|
|
@@ -1120,7 +1002,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1120
1002
|
try {
|
|
1121
1003
|
new Cstr(hostRef);
|
|
1122
1004
|
} catch (e) {
|
|
1123
|
-
consoleError(e
|
|
1005
|
+
consoleError(e);
|
|
1124
1006
|
}
|
|
1125
1007
|
{
|
|
1126
1008
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1129,7 +1011,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1129
1011
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1130
1012
|
}
|
|
1131
1013
|
endNewInstance();
|
|
1132
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1014
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1133
1015
|
} else {
|
|
1134
1016
|
Cstr = elm.constructor;
|
|
1135
1017
|
const cmpTag = elm.localName;
|
|
@@ -1156,9 +1038,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1156
1038
|
schedule();
|
|
1157
1039
|
}
|
|
1158
1040
|
};
|
|
1159
|
-
var fireConnectedCallback = (instance
|
|
1041
|
+
var fireConnectedCallback = (instance) => {
|
|
1160
1042
|
{
|
|
1161
|
-
safeCall(instance, "connectedCallback"
|
|
1043
|
+
safeCall(instance, "connectedCallback");
|
|
1162
1044
|
}
|
|
1163
1045
|
};
|
|
1164
1046
|
|
|
@@ -1193,34 +1075,28 @@ var connectedCallback = (elm) => {
|
|
|
1193
1075
|
}
|
|
1194
1076
|
} else {
|
|
1195
1077
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1196
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1078
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1197
1079
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1198
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1080
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1199
1081
|
}
|
|
1200
1082
|
}
|
|
1201
1083
|
endConnected();
|
|
1202
1084
|
}
|
|
1203
1085
|
};
|
|
1204
|
-
var disconnectInstance = (instance
|
|
1086
|
+
var disconnectInstance = (instance) => {
|
|
1205
1087
|
{
|
|
1206
|
-
safeCall(instance, "disconnectedCallback"
|
|
1088
|
+
safeCall(instance, "disconnectedCallback");
|
|
1207
1089
|
}
|
|
1208
1090
|
};
|
|
1209
1091
|
var disconnectedCallback = async (elm) => {
|
|
1210
1092
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1211
1093
|
const hostRef = getHostRef(elm);
|
|
1212
1094
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1213
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1095
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1214
1096
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1215
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1097
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1216
1098
|
}
|
|
1217
1099
|
}
|
|
1218
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1219
|
-
rootAppliedStyles.delete(elm);
|
|
1220
|
-
}
|
|
1221
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1222
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1223
|
-
}
|
|
1224
1100
|
};
|
|
1225
1101
|
|
|
1226
1102
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1301,17 +1177,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1301
1177
|
}
|
|
1302
1178
|
disconnectedCallback() {
|
|
1303
1179
|
plt.jmp(() => disconnectedCallback(this));
|
|
1304
|
-
plt.raf(() => {
|
|
1305
|
-
var _a3;
|
|
1306
|
-
const hostRef = getHostRef(this);
|
|
1307
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1308
|
-
if (i2 > -1) {
|
|
1309
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1310
|
-
}
|
|
1311
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1312
|
-
delete hostRef.$vnode$.$elm$;
|
|
1313
|
-
}
|
|
1314
|
-
});
|
|
1315
1180
|
}
|
|
1316
1181
|
componentOnReady() {
|
|
1317
1182
|
return getHostRef(this).$onReadyPromise$;
|
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-b3fda73d.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-b3fda73d.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-details.cjs.js', document.baseURI).href));
|