@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.
Files changed (26) hide show
  1. package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
  2. package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
  3. package/dist/casino-engagement-suite-tournament/p-0f4e94ab.entry.js +1 -0
  4. package/dist/casino-engagement-suite-tournament/p-1bf11325.js +2 -0
  5. package/dist/casino-engagement-suite-tournament/p-5df3ac81.js +1 -0
  6. package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +148 -0
  7. package/dist/cjs/{casino-engagement-suite-tournament-d16da103.js → casino-engagement-suite-tournament-1b738bb2.js} +5 -7
  8. package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
  9. package/dist/cjs/{index-192fed5a.js → index-16d5d7c3.js} +307 -11
  10. package/dist/cjs/index.cjs.js +2 -4
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/collection/collection-manifest.json +14 -1
  13. package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +2 -2
  14. package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +142 -0
  15. package/dist/esm/{casino-engagement-suite-tournament-af4ed1fe.js → casino-engagement-suite-tournament-d8471680.js} +5 -7
  16. package/dist/esm/casino-engagement-suite-tournament.js +3 -3
  17. package/dist/esm/{index-c8be0c5b.js → index-3962add4.js} +307 -12
  18. package/dist/esm/index.js +2 -4
  19. package/dist/esm/loader.js +3 -3
  20. package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +2 -2
  21. package/package.json +1 -1
  22. package/dist/casino-engagement-suite-tournament/p-5e83c304.entry.js +0 -1
  23. package/dist/casino-engagement-suite-tournament/p-9996e3fd.js +0 -1
  24. package/dist/casino-engagement-suite-tournament/p-d5ef82db.js +0 -2
  25. package/dist/cjs/casino-engagement-suite-tournament.cjs.entry.js +0 -12
  26. package/dist/esm/casino-engagement-suite-tournament.entry.js +0 -4
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-tournament';
2
- const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, 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: false, 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: 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
@@ -49,10 +49,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
49
49
  }
50
50
  switch(bundleId) {
51
51
 
52
- case 'casino-engagement-suite-tournament':
52
+ case 'casino-engagement-suite-progress-bar_3':
53
53
  return import(
54
54
  /* webpackMode: "lazy" */
55
- './casino-engagement-suite-tournament.entry.js').then(processMod, consoleError);
55
+ './casino-engagement-suite-progress-bar_3.entry.js').then(processMod, consoleError);
56
56
  }
57
57
  }
58
58
  return import(
@@ -227,6 +227,7 @@ var uniqueTime = (key, measureText) => {
227
227
  var h = (nodeName, vnodeData, ...children) => {
228
228
  let child = null;
229
229
  let key = null;
230
+ let slotName = null;
230
231
  let simple = false;
231
232
  let lastSimple = false;
232
233
  const vNodeChildren = [];
@@ -253,6 +254,9 @@ var h = (nodeName, vnodeData, ...children) => {
253
254
  if (vnodeData.key) {
254
255
  key = vnodeData.key;
255
256
  }
257
+ if (vnodeData.name) {
258
+ slotName = vnodeData.name;
259
+ }
256
260
  {
257
261
  const classData = vnodeData.className || vnodeData.class;
258
262
  if (classData) {
@@ -275,6 +279,9 @@ var h = (nodeName, vnodeData, ...children) => {
275
279
  {
276
280
  vnode.$key$ = key;
277
281
  }
282
+ {
283
+ vnode.$name$ = slotName;
284
+ }
278
285
  return vnode;
279
286
  };
280
287
  var newVNode = (tag, text) => {
@@ -291,6 +298,9 @@ var newVNode = (tag, text) => {
291
298
  {
292
299
  vnode.$key$ = null;
293
300
  }
301
+ {
302
+ vnode.$name$ = null;
303
+ }
294
304
  return vnode;
295
305
  };
296
306
  var Host = {};
@@ -327,6 +337,12 @@ var convertToPrivate = (node) => {
327
337
  };
328
338
  var parsePropertyValue = (propValue, propType) => {
329
339
  if (propValue != null && !isComplexType(propValue)) {
340
+ if (propType & 4 /* Boolean */) {
341
+ return propValue === "false" ? false : propValue === "" || !!propValue;
342
+ }
343
+ if (propType & 2 /* Number */) {
344
+ return parseFloat(propValue);
345
+ }
330
346
  if (propType & 1 /* String */) {
331
347
  return String(propValue);
332
348
  }
@@ -561,16 +577,41 @@ function sortedAttrNames(attrNames) {
561
577
 
562
578
  // src/runtime/vdom/vdom-render.ts
563
579
  var scopeId;
580
+ var contentRef;
564
581
  var hostTagName;
565
582
  var useNativeShadowDom = false;
583
+ var checkSlotFallbackVisibility = false;
584
+ var checkSlotRelocate = false;
566
585
  var isSvgMode = false;
567
586
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
587
+ var _a;
568
588
  const newVNode2 = newParentVNode.$children$[childIndex];
569
589
  let i2 = 0;
570
590
  let elm;
571
591
  let childNode;
592
+ let oldVNode;
593
+ if (!useNativeShadowDom) {
594
+ checkSlotRelocate = true;
595
+ if (newVNode2.$tag$ === "slot") {
596
+ if (scopeId) {
597
+ parentElm.classList.add(scopeId + "-s");
598
+ }
599
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
600
+ // slot element has fallback content
601
+ // still create an element that "mocks" the slot element
602
+ 2 /* isSlotFallback */
603
+ ) : (
604
+ // slot element does not have fallback content
605
+ // create an html comment we'll use to always reference
606
+ // where actual slot content should sit next to
607
+ 1 /* isSlotReference */
608
+ );
609
+ }
610
+ }
572
611
  if (newVNode2.$text$ !== null) {
573
612
  elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
613
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
614
+ elm = newVNode2.$elm$ = doc.createTextNode("");
574
615
  } else {
575
616
  elm = newVNode2.$elm$ = doc.createElement(
576
617
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
@@ -585,7 +626,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
585
626
  }
586
627
  if (newVNode2.$children$) {
587
628
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
588
- childNode = createElm(oldParentVNode, newVNode2, i2);
629
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
589
630
  if (childNode) {
590
631
  elm.appendChild(childNode);
591
632
  }
@@ -593,20 +634,60 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
593
634
  }
594
635
  }
595
636
  elm["s-hn"] = hostTagName;
637
+ {
638
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
639
+ elm["s-sr"] = true;
640
+ elm["s-cr"] = contentRef;
641
+ elm["s-sn"] = newVNode2.$name$ || "";
642
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
643
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
644
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
645
+ {
646
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
647
+ }
648
+ }
649
+ }
650
+ }
596
651
  return elm;
597
652
  };
653
+ var putBackInOriginalLocation = (parentElm, recursive) => {
654
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
655
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
656
+ if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
657
+ let node = parentElm;
658
+ while (node = node.nextSibling) {
659
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
660
+ oldSlotChildNodes.push(node);
661
+ }
662
+ }
663
+ }
664
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
665
+ const childNode = oldSlotChildNodes[i2];
666
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
667
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
668
+ childNode["s-ol"].remove();
669
+ childNode["s-ol"] = void 0;
670
+ childNode["s-sh"] = void 0;
671
+ checkSlotRelocate = true;
672
+ }
673
+ if (recursive) {
674
+ putBackInOriginalLocation(childNode, recursive);
675
+ }
676
+ }
677
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
678
+ };
598
679
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
599
- let containerElm = parentElm;
680
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
600
681
  let childNode;
601
682
  if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
602
683
  containerElm = containerElm.shadowRoot;
603
684
  }
604
685
  for (; startIdx <= endIdx; ++startIdx) {
605
686
  if (vnodes[startIdx]) {
606
- childNode = createElm(null, parentVNode, startIdx);
687
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
607
688
  if (childNode) {
608
689
  vnodes[startIdx].$elm$ = childNode;
609
- insertBefore(containerElm, childNode, before);
690
+ insertBefore(containerElm, childNode, referenceNode(before) );
610
691
  }
611
692
  }
612
693
  }
@@ -618,6 +699,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
618
699
  const elm = vnode.$elm$;
619
700
  nullifyVNodeRefs(vnode);
620
701
  if (elm) {
702
+ {
703
+ checkSlotFallbackVisibility = true;
704
+ if (elm["s-ol"]) {
705
+ elm["s-ol"].remove();
706
+ } else {
707
+ putBackInOriginalLocation(elm, true);
708
+ }
709
+ }
621
710
  elm.remove();
622
711
  }
623
712
  }
