@everymatrix/casino-lobby 1.94.3 → 1.94.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/components/{CasinoCalendar-DzlY2eI-.cjs → CasinoCalendar-D3JF6R8D.cjs} +1 -1
  2. package/components/{CasinoCalendar-BGqWe_g2.js → CasinoCalendar-Dq8GeDT3.js} +35 -35
  3. package/components/{CasinoCalendar-BaIZzy3s.js → CasinoCalendar-nnqgS7yF.js} +35 -35
  4. package/components/{CasinoCalendarDailyDetails-D40FM7Zy.cjs → CasinoCalendarDailyDetails-CcYd9LIR.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-DeeA1Omj.js → CasinoCalendarDailyDetails-CcbHnuzk.js} +34 -34
  6. package/components/{CasinoCalendarDailyDetails-C1T227Kf.js → CasinoCalendarDailyDetails-PUohXMWV.js} +21 -21
  7. package/components/{CasinoCalendarDailyItem-BvAZ_vmU.js → CasinoCalendarDailyItem-Br4Na8hg.js} +36 -36
  8. package/components/{CasinoCalendarDailyItem-D5Juyc2J.js → CasinoCalendarDailyItem-CM075pBy.js} +36 -36
  9. package/components/{CasinoCalendarDailyItem-CjEswZTf.cjs → CasinoCalendarDailyItem-JaEVZ0_f.cjs} +1 -1
  10. package/components/{CasinoCategoriesSlider-BloIOV4Z.js → CasinoCategoriesSlider-B6qxUC_d.js} +19 -19
  11. package/components/{CasinoCategoriesSlider-BaOehUVC.cjs → CasinoCategoriesSlider-CKhUoWm4.cjs} +1 -1
  12. package/components/{CasinoCategoriesSlider-BOOaC9tA.js → CasinoCategoriesSlider-CpvsAYp0.js} +19 -19
  13. package/components/{CasinoCollectionsProviders-Cc8rGfLP.js → CasinoCollectionsProviders-B-oWBBEp.js} +65 -65
  14. package/components/{CasinoCollectionsProviders-DdLcugaW.js → CasinoCollectionsProviders-DT4NGWZa.js} +76 -76
  15. package/components/{CasinoCollectionsProviders-B-MVIms1.cjs → CasinoCollectionsProviders-OEiExhcQ.cjs} +1 -1
  16. package/components/{CasinoFavoritesSection-D84PSdtp.js → CasinoFavoritesSection-C1laR0Y0.js} +34 -34
  17. package/components/{CasinoFavoritesSection-c4tmG2gF.cjs → CasinoFavoritesSection-D-POYGxw.cjs} +1 -1
  18. package/components/{CasinoFavoritesSection-BOd0ddU3.js → CasinoFavoritesSection-D9xwNuGW.js} +34 -34
  19. package/components/{CasinoFilter-DBbiQLWc.js → CasinoFilter--seLx4j4.js} +79 -79
  20. package/components/{CasinoFilter-DbEPkczE.js → CasinoFilter-DsorOmw7.js} +80 -80
  21. package/components/{CasinoFilter-D7m2S1EC.cjs → CasinoFilter-UtOIVqFh.cjs} +1 -1
  22. package/components/{CasinoGameThumbnail-C7qYv74Q.js → CasinoGameThumbnail-CLY8d-wT.js} +41 -41
  23. package/components/{CasinoGameThumbnail-CluSxASn.js → CasinoGameThumbnail-D15QaGSx.js} +41 -41
  24. package/components/{CasinoGameThumbnail-xTu9xBZx.cjs → CasinoGameThumbnail-Do9XF2-l.cjs} +1 -1
  25. package/components/{CasinoGamesCategorySection-gyv9VwqP.js → CasinoGamesCategorySection-Bc-TGP-C.js} +4 -4
  26. package/components/{CasinoGamesCategorySection-BXc1vNEC.cjs → CasinoGamesCategorySection-CpGGX0lP.cjs} +2 -2
  27. package/components/{CasinoGamesCategorySection-CiJ7d-97.js → CasinoGamesCategorySection-Cyg1hXpM.js} +4 -4
  28. package/components/{CasinoJackpotBanner-jQClSmx5.js → CasinoJackpotBanner-CEhtr5Jk.js} +79 -79
  29. package/components/{CasinoJackpotBanner-CI_5IcOm.cjs → CasinoJackpotBanner-CnFUZSe4.cjs} +1 -1
  30. package/components/{CasinoJackpotBanner-IVDXOfQs.js → CasinoJackpotBanner-CpR1Tr0J.js} +90 -90
  31. package/components/{CasinoLastPlayedSection-CwjkBzPr.js → CasinoLastPlayedSection-DgvFqMuo.js} +41 -41
  32. package/components/{CasinoLastPlayedSection-xBJKYuHK.cjs → CasinoLastPlayedSection-DwBr9Azi.cjs} +1 -1
  33. package/components/{CasinoLastPlayedSection-Sh16rmfM.js → CasinoLastPlayedSection-Gu09NIfv.js} +41 -41
  34. package/components/{CasinoLobby-C3wblCto.js → CasinoLobby-C0W1HXMj.js} +59 -59
  35. package/components/{CasinoLobby-DJwEiZ8f.cjs → CasinoLobby-DeYBdEoa.cjs} +1 -1
  36. package/components/{CasinoLobby-CEpFQ2Lk.js → CasinoLobby-DpNvhztj.js} +59 -59
  37. package/components/{CasinoMostPlayedSection-BGHxZ7Uh.js → CasinoMostPlayedSection-CIrP8duG.js} +41 -41
  38. package/components/{CasinoMostPlayedSection-D2g7K8AC.cjs → CasinoMostPlayedSection-DCF9OdJl.cjs} +1 -1
  39. package/components/{CasinoMostPlayedSection-LkVbbznV.js → CasinoMostPlayedSection-Tavje1Zx.js} +41 -41
  40. package/components/{CasinoMyGames-BHrCo6iY.cjs → CasinoMyGames-BA6KiZxK.cjs} +1 -1
  41. package/components/{CasinoMyGames-44rcHtNJ.js → CasinoMyGames-CtAxBsji.js} +25 -25
  42. package/components/{CasinoMyGames-BoCg0qmV.js → CasinoMyGames-DkyxdH1N.js} +23 -23
  43. package/components/{CasinoPage-D3lnLqEm.js → CasinoPage-BKogr3Kw.js} +10 -10
  44. package/components/{CasinoPage-CiCeX1I2.cjs → CasinoPage-D2KMImtW.cjs} +1 -1
  45. package/components/{CasinoPage-BDC03Nxf.js → CasinoPage-DKZ3wE5j.js} +10 -10
  46. package/components/{CasinoRandomGame-aq-d1buW.js → CasinoRandomGame-BCdkhqXD.js} +80 -80
  47. package/components/{CasinoRandomGame-C4SzV70T.js → CasinoRandomGame-Cd43DWIN.js} +80 -80
  48. package/components/{CasinoRandomGame-CLLWm1MA.cjs → CasinoRandomGame-DUqLfXs4.cjs} +1 -1
  49. package/components/{CasinoSearch-rBNoujCv.js → CasinoSearch-BkWCLrAq.js} +45 -45
  50. package/components/{CasinoSearch-B8Z70D6H.cjs → CasinoSearch-BqYN1abP.cjs} +1 -1
  51. package/components/{CasinoSearch-CnY4rSwc.js → CasinoSearch-BsALFsNc.js} +45 -45
  52. package/components/{CasinoSlider-Cv5FGAc_.js → CasinoSlider-CHPzwNhK.js} +70 -70
  53. package/components/{CasinoSlider-C6xTm6iL.cjs → CasinoSlider-CiUysh4w.cjs} +1 -1
  54. package/components/{CasinoSlider-ClCQh4VR.js → CasinoSlider-D7RGJbih.js} +74 -74
  55. package/components/{CasinoSort-BxZ64Ooq.js → CasinoSort-Bg8HuV-6.js} +58 -58
  56. package/components/{CasinoSort-BP3KM02P.js → CasinoSort-BwbFYjuJ.js} +36 -36
  57. package/components/{CasinoSort-DO8WFSwH.cjs → CasinoSort-HlLcDkp1.cjs} +1 -1
  58. package/components/{CasinoWinners-BWNhjycP.js → CasinoWinners-CGCwCjAA.js} +345 -327
  59. package/components/CasinoWinners-Dyx6a_cl.cjs +1 -0
  60. package/components/CasinoWinners-Qp1azoxw.js +1012 -0
  61. package/components/{GeneralAnimationLoading-BjD4FEWd.cjs → GeneralAnimationLoading-Bp699oaM.cjs} +1 -1
  62. package/components/{GeneralAnimationLoading-DVgd6g54.js → GeneralAnimationLoading-CvbIKLn5.js} +5 -5
  63. package/components/{GeneralAnimationLoading-DzohdpGM.js → GeneralAnimationLoading-DFGoITb0.js} +9 -9
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/components/CasinoWinners-D34nzMVi.js +0 -994
  69. package/components/CasinoWinners-DqHK1VL2.cjs +0 -1
