@everymatrix/casino-page 1.87.25 → 1.87.27

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 (107) hide show
  1. package/components/CasinoCalendar-Bk2VWsYP.js +572 -0
  2. package/components/CasinoCalendar-CuMdPVUL.js +574 -0
  3. package/components/CasinoCalendar-NysJ_MQc.cjs +2 -0
  4. package/components/{CasinoCalendarDailyDetails-C9QkDeeW.js → CasinoCalendarDailyDetails-BMRyShgB.js} +84 -84
  5. package/components/CasinoCalendarDailyDetails-Ctd7GG23.cjs +1 -0
  6. package/components/{CasinoCalendarDailyDetails-DG8jTkOb.js → CasinoCalendarDailyDetails-DpRL4rZD.js} +84 -84
  7. package/components/CasinoCalendarDailyItem-Bwv-TV7n.cjs +1 -0
  8. package/components/{CasinoCalendarDailyItem-H9bFOk6V.js → CasinoCalendarDailyItem-O-m4LUQU.js} +118 -118
  9. package/components/{CasinoCalendarDailyItem-77QxCgOg.js → CasinoCalendarDailyItem-kbMnL8LX.js} +118 -118
  10. package/components/CasinoCollectionsProviders-DxCAKrxO.cjs +1 -0
  11. package/components/{CasinoCollectionsProviders-BRaAIVvV.js → CasinoCollectionsProviders-I8uaw4CX.js} +65 -65
  12. package/components/{CasinoCollectionsProviders-DOGIidgs.js → CasinoCollectionsProviders-bBtLlyhP.js} +93 -93
  13. package/components/CasinoFavoritesSection-BKpylL-E.cjs +1 -0
  14. package/components/{CasinoFavoritesSection-C-WTpxpq.js → CasinoFavoritesSection-D1NR_VbM.js} +47 -63
  15. package/components/{CasinoFavoritesSection-CZ-q50oD.js → CasinoFavoritesSection-DVEeqd8t.js} +44 -60
  16. package/components/CasinoFilter-BuCRML3F.cjs +1 -0
  17. package/components/{CasinoFilter-Dd_ByQUb.js → CasinoFilter-C-8LktQ9.js} +223 -224
  18. package/components/{CasinoFilter-BqfBTs3X.js → CasinoFilter-JysfGnIT.js} +251 -250
  19. package/components/CasinoGameThumbnail-CTIJhcZN.js +1847 -0
  20. package/components/CasinoGameThumbnail-MpCIIvr2.cjs +38 -0
  21. package/components/CasinoGameThumbnail-vCdzZgSQ.js +1831 -0
  22. package/components/CasinoGamesCategorySection-CQTfYAer.cjs +10 -0
  23. package/components/CasinoGamesCategorySection-C_uyd_r_.js +5729 -0
  24. package/components/CasinoGamesCategorySection-Cavp2XcF.js +5697 -0
  25. package/components/{CasinoJackpotBanner-BuCeq-FN.js → CasinoJackpotBanner-C6568dXk.js} +176 -176
  26. package/components/{CasinoJackpotBanner-Ba0HSy7J.js → CasinoJackpotBanner-CLADRgxD.js} +154 -154
  27. package/components/CasinoJackpotBanner-C_Gf1vLe.cjs +1 -0
  28. package/components/{CasinoLastPlayedSection-DJ9HO253.js → CasinoLastPlayedSection-Daix__De.js} +71 -72
  29. package/components/{CasinoLastPlayedSection-C5vsXbz8.js → CasinoLastPlayedSection-fA_Nko5c.js} +68 -69
  30. package/components/CasinoLastPlayedSection-i9eM46ud.cjs +1 -0
  31. package/components/CasinoMostPlayedSection-7F-BgAlY.cjs +1 -0
  32. package/components/{CasinoMostPlayedSection-_rcZwydD.js → CasinoMostPlayedSection-BG98a19d.js} +64 -65
  33. package/components/{CasinoMostPlayedSection-Cj9P1O_g.js → CasinoMostPlayedSection-DjDWyNmN.js} +66 -67
  34. package/components/{CasinoMyGames-BCWaO0Ph.js → CasinoMyGames-DbWMDQDz.js} +46 -46
  35. package/components/CasinoMyGames-FxQZFPn1.cjs +1 -0
  36. package/components/{CasinoMyGames-DA-mPnwJ.js → CasinoMyGames-fh1A5kRZ.js} +46 -46
  37. package/components/CasinoPage-CEwUBRwz.js +8914 -0
  38. package/components/CasinoPage-D1gCtQ9f.cjs +18 -0
  39. package/components/CasinoPage-DuLO92lO.js +8959 -0
  40. package/components/CasinoRandomGame-B6nMcOFW.cjs +2 -0
  41. package/components/{CasinoRandomGame-Dicpdv5N.js → CasinoRandomGame-BXeDL44i.js} +118 -118
  42. package/components/{CasinoRandomGame-Mzhi_geU.js → CasinoRandomGame-fp8-6pxV.js} +116 -116
  43. package/components/{CasinoSearch-BkcRkT-Z.js → CasinoSearch-CT_Q7Eg2.js} +75 -75
  44. package/components/{CasinoSearch-CFh1KpPL.js → CasinoSearch-D25EUsHS.js} +75 -75
  45. package/components/CasinoSearch-DSNlggOc.cjs +1 -0
  46. package/components/CasinoSort-5sOVz1es.cjs +1 -0
  47. package/components/{CasinoSort-DuvD0KkH.js → CasinoSort-CoBXSITn.js} +102 -102
  48. package/components/{CasinoSort-DHqu-YG-.js → CasinoSort-l3IilL10.js} +116 -116
  49. package/components/{CasinoWinners-C0aKkeDL.js → CasinoWinners-BeLObVW8.js} +105 -105
  50. package/components/{CasinoWinners-DdSjlEaj.js → CasinoWinners-mCHa7x4u.js} +108 -108
  51. package/components/CasinoWinners-pE3a77v3.cjs +1 -0
  52. package/components/GeneralAnimationLoading-BJ87LnuC.cjs +1 -0
  53. package/components/{GeneralAnimationLoading-DhrziAD2.js → GeneralAnimationLoading-BaLCQhkc.js} +23 -23
  54. package/components/{GeneralAnimationLoading-B00sPlMG.js → GeneralAnimationLoading-SLNmfkn9.js} +22 -22
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +7 -7
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{app-globals-0f993ce5-4b17CI_n.cjs → app-globals-0f993ce5-3HCMFTIi.cjs} +1 -1
  60. package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-DYjuqKIH.js} +2 -2
  61. package/stencil/{casino-play-random-game-rhXCh2EW.js → casino-play-random-game-BnjM-0qi.js} +2 -2
  62. package/stencil/{casino-play-random-game-CSy8nXT0.js → casino-play-random-game-DRQxeH3W.js} +2 -2
  63. package/stencil/{casino-play-random-game-PuRF3mXV.cjs → casino-play-random-game-dt2t2wAq.cjs} +1 -1
  64. package/stencil/{casino-play-random-game_2-CZQxP9GA.js → casino-play-random-game_2-BvZbjHRJ.js} +92 -64
  65. package/stencil/{casino-play-random-game_2-CBAgufN5.cjs → casino-play-random-game_2-ZYQBmsCp.cjs} +3 -3
  66. package/stencil/{casino-play-random-game_2-BBgMV3ws.js → casino-play-random-game_2-aWmRrJVX.js} +91 -64
  67. package/stencil/{index-328e660d-BLQrzwBv.cjs → index-328e660d-BN7c7sEP.cjs} +1 -1
  68. package/stencil/{index-328e660d-Belout2l.js → index-328e660d-CJOt0Yr_.js} +1 -1
  69. package/stencil/{index-328e660d-BqUO7ccV.js → index-328e660d-CZwFIIV5.js} +1 -1
  70. package/stencil/{index-b2193545-DuCTLpV-.cjs → index-b2193545-BYDm8FOU.cjs} +1 -1
  71. package/stencil/{index-b2193545-DG7pnr-7.js → index-b2193545-CVvOSay7.js} +1 -1
  72. package/stencil/{index-b2193545-BZAG_Jnw.js → index-b2193545-DkSkdO8p.js} +1 -1
  73. package/stencil/{ui-image-BmLAbwvr.cjs → ui-image-BNLichPz.cjs} +1 -1
  74. package/stencil/{ui-image-DDulMZDF.js → ui-image-D8_P6p7o.js} +1 -1
  75. package/stencil/{ui-image-DwWgscwP.js → ui-image-KAOdlRk_.js} +1 -1
  76. package/stencil/{ui-skeleton-DgZQnowa.js → ui-skeleton-CbcQXFpx.js} +3 -3
  77. package/stencil/{ui-skeleton-D_tu1FGi.js → ui-skeleton-DgkQtSrH.js} +3 -3
  78. package/stencil/{ui-skeleton-BWEKzqTN.cjs → ui-skeleton-TOJItxHv.cjs} +1 -1
  79. package/stencil/{ui-skeleton-ed169f8f-D2rWx_KU.js → ui-skeleton-ed169f8f-BD9hI4Jz.js} +1 -1
  80. package/stencil/{ui-skeleton-ed169f8f-Ti6Ksz7V.cjs → ui-skeleton-ed169f8f-CGu6WFdq.cjs} +1 -1
  81. package/stencil/{ui-skeleton-ed169f8f-Bs1q2JQr.js → ui-skeleton-ed169f8f-CaxkPCnR.js} +1 -1
  82. package/components/CasinoCalendar-4k288rHh.cjs +0 -19
  83. package/components/CasinoCalendar-BNbVJJdG.js +0 -5140
  84. package/components/CasinoCalendar-DAKxxPPx.js +0 -5101
  85. package/components/CasinoCalendarDailyDetails-CerVlpW4.cjs +0 -1
  86. package/components/CasinoCalendarDailyItem-B7YANGR4.cjs +0 -1
  87. package/components/CasinoCollectionsProviders-OZw09qnR.cjs +0 -1
  88. package/components/CasinoFavoritesSection-DYzKNVZJ.cjs +0 -1
  89. package/components/CasinoFilter-BP97bmoQ.cjs +0 -1
  90. package/components/CasinoGameThumbnail-CySg8Qzs.js +0 -4359
  91. package/components/CasinoGameThumbnail-W0nETKCH.cjs +0 -47
  92. package/components/CasinoGameThumbnail-ge_yVb-v.js +0 -4375
  93. package/components/CasinoGamesCategorySection-B2CXUJ-V.js +0 -3217
  94. package/components/CasinoGamesCategorySection-B8IjpDwj.js +0 -3185
  95. package/components/CasinoGamesCategorySection-DCjn0aiz.cjs +0 -1
  96. package/components/CasinoJackpotBanner-DRtiH_Mn.cjs +0 -1
  97. package/components/CasinoLastPlayedSection-CP4YzhAu.cjs +0 -1
  98. package/components/CasinoMostPlayedSection-DPG3YsM6.cjs +0 -1
  99. package/components/CasinoMyGames-Bqyyy2Me.cjs +0 -1
  100. package/components/CasinoPage-BNU69s1m.js +0 -4353
  101. package/components/CasinoPage-BRSRsp5F.js +0 -4334
  102. package/components/CasinoPage-D-FENg4m.cjs +0 -1
  103. package/components/CasinoRandomGame-DRGWOXO6.cjs +0 -2
  104. package/components/CasinoSearch-D14Ak2E9.cjs +0 -1
  105. package/components/CasinoSort-BVyHskml.cjs +0 -1
  106. package/components/CasinoWinners-5S4Rqt23.cjs +0 -1
  107. package/components/GeneralAnimationLoading-wnzFPEVd.cjs +0 -1