@@ -654,11 +743,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
654
743
  oldEndVnode = oldCh[--oldEndIdx];
655
744
  newEndVnode = newCh[--newEndIdx];
656
745
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
746
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
747
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
748
+ }
657
749
  patch(oldStartVnode, newEndVnode, isInitialRender);
658
750
  insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
659
751
  oldStartVnode = oldCh[++oldStartIdx];
660
752
  newEndVnode = newCh[--newEndIdx];
661
753
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
754
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
755
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
756
+ }
662
757
  patch(oldEndVnode, newStartVnode, isInitialRender);
663
758
  insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
664
759
  oldEndVnode = oldCh[--oldEndIdx];
@@ -676,7 +771,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
676
771
  if (idxInOld >= 0) {
677
772
  elmToMove = oldCh[idxInOld];
678
773
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
679
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
774
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
680
775
  } else {
681
776
  patch(elmToMove, newStartVnode, isInitialRender);
682
777
  oldCh[idxInOld] = void 0;
@@ -684,12 +779,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
684
779
  }
685
780
  newStartVnode = newCh[++newStartIdx];
686
781
  } else {
687
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
782
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
688
783
  newStartVnode = newCh[++newStartIdx];
689
784
  }
690
785
  if (node) {
691
786
  {
692
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
787
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
693
788
  }
694
789
  }
695
790
  }
@@ -709,6 +804,18 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
709
804
  };
710
805
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
711
806
  if (leftVNode.$tag$ === rightVNode.$tag$) {
807
+ if (leftVNode.$tag$ === "slot") {
808
+ if (
809
+ // The component gets hydrated and no VDOM has been initialized.
810
+ // Here the comparison can't happen as $name$ property is not set for `leftNode`.
811
+ "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
812
+ // hydration comments to be removed
813
+ leftVNode.$elm$.nodeType !== 8
814
+ ) {
815
+ return false;
816
+ }
817
+ return leftVNode.$name$ === rightVNode.$name$;
818
+ }
712
819
  if (!isInitialRender) {
713
820
  return leftVNode.$key$ === rightVNode.$key$;
714
821
  }
@@ -716,14 +823,20 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
716
823
  }
717
824
  return false;
718
825
  };
826
+ var referenceNode = (node) => {
827
+ return node && node["s-ol"] || node;
828
+ };
829
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
719
830
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
720
831
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
721
832
  const oldChildren = oldVNode.$children$;
722
833
  const newChildren = newVNode2.$children$;
834
+ const tag = newVNode2.$tag$;
723
835
  const text = newVNode2.$text$;
836
+ let defaultHolder;
724
837
  if (text === null) {
725
838
  {
726
- {
839
+ if (tag === "slot" && !useNativeShadowDom) ; else {
727
840
  updateElement(oldVNode, newVNode2, isSvgMode);
728
841
  }
729
842
  }
@@ -740,10 +853,103 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
740
853
  ) {
741
854
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
742
855
  }
856
+ } else if ((defaultHolder = elm["s-cr"])) {
857
+ defaultHolder.parentNode.textContent = text;
743
858
  } else if (oldVNode.$text$ !== text) {
744
859
  elm.data = text;
745
860
  }
746
861
  };
