@everymatrix/casino-tournaments-page-controller 1.45.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.
Files changed (42) hide show
  1. package/components/{CasinoTournamentsDetails-i29jA8rz.js → CasinoTournamentsDetails-CTbLTCNq.js} +199 -203
  2. package/components/CasinoTournamentsDetails-CdFtnk8v.cjs +1 -0
  3. package/components/CasinoTournamentsPageController-BX5_-OUG.cjs +25 -0
  4. package/components/{CasinoTournamentsPageController-ccenf33p.js → CasinoTournamentsPageController-By8Qf6Sl.js} +2109 -2131
  5. package/components/CasinoTournamentsRank-BPHA2JPF.js +271 -0
  6. package/components/CasinoTournamentsRank-Ccr8Z0om.cjs +1 -0
  7. package/components/CasinoTournamentsTab-CmF1j5XE.js +281 -0
  8. package/components/CasinoTournamentsTab-DXUCFgtb.cjs +1 -0
  9. package/components/CasinoTournamentsTable-8HJDxcSe.cjs +1 -0
  10. package/components/CasinoTournamentsTable-DL6KVTDX.js +1671 -0
  11. package/components/CasinoTournamentsThumbnail--BxjqzmL.cjs +4 -0
  12. package/components/{CasinoTournamentsThumbnail-DeSrN8lz.js → CasinoTournamentsThumbnail-NcOyz0gt.js} +192 -192
  13. package/components/CasinoTournamentsThumbnailController-B3YbDJuf.cjs +1 -0
  14. package/components/CasinoTournamentsThumbnailController-pROl7BE2.js +1406 -0
  15. package/components/CasinoTournamentsThumbnailDuration-Icm0PzJz.js +496 -0
  16. package/components/CasinoTournamentsThumbnailDuration-_PXBJwAk.cjs +1 -0
  17. package/components/CasinoTournamentsThumbnailGamesSlider-C4oebmHa.js +439 -0
  18. package/components/CasinoTournamentsThumbnailGamesSlider-DOXcgDnK.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailPrizes-Dgkbf6BO.cjs +1 -0
  20. package/components/CasinoTournamentsThumbnailPrizes-Oy21zp8B.js +311 -0
  21. package/components/{CasinoTournamentsThumbnailRule-BgZe_JWI.cjs → CasinoTournamentsThumbnailRule-BMRBfYRJ.cjs} +1 -1
  22. package/components/{CasinoTournamentsThumbnailRule-B_eRZkOt.js → CasinoTournamentsThumbnailRule-BqQsSnWS.js} +199 -199
  23. package/es2015/casino-tournaments-page-controller.cjs +1 -1
  24. package/es2015/casino-tournaments-page-controller.js +1 -1
  25. package/package.json +2 -2
  26. package/components/CasinoTournamentsDetails-CpUZgR90.cjs +0 -1
  27. package/components/CasinoTournamentsPageController-DQ45sNO3.cjs +0 -25
  28. package/components/CasinoTournamentsRank-D0dnyjxl.cjs +0 -1
  29. package/components/CasinoTournamentsRank-DCsenD0C.js +0 -271
  30. package/components/CasinoTournamentsTab-CFqMNyyL.cjs +0 -1
  31. package/components/CasinoTournamentsTab-DY421_qt.js +0 -283
  32. package/components/CasinoTournamentsTable-CMFlsTqb.cjs +0 -1
  33. package/components/CasinoTournamentsTable-QzFroNHV.js +0 -1671
  34. package/components/CasinoTournamentsThumbnail-XJuOILgc.cjs +0 -4
  35. package/components/CasinoTournamentsThumbnailController-DyNwJHm-.js +0 -1406
  36. package/components/CasinoTournamentsThumbnailController-dcrtzpP3.cjs +0 -1
  37. package/components/CasinoTournamentsThumbnailDuration-BVjz4efB.js +0 -496
  38. package/components/CasinoTournamentsThumbnailDuration-Dp9sLahL.cjs +0 -1
  39. package/components/CasinoTournamentsThumbnailGamesSlider-BxG-LO0T.cjs +0 -1
  40. package/components/CasinoTournamentsThumbnailGamesSlider-GmLhEgpL.js +0 -439
  41. package/components/CasinoTournamentsThumbnailPrizes-BADuIugn.js +0 -311
  42. package/components/CasinoTournamentsThumbnailPrizes-Cq3GMug5.cjs +0 -1
