@everymatrix/casino-search 1.60.1 → 1.60.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/components/{CasinoGameThumbnail-mPVvfhEl.js → CasinoGameThumbnail-B2VFheQ-.js} +2107 -2129
  2. package/components/CasinoGameThumbnail-CJmt807-.cjs +64 -0
  3. package/components/{CasinoGameThumbnail-CcK9uZoi.js → CasinoGameThumbnail-DknLXIn_.js} +2130 -2152
  4. package/components/{CasinoSearch-Dqo4NtMn.js → CasinoSearch-BupKwyBw.js} +48 -48
  5. package/components/{CasinoSearch-Bl-_REM9.cjs → CasinoSearch-FefZ-CEN.cjs} +1 -1
  6. package/components/{CasinoSearch-DgZ6w71h.js → CasinoSearch-J58csOio.js} +50 -50
  7. package/es2015/casino-search.cjs +1 -1
  8. package/es2015/casino-search.js +1 -1
  9. package/esnext/casino-search.js +1 -1
  10. package/package.json +1 -1
  11. package/stencil/index-b2193545-BJzf08Qh.js +519 -0
  12. package/stencil/index-b2193545-BcwULm-K.cjs +1 -0
  13. package/stencil/index-b2193545-BlEoeZZL.js +503 -0
  14. package/stencil/{ui-skeleton-BtNRiNfn.cjs → ui-skeleton-B_ESS51i.cjs} +1 -1
  15. package/stencil/{ui-skeleton-DypM319u.js → ui-skeleton-C8koemPS.js} +2 -2
  16. package/stencil/{ui-skeleton-BCx6m_uC.js → ui-skeleton-Cb-Iz3dC.js} +2 -2
  17. package/stencil/{ui-skeleton-ea659b95-Dc45mVmr.cjs → ui-skeleton-ea659b95-8xls9UKV.cjs} +1 -1
  18. package/stencil/{ui-skeleton-ea659b95-Bo7WD0ao.js → ui-skeleton-ea659b95-BbvMCw6x.js} +1 -1
  19. package/stencil/{ui-skeleton-ea659b95-DyTVU8Ak.js → ui-skeleton-ea659b95-CGzZMsW7.js} +1 -1
  20. package/components/CasinoGameThumbnail-Clolxh6r.cjs +0 -64
  21. package/stencil/index-b2193545-BLGDaRxR.js +0 -519
  22. package/stencil/index-b2193545-CgYO4hhs.cjs +0 -1
  23. package/stencil/index-b2193545-dQymAF3M.js +0 -503
@@ -1,4 +1,4 @@
1
- import { a as Ae, $ as He, c as Oe, S as qe, i as We, s as Ue, f as L, b as Ve, e as C, d as N, g as ie, h as f, j as te, k as T, l as _, m as ce, n as Z, o as ue, p as j, r as Je, q as Ze, t as Ye, u as Xe, v as Ke, w as O, x as q, y as $, z as he, A as Qe, B as $e, C as de, D as Ce, E as et, F as u, G as tt } from "./CasinoGameThumbnail-mPVvfhEl.js";
1
+ import { a as Ae, $ as He, c as Oe, S as qe, i as We, s as Ue, f as L, b as Ve, n as ie, d as T, r as Je, e as f, g as ce, h as j, j as _, l as Z, k as C, m as N, o as ue, p as te, q as Ze, t as Ye, u as Xe, v as O, w as q, x as $, y as he, z as de, A as Ke, B as Ce, C as u, D as Qe, E as $e, F as et, G as tt } from "./CasinoGameThumbnail-B2VFheQ-.js";
2
2
  function me(a, e) {
3
3
  Ae(a, e);
4
4
  }
@@ -200,7 +200,7 @@ if (typeof window < "u") {
200
200
  }
201
201
  };
202
202
  };
