@everymatrix/lottery-ticket-controller 1.54.11 → 1.55.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/cjs/helper-accordion_5.cjs.entry.js +7283 -7029
- package/dist/cjs/{index-ce57b34d.js → index-e28f68ca.js} +72 -173
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +15 -83
- package/dist/esm/helper-accordion_5.entry.js +7283 -7029
- package/dist/esm/{index-30728886.js → index-bd95d491.js} +72 -173
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottery-ticket-controller.js +3 -3
- package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
- package/dist/lottery-ticket-controller/p-16bb9142.entry.js +3439 -0
- package/dist/lottery-ticket-controller/p-9e034c46.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lottery-ticket-controller/p-2b9683a5.entry.js +0 -2727
- package/dist/lottery-ticket-controller/p-44ec1b95.js +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'lottery-ticket-controller';
|
|
2
|
-
const BUILD = /* lottery-ticket-controller */ { 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: true, 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: 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,
|
|
2
|
+
const BUILD = /* lottery-ticket-controller */ { 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: true, 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: 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: false, 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 };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | 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/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -155,6 +144,12 @@ var flush = () => {
|
|
|
155
144
|
};
|
|
156
145
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
157
146
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
147
|
+
|
|
148
|
+
// src/utils/constants.ts
|
|
149
|
+
var EMPTY_OBJ = {};
|
|
150
|
+
|
|
151
|
+
// src/utils/helpers.ts
|
|
152
|
+
var isDef = (v) => v != null;
|
|
158
153
|
var isComplexType = (o) => {
|
|
159
154
|
o = typeof o;
|
|
160
155
|
return o === "object" || o === "function";
|
|
@@ -358,7 +353,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
358
353
|
}
|
|
359
354
|
if (!appliedStyles.has(scopeId2)) {
|
|
360
355
|
{
|
|
361
|
-
styleElm =
|
|
356
|
+
styleElm = doc.createElement("style");
|
|
362
357
|
styleElm.innerHTML = style;
|
|
363
358
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
364
359
|
if (nonce != null) {
|
|
@@ -368,10 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
368
363
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
369
364
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
370
365
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
371
|
-
styleContainerNode.insertBefore(
|
|
372
|
-
styleElm,
|
|
373
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
374
|
-
);
|
|
366
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
375
367
|
} else if ("host" in styleContainerNode) {
|
|
376
368
|
if (supportsConstructableStylesheets) {
|
|
377
369
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -389,7 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
389
381
|
styleContainerNode.append(styleElm);
|
|
390
382
|
}
|
|
391
383
|
}
|
|
392
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
384
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
393
385
|
styleContainerNode.insertBefore(styleElm, null);
|
|
394
386
|
}
|
|
395
387
|
}
|
|
@@ -414,25 +406,23 @@ var attachStyles = (hostRef) => {
|
|
|
414
406
|
const scopeId2 = addStyle(
|
|
415
407
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
416
408
|
cmpMeta);
|
|
417
|
-
if (
|
|
409
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
418
410
|
elm["s-sc"] = scopeId2;
|
|
419
411
|
elm.classList.add(scopeId2 + "-h");
|
|
420
412
|
}
|
|
421
413
|
endAttachStyles();
|
|
422
414
|
};
|
|
423
415
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
424
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
416
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
425
417
|
if (oldValue !== newValue) {
|
|
426
418
|
let isProp = isMemberInElement(elm, memberName);
|
|
427
419
|
let ln = memberName.toLowerCase();
|
|
428
420
|
if (memberName === "class") {
|
|
429
421
|
const classList = elm.classList;
|
|
430
422
|
const oldClasses = parseClassList(oldValue);
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
435
|
-
}
|
|
423
|
+
const newClasses = parseClassList(newValue);
|
|
424
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
425
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
436
426
|
} else if (memberName === "style") {
|
|
437
427
|
{
|
|
438
428
|
for (const prop in oldValue) {
|
|
@@ -491,7 +481,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
491
481
|
elm.setAttribute(memberName, n);
|
|
492
482
|
}
|
|
493
483
|
}
|
|
494
|
-
} else
|
|
484
|
+
} else {
|
|
495
485
|
elm[memberName] = newValue;
|
|
496
486
|
}
|
|
497
487
|
} catch (e) {
|
|
@@ -513,44 +503,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
513
503
|
}
|
|
514
504
|
};
|
|
515
505
|
var parseClassListRegex = /\s/;
|
|
516
|
-
var parseClassList = (value) =>
|
|
517
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
518
|
-
value = value.baseVal;
|
|
519
|
-
}
|
|
520
|
-
if (!value || typeof value !== "string") {
|
|
521
|
-
return [];
|
|
522
|
-
}
|
|
523
|
-
return value.split(parseClassListRegex);
|
|
524
|
-
};
|
|
506
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
525
507
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
526
508
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
527
509
|
|
|
528
510
|
// src/runtime/vdom/update-element.ts
|
|
529
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
511
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
530
512
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
531
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
532
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
513
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
514
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
533
515
|
{
|
|
534
516
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
535
517
|
if (!(memberName in newVnodeAttrs)) {
|
|
536
|
-
setAccessor(
|
|
537
|
-
elm,
|
|
538
|
-
memberName,
|
|
539
|
-
oldVnodeAttrs[memberName],
|
|
540
|
-
void 0,
|
|
541
|
-
isSvgMode2,
|
|
542
|
-
newVnode.$flags$);
|
|
518
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
543
519
|
}
|
|
544
520
|
}
|
|
545
521
|
}
|
|
546
522
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
547
|
-
setAccessor(
|
|
548
|
-
elm,
|
|
549
|
-
memberName,
|
|
550
|
-
oldVnodeAttrs[memberName],
|
|
551
|
-
newVnodeAttrs[memberName],
|
|
552
|
-
isSvgMode2,
|
|
553
|
-
newVnode.$flags$);
|
|
523
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
554
524
|
}
|
|
555
525
|
};
|
|
556
526
|
function sortedAttrNames(attrNames) {
|
|
@@ -562,10 +532,13 @@ function sortedAttrNames(attrNames) {
|
|
|
562
532
|
attrNames
|
|
563
533
|
);
|
|
564
534
|
}
|
|
535
|
+
|
|
536
|
+
// src/runtime/vdom/vdom-render.ts
|
|
537
|
+
var scopeId;
|
|
565
538
|
var hostTagName;
|
|
566
539
|
var useNativeShadowDom = false;
|
|
567
540
|
var isSvgMode = false;
|
|
568
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
541
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
569
542
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
570
543
|
let i2 = 0;
|
|
571
544
|
let elm;
|
|
@@ -579,6 +552,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
579
552
|
{
|
|
580
553
|
updateElement(null, newVNode2, isSvgMode);
|
|
581
554
|
}
|
|
555
|
+
const rootNode = elm.getRootNode();
|
|
556
|
+
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
557
|
+
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
558
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
559
|
+
}
|
|
582
560
|
if (newVNode2.$children$) {
|
|
583
561
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
584
562
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -708,9 +686,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
708
686
|
if (!isInitialRender) {
|
|
709
687
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
710
688
|
}
|
|
711
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
712
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
713
|
-
}
|
|
714
689
|
return true;
|
|
715
690
|
}
|
|
716
691
|
return false;
|
|
@@ -751,9 +726,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
751
726
|
}
|
|
752
727
|
};
|
|
753
728
|
var insertBefore = (parent, newNode, reference) => {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}
|
|
729
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
730
|
+
return inserted;
|
|
757
731
|
};
|
|
758
732
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
759
733
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -778,21 +752,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
778
752
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
779
753
|
hostRef.$vnode$ = rootVnode;
|
|
780
754
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
781
|
-
|
|
755
|
+
{
|
|
756
|
+
scopeId = hostElm["s-sc"];
|
|
757
|
+
}
|
|
758
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
782
759
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
783
760
|
};
|
|
784
761
|
|
|
785
762
|
// src/runtime/update-component.ts
|
|
786
763
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
787
764
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
788
|
-
|
|
789
|
-
new Promise(
|
|
790
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
791
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
792
|
-
r();
|
|
793
|
-
}
|
|
794
|
-
)
|
|
795
|
-
);
|
|
765
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
796
766
|
}
|
|
797
767
|
};
|
|
798
768
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -821,12 +791,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
821
791
|
{
|
|
822
792
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
823
793
|
if (hostRef.$queuedListeners$) {
|
|
824
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
794
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
825
795
|
hostRef.$queuedListeners$ = void 0;
|
|
826
796
|
}
|
|
827
797
|
}
|
|
828
798
|
{
|
|
829
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
799
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
830
800
|
}
|
|
831
801
|
}
|
|
832
802
|
endSchedule();
|
|
@@ -895,7 +865,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
895
865
|
const instance = hostRef.$lazyInstance$ ;
|
|
896
866
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
897
867
|
{
|
|
898
|
-
safeCall(instance, "componentDidRender"
|
|
868
|
+
safeCall(instance, "componentDidRender");
|
|
899
869
|
}
|
|
900
870
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
901
871
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -924,14 +894,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
924
894
|
}
|
|
925
895
|
};
|
|
926
896
|
var appDidLoad = (who) => {
|
|
897
|
+
{
|
|
898
|
+
addHydratedFlag(doc.documentElement);
|
|
899
|
+
}
|
|
927
900
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
928
901
|
};
|
|
929
|
-
var safeCall = (instance, method, arg
|
|
902
|
+
var safeCall = (instance, method, arg) => {
|
|
930
903
|
if (instance && instance[method]) {
|
|
931
904
|
try {
|
|
932
905
|
return instance[method](arg);
|
|
933
906
|
} catch (e) {
|
|
934
|
-
consoleError(e
|
|
907
|
+
consoleError(e);
|
|
935
908
|
}
|
|
936
909
|
}
|
|
937
910
|
return void 0;
|
|
@@ -990,68 +963,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
990
963
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
991
964
|
members.map(([memberName, [memberFlags]]) => {
|
|
992
965
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
993
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
994
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
995
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
996
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
997
|
-
Object.defineProperty(prototype, memberName, {
|
|
998
|
-
get() {
|
|
999
|
-
{
|
|
1000
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1001
|
-
return getValue(this, memberName);
|
|
1002
|
-
}
|
|
1003
|
-
const ref = getHostRef(this);
|
|
1004
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1005
|
-
if (!instance) return;
|
|
1006
|
-
return instance[memberName];
|
|
1007
|
-
}
|
|
1008
|
-
},
|
|
1009
|
-
configurable: true,
|
|
1010
|
-
enumerable: true
|
|
1011
|
-
});
|
|
1012
|
-
}
|
|
1013
966
|
Object.defineProperty(prototype, memberName, {
|
|
967
|
+
get() {
|
|
968
|
+
return getValue(this, memberName);
|
|
969
|
+
},
|
|
1014
970
|
set(newValue) {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1020
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1021
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1022
|
-
}
|
|
1023
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1024
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1025
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1026
|
-
return;
|
|
1027
|
-
}
|
|
1028
|
-
{
|
|
1029
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1030
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1031
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1032
|
-
ref.$onReadyPromise$.then(() => {
|
|
1033
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1034
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
return;
|
|
1039
|
-
}
|
|
1040
|
-
const setterSetVal = () => {
|
|
1041
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1042
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1043
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1044
|
-
}
|
|
1045
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1046
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1047
|
-
};
|
|
1048
|
-
if (ref.$lazyInstance$) {
|
|
1049
|
-
setterSetVal();
|
|
1050
|
-
} else {
|
|
1051
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
971
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
972
|
+
},
|
|
973
|
+
configurable: true,
|
|
974
|
+
enumerable: true
|
|
1055
975
|
});
|
|
1056
976
|
}
|
|
1057
977
|
});
|
|
@@ -1061,7 +981,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1061
981
|
plt.jmp(() => {
|
|
1062
982
|
var _a2;
|
|
1063
983
|
const propName = attrNameToPropName.get(attrName);
|
|
1064
|
-
if (this.hasOwnProperty(propName)
|
|
984
|
+
if (this.hasOwnProperty(propName)) {
|
|
1065
985
|
newValue = this[propName];
|
|
1066
986
|
delete this[propName];
|
|
1067
987
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1081,11 +1001,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1081
1001
|
}
|
|
1082
1002
|
return;
|
|
1083
1003
|
}
|
|
1084
|
-
|
|
1085
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1086
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1087
|
-
this[propName] = newValue;
|
|
1088
|
-
}
|
|
1004
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1089
1005
|
});
|
|
1090
1006
|
};
|
|
1091
1007
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1114,7 +1030,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1114
1030
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1115
1031
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1116
1032
|
if (bundleId) {
|
|
1117
|
-
const CstrImport = loadModule(cmpMeta
|
|
1033
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1118
1034
|
if (CstrImport && "then" in CstrImport) {
|
|
1119
1035
|
const endLoad = uniqueTime();
|
|
1120
1036
|
Cstr = await CstrImport;
|
|
@@ -1139,7 +1055,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1139
1055
|
try {
|
|
1140
1056
|
new Cstr(hostRef);
|
|
1141
1057
|
} catch (e) {
|
|
1142
|
-
consoleError(e
|
|
1058
|
+
consoleError(e);
|
|
1143
1059
|
}
|
|
1144
1060
|
{
|
|
1145
1061
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1148,7 +1064,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1148
1064
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1149
1065
|
}
|
|
1150
1066
|
endNewInstance();
|
|
1151
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1067
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1152
1068
|
} else {
|
|
1153
1069
|
Cstr = elm.constructor;
|
|
1154
1070
|
const cmpTag = elm.localName;
|
|
@@ -1175,9 +1091,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1175
1091
|
schedule();
|
|
1176
1092
|
}
|
|
1177
1093
|
};
|
|
1178
|
-
var fireConnectedCallback = (instance
|
|
1094
|
+
var fireConnectedCallback = (instance) => {
|
|
1179
1095
|
{
|
|
1180
|
-
safeCall(instance, "connectedCallback"
|
|
1096
|
+
safeCall(instance, "connectedCallback");
|
|
1181
1097
|
}
|
|
1182
1098
|
};
|
|
1183
1099
|
|
|
@@ -1213,15 +1129,15 @@ var connectedCallback = (elm) => {
|
|
|
1213
1129
|
} else {
|
|
1214
1130
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1215
1131
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1216
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1132
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1217
1133
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1218
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1134
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1219
1135
|
}
|
|
1220
1136
|
}
|
|
1221
1137
|
endConnected();
|
|
1222
1138
|
}
|
|
1223
1139
|
};
|
|
1224
|
-
var disconnectInstance = (instance
|
|
1140
|
+
var disconnectInstance = (instance) => {
|
|
1225
1141
|
};
|
|
1226
1142
|
var disconnectedCallback = async (elm) => {
|
|
1227
1143
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1236,12 +1152,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1236
1152
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1237
1153
|
}
|
|
1238
1154
|
}
|
|
1239
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1240
|
-
rootAppliedStyles.delete(elm);
|
|
1241
|
-
}
|
|
1242
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1243
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1244
|
-
}
|
|
1245
1155
|
};
|
|
1246
1156
|
|
|
1247
1157
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1326,17 +1236,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1326
1236
|
}
|
|
1327
1237
|
disconnectedCallback() {
|
|
1328
1238
|
plt.jmp(() => disconnectedCallback(this));
|
|
1329
|
-
plt.raf(() => {
|
|
1330
|
-
var _a3;
|
|
1331
|
-
const hostRef = getHostRef(this);
|
|
1332
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1333
|
-
if (i2 > -1) {
|
|
1334
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1335
|
-
}
|
|
1336
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1337
|
-
delete hostRef.$vnode$.$elm$;
|
|
1338
|
-
}
|
|
1339
|
-
});
|
|
1340
1239
|
}
|
|
1341
1240
|
componentOnReady() {
|
|
1342
1241
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1400,7 +1299,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1400
1299
|
}
|
|
1401
1300
|
}
|
|
1402
1301
|
} catch (e) {
|
|
1403
|
-
consoleError(e
|
|
1302
|
+
consoleError(e);
|
|
1404
1303
|
}
|
|
1405
1304
|
};
|
|
1406
1305
|
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-bd95d491.js';
|
|
2
|
+
export { s as setNonce } from './index-bd95d491.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-bd95d491.js';
|
|
2
|
+
export { s as setNonce } from './index-bd95d491.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-9e034c46.js";export{s as setNonce}from"./p-9e034c46.js";import{g as l}from"./p-e1255160.js";(()=>{const t=import.meta.url,l={};return""!==t&&(l.resourcesUrl=new URL(".",t).href),e(l)})().then((async e=>(await l(),t([["p-16bb9142",[[1,"lottery-ticket-controller",{endpoint:[513],ticketId:[514,"ticket-id"],ticketDescription:[513,"ticket-description"],gameId:[513,"game-id"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],numberOfGrids:[514,"number-of-grids"],last:[516],language:[513],autoPick:[516,"auto-pick"],resetButton:[516,"reset-button"],totalControllers:[514,"total-controllers"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],limitStylingAppends:[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-ticket",{endpoint:[513],gameId:[513,"game-id"],numberOfGrids:[514,"number-of-grids"],multipleDraws:[516,"multiple-draws"],ticketId:[514,"ticket-id"],resetButton:[516,"reset-button"],autoPick:[516,"auto-pick"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],isLoading:[32],hasErrors:[32],ticketDone:[32],isCustomSelect:[32],amountInfo:[32],limitStylingAppends:[32],stakeMultiplier:[32],lineMultiplier:[32],isCustomSelectStake:[32],isCustomSelectDraw:[32],isCustomSelectLine:[32],drawMultiplier:[32],secondarySelectionAllowed:[32],partialQuickpickAvailable:[32],boardsAllowed:[32],tabIndex:[32],groupType:[32],playType:[32],selectedPlayTypeId:[32],maximumAllowed:[32],numberRange:[32],secondaryNumberRange:[32],secondaryMaximumAllowed:[32],minimumAllowed:[32],secondaryMinimumAllowed:[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}],[1,"helper-accordion",{ticketHistoryFlag:[516,"ticket-history-flag"],headerTitle:[513,"header-title"],headerSubtitle:[513,"header-subtitle"],description:[513],footer:[516],deleteTab:[516,"delete-tab"],postMessage:[516,"post-message"],eventName:[513,"event-name"],collapsed:[516],language:[513],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],translationUrl:[520,"translation-url"],showContent:[32],limitStylingAppends:[32]}],[1,"lottery-grid",{ticketId:[514,"ticket-id"],totalNumbers:[514,"total-numbers"],gameId:[513,"game-id"],maximumAllowed:[514,"maximum-allowed"],minimumAllowed:[514,"minimum-allowed"],numberRange:[513,"number-range"],selectable:[516],selectedNumbers:[513,"selected-numbers"],secondaryNumbers:[513,"secondary-numbers"],displaySelected:[516,"display-selected"],language:[513],gridIndex:[514,"grid-index"],gridType:[513,"grid-type"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],highNumber:[514,"high-number"],lowNumber:[514,"low-number"],selectionType:[513,"selection-type"],partialQuickpickAvailable:[516,"partial-quickpick-available"],numbers:[32],bonusNumbers:[32],limitStylingAppends:[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{value:[513],selectable:[516],isSelected:[516,"is-selected"],isBonus:[516,"is-bonus"],clientStyling:[513,"client-styling"],clientStylingUrlContent:[513,"client-styling-url-content"],limitStylingAppends:[32]}]]]],e))));
|