@everymatrix/casino-tournaments-thumbnail-controller 1.98.11 → 1.98.13

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 (22) hide show
  1. package/components/{CasinoTournamentsThumbnail-D0ogCtJU.js → CasinoTournamentsThumbnail-B5Yzr7sO.js} +220 -152
  2. package/components/{CasinoTournamentsThumbnail-C5xct0_1.js → CasinoTournamentsThumbnail-BV5G8P_q.js} +221 -153
  3. package/components/{CasinoTournamentsThumbnail-CN6ZbC4d.cjs → CasinoTournamentsThumbnail-BdB0qyH1.cjs} +3 -3
  4. package/components/{CasinoTournamentsThumbnailController-DAvw0pTx.cjs → CasinoTournamentsThumbnailController-BFCzfBPH.cjs} +1 -1
  5. package/components/{CasinoTournamentsThumbnailController-CTR9Yx_Q.js → CasinoTournamentsThumbnailController-CE_wNZTJ.js} +4 -4
  6. package/components/{CasinoTournamentsThumbnailController-9aRzA1n-.js → CasinoTournamentsThumbnailController-DiQ4a78a.js} +4 -4
  7. package/components/{CasinoTournamentsThumbnailDuration-Dx6YkenJ.js → CasinoTournamentsThumbnailDuration-5gWYo6rE.js} +47 -31
  8. package/components/{CasinoTournamentsThumbnailDuration-BfU8-09l.js → CasinoTournamentsThumbnailDuration-D3PYHA9M.js} +58 -42
  9. package/components/CasinoTournamentsThumbnailDuration-s_3M0hk7.cjs +1 -0
  10. package/components/{CasinoTournamentsThumbnailGamesSlider-BImHj2AJ.js → CasinoTournamentsThumbnailGamesSlider-C0ri8OiN.js} +7 -1
  11. package/components/{CasinoTournamentsThumbnailGamesSlider-C73V9r9K.js → CasinoTournamentsThumbnailGamesSlider-pqMqArAd.js} +23 -17
  12. package/components/CasinoTournamentsThumbnailGamesSlider-sA1h4YDn.cjs +1 -0
  13. package/components/CasinoTournamentsThumbnailPrizes-8CFQPYa0.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailPrizes-CAhc0WHz.js → CasinoTournamentsThumbnailPrizes-C-zdDFPz.js} +85 -75
  15. package/components/{CasinoTournamentsThumbnailPrizes-BoAZFu0y.js → CasinoTournamentsThumbnailPrizes-DHr-js9r.js} +101 -91
  16. package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
  17. package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
  18. package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoTournamentsThumbnailDuration-C0ZzG-d6.cjs +0 -1
  21. package/components/CasinoTournamentsThumbnailGamesSlider-SG_CTF5u.cjs +0 -1
  22. package/components/CasinoTournamentsThumbnailPrizes-WRldAF76.cjs +0 -1
@@ -4497,7 +4497,7 @@ if (typeof window != "undefined") {
4497
4497
  }
4498
4498
  };
4499
4499
  };
4500
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-C5xct0_1.js").then(({ default: t }) => {
4500
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnail-BV5G8P_q.js").then(({ default: t }) => {
4501
4501
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
4502
4502
  });
4503
4503
  }
@@ -4513,7 +4513,7 @@ if (typeof window != "undefined") {
4513
4513
  }
4514
4514
  };
4515
4515
  };
4516
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-Dx6YkenJ.js").then(({ default: t }) => {
4516
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailDuration-5gWYo6rE.js").then(({ default: t }) => {
4517
4517
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
4518
4518
  "casino-tournaments-thumbnail-duration",
4519
4519
  t.element
@@ -4532,7 +4532,7 @@ if (typeof window != "undefined") {
4532
4532
  }
4533
4533
  };
4534
4534
  };
4535
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-CAhc0WHz.js").then(({ default: t }) => {
4535
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailPrizes-DHr-js9r.js").then(({ default: t }) => {
4536
4536
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
4537
4537
  });
4538
4538
  }
@@ -4548,7 +4548,7 @@ if (typeof window != "undefined") {
4548
4548
  }
