@everymatrix/casino-lobby 1.45.7 → 1.45.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/components/CasinoFavoritesSection-C1L8btLZ.cjs +1 -0
  2. package/components/{CasinoFavoritesSection-DE0M_xZ_.js → CasinoFavoritesSection-DXA1LxNS.js} +164 -143
  3. package/components/CasinoGamePage-dtHt6eVI.cjs +18 -0
  4. package/components/{CasinoGamePage-r1xLmvzf.js → CasinoGamePage-pX8ZaPH7.js} +1244 -1243
  5. package/components/CasinoGameThumbnail-BIZ2bYiA.cjs +38 -0
  6. package/components/{CasinoGameThumbnail-wQFR0AuM.js → CasinoGameThumbnail-vl8BFKGy.js} +22 -22
  7. package/components/{CasinoGamesCategorySection-Cbto2aD4.js → CasinoGamesCategorySection-BVuBq37W.js} +2 -2
  8. package/components/{CasinoGamesCategorySection-BGgw1sdg.cjs → CasinoGamesCategorySection-lfgbyRCE.cjs} +1 -1
  9. package/components/{CasinoLastPlayedSection-Dm6f8H02.cjs → CasinoLastPlayedSection-Cd1fkJDF.cjs} +1 -1
  10. package/components/{CasinoLastPlayedSection-CAirOYgJ.js → CasinoLastPlayedSection-D0veERbd.js} +1 -1
  11. package/components/{CasinoLobby-Cq0Hm2md.js → CasinoLobby-DDt-NtJF.js} +2 -2
  12. package/components/{CasinoLobby-CvaYUpUV.cjs → CasinoLobby-DHVftT8-.cjs} +1 -1
  13. package/components/{CasinoMostPlayedSection-k3_ln2SB.js → CasinoMostPlayedSection-C-SAU6LW.js} +1 -1
  14. package/components/{CasinoMostPlayedSection-DTXKjmPl.cjs → CasinoMostPlayedSection-DutNjDdG.cjs} +1 -1
  15. package/components/{CasinoMyGames-DcJpzIEq.js → CasinoMyGames-BbRDc_bP.js} +3 -3
  16. package/components/{CasinoMyGames-CVTzyBkk.cjs → CasinoMyGames-LHQVj-3-.cjs} +1 -1
  17. package/components/{CasinoPage-srXwB6ik.cjs → CasinoPage-BzgnNI9h.cjs} +1 -1
  18. package/components/{CasinoPage-BbRpHGEc.js → CasinoPage-CUaXYuLQ.js} +3 -3
  19. package/components/{CasinoSearch-BsgUvsbs.js → CasinoSearch-D6r7dc2P.js} +48 -48
  20. package/components/CasinoSearch-ZIyZdqSX.cjs +1 -0
  21. package/es2015/casino-lobby.cjs +1 -1
  22. package/es2015/casino-lobby.js +1 -1
  23. package/package.json +5 -5
  24. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +0 -1
  25. package/components/CasinoGamePage-C4x_GUg3.cjs +0 -18
  26. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +0 -38
  27. package/components/CasinoSearch-CMn_5Aa4.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { I as He, $ as qe, S as We, i as Oe, f as T, c as Ue, s as Ve, b as Je, e as y, q as N, E as le, u as g, L as ee, d as j, v as S, U as ie, w as J, C as ce, j as I, R as Ze, J as Ye, o as Ke, r as q, A as W, m as ue, p as he, F as ye, B as Xe, M as d, O as Qe } from "./CasinoCalendar-3HRZGpnG.js";
2
- import "./CasinoGamesCategorySection-Cbto2aD4.js";
3
- import { h as Q } from "./CasinoGamePage-r1xLmvzf.js";
1
+ import { I as He, $ as Oe, S as qe, i as We, f as T, c as Ue, s as Ve, b as Je, e as y, q as N, E as le, u as g, L as ee, d as j, v as S, U as ie, w as J, C as ce, j as I, R as Ze, J as Ye, o as Ke, r as O, A as q, m as ue, p as he, F as ye, B as Xe, M as d, O as Qe } from "./CasinoCalendar-3HRZGpnG.js";
2
+ import "./CasinoGamesCategorySection-BVuBq37W.js";
3
+ import { h as Q } from "./CasinoGamePage-pX8ZaPH7.js";
4
4
  function de(a, e) {
5
5
  He(a, e);
6
6
  }
7
7
  function $e(a) {
8
- qe.set(a);
8
+ Oe.set(a);
9
9
  }
