@everymatrix/casino-page-nd 1.48.0 → 1.48.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 (43) hide show
  1. package/components/{CasinoCalendar-pVpX-Ke1.js → CasinoCalendar-CxDSN6iE.js} +1158 -1128
  2. package/components/CasinoCalendar-DEwT2wxN.cjs +6 -0
  3. package/components/{CasinoCalendarDailyDetails-Ckfs_e45.cjs → CasinoCalendarDailyDetails-CfRqqaJ7.cjs} +1 -1
  4. package/components/{CasinoCalendarDailyDetails-BHhY9ypY.js → CasinoCalendarDailyDetails-D1_fuwa2.js} +1 -1
  5. package/components/{CasinoCalendarDailyItem-DL8JD9pX.js → CasinoCalendarDailyItem--qoA25VJ.js} +1 -1
  6. package/components/{CasinoCalendarDailyItem-DLo_a51b.cjs → CasinoCalendarDailyItem-DTvFCUSz.cjs} +1 -1
  7. package/components/{CasinoCollectionsProviders-Bm_Hg3sA.cjs → CasinoCollectionsProviders-BWuY4ubC.cjs} +1 -1
  8. package/components/{CasinoCollectionsProviders-N_DT_pTF.js → CasinoCollectionsProviders-CUGjAo0-.js} +1 -1
  9. package/components/{CasinoFavoritesSectionNd-DHh5urJy.cjs → CasinoFavoritesSectionNd-BzS1_Xvx.cjs} +1 -1
  10. package/components/{CasinoFavoritesSectionNd-zRpL40sm.js → CasinoFavoritesSectionNd-Dx76I4VC.js} +2 -2
  11. package/components/CasinoFilter-CHdcl7fR.cjs +1 -0
  12. package/components/{CasinoFilter-3wP0WzFr.js → CasinoFilter-c1Tc2ewA.js} +91 -91
  13. package/components/{CasinoGameThumbnailNd-BL1T_Ubq.js → CasinoGameThumbnailNd-BJSaX82j.js} +1 -1
  14. package/components/{CasinoGameThumbnailNd-CYlOZXU1.cjs → CasinoGameThumbnailNd-Ddtm0W_J.cjs} +1 -1
  15. package/components/CasinoGamesCategorySectionNd-CrTjB4UI.cjs +1 -0
  16. package/components/{CasinoGamesCategorySectionNd-UmwUcDF_.js → CasinoGamesCategorySectionNd-legfImJS.js} +1078 -1078
  17. package/components/{CasinoJackpotBanner-BweF75XP.cjs → CasinoJackpotBanner-CPkvWYVf.cjs} +1 -1
  18. package/components/{CasinoJackpotBanner-CBdu85yt.js → CasinoJackpotBanner-Dnpx3OoA.js} +1 -1
  19. package/components/{CasinoLastPlayedSectionNd-D42K7URp.cjs → CasinoLastPlayedSectionNd-B8tqRoZ2.cjs} +1 -1
  20. package/components/{CasinoLastPlayedSectionNd-BVK8AjWk.js → CasinoLastPlayedSectionNd-CKc31HQQ.js} +2 -2
  21. package/components/{CasinoMostPlayedSectionNd-KBHwWU0c.cjs → CasinoMostPlayedSectionNd-C4yjCCei.cjs} +1 -1
  22. package/components/{CasinoMostPlayedSectionNd-C8Bh6PX6.js → CasinoMostPlayedSectionNd-D34es3BK.js} +2 -2
  23. package/components/{CasinoMyGamesNd-DerlPrav.cjs → CasinoMyGamesNd-BoO2nEpc.cjs} +1 -1
  24. package/components/{CasinoMyGamesNd-BsF6E9mr.js → CasinoMyGamesNd-CrsyDasd.js} +4 -4
  25. package/components/{CasinoPageNd-BDNAfiSf.cjs → CasinoPageNd-CG7FgUUA.cjs} +1 -1
  26. package/components/{CasinoPageNd-ClW6Iikv.js → CasinoPageNd-CrvHemuj.js} +48 -48
  27. package/components/{CasinoRandomGame-CuTTaEzm.js → CasinoRandomGame-CB4D9rh1.js} +1 -1
  28. package/components/{CasinoRandomGame-DXI0Y4jZ.cjs → CasinoRandomGame-ChM2hlET.cjs} +1 -1
  29. package/components/{CasinoSearchNd-C2_ntZnt.js → CasinoSearchNd-CC4dm_Py.js} +3 -3
  30. package/components/{CasinoSearchNd-fj4QgtFt.cjs → CasinoSearchNd-CcFdQk0Q.cjs} +1 -1
  31. package/components/CasinoSort-CDhmv7B5.cjs +1 -0
  32. package/components/{CasinoSort-BMASc29H.js → CasinoSort-kYZfWka_.js} +29 -29
  33. package/components/{CasinoWinners-C3SkXv0Z.js → CasinoWinners-BKHyEtAJ.js} +2 -2
  34. package/components/{CasinoWinners-V4jbYRnK.cjs → CasinoWinners-C9VUisa9.cjs} +1 -1
  35. package/components/{GeneralAnimationLoading-CwBVP5uB.cjs → GeneralAnimationLoading-Bqep_PhQ.cjs} +1 -1
  36. package/components/{GeneralAnimationLoading-fooTxdgx.js → GeneralAnimationLoading-bPPVriHt.js} +1 -1
  37. package/es2015/casino-page-nd.cjs +1 -1
  38. package/es2015/casino-page-nd.js +1 -1
  39. package/package.json +1 -1
  40. package/components/CasinoCalendar-CCJYEXf4.cjs +0 -6
  41. package/components/CasinoFilter-BPApME58.cjs +0 -1
  42. package/components/CasinoGamesCategorySectionNd-D5sdz-QF.cjs +0 -1
  43. package/components/CasinoSort-BvQ_4G3H.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { $ as ye, a as ai, I as si, S as oi, i as ri, f as u, c as li, s as ci, b as ui, e as C, d as _, t as B, g as $, h as I, j as w, J as fi, l as zt, o as gi, k as ee, Q as ke, m as Et, q as G, P as i, u as Z, v as O, r as _e, A as we, C as A, T as Ct, N as mi, F as Rt, p as jt, B as di, G as Pt, W as hi, X as bi, n as yi, x as ki, y as _i, z as wi } from "./CasinoCalendar-pVpX-Ke1.js";
2
- import "./CasinoFavoritesSectionNd-zRpL40sm.js";
1
+ import { $ as ye, a as ai, I as si, S as oi, i as ri, f as u, c as li, s as ci, b as ui, e as C, d as _, t as B, g as $, h as I, j as w, J as fi, l as zt, o as gi, k as ee, Q as ke, m as Et, q as G, P as i, u as X, v as O, r as _e, A as we, C as A, T as Ct, N as mi, F as Rt, p as jt, B as di, G as Pt, Y as hi, Z as bi, n as yi, x as ki, y as _i, z as wi } from "./CasinoCalendar-CxDSN6iE.js";
2
+ import "./CasinoFavoritesSectionNd-Dx76I4VC.js";
3
3
  function pi({ withLocale: n, translations: e }) {
4
4
  ye.subscribe((t) => {
5
5
  t == null && (ai.set(e), ye.set(n));
@@ -237,7 +237,7 @@ if (typeof window != "undefined") {
237
237
  }
238
238
  };
239
239
  };
240
- customElements.define = n(customElements.define), import("./CasinoRandomGame-CuTTaEzm.js").then(({ default: e }) => {
240
+ customElements.define = n(customElements.define), import("./CasinoRandomGame-CB4D9rh1.js").then(({ default: e }) => {
241
241
  !customElements.get("casino-random-game") && customElements.define("casino-random-game", e.element);
242
242
  });
243
243
  }
@@ -253,7 +253,7 @@ if (typeof window != "undefined") {
253
253
  }
254
254
  };
255
255
  };