4549
4549
  };
4550
4550
  };
4551
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BImHj2AJ.js").then(
4551
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-C0ri8OiN.js").then(
4552
4552
  ({ default: t }) => {
4553
4553
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
4554
4554
  "casino-tournaments-thumbnail-games-slider",
@@ -1,8 +1,8 @@
1
- import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, g as w, j as v, e as l, l as V, o as X, m as M, h, q as $, t as j, k as R, u as tt, E as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsThumbnailController-9aRzA1n-.js";
2
- function U(n, t) {
1
+ import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as L, d as k, g as B, j as v, e as l, l as V, o as X, m as M, h, q as $, t as j, k as R, u as tt, E as N, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsThumbnailController-DiQ4a78a.js";
2
+ function O(n, t) {
3
3
  K(n, t);
4
4
  }
5
- const q = {
5
+ const U = {
6
6
  en: {
7
7
  finished: "Finished",
8
8
  starting: "Starting in ",
@@ -90,6 +90,22 @@ const q = {
90
90
  minutes: "minutes",
91
91
  hours: "hours",
92
92
  days: "days"
93
+ },
94
+ ru: {
95
+ finished: "Завершён",
96
+ starting: "Начинается через ",
97
+ left: "осталось",
98
+ minutes: "минут",
99
+ hours: "часов",
100
+ days: "дней"
101
+ },
102
+ az: {
103
+ finished: "Bitib",
104
+ starting: "Başlayır: ",
105
+ left: "qalıb",
106
+ minutes: "dəqiqə",
107
+ hours: "saat",
108
+ days: "gün"
93
109
  }
94
110
  };
95
111
  function at(n) {
@@ -121,7 +137,7 @@ function x(n) {
121
137
  );
122
138
  }
123
139
  let C = D(n), _ = C(n);
124
- function A(r, p) {
140
+ function q(r, p) {
125
141
  if (
126
142
  /*status*/
127
143
  r[2] == "Finished" || /*status*/
@@ -140,13 +156,13 @@ function x(n) {
140
156
  )
141
157
  return dt;
142
158
  }
143
- let B = A(n), c = B && B(n);
159
+ let w = q(n), c = w && w(n);
144
160
  return {
145
161
  c() {
146
162
  t = v("div"), e = v("div"), a = j(s), u = R(), o = v("div"), f = j(d), T = R(), b = v("div"), g = v("div"), _.c(), P = R(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
147
163
  },
148
164
  m(r, p) {
149
- w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
165
+ B(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), B(r, T, p), B(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
150
166
  /*getDuration*/
151
167
  n[9].call(null, b)
152
168
  ), y = !0);
@@ -162,7 +178,7 @@ function x(n) {
162
178
  r[10](
163
179
  /*enddate*/
164
180
  r[1]
165
- ) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), B === (B = A(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
181
+ ) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), w === (w = q(r)) && c ? c.p(r, p) : (c && c.d(1), c = w && w(r), c && (c.c(), c.m(g, null)));
166
182
  },
167
183
  d(r) {
168
184
  r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
@@ -173,7 +189,7 @@ function lt(n) {
173
189
  let t;
174
190
  return {
175
191
  c() {
176
- t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), O(
192
+ t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
177
193
  t,
178
194
  "width",
179
195
  /*getProgress*/
@@ -181,11 +197,11 @@ function lt(n) {
181
197
  );
182
198
  },
183
199
  m(e, s) {
184
- w(e, t, s);
200
+ B(e, t, s);
185
201
  },
186
202
  p(e, s) {
187
203
  s & /*getProgress*/
188
- 128 && O(
204
+ 128 && N(
189
205
  t,
190
206
  "width",
191
207
  /*getProgress*/
@@ -204,9 +220,9 @@ function ot(n) {
204
220
  t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
205
221
  },
206
222
  m(e, s) {
207
- w(e, t, s);
223
+ B(e, t, s);
208
224
  },
209
- p: N,
225
+ p: L,
210
226
  d(e) {
211
227
  e && k(t);
212
228
  }
@@ -219,9 +235,9 @@ function ut(n) {
219
235
  t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
220
236
  },
221
237
  m(e, s) {
222
- w(e, t, s);
238
+ B(e, t, s);
223
239
  },
224
- p: N,
240
+ p: L,
225
241
  d(e) {
226
242
  e && k(t);
227
243
  }
@@ -240,7 +256,7 @@ function dt(n) {
240
256
  ), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
257
  },
242
258
  m(o, d) {
243
- w(o, t, d), h(t, e), h(t, s), h(t, u);
259
+ B(o, t, d), h(t, e), h(t, s), h(t, u);
244
260
  },
245
261
  p(o, d) {
246
262
  d & /*showRemain*/
@@ -273,7 +289,7 @@ function ct(n) {
273
289
  t = v("div"), s = j(e), a = R(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
274
290
  },
275
291
  m(d, f) {
276
- w(d, t, f), h(t, s), h(t, a), h(t, o);
292
+ B(d, t, f), h(t, s), h(t, a), h(t, o);
277
293
  },
278
294
  p(d, f) {
279
295
  f & /*$_*/
@@ -300,7 +316,7 @@ function ft(n) {
300
316
  t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
301
317
  },
302
318
  m(a, u) {
303
- w(a, t, u), h(t, s);
319
+ B(a, t, u), h(t, s);
304
320
  },
305
321
  p(a, u) {
306
322
  u & /*$_*/
@@ -323,15 +339,15 @@ function gt(n) {
323
339
  t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
324
340
  },
325
341
  m(s, a) {
326
- w(s, t, a), e && e.m(t, null), n[17](t);
342
+ B(s, t, a), e && e.m(t, null), n[17](t);
327
343
  },
328
344
  p(s, [a]) {
329
345
  /*startdate*/
330
346
  s[0] && /*enddate*/
331
347
  s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
332
348
  },
333
- i: N,
334
- o: N,
349
+ i: L,
350
+ o: L,
335
351
  d(s) {
336
352
  s && k(t), e && e.d(), n[17](null);
337
353
  }
@@ -341,26 +357,26 @@ function mt(n, t, e) {
341
357
  let s, a;
342
358
  V(n, rt, (i) => e(8, a = i));
343
359
  let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, D = "", C = "", _ = "";
344
- const A = () => {
360
+ const q = () => {
345
361
  fetch(g).then((m) => m.json()).then((m) => {
346
362
  Object.keys(m).forEach((S) => {
347
- U(S, m[S]);
363
+ O(S, m[S]);
348
364
  });
349
365
  }).catch((m) => {
350
366
  console.log(m);
351
367
  });
352
368
  };
353
- Object.keys(q).forEach((i) => {
354
- U(i, q[i]);
369
+ Object.keys(U).forEach((i) => {
370
+ O(i, U[i]);
355
371
  });
356
- const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
372
+ const w = (i) => new Date(i).getTime(), c = (i, m) => (w(m) - w(i)) / (1e3 * 60), r = () => {
357
373
  const i = /* @__PURE__ */ new Date();
358
- e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = L(D));
374
+ e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = A(D));
359
375
  }, p = (i) => {
360
376
  const m = { month: "long" };
361
377
  let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
362
378
  return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
363
- }, L = (i) => {
379
+ }, A = (i) => {
364
380
  const m = (E, F) => E + " " + a(F), S = (E) => {
365
381
  const F = Math.floor(E);
366
382
  return F < 10 ? `0${F}` : `${F}`;
@@ -398,10 +414,10 @@ function mt(n, t, e) {
398
414
  const i = c(u, o), m = 100 / i;
399
415
  return Math.floor((i - D) * m);
400
416
  }), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
401
- 19 && u && o && r() && L(D), n.$$.dirty & /*lang*/
417
+ 19 && u && o && r() && A(D), n.$$.dirty & /*lang*/
402
418
  4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
403
- 4112 && f && L(D), n.$$.dirty & /*translationurl*/
404
- 32768 && g && A(), n.$$.dirty & /*clientstyling, customStylingContainer*/
419
+ 4112 && f && A(D), n.$$.dirty & /*translationurl*/
420
+ 32768 && g && q(), n.$$.dirty & /*clientstyling, customStylingContainer*/
405
421
  8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
406
422
  16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
407
423
  65544 && P && y && it(y, `${P}.Style`, I);
@@ -417,7 +433,7 @@ function mt(n, t, e) {
417
433
  a,
418
434
  r,
419
435
  p,
420
- L,
436
+ A,
421
437
  f,
422
438
  T,
423
439
  b,
@@ -1,8 +1,8 @@
1
- import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, h as w, k as v, g as l, m as V, o as X, p as M, j as h, t as $, u as j, l as R, v as tt, E as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsThumbnailController-CTR9Yx_Q.js";
2
- function U(n, t) {
1
+ import { b as K, S as Y, i as Z, s as J, f as z, d as Q, n as L, e as k, h as B, k as v, g as l, m as V, o as X, p as M, j as h, t as $, u as j, l as R, v as tt, E as N, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsThumbnailController-CE_wNZTJ.js";
2
+ function O(n, t) {
3
3
  K(n, t);
4
4
  }
5
- const q = {
5
+ const U = {
6
6
  en: {
7
7
  finished: "Finished",
8
8
  starting: "Starting in ",
@@ -90,6 +90,22 @@ const q = {
90
90
  minutes: "minutes",
91
91
  hours: "hours",
92
92
  days: "days"
93
+ },
94
+ ru: {
95
+ finished: "Завершён",
96
+ starting: "Начинается через ",
97
+ left: "осталось",
98
+ minutes: "минут",
99
+ hours: "часов",
100
+ days: "дней"
101
+ },
102
+ az: {
103
+ finished: "Bitib",
104
+ starting: "Başlayır: ",
105
+ left: "qalıb",
106
+ minutes: "dəqiqə",
107
+ hours: "saat",
108
+ days: "gün"
93
109
  }
94
110
  };
95
111
  function at(n) {
@@ -120,8 +136,8 @@ function x(n) {
120
136
  )
121
137
  );
122
138
  }
123
- let z = D(n), _ = z(n);
124
- function A(r, p) {
139
+ let C = D(n), _ = C(n);
140
+ function q(r, p) {
125
141
  if (
126
142
  /*status*/
127
143
  r[2] == "Finished" || /*status*/
@@ -140,13 +156,13 @@ function x(n) {
140
156
  )
141
157
  return dt;
142
158
  }
143
- let B = A(n), c = B && B(n);
159
+ let w = q(n), c = w && w(n);
144
160
  return {
145
161
  c() {
146
162
  t = v("div"), e = v("div"), a = j(s), u = R(), o = v("div"), f = j(d), T = R(), b = v("div"), g = v("div"), _.c(), P = R(), c && c.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(g, "class", "ProgressBar"), l(g, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
147
163
  },
148
164
  m(r, p) {
149
- w(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), w(r, T, p), w(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
165
+ B(r, t, p), h(t, e), h(e, a), h(t, u), h(t, o), h(o, f), B(r, T, p), B(r, b, p), h(b, g), _.m(g, null), h(g, P), c && c.m(g, null), y || (I = $(
150
166
  /*getDuration*/
151
167
  n[9].call(null, b)
152
168
  ), y = !0);
@@ -162,7 +178,7 @@ function x(n) {
162
178
  r[10](
163
179
  /*enddate*/
164
180
  r[1]
165
- ) + "") && M(f, d), z === (z = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = z(r), _ && (_.c(), _.m(g, P))), B === (B = A(r)) && c ? c.p(r, p) : (c && c.d(1), c = B && B(r), c && (c.c(), c.m(g, null)));
181
+ ) + "") && M(f, d), C === (C = D(r)) && _ ? _.p(r, p) : (_.d(1), _ = C(r), _ && (_.c(), _.m(g, P))), w === (w = q(r)) && c ? c.p(r, p) : (c && c.d(1), c = w && w(r), c && (c.c(), c.m(g, null)));
166
182
  },
167
183
  d(r) {
168
184
  r && (k(t), k(T), k(b)), _.d(), c && c.d(), y = !1, I();
@@ -173,7 +189,7 @@ function lt(n) {
173
189
  let t;
174
190
  return {
175
191
  c() {
176
- t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), O(
192
+ t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
177
193
  t,
178
194
  "width",
179
195
  /*getProgress*/
@@ -181,11 +197,11 @@ function lt(n) {
181
197
  );
182
198
  },
183
199
  m(e, s) {
184
- w(e, t, s);
200
+ B(e, t, s);
185
201
  },
186
202
  p(e, s) {
187
203
  s & /*getProgress*/
188
- 128 && O(
204
+ 128 && N(
189
205
  t,
190
206
  "width",
191
207
  /*getProgress*/
@@ -204,9 +220,9 @@ function ot(n) {
204
220
  t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
205
221
  },
206
222
  m(e, s) {
207
- w(e, t, s);
223
+ B(e, t, s);
208
224
  },
209
- p: N,
225
+ p: L,
210
226
  d(e) {
211
227
  e && k(t);
212
228
  }
@@ -219,9 +235,9 @@ function ut(n) {
219
235
  t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
220
236
  },
221
237
  m(e, s) {
222
- w(e, t, s);
238
+ B(e, t, s);
223
239
  },
224
- p: N,
240
+ p: L,
225
241
  d(e) {
226
242
  e && k(t);
227
243
  }
@@ -240,7 +256,7 @@ function dt(n) {
240
256
  ), s = R(), u = j(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
257
  },
242
258
  m(o, d) {
243
- w(o, t, d), h(t, e), h(t, s), h(t, u);
259
+ B(o, t, d), h(t, e), h(t, s), h(t, u);
244
260
  },
245
261
  p(o, d) {
246
262
  d & /*showRemain*/
@@ -273,7 +289,7 @@ function ct(n) {
273
289
  t = v("div"), s = j(e), a = R(), o = j(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
274
290
  },
275
291
  m(d, f) {
276
- w(d, t, f), h(t, s), h(t, a), h(t, o);
292
+ B(d, t, f), h(t, s), h(t, a), h(t, o);
277
293
  },
278
294
  p(d, f) {
279
295
  f & /*$_*/
@@ -300,7 +316,7 @@ function ft(n) {
300
316
  t = v("div"), s = j(e), l(t, "class", "Finished"), l(t, "part", "Finished");
301
317
  },
302
318
  m(a, u) {
303
- w(a, t, u), h(t, s);
319
+ B(a, t, u), h(t, s);
304
320
  },
305
321
  p(a, u) {
306
322
  u & /*$_*/
@@ -323,15 +339,15 @@ function gt(n) {
323
339
  t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
324
340
  },
325
341
  m(s, a) {
326
- w(s, t, a), e && e.m(t, null), n[17](t);
342
+ B(s, t, a), e && e.m(t, null), n[17](t);
327
343
  },
328
344
  p(s, [a]) {
329
345
  /*startdate*/
330
346
  s[0] && /*enddate*/
331
347
  s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
332
348
  },
333
- i: N,
334
- o: N,
349
+ i: L,
350
+ o: L,
335
351
  d(s) {
336
352
  s && k(t), e && e.d(), n[17](null);
337
353
  }
@@ -340,27 +356,27 @@ function gt(n) {
340
356
  function mt(n, t, e) {
341
357
  let s, a;
342
358
  V(n, rt, (i) => e(8, a = i));
343
- let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, D = "", z = "", _ = "";
344
- const A = () => {
359
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: f = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: g = "" } = t, { mbsource: P } = t, y, I, D = "", C = "", _ = "";
360
+ const q = () => {
345
361
  fetch(g).then((m) => m.json()).then((m) => {
346
362
  Object.keys(m).forEach((S) => {
347
- U(S, m[S]);
363
+ O(S, m[S]);
348
364
  });
349
365
  }).catch((m) => {
350
366
  console.log(m);
351
367
  });
352
368
  };
353
- Object.keys(q).forEach((i) => {
354
- U(i, q[i]);
369
+ Object.keys(U).forEach((i) => {
370
+ O(i, U[i]);
355
371
  });
356
- const B = (i) => new Date(i).getTime(), c = (i, m) => (B(m) - B(i)) / (1e3 * 60), r = () => {
372
+ const w = (i) => new Date(i).getTime(), c = (i, m) => (w(m) - w(i)) / (1e3 * 60), r = () => {
357
373
  const i = /* @__PURE__ */ new Date();
358
- e(4, D = c(i, o)), e(5, z = c(i, u)), e(6, _ = L(D));
374
+ e(4, D = c(i, o)), e(5, C = c(i, u)), e(6, _ = A(D));
359
375
  }, p = (i) => {
360
376
  const m = { month: "long" };
361
377
  let S = new Date(i), E = new Intl.DateTimeFormat(f, m).format(S);
362
378
  return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
363
- }, L = (i) => {
379
+ }, A = (i) => {
364
380
  const m = (E, F) => E + " " + a(F), S = (E) => {
365
381
  const F = Math.floor(E);
366
382
  return F < 10 ? `0${F}` : `${F}`;
@@ -398,10 +414,10 @@ function mt(n, t, e) {
398
414
  const i = c(u, o), m = 100 / i;
399
415
  return Math.floor((i - D) * m);
400
416
  }), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
401
- 19 && u && o && r() && L(D), n.$$.dirty & /*lang*/
417
+ 19 && u && o && r() && A(D), n.$$.dirty & /*lang*/
402
418
  4096 && f && r(), n.$$.dirty & /*lang, tournamentLeftDays*/
403
- 4112 && f && L(D), n.$$.dirty & /*translationurl*/
404
- 32768 && g && A(), n.$$.dirty & /*clientstyling, customStylingContainer*/
419
+ 4112 && f && A(D), n.$$.dirty & /*translationurl*/
420
+ 32768 && g && q(), n.$$.dirty & /*clientstyling, customStylingContainer*/
405
421
  8200 && T && y && et(y, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
406
422
  16392 && b && y && nt(y, b), n.$$.dirty & /*mbsource, customStylingContainer*/
407
423
  65544 && P && y && it(y, `${P}.Style`, I);
@@ -411,13 +427,13 @@ function mt(n, t, e) {
411
427
  d,
412
428
  y,
413
429
  D,
414
- z,
430
+ C,
415
431
  _,
416
432
  s,
417
433
  a,
418
434
  r,
419
435
  p,
420
- L,
436
+ A,
421
437
  f,
422
438
  T,
423
439
  b,
@@ -451,49 +467,49 @@ class ht extends Y {
451
467
  return this.$$.ctx[0];
452
468
  }
453
469
  set startdate(t) {
454
- this.$$set({ startdate: t }), C();
470
+ this.$$set({ startdate: t }), z();
455
471
  }
456
472
  get enddate() {
457
473
  return this.$$.ctx[1];
458
474
  }
459
475
  set enddate(t) {
460
- this.$$set({ enddate: t }), C();
476
+ this.$$set({ enddate: t }), z();
461
477
  }
462
478
  get status() {
463
479
  return this.$$.ctx[2];
464
480
  }
465
481
  set status(t) {
466
- this.$$set({ status: t }), C();
482
+ this.$$set({ status: t }), z();
467
483
  }
468
484
  get lang() {
469
485
  return this.$$.ctx[12];
470
486
  }
471
487
  set lang(t) {
472
- this.$$set({ lang: t }), C();
488
+ this.$$set({ lang: t }), z();
473
489
  }
474
490
  get clientstyling() {
475
491
  return this.$$.ctx[13];
476
492
  }
477
493
  set clientstyling(t) {
478
- this.$$set({ clientstyling: t }), C();
494
+ this.$$set({ clientstyling: t }), z();
479
495
  }
480
496
  get clientstylingurl() {
481
497
  return this.$$.ctx[14];
482
498
  }
483
499
  set clientstylingurl(t) {
484
- this.$$set({ clientstylingurl: t }), C();
500
+ this.$$set({ clientstylingurl: t }), z();
485
501
  }
486
502
  get translationurl() {
487
503
  return this.$$.ctx[15];
488
504
  }
489
505
  set translationurl(t) {
490
- this.$$set({ translationurl: t }), C();
506
+ this.$$set({ translationurl: t }), z();
491
507
  }
492
508
  get mbsource() {
493
509
  return this.$$.ctx[16];
494
510
  }
495
511
  set mbsource(t) {
496
- this.$$set({ mbsource: t }), C();
512
+ this.$$set({ mbsource: t }), z();
497
513
  }
498
514
  }
499
515
  st(ht, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnailController-BFCzfBPH.cjs");function z(i,e){t.addMessages(i,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},ru:{finished:"Завершён",starting:"Начинается через ",left:"осталось",minutes:"минут",hours:"часов",days:"дней"},az:{finished:"Bitib",starting:"Başlayır: ",left:"qalıb",minutes:"dəqiqə",hours:"saat",days:"gün"}};function q(i){t.append_styles(i,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[1])+"",f,k,y,g,B,h,S;function b(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:O}let T=b(i),p=T(i);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return U}let D=P(i),c=D&&D(i);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.c(),B=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar"),t.attr(g,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,B),c&&c.m(g,null),h||(S=t.action_destroyer(i[9].call(null,y)),h=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(f,d),T===(T=b(s))&&p?p.p(s,_):(p.d(1),p=T(s),p&&(p.c(),p.m(g,B))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,S()}}}function O(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function L(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(i){let e,n=i[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(i){let e,n=i[0]&&i[1]&&E(i);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),i[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),i[17](null)}}}function H(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:B}=e,h,S,b="",T="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(r=>{z(r,M[r])});const D=r=>new Date(r).getTime(),c=(r,m)=>(D(m)-D(r))/(1e3*60),s=()=>{const r=new Date;n(4,b=c(r,o)),n(5,T=c(r,u)),n(6,p=C(b))},_=r=>{const m={month:"long"};let F=new Date(r),w=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${w}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=r=>{const m=(w,v)=>w+" "+l(v),F=w=>{const v=Math.floor(w);return v<10?`0${v}`:`${v}`};if(r<1440){const w=r/60,v=r%60,x=(v-Math.floor(v))*60;return[w,v,x].map(I=>F(I)).join(":")}return m(Math.ceil(r/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const r=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(r)}});function R(r){t.binding_callbacks[r?"unshift":"push"](()=>{h=r,n(3,h)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,f=r.lang),"clientstyling"in r&&n(13,k=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,g=r.translationurl),"mbsource"in r&&n(16,B=r.mbsource)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const r=c(u,o),m=100/r;return Math.floor((r-b)*m)}),i.$$.dirty&19&&u&&o&&s()&&C(b),i.$$.dirty&4096&&f&&s(),i.$$.dirty&4112&&f&&C(b),i.$$.dirty&32768&&g&&P(),i.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),i.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),i.$$.dirty&65544&&B&&h&&t.setStreamStyling(h,`${B}.Style`,S)},[u,o,d,h,b,T,p,a,l,s,_,C,f,k,y,g,B,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},q)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
@@ -1,4 +1,4 @@
1
- import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, g as q, j as N, l as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, h as v, I as Pe, p as A, k as D, e as o, J as Me, K as Ee, u as G, m as je, w as Q, t as ze, z as Ae, A as He, B as Le, C as Ce, D as De } from "./CasinoTournamentsThumbnailController-9aRzA1n-.js";
1
+ import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, g as q, j as N, l as Te, o as Fe, F as K, G as Be, r as le, H as C, E as Z, h as v, I as Pe, p as A, k as D, e as o, J as Me, K as Ee, u as G, m as je, w as Q, t as ze, z as Ae, A as He, B as Le, C as Ce, D as De } from "./CasinoTournamentsThumbnailController-DiQ4a78a.js";
2
2
  function V(e, n) {
3
3
  be(e, n);
4
4
  }
@@ -32,6 +32,12 @@ const $ = {
32
32
  },
33
33
  "en-us": {
34
34
  playNow: "Play now"
35
+ },
36
+ ru: {
37
+ playNow: "Играть сейчас"
38
+ },
39
+ az: {
40
+ playNow: "İndi oyna"
35
41
  }
36
42
  };
37
43
  function Ie(e) {