@everymatrix/tournament-details-page 0.2.3 → 0.2.5
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-CQ9xzPNv.cjs → ChartIcon-Befgjhbq.cjs} +1 -1
- package/components/{ChartIcon-Bpak0Ha5.js → ChartIcon-Cijyoj4D.js} +1 -1
- package/components/{ChartIcon-jHYM_pz4.cjs → ChartIcon-DHA4OiwS.cjs} +1 -1
- package/components/{ChartIcon-Bhz3dlNt.js → ChartIcon-R4lVwti5.js} +1 -1
- package/components/{CoinStackIcon-w0E7Vjou.cjs → CoinStackIcon-BJ5Cza44.cjs} +1 -1
- package/components/{CoinStackIcon-Ccp3qOAA.js → CoinStackIcon-C1F7M7aX.js} +1 -1
- package/components/{CoinStackIcon-6LCcPwql.js → CoinStackIcon-D3SYgfiW.js} +1 -1
- package/components/{CoinStackIcon-gHBgq0A7.cjs → CoinStackIcon-DaTufppr.cjs} +1 -1
- package/components/{DocumentsIcon-SkzMlDao.js → DocumentsIcon-B8czAvSb.js} +1 -1
- package/components/{DocumentsIcon-D7v18JHm.cjs → DocumentsIcon-C-xeVT_v.cjs} +1 -1
- package/components/{DocumentsIcon-CCY_TgTL.js → DocumentsIcon-DNlyMYIU.js} +1 -1
- package/components/{DocumentsIcon-TikJpiUM.cjs → DocumentsIcon-SuePRQNo.cjs} +1 -1
- package/components/{FootballIcon-BxC3qLd6.cjs → FootballIcon-B8X-AjbG.cjs} +1 -1
- package/components/{FootballIcon-2V3-bZP6.cjs → FootballIcon-C4eNGKY4.cjs} +1 -1
- package/components/{FootballIcon-DiVQPE5J.js → FootballIcon-DVZ96gIt.js} +1 -1
- package/components/{FootballIcon-CNGC-ysJ.js → FootballIcon-u7l6pKui.js} +1 -1
- package/components/{PeopleIcon-nbIehGXq.cjs → PeopleIcon-BflWZAxo.cjs} +1 -1
- package/components/{PeopleIcon-CeTcZT9N.js → PeopleIcon-DLW94oOG.js} +1 -1
- package/components/{PeopleIcon-CIePqv40.cjs → PeopleIcon-DciAxL_a.cjs} +1 -1
- package/components/{PeopleIcon-DE_VDpzu.js → PeopleIcon-s7Ccyi1V.js} +1 -1
- package/components/{RankArrowIcon-CwlkgpW2.js → RankArrowIcon-97fk5fg5.js} +1 -1
- package/components/{RankArrowIcon-DeVP6SqV.js → RankArrowIcon-FXyB2gGq.js} +1 -1
- package/components/{RankArrowIcon-N3Rja8qO.cjs → RankArrowIcon-SoYkNu_W.cjs} +1 -1
- package/components/{RankArrowIcon-Dfflx6jx.cjs → RankArrowIcon-hrpZ9ET-.cjs} +1 -1
- package/components/{SlotMachineIcon-BfZMN8W8.js → SlotMachineIcon-BNa44gB0.js} +1 -1
- package/components/{SlotMachineIcon-B8LXNyS_.cjs → SlotMachineIcon-CaTi0xrT.cjs} +1 -1
- package/components/{SlotMachineIcon-Bcda_Xmo.js → SlotMachineIcon-CpTV5Gjw.js} +1 -1
- package/components/{SlotMachineIcon-BB--rwxm.cjs → SlotMachineIcon-DyoJSpjm.cjs} +1 -1
- package/components/{StatusBadge-48pKkesj.js → StatusBadge-1cAE-BMW.js} +1 -1
- package/components/{StatusBadge-CiBujliJ.cjs → StatusBadge-CMV-2nkA.cjs} +1 -1
- package/components/{StatusBadge-Bi4UTGIK.cjs → StatusBadge-DYQwo1l2.cjs} +1 -1
- package/components/{StatusBadge-BUU_5AgK.js → StatusBadge-Dz7gL5NT.js} +1 -1
- package/components/{TournamentActions-CZGHUCTG.js → TournamentActions-B4XIKdGS.js} +3 -3
- package/components/{TournamentActions-DrwI70Qj.js → TournamentActions-CIe9g5tR.js} +3 -3
- package/components/{TournamentActions-DYS3Zas8.cjs → TournamentActions-D0kIKeFb.cjs} +1 -1
- package/components/{TournamentActions-yR_aN1JY.cjs → TournamentActions-DHAVf_xi.cjs} +1 -1
- package/components/{TournamentDetailsPage-DEpxQPEA.cjs → TournamentDetailsPage-5vGjPG32.cjs} +2 -2
- package/components/{TournamentDetailsPage-Bp60Uk-8.js → TournamentDetailsPage-CQdLNEwc.js} +10 -10
- package/components/{TournamentDetailsPage-BuiUVQhu.cjs → TournamentDetailsPage-CdsWSXuQ.cjs} +2 -2
- package/components/{TournamentDetailsPage-Dnv8IQ1B.js → TournamentDetailsPage-DdXVtbXN.js} +10 -10
- package/components/{TournamentDetailsSkeleton-B7Qc2qaP.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-qTpuepan.js → TournamentDetailsSkeleton-DA318hry.js} +8 -8
- package/components/{TournamentDetailsSkeleton-CFgmljN6.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-Dn6_fjHV.js → TournamentDetailsSkeleton-DthtZKyT.js} +8 -8
- 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-B8k7urkf.js → TournamentImage-87bhDEnk.js} +1 -1
- package/components/{TournamentImage-DAfP40BM.js → TournamentImage-D0na0-p6.js} +1 -1
- package/components/{TournamentImage-By_eps51.cjs → TournamentImage-D6eLaW4m.cjs} +1 -1
- package/components/{TournamentImage-BxojXrGF.cjs → TournamentImage-DK1HgudW.cjs} +1 -1
- package/components/{TournamentLeaderboard-C1uFc5GZ.cjs → TournamentLeaderboard-C3iblI14.cjs} +9 -9
- package/components/{TournamentLeaderboard-Bk72WFe2.js → TournamentLeaderboard-Cc-xMiwP.js} +179 -179
- package/components/{TournamentLeaderboard-cnaAJbty.js → TournamentLeaderboard-DvvnA47t.js} +252 -252
- package/components/{TournamentLeaderboard-BHGPwbuz.cjs → TournamentLeaderboard-NEJ1wTBv.cjs} +2 -2
- 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-DPIK4FyI.cjs → TournamentSummary-BY9YlM53.cjs} +1 -1
- package/components/{TournamentSummary-DRt9iIEz.js → TournamentSummary-CewShnfd.js} +6 -6
- package/components/{TournamentSummary-DAVQCaqt.js → TournamentSummary-D_DLGxO7.js} +6 -6
- package/components/{TournamentSummary-BvxGV6na.cjs → TournamentSummary-Dy6cHmly.cjs} +1 -1
- package/components/{TournamentTabs-D4lAhT6v.cjs → TournamentTabs-3OdZuIOf.cjs} +1 -1
- package/components/{TournamentTabs-C5mZ8N3x.cjs → TournamentTabs-BDsQomg2.cjs} +1 -1
- package/components/{TournamentTabs-DOIFHU3l.js → TournamentTabs-mlb4UDEZ.js} +2 -2
- package/components/{TournamentTabs-BVNuWoQ4.js → TournamentTabs-yOsQleAI.js} +2 -2
- package/components/{TrophyIcon-95ROc4Lc.cjs → TrophyIcon-CUdep5Qu.cjs} +1 -1
- package/components/{TrophyIcon-BqeMso6k.js → TrophyIcon-D6xEdEIW.js} +1 -1
- package/components/{TrophyIcon-BuT5Q6K0.cjs → TrophyIcon-DJDEDfa7.cjs} +1 -1
- package/components/{TrophyIcon-BolnMSK-.js → TrophyIcon-rK1Ad8lv.js} +1 -1
- package/components/{translations-CPDBBwzN.cjs → translations-B2zzqYUc.cjs} +1 -1
- package/components/{translations-CzV51BzW.js → translations-BPv4iAvC.js} +10 -7
- package/components/{translations-CoULEJN6.js → translations-BY4crXAR.js} +10 -7
- package/components/{translations-Bgd_tQSB.cjs → translations-CmWDttoq.cjs} +1 -1
- 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/TournamentGames-BHzZyU1T.cjs +0 -19
- package/components/TournamentGames-BSbbbGfz.js +0 -313
- package/components/TournamentGames-D9NuiZl1.js +0 -291
- package/components/TournamentGames-Zkp7iS-3.cjs +0 -19
- package/components/TournamentRules-B392M3KD.js +0 -138
- package/components/TournamentRules-BpcwEy6C.cjs +0 -6
- package/components/TournamentRules-D8ePsXfz.js +0 -143
- package/components/TournamentRules-DRhqdG_B.cjs +0 -6
|
@@ -14,15 +14,15 @@ var I = (x, i, f) => new Promise((L, S) => {
|
|
|
14
14
|
}, c = (l) => l.done ? L(l.value) : Promise.resolve(l.value).then(T, b);
|
|
15
15
|
c((f = f.apply(x, i)).next());
|
|
16
16
|
});
|
|
17
|
-
import { c as Re, g as Le, a as et, p as u, a1 as tt, D as nt, E as Se, G as q, F as at, J as rt, o as m, H as E, L as K, j as e, m as r, i as P, s as _, b as C, d as Oe, u as y, f as z, h as M, q as d, I as it, V as st, $ as ot, r as R, T as lt, K as ut, t as re, l as ie, v as dt } from "./StatusBadge-
|
|
18
|
-
import { t as mt, k as we, D as ct, f as gt, l as pt, T as Be, m as bt, n as vt, o as kt, p as ft, q as ht, r as yt, u as Tt, v as St, w as wt } from "./TournamentLeaderboard-
|
|
19
|
-
import { s as Me, T as Bt } from "./TournamentGames-
|
|
20
|
-
import { T as Mt } from "./TournamentImage-
|
|
21
|
-
import { T as Rt } from "./TournamentSummary-
|
|
22
|
-
import { T as Lt } from "./TournamentTabs-
|
|
23
|
-
import { T as Ot } from "./TournamentRules-
|
|
24
|
-
import { T as _t } from "./TournamentDetailsSkeleton-
|
|
25
|
-
import { T as xt } from "./TournamentActions-
|
|
17
|
+
import { c as Re, g as Le, a as et, p as u, a1 as tt, D as nt, E as Se, G as q, F as at, J as rt, o as m, H as E, L as K, j as e, m as r, i as P, s as _, b as C, d as Oe, u as y, f as z, h as M, q as d, I as it, V as st, $ as ot, r as R, T as lt, K as ut, t as re, l as ie, v as dt } from "./StatusBadge-1cAE-BMW.js";
|
|
18
|
+
import { t as mt, k as we, D as ct, f as gt, l as pt, T as Be, m as bt, n as vt, o as kt, p as ft, q as ht, r as yt, u as Tt, v as St, w as wt } from "./TournamentLeaderboard-DvvnA47t.js";
|
|
19
|
+
import { s as Me, T as Bt } from "./TournamentGames-VQKGwemr.js";
|
|
20
|
+
import { T as Mt } from "./TournamentImage-D0na0-p6.js";
|
|
21
|
+
import { T as Rt } from "./TournamentSummary-CewShnfd.js";
|
|
22
|
+
import { T as Lt } from "./TournamentTabs-mlb4UDEZ.js";
|
|
23
|
+
import { T as Ot } from "./TournamentRules-D9R2cmXK.js";
|
|
24
|
+
import { T as _t } from "./TournamentDetailsSkeleton-DA318hry.js";
|
|
25
|
+
import { T as xt } from "./TournamentActions-B4XIKdGS.js";
|
|
26
26
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
27
27
|
}, globalThis.customElements = { define() {
|
|
28
28
|
}, get() {
|
|
@@ -264,7 +264,7 @@ function _e(x, i) {
|
|
|
264
264
|
var t;
|
|
265
265
|
return (t = ge(s())) != null ? t : "rules";
|
|
266
266
|
}))), A = m(null), J = m(E({}));
|
|
267
|
-
const V = (t) => e(k) === t || !!e(J)[t];
|
|
267
|
+
const V = (t) => e(k) === t || t === "games" || !!e(J)[t];
|
|
268
268
|
let X = m(!1);
|
|
269
269
|
q(() => {
|
|
270
270
|
const t = ge(s());
|
package/components/{TournamentDetailsSkeleton-B7Qc2qaP.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-qTpuepan.js → TournamentDetailsSkeleton-DA318hry.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { e as N, D as K, h as U, i as W, j as B } from "./TournamentLeaderboard-
|
|
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() {
|
|
@@ -9,7 +9,7 @@ var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span c
|
|
|
9
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 Y = {
|
|
|
24
24
|
animation: none;}
|
|
25
25
|
}`
|
|
26
26
|
};
|
|
27
|
-
function F(
|
|
28
|
-
S(
|
|
29
|
-
const i = O(
|
|
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,7 +34,7 @@ function F(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);
|
|
@@ -69,7 +69,7 @@ function F(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
74
|
E(F, { activeTab: {} }, [], [], { mode: "open" });
|
|
75
75
|
export {
|
package/components/{TournamentDetailsSkeleton-CFgmljN6.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-Dn6_fjHV.js → TournamentDetailsSkeleton-DthtZKyT.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { e as N, D as K, h as U, i as W, j as B } from "./TournamentLeaderboard-
|
|
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() {
|
|
@@ -9,7 +9,7 @@ var H = n('<span class="tournament-details__skeleton--row svelte-wbcf14"><span c
|
|
|
9
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 Y = {
|
|
|
24
24
|
animation: none;}
|
|
25
25
|
}`
|
|
26
26
|
};
|
|
27
|
-
function F(
|
|
28
|
-
S(
|
|
29
|
-
const i = O(
|
|
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,7 +34,7 @@ function F(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);
|
|
@@ -69,7 +69,7 @@ function F(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
74
|
E(F, { activeTab: {} }, [], [], { mode: "open" });
|
|
75
75
|
export {
|
|
@@ -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;
|