@everymatrix/casino-lobby 1.86.4 → 1.86.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/components/CasinoCalendar-CDybCkBw.cjs +19 -0
  2. package/components/{CasinoCalendar-CTTcluAF.js → CasinoCalendar-DeuDpvc7.js} +1033 -1012
  3. package/components/{CasinoCalendar-g3C0yL-l.js → CasinoCalendar-qxlVRlx3.js} +849 -828
  4. package/components/{CasinoCalendarDailyDetails-MbSzyBl-.cjs → CasinoCalendarDailyDetails-0DzEjr4I.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-C6NZu63m.js → CasinoCalendarDailyDetails-DgSA6Oos.js} +38 -38
  6. package/components/{CasinoCalendarDailyDetails-BReSw0PH.js → CasinoCalendarDailyDetails-oDArpqk3.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-D_-hgIOG.js → CasinoCalendarDailyItem--x4C1v1R.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-vF8QUewM.cjs → CasinoCalendarDailyItem-BT_oTw81.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DW4bwJrg.js → CasinoCalendarDailyItem-D1UMrOrr.js} +34 -34
  10. package/components/{CasinoCategoriesSlider-uIpxZEDW.js → CasinoCategoriesSlider-BmkD2GJJ.js} +70 -70
  11. package/components/CasinoCategoriesSlider-CDsrUsbe.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-DLioXO8u.js → CasinoCategoriesSlider-DnJiwJ-i.js} +73 -73
  13. package/components/{CasinoCollectionsProviders-BDJPyhyP.js → CasinoCollectionsProviders-DS-cICru.js} +64 -64
  14. package/components/{CasinoCollectionsProviders-C66FXn8E.cjs → CasinoCollectionsProviders-KucGv4ev.cjs} +1 -1
  15. package/components/{CasinoCollectionsProviders-l8Bj7gLF.js → CasinoCollectionsProviders-SF9NUz_s.js} +77 -77
  16. package/components/{CasinoFavoritesSection-1xjeruY9.js → CasinoFavoritesSection-DBOa4rLG.js} +19 -19
  17. package/components/{CasinoFavoritesSection-JbXta4ej.js → CasinoFavoritesSection-Q91WkZtR.js} +19 -19
  18. package/components/{CasinoFavoritesSection-flqQ1Txz.cjs → CasinoFavoritesSection-ioWl2WWa.cjs} +1 -1
  19. package/components/{CasinoFilter-DK1IJtKj.js → CasinoFilter-Iy2ZAp7X.js} +244 -245
  20. package/components/CasinoFilter-S-pUTxvR.cjs +1 -0
  21. package/components/{CasinoFilter-AWMGrvg7.js → CasinoFilter-WlNu83Yo.js} +223 -222
  22. package/components/CasinoGameThumbnail-B386-P3k.cjs +47 -0
  23. package/components/{CasinoGameThumbnail-DgEB-dkM.js → CasinoGameThumbnail-Ddpsxirj.js} +1252 -1268
  24. package/components/{CasinoGameThumbnail-AMyBxNdq.js → CasinoGameThumbnail-yvrHp66V.js} +778 -762
  25. package/components/{CasinoGamesCategorySection-UbxtEgDx.js → CasinoGamesCategorySection-COcAuqTG.js} +301 -301
  26. package/components/{CasinoGamesCategorySection-blhrWiJn.js → CasinoGamesCategorySection-DDqd3M8L.js} +302 -302
  27. package/components/{CasinoGamesCategorySection-ZiaOwaIX.cjs → CasinoGamesCategorySection-DUgz8uau.cjs} +1 -1
  28. package/components/{CasinoJackpotBanner-sKWQEAXI.js → CasinoJackpotBanner-CuHjieHv.js} +89 -89
  29. package/components/{CasinoJackpotBanner-15vjCxeq.cjs → CasinoJackpotBanner-DEsoDJ4R.cjs} +1 -1
  30. package/components/{CasinoJackpotBanner-OEQ6kTNX.js → CasinoJackpotBanner-ovGVK744.js} +84 -84
  31. package/components/{CasinoLastPlayedSection-kM9yLvhD.cjs → CasinoLastPlayedSection-BHV-LRk1.cjs} +1 -1
  32. package/components/{CasinoLastPlayedSection-DlDq9l_7.js → CasinoLastPlayedSection-C8WSFXnj.js} +33 -33
  33. package/components/{CasinoLastPlayedSection-Dv7S9x-o.js → CasinoLastPlayedSection-cSkPcLtL.js} +33 -33
  34. package/components/{CasinoLobby-Dho7eG4P.js → CasinoLobby-Bc2QHTe4.js} +59 -59
  35. package/components/{CasinoLobby-BknjaOeS.js → CasinoLobby-Bkj4ZQu6.js} +59 -59
  36. package/components/{CasinoLobby-odJbcWRR.cjs → CasinoLobby-Cs6HmQRu.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-CGxtqevB.js → CasinoMostPlayedSection-CQdqKCZj.js} +45 -45
  38. package/components/{CasinoMostPlayedSection-BJpdcEGe.cjs → CasinoMostPlayedSection-DsX-pIXm.cjs} +1 -1
  39. package/components/{CasinoMostPlayedSection-PvqfZR6v.js → CasinoMostPlayedSection-smiwW5Ol.js} +45 -45
  40. package/components/{CasinoMyGames-Baaz8xfL.cjs → CasinoMyGames-CJ7rioBh.cjs} +1 -1
  41. package/components/{CasinoMyGames-C22R6240.js → CasinoMyGames-CYZ5nWjJ.js} +29 -29
  42. package/components/{CasinoMyGames-Cr-QJTaa.js → CasinoMyGames-CnnjGYeT.js} +29 -29
  43. package/components/{CasinoPage-BZnxTJSo.cjs → CasinoPage-BzASY7Hg.cjs} +1 -1
  44. package/components/{CasinoPage-DcXwVMup.js → CasinoPage-CUUEVdPt.js} +123 -123
  45. package/components/{CasinoPage-BGrASQhH.js → CasinoPage-Dg5sPuQa.js} +109 -109
  46. package/components/{CasinoRandomGame-DoBaxDNA.js → CasinoRandomGame-DBzLZj0J.js} +52 -52
  47. package/components/{CasinoRandomGame-Cz5w1Xkm.cjs → CasinoRandomGame-DRJXaM_Z.cjs} +1 -1
  48. package/components/{CasinoRandomGame-CLsTaSPD.js → CasinoRandomGame-Dh5EVxCR.js} +53 -53
  49. package/components/{CasinoSearch-D4nuoT1C.js → CasinoSearch--8BCnmOG.js} +85 -85
  50. package/components/{CasinoSearch-M-zypI5B.js → CasinoSearch-BxyP0Ga2.js} +82 -82
  51. package/components/{CasinoSearch-DHRGmpEd.cjs → CasinoSearch-r9ofFlZt.cjs} +1 -1
  52. package/components/{CasinoSlider-DvI5SCyj.js → CasinoSlider-BihCQ92y.js} +86 -86
  53. package/components/{CasinoSlider-B_WI_7Qb.cjs → CasinoSlider-C0mxz0hk.cjs} +1 -1
  54. package/components/{CasinoSlider-OSPrTvMo.js → CasinoSlider-DpYeYJhK.js} +87 -87
  55. package/components/{CasinoSort-DEbYB6BH.js → CasinoSort-BOsO5Bfe.js} +111 -112
  56. package/components/{CasinoSort-COpZLKBV.js → CasinoSort-CbOOYzWs.js} +103 -102
  57. package/components/{CasinoSort-KSHMLnqL.cjs → CasinoSort-L9UM4M85.cjs} +1 -1
  58. package/components/{CasinoWinners-CtR1v_xw.js → CasinoWinners-CDQfWIM6.js} +148 -148
  59. package/components/{CasinoWinners-DlPnBzX-.cjs → CasinoWinners-CxuidCR1.cjs} +1 -1
  60. package/components/{CasinoWinners-6u19h4xG.js → CasinoWinners-DAW-pGRt.js} +151 -151
  61. package/components/{GeneralAnimationLoading-oehLt3ob.cjs → GeneralAnimationLoading-CFokXkWs.cjs} +1 -1
  62. package/components/{GeneralAnimationLoading-CEqG5qMY.js → GeneralAnimationLoading-CPc2UOwA.js} +14 -14
  63. package/components/{GeneralAnimationLoading-rntZi33z.js → GeneralAnimationLoading-D0quTPWA.js} +14 -14
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{casino-play-random-game-Dge6-qaF.js → casino-play-random-game-DmsXPThq.js} +1 -1
  69. package/stencil/{casino-play-random-game-D9PFB7B2.js → casino-play-random-game-bUDjgSKo.js} +1 -1
  70. package/stencil/{casino-play-random-game-111R1Frl.cjs → casino-play-random-game-rBIQ75Yb.cjs} +1 -1
  71. package/stencil/{casino-play-random-game_2-CunwpDd1.js → casino-play-random-game_2-Bf4CHBc9.js} +2 -2
  72. package/stencil/{casino-play-random-game_2-auPXMZnz.js → casino-play-random-game_2-C30-vRGp.js} +2 -2
  73. package/stencil/{casino-play-random-game_2-cZvlv_fo.cjs → casino-play-random-game_2-CCCLDakd.cjs} +2 -2
  74. package/stencil/index-328e660d-B6ge05AJ.js +560 -0
  75. package/stencil/index-328e660d-C6OCQOhB.cjs +1 -0
  76. package/stencil/index-328e660d-Duk3nD23.js +576 -0
  77. package/stencil/index-97d17652-B6BYeRne.js +542 -0
  78. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  79. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  80. package/stencil/index-b2193545-BZAG_Jnw.js +503 -0
  81. package/stencil/index-b2193545-DG7pnr-7.js +519 -0
  82. package/stencil/index-b2193545-DuCTLpV-.cjs +1 -0
  83. package/stencil/{ui-image-C1Fl5HOc.cjs → ui-image-BmLAbwvr.cjs} +1 -1
  84. package/stencil/{ui-image-DnOuibDF.js → ui-image-DDulMZDF.js} +1 -1
  85. package/stencil/{ui-image-_mAQXh8W.js → ui-image-DwWgscwP.js} +1 -1
  86. package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  87. package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  88. package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  89. package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-CmVho0dS.js} +2 -2
  90. package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
  91. package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-Daq38JGa.js} +2 -2
  92. package/stencil/{ui-skeleton-CWdppDyF.cjs → ui-skeleton-BWEKzqTN.cjs} +1 -1
  93. package/stencil/{ui-skeleton-TkMXeWrD.js → ui-skeleton-D_tu1FGi.js} +2 -2
  94. package/stencil/{ui-skeleton-QCtPK7l5.js → ui-skeleton-DgZQnowa.js} +2 -2
  95. package/stencil/{ui-skeleton-ed169f8f-CiWqRE71.js → ui-skeleton-ed169f8f-Bs1q2JQr.js} +1 -1
  96. package/stencil/{ui-skeleton-ed169f8f-pTYMIneT.js → ui-skeleton-ed169f8f-D2rWx_KU.js} +1 -1
  97. package/stencil/{ui-skeleton-ed169f8f-BT7QFq3s.cjs → ui-skeleton-ed169f8f-Ti6Ksz7V.cjs} +1 -1
  98. package/components/CasinoCalendar-Bh1m4DYa.cjs +0 -19
  99. package/components/CasinoCategoriesSlider-CMW1BzhU.cjs +0 -1
  100. package/components/CasinoFilter-CrCTTPvH.cjs +0 -1
  101. package/components/CasinoGameThumbnail-Dymq8wWq.cjs +0 -47
  102. package/stencil/index-328e660d-A_dWaOAX.cjs +0 -1
  103. package/stencil/index-328e660d-BiHqu78m.js +0 -576
  104. package/stencil/index-328e660d-DJbpQFmN.js +0 -560
  105. package/stencil/index-97d17652-DvplcHtm.js +0 -558
  106. package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
  107. package/stencil/index-97d17652-p-iQtjus.js +0 -542
  108. package/stencil/index-b2193545-BkP0Nc2C.cjs +0 -1
  109. package/stencil/index-b2193545-CejVSlwL.js +0 -519
  110. package/stencil/index-b2193545-DL1I-QYR.js +0 -503