203
- customElements.define = a(customElements.define), import("./CasinoGameThumbnail-mPVvfhEl.js").then((e) => e.H).then(({ default: e }) => {
203
+ customElements.define = a(customElements.define), import("./CasinoGameThumbnail-B2VFheQ-.js").then((e) => e.H).then(({ default: e }) => {
204
204
  !customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
205
205
  });
206
206
  }
@@ -218,11 +218,11 @@ function pe(a) {
218
218
  ), n, r, l, s;
219
219
  return {
220
220
  c() {
221
- e = C("small"), n = O(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
221
+ e = C("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
222
222
  (a[13] ? "NotVisible" : ""));
223
223
  },
224
224
  m(i, c) {
225
- T(i, e, c), _(e, n), l || (s = Z(
225
+ j(i, e, c), _(e, n), l || (s = Z(
226
226
  e,
227
227
  "click",
228
228
  /*click_handler_1*/
@@ -232,12 +232,12 @@ function pe(a) {
232
232
  p(i, c) {
233
233
  c[0] & /*$_*/
234
234
  2097152 && t !== (t = /*$_*/
235
- i[21]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
235
+ i[21]("cancel") + "") && O(n, t), c[0] & /*searchCancelled*/
236
236
  8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
237
237
  (i[13] ? "NotVisible" : "")) && f(e, "class", r);
238
238
  },
239
239
  d(i) {
240
- i && j(e), l = !1, s();
240
+ i && T(e), l = !1, s();
241
241
  }
242
242
  };
243
243
  }
@@ -270,7 +270,7 @@ function rt(a) {
270
270
  (a[17] == !0 ? "" : "NotVisible"));
271
271
  },
272
272
  m(h, g) {
273
- i && i.m(h, g), T(h, e, g), T(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
273
+ i && i.m(h, g), j(h, e, g), j(h, t, g), c && c.m(t, null), _(t, n), m && m.m(t, null);
274
274
  },
275
275
  p(h, g) {
276
276
  s === (s = l(h)) && i ? i.p(h, g) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
@@ -281,7 +281,7 @@ function rt(a) {
281
281
  (h[17] == !0 ? "" : "NotVisible")) && f(t, "class", r);
282
282
  },
283
283
  d(h) {
284
- h && (j(e), j(t)), i && i.d(h), c && c.d(), m && m.d();
284
+ h && (T(e), T(t)), i && i.d(h), c && c.d(), m && m.d();
285
285
  }
286
286
  };
287
287
  }
@@ -292,18 +292,18 @@ function ot(a) {
292
292
  ), n;
293
293
  return {
294
294
  c() {
295
- e = C("p"), n = O(t), f(e, "class", "LoadingContent");
295
+ e = C("p"), n = q(t), f(e, "class", "LoadingContent");
296
296
  },
297
297
  m(r, l) {
298
- T(r, e, l), _(e, n);
298
+ j(r, e, l), _(e, n);
299
299
  },
300
300
  p(r, l) {
301
301
  l[0] & /*$_*/
302
302
  2097152 && t !== (t = /*$_*/
303
- r[21]("loading") + "") && q(n, t);
303
+ r[21]("loading") + "") && O(n, t);
304
304
  },
305
305
  d(r) {
306
- r && j(e);
306
+ r && T(e);
307
307
  }
308
308
  };
309
309
  }
@@ -314,18 +314,18 @@ function st(a) {
314
314
  ), n;
315
315
  return {
316
316
  c() {
317
- e = C("p"), n = O(t), f(e, "class", "SearchMessage");
317
+ e = C("p"), n = q(t), f(e, "class", "SearchMessage");
318
318
  },
319
319
  m(r, l) {
320
- T(r, e, l), _(e, n);
320
+ j(r, e, l), _(e, n);
321
321
  },
322
322
  p(r, l) {
323
323
  l[0] & /*$_*/
324
324
  2097152 && t !== (t = /*$_*/
325
- r[21]("searchResult") + "") && q(n, t);
325
+ r[21]("searchResult") + "") && O(n, t);
326
326
  },
327
327
  d(r) {
328
- r && j(e);
328
+ r && T(e);
329
329
  }
330
330
  };
331
331
  }
@@ -342,7 +342,7 @@ function lt(a) {
342
342
  n && n.c(), e = N(), r && r.c(), t = Ce();
343
343
  },
344
344
  m(l, s) {
345
- n && n.m(l, s), T(l, e, s), r && r.m(l, s), T(l, t, s);
345
+ n && n.m(l, s), j(l, e, s), r && r.m(l, s), j(l, t, s);
346
346
  },