862
+ var updateFallbackSlotVisibility = (elm) => {
863
+ const childNodes = elm.childNodes;
864
+ for (const childNode of childNodes) {
865
+ if (childNode.nodeType === 1 /* ElementNode */) {
866
+ if (childNode["s-sr"]) {
867
+ const slotName = childNode["s-sn"];
868
+ childNode.hidden = false;
869
+ for (const siblingNode of childNodes) {
870
+ if (siblingNode !== childNode) {
871
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
872
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
873
+ childNode.hidden = true;
874
+ break;
875
+ }
876
+ } else {
877
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
878
+ childNode.hidden = true;
879
+ break;
880
+ }
881
+ }
882
+ }
883
+ }
884
+ }
885
+ updateFallbackSlotVisibility(childNode);
886
+ }
887
+ }
888
+ };
889
+ var relocateNodes = [];
890
+ var markSlotContentForRelocation = (elm) => {
891
+ let node;
892
+ let hostContentNodes;
893
+ let j;
894
+ for (const childNode of elm.childNodes) {
895
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
896
+ hostContentNodes = node.parentNode.childNodes;
897
+ const slotName = childNode["s-sn"];
898
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
899
+ node = hostContentNodes[j];
900
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
901
+ if (isNodeLocatedInSlot(node, slotName)) {
902
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
903
+ checkSlotFallbackVisibility = true;
904
+ node["s-sn"] = node["s-sn"] || slotName;
905
+ if (relocateNodeData) {
906
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
907
+ relocateNodeData.$slotRefNode$ = childNode;
908
+ } else {
909
+ node["s-sh"] = childNode["s-hn"];
910
+ relocateNodes.push({
911
+ $slotRefNode$: childNode,
912
+ $nodeToRelocate$: node
913
+ });
914
+ }
915
+ if (node["s-sr"]) {
916
+ relocateNodes.map((relocateNode) => {
917
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
918
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
919
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
920
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
921
+ }
922
+ }
923
+ });
924
+ }
925
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
926
+ relocateNodes.push({
927
+ $nodeToRelocate$: node
928
+ });
929
+ }
930
+ }
931
+ }
932
+ }
933
+ if (childNode.nodeType === 1 /* ElementNode */) {
934
+ markSlotContentForRelocation(childNode);
935
+ }
936
+ }
937
+ };
938
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
939
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
940
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
941
+ return true;
942
+ }
943
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
944
+ return true;
945
+ }
946
+ return false;
947
+ }
948
+ if (nodeToRelocate["s-sn"] === slotName) {
949
+ return true;
950
+ }
951
+ return slotName === "";
952
+ };
747
953
  var nullifyVNodeRefs = (vNode) => {
748
954
  {
749
955
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -755,6 +961,7 @@ var insertBefore = (parent, newNode, reference) => {
755
961
  return inserted;
756
962
  };
757
963
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
964
+ var _a, _b, _c, _d;
758
965
  const hostElm = hostRef.$hostElement$;
759
966
  const cmpMeta = hostRef.$cmpMeta$;
760
967
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -781,7 +988,75 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
781
988
  scopeId = hostElm["s-sc"];
782
989
  }
783
990
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
991
+ {
992
+ contentRef = hostElm["s-cr"];
993
+ checkSlotFallbackVisibility = false;
994
+ }
784
995
  patch(oldVNode, rootVnode, isInitialLoad);
996
+ {
997
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
998
+ if (checkSlotRelocate) {
999
+ markSlotContentForRelocation(rootVnode.$elm$);
1000
+ for (const relocateData of relocateNodes) {
1001
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1002
+ if (!nodeToRelocate["s-ol"]) {
1003
+ const orgLocationNode = doc.createTextNode("");
1004
+ orgLocationNode["s-nr"] = nodeToRelocate;
1005
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1006
+ }
1007
+ }
1008
+ for (const relocateData of relocateNodes) {
1009
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1010
+ const slotRefNode = relocateData.$slotRefNode$;
1011
+ if (slotRefNode) {
1012
+ const parentNodeRef = slotRefNode.parentNode;
1013
+ let insertBeforeNode = slotRefNode.nextSibling;
1014
+ {
1015
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1016
+ while (orgLocationNode) {
1017
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1018
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1019
+ refNode = refNode.nextSibling;
1020
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1021
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
1022
+ }
1023
+ if (!refNode || !refNode["s-nr"]) {
1024
+ insertBeforeNode = refNode;
1025
+ break;
1026
+ }
1027
+ }
1028
+ orgLocationNode = orgLocationNode.previousSibling;
1029
+ }
1030
+ }
1031
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1032
+ if (nodeToRelocate !== insertBeforeNode) {
1033
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1034
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1035
+ }
1036
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1037
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1038
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1039
+ }
1040
+ }
1041
+ }
1042
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1043
+ } else {
1044
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1045
+ if (isInitialLoad) {
1046
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
1047
+ }
1048
+ nodeToRelocate.hidden = true;
1049
+ }
1050
+ }
1051
+ }
1052
+ }
1053
+ if (checkSlotFallbackVisibility) {
1054
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1055
+ }
1056
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1057
+ relocateNodes.length = 0;
1058
+ }
1059
+ contentRef = void 0;
785
1060
  };
786
1061
 
787
1062
  // src/runtime/update-component.ts
@@ -820,6 +1095,9 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
820
1095
  hostRef.$queuedListeners$ = void 0;
821
1096
  }
822
1097
  }
1098
+ {
1099
+ maybePromise = safeCall(instance, "componentWillLoad");
1100
+ }
823
1101
  }
824
1102
  endSchedule();
