@everymatrix/casino-page 1.94.3 → 1.94.5

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 (60) hide show
  1. package/components/{CasinoCalendar-iX5FwPys.cjs → CasinoCalendar-C_xNmRaY.cjs} +1 -1
  2. package/components/{CasinoCalendar-DdiZxohs.js → CasinoCalendar-DoiSP2I7.js} +19 -19
  3. package/components/{CasinoCalendar-BHeQ80tF.js → CasinoCalendar-_CWLjC1Y.js} +19 -19
  4. package/components/{CasinoCalendarDailyDetails-C9xNw0VK.js → CasinoCalendarDailyDetails-B_8f8qzU.js} +45 -45
  5. package/components/{CasinoCalendarDailyDetails-rJ0lw1Bf.js → CasinoCalendarDailyDetails-DNbGCFHk.js} +45 -45
  6. package/components/{CasinoCalendarDailyDetails-B9BrMN4H.cjs → CasinoCalendarDailyDetails-YEjcNmsF.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-12W3CM9z.js → CasinoCalendarDailyItem-CqS8Ln6p.js} +35 -35
  8. package/components/{CasinoCalendarDailyItem--9fOdz4H.js → CasinoCalendarDailyItem-Cvbbh3vk.js} +35 -35
  9. package/components/{CasinoCalendarDailyItem-heQht4N8.cjs → CasinoCalendarDailyItem-Cx0R3UXy.cjs} +1 -1
  10. package/components/{CasinoCollectionsProviders-C9Ous_Ql.js → CasinoCollectionsProviders-BA0B8THH.js} +84 -84
  11. package/components/{CasinoCollectionsProviders-DPvvU3Av.js → CasinoCollectionsProviders-BTgMKpir.js} +81 -81
  12. package/components/{CasinoCollectionsProviders-Dv-fgI1R.cjs → CasinoCollectionsProviders-DCU6_3Wg.cjs} +1 -1
  13. package/components/{CasinoFavoritesSection-BkIAYJSC.js → CasinoFavoritesSection-8MiofleI.js} +23 -23
  14. package/components/{CasinoFavoritesSection-DteeubNI.js → CasinoFavoritesSection-Cmmacvha.js} +28 -28
  15. package/components/{CasinoFavoritesSection-BnlTienl.cjs → CasinoFavoritesSection-qpggR3Qy.cjs} +1 -1
  16. package/components/{CasinoFilter-D1j1LhxK.cjs → CasinoFilter-BswGziub.cjs} +1 -1
  17. package/components/{CasinoFilter-D8MkH-4Q.js → CasinoFilter-COdEoLjO.js} +54 -54
  18. package/components/{CasinoFilter-C55Lrry3.js → CasinoFilter-TtmhdKfx.js} +54 -54
  19. package/components/{CasinoGameThumbnail-DYyzolvn.cjs → CasinoGameThumbnail-DE-NMEuD.cjs} +1 -1
  20. package/components/{CasinoGameThumbnail-DTnruajK.js → CasinoGameThumbnail-N0cDXPXp.js} +43 -43
  21. package/components/{CasinoGameThumbnail-BNEufhwb.js → CasinoGameThumbnail-pwrLIXix.js} +43 -43
  22. package/components/{CasinoGamesCategorySection-B7Ta1_M4.js → CasinoGamesCategorySection-BYHWSV0p.js} +82 -82
  23. package/components/{CasinoGamesCategorySection-DTEqJ_KB.js → CasinoGamesCategorySection-C66IQnHS.js} +82 -82
  24. package/components/{CasinoGamesCategorySection-D940qem2.cjs → CasinoGamesCategorySection-Txs4kY7i.cjs} +2 -2
  25. package/components/{CasinoJackpotBanner-ByWwJ4C5.js → CasinoJackpotBanner-CY7oG81S.js} +102 -102
  26. package/components/{CasinoJackpotBanner-DK4BrTug.js → CasinoJackpotBanner-D425xvs0.js} +134 -134
  27. package/components/{CasinoJackpotBanner-yhREwK_H.cjs → CasinoJackpotBanner-DqudSIOc.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSection-B1vBZ7l9.js → CasinoLastPlayedSection-BqU5YDmM.js} +19 -19
  29. package/components/{CasinoLastPlayedSection-B0JTjuBB.cjs → CasinoLastPlayedSection-C9UO4Qz7.cjs} +1 -1
  30. package/components/{CasinoLastPlayedSection-ExzDPIbt.js → CasinoLastPlayedSection-De8G3raR.js} +23 -23
  31. package/components/{CasinoMostPlayedSection-Bsk9FXm3.js → CasinoMostPlayedSection-CV7AJd8z.js} +18 -18
  32. package/components/{CasinoMostPlayedSection-DQIQnM1X.cjs → CasinoMostPlayedSection-D2Rlw1f1.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSection-Ame3-jcv.js → CasinoMostPlayedSection-W9-m-sR8.js} +31 -31
  34. package/components/{CasinoMyGames-DfamQkx2.js → CasinoMyGames-DFMmpy81.js} +28 -28
  35. package/components/{CasinoMyGames-B-X6yrUU.js → CasinoMyGames-D_KzlM9N.js} +29 -29
  36. package/components/{CasinoMyGames-BWgXDtlO.cjs → CasinoMyGames-XpXtcAlx.cjs} +1 -1
  37. package/components/{CasinoPage-Ce3vvxMH.js → CasinoPage-D4PlCd03.js} +62 -62
  38. package/components/{CasinoPage-CHVt9han.cjs → CasinoPage-eCv6pYb2.cjs} +1 -1
  39. package/components/{CasinoPage-nKYoHhhQ.js → CasinoPage-mjm62-7D.js} +62 -62
  40. package/components/{CasinoRandomGame-QERWgnCn.js → CasinoRandomGame-BdAsD-Ea.js} +32 -32
  41. package/components/{CasinoRandomGame-COJQL0lT.cjs → CasinoRandomGame-D6NekiHl.cjs} +1 -1
  42. package/components/{CasinoRandomGame-DnTWVNlN.js → CasinoRandomGame-DVm9BGzt.js} +31 -31
  43. package/components/{CasinoSearch-BefbNgYb.cjs → CasinoSearch-BWgZwgU4.cjs} +1 -1
  44. package/components/{CasinoSearch-R__GMn2Q.js → CasinoSearch-CBwcnKDo.js} +57 -57
  45. package/components/{CasinoSearch-D3yM26T4.js → CasinoSearch-CO236ngV.js} +55 -55
  46. package/components/{CasinoSort-w_c_Casp.js → CasinoSort-CHqs-Ttt.js} +44 -44
  47. package/components/{CasinoSort-DLTTSyjd.cjs → CasinoSort-Cffcaqi0.cjs} +1 -1
  48. package/components/{CasinoSort-DIeg_AZz.js → CasinoSort-H2zd8iw-.js} +60 -60
  49. package/components/{CasinoWinners-CwSpkdaG.js → CasinoWinners-C5vj7iay.js} +342 -324
  50. package/components/CasinoWinners-DTz1XF6s.cjs +1 -0
  51. package/components/CasinoWinners-D_coj2DG.js +1012 -0
  52. package/components/{GeneralAnimationLoading-CVQbbqfD.js → GeneralAnimationLoading-B4pGZ94-.js} +6 -6
  53. package/components/{GeneralAnimationLoading-Cj3h7Z1Q.js → GeneralAnimationLoading-BkgOGtdu.js} +7 -7
  54. package/components/{GeneralAnimationLoading-CZktzcW8.cjs → GeneralAnimationLoading-oA1BDcyB.cjs} +1 -1
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +1 -1
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/components/CasinoWinners-9D47i5gK.js +0 -994
  60. package/components/CasinoWinners-Dm-upaG0.cjs +0 -1