256
- customElements.define = n(customElements.define), import("./CasinoWinners-C3SkXv0Z.js").then(({ default: e }) => {
256
+ customElements.define = n(customElements.define), import("./CasinoWinners-BKHyEtAJ.js").then(({ default: e }) => {
257
257
  !customElements.get("casino-winners") && customElements.define("casino-winners", e.element);
258
258
  });
259
259
  }
@@ -269,7 +269,7 @@ if (typeof window != "undefined") {
269
269
  }
270
270
  };
271
271
  };
272
- customElements.define = n(customElements.define), import("./CasinoJackpotBanner-CBdu85yt.js").then(({ default: e }) => {
272
+ customElements.define = n(customElements.define), import("./CasinoJackpotBanner-Dnpx3OoA.js").then(({ default: e }) => {
273
273
  !customElements.get("casino-jackpot-banner") && customElements.define("casino-jackpot-banner", e.element);
274
274
  });
275
275
  }
@@ -285,7 +285,7 @@ if (typeof window != "undefined") {
285
285
  }
286
286
  };
287
287
  };
288
- customElements.define = n(customElements.define), import("./CasinoCollectionsProviders-N_DT_pTF.js").then(({ default: e }) => {
288
+ customElements.define = n(customElements.define), import("./CasinoCollectionsProviders-CUGjAo0-.js").then(({ default: e }) => {
289
289
  !customElements.get("casino-collections-providers") && customElements.define("casino-collections-providers", e.element);
290
290
  });
291
291
  }
@@ -301,7 +301,7 @@ if (typeof window != "undefined") {
301
301
  }
302
302
  };
303
303
  };
304
- customElements.define = n(customElements.define), import("./CasinoMyGamesNd-BsF6E9mr.js").then(({ default: e }) => {
304
+ customElements.define = n(customElements.define), import("./CasinoMyGamesNd-CrsyDasd.js").then(({ default: e }) => {
305
305
  !customElements.get("casino-my-games-nd") && customElements.define("casino-my-games-nd", e.element);
306
306
  });
307
307
  }
@@ -317,7 +317,7 @@ if (typeof window != "undefined") {
317
317
  }
318
318
  };
319
319
  };
320
- customElements.define = n(customElements.define), import("./CasinoSearchNd-C2_ntZnt.js").then(({ default: e }) => {
320
+ customElements.define = n(customElements.define), import("./CasinoSearchNd-CC4dm_Py.js").then(({ default: e }) => {
321
321
  !customElements.get("casino-search-nd") && customElements.define("casino-search-nd", e.element);
322
322
  });
323
323
  }
@@ -333,7 +333,7 @@ if (typeof window != "undefined") {
333
333
  }
334
334
  };
335
335
  };
336
- customElements.define = n(customElements.define), import("./CasinoCalendar-pVpX-Ke1.js").then((e) => e.Y).then(({ default: e }) => {
336
+ customElements.define = n(customElements.define), import("./CasinoCalendar-CxDSN6iE.js").then((e) => e._).then(({ default: e }) => {
337
337
  !customElements.get("casino-calendar") && customElements.define("casino-calendar", e.element);
338
338
  });
339
339
  }
@@ -428,7 +428,7 @@ function ji(n) {
428
428
  "showfavorites",
429
429
  /*favorites*/
430
430
  n[15]
431
- ), Z(e, "class", "CategoriesLobby");
431
+ ), X(e, "class", "CategoriesLobby");
432
432
  },
