@everymatrix/casino-engagement-suite-tournament 0.0.0 → 0.0.1
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-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-0f4e94ab.entry.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-1bf11325.js +2 -0
- package/dist/casino-engagement-suite-tournament/p-5df3ac81.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +148 -0
- package/dist/cjs/{casino-engagement-suite-tournament-d16da103.js → casino-engagement-suite-tournament-1b738bb2.js} +5 -7
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-192fed5a.js → index-16d5d7c3.js} +307 -11
- package/dist/cjs/index.cjs.js +2 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +14 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +2 -2
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +142 -0
- package/dist/esm/{casino-engagement-suite-tournament-af4ed1fe.js → casino-engagement-suite-tournament-d8471680.js} +5 -7
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-c8be0c5b.js → index-3962add4.js} +307 -12
- package/dist/esm/index.js +2 -4
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +2 -2
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-5e83c304.entry.js +0 -1
- package/dist/casino-engagement-suite-tournament/p-9996e3fd.js +0 -1
- package/dist/casino-engagement-suite-tournament/p-d5ef82db.js +0 -2
- package/dist/cjs/casino-engagement-suite-tournament.cjs.entry.js +0 -12
- package/dist/esm/casino-engagement-suite-tournament.entry.js +0 -4
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-tournament';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender:
|
|
24
|
+
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, 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: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'casino-engagement-suite-
|
|
74
|
+
case 'casino-engagement-suite-progress-bar_3.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./casino-engagement-suite-
|
|
77
|
+
'./casino-engagement-suite-progress-bar_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -249,6 +249,7 @@ var uniqueTime = (key, measureText) => {
|
|
|
249
249
|
var h = (nodeName, vnodeData, ...children) => {
|
|
250
250
|
let child = null;
|
|
251
251
|
let key = null;
|
|
252
|
+
let slotName = null;
|
|
252
253
|
let simple = false;
|
|
253
254
|
let lastSimple = false;
|
|
254
255
|
const vNodeChildren = [];
|
|
@@ -275,6 +276,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
275
276
|
if (vnodeData.key) {
|
|
276
277
|
key = vnodeData.key;
|
|
277
278
|
}
|
|
279
|
+
if (vnodeData.name) {
|
|
280
|
+
slotName = vnodeData.name;
|
|
281
|
+
}
|
|
278
282
|
{
|
|
279
283
|
const classData = vnodeData.className || vnodeData.class;
|
|
280
284
|
if (classData) {
|
|
@@ -297,6 +301,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
297
301
|
{
|
|
298
302
|
vnode.$key$ = key;
|
|
299
303
|
}
|
|
304
|
+
{
|
|
305
|
+
vnode.$name$ = slotName;
|
|
306
|
+
}
|
|
300
307
|
return vnode;
|
|
301
308
|
};
|
|
302
309
|
var newVNode = (tag, text) => {
|
|
@@ -313,6 +320,9 @@ var newVNode = (tag, text) => {
|
|
|
313
320
|
{
|
|
314
321
|
vnode.$key$ = null;
|
|
315
322
|
}
|
|
323
|
+
{
|
|
324
|
+
vnode.$name$ = null;
|
|
325
|
+
}
|
|
316
326
|
return vnode;
|
|
317
327
|
};
|
|
318
328
|
var Host = {};
|
|
@@ -349,6 +359,12 @@ var convertToPrivate = (node) => {
|
|
|
349
359
|
};
|
|
350
360
|
var parsePropertyValue = (propValue, propType) => {
|
|
351
361
|
if (propValue != null && !isComplexType(propValue)) {
|
|
362
|
+
if (propType & 4 /* Boolean */) {
|
|
363
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
364
|
+
}
|
|
365
|
+
if (propType & 2 /* Number */) {
|
|
366
|
+
return parseFloat(propValue);
|
|
367
|
+
}
|
|
352
368
|
if (propType & 1 /* String */) {
|
|
353
369
|
return String(propValue);
|
|
354
370
|
}
|
|
@@ -583,16 +599,41 @@ function sortedAttrNames(attrNames) {
|
|
|
583
599
|
|
|
584
600
|
// src/runtime/vdom/vdom-render.ts
|
|
585
601
|
var scopeId;
|
|
602
|
+
var contentRef;
|
|
586
603
|
var hostTagName;
|
|
587
604
|
var useNativeShadowDom = false;
|
|
605
|
+
var checkSlotFallbackVisibility = false;
|
|
606
|
+
var checkSlotRelocate = false;
|
|
588
607
|
var isSvgMode = false;
|
|
589
608
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
609
|
+
var _a;
|
|
590
610
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
591
611
|
let i2 = 0;
|
|
592
612
|
let elm;
|
|
593
613
|
let childNode;
|
|
614
|
+
let oldVNode;
|
|
615
|
+
if (!useNativeShadowDom) {
|
|
616
|
+
checkSlotRelocate = true;
|
|
617
|
+
if (newVNode2.$tag$ === "slot") {
|
|
618
|
+
if (scopeId) {
|
|
619
|
+
parentElm.classList.add(scopeId + "-s");
|
|
620
|
+
}
|
|
621
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
622
|
+
// slot element has fallback content
|
|
623
|
+
// still create an element that "mocks" the slot element
|
|
624
|
+
2 /* isSlotFallback */
|
|
625
|
+
) : (
|
|
626
|
+
// slot element does not have fallback content
|
|
627
|
+
// create an html comment we'll use to always reference
|
|
628
|
+
// where actual slot content should sit next to
|
|
629
|
+
1 /* isSlotReference */
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
594
633
|
if (newVNode2.$text$ !== null) {
|
|
595
634
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
635
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
636
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
596
637
|
} else {
|
|
597
638
|
elm = newVNode2.$elm$ = doc.createElement(
|
|
598
639
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
@@ -607,7 +648,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
607
648
|
}
|
|
608
649
|
if (newVNode2.$children$) {
|
|
609
650
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
610
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
651
|
+
childNode = createElm(oldParentVNode, newVNode2, i2, elm);
|
|
611
652
|
if (childNode) {
|
|
612
653
|
elm.appendChild(childNode);
|
|
613
654
|
}
|
|
@@ -615,20 +656,60 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
615
656
|
}
|
|
616
657
|
}
|
|
617
658
|
elm["s-hn"] = hostTagName;
|
|
659
|
+
{
|
|
660
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
661
|
+
elm["s-sr"] = true;
|
|
662
|
+
elm["s-cr"] = contentRef;
|
|
663
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
664
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
665
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
666
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
667
|
+
{
|
|
668
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
618
673
|
return elm;
|
|
619
674
|
};
|
|
675
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
676
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
677
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
|
678
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
679
|
+
let node = parentElm;
|
|
680
|
+
while (node = node.nextSibling) {
|
|
681
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
682
|
+
oldSlotChildNodes.push(node);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
687
|
+
const childNode = oldSlotChildNodes[i2];
|
|
688
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
689
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
|
690
|
+
childNode["s-ol"].remove();
|
|
691
|
+
childNode["s-ol"] = void 0;
|
|
692
|
+
childNode["s-sh"] = void 0;
|
|
693
|
+
checkSlotRelocate = true;
|
|
694
|
+
}
|
|
695
|
+
if (recursive) {
|
|
696
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
700
|
+
};
|
|
620
701
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
621
|
-
let containerElm = parentElm;
|
|
702
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
622
703
|
let childNode;
|
|
623
704
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
624
705
|
containerElm = containerElm.shadowRoot;
|
|
625
706
|
}
|
|
626
707
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
627
708
|
if (vnodes[startIdx]) {
|
|
628
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
709
|
+
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
|
629
710
|
if (childNode) {
|
|
630
711
|
vnodes[startIdx].$elm$ = childNode;
|
|
631
|
-
insertBefore(containerElm, childNode, before);
|
|
712
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
632
713
|
}
|
|
633
714
|
}
|
|
634
715
|
}
|
|
@@ -640,6 +721,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
640
721
|
const elm = vnode.$elm$;
|
|
641
722
|
nullifyVNodeRefs(vnode);
|
|
642
723
|
if (elm) {
|
|
724
|
+
{
|
|
725
|
+
checkSlotFallbackVisibility = true;
|
|
726
|
+
if (elm["s-ol"]) {
|
|
727
|
+
elm["s-ol"].remove();
|
|
728
|
+
} else {
|
|
729
|
+
putBackInOriginalLocation(elm, true);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
643
732
|
elm.remove();
|
|
644
733
|
}
|
|
645
734
|
}
|
|
@@ -676,11 +765,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
676
765
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
677
766
|
newEndVnode = newCh[--newEndIdx];
|
|
678
767
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
768
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
769
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
770
|
+
}
|
|
679
771
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
680
772
|
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
681
773
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
682
774
|
newEndVnode = newCh[--newEndIdx];
|
|
683
775
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
776
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
777
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
778
|
+
}
|
|
684
779
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
685
780
|
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
686
781
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -698,7 +793,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
698
793
|
if (idxInOld >= 0) {
|
|
699
794
|
elmToMove = oldCh[idxInOld];
|
|
700
795
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
701
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
796
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
|
|
702
797
|
} else {
|
|
703
798
|
patch(elmToMove, newStartVnode, isInitialRender);
|
|
704
799
|
oldCh[idxInOld] = void 0;
|
|
@@ -706,12 +801,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
706
801
|
}
|
|
707
802
|
newStartVnode = newCh[++newStartIdx];
|
|
708
803
|
} else {
|
|
709
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
804
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
|
|
710
805
|
newStartVnode = newCh[++newStartIdx];
|
|
711
806
|
}
|
|
712
807
|
if (node) {
|
|
713
808
|
{
|
|
714
|
-
insertBefore(oldStartVnode.$elm
|
|
809
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
|
715
810
|
}
|
|
716
811
|
}
|
|
717
812
|
}
|
|
@@ -731,6 +826,18 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
731
826
|
};
|
|
732
827
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
733
828
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
829
|
+
if (leftVNode.$tag$ === "slot") {
|
|
830
|
+
if (
|
|
831
|
+
// The component gets hydrated and no VDOM has been initialized.
|
|
832
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
|
833
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
|
834
|
+
// hydration comments to be removed
|
|
835
|
+
leftVNode.$elm$.nodeType !== 8
|
|
836
|
+
) {
|
|
837
|
+
return false;
|
|
838
|
+
}
|
|
839
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
840
|
+
}
|
|
734
841
|
if (!isInitialRender) {
|
|
735
842
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
736
843
|
}
|
|
@@ -738,14 +845,20 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
738
845
|
}
|
|
739
846
|
return false;
|
|
740
847
|
};
|
|
848
|
+
var referenceNode = (node) => {
|
|
849
|
+
return node && node["s-ol"] || node;
|
|
850
|
+
};
|
|
851
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
|
741
852
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
742
853
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
743
854
|
const oldChildren = oldVNode.$children$;
|
|
744
855
|
const newChildren = newVNode2.$children$;
|
|
856
|
+
const tag = newVNode2.$tag$;
|
|
745
857
|
const text = newVNode2.$text$;
|
|
858
|
+
let defaultHolder;
|
|
746
859
|
if (text === null) {
|
|
747
860
|
{
|
|
748
|
-
{
|
|
861
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
749
862
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
750
863
|
}
|
|
751
864
|
}
|
|
@@ -762,10 +875,103 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
762
875
|
) {
|
|
763
876
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
764
877
|
}
|
|
878
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
879
|
+
defaultHolder.parentNode.textContent = text;
|
|
765
880
|
} else if (oldVNode.$text$ !== text) {
|
|
766
881
|
elm.data = text;
|
|
767
882
|
}
|
|
768
883
|
};
|
|
884
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
885
|
+
const childNodes = elm.childNodes;
|
|
886
|
+
for (const childNode of childNodes) {
|
|
887
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
888
|
+
if (childNode["s-sr"]) {
|
|
889
|
+
const slotName = childNode["s-sn"];
|
|
890
|
+
childNode.hidden = false;
|
|
891
|
+
for (const siblingNode of childNodes) {
|
|
892
|
+
if (siblingNode !== childNode) {
|
|
893
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
|
894
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
|
895
|
+
childNode.hidden = true;
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
} else {
|
|
899
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
|
900
|
+
childNode.hidden = true;
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
updateFallbackSlotVisibility(childNode);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
var relocateNodes = [];
|
|
912
|
+
var markSlotContentForRelocation = (elm) => {
|
|
913
|
+
let node;
|
|
914
|
+
let hostContentNodes;
|
|
915
|
+
let j;
|
|
916
|
+
for (const childNode of elm.childNodes) {
|
|
917
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
918
|
+
hostContentNodes = node.parentNode.childNodes;
|
|
919
|
+
const slotName = childNode["s-sn"];
|
|
920
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
921
|
+
node = hostContentNodes[j];
|
|
922
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
923
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
924
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
925
|
+
checkSlotFallbackVisibility = true;
|
|
926
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
927
|
+
if (relocateNodeData) {
|
|
928
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
929
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
930
|
+
} else {
|
|
931
|
+
node["s-sh"] = childNode["s-hn"];
|
|
932
|
+
relocateNodes.push({
|
|
933
|
+
$slotRefNode$: childNode,
|
|
934
|
+
$nodeToRelocate$: node
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
if (node["s-sr"]) {
|
|
938
|
+
relocateNodes.map((relocateNode) => {
|
|
939
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
940
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
941
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
942
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
948
|
+
relocateNodes.push({
|
|
949
|
+
$nodeToRelocate$: node
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
956
|
+
markSlotContentForRelocation(childNode);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
961
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
962
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
963
|
+
return true;
|
|
964
|
+
}
|
|
965
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
return false;
|
|
969
|
+
}
|
|
970
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
971
|
+
return true;
|
|
972
|
+
}
|
|
973
|
+
return slotName === "";
|
|
974
|
+
};
|
|
769
975
|
var nullifyVNodeRefs = (vNode) => {
|
|
770
976
|
{
|
|
771
977
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -777,6 +983,7 @@ var insertBefore = (parent, newNode, reference) => {
|
|
|
777
983
|
return inserted;
|
|
778
984
|
};
|
|
779
985
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
986
|
+
var _a, _b, _c, _d;
|
|
780
987
|
const hostElm = hostRef.$hostElement$;
|
|
781
988
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
782
989
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -803,7 +1010,75 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
803
1010
|
scopeId = hostElm["s-sc"];
|
|
804
1011
|
}
|
|
805
1012
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1013
|
+
{
|
|
1014
|
+
contentRef = hostElm["s-cr"];
|
|
1015
|
+
checkSlotFallbackVisibility = false;
|
|
1016
|
+
}
|
|
806
1017
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1018
|
+
{
|
|
1019
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1020
|
+
if (checkSlotRelocate) {
|
|
1021
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1022
|
+
for (const relocateData of relocateNodes) {
|
|
1023
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1024
|
+
if (!nodeToRelocate["s-ol"]) {
|
|
1025
|
+
const orgLocationNode = doc.createTextNode("");
|
|
1026
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1027
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
for (const relocateData of relocateNodes) {
|
|
1031
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1032
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1033
|
+
if (slotRefNode) {
|
|
1034
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1035
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1036
|
+
{
|
|
1037
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1038
|
+
while (orgLocationNode) {
|
|
1039
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1040
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
|
1041
|
+
refNode = refNode.nextSibling;
|
|
1042
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1043
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1044
|
+
}
|
|
1045
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1046
|
+
insertBeforeNode = refNode;
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1054
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1055
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1056
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1057
|
+
}
|
|
1058
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1059
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1060
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
|
1065
|
+
} else {
|
|
1066
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1067
|
+
if (isInitialLoad) {
|
|
1068
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1069
|
+
}
|
|
1070
|
+
nodeToRelocate.hidden = true;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
if (checkSlotFallbackVisibility) {
|
|
1076
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1077
|
+
}
|
|
1078
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1079
|
+
relocateNodes.length = 0;
|
|
1080
|
+
}
|
|
1081
|
+
contentRef = void 0;
|
|
807
1082
|
};
|
|
808
1083
|
|
|
809
1084
|
// src/runtime/update-component.ts
|
|
@@ -842,6 +1117,9 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
842
1117
|
hostRef.$queuedListeners$ = void 0;
|
|
843
1118
|
}
|
|
844
1119
|
}
|
|
1120
|
+
{
|
|
1121
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1122
|
+
}
|
|
845
1123
|
}
|
|
846
1124
|
endSchedule();
|
|
847
1125
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -906,7 +1184,11 @@ var postUpdateComponent = (hostRef) => {
|
|
|
906
1184
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
907
1185
|
const elm = hostRef.$hostElement$;
|
|
908
1186
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1187
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
909
1188
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1189
|
+
{
|
|
1190
|
+
safeCall(instance, "componentDidRender");
|
|
1191
|
+
}
|
|
910
1192
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
911
1193
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
912
1194
|
{
|
|
@@ -1123,6 +1405,12 @@ var connectedCallback = (elm) => {
|
|
|
1123
1405
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1124
1406
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1125
1407
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1408
|
+
{
|
|
1409
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1410
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1411
|
+
setContentReference(elm);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1126
1414
|
{
|
|
1127
1415
|
let ancestorComponent = elm;
|
|
1128
1416
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
@@ -1155,6 +1443,13 @@ var connectedCallback = (elm) => {
|
|
|
1155
1443
|
endConnected();
|
|
1156
1444
|
}
|
|
1157
1445
|
};
|
|
1446
|
+
var setContentReference = (elm) => {
|
|
1447
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
|
1448
|
+
""
|
|
1449
|
+
);
|
|
1450
|
+
contentRefElm["s-cn"] = true;
|
|
1451
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1452
|
+
};
|
|
1158
1453
|
var disconnectInstance = (instance) => {
|
|
1159
1454
|
{
|
|
1160
1455
|
safeCall(instance, "disconnectedCallback");
|
|
@@ -1340,6 +1635,7 @@ exports.Fragment = Fragment;
|
|
|
1340
1635
|
exports.Host = Host;
|
|
1341
1636
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1342
1637
|
exports.createEvent = createEvent;
|
|
1638
|
+
exports.getElement = getElement;
|
|
1343
1639
|
exports.h = h;
|
|
1344
1640
|
exports.promiseResolve = promiseResolve;
|
|
1345
1641
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('@everymatrix/general-styling-wrapper');
|
|
8
|
-
require('@everymatrix/casino-engagement-suite-progress-bar');
|
|
5
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-1b738bb2.js');
|
|
6
|
+
require('./index-16d5d7c3.js');
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-16d5d7c3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["casino-engagement-suite-
|
|
11
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_3.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"leaderboardsInit":[16],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isActionJoinPending":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -7,6 +7,19 @@
|
|
|
7
7
|
"version": "4.20.0",
|
|
8
8
|
"typescriptVersion": "5.5.3"
|
|
9
9
|
},
|
|
10
|
-
"collections": [
|
|
10
|
+
"collections": [
|
|
11
|
+
{
|
|
12
|
+
"name": "@everymatrix/casino-engagement-suite-progress-bar",
|
|
13
|
+
"tags": [
|
|
14
|
+
"casino-engagement-suite-progress-bar"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "@everymatrix/general-styling-wrapper",
|
|
19
|
+
"tags": [
|
|
20
|
+
"general-styling-wrapper"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
11
24
|
"bundles": []
|
|
12
25
|
}
|
|
@@ -9,8 +9,8 @@ import { CloseBar } from "../../shared/renderBar";
|
|
|
9
9
|
import { addSeconds, formatDate, getDifference, getProgress } from "../../utils/util.date";
|
|
10
10
|
import { leaderboardsAdapter, tournamentAdapter } from "../../utils/api.apdater";
|
|
11
11
|
import "../../../../../../svelte/general-animation-loading/es2015/general-animation-loading";
|
|
12
|
-
import "
|
|
13
|
-
import "
|
|
12
|
+
import "../../../../../general-styling-wrapper/dist/types/index";
|
|
13
|
+
import "../../../../../casino-engagement-suite-progress-bar/dist/types/index";
|
|
14
14
|
export class CasinoEngagementSuiteTournament {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.onClickConfirmJoin = () => {
|