@everymatrix/casino-tournaments-page-controller 1.48.2 → 1.49.1

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.
Files changed (30) hide show
  1. package/components/CasinoTournamentsPageController-CK2yBKf8.cjs +25 -0
  2. package/components/{CasinoTournamentsPageController-Cvz3-tu5.js → CasinoTournamentsPageController-DXL_hy9x.js} +2118 -2111
  3. package/components/CasinoTournamentsRank-ByVQsq0j.js +255 -0
  4. package/components/CasinoTournamentsRank-ClE4RDKa.cjs +1 -0
  5. package/components/CasinoTournamentsTab-CJP4arf8.cjs +1 -0
  6. package/components/CasinoTournamentsTab-KS-evuf9.js +302 -0
  7. package/components/CasinoTournamentsTable-CGL8cOyt.js +1721 -0
  8. package/components/CasinoTournamentsTable-Cm6E7Gcn.cjs +1 -0
  9. package/components/{CasinoTournamentsThumbnail-CHHQR444.js → CasinoTournamentsThumbnail-9H3bZvjk.js} +1 -1
  10. package/components/{CasinoTournamentsThumbnail-Dfgb6Te-.cjs → CasinoTournamentsThumbnail-De1W-oae.cjs} +1 -1
  11. package/components/{CasinoTournamentsThumbnailController-BNHrTsx8.js → CasinoTournamentsThumbnailController-CdKrCLPO.js} +5 -5
  12. package/components/{CasinoTournamentsThumbnailController-Du-d1wsO.cjs → CasinoTournamentsThumbnailController-DDx0lePx.cjs} +1 -1
  13. package/components/{CasinoTournamentsThumbnailDuration-lbzaXT1S.cjs → CasinoTournamentsThumbnailDuration-DKo6TOpK.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailDuration-BUP_rKFR.js → CasinoTournamentsThumbnailDuration-DzJfwLM1.js} +1 -1
  15. package/components/{CasinoTournamentsThumbnailGamesSlider-BEhJkvXo.cjs → CasinoTournamentsThumbnailGamesSlider-D8jJ0ipf.cjs} +1 -1
  16. package/components/{CasinoTournamentsThumbnailGamesSlider-BkBWpyhf.js → CasinoTournamentsThumbnailGamesSlider-IdiXtONf.js} +1 -1
  17. package/components/{CasinoTournamentsThumbnailPrizes-YY9pidK1.cjs → CasinoTournamentsThumbnailPrizes-1ez2rmF7.cjs} +1 -1
  18. package/components/{CasinoTournamentsThumbnailPrizes-DJDKps8c.js → CasinoTournamentsThumbnailPrizes-yKQdVXDk.js} +1 -1
  19. package/components/{CasinoTournamentsThumbnailRule-UWtxgcbc.cjs → CasinoTournamentsThumbnailRule-CR-VeSM2.cjs} +1 -1
  20. package/components/{CasinoTournamentsThumbnailRule-Bf0NDznY.js → CasinoTournamentsThumbnailRule-D5Kg_uF3.js} +135 -134
  21. package/es2015/casino-tournaments-page-controller.cjs +1 -1
  22. package/es2015/casino-tournaments-page-controller.js +1 -1
  23. package/package.json +1 -1
  24. package/components/CasinoTournamentsPageController-B3CM9WUi.cjs +0 -25
  25. package/components/CasinoTournamentsRank-Ccr8Z0om.cjs +0 -1
  26. package/components/CasinoTournamentsRank-FkVVBxmq.js +0 -271
  27. package/components/CasinoTournamentsTab-B-KqLF0m.js +0 -281
  28. package/components/CasinoTournamentsTab-DXUCFgtb.cjs +0 -1
  29. package/components/CasinoTournamentsTable-DKRtHfw6.js +0 -1679
  30. package/components/CasinoTournamentsTable-yGZuD2cv.cjs +0 -1