@@ -1,439 +0,0 @@
1
- import { S as we, b as _e, f as M, c as be, a as Ne, d as Se, l as S, m as a, h as G, n as J, j as I, k as Te, o as Fe, y as Y, e as z, E as j, D as Z, F as Me, p as _, G as Ee, w as L, z as Be, r as te, t as Pe, B as x, q as Le, C as D } from "./CasinoTournamentsDetails-i29jA8rz.js";
2
- import { a as Ce, g as He, $ as je } from "./CasinoTournamentsPageController-ccenf33p.js";
3
- function K(e, n) {
4
- Ce(e, n);
5
- }
6
- const Q = {
7
- en: {
8
- playNow: "Play now"
9
- },
10
- hr: {
11
- playNow: "Započni sada"
12
- },
13
- "zh-hk": {
14
- playNow: "现在播放"
15
- },
16
- fr: {
17
- playNow: "Joue maintenant"
18
- },
19
- ro: {
20
- playNow: "Joaca acum"
21
- },
22
- tr: {
23
- playNow: "Şimdi oyna"
24
- },
25
- el: {
26
- playNow: "Παίξε τώρα"
27
- },
28
- es: {
29
- playNow: "Jugar Ya"
30
- },
31
- pt: {
32
- playNow: "Jogue agora"
33
- }
34
- };
35
- function ze(e) {
36
- Se(e, "svelte-erkhk0", ".svelte-erkhk0.svelte-erkhk0,.svelte-erkhk0.svelte-erkhk0::before,.svelte-erkhk0.svelte-erkhk0::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled.svelte-erkhk0.svelte-erkhk0{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton.svelte-erkhk0.svelte-erkhk0{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton.svelte-erkhk0 svg.svelte-erkhk0{width:20px}main.svelte-erkhk0.svelte-erkhk0{width:95%;overflow:hidden}.items.svelte-erkhk0.svelte-erkhk0{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item.svelte-erkhk0.svelte-erkhk0{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton.svelte-erkhk0.svelte-erkhk0{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover.svelte-erkhk0.svelte-erkhk0{opacity:1}.items.svelte-erkhk0 .item.svelte-erkhk0:first-child{margin-left:0}.items.svelte-erkhk0 .item.svelte-erkhk0:last-child{margin-right:0}");
37
- }
38
- function V(e, n, t) {
39
- const i = e.slice();
40
- return i[50] = n[t], i[52] = t, i;
41
- }
42
- function $(e) {
43
- let n, t, i, h, m, k, v, r, p, y, f = Y(
44
- /*games*/
45
- e[1]
46
- ), c = [];
47
- for (let s = 0; s < f.length; s += 1)
48
- c[s] = ee(V(e, f, s));
49
- return {
50
- c() {
51
- n = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" class="svelte-erkhk0"></path></svg>', i = z(), h = S("main"), m = S("div");
52
- for (let s = 0; s < c.length; s += 1)
53
- c[s].c();
54
- v = z(), r = S("div"), r.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-erkhk0"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" class="svelte-erkhk0"></path></svg>', a(t, "class", "SliderNavButton svelte-erkhk0"), a(t, "part", "SliderNavButton"), j(
55
- t,
56
- "disabled",
57
- /*atStart*/
58
- e[8]
59
- ), a(m, "class", "items svelte-erkhk0"), a(m, "part", "items"), Z(m, "transform", "translateX(" + /*offset*/
60
- e[2] + "px)"), a(h, "class", "svelte-erkhk0"), Me(() => (
61
- /*main_elementresize_handler*/
62
- e[28].call(h)
63
- )), a(r, "class", "SliderNavButton svelte-erkhk0"), a(r, "part", "SliderNavButton"), j(
64
- r,
65
- "disabled",
66
- /*atEnd*/
67
- e[9]
68
- ), a(n, "class", "TournamentsGamesSlider svelte-erkhk0"), a(n, "part", "TournamentsGamesSlider");
69
- },
70
- m(s, w) {
71
- G(s, n, w), _(n, t), _(n, i), _(n, h), _(h, m);
72
- for (let o = 0; o < c.length; o += 1)
73
- c[o] && c[o].m(m, null);
74
- e[27](m), k = Ee(
75
- h,
76
- /*main_elementresize_handler*/
77
- e[28].bind(h)
78
- ), _(n, v), _(n, r), e[30](n), p || (y = [
79
- L(
80
- t,
81
- "click",
82
- /*click_handler*/
83
- e[23]
84
- ),
85
- L(
86
- r,
87
- "click",
88
- /*click_handler_2*/
89
- e[29]
90
- )
91
- ], p = !0);
92
- },
93
- p(s, w) {
94
- if (w[0] & /*atStart*/
95
- 256 && j(
96
- t,
97
- "disabled",
98
- /*atStart*/
99
- s[8]
100
- ), w[0] & /*gameClicked, games, enter, leave, hover, hoverIndex, $_*/
101
- 23650) {
102
- f = Y(
103
- /*games*/
104
- s[1]
105
- );
106
- let o;
107
- for (o = 0; o < f.length; o += 1) {
108
- const b = V(s, f, o);
109
- c[o] ? c[o].p(b, w) : (c[o] = ee(b), c[o].c(), c[o].m(m, null));
110
- }
111
- for (; o < c.length; o += 1)
112
- c[o].d(1);
113
- c.length = f.length;
114
- }
115
- w[0] & /*offset*/
116
- 4 && Z(m, "transform", "translateX(" + /*offset*/
117
- s[2] + "px)"), w[0] & /*atEnd*/
118
- 512 && j(
119
- r,
120
- "disabled",
121
- /*atEnd*/
122
- s[9]
123
- );
124
- },
125
- d(s) {
126
- s && I(n), Be(c, s), e[27](null), k(), e[30](null), p = !1, te(y);
127
- }
128
- };
129
- }
130
- function ee(e) {
131
- let n, t, i = (
132
- /*$_*/
133
- e[10]("playNow") + ""
134
- ), h, m, k, v, r, p, y, f, c, s, w;
135
- function o() {
136
- return (
137
- /*click_handler_1*/
138
- e[24](
139
- /*game*/
140
- e[50]
141
- )
142
- );
143
- }
144
- function b() {
145
- return (
146
- /*mouseenter_handler*/
147
- e[25](
148
- /*i*/
149
- e[52]
150
- )
151
- );
152
- }
153
- return {
154
- c() {
155
- n = S("div"), t = S("span"), h = Pe(i), v = z(), r = S("img"), c = z(), a(t, "class", m = "PlayNowButton " + /*hover*/
156
- (e[5] && /*hoverIndex*/
157
- e[6] == /*i*/
158
- e[52] ? "itemHover" : "") + " svelte-erkhk0"), a(t, "part", k = "PlayNowButton " + /*hover*/
159
- (e[5] && /*hoverIndex*/
160
- e[6] == /*i*/
161
- e[52] ? "itemHover" : "")), x(r.src, p = /*game*/
162
- e[50].thumbnail) || a(r, "src", p), a(r, "width", "132px"), a(r, "height", "100px"), a(r, "alt", y = /*game*/
163
- e[50].name), a(r, "title", f = /*game*/
164
- e[50].name), a(r, "class", "svelte-erkhk0"), a(n, "class", "item svelte-erkhk0"), a(n, "part", "item");
165
- },
166
- m(u, d) {
167
- G(u, n, d), _(n, t), _(t, h), _(n, v), _(n, r), _(n, c), s || (w = [
168
- L(n, "click", o),
169
- L(n, "mouseenter", b),
170
- L(
171
- n,
172
- "mouseleave",
173
- /*mouseleave_handler*/
174
- e[26]
175
- )
176
- ], s = !0);
177
- },
178
- p(u, d) {
179
- e = u, d[0] & /*$_*/
180
- 1024 && i !== (i = /*$_*/
181
- e[10]("playNow") + "") && Le(h, i), d[0] & /*hover, hoverIndex*/
182
- 96 && m !== (m = "PlayNowButton " + /*hover*/
183
- (e[5] && /*hoverIndex*/
184
- e[6] == /*i*/
185
- e[52] ? "itemHover" : "") + " svelte-erkhk0") && a(t, "class", m), d[0] & /*hover, hoverIndex*/
186
- 96 && k !== (k = "PlayNowButton " + /*hover*/
187
- (e[5] && /*hoverIndex*/
188
- e[6] == /*i*/
189
- e[52] ? "itemHover" : "")) && a(t, "part", k), d[0] & /*games*/
190
- 2 && !x(r.src, p = /*game*/
191
- e[50].thumbnail) && a(r, "src", p), d[0] & /*games*/
192
- 2 && y !== (y = /*game*/
193
- e[50].name) && a(r, "alt", y), d[0] & /*games*/
194
- 2 && f !== (f = /*game*/
195
- e[50].name) && a(r, "title", f);
196
- },
197
- d(u) {
198
- u && I(n), s = !1, te(w);
199
- }
200
- };
201
- }
202
- function Ue(e) {
203
- let n, t = (
204
- /*games*/
205
- e[1] && /*games*/
206
- e[1].length > 0 && $(e)
207
- );
208
- return {
209
- c() {
210
- n = S("div"), t && t.c(), a(n, "class", "svelte-erkhk0");
211
- },
212
- m(i, h) {
213
- G(i, n, h), t && t.m(n, null), e[31](n);
214
- },
215
- p(i, h) {
216
- /*games*/
217
- i[1] && /*games*/
218
- i[1].length > 0 ? t ? t.p(i, h) : (t = $(i), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
219
- },
220
- i: J,
221
- o: J,
222
- d(i) {
223
- i && I(n), t && t.d(), e[31](null);
224
- }
225
- };
226
- }
227
- let Ae = 30;
228
- function De(e, n, t) {
229
- let i, h, m;
230
- Te(e, je, (l) => t(10, m = l));
231
- let { tournamenturl: k = "" } = n, { scrollby: v = "3" } = n, { pagfactor: r = "175" } = n, { lang: p = "" } = n, { translationurl: y = "" } = n, { clientstyling: f = "" } = n, { clientstylingurl: c = "" } = n, s, w = window.navigator.userAgent, o, b = [], u = 0, d, C = null, H = null, U = !1, A, E, B = 0, T;
232
- const le = () => {
233
- fetch(y).then((g) => g.json()).then((g) => {
234
- Object.keys(g).forEach((N) => {
235
- K(N, g[N]);
236
- });
237
- }).catch((g) => {
238
- console.log(g);
239
- });
240
- };
241
- Object.keys(Q).forEach((l) => {
242
- K(l, Q[l]);
243
- });
244
- const W = (l) => {
245
- t(5, U = !0), t(6, A = l);
246
- }, q = () => {
247
- t(5, U = !1), t(6, A = -1);
248
- }, ne = (l) => l.touches || l.originalEvent.touches, O = (l) => {
249
- const g = ne(l)[0];
250
- C = g.clientX, H = g.clientY;
251
- }, R = (l) => {
252
- if (!C || !H) return;
253
- let g = l.touches[0].clientX, N = l.touches[0].clientY, F = C - g, ye = H - N;
254
- Math.abs(F) > Math.abs(ye) && (F > 0 ? P(1) : P(-1)), C = null, H = null;
255
- }, P = (l) => {
256
- l > 0 && !h ? (t(2, u -= o), t(2, u = u < B ? B : u)) : l < 0 && !i && (t(2, u += o), t(2, u = u > 0 ? 0 : u));
257
- }, X = (l) => {
258
- window.postMessage(
259
- {
260
- type: "TournamentGameAction",
261
- gameId: l.id,
262
- name: l.name,
263
- launchUrl: l.launchUrl
264
- },
265
- window.location.href
266
- );
267
- }, se = () => {
268
- let l = new URL(k), g = new Headers();
269
- l.searchParams.append("expand", "games"), l.searchParams.append("pagination", `games(limit=${Ae},offset=${u})`), l.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), l.searchParams.append("language", p), l.searchParams.append("platform", He(w)), fetch(l, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
270
- t(1, b = F.item.games.items), F.item.games.total;
271
- });
272
- }, re = () => {
273
- d.addEventListener("touchstart", O, { passive: !0 }), d.addEventListener("touchmove", R, { passive: !0 });
274
- }, ae = () => {
275
- setTimeout(
276
- () => {
277
- t(22, B = (E.scrollWidth - E.clientWidth) * -1), t(16, r = new String(E.scrollWidth / b.length)), o = parseInt(v, 10) * parseFloat(r, 2).toFixed(2);
278
- },
279
- 1e3
280
- );
281
- }, ie = () => {
282
- let l = document.createElement("style");
283
- l.innerHTML = f, s.appendChild(l);
284
- }, oe = () => {
285
- let l = new URL(c), g = document.createElement("style");
286
- fetch(l.href).then((N) => N.text()).then((N) => {
287
- g.innerHTML = N, setTimeout(
288
- () => {
289
- s.appendChild(g);
290
- },
291
- 1
292
- ), setTimeout(
293
- () => {
294
- },
295
- 500
296
- );
297
- });
298
- }, ce = () => {
299
- T > 0 && T < Math.floor((parseInt(v) + 1) * r) && t(15, v = Math.ceil(T / r).toString());
300
- };
301
- Fe(() => (o = parseInt(v, 10) * parseInt(r, 10), () => {
302
- d.removeEventListener("touchstart", O), d.removeEventListener("touchmove", R);
303
- }));
304
- const he = () => P(-1), ue = (l) => X(l), me = (l) => W(l), de = () => q();
305
- function fe(l) {
306
- D[l ? "unshift" : "push"](() => {
307
- E = l, t(7, E);
308
- });
309
- }
310
- function ge() {
311
- T = this.clientWidth, t(4, T);
312
- }
313
- const ke = () => P(1);
314
- function ve(l) {
315
- D[l ? "unshift" : "push"](() => {
316
- d = l, t(3, d);
317
- });
318
- }
319
- function pe(l) {
320
- D[l ? "unshift" : "push"](() => {
321
- s = l, t(0, s);
322
- });
323
- }
324
- return e.$$set = (l) => {
325
- "tournamenturl" in l && t(17, k = l.tournamenturl), "scrollby" in l && t(15, v = l.scrollby), "pagfactor" in l && t(16, r = l.pagfactor), "lang" in l && t(18, p = l.lang), "translationurl" in l && t(19, y = l.translationurl), "clientstyling" in l && t(20, f = l.clientstyling), "clientstylingurl" in l && t(21, c = l.clientstylingurl);
326
- }, e.$$.update = () => {
327
- e.$$.dirty[0] & /*offset*/
328
- 4 && t(8, i = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
329
- 4194308 && t(9, h = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
330
- 16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
331
- 131072 && k && se(), e.$$.dirty[0] & /*slider*/
332
- 8 && d && re(), e.$$.dirty[0] & /*translationurl*/
333
- 524288 && y && le(), e.$$.dirty[0] & /*games*/
334
- 2 && b.length && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
335
- 1048577 && f && s && ie(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
336
- 2097153 && c && s && oe();
337
- }, t(2, u = 0), [
338
- s,
339
- b,
340
- u,
341
- d,
342
- T,
343
- U,
344
- A,
345
- E,
346
- i,
347
- h,
348
- m,
349
- W,
350
- q,
351
- P,
352
- X,
353
- v,
354
- r,
355
- k,
356
- p,
357
- y,
358
- f,
359
- c,
360
- B,
361
- he,
362
- ue,
363
- me,
364
- de,
365
- fe,
366
- ge,
367
- ke,
368
- ve,
369
- pe
370
- ];
371
- }
372
- class Ge extends we {
373
- constructor(n) {
374
- super(), _e(
375
- this,
376
- n,
377
- De,
378
- Ue,
379
- Ne,
380
- {
381
- tournamenturl: 17,
382
- scrollby: 15,
383
- pagfactor: 16,
384
- lang: 18,
385
- translationurl: 19,
386
- clientstyling: 20,
387
- clientstylingurl: 21
388
- },
389
- ze,
390
- [-1, -1]
391
- );
392
- }
393
- get tournamenturl() {
394
- return this.$$.ctx[17];
395
- }
396
- set tournamenturl(n) {
397
- this.$$set({ tournamenturl: n }), M();
398
- }
399
- get scrollby() {
400
- return this.$$.ctx[15];
401
- }
402
- set scrollby(n) {
403
- this.$$set({ scrollby: n }), M();
404
- }
405
- get pagfactor() {
406
- return this.$$.ctx[16];
407
- }
408
- set pagfactor(n) {
409
- this.$$set({ pagfactor: n }), M();
410
- }
411
- get lang() {
412
- return this.$$.ctx[18];
413
- }
414
- set lang(n) {
415
- this.$$set({ lang: n }), M();
416
- }
417
- get translationurl() {
418
- return this.$$.ctx[19];
419
- }
420
- set translationurl(n) {
421
- this.$$set({ translationurl: n }), M();
422
- }
423
- get clientstyling() {
424
- return this.$$.ctx[20];
425
- }
426
- set clientstyling(n) {
427
- this.$$set({ clientstyling: n }), M();
428
- }
429
- get clientstylingurl() {
430
- return this.$$.ctx[21];
431
- }
432
- set clientstylingurl(n) {
433
- this.$$set({ clientstylingurl: n }), M();
434
- }
435
- }
436
- be(Ge, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
437
- export {
438
- Ge as default
439
- };