@@ -1,10 +1,10 @@
1
- import { a as We, $ as Ue, S as Ve, i as Je, s as Ze, f as L, b as Ye, n as ue, d as j, M as Ke, r as f, Q as he, h as I, p as b, A as U, j as k, B as z, F as de, P as ae, k as Xe, o as Qe, m as q, q as H, C as me, v as ge, w as $e, T as Le, E as u, H as et, I as tt, J as at, K as nt, L as rt } from "./CasinoCalendar-DAKxxPPx.js";
2
- import "./CasinoGamesCategorySection-B8IjpDwj.js";
1
+ import { a as Ue, $ as Ve, S as Je, i as Ye, s as Ze, f as L, b as Xe, n as ue, d as j, T as Ke, h as f, Y as he, e as I, q as b, C as U, g as k, r as z, D as de, u as ae, j as Qe, k as $e, v as q, w as H, l as me, x as ge, B as et, m as Le, A as u, F as tt, G as at, H as nt, c as rt, E as ot } from "./CasinoPage-CEwUBRwz.js";
2
+ import "./CasinoGamesCategorySection-Cavp2XcF.js";
3
3
  function fe(t, e) {
4
- We(t, e);
4
+ Ue(t, e);
5
5
  }
6
- function ot(t) {
7
- Ue.set(t);
6
+ function st(t) {
7
+ Ve.set(t);
8
8
  }
9
9
  const pe = {
10
10
  en: {
@@ -188,7 +188,7 @@ const pe = {
188
188
  notFoundText: "Please type the correct name of the game to start to play.",
189
189
  noRecentSearches: "No recent searches yet. Search for any of our games."
190
190
  }
191
- }, st = (t, e) => function(...a) {
191
+ }, lt = (t, e) => function(...a) {
192
192
  clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
193
193
  t.apply(this, a);
194
194
  }, e);
@@ -213,18 +213,18 @@ function V(t) {
213
213
  function Se(t, e) {
214
214
  return ee(2, arguments), V(t).getTime() - V(e).getTime();
215
215
  }
216
- function lt(t, e) {
216
+ function it(t, e) {
217
217
  ee(2, arguments);
218
218
  var a = V(t), n = V(e);
219
219
  return a.getTime() > n.getTime();
220
220
  }
221
- function it(t, e) {
221
+ function ct(t, e) {
222
222
  ee(2, arguments);
223
223
  var a = V(t), n = V(e);
224
224
  return a.getTime() < n.getTime();
225
225
  }
226
- function ct(t) {
227
- Ye(t, "svelte-nijkoq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
226
+ function ut(t) {
227
+ Xe(t, "svelte-nijkoq", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
228
228
  }
229
229
  function be(t, e, a) {
230
230
  const n = t.slice();
@@ -260,7 +260,7 @@ function _e(t) {
260
260
  }
261
261
  };
262
262
  }
263
- function ut(t) {
263
+ function ht(t) {
264
264
  let e, a, n, r;
265
265
  function l(h, g) {
266
266
  if (
@@ -268,12 +268,12 @@ function ut(t) {
268
268
  h[17] == !0 && /*searchValue*/
269
269
  h[14].length < 2
270
270
  )
271
- return mt;
271
+ return gt;
272
272
  if (
273
273
  /*searchArray*/
274
274
  h[13].length != 0
275
275
  )
276
- return dt;
276
+ return mt;
277
277
  }
278
278
  let s = l(t), i = s && s(t), c = (
279
279
  /*searchCancelled*/
@@ -304,7 +304,7 @@ function ut(t) {
304
304
  }
305
305
  };
306
306
  }
307
- function ht(t) {
307
+ function dt(t) {
308
308
  let e, a = (
309
309
  /*$_*/
310
310
  t[21]("loading") + ""
@@ -326,7 +326,7 @@ function ht(t) {
326
326
  }
327
327
  };
328
328
  }
329
- function dt(t) {
329
+ function mt(t) {
330
330
  let e, a = (
331
331
  /*$_*/
332
332
  t[21]("searchResult") + ""
@@ -348,7 +348,7 @@ function dt(t) {
348
348
  }
349
349
  };
350
350
  }
351
- function mt(t) {
351
+ function gt(t) {
352
352
  let e, a, n = (
353
353
  /*searchArray*/
354
354
  t[13].length !== 0 && we(t)
@@ -474,7 +474,7 @@ function ke(t) {
474
474
  }
475
475
  },
476
476
  d(r) {
477
- r && j(e), $e(n, r);
477
+ r && j(e), et(n, r);
478
478
  }
479
479
  };
480
480
  }
@@ -722,7 +722,7 @@ function Fe(t) {
722
722
  }
723
723
  };
724
724
  }
725
- function gt(t) {
725
+ function ft(t) {
726
726
  let e, a, n, r, l, s, i, c, m, h, g, w, d, p, B, N, x, J, A, W, v = (
727
727
  /*cancelbutton*/
728
728
  t[9] === "true" && _e(t)
@@ -730,14 +730,14 @@ function gt(t) {
730
730
  function D(_, T) {
731
731
  return (
732
732
  /*isLoading*/
733
- _[18] ? ht : ut
733
+ _[18] ? dt : ht
734
734
  );
735
735
  }
736
736
  let M = D(t), R = M(t);
737
737
  return {
738
738
  c() {
739
739
  e = k("div"), a = k("div"), n = k("div"), r = k("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = z(), s = k("input"), c = z(), m = k("span"), h = de("svg"), g = de("path"), d = z(), v && v.c(), B = z(), N = k("div"), J = z(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
740
- t[21]("placeHolderSearchGames")), f(s, "maxlength", ft), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
740
+ t[21]("placeHolderSearchGames")), f(s, "maxlength", pt), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
741
741
  (t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
742
742
  (t[14].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
743
743
  (t[16] ? "" : "SearchAnimation")), f(a, "class", "SearchWrap"), f(N, "class", x = /*cancelbutton*/
@@ -810,12 +810,12 @@ function gt(t) {
810
810
  }
811
811
  };
812
812
  }
813
- let ft = 50;
814
- function pt(t, e, a) {
813
+ let pt = 50;
814
+ function St(t, e, a) {
815
815
  let n;
816
- Xe(t, rt, (o) => a(21, n = o));
817
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: x = "true" } = e, { notfoundicon: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], D = [], M = {}, R = "", _, T = !0, Z = !1, E = !1, P, K = !1, X, Q, re = [];
818
- const Te = () => {
816
+ Qe(t, ot, (o) => a(21, n = o));
817
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: x = "true" } = e, { notfoundicon: J = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], D = [], M = {}, R = "", _, T = !0, Y = !1, E = !1, P, X = !1, K, Q, re = [], Te;
818
+ const je = () => {
819
819
  fetch(B).then((S) => S.json()).then((S) => {
820
820
  Object.keys(S).forEach((y) => {
821
821
  fe(y, S[y]);
@@ -828,9 +828,9 @@ function pt(t, e, a) {
828
828
  fe(o, pe[o]);
829
829
  });
830
830
  const oe = (o) => {
831
- o.data && o.data.type == "SearchedItemClicked" && Ne(o.data.gameId), o.data.type == "UserSessionID" && (a(19, X = o.data.session), a(20, Q = o.data.userid), a(33, K = !0)), o.data.type == "CategoryChange" && $();
831
+ o.data && o.data.type == "SearchedItemClicked" && Pe(o.data.gameId), o.data.type == "UserSessionID" && (a(19, K = o.data.session), a(20, Q = o.data.userid), a(33, X = !0)), o.data.type == "CategoryChange" && $();
832
832
  }, se = () => {
833
- if (a(16, T = !1), a(17, Z = !0), r && l && c && R.length < 2) {
833
+ if (a(16, T = !1), a(17, Y = !0), r && l && c && R.length < 2) {
834
834
  a(13, v = []);
835
835
  let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
836
836
  o && (S = o.split(","));
@@ -838,62 +838,62 @@ function pt(t, e, a) {
838
838
  if (F > 0) {
839
839
  for (C = 0; C < F; C++) {
840
840
  let G = new URL(`${r}/v1/casino/games/${S[C]}`);
841
- G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ae(W)), y.push(Ge(G, S[C]));
841
+ G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ae(W)), y.push(De(G, S[C]));
842
842
  }
843
843
  Promise.all(y).then((G) => {
844
844
  G = G.filter(function(O) {
845
845
  return !!O;
846
- }), a(13, v = G.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Y("searchSuccess", "SearchWidget") : Y("searchFail", "SearchWidget");
846
+ }), a(13, v = G.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
847
847
  }).catch((G) => {
848
- Y("searchError", "SearchWidget");
848
+ Z("searchError", "SearchWidget");
849
849
  });
850
850
  }
851
851
  }
852
- ce(Z), Y("searchAttempt", "SearchWidget"), Y("SearchInitialized", "SearchWidget");
853
- }, Y = (o, S) => {
852
+ ce(Y), Z("searchAttempt", "SearchWidget"), Z("SearchInitialized", "SearchWidget");
853
+ }, Z = (o, S) => {
854
854
  typeof gtag == "function" && gtag("event", o, { context: S });
855
- }, je = () => {
855
+ }, Ie = () => {
856
856
  x != "true" && $();
857
- }, Ie = (o) => new Promise((S, y) => {
857
+ }, Ge = (o) => new Promise((S, y) => {
858
858
  a(18, E = !0), fetch(o.href).then((C) => C.json()).then((C) => {
859
859
  a(18, E = !1), S(C);
860
860
  }).catch((C) => {
861
861
  a(18, E = !1), console.error(C), y(C);
862
862
  });
863
- }), Ge = (o, S) => new Promise((y, C) => {
863
+ }), De = (o, S) => new Promise((y, C) => {
864
864
  a(18, E = !0), S && Object.keys(M).indexOf(S) >= 0 ? (a(18, E = !1), y(M[S])) : fetch(o).then((F) => F.json()).then((F) => {
865
865
  a(18, E = !1), F.error || (M[F[0].gameId] = F[0]), y(F[0]);
866
866
  }).catch((F) => {
867
867
  a(18, E = !1), console.error(F), C(F);
868
868
  });
869
- }), De = () => {
869
+ }), Ee = () => {
870
870
  const o = new URL(`${r}/v1/player/${Q}/favorites/`);
871
871
  a(18, E = !0);
872
872
  let S = {
873
873
  method: "GET",
874
- headers: { "X-SessionID": X }
874
+ headers: { "X-SessionID": K }
875
875
  };
876
876
  fetch(o.href, S).then((y) => y.json()).then((y) => {
877
877
  a(18, E = !1), re = y.items.map((C) => C.id);
878
878
  });
879
- }, Ee = () => {
880
- a(33, K = !0), a(19, X = s), a(20, Q = i);
881
- }, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
879
+ }, ze = () => {
880
+ a(33, X = !0), a(19, K = s), a(20, Q = i);
881
+ }, le = (o) => re.findIndex((S) => S == o) !== -1, Ne = (o) => {
882
882
  if (o?.length === 0)
883
883
  return "";
884
884
  let S, y = 99999999999, C;
885
885
  const F = new Date(Date.now());
886
886
  return o.forEach((G, O) => {
887
- const He = new Date(G.schedules[0].startTime), te = new Date(G.schedules[0].endTime);
888
- Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), C = O), lt(new Date(F), new Date(He)) && it(new Date(F), new Date(te)) && (S = o[C].name);
887
+ const We = new Date(G.schedules[0].startTime), te = new Date(G.schedules[0].endTime);
888
+ Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), C = O), it(new Date(F), new Date(We)) && ct(new Date(F), new Date(te)) && (S = o[C].name);
889
889
  }), S;
890
- }, Ne = (o) => {
890
+ }, Pe = (o) => {
891
891
  if (D = localStorage.getItem("searchedGamesWds_casino"), D ? D = D.split(",") : D = [], D.indexOf(o) === -1) {
892
892
  let S;
893
893
  D.unshift(o), S = D.join(","), localStorage.setItem("searchedGamesWds_casino", S);
894
894
  }
895
895
  }, $ = () => {
896
- a(14, R = ""), a(16, T = !0), a(18, E = !1), a(13, v = []), a(17, Z = !1), ce(Z);
896
+ a(14, R = ""), a(16, T = !0), a(18, E = !1), a(13, v = []), a(17, Y = !1), ce(Y);
897
897
  }, ie = () => {
898
898
  a(14, R = ""), _.focus();
899
899
  }, ce = (o) => {
@@ -904,30 +904,30 @@ function pt(t, e, a) {
904
904
  },
905
905
  window.location.href
906
906
  );
907
- }, Pe = () => {
908
- ot(c);
909
- }, xe = st(async () => {
907
+ }, xe = () => {
908
+ st(c);
909
+ }, Me = lt(async () => {
910
910
  if (R.length >= 2) {
911
911
  const o = new URL(`${r}/v1/casino/games`);
912
- o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Ie(o).then((S) => {
912
+ o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${R}`), Ge(o).then((S) => {
913
913
  a(13, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
914
914
  });
915
915
  } else
916
916
  T || se();
917
917
  }, 500);
918
- Qe(() => (window.addEventListener("message", oe, !1), () => {
918
+ $e(() => (window.addEventListener("message", oe, !1), () => {
919
919
  window.removeEventListener("message", oe);
920
920
  }));
921
- function Me() {
921
+ function Be() {
922
922
  R = this.value, a(14, R);
923
923
  }
924
- function Be(o) {
924
+ function Ae(o) {
925
925
  me[o ? "unshift" : "push"](() => {
926
926
  _ = o, a(15, _);
927
927
  });
928
928
  }
929
- const Ae = () => ie(), Oe = () => $();
930
- function qe(o) {
929
+ const Oe = () => ie(), qe = () => $();
930
+ function He(o) {
931
931
  me[o ? "unshift" : "push"](() => {
932
932
  P = o, a(12, P);
933
933
  });
@@ -936,15 +936,15 @@ function pt(t, e, a) {
936
936
  "endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(29, l = o.datasource), "session" in o && a(30, s = o.session), "userid" in o && a(31, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(32, B = o.translationurl), "showfavorites" in o && a(8, N = o.showfavorites), "cancelbutton" in o && a(9, x = o.cancelbutton), "notfoundicon" in o && a(10, J = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
937
937
  }, t.$$.update = () => {
938
938
  t.$$.dirty[0] & /*lang*/
939
- 2 && c && Pe(), t.$$.dirty[1] & /*translationurl*/
940
- 2 && B && Te(), t.$$.dirty[0] & /*session*/
939
+ 2 && c && xe(), t.$$.dirty[1] & /*translationurl*/
940
+ 2 && B && je(), t.$$.dirty[0] & /*session*/
941
941
  1073741824 | t.$$.dirty[1] & /*userid*/
942
- 1 && s && i && Ee(), t.$$.dirty[0] & /*showfavorites*/
942
+ 1 && s && i && ze(), t.$$.dirty[0] & /*showfavorites*/
943
943
  256 | t.$$.dirty[1] & /*isLoggedIn*/
944
- 4 && N && K && De(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
945
- 4100 && m && P && et(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
946
- 4104 && h && P && tt(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
947
- 6144 && P && at(P, `${A}.Style`);
944
+ 4 && N && X && Ee(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
945
+ 4100 && m && P && tt(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
946
+ 4104 && h && P && at(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
947
+ 6144 && P && nt(P, `${A}.Style`, Te);
948
948
  }, [
949
949
  r,
950
950
  c,
@@ -963,37 +963,37 @@ function pt(t, e, a) {
963
963
  R,
964
964
  _,
965
965
  T,
966
- Z,
966
+ Y,
967
967
  E,
968
- X,
968
+ K,
969
969
  Q,
970
970
  n,
971
971
  W,
972
972
  se,
973
- je,
974
- ze,
973
+ Ie,
974
+ Ne,
975
975
  $,
976
976
  ie,
977
- xe,
977
+ Me,
978
978
  l,
979
979
  s,
980
980
  i,
981
981
  B,
982
- K,
983
- Me,
982
+ X,
984
983
  Be,
985
984
  Ae,
986
985
  Oe,
987
- qe
986
+ qe,
987
+ He
988
988
  ];
989
989
  }
990
- class St extends Ve {
990
+ class bt extends Je {
991
991
  constructor(e) {
992
- super(), Je(
992
+ super(), Ye(
993
993
  this,
994
994
  e,
995
- pt,
996
- gt,
995
+ St,
996
+ ft,
997
997
  Ze,
998
998
  {
999
999
  endpoint: 0,
@@ -1013,7 +1013,7 @@ class St extends Ve {
1013
1013
  notfoundicon: 10,
1014
1014
  mbsource: 11
1015
1015
  },
1016
- ct,
1016
+ ut,
1017
1017
  [-1, -1]
1018
1018
  );
1019
1019
  }
@@ -1114,7 +1114,7 @@ class St extends Ve {
1114
1114
  this.$$set({ mbsource: e }), L();
1115
1115
  }
1116
1116
  }
1117
- nt(St, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1117
+ rt(bt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, mbsource: {} }, [], [], !0);
1118
1118
  export {
1119
- St as default
1119
+ bt as default
1120
1120
  };
@@ -0,0 +1 @@
1
+ "use strict";var $=(a,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(h){o(h)}},l=u=>{try{c(n.throw(u))}catch(h){o(h)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoPage-D1gCtQ9f.cjs");require("./CasinoGamesCategorySection-CQTfYAer.cjs");function ee(a,t){e.addMessages(a,t)}function Ie(a){e.$locale.set(a)}const te={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}},De=(a,t)=>function(...n){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a.apply(this,n)},t)};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function P(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ae(a,t){return W(2,arguments),P(a).getTime()-P(t).getTime()}function Ge(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()>r.getTime()}function ze(a,t){W(2,arguments);var n=P(a),r=P(t);return n.getTime()<r.getTime()}function Ee(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ne(a,t,n){const r=a.slice();return r[55]=t[n],r}function re(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[37]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ne(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[14].length<2)return Me;if(d[13].length!=0)return xe}let l=i(a),c=l&&l(a),u=a[16]===!1&&ie(a),h=a[14].length>=2&&a[13].length==0&&ue(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[16]===!1?u?u.p(d,f):(u=ie(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?h?h.p(d,f):(h=ue(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Pe(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function xe(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Me(a){let t,n,r=a[13].length!==0&&oe(a),o=a[13].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[13].length!==0?r?r.p(i,l):(r=oe(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].length==0?o?o.p(i,l):(o=se(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function oe(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function se(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&le();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=le(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function le(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function ie(a){let t,n=e.ensure_array_like(a[13]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ce(ne(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35138047){n=e.ensure_array_like(o[13]);let l;for(l=0;l<n.length;l+=1){const c=ne(o,n,l);r[l]?r[l].p(c,i):(r[l]=ce(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ce(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[55].thumbnail),e.set_custom_element_data(t,"gamename",r=a[55].name),e.set_custom_element_data(t,"gamevendor",o=a[55].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[55].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[55].advancedTags)==null?void 0:m.length)>0&&a[25](a[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[55].cellSize),e.set_custom_element_data(t,"gameid",h=a[55].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[55].details?a[55].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&8192&&n!==(n=m[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&8192&&r!==(r=m[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&o!==(o=m[55].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&8192&&i!==(i=m[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=m[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((T=m[55].advancedTags)==null?void 0:T.length)>0&&m[25](m[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=m[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&h!==(h=m[55].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&8192&&d!==(d=m[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=m[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=m[55].details?m[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ue(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&de();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=de(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function de(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function Be(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,D,x,z,N,b=a[9]==="true"&&re(a);function F(_,R){return _[18]?Pe:Ne}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),x=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ae),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[16]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",D=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[14]),a[35](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,x),v.m(t,null),a[38](t),z||(N=[e.listen(l,"input",a[34]),e.listen(l,"focus",a[23]),e.listen(l,"input",a[28]),e.listen(h,"click",a[36]),e.listen(j,"click",a[24])],z=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&16896&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,R):(b=re(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&512&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[35](null),b&&b.d(),v.d(),a[38](null),z=!1,e.run_all(N)}}}let Ae=50;function Oe(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:x="false"}=t,{mbsource:z}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,O,q,J=[],he;const fe=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{ee(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(te).forEach(s=>{ee(s,te[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&ve(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,O=s.data.session),n(20,q=s.data.userid),n(33,A=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(16,R=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(13,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${o}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(N)),w.push(_e(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(E){return!!E}),n(13,b=C.map(E=>(E.isFavorite=X(E.id),E))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(C=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&&gtag("event",s,{context:p})},ge=()=>{D!="true"&&H()},pe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),_e=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),Se=()=>{const s=new URL(`${o}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":O}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},be=()=>{n(33,A=!0),n(19,O=l),n(20,q=c)},X=s=>J.findIndex(p=>p==s)!==-1,we=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((C,E)=>{const je=new Date(C.schedules[0].startTime),U=new Date(C.schedules[0].endTime);ae(new Date(U),new Date(k))<w&&(w=ae(new Date(U),new Date(k)),y=E),Ge(new Date(k),new Date(je))&&ze(new Date(k),new Date(U))&&(p=s[y].name)}),p},ve=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(14,v=""),n(16,R=!0),n(18,L=!1),n(13,b=[]),n(17,M=!1),Q(M)},K=()=>{n(14,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ye=()=>{Ie(u)},ke=De(()=>$(this,null,function*(){if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),pe(s).then(p=>{n(13,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else R||Y()}),500);e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function Re(){v=this.value,n(14,v)}function Ce(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(15,_)})}const Fe=()=>K(),Le=()=>H();function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{I=s,n(12,I)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(29,i=s.datasource),"session"in s&&n(30,l=s.session),"userid"in s&&n(31,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(32,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,D=s.cancelbutton),"notfoundicon"in s&&n(10,x=s.notfoundicon),"mbsource"in s&&n(11,z=s.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&2&&u&&ye(),a.$$.dirty[1]&2&&T&&fe(),a.$$.dirty[0]&1073741824|a.$$.dirty[1]&1&&l&&c&&be(),a.$$.dirty[0]&256|a.$$.dirty[1]&4&&j&&A&&Se(),a.$$.dirty[0]&4100&&h&&I&&e.setClientStyling(I,h),a.$$.dirty[0]&4104&&d&&I&&e.setClientStylingURL(I,d),a.$$.dirty[0]&6144&&I&&e.setStreamStyling(I,`${z}.Style`,he)},[o,u,h,d,f,S,m,g,j,D,x,z,I,b,v,_,R,M,L,O,q,r,N,Y,ge,we,H,K,ke,i,l,c,T,A,Re,Ce,Fe,Le,Te]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Oe,Be,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:32,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ee,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoPage-D1gCtQ9f.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function E(e,r){t.addMessages(e,r)}const j={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-p37neu",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function D(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,p,h,d,x,y,g,f=e[4]("sortby")+"",b,w,S,B,A=(e[3]||e[4]("all"))+"",I,O,C,_,z,F,N,a,c,v,M,H,L,Z=t.ensure_array_like(Object.values(e[5])),m=[];for(let i=0;i<Z.length;i+=1)m[i]=P(D(e,Z,i));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),p=t.svg_element("path"),h=t.svg_element("path"),d=t.svg_element("path"),x=t.space(),y=t.element("div"),g=t.element("span"),b=t.text(f),w=t.space(),S=t.element("div"),B=t.element("span"),I=t.text(A),O=t.space(),C=t.element("span"),_=t.svg_element("svg"),z=t.svg_element("path"),a=t.space(),c=t.element("div"),v=t.element("ul");for(let i=0;i<m.length;i+=1)m[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(g,"class","SorterName"),t.attr(S,"class","SorterValueContainer"),t.attr(y,"class","SorterTextContainer"),t.attr(o,"class","SorterMainArea"),t.attr(z,"id","arrow"),t.attr(z,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(z,"transform","translate(-274.511 -441.088)"),t.attr(z,"fill","#d1d1d1"),t.attr(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(C,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(v,"class","SorterDropdown"),t.attr(c,"class",M="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,k){t.insert(i,r,k),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,p),t.append(s,h),t.append(s,d),t.append(o,x),t.append(o,y),t.append(y,g),t.append(g,b),t.append(y,w),t.append(y,S),t.append(S,B),t.append(B,I),t.append(n,O),t.append(n,C),t.append(C,_),t.append(_,z),t.append(r,a),t.append(r,c),t.append(c,v);for(let u=0;u<m.length;u+=1)m[u]&&m[u].m(v,null);H||(L=t.listen(n,"click",e[14]),H=!0)},p(i,k){if(k&16&&f!==(f=i[4]("sortby")+"")&&t.set_data(b,f),k&24&&A!==(A=(i[3]||i[4]("all"))+"")&&t.set_data(I,A),k&2&&F!==(F="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(C,"class",F),k&2&&N!==(N="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),k&120){Z=t.ensure_array_like(Object.values(i[5]));let u;for(u=0;u<Z.length;u+=1){const T=D(i,Z,u);m[u]?m[u].p(T,k):(m[u]=P(T),m[u].c(),m[u].m(v,null))}for(;u<m.length;u+=1)m[u].d(1);m.length=Z.length}k&2&&M!==(M="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(c,"class",M)},d(i){i&&t.detach(r),t.destroy_each(m,i),H=!1,L()}}}function P(e){let r,n,o,l,s,p,h,d,x,y,g;function f(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,x=t.space(),t.attr(o,"type","radio"),t.attr(o,"name","radio"),o.value=e[23],o.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(p,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(b,w){t.insert(b,r,w),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,p),t.append(n,h),t.append(n,d),t.append(r,x),y||(g=t.listen(o,"click",f),y=!0)},p(b,w){e=b,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(b){b&&t.detach(r),y=!1,g()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,p){t.insert(s,r,p),l&&l.m(r,null),e[16](r)},p(s,[p]){o===(o=n(s))&&l?l.p(s,p):(l&&l.d(1),l=o&&o(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[16](null)}}}function G(e,r,n){let o;t.component_subscribe(e,t.$format,a=>n(4,o=a));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:p=""}=r,{clientstylingurl:h=""}=r,{categoryid:d=""}=r,{mbsource:x}=r,y,g,f=!1,b=!0,w="",S="All";V({withLocale:"en",translations:{}});const B=()=>{fetch(s).then(c=>c.json()).then(c=>{Object.keys(c).forEach(v=>{E(v,c[v])})}).catch(c=>{console.log(c)})};Object.keys(j).forEach(a=>{E(a,j[a])});const A={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},I=()=>{var c;n(3,S="All"),n(2,b=!1),n(1,f=!1);let a=(c=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:c[d];a?n(3,S=a):n(3,S="All"),n(3,S=A[a])},O=a=>{n(3,S=a);let c=localStorage.getItem("vendorSortingBy");w=a;for(let v in A)if(A[v]===a){w=v;break}c==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:w})):(c=JSON.parse(c),c[d]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(c))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:d},window.location.href),n(1,f=!f)},C=()=>{n(1,f=!f),window.postMessage({type:"SortingOpened"},window.location.href)},_=a=>{a.data.type=="FilterOpened"&&n(1,f=!1)};t.onMount(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));const z=()=>C(),F=a=>O(a);function N(a){t.binding_callbacks[a?"unshift":"push"](()=>{g=a,n(0,g)})}return e.$$set=a=>{"lang"in a&&n(8,l=a.lang),"translationurl"in a&&n(9,s=a.translationurl),"clientstyling"in a&&n(10,p=a.clientstyling),"clientstylingurl"in a&&n(11,h=a.clientstylingurl),"categoryid"in a&&n(12,d=a.categoryid),"mbsource"in a&&n(13,x=a.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&I(),e.$$.dirty&1025&&p&&g&&t.setClientStyling(g,p),e.$$.dirty&2049&&h&&g&&t.setClientStylingURL(g,h),e.$$.dirty&8193&&g&&t.setStreamStyling(g,`${x}.Style`,y),e.$$.dirty&512&&s&&B()},[g,f,b,S,o,A,O,C,l,s,p,h,d,x,z,F,N]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;