@everymatrix/tournament-details-page 0.2.1 → 0.2.3
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-Bhz3dlNt.js +32 -0
- package/components/ChartIcon-Bpak0Ha5.js +32 -0
- package/components/ChartIcon-CQ9xzPNv.cjs +1 -0
- package/components/ChartIcon-jHYM_pz4.cjs +1 -0
- package/components/CoinStackIcon-6LCcPwql.js +32 -0
- package/components/CoinStackIcon-Ccp3qOAA.js +32 -0
- package/components/CoinStackIcon-gHBgq0A7.cjs +1 -0
- package/components/CoinStackIcon-w0E7Vjou.cjs +1 -0
- package/components/DocumentsIcon-CCY_TgTL.js +32 -0
- package/components/DocumentsIcon-D7v18JHm.cjs +1 -0
- package/components/DocumentsIcon-SkzMlDao.js +32 -0
- package/components/DocumentsIcon-TikJpiUM.cjs +1 -0
- package/components/FootballIcon-2V3-bZP6.cjs +1 -0
- package/components/FootballIcon-BxC3qLd6.cjs +1 -0
- package/components/FootballIcon-CNGC-ysJ.js +32 -0
- package/components/FootballIcon-DiVQPE5J.js +32 -0
- package/components/PeopleIcon-CIePqv40.cjs +1 -0
- package/components/PeopleIcon-CeTcZT9N.js +32 -0
- package/components/PeopleIcon-DE_VDpzu.js +32 -0
- package/components/PeopleIcon-nbIehGXq.cjs +1 -0
- package/components/RankArrowIcon-CwlkgpW2.js +32 -0
- package/components/RankArrowIcon-DeVP6SqV.js +32 -0
- package/components/RankArrowIcon-Dfflx6jx.cjs +1 -0
- package/components/RankArrowIcon-N3Rja8qO.cjs +1 -0
- package/components/SlotMachineIcon-B8LXNyS_.cjs +1 -0
- package/components/SlotMachineIcon-BB--rwxm.cjs +1 -0
- package/components/SlotMachineIcon-Bcda_Xmo.js +32 -0
- package/components/SlotMachineIcon-BfZMN8W8.js +32 -0
- package/components/{StatusBadge-BnPuCJnO.js → StatusBadge-48pKkesj.js} +1893 -1831
- package/components/{StatusBadge-DKawANSc.js → StatusBadge-BUU_5AgK.js} +1469 -1407
- package/components/StatusBadge-Bi4UTGIK.cjs +11 -0
- package/components/StatusBadge-CiBujliJ.cjs +11 -0
- package/components/TournamentActions-CZGHUCTG.js +110 -0
- package/components/TournamentActions-DYS3Zas8.cjs +18 -0
- package/components/TournamentActions-DrwI70Qj.js +108 -0
- package/components/TournamentActions-yR_aN1JY.cjs +18 -0
- package/components/{TournamentDetailsPage-DQ5X0Dqc.js → TournamentDetailsPage-Bp60Uk-8.js} +300 -217
- package/components/{TournamentDetailsPage-Cy3rGC6M.cjs → TournamentDetailsPage-BuiUVQhu.cjs} +4 -4
- package/components/{TournamentDetailsPage-D4ZDEGSF.cjs → TournamentDetailsPage-DEpxQPEA.cjs} +4 -4
- package/components/{TournamentDetailsPage-LzqcZox2.js → TournamentDetailsPage-Dnv8IQ1B.js} +347 -264
- package/components/{TournamentDetailsSkeleton-CpEie2Gb.cjs → TournamentDetailsSkeleton-B7Qc2qaP.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-u1WnYDq6.cjs → TournamentDetailsSkeleton-CFgmljN6.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CL0BOfFu.js → TournamentDetailsSkeleton-Dn6_fjHV.js} +17 -17
- package/components/{TournamentDetailsSkeleton-CqfwFamx.js → TournamentDetailsSkeleton-qTpuepan.js} +17 -17
- package/components/TournamentGames-BHzZyU1T.cjs +19 -0
- package/components/TournamentGames-BSbbbGfz.js +313 -0
- package/components/TournamentGames-D9NuiZl1.js +291 -0
- package/components/TournamentGames-Zkp7iS-3.cjs +19 -0
- package/components/{TournamentImage-BxaewAcW.js → TournamentImage-B8k7urkf.js} +61 -51
- package/components/{TournamentImage-BeCXYKda.cjs → TournamentImage-BxojXrGF.cjs} +2 -2
- package/components/{TournamentImage-Dx0Km_cw.cjs → TournamentImage-By_eps51.cjs} +2 -2
- package/components/{TournamentImage-Cp5BEQ0s.js → TournamentImage-DAfP40BM.js} +59 -49
- package/components/TournamentLeaderboard-BHGPwbuz.cjs +44 -0
- package/components/TournamentLeaderboard-Bk72WFe2.js +1500 -0
- package/components/TournamentLeaderboard-C1uFc5GZ.cjs +44 -0
- package/components/TournamentLeaderboard-cnaAJbty.js +1561 -0
- package/components/TournamentRules-B392M3KD.js +138 -0
- package/components/TournamentRules-BpcwEy6C.cjs +6 -0
- package/components/TournamentRules-D8ePsXfz.js +143 -0
- package/components/TournamentRules-DRhqdG_B.cjs +6 -0
- package/components/TournamentSummary-BvxGV6na.cjs +3 -0
- package/components/TournamentSummary-DAVQCaqt.js +145 -0
- package/components/TournamentSummary-DPIK4FyI.cjs +3 -0
- package/components/TournamentSummary-DRt9iIEz.js +150 -0
- package/components/{TournamentTabs-DpLpOYtB.js → TournamentTabs-BVNuWoQ4.js} +14 -14
- package/components/{TournamentTabs-DEQtwaH4.cjs → TournamentTabs-C5mZ8N3x.cjs} +1 -1
- package/components/{TournamentTabs-EGrABVKQ.cjs → TournamentTabs-D4lAhT6v.cjs} +1 -1
- package/components/{TournamentTabs-FzkOjNA3.js → TournamentTabs-DOIFHU3l.js} +18 -18
- package/components/TrophyIcon-95ROc4Lc.cjs +1 -0
- package/components/TrophyIcon-BolnMSK-.js +32 -0
- package/components/TrophyIcon-BqeMso6k.js +32 -0
- package/components/TrophyIcon-BuT5Q6K0.cjs +1 -0
- package/components/translations-Bgd_tQSB.cjs +1 -0
- package/components/translations-CPDBBwzN.cjs +1 -0
- package/components/{translations-BQS5XycD.js → translations-CoULEJN6.js} +37 -5
- package/components/{translations-DPzojb4V.js → translations-CzV51BzW.js} +37 -5
- 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-BVcNxptf.cjs +0 -8
- package/components/StatusBadge-CV5WC0Fx.cjs +0 -8
- package/components/TournamentGames-B6UkeuiX.js +0 -821
- package/components/TournamentGames-CYxz1Jcl.cjs +0 -34
- package/components/TournamentGames-DO01jBJs.js +0 -799
- package/components/TournamentGames-Dt7xzVBn.cjs +0 -34
- package/components/TournamentLeaderboard-BufvnLFX.js +0 -1393
- package/components/TournamentLeaderboard-D1mX3sal.cjs +0 -38
- package/components/TournamentLeaderboard-D9OPwUvy.cjs +0 -38
- package/components/TournamentLeaderboard-Dqbb_r0i.js +0 -1451
- package/components/TournamentRules-BbxvSZdU.cjs +0 -6
- package/components/TournamentRules-Bsxb9Asj.js +0 -144
- package/components/TournamentRules-DX1CVsV7.cjs +0 -6
- package/components/TournamentRules-SECANCVS.js +0 -149
- package/components/TournamentSummary-Ardxi8yJ.js +0 -159
- package/components/TournamentSummary-BGk055-K.cjs +0 -3
- package/components/TournamentSummary-CizBbtzd.cjs +0 -3
- package/components/TournamentSummary-Dnj0Cnzu.js +0 -154
- package/components/translations-BSe2qToO.cjs +0 -1
- package/components/translations-FufS-X5l.cjs +0 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { c as te, g as ae, a as se, p as $, i as x, _ as I, b as d, d as re, f as u, h as r, q as S, I as le, j as c, s as n, r as a, u as P, V as ne, $ as ie, O as U, M as j, t as q, N as w, P as oe } from "./StatusBadge-BUU_5AgK.js";
|
|
2
|
+
import { S as ve } from "./TournamentLeaderboard-Bk72WFe2.js";
|
|
3
|
+
import { T as pe } from "./TrophyIcon-BolnMSK-.js";
|
|
4
|
+
import { C as de } from "./ChartIcon-Bhz3dlNt.js";
|
|
5
|
+
import { C as ue } from "./CoinStackIcon-6LCcPwql.js";
|
|
6
|
+
import { S as _e } from "./SlotMachineIcon-Bcda_Xmo.js";
|
|
7
|
+
import { F as he } from "./FootballIcon-DiVQPE5J.js";
|
|
8
|
+
import { D as ce } from "./DocumentsIcon-SkzMlDao.js";
|
|
9
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
10
|
+
}, globalThis.customElements = { define() {
|
|
11
|
+
}, get() {
|
|
12
|
+
}, whenDefined() {
|
|
13
|
+
} });
|
|
14
|
+
var me = u("<li> </li>"), fe = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'), A = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'), xe = u('<p class="svelte-1hqp0j7"> </p>'), ge = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'), je = u('<li class="svelte-1hqp0j7"> </li>'), qe = u('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'), we = u('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');
|
|
15
|
+
const be = {
|
|
16
|
+
hash: "svelte-1hqp0j7",
|
|
17
|
+
code: `.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
|
|
18
|
+
ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
|
|
19
|
+
p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
|
|
20
|
+
|
|
21
|
+
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
22
|
+
}`
|
|
23
|
+
};
|
|
24
|
+
function Ce(E, b) {
|
|
25
|
+
ae(b, !0), se(E, be);
|
|
26
|
+
const m = () => ne(ie, "$_", N), [N, V] = le(), i = $(b, "tournament", 7), C = $(b, "casinoRules", 7, ""), R = $(b, "sportRules", 23, () => []), M = P(() => [...i().prizes ?? []].sort((e, t) => e.rank - t.rank).map((e) => ({
|
|
27
|
+
place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
|
|
28
|
+
name: e.name
|
|
29
|
+
}))), B = P(() => ve[i().scoreCriteria]);
|
|
30
|
+
var Y = {
|
|
31
|
+
get tournament() {
|
|
32
|
+
return i();
|
|
33
|
+
},
|
|
34
|
+
set tournament(e) {
|
|
35
|
+
i(e), S();
|
|
36
|
+
},
|
|
37
|
+
get casinoRules() {
|
|
38
|
+
return C();
|
|
39
|
+
},
|
|
40
|
+
set casinoRules(e = "") {
|
|
41
|
+
C(e), S();
|
|
42
|
+
},
|
|
43
|
+
get sportRules() {
|
|
44
|
+
return R();
|
|
45
|
+
},
|
|
46
|
+
set sportRules(e = []) {
|
|
47
|
+
R(e), S();
|
|
48
|
+
}
|
|
49
|
+
}, y = we(), D = r(y);
|
|
50
|
+
{
|
|
51
|
+
var G = (e) => {
|
|
52
|
+
var t = fe(), s = r(t), o = r(s);
|
|
53
|
+
pe(o, { width: 16, height: 16 }), a(s);
|
|
54
|
+
var l = n(s, 2);
|
|
55
|
+
U(l, 21, () => c(M), (v) => v.place, (v, f) => {
|
|
56
|
+
var _ = me(), h = j(_, !0);
|
|
57
|
+
q((p) => w(h, p), [
|
|
58
|
+
() => m()("prizePlace", {
|
|
59
|
+
values: { place: c(f).place, prize: c(f).name }
|
|
60
|
+
})
|
|
61
|
+
]), d(v, _);
|
|
62
|
+
}), a(l), a(t), d(e, t);
|
|
63
|
+
};
|
|
64
|
+
x(D, (e) => {
|
|
65
|
+
c(M).length > 0 && e(G);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
var L = n(D, 2);
|
|
69
|
+
{
|
|
70
|
+
var J = (e) => {
|
|
71
|
+
var t = A(), s = r(t), o = r(s);
|
|
72
|
+
de(o, { width: 16, height: 16 }), a(s);
|
|
73
|
+
var l = n(s, 2);
|
|
74
|
+
I(l, () => m()(c(B)), !0), a(l), a(t), d(e, t);
|
|
75
|
+
};
|
|
76
|
+
x(L, (e) => {
|
|
77
|
+
c(B) && e(J);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var z = n(L, 2);
|
|
81
|
+
{
|
|
82
|
+
var Q = (e) => {
|
|
83
|
+
var t = A(), s = r(t), o = r(s);
|
|
84
|
+
ue(o, { width: 16, height: 16 }), a(s);
|
|
85
|
+
var l = n(s, 2);
|
|
86
|
+
I(l, () => m()("miniBetCount", { values: { betCount: i().minBetCount } }), !0), a(l), a(t), d(e, t);
|
|
87
|
+
};
|
|
88
|
+
x(z, (e) => {
|
|
89
|
+
i().minBetCount && e(Q);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
var F = n(z, 2);
|
|
93
|
+
{
|
|
94
|
+
var W = (e) => {
|
|
95
|
+
var t = ge(), s = r(t), o = r(s);
|
|
96
|
+
_e(o, { width: 16, height: 16 }), a(s);
|
|
97
|
+
var l = n(s, 2), v = r(l), f = j(v), _ = n(v, 2);
|
|
98
|
+
{
|
|
99
|
+
var h = (p) => {
|
|
100
|
+
var g = xe(), T = j(g, !0);
|
|
101
|
+
q(() => w(T, C())), d(p, g);
|
|
102
|
+
};
|
|
103
|
+
x(_, (p) => {
|
|
104
|
+
C() && p(h);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
a(l), a(t), q((p) => w(f, `${p ?? ""}:`), [() => m()("forCasino")]), d(e, t);
|
|
108
|
+
};
|
|
109
|
+
x(F, (e) => {
|
|
110
|
+
i().wallet?.casino && e(W);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
var H = n(F, 2);
|
|
114
|
+
{
|
|
115
|
+
var X = (e) => {
|
|
116
|
+
var t = qe(), s = r(t), o = r(s);
|
|
117
|
+
he(o, { width: 16, height: 16 }), a(s);
|
|
118
|
+
var l = n(s, 2), v = r(l), f = j(v), _ = n(v, 2);
|
|
119
|
+
U(_, 21, R, oe, (h, p) => {
|
|
120
|
+
var g = je(), T = j(g, !0);
|
|
121
|
+
q(() => w(T, c(p))), d(h, g);
|
|
122
|
+
}), a(_), a(l), a(t), q((h) => w(f, `${h ?? ""}:`), [() => m()("forSportsbook")]), d(e, t);
|
|
123
|
+
};
|
|
124
|
+
x(H, (e) => {
|
|
125
|
+
i().wallet?.sports && R().length > 0 && e(X);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
var K = n(H, 2), k = r(K), Z = r(k);
|
|
129
|
+
ce(Z, { width: 16, height: 16 }), a(k);
|
|
130
|
+
var O = n(k, 2);
|
|
131
|
+
I(O, () => m()("termsLink", { values: { tcUrl: i().termsUrl || "#" } }), !0), a(O), a(K), a(y), d(E, y);
|
|
132
|
+
var ee = re(Y);
|
|
133
|
+
return V(), ee;
|
|
134
|
+
}
|
|
135
|
+
te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
|
|
136
|
+
export {
|
|
137
|
+
Ce as T
|
|
138
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-Bi4UTGIK.cjs"),O=require("./TournamentLeaderboard-C1uFc5GZ.cjs"),P=require("./TrophyIcon-95ROc4Lc.cjs"),Y=require("./ChartIcon-jHYM_pz4.cjs"),$=require("./CoinStackIcon-gHBgq0A7.cjs"),G=require("./SlotMachineIcon-B8LXNyS_.cjs"),J=require("./FootballIcon-2V3-bZP6.cjs"),N=require("./DocumentsIcon-D7v18JHm.cjs");var Q=e.from_html("<li> </li>"),V=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'),T=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'),W=e.from_html('<p class="svelte-1hqp0j7"> </p>'),X=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'),Z=e.from_html('<li class="svelte-1hqp0j7"> </li>'),ee=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'),te=e.from_html('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');const se={hash:"svelte-1hqp0j7",code:`.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
|
|
2
|
+
ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
|
|
3
|
+
p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
|
|
4
|
+
|
|
5
|
+
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
6
|
+
}`};function E(q,u){e.push(u,!0),e.append_styles(q,se);const _=()=>e.store_get(e.$format,"$_",B),[B,L]=e.setup_stores(),a=e.prop(u,"tournament",7),v=e.prop(u,"casinoRules",7,""),m=e.prop(u,"sportRules",23,()=>[]),j=e.user_derived(()=>{var s;return[...(s=a().prizes)!=null?s:[]].sort((t,r)=>t.rank-r.rank).map(t=>({place:t.count>1?`${t.rank} - ${t.rank+t.count-1}`:String(t.rank),name:t.name}))}),b=e.user_derived(()=>O.SCORE_CRITERIA_KEYS[a().scoreCriteria]);var M={get tournament(){return a()},set tournament(s){a(s),e.flushSync()},get casinoRules(){return v()},set casinoRules(s=""){v(s),e.flushSync()},get sportRules(){return m()},set sportRules(s=[]){m(s),e.flushSync()}},f=te(),w=e.child(f);{var D=s=>{var t=V(),r=e.child(t),i=e.child(r);P.TrophyIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.each(n,21,()=>e.get(j),o=>o.place,(o,c)=>{var p=Q(),d=e.only_child(p,!0);e.template_effect(l=>e.set_text(d,l),[()=>_()("prizePlace",{values:{place:e.get(c).place,prize:e.get(c).name}})]),e.append(o,p)}),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(w,s=>{e.get(j).length>0&&s(D)})}var y=e.sibling(w,2);{var z=s=>{var t=T(),r=e.child(t),i=e.child(r);Y.ChartIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()(e.get(b)),!0),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(y,s=>{e.get(b)&&s(z)})}var k=e.sibling(y,2);{var F=s=>{var t=T(),r=e.child(t),i=e.child(r);$.CoinStackIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()("miniBetCount",{values:{betCount:a().minBetCount}}),!0),e.reset(n),e.reset(t),e.append(s,t)};e.if_block(k,s=>{a().minBetCount&&s(F)})}var R=e.sibling(k,2);{var H=s=>{var t=X(),r=e.child(t),i=e.child(r);G.SlotMachineIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),o=e.child(n),c=e.only_child(o),p=e.sibling(o,2);{var d=l=>{var h=W(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,v())),e.append(l,h)};e.if_block(p,l=>{v()&&l(d)})}e.reset(n),e.reset(t),e.template_effect(l=>e.set_text(c,`${l!=null?l:""}:`),[()=>_()("forCasino")]),e.append(s,t)};e.if_block(R,s=>{var t;(t=a().wallet)!=null&&t.casino&&s(H)})}var C=e.sibling(R,2);{var K=s=>{var t=ee(),r=e.child(t),i=e.child(r);J.FootballIcon(i,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),o=e.child(n),c=e.only_child(o),p=e.sibling(o,2);e.each(p,21,m,e.index,(d,l)=>{var h=Z(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,e.get(l))),e.append(d,h)}),e.reset(p),e.reset(n),e.reset(t),e.template_effect(d=>e.set_text(c,`${d!=null?d:""}:`),[()=>_()("forSportsbook")]),e.append(s,t)};e.if_block(C,s=>{var t;(t=a().wallet)!=null&&t.sports&&m().length>0&&s(K)})}var I=e.sibling(C,2),g=e.child(I),U=e.child(g);N.DocumentsIcon(U,{width:16,height:16}),e.reset(g);var S=e.sibling(g,2);e.html(S,()=>_()("termsLink",{values:{tcUrl:a().termsUrl||"#"}}),!0),e.reset(S),e.reset(I),e.reset(f),e.append(q,f);var A=e.pop(M);return L(),A}e.create_custom_element(E,{tournament:{},casinoRules:{},sportRules:{}},[],[],{mode:"open"});exports.TournamentRules=E;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { c as te, g as ae, a as se, p as I, i as x, _ as S, b as u, d as re, f as _, h as r, q as E, I as le, j as c, s as n, r as s, u as U, V as ne, $ as ie, O as $, M as j, t as q, N as w, P as oe } from "./StatusBadge-48pKkesj.js";
|
|
2
|
+
import { S as ve } from "./TournamentLeaderboard-cnaAJbty.js";
|
|
3
|
+
import { T as pe } from "./TrophyIcon-BqeMso6k.js";
|
|
4
|
+
import { C as de } from "./ChartIcon-Bpak0Ha5.js";
|
|
5
|
+
import { C as ue } from "./CoinStackIcon-Ccp3qOAA.js";
|
|
6
|
+
import { S as _e } from "./SlotMachineIcon-BfZMN8W8.js";
|
|
7
|
+
import { F as he } from "./FootballIcon-CNGC-ysJ.js";
|
|
8
|
+
import { D as ce } from "./DocumentsIcon-CCY_TgTL.js";
|
|
9
|
+
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
10
|
+
}, globalThis.customElements = { define() {
|
|
11
|
+
}, get() {
|
|
12
|
+
}, whenDefined() {
|
|
13
|
+
} });
|
|
14
|
+
var me = _("<li> </li>"), fe = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'), A = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'), xe = _('<p class="svelte-1hqp0j7"> </p>'), ge = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'), je = _('<li class="svelte-1hqp0j7"> </li>'), qe = _('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'), we = _('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');
|
|
15
|
+
const be = {
|
|
16
|
+
hash: "svelte-1hqp0j7",
|
|
17
|
+
code: `.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
|
|
18
|
+
ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
|
|
19
|
+
p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
|
|
20
|
+
|
|
21
|
+
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
22
|
+
}`
|
|
23
|
+
};
|
|
24
|
+
function Ce(M, b) {
|
|
25
|
+
ae(b, !0), se(M, be);
|
|
26
|
+
const m = () => ne(ie, "$_", N), [N, V] = le(), o = I(b, "tournament", 7), C = I(b, "casinoRules", 7, ""), R = I(b, "sportRules", 23, () => []), B = U(() => {
|
|
27
|
+
var t;
|
|
28
|
+
return [...(t = o().prizes) != null ? t : []].sort((e, a) => e.rank - a.rank).map((e) => ({
|
|
29
|
+
place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
|
|
30
|
+
name: e.name
|
|
31
|
+
}));
|
|
32
|
+
}), D = U(() => ve[o().scoreCriteria]);
|
|
33
|
+
var Y = {
|
|
34
|
+
get tournament() {
|
|
35
|
+
return o();
|
|
36
|
+
},
|
|
37
|
+
set tournament(t) {
|
|
38
|
+
o(t), E();
|
|
39
|
+
},
|
|
40
|
+
get casinoRules() {
|
|
41
|
+
return C();
|
|
42
|
+
},
|
|
43
|
+
set casinoRules(t = "") {
|
|
44
|
+
C(t), E();
|
|
45
|
+
},
|
|
46
|
+
get sportRules() {
|
|
47
|
+
return R();
|
|
48
|
+
},
|
|
49
|
+
set sportRules(t = []) {
|
|
50
|
+
R(t), E();
|
|
51
|
+
}
|
|
52
|
+
}, y = we(), L = r(y);
|
|
53
|
+
{
|
|
54
|
+
var G = (t) => {
|
|
55
|
+
var e = fe(), a = r(e), v = r(a);
|
|
56
|
+
pe(v, { width: 16, height: 16 }), s(a);
|
|
57
|
+
var l = n(a, 2);
|
|
58
|
+
$(l, 21, () => c(B), (p) => p.place, (p, f) => {
|
|
59
|
+
var h = me(), d = j(h, !0);
|
|
60
|
+
q((i) => w(d, i), [
|
|
61
|
+
() => m()("prizePlace", {
|
|
62
|
+
values: { place: c(f).place, prize: c(f).name }
|
|
63
|
+
})
|
|
64
|
+
]), u(p, h);
|
|
65
|
+
}), s(l), s(e), u(t, e);
|
|
66
|
+
};
|
|
67
|
+
x(L, (t) => {
|
|
68
|
+
c(B).length > 0 && t(G);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
var z = n(L, 2);
|
|
72
|
+
{
|
|
73
|
+
var J = (t) => {
|
|
74
|
+
var e = A(), a = r(e), v = r(a);
|
|
75
|
+
de(v, { width: 16, height: 16 }), s(a);
|
|
76
|
+
var l = n(a, 2);
|
|
77
|
+
S(l, () => m()(c(D)), !0), s(l), s(e), u(t, e);
|
|
78
|
+
};
|
|
79
|
+
x(z, (t) => {
|
|
80
|
+
c(D) && t(J);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
var F = n(z, 2);
|
|
84
|
+
{
|
|
85
|
+
var Q = (t) => {
|
|
86
|
+
var e = A(), a = r(e), v = r(a);
|
|
87
|
+
ue(v, { width: 16, height: 16 }), s(a);
|
|
88
|
+
var l = n(a, 2);
|
|
89
|
+
S(l, () => m()("miniBetCount", { values: { betCount: o().minBetCount } }), !0), s(l), s(e), u(t, e);
|
|
90
|
+
};
|
|
91
|
+
x(F, (t) => {
|
|
92
|
+
o().minBetCount && t(Q);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
var H = n(F, 2);
|
|
96
|
+
{
|
|
97
|
+
var W = (t) => {
|
|
98
|
+
var e = ge(), a = r(e), v = r(a);
|
|
99
|
+
_e(v, { width: 16, height: 16 }), s(a);
|
|
100
|
+
var l = n(a, 2), p = r(l), f = j(p), h = n(p, 2);
|
|
101
|
+
{
|
|
102
|
+
var d = (i) => {
|
|
103
|
+
var g = xe(), T = j(g, !0);
|
|
104
|
+
q(() => w(T, C())), u(i, g);
|
|
105
|
+
};
|
|
106
|
+
x(h, (i) => {
|
|
107
|
+
C() && i(d);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
s(l), s(e), q((i) => w(f, `${i != null ? i : ""}:`), [() => m()("forCasino")]), u(t, e);
|
|
111
|
+
};
|
|
112
|
+
x(H, (t) => {
|
|
113
|
+
var e;
|
|
114
|
+
(e = o().wallet) != null && e.casino && t(W);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
var K = n(H, 2);
|
|
118
|
+
{
|
|
119
|
+
var X = (t) => {
|
|
120
|
+
var e = qe(), a = r(e), v = r(a);
|
|
121
|
+
he(v, { width: 16, height: 16 }), s(a);
|
|
122
|
+
var l = n(a, 2), p = r(l), f = j(p), h = n(p, 2);
|
|
123
|
+
$(h, 21, R, oe, (d, i) => {
|
|
124
|
+
var g = je(), T = j(g, !0);
|
|
125
|
+
q(() => w(T, c(i))), u(d, g);
|
|
126
|
+
}), s(h), s(l), s(e), q((d) => w(f, `${d != null ? d : ""}:`), [() => m()("forSportsbook")]), u(t, e);
|
|
127
|
+
};
|
|
128
|
+
x(K, (t) => {
|
|
129
|
+
var e;
|
|
130
|
+
(e = o().wallet) != null && e.sports && R().length > 0 && t(X);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
var O = n(K, 2), k = r(O), Z = r(k);
|
|
134
|
+
ce(Z, { width: 16, height: 16 }), s(k);
|
|
135
|
+
var P = n(k, 2);
|
|
136
|
+
S(P, () => m()("termsLink", { values: { tcUrl: o().termsUrl || "#" } }), !0), s(P), s(O), s(y), u(M, y);
|
|
137
|
+
var ee = re(Y);
|
|
138
|
+
return V(), ee;
|
|
139
|
+
}
|
|
140
|
+
te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
|
|
141
|
+
export {
|
|
142
|
+
Ce as T
|
|
143
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CiBujliJ.cjs"),A=require("./TournamentLeaderboard-BHGPwbuz.cjs"),O=require("./TrophyIcon-BuT5Q6K0.cjs"),P=require("./ChartIcon-CQ9xzPNv.cjs"),Y=require("./CoinStackIcon-w0E7Vjou.cjs"),G=require("./SlotMachineIcon-BB--rwxm.cjs"),J=require("./FootballIcon-BxC3qLd6.cjs"),N=require("./DocumentsIcon-TikJpiUM.cjs");var Q=e.from_html("<li> </li>"),V=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <ul class="tournament-details__rule-text tournament-details__prizes svelte-1hqp0j7"></ul></div>'),T=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"></div></div>'),W=e.from_html('<p class="svelte-1hqp0j7"> </p>'),X=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <!></div></div>'),Z=e.from_html('<li class="svelte-1hqp0j7"> </li>'),ee=e.from_html('<div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text svelte-1hqp0j7"><p class="svelte-1hqp0j7"> </p> <ul class="tournament-details__sports-rules svelte-1hqp0j7"></ul></div></div>'),te=e.from_html('<div class="tournament-details__rules svelte-1hqp0j7"><!> <!> <!> <!> <!> <div class="tournament-details__rule svelte-1hqp0j7"><span class="tournament-details__rule-icon svelte-1hqp0j7" aria-hidden="true"><!></span> <div class="tournament-details__rule-text tournament-details__terms svelte-1hqp0j7"></div></div></div>');const se={hash:"svelte-1hqp0j7",code:`.tournament-details__rules.svelte-1hqp0j7 {display:flex;flex-direction:column;gap:16px;color:var(--text-subtle, rgba(223, 227, 232, 1));font-size:14px;font-weight:400;line-height:1.6;p:where(.svelte-1hqp0j7),
|
|
2
|
+
ul:where(.svelte-1hqp0j7) {margin:0;padding:0;}.tournament-details__rule:where(.svelte-1hqp0j7) {display:flex;align-items:flex-start;gap:12px;}.tournament-details__rule-icon:where(.svelte-1hqp0j7) {display:flex;align-items:center;flex-shrink:0;width:16px;height:1lh;color:var(--text-subtle, #dfe3e8);}.tournament-details__rule-text:where(.svelte-1hqp0j7) {min-width:0;p:where(.svelte-1hqp0j7) + p:where(.svelte-1hqp0j7),
|
|
3
|
+
p:where(.svelte-1hqp0j7) + ul:where(.svelte-1hqp0j7) {margin-top:12px;}b {font-weight:inherit;}}.tournament-details__prizes:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:8px;list-style:none;}.tournament-details__sports-rules:where(.svelte-1hqp0j7) {display:flex;flex-direction:column;gap:4px;padding-left:28px;list-style:none;li:where(.svelte-1hqp0j7) {position:relative;&::before {content:'';position:absolute;top:0.75em;left:-14px;width:3px;height:3px;border-radius:50%;background:currentColor;}}}.tournament-details__terms:where(.svelte-1hqp0j7) a {color:var(--text-default, rgba(223, 227, 232, 1));font-weight:700;text-decoration:none;&:hover {text-decoration:underline;}}}
|
|
4
|
+
|
|
5
|
+
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
6
|
+
}`};function $(q,u){e.push(u,!0),e.append_styles(q,se);const _=()=>e.store_get(e.$format,"$_",E),[E,B]=e.setup_stores(),l=e.prop(u,"tournament",7),v=e.prop(u,"casinoRules",7,""),m=e.prop(u,"sportRules",23,()=>[]),j=e.user_derived(()=>[...l().prizes??[]].sort((t,s)=>t.rank-s.rank).map(t=>({place:t.count>1?`${t.rank} - ${t.rank+t.count-1}`:String(t.rank),name:t.name}))),b=e.user_derived(()=>A.SCORE_CRITERIA_KEYS[l().scoreCriteria]);var L={get tournament(){return l()},set tournament(t){l(t),e.flushSync()},get casinoRules(){return v()},set casinoRules(t=""){v(t),e.flushSync()},get sportRules(){return m()},set sportRules(t=[]){m(t),e.flushSync()}},f=te(),w=e.child(f);{var M=t=>{var s=V(),r=e.child(s),a=e.child(r);O.TrophyIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.each(n,21,()=>e.get(j),i=>i.place,(i,c)=>{var d=Q(),p=e.only_child(d,!0);e.template_effect(o=>e.set_text(p,o),[()=>_()("prizePlace",{values:{place:e.get(c).place,prize:e.get(c).name}})]),e.append(i,d)}),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(w,t=>{e.get(j).length>0&&t(M)})}var y=e.sibling(w,2);{var D=t=>{var s=T(),r=e.child(s),a=e.child(r);P.ChartIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()(e.get(b)),!0),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(y,t=>{e.get(b)&&t(D)})}var k=e.sibling(y,2);{var z=t=>{var s=T(),r=e.child(s),a=e.child(r);Y.CoinStackIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2);e.html(n,()=>_()("miniBetCount",{values:{betCount:l().minBetCount}}),!0),e.reset(n),e.reset(s),e.append(t,s)};e.if_block(k,t=>{l().minBetCount&&t(z)})}var R=e.sibling(k,2);{var F=t=>{var s=X(),r=e.child(s),a=e.child(r);G.SlotMachineIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),i=e.child(n),c=e.only_child(i),d=e.sibling(i,2);{var p=o=>{var h=W(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,v())),e.append(o,h)};e.if_block(d,o=>{v()&&o(p)})}e.reset(n),e.reset(s),e.template_effect(o=>e.set_text(c,`${o??""}:`),[()=>_()("forCasino")]),e.append(t,s)};e.if_block(R,t=>{l().wallet?.casino&&t(F)})}var C=e.sibling(R,2);{var H=t=>{var s=ee(),r=e.child(s),a=e.child(r);J.FootballIcon(a,{width:16,height:16}),e.reset(r);var n=e.sibling(r,2),i=e.child(n),c=e.only_child(i),d=e.sibling(i,2);e.each(d,21,m,e.index,(p,o)=>{var h=Z(),x=e.only_child(h,!0);e.template_effect(()=>e.set_text(x,e.get(o))),e.append(p,h)}),e.reset(d),e.reset(n),e.reset(s),e.template_effect(p=>e.set_text(c,`${p??""}:`),[()=>_()("forSportsbook")]),e.append(t,s)};e.if_block(C,t=>{l().wallet?.sports&&m().length>0&&t(H)})}var I=e.sibling(C,2),g=e.child(I),K=e.child(g);N.DocumentsIcon(K,{width:16,height:16}),e.reset(g);var S=e.sibling(g,2);e.html(S,()=>_()("termsLink",{values:{tcUrl:l().termsUrl||"#"}}),!0),e.reset(S),e.reset(I),e.reset(f),e.append(q,f);var U=e.pop(L);return B(),U}e.create_custom_element($,{tournament:{},casinoRules:{},sportRules:{}},[],[],{mode:"open"});exports.TournamentRules=$;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-CiBujliJ.cjs"),k=require("./TournamentLeaderboard-BHGPwbuz.cjs"),N=require("./TrophyIcon-BuT5Q6K0.cjs"),Q=require("./PeopleIcon-nbIehGXq.cjs"),V=require("./ChartIcon-CQ9xzPNv.cjs"),W=require("./RankArrowIcon-N3Rja8qO.cjs");var X=e.from_html('<img class="tournament-details__title-icon svelte-193trhb" alt="" width="20" height="20"/>'),Y=e.from_html('<span class="tournament-details__highlight svelte-193trhb"> </span>'),Z=e.from_html('<p class="tournament-details__rewards svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__label svelte-193trhb"> </span> <!></p>'),ee=e.from_html('<p class="tournament-details__criteria svelte-193trhb"><span class="tournament-details__label svelte-193trhb"> </span> <span class="tournament-details__highlight svelte-193trhb"> </span></p>'),te=e.from_html('<span><span class="tournament-details__trend-icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__trend-label svelte-193trhb"> </span></span>'),re=e.from_html('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span> <!></p>'),ae=e.from_html('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span></p>'),ne=e.from_html('<div class="tournament-details__summary svelte-193trhb"><h2 class="tournament-details__title svelte-193trhb"><!> <span> </span></h2> <!> <!> <!></div>');const se={hash:"svelte-193trhb",code:`.tournament-details__summary.svelte-193trhb {display:flex;flex-direction:column;gap:12px;color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;line-height:1.5;p:where(.svelte-193trhb) {margin:0;}.tournament-details__title:where(.svelte-193trhb) {display:flex;align-items:center;gap:6px;margin:0;color:var(--text-default, rgba(223, 227, 232, 1));font-size:18px;font-weight:700;line-height:1.3;}.tournament-details__title-icon:where(.svelte-193trhb) {flex-shrink:0;width:16px;height:16px;object-fit:contain;}.tournament-details__label:where(.svelte-193trhb) {margin-right:6px;font-weight:500;}.tournament-details__highlight:where(.svelte-193trhb) {margin-right:6px;color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:600;}.tournament-details__meta:where(.svelte-193trhb) {display:flex;align-items:center;gap:8px;}.tournament-details__icon:where(.svelte-193trhb) {display:inline-flex;align-items:center;flex-shrink:0;width:16px;height:1lh;margin-right:8px;vertical-align:top;color:var(--text-subtle, #dfe3e8);}.tournament-details__meta:where(.svelte-193trhb) .tournament-details__icon:where(.svelte-193trhb) {margin-right:0;}.tournament-details__trend:where(.svelte-193trhb) {display:inline-flex;align-items:center;}.tournament-details__trend-icon:where(.svelte-193trhb) {display:inline-flex;width:10px;height:8px;}.tournament-details__trend--up:where(.svelte-193trhb) {color:var(--icon-success, rgba(50, 242, 0, 1));.tournament-details__trend-icon:where(.svelte-193trhb) {transform:rotate(180deg);}}.tournament-details__trend--down:where(.svelte-193trhb) {color:var(--icon-error, rgba(235, 0, 0, 1));}.tournament-details__trend-label:where(.svelte-193trhb) {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}}
|
|
2
|
+
@media (max-width: 767px) {.tournament-details__summary.svelte-193trhb {font-size:12px;.tournament-details__title:where(.svelte-193trhb) {margin-bottom:5px;font-size:14px;}}
|
|
3
|
+
}`};function R(T,v){e.push(v,!0),e.append_styles(T,se);const o=()=>e.store_get(e.$format,"$_",$),[$,z]=e.setup_stores(),n=e.prop(v,"tournament",7),b=e.prop(v,"enrolled",7,!1),_=e.prop(v,"rank",7,null),u=e.prop(v,"rankTrend",7,null),f=e.user_derived(()=>k.getTopRewards(n().prizes)),g=e.user_derived(()=>n().overview?.participants??0),I=e.user_derived(()=>_()!==void 0&&_()!==null?String(_()):"-"),L=e.user_derived(()=>e.get(g)>0?String(e.get(g)):"-"),D=e.user_derived(()=>{const t=[];return n().wallet?.casino&&t.push({type:"casino",src:k.casinoImage}),n().wallet?.sports&&t.push({type:"sports",src:k.sportsImage}),t});var E={get tournament(){return n()},set tournament(t){n(t),e.flushSync()},get enrolled(){return b()},set enrolled(t=!1){b(t),e.flushSync()},get rank(){return _()},set rank(t=null){_(t),e.flushSync()},get rankTrend(){return u()},set rankTrend(t=null){u(t),e.flushSync()}},x=ne(),w=e.child(x),S=e.child(w);e.each(S,17,()=>e.get(D),t=>t.type,(t,r)=>{var a=X();e.template_effect(()=>{e.set_attribute(a,"src",e.get(r).src),e.set_attribute(a,"data-product",e.get(r).type)}),e.append(t,a)});var j=e.sibling(S,2),A=e.only_child(j,!0);e.reset(w);var C=e.sibling(w,2);{var H=t=>{var r=Z(),a=e.child(r),d=e.child(a);N.TrophyIcon(d,{width:16,height:16}),e.reset(a);var s=e.sibling(a,2),h=e.only_child(s),p=e.sibling(s,2);e.each(p,18,()=>e.get(f),l=>l,(l,c,i)=>{var m=Y(),y=e.only_child(m);e.template_effect(()=>e.set_text(y,`${c??""}${e.get(i)<e.get(f).length-1?",":""}`)),e.append(l,m)}),e.reset(r),e.template_effect(l=>e.set_text(h,`${l??""} :`),[()=>o()("topRewardsLabel")]),e.append(t,r)};e.if_block(C,t=>{e.get(f).length>0&&t(H)})}var q=e.sibling(C,2);{var M=t=>{var r=ee(),a=e.child(r),d=e.only_child(a),s=e.sibling(a,2),h=e.only_child(s,!0);e.reset(r),e.template_effect((p,l)=>{e.set_text(d,`${p??""} :`),e.set_text(h,l)},[()=>o()("scoreCriteria"),()=>o()(n().scoreCriteria,{default:n().scoreCriteria})]),e.append(t,r)};e.if_block(q,t=>{n().scoreCriteria&&t(M)})}var P=e.sibling(q,2);{var U=t=>{var r=re(),a=e.child(r),d=e.child(a);V.ChartIcon(d,{width:16,height:16}),e.reset(a);var s=e.sibling(a,2),h=e.only_child(s,!0),p=e.sibling(s,2);{var l=c=>{var i=te(),m=e.child(i),y=e.child(m);W.RankArrowIcon(y,{width:10,height:8}),e.reset(m);var F=e.sibling(m,2),G=e.only_child(F,!0);e.reset(i),e.template_effect((J,K)=>{e.set_class(i,1,`tournament-details__trend tournament-details__trend--${u()??""}`,"svelte-193trhb"),e.set_attribute(i,"title",J),e.set_text(G,K)},[()=>o()(u()==="up"?"rankUpLabel":"rankDownLabel"),()=>o()(u()==="up"?"rankUpLabel":"rankDownLabel")]),e.append(c,i)};e.if_block(p,c=>{u()&&_()!==null&&_()!==void 0&&c(l)})}e.reset(r),e.template_effect((c,i)=>{e.set_attribute(r,"aria-label",c),e.set_text(h,i)},[()=>o()("playerRankLabel",{values:{rank:e.get(I),total:e.get(L)}}),()=>o()("playerRank",{values:{rank:e.get(I),total:e.get(L)}})]),e.append(t,r)},B=t=>{var r=ae(),a=e.child(r),d=e.child(a);Q.PeopleIcon(d,{width:16,height:16}),e.reset(a);var s=e.sibling(a,2),h=e.only_child(s,!0);e.reset(r),e.template_effect(p=>e.set_text(h,p),[()=>o()("joinedCount",{values:{count:e.get(g)}})]),e.append(t,r)};e.if_block(P,t=>{b()?t(U):e.get(g)>0&&t(B,1)})}e.reset(x),e.template_effect(()=>e.set_text(A,n().nameOrTitle)),e.append(T,x);var O=e.pop(E);return z(),O}e.create_custom_element(R,{tournament:{},enrolled:{},rank:{},rankTrend:{}},[],[],{mode:"open"});exports.TournamentSummary=R;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { c as se, g as le, a as ie, p as C, O as N, i as $, t as _, b as v, d as oe, f as c, q as R, I as he, h as n, l as z, j as r, s, M as u, r as l, N as m, u as I, V as pe, $ as de, k as _e } from "./StatusBadge-BUU_5AgK.js";
|
|
2
|
+
import { c as ve, d as ue, g as me } from "./TournamentLeaderboard-Bk72WFe2.js";
|
|
3
|
+
import { T as ce } from "./TrophyIcon-BolnMSK-.js";
|
|
4
|
+
import { P as ge } from "./PeopleIcon-CeTcZT9N.js";
|
|
5
|
+
import { C as be } from "./ChartIcon-Bhz3dlNt.js";
|
|
6
|
+
import { R as fe } from "./RankArrowIcon-DeVP6SqV.js";
|
|
7
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
|
+
}, globalThis.customElements = { define() {
|
|
9
|
+
}, get() {
|
|
10
|
+
}, whenDefined() {
|
|
11
|
+
} });
|
|
12
|
+
var xe = c('<img class="tournament-details__title-icon svelte-193trhb" alt="" width="20" height="20"/>'), we = c('<span class="tournament-details__highlight svelte-193trhb"> </span>'), ke = c('<p class="tournament-details__rewards svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__label svelte-193trhb"> </span> <!></p>'), ye = c('<p class="tournament-details__criteria svelte-193trhb"><span class="tournament-details__label svelte-193trhb"> </span> <span class="tournament-details__highlight svelte-193trhb"> </span></p>'), Te = c('<span><span class="tournament-details__trend-icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__trend-label svelte-193trhb"> </span></span>'), Ie = c('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span> <!></p>'), Le = c('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span></p>'), Ce = c('<div class="tournament-details__summary svelte-193trhb"><h2 class="tournament-details__title svelte-193trhb"><!> <span> </span></h2> <!> <!> <!></div>');
|
|
13
|
+
const $e = {
|
|
14
|
+
hash: "svelte-193trhb",
|
|
15
|
+
code: `.tournament-details__summary.svelte-193trhb {display:flex;flex-direction:column;gap:12px;color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;line-height:1.5;p:where(.svelte-193trhb) {margin:0;}.tournament-details__title:where(.svelte-193trhb) {display:flex;align-items:center;gap:6px;margin:0;color:var(--text-default, rgba(223, 227, 232, 1));font-size:18px;font-weight:700;line-height:1.3;}.tournament-details__title-icon:where(.svelte-193trhb) {flex-shrink:0;width:16px;height:16px;object-fit:contain;}.tournament-details__label:where(.svelte-193trhb) {margin-right:6px;font-weight:500;}.tournament-details__highlight:where(.svelte-193trhb) {margin-right:6px;color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:600;}.tournament-details__meta:where(.svelte-193trhb) {display:flex;align-items:center;gap:8px;}.tournament-details__icon:where(.svelte-193trhb) {display:inline-flex;align-items:center;flex-shrink:0;width:16px;height:1lh;margin-right:8px;vertical-align:top;color:var(--text-subtle, #dfe3e8);}.tournament-details__meta:where(.svelte-193trhb) .tournament-details__icon:where(.svelte-193trhb) {margin-right:0;}.tournament-details__trend:where(.svelte-193trhb) {display:inline-flex;align-items:center;}.tournament-details__trend-icon:where(.svelte-193trhb) {display:inline-flex;width:10px;height:8px;}.tournament-details__trend--up:where(.svelte-193trhb) {color:var(--icon-success, rgba(50, 242, 0, 1));.tournament-details__trend-icon:where(.svelte-193trhb) {transform:rotate(180deg);}}.tournament-details__trend--down:where(.svelte-193trhb) {color:var(--icon-error, rgba(235, 0, 0, 1));}.tournament-details__trend-label:where(.svelte-193trhb) {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}}
|
|
16
|
+
@media (max-width: 767px) {.tournament-details__summary.svelte-193trhb {font-size:12px;.tournament-details__title:where(.svelte-193trhb) {margin-bottom:5px;font-size:14px;}}
|
|
17
|
+
}`
|
|
18
|
+
};
|
|
19
|
+
function Re(H, T) {
|
|
20
|
+
le(T, !0), ie(H, $e);
|
|
21
|
+
const d = () => pe(de, "$_", V), [V, B] = he(), i = C(T, "tournament", 7), S = C(T, "enrolled", 7, !1), g = C(T, "rank", 7, null), k = C(T, "rankTrend", 7, null), j = I(() => me(i().prizes)), L = I(() => i().overview?.participants ?? 0), O = I(() => g() !== void 0 && g() !== null ? String(g()) : "-"), P = I(() => r(L) > 0 ? String(r(L)) : "-"), F = I(() => {
|
|
22
|
+
const e = [];
|
|
23
|
+
return i().wallet?.casino && e.push({ type: "casino", src: ve }), i().wallet?.sports && e.push({ type: "sports", src: ue }), e;
|
|
24
|
+
});
|
|
25
|
+
var G = {
|
|
26
|
+
get tournament() {
|
|
27
|
+
return i();
|
|
28
|
+
},
|
|
29
|
+
set tournament(e) {
|
|
30
|
+
i(e), R();
|
|
31
|
+
},
|
|
32
|
+
get enrolled() {
|
|
33
|
+
return S();
|
|
34
|
+
},
|
|
35
|
+
set enrolled(e = !1) {
|
|
36
|
+
S(e), R();
|
|
37
|
+
},
|
|
38
|
+
get rank() {
|
|
39
|
+
return g();
|
|
40
|
+
},
|
|
41
|
+
set rank(e = null) {
|
|
42
|
+
g(e), R();
|
|
43
|
+
},
|
|
44
|
+
get rankTrend() {
|
|
45
|
+
return k();
|
|
46
|
+
},
|
|
47
|
+
set rankTrend(e = null) {
|
|
48
|
+
k(e), R();
|
|
49
|
+
}
|
|
50
|
+
}, D = Ce(), E = n(D), U = n(E);
|
|
51
|
+
N(U, 17, () => r(F), (e) => e.type, (e, t) => {
|
|
52
|
+
var a = xe();
|
|
53
|
+
_(() => {
|
|
54
|
+
z(a, "src", r(t).src), z(a, "data-product", r(t).type);
|
|
55
|
+
}), v(e, a);
|
|
56
|
+
});
|
|
57
|
+
var J = s(U, 2), K = u(J, !0);
|
|
58
|
+
l(E);
|
|
59
|
+
var q = s(E, 2);
|
|
60
|
+
{
|
|
61
|
+
var Q = (e) => {
|
|
62
|
+
var t = ke(), a = n(t), b = n(a);
|
|
63
|
+
ce(b, { width: 16, height: 16 }), l(a);
|
|
64
|
+
var o = s(a, 2), f = u(o), x = s(o, 2);
|
|
65
|
+
N(x, 18, () => r(j), (h) => h, (h, w, p) => {
|
|
66
|
+
var y = we(), M = u(y);
|
|
67
|
+
_(() => m(M, `${w ?? ""}${r(p) < r(j).length - 1 ? "," : ""}`)), v(h, y);
|
|
68
|
+
}), l(t), _((h) => m(f, `${h ?? ""} :`), [() => d()("topRewardsLabel")]), v(e, t);
|
|
69
|
+
};
|
|
70
|
+
$(q, (e) => {
|
|
71
|
+
r(j).length > 0 && e(Q);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
var A = s(q, 2);
|
|
75
|
+
{
|
|
76
|
+
var W = (e) => {
|
|
77
|
+
var t = ye(), a = n(t), b = u(a), o = s(a, 2), f = u(o, !0);
|
|
78
|
+
l(t), _(
|
|
79
|
+
(x, h) => {
|
|
80
|
+
m(b, `${x ?? ""} :`), m(f, h);
|
|
81
|
+
},
|
|
82
|
+
[
|
|
83
|
+
() => d()("scoreCriteria"),
|
|
84
|
+
() => d()(i().scoreCriteria, { default: i().scoreCriteria })
|
|
85
|
+
]
|
|
86
|
+
), v(e, t);
|
|
87
|
+
};
|
|
88
|
+
$(A, (e) => {
|
|
89
|
+
i().scoreCriteria && e(W);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
var X = s(A, 2);
|
|
93
|
+
{
|
|
94
|
+
var Y = (e) => {
|
|
95
|
+
var t = Ie(), a = n(t), b = n(a);
|
|
96
|
+
be(b, { width: 16, height: 16 }), l(a);
|
|
97
|
+
var o = s(a, 2), f = u(o, !0), x = s(o, 2);
|
|
98
|
+
{
|
|
99
|
+
var h = (w) => {
|
|
100
|
+
var p = Te(), y = n(p), M = n(y);
|
|
101
|
+
fe(M, { width: 10, height: 8 }), l(y);
|
|
102
|
+
var te = s(y, 2), ae = u(te, !0);
|
|
103
|
+
l(p), _(
|
|
104
|
+
(re, ne) => {
|
|
105
|
+
_e(p, 1, `tournament-details__trend tournament-details__trend--${k() ?? ""}`, "svelte-193trhb"), z(p, "title", re), m(ae, ne);
|
|
106
|
+
},
|
|
107
|
+
[
|
|
108
|
+
() => d()(k() === "up" ? "rankUpLabel" : "rankDownLabel"),
|
|
109
|
+
() => d()(k() === "up" ? "rankUpLabel" : "rankDownLabel")
|
|
110
|
+
]
|
|
111
|
+
), v(w, p);
|
|
112
|
+
};
|
|
113
|
+
$(x, (w) => {
|
|
114
|
+
k() && g() !== null && g() !== void 0 && w(h);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
l(t), _(
|
|
118
|
+
(w, p) => {
|
|
119
|
+
z(t, "aria-label", w), m(f, p);
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
() => d()("playerRankLabel", { values: { rank: r(O), total: r(P) } }),
|
|
123
|
+
() => d()("playerRank", { values: { rank: r(O), total: r(P) } })
|
|
124
|
+
]
|
|
125
|
+
), v(e, t);
|
|
126
|
+
}, Z = (e) => {
|
|
127
|
+
var t = Le(), a = n(t), b = n(a);
|
|
128
|
+
ge(b, { width: 16, height: 16 }), l(a);
|
|
129
|
+
var o = s(a, 2), f = u(o, !0);
|
|
130
|
+
l(t), _((x) => m(f, x), [
|
|
131
|
+
() => d()("joinedCount", { values: { count: r(L) } })
|
|
132
|
+
]), v(e, t);
|
|
133
|
+
};
|
|
134
|
+
$(X, (e) => {
|
|
135
|
+
S() ? e(Y) : r(L) > 0 && e(Z, 1);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
l(D), _(() => m(K, i().nameOrTitle)), v(H, D);
|
|
139
|
+
var ee = oe(G);
|
|
140
|
+
return B(), ee;
|
|
141
|
+
}
|
|
142
|
+
se(Re, { tournament: {}, enrolled: {}, rank: {}, rankTrend: {} }, [], [], { mode: "open" });
|
|
143
|
+
export {
|
|
144
|
+
Re as T
|
|
145
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-Bi4UTGIK.cjs"),k=require("./TournamentLeaderboard-C1uFc5GZ.cjs"),V=require("./TrophyIcon-95ROc4Lc.cjs"),W=require("./PeopleIcon-CIePqv40.cjs"),X=require("./ChartIcon-jHYM_pz4.cjs"),Y=require("./RankArrowIcon-Dfflx6jx.cjs");var Z=e.from_html('<img class="tournament-details__title-icon svelte-193trhb" alt="" width="20" height="20"/>'),$=e.from_html('<span class="tournament-details__highlight svelte-193trhb"> </span>'),ee=e.from_html('<p class="tournament-details__rewards svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__label svelte-193trhb"> </span> <!></p>'),te=e.from_html('<p class="tournament-details__criteria svelte-193trhb"><span class="tournament-details__label svelte-193trhb"> </span> <span class="tournament-details__highlight svelte-193trhb"> </span></p>'),re=e.from_html('<span><span class="tournament-details__trend-icon svelte-193trhb" aria-hidden="true"><!></span> <span class="tournament-details__trend-label svelte-193trhb"> </span></span>'),ae=e.from_html('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span> <!></p>'),ne=e.from_html('<p class="tournament-details__meta svelte-193trhb"><span class="tournament-details__icon svelte-193trhb" aria-hidden="true"><!></span> <span> </span></p>'),se=e.from_html('<div class="tournament-details__summary svelte-193trhb"><h2 class="tournament-details__title svelte-193trhb"><!> <span> </span></h2> <!> <!> <!></div>');const le={hash:"svelte-193trhb",code:`.tournament-details__summary.svelte-193trhb {display:flex;flex-direction:column;gap:12px;color:var(--text-default, rgba(223, 227, 232, 1));font-size:14px;line-height:1.5;p:where(.svelte-193trhb) {margin:0;}.tournament-details__title:where(.svelte-193trhb) {display:flex;align-items:center;gap:6px;margin:0;color:var(--text-default, rgba(223, 227, 232, 1));font-size:18px;font-weight:700;line-height:1.3;}.tournament-details__title-icon:where(.svelte-193trhb) {flex-shrink:0;width:16px;height:16px;object-fit:contain;}.tournament-details__label:where(.svelte-193trhb) {margin-right:6px;font-weight:500;}.tournament-details__highlight:where(.svelte-193trhb) {margin-right:6px;color:var(--text-brand, rgba(255, 204, 0, 1));font-weight:600;}.tournament-details__meta:where(.svelte-193trhb) {display:flex;align-items:center;gap:8px;}.tournament-details__icon:where(.svelte-193trhb) {display:inline-flex;align-items:center;flex-shrink:0;width:16px;height:1lh;margin-right:8px;vertical-align:top;color:var(--text-subtle, #dfe3e8);}.tournament-details__meta:where(.svelte-193trhb) .tournament-details__icon:where(.svelte-193trhb) {margin-right:0;}.tournament-details__trend:where(.svelte-193trhb) {display:inline-flex;align-items:center;}.tournament-details__trend-icon:where(.svelte-193trhb) {display:inline-flex;width:10px;height:8px;}.tournament-details__trend--up:where(.svelte-193trhb) {color:var(--icon-success, rgba(50, 242, 0, 1));.tournament-details__trend-icon:where(.svelte-193trhb) {transform:rotate(180deg);}}.tournament-details__trend--down:where(.svelte-193trhb) {color:var(--icon-error, rgba(235, 0, 0, 1));}.tournament-details__trend-label:where(.svelte-193trhb) {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}}
|
|
2
|
+
@media (max-width: 767px) {.tournament-details__summary.svelte-193trhb {font-size:12px;.tournament-details__title:where(.svelte-193trhb) {margin-bottom:5px;font-size:14px;}}
|
|
3
|
+
}`};function z(T,v){e.push(v,!0),e.append_styles(T,le);const h=()=>e.store_get(e.$format,"$_",D),[D,E]=e.setup_stores(),s=e.prop(v,"tournament",7),b=e.prop(v,"enrolled",7,!1),d=e.prop(v,"rank",7,null),u=e.prop(v,"rankTrend",7,null),f=e.user_derived(()=>k.getTopRewards(s().prizes)),g=e.user_derived(()=>{var t,r;return(r=(t=s().overview)==null?void 0:t.participants)!=null?r:0}),I=e.user_derived(()=>d()!==void 0&&d()!==null?String(d()):"-"),L=e.user_derived(()=>e.get(g)>0?String(e.get(g)):"-"),j=e.user_derived(()=>{var r,a;const t=[];return(r=s().wallet)!=null&&r.casino&&t.push({type:"casino",src:k.casinoImage}),(a=s().wallet)!=null&&a.sports&&t.push({type:"sports",src:k.sportsImage}),t});var A={get tournament(){return s()},set tournament(t){s(t),e.flushSync()},get enrolled(){return b()},set enrolled(t=!1){b(t),e.flushSync()},get rank(){return d()},set rank(t=null){d(t),e.flushSync()},get rankTrend(){return u()},set rankTrend(t=null){u(t),e.flushSync()}},x=se(),w=e.child(x),S=e.child(w);e.each(S,17,()=>e.get(j),t=>t.type,(t,r)=>{var a=Z();e.template_effect(()=>{e.set_attribute(a,"src",e.get(r).src),e.set_attribute(a,"data-product",e.get(r).type)}),e.append(t,a)});var H=e.sibling(S,2),M=e.only_child(H,!0);e.reset(w);var C=e.sibling(w,2);{var P=t=>{var r=ee(),a=e.child(r),p=e.child(a);V.TrophyIcon(p,{width:16,height:16}),e.reset(a);var l=e.sibling(a,2),c=e.only_child(l),i=e.sibling(l,2);e.each(i,18,()=>e.get(f),n=>n,(n,o,_)=>{var m=$(),y=e.only_child(m);e.template_effect(()=>e.set_text(y,`${o!=null?o:""}${e.get(_)<e.get(f).length-1?",":""}`)),e.append(n,m)}),e.reset(r),e.template_effect(n=>e.set_text(c,`${n!=null?n:""} :`),[()=>h()("topRewardsLabel")]),e.append(t,r)};e.if_block(C,t=>{e.get(f).length>0&&t(P)})}var q=e.sibling(C,2);{var U=t=>{var r=te(),a=e.child(r),p=e.only_child(a),l=e.sibling(a,2),c=e.only_child(l,!0);e.reset(r),e.template_effect((i,n)=>{e.set_text(p,`${i!=null?i:""} :`),e.set_text(c,n)},[()=>h()("scoreCriteria"),()=>h()(s().scoreCriteria,{default:s().scoreCriteria})]),e.append(t,r)};e.if_block(q,t=>{s().scoreCriteria&&t(U)})}var B=e.sibling(q,2);{var O=t=>{var r=ae(),a=e.child(r),p=e.child(a);X.ChartIcon(p,{width:16,height:16}),e.reset(a);var l=e.sibling(a,2),c=e.only_child(l,!0),i=e.sibling(l,2);{var n=o=>{var _=re(),m=e.child(_),y=e.child(m);Y.RankArrowIcon(y,{width:10,height:8}),e.reset(m);var J=e.sibling(m,2),K=e.only_child(J,!0);e.reset(_),e.template_effect((N,Q)=>{var R;e.set_class(_,1,`tournament-details__trend tournament-details__trend--${(R=u())!=null?R:""}`,"svelte-193trhb"),e.set_attribute(_,"title",N),e.set_text(K,Q)},[()=>h()(u()==="up"?"rankUpLabel":"rankDownLabel"),()=>h()(u()==="up"?"rankUpLabel":"rankDownLabel")]),e.append(o,_)};e.if_block(i,o=>{u()&&d()!==null&&d()!==void 0&&o(n)})}e.reset(r),e.template_effect((o,_)=>{e.set_attribute(r,"aria-label",o),e.set_text(c,_)},[()=>h()("playerRankLabel",{values:{rank:e.get(I),total:e.get(L)}}),()=>h()("playerRank",{values:{rank:e.get(I),total:e.get(L)}})]),e.append(t,r)},F=t=>{var r=ne(),a=e.child(r),p=e.child(a);W.PeopleIcon(p,{width:16,height:16}),e.reset(a);var l=e.sibling(a,2),c=e.only_child(l,!0);e.reset(r),e.template_effect(i=>e.set_text(c,i),[()=>h()("joinedCount",{values:{count:e.get(g)}})]),e.append(t,r)};e.if_block(B,t=>{b()?t(O):e.get(g)>0&&t(F,1)})}e.reset(x),e.template_effect(()=>e.set_text(M,s().nameOrTitle)),e.append(T,x);var G=e.pop(A);return E(),G}e.create_custom_element(z,{tournament:{},enrolled:{},rank:{},rankTrend:{}},[],[],{mode:"open"});exports.TournamentSummary=z;
|