@everymatrix/tournament-details-page 0.2.2 → 0.2.4
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/components/{ChartIcon-BOJYO_mg.cjs → ChartIcon-Befgjhbq.cjs} +1 -1
- package/components/{ChartIcon-BnuWrPCu.js → ChartIcon-Cijyoj4D.js} +1 -1
- package/components/{ChartIcon-RZGJve9X.cjs → ChartIcon-DHA4OiwS.cjs} +1 -1
- package/components/{ChartIcon-DpI8g8MS.js → ChartIcon-R4lVwti5.js} +1 -1
- package/components/{CoinStackIcon-DFr0r7ql.cjs → CoinStackIcon-BJ5Cza44.cjs} +1 -1
- package/components/{CoinStackIcon-JPra1r-T.js → CoinStackIcon-C1F7M7aX.js} +1 -1
- package/components/{CoinStackIcon-D7VDNLPL.js → CoinStackIcon-D3SYgfiW.js} +1 -1
- package/components/{CoinStackIcon-D9m5o_fi.cjs → CoinStackIcon-DaTufppr.cjs} +1 -1
- package/components/{DocumentsIcon-CbpU2Gyn.js → DocumentsIcon-B8czAvSb.js} +1 -1
- package/components/{DocumentsIcon-BMHGy7l5.cjs → DocumentsIcon-C-xeVT_v.cjs} +1 -1
- package/components/{DocumentsIcon-DFbkU_nq.js → DocumentsIcon-DNlyMYIU.js} +1 -1
- package/components/{DocumentsIcon-BGDIx1Br.cjs → DocumentsIcon-SuePRQNo.cjs} +1 -1
- package/components/{FootballIcon-Ba3k9QwJ.cjs → FootballIcon-B8X-AjbG.cjs} +1 -1
- package/components/{FootballIcon-Dh004HAn.cjs → FootballIcon-C4eNGKY4.cjs} +1 -1
- package/components/{FootballIcon-t-RiDqHO.js → FootballIcon-DVZ96gIt.js} +1 -1
- package/components/{FootballIcon-BXfYxMAS.js → FootballIcon-u7l6pKui.js} +1 -1
- package/components/{PeopleIcon-Bi5uKQ9t.cjs → PeopleIcon-BflWZAxo.cjs} +1 -1
- package/components/{PeopleIcon-2b-6fziq.js → PeopleIcon-DLW94oOG.js} +1 -1
- package/components/{PeopleIcon-Dij57H9Y.cjs → PeopleIcon-DciAxL_a.cjs} +1 -1
- package/components/{PeopleIcon-BL0lywpf.js → PeopleIcon-s7Ccyi1V.js} +1 -1
- package/components/{RankArrowIcon-DxqeIh-2.js → RankArrowIcon-97fk5fg5.js} +1 -1
- package/components/{RankArrowIcon-BLPI8Ihl.js → RankArrowIcon-FXyB2gGq.js} +1 -1
- package/components/{RankArrowIcon-D9MUkVQC.cjs → RankArrowIcon-SoYkNu_W.cjs} +1 -1
- package/components/{RankArrowIcon-C1FqD2OV.cjs → RankArrowIcon-hrpZ9ET-.cjs} +1 -1
- package/components/{SlotMachineIcon-rm59GZar.js → SlotMachineIcon-BNa44gB0.js} +1 -1
- package/components/{SlotMachineIcon-_w58r-b5.cjs → SlotMachineIcon-CaTi0xrT.cjs} +1 -1
- package/components/{SlotMachineIcon-DbLnS5Dy.js → SlotMachineIcon-CpTV5Gjw.js} +1 -1
- package/components/{SlotMachineIcon-Cuv-0tTj.cjs → SlotMachineIcon-DyoJSpjm.cjs} +1 -1
- package/components/{StatusBadge-94g1_G1j.js → StatusBadge-1cAE-BMW.js} +1801 -1768
- package/components/StatusBadge-CMV-2nkA.cjs +11 -0
- package/components/StatusBadge-DYQwo1l2.cjs +11 -0
- package/components/{StatusBadge-DuF7NK69.js → StatusBadge-Dz7gL5NT.js} +1415 -1382
- package/components/TournamentActions-B4XIKdGS.js +110 -0
- package/components/TournamentActions-CIe9g5tR.js +108 -0
- package/components/TournamentActions-D0kIKeFb.cjs +18 -0
- package/components/TournamentActions-DHAVf_xi.cjs +18 -0
- package/components/{TournamentDetailsPage-DKQGDSr1.cjs → TournamentDetailsPage-5vGjPG32.cjs} +4 -4
- package/components/{TournamentDetailsPage-BknZ3XLG.js → TournamentDetailsPage-CQdLNEwc.js} +291 -207
- package/components/TournamentDetailsPage-CdsWSXuQ.cjs +27 -0
- package/components/{TournamentDetailsPage-AkoBgtU-.js → TournamentDetailsPage-DdXVtbXN.js} +342 -258
- package/components/{TournamentDetailsSkeleton-BTCHrmxN.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-D0L8P1tb.js → TournamentDetailsSkeleton-DA318hry.js} +19 -19
- package/components/{TournamentDetailsSkeleton-Dtd2H__T.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-CmKNNW5d.js → TournamentDetailsSkeleton-DthtZKyT.js} +19 -19
- package/components/TournamentGames-CM0_tj8g.cjs +19 -0
- package/components/TournamentGames-D4b31JLG.cjs +19 -0
- package/components/TournamentGames-VQKGwemr.js +325 -0
- package/components/TournamentGames-n4c8SvY_.js +303 -0
- package/components/{TournamentImage-BFh29Z7_.js → TournamentImage-87bhDEnk.js} +61 -51
- package/components/{TournamentImage-Hm-i2BLZ.js → TournamentImage-D0na0-p6.js} +59 -49
- package/components/{TournamentImage-D26UWHyP.cjs → TournamentImage-D6eLaW4m.cjs} +2 -2
- package/components/{TournamentImage-CxfcEUy6.cjs → TournamentImage-DK1HgudW.cjs} +2 -2
- package/components/TournamentLeaderboard-C3iblI14.cjs +44 -0
- package/components/TournamentLeaderboard-Cc-xMiwP.js +1500 -0
- package/components/TournamentLeaderboard-DvvnA47t.js +1561 -0
- package/components/TournamentLeaderboard-NEJ1wTBv.cjs +44 -0
- package/components/TournamentRules-CyqSU5RQ.js +147 -0
- package/components/TournamentRules-D9R2cmXK.js +152 -0
- package/components/TournamentRules-DDlD1tXH.cjs +6 -0
- package/components/TournamentRules-OGoN3OYX.cjs +6 -0
- package/components/TournamentSummary-BY9YlM53.cjs +3 -0
- package/components/TournamentSummary-CewShnfd.js +150 -0
- package/components/TournamentSummary-D_DLGxO7.js +145 -0
- package/components/TournamentSummary-Dy6cHmly.cjs +3 -0
- package/components/{TournamentTabs-BVEr7PbQ.cjs → TournamentTabs-3OdZuIOf.cjs} +1 -1
- package/components/{TournamentTabs-ryceiGS3.cjs → TournamentTabs-BDsQomg2.cjs} +1 -1
- package/components/{TournamentTabs-B5Hc7DnJ.js → TournamentTabs-mlb4UDEZ.js} +18 -18
- package/components/{TournamentTabs-DHZPrDgf.js → TournamentTabs-yOsQleAI.js} +14 -14
- package/components/{TrophyIcon-DddCZpjC.cjs → TrophyIcon-CUdep5Qu.cjs} +1 -1
- package/components/{TrophyIcon-DJyC3k-2.js → TrophyIcon-D6xEdEIW.js} +4 -4
- package/components/{TrophyIcon-eLIudkPn.cjs → TrophyIcon-DJDEDfa7.cjs} +1 -1
- package/components/{TrophyIcon-DbEHhyTe.js → TrophyIcon-rK1Ad8lv.js} +4 -4
- package/components/translations-B2zzqYUc.cjs +1 -0
- package/components/{translations-DPzojb4V.js → translations-BPv4iAvC.js} +42 -7
- package/components/{translations-BQS5XycD.js → translations-BY4crXAR.js} +42 -7
- package/components/translations-CmWDttoq.cjs +1 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/StatusBadge-Bdc22cMY.cjs +0 -8
- package/components/StatusBadge-BsjzjNer.cjs +0 -8
- package/components/TournamentDetailsPage-DbL7sBZM.cjs +0 -27
- package/components/TournamentGames-BGr8V4Dd.js +0 -306
- package/components/TournamentGames-BhXlS-fA.js +0 -284
- package/components/TournamentGames-Ch4ODv3u.cjs +0 -19
- package/components/TournamentGames-D8h0gDfK.cjs +0 -19
- package/components/TournamentLeaderboard-1i-FoUCN.cjs +0 -38
- package/components/TournamentLeaderboard-B6IMbAZ_.cjs +0 -38
- package/components/TournamentLeaderboard-BJ0mlW5c.js +0 -1384
- package/components/TournamentLeaderboard-BM3HZ0jQ.js +0 -1441
- package/components/TournamentRules-Bu4jfxhb.cjs +0 -6
- package/components/TournamentRules-DwcmzDOu.js +0 -138
- package/components/TournamentRules-Dxup5GZ2.js +0 -143
- package/components/TournamentRules-iglqjP1P.cjs +0 -6
- package/components/TournamentSummary-B7I6gN81.js +0 -145
- package/components/TournamentSummary-C24QhbUw.cjs +0 -3
- package/components/TournamentSummary-HgOjtkW2.cjs +0 -3
- package/components/TournamentSummary-ozfHjUkk.js +0 -150
- package/components/translations-BSe2qToO.cjs +0 -1
- package/components/translations-FufS-X5l.cjs +0 -1
package/components/{TournamentDetailsSkeleton-BTCHrmxN.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-
|
|
2
|
-
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-DYQwo1l2.cjs"),l=require("./TournamentLeaderboard-C3iblI14.cjs");var k=e.from_html('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'),g=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--tab svelte-wbcf14"></span>'),y=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--leaderboard-row svelte-wbcf14"></span>'),T=e.from_html('<div class="tournament-details__skeleton--leaderboard svelte-wbcf14"></div>'),E=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--game svelte-wbcf14"></span>'),S=e.from_html('<div class="tournament-details__skeleton--games svelte-wbcf14"></div>'),A=e.from_html('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--paragraph svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line short svelte-wbcf14"></span></span></span>'),L=e.from_html('<div class="tournament-details__skeleton--rules svelte-wbcf14"></div>'),O=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--banner svelte-wbcf14" aria-busy="true" aria-live="polite"></span> <div class="tournament-details__skeleton--contents svelte-wbcf14" aria-hidden="true"><div class="tournament-details__skeleton--summary svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--title svelte-wbcf14"></span> <!></div> <div class="tournament-details__skeleton--tabs svelte-wbcf14"></div> <!></div>',1);const R={hash:"svelte-wbcf14",code:`.tournament-details__skeleton--box.svelte-wbcf14 {display:block;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
2
|
+
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border-radius:100px;}.tournament-details__skeleton--tab.svelte-wbcf14 {width:140px;height:27px;border-radius:36px;}.tournament-details__skeleton--rules.svelte-wbcf14 {display:flex;flex-direction:column;gap:24px;}.tournament-details__skeleton--leaderboard.svelte-wbcf14 {display:flex;flex-direction:column;gap:8px;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:40px;border-radius:8px;}.tournament-details__skeleton--games.svelte-wbcf14 {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-details__skeleton--game.svelte-wbcf14 {height:120px;}
|
|
3
3
|
|
|
4
4
|
@media (max-width: 767px) {.tournament-details__skeleton--banner.svelte-wbcf14 {height:160px;}.tournament-details__skeleton--contents.svelte-wbcf14 {gap:16px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:70%;height:20px;}.tournament-details__skeleton--tabs.svelte-wbcf14 {width:100%;gap:2px;padding:4px 8px;}.tournament-details__skeleton--tab.svelte-wbcf14 {flex:1;width:auto;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:36px;}.tournament-details__skeleton--games.svelte-wbcf14 {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-details__skeleton--game.svelte-wbcf14 {height:75px;}
|
|
5
5
|
}
|
|
@@ -12,4 +12,4 @@ typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},glob
|
|
|
12
12
|
|
|
13
13
|
@media (prefers-reduced-motion: reduce) {.tournament-details__skeleton--box.svelte-wbcf14 {
|
|
14
14
|
animation: none;}
|
|
15
|
-
}`};function b(d,_){e.push(_,!0),e.append_styles(d,R);const o=e.prop(_,"activeTab",7,"rules");var
|
|
15
|
+
}`};function b(d,_){e.push(_,!0),e.append_styles(d,R);const o=e.prop(_,"activeTab",7,"rules");var u={get activeTab(){return o()},set activeTab(t="rules"){o(t),e.flushSync()}},p=O(),m=e.sibling(e.first_child(p),2),r=e.child(m),v=e.sibling(e.child(r),2);e.each(v,17,()=>Array(l.SKELETON_SUMMARY_ROWS),e.index,(t,a)=>{var n=k();e.append(t,n)}),e.reset(r);var i=e.sibling(r,2);e.each(i,21,()=>l.DETAILS_TABS,t=>t.id,(t,a)=>{var n=g();e.append(t,n)}),e.reset(i);var f=e.sibling(i,2);{var w=t=>{var a=T();e.each(a,21,()=>Array(l.SKELETON_LEADERBOARD_ROWS),e.index,(n,c)=>{var s=y();e.append(n,s)}),e.reset(a),e.append(t,a)},x=t=>{var a=S();e.each(a,21,()=>Array(l.SKELETON_GAMES_COUNT),e.index,(n,c)=>{var s=E();e.append(n,s)}),e.reset(a),e.append(t,a)},h=t=>{var a=L();e.each(a,21,()=>Array(l.SKELETON_RULE_ROWS),e.index,(n,c)=>{var s=A();e.append(n,s)}),e.reset(a),e.append(t,a)};e.if_block(f,t=>{o()==="leaderboard"?t(w):o()==="games"?t(x,1):t(h,-1)})}return e.reset(m),e.append(d,p),e.pop(u)}e.create_custom_element(b,{activeTab:{}},[],[],{mode:"open"});exports.TournamentDetailsSkeleton=b;
|
package/components/{TournamentDetailsSkeleton-D0L8P1tb.js → TournamentDetailsSkeleton-DA318hry.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { c as E, g as S, a as A, p as
|
|
2
|
-
import {
|
|
1
|
+
import { c as E, g as S, a as A, p as O, s as d, Q as L, O as r, P as _, i as R, b as s, d as D, f as n, h as w, q as M, r as l } from "./StatusBadge-1cAE-BMW.js";
|
|
2
|
+
import { e as N, D as K, h as U, i as W, j as B } from "./TournamentLeaderboard-DvvnA47t.js";
|
|
3
3
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
5
5
|
}, get() {
|
|
6
6
|
}, whenDefined() {
|
|
7
7
|
} });
|
|
8
|
-
var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'),
|
|
9
|
-
const
|
|
8
|
+
var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'), j = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--tab svelte-wbcf14"></span>'), q = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--leaderboard-row svelte-wbcf14"></span>'), z = n('<div class="tournament-details__skeleton--leaderboard svelte-wbcf14"></div>'), C = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--game svelte-wbcf14"></span>'), G = n('<div class="tournament-details__skeleton--games svelte-wbcf14"></div>'), I = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--paragraph svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line short svelte-wbcf14"></span></span></span>'), P = n('<div class="tournament-details__skeleton--rules svelte-wbcf14"></div>'), Q = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--banner svelte-wbcf14" aria-busy="true" aria-live="polite"></span> <div class="tournament-details__skeleton--contents svelte-wbcf14" aria-hidden="true"><div class="tournament-details__skeleton--summary svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--title svelte-wbcf14"></span> <!></div> <div class="tournament-details__skeleton--tabs svelte-wbcf14"></div> <!></div>', 1);
|
|
9
|
+
const Y = {
|
|
10
10
|
hash: "svelte-wbcf14",
|
|
11
11
|
code: `.tournament-details__skeleton--box.svelte-wbcf14 {display:block;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
12
|
-
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border
|
|
12
|
+
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border-radius:100px;}.tournament-details__skeleton--tab.svelte-wbcf14 {width:140px;height:27px;border-radius:36px;}.tournament-details__skeleton--rules.svelte-wbcf14 {display:flex;flex-direction:column;gap:24px;}.tournament-details__skeleton--leaderboard.svelte-wbcf14 {display:flex;flex-direction:column;gap:8px;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:40px;border-radius:8px;}.tournament-details__skeleton--games.svelte-wbcf14 {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-details__skeleton--game.svelte-wbcf14 {height:120px;}
|
|
13
13
|
|
|
14
14
|
@media (max-width: 767px) {.tournament-details__skeleton--banner.svelte-wbcf14 {height:160px;}.tournament-details__skeleton--contents.svelte-wbcf14 {gap:16px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:70%;height:20px;}.tournament-details__skeleton--tabs.svelte-wbcf14 {width:100%;gap:2px;padding:4px 8px;}.tournament-details__skeleton--tab.svelte-wbcf14 {flex:1;width:auto;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:36px;}.tournament-details__skeleton--games.svelte-wbcf14 {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-details__skeleton--game.svelte-wbcf14 {height:75px;}
|
|
15
15
|
}
|
|
@@ -24,9 +24,9 @@ const F = {
|
|
|
24
24
|
animation: none;}
|
|
25
25
|
}`
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
S(
|
|
29
|
-
const i =
|
|
27
|
+
function F(m, v) {
|
|
28
|
+
S(v, !0), A(m, Y);
|
|
29
|
+
const i = O(v, "activeTab", 7, "rules");
|
|
30
30
|
var x = {
|
|
31
31
|
get activeTab() {
|
|
32
32
|
return i();
|
|
@@ -34,34 +34,34 @@ function J(b, m) {
|
|
|
34
34
|
set activeTab(e = "rules") {
|
|
35
35
|
i(e), M();
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, b = Q(), u = d(L(b), 2), p = w(u), k = d(w(p), 2);
|
|
38
38
|
r(k, 17, () => Array(N), _, (e, t) => {
|
|
39
39
|
var a = H();
|
|
40
40
|
s(e, a);
|
|
41
41
|
}), l(p);
|
|
42
42
|
var c = d(p, 2);
|
|
43
43
|
r(c, 21, () => K, (e) => e.id, (e, t) => {
|
|
44
|
-
var a =
|
|
44
|
+
var a = j();
|
|
45
45
|
s(e, a);
|
|
46
46
|
}), l(c);
|
|
47
47
|
var h = d(c, 2);
|
|
48
48
|
{
|
|
49
49
|
var g = (e) => {
|
|
50
|
-
var t =
|
|
50
|
+
var t = z();
|
|
51
51
|
r(t, 21, () => Array(U), _, (a, f) => {
|
|
52
|
-
var o =
|
|
52
|
+
var o = q();
|
|
53
53
|
s(a, o);
|
|
54
54
|
}), l(t), s(e, t);
|
|
55
55
|
}, y = (e) => {
|
|
56
|
-
var t =
|
|
56
|
+
var t = G();
|
|
57
57
|
r(t, 21, () => Array(W), _, (a, f) => {
|
|
58
|
-
var o =
|
|
58
|
+
var o = C();
|
|
59
59
|
s(a, o);
|
|
60
60
|
}), l(t), s(e, t);
|
|
61
61
|
}, T = (e) => {
|
|
62
|
-
var t =
|
|
62
|
+
var t = P();
|
|
63
63
|
r(t, 21, () => Array(B), _, (a, f) => {
|
|
64
|
-
var o =
|
|
64
|
+
var o = I();
|
|
65
65
|
s(a, o);
|
|
66
66
|
}), l(t), s(e, t);
|
|
67
67
|
};
|
|
@@ -69,9 +69,9 @@ function J(b, m) {
|
|
|
69
69
|
i() === "leaderboard" ? e(g) : i() === "games" ? e(y, 1) : e(T, -1);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
return l(u), s(
|
|
72
|
+
return l(u), s(m, b), D(x);
|
|
73
73
|
}
|
|
74
|
-
E(
|
|
74
|
+
E(F, { activeTab: {} }, [], [], { mode: "open" });
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
F as T
|
|
77
77
|
};
|
package/components/{TournamentDetailsSkeleton-Dtd2H__T.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-
|
|
2
|
-
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CMV-2nkA.cjs"),l=require("./TournamentLeaderboard-NEJ1wTBv.cjs");var k=e.from_html('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'),g=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--tab svelte-wbcf14"></span>'),y=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--leaderboard-row svelte-wbcf14"></span>'),T=e.from_html('<div class="tournament-details__skeleton--leaderboard svelte-wbcf14"></div>'),E=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--game svelte-wbcf14"></span>'),S=e.from_html('<div class="tournament-details__skeleton--games svelte-wbcf14"></div>'),A=e.from_html('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--paragraph svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line short svelte-wbcf14"></span></span></span>'),L=e.from_html('<div class="tournament-details__skeleton--rules svelte-wbcf14"></div>'),O=e.from_html('<span class="tournament-details__skeleton--box tournament-details__skeleton--banner svelte-wbcf14" aria-busy="true" aria-live="polite"></span> <div class="tournament-details__skeleton--contents svelte-wbcf14" aria-hidden="true"><div class="tournament-details__skeleton--summary svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--title svelte-wbcf14"></span> <!></div> <div class="tournament-details__skeleton--tabs svelte-wbcf14"></div> <!></div>',1);const R={hash:"svelte-wbcf14",code:`.tournament-details__skeleton--box.svelte-wbcf14 {display:block;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
2
|
+
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border-radius:100px;}.tournament-details__skeleton--tab.svelte-wbcf14 {width:140px;height:27px;border-radius:36px;}.tournament-details__skeleton--rules.svelte-wbcf14 {display:flex;flex-direction:column;gap:24px;}.tournament-details__skeleton--leaderboard.svelte-wbcf14 {display:flex;flex-direction:column;gap:8px;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:40px;border-radius:8px;}.tournament-details__skeleton--games.svelte-wbcf14 {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-details__skeleton--game.svelte-wbcf14 {height:120px;}
|
|
3
3
|
|
|
4
4
|
@media (max-width: 767px) {.tournament-details__skeleton--banner.svelte-wbcf14 {height:160px;}.tournament-details__skeleton--contents.svelte-wbcf14 {gap:16px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:70%;height:20px;}.tournament-details__skeleton--tabs.svelte-wbcf14 {width:100%;gap:2px;padding:4px 8px;}.tournament-details__skeleton--tab.svelte-wbcf14 {flex:1;width:auto;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:36px;}.tournament-details__skeleton--games.svelte-wbcf14 {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-details__skeleton--game.svelte-wbcf14 {height:75px;}
|
|
5
5
|
}
|
|
@@ -12,4 +12,4 @@ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.cu
|
|
|
12
12
|
|
|
13
13
|
@media (prefers-reduced-motion: reduce) {.tournament-details__skeleton--box.svelte-wbcf14 {
|
|
14
14
|
animation: none;}
|
|
15
|
-
}`};function b(d,_){e.push(_,!0),e.append_styles(d,R);const o=e.prop(_,"activeTab",7,"rules");var
|
|
15
|
+
}`};function b(d,_){e.push(_,!0),e.append_styles(d,R);const o=e.prop(_,"activeTab",7,"rules");var u={get activeTab(){return o()},set activeTab(t="rules"){o(t),e.flushSync()}},p=O(),m=e.sibling(e.first_child(p),2),r=e.child(m),v=e.sibling(e.child(r),2);e.each(v,17,()=>Array(l.SKELETON_SUMMARY_ROWS),e.index,(t,a)=>{var n=k();e.append(t,n)}),e.reset(r);var i=e.sibling(r,2);e.each(i,21,()=>l.DETAILS_TABS,t=>t.id,(t,a)=>{var n=g();e.append(t,n)}),e.reset(i);var f=e.sibling(i,2);{var w=t=>{var a=T();e.each(a,21,()=>Array(l.SKELETON_LEADERBOARD_ROWS),e.index,(n,c)=>{var s=y();e.append(n,s)}),e.reset(a),e.append(t,a)},x=t=>{var a=S();e.each(a,21,()=>Array(l.SKELETON_GAMES_COUNT),e.index,(n,c)=>{var s=E();e.append(n,s)}),e.reset(a),e.append(t,a)},h=t=>{var a=L();e.each(a,21,()=>Array(l.SKELETON_RULE_ROWS),e.index,(n,c)=>{var s=A();e.append(n,s)}),e.reset(a),e.append(t,a)};e.if_block(f,t=>{o()==="leaderboard"?t(w):o()==="games"?t(x,1):t(h,-1)})}return e.reset(m),e.append(d,p),e.pop(u)}e.create_custom_element(b,{activeTab:{}},[],[],{mode:"open"});exports.TournamentDetailsSkeleton=b;
|
package/components/{TournamentDetailsSkeleton-CmKNNW5d.js → TournamentDetailsSkeleton-DthtZKyT.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { c as E, g as S, a as A, p as
|
|
2
|
-
import {
|
|
1
|
+
import { c as E, g as S, a as A, p as O, s as d, Q as L, O as r, P as _, i as R, b as s, d as D, f as n, h as w, q as M, r as l } from "./StatusBadge-Dz7gL5NT.js";
|
|
2
|
+
import { e as N, D as K, h as U, i as W, j as B } from "./TournamentLeaderboard-Cc-xMiwP.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
5
5
|
}, get() {
|
|
6
6
|
}, whenDefined() {
|
|
7
7
|
} });
|
|
8
|
-
var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'),
|
|
9
|
-
const
|
|
8
|
+
var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span></span>'), j = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--tab svelte-wbcf14"></span>'), q = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--leaderboard-row svelte-wbcf14"></span>'), z = n('<div class="tournament-details__skeleton--leaderboard svelte-wbcf14"></div>'), C = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--game svelte-wbcf14"></span>'), G = n('<div class="tournament-details__skeleton--games svelte-wbcf14"></div>'), I = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--icon svelte-wbcf14"></span> <span class="tournament-details__skeleton--paragraph svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--line svelte-wbcf14"></span> <span class="tournament-details__skeleton--box tournament-details__skeleton--line short svelte-wbcf14"></span></span></span>'), P = n('<div class="tournament-details__skeleton--rules svelte-wbcf14"></div>'), Q = n('<span class="tournament-details__skeleton--box tournament-details__skeleton--banner svelte-wbcf14" aria-busy="true" aria-live="polite"></span> <div class="tournament-details__skeleton--contents svelte-wbcf14" aria-hidden="true"><div class="tournament-details__skeleton--summary svelte-wbcf14"><span class="tournament-details__skeleton--box tournament-details__skeleton--title svelte-wbcf14"></span> <!></div> <div class="tournament-details__skeleton--tabs svelte-wbcf14"></div> <!></div>', 1);
|
|
9
|
+
const Y = {
|
|
10
10
|
hash: "svelte-wbcf14",
|
|
11
11
|
code: `.tournament-details__skeleton--box.svelte-wbcf14 {display:block;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
12
|
-
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border
|
|
12
|
+
animation: svelte-wbcf14-tournament-details-skeleton-pulse 1.2s ease-in-out infinite;}.tournament-details__skeleton--banner.svelte-wbcf14 {width:100%;height:308px;border-radius:13px;}.tournament-details__skeleton--contents.svelte-wbcf14 {display:flex;flex-direction:column;gap:20px;min-width:0;}.tournament-details__skeleton--summary.svelte-wbcf14 {display:flex;flex-direction:column;gap:12px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:50%;height:24px;}.tournament-details__skeleton--row.svelte-wbcf14 {display:flex;align-items:flex-start;gap:8px;}.tournament-details__skeleton--icon.svelte-wbcf14 {flex-shrink:0;width:16px;height:16px;}.tournament-details__skeleton--line.svelte-wbcf14 {width:60%;height:16px;&.short {width:35%;}}.tournament-details__skeleton--paragraph.svelte-wbcf14 {display:flex;flex:1;flex-direction:column;gap:6px;.tournament-details__skeleton--line:where(.svelte-wbcf14) {width:100%;&.short {width:60%;}}}.tournament-details__skeleton--tabs.svelte-wbcf14 {box-sizing:border-box;display:flex;gap:4px;width:fit-content;max-width:100%;padding:6px 8px;border-radius:100px;}.tournament-details__skeleton--tab.svelte-wbcf14 {width:140px;height:27px;border-radius:36px;}.tournament-details__skeleton--rules.svelte-wbcf14 {display:flex;flex-direction:column;gap:24px;}.tournament-details__skeleton--leaderboard.svelte-wbcf14 {display:flex;flex-direction:column;gap:8px;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:40px;border-radius:8px;}.tournament-details__skeleton--games.svelte-wbcf14 {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-details__skeleton--game.svelte-wbcf14 {height:120px;}
|
|
13
13
|
|
|
14
14
|
@media (max-width: 767px) {.tournament-details__skeleton--banner.svelte-wbcf14 {height:160px;}.tournament-details__skeleton--contents.svelte-wbcf14 {gap:16px;}.tournament-details__skeleton--title.svelte-wbcf14 {width:70%;height:20px;}.tournament-details__skeleton--tabs.svelte-wbcf14 {width:100%;gap:2px;padding:4px 8px;}.tournament-details__skeleton--tab.svelte-wbcf14 {flex:1;width:auto;}.tournament-details__skeleton--leaderboard-row.svelte-wbcf14 {height:36px;}.tournament-details__skeleton--games.svelte-wbcf14 {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-details__skeleton--game.svelte-wbcf14 {height:75px;}
|
|
15
15
|
}
|
|
@@ -24,9 +24,9 @@ const F = {
|
|
|
24
24
|
animation: none;}
|
|
25
25
|
}`
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
S(
|
|
29
|
-
const i =
|
|
27
|
+
function F(m, v) {
|
|
28
|
+
S(v, !0), A(m, Y);
|
|
29
|
+
const i = O(v, "activeTab", 7, "rules");
|
|
30
30
|
var x = {
|
|
31
31
|
get activeTab() {
|
|
32
32
|
return i();
|
|
@@ -34,34 +34,34 @@ function J(b, m) {
|
|
|
34
34
|
set activeTab(e = "rules") {
|
|
35
35
|
i(e), M();
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, b = Q(), u = d(L(b), 2), p = w(u), k = d(w(p), 2);
|
|
38
38
|
r(k, 17, () => Array(N), _, (e, t) => {
|
|
39
39
|
var a = H();
|
|
40
40
|
s(e, a);
|
|
41
41
|
}), l(p);
|
|
42
42
|
var c = d(p, 2);
|
|
43
43
|
r(c, 21, () => K, (e) => e.id, (e, t) => {
|
|
44
|
-
var a =
|
|
44
|
+
var a = j();
|
|
45
45
|
s(e, a);
|
|
46
46
|
}), l(c);
|
|
47
47
|
var h = d(c, 2);
|
|
48
48
|
{
|
|
49
49
|
var g = (e) => {
|
|
50
|
-
var t =
|
|
50
|
+
var t = z();
|
|
51
51
|
r(t, 21, () => Array(U), _, (a, f) => {
|
|
52
|
-
var o =
|
|
52
|
+
var o = q();
|
|
53
53
|
s(a, o);
|
|
54
54
|
}), l(t), s(e, t);
|
|
55
55
|
}, y = (e) => {
|
|
56
|
-
var t =
|
|
56
|
+
var t = G();
|
|
57
57
|
r(t, 21, () => Array(W), _, (a, f) => {
|
|
58
|
-
var o =
|
|
58
|
+
var o = C();
|
|
59
59
|
s(a, o);
|
|
60
60
|
}), l(t), s(e, t);
|
|
61
61
|
}, T = (e) => {
|
|
62
|
-
var t =
|
|
62
|
+
var t = P();
|
|
63
63
|
r(t, 21, () => Array(B), _, (a, f) => {
|
|
64
|
-
var o =
|
|
64
|
+
var o = I();
|
|
65
65
|
s(a, o);
|
|
66
66
|
}), l(t), s(e, t);
|
|
67
67
|
};
|
|
@@ -69,9 +69,9 @@ function J(b, m) {
|
|
|
69
69
|
i() === "leaderboard" ? e(g) : i() === "games" ? e(y, 1) : e(T, -1);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
return l(u), s(
|
|
72
|
+
return l(u), s(m, b), D(x);
|
|
73
73
|
}
|
|
74
|
-
E(
|
|
74
|
+
E(F, { activeTab: {} }, [], [], { mode: "open" });
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
F as T
|
|
77
77
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CMV-2nkA.cjs"),y=require("./TournamentLeaderboard-NEJ1wTBv.cjs"),_e=require("./translations-CmWDttoq.cjs"),X=(v,n=!1)=>{if(!v)return;const l=parseFloat(getComputedStyle(v).scrollMarginTop)||0;if(n&&v.getBoundingClientRect().top>=l)return;const L=window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.scrollIntoView({behavior:L?"auto":"smooth",block:"start"})};var ve=e.from_html('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'),xe=e.from_html('<div class="tournament-games__empty svelte-49hxa3"><p class="tournament-games__empty-title svelte-49hxa3"> </p> <p class="tournament-games__empty-description svelte-49hxa3"> </p></div>'),fe=e.from_html('<span class="tournament-games__badge svelte-49hxa3"> </span>'),be=e.from_html('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'),ye=e.from_html('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'),we=e.from_html('<div class="tournament-games__sentinel svelte-49hxa3"></div>'),Se=e.from_html('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>',1),ke=e.from_html('<p class="tournament-games__empty svelte-49hxa3"> </p>'),Te=e.from_html('<li class="svelte-49hxa3"> </li>'),Ge=e.from_html('<ul class="tournament-games__events svelte-49hxa3"></ul>'),Me=e.from_html('<div class="tournament-games svelte-49hxa3"><!> <!></div>');const Ae={hash:"svelte-49hxa3",code:`.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
2
|
+
|
|
3
|
+
@media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
4
|
+
}}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
|
|
5
|
+
animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {display:flex;flex-direction:column;align-items:center;gap:8px;padding:63px 16px;text-align:center;p:where(.svelte-49hxa3) {margin:0;}}.tournament-games__empty-title:where(.svelte-49hxa3) {color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;font-weight:700;}.tournament-games__empty-description:where(.svelte-49hxa3) {max-width:340px;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:14px;font-weight:500;}}
|
|
6
|
+
|
|
7
|
+
@keyframes svelte-49hxa3-tournament-games-pulse {
|
|
8
|
+
50% {
|
|
9
|
+
opacity: 0.5;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
|
|
14
|
+
.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
|
|
18
|
+
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
19
|
+
}`};function Y(v,n){e.push(n,!0),e.append_styles(v,Ae);const l=()=>e.store_get(e.$format,"$_",L),[L,$]=e.setup_stores(),M=e.prop(n,"initialGames",7),I=e.prop(n,"endpoint",7),x=e.prop(n,"language",7,"en"),O=e.prop(n,"session",7),w=e.prop(n,"tournamentid",7),A=e.prop(n,"tournamentname",7,""),N=e.prop(n,"totalGames",7),R=e.prop(n,"platform",7),j=e.prop(n,"tournamentMetadata",7),E=e.prop(n,"translationurl",7),S=e.prop(n,"hasCasino",7,!0),k=e.prop(n,"hasSports",7,!1);e.registerTranslations(_e.TRANSLATIONS$1),e.setLocale(x());const ee=()=>{e.setLocale(x())};e.user_pre_effect(()=>{E()&&e.loadTranslations(E())}),e.user_effect(()=>{ee()});let g=e.state(e.proxy(M()||[])),z=e.state(e.proxy(N()??(M()?.length||0))),B=e.state(!1),p=e.state(e.proxy(S()||!k()?"casino":"sports")),P=e.state(null);const J=t=>{t!==e.get(p)&&(e.set(p,t,!0),y.sendGamesSubTabClicked({id:w(),nameOrTitle:A()},t),e.tick().then(()=>X(e.get(P),!0)))},q=e.user_derived(()=>S()&&k()),te=e.user_derived(()=>e.get(q)?e.get(p)==="casino":!k()||S()),D=e.user_derived(()=>e.get(g).length<e.get(z)),ae=e.user_derived(()=>Math.min(Math.max(e.get(z)-e.get(g).length,0),y.GAMES_PAGE_SIZE)),K=e.user_derived(()=>{const t=j()?.sports?.rules;if(!t)return[];try{const a=JSON.parse(t);return a[x()]||a["*"]||[]}catch(a){return console.log(a),[]}}),Q=async()=>{if(!(!e.get(D)||e.get(B))){e.set(B,!0);try{const t=await y.fetchTournament({endpoint:I(),language:x(),platform:R(),session:O(),tournamentid:w(),filterById:!0,gamesLimit:y.GAMES_PAGE_SIZE,gamesOffset:e.get(g).length});e.set(g,[...e.get(g),...t?.games?.items??[]],!0),e.set(z,t?.games?.total??e.get(z),!0)}catch(t){console.log(t)}finally{e.set(B,!1)}}};e.user_effect(()=>{e.untrack(()=>Q())});const ne=(t,a)=>{const r=new IntersectionObserver(i=>{i.some(d=>d.isIntersecting)&&a()},{rootMargin:y.GAMES_ROOT_MARGIN});return r.observe(t),{destroy(){r.disconnect()}}},re=t=>{y.sendPlayGame(t,{id:w(),nameOrTitle:A()},e.get(q)?e.get(p):void 0)};var se={get initialGames(){return M()},set initialGames(t){M(t),e.flushSync()},get endpoint(){return I()},set endpoint(t){I(t),e.flushSync()},get language(){return x()},set language(t="en"){x(t),e.flushSync()},get session(){return O()},set session(t){O(t),e.flushSync()},get tournamentid(){return w()},set tournamentid(t){w(t),e.flushSync()},get tournamentname(){return A()},set tournamentname(t=""){A(t),e.flushSync()},get totalGames(){return N()},set totalGames(t){N(t),e.flushSync()},get platform(){return R()},set platform(t){R(t),e.flushSync()},get tournamentMetadata(){return j()},set tournamentMetadata(t){j(t),e.flushSync()},get translationurl(){return E()},set translationurl(t){E(t),e.flushSync()},get hasCasino(){return S()},set hasCasino(t=!0){S(t),e.flushSync()},get hasSports(){return k()},set hasSports(t=!1){k(t),e.flushSync()}},C=Me(),U=e.child(C);{var oe=t=>{var a=ve(),r=e.child(a);let i;var d=e.only_child(r,!0),s=e.sibling(r,2);let o;var c=e.only_child(s,!0);e.reset(a),e.template_effect((f,T)=>{i=e.set_class(r,1,"tournament-games__tab svelte-49hxa3",null,i,{active:e.get(p)==="casino"}),e.set_attribute(r,"aria-selected",e.get(p)==="casino"),e.set_text(d,f),o=e.set_class(s,1,"tournament-games__tab svelte-49hxa3",null,o,{active:e.get(p)==="sports"}),e.set_attribute(s,"aria-selected",e.get(p)==="sports"),e.set_text(c,T)},[()=>l()("casinoTab"),()=>l()("sportsTab")]),e.delegated("click",r,()=>J("casino")),e.delegated("click",s,()=>J("sports")),e.append(t,a)};e.if_block(U,t=>{e.get(q)&&t(oe)})}var le=e.sibling(U,2);{var ie=t=>{var a=e.comment(),r=e.first_child(a);{var i=s=>{var o=xe(),c=e.child(o),f=e.only_child(c,!0),T=e.sibling(c,2),H=e.only_child(T,!0);e.reset(o),e.template_effect((V,m)=>{e.set_text(f,V),e.set_text(H,m)},[()=>l()("noAvailableGames"),()=>l()("noAvailableGamesDescription")]),e.append(s,o)},d=s=>{var o=Se(),c=e.first_child(o),f=e.child(c);e.each(f,17,()=>e.get(g),e.index,(m,u)=>{var h=be(),b=e.child(h),_=e.sibling(b,2),Z=e.child(_),F=e.only_child(Z,!0);e.reset(_);var pe=e.sibling(_,2);{var de=G=>{var W=fe(),ce=e.only_child(W,!0);e.template_effect(he=>e.set_text(ce,he),[()=>l()("newBadge")]),e.append(G,W)};e.if_block(pe,G=>{e.get(u).isNew&&G(de)})}e.reset(h),e.template_effect(G=>{e.set_attribute(h,"title",e.get(u).name),e.set_attribute(b,"src",`https:${e.get(u).thumbnail}`),e.set_attribute(b,"alt",e.get(u).name),e.set_text(F,G)},[()=>l()("play")]),e.delegated("click",h,()=>re(e.get(u))),e.append(m,h)});var T=e.sibling(f,2);e.each(T,17,()=>Array(e.get(ae)),e.index,(m,u,h,b)=>{var _=ye();e.append(m,_)}),e.reset(c);var H=e.sibling(c,2);{var V=m=>{var u=e.comment(),h=e.first_child(u);e.key(h,()=>e.get(g).length,b=>{var _=we();e.action(_,(Z,F)=>ne?.(Z,F),()=>Q),e.append(b,_)}),e.append(m,u)};e.if_block(H,m=>{e.get(D)&&m(V)})}e.append(s,o)};e.if_block(r,s=>{e.get(g).length===0&&!e.get(D)?s(i):s(d,-1)})}e.append(t,a)},me=t=>{var a=ke(),r=e.only_child(a,!0);e.template_effect(i=>e.set_text(r,i),[()=>l()("noAvailableEvents")]),e.append(t,a)},ue=t=>{var a=Ge();e.each(a,21,()=>e.get(K),e.index,(r,i)=>{var d=Te(),s=e.only_child(d);e.template_effect(o=>e.set_text(s,`${e.get(i).rule??""} ${o??""}`),[()=>l()("contribution")]),e.append(r,d)}),e.reset(a),e.append(t,a)};e.if_block(le,t=>{e.get(te)?t(ie):e.get(K).length===0?t(me,1):t(ue,-1)})}e.reset(C),e.bind_this(C,t=>e.set(P,t),()=>e.get(P)),e.append(v,C);var ge=e.pop(se);return $(),ge}e.delegate(["click"]);e.create_custom_element(Y,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},tournamentname:{},totalGames:{},platform:{},tournamentMetadata:{},translationurl:{},hasCasino:{},hasSports:{}},[],[],{mode:"open"});exports.TournamentGames=Y;exports.scrollToSection=X;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var te=(d,s,l)=>new Promise((T,C)=>{var y=u=>{try{p(l.next(u))}catch(c){C(c)}},G=u=>{try{p(l.throw(u))}catch(c){C(c)}},p=u=>u.done?T(u.value):Promise.resolve(u.value).then(y,G);p((l=l.apply(d,s)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-DYQwo1l2.cjs"),k=require("./TournamentLeaderboard-C3iblI14.cjs"),fe=require("./translations-B2zzqYUc.cjs"),ae=(d,s=!1)=>{if(!d)return;const l=parseFloat(getComputedStyle(d).scrollMarginTop)||0;if(s&&d.getBoundingClientRect().top>=l)return;const T=window.matchMedia("(prefers-reduced-motion: reduce)").matches;d.scrollIntoView({behavior:T?"auto":"smooth",block:"start"})};var be=e.from_html('<div class="tournament-games__tabs svelte-49hxa3" role="tablist"><button type="button" role="tab"> </button> <button type="button" role="tab"> </button></div>'),ye=e.from_html('<div class="tournament-games__empty svelte-49hxa3"><p class="tournament-games__empty-title svelte-49hxa3"> </p> <p class="tournament-games__empty-description svelte-49hxa3"> </p></div>'),we=e.from_html('<span class="tournament-games__badge svelte-49hxa3"> </span>'),Se=e.from_html('<button type="button" class="tournament-games__game svelte-49hxa3"><img class="tournament-games__image svelte-49hxa3" loading="lazy"/> <span class="tournament-games__play svelte-49hxa3" aria-hidden="true"><span class="tournament-games__play-button svelte-49hxa3"> </span></span> <!></button>'),ke=e.from_html('<span class="tournament-games__game tournament-games__game--placeholder svelte-49hxa3" aria-hidden="true"></span>'),Te=e.from_html('<div class="tournament-games__sentinel svelte-49hxa3"></div>'),Ge=e.from_html('<div class="tournament-games__grid svelte-49hxa3"><!> <!></div> <!>',1),Me=e.from_html('<p class="tournament-games__empty svelte-49hxa3"> </p>'),Ae=e.from_html('<li class="svelte-49hxa3"> </li>'),Ee=e.from_html('<ul class="tournament-games__events svelte-49hxa3"></ul>'),ze=e.from_html('<div class="tournament-games svelte-49hxa3"><!> <!></div>');const Ce={hash:"svelte-49hxa3",code:`.tournament-games.svelte-49hxa3 {scroll-margin-top:80px;display:flex;flex-direction:column;gap:20px;color:var(--text-subtle, rgba(223, 227, 232, 1));.tournament-games__tabs:where(.svelte-49hxa3) {display:flex;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));width:max-content;max-width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {position:relative;flex:0 0 auto;height:31px;padding:0 10px;border:0;background:transparent;color:var(--text-subtle, rgba(223, 227, 232, 1));font:inherit;font-size:14px;font-weight:500;cursor:pointer;line-height:145%;min-width:206px;&.active {color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:700;&::after {content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--pagination-bg-selected, rgba(255, 204, 0, 1));}}}.tournament-games__grid:where(.svelte-49hxa3) {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:8px;}.tournament-games__game:where(.svelte-49hxa3) {position:relative;display:block;width:100%;align-self:start;padding:0;overflow:hidden;border:0;border-radius:6px;background:transparent;line-height:0;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}&:focus-visible .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
2
|
+
|
|
3
|
+
@media (hover: hover) {&:hover .tournament-games__play:where(.svelte-49hxa3) {opacity:1;}
|
|
4
|
+
}}.tournament-games__play:where(.svelte-49hxa3) {position:absolute;inset:0;z-index:2;display:flex;justify-content:center;align-items:center;border-radius:6px;background:rgba(0, 0, 0, 0.6);line-height:1;opacity:0;transition:opacity 0.2s ease;}.tournament-games__play-button:where(.svelte-49hxa3) {display:flex;justify-content:center;align-items:center;min-width:50%;padding:8px 16px;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, rgba(38, 29, 0, 1));font-size:13px;font-weight:600;}.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:120px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));cursor:default;
|
|
5
|
+
animation: svelte-49hxa3-tournament-games-pulse 1.2s ease-in-out infinite;}.tournament-games__image:where(.svelte-49hxa3) {display:block;width:100%;height:120px;object-fit:cover;border-radius:6px;}.tournament-games__badge:where(.svelte-49hxa3) {position:absolute;top:10px;left:9.6px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--primary-400, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}.tournament-games__sentinel:where(.svelte-49hxa3) {height:1px;margin-top:-16px;}.tournament-games__events:where(.svelte-49hxa3) {display:flex;flex-direction:column;gap:24px;margin:0;padding:0;font-size:12px;line-height:1.4;list-style:none;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.tournament-games__empty:where(.svelte-49hxa3) {display:flex;flex-direction:column;align-items:center;gap:8px;padding:63px 16px;text-align:center;p:where(.svelte-49hxa3) {margin:0;}}.tournament-games__empty-title:where(.svelte-49hxa3) {color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;font-weight:700;}.tournament-games__empty-description:where(.svelte-49hxa3) {max-width:340px;color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-size:14px;font-weight:500;}}
|
|
6
|
+
|
|
7
|
+
@keyframes svelte-49hxa3-tournament-games-pulse {
|
|
8
|
+
50% {
|
|
9
|
+
opacity: 0.5;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (max-width: 767px) {.tournament-games.svelte-49hxa3 {.tournament-games__tabs:where(.svelte-49hxa3) {width:100%;}.tournament-games__tab:where(.svelte-49hxa3) {flex:1;min-width:0;font-size:12px;font-weight:400;}.tournament-games__grid:where(.svelte-49hxa3) {grid-template-columns:repeat(3, minmax(0, 1fr));}.tournament-games__image:where(.svelte-49hxa3),
|
|
14
|
+
.tournament-games__game--placeholder:where(.svelte-49hxa3) {height:75px;}.tournament-games__badge:where(.svelte-49hxa3) {top:5px;left:4.67px;}}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (prefers-reduced-motion: reduce) {.tournament-games.svelte-49hxa3 .tournament-games__game--placeholder:where(.svelte-49hxa3) {
|
|
18
|
+
animation: none;}.tournament-games.svelte-49hxa3 .tournament-games__play:where(.svelte-49hxa3) {transition:none;}
|
|
19
|
+
}`};function ne(d,s){var Y,$;e.push(s,!0),e.append_styles(d,Ce);const l=()=>e.store_get(e.$format,"$_",T),[T,C]=e.setup_stores(),y=e.prop(s,"initialGames",7),G=e.prop(s,"endpoint",7),p=e.prop(s,"language",7,"en"),u=e.prop(s,"session",7),c=e.prop(s,"tournamentid",7),L=e.prop(s,"tournamentname",7,""),R=e.prop(s,"totalGames",7),j=e.prop(s,"platform",7),B=e.prop(s,"tournamentMetadata",7),I=e.prop(s,"translationurl",7),M=e.prop(s,"hasCasino",7,!0),A=e.prop(s,"hasSports",7,!1);e.registerTranslations(fe.TRANSLATIONS$1),e.setLocale(p());const re=()=>{e.setLocale(p())};e.user_pre_effect(()=>{I()&&e.loadTranslations(I())}),e.user_effect(()=>{re()});let v=e.state(e.proxy(y()||[])),O=e.state(e.proxy(($=R())!=null?$:((Y=y())==null?void 0:Y.length)||0)),P=e.state(!1),x=e.state(e.proxy(M()||!A()?"casino":"sports")),q=e.state(null);const U=t=>{t!==e.get(x)&&(e.set(x,t,!0),k.sendGamesSubTabClicked({id:c(),nameOrTitle:L()},t),e.tick().then(()=>ae(e.get(q),!0)))},D=e.user_derived(()=>M()&&A()),se=e.user_derived(()=>e.get(D)?e.get(x)==="casino":!A()||M()),H=e.user_derived(()=>e.get(v).length<e.get(O)),oe=e.user_derived(()=>Math.min(Math.max(e.get(O)-e.get(v).length,0),k.GAMES_PAGE_SIZE)),V=e.user_derived(()=>{var a,n;const t=(n=(a=B())==null?void 0:a.sports)==null?void 0:n.rules;if(!t)return[];try{const r=JSON.parse(t);return r[p()]||r["*"]||[]}catch(r){return console.log(r),[]}}),W=()=>te(this,null,function*(){var t,a,n,r;if(!(!e.get(H)||e.get(P))){e.set(P,!0);try{const o=yield k.fetchTournament({endpoint:G(),language:p(),platform:j(),session:u(),tournamentid:c(),filterById:!0,gamesLimit:k.GAMES_PAGE_SIZE,gamesOffset:e.get(v).length});e.set(v,[...e.get(v),...(a=(t=o==null?void 0:o.games)==null?void 0:t.items)!=null?a:[]],!0),e.set(O,(r=(n=o==null?void 0:o.games)==null?void 0:n.total)!=null?r:e.get(O),!0)}catch(o){console.log(o)}finally{e.set(P,!1)}}});e.user_effect(()=>{e.untrack(()=>W())});const Z=(t,a)=>{const n=new IntersectionObserver(r=>{r.some(o=>o.isIntersecting)&&a()},{rootMargin:k.GAMES_ROOT_MARGIN});return n.observe(t),{destroy(){n.disconnect()}}},le=t=>{k.sendPlayGame(t,{id:c(),nameOrTitle:L()},e.get(D)?e.get(x):void 0)};var ie={get initialGames(){return y()},set initialGames(t){y(t),e.flushSync()},get endpoint(){return G()},set endpoint(t){G(t),e.flushSync()},get language(){return p()},set language(t="en"){p(t),e.flushSync()},get session(){return u()},set session(t){u(t),e.flushSync()},get tournamentid(){return c()},set tournamentid(t){c(t),e.flushSync()},get tournamentname(){return L()},set tournamentname(t=""){L(t),e.flushSync()},get totalGames(){return R()},set totalGames(t){R(t),e.flushSync()},get platform(){return j()},set platform(t){j(t),e.flushSync()},get tournamentMetadata(){return B()},set tournamentMetadata(t){B(t),e.flushSync()},get translationurl(){return I()},set translationurl(t){I(t),e.flushSync()},get hasCasino(){return M()},set hasCasino(t=!0){M(t),e.flushSync()},get hasSports(){return A()},set hasSports(t=!1){A(t),e.flushSync()}},N=ze(),X=e.child(N);{var me=t=>{var a=be(),n=e.child(a);let r;var o=e.only_child(n,!0),i=e.sibling(n,2);let m;var g=e.only_child(i,!0);e.reset(a),e.template_effect((w,E)=>{r=e.set_class(n,1,"tournament-games__tab svelte-49hxa3",null,r,{active:e.get(x)==="casino"}),e.set_attribute(n,"aria-selected",e.get(x)==="casino"),e.set_text(o,w),m=e.set_class(i,1,"tournament-games__tab svelte-49hxa3",null,m,{active:e.get(x)==="sports"}),e.set_attribute(i,"aria-selected",e.get(x)==="sports"),e.set_text(g,E)},[()=>l()("casinoTab"),()=>l()("sportsTab")]),e.delegated("click",n,()=>U("casino")),e.delegated("click",i,()=>U("sports")),e.append(t,a)};e.if_block(X,t=>{e.get(D)&&t(me)})}var ue=e.sibling(X,2);{var ge=t=>{var a=e.comment(),n=e.first_child(a);{var r=i=>{var m=ye(),g=e.child(m),w=e.only_child(g,!0),E=e.sibling(g,2),F=e.only_child(E,!0);e.reset(m),e.template_effect((J,h)=>{e.set_text(w,J),e.set_text(F,h)},[()=>l()("noAvailableGames"),()=>l()("noAvailableGamesDescription")]),e.append(i,m)},o=i=>{var m=Ge(),g=e.first_child(m),w=e.child(g);e.each(w,17,()=>e.get(v),e.index,(h,_)=>{var f=Se(),S=e.child(f),b=e.sibling(S,2),K=e.child(b),Q=e.only_child(K,!0);e.reset(b);var he=e.sibling(b,2);{var _e=z=>{var ee=we(),ve=e.only_child(ee,!0);e.template_effect(xe=>e.set_text(ve,xe),[()=>l()("newBadge")]),e.append(z,ee)};e.if_block(he,z=>{e.get(_).isNew&&z(_e)})}e.reset(f),e.template_effect(z=>{e.set_attribute(f,"title",e.get(_).name),e.set_attribute(S,"src",`https:${e.get(_).thumbnail}`),e.set_attribute(S,"alt",e.get(_).name),e.set_text(Q,z)},[()=>l()("play")]),e.delegated("click",f,()=>le(e.get(_))),e.append(h,f)});var E=e.sibling(w,2);e.each(E,17,()=>Array(e.get(oe)),e.index,(h,_,f,S)=>{var b=ke();e.append(h,b)}),e.reset(g);var F=e.sibling(g,2);{var J=h=>{var _=e.comment(),f=e.first_child(_);e.key(f,()=>e.get(v).length,S=>{var b=Te();e.action(b,(K,Q)=>Z==null?void 0:Z(K,Q),()=>W),e.append(S,b)}),e.append(h,_)};e.if_block(F,h=>{e.get(H)&&h(J)})}e.append(i,m)};e.if_block(n,i=>{e.get(v).length===0&&!e.get(H)?i(r):i(o,-1)})}e.append(t,a)},pe=t=>{var a=Me(),n=e.only_child(a,!0);e.template_effect(r=>e.set_text(n,r),[()=>l()("noAvailableEvents")]),e.append(t,a)},de=t=>{var a=Ee();e.each(a,21,()=>e.get(V),e.index,(n,r)=>{var o=Ae(),i=e.only_child(o);e.template_effect(m=>{var g;return e.set_text(i,`${(g=e.get(r).rule)!=null?g:""} ${m!=null?m:""}`)},[()=>l()("contribution")]),e.append(n,o)}),e.reset(a),e.append(t,a)};e.if_block(ue,t=>{e.get(se)?t(ge):e.get(V).length===0?t(pe,1):t(de,-1)})}e.reset(N),e.bind_this(N,t=>e.set(q,t),()=>e.get(q)),e.append(d,N);var ce=e.pop(ie);return C(),ce}e.delegate(["click"]);e.create_custom_element(ne,{initialGames:{},endpoint:{},language:{},session:{},tournamentid:{},tournamentname:{},totalGames:{},platform:{},tournamentMetadata:{},translationurl:{},hasCasino:{},hasSports:{}},[],[],{mode:"open"});exports.TournamentGames=ne;exports.scrollToSection=ae;
|