@everymatrix/casino-tournaments-controller 1.67.3 → 1.69.0

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 (65) hide show
  1. package/components/CasinoTournamentsController-C99E3MCm.cjs +27 -0
  2. package/components/{CasinoTournamentsController-7AKjDr-2.js → CasinoTournamentsController-CtQ0SbZ1.js} +1411 -1336
  3. package/components/{CasinoTournamentsController-CVqp7a_8.js → CasinoTournamentsController-Dv0w6uxv.js} +1503 -1428
  4. package/components/CasinoTournamentsFilterController-CA_x2Klb.js +531 -0
  5. package/components/CasinoTournamentsFilterController-D8z30hIO.cjs +1 -0
  6. package/components/{CasinoTournamentsFilterController-DgpPT6gm.js → CasinoTournamentsFilterController-ZPodzMjS.js} +170 -175
  7. package/components/{CasinoTournamentsListController-DMd3vYND.js → CasinoTournamentsListController-BYjVebPq.js} +960 -958
  8. package/components/CasinoTournamentsListController-CMsPWeSH.cjs +13 -0
  9. package/components/{CasinoTournamentsListController-oZgCph3g.js → CasinoTournamentsListController-CWtG_Kjm.js} +960 -958
  10. package/components/{CasinoTournamentsThumbnail-BJ9-GP8X.js → CasinoTournamentsThumbnail-DIFGhQrc.js} +180 -188
  11. package/components/{CasinoTournamentsThumbnail-O3FpkA6K.js → CasinoTournamentsThumbnail-Dtfyse7r.js} +180 -188
  12. package/components/{CasinoTournamentsThumbnail-BfhLke2H.cjs → CasinoTournamentsThumbnail-zXFGDGG1.cjs} +2 -2
  13. package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailController-8tUPae_-.js → CasinoTournamentsThumbnailController-DChZllZ4.js} +467 -431
  15. package/components/{CasinoTournamentsThumbnailController-zdo20CEm.js → CasinoTournamentsThumbnailController-cPtKiglf.js} +396 -360
  16. package/components/{CasinoTournamentsThumbnailDuration-CMlv4ox4.js → CasinoTournamentsThumbnailDuration-CRqfmGfU.js} +155 -161
  17. package/components/{CasinoTournamentsThumbnailDuration-QeZBsYjk.js → CasinoTournamentsThumbnailDuration-DFTngt18.js} +154 -160
  18. package/components/CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js +434 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs +1 -0
  21. package/components/CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js +434 -0
  22. package/components/CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js +307 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-C1nsvr3R.js +307 -0
  24. package/components/CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs +1 -0
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
  30. package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
  31. package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
  32. package/stencil/index-b2193545-BOMvxBzV.js +519 -0
  33. package/stencil/index-b2193545-CFn9dM-v.js +503 -0
  34. package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
  35. package/stencil/{ui-image-ClXqMGwp.js → ui-image-3hy4ZvUC.js} +1 -1
  36. package/stencil/{ui-image-YphrYZtA.js → ui-image-D0wxuPze.js} +1 -1
  37. package/stencil/{ui-image-Db5QCSmt.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
  38. package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
  39. package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
  40. package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
  41. package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
  42. package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
  43. package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  44. package/stencil/{ui-skeleton-1cb75d00-bf7NJcVF.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
  45. package/stencil/{ui-skeleton-1cb75d00-nmwFu55Y.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
  46. package/stencil/{ui-skeleton-1cb75d00-U47XWOV2.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
  47. package/stencil/{ui-skeleton-DSlZCsjK.js → ui-skeleton-CVBjRUvi.js} +2 -2
  48. package/stencil/{ui-skeleton-P9Vv-0Vy.js → ui-skeleton-RkXNxPG1.js} +2 -2
  49. package/stencil/{ui-skeleton-DXCQ8Yoq.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
  50. package/components/CasinoTournamentsController-Coh7cPDO.cjs +0 -27
  51. package/components/CasinoTournamentsFilterController-BsmnMKtv.cjs +0 -1
  52. package/components/CasinoTournamentsFilterController-rPR6a4OA.js +0 -536
  53. package/components/CasinoTournamentsListController-zT0eUIB7.cjs +0 -13
  54. package/components/CasinoTournamentsThumbnailController-BEMM0P7L.cjs +0 -1
  55. package/components/CasinoTournamentsThumbnailDuration-C9R9OaYe.cjs +0 -1
  56. package/components/CasinoTournamentsThumbnailGamesSlider-DC9AU0N8.js +0 -442
  57. package/components/CasinoTournamentsThumbnailGamesSlider-KexMuwyu.js +0 -442
  58. package/components/CasinoTournamentsThumbnailGamesSlider-O0SVU50O.cjs +0 -1
  59. package/components/CasinoTournamentsThumbnailPrizes-B4Am-AyF.js +0 -315
  60. package/components/CasinoTournamentsThumbnailPrizes-DuHPFshm.js +0 -315
  61. package/components/CasinoTournamentsThumbnailPrizes-DwsTRQPD.cjs +0 -1
  62. package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
  63. package/stencil/index-b2193545-C1ayEiG4.js +0 -503
  64. package/stencil/index-b2193545-CyidmLE0.cjs +0 -1
  65. package/stencil/index-b2193545-s3PsNboB.js +0 -519
@@ -1,8 +1,8 @@
1
- import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as m, B as tt, p as M, u as et, G as N, $ as nt } from "./CasinoTournamentsController-7AKjDr-2.js";
2
- function O(i, t) {
3
- K(i, t);
1
+ import { a as H, S as J, i as K, s as Y, f as z, b as Z, n as N, d as w, e as B, g as v, h as l, k as Q, o as V, p as M, q as y, E as X, t as R, r as L, u as $, J as O, x as tt, y as et, z as nt, c as it, $ as st } from "./CasinoTournamentsController-CtQ0SbZ1.js";
2
+ function U(n, t) {
3
+ H(n, t);
4
4
  }
5
- const A = {
5
+ const q = {
6
6
  en: {
7
7
  finished: "Finished",
8
8
  starting: "Starting in ",
@@ -92,100 +92,100 @@ const A = {
92
92
  days: "days"
93
93
  }
94
94
  };
95
- function it(i) {
96
- V(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)}");
95
+ function rt(n) {
96
+ Z(n, "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)}");
97
97
  }
98
- function H(i) {
98
+ function x(n) {
99
99
  let t, e, s = (
100
100
  /*formatDate*/
101
- i[10](
101
+ n[10](
102
102
  /*startdate*/
103
- i[0]
103
+ n[0]
104
104
  ) + ""
105
105
  ), a, u, o, d = (
106
106
  /*formatDate*/
107
- i[10](
107
+ n[10](
108
108
  /*enddate*/
109
- i[1]
109
+ n[1]
110
110
  ) + ""
111
- ), g, S, p, h, D, F, j;
112
- function I(r, b) {
111
+ ), g, T, b, m, P, _, D;
112
+ function j(r, f) {
113
113
  return (
114
114
  /*status*/
115
115
  r[2] == "Finished" || /*status*/
116
116
  r[2] == "Closing" || /*status*/
117
- r[2] == "Closed" ? at : (
117
+ r[2] == "Closed" ? ot : (
118
118
  /*tournamentUntilStartDays*/
119
- r[5] > 0 ? rt : st
119
+ r[5] > 0 ? lt : at
120
120
  )
121
121
  );
122
122
  }
123
- let z = I(i), y = z(i);
124
- function R(r, b) {
123
+ let C = j(n), p = C(n);
124
+ function I(r, f) {
125
125
  if (
126
126
  /*status*/
127
127
  r[2] == "Finished" || /*status*/
128
128
  r[2] == "Closing" || /*status*/
129
129
  r[2] == "Closed"
130
130
  )
131
- return ut;
131
+ return ct;
132
132
  if (
133
133
  /*tournamentUntilStartDays*/
134
134
  r[5] > 0
135
135
  )
136
- return ot;
136
+ return dt;
137
137
  if (
138
138
  /*tournamentLeftDays*/
139
139
  r[4] > 0
140
140
  )
141
- return lt;
141
+ return ut;
142
142
  }
143
- let k = R(i), f = k && k(i);
143
+ let F = I(n), c = F && F(n);
144
144
  return {
145
145
  c() {
146
- t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.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(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
146
+ t = v("div"), e = v("div"), a = R(s), u = L(), o = v("div"), g = R(d), T = L(), b = v("div"), m = v("div"), p.c(), P = L(), 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(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(b, "class", "ProgressBarWrapper"), l(b, "part", "ProgressBarWrapper");
147
147
  },
148
- m(r, b) {
149
- T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
148
+ m(r, f) {
149
+ B(r, t, f), y(t, e), y(e, a), y(t, u), y(t, o), y(o, g), B(r, T, f), B(r, b, f), y(b, m), p.m(m, null), y(m, P), c && c.m(m, null), _ || (D = X(
150
150
  /*getDuration*/
151
- i[9].call(null, p)
152
- ), F = !0);
151
+ n[9].call(null, b)
152
+ ), _ = !0);
153
153
  },
154
- p(r, b) {
155
- b & /*startdate*/
154
+ p(r, f) {
155
+ f & /*startdate*/
156
156
  1 && s !== (s = /*formatDate*/
157
157
  r[10](
158
158
  /*startdate*/
159
159
  r[0]
160
- ) + "") && M(a, s), b & /*enddate*/
160
+ ) + "") && M(a, s), f & /*enddate*/
161
161
  2 && d !== (d = /*formatDate*/
162
162
  r[10](
163
163
  /*enddate*/
164
164
  r[1]
165
- ) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
165
+ ) + "") && M(g, d), C === (C = j(r)) && p ? p.p(r, f) : (p.d(1), p = C(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
166
166
  },
167
167
  d(r) {
168
- r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
168
+ r && (w(t), w(T), w(b)), p.d(), c && c.d(), _ = !1, D();
169
169
  }
170
170
  };
171
171
  }
172
- function st(i) {
172
+ function at(n) {
173
173
  let t;
174
174
  return {
175
175
  c() {
176
- t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), N(
176
+ t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), O(
177
177
  t,
178
178
  "width",
179
179
  /*getProgress*/
180
- i[7]() + "%"
180
+ n[7]() + "%"
181
181
  );
182
182
  },
183
183
  m(e, s) {
184
- T(e, t, s);
184
+ B(e, t, s);
185
185
  },
186
186
  p(e, s) {
187
187
  s & /*getProgress*/
188
- 128 && N(
188
+ 128 && O(
189
189
  t,
190
190
  "width",
191
191
  /*getProgress*/
@@ -193,54 +193,54 @@ function st(i) {
193
193
  );
194
194
  },
195
195
  d(e) {
196
- e && B(t);
196
+ e && w(t);
197
197
  }
198
198
  };
199
199
  }
200
- function rt(i) {
200
+ function lt(n) {
201
201
  let t;
202
202
  return {
203
203
  c() {
204
204
  t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
205
205
  },
206
206
  m(e, s) {
207
- T(e, t, s);
207
+ B(e, t, s);
208
208
  },
209
- p: U,
209
+ p: N,
210
210
  d(e) {
211
- e && B(t);
211
+ e && w(t);
212
212
  }
213
213
  };
214
214
  }
215
- function at(i) {
215
+ function ot(n) {
216
216
  let t;
217
217
  return {
218
218
  c() {
219
219
  t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
220
220
  },
221
221
  m(e, s) {
222
- T(e, t, s);
222
+ B(e, t, s);
223
223
  },
224
- p: U,
224
+ p: N,
225
225
  d(e) {
226
- e && B(t);
226
+ e && w(t);
227
227
  }
228
228
  };
229
229
  }
230
- function lt(i) {
230
+ function ut(n) {
231
231
  let t, e, s, a = (
232
232
  /*$_*/
233
- i[8]("left") + ""
233
+ n[8]("left") + ""
234
234
  ), u;
235
235
  return {
236
236
  c() {
237
- t = v("div"), e = E(
237
+ t = v("div"), e = R(
238
238
  /*showRemain*/
239
- i[6]
240
- ), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
239
+ n[6]
240
+ ), s = L(), u = R(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
241
241
  },
242
242
  m(o, d) {
243
- T(o, t, d), m(t, e), m(t, s), m(t, u);
243
+ B(o, t, d), y(t, e), y(t, s), y(t, u);
244
244
  },
245
245
  p(o, d) {
246
246
  d & /*showRemain*/
@@ -253,27 +253,27 @@ function lt(i) {
253
253
  o[8]("left") + "") && M(u, a);
254
254
  },
255
255
  d(o) {
256
- o && B(t);
256
+ o && w(t);
257
257
  }
258
258
  };
259
259
  }
260
- function ot(i) {
260
+ function dt(n) {
261
261
  let t, e = (
262
262
  /*$_*/
263
- i[8]("starting") + ""
263
+ n[8]("starting") + ""
264
264
  ), s, a, u = (
265
265
  /*getTextByDiff*/
266
- i[11](
266
+ n[11](
267
267
  /*tournamentUntilStartDays*/
268
- i[5]
268
+ n[5]
269
269
  ) + ""
270
270
  ), o;
271
271
  return {
272
272
  c() {
273
- t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
273
+ t = v("div"), s = R(e), a = L(), o = R(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
274
274
  },
275
275
  m(d, g) {
276
- T(d, t, g), m(t, s), m(t, a), m(t, o);
276
+ B(d, t, g), y(t, s), y(t, a), y(t, o);
277
277
  },
278
278
  p(d, g) {
279
279
  g & /*$_*/
@@ -286,21 +286,21 @@ function ot(i) {
286
286
  ) + "") && M(o, u);
287
287
  },
288
288
  d(d) {
289
- d && B(t);
289
+ d && w(t);
290
290
  }
291
291
  };
292
292
  }
293
- function ut(i) {
293
+ function ct(n) {
294
294
  let t, e = (
295
295
  /*$_*/
296
- i[8]("finished") + ""
296
+ n[8]("finished") + ""
297
297
  ), s;
298
298
  return {
299
299
  c() {
300
- t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
300
+ t = v("div"), s = R(e), l(t, "class", "Finished"), l(t, "part", "Finished");
301
301
  },
302
302
  m(a, u) {
303
- T(a, t, u), m(t, s);
303
+ B(a, t, u), y(t, s);
304
304
  },
305
305
  p(a, u) {
306
306
  u & /*$_*/
@@ -308,145 +308,132 @@ function ut(i) {
308
308
  a[8]("finished") + "") && M(s, e);
309
309
  },
310
310
  d(a) {
311
- a && B(t);
311
+ a && w(t);
312
312
  }
313
313
  };
314
314
  }
315
- function dt(i) {
315
+ function ft(n) {
316
316
  let t, e = (
317
317
  /*startdate*/
318
- i[0] && /*enddate*/
319
- i[1] && H(i)
318
+ n[0] && /*enddate*/
319
+ n[1] && x(n)
320
320
  );
321
321
  return {
322
322
  c() {
323
323
  t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
324
324
  },
325
325
  m(s, a) {
326
- T(s, t, a), e && e.m(t, null), i[16](t);
326
+ B(s, t, a), e && e.m(t, null), n[17](t);
327
327
  },
328
328
  p(s, [a]) {
329
329
  /*startdate*/
330
330
  s[0] && /*enddate*/
331
- s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
331
+ s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
332
332
  },
333
- i: U,
334
- o: U,
333
+ i: N,
334
+ o: N,
335
335
  d(s) {
336
- s && B(t), e && e.d(), i[16](null);
336
+ s && w(t), e && e.d(), n[17](null);
337
337
  }
338
338
  };
339
339
  }
340
- function ct(i, t, e) {
340
+ function gt(n, t, e) {
341
341
  let s, a;
342
- X(i, nt, (n) => e(8, a = n));
343
- let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
344
- const z = () => {
345
- fetch(h).then((c) => c.json()).then((c) => {
346
- Object.keys(c).forEach((_) => {
347
- O(_, c[_]);
342
+ Q(n, st, (i) => e(8, a = i));
343
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", j = "", C = "";
344
+ const p = () => {
345
+ fetch(m).then((h) => h.json()).then((h) => {
346
+ Object.keys(h).forEach((S) => {
347
+ U(S, h[S]);
348
348
  });
349
- }).catch((c) => {
350
- console.log(c);
349
+ }).catch((h) => {
350
+ console.log(h);
351
351
  });
352
352
  };
353
- Object.keys(A).forEach((n) => {
354
- O(n, A[n]);
353
+ Object.keys(q).forEach((i) => {
354
+ U(i, q[i]);
355
355
  });
356
- const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
357
- const n = /* @__PURE__ */ new Date();
358
- e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I = r(F));
359
- }, f = (n) => {
360
- const c = { month: "long" };
361
- let _ = new Date(n), P = new Intl.DateTimeFormat(g, c).format(_);
362
- return `${_.getDate()} ${P}, ${_.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${_.getUTCFullYear()}`;
363
- }, r = (n) => {
364
- const c = (P, w) => P + " " + a(w), _ = (P) => {
365
- const w = Math.floor(P);
366
- return w < 10 ? `0${w}` : `${w}`;
356
+ const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
357
+ const i = /* @__PURE__ */ new Date();
358
+ e(4, D = F(i, o)), e(5, j = F(i, u)), e(6, C = f(D));
359
+ }, r = (i) => {
360
+ const h = { month: "long" };
361
+ let S = new Date(i), E = new Intl.DateTimeFormat(g, h).format(S);
362
+ return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
363
+ }, f = (i) => {
364
+ const h = (E, k) => E + " " + a(k), S = (E) => {
365
+ const k = Math.floor(E);
366
+ return k < 10 ? `0${k}` : `${k}`;
367
367
  };
368
- if (n < 1440) {
369
- const P = n / 60, w = n % 60, G = (w - Math.floor(w)) * 60;
370
- return [P, w, G].map((W) => _(W)).join(":");
368
+ if (i < 1440) {
369
+ const E = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
370
+ return [E, k, W].map((G) => S(G)).join(":");
371
371
  }
372
- return c(Math.ceil(n / (60 * 24)), "days");
373
- }, b = () => {
374
- let n = document.createElement("style");
375
- n.innerHTML = S, D.appendChild(n);
376
- }, q = () => {
377
- let n = new URL(p), c = document.createElement("style");
378
- fetch(n.href).then((_) => _.text()).then((_) => {
379
- c.innerHTML = _, setTimeout(
380
- () => {
381
- D.appendChild(c);
382
- },
383
- 1
384
- ), setTimeout(
385
- () => {
386
- },
387
- 500
388
- );
389
- });
372
+ return h(Math.ceil(i / (60 * 24)), "days");
390
373
  };
391
- $(() => {
374
+ V(() => {
392
375
  window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
393
- const n = setInterval(
376
+ const i = setInterval(
394
377
  () => {
395
- u && o && k();
378
+ u && o && c();
396
379
  },
397
380
  1e3
398
381
  );
399
- return () => clearInterval(n);
382
+ return () => {
383
+ clearInterval(i);
384
+ };
400
385
  });
401
- function x(n) {
402
- et[n ? "unshift" : "push"](() => {
403
- D = n, e(3, D);
386
+ function A(i) {
387
+ $[i ? "unshift" : "push"](() => {
388
+ _ = i, e(3, _);
404
389
  });
405
390
  }
406
- return i.$$set = (n) => {
407
- "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, h = n.translationurl);
408
- }, i.$$.update = () => {
409
- i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
391
+ return n.$$set = (i) => {
392
+ "startdate" in i && e(0, u = i.startdate), "enddate" in i && e(1, o = i.enddate), "status" in i && e(2, d = i.status), "lang" in i && e(12, g = i.lang), "clientstyling" in i && e(13, T = i.clientstyling), "clientstylingurl" in i && e(14, b = i.clientstylingurl), "translationurl" in i && e(15, m = i.translationurl), "mbsource" in i && e(16, P = i.mbsource);
393
+ }, n.$$.update = () => {
394
+ n.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
410
395
  19 && e(7, s = () => {
411
- if (F <= 0)
396
+ if (D <= 0)
412
397
  return 100;
413
- const n = R(u, o), c = 100 / n;
414
- return Math.floor((n - F) * c);
415
- }), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
416
- 19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
417
- 4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
418
- 4112 && g && r(F), i.$$.dirty & /*translationurl*/
419
- 32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
420
- 8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
421
- 16392 && D && p && q();
398
+ const i = F(u, o), h = 100 / i;
399
+ return Math.floor((i - D) * h);
400
+ }), n.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
401
+ 19 && u && o && c() && f(D), n.$$.dirty & /*lang*/
402
+ 4096 && g && c(), n.$$.dirty & /*lang, tournamentLeftDays*/
403
+ 4112 && g && f(D), n.$$.dirty & /*translationurl*/
404
+ 32768 && m && p(), n.$$.dirty & /*clientstyling, customStylingContainer*/
405
+ 8200 && T && _ && tt(_, T), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
406
+ 16392 && b && _ && et(_, b), n.$$.dirty & /*mbsource, customStylingContainer*/
407
+ 65544 && P && _ && nt(_, `${P}.Style`);
422
408
  }, [
423
409
  u,
424
410
  o,
425
411
  d,
412
+ _,
426
413
  D,
427
- F,
428
414
  j,
429
- I,
415
+ C,
430
416
  s,
431
417
  a,
432
- k,
433
- f,
418
+ c,
434
419
  r,
420
+ f,
435
421
  g,
436
- S,
437
- p,
438
- h,
439
- x
422
+ T,
423
+ b,
424
+ m,
425
+ P,
426
+ A
440
427
  ];
441
428
  }
442
- class ft extends Y {
429
+ class mt extends J {
443
430
  constructor(t) {
444
- super(), Z(
431
+ super(), K(
445
432
  this,
446
433
  t,
447
- ct,
448
- dt,
449
- Q,
434
+ gt,
435
+ ft,
436
+ Y,
450
437
  {
451
438
  startdate: 0,
452
439
  enddate: 1,
@@ -454,55 +441,62 @@ class ft extends Y {
454
441
  lang: 12,
455
442
  clientstyling: 13,
456
443
  clientstylingurl: 14,
457
- translationurl: 15
444
+ translationurl: 15,
445
+ mbsource: 16
458
446
  },
459
- it
447
+ rt
460
448
  );
461
449
  }
462
450
  get startdate() {
463
451
  return this.$$.ctx[0];
464
452
  }
465
453
  set startdate(t) {
466
- this.$$set({ startdate: t }), C();
454
+ this.$$set({ startdate: t }), z();
467
455
  }
468
456
  get enddate() {
469
457
  return this.$$.ctx[1];
470
458
  }
471
459
  set enddate(t) {
472
- this.$$set({ enddate: t }), C();
460
+ this.$$set({ enddate: t }), z();
473
461
  }
474
462
  get status() {
475
463
  return this.$$.ctx[2];
476
464
  }
477
465
  set status(t) {
478
- this.$$set({ status: t }), C();
466
+ this.$$set({ status: t }), z();
479
467
  }
480
468
  get lang() {
481
469
  return this.$$.ctx[12];
482
470
  }
483
471
  set lang(t) {
484
- this.$$set({ lang: t }), C();
472
+ this.$$set({ lang: t }), z();
485
473
  }
486
474
  get clientstyling() {
487
475
  return this.$$.ctx[13];
488
476
  }
489
477
  set clientstyling(t) {
490
- this.$$set({ clientstyling: t }), C();
478
+ this.$$set({ clientstyling: t }), z();
491
479
  }
492
480
  get clientstylingurl() {
493
481
  return this.$$.ctx[14];
494
482
  }
495
483
  set clientstylingurl(t) {
496
- this.$$set({ clientstylingurl: t }), C();
484
+ this.$$set({ clientstylingurl: t }), z();
497
485
  }
498
486
  get translationurl() {
499
487
  return this.$$.ctx[15];
500
488
  }
501
489
  set translationurl(t) {
502
- this.$$set({ translationurl: t }), C();
490
+ this.$$set({ translationurl: t }), z();
491
+ }
492
+ get mbsource() {
493
+ return this.$$.ctx[16];
494
+ }
495
+ set mbsource(t) {
496
+ this.$$set({ mbsource: t }), z();
503
497
  }
504
498
  }
505
- J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
499
+ it(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
506
500
  export {
507
- ft as default
501
+ mt as default
508
502
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-C99E3MCm.cjs");function C(r,e){t.addMessages(r,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:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},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"}};function I(r){t.append_styles(r,"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 z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function T(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:O}let B=T(r),_=B(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return A;if(s[5]>0)return q;if(s[4]>0)return U}let v=P(r),c=v&&v(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=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(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),B===(B=T(s))&&_?_.p(s,f):(_.d(1),_=B(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[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(r){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(r){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(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[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 q(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[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,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function A(r){let e,n=r[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 W(r){let e,n=r[0]&&r[1]&&z(r);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),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(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(),r[17](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",T="",B="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,T=v(i,u)),n(6,B=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),S=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(S,D)=>S+" "+l(D),F=S=>{const D=Math.floor(S);return D<10?`0${D}`:`${D}`};if(i<1440){const S=i/60,D=i%60,R=(D-Math.floor(D))*60;return[S,D,R].map(x=>F(x)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,T,B,a,l,c,s,f,g,k,y,m,w,j]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},I)}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(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=E;