@@ -0,0 +1,255 @@
1
+ import { S as N, b as G, f as m, c as J, a as K, d as O, l as v, e as H, t as M, m as i, A as E, h as D, p as h, q, n as j, j as B, o as Q, B as V } from "./CasinoTournamentsDetails-SiUesTrH.js";
2
+ const W = "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", X = "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 Y(a) {
4
+ O(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 Z(a) {
7
+ let e;
8
+ return {
9
+ c() {
10
+ e = v("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>', i(e, "class", "Icon UserIcon"), i(e, "part", "Icon UserIcon");
11
+ },
12
+ m(n, f) {
13
+ D(n, e, f);
14
+ },
15
+ d(n) {
16
+ n && B(e);
17
+ }
18
+ };
19
+ }
20
+ function F(a) {
21
+ let e;
22
+ return {
23
+ c() {
24
+ e = v("span"), e.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.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 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.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 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>', i(e, "class", "Icon PrizeIcon"), i(e, "part", "Icon PrizeIcon");
25
+ },
26
+ m(n, f) {
27
+ D(n, e, f);
28
+ },
29
+ d(n) {
30
+ n && B(e);
31
+ }
32
+ };
33
+ }
34
+ function $(a) {
35
+ let e, n, f, d, R, _ = (
36
+ /*formatRank*/
37
+ a[7]() + ""
38
+ ), A, l, g, P, p, C, r, k, x, I, u, U, y, w, S, b, T, c = (
39
+ /*showicon*/
40
+ a[2] == "true" && Z()
41
+ ), o = (
42
+ /*showicon*/
43
+ a[2] == "true" && F()
44
+ );
45
+ return {
46
+ c() {
47
+ e = v("div"), n = v("div"), c && c.c(), f = H(), d = v("span"), R = M(
48
+ /*rankprefix*/
49
+ a[1]
50
+ ), A = M(_), l = H(), g = v("img"), C = H(), r = v("img"), I = H(), u = v("div"), o && o.c(), U = H(), y = v("span"), w = M(
51
+ /*prize*/
52
+ a[0]
53
+ ), i(g, "part", "Rank_Arror_UP"), i(g, "alt", "Rank Up"), E(g.src, P = W) || i(g, "src", P), i(g, "width", "20"), i(g, "height", "20"), i(g, "class", p = "svg Arrow Up " + /*userRankChanged*/
54
+ (a[5] && /*isRankingUp*/
55
+ a[6] ? "Show" : "Hidden")), i(r, "part", "Rank_Arror_Down"), i(r, "alt", "Rank Down"), E(r.src, k = X) || i(r, "src", k), i(r, "width", "10"), i(r, "height", "10"), i(r, "class", x = "svg Arrow Down " + /*userRankChanged*/
56
+ (a[5] && !/*isRankingUp*/
57
+ a[6] ? "Show" : "Hidden")), i(d, "class", "RankInfo"), i(d, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(y, "class", "RankInfo UserPrize"), i(y, "part", "PrizeText"), i(u, "class", S = /*displayin*/
58
+ a[3] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", b = /*displayin*/
59
+ a[3] + " casino-tournaments-rank"), i(e, "part", T = /*displayin*/
60
+ a[3] + " casino-tournaments-rank");
61
+ },
62
+ m(s, t) {
63
+ D(s, e, t), h(e, n), c && c.m(n, null), h(n, f), h(n, d), h(d, R), h(d, A), h(d, l), h(d, g), h(d, C), h(d, r), h(e, I), h(e, u), o && o.m(u, null), h(u, U), h(u, y), h(y, w), a[14](e);
64
+ },
65
+ p(s, [t]) {
66
+ /*showicon*/
67
+ s[2] == "true" ? c || (c = Z(), c.c(), c.m(n, f)) : c && (c.d(1), c = null), t & /*rankprefix*/
68
+ 2 && q(
69
+ R,
70
+ /*rankprefix*/
71
+ s[1]
72
+ ), t & /*userRankChanged, isRankingUp*/
73
+ 96 && p !== (p = "svg Arrow Up " + /*userRankChanged*/
74
+ (s[5] && /*isRankingUp*/
75
+ s[6] ? "Show" : "Hidden")) && i(g, "class", p), t & /*userRankChanged, isRankingUp*/
76
+ 96 && x !== (x = "svg Arrow Down " + /*userRankChanged*/
77
+ (s[5] && !/*isRankingUp*/
78
+ s[6] ? "Show" : "Hidden")) && i(r, "class", x), /*showicon*/
79
+ s[2] == "true" ? o || (o = F(), o.c(), o.m(u, U)) : o && (o.d(1), o = null), t & /*prize*/
80
+ 1 && q(
81
+ w,
82
+ /*prize*/
83
+ s[0]
84
+ ), t & /*displayin*/
85
+ 8 && S !== (S = /*displayin*/
86
+ s[3] + " PrizeSec") && i(u, "class", S), t & /*displayin*/
87
+ 8 && b !== (b = /*displayin*/
88
+ s[3] + " casino-tournaments-rank") && i(e, "class", b), t & /*displayin*/
89
+ 8 && T !== (T = /*displayin*/
90
+ s[3] + " casino-tournaments-rank") && i(e, "part", T);
91
+ },
92
+ i: j,
93
+ o: j,
94
+ d(s) {
95
+ s && B(e), c && c.d(), o && o.d(), a[14](null);
96
+ }
97
+ };
98
+ }
99
+ function ee(a, e, n) {
100
+ let { rankprefix: f = "#" } = e, { showicon: d = "true" } = e, { tournamentid: R = "" } = e, { overallrank: _ = "0" } = e, { showoverallrank: A = "true" } = e, { userrank: l = "0" } = e, { prize: g = "PrizeName" } = e, { displayin: P = "row" } = e, { clientstyling: p = "" } = e, { clientstylingurl: C = "" } = e, r, k, x = !1, I = !0, u, U, y, w;
101
+ const S = (t) => {
102
+ t.data && t.data.type == `TournamentRankInfo_${R}` && b(t.data.rankInfo);
103
+ }, b = (t) => {
104
+ let L = (z) => {
105
+ n(8, l = z.rank), n(9, _ = z.overallRank), n(0, g = z.prize);
106
+ };
107
+ if (!w) {
108
+ w = k, L(t);
109
+ return;
110
+ }
111
+ k && (n(5, x = w != t.rank), n(6, I = w > t.rank), u = (/* @__PURE__ */ new Date()).getTime(), y = setTimeout(
112
+ () => {
113
+ U = (/* @__PURE__ */ new Date()).getTime(), (U - u) / 1e3 > 4 && n(5, x = !1), w = k;
114
+ },
115
+ 5e3
116
+ ), L(t));
117
+ }, T = () => {
118
+ let t = document.createElement("style");
119
+ t.innerHTML = p, r.appendChild(t);
120
+ }, c = () => {
121
+ let t = new URL(C), L = document.createElement("style");
122
+ fetch(t.href).then((z) => z.text()).then((z) => {
123
+ L.innerHTML = z, setTimeout(
124
+ () => {
125
+ r.appendChild(L);
126
+ },
127
+ 1
128
+ ), setTimeout(
129
+ () => {
130
+ },
131
+ 500
132
+ );
133
+ });
134
+ }, o = () => A == "true" ? `${+_ == 0 ? "-" : l || "-"}/${+_ == 0 ? "-" : _}` : l;
135
+ Q(() => (k = l == null ? void 0 : parseInt(l), w = k, n(8, l = l == null ? "-" : l), window.addEventListener("message", S, !0), () => {
136
+ window.removeEventListener("message", S), clearTimeout(y);
137
+ }));
138
+ function s(t) {
139
+ V[t ? "unshift" : "push"](() => {
140
+ r = t, n(4, r);
141
+ });
142
+ }
143
+ return a.$$set = (t) => {
144
+ "rankprefix" in t && n(1, f = t.rankprefix), "showicon" in t && n(2, d = t.showicon), "tournamentid" in t && n(10, R = t.tournamentid), "overallrank" in t && n(9, _ = t.overallrank), "showoverallrank" in t && n(11, A = t.showoverallrank), "userrank" in t && n(8, l = t.userrank), "prize" in t && n(0, g = t.prize), "displayin" in t && n(3, P = t.displayin), "clientstyling" in t && n(12, p = t.clientstyling), "clientstylingurl" in t && n(13, C = t.clientstylingurl);
145
+ }, a.$$.update = () => {
146
+ a.$$.dirty & /*customStylingContainer, clientstyling*/
147
+ 4112 && r && p && T(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
148
+ 8208 && r && C && c(), a.$$.dirty & /*userrank*/
149
+ 256 && (k = parseInt(l));
150
+ }, [
151
+ g,
152
+ f,
153
+ d,
154
+ P,
155
+ r,
156
+ x,
157
+ I,
158
+ o,
159
+ l,
160
+ _,
161
+ R,
162
+ A,
163
+ p,
164
+ C,
165
+ s
166
+ ];
167
+ }
168
+ class te extends N {
169
+ constructor(e) {
170
+ super(), G(
171
+ this,
172
+ e,
173
+ ee,
174
+ $,
175
+ K,
176
+ {
177
+ rankprefix: 1,
178
+ showicon: 2,
179
+ tournamentid: 10,
180
+ overallrank: 9,
181
+ showoverallrank: 11,
182
+ userrank: 8,
183
+ prize: 0,
184
+ displayin: 3,
185
+ clientstyling: 12,
186
+ clientstylingurl: 13
187
+ },
188
+ Y
189
+ );
190
+ }
191
+ get rankprefix() {
192
+ return this.$$.ctx[1];
193
+ }
194
+ set rankprefix(e) {
195
+ this.$$set({ rankprefix: e }), m();
196
+ }
197
+ get showicon() {
198
+ return this.$$.ctx[2];
199
+ }
200
+ set showicon(e) {
201
+ this.$$set({ showicon: e }), m();
202
+ }
203
+ get tournamentid() {
204
+ return this.$$.ctx[10];
205
+ }
206
+ set tournamentid(e) {
207
+ this.$$set({ tournamentid: e }), m();
208
+ }
209
+ get overallrank() {
210
+ return this.$$.ctx[9];
211
+ }
212
+ set overallrank(e) {
213
+ this.$$set({ overallrank: e }), m();
214
+ }
215
+ get showoverallrank() {
216
+ return this.$$.ctx[11];
217
+ }
218
+ set showoverallrank(e) {
219
+ this.$$set({ showoverallrank: e }), m();
220
+ }
221
+ get userrank() {
222
+ return this.$$.ctx[8];
223
+ }
224
+ set userrank(e) {
225
+ this.$$set({ userrank: e }), m();
226
+ }
227
+ get prize() {
228
+ return this.$$.ctx[0];
229
+ }
230
+ set prize(e) {
231
+ this.$$set({ prize: e }), m();
232
+ }
233
+ get displayin() {
234
+ return this.$$.ctx[3];
235
+ }
236
+ set displayin(e) {
237
+ this.$$set({ displayin: e }), m();
238
+ }
239
+ get clientstyling() {
240
+ return this.$$.ctx[12];
241
+ }
242
+ set clientstyling(e) {
243
+ this.$$set({ clientstyling: e }), m();
244
+ }
245
+ get clientstylingurl() {
246
+ return this.$$.ctx[13];
247
+ }
248
+ set clientstylingurl(e) {
249
+ this.$$set({ clientstylingurl: e }), m();
250
+ }
251
+ }
252
+ J(te, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
253
+ export {
254
+ te as default
255
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-CdFtnk8v.cjs"),H="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",M="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 D(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 P(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.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 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.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 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function q(a){let t,i,g,h,x,m=a[7]()+"",R,s,d,T,p,y,r,w,k,b,u,C,v,f,z,S,A,c=a[2]=="true"&&P(),o=a[2]=="true"&&I();return{c(){t=e.element("div"),i=e.element("div"),c&&c.c(),g=e.space(),h=e.element("span"),x=e.text(a[1]),R=e.text(m),s=e.space(),d=e.element("img"),y=e.space(),r=e.element("img"),b=e.space(),u=e.element("div"),o&&o.c(),C=e.space(),v=e.element("span"),f=e.text(a[0]),e.attr(d,"part","Rank_Arror_UP"),e.attr(d,"alt","Rank Up"),e.src_url_equal(d.src,T=H)||e.attr(d,"src",T),e.attr(d,"width","20"),e.attr(d,"height","20"),e.attr(d,"class",p="svg Arrow Up "+(a[5]&&a[6]?"Show":"Hidden")),e.attr(r,"part","Rank_Arror_Down"),e.attr(r,"alt","Rank Down"),e.src_url_equal(r.src,w=M)||e.attr(r,"src",w),e.attr(r,"width","10"),e.attr(r,"height","10"),e.attr(r,"class",k="svg Arrow Down "+(a[5]&&!a[6]?"Show":"Hidden")),e.attr(h,"class","RankInfo"),e.attr(h,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(v,"class","RankInfo UserPrize"),e.attr(v,"part","PrizeText"),e.attr(u,"class",z=a[3]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",S=a[3]+" casino-tournaments-rank"),e.attr(t,"part",A=a[3]+" casino-tournaments-rank")},m(l,n){e.insert(l,t,n),e.append(t,i),c&&c.m(i,null),e.append(i,g),e.append(i,h),e.append(h,x),e.append(h,R),e.append(h,s),e.append(h,d),e.append(h,y),e.append(h,r),e.append(t,b),e.append(t,u),o&&o.m(u,null),e.append(u,C),e.append(u,v),e.append(v,f),a[14](t)},p(l,[n]){l[2]=="true"?c||(c=P(),c.c(),c.m(i,g)):c&&(c.d(1),c=null),n&2&&e.set_data(x,l[1]),n&96&&p!==(p="svg Arrow Up "+(l[5]&&l[6]?"Show":"Hidden"))&&e.attr(d,"class",p),n&96&&k!==(k="svg Arrow Down "+(l[5]&&!l[6]?"Show":"Hidden"))&&e.attr(r,"class",k),l[2]=="true"?o||(o=I(),o.c(),o.m(u,C)):o&&(o.d(1),o=null),n&1&&e.set_data(f,l[0]),n&8&&z!==(z=l[3]+" PrizeSec")&&e.attr(u,"class",z),n&8&&S!==(S=l[3]+" casino-tournaments-rank")&&e.attr(t,"class",S),n&8&&A!==(A=l[3]+" casino-tournaments-rank")&&e.attr(t,"part",A)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),c&&c.d(),o&&o.d(),a[14](null)}}}function B(a,t,i){let{rankprefix:g="#"}=t,{showicon:h="true"}=t,{tournamentid:x=""}=t,{overallrank:m="0"}=t,{showoverallrank:R="true"}=t,{userrank:s="0"}=t,{prize:d="PrizeName"}=t,{displayin:T="row"}=t,{clientstyling:p=""}=t,{clientstylingurl:y=""}=t,r,w,k=!1,b=!0,u,C,v,f;const z=n=>{n.data&&n.data.type==`TournamentRankInfo_${x}`&&S(n.data.rankInfo)},S=n=>{let U=_=>{i(8,s=_.rank),i(9,m=_.overallRank),i(0,d=_.prize)};if(!f){f=w,U(n);return}w&&(i(5,k=f!=n.rank),i(6,b=f>n.rank),u=new Date().getTime(),v=setTimeout(()=>{C=new Date().getTime(),(C-u)/1e3>4&&i(5,k=!1),f=w},5e3),U(n))},A=()=>{let n=document.createElement("style");n.innerHTML=p,r.appendChild(n)},c=()=>{let n=new URL(y),U=document.createElement("style");fetch(n.href).then(_=>_.text()).then(_=>{U.innerHTML=_,setTimeout(()=>{r.appendChild(U)},1),setTimeout(()=>{},500)})},o=()=>R=="true"?`${+m==0?"-":s||"-"}/${+m==0?"-":m}`:s;e.onMount(()=>(w=s==null?void 0:parseInt(s),f=w,i(8,s=s==null?"-":s),window.addEventListener("message",z,!0),()=>{window.removeEventListener("message",z),clearTimeout(v)}));function l(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,i(4,r)})}return a.$$set=n=>{"rankprefix"in n&&i(1,g=n.rankprefix),"showicon"in n&&i(2,h=n.showicon),"tournamentid"in n&&i(10,x=n.tournamentid),"overallrank"in n&&i(9,m=n.overallrank),"showoverallrank"in n&&i(11,R=n.showoverallrank),"userrank"in n&&i(8,s=n.userrank),"prize"in n&&i(0,d=n.prize),"displayin"in n&&i(3,T=n.displayin),"clientstyling"in n&&i(12,p=n.clientstyling),"clientstylingurl"in n&&i(13,y=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&4112&&r&&p&&A(),a.$$.dirty&8208&&r&&y&&c(),a.$$.dirty&256&&(w=parseInt(s))},[d,g,h,T,r,k,b,o,s,m,x,R,p,y,l]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,B,q,e.safe_not_equal,{rankprefix:1,showicon:2,tournamentid:10,overallrank:9,showoverallrank:11,userrank:8,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},D)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[9]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),e.flush()}get userrank(){return this.$$.ctx[8]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(L,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=L;
@@ -0,0 +1 @@
1
+ "use strict";var U=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&T(e,n,t[n]);if(m)for(var n of m(t))C.call(t,n)&&T(e,n,t[n]);return e},y=(e,t)=>j(e,q(t));var L=(e,t)=>{var n={};for(var l in e)k.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&m)for(var l of m(e))t.indexOf(l)<0&&C.call(e,l)&&(n[l]=e[l]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsDetails-CdFtnk8v.cjs"),D=e=>n=>{Object.keys(e).map(l=>{if(n.data&&n.data.type==l){const s=n.data,{type:r}=s,a=L(s,["type"]);e[l](a)}})},O=e=>{const t=D(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function I(e){i.append_styles(e,"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(e,t,n){const l=e.slice();return l[15]=t[n],l}function M(e){let t,n=i.ensure_array_like(e[5]),l=[];for(let s=0;s<n.length;s+=1)l[s]=z(F(e,n,s));return{c(){t=i.element("ul");for(let s=0;s<l.length;s+=1)l[s].c();i.attr(t,"part","ul")},m(s,r){i.insert(s,t,r);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null)},p(s,r){if(r&60){n=i.ensure_array_like(s[5]);let a;for(a=0;a<n.length;a+=1){const c=F(s,n,a);l[a]?l[a].p(c,r):(l[a]=z(c),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length}},d(s){s&&i.detach(t),i.destroy_each(l,s)}}}function S(e){let t,n,l=e[2][e[15]]+"",s;return{c(){t=i.element("sup"),n=i.element("span"),s=i.text(l),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(r,a){i.insert(r,t,a),i.append(t,n),i.append(n,s)},p(r,a){a&36&&l!==(l=r[2][r[15]]+"")&&i.set_data(s,l)},d(r){r&&i.detach(t)}}}function z(e){let t,n,l=e[3][e[15]]+"",s,r,a,c,f,d,h,u=e[2][e[15]]>=0&&S(e);function p(){return e[10](e[15])}return{c(){t=i.element("li"),n=i.element("span"),s=i.text(l),r=i.space(),u&&u.c(),a=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[4]===e[15]?"active":""),i.attr(t,"part",f=`${e[15]} li `+(e[4]===e[15]?"active":""))},m(b,g){i.insert(b,t,g),i.append(t,n),i.append(n,s),i.append(t,r),u&&u.m(t,null),i.append(t,a),d||(h=i.listen(t,"click",p),d=!0)},p(b,g){e=b,g&40&&l!==(l=e[3][e[15]]+"")&&i.set_data(s,l),e[2][e[15]]>=0?u?u.p(e,g):(u=S(e),u.c(),u.m(t,a)):u&&(u.d(1),u=null),g&48&&c!==(c=e[4]===e[15]?"active":"")&&i.attr(t,"class",c),g&48&&f!==(f=`${e[15]} li `+(e[4]===e[15]?"active":""))&&i.attr(t,"part",f)},d(b){b&&i.detach(t),u&&u.d(),d=!1,h()}}}function P(e){let t,n=e[1]&&M(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab"),i.attr(t,"part","CustomStylingContainer")},m(l,s){i.insert(l,t,s),n&&n.m(t,null),e[11](t)},p(l,[s]){l[1]?n?n.p(l,s):(n=M(l),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(l){l&&i.detach(t),n&&n.d(),e[11](null)}}}function A(e,t,n){let l,s,{tabs:r=""}=t,{tab:a=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:f=""}=t,d,h=!1,u={},p={};const b=()=>{let o=document.createElement("style");o.innerHTML=c,d.appendChild(o)},g=()=>{let o=new URL(f),v=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{v.innerHTML=_,setTimeout(()=>{d.appendChild(v)},1),setTimeout(()=>{},500)})};O({TournamentsTabTotalUpdate:o=>{n(2,u=y(w({},u),{[o.state]:o.total}))},TournamentsTabLocaleTextUpdate:o=>{n(1,h=!0),n(3,p=y(w({},p),{[o.state]:o.text}))}}),i.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const H=o=>{n(4,s=o),window.postMessage({type:"TournamentsTabSwitch",tab:o},window.location.href)};function R(o){i.binding_callbacks[o?"unshift":"push"](()=>{d=o,n(0,d)})}return e.$$set=o=>{"tabs"in o&&n(6,r=o.tabs),"tab"in o&&n(7,a=o.tab),"clientstyling"in o&&n(8,c=o.clientstyling),"clientstylingurl"in o&&n(9,f=o.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&257&&d&&c&&b(),e.$$.dirty&513&&d&&f&&g(),e.$$.dirty&64&&n(5,l=r.split(",")),e.$$.dirty&128&&n(4,s=a)},[d,h,u,p,s,l,r,a,c,f,H,R]}class E extends i.SvelteComponent{constructor(t){super(),i.init(this,t,A,P,i.safe_not_equal,{tabs:6,tab:7,clientstyling:8,clientstylingurl:9},I)}get tabs(){return this.$$.ctx[6]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[7]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}}i.create_custom_element(E,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=E;
@@ -0,0 +1,302 @@
1
+ var K = Object.defineProperty, N = Object.defineProperties;
2
+ var P = Object.getOwnPropertyDescriptors;
3
+ var _ = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var M = (e, t, n) => t in e ? K(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ S.call(t, n) && M(e, n, t[n]);
8
+ if (_)
9
+ for (var n of _(t))
10
+ z.call(t, n) && M(e, n, t[n]);
11
+ return e;
12
+ }, C = (e, t) => N(e, P(t));
13
+ var E = (e, t) => {
14
+ var n = {};
15
+ for (var i in e)
16
+ S.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
+ if (e != null && _)
18
+ for (var i of _(e))
19
+ t.indexOf(i) < 0 && z.call(e, i) && (n[i] = e[i]);
20
+ return n;
21
+ };
22
+ import { o as I, S as Q, b as V, f as y, c as W, a as X, d as Y, l as m, m as f, h as v, n as H, j as T, x as R, y as Z, t as O, e as U, p as h, v as x, q as A, B as $ } from "./CasinoTournamentsDetails-SiUesTrH.js";
23
+ const tt = (e) => (n) => {
24
+ Object.keys(e).map((i) => {
25
+ if (n.data && n.data.type == i) {
26
+ const l = n.data, { type: o } = l, s = E(l, ["type"]);
27
+ e[i](s);
28
+ }
29
+ });
30
+ }, et = (e) => {
31
+ const t = tt(e);
32
+ I(() => (window.addEventListener("message", t, !1), () => {
33
+ window.removeEventListener("message", t);
34
+ }));
35
+ };
36
+ function nt(e) {
37
+ Y(e, "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(e, t, n) {
40
+ const i = e.slice();
41
+ return i[15] = t[n], i;
42
+ }
43
+ function q(e) {
44
+ let t, n = R(
45
+ /*__tabs*/
46
+ e[5]
47
+ ), i = [];
48
+ for (let l = 0; l < n.length; l += 1)
49
+ i[l] = D(j(e, n, l));
50
+ return {
51
+ c() {
52
+ t = m("ul");
53
+ for (let l = 0; l < i.length; l += 1)
54
+ i[l].c();
55
+ f(t, "part", "ul");
56
+ },
57
+ m(l, o) {
58
+ v(l, t, o);
59
+ for (let s = 0; s < i.length; s += 1)
60
+ i[s] && i[s].m(t, null);
61
+ },
62
+ p(l, o) {
63
+ if (o & /*__tab, __tabs, window, totalReceiver, textReceiver*/
64
+ 60) {
65
+ n = R(
66
+ /*__tabs*/
67
+ l[5]
68
+ );
69
+ let s;
70
+ for (s = 0; s < n.length; s += 1) {
71
+ const c = j(l, n, s);
72
+ i[s] ? i[s].p(c, o) : (i[s] = D(c), i[s].c(), i[s].m(t, null));
73
+ }
74
+ for (; s < i.length; s += 1)
75
+ i[s].d(1);
76
+ i.length = n.length;
77
+ }
78
+ },
79
+ d(l) {
80
+ l && T(t), Z(i, l);
81
+ }
82
+ };
83
+ }
84
+ function B(e) {
85
+ let t, n, i = (
86
+ /*totalReceiver*/
87
+ e[2][
88
+ /*_tab*/
89
+ e[15]
90
+ ] + ""
91
+ ), l;
92
+ return {
93
+ c() {
94
+ t = m("sup"), n = m("span"), l = O(i), f(n, "part", "SupText"), f(t, "part", "sup");
95
+ },
96
+ m(o, s) {
97
+ v(o, t, s), h(t, n), h(n, l);
98
+ },
99
+ p(o, s) {
100
+ s & /*totalReceiver, __tabs*/
101
+ 36 && i !== (i = /*totalReceiver*/
102
+ o[2][
103
+ /*_tab*/
104
+ o[15]
105
+ ] + "") && A(l, i);
106
+ },
107
+ d(o) {
108
+ o && T(t);
109
+ }
110
+ };
111
+ }
112
+ function D(e) {
113
+ let t, n, i = (
114
+ /*textReceiver*/
115
+ e[3][
116
+ /*_tab*/
117
+ e[15]
118
+ ] + ""
119
+ ), l, o, s, c, d, u, p, r = (
120
+ /*totalReceiver*/
121
+ e[2][
122
+ /*_tab*/
123
+ e[15]
124
+ ] >= 0 && B(e)
125
+ );
126
+ function w() {
127
+ return (
128
+ /*click_handler*/
129
+ e[10](
130
+ /*_tab*/
131
+ e[15]
132
+ )
133
+ );
134
+ }
135
+ return {
136
+ c() {
137
+ t = m("li"), n = m("span"), l = O(i), o = U(), r && r.c(), s = U(), f(n, "part", "LiText"), f(t, "class", c = /*__tab*/
138
+ e[4] === /*_tab*/
139
+ e[15] ? "active" : ""), f(t, "part", d = `${/*_tab*/
140
+ e[15]} li ` + /*__tab*/
141
+ (e[4] === /*_tab*/
142
+ e[15] ? "active" : ""));
143
+ },
144
+ m(g, b) {
145
+ v(g, t, b), h(t, n), h(n, l), h(t, o), r && r.m(t, null), h(t, s), u || (p = x(t, "click", w), u = !0);
146
+ },
147
+ p(g, b) {
148
+ e = g, b & /*textReceiver, __tabs*/
149
+ 40 && i !== (i = /*textReceiver*/
150
+ e[3][
151
+ /*_tab*/
152
+ e[15]
153
+ ] + "") && A(l, i), /*totalReceiver*/
154
+ e[2][
155
+ /*_tab*/
156
+ e[15]
157
+ ] >= 0 ? r ? r.p(e, b) : (r = B(e), r.c(), r.m(t, s)) : r && (r.d(1), r = null), b & /*__tab, __tabs*/
158
+ 48 && c !== (c = /*__tab*/
159
+ e[4] === /*_tab*/
160
+ e[15] ? "active" : "") && f(t, "class", c), b & /*__tabs, __tab*/
161
+ 48 && d !== (d = `${/*_tab*/
162
+ e[15]} li ` + /*__tab*/
163
+ (e[4] === /*_tab*/
164
+ e[15] ? "active" : "")) && f(t, "part", d);
165
+ },
166
+ d(g) {
167
+ g && T(t), r && r.d(), u = !1, p();
168
+ }
169
+ };
170
+ }
171
+ function it(e) {
172
+ let t, n = (
173
+ /*isTitleInited*/
174
+ e[1] && q(e)
175
+ );
176
+ return {
177
+ c() {
178
+ t = m("div"), n && n.c(), f(t, "class", "casino-tournaments-tab"), f(t, "part", "CustomStylingContainer");
179
+ },
180
+ m(i, l) {
181
+ v(i, t, l), n && n.m(t, null), e[11](t);
182
+ },
183
+ p(i, [l]) {
184
+ /*isTitleInited*/
185
+ i[1] ? n ? n.p(i, l) : (n = q(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
186
+ },
187
+ i: H,
188
+ o: H,
189
+ d(i) {
190
+ i && T(t), n && n.d(), e[11](null);
191
+ }
192
+ };
193
+ }
194
+ function lt(e, t, n) {
195
+ let i, l, { tabs: o = "" } = t, { tab: s = void 0 } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, u, p = !1, r = {}, w = {};
196
+ const g = () => {
197
+ let a = document.createElement("style");
198
+ a.innerHTML = c, u.appendChild(a);
199
+ }, b = () => {
200
+ let a = new URL(d), F = document.createElement("style");
201
+ fetch(a.href).then((k) => k.text()).then((k) => {
202
+ F.innerHTML = k, setTimeout(
203
+ () => {
204
+ u.appendChild(F);
205
+ },
206
+ 1
207
+ ), setTimeout(
208
+ () => {
209
+ },
210
+ 500
211
+ );
212
+ });
213
+ };
214
+ et({
215
+ TournamentsTabTotalUpdate: (a) => {
216
+ n(2, r = C(L({}, r), {
217
+ [a.state]: a.total
218
+ }));
219
+ },
220
+ TournamentsTabLocaleTextUpdate: (a) => {
221
+ n(1, p = !0), n(3, w = C(L({}, w), { [a.state]: a.text }));
222
+ }
223
+ }), I(() => {
224
+ window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href);
225
+ });
226
+ const G = (a) => {
227
+ n(4, l = a), window.postMessage({ type: "TournamentsTabSwitch", tab: a }, window.location.href);
228
+ };
229
+ function J(a) {
230
+ $[a ? "unshift" : "push"](() => {
231
+ u = a, n(0, u);
232
+ });
233
+ }
234
+ return e.$$set = (a) => {
235
+ "tabs" in a && n(6, o = a.tabs), "tab" in a && n(7, s = a.tab), "clientstyling" in a && n(8, c = a.clientstyling), "clientstylingurl" in a && n(9, d = a.clientstylingurl);
236
+ }, e.$$.update = () => {
237
+ e.$$.dirty & /*customStylingContainer, clientstyling*/
238
+ 257 && u && c && g(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
239
+ 513 && u && d && b(), e.$$.dirty & /*tabs*/
240
+ 64 && n(5, i = o.split(",")), e.$$.dirty & /*tab*/
241
+ 128 && n(4, l = s);
242
+ }, [
243
+ u,
244
+ p,
245
+ r,
246
+ w,
247
+ l,
248
+ i,
249
+ o,
250
+ s,
251
+ c,
252
+ d,
253
+ G,
254
+ J
255
+ ];
256
+ }
257
+ class st extends Q {
258
+ constructor(t) {
259
+ super(), V(
260
+ this,
261
+ t,
262
+ lt,
263
+ it,
264
+ X,
265
+ {
266
+ tabs: 6,
267
+ tab: 7,
268
+ clientstyling: 8,
269
+ clientstylingurl: 9
270
+ },
271
+ nt
272
+ );
273
+ }
274
+ get tabs() {
275
+ return this.$$.ctx[6];
276
+ }
277
+ set tabs(t) {
278
+ this.$$set({ tabs: t }), y();
279
+ }
280
+ get tab() {
281
+ return this.$$.ctx[7];
282
+ }
283
+ set tab(t) {
284
+ this.$$set({ tab: t }), y();
285
+ }
286
+ get clientstyling() {
287
+ return this.$$.ctx[8];
288
+ }
289
+ set clientstyling(t) {
290
+ this.$$set({ clientstyling: t }), y();
291
+ }
292
+ get clientstylingurl() {
293
+ return this.$$.ctx[9];
294
+ }
295
+ set clientstylingurl(t) {
296
+ this.$$set({ clientstylingurl: t }), y();
297
+ }
298
+ }
299
+ W(st, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
300
+ export {
301
+ st as default
302
+ };