347
347
  p(l, s) {
348
348
  /*searchArray*/
@@ -350,7 +350,7 @@ function lt(a) {
350
350
  l[15].length == 0 ? r ? r.p(l, s) : (r = _e(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
351
351
  },
352
352
  d(l) {
353
- l && (j(e), j(t)), n && n.d(l), r && r.d(l);
353
+ l && (T(e), T(t)), n && n.d(l), r && r.d(l);
354
354
  }
355
355
  };
356
356
  }
@@ -361,18 +361,18 @@ function Se(a) {
361
361
  ), n;
362
362
  return {
363
363
  c() {
364
- e = C("p"), n = O(t), f(e, "class", "SearchMessage");
364
+ e = C("p"), n = q(t), f(e, "class", "SearchMessage");
365
365
  },
366
366
  m(r, l) {
367
- T(r, e, l), _(e, n);
367
+ j(r, e, l), _(e, n);
368
368
  },
369
369
  p(r, l) {
370
370
  l[0] & /*$_*/
371
371
  2097152 && t !== (t = /*$_*/
372
- r[21]("recentSearch") + "") && q(n, t);
372
+ r[21]("recentSearch") + "") && O(n, t);
373
373
  },
374
374
  d(r) {
375
- r && j(e);
375
+ r && T(e);
376
376
  }
377
377
  };
378
378
  }
@@ -386,22 +386,22 @@ function _e(a) {
386
386
  );
387
387
  return {
388
388
  c() {
389
- e = C("div"), i && i.c(), t = N(), n = C("p"), l = O(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
389
+ e = C("div"), i && i.c(), t = N(), n = C("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
390
390
  (a[10] == "true" ? "WithIcon" : ""));
391
391
  },
392
392
  m(c, m) {
393
- T(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
393
+ j(c, e, m), i && i.m(e, null), _(e, t), _(e, n), _(n, l);
394
394
  },
395
395
  p(c, m) {
396
396
  /*notfoundicon*/
397
397
  c[10] === "true" ? i || (i = be(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
398
398
  2097152 && r !== (r = /*$_*/
399
- c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
399
+ c[21]("noRecentSearches") + "") && O(l, r), m[0] & /*notfoundicon*/
400
400
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
401
401
  (c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
402
402
  },
403
403
  d(c) {
404
- c && j(e), i && i.d();
404
+ c && T(e), i && i.d();
405
405
  }
406
406
  };
407
407
  }
@@ -412,10 +412,10 @@ function be(a) {
412
412
  e = C("div"), e.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>', f(e, "class", "SearchErrorIcon");
413
413
  },
414
414
  m(t, n) {
415
- T(t, e, n);
415
+ j(t, e, n);
416
416
  },
417
417
  d(t) {
418
- t && j(e);
418
+ t && T(e);
419
419
  }
420
420
  };
421
421
  }
@@ -435,7 +435,7 @@ function we(a) {
435
435
  m(r, l) {
436
436
  for (let s = 0; s < n.length; s += 1)
437
437
  n[s] && n[s].m(r, l);
438
- T(r, e, l);
438
+ j(r, e, l);
439
439
  },
440
440
  p(r, l) {
441
441
  if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
@@ -455,7 +455,7 @@ function we(a) {
455
455
  }
456
456
  },
457
457
  d(r) {
458
- r && j(e), et(n, r);
458
+ r && T(e), Ke(n, r);
459
459
  }
460
460
  };
461
461
  }
@@ -544,7 +544,7 @@ function ve(a) {
544
544
  );
545
545
  },
546
546
  m(d, p) {
547
- T(d, e, p);
547
+ j(d, e, p);
548
548
  },
549
549
  p(d, p) {
550
550
  p[0] & /*endpoint*/
@@ -651,7 +651,7 @@ function ve(a) {
651
651
  );
652
652
  },
653
653
  d(d) {
654
- d && j(e);
654
+ d && T(e);
655
655
  }
656
656
  };
657
657
  }
@@ -668,24 +668,24 @@ function ye(a) {
668
668
  );
