@everymatrix/casino-most-played-section 1.74.6 → 1.74.8

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.
@@ -1,4 +1,4 @@
1
- import { a as $, $ as ee, S as te, i as se, f as r, c as ae, s as ne, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as me, B as le, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BPwlHha2.js";
1
+ import { a as $, $ as ee, S as te, i as se, f as r, c as ae, s as ne, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as le, B as me, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BPwlHha2.js";
2
2
  function Y(a, e) {
3
3
  $(a, e);
4
4
  }
@@ -123,7 +123,7 @@ function ve(a) {
123
123
  e,
124
124
  "fetchviaevent",
125
125
  /*fetchviaevent*/
126
- a[17]
126
+ a[18]
127
127
  ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
128
128
  e,
129
129
  "showgamename",
@@ -139,6 +139,11 @@ function ve(a) {
139
139
  "clientstylingurl",
140
140
  /*clientstylingurl*/
141
141
  a[8]
142
+ ), n(
143
+ e,
144
+ "translationurl",
145
+ /*translationurl*/
146
+ a[16]
142
147
  ), n(
143
148
  e,
144
149
  "livecasino",
@@ -168,7 +173,7 @@ function ve(a) {
168
173
  e,
169
174
  "casinomygames",
170
175
  /*casinomygames*/
171
- a[16]
176
+ a[17]
172
177
  ), n(
173
178
  e,
174
179
  "mbsource",
@@ -223,11 +228,11 @@ function ve(a) {
223
228
  /*favorites*/
224
229
  s[15]
225
230
  ), i[0] & /*fetchviaevent*/
226
- 131072 && n(
231
+ 262144 && n(
227
232
  e,
228
233
  "fetchviaevent",
229
234
  /*fetchviaevent*/
230
- s[17]
235
+ s[18]
231
236
  ), i[0] & /*showgamename*/
232
237
  8192 && n(
233
238
  e,
@@ -246,6 +251,12 @@ function ve(a) {
246
251
  "clientstylingurl",
247
252
  /*clientstylingurl*/
248
253
  s[8]
254
+ ), i[0] & /*translationurl*/
255
+ 65536 && n(
256
+ e,
257
+ "translationurl",
258
+ /*translationurl*/
259
+ s[16]
249
260
  ), i[0] & /*livecasino*/
250
261
  512 && n(
251
262
  e,
@@ -277,11 +288,11 @@ function ve(a) {
277
288
  /*integratedgameframemobile*/
278
289
  s[10]
279
290
  ), i[0] & /*casinomygames*/
280
- 65536 && n(
291
+ 131072 && n(
281
292
  e,
282
293
  "casinomygames",
283
294
  /*casinomygames*/
284
- s[16]
295
+ s[17]
285
296
  ), i[0] & /*mbsource*/
286
297
  64 && n(
287
298
  e,
@@ -298,22 +309,22 @@ function ve(a) {
298
309
  function we(a) {
299
310
  let e, s = (
300
311
  /*$_*/
301
- a[20]("noGames") + ""
312
+ a[21]("noGames") + ""
302
313
  ), i;
303
314
  return {
304
315
  c() {
305
316
  e = P("p"), i = de(s), M(e, "class", "SearchLoading");
306
317
  },
307
- m(l, m) {
308
- L(l, e, m), K(e, i);
318
+ m(m, l) {
319
+ L(m, e, l), K(e, i);
309
320
  },
310
- p(l, m) {
311
- m[0] & /*$_*/
312
- 1048576 && s !== (s = /*$_*/
313
- l[20]("noGames") + "") && fe(i, s);
321
+ p(m, l) {
322
+ l[0] & /*$_*/
323
+ 2097152 && s !== (s = /*$_*/
324
+ m[21]("noGames") + "") && fe(i, s);
314
325
  },
315
- d(l) {
316
- l && A(e);
326
+ d(m) {
327
+ m && A(e);
317
328
  }
318
329
  };
319
330
  }
@@ -322,31 +333,31 @@ function _e(a) {
322
333
  function i(g, c) {
323
334
  return (
324
335
  /*mostPlayedEmpty*/
325
- g[19] ? we : ve
336
+ g[20] ? we : ve
326
337
  );
327
338
  }
328
- let l = i(a), m = l(a);
339
+ let m = i(a), l = m(a);
329
340
  return {
330
341
  c() {
331
- e = P("div"), s = P("div"), m.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
342
+ e = P("div"), s = P("div"), l.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
332
343
  },
333
344
  m(g, c) {
334
- L(g, e, c), K(e, s), m.m(s, null), a[24](e);
345
+ L(g, e, c), K(e, s), l.m(s, null), a[24](e);
335
346
  },
336
347
  p(g, c) {
337
- l === (l = i(g)) && m ? m.p(g, c) : (m.d(1), m = l(g), m && (m.c(), m.m(s, null)));
348
+ m === (m = i(g)) && l ? l.p(g, c) : (l.d(1), l = m(g), l && (l.c(), l.m(s, null)));
338
349
  },
339
350
  i: J,
340
351
  o: J,
341
352
  d(g) {
342
- g && A(e), m.d(), a[24](null);
353
+ g && A(e), l.d(), a[24](null);
343
354
  }
344
355
  };
345
356
  }
346
357
  function Ge(a, e, s) {
347
358
  let i;
348
- oe(a, he, (t) => s(20, i = t));
349
- let { endpoint: l = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: G = "false" } = e, { integratedgameframemobile: O = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
359
+ oe(a, he, (t) => s(21, i = t));
360
+ let { endpoint: m = "" } = e, { datasource: l = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: G = "false" } = e, { integratedgameframemobile: O = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
350
361
  const V = () => {
351
362
  fetch(k).then((o) => o.json()).then((o) => {
352
363
  Object.keys(o).forEach((d) => {
@@ -361,7 +372,7 @@ function Ge(a, e, s) {
361
372
  });
362
373
  let N = [], q, I = !1, u;
363
374
  const W = (t) => {
364
- let o = new URL(`${l}/v1/player/${b}/games/most-played`);
375
+ let o = new URL(`${m}/v1/player/${b}/games/most-played`);
365
376
  t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", S);
366
377
  let d = t.device;
367
378
  return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), q = G ? o : o.href, new Promise((f, y) => {
@@ -383,13 +394,13 @@ function Ge(a, e, s) {
383
394
  if (t.count > 0) {
384
395
  let o = [];
385
396
  t.items.forEach((d) => {
386
- let f = new URL(`${l}/v1/casino/games/${d.gameId}`);
387
- f.searchParams.append("datasource", m), G ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
397
+ let f = new URL(`${m}/v1/casino/games/${d.gameId}`);
398
+ f.searchParams.append("datasource", l), G ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
388
399
  }), Promise.all(o).then((d) => {
389
400
  N = d.filter((f) => !("error" in f)).map((f) => f[0]), C === "true" && (N = N.slice(0, JSON.parse(j))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
390
401
  });
391
402
  } else
392
- s(19, I = !0);
403
+ s(20, I = !0);
393
404
  });
394
405
  }, Z = () => {
395
406
  ye(c);
@@ -398,22 +409,22 @@ function Ge(a, e, s) {
398
409
  });
399
410
  function p(t) {
400
411
  ce[t ? "unshift" : "push"](() => {
401
- u = t, s(18, u);
412
+ u = t, s(19, u);
402
413
  });
403
414
  }
404
415
  return a.$$set = (t) => {
405
- "endpoint" in t && s(0, l = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, w = t.clientstyling), "clientstylingurl" in t && s(8, _ = t.clientstylingurl), "livecasino" in t && s(9, G = t.livecasino), "integratedgameframemobile" in t && s(10, O = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(21, k = t.translationurl), "casinomygames" in t && s(16, C = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(17, z = t.fetchviaevent);
416
+ "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, l = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, w = t.clientstyling), "clientstylingurl" in t && s(8, _ = t.clientstylingurl), "livecasino" in t && s(9, G = t.livecasino), "integratedgameframemobile" in t && s(10, O = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, k = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(18, z = t.fetchviaevent);
406
417
  }, a.$$.update = () => {
407
418
  a.$$.dirty[0] & /*endpoint, userid, lang*/
408
- 41 && l && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
409
- 262272 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
- 262400 && _ && u && me(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
- 262208 && v && u && le(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
412
- 2097152 && k && V(), a.$$.dirty[0] & /*lang*/
419
+ 41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
420
+ 524416 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
421
+ 524544 && _ && u && le(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
422
+ 524352 && v && u && me(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
423
+ 65536 && k && V(), a.$$.dirty[0] & /*lang*/
413
424
  8 && c && Z();
414
425
  }, [
415
- l,
416
426
  m,
427
+ l,
417
428
  g,
418
429
  c,
419
430
  D,
@@ -428,12 +439,12 @@ function Ge(a, e, s) {
428
439
  T,
429
440
  j,
430
441
  U,
442
+ k,
431
443
  C,
432
444
  z,
433
445
  u,
434
446
  I,
435
447
  i,
436
- k,
437
448
  S,
438
449
  E,
439
450
  p
@@ -464,11 +475,11 @@ class ke extends te {
464
475
  showgamename: 13,
465
476
  visiblegames: 14,
466
477
  favorites: 15,
467
- translationurl: 21,
468
- casinomygames: 16,
478
+ translationurl: 16,
479
+ casinomygames: 17,
469
480
  mostplayedperiod: 22,
470
481
  mostplayedrounds: 23,
471
- fetchviaevent: 17
482
+ fetchviaevent: 18
472
483
  },
473
484
  be,
474
485
  [-1, -1]
@@ -571,13 +582,13 @@ class ke extends te {
571
582
  this.$$set({ favorites: e }), r();
572
583
  }
573
584
  get translationurl() {
574
- return this.$$.ctx[21];
585
+ return this.$$.ctx[16];
575
586
  }
576
587
  set translationurl(e) {
577
588
  this.$$set({ translationurl: e }), r();
578
589
  }
579
590
  get casinomygames() {
580
- return this.$$.ctx[16];
591
+ return this.$$.ctx[17];
581
592
  }
582
593
  set casinomygames(e) {
583
594
  this.$$set({ casinomygames: e }), r();
@@ -595,7 +606,7 @@ class ke extends te {
595
606
  this.$$set({ mostplayedrounds: e }), r();
596
607
  }
597
608
  get fetchviaevent() {
598
- return this.$$.ctx[17];
609
+ return this.$$.ctx[18];
599
610
  }
600
611
  set fetchviaevent(e) {
601
612
  this.$$set({ fetchviaevent: e }), r();
@@ -1,4 +1,4 @@
1
- import { a as $, $ as ee, c as te, S as se, i as ae, s as ne, f as r, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as me, B as le, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BUlwRomz.js";
1
+ import { a as $, $ as ee, c as te, S as se, i as ae, s as ne, f as r, b as ie, e as P, j as M, l as L, m as K, o as J, p as A, q as oe, r as re, u as le, B as me, y as ge, z as ce, A as ue, h as n, t as de, n as fe, E as he } from "./CasinoFilter-BUlwRomz.js";
2
2
  function Y(a, e) {
3
3
  $(a, e);
4
4
  }
@@ -123,7 +123,7 @@ function ve(a) {
123
123
  e,
124
124
  "fetchviaevent",
125
125
  /*fetchviaevent*/
126
- a[17]
126
+ a[18]
127
127
  ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
128
128
  e,
129
129
  "showgamename",
@@ -139,6 +139,11 @@ function ve(a) {
139
139
  "clientstylingurl",
140
140
  /*clientstylingurl*/
141
141
  a[8]
142
+ ), n(
143
+ e,
144
+ "translationurl",
145
+ /*translationurl*/
146
+ a[16]
142
147
  ), n(
143
148
  e,
144
149
  "livecasino",
@@ -168,7 +173,7 @@ function ve(a) {
168
173
  e,
169
174
  "casinomygames",
170
175
  /*casinomygames*/
171
- a[16]
176
+ a[17]
172
177
  ), n(
173
178
  e,
174
179
  "mbsource",
@@ -223,11 +228,11 @@ function ve(a) {
223
228
  /*favorites*/
224
229
  s[15]
225
230
  ), i[0] & /*fetchviaevent*/
226
- 131072 && n(
231
+ 262144 && n(
227
232
  e,
228
233
  "fetchviaevent",
229
234
  /*fetchviaevent*/
230
- s[17]
235
+ s[18]
231
236
  ), i[0] & /*showgamename*/
232
237
  8192 && n(
233
238
  e,
@@ -246,6 +251,12 @@ function ve(a) {
246
251
  "clientstylingurl",
247
252
  /*clientstylingurl*/
248
253
  s[8]
254
+ ), i[0] & /*translationurl*/
255
+ 65536 && n(
256
+ e,
257
+ "translationurl",
258
+ /*translationurl*/
259
+ s[16]
249
260
  ), i[0] & /*livecasino*/
250
261
  512 && n(
251
262
  e,
@@ -277,11 +288,11 @@ function ve(a) {
277
288
  /*integratedgameframemobile*/
278
289
  s[10]
279
290
  ), i[0] & /*casinomygames*/
280
- 65536 && n(
291
+ 131072 && n(
281
292
  e,
282
293
  "casinomygames",
283
294
  /*casinomygames*/
284
- s[16]
295
+ s[17]
285
296
  ), i[0] & /*mbsource*/
286
297
  64 && n(
287
298
  e,
@@ -298,22 +309,22 @@ function ve(a) {
298
309
  function we(a) {
299
310
  let e, s = (
300
311
  /*$_*/
301
- a[20]("noGames") + ""
312
+ a[21]("noGames") + ""
302
313
  ), i;
303
314
  return {
304
315
  c() {
305
316
  e = P("p"), i = de(s), M(e, "class", "SearchLoading");
306
317
  },
307
- m(l, m) {
308
- L(l, e, m), K(e, i);
318
+ m(m, l) {
319
+ L(m, e, l), K(e, i);
309
320
  },
310
- p(l, m) {
311
- m[0] & /*$_*/
312
- 1048576 && s !== (s = /*$_*/
313
- l[20]("noGames") + "") && fe(i, s);
321
+ p(m, l) {
322
+ l[0] & /*$_*/
323
+ 2097152 && s !== (s = /*$_*/
324
+ m[21]("noGames") + "") && fe(i, s);
314
325
  },
315
- d(l) {
316
- l && A(e);
326
+ d(m) {
327
+ m && A(e);
317
328
  }
318
329
  };
319
330
  }
@@ -322,31 +333,31 @@ function _e(a) {
322
333
  function i(g, c) {
323
334
  return (
324
335
  /*mostPlayedEmpty*/
325
- g[19] ? we : ve
336
+ g[20] ? we : ve
326
337
  );
327
338
  }
328
- let l = i(a), m = l(a);
339
+ let m = i(a), l = m(a);
329
340
  return {
330
341
  c() {
331
- e = P("div"), s = P("div"), m.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
342
+ e = P("div"), s = P("div"), l.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
332
343
  },
333
344
  m(g, c) {
334
- L(g, e, c), K(e, s), m.m(s, null), a[24](e);
345
+ L(g, e, c), K(e, s), l.m(s, null), a[24](e);
335
346
  },
336
347
  p(g, c) {
337
- l === (l = i(g)) && m ? m.p(g, c) : (m.d(1), m = l(g), m && (m.c(), m.m(s, null)));
348
+ m === (m = i(g)) && l ? l.p(g, c) : (l.d(1), l = m(g), l && (l.c(), l.m(s, null)));
338
349
  },
339
350
  i: J,
340
351
  o: J,
341
352
  d(g) {
342
- g && A(e), m.d(), a[24](null);
353
+ g && A(e), l.d(), a[24](null);
343
354
  }
344
355
  };
345
356
  }
346
357
  function Ge(a, e, s) {
347
358
  let i;
348
- oe(a, he, (t) => s(20, i = t));
349
- let { endpoint: l = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: G = "false" } = e, { integratedgameframemobile: O = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: C } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: j = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
359
+ oe(a, he, (t) => s(21, i = t));
360
+ let { endpoint: m = "" } = e, { datasource: l = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: G = "false" } = e, { integratedgameframemobile: O = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: C } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: j = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
350
361
  const V = () => {
351
362
  fetch(k).then((o) => o.json()).then((o) => {
352
363
  Object.keys(o).forEach((d) => {
@@ -361,7 +372,7 @@ function Ge(a, e, s) {
361
372
  });
362
373
  let N = [], q, I = !1, u;
363
374
  const W = (t) => {
364
- let o = new URL(`${l}/v1/player/${b}/games/most-played`);
375
+ let o = new URL(`${m}/v1/player/${b}/games/most-played`);
365
376
  t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", S);
366
377
  let d = t.device;
367
378
  return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), q = G ? o : o.href, new Promise((f, y) => {
@@ -383,13 +394,13 @@ function Ge(a, e, s) {
383
394
  if (t.count > 0) {
384
395
  let o = [];
385
396
  t.items.forEach((d) => {
386
- let f = new URL(`${l}/v1/casino/games/${d.gameId}`);
387
- f.searchParams.append("datasource", m), G ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
397
+ let f = new URL(`${m}/v1/casino/games/${d.gameId}`);
398
+ f.searchParams.append("datasource", l), G ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
388
399
  }), Promise.all(o).then((d) => {
389
400
  N = d.filter((f) => !("error" in f)).map((f) => f[0]), j === "true" && (N = N.slice(0, JSON.parse(C))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
390
401
  });
391
402
  } else
392
- s(19, I = !0);
403
+ s(20, I = !0);
393
404
  });
394
405
  }, Z = () => {
395
406
  ye(c);
@@ -398,22 +409,22 @@ function Ge(a, e, s) {
398
409
  });
399
410
  function p(t) {
400
411
  ce[t ? "unshift" : "push"](() => {
401
- u = t, s(18, u);
412
+ u = t, s(19, u);
402
413
  });
403
414
  }
404
415
  return a.$$set = (t) => {
405
- "endpoint" in t && s(0, l = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, w = t.clientstyling), "clientstylingurl" in t && s(8, _ = t.clientstylingurl), "livecasino" in t && s(9, G = t.livecasino), "integratedgameframemobile" in t && s(10, O = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, C = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(21, k = t.translationurl), "casinomygames" in t && s(16, j = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(17, z = t.fetchviaevent);
416
+ "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, l = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, w = t.clientstyling), "clientstylingurl" in t && s(8, _ = t.clientstylingurl), "livecasino" in t && s(9, G = t.livecasino), "integratedgameframemobile" in t && s(10, O = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, C = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, k = t.translationurl), "casinomygames" in t && s(17, j = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(18, z = t.fetchviaevent);
406
417
  }, a.$$.update = () => {
407
418
  a.$$.dirty[0] & /*endpoint, userid, lang*/
408
- 41 && l && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
409
- 262272 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
- 262400 && _ && u && me(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
411
- 262208 && v && u && le(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
412
- 2097152 && k && V(), a.$$.dirty[0] & /*lang*/
419
+ 41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
420
+ 524416 && w && u && ue(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
421
+ 524544 && _ && u && le(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
422
+ 524352 && v && u && me(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
423
+ 65536 && k && V(), a.$$.dirty[0] & /*lang*/
413
424
  8 && c && Z();
414
425
  }, [
415
- l,
416
426
  m,
427
+ l,
417
428
  g,
418
429
  c,
419
430
  D,
@@ -428,12 +439,12 @@ function Ge(a, e, s) {
428
439
  T,
429
440
  C,
430
441
  U,
442
+ k,
431
443
  j,
432
444
  z,
433
445
  u,
434
446
  I,
435
447
  i,
436
- k,
437
448
  S,
438
449
  E,
439
450
  p
@@ -464,11 +475,11 @@ class ke extends se {
464
475
  showgamename: 13,
465
476
  visiblegames: 14,
466
477
  favorites: 15,
467
- translationurl: 21,
468
- casinomygames: 16,
478
+ translationurl: 16,
479
+ casinomygames: 17,
469
480
  mostplayedperiod: 22,
470
481
  mostplayedrounds: 23,
471
- fetchviaevent: 17
482
+ fetchviaevent: 18
472
483
  },
473
484
  be,
474
485
  [-1, -1]
@@ -571,13 +582,13 @@ class ke extends se {
571
582
  this.$$set({ favorites: e }), r();
572
583
  }
573
584
  get translationurl() {
574
- return this.$$.ctx[21];
585
+ return this.$$.ctx[16];
575
586
  }
576
587
  set translationurl(e) {
577
588
  this.$$set({ translationurl: e }), r();
578
589
  }
579
590
  get casinomygames() {
580
- return this.$$.ctx[16];
591
+ return this.$$.ctx[17];
581
592
  }
582
593
  set casinomygames(e) {
583
594
  this.$$set({ casinomygames: e }), r();
@@ -595,7 +606,7 @@ class ke extends se {
595
606
  this.$$set({ mostplayedrounds: e }), r();
596
607
  }
597
608
  get fetchviaevent() {
598
- return this.$$.ctx[17];
609
+ return this.$$.ctx[18];
599
610
  }
600
611
  set fetchviaevent(e) {
601
612
  this.$$set({ fetchviaevent: e }), r();
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-2ovoa6CH.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[18]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[16]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[6])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&65536&&t.set_custom_element_data(e,"translationurl",a[16]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[21]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&2097152&&a!==(a=l[21]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,u){return r[20]?X:W}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),o.m(a,null),n[24](e)},p(r,u){l===(l=i(r))&&o?o.p(r,u):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,c;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(20,T=!0)})},B=()=>{Q(u)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(19,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(16,G=s.translationurl),"casinomygames"in s&&a(17,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(18,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&u&&p(),n.$$.dirty[0]&524416&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&524544&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&524352&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&65536&&G&&J(),n.$$.dirty[0]&8&&u&&B()},[l,o,r,u,j,h,y,b,v,w,M,E,L,A,N,O,G,P,D,c,T,i,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:16,casinomygames:17,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:18},V,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-BdPWUw5w.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSection-iddRmRf4.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-BsUOw9M8.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-C6fGTzLM.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as n } from "../components/CasinoMostPlayedSection-DVZg9CIF.js";
1
+ import { C as n } from "../components/CasinoMostPlayedSection-DHQjdHXL.js";
2
2
  function o(t) {
3
3
  return function(...s) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-most-played-section",
3
- "version": "1.74.6",
3
+ "version": "1.74.8",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-most-played-section.cjs",
6
6
  "module": "esnext/casino-most-played-section.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-2ovoa6CH.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16]),t.set_custom_element_data(e,"mbsource",n[6])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&1048576&&a!==(a=l[20]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,c){return r[19]?X:W}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),o.m(a,null),n[24](e)},p(r,c){l===(l=i(r))&&o?o.p(r,c):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,u;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},B=()=>{Q(c)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{u=s,a(18,u)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&c&&p(),n.$$.dirty[0]&262272&&b&&u&&t.setClientStyling(u,b),n.$$.dirty[0]&262400&&v&&u&&t.setClientStylingURL(u,v),n.$$.dirty[0]&262208&&y&&u&&t.setStreamStyling(u,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&c&&B()},[l,o,r,c,j,h,y,b,v,w,M,E,L,A,N,O,P,D,u,T,i,G,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},V,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;