@everymatrix/casino-jackpot-winner 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/casino-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
- package/dist/casino-jackpot-winner/p-660238ac.entry.js +1 -0
- package/dist/casino-jackpot-winner/p-8ab52b4b.js +2 -0
- package/dist/cjs/casino-jackpot-winner.cjs.entry.js +26 -207
- package/dist/cjs/casino-jackpot-winner.cjs.js +2 -2
- package/dist/cjs/{index-a6322576.js → index-192db3a6.js} +62 -187
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +3 -43
- package/dist/esm/casino-jackpot-winner.entry.js +26 -207
- package/dist/esm/casino-jackpot-winner.js +3 -3
- package/dist/esm/{index-8bc5c2e9.js → index-c8ba1d1d.js} +62 -187
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-jackpot-winner/p-87493cd4.entry.js +0 -1
- package/dist/casino-jackpot-winner/p-96cbf2e8.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-jackpot-winner/.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/casino-jackpot-winner/.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/casino-jackpot-winner/.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 = '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,
|
|
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 };
|
|
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";
|
|
@@ -374,40 +369,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
374
369
|
}
|
|
375
370
|
if (!appliedStyles.has(scopeId2)) {
|
|
376
371
|
{
|
|
377
|
-
styleElm =
|
|
372
|
+
styleElm = doc.createElement("style");
|
|
378
373
|
styleElm.innerHTML = style;
|
|
379
374
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
380
375
|
if (nonce != null) {
|
|
381
376
|
styleElm.setAttribute("nonce", nonce);
|
|
382
377
|
}
|
|
383
|
-
|
|
384
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
385
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
386
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
387
|
-
styleContainerNode.insertBefore(
|
|
388
|
-
styleElm,
|
|
389
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
390
|
-
);
|
|
391
|
-
} else if ("host" in styleContainerNode) {
|
|
392
|
-
if (supportsConstructableStylesheets) {
|
|
393
|
-
const stylesheet = new CSSStyleSheet();
|
|
394
|
-
stylesheet.replaceSync(style);
|
|
395
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
396
|
-
} else {
|
|
397
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
398
|
-
if (existingStyleContainer) {
|
|
399
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
400
|
-
} else {
|
|
401
|
-
styleContainerNode.prepend(styleElm);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
} else {
|
|
405
|
-
styleContainerNode.append(styleElm);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
409
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
410
|
-
}
|
|
378
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
411
379
|
}
|
|
412
380
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
413
381
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -430,14 +398,14 @@ var attachStyles = (hostRef) => {
|
|
|
430
398
|
const scopeId2 = addStyle(
|
|
431
399
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
432
400
|
cmpMeta);
|
|
433
|
-
if (
|
|
401
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
434
402
|
elm["s-sc"] = scopeId2;
|
|
435
403
|
elm.classList.add(scopeId2 + "-h");
|
|
436
404
|
}
|
|
437
405
|
endAttachStyles();
|
|
438
406
|
};
|
|
439
407
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
440
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
408
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
441
409
|
if (oldValue !== newValue) {
|
|
442
410
|
let isProp = isMemberInElement(elm, memberName);
|
|
443
411
|
memberName.toLowerCase();
|
|
@@ -450,13 +418,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
450
418
|
if (memberName === "list") {
|
|
451
419
|
isProp = false;
|
|
452
420
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
453
|
-
|
|
454
|
-
elm[memberName] = n;
|
|
455
|
-
} else {
|
|
456
|
-
elm.setAttribute(memberName, n);
|
|
457
|
-
}
|
|
421
|
+
elm[memberName] = n;
|
|
458
422
|
}
|
|
459
|
-
} else
|
|
423
|
+
} else {
|
|
460
424
|
elm[memberName] = newValue;
|
|
461
425
|
}
|
|
462
426
|
} catch (e) {
|
|
@@ -479,31 +443,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
479
443
|
};
|
|
480
444
|
|
|
481
445
|
// src/runtime/vdom/update-element.ts
|
|
482
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
446
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
483
447
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
484
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
485
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
448
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
449
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
486
450
|
{
|
|
487
451
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
488
452
|
if (!(memberName in newVnodeAttrs)) {
|
|
489
|
-
setAccessor(
|
|
490
|
-
elm,
|
|
491
|
-
memberName,
|
|
492
|
-
oldVnodeAttrs[memberName],
|
|
493
|
-
void 0,
|
|
494
|
-
isSvgMode2,
|
|
495
|
-
newVnode.$flags$);
|
|
453
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
496
454
|
}
|
|
497
455
|
}
|
|
498
456
|
}
|
|
499
457
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
500
|
-
setAccessor(
|
|
501
|
-
elm,
|
|
502
|
-
memberName,
|
|
503
|
-
oldVnodeAttrs[memberName],
|
|
504
|
-
newVnodeAttrs[memberName],
|
|
505
|
-
isSvgMode2,
|
|
506
|
-
newVnode.$flags$);
|
|
458
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
507
459
|
}
|
|
508
460
|
};
|
|
509
461
|
function sortedAttrNames(attrNames) {
|
|
@@ -515,10 +467,13 @@ function sortedAttrNames(attrNames) {
|
|
|
515
467
|
attrNames
|
|
516
468
|
);
|
|
517
469
|
}
|
|
470
|
+
|
|
471
|
+
// src/runtime/vdom/vdom-render.ts
|
|
472
|
+
var scopeId;
|
|
518
473
|
var hostTagName;
|
|
519
474
|
var useNativeShadowDom = false;
|
|
520
475
|
var isSvgMode = false;
|
|
521
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
476
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
522
477
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
523
478
|
let i2 = 0;
|
|
524
479
|
let elm;
|
|
@@ -530,6 +485,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
530
485
|
{
|
|
531
486
|
updateElement(null, newVNode2, isSvgMode);
|
|
532
487
|
}
|
|
488
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
489
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
490
|
+
}
|
|
533
491
|
if (newVNode2.$children$) {
|
|
534
492
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
535
493
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -658,9 +616,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
658
616
|
if (!isInitialRender) {
|
|
659
617
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
660
618
|
}
|
|
661
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
662
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
663
|
-
}
|
|
664
619
|
return true;
|
|
665
620
|
}
|
|
666
621
|
return false;
|
|
@@ -679,18 +634,14 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
679
634
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
680
635
|
} else if (newChildren !== null) {
|
|
681
636
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
682
|
-
} else if (
|
|
683
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
684
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
685
|
-
) {
|
|
637
|
+
} else if (oldChildren !== null) {
|
|
686
638
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
687
639
|
}
|
|
688
640
|
}
|
|
689
641
|
};
|
|
690
642
|
var insertBefore = (parent, newNode, reference) => {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
643
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
644
|
+
return inserted;
|
|
694
645
|
};
|
|
695
646
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
696
647
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -709,21 +660,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
709
660
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
710
661
|
hostRef.$vnode$ = rootVnode;
|
|
711
662
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
712
|
-
|
|
663
|
+
{
|
|
664
|
+
scopeId = hostElm["s-sc"];
|
|
665
|
+
}
|
|
666
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
713
667
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
714
668
|
};
|
|
715
669
|
|
|
716
670
|
// src/runtime/update-component.ts
|
|
717
671
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
718
672
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
719
|
-
|
|
720
|
-
new Promise(
|
|
721
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
722
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
723
|
-
r();
|
|
724
|
-
}
|
|
725
|
-
)
|
|
726
|
-
);
|
|
673
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
727
674
|
}
|
|
728
675
|
};
|
|
729
676
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -750,7 +697,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
750
697
|
let maybePromise;
|
|
751
698
|
if (isInitialLoad) {
|
|
752
699
|
{
|
|
753
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
700
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
754
701
|
}
|
|
755
702
|
}
|
|
756
703
|
endSchedule();
|
|
@@ -824,7 +771,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
824
771
|
addHydratedFlag(elm);
|
|
825
772
|
}
|
|
826
773
|
{
|
|
827
|
-
safeCall(instance, "componentDidLoad"
|
|
774
|
+
safeCall(instance, "componentDidLoad");
|
|
828
775
|
}
|
|
829
776
|
endPostUpdate();
|
|
830
777
|
{
|
|
@@ -848,14 +795,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
848
795
|
}
|
|
849
796
|
};
|
|
850
797
|
var appDidLoad = (who) => {
|
|
798
|
+
{
|
|
799
|
+
addHydratedFlag(doc.documentElement);
|
|
800
|
+
}
|
|
851
801
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
852
802
|
};
|
|
853
|
-
var safeCall = (instance, method, arg
|
|
803
|
+
var safeCall = (instance, method, arg) => {
|
|
854
804
|
if (instance && instance[method]) {
|
|
855
805
|
try {
|
|
856
806
|
return instance[method](arg);
|
|
857
807
|
} catch (e) {
|
|
858
|
-
consoleError(e
|
|
808
|
+
consoleError(e);
|
|
859
809
|
}
|
|
860
810
|
}
|
|
861
811
|
return void 0;
|
|
@@ -919,68 +869,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
919
869
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
920
870
|
members.map(([memberName, [memberFlags]]) => {
|
|
921
871
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
922
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
923
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
924
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
925
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
926
|
-
Object.defineProperty(prototype, memberName, {
|
|
927
|
-
get() {
|
|
928
|
-
{
|
|
929
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
930
|
-
return getValue(this, memberName);
|
|
931
|
-
}
|
|
932
|
-
const ref = getHostRef(this);
|
|
933
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
934
|
-
if (!instance) return;
|
|
935
|
-
return instance[memberName];
|
|
936
|
-
}
|
|
937
|
-
},
|
|
938
|
-
configurable: true,
|
|
939
|
-
enumerable: true
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
872
|
Object.defineProperty(prototype, memberName, {
|
|
873
|
+
get() {
|
|
874
|
+
return getValue(this, memberName);
|
|
875
|
+
},
|
|
943
876
|
set(newValue) {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
949
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
950
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
951
|
-
}
|
|
952
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
953
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
954
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
955
|
-
return;
|
|
956
|
-
}
|
|
957
|
-
{
|
|
958
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
959
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
960
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
961
|
-
ref.$onReadyPromise$.then(() => {
|
|
962
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
963
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
964
|
-
}
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
const setterSetVal = () => {
|
|
970
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
971
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
972
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
973
|
-
}
|
|
974
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
975
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
976
|
-
};
|
|
977
|
-
if (ref.$lazyInstance$) {
|
|
978
|
-
setterSetVal();
|
|
979
|
-
} else {
|
|
980
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
877
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
878
|
+
},
|
|
879
|
+
configurable: true,
|
|
880
|
+
enumerable: true
|
|
984
881
|
});
|
|
985
882
|
}
|
|
986
883
|
});
|
|
@@ -990,11 +887,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
990
887
|
plt.jmp(() => {
|
|
991
888
|
var _a2;
|
|
992
889
|
const propName = attrNameToPropName.get(attrName);
|
|
993
|
-
if (this.hasOwnProperty(propName)
|
|
890
|
+
if (this.hasOwnProperty(propName)) {
|
|
994
891
|
newValue = this[propName];
|
|
995
892
|
delete this[propName];
|
|
996
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
997
|
-
this[propName] == newValue) {
|
|
893
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
998
894
|
return;
|
|
999
895
|
} else if (propName == null) {
|
|
1000
896
|
const hostRef = getHostRef(this);
|
|
@@ -1010,11 +906,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1010
906
|
}
|
|
1011
907
|
return;
|
|
1012
908
|
}
|
|
1013
|
-
|
|
1014
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1015
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1016
|
-
this[propName] = newValue;
|
|
1017
|
-
}
|
|
909
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1018
910
|
});
|
|
1019
911
|
};
|
|
1020
912
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1039,7 +931,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1039
931
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1040
932
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1041
933
|
if (bundleId) {
|
|
1042
|
-
const CstrImport = loadModule(cmpMeta
|
|
934
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1043
935
|
if (CstrImport && "then" in CstrImport) {
|
|
1044
936
|
const endLoad = uniqueTime();
|
|
1045
937
|
Cstr = await CstrImport;
|
|
@@ -1064,7 +956,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1064
956
|
try {
|
|
1065
957
|
new Cstr(hostRef);
|
|
1066
958
|
} catch (e) {
|
|
1067
|
-
consoleError(e
|
|
959
|
+
consoleError(e);
|
|
1068
960
|
}
|
|
1069
961
|
{
|
|
1070
962
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1099,7 +991,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1099
991
|
schedule();
|
|
1100
992
|
}
|
|
1101
993
|
};
|
|
1102
|
-
var fireConnectedCallback = (instance
|
|
994
|
+
var fireConnectedCallback = (instance) => {
|
|
1103
995
|
};
|
|
1104
996
|
|
|
1105
997
|
// src/runtime/connected-callback.ts
|
|
@@ -1139,7 +1031,7 @@ var connectedCallback = (elm) => {
|
|
|
1139
1031
|
endConnected();
|
|
1140
1032
|
}
|
|
1141
1033
|
};
|
|
1142
|
-
var disconnectInstance = (instance
|
|
1034
|
+
var disconnectInstance = (instance) => {
|
|
1143
1035
|
};
|
|
1144
1036
|
var disconnectedCallback = async (elm) => {
|
|
1145
1037
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1148,12 +1040,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1148
1040
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1149
1041
|
}
|
|
1150
1042
|
}
|
|
1151
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1152
|
-
rootAppliedStyles.delete(elm);
|
|
1153
|
-
}
|
|
1154
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1155
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1156
|
-
}
|
|
1157
1043
|
};
|
|
1158
1044
|
|
|
1159
1045
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1231,17 +1117,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1231
1117
|
}
|
|
1232
1118
|
disconnectedCallback() {
|
|
1233
1119
|
plt.jmp(() => disconnectedCallback(this));
|
|
1234
|
-
plt.raf(() => {
|
|
1235
|
-
var _a3;
|
|
1236
|
-
const hostRef = getHostRef(this);
|
|
1237
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1238
|
-
if (i2 > -1) {
|
|
1239
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1240
|
-
}
|
|
1241
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1242
|
-
delete hostRef.$vnode$.$elm$;
|
|
1243
|
-
}
|
|
1244
|
-
});
|
|
1245
1120
|
}
|
|
1246
1121
|
componentOnReady() {
|
|
1247
1122
|
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-192db3a6.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
1
|
import { h } from "@stencil/core";
|
|
3
|
-
import { Style } from "../../decorators/style.decorator";
|
|
4
|
-
import { Locale } from "../../decorators/locale.decorator";
|
|
5
2
|
import { RenderJackpotWinner } from "../../renders";
|
|
6
3
|
import { getWinners } from "../../utils/business";
|
|
7
4
|
import { setDefaultStyle } from "../../renders/images";
|
|
8
5
|
export class CasinoJackpotWinner {
|
|
9
6
|
constructor() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
7
|
+
this.isComponentLoaded = false;
|
|
8
|
+
this.endpoint = undefined;
|
|
13
9
|
this.language = 'en';
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via string
|
|
16
|
-
*/
|
|
17
10
|
this.clientStyling = '';
|
|
18
|
-
/**
|
|
19
|
-
* Client custom styling via url
|
|
20
|
-
*/
|
|
21
11
|
this.clientStylingUrl = '';
|
|
22
|
-
/**
|
|
23
|
-
* translation via url
|
|
24
|
-
*/
|
|
25
12
|
this.translationUrl = '';
|
|
26
|
-
/**
|
|
27
|
-
* Currency of the widget
|
|
28
|
-
*/
|
|
29
13
|
this.currency = 'EUR';
|
|
14
|
+
this.locale = undefined;
|
|
30
15
|
this.users = [];
|
|
31
16
|
this.isLoading = true;
|
|
32
|
-
this.isComponentLoaded = false;
|
|
33
17
|
}
|
|
34
18
|
render() {
|
|
35
19
|
const { isLoading, users, currency, locale } = this;
|
|
@@ -91,8 +75,6 @@ export class CasinoJackpotWinner {
|
|
|
91
75
|
"tags": [],
|
|
92
76
|
"text": "Endpoint URL for the source of data"
|
|
93
77
|
},
|
|
94
|
-
"getter": false,
|
|
95
|
-
"setter": false,
|
|
96
78
|
"attribute": "endpoint",
|
|
97
79
|
"reflect": false
|
|
98
80
|
},
|
|
@@ -110,8 +92,6 @@ export class CasinoJackpotWinner {
|
|
|
110
92
|
"tags": [],
|
|
111
93
|
"text": "Language of the widget"
|
|
112
94
|
},
|
|
113
|
-
"getter": false,
|
|
114
|
-
"setter": false,
|
|
115
95
|
"attribute": "language",
|
|
116
96
|
"reflect": false,
|
|
117
97
|
"defaultValue": "'en'"
|
|
@@ -130,8 +110,6 @@ export class CasinoJackpotWinner {
|
|
|
130
110
|
"tags": [],
|
|
131
111
|
"text": "Client custom styling via string"
|
|
132
112
|
},
|
|
133
|
-
"getter": false,
|
|
134
|
-
"setter": false,
|
|
135
113
|
"attribute": "client-styling",
|
|
136
114
|
"reflect": false,
|
|
137
115
|
"defaultValue": "''"
|
|
@@ -150,8 +128,6 @@ export class CasinoJackpotWinner {
|
|
|
150
128
|
"tags": [],
|
|
151
129
|
"text": "Client custom styling via url"
|
|
152
130
|
},
|
|
153
|
-
"getter": false,
|
|
154
|
-
"setter": false,
|
|
155
131
|
"attribute": "client-styling-url",
|
|
156
132
|
"reflect": false,
|
|
157
133
|
"defaultValue": "''"
|
|
@@ -170,8 +146,6 @@ export class CasinoJackpotWinner {
|
|
|
170
146
|
"tags": [],
|
|
171
147
|
"text": "translation via url"
|
|
172
148
|
},
|
|
173
|
-
"getter": false,
|
|
174
|
-
"setter": false,
|
|
175
149
|
"attribute": "translation-url",
|
|
176
150
|
"reflect": false,
|
|
177
151
|
"defaultValue": "''"
|
|
@@ -190,8 +164,6 @@ export class CasinoJackpotWinner {
|
|
|
190
164
|
"tags": [],
|
|
191
165
|
"text": "Currency of the widget"
|
|
192
166
|
},
|
|
193
|
-
"getter": false,
|
|
194
|
-
"setter": false,
|
|
195
167
|
"attribute": "currency",
|
|
196
168
|
"reflect": false,
|
|
197
169
|
"defaultValue": "'EUR'"
|
|
@@ -216,15 +188,3 @@ export class CasinoJackpotWinner {
|
|
|
216
188
|
}];
|
|
217
189
|
}
|
|
218
190
|
}
|
|
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);
|