10
10
  const fe = {
11
11
  en: {
@@ -79,10 +79,10 @@ const fe = {
79
79
  recentSearch: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
80
80
  loading: "Kayıt olmak",
81
81
  searchResult: "PARA YATIR",
82
- cancel: "Sırala:",
83
- notFound: "Hepsi",
84
- notFoundText: "A-Z",
85
- noRecentSearches: "En Yeni",
82
+ cancel: "İptal",
83
+ notFound: "Oyun bulunamadı!",
84
+ notFoundText: "Oynamaya başlamak için lütfen oyunun doğru adını yazın.",
85
+ noRecentSearches: "Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",
86
86
  placeHolderSearchGames: "Oyun ara ..."
87
87
  },
88
88
  ru: {
@@ -194,7 +194,7 @@ function ge(a) {
194
194
  ), n, o, l, s;
195
195
  return {
196
196
  c() {
197
- e = y("small"), n = q(t), g(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
197
+ e = y("small"), n = O(t), g(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
198
198
  (a[12] ? "NotVisible" : ""));
199
199
  },
200
200
  m(i, c) {
@@ -208,7 +208,7 @@ function ge(a) {
208
208
  p(i, c) {
209
209
  c[0] & /*$_*/
210
210
  1048576 && t !== (t = /*$_*/
211
- i[20]("cancel") + "") && W(n, t), c[0] & /*searchCancelled*/
211
+ i[20]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
212
212
  4096 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
213
213
  (i[12] ? "NotVisible" : "")) && g(e, "class", o);
214
214
  },
@@ -266,7 +266,7 @@ function at(a) {
266
266
  ), n;
267
267
  return {
268
268
  c() {
269
- e = y("p"), n = q(t), g(e, "class", "LoadingContent");
269
+ e = y("p"), n = O(t), g(e, "class", "LoadingContent");
270
270
  },
271
271
  m(o, l) {
272
272
  j(o, e, l), S(e, n);
@@ -274,7 +274,7 @@ function at(a) {
274
274
  p(o, l) {
275
275
  l[0] & /*$_*/
276
276
  1048576 && t !== (t = /*$_*/
277
- o[20]("loading") + "") && W(n, t);
277
+ o[20]("loading") + "") && q(n, t);
278
278
  },
279
279
  d(o) {
280
280
  o && I(e);
@@ -288,7 +288,7 @@ function nt(a) {
288
288
  ), n;
289
289
  return {
290
290
  c() {
291
- e = y("p"), n = q(t), g(e, "class", "SearchMessage");
291
+ e = y("p"), n = O(t), g(e, "class", "SearchMessage");
292
292
  },
293
293
  m(o, l) {
294
294
  j(o, e, l), S(e, n);
@@ -296,7 +296,7 @@ function nt(a) {
296
296
  p(o, l) {
297
297
  l[0] & /*$_*/
298
298
  1048576 && t !== (t = /*$_*/
299
- o[20]("searchResult") + "") && W(n, t);
299
+ o[20]("searchResult") + "") && q(n, t);
300
300
  },
301
301
  d(o) {
302
302
  o && I(e);
@@ -335,7 +335,7 @@ function pe(a) {
335
335
  ), n;
336
336
  return {
337
337
  c() {
338
- e = y("p"), n = q(t), g(e, "class", "SearchMessage");
338
+ e = y("p"), n = O(t), g(e, "class", "SearchMessage");
339
339
  },
340
340
  m(o, l) {
341
341
  j(o, e, l), S(e, n);
@@ -343,7 +343,7 @@ function pe(a) {
343
343
  p(o, l) {
344
344
  l[0] & /*$_*/
345
345
  1048576 && t !== (t = /*$_*/
346
- o[20]("recentSearch") + "") && W(n, t);
346
+ o[20]("recentSearch") + "") && q(n, t);
347
347
  },
348
348
  d(o) {
349
349
  o && I(e);
@@ -360,7 +360,7 @@ function _e(a) {
360
360
  );
361
361
  return {
362
362
  c() {
363
- e = y("div"), i && i.c(), t = N(), n = y("p"), l = q(o), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
363
+ e = y("div"), i && i.c(), t = N(), n = y("p"), l = O(o), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
364
364
  (a[10] == "true" ? "WithIcon" : ""));
365
365
  },
366
366
  m(c, f) {
@@ -370,7 +370,7 @@ function _e(a) {
370
370
  /*notfoundicon*/
371
371
  c[10] === "true" ? i || (i = Se(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), f[0] & /*$_*/
372
372
  1048576 && o !== (o = /*$_*/
373
- c[20]("noRecentSearches") + "") && W(l, o), f[0] & /*notfoundicon*/
373
+ c[20]("noRecentSearches") + "") && q(l, o), f[0] & /*notfoundicon*/
374
374
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
375
375
  (c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
376
376
  },
@@ -633,7 +633,7 @@ function ve(a) {
633
633
  );
634
634
  return {
635
635
  c() {
636
- e = y("div"), m && m.c(), t = N(), n = y("p"), l = q(o), s = N(), i = y("p"), f = q(c), g(n, "class", "SearchMessage"), g(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
636
+ e = y("div"), m && m.c(), t = N(), n = y("p"), l = O(o), s = N(), i = y("p"), f = O(c), g(n, "class", "SearchMessage"), g(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
637
637
  (a[10] == "true" ? "WithIcon" : ""));
638
638
  },
639
639
  m(k, h) {
@@ -643,9 +643,9 @@ function ve(a) {
643
643
  /*notfoundicon*/
644
644
  k[10] === "true" ? m || (m = ke(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), h[0] & /*$_*/
645
645
  1048576 && o !== (o = /*$_*/
646
- k[20]("notFound") + "") && W(l, o), h[0] & /*$_*/
646
+ k[20]("notFound") + "") && q(l, o), h[0] & /*$_*/
647
647
  1048576 && c !== (c = /*$_*/
648
- k[20]("notFoundText") + "") && W(f, c), h[0] & /*notfoundicon*/
648
+ k[20]("notFoundText") + "") && q(f, c), h[0] & /*notfoundicon*/
649
649
  1024 && u !== (u = "ResultsContainerError " + /*notfoundicon*/
650
650
  (k[10] == "true" ? "WithIcon" : "")) && g(e, "class", u);
651
651
  },
@@ -673,13 +673,13 @@ function ot(a) {
673
673
  /*cancelbutton*/
674
674
  a[9] === "true" && ge(a)
675
675
  );
676
- function O(b, L) {
676
+ function W(b, L) {
677
677
  return (
678
678
  /*isLoading*/
679
679
  b[17] ? at : tt
680
680
  );
681
681
  }
682
- let E = O(a), F = E(a);
682
+ let z = W(a), F = z(a);
683
683
  return {
684
684
  c() {
685
685
  e = y("div"), t = y("div"), n = y("div"), o = y("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>', l = N(), s = y("input"), c = N(), f = y("span"), u = le("svg"), m = le("path"), h = N(), v && v.c(), P = N(), x = y("div"), U = N(), F.c(), g(o, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
@@ -741,7 +741,7 @@ function ot(a) {
741
741
  4096 && _ !== (_ = "Search " + /*searchCancelled*/
742
742
  (b[12] ? "" : "SearchAnimation")) && g(n, "class", _), L[0] & /*cancelbutton*/
743
743
  512 && A !== (A = /*cancelbutton*/
744
- b[9] != "true" ? "OverlayCancel" : "") && g(x, "class", A), E === (E = O(b)) && F ? F.p(b, L) : (F.d(1), F = E(b), F && (F.c(), F.m(e, null)));
744
+ b[9] != "true" ? "OverlayCancel" : "") && g(x, "class", A), z === (z = W(b)) && F ? F.p(b, L) : (F.d(1), F = z(b), F && (F.c(), F.m(e, null)));
745
745
  },
746
746
  i: ce,
747
747
  o: ce,
@@ -754,7 +754,7 @@ let st = 50;
754
754
  function lt(a, e, t) {
755
755
  let n;
756
756
  Ye(a, Qe, (r) => t(20, n = r));
757
- let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: f = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: m = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: A = "true" } = e, { notfoundicon: U = "false" } = e, B = window.navigator.userAgent, M = [], v = [], O = {}, E = "", F, b = !0, L = !1, G = !1, D, Z = !1, Y, K, te = [];
757
+ let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: f = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: m = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: A = "true" } = e, { notfoundicon: U = "false" } = e, B = window.navigator.userAgent, M = [], v = [], W = {}, z = "", F, b = !0, L = !1, G = !1, D, Z = !1, Y, K, te = [];
758
758
  const Re = () => {
759
759
  fetch(P).then((p) => p.json()).then((p) => {
760
760
  Object.keys(p).forEach((w) => {
@@ -768,23 +768,23 @@ function lt(a, e, t) {
768
768
  de(r, fe[r]);
769
769
  });
770
770
  const ae = (r) => {
771
- r.data && r.data.type == "SearchedItemClicked" && Ee(r.data.gameId), r.data.type == "UserSessionID" && (t(18, Y = r.data.session), t(19, K = r.data.userid), t(31, Z = !0)), r.data.type == "CategoryChange" && X();
771
+ r.data && r.data.type == "SearchedItemClicked" && ze(r.data.gameId), r.data.type == "UserSessionID" && (t(18, Y = r.data.session), t(19, K = r.data.userid), t(31, Z = !0)), r.data.type == "CategoryChange" && X();
772
772
  }, ne = () => {
773
- if (t(12, b = !1), t(16, L = !0), o && l && c && E.length < 2) {
773
+ if (t(12, b = !1), t(16, L = !0), o && l && c && z.length < 2) {
774
774
  t(14, M = []);
775
775
  let r = localStorage.getItem("searchedGamesWds_casino"), p = [];
776
776
  r && (p = r.split(","));
777
777
  let w = [], R = 0, C = p.length;
778
778
  if (C > 0) {
779
779
  for (R = 0; R < C; R++) {
780
- let z = new URL(`${o}/v1/casino/games/${p[R]}`);
781
- z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", ee(B)), w.push(Fe(z, p[R]));
780
+ let E = new URL(`${o}/v1/casino/games/${p[R]}`);
781
+ E.searchParams.append("language", c), E.searchParams.append("datasource", l), E.searchParams.append("platform", ee(B)), w.push(Fe(E, p[R]));
782
782
  }
783
- Promise.all(w).then((z) => {
784
- z = z.filter(function(H) {
783
+ Promise.all(w).then((E) => {
784
+ E = E.filter(function(H) {
785
785
  return !!H;
786
- }), t(14, M = z.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
787
- }).catch((z) => {
786
+ }), t(14, M = E.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
787
+ }).catch((E) => {
788
788
  V("searchError", "SearchWidget");
789
789
  });
790
790
  }
@@ -801,8 +801,8 @@ function lt(a, e, t) {
801
801
  t(17, G = !1), console.error(R), w(R);
802
802
  });
803
803
  }), Fe = (r, p) => new Promise((w, R) => {
804
- t(17, G = !0), p && Object.keys(O).indexOf(p) >= 0 ? (t(17, G = !1), w(O[p])) : fetch(r).then((C) => C.json()).then((C) => {
805
- t(17, G = !1), C.error || (O[C[0].gameId] = C[0]), w(C[0]);
804
+ t(17, G = !0), p && Object.keys(W).indexOf(p) >= 0 ? (t(17, G = !1), w(W[p])) : fetch(r).then((C) => C.json()).then((C) => {
805
+ t(17, G = !1), C.error || (W[C[0].gameId] = C[0]), w(C[0]);
806
806
  }).catch((C) => {
807
807
  t(17, G = !1), console.error(C), R(C);
808
808
  });
@@ -822,19 +822,19 @@ function lt(a, e, t) {
822
822
  if ((r == null ? void 0 : r.length) === 0) return "";
823
823
  let p, w = 99999999999, R;
824
824
  const C = new Date(Date.now());
825
- return r.forEach((z, H) => {
826
- const De = new Date(z.schedules[0].startTime), $ = new Date(z.schedules[0].endTime);
825
+ return r.forEach((E, H) => {
826
+ const De = new Date(E.schedules[0].startTime), $ = new Date(E.schedules[0].endTime);
827
827
  Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(De) && Q(C).isBefore($) && (p = r[R].name);
828
828
  }), p;
829
- }, Ee = (r) => {
829
+ }, ze = (r) => {
830
830
  if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(r) === -1) {
831
831
  let p;
832
832
  v.unshift(r), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
833
833
  }
834
834
  }, X = () => {
835
- t(11, E = ""), t(12, b = !0), t(17, G = !1), t(14, M = []), t(16, L = !1), se(L);
835
+ t(11, z = ""), t(12, b = !0), t(17, G = !1), t(14, M = []), t(16, L = !1), se(L);
836
836
  }, oe = () => {
837
- t(11, E = ""), F.focus();
837
+ t(11, z = ""), F.focus();
838
838
  }, se = (r) => {
839
839
  window.postMessage(
840
840
  {
@@ -843,7 +843,7 @@ function lt(a, e, t) {
843
843
  },
844
844
  window.location.href
845
845
  );
846
- }, ze = () => {
846
+ }, Ee = () => {
847
847
  $e(c);
848
848
  }, Ge = () => {
849
849
  let r = document.createElement("style");
@@ -863,7 +863,7 @@ function lt(a, e, t) {
863
863
  window.removeEventListener("message", ae);
864
864
  }));
865
865
  function Pe() {
866
- E = this.value, t(11, E);
866
+ z = this.value, t(11, z);
867
867
  }
868
868
  function xe(r) {
869
869
  ue[r ? "unshift" : "push"](() => {
@@ -881,15 +881,15 @@ function lt(a, e, t) {
881
881
  }, a.$$.update = () => {
882
882
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
883
883
  134223875)
884
- if (E.length >= 2) {
884
+ if (z.length >= 2) {
885
885
  const r = new URL(`${o}/v1/casino/games`);
886
- r.searchParams.append("datasource", l), r.searchParams.append("expand", "vendor"), r.searchParams.append("platform", ee(B)), r.searchParams.append("language", c), r.searchParams.append("pagination", "offset=0,limit=30"), r.searchParams.append("filter", `name=${E}`), Le(r).then((p) => {
886
+ r.searchParams.append("datasource", l), r.searchParams.append("expand", "vendor"), r.searchParams.append("platform", ee(B)), r.searchParams.append("language", c), r.searchParams.append("pagination", "offset=0,limit=30"), r.searchParams.append("filter", `name=${z}`), Le(r).then((p) => {
887
887
  t(14, M = p.items.map((w) => (w.isFavorite = re(w.id), w)));
888
888
  });
889
889
  } else
890
890
  b || ne();
891
891
  a.$$.dirty[0] & /*lang*/
892
- 2 && c && ze(), a.$$.dirty[0] & /*translationurl*/
892
+ 2 && c && Ee(), a.$$.dirty[0] & /*translationurl*/
893
893
  1073741824 && P && Re(), a.$$.dirty[0] & /*session, userid*/
894
894
  805306368 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
895
895
  256 | a.$$.dirty[1] & /*isLoggedIn*/
@@ -908,7 +908,7 @@ function lt(a, e, t) {
908
908
  x,
909
909
  A,
910
910
  U,
911
- E,
911
+ z,
912
912
  b,
913
913
  D,
914
914
  M,
@@ -936,9 +936,9 @@ function lt(a, e, t) {
936
936
  Be
937
937
  ];
938
938
  }
939
- class it extends We {
939
+ class it extends qe {
940
940
  constructor(e) {
941
- super(), Oe(
941
+ super(), We(
942
942
  this,
943
943
  e,
944
944
  lt,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");require("./CasinoGamesCategorySection-lfgbyRCE.cjs");const q=require("./CasinoGamePage-dtHt6eVI.cjs");function K(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const X={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:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",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."}};function Le(n){e.append_styles(n,"svelte-1xktr1m","*,*::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(--emfe-w-casino-typography, var(--emfe-w-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(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:var(--emfe-w-color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-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(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-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(--emfe-w-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(--emfe-w-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[20]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",o="SearchCancelButton "+(n[12]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[35]),i=!0)},p(c,u){u[0]&1048576&&a!==(a=c[20]("cancel")+"")&&e.set_data(r,a),u[0]&4096&&o!==(o="SearchCancelButton "+(c[12]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,o;function i(d,f){if(d[16]==!0&&d[11].length<2)return Ie;if(d[14].length!=0)return je}let l=i(n),c=l&&l(n),u=n[12]===!1&&ne(n),m=n[11].length>=2&&n[14].length==0&&se(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",o="SearchResultsContainer "+(n[16]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,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[12]===!1?u?u.p(d,f):(u=ne(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[11].length>=2&&d[14].length==0?m?m.p(d,f):(m=se(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[0]&65536&&o!==(o="SearchResultsContainer "+(d[16]==!0?"":"NotVisible"))&&e.attr(a,"class",o)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),m&&m.d()}}}function Te(n){let t,a=n[20]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("loading")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function je(n){let t,a=n[20]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("searchResult")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function Ie(n){let t,a,r=n[14].length!==0&&ee(n),o=n[14].length==0&&te(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,a,l)},p(i,l){i[14].length!==0?r?r.p(i,l):(r=ee(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[14].length==0?o?o.p(i,l):(o=te(i),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),o&&o.d(i)}}}function ee(n){let t,a=n[20]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("recentSearch")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function te(n){let t,a,r,o=n[20]("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(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[10]==="true"?c||(c=ae(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&1048576&&o!==(o=u[20]("noRecentSearches")+"")&&e.set_data(i,o),m[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(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-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(--emfe-w-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(--emfe-w-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[14]),r=[];for(let o=0;o<a.length;o+=1)r[o]=re(Q(n,a,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]&17580543){a=e.ensure_array_like(o[14]);let l;for(l=0;l<a.length;l+=1){const c=Q(o,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(o){o&&e.detach(t),e.destroy_each(r,o)}}}function re(n){let t,a,r,o,i,l,c,u,m,d,f,w;return{c(){var h;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[18]),e.set_custom_element_data(t,"userid",n[19]),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",o=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=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[24](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",w=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),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(h,p){e.insert(h,t,p)},p(h,p){var T;p[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),p[0]&262144&&e.set_custom_element_data(t,"session",h[18]),p[0]&524288&&e.set_custom_element_data(t,"userid",h[19]),p[0]&256&&e.set_custom_element_data(t,"favorites",h[8]),p[0]&2&&e.set_custom_element_data(t,"lang",h[1]),p[0]&16384&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&16384&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),p[0]&16384&&o!==(o=h[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),p[0]&16384&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),p[0]&16384&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),p[0]&16384&&c!==(c=((T=h[53].advancedTags)==null?void 0:T.length)>0&&h[24](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),p[0]&16384&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),p[0]&16384&&m!==(m=h[53].id)&&e.set_custom_element_data(t,"gameid",m),p[0]&64&&e.set_custom_element_data(t,"showgamename",h[6]),p[0]&16384&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),p[0]&16384&&f!==(f=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),p[0]&16384&&w!==(w=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",w),p[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",h[4]),p[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",h[5]),p[0]&4&&e.set_custom_element_data(t,"clientstyling",h[2]),p[0]&8&&e.set_custom_element_data(t,"clientstylingurl",h[3]),p[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",h[7])},d(h){h&&e.detach(t)}}}function se(n){let t,a,r,o=n[20]("notFound")+"",i,l,c,u=n[20]("notFoundText")+"",m,d,f=n[10]==="true"&&oe();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(w,h){e.insert(w,t,h),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,m)},p(w,h){w[10]==="true"?f||(f=oe(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),h[0]&1048576&&o!==(o=w[20]("notFound")+"")&&e.set_data(i,o),h[0]&1048576&&u!==(u=w[20]("notFoundText")+"")&&e.set_data(m,u),h[0]&1024&&d!==(d="ResultsContainerError "+(w[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(w){w&&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(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-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(--emfe-w-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(--emfe-w-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 ze(n){let t,a,r,o,i,l,c,u,m,d,f,w,h,p,T,j,z,P,E,I,b=n[9]==="true"&&$(n);function N(S,y){return S[17]?Te:Fe}let R=N(n),C=R(n);return{c(){t=e.element("div"),a=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(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),C.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[20]("placeHolderSearchGames")),e.attr(l,"maxlength",Ee),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(m,"class",w="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[11].length!=0?"":"NotVisible")),e.attr(r,"class",p="Search "+(n[12]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(j,"class",z=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[21])!=="PC"?"":"Desktop")+" CasinoSearch")},m(S,y){e.insert(S,t,y),e.append(t,a),e.append(a,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,n[11]),n[33](l),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),C.m(t,null),n[36](t),E||(I=[e.listen(l,"input",n[32]),e.listen(l,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(j,"click",n[23])],E=!0)},p(S,y){y[0]&1048576&&c!==(c=S[20]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),y[0]&2048&&l.value!==S[11]&&e.set_input_value(l,S[11]),y[0]&2560&&w!==(w="SearchClearButton "+(S[9]!="true"?"WithoutCancel":"")+" "+(S[11].length!=0?"":"NotVisible"))&&e.attr(m,"class",w),S[9]==="true"?b?b.p(S,y):(b=$(S),b.c(),b.m(r,null)):b&&(b.d(1),b=null),y[0]&4096&&p!==(p="Search "+(S[12]?"":"SearchAnimation"))&&e.attr(r,"class",p),y[0]&512&&z!==(z=S[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",z),R===(R=N(S))&&C?C.p(S,y):(C.d(1),C=R(S),C&&(C.c(),C.m(t,null)))},i:e.noop,o:e.noop,d(S){S&&e.detach(t),n[33](null),b&&b.d(),C.d(),n[36](null),E=!1,e.run_all(I)}}}let Ee=50;function Ge(n,t,a){let r;e.component_subscribe(n,e.$format,s=>a(20,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:w="false"}=t,{showgamename:h=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:z="true"}=t,{notfoundicon:P="false"}=t,E=window.navigator.userAgent,I=[],b=[],N={},R="",C,S=!0,y=!1,F=!1,G,D=!1,A,B,W=[];const ie=()=>{fetch(T).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{K(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(X).forEach(s=>{K(s,X[s])});const U=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ge(s.data.gameId),s.data.type=="UserSessionID"&&(a(18,A=s.data.session),a(19,B=s.data.userid),a(31,D=!0)),s.data.type=="CategoryChange"&&H()},V=()=>{if(a(12,S=!1),a(16,y=!0),o&&i&&u&&R.length<2){a(14,I=[]);let s=localStorage.getItem("searchedGamesWds_casino"),g=[];s&&(g=s.split(","));let _=[],v=0,k=g.length;if(k>0){for(v=0;v<k;v++){let L=new URL(`${o}/v1/casino/games/${g[v]}`);L.searchParams.append("language",u),L.searchParams.append("datasource",i),L.searchParams.append("platform",e.getDevice(E)),_.push(de(L,g[v]))}Promise.all(_).then(L=>{L=L.filter(function(x){return!!x}),a(14,I=L.map(x=>(x.isFavorite=J(x.id),x))),I.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(L=>{M("searchError","SearchWidget")})}}Y(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,g)=>{typeof gtag=="function"&&gtag("event",s,{context:g})},ce=()=>{z!="true"&&H()},ue=s=>new Promise((g,_)=>{a(17,F=!0),fetch(s.href).then(v=>v.json()).then(v=>{a(17,F=!1),g(v)}).catch(v=>{a(17,F=!1),console.error(v),_(v)})}),de=(s,g)=>new Promise((_,v)=>{a(17,F=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,F=!1),_(N[g])):fetch(s).then(k=>k.json()).then(k=>{a(17,F=!1),k.error||(N[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,F=!1),console.error(k),v(k)})}),he=()=>{const s=new URL(`${o}/v1/player/${B}/favorites/`);a(17,F=!0);let g={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,F=!1),W=_.items.map(v=>v.id)})},me=()=>{a(31,D=!0),a(18,A=l),a(19,B=c)},J=s=>W.findIndex(g=>g==s)!==-1,fe=s=>{if((s==null?void 0:s.length)===0)return"";let g,_=99999999999,v;const k=new Date(Date.now());return s.forEach((L,x)=>{const Ce=new Date(L.schedules[0].startTime),O=new Date(L.schedules[0].endTime);q.hooks(O).diff(k)<_&&(_=q.hooks(O).diff(k),v=x),q.hooks(k).isAfter(Ce)&&q.hooks(k).isBefore(O)&&(g=s[v].name)}),g},ge=s=>{if(b=localStorage.getItem("searchedGamesWds_casino"),b?b=b.split(","):b=[],b.indexOf(s)===-1){let g;b.unshift(s),g=b.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},H=()=>{a(11,R=""),a(12,S=!0),a(17,F=!1),a(14,I=[]),a(16,y=!1),Y(y)},Z=()=>{a(11,R=""),C.focus()},Y=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},pe=()=>{Re(u)},_e=()=>{let s=document.createElement("style");s.innerHTML=m,G.appendChild(s)},Se=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{G.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function be(){R=this.value,a(11,R)}function we(s){e.binding_callbacks[s?"unshift":"push"](()=>{C=s,a(15,C)})}const ve=()=>Z(),ke=()=>H();function ye(s){e.binding_callbacks[s?"unshift":"push"](()=>{G=s,a(13,G)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(27,i=s.datasource),"session"in s&&a(28,l=s.session),"userid"in s&&a(29,c=s.userid),"lang"in s&&a(1,u=s.lang),"clientstyling"in s&&a(2,m=s.clientstyling),"clientstylingurl"in s&&a(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&a(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&a(5,w=s.integratedgameframemobile),"showgamename"in s&&a(6,h=s.showgamename),"gamepagemodalurl"in s&&a(7,p=s.gamepagemodalurl),"translationurl"in s&&a(30,T=s.translationurl),"showfavorites"in s&&a(8,j=s.showfavorites),"cancelbutton"in s&&a(9,z=s.cancelbutton),"notfoundicon"in s&&a(10,P=s.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&134223875)if(R.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(E)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${R}`),ue(s).then(g=>{a(14,I=g.items.map(_=>(_.isFavorite=J(_.id),_)))})}else S||V();n.$$.dirty[0]&2&&u&&pe(),n.$$.dirty[0]&1073741824&&T&&ie(),n.$$.dirty[0]&805306368&&l&&c&&me(),n.$$.dirty[0]&256|n.$$.dirty[1]&1&&j&&D&&he(),n.$$.dirty[0]&8196&&m&&G&&_e(),n.$$.dirty[0]&8200&&d&&G&&Se()},[o,u,m,d,f,w,h,p,j,z,P,R,S,G,I,C,y,F,A,B,r,E,V,ce,fe,H,Z,i,l,c,T,D,be,we,ve,ke,ye]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ge,ze,e.safe_not_equal,{endpoint:0,datasource:27,session:28,userid:29,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:30,showfavorites:8,cancelbutton:9,notfoundicon:10},Le,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[27]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}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[30]}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()}}e.create_custom_element(le,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=le;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-CvaYUpUV.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLobby-DHVftT8-.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoLobby-Cq0Hm2md.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoLobby-DDt-NtJF.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-lobby",
3
- "version": "1.45.7",
3
+ "version": "1.45.8",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-lobby.cjs",
6
6
  "module": "es2015/casino-lobby.js",
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@everymatrix/casino-categories-slider": "1.45.7",
23
- "@everymatrix/casino-page": "1.45.7",
24
- "@everymatrix/casino-modal": "1.45.7",
25
- "@everymatrix/casino-game-page": "1.45.7"
22
+ "@everymatrix/casino-categories-slider": "1.45.8",
23
+ "@everymatrix/casino-page": "1.45.8",
24
+ "@everymatrix/casino-modal": "1.45.8",
25
+ "@everymatrix/casino-game-page": "1.45.8"
26
26
  }
27
27
  }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");if(typeof window!="undefined"){let a=function(t){return function(...s){try{return t.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-BGgw1sdg.cjs")).then(({default:t})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",t.element)})}function M({withLocale:a,translations:t}){e.$locale.subscribe(s=>{s==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function q(a){e.append_styles(a,"svelte-tcik44",".CasinoFavoritesSectionContainer{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}")}function O(a){let t,s;return{c(){t=e.element("div"),s=e.element("casino-games-category-section"),e.set_custom_element_data(s,"session",a[4]),e.set_custom_element_data(s,"userid",a[5]),e.set_custom_element_data(s,"endpoint",a[0]),e.set_custom_element_data(s,"datasource",a[1]),e.set_custom_element_data(s,"lang",a[3]),e.set_custom_element_data(s,"currency",a[2]),e.set_custom_element_data(s,"favorites",a[14]),e.set_custom_element_data(s,"fetchviaevent",a[16]),e.set_custom_element_data(s,"categoryid","FAVORITES"),e.set_custom_element_data(s,"class","CategoryContainer"),e.set_custom_element_data(s,"showgamename",a[11]),e.set_custom_element_data(s,"clientstyling",a[6]),e.set_custom_element_data(s,"clientstylingurl",a[7]),e.set_custom_element_data(s,"livecasino",a[8]),e.set_custom_element_data(s,"visiblegames",a[13]),e.set_custom_element_data(s,"gamepagemodalurl",a[12]),e.set_custom_element_data(s,"integratedgameframedesktop",a[10]),e.set_custom_element_data(s,"integratedgameframemobile",a[9]),e.set_custom_element_data(s,"casinomygames",a[15]),e.attr(t,"class","CasinoFavoritesSectionContainer")},m(i,m){e.insert(i,t,m),e.append(t,s),a[18](t)},p(i,[m]){m&16&&e.set_custom_element_data(s,"session",i[4]),m&32&&e.set_custom_element_data(s,"userid",i[5]),m&1&&e.set_custom_element_data(s,"endpoint",i[0]),m&2&&e.set_custom_element_data(s,"datasource",i[1]),m&8&&e.set_custom_element_data(s,"lang",i[3]),m&4&&e.set_custom_element_data(s,"currency",i[2]),m&16384&&e.set_custom_element_data(s,"favorites",i[14]),m&65536&&e.set_custom_element_data(s,"fetchviaevent",i[16]),m&2048&&e.set_custom_element_data(s,"showgamename",i[11]),m&64&&e.set_custom_element_data(s,"clientstyling",i[6]),m&128&&e.set_custom_element_data(s,"clientstylingurl",i[7]),m&256&&e.set_custom_element_data(s,"livecasino",i[8]),m&8192&&e.set_custom_element_data(s,"visiblegames",i[13]),m&4096&&e.set_custom_element_data(s,"gamepagemodalurl",i[12]),m&1024&&e.set_custom_element_data(s,"integratedgameframedesktop",i[10]),m&512&&e.set_custom_element_data(s,"integratedgameframemobile",i[9]),m&32768&&e.set_custom_element_data(s,"casinomygames",i[15])},i:e.noop,o:e.noop,d(i){i&&e.detach(t),a[18](null)}}}function R(a,t,s){let{endpoint:i=""}=t,{datasource:m=""}=t,{currency:g=""}=t,{lang:r=""}=t,{session:f=""}=t,{userid:_=""}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{livecasino:d="false"}=t,{integratedgameframemobile:h="false"}=t,{integratedgameframedesktop:y="false"}=t,{showgamename:v=""}=t,{gamepagemodalurl:b="false"}=t,{visiblegames:w=""}=t,{favorites:C=""}=t,{casinomygames:k="false"}=t,{fetchviaevent:F="true"}=t,l;M({withLocale:"en",translations:{}});const E=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},L=()=>{let n=document.createElement("style");fetch(new URL(c)).then(u=>u.text()).then(u=>{n.innerHTML=u,setTimeout(()=>{l.appendChild(n)},1)})};function T(n){e.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(17,l)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,m=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,c=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,v=n.showgamename),"gamepagemodalurl"in n&&s(12,b=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,C=n.favorites),"casinomygames"in n&&s(15,k=n.casinomygames),"fetchviaevent"in n&&s(16,F=n.fetchviaevent)},a.$$.update=()=>{a.$$.dirty&131136&&o&&l&&E(),a.$$.dirty&131200&&c&&l&&L()},[i,m,g,r,f,_,o,c,d,h,y,v,b,w,C,k,F,l,T]}class S extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,O,e.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16},q)}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[1]}set datasource(t){this.$$set({datasource:t}),e.flush()}get currency(){return this.$$.ctx[2]}set currency(t){this.$$set({currency:t}),e.flush()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),e.flush()}get session(){return this.$$.ctx[4]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[5]}set userid(t){this.$$set({userid:t}),e.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(t){this.$$set({livecasino:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(t){this.$$set({visiblegames:t}),e.flush()}get favorites(){return this.$$.ctx[14]}set favorites(t){this.$$set({favorites:t}),e.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(t){this.$$set({casinomygames:t}),e.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(t){this.$$set({fetchviaevent:t}),e.flush()}}e.create_custom_element(S,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{}},[],[],!0);exports.default=S;