669
669
  return {
670
670
  c() {
671
- e = C("div"), g && g.c(), t = N(), n = C("p"), l = O(r), s = N(), i = C("p"), m = O(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
671
+ e = C("div"), g && g.c(), t = N(), n = C("p"), l = q(r), s = N(), i = C("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
672
672
  (a[10] == "true" ? "WithIcon" : ""));
673
673
  },
674
674
  m(w, d) {
675
- T(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
675
+ j(w, e, d), g && g.m(e, null), _(e, t), _(e, n), _(n, l), _(e, s), _(e, i), _(i, m);
676
676
  },
677
677
  p(w, d) {
678
678
  /*notfoundicon*/
679
679
  w[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
680
680
  2097152 && r !== (r = /*$_*/
681
- w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
681
+ w[21]("notFound") + "") && O(l, r), d[0] & /*$_*/
682
682
  2097152 && c !== (c = /*$_*/
683
- w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
683
+ w[21]("notFoundText") + "") && O(m, c), d[0] & /*notfoundicon*/
684
684
  1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
685
685
  (w[10] == "true" ? "WithIcon" : "")) && f(e, "class", h);
686
686
  },
687
687
  d(w) {
688
- w && j(e), g && g.d();
688
+ w && T(e), g && g.d();
689
689
  }
690
690
  };
691
691
  }
@@ -696,10 +696,10 @@ function ke(a) {
696
696
  e = C("div"), e.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>', f(e, "class", "SearchErrorIcon");
697
697
  },
698
698
  m(t, n) {
699
- T(t, e, n);
699
+ j(t, e, n);
700
700
  },
701
701
  d(t) {
702
- t && j(e);
702
+ t && T(e);
703
703
  }
704
704
  };
705
705
  }