@@ -14,8 +14,8 @@ var ue = (t, e, a) => new Promise((n, r) => {
14
14
  }, i = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(l, s);
15
15
  i((a = a.apply(t, e)).next());
16
16
  });
17
- import { a as Ve, v as Je, S as Ze, i as Ye, s as Ke, f as L, b as Xe, n as he, d as j, K as Qe, k as g, a2 as de, c as I, m as b, M as U, e as k, C as z, a0 as me, h as ae, g as $e, o as et, E as q, F as H, j as fe, I as ge, Z as tt, D as Te, l as u, p as at, q as nt, r as rt, t as ot, $ as st } from "./CasinoLobby-CEpFQ2Lk.js";
18
- import "./CasinoGamesCategorySection-CiJ7d-97.js";
17
+ import { d as Ve, b as Je, S as Ze, y as Ye, M as Xe, t as L, f as Ke, E as he, p as j, L as Qe, g, T as de, z as I, e as b, D as U, q as k, V as E, Y as me, u as ae, k as $e, G as et, R as q, Z as H, h as fe, s as ge, o as tt, r as Te, Q as u, N as at, O as nt, P as rt, l as ot, a as st } from "./CasinoLobby-DpNvhztj.js";
18
+ import "./CasinoGamesCategorySection-Cyg1hXpM.js";
19
19
  function pe(t, e) {
20
20
  Ve(t, e);
21
21
  }