825
1103
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -884,7 +1162,11 @@ var postUpdateComponent = (hostRef) => {
884
1162
  const tagName = hostRef.$cmpMeta$.$tagName$;
885
1163
  const elm = hostRef.$hostElement$;
886
1164
  const endPostUpdate = createTime("postUpdate", tagName);
1165
+ const instance = hostRef.$lazyInstance$ ;
887
1166
  const ancestorComponent = hostRef.$ancestorComponent$;
1167
+ {
1168
+ safeCall(instance, "componentDidRender");
1169
+ }
888
1170
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
889
1171
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
890
1172
  {
@@ -1101,6 +1383,12 @@ var connectedCallback = (elm) => {
1101
1383
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1102
1384
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1103
1385
  hostRef.$flags$ |= 1 /* hasConnected */;
1386
+ {
1387
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1388
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1389
+ setContentReference(elm);
1390
+ }
1391
+ }
1104
1392
  {
1105
1393
  let ancestorComponent = elm;
1106
1394
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
@@ -1133,6 +1421,13 @@ var connectedCallback = (elm) => {
1133
1421
  endConnected();
1134
1422
  }
1135
1423
  };
1424
+ var setContentReference = (elm) => {
1425
+ const contentRefElm = elm["s-cr"] = doc.createComment(
1426
+ ""
1427
+ );
1428
+ contentRefElm["s-cn"] = true;
1429
+ insertBefore(elm, contentRefElm, elm.firstChild);
1430
+ };
1136
1431
  var disconnectInstance = (instance) => {
1137
1432
  {
1138
1433
  safeCall(instance, "disconnectedCallback");
@@ -1314,4 +1609,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1314
1609
  // src/runtime/nonce.ts
1315
1610
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1316
1611
 
1317
- export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
1612
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,2 @@
1
- export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-af4ed1fe.js';
2
- import './index-c8be0c5b.js';
3
- import '@everymatrix/general-styling-wrapper';
4
- import '@everymatrix/casino-engagement-suite-progress-bar';
1
+ export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-d8471680.js';
2
+ import './index-3962add4.js';
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-c8be0c5b.js';
2
- export { s as setNonce } from './index-c8be0c5b.js';
1
+ import { b as bootstrapLazy } from './index-3962add4.js';
2
+ export { s as setNonce } from './index-3962add4.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["casino-engagement-suite-tournament",[[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"]]]]]], options);
8
+ return bootstrapLazy([["casino-engagement-suite-progress-bar_3",[[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);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Tab } from '../../utils/translations';
3
3
  import { Tournament, Leaderboard, LeaderboardPage, TournamentApi, Dialog } from '../../utils/types';
4
4
  import "../../../../../../dist/packages/svelte/general-animation-loading/es2015/general-animation-loading";
5
- import "@everymatrix/general-styling-wrapper";
6
- import "@everymatrix/casino-engagement-suite-progress-bar";
5
+ import "../../../../../../dist/packages/stencil/general-styling-wrapper/dist/types/index";
6
+ import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
7
7
  export declare class CasinoEngagementSuiteTournament {
8
8
  /**
9
9
  * Language
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-tournament",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- export{C as casino_engagement_suite_tournament}from"./p-9996e3fd.js";import"./p-d5ef82db.js";import"@everymatrix/general-styling-wrapper";import"@everymatrix/casino-engagement-suite-progress-bar";
@@ -1 +0,0 @@
1
- import{h as n,r as t,c as e,H as i,F as s}from"./p-d5ef82db.js";import"@everymatrix/general-styling-wrapper";import"@everymatrix/casino-engagement-suite-progress-bar";function r(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(n);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(e[i[s]]=n[i[s]])}return e}var o,a;"function"==typeof SuppressedError&&SuppressedError,function(n){n.Info="Info",n.Leaderboard="Leaderboard",n.Games="Games"}(o||(o={})),function(n){n.Starts="Starts",n.Ends="Ends"}(a||(a={}));const l=(n,t)=>(Object.keys(t).map((e=>{n=n.replace(`{${e}}`,t[e])})),n),d=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),a),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Prizes:"Rewards",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},JoinDialog:{Tile:"Congratulations!",Description:"You have unlocked <span>{tournamentName}</span>! <br />Would you like to join?",ButtonYes:"Join",ButtonNo:"Not interested"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward."}),c=(...n)=>{let t=[];return n.map((n=>{switch(typeof n){case"string":t.push(n);break;case"object":Object.keys(n).map((e=>{n[e]&&t.push(e)}))}})),t.join(" ")};var h,p,u;!function(n){n.Confirm="Confirm",n.List="List",n.Item="Item"}(h||(h={})),function(n){n.Running="Running",n.Unstarted="Unstarted",n.Closed="Closed",n.Closing="Closing"}(p||(p={})),function(n){n.Unjoin="Unjoin",n.Tip="Tip"}(u||(u={}));const g=t=>{var{statedClasses:e,innerHTML:i}=t,s=r(t,["statedClasses","innerHTML"]);const{isHollow:o,isPending:a}=e;return n("button",Object.assign({class:c("GradientRoundedButton","GradientRounded",{Hollow:o||!1,Pending:a||!1})},s),n("span",null,i))},m=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),f=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),b=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),v=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),x=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),y=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/reward.svg"}),w=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),C=t=>{const{left:e,middle:i,right:s}=t,r={left:e,middle:i,right:s};return n("div",{class:"WrapperBar"},Object.keys(r).map((t=>{return n("div",{class:"WrapperBar"+(e=t,e.split("").map(((n,t)=>0===t?n.toUpperCase():n)).join(""))},r[t]||"");var e})))};function T(n){return n.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function k(n,t){return(100*((new Date).getTime()-n.getTime())/(t.getTime()-n.getTime())).toFixed(0)}const L=n=>{const t=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],e={};return Object.keys(n).map((i=>{const s=n[i];e[i]="games"===i?s.items:t.includes(i)?new Date(s):s})),e};var j,P={};(function(n){var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(n,e,i)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,l=(n,t)=>{for(var e in t||(t={}))r.call(t,e)&&a(n,e,t[e]);if(s)for(var e of s(t))o.call(t,e)&&a(n,e,t[e]);return n},d=(n,t)=>e(n,i(t)),c=(n,t,e)=>a(n,"symbol"!=typeof t?t+"":t,e);function h(){}function p(n){return n()}function u(){return Object.create(null)}function g(n){n.forEach(p)}function m(n){return"function"==typeof n}function f(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function b(n,t,e){n.insertBefore(t,e||null)}function v(n){n.parentNode&&n.parentNode.removeChild(n)}function x(n){return document.createElement(n)}let y;function w(n){y=n}Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});const C=[],T=[];let k=[];const L=[],j=Promise.resolve();let P=!1;function O(n){k.push(n)}const F=new Set;let z=0;function $(){if(0!==z)return;const n=y;do{try{for(;z<C.length;){const n=C[z];z++,w(n),M(n.$$)}}catch(n){throw C.length=0,z=0,n}for(w(null),C.length=0,z=0;T.length;)T.pop()();for(let n=0;n<k.length;n+=1){const t=k[n];F.has(t)||(F.add(t),t())}k.length=0}while(C.length);for(;L.length;)L.pop()();P=!1,F.clear(),w(n)}function M(n){if(null!==n.fragment){n.update(),g(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(O)}}const R=new Set;function I(n,t,e,i,s,r,o=null,a=[-1]){const l=y;w(n);const d=n.$$={fragment:null,ctx:[],props:r,update:h,not_equal:s,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:u(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(d.root);let c=!1;if(d.ctx=e?e(n,t.props||{},((t,e,...i)=>{const r=i.length?i[0]:e;return d.ctx&&s(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),c&&function(n,t){-1===n.$$.dirty[0]&&(C.push(n),P||(P=!0,j.then($)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}(n,t)),e})):[],d.update(),c=!0,g(d.before_update),d.fragment=!!i&&i(d.ctx),t.target){if(t.hydrate){const n=function(n){return Array.from(n.childNodes)}(t.target);d.fragment&&d.fragment.l(n),n.forEach(v)}else d.fragment&&d.fragment.c();t.intro&&function(n){n&&n.i&&(R.delete(n),n.i(void 0))}(n.$$.fragment),function(n,t,e){const{fragment:i,after_update:s}=n.$$;i&&i.m(t,e),O((()=>{const t=n.$$.on_mount.map(p).filter(m);n.$$.on_destroy?n.$$.on_destroy.push(...t):g(t),n.$$.on_mount=[]})),s.forEach(O)}(n,t.target,t.anchor),$()}w(l)}let H;function D(n,t,e,i){var s;const r=null==(s=e[n])?void 0:s.type;if(t="Boolean"===r&&"boolean"!=typeof t?null!=t:t,!i||!e[n])return t;if("toAttribute"===i)switch(r){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(n,t,e){super(),c(this,"$$ctor"),c(this,"$$s"),c(this,"$$c"),c(this,"$$cn",!1),c(this,"$$d",{}),c(this,"$$r",!1),c(this,"$$p_d",{}),c(this,"$$l",{}),c(this,"$$l_u",new Map),this.$$ctor=n,this.$$s=t,e&&this.attachShadow({mode:"open"})}addEventListener(n,t,e){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(t),this.$$c){const e=this.$$c.$on(n,t);this.$$l_u.set(t,e)}super.addEventListener(n,t,e)}removeEventListener(n,t,e){if(super.removeEventListener(n,t,e),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}connectedCallback(){return n=this,t=function*(){if(this.$$cn=!0,!this.$$c){let n=function(n){return()=>{let t;return{c:function(){t=x("slot"),"default"!==n&&function(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}(t,"name",n)},m:function(n,e){b(n,t,e)},d:function(n){n&&v(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},e=function(n){const t={};return n.childNodes.forEach((n=>{t[n.slot||"default"]=!0})),t}(this);for(const i of this.$$s)i in e&&(t[i]=[n(i)]);for(const n of this.attributes){const t=this.$$g_p(n.name);t in this.$$d||(this.$$d[t]=D(t,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&void 0!==this[n]&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:d(l({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const t=D(n,this.$$d[n],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,t)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const n in this.$$l)for(const t of this.$$l[n]){const e=this.$$c.$on(n,t);this.$$l_u.set(t,e)}this.$$l={}}},new Promise(((e,i)=>{var s=n=>{try{o(t.next(n))}catch(n){i(n)}},r=n=>{try{o(t.throw(n))}catch(n){i(n)}},o=n=>n.done?e(n.value):Promise.resolve(n.value).then(s,r);o((t=t.apply(n,null)).next())}));var n,t}attributeChangedCallback(n,t,e){var i;this.$$r||(n=this.$$g_p(n),this.$$d[n]=D(n,e,this.$$p_d,"toProp"),null==(i=this.$$c)||i.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(n){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===n||!this.$$p_d[t].attribute&&t.toLowerCase()===n))||n}});class S{constructor(){c(this,"$$"),c(this,"$$set")}$destroy(){(function(n,t){const e=n.$$;null!==e.fragment&&(function(n){const t=[],e=[];k.forEach((i=>-1===n.indexOf(i)?t.push(i):e.push(i))),e.forEach((n=>n())),k=t}(e.after_update),g(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])})(this,1),this.$destroy=h}$on(n,t){if(!m(t))return h;const e=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return e.push(t),()=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}$set(n){this.$$set&&0!==Object.keys(n).length&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function U(n){!function(n,t,e){const i=function(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}(n);if(!i.getElementById(t)){const n=x("style");n.id=t,n.textContent=e,function(n,t){!function(n,t){n.appendChild(t)}(n.head||n,t)}(i,n)}}(n,"svelte-g6m3er",".LoaderContainer.svelte-g6m3er.svelte-g6m3er{display:flex;justify-content:center}.lds-ellipsis.svelte-g6m3er.svelte-g6m3er{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(1){left:8px;animation:svelte-g6m3er-lds-ellipsis1 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(2){left:8px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(3){left:32px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(4){left:56px;animation:svelte-g6m3er-lds-ellipsis3 0.6s infinite}@keyframes svelte-g6m3er-lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svelte-g6m3er-lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes svelte-g6m3er-lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function B(n){let t;return{c(){t=x("div"),t.innerHTML='<section class="LoaderContainer svelte-g6m3er" part="LoaderContainer"><div class="lds-ellipsis svelte-g6m3er"><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div></div></section>'},m(e,i){b(e,t,i),n[3](t)},p:h,i:h,o:h,d(e){e&&v(t),n[3](null)}}}function E(n,t,e){let i,{clientstyling:s=""}=t,{clientstylingurl:r=""}=t;return n.$$set=n=>{"clientstyling"in n&&e(1,s=n.clientstyling),"clientstylingurl"in n&&e(2,r=n.clientstylingurl)},n.$$.update=()=>{3&n.$$.dirty&&s&&i&&(()=>{let n=document.createElement("style");n.innerHTML=s,i.appendChild(n)})(),5&n.$$.dirty&&r&&i&&(()=>{let n=new URL(r),t=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{t.innerHTML=n,setTimeout((()=>{i.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[i,s,r,function(n){T[n?"unshift":"push"]((()=>{i=n,e(0,i)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class N extends S{constructor(n){super(),I(this,n,E,B,f,{clientstyling:1,clientstylingurl:2},U)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(n){this.$$set({clientstyling:n}),$()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),$()}}!function(n,t,e){let i=class extends H{constructor(){super(n,e,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((n=>(t[n].attribute||n).toLowerCase()))}};Object.keys(t).forEach((n=>{Object.defineProperty(i.prototype,n,{get(){return this.$$c&&n in this.$$c?this.$$c[n]:this.$$d[n]},set(e){var i;e=D(n,e,t),this.$$d[n]=e,null==(i=this.$$c)||i.$set({[n]:e})}})})),[].forEach((n=>{Object.defineProperty(i.prototype,n,{get(){var t;return null==(t=this.$$c)?void 0:t[n]}})})),n.element=i}(N,{clientstyling:{},clientstylingurl:{}},[]),n.default=N})(P),"undefined"!=typeof window&&(customElements.define=(j=customElements.define,function(...n){try{return j.apply(this,n)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}),Promise.resolve().then((()=>P)).then((({default:n})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",n.element)})));const O=class{constructor(n){t(this,n),this.close=e(this,"close",7),this.onClickConfirmJoin=()=>{this.actionJoin(this.tournamentItem),this.nextPage=h.List},this.onClickConfirmUnjoin=()=>{this.close.emit()},this.onClickDialogUnjoin=()=>{this.actionJoin(this.dialog.data),this.closeDialog()},this.onClickDialogJoin=()=>{this.closeDialog()},this.onClickBarInLayout=()=>{this.close.emit()},this.onClickBarInLayoutDialog=()=>{this.closeDialog()},this.onClickShowInfo=()=>{this.isShowInfo=!this.isShowInfo},this.onClickBarTip=()=>{this.openDialog(u.Tip)},this.onClickBarBack=()=>{this.setPage(h.List)},this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.leaderboardsInit=void 0,this.tab=o.Info,this.locale=d,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isActionJoinPending=!1,this.isDialogOpen=!1,this.isShowInfo=!1,this.page=h.List,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0},this.time=0}setTimeInterval(){this.timeHolder=setInterval((()=>{this.tournamentList||this.tournamentItem?this.time+=1:this.time=0}),1e3)}updateTournamentListByItem(n){this.tournamentList=this.tournamentList.map((t=>t.id===n.id?L(n):t))}handleEvent(n){const t=n.data,{type:e}=t,i=r(t,["type"]);switch(e){case"ShowLeaderboardRewardModal":{const{tournament:n}=i;this.setPage(h.Confirm,{tournament:L(n)}),postMessage({type:"BarLeaderboardsClick"});break}case"UpdateTournamentsItemRes":{const n=L(i.data.item);this.tournamentItem=n,this.updateTournamentListByItem(n);break}case"UpdateLeaderboardsRes":this.leaderboards=(n=>{let{item:t,items:e}=n;return t?e.map((n=>t&&t.userID===n.userID?Object.assign(Object.assign({},n),{isMe:!0}):n)):e})(i.data);break;case"JoinTournamentRes":case"UnjoinTournamentRes":const{success:n}=i;if(n)switch(this.tournamentItem=Object.assign(Object.assign({},this.tournamentItem),{playerEnrolled:!this.tournamentItem.playerEnrolled}),this.page){case h.Item:break;case h.List:this.updateTournamentListByItem(this.tournamentItem)}this.nextPage&&(this.setPage(this.nextPage),this.nextPage=void 0),this.isActionJoinPending=!1}}get messageSender(){return{JoinTournamentReq:n=>{var t;return window.postMessage({type:"JoinTournamentReq",bonusCode:null===(t=n.wallets[0])||void 0===t?void 0:t.code})},UnjoinTournamentReq:n=>window.postMessage({type:"UnjoinTournamentReq",id:n.id}),UpdateTournamentsItemReq:n=>window.postMessage({type:"UpdateTournamentsItemReq",id:n.id}),UpdateLeaderboardsReq:n=>window.postMessage({type:"UpdateLeaderboardsReq",id:n.id})}}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}actionJoin(n){if(!this.isActionJoinPending){this.isActionJoinPending=!0;try{n.playerEnrolled?this.messageSender.UnjoinTournamentReq(n):this.messageSender.JoinTournamentReq(n)}catch(n){return void console.log("error",n)}}}isTournamentClosed(n){return[p.Closed,p.Closing].includes(n.state)}setPage(n,t){switch(n){case h.Confirm:case h.Item:this.tournamentItem=t.tournament,this.tournamentItem||this.messageSender.UpdateTournamentsItemReq(t.tournament),this.isTournamentClosed(this.tournamentItem)&&this.messageSender.UpdateLeaderboardsReq(this.tournamentItem)}this.tab=o.Info,this.page=n}renderPage(){switch(this.page){case h.Confirm:return this.renderPageConfirm();case h.Item:return this.renderPageLeaderboardItem();case h.List:return this.renderPageLeaderboardList()}}render(){return n(i,{key:"07ebdb6c71a03be84b430e18a80417323a9cd3cc"},n("general-styling-wrapper",{key:"ac0134009a6bfcdb4b79816138ea441a8415b953",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:d,translationUrl:this.translationUrl}),this.renderPage())}onClickListItemChangePage(n){this.setPage(h.Item,{tournament:n})}onClickItemJoin(n,t){t.stopPropagation(),n.playerEnrolled?this.openDialog(u.Unjoin,n):(this.actionJoin(n),this.tournamentItem=n)}onClickTab(n){switch(this.tab=n,n){case o.Leaderboard:this.leaderboards=void 0,this.messageSender.UpdateLeaderboardsReq(this.tournamentItem);break;case o.Games:this.messageSender.UpdateTournamentsItemReq(this.tournamentItem)}}renderPageLeaderboardList(){var t;if(!this.tournamentList)return this.tournamentList=null===(t=this.leaderboardsInit)||void 0===t?void 0:t.map((n=>L(n))),n("general-animation-loading",null);const{locale:e}=this;return this.tournamentList.length?this.renderLeaderboardContainer(n(s,null,n("div",{class:"Leaderboards Row"},this.tournamentList.map((t=>n("div",{class:c("LeaderboardsItem",t.playerEnrolled?" GradientRounded Hollow":""),onClick:this.onClickListItemChangePage.bind(this,t)},n("div",{class:"LeaderboardsItemContainer"},this.renderTitleContainer(t),this.renderTimeBar(t)))))))):n("div",{class:"NoLeaderboards Row"},n("div",null,e.NoLeaderboards),n("div",null,e.NoLeaderboardsTip))}renderPageConfirm(){if(!this.tournamentItem)return n("general-animation-loading",null);const t=this.tournamentItem.nameOrTitle,{locale:e}=this;return n("div",{class:"PageConfirmContainer"},n("div",{class:"GradientRounded Hollow PageConfirm"},n("div",null,w),n("div",{class:"Title"},e.JoinDialog.Tile),n("div",{class:"Description",innerHTML:l(e.JoinDialog.Description,{tournamentName:t})}),n("div",{class:"PageConfirmButtonsGroup"},n(g,{statedClasses:{isPending:this.isActionJoinPending},onClick:this.onClickConfirmJoin,innerHTML:e.JoinDialog.ButtonYes}),n(g,{statedClasses:{isPending:this.isActionJoinPending,isHollow:!0},onClick:this.onClickConfirmUnjoin,innerHTML:e.JoinDialog.ButtonNo}))))}renderPageLeaderboardItem(){return this.tournamentItem?this.renderLeaderboardContainer(n(s,null,this.renderTitleContainer(this.tournamentItem),this.renderTabs(),this.renderTabbedContent())):n("general-animation-loading",null)}renderDialogContent(){switch(this.dialog.type){case u.Unjoin:return this.renderDialogContentUnjoin();case u.Tip:return n("div",{class:"Tip"},this.locale.Tip)}}renderDialogContentUnjoin(){const{locale:t}=this;return n("div",{class:"DialogContentUnjoin"},n("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),n("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),n(g,{statedClasses:{isPending:this.isActionJoinPending},onClick:this.onClickDialogUnjoin,innerHTML:t.UnjoinDialog.ButtonYes}),n(g,{statedClasses:{isHollow:!0,isPending:this.isActionJoinPending},onClick:this.onClickDialogJoin,innerHTML:t.UnjoinDialog.ButtonNo}))}renderTitleContainer(t){const{locale:e}=this;return n("div",{class:"TitleContainer"},n("div",{class:"Title"},t.nameOrTitle),t.state!==p.Closed&&n("div",null,n(g,{statedClasses:{isHollow:t.playerEnrolled,isPending:this.isActionJoinPending},onClick:this.onClickItemJoin.bind(this,t),innerHTML:t.playerEnrolled?e.Unjoin:e.Join})))}renderTabbedContent(){switch(this.tab){case o.Info:return this.renderInfo();case o.Leaderboard:return this.renderLeaderboard();case o.Games:return this.renderGames()}}renderGames(){var t;return n("div",{class:"Games"},null===(t=this.tournamentItem.games)||void 0===t?void 0:t.map((t=>n("div",null,n("img",{src:t.defaultThumbnail,alt:""})))))}renderLeaderboard(){return this.leaderboards?this.leaderboards.length?n("table",{class:"Leaderboards"},this.leaderboards.map((t=>n("tr",{class:c({isMe:t.isMe})},n("td",{class:"LeaderboardRank"},n("span",null,t.rank)),n("td",{class:"LeaderboardName"},t.shortName),n("td",{class:"LeaderboardScore"},t.score),n("td",{class:"LeaderboardPrize"},t.prizeName))))):"":n("general-animation-loading",null)}renderTabs(){const{locale:t,tab:e}=this;return n("div",{class:"TabsContainer"},n("div",{class:"Tabs"},Object.keys(o).map((i=>n("div",{class:c({active:e===i}),onClick:this.onClickTab.bind(this,i)},t[i])))))}renderTimeBar(t){return n("section",{class:"TimeContainer"},n("div",{class:"Time"},t.playerEnrolled?n(s,null,n("div",null,function(n,t){const e=Math.abs(t.getTime()-n.getTime()),i=Math.floor(e/864e5),s=Math.floor(e%864e5/36e5),r=Math.floor(e%36e5/6e4);return`${String(i).padStart(2,"0")}d:${String(s).padStart(2,"0")}h:${String(r).padStart(2,"0")}m`}(function(n,t){const e=new Date(n);return e.setSeconds(e.getSeconds()+t),e}(t.startTime,this.time),t.endTime)),n("div",null,n(g,{statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${k(t.startTime,t.endTime)}%`}))):n(s,null,n("div",null,T(t.startTime)),n("div",null,T(t.endTime)))),n("casino-engagement-suite-progress-bar",{value:Number(k(t.startTime,t.endTime)),"hide-percent":!0}))}renderInfo(){var t,e;const{locale:i,tournamentItem:s,isShowInfo:r}=this;return n("div",{class:"InfoContainer"},this.renderTimeBar(s),n("section",{class:"ShowInfo",onClick:this.onClickShowInfo},n("p",null,n("span",null,r?v:b),n("span",null,i.LeaderboardDetails))),r&&n("section",{class:"Info"},n("div",null,s.description),n("div",{class:"Criterias"},n("div",null,i.ScoreCriteria,": ",n("span",null,s.scoreCriteria)),n("div",null,i.MinimumBetCriteria,": ",n("span",null,s.minBetCount))),n("div",{class:"TC"},n("a",{href:s.termsUrl,target:"_blank"},i.TC))),this.isTournamentClosed(this.tournamentItem)&&(null===(t=this.leaderboards)||void 0===t?void 0:t.find((n=>n.isMe)))&&n("section",{class:"ResultPrize",innerHTML:l(i.TipPrize,this.getResultPrize(null===(e=this.leaderboards)||void 0===e?void 0:e.find((n=>n.isMe))))}),n("section",{class:"Prizes"},n("div",{class:"PrizesHeader"},y,n("span",{class:"PrizesText"},i.Prizes)),s.prizes.map(((t,e)=>n("div",{class:"Prize"},e+1," ",i.Place,": ",n("span",{class:"PrizeText"},t.name))))))}getResultPrize(n){return{prize:n.prizeName,place:n.rank}}renderCloseBarInLayout(){const{left:t,middle:e}=this.getWrapperBarData();return n(C,{left:t,middle:e,right:n("span",{onClick:this.onClickBarInLayout},m)})}renderCloseBarInLayoutDialog(){return n(C,{right:n("span",{onClick:this.onClickBarInLayoutDialog},m)})}renderLeaderboardContainer(t){const{dialog:{isOpen:e}}=this;return n("div",{class:"Wrapper"},n("div",{class:c("WrapperContent",{faded:e})},this.renderCloseBarInLayout(),n("div",{class:"Root"},n("div",{class:"Main"},t))),n("div",{class:"WrapperUtil"},n("dialog",{open:e},n("div",null,this.renderCloseBarInLayoutDialog(),e&&this.renderDialogContent()))))}getWrapperBarData(){const{page:t,locale:e}=this;switch(t){case h.List:return{left:n("span",{onClick:this.onClickBarTip},f),middle:e.Leaderboards};case h.Item:return{left:n("span",{onClick:this.onClickBarBack},x),middle:""}}}openDialog(n,t){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,type:n,data:t})}closeDialog(){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1})}};O.style='.GradientRounded {\n display: block;\n background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);\n color: rgba(30, 22, 56, 1);\n \n position: relative;\n border-radius: 16px;\n\n &.Hollow {\n background: rgba(30, 22, 56, 1);\n color: #FFFFFF;\n &::before {\n content: "";\n position: absolute;\n inset: 0;\n border-radius: 15px;\n border: 1px solid transparent;\n background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n\n }\n}\n\n.GradientRoundedButton {\n border: none;\n padding: 7px;\n \n height: 32px;\n width: 100%;\n \n font-size: 14px;\n font-weight: 700;\n line-height: 17.07px;\n text-align: center;\n \n transition: .5s opacity;\n\n cursor: pointer;\n &.Pending {\n cursor: not-allowed;\n opacity: .3;\n }\n\n &.Hollow {\n \n span {\n background: -webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n}\n.Wrapper {\n height: 100%;\n position: relative;\n color: var(--emw--color-typography, #FFFFFF);\n display: flex;\n background-color: var(--emw--color-background, hsl(254, 44%, 15%));\n flex-direction: column;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.WrapperContent {\n padding-bottom: 20px;\n transition: 0.5s filter;\n}\n.WrapperContent.faded {\n filter: brightness(53.3333333333%);\n}\n\n.WrapperBar {\n display: flex;\n width: 100%;\n padding: 12px 8px 8px;\n}\n\n.WrapperBarLeft, .WrapperBarRight {\n cursor: pointer;\n}\n\n.WrapperBarMiddle {\n flex-grow: 1;\n text-align: center;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n}\n\n:host {\n display: block;\n font-size: 12px;\n font-family: Inter;\n}\n\n.Row {\n margin: 24px 0;\n padding: 0 20px;\n}\n\n.LeaderboardsItem {\n margin: 10px 0;\n border: 1px solid rgb(64, 57, 86);\n border-radius: 16px;\n}\n.LeaderboardsItem.Hollow {\n border-color: transparent;\n}\n\n.LeaderboardsItemContainer {\n padding-top: 16px;\n}\n\n.Info {\n margin: 24px 0;\n padding: 0 20px;\n}\n\n.TimeContainer {\n margin: 24px 0;\n padding: 0 20px;\n}\n.TimeContainer .Time {\n display: flex;\n justify-content: space-between;\n font-size: 11px;\n align-items: center;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n}\n.TimeContainer .Time button {\n font-size: 12px;\n height: 20px;\n padding: 0;\n}\n.TimeContainer .Time button::before {\n inset: inherit;\n border: 0;\n}\n\n.ShowInfo {\n margin: 24px 0;\n padding: 0 20px;\n cursor: pointer;\n color: rgb(102, 97, 120);\n}\n.ShowInfo p {\n display: flex;\n gap: 4px;\n}\n\n.TitleContainer {\n display: flex;\n justify-content: space-between;\n margin: 24px 0;\n padding: 0 20px;\n margin-top: 0;\n gap: 10px;\n font-family: Montserrat;\n}\n.TitleContainer .GradientRoundedButton {\n width: 120px;\n}\n\n.TabsContainer {\n margin: 24px 0;\n padding: 0 20px;\n margin: 0 20px;\n padding: 0;\n border-bottom: 1px solid #575757;\n}\n\n.Tabs {\n display: flex;\n justify-content: space-between;\n justify-content: start;\n font-size: 12px;\n margin-bottom: -1px;\n}\n.Tabs > div {\n padding: 10px;\n color: rgb(102, 97, 120);\n cursor: pointer;\n}\n.Tabs > div.active {\n color: var(--emw--color-typography, #FFF);\n border-bottom: 2px solid var(--emw--color-typography, #FFF);\n}\n\n.Title {\n font-size: 16px;\n font-weight: 700;\n line-height: 19.5px;\n text-align: left;\n word-break: break-word;\n}\n\n.TC {\n margin-top: 12px;\n}\n.TC a {\n color: rgb(89, 209, 255);\n}\n\n.Criterias {\n margin: 12px 0;\n}\n.Criterias span {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n.ResultPrize {\n margin: 24px 0;\n padding: 0 20px;\n}\n.ResultPrize span {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n.Prizes {\n margin: 24px 0;\n padding: 0 20px;\n}\n.Prizes .PrizesText {\n margin-left: 3px;\n font-weight: 600;\n}\n.Prizes .PrizesHeader {\n align-items: center;\n display: flex;\n}\n.Prizes .PrizesHeader img {\n width: 12px;\n}\n.Prizes .Prize {\n margin: 8px 0;\n}\n.Prizes .Prize .PrizeText {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n* {\n box-sizing: border-box;\n}\n\n.Leaderboards {\n width: 100%;\n text-align: center;\n border-collapse: collapse;\n}\n.Leaderboards td {\n opacity: 0.6;\n padding: 20px 5px;\n}\n.Leaderboards td:first-child {\n padding-left: 20px;\n}\n.Leaderboards td:last-child {\n padding-right: 20px;\n}\n.Leaderboards .LeaderboardName {\n color: var(--emw--color-typography, #FFF);\n opacity: 1;\n}\n.Leaderboards tr.isMe {\n background: rgba(0, 0, 0, 0.2);\n}\n.Leaderboards tr.isMe .LeaderboardRank span {\n padding: 0px 3px;\n opacity: 1;\n border: 1px solid var(--emw--color-primary, rgb(255, 214, 47));\n border-radius: 11px;\n}\n.Leaderboards tr.isMe td {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n}\n\n.Games {\n margin: 24px 0;\n padding: 0 20px;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-evenly;\n gap: 4px 7.25px;\n}\n.Games img {\n width: 60px;\n}\n\ndialog {\n position: absolute;\n top: 30px;\n width: 100%;\n height: 100%;\n background: transparent;\n border: 0;\n padding: 0;\n color: var(--emw--color-typography, #FFFFFF);\n}\ndialog > div {\n margin: 32px;\n border-radius: 8px;\n background: var(--emw--color-background, hsl(254, 44%, 15%));\n border: 1px solid hsl(254, 20%, 28%);\n align-items: center;\n}\n\n.DialogContentUnjoin {\n padding: 32px;\n padding-top: 10px;\n display: flex;\n gap: 10px;\n flex-direction: column;\n}\n\n.DialogContentUnjoinTitle {\n font-family: Montserrat;\n font-size: 20px;\n font-weight: 600;\n line-height: 24.38px;\n text-align: center;\n}\n\n.DialogContentUnjoinDescription {\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n margin-bottom: 30px;\n}\n\n.Tip {\n padding: 32px;\n padding-top: 10px;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n font-size: 14px;\n}\n\n.PageConfirmContainer {\n text-align: center;\n width: 80%;\n margin: 0 auto;\n}\n\n.PageConfirm {\n padding: 40px 32px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n.PageConfirm .Title {\n font-size: 20px;\n text-align: center;\n}\n.PageConfirm .Description {\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n font-weight: 400;\n}\n.PageConfirm .Description span {\n color: var(--emw--color-typography, #FFF);\n font-weight: 600;\n}\n\n.PageConfirmButtonsGroup {\n width: 150px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}';export{O as C}