@@ -14,7 +14,7 @@ var H = (a, e, t) => new Promise((n, l) => {
14
14
  }, p = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r, c);
15
15
  p((t = t.apply(a, e)).next());
16
16
  });
17
- import { $ as E, I as _e, a as Ge, S as Re, i as xe, s as ke, f as v, b as ve, d as x, J as O, K as P, L as Me, c as k, m as h, B as J, e as w, q as C, g as u, h as Fe, j as Ce, M as Le, N as Se, O as Te, P as We, t as je, k as Y, u as L, v as S, Q as Ne, w as K, A as Be, n as Ie, C as Q, R as X, T as ze, U as Pe, D as Je, E as Ae, F as De, G as He, H as Ee } from "./CasinoPage-nKYoHhhQ.js";
17
+ import { b as E, $ as _e, c as Ge, S as Re, w as xe, G as ke, r as v, e as ve, n as x, Y as O, X as P, h as Me, x as k, d as h, z as J, o as w, P as C, f as u, i as Fe, D as Ce, k as Le, _ as Se, t as Te, u as We, s as je, g as q, M as L, U as S, V as Ne, q as X, m as Be, A as ze, T as K, Q, F as Ie, v as Pe, I as Je, J as Ae, K as De, j as He, a as Ee } from "./CasinoPage-mjm62-7D.js";
18
18
  function Oe({ withLocale: a, translations: e }) {
19
19
  E.subscribe((t) => {
20
20
  t == null && (_e.set(e), E.set(a));
@@ -100,14 +100,14 @@ const $ = {
100
100
  noGames: "There are no random games to play"
101
101
  }
102
102
  };
103
- function qe(a) {
103
+ function Ve(a) {
104
104
  ve(a, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
105
105
  }
106
106
  function ee(a, e, t) {
107
107
  const n = a.slice();
108
108
  return n[41] = e[t], n;
109
109
  }
110
- const Ve = (a) => ({}), te = (a) => ({});
110
+ const Ye = (a) => ({}), te = (a) => ({});
111
111
  function ae(a) {
112
112
  let e, t, n, l, r, c, p;
113
113
  const g = (
@@ -119,11 +119,11 @@ function ae(a) {
119
119
  /*$$scope*/
120
120
  a[22],
121
121
  te
122
- ), o = f || Ye();
122
+ ), o = f || qe();
123
123
  function _(s, b) {
124
124
  return (
125
125
  /*hasRandomGames*/
126
- s[7] ? Qe : Ke
126
+ s[7] ? Ke : Xe
127
127
  );
128
128
  }
129
129
  let m = _(a), d = m(a);
@@ -152,7 +152,7 @@ function ae(a) {
152
152
  /*$$scope*/
153
153
  s[22],
154
154
  b,
155
- Ve
155
+ Ye
156
156
  ) : Te(
157
157
  /*$$scope*/
158
158
  s[22]
@@ -171,22 +171,22 @@ function ae(a) {
171
171
  }
172
172
  };
173
173
  }
174
- function Ye(a) {
174
+ function qe(a) {
175
175
  let e, t;
176
176
  return {
177
177
  c() {
178
- e = Q("svg"), t = Q("path"), u(t, "stroke-linecap", "round"), u(t, "stroke-linejoin", "round"), u(t, "stroke-width", "2"), u(t, "d", "M6 18L18 6M6 6l12 12"), u(e, "class", "w-6 h-6"), u(e, "fill", "none"), u(e, "stroke", "currentColor"), u(e, "viewBox", "0 0 24 24"), u(e, "xmlns", "http://www.w3.org/2000/svg");
178
+ e = K("svg"), t = K("path"), u(t, "stroke-linecap", "round"), u(t, "stroke-linejoin", "round"), u(t, "stroke-width", "2"), u(t, "d", "M6 18L18 6M6 6l12 12"), u(e, "class", "w-6 h-6"), u(e, "fill", "none"), u(e, "stroke", "currentColor"), u(e, "viewBox", "0 0 24 24"), u(e, "xmlns", "http://www.w3.org/2000/svg");
179
179
  },
180
180
  m(n, l) {
181
181
  k(n, e, l), h(e, t);
182
182
  },
183
- p: Ie,
183
+ p: ze,
184
184
  d(n) {
185
185
  n && x(e);
186
186
  }
187
187
  };
188
188
  }
189
- function Ke(a) {
189
+ function Xe(a) {
190
190
  let e, t = (
191
191
  /*$_*/
192
192
  a[9]("noGames") + ""
@@ -208,8 +208,8 @@ function Ke(a) {
208
208
  }
209
209
  };
210
210
  }
211
- function Qe(a) {
212
- let e, t, n, l, r = K(
211
+ function Ke(a) {
212
+ let e, t, n, l, r = X(
213
213
  /*gamesToShow*/
214
214
  a[4]
215
215
  ), c = [];
@@ -218,7 +218,7 @@ function Qe(a) {
218
218
  function p(o, _) {
219
219
  return (
220
220
  /*animationDone*/
221
- o[6] ? Ze : Xe
221
+ o[6] ? Ze : Qe
222
222
  );
223
223
  }
224
224
  let g = p(a), f = g(a);
@@ -238,7 +238,7 @@ function Qe(a) {
238
238
  p(o, _) {
239
239
  if (_[0] & /*gamesToShow*/
240
240
  16) {
241
- r = K(
241
+ r = X(
242
242
  /*gamesToShow*/
243
243
  o[4]
244
244
  );
@@ -262,7 +262,7 @@ function ne(a) {
262
262
  let e, t, n, l, r, c;
263
263
  return {
264
264
  c() {
265
- e = w("div"), t = w("img"), c = C(), u(t, "class", "RandomGameImage"), X(t.src, n = /*game*/
265
+ e = w("div"), t = w("img"), c = C(), u(t, "class", "RandomGameImage"), Q(t.src, n = /*game*/
266
266
  a[41].thumbnail) || u(t, "src", n), u(t, "alt", l = /*game*/
267
267
  a[41].name), u(t, "title", r = /*game*/
268
268
  a[41].name), u(e, "class", "item");
@@ -272,7 +272,7 @@ function ne(a) {
272
272
  },
273
273
  p(p, g) {
274
274
  g[0] & /*gamesToShow*/
275
- 16 && !X(t.src, n = /*game*/
275
+ 16 && !Q(t.src, n = /*game*/
276
276
  p[41].thumbnail) && u(t, "src", n), g[0] & /*gamesToShow*/
277
277
  16 && l !== (l = /*game*/
278
278
  p[41].name) && u(t, "alt", l), g[0] & /*gamesToShow*/
@@ -284,7 +284,7 @@ function ne(a) {
284
284
  }
285
285
  };
286
286
  }
287
- function Xe(a) {
287
+ function Qe(a) {
288
288
  let e, t = (
289
289
  /*$_*/
290
290
  a[9]("randomGameLoading") + ""
@@ -348,7 +348,7 @@ function Ze(a) {
348
348
  R[9]("playNowRandomGame") + "") && L(s, d);
349
349
  },
350
350
  d(R) {
351
- R && (x(e), x(t), x(n)), b = !1, ze(T);
351
+ R && (x(e), x(t), x(n)), b = !1, Ie(T);
352
352
  }
353
353
  };
354
354
  }
@@ -451,7 +451,7 @@ function tt(a) {
451
451
  function at(a, e, t) {
452
452
  let n;
453
453
  Fe(a, Ee, (i) => t(9, n = i));
454
- let { $$slots: l = {}, $$scope: r } = e, { endpoint: c = "" } = e, { datasource: p = "" } = e, { gameevent: g = "" } = e, { lang: f = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: s = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: T } = e, R = [], G = "", W, N = !1, A = !1, I = !1, oe = window.navigator.userAgent, M, j, U, z, le, q = null;
454
+ let { $$slots: l = {}, $$scope: r } = e, { endpoint: c = "" } = e, { datasource: p = "" } = e, { gameevent: g = "" } = e, { lang: f = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: s = "" } = e, { filteredrandomgamecategories: b = "" } = e, { mbsource: T } = e, R = [], G = "", W, N = !1, A = !1, z = !1, oe = window.navigator.userAgent, M, j, U, I, le, V = null;
455
455
  Oe({ withLocale: "en", translations: {} });
456
456
  const ie = () => {
457
457
  fetch(m).then((y) => y.json()).then((y) => {
@@ -468,18 +468,18 @@ function at(a, e, t) {
468
468
  const re = () => {
469
469
  let i = new URL(`${c}/v1/casino/games`);
470
470
  i.searchParams.append("platform", je(oe)), i.searchParams.append("datasource", p), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && i.searchParams.append("filter", `groups=${b}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
471
- R = y.items, R.length ? (t(4, W = se(R.slice(0, 19))), t(7, I = !0)) : (t(4, W = []), t(7, I = !1));
471
+ R = y.items, R.length ? (t(4, W = se(R.slice(0, 19))), t(7, z = !0)) : (t(4, W = []), t(7, z = !1));
472
472
  }).catch((y) => {
473
- console.log(y), t(7, I = !1);
473
+ console.log(y), t(7, z = !1);
474
474
  });
475
475
  }, se = (i) => {
476
476
  const y = ce(i);
477
477
  return y.concat(y);
478
478
  }, me = () => H(this, null, function* () {
479
- yield Ne(), z = Math.floor(Math.random() * (W.length / 2)) + W.length / 2, t(3, G = W[z]), U = j.children[z];
479
+ yield Ne(), I = Math.floor(Math.random() * (W.length / 2)) + W.length / 2, t(3, G = W[I]), U = j.children[I];
480
480
  }), D = () => H(this, null, function* () {
481
481
  t(6, A = !1), t(5, N = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield me();
482
- const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, B = (U.offsetHeight + y) * z, be = [
482
+ const i = window.getComputedStyle(j).getPropertyValue("gap"), y = parseInt(i, 10) || 0, B = (U.offsetHeight + y) * I, be = [
483
483
  { transform: "translateX(0px)" },
484
484
  { filter: "blur(5px)" },
485
485
  {
@@ -490,7 +490,7 @@ function at(a, e, t) {
490
490
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
491
491
  fill: "forwards"
492
492
  };
493
- q = j.animate(be, we), q.onfinish = () => {
493
+ V = j.animate(be, we), V.onfinish = () => {
494
494
  t(6, A = !0);
495
495
  };
496
496
  }), ce = (i) => {
@@ -499,7 +499,7 @@ function at(a, e, t) {
499
499
  for (; F != 0; )
500
500
  B = Math.floor(Math.random() * F), F--, [y[F], y[B]] = [y[B], y[F]];
501
501
  return y;
502
- }, V = () => {
502
+ }, Y = () => {
503
503
  window.postMessage(
504
504
  {
505
505
  type: g,
@@ -518,13 +518,13 @@ function at(a, e, t) {
518
518
  Ce(() => () => {
519
519
  });
520
520
  function ge(i) {
521
- Y[i ? "unshift" : "push"](() => {
521
+ q[i ? "unshift" : "push"](() => {
522
522
  j = i, t(8, j);
523
523
  });
524
524
  }
525
- const fe = () => D(), pe = () => V(), he = () => D();
525
+ const fe = () => D(), pe = () => Y(), he = () => D();
526
526
  function ye(i) {
527
- Y[i ? "unshift" : "push"](() => {
527
+ q[i ? "unshift" : "push"](() => {
528
528
  M = i, t(2, M);
529
529
  });
530
530
  }
@@ -546,11 +546,11 @@ function at(a, e, t) {
546
546
  W,
547
547
  N,
548
548
  A,
549
- I,
549
+ z,
550
550
  j,
551
551
  n,
552
552
  D,
553
- V,
553
+ Y,
554
554
  de,
555
555
  c,
556
556
  p,
@@ -591,7 +591,7 @@ class nt extends Re {
591
591
  filteredrandomgamecategories: 20,
592
592
  mbsource: 21
593
593
  },
594
- qe,
594
+ Ve,
595
595
  [-1, -1]
596
596
  );
597
597
  }
@@ -1 +1 @@
1
- "use strict";var $=(a,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(h){o(h)}},l=u=>{try{c(n.throw(u))}catch(h){o(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-CHVt9han.cjs");require("./CasinoGamesCategorySection-D940qem2.cjs");function ee(a,t){e.addMessages(a,t)}function Ie(a){e.$locale.set(a)}const te={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return W(2,arguments),P(a).getTime()-P(t).getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function ze(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ee(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ne(a,t,n){const r=a.slice();return r[55]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ne(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[14].length<2)return Me;if(d[13].length!=0)return xe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[16]===!1?u?u.p(d,f):(u=ie(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?h?h.p(d,f):(h=ue(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Pe(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function xe(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Me(a){let t,n,r=a[13].length!==0&&oe(a),o=a[13].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[13].length!==0?r?r.p(i,l):(r=oe(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].length==0?o?o.p(i,l):(o=se(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function oe(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function se(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[13]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ce(ne(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35138047){n=e.ensure_array_like(o[13]);let l;for(l=0;l<n.length;l+=1){const c=ne(o,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ce(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",o=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[55].advancedTags)==null?void 0:m.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&8192&&n!==(n=m[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=m[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&o!==(o=m[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&8192&&i!==(i=m[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=m[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((T=m[55].advancedTags)==null?void 0:T.length)>0&&m[25](m[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=m[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=m[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&8192&&d!==(d=m[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=m[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=m[55].details?m[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ue(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&de();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=de(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function de(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Be(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,D,x,z,N,b=a[9]==="true"&&re(a);function F(_,R){return _[18]?Pe:Ne}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),x=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ae),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[14]),a[35](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,x),v.m(t,null),a[38](t),z||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],z=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,R):(b=re(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&512&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),v.d(),a[38](null),z=!1,e.run_all(N)}}}let Ae=50;function Oe(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:x="false"}=t,{mbsource:z}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,O,q,J=[],he;const fe=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(s=>{ee(s,te[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ve(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,O=s.data.session),n(20,q=s.data.userid),n(33,A=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,R=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(13,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${o}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(N)),w.push(_e(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(E){return!!E}),n(13,b=C.map(E=>(E.isFavorite=X(E.id),E))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(C=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&&gtag("event",s,{context:p})},ge=()=>{D!="true"&&H()},pe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),_e=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),Se=()=>{const s=new URL(`${o}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":O}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},be=()=>{n(33,A=!0),n(19,O=l),n(20,q=c)},X=s=>J.findIndex(p=>p==s)!==-1,we=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((C,E)=>{const je=new Date(C.schedules[0].startTime),U=new Date(C.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),y=E),Ge(new Date(k),new Date(je))&&ze(new Date(k),new Date(U))&&(p=s[y].name)}),p},ve=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(14,v=""),n(16,R=!0),n(18,L=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ye=()=>{Ie(u)},ke=De(()=>$(this,null,function*(){if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),pe(s).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else R||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function Re(){v=this.value,n(14,v)}function Ce(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(15,_)})}const Fe=()=>K(),Le=()=>H();function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{I=s,n(12,I)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(29,i=s.datasource),"session"in s&&n(30,l=s.session),"userid"in s&&n(31,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(32,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,D=s.cancelbutton),"notfoundicon"in s&&n(10,x=s.notfoundicon),"mbsource"in s&&n(11,z=s.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&T&&fe(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&be(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&A&&Se(),a.$$.dirty[0]&4100&&h&&I&&e.setClientStyling(I,h),a.$$.dirty[0]&4104&&d&&I&&e.setClientStylingURL(I,d),a.$$.dirty[0]&6144&&I&&e.setStreamStyling(I,`${z}.Style`,he)},[o,u,h,d,f,S,m,g,j,D,x,z,I,b,v,_,R,M,L,O,q,r,N,Y,ge,we,H,K,ke,i,l,c,T,A,Re,Ce,Fe,Le,Te]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Be,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ee,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;
1
+ "use strict";var $=(a,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(h){o(h)}},l=u=>{try{c(n.throw(u))}catch(h){o(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-eCv6pYb2.cjs");require("./CasinoGamesCategorySection-Txs4kY7i.cjs");function ee(a,t){e.addMessages(a,t)}function Ie(a){e.$locale.set(a)}const te={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return W(2,arguments),P(a).getTime()-P(t).getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function ze(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ee(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ne(a,t,n){const r=a.slice();return r[55]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ne(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[14].length<2)return Me;if(d[13].length!=0)return xe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[16]===!1?u?u.p(d,f):(u=ie(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?h?h.p(d,f):(h=ue(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Pe(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function xe(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Me(a){let t,n,r=a[13].length!==0&&oe(a),o=a[13].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[13].length!==0?r?r.p(i,l):(r=oe(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].length==0?o?o.p(i,l):(o=se(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function oe(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function se(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[13]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ce(ne(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35138047){n=e.ensure_array_like(o[13]);let l;for(l=0;l<n.length;l+=1){const c=ne(o,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ce(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",o=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[55].advancedTags)==null?void 0:m.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&8192&&n!==(n=m[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=m[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&o!==(o=m[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&8192&&i!==(i=m[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=m[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((T=m[55].advancedTags)==null?void 0:T.length)>0&&m[25](m[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=m[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=m[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&8192&&d!==(d=m[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=m[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=m[55].details?m[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ue(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&de();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=de(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function de(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Be(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,D,x,z,N,b=a[9]==="true"&&re(a);function F(_,R){return _[18]?Pe:Ne}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),x=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ae),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[14]),a[35](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,x),v.m(t,null),a[38](t),z||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],z=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,R):(b=re(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&512&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),v.d(),a[38](null),z=!1,e.run_all(N)}}}let Ae=50;function Oe(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:x="false"}=t,{mbsource:z}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,O,q,J=[],he;const fe=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(s=>{ee(s,te[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ve(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,O=s.data.session),n(20,q=s.data.userid),n(33,A=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,R=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(13,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${o}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(N)),w.push(_e(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(E){return!!E}),n(13,b=C.map(E=>(E.isFavorite=X(E.id),E))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(C=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&&gtag("event",s,{context:p})},ge=()=>{D!="true"&&H()},pe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),_e=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),Se=()=>{const s=new URL(`${o}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":O}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},be=()=>{n(33,A=!0),n(19,O=l),n(20,q=c)},X=s=>J.findIndex(p=>p==s)!==-1,we=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((C,E)=>{const je=new Date(C.schedules[0].startTime),U=new Date(C.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),y=E),Ge(new Date(k),new Date(je))&&ze(new Date(k),new Date(U))&&(p=s[y].name)}),p},ve=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(14,v=""),n(16,R=!0),n(18,L=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ye=()=>{Ie(u)},ke=De(()=>$(this,null,function*(){if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),pe(s).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else R||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function Re(){v=this.value,n(14,v)}function Ce(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(15,_)})}const Fe=()=>K(),Le=()=>H();function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{I=s,n(12,I)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(29,i=s.datasource),"session"in s&&n(30,l=s.session),"userid"in s&&n(31,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(32,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,D=s.cancelbutton),"notfoundicon"in s&&n(10,x=s.notfoundicon),"mbsource"in s&&n(11,z=s.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&T&&fe(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&be(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&A&&Se(),a.$$.dirty[0]&4100&&h&&I&&e.setClientStyling(I,h),a.$$.dirty[0]&4104&&d&&I&&e.setClientStylingURL(I,d),a.$$.dirty[0]&6144&&I&&e.setStreamStyling(I,`${z}.Style`,he)},[o,u,h,d,f,S,m,g,j,D,x,z,I,b,v,_,R,M,L,O,q,r,N,Y,ge,we,H,K,ke,i,l,c,T,A,Re,Ce,Fe,Le,Te]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Be,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ee,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;