@@ -1,11 +1,11 @@
1
- import { a as be, $ as Ce, S as ye, i as _e, f as x, c as we, s as Se, b as ke, e as y, d as M, G as T, j, k as Ge, o as Pe, n as Le, p as Y, q as xe, r as Me, l as je, v as B, x as I, w as F, y as m, z as b, E as R, F as ne, A as O, O as Fe, L as N, J as Te, I as z, P as Be } from "./CasinoCalendar-g3C0yL-l.js";
2
- function Q(t, e) {
1
+ import { a as be, $ as Ce, S as ye, i as _e, s as we, f as M, b as Se, n as T, d as j, h as x, j as y, k as ke, o as Ge, l as Pe, C as Y, r as m, v as B, w as ne, m as I, p as b, q as R, B as F, O as Le, A as O, G as N, D as H, P as Me, H as je, I as xe, J as Fe, K as Te, L as Be } from "./CasinoCalendar-qxlVRlx3.js";
2
+ function D(t, e) {
3
3
  be(t, e);
4
4
  }
5
5
  function Oe(t) {
6
6
  Ce.set(t);
7
7
  }
8
- const D = {
8
+ const Q = {
9
9
  en: {
10
10
  collections: "Game Collections",
11
11
  providers: "Game Providers",
@@ -102,8 +102,8 @@ const D = {
102
102
  loading: "Loading, please wait ..."
103
103
  }
104
104
  };
105
- function ze(t) {
106
- ke(t, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
105
+ function He(t) {
106
+ Se(t, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
107
107
  }
108
108
  function $(t, e, i) {
109
109
  const n = t.slice();
@@ -113,7 +113,7 @@ function ee(t, e, i) {
113
113
  const n = t.slice();
114
114
  return n[44] = e[i], n;
115
115
  }
116
- function Ee(t) {
116
+ function ze(t) {
117
117
  let e, i, n, l = (
118
118
  /*type*/
119
119
  (t[0] === "vendor" ? (
@@ -135,7 +135,7 @@ function Ee(t) {
135
135
  a[d] = le($(t, f, d));
136
136
  return {
137
137
  c() {
138
- e = y("div"), i = y("div"), n = y("p"), r = I(l), c = F(), s && s.c(), _ = F(), C = y("div");
138
+ e = y("div"), i = y("div"), n = y("p"), r = R(l), c = F(), s && s.c(), _ = F(), C = y("div");
139
139
  for (let d = 0; d < a.length; d += 1)
140
140
  a[d].c();
141
141
  m(n, "class", "Title"), m(i, "class", "CategoriesHeader"), m(C, "class", "CategoriesSlider"), m(e, "class", S = "CasinoCollectionsProviders " + /*mobile*/
@@ -143,7 +143,7 @@ function Ee(t) {
143
143
  (t[0] === "vendor" ? "Providers" : "Collections"));
144
144
  },
145
145
  m(d, g) {
146
- M(d, e, g), b(e, i), b(i, n), b(n, r), b(i, c), s && s.m(i, null), b(e, _), b(e, C);
146
+ x(d, e, g), b(e, i), b(i, n), b(n, r), b(i, c), s && s.m(i, null), b(e, _), b(e, C);
147
147
  for (let h = 0; h < a.length; h += 1)
148
148
  a[h] && a[h].m(C, null);
149
149
  t[25](C);
@@ -157,7 +157,7 @@ function Ee(t) {
157
157
  ) : (
158
158
  /*$_*/
159
159
  d[10]("collections")
160
- )) + "") && R(r, l), /*numberOfSlides*/
160
+ )) + "") && I(r, l), /*numberOfSlides*/
161
161
  d[7] > /*numberOfVisibleSlides*/
162
162
  d[8] ? s ? s.p(d, g) : (s = te(d), s.c(), s.m(i, null)) : s && (s.d(1), s = null), g[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
163
163
  24590) {
@@ -184,14 +184,14 @@ function Ee(t) {
184
184
  }
185
185
  };
186
186
  }
187
- function He(t) {
187
+ function Ae(t) {
188
188
  let e;
189
189
  return {
190
190
  c() {
191
191
  e = y("div"), m(e, "class", "LoadingSpinner");
192
192
  },
193
193
  m(i, n) {
194
- M(i, e, n);
194
+ x(i, e, n);
195
195
  },
196
196
  p: T,
197
197
  d(i) {
@@ -206,7 +206,7 @@ function te(t) {
206
206
  e = y("div"), i = y("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = F(), l = y("button"), l.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', m(e, "class", "ButtonsContainer");
207
207
  },
208
208
  m(_, C) {
209
- M(_, e, C), b(e, i), b(e, n), b(e, l), r || (c = [
209
+ x(_, e, C), b(e, i), b(e, n), b(e, l), r || (c = [
210
210
  O(
211
211
  i,
212
212
  "click",
@@ -223,26 +223,26 @@ function te(t) {
223
223
  },
224
224
  p: T,
225
225
  d(_) {
226
- _ && j(e), r = !1, Fe(c);
226
+ _ && j(e), r = !1, Le(c);
227
227
  }
228
228
  };
229
229
  }
230
- function Ae(t) {
230
+ function Ee(t) {
231
231
  let e, i = (
232
232
  /*category*/
233
233
  t[41].name + ""
234
234
  ), n;
235
235
  return {
236
236
  c() {
237
- e = y("p"), n = I(i), m(e, "class", "CategorySlideTitle");
237
+ e = y("p"), n = R(i), m(e, "class", "CategorySlideTitle");
238
238
  },
239
239
  m(l, r) {
240
- M(l, e, r), b(e, n);
240
+ x(l, e, r), b(e, n);
241
241
  },
242
242
  p(l, r) {
243
243
  r[0] & /*gameCategories*/
244
244
  8 && i !== (i = /*category*/
245
- l[41].name + "") && R(n, i);
245
+ l[41].name + "") && I(n, i);
246
246
  },
247
247
  d(l) {
248
248
  l && j(e);
@@ -253,16 +253,16 @@ function Ne(t) {
253
253
  let e, i, n;
254
254
  return {
255
255
  c() {
256
- e = y("img"), m(e, "class", "CategorySlideLogo"), z(e.src, i = /*category*/
256
+ e = y("img"), m(e, "class", "CategorySlideLogo"), H(e.src, i = /*category*/
257
257
  t[41].icon) || m(e, "src", i), m(e, "alt", n = /*category*/
258
258
  t[41].name + " icon");
259
259
  },
260
260
  m(l, r) {
261
- M(l, e, r);
261
+ x(l, e, r);
262
262
  },
263
263
  p(l, r) {
264
264
  r[0] & /*gameCategories*/
265
- 8 && !z(e.src, i = /*category*/
265
+ 8 && !H(e.src, i = /*category*/
266
266
  l[41].icon) && m(e, "src", i), r[0] & /*gameCategories*/
267
267
  8 && n !== (n = /*category*/
268
268
  l[41].name + " icon") && m(e, "alt", n);
@@ -279,16 +279,16 @@ function ie(t) {
279
279
  ), n, l;
280
280
  return {
281
281
  c() {
282
- e = y("p"), n = I(i), m(e, "title", l = /*game*/
282
+ e = y("p"), n = R(i), m(e, "title", l = /*game*/
283
283
  t[44].name);
284
284
  },
285
285
  m(r, c) {
286
- M(r, e, c), b(e, n);
286
+ x(r, e, c), b(e, n);
287
287
  },
288
288
  p(r, c) {
289
289
  c[0] & /*gameCategories*/
290
290
  8 && i !== (i = /*game*/
291
- r[44].name + "") && R(n, i), c[0] & /*gameCategories*/
291
+ r[44].name + "") && I(n, i), c[0] & /*gameCategories*/
292
292
  8 && l !== (l = /*game*/
293
293
  r[44].name) && m(e, "title", l);
294
294
  },
@@ -314,16 +314,16 @@ function oe(t) {
314
314
  );
315
315
  return {
316
316
  c() {
317
- e = y("div"), i = y("img"), r = F(), s && s.c(), c = F(), m(i, "class", "CategorySlideGameImage"), z(i.src, n = /*game*/
317
+ e = y("div"), i = y("img"), r = F(), s && s.c(), c = F(), m(i, "class", "CategorySlideGameImage"), H(i.src, n = /*game*/
318
318
  t[44].defaultThumbnail) || m(i, "src", n), m(i, "alt", l = /*game*/
319
319
  t[44].name), m(e, "class", "CategorySlideGames");
320
320
  },
321
321
  m(f, a) {
322
- M(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, c), _ || (C = O(i, "click", Be(S)), _ = !0);
322
+ x(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, c), _ || (C = O(i, "click", Me(S)), _ = !0);
323
323
  },
324
324
  p(f, a) {
325
325
  t = f, a[0] & /*gameCategories*/
326
- 8 && !z(i.src, n = /*game*/
326
+ 8 && !H(i.src, n = /*game*/
327
327
  t[44].defaultThumbnail) && m(i, "src", n), a[0] & /*gameCategories*/
328
328
  8 && l !== (l = /*game*/
329
329
  t[44].name) && m(i, "alt", l), /*collectionprovidersgamenames*/
@@ -346,7 +346,7 @@ function le(t) {
346
346
  /*titletype*/
347
347
  u[1] === "title"
348
348
  )
349
- return Ae;
349
+ return Ee;
350
350
  }
351
351
  let f = s(t), a = f && f(t), d = B(
352
352
  /*category*/
@@ -373,7 +373,7 @@ function le(t) {
373
373
  t[41]?.background + ")"), N(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
374
374
  },
375
375
  m(u, v) {
376
- M(u, e, v), b(e, i), b(i, n), a && a.m(n, null), b(i, l), b(i, r);
376
+ x(u, e, v), b(e, i), b(i, n), a && a.m(n, null), b(i, l), b(i, r);
377
377
  for (let p = 0; p < g.length; p += 1)
378
378
  g[p] && g[p].m(r, null);
379
379
  b(e, _), C || (S = O(i, "click", h), C = !0);
@@ -410,7 +410,7 @@ function Ie(t) {
410
410
  function i(r, c) {
411
411
  return (
412
412
  /*isLoading*/
413
- r[6] ? He : Ee
413
+ r[6] ? Ae : ze
414
414
  );
415
415
  }
416
416
  let n = i(t), l = n(t);
@@ -419,7 +419,7 @@ function Ie(t) {
419
419
  e = y("div"), l.c();
420
420
  },
421
421
  m(r, c) {
422
- M(r, e, c), l.m(e, null), t[26](e);
422
+ x(r, e, c), l.m(e, null), t[26](e);
423
423
  },
424
424
  p(r, c) {
425
425
  n === (n = i(r)) && l ? l.p(r, c) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
@@ -433,24 +433,24 @@ function Ie(t) {
433
433
  }
434
434
  function Re(t, e, i) {
435
435
  let n;
436
- Ge(t, Te, (o) => i(10, n = o));
437
- let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, E, q = 0, H = 50, A = !1, G, re = window.navigator.userAgent, V;
436
+ ke(t, Be, (o) => i(10, n = o));
437
+ let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: c = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: d } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, z, q = 0, A = 50, E = !1, G, re = window.navigator.userAgent, V;
438
438
  const ae = () => {
439
439
  fetch(f).then((w) => w.json()).then((w) => {
440
440
  Object.keys(w).forEach((P) => {
441
- Q(P, w[P]);
441
+ D(P, w[P]);
442
442
  });
443
443
  }).catch((w) => {
444
444
  console.log(w);
445
445
  });
446
446
  };
447
- Object.keys(D).forEach((o) => {
448
- Q(o, D[o]);
447
+ Object.keys(Q).forEach((o) => {
448
+ D(o, Q[o]);
449
449
  });
450
450
  const W = () => {
451
451
  const o = new URL(`${l}/v2/casino/groups/${r}`);
452
- o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${q},limit=${H}`), fetch(o.href).then((w) => w.json()).then((w) => {
453
- i(6, h = !1), w.total > H && (q += 50, H += 50, i(22, A = !0));
452
+ o.searchParams.append("language", c), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${q},limit=${A}`), fetch(o.href).then((w) => w.json()).then((w) => {
453
+ i(6, h = !1), w.total > A && (q += 50, A += 50, i(22, E = !0));
454
454
  let P = w.items.map((L) => ({
455
455
  id: L.id,
456
456
  name: L.name,
@@ -464,18 +464,18 @@ function Re(t, e, i) {
464
464
  }, se = () => {
465
465
  const o = G.getRootNode().host;
466
466
  o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
467
- }, J = (o) => {
468
- E = [...u.children], E.forEach((w, P) => {
467
+ }, K = (o) => {
468
+ z = [...u.children], z.forEach((w, P) => {
469
469
  w.style.transform = `translateX(${100 * (o ? P - o : P)}%)`;
470
- }), U = E[0]?.getBoundingClientRect().width, de();
470
+ }), U = z[0]?.getBoundingClientRect().width, de();
471
471
  }, de = () => {
472
472
  i(8, k = Math.floor(u.clientWidth / U));
473
- }, K = () => {
474
- J(v);
473
+ }, J = () => {
474
+ K(v);
475
475
  }, ce = () => {
476
- v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--, K();
476
+ v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--, J();
477
477
  }, ge = () => {
478
- v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++, K();
478
+ v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++, J();
479
479
  }, Z = (o, w, P, L) => {
480
480
  window.postMessage(
481
481
  {
@@ -501,7 +501,7 @@ function Re(t, e, i) {
501
501
  }, ue = () => {
502
502
  Oe(c);
503
503
  };
504
- Pe(() => (i(9, V = Le(re)), () => {
504
+ Ge(() => (i(9, V = Pe(re)), () => {
505
505
  }));
506
506
  const me = (o) => Z(o.gameId, o.launchUrl, o.name, o.subVendor), fe = (o) => X(o.id);
507
507
  function pe(o) {
@@ -519,13 +519,13 @@ function Re(t, e, i) {
519
519
  }, t.$$.update = () => {
520
520
  t.$$.dirty[0] & /*endpoint, datasource, lang*/
521
521
  229376 && l && r && c && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
522
- 24 && g && u && J(), t.$$.dirty[0] & /*lang*/
522
+ 24 && g && u && K(), t.$$.dirty[0] & /*lang*/
523
523
  131072 && c && ue(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
524
- 262176 && S && G && xe(G, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
525
- 524320 && s && G && Me(G, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
526
- 2097184 && G && je(G, `${d}.Style`), t.$$.dirty[0] & /*translationurl*/
524
+ 262176 && S && G && je(G, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
525
+ 524320 && s && G && xe(G, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
526
+ 2097184 && G && Fe(G, `${d}.Style`), t.$$.dirty[0] & /*translationurl*/
527
527
  1048576 && f && ae(), t.$$.dirty[0] & /*paginationrequired*/
528
- 4194304 && A && W();
528
+ 4194304 && E && W();
529
529
  }, [
530
530
  _,
531
531
  C,
@@ -549,7 +549,7 @@ function Re(t, e, i) {
549
549
  s,
550
550
  f,
551
551
  d,
552
- A,
552
+ E,
553
553
  me,
554
554
  fe,
555
555
  pe,
@@ -563,7 +563,7 @@ class Ue extends ye {
563
563
  e,
564
564
  Re,
565
565
  Ie,
566
- Se,
566
+ we,
567
567
  {
568
568
  endpoint: 15,
569
569
  datasource: 16,
@@ -576,7 +576,7 @@ class Ue extends ye {
576
576
  collectionprovidersgamenames: 2,
577
577
  mbsource: 21
578
578
  },
579
- ze,
579
+ He,
580
580
  [-1, -1]
581
581
  );
582
582
  }
@@ -584,64 +584,64 @@ class Ue extends ye {
584
584
  return this.$$.ctx[15];
585
585
  }
586
586
  set endpoint(e) {
587
- this.$$set({ endpoint: e }), x();
587
+ this.$$set({ endpoint: e }), M();
588
588
  }
589
589
  get datasource() {
590
590
  return this.$$.ctx[16];
591
591
  }
592
592
  set datasource(e) {
593
- this.$$set({ datasource: e }), x();
593
+ this.$$set({ datasource: e }), M();
594
594
  }
595
595
  get lang() {
596
596
  return this.$$.ctx[17];
597
597
  }
598
598
  set lang(e) {
599
- this.$$set({ lang: e }), x();
599
+ this.$$set({ lang: e }), M();
600
600
  }
601
601
  get type() {
602
602
  return this.$$.ctx[0];
603
603
  }
604
604
  set type(e) {
605
- this.$$set({ type: e }), x();
605
+ this.$$set({ type: e }), M();
606
606
  }
607
607
  get titletype() {
608
608
  return this.$$.ctx[1];
609
609
  }
610
610
  set titletype(e) {
611
- this.$$set({ titletype: e }), x();
611
+ this.$$set({ titletype: e }), M();
612
612
  }
613
613
  get clientstyling() {
614
614
  return this.$$.ctx[18];
615
615
  }
616
616
  set clientstyling(e) {
617
- this.$$set({ clientstyling: e }), x();
617
+ this.$$set({ clientstyling: e }), M();
618
618
  }
619
619
  get clientstylingurl() {
620
620
  return this.$$.ctx[19];
621
621
  }
622
622
  set clientstylingurl(e) {
623
- this.$$set({ clientstylingurl: e }), x();
623
+ this.$$set({ clientstylingurl: e }), M();
624
624
  }
625
625
  get translationurl() {
626
626
  return this.$$.ctx[20];
627
627
  }
628
628
  set translationurl(e) {
629
- this.$$set({ translationurl: e }), x();
629
+ this.$$set({ translationurl: e }), M();
630
630
  }
631
631
  get collectionprovidersgamenames() {
632
632
  return this.$$.ctx[2];
633
633
  }
634
634
  set collectionprovidersgamenames(e) {
635
- this.$$set({ collectionprovidersgamenames: e }), x();
635
+ this.$$set({ collectionprovidersgamenames: e }), M();
636
636
  }
637
637
  get mbsource() {
638
638
  return this.$$.ctx[21];
639
639
  }
640
640
  set mbsource(e) {
641
- this.$$set({ mbsource: e }), x();
641
+ this.$$set({ mbsource: e }), M();
642
642
  }
643
643
  }
644
- we(Ue, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
644
+ Te(Ue, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
645
645
  export {
646
646
  Ue as default
647
647
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-Bh1m4DYa.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CDybCkBw.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;