@everymatrix/casino-page-nd 1.74.1 → 1.74.3

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 (95) hide show
  1. package/components/{CasinoCalendar-nkrznZpo.js → CasinoCalendar-BuZNkBai.js} +1032 -1067
  2. package/components/CasinoCalendar-CFUoQxq0.cjs +19 -0
  3. package/components/{CasinoCalendar-OJZrTCla.js → CasinoCalendar-DdMvhCOA.js} +1070 -1105
  4. package/components/{CasinoCalendarDailyDetails-D-PrPj8s.js → CasinoCalendarDailyDetails-BCVIut1W.js} +91 -91
  5. package/components/{CasinoCalendarDailyDetails-Jxs5L-1T.js → CasinoCalendarDailyDetails-ClfGxbko.js} +91 -91
  6. package/components/CasinoCalendarDailyDetails-Dqb6yp--.cjs +1 -0
  7. package/components/{CasinoCalendarDailyItem-BJHwZkKJ.cjs → CasinoCalendarDailyItem-BdDom59r.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-DrZ46wZq.js → CasinoCalendarDailyItem-C1ADnaTt.js} +34 -34
  9. package/components/{CasinoCalendarDailyItem-D24LBmnc.js → CasinoCalendarDailyItem-CYfiDQkf.js} +34 -34
  10. package/components/{CasinoCollectionsProviders-CTlOHOW4.js → CasinoCollectionsProviders-4kHMGeo6.js} +44 -44
  11. package/components/{CasinoCollectionsProviders-DBLRCWWo.js → CasinoCollectionsProviders-Br5ZzIwL.js} +68 -68
  12. package/components/{CasinoCollectionsProviders-CzBxsowK.cjs → CasinoCollectionsProviders-CM25qKz7.cjs} +1 -1
  13. package/components/{CasinoFavoritesSectionNd-BvtEpQ6i.js → CasinoFavoritesSectionNd-BpKau9du.js} +20 -20
  14. package/components/{CasinoFavoritesSectionNd-DjCGMH2J.js → CasinoFavoritesSectionNd-BpQfUsRD.js} +20 -20
  15. package/components/{CasinoFavoritesSectionNd-Ddlbb4CB.cjs → CasinoFavoritesSectionNd-DtMLhJwE.cjs} +1 -1
  16. package/components/{CasinoFilter-CTkRb1UC.js → CasinoFilter-1-YLqdq0.js} +50 -50
  17. package/components/{CasinoFilter-BAo8wmWH.cjs → CasinoFilter-Cc3Yv48X.cjs} +1 -1
  18. package/components/{CasinoFilter-5hTa8CKw.js → CasinoFilter-akdowSz4.js} +50 -50
  19. package/components/{CasinoGameThumbnailNd-DpkvK-o0.js → CasinoGameThumbnailNd-027TQl9L.js} +670 -668
  20. package/components/{CasinoGameThumbnailNd-OvhXfQYD.js → CasinoGameThumbnailNd-4vkDFOTQ.js} +672 -670
  21. package/components/CasinoGameThumbnailNd-Ca2b8Stl.cjs +30 -0
  22. package/components/CasinoGamesCategorySectionNd-BAynLaaR.cjs +1 -0
  23. package/components/{CasinoGamesCategorySectionNd-Dyi26BBy.js → CasinoGamesCategorySectionNd-CGOJc4eo.js} +139 -139
  24. package/components/{CasinoGamesCategorySectionNd-DDWXdavX.js → CasinoGamesCategorySectionNd-FSqr3CSC.js} +150 -150
  25. package/components/{CasinoJackpotBanner-C51E4rGA.js → CasinoJackpotBanner--90-l4pm.js} +84 -84
  26. package/components/{CasinoJackpotBanner-CTxmfDSK.js → CasinoJackpotBanner-Bdzek1XC.js} +90 -90
  27. package/components/{CasinoJackpotBanner-DBer4LlE.cjs → CasinoJackpotBanner-CyyNiIY2.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSectionNd-CFi7Gnb3.cjs → CasinoLastPlayedSectionNd-6oMHidCr.cjs} +1 -1
  29. package/components/{CasinoLastPlayedSectionNd-2O2TZp0a.js → CasinoLastPlayedSectionNd-DSncRKaO.js} +41 -41
  30. package/components/{CasinoLastPlayedSectionNd-CsvEU20d.js → CasinoLastPlayedSectionNd-DilDkELD.js} +41 -41
  31. package/components/{CasinoMostPlayedSectionNd-emZWvqJZ.cjs → CasinoMostPlayedSectionNd-B1xoI2QM.cjs} +1 -1
  32. package/components/{CasinoMostPlayedSectionNd-DTZYTXkp.js → CasinoMostPlayedSectionNd-BrdGaj7a.js} +46 -46
  33. package/components/{CasinoMostPlayedSectionNd-fUIG4YVh.js → CasinoMostPlayedSectionNd-S6ts_CYh.js} +46 -46
  34. package/components/{CasinoMyGamesNd-C7EhUNcw.cjs → CasinoMyGamesNd-BS2PoJ2a.cjs} +1 -1
  35. package/components/{CasinoMyGamesNd-BWcI8LIL.js → CasinoMyGamesNd-C2FLMGUe.js} +42 -42
  36. package/components/{CasinoMyGamesNd-C-mFyaRP.js → CasinoMyGamesNd-CkEhzUen.js} +41 -41
  37. package/components/{CasinoPageNd-DPcb44Qe.js → CasinoPageNd-BRWbTx8q.js} +93 -93
  38. package/components/{CasinoPageNd-Df3xbGnc.cjs → CasinoPageNd-DqENu2Tu.cjs} +1 -1
  39. package/components/{CasinoPageNd-C8cezRi1.js → CasinoPageNd-mPiA5_16.js} +95 -95
  40. package/components/{CasinoRandomGame-KabCqklE.cjs → CasinoRandomGame-CdQVMLbd.cjs} +2 -2
  41. package/components/{CasinoRandomGame-BAEkb2tu.js → CasinoRandomGame-CtAOJXnF.js} +110 -110
  42. package/components/{CasinoRandomGame-BmMyshhG.js → CasinoRandomGame-D7RweU9Y.js} +59 -59
  43. package/components/{CasinoSearchNd-Du-3roUg.js → CasinoSearchNd-CtwL1Nv0.js} +32 -32
  44. package/components/{CasinoSearchNd-BwzgUiVX.js → CasinoSearchNd-DCZ8s3vo.js} +50 -50
  45. package/components/{CasinoSearchNd-p14Fvfva.cjs → CasinoSearchNd-DFcbrjhC.cjs} +1 -1
  46. package/components/{CasinoSort-DuhCSjcj.js → CasinoSort-5WNP_G3S.js} +37 -37
  47. package/components/{CasinoSort-Bq2rlwaB.js → CasinoSort-BawqALZV.js} +37 -37
  48. package/components/{CasinoSort-DoQJjcDE.cjs → CasinoSort-Du3lmlNe.cjs} +1 -1
  49. package/components/{CasinoWinners-DrPaYn8M.js → CasinoWinners-BE029Vxq.js} +92 -92
  50. package/components/{CasinoWinners-BW3nKr2t.js → CasinoWinners-DCiuykjq.js} +91 -91
  51. package/components/{CasinoWinners-D7mQLu0o.cjs → CasinoWinners-XkR8Kmij.cjs} +1 -1
  52. package/components/{GeneralAnimationLoading-BK4eHT2E.js → GeneralAnimationLoading-BETs-Kib.js} +14 -14
  53. package/components/{GeneralAnimationLoading-BlaU9rOM.js → GeneralAnimationLoading-BlN4kA08.js} +14 -14
  54. package/components/{GeneralAnimationLoading-QrfZPZRh.cjs → GeneralAnimationLoading-lIyg2-0l.cjs} +1 -1
  55. package/es2015/casino-page-nd.cjs +1 -1
  56. package/es2015/casino-page-nd.js +1 -1
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{casino-play-random-game-Ct3VSPhq.js → casino-play-random-game-Bc2XLGRl.js} +1 -1
  60. package/stencil/{casino-play-random-game-DyfvRpYv.js → casino-play-random-game-d1PoE_Vf.js} +1 -1
  61. package/stencil/{casino-play-random-game-BMX5GkhL.cjs → casino-play-random-game-wi94nFPy.cjs} +1 -1
  62. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  63. package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-C7V2DWFg.js} +176 -176
  64. package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-DIpvPU9H.js} +187 -187
  65. package/stencil/index-ab3202d6-BwBGn0Oj.cjs +1 -0
  66. package/stencil/index-ab3202d6-CiI9jxo9.js +575 -0
  67. package/stencil/{index-ab3202d6-BXlsno-y.js → index-ab3202d6-Cowbr6qN.js} +195 -195
  68. package/stencil/index-b2193545-BL364Gzq.js +503 -0
  69. package/stencil/index-b2193545-DdqB2rk5.js +519 -0
  70. package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
  71. package/stencil/{ui-image-bN_3pDWc.js → ui-image-B_HWMBI-.js} +1 -1
  72. package/stencil/{ui-image-2_i-_1cj.js → ui-image-CzGNxx73.js} +1 -1
  73. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
  74. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
  75. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
  76. package/stencil/{ui-image-eY8BEG3a.cjs → ui-image-wubI3fkK.cjs} +1 -1
  77. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-CzFe50WB.js} +2 -2
  78. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
  79. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-z5LhXZY2.js} +2 -2
  80. package/stencil/{ui-skeleton-CSMUbPcJ.js → ui-skeleton-CsmgJUYN.js} +2 -2
  81. package/stencil/{ui-skeleton-DcmFcn7k.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
  82. package/stencil/{ui-skeleton-ae35c6f2-DDHvWmVB.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
  83. package/stencil/{ui-skeleton-ae35c6f2-D1Tb0H8D.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
  84. package/stencil/{ui-skeleton-ae35c6f2-9hZ7WFQc.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
  85. package/stencil/{ui-skeleton-CiszU04_.js → ui-skeleton-yRWBmyfK.js} +2 -2
  86. package/components/CasinoCalendar-BEFWuyZL.cjs +0 -19
  87. package/components/CasinoCalendarDailyDetails-B0uEWbbt.cjs +0 -1
  88. package/components/CasinoGameThumbnailNd-Cl4NaQ7h.cjs +0 -30
  89. package/components/CasinoGamesCategorySectionNd-COgh4Qnu.cjs +0 -1
  90. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  91. package/stencil/index-ab3202d6-Dv-5ZSZX.cjs +0 -1
  92. package/stencil/index-ab3202d6-ncf4oQhs.js +0 -575
  93. package/stencil/index-b2193545-DVT8jgVo.cjs +0 -1
  94. package/stencil/index-b2193545-Dxw-xjac.js +0 -503
  95. package/stencil/index-b2193545-TbRClz6K.js +0 -519
@@ -1,11 +1,11 @@
1
- import { a as Be, $ as He, S as qe, i as We, s as Oe, f as L, b as Ue, n as le, d as I, M as Ve, r as f, Q as ie, h as j, p as S, A as Z, j as y, B as N, F as ce, P as ee, k as Je, o as Ze, m as H, q, C as ue, v as he, w as Ye, T as Re, E as u, H as Ke, I as Qe, J as Xe, K as $e, L as et } from "./CasinoCalendar-OJZrTCla.js";
2
- import "./CasinoGamesCategorySectionNd-Dyi26BBy.js";
3
- import { d as de, i as tt, a as at } from "./CasinoGameThumbnailNd-OvhXfQYD.js";
1
+ import { a as He, $ as Be, S as qe, i as We, f as L, c as Oe, s as Ue, b as Ve, e as y, w as N, K as le, y as f, P as ee, d as j, z as S, Q as ie, A as Z, G as ce, j as I, M as Je, k as Ze, o as Ye, x as B, E as q, n as ue, p as Ke, q as Qe, r as Xe, v as he, T as Re, F as $e, H as u, J as et } from "./CasinoCalendar-DdMvhCOA.js";
2
+ import "./CasinoGamesCategorySectionNd-CGOJc4eo.js";
3
+ import { d as de, i as tt, a as at } from "./CasinoGameThumbnailNd-4vkDFOTQ.js";
4
4
  function me(a, e) {
5
- Be(a, e);
5
+ He(a, e);
6
6
  }
7
7
  function nt(a) {
8
- He.set(a);
8
+ Be.set(a);
9
9
  }
10
10
  const ge = {
11
11
  en: {
@@ -191,7 +191,7 @@ const ge = {
191
191
  }
192
192
  };
193
193
  function rt(a) {
194
- Ue(a, "svelte-1vt65d9", "*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{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 .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}");
194
+ Ve(a, "svelte-1vt65d9", "*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{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 .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}");
195
195
  }
196
196
  function fe(a, e, t) {
197
197
  const n = a.slice();
@@ -204,7 +204,7 @@ function pe(a) {
204
204
  ), n, r, l, s;
205
205
  return {
206
206
  c() {
207
- e = y("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
207
+ e = y("small"), n = B(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
208
208
  (a[13] ? "NotVisible" : ""));
209
209
  },
210
210
  m(i, c) {
@@ -218,7 +218,7 @@ function pe(a) {
218
218
  p(i, c) {
219
219
  c[0] & /*$_*/
220
220
  2097152 && t !== (t = /*$_*/
221
- i[21]("cancel") + "") && H(n, t), c[0] & /*searchCancelled*/
221
+ i[21]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
222
222
  8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
223
223
  (i[13] ? "NotVisible" : "")) && f(e, "class", r);
224
224
  },
@@ -278,7 +278,7 @@ function st(a) {
278
278
  ), n;
279
279
  return {
280
280
  c() {
281
- e = y("p"), n = q(t), f(e, "class", "LoadingContent");
281
+ e = y("p"), n = B(t), f(e, "class", "LoadingContent");
282
282
  },
283
283
  m(r, l) {
284
284
  j(r, e, l), S(e, n);
@@ -286,7 +286,7 @@ function st(a) {
286
286
  p(r, l) {
287
287
  l[0] & /*$_*/
288
288
  2097152 && t !== (t = /*$_*/
289
- r[21]("loading") + "") && H(n, t);
289
+ r[21]("loading") + "") && q(n, t);
290
290
  },
291
291
  d(r) {
292
292
  r && I(e);
@@ -300,7 +300,7 @@ function lt(a) {
300
300
  ), n;
301
301
  return {
302
302
  c() {
303
- e = y("p"), n = q(t), f(e, "class", "SearchMessage");
303
+ e = y("p"), n = B(t), f(e, "class", "SearchMessage");
304
304
  },
305
305
  m(r, l) {
306
306
  j(r, e, l), S(e, n);
@@ -308,7 +308,7 @@ function lt(a) {
308
308
  p(r, l) {
309
309
  l[0] & /*$_*/
310
310
  2097152 && t !== (t = /*$_*/
311
- r[21]("searchResult") + "") && H(n, t);
311
+ r[21]("searchResult") + "") && q(n, t);
312
312
  },
313
313
  d(r) {
314
314
  r && I(e);
@@ -347,7 +347,7 @@ function _e(a) {
347
347
  ), n;
348
348
  return {
349
349
  c() {
350
- e = y("p"), n = q(t), f(e, "class", "SearchMessage");
350
+ e = y("p"), n = B(t), f(e, "class", "SearchMessage");
351
351
  },
352
352
  m(r, l) {
353
353
  j(r, e, l), S(e, n);
@@ -355,7 +355,7 @@ function _e(a) {
355
355
  p(r, l) {
356
356
  l[0] & /*$_*/
357
357
  2097152 && t !== (t = /*$_*/
358
- r[21]("recentSearch") + "") && H(n, t);
358
+ r[21]("recentSearch") + "") && q(n, t);
359
359
  },
360
360
  d(r) {
361
361
  r && I(e);
@@ -372,7 +372,7 @@ function Se(a) {
372
372
  );
373
373
  return {
374
374
  c() {
375
- e = y("div"), i && i.c(), t = N(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
375
+ e = y("div"), i && i.c(), t = N(), n = y("p"), l = B(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
376
376
  (a[11] == "true" ? "WithIcon" : ""));
377
377
  },
378
378
  m(c, g) {
@@ -382,7 +382,7 @@ function Se(a) {
382
382
  /*notfoundicon*/
383
383
  c[11] === "true" ? i || (i = we(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
384
384
  2097152 && r !== (r = /*$_*/
385
- c[21]("noRecentSearches") + "") && H(l, r), g[0] & /*notfoundicon*/
385
+ c[21]("noRecentSearches") + "") && q(l, r), g[0] & /*notfoundicon*/
386
386
  2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
387
387
  (c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
388
388
  },
@@ -441,7 +441,7 @@ function be(a) {
441
441
  }
442
442
  },
443
443
  d(r) {
444
- r && I(e), Ye(n, r);
444
+ r && I(e), $e(n, r);
445
445
  }
446
446
  };
447
447
  }
@@ -656,7 +656,7 @@ function ke(a) {
656
656
  );
657
657
  return {
658
658
  c() {
659
- e = y("div"), m && m.c(), t = N(), n = y("p"), l = q(r), s = N(), i = y("p"), g = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
659
+ e = y("div"), m && m.c(), t = N(), n = y("p"), l = B(r), s = N(), i = y("p"), g = B(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
660
660
  (a[11] == "true" ? "WithIcon" : ""));
661
661
  },
662
662
  m(b, d) {
@@ -666,9 +666,9 @@ function ke(a) {
666
666
  /*notfoundicon*/
667
667
  b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
668
668
  2097152 && r !== (r = /*$_*/
669
- b[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
669
+ b[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
670
670
  2097152 && c !== (c = /*$_*/
671
- b[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
671
+ b[21]("notFoundText") + "") && q(g, c), d[0] & /*notfoundicon*/
672
672
  2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
673
673
  (b[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
674
674
  },
@@ -692,7 +692,7 @@ function ye(a) {
692
692
  };
693
693
  }
694
694
  function ct(a) {
695
- let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P, A, W, O, U, v = (
695
+ let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P, x, W, O, U, v = (
696
696
  /*cancelbutton*/
697
697
  a[10] === "true" && pe(a)
698
698
  );
@@ -702,14 +702,14 @@ function ct(a) {
702
702
  w[18] ? st : ot
703
703
  );
704
704
  }
705
- let x = E(a), R = x(a);
705
+ let A = E(a), R = A(a);
706
706
  return {
707
707
  c() {
708
- e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.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>', l = N(), s = y("input"), c = N(), g = y("span"), h = ce("svg"), m = ce("path"), d = N(), v && v.c(), M = N(), P = y("div"), W = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
708
+ e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.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>', l = N(), s = y("input"), c = N(), g = y("span"), h = le("svg"), m = le("path"), d = N(), v && v.c(), M = N(), P = y("div"), W = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
709
709
  a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", b = "SearchClearButton " + /*cancelbutton*/
710
710
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
711
711
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
712
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", A = /*cancelbutton*/
712
+ (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", x = /*cancelbutton*/
713
713
  a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
714
714
  /*userAgent*/
715
715
  a[22]
@@ -763,21 +763,21 @@ function ct(a) {
763
763
  w[10] === "true" ? v ? v.p(w, T) : (v = pe(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
764
764
  8192 && p !== (p = "Search " + /*searchCancelled*/
765
765
  (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
766
- 1024 && A !== (A = /*cancelbutton*/
767
- w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", A), x === (x = E(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
766
+ 1024 && x !== (x = /*cancelbutton*/
767
+ w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", x), A === (A = E(w)) && R ? R.p(w, T) : (R.d(1), R = A(w), R && (R.c(), R.m(e, null)));
768
768
  },
769
- i: le,
770
- o: le,
769
+ i: ce,
770
+ o: ce,
771
771
  d(w) {
772
- w && I(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Ve(U);
772
+ w && I(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Je(U);
773
773
  }
774
774
  };
775
775
  }
776
776
  let ut = 50;
777
777
  function ht(a, e, t) {
778
778
  let n;
779
- Je(a, et, (o) => t(21, n = o));
780
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], E = [], x = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
779
+ Ze(a, et, (o) => t(21, n = o));
780
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], E = [], A = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
781
781
  const Ce = () => {
782
782
  fetch(P).then((_) => _.json()).then((_) => {
783
783
  Object.keys(_).forEach((k) => {
@@ -804,9 +804,9 @@ function ht(a, e, t) {
804
804
  G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ee(U)), k.push(Te(G, _[C]));
805
805
  }
806
806
  Promise.all(k).then((G) => {
807
- G = G.filter(function(B) {
808
- return !!B;
809
- }), t(15, v = G.map((B) => (B.isFavorite = re(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
807
+ G = G.filter(function(H) {
808
+ return !!H;
809
+ }), t(15, v = G.map((H) => (H.isFavorite = re(H.id), H))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
810
810
  }).catch((G) => {
811
811
  J("searchError", "SearchWidget");
812
812
  });
@@ -824,12 +824,12 @@ function ht(a, e, t) {
824
824
  t(18, z = !1), console.error(C), k(C);
825
825
  });
826
826
  }), Te = (o, _) => new Promise((k, C) => {
827
- t(18, z = !0), _ && Object.keys(x).indexOf(_) >= 0 ? (t(18, z = !1), k(x[_])) : fetch(o).then((F) => F.json()).then((F) => {
828
- t(18, z = !1), F.error || (x[F[0].gameId] = F[0]), k(F[0]);
827
+ t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
828
+ t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
829
829
  }).catch((F) => {
830
830
  t(18, z = !1), console.error(F), C(F);
831
831
  });
832
- }), Ie = () => {
832
+ }), je = () => {
833
833
  const o = new URL(`${r}/v1/player/${Q}/favorites/`);
834
834
  t(18, z = !0);
835
835
  let _ = {
@@ -839,16 +839,16 @@ function ht(a, e, t) {
839
839
  fetch(o.href, _).then((k) => k.json()).then((k) => {
840
840
  t(18, z = !1), te = k.items.map((C) => C.id);
841
841
  });
842
- }, je = () => {
842
+ }, Ie = () => {
843
843
  t(32, Y = !0), t(19, K = s), t(20, Q = i);
844
844
  }, re = (o) => te.findIndex((_) => _ == o) !== -1, Ge = (o) => {
845
845
  if ((o == null ? void 0 : o.length) === 0)
846
846
  return "";
847
847
  let _, k = 99999999999, C;
848
848
  const F = new Date(Date.now());
849
- return o.forEach((G, B) => {
850
- const xe = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
851
- de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = B), tt(new Date(F), new Date(xe)) && at(new Date(F), new Date($)) && (_ = o[C].name);
849
+ return o.forEach((G, H) => {
850
+ const Ae = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
851
+ de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = H), tt(new Date(F), new Date(Ae)) && at(new Date(F), new Date($)) && (_ = o[C].name);
852
852
  }), _;
853
853
  }, Ee = (o) => {
854
854
  if (E = localStorage.getItem("searchedGamesWds_casino"), E ? E = E.split(",") : E = [], E.indexOf(o) === -1) {
@@ -870,7 +870,7 @@ function ht(a, e, t) {
870
870
  }, ze = () => {
871
871
  nt(c);
872
872
  };
873
- Ze(() => (window.addEventListener("message", ae, !1), () => {
873
+ Ye(() => (window.addEventListener("message", ae, !1), () => {
874
874
  window.removeEventListener("message", ae);
875
875
  }));
876
876
  function Ne() {
@@ -882,13 +882,13 @@ function ht(a, e, t) {
882
882
  });
883
883
  }
884
884
  const De = () => oe(), Me = () => X();
885
- function Ae(o) {
885
+ function xe(o) {
886
886
  ue[o ? "unshift" : "push"](() => {
887
887
  D = o, t(14, D);
888
888
  });
889
889
  }
890
890
  return a.$$set = (o) => {
891
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9, A = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
891
+ "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9, x = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
892
892
  }, a.$$.update = () => {
893
893
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
894
894
  268447747)
@@ -902,9 +902,9 @@ function ht(a, e, t) {
902
902
  a.$$.dirty[0] & /*lang*/
903
903
  2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
904
904
  1 && P && Ce(), a.$$.dirty[0] & /*session, userid*/
905
- 1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
905
+ 1610612736 && s && i && Ie(), a.$$.dirty[0] & /*showfavorites*/
906
906
  512 | a.$$.dirty[1] & /*isLoggedIn*/
907
- 2 && A && Y && Ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
907
+ 2 && x && Y && je(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
908
908
  16392 && h && D && Ke(D, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
909
909
  16400 && m && D && Qe(D, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
910
910
  16388 && g && D && Xe(D, `${g}.Style`);
@@ -918,7 +918,7 @@ function ht(a, e, t) {
918
918
  d,
919
919
  p,
920
920
  M,
921
- A,
921
+ x,
922
922
  W,
923
923
  O,
924
924
  R,
@@ -946,7 +946,7 @@ function ht(a, e, t) {
946
946
  Pe,
947
947
  De,
948
948
  Me,
949
- Ae
949
+ xe
950
950
  ];
951
951
  }
952
952
  class dt extends qe {
@@ -956,7 +956,7 @@ class dt extends qe {
956
956
  e,
957
957
  ht,
958
958
  ct,
959
- Oe,
959
+ Ue,
960
960
  {
961
961
  endpoint: 0,
962
962
  datasource: 28,
@@ -1076,7 +1076,7 @@ class dt extends qe {
1076
1076
  this.$$set({ notfoundicon: e }), L();
1077
1077
  }
1078
1078
  }
1079
- $e(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1079
+ Oe(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
1080
1080
  export {
1081
1081
  dt as default
1082
1082
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BEFWuyZL.cjs");require("./CasinoGamesCategorySectionNd-COgh4Qnu.cjs");const W=require("./CasinoGameThumbnailNd-Cl4NaQ7h.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"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."},"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."}};function Ce(n){e.append_styles(n,"svelte-1vt65d9","*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{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 .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 $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Ie;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),f=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=oe(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ie(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,f,d,m,S;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[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.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[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var j;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((j=h[53].advancedTags)==null?void 0:j.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.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,f)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,j,T,G,N,P,D,w=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#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(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),j=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"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(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",G=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,j),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),P||(D=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],P=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=ee(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&G!==(G=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",G),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),P=!1,e.run_all(D)}}}let Ge=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:j="true"}=t,{translationurl:T=""}=t,{showfavorites:G=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:P="false"}=t,D=window.navigator.userAgent,w=[],F=[],E={},v="",_,R=!0,x=!1,L=!1,I,A=!1,q,B,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{X(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,B=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(D)),b.push(he(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=Z(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ue=()=>{N!="true"&&H()},de=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),he=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),b(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${B}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),U=b.items.map(k=>k.id)})},fe=()=>{a(32,A=!0),a(19,q=l),a(20,B=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.differenceInMilliseconds(new Date(O),new Date(y))<b&&(b=W.differenceInMilliseconds(new Date(O),new Date(y)),k=z),W.isAfter(new Date(y),new Date(ye))&&W.isBefore(new Date(y),new Date(O))&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),K(x)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(14,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,j=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,G=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,P=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(D)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=Z(b.id),b)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&G&&A&&me(),n.$$.dirty[0]&16392&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&16400&&m&&I&&e.setClientStylingURL(I,m),n.$$.dirty[0]&16388&&f&&I&&e.setStreamStyling(I,`${f}.Style`)},[s,u,f,d,m,S,h,g,j,G,N,P,v,R,I,w,_,x,L,q,B,r,D,J,ue,ge,H,Y,i,l,c,T,A,Se,we,be,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,je,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CFUoQxq0.cjs");require("./CasinoGamesCategorySectionNd-BAynLaaR.cjs");const W=require("./CasinoGameThumbnailNd-Ca2b8Stl.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"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."},"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."}};function Ce(n){e.append_styles(n,"svelte-1vt65d9","*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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{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 .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 $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Ie;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),f=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=oe(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ie(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,f,d,m,S;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[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.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[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var j;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((j=h[53].advancedTags)==null?void 0:j.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.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,f)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,j,T,G,N,P,D,w=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#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(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),j=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"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(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",G=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,j),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),P||(D=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],P=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=ee(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&G!==(G=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",G),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),P=!1,e.run_all(D)}}}let Ge=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:j="true"}=t,{translationurl:T=""}=t,{showfavorites:G=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:P="false"}=t,D=window.navigator.userAgent,w=[],F=[],E={},v="",_,R=!0,x=!1,L=!1,I,A=!1,q,B,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{X(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,B=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(D)),b.push(he(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=Z(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ue=()=>{N!="true"&&H()},de=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),he=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),b(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${B}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),U=b.items.map(k=>k.id)})},fe=()=>{a(32,A=!0),a(19,q=l),a(20,B=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.differenceInMilliseconds(new Date(O),new Date(y))<b&&(b=W.differenceInMilliseconds(new Date(O),new Date(y)),k=z),W.isAfter(new Date(y),new Date(ye))&&W.isBefore(new Date(y),new Date(O))&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),K(x)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(14,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,j=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,G=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,P=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(D)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=Z(b.id),b)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&G&&A&&me(),n.$$.dirty[0]&16392&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&16400&&m&&I&&e.setClientStylingURL(I,m),n.$$.dirty[0]&16388&&f&&I&&e.setStreamStyling(I,`${f}.Style`)},[s,u,f,d,m,S,h,g,j,G,N,P,v,R,I,w,_,x,L,q,B,r,D,J,ue,ge,H,Y,i,l,c,T,A,Se,we,be,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,je,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;