@@ -717,7 +717,7 @@ function it(a) {
717
717
  let M = G(a), k = M(a);
718
718
  return {
719
719
  c() {
720
- e = C("div"), t = C("div"), n = C("div"), r = C("div"), r.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>', l = N(), s = C("input"), c = N(), m = C("span"), h = ie("svg"), g = ie("path"), d = N(), v && v.c(), B = N(), x = C("div"), U = N(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
720
+ e = C("div"), t = C("div"), n = C("div"), r = C("div"), r.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>', l = N(), s = C("input"), c = N(), m = C("span"), h = ue("svg"), g = ue("path"), d = N(), v && v.c(), B = N(), x = C("div"), U = N(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
721
721
  a[21]("placeHolderSearchGames")), f(s, "maxlength", ct), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
722
722
  (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
723
723
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
@@ -728,7 +728,7 @@ function it(a) {
728
728
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
729
729
  },
730
730
  m(b, E) {
731
- T(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
731
+ j(b, e, E), _(e, t), _(t, n), _(n, r), _(n, l), _(n, s), ce(
732
732
  s,
733
733
  /*searchValue*/
734
734
  a[12]
@@ -778,17 +778,17 @@ function it(a) {
778
778
  512 && D !== (D = /*cancelbutton*/
779
779
  b[9] != "true" ? "OverlayCancel" : "") && f(x, "class", D), M === (M = G(b)) && k ? k.p(b, E) : (k.d(1), k = M(b), k && (k.c(), k.m(e, null)));
780
780
  },
781
- i: ue,
782
- o: ue,
781
+ i: ie,
782
+ o: ie,
783
783
  d(b) {
784
- b && j(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
784
+ b && T(e), a[34](null), v && v.d(), k.d(), a[37](null), A = !1, Je(W);
785
785
  }
786
786
  };
787
787
  }
788
788
  let ct = 50;
789
789
  function ut(a, e, t) {
790
790
  let n;
791
- Ze(a, tt, (o) => t(21, n = o));
791
+ Ze(a, Qe, (o) => t(21, n = o));
792
792
  let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", b, E = !0, V = !1, I = !1, P, Y = !1, X, K, ae = [];
793
793
  const Re = () => {
794
794
  fetch(B).then((S) => S.json()).then((S) => {
@@ -917,9 +917,9 @@ function ut(a, e, t) {
917
917
  1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
918
918
  256 | a.$$.dirty[1] & /*isLoggedIn*/
919
919
  2 && x && Y && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
920
- 16388 && m && P && Qe(P, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
- 16392 && h && P && Ke(P, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
922
- 18432 && P && $e(P, `${A}.Style`);
920
+ 16388 && m && P && $e(P, m), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
921
+ 16392 && h && P && et(P, h), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
922
+ 18432 && P && tt(P, `${A}.Style`);
923
923
  }, [
924
924
  r,
925
925
  c,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-Clolxh6r.cjs");function X(n,t){e.addMessages(n,t)}function ke(n){e.$locale.set(n)}const K={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."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-Clolxh6r.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ce(n){e.append_styles(n,"svelte-8vixmz","*,*::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:30px 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;margin-bottom:20px;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:30px 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 Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Re(n){let t,a,r,s;function i(h,f){if(h[17]==!0&&h[12].length<2)return Te;if(h[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),d=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),d&&d.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,r),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[13]===!1?u?u.p(h,f):(u=ne(h),u.c(),u.m(a,r)):u&&(u.d(1),u=null),h[12].length>=2&&h[15].length==0?d?d.p(h,f):(d=se(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[10]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,d){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),d[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35162623){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,d,h,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=n[53].advancedTags)==null?void 0:m.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",d=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",h=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"mbsource",n[11]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[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]&32768&&a!==(a=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&d!==(d=m[53].id)&&e.set_custom_element_data(t,"gameid",d),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&h!==(h=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",h),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].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 se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[10]==="true"&&oe();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(S,m){S[10]==="true"?f||(f=oe(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),m[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(d,u),m[0]&1024&&h!==(h="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(S){S&&e.detach(t),f&&f.d()}}}function oe(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,d,h,f,S,m,g,T,E,G,P,I,N,b=n[9]==="true"&&$(n);function F(_,C){return _[18]?Fe:Re}let z=F(n),v=z(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.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(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),E=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",je),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(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",G=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,d),e.append(d,h),e.append(h,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),v.m(t,null),n[37](t),I||(N=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(d,"click",n[35]),e.listen(E,"click",n[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(d,"class",S),_[9]==="true"?b?b.p(_,C):(b=$(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",G),z===(z=F(_))&&v?v.p(_,C):(v.d(1),v=z(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),I=!1,e.run_all(N)}}}let je=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],z={},v="",_,C=!0,D=!1,L=!1,j,B=!1,A,O,W=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(K).forEach(o=>{X(o,K[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,A=o.data.session),a(20,O=o.data.userid),a(32,B=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,C=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${s}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(he(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(x){return!!x}),a(15,b=R.map(x=>(x.isFavorite=J(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(R=>{M("searchError","SearchWidget")})}}Y(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ce=()=>{G!="true"&&q()},ue=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(z).indexOf(p)>=0?(a(18,L=!1),w(z[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(z[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${O}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),W=w.items.map(y=>y.id)})},de=()=>{a(32,B=!0),a(19,A=l),a(20,O=c)},J=o=>W.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((R,x)=>{const ye=new Date(R.schedules[0].startTime),H=new Date(R.schedules[0].endTime);e.hooks(H).diff(k)<w&&(w=e.hooks(H).diff(k),y=x),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(H)&&(p=o[y].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,C=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),Y(D)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ke(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Z(),we=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"clientstyling"in o&&a(2,d=o.clientstyling),"clientstylingurl"in o&&a(3,h=o.clientstylingurl),"integratedgameframedesktop"in o&&a(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(5,S=o.integratedgameframemobile),"showgamename"in o&&a(6,m=o.showgamename),"gamepagemodalurl"in o&&a(7,g=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(8,E=o.showfavorites),"cancelbutton"in o&&a(9,G=o.cancelbutton),"notfoundicon"in o&&a(10,P=o.notfoundicon),"mbsource"in o&&a(11,I=o.mbsource)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{e.dispatchCustomEvent("game_search",{searchValue:v}),a(15,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else C||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&de(),n.$$.dirty[0]&256|n.$$.dirty[1]&2&&E&&B&&me(),n.$$.dirty[0]&16388&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16392&&h&&j&&e.setClientStylingURL(j,h),n.$$.dirty[0]&18432&&j&&e.setStreamStyling(j,`${I}.Style`)},[s,u,d,h,f,S,m,g,E,G,P,I,v,C,j,b,_,D,L,A,O,r,N,V,ce,fe,q,Z,i,l,c,T,B,_e,Se,be,we,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}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[31]}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(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-CJmt807-.cjs");function X(n,t){e.addMessages(n,t)}function ke(n){e.$locale.set(n)}const K={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."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-CJmt807-.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}function Ce(n){e.append_styles(n,"svelte-8vixmz","*,*::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:30px 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;margin-bottom:20px;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:30px 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 Q(n,t,a){const r=n.slice();return r[53]=t[a],r}function $(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Re(n){let t,a,r,s;function i(h,f){if(h[17]==!0&&h[12].length<2)return Te;if(h[15].length!=0)return Le}let l=i(n),c=l&&l(n),u=n[13]===!1&&ne(n),d=n[12].length>=2&&n[15].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),d&&d.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,r),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[13]===!1?u?u.p(h,f):(u=ne(h),u.c(),u.m(a,r)):u&&(u.d(1),u=null),h[12].length>=2&&h[15].length==0?d?d.p(h,f):(d=se(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Fe(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Le(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a,r=n[15].length!==0&&ee(n),s=n[15].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=te(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function ee(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function te(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[10]==="true"&&ae();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,d){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),d[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ae(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ne(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=re(Q(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35162623){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=Q(s,a,l);r[l]?r[l].p(c,i):(r[l]=re(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function re(n){let t,a,r,s,i,l,c,u,d,h,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=n[53].advancedTags)==null?void 0:m.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",d=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",h=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"mbsource",n[11]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[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]&32768&&a!==(a=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&d!==(d=m[53].id)&&e.set_custom_element_data(t,"gameid",d),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&h!==(h=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",h),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].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 se(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[10]==="true"&&oe();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(S,m){S[10]==="true"?f||(f=oe(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),m[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(d,u),m[0]&1024&&h!==(h="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(S){S&&e.detach(t),f&&f.d()}}}function oe(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ee(n){let t,a,r,s,i,l,c,u,d,h,f,S,m,g,T,E,G,P,I,N,b=n[9]==="true"&&$(n);function F(_,C){return _[18]?Fe:Re}let z=F(n),v=z(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.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(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),E=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",je),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(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",S="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",G=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,d),e.append(d,h),e.append(h,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),v.m(t,null),n[37](t),I||(N=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(d,"click",n[35]),e.listen(E,"click",n[24])],I=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(d,"class",S),_[9]==="true"?b?b.p(_,C):(b=$(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",G),z===(z=F(_))&&v?v.p(_,C):(v.d(1),v=z(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),I=!1,e.run_all(N)}}}let je=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],z={},v="",_,C=!0,D=!1,L=!1,j,B=!1,A,O,W=[];const ie=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(K).forEach(o=>{X(o,K[o])});const U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&ge(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,A=o.data.session),a(20,O=o.data.userid),a(32,B=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(13,C=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${s}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(he(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(x){return!!x}),a(15,b=R.map(x=>(x.isFavorite=J(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(R=>{M("searchError","SearchWidget")})}}Y(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ce=()=>{G!="true"&&q()},ue=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(z).indexOf(p)>=0?(a(18,L=!1),w(z[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(z[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${O}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),W=w.items.map(y=>y.id)})},de=()=>{a(32,B=!0),a(19,A=l),a(20,O=c)},J=o=>W.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((R,x)=>{const ye=new Date(R.schedules[0].startTime),H=new Date(R.schedules[0].endTime);e.hooks(H).diff(k)<w&&(w=e.hooks(H).diff(k),y=x),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(H)&&(p=o[y].name)}),p},ge=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},q=()=>{a(12,v=""),a(13,C=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),Y(D)},Z=()=>{a(12,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},pe=()=>{ke(u)};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function _e(){v=this.value,a(12,v)}function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Z(),we=()=>q();function ve(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"clientstyling"in o&&a(2,d=o.clientstyling),"clientstylingurl"in o&&a(3,h=o.clientstylingurl),"integratedgameframedesktop"in o&&a(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(5,S=o.integratedgameframemobile),"showgamename"in o&&a(6,m=o.showgamename),"gamepagemodalurl"in o&&a(7,g=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(8,E=o.showfavorites),"cancelbutton"in o&&a(9,G=o.cancelbutton),"notfoundicon"in o&&a(10,P=o.notfoundicon),"mbsource"in o&&a(11,I=o.mbsource)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),ue(o).then(p=>{e.dispatchCustomEvent("game_search",{searchValue:v}),a(15,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else C||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[1]&1&&T&&ie(),n.$$.dirty[0]&1610612736&&l&&c&&de(),n.$$.dirty[0]&256|n.$$.dirty[1]&2&&E&&B&&me(),n.$$.dirty[0]&16388&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16392&&h&&j&&e.setClientStylingURL(j,h),n.$$.dirty[0]&18432&&j&&e.setStreamStyling(j,`${I}.Style`)},[s,u,d,h,f,S,m,g,E,G,P,I,v,C,j,b,_,D,L,A,O,r,N,V,ce,fe,q,Z,i,l,c,T,B,_e,Se,be,we,ve]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,Ee,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}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[31]}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(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=le;