@everymatrix/casino-tournaments-page-controller 1.44.0 → 1.45.2
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/CasinoTournamentsDetails-CTbLTCNq.js +861 -0
- package/components/CasinoTournamentsDetails-CdFtnk8v.cjs +1 -0
- package/components/CasinoTournamentsPageController-BX5_-OUG.cjs +25 -0
- package/components/CasinoTournamentsPageController-By8Qf6Sl.js +8516 -0
- package/components/CasinoTournamentsRank-BPHA2JPF.js +271 -0
- package/components/CasinoTournamentsRank-Ccr8Z0om.cjs +1 -0
- package/components/CasinoTournamentsTab-CmF1j5XE.js +281 -0
- package/components/CasinoTournamentsTab-DXUCFgtb.cjs +1 -0
- package/components/CasinoTournamentsTable-8HJDxcSe.cjs +1 -0
- package/components/CasinoTournamentsTable-DL6KVTDX.js +1671 -0
- package/components/CasinoTournamentsThumbnail--BxjqzmL.cjs +4 -0
- package/components/CasinoTournamentsThumbnail-NcOyz0gt.js +866 -0
- package/components/CasinoTournamentsThumbnailController-B3YbDJuf.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-pROl7BE2.js +1406 -0
- package/components/CasinoTournamentsThumbnailDuration-Icm0PzJz.js +496 -0
- package/components/CasinoTournamentsThumbnailDuration-_PXBJwAk.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-C4oebmHa.js +439 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DOXcgDnK.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-Dgkbf6BO.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-Oy21zp8B.js +311 -0
- package/components/CasinoTournamentsThumbnailRule-BMRBfYRJ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailRule-BqQsSnWS.js +1110 -0
- package/es2015/casino-tournaments-page-controller.cjs +1 -0
- package/es2015/casino-tournaments-page-controller.js +16 -0
- package/package.json +22 -32
- package/.eslintrc +0 -84
- package/CHANGELOG.md +0 -7
- package/README.md +0 -0
- package/dist/casino-tournaments-page-controller.js +0 -2
- package/dist/casino-tournaments-page-controller.js.map +0 -1
- package/documentation.md +0 -119
- package/index.html +0 -35
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoTournamentsPageController.svelte +0 -871
- package/src/i18n.js +0 -28
- package/src/images/game-casino.svg +0 -684
- package/src/images/game-sports.svg +0 -485
- package/src/index.ts +0 -4
- package/src/translations.js +0 -182
- package/stories/CasinoTournamentsPageController.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { S as G, b as J, f as v, c as K, a as O, d as Q, l as _, e as M, t as D, m as i, z as j, h as E, p as c, q as B, n as Z, j as q, o as V, A as W } from "./CasinoTournamentsDetails-CTbLTCNq.js";
|
|
2
|
+
const X = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e", Y = "data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e", $ = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", e2 = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
3
|
+
function t2(a) {
|
|
4
|
+
Q(a, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
|
|
5
|
+
}
|
|
6
|
+
function F(a) {
|
|
7
|
+
let e;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
e = _("span"), e.innerHTML = `<img alt="user" src="${Y}"/>`, i(e, "class", "Icon UserIcon"), i(e, "part", "Icon UserIcon");
|
|
11
|
+
},
|
|
12
|
+
m(n, m) {
|
|
13
|
+
E(n, e, m);
|
|
14
|
+
},
|
|
15
|
+
d(n) {
|
|
16
|
+
n && q(e);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function N(a) {
|
|
21
|
+
let e;
|
|
22
|
+
return {
|
|
23
|
+
c() {
|
|
24
|
+
e = _("span"), e.innerHTML = `<img alt="prize" src="${X}"/>`, i(e, "class", "Icon PrizeIcon"), i(e, "part", "Icon PrizeIcon");
|
|
25
|
+
},
|
|
26
|
+
m(n, m) {
|
|
27
|
+
E(n, e, m);
|
|
28
|
+
},
|
|
29
|
+
d(n) {
|
|
30
|
+
n && q(e);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function n2(a) {
|
|
35
|
+
let e, n, m, o, S, y = (
|
|
36
|
+
/*overallrank*/
|
|
37
|
+
(a[1] == 0 ? "-" : (
|
|
38
|
+
/*userrank*/
|
|
39
|
+
a[0] ? (
|
|
40
|
+
/*userrank*/
|
|
41
|
+
a[0]
|
|
42
|
+
) : "-"
|
|
43
|
+
)) + ""
|
|
44
|
+
), g, b, R = (
|
|
45
|
+
/*overallrank*/
|
|
46
|
+
(a[1] == 0 ? "-" : (
|
|
47
|
+
/*overallrank*/
|
|
48
|
+
a[1]
|
|
49
|
+
)) + ""
|
|
50
|
+
), x, C, l, p, z, P, d, I, A, k, u, L, U, H, T, t, w, r = (
|
|
51
|
+
/*showicon*/
|
|
52
|
+
a[4] == "true" && F()
|
|
53
|
+
), h = (
|
|
54
|
+
/*showicon*/
|
|
55
|
+
a[4] == "true" && N()
|
|
56
|
+
);
|
|
57
|
+
return {
|
|
58
|
+
c() {
|
|
59
|
+
e = _("div"), n = _("div"), r && r.c(), m = M(), o = _("span"), S = D(
|
|
60
|
+
/*rankprefix*/
|
|
61
|
+
a[3]
|
|
62
|
+
), g = D(y), b = D("/"), x = D(R), C = M(), l = _("img"), P = M(), d = _("img"), k = M(), u = _("div"), h && h.c(), L = M(), U = _("span"), H = D(
|
|
63
|
+
/*prize*/
|
|
64
|
+
a[2]
|
|
65
|
+
), i(l, "part", "Rank_Arror_UP"), i(l, "alt", "Rank Up"), j(l.src, p = $) || i(l, "src", p), i(l, "width", "20"), i(l, "height", "20"), i(l, "class", z = "svg Arrow Up " + /*userRankChanged*/
|
|
66
|
+
(a[7] && /*isRankingUp*/
|
|
67
|
+
a[8] ? "Show" : "Hidden")), i(d, "part", "Rank_Arror_Down"), i(d, "alt", "Rank Down"), j(d.src, I = e2) || i(d, "src", I), i(d, "width", "10"), i(d, "height", "10"), i(d, "class", A = "svg Arrow Down " + /*userRankChanged*/
|
|
68
|
+
(a[7] && !/*isRankingUp*/
|
|
69
|
+
a[8] ? "Show" : "Hidden")), i(o, "class", "RankInfo"), i(o, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(U, "class", "RankInfo UserPrize"), i(U, "part", "PrizeText"), i(u, "class", T = /*displayin*/
|
|
70
|
+
a[5] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", t = /*displayin*/
|
|
71
|
+
a[5] + " casino-tournaments-rank"), i(e, "part", w = /*displayin*/
|
|
72
|
+
a[5] + " casino-tournaments-rank");
|
|
73
|
+
},
|
|
74
|
+
m(s, f) {
|
|
75
|
+
E(s, e, f), c(e, n), r && r.m(n, null), c(n, m), c(n, o), c(o, S), c(o, g), c(o, b), c(o, x), c(o, C), c(o, l), c(o, P), c(o, d), c(e, k), c(e, u), h && h.m(u, null), c(u, L), c(u, U), c(U, H), a[12](e);
|
|
76
|
+
},
|
|
77
|
+
p(s, [f]) {
|
|
78
|
+
/*showicon*/
|
|
79
|
+
s[4] == "true" ? r || (r = F(), r.c(), r.m(n, m)) : r && (r.d(1), r = null), f & /*rankprefix*/
|
|
80
|
+
8 && B(
|
|
81
|
+
S,
|
|
82
|
+
/*rankprefix*/
|
|
83
|
+
s[3]
|
|
84
|
+
), f & /*overallrank, userrank*/
|
|
85
|
+
3 && y !== (y = /*overallrank*/
|
|
86
|
+
(s[1] == 0 ? "-" : (
|
|
87
|
+
/*userrank*/
|
|
88
|
+
s[0] ? (
|
|
89
|
+
/*userrank*/
|
|
90
|
+
s[0]
|
|
91
|
+
) : "-"
|
|
92
|
+
)) + "") && B(g, y), f & /*overallrank*/
|
|
93
|
+
2 && R !== (R = /*overallrank*/
|
|
94
|
+
(s[1] == 0 ? "-" : (
|
|
95
|
+
/*overallrank*/
|
|
96
|
+
s[1]
|
|
97
|
+
)) + "") && B(x, R), f & /*userRankChanged, isRankingUp*/
|
|
98
|
+
384 && z !== (z = "svg Arrow Up " + /*userRankChanged*/
|
|
99
|
+
(s[7] && /*isRankingUp*/
|
|
100
|
+
s[8] ? "Show" : "Hidden")) && i(l, "class", z), f & /*userRankChanged, isRankingUp*/
|
|
101
|
+
384 && A !== (A = "svg Arrow Down " + /*userRankChanged*/
|
|
102
|
+
(s[7] && !/*isRankingUp*/
|
|
103
|
+
s[8] ? "Show" : "Hidden")) && i(d, "class", A), /*showicon*/
|
|
104
|
+
s[4] == "true" ? h || (h = N(), h.c(), h.m(u, L)) : h && (h.d(1), h = null), f & /*prize*/
|
|
105
|
+
4 && B(
|
|
106
|
+
H,
|
|
107
|
+
/*prize*/
|
|
108
|
+
s[2]
|
|
109
|
+
), f & /*displayin*/
|
|
110
|
+
32 && T !== (T = /*displayin*/
|
|
111
|
+
s[5] + " PrizeSec") && i(u, "class", T), f & /*displayin*/
|
|
112
|
+
32 && t !== (t = /*displayin*/
|
|
113
|
+
s[5] + " casino-tournaments-rank") && i(e, "class", t), f & /*displayin*/
|
|
114
|
+
32 && w !== (w = /*displayin*/
|
|
115
|
+
s[5] + " casino-tournaments-rank") && i(e, "part", w);
|
|
116
|
+
},
|
|
117
|
+
i: Z,
|
|
118
|
+
o: Z,
|
|
119
|
+
d(s) {
|
|
120
|
+
s && q(e), r && r.d(), h && h.d(), a[12](null);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function i2(a, e, n) {
|
|
125
|
+
let { rankprefix: m = "#" } = e, { showicon: o = "true" } = e, { tournamentid: S = "" } = e, { overallrank: y = "0" } = e, { userrank: g = "0" } = e, { prize: b = "PrizeName" } = e, { displayin: R = "row" } = e, { clientstyling: x = "" } = e, { clientstylingurl: C = "" } = e, l, p, z = !1, P = !0, d, I, A, k;
|
|
126
|
+
const u = (t) => {
|
|
127
|
+
t.data && t.data.type == `TournamentRankInfo_${S}` && L(t.data.rankInfo);
|
|
128
|
+
}, L = (t) => {
|
|
129
|
+
let w = (r) => {
|
|
130
|
+
n(0, g = r.rank), n(1, y = r.overallRank), n(2, b = r.prize);
|
|
131
|
+
};
|
|
132
|
+
if (!k) {
|
|
133
|
+
k = p, w(t);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
p && (n(7, z = k != t.rank), n(8, P = k > t.rank), d = (/* @__PURE__ */ new Date()).getTime(), A = setTimeout(
|
|
137
|
+
() => {
|
|
138
|
+
I = (/* @__PURE__ */ new Date()).getTime(), (I - d) / 1e3 > 4 && n(7, z = !1), k = p;
|
|
139
|
+
},
|
|
140
|
+
5e3
|
|
141
|
+
), w(t));
|
|
142
|
+
}, U = () => {
|
|
143
|
+
let t = document.createElement("style");
|
|
144
|
+
t.innerHTML = x, l.appendChild(t);
|
|
145
|
+
}, H = () => {
|
|
146
|
+
let t = new URL(C), w = document.createElement("style");
|
|
147
|
+
fetch(t.href).then((r) => r.text()).then((r) => {
|
|
148
|
+
w.innerHTML = r, setTimeout(
|
|
149
|
+
() => {
|
|
150
|
+
l.appendChild(w);
|
|
151
|
+
},
|
|
152
|
+
1
|
|
153
|
+
), setTimeout(
|
|
154
|
+
() => {
|
|
155
|
+
},
|
|
156
|
+
500
|
|
157
|
+
);
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
V(() => (p = g == null ? void 0 : parseInt(g), k = p, n(0, g = g == null ? "-" : g), window.addEventListener("message", u, !0), () => {
|
|
161
|
+
window.removeEventListener("message", u), clearTimeout(A);
|
|
162
|
+
}));
|
|
163
|
+
function T(t) {
|
|
164
|
+
W[t ? "unshift" : "push"](() => {
|
|
165
|
+
l = t, n(6, l);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return a.$$set = (t) => {
|
|
169
|
+
"rankprefix" in t && n(3, m = t.rankprefix), "showicon" in t && n(4, o = t.showicon), "tournamentid" in t && n(9, S = t.tournamentid), "overallrank" in t && n(1, y = t.overallrank), "userrank" in t && n(0, g = t.userrank), "prize" in t && n(2, b = t.prize), "displayin" in t && n(5, R = t.displayin), "clientstyling" in t && n(10, x = t.clientstyling), "clientstylingurl" in t && n(11, C = t.clientstylingurl);
|
|
170
|
+
}, a.$$.update = () => {
|
|
171
|
+
a.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
172
|
+
1088 && l && x && U(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
173
|
+
2112 && l && C && H(), a.$$.dirty & /*userrank*/
|
|
174
|
+
1 && (p = parseInt(g));
|
|
175
|
+
}, [
|
|
176
|
+
g,
|
|
177
|
+
y,
|
|
178
|
+
b,
|
|
179
|
+
m,
|
|
180
|
+
o,
|
|
181
|
+
R,
|
|
182
|
+
l,
|
|
183
|
+
z,
|
|
184
|
+
P,
|
|
185
|
+
S,
|
|
186
|
+
x,
|
|
187
|
+
C,
|
|
188
|
+
T
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
class a2 extends G {
|
|
192
|
+
constructor(e) {
|
|
193
|
+
super(), J(
|
|
194
|
+
this,
|
|
195
|
+
e,
|
|
196
|
+
i2,
|
|
197
|
+
n2,
|
|
198
|
+
O,
|
|
199
|
+
{
|
|
200
|
+
rankprefix: 3,
|
|
201
|
+
showicon: 4,
|
|
202
|
+
tournamentid: 9,
|
|
203
|
+
overallrank: 1,
|
|
204
|
+
userrank: 0,
|
|
205
|
+
prize: 2,
|
|
206
|
+
displayin: 5,
|
|
207
|
+
clientstyling: 10,
|
|
208
|
+
clientstylingurl: 11
|
|
209
|
+
},
|
|
210
|
+
t2
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
get rankprefix() {
|
|
214
|
+
return this.$$.ctx[3];
|
|
215
|
+
}
|
|
216
|
+
set rankprefix(e) {
|
|
217
|
+
this.$$set({ rankprefix: e }), v();
|
|
218
|
+
}
|
|
219
|
+
get showicon() {
|
|
220
|
+
return this.$$.ctx[4];
|
|
221
|
+
}
|
|
222
|
+
set showicon(e) {
|
|
223
|
+
this.$$set({ showicon: e }), v();
|
|
224
|
+
}
|
|
225
|
+
get tournamentid() {
|
|
226
|
+
return this.$$.ctx[9];
|
|
227
|
+
}
|
|
228
|
+
set tournamentid(e) {
|
|
229
|
+
this.$$set({ tournamentid: e }), v();
|
|
230
|
+
}
|
|
231
|
+
get overallrank() {
|
|
232
|
+
return this.$$.ctx[1];
|
|
233
|
+
}
|
|
234
|
+
set overallrank(e) {
|
|
235
|
+
this.$$set({ overallrank: e }), v();
|
|
236
|
+
}
|
|
237
|
+
get userrank() {
|
|
238
|
+
return this.$$.ctx[0];
|
|
239
|
+
}
|
|
240
|
+
set userrank(e) {
|
|
241
|
+
this.$$set({ userrank: e }), v();
|
|
242
|
+
}
|
|
243
|
+
get prize() {
|
|
244
|
+
return this.$$.ctx[2];
|
|
245
|
+
}
|
|
246
|
+
set prize(e) {
|
|
247
|
+
this.$$set({ prize: e }), v();
|
|
248
|
+
}
|
|
249
|
+
get displayin() {
|
|
250
|
+
return this.$$.ctx[5];
|
|
251
|
+
}
|
|
252
|
+
set displayin(e) {
|
|
253
|
+
this.$$set({ displayin: e }), v();
|
|
254
|
+
}
|
|
255
|
+
get clientstyling() {
|
|
256
|
+
return this.$$.ctx[10];
|
|
257
|
+
}
|
|
258
|
+
set clientstyling(e) {
|
|
259
|
+
this.$$set({ clientstyling: e }), v();
|
|
260
|
+
}
|
|
261
|
+
get clientstylingurl() {
|
|
262
|
+
return this.$$.ctx[11];
|
|
263
|
+
}
|
|
264
|
+
set clientstylingurl(e) {
|
|
265
|
+
this.$$set({ clientstylingurl: e }), v();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
K(a2, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
269
|
+
export {
|
|
270
|
+
a2 as default
|
|
271
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-CdFtnk8v.cjs"),M="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e",D="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e",q="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",B="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function E(a){e.append_styles(a,"svelte-1njm5xr",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="user" src="${D}"/>`,e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function L(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="prize" src="${M}"/>`,e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function j(a){let t,i,p,c,x,k=(a[1]==0?"-":a[0]?a[0]:"-")+"",o,R,y=(a[1]==0?"-":a[1])+"",v,z,s,m,_,T,d,b,S,w,u,U,C,P,A,n,f,r=a[4]=="true"&&I(),g=a[4]=="true"&&L();return{c(){t=e.element("div"),i=e.element("div"),r&&r.c(),p=e.space(),c=e.element("span"),x=e.text(a[3]),o=e.text(k),R=e.text("/"),v=e.text(y),z=e.space(),s=e.element("img"),T=e.space(),d=e.element("img"),w=e.space(),u=e.element("div"),g&&g.c(),U=e.space(),C=e.element("span"),P=e.text(a[2]),e.attr(s,"part","Rank_Arror_UP"),e.attr(s,"alt","Rank Up"),e.src_url_equal(s.src,m=q)||e.attr(s,"src",m),e.attr(s,"width","20"),e.attr(s,"height","20"),e.attr(s,"class",_="svg Arrow Up "+(a[7]&&a[8]?"Show":"Hidden")),e.attr(d,"part","Rank_Arror_Down"),e.attr(d,"alt","Rank Down"),e.src_url_equal(d.src,b=B)||e.attr(d,"src",b),e.attr(d,"width","10"),e.attr(d,"height","10"),e.attr(d,"class",S="svg Arrow Down "+(a[7]&&!a[8]?"Show":"Hidden")),e.attr(c,"class","RankInfo"),e.attr(c,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(C,"class","RankInfo UserPrize"),e.attr(C,"part","PrizeText"),e.attr(u,"class",A=a[5]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",n=a[5]+" casino-tournaments-rank"),e.attr(t,"part",f=a[5]+" casino-tournaments-rank")},m(l,h){e.insert(l,t,h),e.append(t,i),r&&r.m(i,null),e.append(i,p),e.append(i,c),e.append(c,x),e.append(c,o),e.append(c,R),e.append(c,v),e.append(c,z),e.append(c,s),e.append(c,T),e.append(c,d),e.append(t,w),e.append(t,u),g&&g.m(u,null),e.append(u,U),e.append(u,C),e.append(C,P),a[12](t)},p(l,[h]){l[4]=="true"?r||(r=I(),r.c(),r.m(i,p)):r&&(r.d(1),r=null),h&8&&e.set_data(x,l[3]),h&3&&k!==(k=(l[1]==0?"-":l[0]?l[0]:"-")+"")&&e.set_data(o,k),h&2&&y!==(y=(l[1]==0?"-":l[1])+"")&&e.set_data(v,y),h&384&&_!==(_="svg Arrow Up "+(l[7]&&l[8]?"Show":"Hidden"))&&e.attr(s,"class",_),h&384&&S!==(S="svg Arrow Down "+(l[7]&&!l[8]?"Show":"Hidden"))&&e.attr(d,"class",S),l[4]=="true"?g||(g=L(),g.c(),g.m(u,U)):g&&(g.d(1),g=null),h&4&&e.set_data(P,l[2]),h&32&&A!==(A=l[5]+" PrizeSec")&&e.attr(u,"class",A),h&32&&n!==(n=l[5]+" casino-tournaments-rank")&&e.attr(t,"class",n),h&32&&f!==(f=l[5]+" casino-tournaments-rank")&&e.attr(t,"part",f)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),r&&r.d(),g&&g.d(),a[12](null)}}}function Z(a,t,i){let{rankprefix:p="#"}=t,{showicon:c="true"}=t,{tournamentid:x=""}=t,{overallrank:k="0"}=t,{userrank:o="0"}=t,{prize:R="PrizeName"}=t,{displayin:y="row"}=t,{clientstyling:v=""}=t,{clientstylingurl:z=""}=t,s,m,_=!1,T=!0,d,b,S,w;const u=n=>{n.data&&n.data.type==`TournamentRankInfo_${x}`&&U(n.data.rankInfo)},U=n=>{let f=r=>{i(0,o=r.rank),i(1,k=r.overallRank),i(2,R=r.prize)};if(!w){w=m,f(n);return}m&&(i(7,_=w!=n.rank),i(8,T=w>n.rank),d=new Date().getTime(),S=setTimeout(()=>{b=new Date().getTime(),(b-d)/1e3>4&&i(7,_=!1),w=m},5e3),f(n))},C=()=>{let n=document.createElement("style");n.innerHTML=v,s.appendChild(n)},P=()=>{let n=new URL(z),f=document.createElement("style");fetch(n.href).then(r=>r.text()).then(r=>{f.innerHTML=r,setTimeout(()=>{s.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(m=o==null?void 0:parseInt(o),w=m,i(0,o=o==null?"-":o),window.addEventListener("message",u,!0),()=>{window.removeEventListener("message",u),clearTimeout(S)}));function A(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,i(6,s)})}return a.$$set=n=>{"rankprefix"in n&&i(3,p=n.rankprefix),"showicon"in n&&i(4,c=n.showicon),"tournamentid"in n&&i(9,x=n.tournamentid),"overallrank"in n&&i(1,k=n.overallrank),"userrank"in n&&i(0,o=n.userrank),"prize"in n&&i(2,R=n.prize),"displayin"in n&&i(5,y=n.displayin),"clientstyling"in n&&i(10,v=n.clientstyling),"clientstylingurl"in n&&i(11,z=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&1088&&s&&v&&C(),a.$$.dirty&2112&&s&&z&&P(),a.$$.dirty&1&&(m=parseInt(o))},[o,k,R,p,c,y,s,_,T,x,v,z,A]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Z,j,e.safe_not_equal,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},E)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[2]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(H,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=H;
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
var I = Object.defineProperty, J = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var S = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (t, e, n) => e in t ? I(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
S.call(e, n) && M(t, n, e[n]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var n of w(e))
|
|
10
|
+
z.call(e, n) && M(t, n, e[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, k = (t, e) => J(t, K(e));
|
|
13
|
+
var E = (t, e) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var i in t)
|
|
16
|
+
S.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
|
|
17
|
+
if (t != null && w)
|
|
18
|
+
for (var i of w(t))
|
|
19
|
+
e.indexOf(i) < 0 && z.call(t, i) && (n[i] = t[i]);
|
|
20
|
+
return n;
|
|
21
|
+
};
|
|
22
|
+
import { o as D, S as N, b as P, f as _, c as Q, a as V, d as W, x as H, l as p, m as f, h as L, p as h, n as R, j as C, y as X, t as O, e as U, v as Y, q as B, A as Z } from "./CasinoTournamentsDetails-CTbLTCNq.js";
|
|
23
|
+
const x = (t) => (n) => {
|
|
24
|
+
Object.keys(t).map((i) => {
|
|
25
|
+
if (n.data && n.data.type == i) {
|
|
26
|
+
const l = n.data, { type: s } = l, r = E(l, ["type"]);
|
|
27
|
+
t[i](r);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}, $ = (t) => {
|
|
31
|
+
const e = x(t);
|
|
32
|
+
D(() => (window.addEventListener("message", e, !1), () => {
|
|
33
|
+
window.removeEventListener("message", e);
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
function tt(t) {
|
|
37
|
+
W(t, "svelte-1eq8iwl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}");
|
|
38
|
+
}
|
|
39
|
+
function j(t, e, n) {
|
|
40
|
+
const i = t.slice();
|
|
41
|
+
return i[14] = e[n], i;
|
|
42
|
+
}
|
|
43
|
+
function q(t) {
|
|
44
|
+
let e, n, i = (
|
|
45
|
+
/*totalReceiver*/
|
|
46
|
+
t[1][
|
|
47
|
+
/*_tab*/
|
|
48
|
+
t[14]
|
|
49
|
+
] + ""
|
|
50
|
+
), l;
|
|
51
|
+
return {
|
|
52
|
+
c() {
|
|
53
|
+
e = p("sup"), n = p("span"), l = O(i), f(n, "part", "SupText"), f(e, "part", "sup");
|
|
54
|
+
},
|
|
55
|
+
m(s, r) {
|
|
56
|
+
L(s, e, r), h(e, n), h(n, l);
|
|
57
|
+
},
|
|
58
|
+
p(s, r) {
|
|
59
|
+
r & /*totalReceiver, __tabs*/
|
|
60
|
+
18 && i !== (i = /*totalReceiver*/
|
|
61
|
+
s[1][
|
|
62
|
+
/*_tab*/
|
|
63
|
+
s[14]
|
|
64
|
+
] + "") && B(l, i);
|
|
65
|
+
},
|
|
66
|
+
d(s) {
|
|
67
|
+
s && C(e);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function A(t) {
|
|
72
|
+
let e, n, i = (
|
|
73
|
+
/*textReceiver*/
|
|
74
|
+
t[2][
|
|
75
|
+
/*_tab*/
|
|
76
|
+
t[14]
|
|
77
|
+
] + ""
|
|
78
|
+
), l, s, r, a, u, d, m, c = (
|
|
79
|
+
/*totalReceiver*/
|
|
80
|
+
t[1][
|
|
81
|
+
/*_tab*/
|
|
82
|
+
t[14]
|
|
83
|
+
] >= 0 && q(t)
|
|
84
|
+
);
|
|
85
|
+
function y() {
|
|
86
|
+
return (
|
|
87
|
+
/*click_handler*/
|
|
88
|
+
t[9](
|
|
89
|
+
/*_tab*/
|
|
90
|
+
t[14]
|
|
91
|
+
)
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
c() {
|
|
96
|
+
e = p("li"), n = p("span"), l = O(i), s = U(), c && c.c(), r = U(), f(n, "part", "LiText"), f(e, "class", a = /*__tab*/
|
|
97
|
+
t[3] === /*_tab*/
|
|
98
|
+
t[14] ? "active" : ""), f(e, "part", u = `${/*_tab*/
|
|
99
|
+
t[14]} li ` + /*__tab*/
|
|
100
|
+
(t[3] === /*_tab*/
|
|
101
|
+
t[14] ? "active" : ""));
|
|
102
|
+
},
|
|
103
|
+
m(b, g) {
|
|
104
|
+
L(b, e, g), h(e, n), h(n, l), h(e, s), c && c.m(e, null), h(e, r), d || (m = Y(e, "click", y), d = !0);
|
|
105
|
+
},
|
|
106
|
+
p(b, g) {
|
|
107
|
+
t = b, g & /*textReceiver, __tabs*/
|
|
108
|
+
20 && i !== (i = /*textReceiver*/
|
|
109
|
+
t[2][
|
|
110
|
+
/*_tab*/
|
|
111
|
+
t[14]
|
|
112
|
+
] + "") && B(l, i), /*totalReceiver*/
|
|
113
|
+
t[1][
|
|
114
|
+
/*_tab*/
|
|
115
|
+
t[14]
|
|
116
|
+
] >= 0 ? c ? c.p(t, g) : (c = q(t), c.c(), c.m(e, r)) : c && (c.d(1), c = null), g & /*__tab, __tabs*/
|
|
117
|
+
24 && a !== (a = /*__tab*/
|
|
118
|
+
t[3] === /*_tab*/
|
|
119
|
+
t[14] ? "active" : "") && f(e, "class", a), g & /*__tabs, __tab*/
|
|
120
|
+
24 && u !== (u = `${/*_tab*/
|
|
121
|
+
t[14]} li ` + /*__tab*/
|
|
122
|
+
(t[3] === /*_tab*/
|
|
123
|
+
t[14] ? "active" : "")) && f(e, "part", u);
|
|
124
|
+
},
|
|
125
|
+
d(b) {
|
|
126
|
+
b && C(e), c && c.d(), d = !1, m();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function et(t) {
|
|
131
|
+
let e, n, i = H(
|
|
132
|
+
/*__tabs*/
|
|
133
|
+
t[4]
|
|
134
|
+
), l = [];
|
|
135
|
+
for (let s = 0; s < i.length; s += 1)
|
|
136
|
+
l[s] = A(j(t, i, s));
|
|
137
|
+
return {
|
|
138
|
+
c() {
|
|
139
|
+
e = p("div"), n = p("ul");
|
|
140
|
+
for (let s = 0; s < l.length; s += 1)
|
|
141
|
+
l[s].c();
|
|
142
|
+
f(n, "part", "ul"), f(e, "class", "casino-tournaments-tab"), f(e, "part", "CustomStylingContainer");
|
|
143
|
+
},
|
|
144
|
+
m(s, r) {
|
|
145
|
+
L(s, e, r), h(e, n);
|
|
146
|
+
for (let a = 0; a < l.length; a += 1)
|
|
147
|
+
l[a] && l[a].m(n, null);
|
|
148
|
+
t[10](e);
|
|
149
|
+
},
|
|
150
|
+
p(s, [r]) {
|
|
151
|
+
if (r & /*__tab, __tabs, window, totalReceiver, textReceiver*/
|
|
152
|
+
30) {
|
|
153
|
+
i = H(
|
|
154
|
+
/*__tabs*/
|
|
155
|
+
s[4]
|
|
156
|
+
);
|
|
157
|
+
let a;
|
|
158
|
+
for (a = 0; a < i.length; a += 1) {
|
|
159
|
+
const u = j(s, i, a);
|
|
160
|
+
l[a] ? l[a].p(u, r) : (l[a] = A(u), l[a].c(), l[a].m(n, null));
|
|
161
|
+
}
|
|
162
|
+
for (; a < l.length; a += 1)
|
|
163
|
+
l[a].d(1);
|
|
164
|
+
l.length = i.length;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
i: R,
|
|
168
|
+
o: R,
|
|
169
|
+
d(s) {
|
|
170
|
+
s && C(e), X(l, s), t[10](null);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function nt(t, e, n) {
|
|
175
|
+
let i, l, { tabs: s = "" } = e, { tab: r = void 0 } = e, { clientstyling: a = "" } = e, { clientstylingurl: u = "" } = e, d, m = {}, c = {};
|
|
176
|
+
const y = () => {
|
|
177
|
+
let o = document.createElement("style");
|
|
178
|
+
o.innerHTML = a, d.appendChild(o);
|
|
179
|
+
}, b = () => {
|
|
180
|
+
let o = new URL(u), F = document.createElement("style");
|
|
181
|
+
fetch(o.href).then((v) => v.text()).then((v) => {
|
|
182
|
+
F.innerHTML = v, setTimeout(
|
|
183
|
+
() => {
|
|
184
|
+
d.appendChild(F);
|
|
185
|
+
},
|
|
186
|
+
1
|
|
187
|
+
), setTimeout(
|
|
188
|
+
() => {
|
|
189
|
+
},
|
|
190
|
+
500
|
|
191
|
+
);
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
$({
|
|
195
|
+
TournamentsTabTotalUpdate: (o) => {
|
|
196
|
+
n(1, m = k(T({}, m), {
|
|
197
|
+
[o.state]: o.total
|
|
198
|
+
}));
|
|
199
|
+
},
|
|
200
|
+
TournamentsTabLocaleTextUpdate: (o) => {
|
|
201
|
+
n(2, c = k(T({}, c), { [o.state]: o.text }));
|
|
202
|
+
}
|
|
203
|
+
}), D(() => {
|
|
204
|
+
window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href);
|
|
205
|
+
});
|
|
206
|
+
const g = (o) => {
|
|
207
|
+
n(3, l = o), window.postMessage({ type: "TournamentsTabSwitch", tab: o }, window.location.href);
|
|
208
|
+
};
|
|
209
|
+
function G(o) {
|
|
210
|
+
Z[o ? "unshift" : "push"](() => {
|
|
211
|
+
d = o, n(0, d);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
return t.$$set = (o) => {
|
|
215
|
+
"tabs" in o && n(5, s = o.tabs), "tab" in o && n(6, r = o.tab), "clientstyling" in o && n(7, a = o.clientstyling), "clientstylingurl" in o && n(8, u = o.clientstylingurl);
|
|
216
|
+
}, t.$$.update = () => {
|
|
217
|
+
t.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
218
|
+
129 && d && a && y(), t.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
219
|
+
257 && d && u && b(), t.$$.dirty & /*tabs*/
|
|
220
|
+
32 && n(4, i = s.split(",")), t.$$.dirty & /*tab*/
|
|
221
|
+
64 && n(3, l = r);
|
|
222
|
+
}, [
|
|
223
|
+
d,
|
|
224
|
+
m,
|
|
225
|
+
c,
|
|
226
|
+
l,
|
|
227
|
+
i,
|
|
228
|
+
s,
|
|
229
|
+
r,
|
|
230
|
+
a,
|
|
231
|
+
u,
|
|
232
|
+
g,
|
|
233
|
+
G
|
|
234
|
+
];
|
|
235
|
+
}
|
|
236
|
+
class it extends N {
|
|
237
|
+
constructor(e) {
|
|
238
|
+
super(), P(
|
|
239
|
+
this,
|
|
240
|
+
e,
|
|
241
|
+
nt,
|
|
242
|
+
et,
|
|
243
|
+
V,
|
|
244
|
+
{
|
|
245
|
+
tabs: 5,
|
|
246
|
+
tab: 6,
|
|
247
|
+
clientstyling: 7,
|
|
248
|
+
clientstylingurl: 8
|
|
249
|
+
},
|
|
250
|
+
tt
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
get tabs() {
|
|
254
|
+
return this.$$.ctx[5];
|
|
255
|
+
}
|
|
256
|
+
set tabs(e) {
|
|
257
|
+
this.$$set({ tabs: e }), _();
|
|
258
|
+
}
|
|
259
|
+
get tab() {
|
|
260
|
+
return this.$$.ctx[6];
|
|
261
|
+
}
|
|
262
|
+
set tab(e) {
|
|
263
|
+
this.$$set({ tab: e }), _();
|
|
264
|
+
}
|
|
265
|
+
get clientstyling() {
|
|
266
|
+
return this.$$.ctx[7];
|
|
267
|
+
}
|
|
268
|
+
set clientstyling(e) {
|
|
269
|
+
this.$$set({ clientstyling: e }), _();
|
|
270
|
+
}
|
|
271
|
+
get clientstylingurl() {
|
|
272
|
+
return this.$$.ctx[8];
|
|
273
|
+
}
|
|
274
|
+
set clientstylingurl(e) {
|
|
275
|
+
this.$$set({ clientstylingurl: e }), _();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
Q(it, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
279
|
+
export {
|
|
280
|
+
it as default
|
|
281
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var H=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(t,e,i)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_=(t,e)=>{for(var i in e||(e={}))k.call(e,i)&&T(t,i,e[i]);if(b)for(var i of b(e))C.call(e,i)&&T(t,i,e[i]);return t},y=(t,e)=>R(t,U(e));var L=(t,e)=>{var i={};for(var l in t)k.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&b)for(var l of b(t))e.indexOf(l)<0&&C.call(t,l)&&(i[l]=t[l]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CasinoTournamentsDetails-CdFtnk8v.cjs"),j=t=>i=>{Object.keys(t).map(l=>{if(i.data&&i.data.type==l){const s=i.data,{type:a}=s,u=L(s,["type"]);t[l](u)}})},q=t=>{const e=j(t);n.onMount(()=>(window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}))};function D(t){n.append_styles(t,"svelte-1eq8iwl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(t,e,i){const l=t.slice();return l[14]=e[i],l}function M(t){let e,i,l=t[1][t[14]]+"",s;return{c(){e=n.element("sup"),i=n.element("span"),s=n.text(l),n.attr(i,"part","SupText"),n.attr(e,"part","sup")},m(a,u){n.insert(a,e,u),n.append(e,i),n.append(i,s)},p(a,u){u&18&&l!==(l=a[1][a[14]]+"")&&n.set_data(s,l)},d(a){a&&n.detach(e)}}}function S(t){let e,i,l=t[2][t[14]]+"",s,a,u,o,d,f,h,c=t[1][t[14]]>=0&&M(t);function m(){return t[9](t[14])}return{c(){e=n.element("li"),i=n.element("span"),s=n.text(l),a=n.space(),c&&c.c(),u=n.space(),n.attr(i,"part","LiText"),n.attr(e,"class",o=t[3]===t[14]?"active":""),n.attr(e,"part",d=`${t[14]} li `+(t[3]===t[14]?"active":""))},m(p,g){n.insert(p,e,g),n.append(e,i),n.append(i,s),n.append(e,a),c&&c.m(e,null),n.append(e,u),f||(h=n.listen(e,"click",m),f=!0)},p(p,g){t=p,g&20&&l!==(l=t[2][t[14]]+"")&&n.set_data(s,l),t[1][t[14]]>=0?c?c.p(t,g):(c=M(t),c.c(),c.m(e,u)):c&&(c.d(1),c=null),g&24&&o!==(o=t[3]===t[14]?"active":"")&&n.attr(e,"class",o),g&24&&d!==(d=`${t[14]} li `+(t[3]===t[14]?"active":""))&&n.attr(e,"part",d)},d(p){p&&n.detach(e),c&&c.d(),f=!1,h()}}}function O(t){let e,i,l=n.ensure_array_like(t[4]),s=[];for(let a=0;a<l.length;a+=1)s[a]=S(F(t,l,a));return{c(){e=n.element("div"),i=n.element("ul");for(let a=0;a<s.length;a+=1)s[a].c();n.attr(i,"part","ul"),n.attr(e,"class","casino-tournaments-tab"),n.attr(e,"part","CustomStylingContainer")},m(a,u){n.insert(a,e,u),n.append(e,i);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(i,null);t[10](e)},p(a,[u]){if(u&30){l=n.ensure_array_like(a[4]);let o;for(o=0;o<l.length;o+=1){const d=F(a,l,o);s[o]?s[o].p(d,u):(s[o]=S(d),s[o].c(),s[o].m(i,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=l.length}},i:n.noop,o:n.noop,d(a){a&&n.detach(e),n.destroy_each(s,a),t[10](null)}}}function P(t,e,i){let l,s,{tabs:a=""}=e,{tab:u=void 0}=e,{clientstyling:o=""}=e,{clientstylingurl:d=""}=e,f,h={},c={};const m=()=>{let r=document.createElement("style");r.innerHTML=o,f.appendChild(r)},p=()=>{let r=new URL(d),v=document.createElement("style");fetch(r.href).then(w=>w.text()).then(w=>{v.innerHTML=w,setTimeout(()=>{f.appendChild(v)},1),setTimeout(()=>{},500)})};q({TournamentsTabTotalUpdate:r=>{i(1,h=y(_({},h),{[r.state]:r.total}))},TournamentsTabLocaleTextUpdate:r=>{i(2,c=y(_({},c),{[r.state]:r.text}))}}),n.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const g=r=>{i(3,s=r),window.postMessage({type:"TournamentsTabSwitch",tab:r},window.location.href)};function E(r){n.binding_callbacks[r?"unshift":"push"](()=>{f=r,i(0,f)})}return t.$$set=r=>{"tabs"in r&&i(5,a=r.tabs),"tab"in r&&i(6,u=r.tab),"clientstyling"in r&&i(7,o=r.clientstyling),"clientstylingurl"in r&&i(8,d=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&129&&f&&o&&m(),t.$$.dirty&257&&f&&d&&p(),t.$$.dirty&32&&i(4,l=a.split(",")),t.$$.dirty&64&&i(3,s=u)},[f,h,c,s,l,a,u,o,d,g,E]}class z extends n.SvelteComponent{constructor(e){super(),n.init(this,e,P,O,n.safe_not_equal,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},D)}get tabs(){return this.$$.ctx[5]}set tabs(e){this.$$set({tabs:e}),n.flush()}get tab(){return this.$$.ctx[6]}set tab(e){this.$$set({tab:e}),n.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}}n.create_custom_element(z,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=z;
|