@everymatrix/tournament-details-page 0.2.2 → 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-DpI8g8MS.js → ChartIcon-Bhz3dlNt.js} +1 -1
- package/components/{ChartIcon-BnuWrPCu.js → ChartIcon-Bpak0Ha5.js} +1 -1
- package/components/{ChartIcon-BOJYO_mg.cjs → ChartIcon-CQ9xzPNv.cjs} +1 -1
- package/components/{ChartIcon-RZGJve9X.cjs → ChartIcon-jHYM_pz4.cjs} +1 -1
- package/components/{CoinStackIcon-D7VDNLPL.js → CoinStackIcon-6LCcPwql.js} +1 -1
- package/components/{CoinStackIcon-JPra1r-T.js → CoinStackIcon-Ccp3qOAA.js} +1 -1
- package/components/{CoinStackIcon-D9m5o_fi.cjs → CoinStackIcon-gHBgq0A7.cjs} +1 -1
- package/components/{CoinStackIcon-DFr0r7ql.cjs → CoinStackIcon-w0E7Vjou.cjs} +1 -1
- package/components/{DocumentsIcon-DFbkU_nq.js → DocumentsIcon-CCY_TgTL.js} +1 -1
- package/components/{DocumentsIcon-BMHGy7l5.cjs → DocumentsIcon-D7v18JHm.cjs} +1 -1
- package/components/{DocumentsIcon-CbpU2Gyn.js → DocumentsIcon-SkzMlDao.js} +1 -1
- package/components/{DocumentsIcon-BGDIx1Br.cjs → DocumentsIcon-TikJpiUM.cjs} +1 -1
- package/components/{FootballIcon-Dh004HAn.cjs → FootballIcon-2V3-bZP6.cjs} +1 -1
- package/components/{FootballIcon-Ba3k9QwJ.cjs → FootballIcon-BxC3qLd6.cjs} +1 -1
- package/components/{FootballIcon-BXfYxMAS.js → FootballIcon-CNGC-ysJ.js} +1 -1
- package/components/{FootballIcon-t-RiDqHO.js → FootballIcon-DiVQPE5J.js} +1 -1
- package/components/{PeopleIcon-Dij57H9Y.cjs → PeopleIcon-CIePqv40.cjs} +1 -1
- package/components/{PeopleIcon-2b-6fziq.js → PeopleIcon-CeTcZT9N.js} +1 -1
- package/components/{PeopleIcon-BL0lywpf.js → PeopleIcon-DE_VDpzu.js} +1 -1
- package/components/{PeopleIcon-Bi5uKQ9t.cjs → PeopleIcon-nbIehGXq.cjs} +1 -1
- package/components/{RankArrowIcon-DxqeIh-2.js → RankArrowIcon-CwlkgpW2.js} +1 -1
- package/components/{RankArrowIcon-BLPI8Ihl.js → RankArrowIcon-DeVP6SqV.js} +1 -1
- package/components/{RankArrowIcon-C1FqD2OV.cjs → RankArrowIcon-Dfflx6jx.cjs} +1 -1
- package/components/{RankArrowIcon-D9MUkVQC.cjs → RankArrowIcon-N3Rja8qO.cjs} +1 -1
- package/components/{SlotMachineIcon-_w58r-b5.cjs → SlotMachineIcon-B8LXNyS_.cjs} +1 -1
- package/components/{SlotMachineIcon-Cuv-0tTj.cjs → SlotMachineIcon-BB--rwxm.cjs} +1 -1
- package/components/{SlotMachineIcon-DbLnS5Dy.js → SlotMachineIcon-Bcda_Xmo.js} +1 -1
- package/components/{SlotMachineIcon-rm59GZar.js → SlotMachineIcon-BfZMN8W8.js} +1 -1
- package/components/{StatusBadge-94g1_G1j.js → StatusBadge-48pKkesj.js} +1801 -1768
- package/components/{StatusBadge-DuF7NK69.js → StatusBadge-BUU_5AgK.js} +1415 -1382
- 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-BknZ3XLG.js → TournamentDetailsPage-Bp60Uk-8.js} +291 -207
- package/components/{TournamentDetailsPage-DbL7sBZM.cjs → TournamentDetailsPage-BuiUVQhu.cjs} +4 -4
- package/components/{TournamentDetailsPage-DKQGDSr1.cjs → TournamentDetailsPage-DEpxQPEA.cjs} +4 -4
- package/components/{TournamentDetailsPage-AkoBgtU-.js → TournamentDetailsPage-Dnv8IQ1B.js} +342 -258
- package/components/{TournamentDetailsSkeleton-BTCHrmxN.cjs → TournamentDetailsSkeleton-B7Qc2qaP.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-Dtd2H__T.cjs → TournamentDetailsSkeleton-CFgmljN6.cjs} +1 -1
- package/components/{TournamentDetailsSkeleton-CmKNNW5d.js → TournamentDetailsSkeleton-Dn6_fjHV.js} +17 -17
- package/components/{TournamentDetailsSkeleton-D0L8P1tb.js → TournamentDetailsSkeleton-qTpuepan.js} +17 -17
- package/components/TournamentGames-BHzZyU1T.cjs +19 -0
- package/components/{TournamentGames-BGr8V4Dd.js → TournamentGames-BSbbbGfz.js} +154 -147
- package/components/{TournamentGames-BhXlS-fA.js → TournamentGames-D9NuiZl1.js} +133 -126
- package/components/TournamentGames-Zkp7iS-3.cjs +19 -0
- package/components/{TournamentImage-BFh29Z7_.js → TournamentImage-B8k7urkf.js} +61 -51
- package/components/{TournamentImage-CxfcEUy6.cjs → TournamentImage-BxojXrGF.cjs} +2 -2
- package/components/{TournamentImage-D26UWHyP.cjs → TournamentImage-By_eps51.cjs} +2 -2
- package/components/{TournamentImage-Hm-i2BLZ.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-DwcmzDOu.js → TournamentRules-B392M3KD.js} +69 -69
- package/components/{TournamentRules-iglqjP1P.cjs → TournamentRules-BpcwEy6C.cjs} +3 -3
- package/components/{TournamentRules-Dxup5GZ2.js → TournamentRules-D8ePsXfz.js} +72 -72
- package/components/{TournamentRules-Bu4jfxhb.cjs → TournamentRules-DRhqdG_B.cjs} +3 -3
- 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-DHZPrDgf.js → TournamentTabs-BVNuWoQ4.js} +14 -14
- package/components/{TournamentTabs-ryceiGS3.cjs → TournamentTabs-C5mZ8N3x.cjs} +1 -1
- package/components/{TournamentTabs-BVEr7PbQ.cjs → TournamentTabs-D4lAhT6v.cjs} +1 -1
- package/components/{TournamentTabs-B5Hc7DnJ.js → TournamentTabs-DOIFHU3l.js} +18 -18
- package/components/{TrophyIcon-DddCZpjC.cjs → TrophyIcon-95ROc4Lc.cjs} +1 -1
- package/components/{TrophyIcon-DbEHhyTe.js → TrophyIcon-BolnMSK-.js} +4 -4
- package/components/{TrophyIcon-DJyC3k-2.js → TrophyIcon-BqeMso6k.js} +4 -4
- package/components/{TrophyIcon-eLIudkPn.cjs → TrophyIcon-BuT5Q6K0.cjs} +1 -1
- 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-Bdc22cMY.cjs +0 -8
- package/components/StatusBadge-BsjzjNer.cjs +0 -8
- package/components/TournamentGames-Ch4ODv3u.cjs +0 -19
- package/components/TournamentGames-D8h0gDfK.cjs +0 -19
- package/components/TournamentLeaderboard-1i-FoUCN.cjs +0 -38
- package/components/TournamentLeaderboard-B6IMbAZ_.cjs +0 -38
- package/components/TournamentLeaderboard-BJ0mlW5c.js +0 -1384
- package/components/TournamentLeaderboard-BM3HZ0jQ.js +0 -1441
- package/components/TournamentSummary-B7I6gN81.js +0 -145
- package/components/TournamentSummary-C24QhbUw.cjs +0 -3
- package/components/TournamentSummary-HgOjtkW2.cjs +0 -3
- package/components/TournamentSummary-ozfHjUkk.js +0 -150
- package/components/translations-BSe2qToO.cjs +0 -1
- package/components/translations-FufS-X5l.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { c as te, g as ae, a as se, p as $, i as x,
|
|
2
|
-
import { S as ve } from "./TournamentLeaderboard-
|
|
3
|
-
import { T as pe } from "./TrophyIcon-
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { S as _e } from "./SlotMachineIcon-
|
|
7
|
-
import { F as he } from "./FootballIcon-
|
|
8
|
-
import { D as ce } from "./DocumentsIcon-
|
|
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
9
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
10
10
|
}, globalThis.customElements = { define() {
|
|
11
11
|
}, get() {
|
|
12
12
|
}, whenDefined() {
|
|
13
13
|
} });
|
|
14
|
-
var me =
|
|
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
15
|
const be = {
|
|
16
16
|
hash: "svelte-1hqp0j7",
|
|
17
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) {flex-shrink:0;width:16px;height:
|
|
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
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
20
|
|
|
21
21
|
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
@@ -23,114 +23,114 @@ const be = {
|
|
|
23
23
|
};
|
|
24
24
|
function Ce(E, b) {
|
|
25
25
|
ae(b, !0), se(E, be);
|
|
26
|
-
const m = () =>
|
|
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
27
|
place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
|
|
28
28
|
name: e.name
|
|
29
|
-
}))),
|
|
29
|
+
}))), B = P(() => ve[i().scoreCriteria]);
|
|
30
30
|
var Y = {
|
|
31
31
|
get tournament() {
|
|
32
|
-
return
|
|
32
|
+
return i();
|
|
33
33
|
},
|
|
34
34
|
set tournament(e) {
|
|
35
|
-
|
|
35
|
+
i(e), S();
|
|
36
36
|
},
|
|
37
37
|
get casinoRules() {
|
|
38
38
|
return C();
|
|
39
39
|
},
|
|
40
40
|
set casinoRules(e = "") {
|
|
41
|
-
C(e),
|
|
41
|
+
C(e), S();
|
|
42
42
|
},
|
|
43
43
|
get sportRules() {
|
|
44
44
|
return R();
|
|
45
45
|
},
|
|
46
46
|
set sportRules(e = []) {
|
|
47
|
-
R(e),
|
|
47
|
+
R(e), S();
|
|
48
48
|
}
|
|
49
|
-
}, y = we(),
|
|
49
|
+
}, y = we(), D = r(y);
|
|
50
50
|
{
|
|
51
|
-
var
|
|
52
|
-
var t = fe(), s = r(t),
|
|
53
|
-
pe(
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
var _ = me(), h =
|
|
57
|
-
|
|
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
58
|
() => m()("prizePlace", {
|
|
59
59
|
values: { place: c(f).place, prize: c(f).name }
|
|
60
60
|
})
|
|
61
|
-
]),
|
|
62
|
-
}), a(
|
|
61
|
+
]), d(v, _);
|
|
62
|
+
}), a(l), a(t), d(e, t);
|
|
63
63
|
};
|
|
64
|
-
x(
|
|
65
|
-
c(
|
|
64
|
+
x(D, (e) => {
|
|
65
|
+
c(M).length > 0 && e(G);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var L = n(D, 2);
|
|
69
69
|
{
|
|
70
|
-
var
|
|
71
|
-
var t =
|
|
72
|
-
|
|
73
|
-
var
|
|
74
|
-
|
|
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
75
|
};
|
|
76
|
-
x(
|
|
77
|
-
c(
|
|
76
|
+
x(L, (e) => {
|
|
77
|
+
c(B) && e(J);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var z = n(L, 2);
|
|
81
81
|
{
|
|
82
82
|
var Q = (e) => {
|
|
83
|
-
var t =
|
|
84
|
-
|
|
85
|
-
var
|
|
86
|
-
|
|
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
87
|
};
|
|
88
|
-
x(
|
|
89
|
-
|
|
88
|
+
x(z, (e) => {
|
|
89
|
+
i().minBetCount && e(Q);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
var
|
|
92
|
+
var F = n(z, 2);
|
|
93
93
|
{
|
|
94
|
-
var
|
|
95
|
-
var t =
|
|
96
|
-
_e(
|
|
97
|
-
var
|
|
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
98
|
{
|
|
99
99
|
var h = (p) => {
|
|
100
|
-
var
|
|
101
|
-
|
|
100
|
+
var g = xe(), T = j(g, !0);
|
|
101
|
+
q(() => w(T, C())), d(p, g);
|
|
102
102
|
};
|
|
103
103
|
x(_, (p) => {
|
|
104
104
|
C() && p(h);
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
a(
|
|
107
|
+
a(l), a(t), q((p) => w(f, `${p ?? ""}:`), [() => m()("forCasino")]), d(e, t);
|
|
108
108
|
};
|
|
109
|
-
x(
|
|
110
|
-
|
|
109
|
+
x(F, (e) => {
|
|
110
|
+
i().wallet?.casino && e(W);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var H = n(F, 2);
|
|
114
114
|
{
|
|
115
|
-
var
|
|
116
|
-
var t =
|
|
117
|
-
he(
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
}), a(_), a(
|
|
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
123
|
};
|
|
124
|
-
x(
|
|
125
|
-
|
|
124
|
+
x(H, (e) => {
|
|
125
|
+
i().wallet?.sports && R().length > 0 && e(X);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
ce(
|
|
130
|
-
var
|
|
131
|
-
|
|
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
132
|
var ee = re(Y);
|
|
133
|
-
return
|
|
133
|
+
return V(), ee;
|
|
134
134
|
}
|
|
135
135
|
te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
|
|
136
136
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-
|
|
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) {flex-shrink:0;width:16px;height:
|
|
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
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
4
|
|
|
5
5
|
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
6
|
-
}`};function E(q,
|
|
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;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { c as te, g as ae, a as se, p as
|
|
2
|
-
import { S as ve } from "./TournamentLeaderboard-
|
|
3
|
-
import { T as pe } from "./TrophyIcon-
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { S as _e } from "./SlotMachineIcon-
|
|
7
|
-
import { F as he } from "./FootballIcon-
|
|
8
|
-
import { D as ce } from "./DocumentsIcon-
|
|
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
9
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
10
10
|
}, globalThis.customElements = { define() {
|
|
11
11
|
}, get() {
|
|
12
12
|
}, whenDefined() {
|
|
13
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>'),
|
|
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
15
|
const be = {
|
|
16
16
|
hash: "svelte-1hqp0j7",
|
|
17
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) {flex-shrink:0;width:16px;height:
|
|
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
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
20
|
|
|
21
21
|
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
22
22
|
}`
|
|
23
23
|
};
|
|
24
|
-
function Ce(
|
|
25
|
-
ae(b, !0), se(
|
|
26
|
-
const m = () =>
|
|
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
27
|
var t;
|
|
28
|
-
return [...(t =
|
|
28
|
+
return [...(t = o().prizes) != null ? t : []].sort((e, a) => e.rank - a.rank).map((e) => ({
|
|
29
29
|
place: e.count > 1 ? `${e.rank} - ${e.rank + e.count - 1}` : String(e.rank),
|
|
30
30
|
name: e.name
|
|
31
31
|
}));
|
|
32
|
-
}),
|
|
32
|
+
}), D = U(() => ve[o().scoreCriteria]);
|
|
33
33
|
var Y = {
|
|
34
34
|
get tournament() {
|
|
35
|
-
return
|
|
35
|
+
return o();
|
|
36
36
|
},
|
|
37
37
|
set tournament(t) {
|
|
38
|
-
|
|
38
|
+
o(t), E();
|
|
39
39
|
},
|
|
40
40
|
get casinoRules() {
|
|
41
41
|
return C();
|
|
@@ -49,93 +49,93 @@ function Ce(L, b) {
|
|
|
49
49
|
set sportRules(t = []) {
|
|
50
50
|
R(t), E();
|
|
51
51
|
}
|
|
52
|
-
}, y = we(),
|
|
52
|
+
}, y = we(), L = r(y);
|
|
53
53
|
{
|
|
54
|
-
var
|
|
54
|
+
var G = (t) => {
|
|
55
55
|
var e = fe(), a = r(e), v = r(a);
|
|
56
|
-
pe(v, {}), s(a);
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var h = me(),
|
|
60
|
-
|
|
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
61
|
() => m()("prizePlace", {
|
|
62
62
|
values: { place: c(f).place, prize: c(f).name }
|
|
63
63
|
})
|
|
64
|
-
]),
|
|
65
|
-
}), s(
|
|
64
|
+
]), u(p, h);
|
|
65
|
+
}), s(l), s(e), u(t, e);
|
|
66
66
|
};
|
|
67
|
-
x(
|
|
68
|
-
c(
|
|
67
|
+
x(L, (t) => {
|
|
68
|
+
c(B).length > 0 && t(G);
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var z = n(L, 2);
|
|
72
72
|
{
|
|
73
|
-
var
|
|
74
|
-
var e =
|
|
75
|
-
|
|
76
|
-
var
|
|
77
|
-
|
|
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
78
|
};
|
|
79
|
-
x(
|
|
80
|
-
c(
|
|
79
|
+
x(z, (t) => {
|
|
80
|
+
c(D) && t(J);
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
var
|
|
83
|
+
var F = n(z, 2);
|
|
84
84
|
{
|
|
85
85
|
var Q = (t) => {
|
|
86
|
-
var e =
|
|
87
|
-
|
|
88
|
-
var
|
|
89
|
-
|
|
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
90
|
};
|
|
91
|
-
x(
|
|
92
|
-
|
|
91
|
+
x(F, (t) => {
|
|
92
|
+
o().minBetCount && t(Q);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var H = n(F, 2);
|
|
96
96
|
{
|
|
97
|
-
var
|
|
98
|
-
var e =
|
|
99
|
-
_e(v, {}), s(a);
|
|
100
|
-
var
|
|
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
101
|
{
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
|
|
102
|
+
var d = (i) => {
|
|
103
|
+
var g = xe(), T = j(g, !0);
|
|
104
|
+
q(() => w(T, C())), u(i, g);
|
|
105
105
|
};
|
|
106
|
-
x(h, (
|
|
107
|
-
C() &&
|
|
106
|
+
x(h, (i) => {
|
|
107
|
+
C() && i(d);
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
s(
|
|
110
|
+
s(l), s(e), q((i) => w(f, `${i != null ? i : ""}:`), [() => m()("forCasino")]), u(t, e);
|
|
111
111
|
};
|
|
112
|
-
x(
|
|
112
|
+
x(H, (t) => {
|
|
113
113
|
var e;
|
|
114
|
-
(e =
|
|
114
|
+
(e = o().wallet) != null && e.casino && t(W);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
var
|
|
117
|
+
var K = n(H, 2);
|
|
118
118
|
{
|
|
119
|
-
var
|
|
120
|
-
var e =
|
|
121
|
-
he(v, {}), s(a);
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
}), s(h), s(
|
|
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
127
|
};
|
|
128
|
-
x(
|
|
128
|
+
x(K, (t) => {
|
|
129
129
|
var e;
|
|
130
|
-
(e =
|
|
130
|
+
(e = o().wallet) != null && e.sports && R().length > 0 && t(X);
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
var
|
|
134
|
-
ce(
|
|
135
|
-
var
|
|
136
|
-
|
|
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
137
|
var ee = re(Y);
|
|
138
|
-
return
|
|
138
|
+
return V(), ee;
|
|
139
139
|
}
|
|
140
140
|
te(Ce, { tournament: {}, casinoRules: {}, sportRules: {} }, [], [], { mode: "open" });
|
|
141
141
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./StatusBadge-
|
|
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) {flex-shrink:0;width:16px;height:
|
|
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
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
4
|
|
|
5
5
|
@media (max-width: 767px) {.tournament-details__rules.svelte-1hqp0j7 {gap:20px;font-size:13px;}
|
|
6
|
-
}`};function $(q,
|
|
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;
|