@everymatrix/casino-jackpot-winner 1.52.6 → 1.53.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
- package/dist/casino-jackpot-winner/p-a6ad15c8.js +2 -0
- package/dist/casino-jackpot-winner/p-de818cf8.entry.js +1 -0
- package/dist/cjs/casino-jackpot-winner.cjs.entry.js +207 -26
- package/dist/cjs/casino-jackpot-winner.cjs.js +2 -2
- package/dist/cjs/{index-ebf58fc5.js → index-9a5e3bf0.js} +147 -62
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +43 -3
- package/dist/esm/casino-jackpot-winner.entry.js +207 -26
- package/dist/esm/casino-jackpot-winner.js +3 -3
- package/dist/esm/{index-e8ade48c.js → index-92d7d38a.js} +147 -62
- package/dist/esm/loader.js +2 -2
- package/package.json +1 -1
- package/dist/casino-jackpot-winner/p-0a14a6b5.entry.js +0 -1
- package/dist/casino-jackpot-winner/p-caf0a01d.js +0 -2
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-jackpot-winner';
|
|
24
|
-
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
24
|
+
const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.1 | 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
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
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;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -369,7 +374,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
369
374
|
}
|
|
370
375
|
if (!appliedStyles.has(scopeId2)) {
|
|
371
376
|
{
|
|
372
|
-
styleElm = doc.createElement("style");
|
|
377
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
373
378
|
styleElm.innerHTML = style;
|
|
374
379
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
375
380
|
if (nonce != null) {
|
|
@@ -379,7 +384,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
379
384
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
380
385
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
381
386
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
382
|
-
styleContainerNode.insertBefore(
|
|
387
|
+
styleContainerNode.insertBefore(
|
|
388
|
+
styleElm,
|
|
389
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
390
|
+
);
|
|
383
391
|
} else if ("host" in styleContainerNode) {
|
|
384
392
|
if (supportsConstructableStylesheets) {
|
|
385
393
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -429,7 +437,7 @@ var attachStyles = (hostRef) => {
|
|
|
429
437
|
endAttachStyles();
|
|
430
438
|
};
|
|
431
439
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
432
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
440
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
433
441
|
if (oldValue !== newValue) {
|
|
434
442
|
let isProp = isMemberInElement(elm, memberName);
|
|
435
443
|
memberName.toLowerCase();
|
|
@@ -448,7 +456,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
448
456
|
elm.setAttribute(memberName, n);
|
|
449
457
|
}
|
|
450
458
|
}
|
|
451
|
-
} else {
|
|
459
|
+
} else if (elm[memberName] !== newValue) {
|
|
452
460
|
elm[memberName] = newValue;
|
|
453
461
|
}
|
|
454
462
|
} catch (e) {
|
|
@@ -471,19 +479,31 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
471
479
|
};
|
|
472
480
|
|
|
473
481
|
// src/runtime/vdom/update-element.ts
|
|
474
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
482
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
475
483
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
476
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
477
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
484
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
485
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
478
486
|
{
|
|
479
487
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
480
488
|
if (!(memberName in newVnodeAttrs)) {
|
|
481
|
-
setAccessor(
|
|
489
|
+
setAccessor(
|
|
490
|
+
elm,
|
|
491
|
+
memberName,
|
|
492
|
+
oldVnodeAttrs[memberName],
|
|
493
|
+
void 0,
|
|
494
|
+
isSvgMode2,
|
|
495
|
+
newVnode.$flags$);
|
|
482
496
|
}
|
|
483
497
|
}
|
|
484
498
|
}
|
|
485
499
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
486
|
-
setAccessor(
|
|
500
|
+
setAccessor(
|
|
501
|
+
elm,
|
|
502
|
+
memberName,
|
|
503
|
+
oldVnodeAttrs[memberName],
|
|
504
|
+
newVnodeAttrs[memberName],
|
|
505
|
+
isSvgMode2,
|
|
506
|
+
newVnode.$flags$);
|
|
487
507
|
}
|
|
488
508
|
};
|
|
489
509
|
function sortedAttrNames(attrNames) {
|
|
@@ -495,13 +515,10 @@ function sortedAttrNames(attrNames) {
|
|
|
495
515
|
attrNames
|
|
496
516
|
);
|
|
497
517
|
}
|
|
498
|
-
|
|
499
|
-
// src/runtime/vdom/vdom-render.ts
|
|
500
|
-
var scopeId;
|
|
501
518
|
var hostTagName;
|
|
502
519
|
var useNativeShadowDom = false;
|
|
503
520
|
var isSvgMode = false;
|
|
504
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
521
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
505
522
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
506
523
|
let i2 = 0;
|
|
507
524
|
let elm;
|
|
@@ -513,11 +530,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
513
530
|
{
|
|
514
531
|
updateElement(null, newVNode2, isSvgMode);
|
|
515
532
|
}
|
|
516
|
-
const rootNode = elm.getRootNode();
|
|
517
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
518
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
519
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
520
|
-
}
|
|
521
533
|
if (newVNode2.$children$) {
|
|
522
534
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
523
535
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -646,6 +658,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
646
658
|
if (!isInitialRender) {
|
|
647
659
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
648
660
|
}
|
|
661
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
662
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
663
|
+
}
|
|
649
664
|
return true;
|
|
650
665
|
}
|
|
651
666
|
return false;
|
|
@@ -673,8 +688,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
673
688
|
}
|
|
674
689
|
};
|
|
675
690
|
var insertBefore = (parent, newNode, reference) => {
|
|
676
|
-
|
|
677
|
-
|
|
691
|
+
{
|
|
692
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
693
|
+
}
|
|
678
694
|
};
|
|
679
695
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
680
696
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -693,9 +709,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
693
709
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
694
710
|
hostRef.$vnode$ = rootVnode;
|
|
695
711
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
696
|
-
{
|
|
697
|
-
scopeId = hostElm["s-sc"];
|
|
698
|
-
}
|
|
699
712
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
700
713
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
701
714
|
};
|
|
@@ -703,7 +716,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
703
716
|
// src/runtime/update-component.ts
|
|
704
717
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
705
718
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
706
|
-
ancestorComponent["s-p"].push(
|
|
719
|
+
const index = ancestorComponent["s-p"].push(
|
|
720
|
+
new Promise(
|
|
721
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
722
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
723
|
+
r();
|
|
724
|
+
}
|
|
725
|
+
)
|
|
726
|
+
);
|
|
707
727
|
}
|
|
708
728
|
};
|
|
709
729
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -730,7 +750,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
730
750
|
let maybePromise;
|
|
731
751
|
if (isInitialLoad) {
|
|
732
752
|
{
|
|
733
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
753
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
734
754
|
}
|
|
735
755
|
}
|
|
736
756
|
endSchedule();
|
|
@@ -804,7 +824,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
804
824
|
addHydratedFlag(elm);
|
|
805
825
|
}
|
|
806
826
|
{
|
|
807
|
-
safeCall(instance, "componentDidLoad");
|
|
827
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
808
828
|
}
|
|
809
829
|
endPostUpdate();
|
|
810
830
|
{
|
|
@@ -833,12 +853,12 @@ var appDidLoad = (who) => {
|
|
|
833
853
|
}
|
|
834
854
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
835
855
|
};
|
|
836
|
-
var safeCall = (instance, method, arg) => {
|
|
856
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
837
857
|
if (instance && instance[method]) {
|
|
838
858
|
try {
|
|
839
859
|
return instance[method](arg);
|
|
840
860
|
} catch (e) {
|
|
841
|
-
consoleError(e);
|
|
861
|
+
consoleError(e, elm);
|
|
842
862
|
}
|
|
843
863
|
}
|
|
844
864
|
return void 0;
|
|
@@ -902,15 +922,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
902
922
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
903
923
|
members.map(([memberName, [memberFlags]]) => {
|
|
904
924
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
925
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
926
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
927
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
928
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
929
|
+
Object.defineProperty(prototype, memberName, {
|
|
930
|
+
get() {
|
|
931
|
+
{
|
|
932
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
933
|
+
return getValue(this, memberName);
|
|
934
|
+
}
|
|
935
|
+
const ref = getHostRef(this);
|
|
936
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
937
|
+
if (!instance) return;
|
|
938
|
+
return instance[memberName];
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
configurable: true,
|
|
942
|
+
enumerable: true
|
|
943
|
+
});
|
|
944
|
+
}
|
|
905
945
|
Object.defineProperty(prototype, memberName, {
|
|
906
|
-
get() {
|
|
907
|
-
return getValue(this, memberName);
|
|
908
|
-
},
|
|
909
946
|
set(newValue) {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
947
|
+
const ref = getHostRef(this);
|
|
948
|
+
if (origSetter) {
|
|
949
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
950
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
951
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
952
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
953
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
954
|
+
}
|
|
955
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
956
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
957
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
960
|
+
{
|
|
961
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
962
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
963
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
964
|
+
ref.$onReadyPromise$.then(() => {
|
|
965
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
966
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
const setterSetVal = () => {
|
|
973
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
974
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
975
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
976
|
+
}
|
|
977
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
978
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
979
|
+
};
|
|
980
|
+
if (ref.$lazyInstance$) {
|
|
981
|
+
setterSetVal();
|
|
982
|
+
} else {
|
|
983
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
914
987
|
});
|
|
915
988
|
}
|
|
916
989
|
});
|
|
@@ -920,7 +993,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
920
993
|
plt.jmp(() => {
|
|
921
994
|
var _a2;
|
|
922
995
|
const propName = attrNameToPropName.get(attrName);
|
|
923
|
-
if (this.hasOwnProperty(propName)) {
|
|
996
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
924
997
|
newValue = this[propName];
|
|
925
998
|
delete this[propName];
|
|
926
999
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -940,7 +1013,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
940
1013
|
}
|
|
941
1014
|
return;
|
|
942
1015
|
}
|
|
943
|
-
|
|
1016
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1017
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1018
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1019
|
+
this[propName] = newValue;
|
|
1020
|
+
}
|
|
944
1021
|
});
|
|
945
1022
|
};
|
|
946
1023
|
Cstr.observedAttributes = Array.from(
|
|
@@ -963,9 +1040,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
963
1040
|
let Cstr;
|
|
964
1041
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
965
1042
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1043
|
+
{
|
|
1044
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
969
1045
|
if (CstrImport && "then" in CstrImport) {
|
|
970
1046
|
const endLoad = uniqueTime();
|
|
971
1047
|
Cstr = await CstrImport;
|
|
@@ -990,7 +1066,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
990
1066
|
try {
|
|
991
1067
|
new Cstr(hostRef);
|
|
992
1068
|
} catch (e) {
|
|
993
|
-
consoleError(e);
|
|
1069
|
+
consoleError(e, elm);
|
|
994
1070
|
}
|
|
995
1071
|
{
|
|
996
1072
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -999,10 +1075,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
999
1075
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1000
1076
|
}
|
|
1001
1077
|
endNewInstance();
|
|
1002
|
-
} else {
|
|
1003
|
-
Cstr = elm.constructor;
|
|
1004
|
-
const cmpTag = elm.localName;
|
|
1005
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1006
1078
|
}
|
|
1007
1079
|
if (Cstr && Cstr.style) {
|
|
1008
1080
|
let style;
|
|
@@ -1025,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1025
1097
|
schedule();
|
|
1026
1098
|
}
|
|
1027
1099
|
};
|
|
1028
|
-
var fireConnectedCallback = (instance) => {
|
|
1100
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1029
1101
|
};
|
|
1030
1102
|
|
|
1031
1103
|
// src/runtime/connected-callback.ts
|
|
@@ -1065,7 +1137,7 @@ var connectedCallback = (elm) => {
|
|
|
1065
1137
|
endConnected();
|
|
1066
1138
|
}
|
|
1067
1139
|
};
|
|
1068
|
-
var disconnectInstance = (instance) => {
|
|
1140
|
+
var disconnectInstance = (instance, elm) => {
|
|
1069
1141
|
};
|
|
1070
1142
|
var disconnectedCallback = async (elm) => {
|
|
1071
1143
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1074,6 +1146,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1074
1146
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1075
1147
|
}
|
|
1076
1148
|
}
|
|
1149
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1150
|
+
rootAppliedStyles.delete(elm);
|
|
1151
|
+
}
|
|
1152
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1153
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1154
|
+
}
|
|
1077
1155
|
};
|
|
1078
1156
|
|
|
1079
1157
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1151,6 +1229,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1151
1229
|
}
|
|
1152
1230
|
disconnectedCallback() {
|
|
1153
1231
|
plt.jmp(() => disconnectedCallback(this));
|
|
1232
|
+
plt.raf(() => {
|
|
1233
|
+
var _a3;
|
|
1234
|
+
const hostRef = getHostRef(this);
|
|
1235
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1236
|
+
delete hostRef.$vnode$.$elm$;
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1154
1239
|
}
|
|
1155
1240
|
componentOnReady() {
|
|
1156
1241
|
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-9a5e3bf0.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,19 +1,35 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
3
|
+
import { Style } from "../../decorators/style.decorator";
|
|
4
|
+
import { Locale } from "../../decorators/locale.decorator";
|
|
2
5
|
import { RenderJackpotWinner } from "../../renders";
|
|
3
6
|
import { getWinners } from "../../utils/business";
|
|
4
7
|
import { setDefaultStyle } from "../../renders/images";
|
|
5
8
|
export class CasinoJackpotWinner {
|
|
6
9
|
constructor() {
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Language of the widget
|
|
12
|
+
*/
|
|
9
13
|
this.language = 'en';
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via string
|
|
16
|
+
*/
|
|
10
17
|
this.clientStyling = '';
|
|
18
|
+
/**
|
|
19
|
+
* Client custom styling via url
|
|
20
|
+
*/
|
|
11
21
|
this.clientStylingUrl = '';
|
|
22
|
+
/**
|
|
23
|
+
* translation via url
|
|
24
|
+
*/
|
|
12
25
|
this.translationUrl = '';
|
|
26
|
+
/**
|
|
27
|
+
* Currency of the widget
|
|
28
|
+
*/
|
|
13
29
|
this.currency = 'EUR';
|
|
14
|
-
this.locale = undefined;
|
|
15
30
|
this.users = [];
|
|
16
31
|
this.isLoading = true;
|
|
32
|
+
this.isComponentLoaded = false;
|
|
17
33
|
}
|
|
18
34
|
render() {
|
|
19
35
|
const { isLoading, users, currency, locale } = this;
|
|
@@ -75,6 +91,8 @@ export class CasinoJackpotWinner {
|
|
|
75
91
|
"tags": [],
|
|
76
92
|
"text": "Endpoint URL for the source of data"
|
|
77
93
|
},
|
|
94
|
+
"getter": false,
|
|
95
|
+
"setter": false,
|
|
78
96
|
"attribute": "endpoint",
|
|
79
97
|
"reflect": false
|
|
80
98
|
},
|
|
@@ -92,6 +110,8 @@ export class CasinoJackpotWinner {
|
|
|
92
110
|
"tags": [],
|
|
93
111
|
"text": "Language of the widget"
|
|
94
112
|
},
|
|
113
|
+
"getter": false,
|
|
114
|
+
"setter": false,
|
|
95
115
|
"attribute": "language",
|
|
96
116
|
"reflect": false,
|
|
97
117
|
"defaultValue": "'en'"
|
|
@@ -110,6 +130,8 @@ export class CasinoJackpotWinner {
|
|
|
110
130
|
"tags": [],
|
|
111
131
|
"text": "Client custom styling via string"
|
|
112
132
|
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
113
135
|
"attribute": "client-styling",
|
|
114
136
|
"reflect": false,
|
|
115
137
|
"defaultValue": "''"
|
|
@@ -128,6 +150,8 @@ export class CasinoJackpotWinner {
|
|
|
128
150
|
"tags": [],
|
|
129
151
|
"text": "Client custom styling via url"
|
|
130
152
|
},
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
131
155
|
"attribute": "client-styling-url",
|
|
132
156
|
"reflect": false,
|
|
133
157
|
"defaultValue": "''"
|
|
@@ -146,6 +170,8 @@ export class CasinoJackpotWinner {
|
|
|
146
170
|
"tags": [],
|
|
147
171
|
"text": "translation via url"
|
|
148
172
|
},
|
|
173
|
+
"getter": false,
|
|
174
|
+
"setter": false,
|
|
149
175
|
"attribute": "translation-url",
|
|
150
176
|
"reflect": false,
|
|
151
177
|
"defaultValue": "''"
|
|
@@ -164,6 +190,8 @@ export class CasinoJackpotWinner {
|
|
|
164
190
|
"tags": [],
|
|
165
191
|
"text": "Currency of the widget"
|
|
166
192
|
},
|
|
193
|
+
"getter": false,
|
|
194
|
+
"setter": false,
|
|
167
195
|
"attribute": "currency",
|
|
168
196
|
"reflect": false,
|
|
169
197
|
"defaultValue": "'EUR'"
|
|
@@ -188,3 +216,15 @@ export class CasinoJackpotWinner {
|
|
|
188
216
|
}];
|
|
189
217
|
}
|
|
190
218
|
}
|
|
219
|
+
__decorate([
|
|
220
|
+
Locale(),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], CasinoJackpotWinner.prototype, "language", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
Style(),
|
|
225
|
+
__metadata("design:type", String)
|
|
226
|
+
], CasinoJackpotWinner.prototype, "clientStyling", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
Style(),
|
|
229
|
+
__metadata("design:type", String)
|
|
230
|
+
], CasinoJackpotWinner.prototype, "clientStylingUrl", void 0);
|