433
433
  m(m, k) {
434
434
  _(m, e, k), O(e, t), O(e, a), c && c.m(e, null), O(e, r), E && E.m(e, null), O(e, l), ~o && b[o].m(e, null), O(e, f), j && j.m(e, null), y = !0;
@@ -524,7 +524,7 @@ function Pi(n) {
524
524
  ), a;
525
525
  return {
526
526
  c() {
527
- e = C("p"), a = _e(t), Z(e, "class", "SearchLoading");
527
+ e = C("p"), a = _e(t), X(e, "class", "SearchLoading");
528
528
  },
529
529
  m(r, l) {
530
530
  _(r, e, l), O(e, a);
@@ -816,7 +816,7 @@ function Mi(n) {
816
816
  ), a;
817
817
  return {
818
818
  c() {
819
- e = C("p"), a = _e(t), Z(e, "class", "SearchLoading");
819
+ e = C("p"), a = _e(t), X(e, "class", "SearchLoading");
820
820
  },
821
821
  m(r, l) {
822
822
  _(r, e, l), O(e, a);
@@ -1573,7 +1573,7 @@ function Dt(n) {
1573
1573
  "winnersdatasources",
1574
1574
  /*winnersdatasources*/
1575
1575
  n[65]
1576
- ), Z(e, "class", "CasinoWinners");
1576
+ ), X(e, "class", "CasinoWinners");
1577
1577
  },
1578
1578
  m(a, r) {
1579
1579
  _(a, e, r), O(e, t);
@@ -2260,7 +2260,7 @@ function Ot(n) {
2260
2260
  n[129] == +/*positionjelobbywidget*/
2261
2261
  n[67] && Bt(n)
2262
2262
  );
2263
- function J(h, g) {
2263
+ function V(h, g) {
2264
2264
  if (g[1] & /*positionjackpotbanners*/
2265
2265
  256 | g[2] & /*shownCategories*/
2266
2266
  4194304 && (r = null), g[1] & /*positionjackpotbanners*/
@@ -2282,7 +2282,7 @@ function Ot(n) {
2282
2282
  ) : +/*positionjackpotbanners*/
2283
2283
  h[39].split(",")[1]))), l) return Ii;
2284
2284
  }
2285
- let z = J(n, [-1, -1, -1, -1, -1]), S = z && z(n);
2285
+ let z = V(n, [-1, -1, -1, -1, -1]), S = z && z(n);
2286
2286
  function q(h, g) {
2287
2287
  if (g[1] & /*positioncollections*/
2288
2288
  262144 | g[2] & /*shownCategories*/
@@ -2456,7 +2456,7 @@ function Ot(n) {
2456
2456
  n[67] ? v ? (v.p(n, g), g[2] & /*positionjelobbywidget*/
2457
2457
  32 && I(v, 1)) : (v = Bt(n), v.c(), I(v, 1), v.m(a.parentNode, a)) : v && (ee(), B(v, 1, 1, () => {
2458
2458
  v = null;
2459
- }), $()), z === (z = J(n, g)) && S ? S.p(n, g) : (S && S.d(1), S = z && z(n), S && (S.c(), S.m(o.parentNode, o))), T === (T = q(n, g)) && M ? M.p(n, g) : (M && M.d(1), M = T && T(n), M && (M.c(), M.m(y.parentNode, y))), (!b || g[0] & /*session*/
2459
+ }), $()), z === (z = V(n, g)) && S ? S.p(n, g) : (S && S.d(1), S = z && z(n), S && (S.c(), S.m(o.parentNode, o))), T === (T = q(n, g)) && M ? M.p(n, g) : (M && M.d(1), M = T && T(n), M && (M.c(), M.m(y.parentNode, y))), (!b || g[0] & /*session*/
2460
2460
  64) && i(
2461
2461
  c,
2462
2462
  "session",
@@ -2624,7 +2624,7 @@ function Nt(n) {
2624
2624
  ), r;
2625
2625
  return {
2626
2626
  c() {
2627
- e = C("div"), t = C("button"), r = _e(a), Z(t, "class", "PanicButton " + (ke(
2627
+ e = C("div"), t = C("button"), r = _e(a), X(t, "class", "PanicButton " + (ke(
2628
2628
  /*userAgent*/
2629
2629
  n[86]
2630
2630
  ) !== "PC" ? "PanicButtonMobile " : "")), Ct(
@@ -2632,7 +2632,7 @@ function Nt(n) {
2632
2632
  "PanicButtonAnimation",
2633
2633
  /*panicLoading*/
2634
2634
  n[80]
2635
- ), Z(e, "class", "PanicSection " + (ke(
2635
+ ), X(e, "class", "PanicSection " + (ke(
2636
2636
  /*userAgent*/
2637
2637
  n[86]
2638
2638
  ) !== "PC" ? "PanicSectionMobile" : ""));
@@ -2693,9 +2693,9 @@ let re = !1;
2693
2693
  function Ni(n, e, t) {
2694
2694
  let a;
2695
2695
  fi(n, mi, (s) => t(85, a = s));
2696
- let { $$slots: r = {}, $$scope: l } = e, { endpoint: o = "" } = e, { env: d = "" } = e, { datasource: f = "" } = e, { currency: y = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: D = "" } = e, { clientstyling: b = "" } = e, { userroles: N = "" } = e, { clientstylingurl: j = "" } = e, { translationurl: m = "" } = e, { cmsendpoint: k = "" } = e, { categorybackground: v = "" } = e, { visiblegames: J } = e, { favorites: z = "" } = e, { haspanicbutton: S = "false" } = e, { filteredcategories: q = "" } = e, { activecategory: T = "" } = e, { showgamename: M = "" } = e, { livecasino: h = "false" } = e, { playrandomgame: g = "false" } = e, { randomgameslider: pe = "false" } = e, { filteredrandomgamecategories: ve = "" } = e, { gamepagemodalurl: Ee = "false" } = e, { casinogamesgridslider: Ce = "false" } = e, { positionwinnerswidget: je = "" } = e, { tabsorder: Pe = "" } = e, { enableautoscroll: Se = "" } = e, { istopavailable: Me = "" } = e, { isrecentavailable: Le = "" } = e, { integratedgameframedesktop: Fe = "false" } = e, { integratedgameframemobile: Ge = "false" } = e, { periodrecent: Ie = "" } = e, { periodtop: De = "" } = e, { numberusersrecent: Te = "" } = e, { numberuserstop: Be = "" } = e, { amountlimit: Oe = "" } = e, { defaultcurrency: Ne = "" } = e, { showsubgroups: le = "" } = e, { positionjackpotbanners: ze = "" } = e, { caticon0: Re = "" } = e, { caticon1: Ae = "" } = e, { caticon2: qe = "" } = e, { caticon3: Ue = "" } = e, { backgroundsrc: Ye = "" } = e, { backgroundsrcmobile: He = "" } = e, { titlelogopath: We = "" } = e, { iconlabels: Je = "" } = e, { visualstructure: Ve = "" } = e, { positioncollections: Ke = "" } = e, { type: Qe = "" } = e, { titletype: Xe = "" } = e, { collectionprovidersgamenames: Ze = "" } = e, { addfilterselector: xe = "false" } = e, { addsortingselector: $e = "false" } = e, { filterbylogo: et = "" } = e, { positioncasinocalendar: tt = "" } = e, { casinomygames: te = "false" } = e, { mostplayed: ce = "" } = e, { lastplayed: ue = "" } = e, { lastplayedperiod: it = "Last30Days" } = e, { mostplayedperiod: nt = "Last30Days" } = e, { lastplayedorder: at = "" } = e, { lastplayedlimit: st = "" } = e, { lastplayedunique: ot = "true" } = e, { mostplayedrounds: rt = "" } = e, { winnersdatasources: lt = "" } = e, { fetchviaevent: ct = "true" } = e, { positionjelobbywidget: ut = "" } = e, { specificcategory: ft = "" } = e, { launchbygamecard: gt = "" } = e, { iconvisible: mt = "" } = e, { iconvisibleonanim: dt = "" } = e, { randombuttonicon: ht = "" } = e, fe = window.navigator.userAgent, ge;
2696
+ let { $$slots: r = {}, $$scope: l } = e, { endpoint: o = "" } = e, { env: d = "" } = e, { datasource: f = "" } = e, { currency: y = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: D = "" } = e, { clientstyling: b = "" } = e, { userroles: N = "" } = e, { clientstylingurl: j = "" } = e, { translationurl: m = "" } = e, { cmsendpoint: k = "" } = e, { categorybackground: v = "" } = e, { visiblegames: V } = e, { favorites: z = "" } = e, { haspanicbutton: S = "false" } = e, { filteredcategories: q = "" } = e, { activecategory: T = "" } = e, { showgamename: M = "" } = e, { livecasino: h = "false" } = e, { playrandomgame: g = "false" } = e, { randomgameslider: pe = "false" } = e, { filteredrandomgamecategories: ve = "" } = e, { gamepagemodalurl: Ee = "false" } = e, { casinogamesgridslider: Ce = "false" } = e, { positionwinnerswidget: je = "" } = e, { tabsorder: Pe = "" } = e, { enableautoscroll: Se = "" } = e, { istopavailable: Me = "" } = e, { isrecentavailable: Le = "" } = e, { integratedgameframedesktop: Fe = "false" } = e, { integratedgameframemobile: Ge = "false" } = e, { periodrecent: Ie = "" } = e, { periodtop: De = "" } = e, { numberusersrecent: Te = "" } = e, { numberuserstop: Be = "" } = e, { amountlimit: Oe = "" } = e, { defaultcurrency: Ne = "" } = e, { showsubgroups: le = "" } = e, { positionjackpotbanners: ze = "" } = e, { caticon0: Re = "" } = e, { caticon1: Ae = "" } = e, { caticon2: qe = "" } = e, { caticon3: Ue = "" } = e, { backgroundsrc: Ye = "" } = e, { backgroundsrcmobile: He = "" } = e, { titlelogopath: Je = "" } = e, { iconlabels: Ve = "" } = e, { visualstructure: We = "" } = e, { positioncollections: Ke = "" } = e, { type: Qe = "" } = e, { titletype: Ze = "" } = e, { collectionprovidersgamenames: Xe = "" } = e, { addfilterselector: xe = "false" } = e, { addsortingselector: $e = "false" } = e, { filterbylogo: et = "" } = e, { positioncasinocalendar: tt = "" } = e, { casinomygames: te = "false" } = e, { mostplayed: ce = "" } = e, { lastplayed: ue = "" } = e, { lastplayedperiod: it = "Last30Days" } = e, { mostplayedperiod: nt = "Last30Days" } = e, { lastplayedorder: at = "" } = e, { lastplayedlimit: st = "" } = e, { lastplayedunique: ot = "true" } = e, { mostplayedrounds: rt = "" } = e, { winnersdatasources: lt = "" } = e, { fetchviaevent: ct = "true" } = e, { positionjelobbywidget: ut = "" } = e, { specificcategory: ft = "" } = e, { launchbygamecard: gt = "" } = e, { iconvisible: mt = "" } = e, { iconvisibleonanim: dt = "" } = e, { randombuttonicon: ht = "" } = e, fe = window.navigator.userAgent, ge;
2697
2697
  zt(fe) ? ge = "OpenGameFrame" : ge = "ShowGameModal";
2698
- let R = !1, V = !1, bt = !1, K = "", p, ie = !1, ne = 0, me, U = !1, Y = !0, de = !1, yt = [], F, H = [], At, x, ae, kt = !1, _t, qt, he = "", W, wt = !1;
2698
+ let R = !1, W = !1, bt = !1, K = "", p, ie = !1, ne = 0, me, U = !1, Y = !0, de = !1, yt = [], F, H = [], At, x, ae, kt = !1, _t, qt, he = "", J, wt = !1;
2699
2699
  pi({ withLocale: "en", translations: {} });
2700
2700
  const Ut = () => {
2701
2701
  let s = new URL(m);
@@ -2782,21 +2782,21 @@ function Ni(n, e, t) {
2782
2782
  t(77, R = !0), fetch(s).then((L) => L.json()).then((L) => {
2783
2783
  t(77, R = !1), P(L);
2784
2784
  }).catch((L) => {
2785
- t(78, V = !0), t(77, R = !1), console.error(L), Q(L);
2785
+ t(78, W = !0), t(77, R = !1), console.error(L), Q(L);
2786
2786
  });
2787
2787
  }), Ht = (s, P) => {
2788
2788
  he = P, window.postMessage(
2789
2789
  {
2790
2790
  type: `CategoryData_${P}`,
2791
2791
  categoryId: P,
2792
- visiblegames: J,
2792
+ visiblegames: V,
2793
2793
  receivedFavoriteResults: qt
2794
2794
  },
2795
2795
  window.location.href
2796
2796
  );
2797
2797
  }, vt = () => {
2798
2798
  x && (ae = x.getBoundingClientRect().top + document.body.getBoundingClientRect().top), document.documentElement.scrollTop > ae || ae > 130;
2799
- }, Wt = () => (o || (K = "Endpoint is missing! Please provide a valid endpointURL.", t(78, V = !0), t(77, R = !1), console.error(K)), f || (K = "Datasource is missing! Please provide a valid datasource.", t(78, V = !0), t(77, R = !1), console.error(K)), (!c || c.length < 2) && (K = "Language is missing! Please provide a valid language (alpha2code)", t(78, V = !0), t(77, R = !1), console.error(K)), V), Jt = () => {
2799
+ }, Jt = () => (o || (K = "Endpoint is missing! Please provide a valid endpointURL.", t(78, W = !0), t(77, R = !1), console.error(K)), f || (K = "Datasource is missing! Please provide a valid datasource.", t(78, W = !0), t(77, R = !1), console.error(K)), (!c || c.length < 2) && (K = "Language is missing! Please provide a valid language (alpha2code)", t(78, W = !0), t(77, R = !1), console.error(K)), W), Vt = () => {
2800
2800
  wt && setTimeout(
2801
2801
  () => {
2802
2802
  window.postMessage(
@@ -2809,21 +2809,21 @@ function Ni(n, e, t) {
2809
2809
  },
2810
2810
  500
2811
2811
  ), wt = !1;
2812
- }, Vt = () => {
2813
- if (!Wt()) {
2812
+ }, Wt = () => {
2813
+ if (!Jt()) {
2814
2814
  t(77, R = !0), vi(c);
2815
2815
  let s = new URL(`${o}/v1/casino/groups/${f}`);
2816
2816
  s.searchParams.append("language", c), s.searchParams.append("platform", ke(fe)), Yt(s).then((P) => {
2817
2817
  let Q = q.split(",");
2818
2818
  P && (_t = P.items.filter((L) => {
2819
- let X;
2820
- if (L.games.total > 0 && (X = !0, q))
2819
+ let Z;
2820
+ if (L.games.total > 0 && (Z = !0, q))
2821
2821
  for (let ni of Q)
2822
- L.flags == ni && (X = !1);
2823
- return X;
2822
+ L.flags == ni && (Z = !1);
2823
+ return Z;
2824
2824
  }), t(84, yt = _t.filter((L) => {
2825
- var X;
2826
- return !(((X = L == null ? void 0 : L.subGroups) == null ? void 0 : X.count) > 0 && le == "true");
2825
+ var Z;
2826
+ return !(((Z = L == null ? void 0 : L.subGroups) == null ? void 0 : Z.count) > 0 && le == "true");
2827
2827
  }).map((L) => L.id)), t(89, H = P.items.map((L) => L.id.toString())), t(77, R = !1));
2828
2828
  }), x = At, x && (ae = x.getBoundingClientRect().top - document.body.getBoundingClientRect().top);
2829
2829
  }
@@ -2831,7 +2831,7 @@ function Ni(n, e, t) {
2831
2831
  t(74, F = T), be({ data: { itemId: F } });
2832
2832
  }, Qt = () => {
2833
2833
  H && !H.includes(decodeURI(F)) && F != "" && window.postMessage({ type: "NonExistentCategory" }, window.location.href);
2834
- }, Xt = () => {
2834
+ }, Zt = () => {
2835
2835
  t(79, bt = !0);
2836
2836
  }, se = (s) => {
2837
2837
  ne = 0, me = setInterval(
@@ -2842,19 +2842,19 @@ function Ni(n, e, t) {
2842
2842
  );
2843
2843
  }, oe = (s) => {
2844
2844
  ne < 3 && t(80, ie = !1), clearInterval(me);
2845
- }, Zt = () => {
2845
+ }, Xt = () => {
2846
2846
  p == null || p.addEventListener("mousedown", se, !1), p == null || p.addEventListener("touchstart", se, !1), p == null || p.addEventListener("mouseup", oe, !1), p == null || p.addEventListener("touchend", oe, !1);
2847
2847
  }, xt = () => {
2848
2848
  t(80, ie = !1), p == null || p.removeEventListener("mousedown", se), p == null || p.removeEventListener("touchstart", se), p == null || p.removeEventListener("mouseup", oe), p == null || p.removeEventListener("touchend", oe);
2849
2849
  }, $t = () => {
2850
2850
  let s = document.createElement("style");
2851
- s.innerHTML = b, W.appendChild(s);
2851
+ s.innerHTML = b, J.appendChild(s);
2852
2852
  }, ei = () => {
2853
2853
  let s = document.createElement("style");
2854
2854
  fetch(new URL(j)).then((P) => P.text()).then((P) => {
2855
2855
  s.innerHTML = P, setTimeout(
2856
2856
  () => {
2857
- W.appendChild(s);
2857
+ J.appendChild(s);
2858
2858
  },
2859
2859
  1
2860
2860
  );
@@ -2870,24 +2870,24 @@ function Ni(n, e, t) {
2870
2870
  }
2871
2871
  function ii(s) {
2872
2872
  Et[s ? "unshift" : "push"](() => {
2873
- W = s, t(75, W);
2873
+ J = s, t(75, J);
2874
2874
  });
2875
2875
  }
2876
2876
  return n.$$set = (s) => {
2877
- "endpoint" in s && t(1, o = s.endpoint), "env" in s && t(2, d = s.env), "datasource" in s && t(3, f = s.datasource), "currency" in s && t(4, y = s.currency), "lang" in s && t(5, c = s.lang), "session" in s && t(6, E = s.session), "userid" in s && t(7, D = s.userid), "clientstyling" in s && t(8, b = s.clientstyling), "userroles" in s && t(9, N = s.userroles), "clientstylingurl" in s && t(10, j = s.clientstylingurl), "translationurl" in s && t(11, m = s.translationurl), "cmsendpoint" in s && t(12, k = s.cmsendpoint), "categorybackground" in s && t(13, v = s.categorybackground), "visiblegames" in s && t(14, J = s.visiblegames), "favorites" in s && t(15, z = s.favorites), "haspanicbutton" in s && t(16, S = s.haspanicbutton), "filteredcategories" in s && t(17, q = s.filteredcategories), "activecategory" in s && t(18, T = s.activecategory), "showgamename" in s && t(19, M = s.showgamename), "livecasino" in s && t(20, h = s.livecasino), "playrandomgame" in s && t(21, g = s.playrandomgame), "randomgameslider" in s && t(22, pe = s.randomgameslider), "filteredrandomgamecategories" in s && t(23, ve = s.filteredrandomgamecategories), "gamepagemodalurl" in s && t(24, Ee = s.gamepagemodalurl), "casinogamesgridslider" in s && t(25, Ce = s.casinogamesgridslider), "positionwinnerswidget" in s && t(26, je = s.positionwinnerswidget), "tabsorder" in s && t(27, Pe = s.tabsorder), "enableautoscroll" in s && t(28, Se = s.enableautoscroll), "istopavailable" in s && t(29, Me = s.istopavailable), "isrecentavailable" in s && t(30, Le = s.isrecentavailable), "integratedgameframedesktop" in s && t(31, Fe = s.integratedgameframedesktop), "integratedgameframemobile" in s && t(32, Ge = s.integratedgameframemobile), "periodrecent" in s && t(33, Ie = s.periodrecent), "periodtop" in s && t(34, De = s.periodtop), "numberusersrecent" in s && t(35, Te = s.numberusersrecent), "numberuserstop" in s && t(36, Be = s.numberuserstop), "amountlimit" in s && t(37, Oe = s.amountlimit), "defaultcurrency" in s && t(38, Ne = s.defaultcurrency), "showsubgroups" in s && t(88, le = s.showsubgroups), "positionjackpotbanners" in s && t(39, ze = s.positionjackpotbanners), "caticon0" in s && t(40, Re = s.caticon0), "caticon1" in s && t(41, Ae = s.caticon1), "caticon2" in s && t(42, qe = s.caticon2), "caticon3" in s && t(43, Ue = s.caticon3), "backgroundsrc" in s && t(44, Ye = s.backgroundsrc), "backgroundsrcmobile" in s && t(45, He = s.backgroundsrcmobile), "titlelogopath" in s && t(46, We = s.titlelogopath), "iconlabels" in s && t(47, Je = s.iconlabels), "visualstructure" in s && t(48, Ve = s.visualstructure), "positioncollections" in s && t(49, Ke = s.positioncollections), "type" in s && t(50, Qe = s.type), "titletype" in s && t(51, Xe = s.titletype), "collectionprovidersgamenames" in s && t(52, Ze = s.collectionprovidersgamenames), "addfilterselector" in s && t(53, xe = s.addfilterselector), "addsortingselector" in s && t(54, $e = s.addsortingselector), "filterbylogo" in s && t(55, et = s.filterbylogo), "positioncasinocalendar" in s && t(56, tt = s.positioncasinocalendar), "casinomygames" in s && t(0, te = s.casinomygames), "mostplayed" in s && t(57, ce = s.mostplayed), "lastplayed" in s && t(58, ue = s.lastplayed), "lastplayedperiod" in s && t(59, it = s.lastplayedperiod), "mostplayedperiod" in s && t(60, nt = s.mostplayedperiod), "lastplayedorder" in s && t(61, at = s.lastplayedorder), "lastplayedlimit" in s && t(62, st = s.lastplayedlimit), "lastplayedunique" in s && t(63, ot = s.lastplayedunique), "mostplayedrounds" in s && t(64, rt = s.mostplayedrounds), "winnersdatasources" in s && t(65, lt = s.winnersdatasources), "fetchviaevent" in s && t(66, ct = s.fetchviaevent), "positionjelobbywidget" in s && t(67, ut = s.positionjelobbywidget), "specificcategory" in s && t(68, ft = s.specificcategory), "launchbygamecard" in s && t(69, gt = s.launchbygamecard), "iconvisible" in s && t(70, mt = s.iconvisible), "iconvisibleonanim" in s && t(71, dt = s.iconvisibleonanim), "randombuttonicon" in s && t(72, ht = s.randombuttonicon), "$$scope" in s && t(90, l = s.$$scope);
2877
+ "endpoint" in s && t(1, o = s.endpoint), "env" in s && t(2, d = s.env), "datasource" in s && t(3, f = s.datasource), "currency" in s && t(4, y = s.currency), "lang" in s && t(5, c = s.lang), "session" in s && t(6, E = s.session), "userid" in s && t(7, D = s.userid), "clientstyling" in s && t(8, b = s.clientstyling), "userroles" in s && t(9, N = s.userroles), "clientstylingurl" in s && t(10, j = s.clientstylingurl), "translationurl" in s && t(11, m = s.translationurl), "cmsendpoint" in s && t(12, k = s.cmsendpoint), "categorybackground" in s && t(13, v = s.categorybackground), "visiblegames" in s && t(14, V = s.visiblegames), "favorites" in s && t(15, z = s.favorites), "haspanicbutton" in s && t(16, S = s.haspanicbutton), "filteredcategories" in s && t(17, q = s.filteredcategories), "activecategory" in s && t(18, T = s.activecategory), "showgamename" in s && t(19, M = s.showgamename), "livecasino" in s && t(20, h = s.livecasino), "playrandomgame" in s && t(21, g = s.playrandomgame), "randomgameslider" in s && t(22, pe = s.randomgameslider), "filteredrandomgamecategories" in s && t(23, ve = s.filteredrandomgamecategories), "gamepagemodalurl" in s && t(24, Ee = s.gamepagemodalurl), "casinogamesgridslider" in s && t(25, Ce = s.casinogamesgridslider), "positionwinnerswidget" in s && t(26, je = s.positionwinnerswidget), "tabsorder" in s && t(27, Pe = s.tabsorder), "enableautoscroll" in s && t(28, Se = s.enableautoscroll), "istopavailable" in s && t(29, Me = s.istopavailable), "isrecentavailable" in s && t(30, Le = s.isrecentavailable), "integratedgameframedesktop" in s && t(31, Fe = s.integratedgameframedesktop), "integratedgameframemobile" in s && t(32, Ge = s.integratedgameframemobile), "periodrecent" in s && t(33, Ie = s.periodrecent), "periodtop" in s && t(34, De = s.periodtop), "numberusersrecent" in s && t(35, Te = s.numberusersrecent), "numberuserstop" in s && t(36, Be = s.numberuserstop), "amountlimit" in s && t(37, Oe = s.amountlimit), "defaultcurrency" in s && t(38, Ne = s.defaultcurrency), "showsubgroups" in s && t(88, le = s.showsubgroups), "positionjackpotbanners" in s && t(39, ze = s.positionjackpotbanners), "caticon0" in s && t(40, Re = s.caticon0), "caticon1" in s && t(41, Ae = s.caticon1), "caticon2" in s && t(42, qe = s.caticon2), "caticon3" in s && t(43, Ue = s.caticon3), "backgroundsrc" in s && t(44, Ye = s.backgroundsrc), "backgroundsrcmobile" in s && t(45, He = s.backgroundsrcmobile), "titlelogopath" in s && t(46, Je = s.titlelogopath), "iconlabels" in s && t(47, Ve = s.iconlabels), "visualstructure" in s && t(48, We = s.visualstructure), "positioncollections" in s && t(49, Ke = s.positioncollections), "type" in s && t(50, Qe = s.type), "titletype" in s && t(51, Ze = s.titletype), "collectionprovidersgamenames" in s && t(52, Xe = s.collectionprovidersgamenames), "addfilterselector" in s && t(53, xe = s.addfilterselector), "addsortingselector" in s && t(54, $e = s.addsortingselector), "filterbylogo" in s && t(55, et = s.filterbylogo), "positioncasinocalendar" in s && t(56, tt = s.positioncasinocalendar), "casinomygames" in s && t(0, te = s.casinomygames), "mostplayed" in s && t(57, ce = s.mostplayed), "lastplayed" in s && t(58, ue = s.lastplayed), "lastplayedperiod" in s && t(59, it = s.lastplayedperiod), "mostplayedperiod" in s && t(60, nt = s.mostplayedperiod), "lastplayedorder" in s && t(61, at = s.lastplayedorder), "lastplayedlimit" in s && t(62, st = s.lastplayedlimit), "lastplayedunique" in s && t(63, ot = s.lastplayedunique), "mostplayedrounds" in s && t(64, rt = s.mostplayedrounds), "winnersdatasources" in s && t(65, lt = s.winnersdatasources), "fetchviaevent" in s && t(66, ct = s.fetchviaevent), "positionjelobbywidget" in s && t(67, ut = s.positionjelobbywidget), "specificcategory" in s && t(68, ft = s.specificcategory), "launchbygamecard" in s && t(69, gt = s.launchbygamecard), "iconvisible" in s && t(70, mt = s.iconvisible), "iconvisibleonanim" in s && t(71, dt = s.iconvisibleonanim), "randombuttonicon" in s && t(72, ht = s.randombuttonicon), "$$scope" in s && t(90, l = s.$$scope);
2878
2878
  }, n.$$.update = () => {
2879
2879
  n.$$.dirty[0] & /*lang, activecategory*/
2880
2880
  262176 && c && T && Kt(), n.$$.dirty[0] & /*session, userid, endpoint*/
2881
- 194 && E && D && o && Xt(), n.$$.dirty[2] & /*activeCategory, allCategoriesIds*/
2881
+ 194 && E && D && o && Zt(), n.$$.dirty[2] & /*activeCategory, allCategoriesIds*/
2882
2882
  134221824 && F && H && Qt(), n.$$.dirty[0] & /*endpoint, datasource, lang*/
2883
- 42 && o && f && c && Vt(), n.$$.dirty[0] & /*lang*/
2884
- 32 && c && Jt(), n.$$.dirty[0] & /*translationurl*/
2883
+ 42 && o && f && c && Wt(), n.$$.dirty[0] & /*lang*/
2884
+ 32 && c && Vt(), n.$$.dirty[0] & /*translationurl*/
2885
2885
  2048 && m && Ut(), n.$$.dirty[0] & /*clientstyling*/
2886
2886
  256 | n.$$.dirty[2] & /*customStylingContainer*/
2887
- 8192 && b && W && $t(), n.$$.dirty[0] & /*clientstylingurl*/
2887
+ 8192 && b && J && $t(), n.$$.dirty[0] & /*clientstylingurl*/
2888
2888
  1024 | n.$$.dirty[2] & /*customStylingContainer*/
2889
- 8192 && j && W && ei(), n.$$.dirty[2] & /*panicButton*/
2890
- 2048 && p && Zt();
2889
+ 8192 && j && J && ei(), n.$$.dirty[2] & /*panicButton*/
2890
+ 2048 && p && Xt();
2891
2891
  }, [
2892
2892
  te,
2893
2893
  o,
@@ -2903,7 +2903,7 @@ function Ni(n, e, t) {
2903
2903
  m,
2904
2904
  k,
2905
2905
  v,
2906
- J,
2906
+ V,
2907
2907
  z,
2908
2908
  S,
2909
2909
  q,
@@ -2935,13 +2935,13 @@ function Ni(n, e, t) {
2935
2935
  Ue,
2936
2936
  Ye,
2937
2937
  He,
2938
- We,
2939
2938
  Je,
2940
2939
  Ve,
2940
+ We,
2941
2941
  Ke,
2942
2942
  Qe,
2943
- Xe,
2944
2943
  Ze,
2944
+ Xe,
2945
2945
  xe,
2946
2946
  $e,
2947
2947
  et,
@@ -2964,10 +2964,10 @@ function Ni(n, e, t) {
2964
2964
  ht,
2965
2965
  p,
2966
2966
  F,
2967
- W,
2967
+ J,
2968
2968
  ge,
2969
2969
  R,
2970
- V,
2970
+ W,
2971
2971
  bt,
2972
2972
  ie,
2973
2973
  U,
@@ -14,7 +14,7 @@ var P = (a, e, t) => new Promise((n, l) => {
14
14
  }, p = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r, d);
15
15
  p((t = t.apply(a, e)).next());
16
16
  });
17
- import { $ as H, a as _e, I as Ge, S as Re, i as xe, f as M, c as ke, s as ve, b as Me, e as b, q as C, u, d as k, v as y, w as J, h as I, t as E, g as Ce, j as v, J as Fe, n as Le, x as Te, y as Se, z as je, k as We, Q as Ne, m as V, E as Y, C as ze, r as L, A as T, p as Q, B as Be, D as X, N as Ie, U as Je, M as De } from "./CasinoCalendar-pVpX-Ke1.js";
17
+ import { $ as H, a as _e, I as Ge, S as Re, i as xe, f as M, c as ke, s as ve, b as Me, e as b, q as C, u, d as k, v as y, w as J, h as I, t as E, g as Ce, j as v, J as Fe, n as Le, x as Te, y as Se, z as je, k as We, Q as Ne, m as V, E as Y, C as ze, r as L, A as T, p as Q, B as Be, D as X, N as Ie, U as Je, M as De } from "./CasinoCalendar-CxDSN6iE.js";
18
18
  function Ae({ withLocale: a, translations: e }) {
19
19
  H.subscribe((t) => {
20
20
  t == null && (_e.set(e), H.set(a));
@@ -1,2 +1,2 @@
1
- "use strict";var S=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},m=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,m);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CCJYEXf4.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function re(n){e.$locale.set(n)}const B={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};function ie(n){e.append_styles(n,"svelte-jp1l3j","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function I(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function D(n){let t,a,o,r,s,m,f;const p=n[22].close,g=e.create_slot(p,n,n[21],J),l=g||de();function _(d,y){return d[7]?me:ce}let c=_(n),u=c(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,m||(f=e.listen(o,"click",n[12]),m=!0)},p(d,y){g&&g.p&&(!s||y[0]&2097152)&&e.update_slot_base(g,p,d,d[21],s?e.get_slot_changes(p,d[21],y,se):e.get_all_dirty_from_scope(d[21]),J),c===(c=_(d))&&u?u.p(d,y):(u.d(1),u=c(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),m=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function ce(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function me(n){let t,a,o,r,s=e.ensure_array_like(n[4]),m=[];for(let l=0;l<s.length;l+=1)m[l]=P(I(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<m.length;l+=1)m[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(o,null);n[23](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let c;for(c=0;c<s.length;c+=1){const u=I(l,s,c);m[c]?m[c].p(u,_):(m[c]=P(u),m[c].c(),m[c].m(o,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(m,l),n[23](null),g.d()}}}function P(n){let t,a,o,r,s,m;return{c(){t=e.element("div"),a=e.element("img"),m=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,m)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function pe(n){let t,a,o,r,s=n[3].name+"",m,f,p,g=n[3].vendor.name+"",l,_,c,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
1
+ "use strict";var S=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},m=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,m);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DEwT2wxN.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function re(n){e.$locale.set(n)}const B={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};function ie(n){e.append_styles(n,"svelte-jp1l3j","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function I(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function D(n){let t,a,o,r,s,m,f;const p=n[22].close,g=e.create_slot(p,n,n[21],J),l=g||de();function _(d,y){return d[7]?me:ce}let c=_(n),u=c(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,m||(f=e.listen(o,"click",n[12]),m=!0)},p(d,y){g&&g.p&&(!s||y[0]&2097152)&&e.update_slot_base(g,p,d,d[21],s?e.get_slot_changes(p,d[21],y,se):e.get_all_dirty_from_scope(d[21]),J),c===(c=_(d))&&u?u.p(d,y):(u.d(1),u=c(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),m=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function ce(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function me(n){let t,a,o,r,s=e.ensure_array_like(n[4]),m=[];for(let l=0;l<s.length;l+=1)m[l]=P(I(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<m.length;l+=1)m[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(o,null);n[23](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let c;for(c=0;c<s.length;c+=1){const u=I(l,s,c);m[c]?m[c].p(u,_):(m[c]=P(u),m[c].c(),m[c].m(o,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(m,l),n[23](null),g.d()}}}function P(n){let t,a,o,r,s,m;return{c(){t=e.element("div"),a=e.element("img"),m=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,m)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function pe(n){let t,a,o,r,s=n[3].name+"",m,f,p,g=n[3].vendor.name+"",l,_,c,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
2
2
  </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,a=e.space(),o=e.element("div"),r=e.element("p"),m=e.text(s),f=e.space(),p=e.element("p"),l=e.text(g),_=e.space(),c=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(r,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(c,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(b,w){e.insert(b,t,w),e.insert(b,a,w),e.insert(b,o,w),e.append(o,r),e.append(r,m),e.append(o,f),e.append(o,p),e.append(p,l),e.append(o,_),e.append(o,c),e.append(c,d),y||(R=[e.listen(t,"click",n[24]),e.listen(c,"click",n[25])],y=!0)},p(b,w){w[0]&8&&s!==(s=b[3].name+"")&&e.set_data(m,s),w[0]&8&&g!==(g=b[3].vendor.name+"")&&e.set_data(l,g),w[0]&512&&u!==(u=b[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(b){b&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function ge(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("playRandomGame")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function fe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,r){e.insert(o,t,r),e.append(t,a)},p(o,r){r[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function he(n){let t,a,o,r,s,m,f,p,g,l=n[5]&&D(n);function _(d,y){if(d[1])return fe;if(!d[1])return ge}let c=_(n),u=c&&c(n);return{c(){t=e.element("div"),l&&l.c(),a=e.space(),o=e.element("div"),r=e.element("button"),u&&u.c(),s=e.space(),m=e.element("span"),e.attr(m,"class","RandomButtonIcon"),e.attr(r,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper"),e.attr(t,"part","CustomStylingContainer")},m(d,y){e.insert(d,t,y),l&&l.m(t,null),e.append(t,a),e.append(t,o),e.append(o,r),u&&u.m(r,null),e.append(r,s),e.append(r,m),m.innerHTML=n[0],n[27](t),f=!0,p||(g=e.listen(r,"click",n[26]),p=!0)},p(d,y){d[5]?l?(l.p(d,y),y[0]&32&&e.transition_in(l,1)):(l=D(d),l.c(),e.transition_in(l,1),l.m(t,a)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros()),c===(c=_(d))&&u?u.p(d,y):(u&&u.d(1),u=c&&c(d),u&&(u.c(),u.m(r,s))),(!f||y[0]&1)&&(m.innerHTML=d[0])},i(d){f||(e.transition_in(l),f=!0)},o(d){e.transition_out(l),f=!1},d(d){d&&e.detach(t),l&&l.d(),u&&u.d(),n[27](null),p=!1,g()}}}function ye(n,t,a){let o;e.component_subscribe(n,e.$format,i=>a(9,o=i));let{$$slots:r={},$$scope:s}=t,{endpoint:m=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:l=""}=t,{buttontext:_=""}=t,{translationurl:c=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,R=[],b="",w,v=!1,L=!1,C=!1,H=window.navigator.userAgent,x,k,j,F,W=null;le({withLocale:"en",translations:{}});const O=()=>{fetch(c).then(h=>h.json()).then(h=>{Object.keys(h).forEach(G=>{z(G,h[G])})}).catch(h=>{console.log(h)})};Object.keys(B).forEach(i=>{z(i,B[i])});const E=()=>{let i=new URL(`${m}/v1/casino/games`);i.searchParams.append("platform",e.getDevice(H)),i.searchParams.append("datasource",f),i.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&i.searchParams.append("filter",`groups=${y}`),i.searchParams.append("expand","categories,vendor"),i.searchParams.append("pagination","offset=0,limit=1000"),fetch(i.href).then(h=>h.json()).then(h=>{R=h.items,R.length?(a(4,w=U(R.slice(0,19))),a(7,C=!0)):(a(4,w=[]),a(7,C=!1))}).catch(h=>{console.log(h),a(7,C=!1)})},U=i=>{const h=V(i);return h.concat(h)},q=()=>S(this,null,function*(){yield e.tick(),F=Math.floor(Math.random()*(w.length/2))+w.length/2,a(3,b=w[F]),j=k.children[F]}),T=()=>S(this,null,function*(){a(6,L=!1),a(5,v=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield q();const i=window.getComputedStyle(k).getPropertyValue("gap"),h=parseInt(i,10)||0,M=(j.offsetHeight+h)*F,ne=[{transform:"translateX(0px)"},{filter:"blur(5px)"},{transform:`translateY(-${M}px)`}],oe={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};W=k.animate(ne,oe),W.onfinish=()=>{a(6,L=!0)}}),V=i=>{const h=structuredClone(i);let G=h.length,M;for(;G!=0;)M=Math.floor(Math.random()*G),G--,[h[G],h[M]]=[h[M],h[G]];return h},N=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},Y=()=>{a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:v},window.location.href)},X=()=>{re(g)},Z=()=>{let i=document.createElement("style");i.innerHTML=u,x.appendChild(i)},K=()=>{let i=new URL(d),h=document.createElement("style");fetch(i.href).then(G=>G.text()).then(G=>{h.innerHTML=G,setTimeout(()=>{x.appendChild(h)},1)})};function Q(i){e.binding_callbacks[i?"unshift":"push"](()=>{k=i,a(8,k)})}const $=()=>T(),ee=()=>N(),te=()=>T();function ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{x=i,a(2,x)})}return n.$$set=i=>{"endpoint"in i&&a(13,m=i.endpoint),"datasource"in i&&a(14,f=i.datasource),"gameevent"in i&&a(15,p=i.gameevent),"lang"in i&&a(16,g=i.lang),"randombuttonicon"in i&&a(0,l=i.randombuttonicon),"buttontext"in i&&a(1,_=i.buttontext),"translationurl"in i&&a(17,c=i.translationurl),"clientstyling"in i&&a(18,u=i.clientstyling),"clientstylingurl"in i&&a(19,d=i.clientstylingurl),"filteredrandomgamecategories"in i&&a(20,y=i.filteredrandomgamecategories),"$$scope"in i&&a(21,s=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&X(),n.$$.dirty[0]&131072&&c&&O(),n.$$.dirty[0]&24576&&m&&f&&E(),n.$$.dirty[0]&262148&&u&&x&&Z(),n.$$.dirty[0]&524292&&d&&x&&K()},[l,_,x,b,w,v,L,C,k,o,T,N,Y,m,f,p,g,c,u,d,y,s,r,Q,$,ee,te,ae]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,he,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},ie,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}}e.create_custom_element(A,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{}},["close"],[],!0);exports.default=A;
@@ -1,6 +1,6 @@
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, Q as ee, d as E, v as S, R as ie, w as J, C as ce, j, M 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, P as d, N as Qe } from "./CasinoCalendar-pVpX-Ke1.js";
2
- import "./CasinoGamesCategorySectionNd-UmwUcDF_.js";
3
- import { h as Q } from "./CasinoGameThumbnailNd-BL1T_Ubq.js";
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, Q as ee, d as E, v as S, R as ie, w as J, C as ce, j, M 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, P as d, N as Qe } from "./CasinoCalendar-CxDSN6iE.js";
2
+ import "./CasinoGamesCategorySectionNd-legfImJS.js";
3
+ import { h as Q } from "./CasinoGameThumbnailNd-BJSaX82j.js";
4
4
  function de(a, e) {
5
5
  He(a, e);
6
6
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CCJYEXf4.cjs");require("./CasinoGamesCategorySectionNd-D5sdz-QF.cjs");const H=require("./CasinoGameThumbnailNd-CYlOZXU1.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:"Sırala:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",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 Fe(n){e.append_styles(n,"svelte-rhglpq","*,*::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 40px;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;color:var(--emfe-w-color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emfe-w-color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-white, #FFF);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));padding-right:28px}.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{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:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.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 Le(n){let t,a,r,o;function i(d,f){if(d[16]==!0&&d[11].length<2)return Ee;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 Ee(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-nd"),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.name),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.name)&&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 Ie(n){let t,a,r,o,i,l,c,u,m,d,f,w,h,p,T,j,I,P,G,E,b=n[9]==="true"&&$(n);function N(S,y){return S[17]?Te:Le}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="#FFF" 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="#FFF" 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",Ge),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",I=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),G||(E=[e.listen(l,"input",n[32]),e.listen(l,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(j,"click",n[23])],G=!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&&I!==(I=S[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",I),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),G=!1,e.run_all(E)}}}let Ge=50;function xe(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:I="true"}=t,{notfoundicon:P="false"}=t,G=window.navigator.userAgent,E=[],b=[],N={},R="",C,S=!0,y=!1,L=!1,x,D=!1,A,B,O=[];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"&&q()},V=()=>{if(a(12,S=!1),a(16,y=!0),o&&i&&u&&R.length<2){a(14,E=[]);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 F=new URL(`${o}/v1/casino/games/${g[v]}`);F.searchParams.append("language",u),F.searchParams.append("datasource",i),F.searchParams.append("platform",e.getDevice(G)),_.push(de(F,g[v]))}Promise.all(_).then(F=>{F=F.filter(function(z){return!!z}),a(14,E=F.map(z=>(z.isFavorite=J(z.id),z))),E.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(F=>{M("searchError","SearchWidget")})}}Y(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,g)=>{typeof gtag=="function"&&gtag("event",s,{context:g})},ce=()=>{I!="true"&&q()},ue=s=>new Promise((g,_)=>{a(17,L=!0),fetch(s.href).then(v=>v.json()).then(v=>{a(17,L=!1),g(v)}).catch(v=>{a(17,L=!1),console.error(v),_(v)})}),de=(s,g)=>new Promise((_,v)=>{a(17,L=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,L=!1),_(N[g])):fetch(s).then(k=>k.json()).then(k=>{a(17,L=!1),k.error||(N[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,L=!1),console.error(k),v(k)})}),he=()=>{const s=new URL(`${o}/v1/player/${B}/favorites/`);a(17,L=!0);let g={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,L=!1),O=_.items.map(v=>v.id)})},me=()=>{a(31,D=!0),a(18,A=l),a(19,B=c)},J=s=>O.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((F,z)=>{const Ce=new Date(F.schedules[0].startTime),W=new Date(F.schedules[0].endTime);H.hooks(W).diff(k)<_&&(_=H.hooks(W).diff(k),v=z),H.hooks(k).isAfter(Ce)&&H.hooks(k).isBefore(W)&&(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)}},q=()=>{a(11,R=""),a(12,S=!0),a(17,L=!1),a(14,E=[]),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,x.appendChild(s)},Se=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{x.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=()=>q();function ye(s){e.binding_callbacks[s?"unshift":"push"](()=>{x=s,a(13,x)})}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,I=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(G)),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,E=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&&x&&_e(),n.$$.dirty[0]&8200&&d&&x&&Se()},[o,u,m,d,f,w,h,p,j,I,P,R,S,x,E,C,y,L,A,B,r,G,V,ce,fe,q,Z,i,l,c,T,D,be,we,ve,ke,ye]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,xe,Ie,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},Fe,[-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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DEwT2wxN.cjs");require("./CasinoGamesCategorySectionNd-CrTjB4UI.cjs");const H=require("./CasinoGameThumbnailNd-Ddtm0W_J.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:"Sırala:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",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 Fe(n){e.append_styles(n,"svelte-rhglpq","*,*::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 40px;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;color:var(--emfe-w-color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emfe-w-color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-white, #FFF);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));padding-right:28px}.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{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:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E))}.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 Le(n){let t,a,r,o;function i(d,f){if(d[16]==!0&&d[11].length<2)return Ee;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 Ee(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-nd"),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.name),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.name)&&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 Ie(n){let t,a,r,o,i,l,c,u,m,d,f,w,h,p,T,j,I,P,G,E,b=n[9]==="true"&&$(n);function N(S,y){return S[17]?Te:Le}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="#FFF" 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="#FFF" 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",Ge),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",I=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),G||(E=[e.listen(l,"input",n[32]),e.listen(l,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(j,"click",n[23])],G=!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&&I!==(I=S[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",I),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),G=!1,e.run_all(E)}}}let Ge=50;function xe(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:I="true"}=t,{notfoundicon:P="false"}=t,G=window.navigator.userAgent,E=[],b=[],N={},R="",C,S=!0,y=!1,L=!1,x,D=!1,A,B,O=[];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"&&q()},V=()=>{if(a(12,S=!1),a(16,y=!0),o&&i&&u&&R.length<2){a(14,E=[]);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 F=new URL(`${o}/v1/casino/games/${g[v]}`);F.searchParams.append("language",u),F.searchParams.append("datasource",i),F.searchParams.append("platform",e.getDevice(G)),_.push(de(F,g[v]))}Promise.all(_).then(F=>{F=F.filter(function(z){return!!z}),a(14,E=F.map(z=>(z.isFavorite=J(z.id),z))),E.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(F=>{M("searchError","SearchWidget")})}}Y(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,g)=>{typeof gtag=="function"&&gtag("event",s,{context:g})},ce=()=>{I!="true"&&q()},ue=s=>new Promise((g,_)=>{a(17,L=!0),fetch(s.href).then(v=>v.json()).then(v=>{a(17,L=!1),g(v)}).catch(v=>{a(17,L=!1),console.error(v),_(v)})}),de=(s,g)=>new Promise((_,v)=>{a(17,L=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,L=!1),_(N[g])):fetch(s).then(k=>k.json()).then(k=>{a(17,L=!1),k.error||(N[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,L=!1),console.error(k),v(k)})}),he=()=>{const s=new URL(`${o}/v1/player/${B}/favorites/`);a(17,L=!0);let g={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,L=!1),O=_.items.map(v=>v.id)})},me=()=>{a(31,D=!0),a(18,A=l),a(19,B=c)},J=s=>O.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((F,z)=>{const Ce=new Date(F.schedules[0].startTime),W=new Date(F.schedules[0].endTime);H.hooks(W).diff(k)<_&&(_=H.hooks(W).diff(k),v=z),H.hooks(k).isAfter(Ce)&&H.hooks(k).isBefore(W)&&(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)}},q=()=>{a(11,R=""),a(12,S=!0),a(17,L=!1),a(14,E=[]),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,x.appendChild(s)},Se=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{x.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=()=>q();function ye(s){e.binding_callbacks[s?"unshift":"push"](()=>{x=s,a(13,x)})}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,I=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(G)),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,E=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&&x&&_e(),n.$$.dirty[0]&8200&&d&&x&&Se()},[o,u,m,d,f,w,h,p,j,I,P,R,S,x,E,C,y,L,A,B,r,G,V,ce,fe,q,Z,i,l,c,T,D,be,we,ve,ke,ye]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,xe,Ie,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},Fe,[-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;