@@ -240,7 +240,7 @@ function ut(t, e) {
240
240
  return a.getTime() < n.getTime();
241
241
  }
242
242
  function ht(t) {
243
- Xe(t, "svelte-nijkoq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
243
+ Ke(t, "svelte-nijkoq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
244
244
  }
245
245
  function _e(t, e, a) {
246
246
  const n = t.slice();
@@ -301,7 +301,7 @@ function dt(t) {
301
301
  );
302
302
  return {
303
303
  c() {
304
- i && i.c(), e = z(), a = k("div"), c && c.c(), n = z(), m && m.c(), g(a, "class", r = "SearchResultsContainer " + /*searchActive*/
304
+ i && i.c(), e = E(), a = k("div"), c && c.c(), n = E(), m && m.c(), g(a, "class", r = "SearchResultsContainer " + /*searchActive*/
305
305
  (t[17] == !0 ? "" : "NotVisible"));
306
306
  },
307
307
  m(h, f) {
@@ -374,7 +374,7 @@ function gt(t) {
374
374
  );
375
375
  return {
376
376
  c() {
377
- n && n.c(), e = z(), r && r.c(), a = Te();
377
+ n && n.c(), e = E(), r && r.c(), a = Te();
378
378
  },
379
379
  m(l, s) {
380
380
  n && n.m(l, s), I(l, e, s), r && r.m(l, s), I(l, a, s);
@@ -421,7 +421,7 @@ function ye(t) {
421
421
  );
422
422
  return {
423
423
  c() {
424
- e = k("div"), i && i.c(), a = z(), n = k("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
424
+ e = k("div"), i && i.c(), a = E(), n = k("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
425
425
  (t[10] == "true" ? "WithIcon" : ""));
426
426
  },
427
427
  m(c, m) {
@@ -705,7 +705,7 @@ function Fe(t) {
705
705
  );
706
706
  return {
707
707
  c() {
708
- e = k("div"), f && f.c(), a = z(), n = k("p"), l = H(r), s = z(), i = k("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
708
+ e = k("div"), f && f.c(), a = E(), n = k("p"), l = H(r), s = E(), i = k("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
709
709
  (t[10] == "true" ? "WithIcon" : ""));
710
710
  },
711
711
  m(w, d) {
@@ -745,16 +745,16 @@ function pt(t) {
745
745
  /*cancelbutton*/
746
746
  t[9] === "true" && we(t)
747
747
  );
748
- function G(_, T) {
748
+ function D(_, T) {
749
749
  return (
750
750
  /*isLoading*/
751
751
  _[18] ? mt : dt
752
752
  );
753
753
  }
754
- let B = G(t), R = B(t);
754
+ let B = D(t), R = B(t);
755
755
  return {
756
756
  c() {
757
- e = k("div"), a = k("div"), n = k("div"), r = k("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = z(), s = k("input"), c = z(), m = k("span"), h = me("svg"), f = me("path"), d = z(), v && v.c(), N = z(), P = k("div"), J = z(), R.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
757
+ e = k("div"), a = k("div"), n = k("div"), r = k("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = E(), s = k("input"), c = E(), m = k("span"), h = me("svg"), f = me("path"), d = E(), v && v.c(), N = E(), P = k("div"), J = E(), R.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
758
758
  t[21]("placeHolderSearchGames")), g(s, "maxlength", St), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
759
759
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
760
760
  (t[14].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
@@ -819,7 +819,7 @@ function pt(t) {
819
819
  65536 && p !== (p = "Search " + /*searchCancelled*/
820
820
  (_[16] ? "" : "SearchAnimation")) && g(n, "class", p), T[0] & /*cancelbutton*/
821
821
  512 && M !== (M = /*cancelbutton*/
822
- _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = G(_)) && R ? R.p(_, T) : (R.d(1), R = B(_), R && (R.c(), R.m(e, null)));
822
+ _[9] != "true" ? "OverlayCancel" : "") && g(P, "class", M), B === (B = D(_)) && R ? R.p(_, T) : (R.d(1), R = B(_), R && (R.c(), R.m(e, null)));
823
823
  },
824
824
  i: he,
825
825
  o: he,
@@ -832,7 +832,7 @@ let St = 50;
832
832
  function bt(t, e, a) {
833
833
  let n;
834
834
  $e(t, st, (o) => a(21, n = o));
835
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], B = {}, R = "", _, T = !0, Z = !1, E = !1, x, K = !1, X, Q, re = [], je;
835
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], D = [], B = {}, R = "", _, T = !0, Z = !1, z = !1, x, X = !1, K, Q, re = [], je;
836
836
  const Ie = () => {
837
837
  fetch(N).then((S) => S.json()).then((S) => {
838
838
  Object.keys(S).forEach((y) => {
@@ -846,7 +846,7 @@ function bt(t, e, a) {
846
846
  pe(o, Se[o]);
847
847
  });
848
848
  const oe = (o) => {
849
- o.data && o.data.type == "SearchedItemClicked" && xe(o.data.gameId), o.data.type == "UserSessionID" && (a(19, X = o.data.session), a(20, Q = o.data.userid), a(33, K = !0)), o.data.type == "CategoryChange" && $();
849
+ o.data && o.data.type == "SearchedItemClicked" && xe(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(33, X = !0)), o.data.type == "CategoryChange" && $();
850
850
  }, se = () => {
851
851
  if (a(16, T = !1), a(17, Z = !0), r && l && c && R.length < 2) {
852
852
  a(13, v = []);
@@ -855,14 +855,14 @@ function bt(t, e, a) {
855
855
  let y = [], C = 0, F = S.length;
856
856
  if (F > 0) {
857
857
  for (C = 0; C < F; C++) {
858
- let D = new URL(`${r}/v1/casino/games/${S[C]}`);
859
- D.searchParams.append("language", c), D.searchParams.append("datasource", l), D.searchParams.append("platform", ae(W)), y.push(Ee(D, S[C]));
858
+ let G = new URL(`${r}/v1/casino/games/${S[C]}`);
859
+ G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ae(W)), y.push(ze(G, S[C]));
860
860
  }
861
- Promise.all(y).then((D) => {
862
- D = D.filter(function(O) {
861
+ Promise.all(y).then((G) => {
862
+ G = G.filter(function(O) {
863
863
  return !!O;
864
- }), a(13, v = D.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Y("searchSuccess", "SearchWidget") : Y("searchFail", "SearchWidget");
865
- }).catch((D) => {
864
+ }), a(13, v = G.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Y("searchSuccess", "SearchWidget") : Y("searchFail", "SearchWidget");
865
+ }).catch((G) => {
866
866
  Y("searchError", "SearchWidget");
867
867
  });
868
868
  }
@@ -870,48 +870,48 @@ function bt(t, e, a) {
870
870
  ce(Z), Y("searchAttempt", "SearchWidget"), Y("SearchInitialized", "SearchWidget");
871
871
  }, Y = (o, S) => {
872
872
  typeof gtag == "function" && gtag("event", o, { context: S });
873
- }, De = () => {
873
+ }, Ge = () => {
874
874
  M != "true" && $();
875
- }, Ge = (o) => new Promise((S, y) => {
876
- a(18, E = !0), fetch(o.href).then((C) => C.json()).then((C) => {
877
- a(18, E = !1), S(C);
875
+ }, De = (o) => new Promise((S, y) => {
876
+ a(18, z = !0), fetch(o.href).then((C) => C.json()).then((C) => {
877
+ a(18, z = !1), S(C);
878
878
  }).catch((C) => {
879
- a(18, E = !1), console.error(C), y(C);
879
+ a(18, z = !1), console.error(C), y(C);
880
880
  });
881
- }), Ee = (o, S) => new Promise((y, C) => {
882
- a(18, E = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, E = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
883
- a(18, E = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
881
+ }), ze = (o, S) => new Promise((y, C) => {
882
+ a(18, z = !0), S && Object.keys(B).indexOf(S) >= 0 ? (a(18, z = !1), y(B[S])) : fetch(o).then((F) => F.json()).then((F) => {
883
+ a(18, z = !1), F.error || (B[F[0].gameId] = F[0]), y(F[0]);
884
884
  }).catch((F) => {
885
- a(18, E = !1), console.error(F), C(F);
885
+ a(18, z = !1), console.error(F), C(F);
886
886
  });
887
- }), ze = () => {
887
+ }), Ee = () => {
888
888
  const o = new URL(`${r}/v1/player/${Q}/favorites/`);
889
- a(18, E = !0);
889
+ a(18, z = !0);
890
890
  let S = {
891
891
  method: "GET",
892
- headers: { "X-SessionID": X }
892
+ headers: { "X-SessionID": K }
893
893
  };
894
894
  fetch(o.href, S).then((y) => y.json()).then((y) => {
895
- a(18, E = !1), re = y.items.map((C) => C.id);
895
+ a(18, z = !1), re = y.items.map((C) => C.id);
896
896
  });
897
897
  }, Ne = () => {
898
- a(33, K = !0), a(19, X = s), a(20, Q = i);
898
+ a(33, X = !0), a(19, K = s), a(20, Q = i);
899
899
  }, le = (o) => re.findIndex((S) => S == o) !== -1, Pe = (o) => {
900
900
  if ((o == null ? void 0 : o.length) === 0)
901
901
  return "";
902
902
  let S, y = 99999999999, C;
903
903
  const F = new Date(Date.now());
904
- return o.forEach((D, O) => {
905
- const Ue = new Date(D.schedules[0].startTime), te = new Date(D.schedules[0].endTime);
904
+ return o.forEach((G, O) => {
905
+ const Ue = new Date(G.schedules[0].startTime), te = new Date(G.schedules[0].endTime);
906
906
  be(new Date(te), new Date(F)) < y && (y = be(new Date(te), new Date(F)), C = O), ct(new Date(F), new Date(Ue)) && ut(new Date(F), new Date(te)) && (S = o[C].name);
907
907
  }), S;
908
908
  }, xe = (o) => {
909
- if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
909
+ if (D = localStorage.getItem("searchedGamesWds_casino"), D ? D = D.split(",") : D = [], D.indexOf(o) === -1) {
910
910
  let S;
911
- G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
911
+ D.unshift(o), S = D.join(","), localStorage.setItem("searchedGamesWds_casino", S);
912
912
  }
913
913
  }, $ = () => {
914
- a(14, R = ""), a(16, T = !0), a(18, E = !1), a(13, v = []), a(17, Z = !1), ce(Z);
914
+ a(14, R = ""), a(16, T = !0), a(18, z = !1), a(13, v = []), a(17, Z = !1), ce(Z);
915
915
  }, ie = () => {
916
916
  a(14, R = ""), _.focus();
917
917
  }, ce = (o) => {
@@ -927,7 +927,7 @@ function bt(t, e, a) {
927
927
  }, Be = it(() => ue(this, null, function* () {
928
928
  if (R.length >= 2) {
929
929
  const o = new URL(`${r}/v1/casino/games`);
930
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Ge(o).then((S) => {
930
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), De(o).then((S) => {
931
931
  a(13, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
932
932
  });
933
933
  } else
@@ -959,7 +959,7 @@ function bt(t, e, a) {
959
959
  1073741824 | t.$$.dirty[1] & /*userid*/
960
960
  1 && s && i && Ne(), t.$$.dirty[0] & /*showfavorites*/
961
961
  256 | t.$$.dirty[1] & /*isLoggedIn*/
962
- 4 && P && K && ze(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
962
+ 4 && P && X && Ee(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
963
963
  4100 && m && x && at(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
964
964
  4104 && h && x && nt(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
965
965
  6144 && x && rt(x, `${A}.Style`, je);
@@ -982,13 +982,13 @@ function bt(t, e, a) {
982
982
  _,
983
983
  T,
984
984
  Z,
985
- E,
986
- X,
985
+ z,
986
+ K,
987
987
  Q,
988
988
  n,
989
989
  W,
990
990
  se,
991
- De,
991
+ Ge,
992
992
  Pe,
993
993
  $,
994
994
  ie,
@@ -997,7 +997,7 @@ function bt(t, e, a) {
997
997
  s,
998
998
  i,
999
999
  N,
1000
- K,
1000
+ X,
1001
1001
  Ae,
1002
1002
  Oe,
1003
1003
  qe,
@@ -1012,7 +1012,7 @@ class _t extends Ze {
1012
1012
  e,
1013
1013
  bt,
1014
1014
  pt,
1015
- Ke,
1015
+ Xe,
1016
1016
  {
1017
1017
  endpoint: 0,
1018
1018
  datasource: 29,
@@ -1 +1 @@
1
- "use strict";var $=(a,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(h){o(h)}},l=u=>{try{c(n.throw(u))}catch(h){o(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoLobby-DJwEiZ8f.cjs");require("./CasinoGamesCategorySection-BXc1vNEC.cjs");function ee(a,t){e.addMessages(a,t)}function Ie(a){e.$locale.set(a)}const te={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return W(2,arguments),P(a).getTime()-P(t).getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function ze(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ee(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ne(a,t,n){const r=a.slice();return r[55]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ne(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[14].length<2)return Me;if(d[13].length!=0)return xe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[16]===!1?u?u.p(d,f):(u=ie(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?h?h.p(d,f):(h=ue(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Pe(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function xe(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Me(a){let t,n,r=a[13].length!==0&&oe(a),o=a[13].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[13].length!==0?r?r.p(i,l):(r=oe(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].length==0?o?o.p(i,l):(o=se(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function oe(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function se(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[13]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ce(ne(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35138047){n=e.ensure_array_like(o[13]);let l;for(l=0;l<n.length;l+=1){const c=ne(o,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ce(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",o=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[55].advancedTags)==null?void 0:m.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&8192&&n!==(n=m[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=m[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&o!==(o=m[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&8192&&i!==(i=m[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=m[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((T=m[55].advancedTags)==null?void 0:T.length)>0&&m[25](m[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=m[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=m[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&8192&&d!==(d=m[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=m[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=m[55].details?m[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ue(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&de();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=de(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function de(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Be(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,D,x,z,N,b=a[9]==="true"&&re(a);function F(_,R){return _[18]?Pe:Ne}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),x=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ae),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[14]),a[35](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,x),v.m(t,null),a[38](t),z||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],z=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,R):(b=re(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&512&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),v.d(),a[38](null),z=!1,e.run_all(N)}}}let Ae=50;function Oe(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:x="false"}=t,{mbsource:z}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,O,q,J=[],he;const fe=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(s=>{ee(s,te[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ve(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,O=s.data.session),n(20,q=s.data.userid),n(33,A=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,R=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(13,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${o}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(N)),w.push(_e(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(E){return!!E}),n(13,b=C.map(E=>(E.isFavorite=X(E.id),E))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(C=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&&gtag("event",s,{context:p})},ge=()=>{D!="true"&&H()},pe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),_e=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),Se=()=>{const s=new URL(`${o}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":O}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},be=()=>{n(33,A=!0),n(19,O=l),n(20,q=c)},X=s=>J.findIndex(p=>p==s)!==-1,we=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((C,E)=>{const je=new Date(C.schedules[0].startTime),U=new Date(C.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),y=E),Ge(new Date(k),new Date(je))&&ze(new Date(k),new Date(U))&&(p=s[y].name)}),p},ve=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(14,v=""),n(16,R=!0),n(18,L=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ye=()=>{Ie(u)},ke=De(()=>$(this,null,function*(){if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),pe(s).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else R||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function Re(){v=this.value,n(14,v)}function Ce(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(15,_)})}const Fe=()=>K(),Le=()=>H();function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{I=s,n(12,I)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(29,i=s.datasource),"session"in s&&n(30,l=s.session),"userid"in s&&n(31,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(32,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,D=s.cancelbutton),"notfoundicon"in s&&n(10,x=s.notfoundicon),"mbsource"in s&&n(11,z=s.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&T&&fe(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&be(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&A&&Se(),a.$$.dirty[0]&4100&&h&&I&&e.setClientStyling(I,h),a.$$.dirty[0]&4104&&d&&I&&e.setClientStylingURL(I,d),a.$$.dirty[0]&6144&&I&&e.setStreamStyling(I,`${z}.Style`,he)},[o,u,h,d,f,S,m,g,j,D,x,z,I,b,v,_,R,M,L,O,q,r,N,Y,ge,we,H,K,ke,i,l,c,T,A,Re,Ce,Fe,Le,Te]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Be,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ee,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;
1
+ "use strict";var $=(a,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(h){o(h)}},l=u=>{try{c(n.throw(u))}catch(h){o(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoLobby-DeYBdEoa.cjs");require("./CasinoGamesCategorySection-CpGGX0lP.cjs");function ee(a,t){e.addMessages(a,t)}function Ie(a){e.$locale.set(a)}const te={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return W(2,arguments),P(a).getTime()-P(t).getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function ze(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ee(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ne(a,t,n){const r=a.slice();return r[55]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ne(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[14].length<2)return Me;if(d[13].length!=0)return xe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[16]===!1?u?u.p(d,f):(u=ie(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?h?h.p(d,f):(h=ue(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Pe(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function xe(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Me(a){let t,n,r=a[13].length!==0&&oe(a),o=a[13].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[13].length!==0?r?r.p(i,l):(r=oe(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].length==0?o?o.p(i,l):(o=se(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function oe(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function se(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[13]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ce(ne(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35138047){n=e.ensure_array_like(o[13]);let l;for(l=0;l<n.length;l+=1){const c=ne(o,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ce(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",o=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[55].advancedTags)==null?void 0:m.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&8192&&n!==(n=m[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=m[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&o!==(o=m[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&8192&&i!==(i=m[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=m[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((T=m[55].advancedTags)==null?void 0:T.length)>0&&m[25](m[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=m[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=m[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&8192&&d!==(d=m[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=m[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=m[55].details?m[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ue(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&de();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=de(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function de(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Be(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,D,x,z,N,b=a[9]==="true"&&re(a);function F(_,R){return _[18]?Pe:Ne}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),x=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ae),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[14]),a[35](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,x),v.m(t,null),a[38](t),z||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],z=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,R):(b=re(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&512&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),v.d(),a[38](null),z=!1,e.run_all(N)}}}let Ae=50;function Oe(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:x="false"}=t,{mbsource:z}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,O,q,J=[],he;const fe=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(s=>{ee(s,te[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ve(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,O=s.data.session),n(20,q=s.data.userid),n(33,A=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,R=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(13,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${o}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(N)),w.push(_e(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(E){return!!E}),n(13,b=C.map(E=>(E.isFavorite=X(E.id),E))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(C=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&&gtag("event",s,{context:p})},ge=()=>{D!="true"&&H()},pe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),_e=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),Se=()=>{const s=new URL(`${o}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":O}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},be=()=>{n(33,A=!0),n(19,O=l),n(20,q=c)},X=s=>J.findIndex(p=>p==s)!==-1,we=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((C,E)=>{const je=new Date(C.schedules[0].startTime),U=new Date(C.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),y=E),Ge(new Date(k),new Date(je))&&ze(new Date(k),new Date(U))&&(p=s[y].name)}),p},ve=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(14,v=""),n(16,R=!0),n(18,L=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ye=()=>{Ie(u)},ke=De(()=>$(this,null,function*(){if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),pe(s).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else R||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function Re(){v=this.value,n(14,v)}function Ce(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(15,_)})}const Fe=()=>K(),Le=()=>H();function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{I=s,n(12,I)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(29,i=s.datasource),"session"in s&&n(30,l=s.session),"userid"in s&&n(31,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(32,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,D=s.cancelbutton),"notfoundicon"in s&&n(10,x=s.notfoundicon),"mbsource"in s&&n(11,z=s.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&T&&fe(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&be(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&A&&Se(),a.$$.dirty[0]&4100&&h&&I&&e.setClientStyling(I,h),a.$$.dirty[0]&4104&&d&&I&&e.setClientStylingURL(I,d),a.$$.dirty[0]&6144&&I&&e.setStreamStyling(I,`${z}.Style`,he)},[o,u,h,d,f,S,m,g,j,D,x,z,I,b,v,_,R,M,L,O,q,r,N,Y,ge,we,H,K,ke,i,l,c,T,A,Re,Ce,Fe,Le,Te]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Be,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ee,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;