@everymatrix/casino-engagement-suite-luckywheel 0.2.0 → 0.2.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-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel/index.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel/p-7d1170ae.js +2 -0
- package/dist/casino-engagement-suite-luckywheel/p-927567e0.js +15 -0
- package/dist/casino-engagement-suite-luckywheel/p-d8bd2f95.entry.js +1 -0
- package/dist/cjs/{casino-engagement-suite-luckywheel-cc8d37c2.js → casino-engagement-suite-luckywheel-9aaa09f9.js} +49 -80
- package/dist/cjs/casino-engagement-suite-luckywheel.cjs.entry.js +2 -2
- package/dist/cjs/casino-engagement-suite-luckywheel.cjs.js +2 -2
- package/dist/cjs/{index-b46604f4.js → index-6096cc4b.js} +70 -207
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.js +37 -77
- package/dist/collection/utils/utils.js +11 -11
- package/dist/esm/{casino-engagement-suite-luckywheel-cf7e798a.js → casino-engagement-suite-luckywheel-88d531c4.js} +49 -80
- package/dist/esm/casino-engagement-suite-luckywheel.entry.js +2 -2
- package/dist/esm/casino-engagement-suite-luckywheel.js +3 -3
- package/dist/esm/{index-8ce51859.js → index-48c42d04.js} +70 -207
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.d.ts +0 -1
- package/dist/types/models/luckywheel.d.ts +24 -24
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/types/utils/types.d.ts +4 -4
- package/package.json +1 -1
- package/dist/casino-engagement-suite-luckywheel/p-2a6e103b.entry.js +0 -1
- package/dist/casino-engagement-suite-luckywheel/p-781c5f2a.js +0 -1
- package/dist/casino-engagement-suite-luckywheel/p-eaad80fd.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.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-engagement-suite-luckywheel/.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-engagement-suite-luckywheel/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-engagement-suite-luckywheel';
|
|
2
|
-
const BUILD = /* casino-engagement-suite-luckywheel */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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 = /* casino-engagement-suite-luckywheel */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, 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: true, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | 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/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
|
-
// src/client/client-host-ref.ts
|
|
18
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
19
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
20
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
21
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
22
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
23
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
16
|
const hostRef = {
|
|
25
17
|
$flags$: 0,
|
|
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
24
|
hostElement["s-p"] = [];
|
|
33
25
|
hostElement["s-rc"] = [];
|
|
34
26
|
}
|
|
35
|
-
|
|
36
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
37
28
|
};
|
|
38
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
39
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
71
62
|
/* webpackMode: "lazy" */
|
|
72
63
|
`./${bundleId}.entry.js${""}`
|
|
73
|
-
).then(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
cmpModules.set(bundleId, importedModule);
|
|
77
|
-
}
|
|
78
|
-
return importedModule[exportName];
|
|
79
|
-
},
|
|
80
|
-
(e) => {
|
|
81
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
82
67
|
}
|
|
83
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
84
70
|
};
|
|
85
71
|
|
|
86
72
|
// src/client/client-style.ts
|
|
87
73
|
var styles = /* @__PURE__ */ new Map();
|
|
88
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
89
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
90
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
91
76
|
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
@@ -160,6 +145,14 @@ var flush = () => {
|
|
|
160
145
|
};
|
|
161
146
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
162
147
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
148
|
+
|
|
149
|
+
// src/utils/constants.ts
|
|
150
|
+
var EMPTY_OBJ = {};
|
|
151
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
152
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
153
|
+
|
|
154
|
+
// src/utils/helpers.ts
|
|
155
|
+
var isDef = (v) => v != null;
|
|
163
156
|
var isComplexType = (o) => {
|
|
164
157
|
o = typeof o;
|
|
165
158
|
return o === "object" || o === "function";
|
|
@@ -342,40 +335,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
335
|
}
|
|
343
336
|
if (!appliedStyles.has(scopeId2)) {
|
|
344
337
|
{
|
|
345
|
-
styleElm =
|
|
338
|
+
styleElm = doc.createElement("style");
|
|
346
339
|
styleElm.innerHTML = style;
|
|
347
340
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
348
341
|
if (nonce != null) {
|
|
349
342
|
styleElm.setAttribute("nonce", nonce);
|
|
350
343
|
}
|
|
351
|
-
|
|
352
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
355
|
-
styleContainerNode.insertBefore(
|
|
356
|
-
styleElm,
|
|
357
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
358
|
-
);
|
|
359
|
-
} else if ("host" in styleContainerNode) {
|
|
360
|
-
if (supportsConstructableStylesheets) {
|
|
361
|
-
const stylesheet = new CSSStyleSheet();
|
|
362
|
-
stylesheet.replaceSync(style);
|
|
363
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
364
|
-
} else {
|
|
365
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
366
|
-
if (existingStyleContainer) {
|
|
367
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
368
|
-
} else {
|
|
369
|
-
styleContainerNode.prepend(styleElm);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
} else {
|
|
373
|
-
styleContainerNode.append(styleElm);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
377
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
378
|
-
}
|
|
344
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
379
345
|
}
|
|
380
346
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
381
347
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -398,25 +364,23 @@ var attachStyles = (hostRef) => {
|
|
|
398
364
|
const scopeId2 = addStyle(
|
|
399
365
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
400
366
|
cmpMeta);
|
|
401
|
-
if (
|
|
367
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
402
368
|
elm["s-sc"] = scopeId2;
|
|
403
369
|
elm.classList.add(scopeId2 + "-h");
|
|
404
370
|
}
|
|
405
371
|
endAttachStyles();
|
|
406
372
|
};
|
|
407
373
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
408
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
374
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
375
|
if (oldValue !== newValue) {
|
|
410
376
|
let isProp = isMemberInElement(elm, memberName);
|
|
411
377
|
let ln = memberName.toLowerCase();
|
|
412
378
|
if (memberName === "class") {
|
|
413
379
|
const classList = elm.classList;
|
|
414
380
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
381
|
+
const newClasses = parseClassList(newValue);
|
|
382
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
383
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
384
|
} else if (memberName === "style") {
|
|
421
385
|
{
|
|
422
386
|
for (const prop in oldValue) {
|
|
@@ -469,13 +433,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
469
433
|
if (memberName === "list") {
|
|
470
434
|
isProp = false;
|
|
471
435
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
472
|
-
|
|
473
|
-
elm[memberName] = n;
|
|
474
|
-
} else {
|
|
475
|
-
elm.setAttribute(memberName, n);
|
|
476
|
-
}
|
|
436
|
+
elm[memberName] = n;
|
|
477
437
|
}
|
|
478
|
-
} else
|
|
438
|
+
} else {
|
|
479
439
|
elm[memberName] = newValue;
|
|
480
440
|
}
|
|
481
441
|
} catch (e) {
|
|
@@ -508,44 +468,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
508
468
|
}
|
|
509
469
|
};
|
|
510
470
|
var parseClassListRegex = /\s/;
|
|
511
|
-
var parseClassList = (value) =>
|
|
512
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
513
|
-
value = value.baseVal;
|
|
514
|
-
}
|
|
515
|
-
if (!value || typeof value !== "string") {
|
|
516
|
-
return [];
|
|
517
|
-
}
|
|
518
|
-
return value.split(parseClassListRegex);
|
|
519
|
-
};
|
|
471
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
520
472
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
521
473
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
522
474
|
|
|
523
475
|
// src/runtime/vdom/update-element.ts
|
|
524
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
476
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
525
477
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
526
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
527
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
478
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
479
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
528
480
|
{
|
|
529
481
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
530
482
|
if (!(memberName in newVnodeAttrs)) {
|
|
531
|
-
setAccessor(
|
|
532
|
-
elm,
|
|
533
|
-
memberName,
|
|
534
|
-
oldVnodeAttrs[memberName],
|
|
535
|
-
void 0,
|
|
536
|
-
isSvgMode2,
|
|
537
|
-
newVnode.$flags$);
|
|
483
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
538
484
|
}
|
|
539
485
|
}
|
|
540
486
|
}
|
|
541
487
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
542
|
-
setAccessor(
|
|
543
|
-
elm,
|
|
544
|
-
memberName,
|
|
545
|
-
oldVnodeAttrs[memberName],
|
|
546
|
-
newVnodeAttrs[memberName],
|
|
547
|
-
isSvgMode2,
|
|
548
|
-
newVnode.$flags$);
|
|
488
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
549
489
|
}
|
|
550
490
|
};
|
|
551
491
|
function sortedAttrNames(attrNames) {
|
|
@@ -557,10 +497,13 @@ function sortedAttrNames(attrNames) {
|
|
|
557
497
|
attrNames
|
|
558
498
|
);
|
|
559
499
|
}
|
|
500
|
+
|
|
501
|
+
// src/runtime/vdom/vdom-render.ts
|
|
502
|
+
var scopeId;
|
|
560
503
|
var hostTagName;
|
|
561
504
|
var useNativeShadowDom = false;
|
|
562
505
|
var isSvgMode = false;
|
|
563
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
506
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
564
507
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
565
508
|
let i2 = 0;
|
|
566
509
|
let elm;
|
|
@@ -581,6 +524,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
581
524
|
{
|
|
582
525
|
updateElement(null, newVNode2, isSvgMode);
|
|
583
526
|
}
|
|
527
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
528
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
529
|
+
}
|
|
584
530
|
if (newVNode2.$children$) {
|
|
585
531
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
586
532
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -717,9 +663,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
717
663
|
if (!isInitialRender) {
|
|
718
664
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
719
665
|
}
|
|
720
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
721
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
722
|
-
}
|
|
723
666
|
return true;
|
|
724
667
|
}
|
|
725
668
|
return false;
|
|
@@ -746,10 +689,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
746
689
|
elm.textContent = "";
|
|
747
690
|
}
|
|
748
691
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
749
|
-
} else if (
|
|
750
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
751
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
752
|
-
) {
|
|
692
|
+
} else if (oldChildren !== null) {
|
|
753
693
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
754
694
|
}
|
|
755
695
|
if (isSvgMode && tag === "svg") {
|
|
@@ -766,9 +706,8 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
766
706
|
}
|
|
767
707
|
};
|
|
768
708
|
var insertBefore = (parent, newNode, reference) => {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
709
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
710
|
+
return inserted;
|
|
772
711
|
};
|
|
773
712
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
774
713
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -793,21 +732,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
793
732
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
794
733
|
hostRef.$vnode$ = rootVnode;
|
|
795
734
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
796
|
-
|
|
735
|
+
{
|
|
736
|
+
scopeId = hostElm["s-sc"];
|
|
737
|
+
}
|
|
738
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
797
739
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
798
740
|
};
|
|
799
741
|
|
|
800
742
|
// src/runtime/update-component.ts
|
|
801
743
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
802
744
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
803
|
-
|
|
804
|
-
new Promise(
|
|
805
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
806
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
807
|
-
r();
|
|
808
|
-
}
|
|
809
|
-
)
|
|
810
|
-
);
|
|
745
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
811
746
|
}
|
|
812
747
|
};
|
|
813
748
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -836,12 +771,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
836
771
|
{
|
|
837
772
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
838
773
|
if (hostRef.$queuedListeners$) {
|
|
839
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
774
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
840
775
|
hostRef.$queuedListeners$ = void 0;
|
|
841
776
|
}
|
|
842
777
|
}
|
|
843
778
|
{
|
|
844
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
779
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
845
780
|
}
|
|
846
781
|
}
|
|
847
782
|
endSchedule();
|
|
@@ -910,7 +845,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
910
845
|
const instance = hostRef.$lazyInstance$ ;
|
|
911
846
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
912
847
|
{
|
|
913
|
-
safeCall(instance, "componentDidRender"
|
|
848
|
+
safeCall(instance, "componentDidRender");
|
|
914
849
|
}
|
|
915
850
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
916
851
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -939,14 +874,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
939
874
|
}
|
|
940
875
|
};
|
|
941
876
|
var appDidLoad = (who) => {
|
|
877
|
+
{
|
|
878
|
+
addHydratedFlag(doc.documentElement);
|
|
879
|
+
}
|
|
942
880
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
943
881
|
};
|
|
944
|
-
var safeCall = (instance, method, arg
|
|
882
|
+
var safeCall = (instance, method, arg) => {
|
|
945
883
|
if (instance && instance[method]) {
|
|
946
884
|
try {
|
|
947
885
|
return instance[method](arg);
|
|
948
886
|
} catch (e) {
|
|
949
|
-
consoleError(e
|
|
887
|
+
consoleError(e);
|
|
950
888
|
}
|
|
951
889
|
}
|
|
952
890
|
return void 0;
|
|
@@ -989,68 +927,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
989
927
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
990
928
|
members.map(([memberName, [memberFlags]]) => {
|
|
991
929
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
992
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
993
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
994
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
995
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
996
|
-
Object.defineProperty(prototype, memberName, {
|
|
997
|
-
get() {
|
|
998
|
-
{
|
|
999
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1000
|
-
return getValue(this, memberName);
|
|
1001
|
-
}
|
|
1002
|
-
const ref = getHostRef(this);
|
|
1003
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1004
|
-
if (!instance) return;
|
|
1005
|
-
return instance[memberName];
|
|
1006
|
-
}
|
|
1007
|
-
},
|
|
1008
|
-
configurable: true,
|
|
1009
|
-
enumerable: true
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
930
|
Object.defineProperty(prototype, memberName, {
|
|
931
|
+
get() {
|
|
932
|
+
return getValue(this, memberName);
|
|
933
|
+
},
|
|
1013
934
|
set(newValue) {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1019
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1020
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1021
|
-
}
|
|
1022
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1023
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1024
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1025
|
-
return;
|
|
1026
|
-
}
|
|
1027
|
-
{
|
|
1028
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1029
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1030
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1031
|
-
ref.$onReadyPromise$.then(() => {
|
|
1032
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1033
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1034
|
-
}
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
return;
|
|
1038
|
-
}
|
|
1039
|
-
const setterSetVal = () => {
|
|
1040
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1041
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1042
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1043
|
-
}
|
|
1044
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1045
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1046
|
-
};
|
|
1047
|
-
if (ref.$lazyInstance$) {
|
|
1048
|
-
setterSetVal();
|
|
1049
|
-
} else {
|
|
1050
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
935
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
936
|
+
},
|
|
937
|
+
configurable: true,
|
|
938
|
+
enumerable: true
|
|
1054
939
|
});
|
|
1055
940
|
}
|
|
1056
941
|
});
|
|
@@ -1060,11 +945,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1060
945
|
plt.jmp(() => {
|
|
1061
946
|
var _a2;
|
|
1062
947
|
const propName = attrNameToPropName.get(attrName);
|
|
1063
|
-
if (this.hasOwnProperty(propName)
|
|
948
|
+
if (this.hasOwnProperty(propName)) {
|
|
1064
949
|
newValue = this[propName];
|
|
1065
950
|
delete this[propName];
|
|
1066
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1067
|
-
this[propName] == newValue) {
|
|
951
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1068
952
|
return;
|
|
1069
953
|
} else if (propName == null) {
|
|
1070
954
|
const hostRef = getHostRef(this);
|
|
@@ -1080,11 +964,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1080
964
|
}
|
|
1081
965
|
return;
|
|
1082
966
|
}
|
|
1083
|
-
|
|
1084
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1085
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1086
|
-
this[propName] = newValue;
|
|
1087
|
-
}
|
|
967
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1088
968
|
});
|
|
1089
969
|
};
|
|
1090
970
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1113,7 +993,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1113
993
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1114
994
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1115
995
|
if (bundleId) {
|
|
1116
|
-
const CstrImport = loadModule(cmpMeta
|
|
996
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1117
997
|
if (CstrImport && "then" in CstrImport) {
|
|
1118
998
|
const endLoad = uniqueTime();
|
|
1119
999
|
Cstr = await CstrImport;
|
|
@@ -1135,7 +1015,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1135
1015
|
try {
|
|
1136
1016
|
new Cstr(hostRef);
|
|
1137
1017
|
} catch (e) {
|
|
1138
|
-
consoleError(e
|
|
1018
|
+
consoleError(e);
|
|
1139
1019
|
}
|
|
1140
1020
|
{
|
|
1141
1021
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1167,7 +1047,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1167
1047
|
schedule();
|
|
1168
1048
|
}
|
|
1169
1049
|
};
|
|
1170
|
-
var fireConnectedCallback = (instance
|
|
1050
|
+
var fireConnectedCallback = (instance) => {
|
|
1171
1051
|
};
|
|
1172
1052
|
|
|
1173
1053
|
// src/runtime/connected-callback.ts
|
|
@@ -1208,7 +1088,7 @@ var connectedCallback = (elm) => {
|
|
|
1208
1088
|
endConnected();
|
|
1209
1089
|
}
|
|
1210
1090
|
};
|
|
1211
|
-
var disconnectInstance = (instance
|
|
1091
|
+
var disconnectInstance = (instance) => {
|
|
1212
1092
|
};
|
|
1213
1093
|
var disconnectedCallback = async (elm) => {
|
|
1214
1094
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1223,12 +1103,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1223
1103
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1224
1104
|
}
|
|
1225
1105
|
}
|
|
1226
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1227
|
-
rootAppliedStyles.delete(elm);
|
|
1228
|
-
}
|
|
1229
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1230
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1231
|
-
}
|
|
1232
1106
|
};
|
|
1233
1107
|
|
|
1234
1108
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1309,17 +1183,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1309
1183
|
}
|
|
1310
1184
|
disconnectedCallback() {
|
|
1311
1185
|
plt.jmp(() => disconnectedCallback(this));
|
|
1312
|
-
plt.raf(() => {
|
|
1313
|
-
var _a3;
|
|
1314
|
-
const hostRef = getHostRef(this);
|
|
1315
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1316
|
-
if (i2 > -1) {
|
|
1317
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1318
|
-
}
|
|
1319
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1320
|
-
delete hostRef.$vnode$.$elm$;
|
|
1321
|
-
}
|
|
1322
|
-
});
|
|
1323
1186
|
}
|
|
1324
1187
|
componentOnReady() {
|
|
1325
1188
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1383,7 +1246,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1383
1246
|
}
|
|
1384
1247
|
}
|
|
1385
1248
|
} catch (e) {
|
|
1386
|
-
consoleError(e
|
|
1249
|
+
consoleError(e);
|
|
1387
1250
|
}
|
|
1388
1251
|
};
|
|
1389
1252
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoEngagementSuiteLuckywheel } from './casino-engagement-suite-luckywheel-
|
|
2
|
-
import './index-
|
|
1
|
+
export { C as CasinoEngagementSuiteLuckywheel } from './casino-engagement-suite-luckywheel-88d531c4.js';
|
|
2
|
+
import './index-48c42d04.js';
|
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-48c42d04.js';
|
|
2
|
+
export { s as setNonce } from './index-48c42d04.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
export interface LuckyWheel {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Program: LuckyWheelProgram;
|
|
3
|
+
Current?: Record<string, string | number>;
|
|
4
|
+
Next?: Record<string, string | number>;
|
|
5
5
|
}
|
|
6
6
|
export interface LuckyWheelProgram {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
BaseCurrency: string;
|
|
8
|
+
Editor: string;
|
|
9
|
+
Id: string;
|
|
10
|
+
Metadata: Record<string, string>;
|
|
11
|
+
Name: Record<string, string>;
|
|
12
|
+
Status: string;
|
|
13
|
+
Time: string;
|
|
14
|
+
Type: string;
|
|
15
|
+
Version: string;
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}
|
|
18
18
|
export interface WheelOfFortune {
|
|
19
|
-
|
|
19
|
+
Partitions?: Array<WheelOfFortunePartition>;
|
|
20
20
|
}
|
|
21
21
|
export interface WheelOfFortunePartition {
|
|
22
|
-
|
|
22
|
+
Name?: {
|
|
23
23
|
[key: string]: string;
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
Image1?: {
|
|
26
26
|
[key: string]: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
Image2?: {
|
|
29
29
|
[key: string]: string;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
Image3?: {
|
|
32
32
|
[key: string]: string;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Probability?: number;
|
|
35
|
+
Rules?: Array<WheelOfFortunePartitionRule>;
|
|
36
36
|
}
|
|
37
37
|
export interface WheelOfFortunePartitionRule {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
When?: WhenConditionBase;
|
|
39
|
+
Then?: ActionBase;
|
|
40
|
+
AndThen?: ActionBase;
|
|
41
41
|
}
|
|
42
42
|
export interface WhenConditionBase {
|
|
43
|
-
|
|
43
|
+
Evaluator?: string;
|
|
44
44
|
}
|
|
45
45
|
export interface ActionBase {
|
|
46
|
-
|
|
46
|
+
Type?: string;
|
|
47
47
|
}
|
|
48
48
|
export declare enum CurrentInfo {
|
|
49
49
|
ActiveTickets = "ActiveTickets",
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|
|
@@ -33,10 +33,10 @@ export declare enum ContentDirection {
|
|
|
33
33
|
outward = 0
|
|
34
34
|
}
|
|
35
35
|
export interface Option {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
Image: SVGElement | string;
|
|
37
|
+
Name: string;
|
|
38
|
+
PrizeText: string;
|
|
39
|
+
PrizeImage: string;
|
|
40
40
|
}
|
|
41
41
|
export declare enum SpinStep {
|
|
42
42
|
launch = "launch",
|