@everymatrix/casino-lobby 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/components/{CasinoCalendar-_T8fa3tA.js → CasinoCalendar-8h5qdaaJ.js} +1018 -956
  2. package/components/{CasinoCalendar-CSMUhfCr.js → CasinoCalendar-D9zXfDS4.js} +988 -926
  3. package/components/CasinoCalendar-pDYRKcjG.cjs +22 -0
  4. package/components/{CasinoCalendarDailyDetails-DueCbaZn.js → CasinoCalendarDailyDetails-D0Kx4qhT.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-CGRqVKFV.js → CasinoCalendarDailyDetails-DFwCqTfY.js} +48 -48
  6. package/components/{CasinoCalendarDailyDetails-DspcjY5l.cjs → CasinoCalendarDailyDetails-DkbuLEg5.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-DxYbPmky.js → CasinoCalendarDailyItem-C62RswBp.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-DpLOlYVI.js → CasinoCalendarDailyItem-DTqfqF2k.js} +41 -41
  9. package/components/{CasinoCalendarDailyItem-DaSrAYwS.cjs → CasinoCalendarDailyItem-DX_5vyqn.cjs} +1 -1
  10. package/components/CasinoCategoriesSlider-3PL0POlf.cjs +1 -0
  11. package/components/{CasinoCategoriesSlider-DkmZ6uE9.js → CasinoCategoriesSlider-BhsSLM-H.js} +66 -66
  12. package/components/{CasinoCategoriesSlider-B7jmX0uM.js → CasinoCategoriesSlider-CCCss88T.js} +65 -65
  13. package/components/{CasinoCollectionsProviders-CFJKyip5.js → CasinoCollectionsProviders-8BCzbgO7.js} +72 -70
  14. package/components/{CasinoCollectionsProviders-XHUKRCjH.js → CasinoCollectionsProviders-B7jL1xWi.js} +70 -68
  15. package/components/{CasinoCollectionsProviders-fHbyEo_l.cjs → CasinoCollectionsProviders-DdI8afJV.cjs} +1 -1
  16. package/components/{CasinoFavoritesSection-ui8ebJSk.js → CasinoFavoritesSection-8fm71dF4.js} +28 -28
  17. package/components/{CasinoFavoritesSection-BJKuORXc.js → CasinoFavoritesSection-C0iLu9Sw.js} +28 -28
  18. package/components/{CasinoFavoritesSection-DAfQZFKH.cjs → CasinoFavoritesSection-DrmyxOK7.cjs} +1 -1
  19. package/components/{CasinoFilter-t6_A4K9e.js → CasinoFilter-BTgsR3X2.js} +241 -238
  20. package/components/CasinoFilter-D06f7IqM.cjs +1 -0
  21. package/components/{CasinoFilter-Cj6Ya1tA.js → CasinoFilter-m6_88uQv.js} +252 -247
  22. package/components/CasinoGamePage-CkvljoIb.js +4249 -0
  23. package/components/CasinoGamePage-DAH5L6F5.cjs +18 -0
  24. package/components/{CasinoGamePage-DQ1Yd_-1.js → CasinoGamePage-DAv8OZV8.js} +1645 -1692
  25. package/components/{CasinoGameThumbnail-CmtUwom1.js → CasinoGameThumbnail-B4KIog_7.js} +275 -286
  26. package/components/{CasinoGameThumbnail-B15M2LaO.js → CasinoGameThumbnail-BMm5Xl4k.js} +374 -353
  27. package/components/CasinoGameThumbnail-XF-v3tEC.cjs +38 -0
  28. package/components/{CasinoGamesCategorySection-Dw87pk8g.cjs → CasinoGamesCategorySection-BSklauO4.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-lpoHUMLN.js → CasinoGamesCategorySection-DUDDLFW2.js} +255 -248
  30. package/components/{CasinoGamesCategorySection-D9nxbG-c.js → CasinoGamesCategorySection-XWxil8vo.js} +334 -327
  31. package/components/{CasinoJackpotBanner-COZRcenh.js → CasinoJackpotBanner-6WZPbIyJ.js} +79 -79
  32. package/components/{CasinoJackpotBanner-DcwCa-Hp.js → CasinoJackpotBanner-Bu16yaAe.js} +72 -72
  33. package/components/{CasinoJackpotBanner-vFHgMV4j.cjs → CasinoJackpotBanner-CRGjJl2y.cjs} +1 -1
  34. package/components/{CasinoLastPlayedSection-yetII3tl.js → CasinoLastPlayedSection-BT4kxVP1.js} +43 -43
  35. package/components/{CasinoLastPlayedSection-IZ9mars2.js → CasinoLastPlayedSection-DFUMCS3n.js} +43 -43
  36. package/components/{CasinoLastPlayedSection-DUCFQv-7.cjs → CasinoLastPlayedSection-cjUgoZnI.cjs} +1 -1
  37. package/components/{CasinoLobby-CZ0buhgH.cjs → CasinoLobby-CRIb8E4f.cjs} +1 -1
  38. package/components/{CasinoLobby-CoCRB4M8.js → CasinoLobby-Di0-vjQH.js} +45 -45
  39. package/components/{CasinoLobby-DOvk4Q1L.js → CasinoLobby-DrBFK5gG.js} +47 -47
  40. package/components/{CasinoModal-6keCUEEx.cjs → CasinoModal-35QTkTq-.cjs} +1 -1
  41. package/components/{CasinoModal-DDDhdR0c.js → CasinoModal-Ce9u8B9n.js} +41 -41
  42. package/components/{CasinoModal-Dzu3FQyi.js → CasinoModal-DMOewty4.js} +41 -41
  43. package/components/{CasinoMostPlayedSection-BNDdZOM6.cjs → CasinoMostPlayedSection-C1K-DGkZ.cjs} +1 -1
  44. package/components/{CasinoMostPlayedSection-CGqU9ZQv.js → CasinoMostPlayedSection-CXWjhKax.js} +50 -50
  45. package/components/{CasinoMostPlayedSection-D0w6a_z2.js → CasinoMostPlayedSection-DAuM-1cc.js} +50 -50
  46. package/components/{CasinoMyGames-BKqlNnO1.js → CasinoMyGames-0CUDyeW1.js} +53 -49
  47. package/components/{CasinoMyGames-CX5HKRLY.cjs → CasinoMyGames-DQaVeSFh.cjs} +1 -1
  48. package/components/{CasinoMyGames-Dy3IMfzN.js → CasinoMyGames-DTWGCs0t.js} +54 -50
  49. package/components/{CasinoPage-DYcUhqdZ.js → CasinoPage-BFAkKTIr.js} +90 -86
  50. package/components/{CasinoPage-BnrghJel.js → CasinoPage-CYfqznpn.js} +90 -86
  51. package/components/{CasinoPage--1tMufa9.cjs → CasinoPage-Dn8IgsJW.cjs} +1 -1
  52. package/components/{CasinoRandomGame-Cup5oHY3.js → CasinoRandomGame-CwNUHn-I.js} +66 -64
  53. package/components/{CasinoRandomGame-B1qCGSlR.cjs → CasinoRandomGame-DnwNz2Jt.cjs} +1 -1
  54. package/components/{CasinoRandomGame-Dq7oLh0O.js → CasinoRandomGame-qSedkhdM.js} +66 -64
  55. package/components/{CasinoSearch-DlUwO5L4.js → CasinoSearch-58Bbs2ly.js} +78 -75
  56. package/components/{CasinoSearch-B1D8nnr0.cjs → CasinoSearch-DgenhLcJ.cjs} +1 -1
  57. package/components/{CasinoSearch-jV0H_1Yg.js → CasinoSearch-Itb9Lu5Z.js} +78 -75
  58. package/components/{CasinoSlider-ChnKJ8kH.js → CasinoSlider-BBo1-Yix.js} +65 -65
  59. package/components/{CasinoSlider-Ot2uFDD8.js → CasinoSlider-BLhtuqXM.js} +74 -74
  60. package/components/{CasinoSlider-4pDZHG6x.cjs → CasinoSlider-BiIS2-lS.cjs} +1 -1
  61. package/components/{CasinoSort-BnarJSWg.js → CasinoSort-CBEUIj6Q.js} +105 -105
  62. package/components/{CasinoSort-jqMnIqLs.cjs → CasinoSort-ClDrkZcs.cjs} +1 -1
  63. package/components/{CasinoSort-DltZUpda.js → CasinoSort-DDFUPoRE.js} +113 -111
  64. package/components/{CasinoWinners-BkJBCXPe.js → CasinoWinners-C9LcOp1b.js} +155 -153
  65. package/components/{CasinoWinners-Bs7Oh-m-.cjs → CasinoWinners-CNAN8Ko7.cjs} +1 -1
  66. package/components/{CasinoWinners-CBgbYBfP.js → CasinoWinners-wjNHmiu9.js} +160 -158
  67. package/components/{GeneralAnimationLoading-BUY2TGQr.js → GeneralAnimationLoading-D4V5ml6G.js} +16 -16
  68. package/components/{GeneralAnimationLoading-CRju5T01.js → GeneralAnimationLoading-DXg7Sgve.js} +16 -16
  69. package/components/{GeneralAnimationLoading-BLss2VP4.cjs → GeneralAnimationLoading-dlh-TGCV.cjs} +1 -1
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +1 -1
  74. package/stencil/{casino-play-random-game-CBXhEsCq.js → casino-play-random-game-B9yaAMOE.js} +6 -6
  75. package/stencil/{casino-play-random-game-PZXnDzfs.js → casino-play-random-game-BTXyM5es.js} +7 -7
  76. package/stencil/{casino-play-random-game-y8flXwPv.cjs → casino-play-random-game-a53bUW_d.cjs} +2 -2
  77. package/stencil/index-510a6ba4-B9_VY7vu.cjs +1 -0
  78. package/stencil/index-510a6ba4-CYFuKFRQ.js +564 -0
  79. package/stencil/index-510a6ba4-CzpWs0jf.js +548 -0
  80. package/components/CasinoCalendar-CFPK0TM5.cjs +0 -9
  81. package/components/CasinoCategoriesSlider-Tm48k88y.cjs +0 -1
  82. package/components/CasinoFilter-BZrHKXm3.cjs +0 -1
  83. package/components/CasinoGamePage-BCpBojD8.cjs +0 -18
  84. package/components/CasinoGamePage-DH-mxVYx.js +0 -4296
  85. package/components/CasinoGameThumbnail-CHGG4fWS.cjs +0 -38
  86. package/stencil/index-29915e18-B3XYTzEC.cjs +0 -1
  87. package/stencil/index-29915e18-CQ_kWzEh.js +0 -630
  88. package/stencil/index-29915e18-MPiqo7vY.js +0 -646
@@ -1,4 +1,4 @@
1
- import { a as ye, $ as we, S as Se, i as ke, s as Ge, f as M, b as Pe, n as B, d as x, h as T, j as b, k as Le, o as Me, l as je, C as Q, r as p, v as H, w as ae, m as R, p as v, R as xe, q as U, B as F, T as Te, U as Fe, A, G as I, D as N, V as ze, I as Oe, J as Be, K as He, L as Ae, M as Ne } from "./CasinoCalendar-CSMUhfCr.js";
1
+ import { a as ye, $ as we, S as Se, i as ke, f as M, c as Ge, s as Pe, b as Le, e as b, d as x, G as O, j as F, k as Me, o as je, l as xe, p as Fe, q as Q, r as Te, m as ze, v as A, x as R, w as T, y as p, R as He, z as v, T as Oe, E as U, F as ae, A as B, U as Ae, L as I, I as Be, H as N, V as Ne } from "./CasinoCalendar-D9zXfDS4.js";
2
2
  function $(t, e) {
3
3
  ye(t, e);
4
4
  }
@@ -103,7 +103,7 @@ const ee = {
103
103
  }
104
104
  };
105
105
  function Re(t) {
106
- Pe(t, "svelte-3oqkg3", '*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
106
+ Le(t, "svelte-3oqkg3", '*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
107
107
  }
108
108
  function te(t, e, i) {
109
109
  const n = t.slice();
@@ -127,7 +127,7 @@ function Ue(t) {
127
127
  /*numberOfSlides*/
128
128
  t[8] > /*numberOfVisibleSlides*/
129
129
  t[9] && le(t)
130
- ), g = H(
130
+ ), g = A(
131
131
  /*gameCategories*/
132
132
  t[3]
133
133
  ), m = [];
@@ -135,10 +135,10 @@ function Ue(t) {
135
135
  m[a] = re(te(t, g, a));
136
136
  return {
137
137
  c() {
138
- e = b("div"), i = b("div"), n = b("p"), r = U(l), d = F(), c && c.c(), C = F(), h = b("div");
138
+ e = b("div"), i = b("div"), n = b("p"), r = R(l), d = T(), c && c.c(), C = T(), h = b("div");
139
139
  for (let a = 0; a < m.length; a += 1)
140
140
  m[a].c();
141
- p(n, "class", "Title"), p(i, "class", "CategoriesHeader"), p(h, "class", "CategoriesSlider"), Te(() => (
141
+ p(n, "class", "Title"), p(i, "class", "CategoriesHeader"), p(h, "class", "CategoriesSlider"), He(() => (
142
142
  /*div1_elementresize_handler*/
143
143
  t[28].call(h)
144
144
  )), p(e, "class", u = "CasinoCollectionsProviders " + /*mobile*/
@@ -146,10 +146,10 @@ function Ue(t) {
146
146
  (t[0] === "vendor" ? "Providers" : "Collections"));
147
147
  },
148
148
  m(a, k) {
149
- T(a, e, k), v(e, i), v(i, n), v(n, r), v(i, d), c && c.m(i, null), v(e, C), v(e, h);
149
+ x(a, e, k), v(e, i), v(i, n), v(n, r), v(i, d), c && c.m(i, null), v(e, C), v(e, h);
150
150
  for (let s = 0; s < m.length; s += 1)
151
151
  m[s] && m[s].m(h, null);
152
- t[27](h), S = xe(
152
+ t[27](h), S = Oe(
153
153
  h,
154
154
  /*div1_elementresize_handler*/
155
155
  t[28].bind(h)
@@ -164,11 +164,11 @@ function Ue(t) {
164
164
  ) : (
165
165
  /*$_*/
166
166
  a[11]("collections")
167
- )) + "") && R(r, l), /*numberOfSlides*/
167
+ )) + "") && U(r, l), /*numberOfSlides*/
168
168
  a[8] > /*numberOfVisibleSlides*/
169
169
  a[9] ? c ? c.p(a, k) : (c = le(a), c.c(), c.m(i, null)) : c && (c.d(1), c = null), k[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
170
170
  49166) {
171
- g = H(
171
+ g = A(
172
172
  /*gameCategories*/
173
173
  a[3]
174
174
  );
@@ -187,7 +187,7 @@ function Ue(t) {
187
187
  (a[0] === "vendor" ? "Providers" : "Collections")) && p(e, "class", u);
188
188
  },
189
189
  d(a) {
190
- a && x(e), c && c.d(), ae(m, a), t[27](null), S();
190
+ a && F(e), c && c.d(), ae(m, a), t[27](null), S();
191
191
  }
192
192
  };
193
193
  }
@@ -198,11 +198,11 @@ function Ve(t) {
198
198
  e = b("div"), p(e, "class", "LoadingSpinner");
199
199
  },
200
200
  m(i, n) {
201
- T(i, e, n);
201
+ x(i, e, n);
202
202
  },
203
- p: B,
203
+ p: O,
204
204
  d(i) {
205
- i && x(e);
205
+ i && F(e);
206
206
  }
207
207
  };
208
208
  }
@@ -210,17 +210,17 @@ function le(t) {
210
210
  let e, i, n, l, r, d;
211
211
  return {
212
212
  c() {
213
- e = b("div"), i = b("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 = b("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>', p(e, "class", "ButtonsContainer");
213
+ e = b("div"), i = b("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 = T(), l = b("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>', p(e, "class", "ButtonsContainer");
214
214
  },
215
215
  m(C, h) {
216
- T(C, e, h), v(e, i), v(e, n), v(e, l), r || (d = [
217
- A(
216
+ x(C, e, h), v(e, i), v(e, n), v(e, l), r || (d = [
217
+ B(
218
218
  i,
219
219
  "click",
220
220
  /*click_handler*/
221
221
  t[23]
222
222
  ),
223
- A(
223
+ B(
224
224
  l,
225
225
  "click",
226
226
  /*click_handler_1*/
@@ -228,9 +228,9 @@ function le(t) {
228
228
  )
229
229
  ], r = !0);
230
230
  },
231
- p: B,
231
+ p: O,
232
232
  d(C) {
233
- C && x(e), r = !1, Fe(d);
233
+ C && F(e), r = !1, Ae(d);
234
234
  }
235
235
  };
236
236
  }
@@ -241,18 +241,18 @@ function We(t) {
241
241
  ), n;
242
242
  return {
243
243
  c() {
244
- e = b("p"), n = U(i), p(e, "class", "CategorySlideTitle");
244
+ e = b("p"), n = R(i), p(e, "class", "CategorySlideTitle");
245
245
  },
246
246
  m(l, r) {
247
- T(l, e, r), v(e, n);
247
+ x(l, e, r), v(e, n);
248
248
  },
249
249
  p(l, r) {
250
250
  r[0] & /*gameCategories*/
251
251
  8 && i !== (i = /*category*/
252
- l[41].name + "") && R(n, i);
252
+ l[41].name + "") && U(n, i);
253
253
  },
254
254
  d(l) {
255
- l && x(e);
255
+ l && F(e);
256
256
  }
257
257
  };
258
258
  }
@@ -265,7 +265,7 @@ function qe(t) {
265
265
  t[41].name + " icon");
266
266
  },
267
267
  m(l, r) {
268
- T(l, e, r);
268
+ x(l, e, r);
269
269
  },
270
270
  p(l, r) {
271
271
  r[0] & /*gameCategories*/
@@ -275,7 +275,7 @@ function qe(t) {
275
275
  l[41].name + " icon") && p(e, "alt", n);
276
276
  },
277
277
  d(l) {
278
- l && x(e);
278
+ l && F(e);
279
279
  }
280
280
  };
281
281
  }
@@ -286,21 +286,21 @@ function oe(t) {
286
286
  ), n, l;
287
287
  return {
288
288
  c() {
289
- e = b("p"), n = U(i), p(e, "title", l = /*game*/
289
+ e = b("p"), n = R(i), p(e, "title", l = /*game*/
290
290
  t[44].name);
291
291
  },
292
292
  m(r, d) {
293
- T(r, e, d), v(e, n);
293
+ x(r, e, d), v(e, n);
294
294
  },
295
295
  p(r, d) {
296
296
  d[0] & /*gameCategories*/
297
297
  8 && i !== (i = /*game*/
298
- r[44].name + "") && R(n, i), d[0] & /*gameCategories*/
298
+ r[44].name + "") && U(n, i), d[0] & /*gameCategories*/
299
299
  8 && l !== (l = /*game*/
300
300
  r[44].name) && p(e, "title", l);
301
301
  },
302
302
  d(r) {
303
- r && x(e);
303
+ r && F(e);
304
304
  }
305
305
  };
306
306
  }
@@ -321,12 +321,12 @@ function ne(t) {
321
321
  );
322
322
  return {
323
323
  c() {
324
- e = b("div"), i = b("img"), r = F(), u && u.c(), d = F(), p(i, "class", "CategorySlideGameImage"), N(i.src, n = /*game*/
324
+ e = b("div"), i = b("img"), r = T(), u && u.c(), d = T(), p(i, "class", "CategorySlideGameImage"), N(i.src, n = /*game*/
325
325
  t[44].defaultThumbnail) || p(i, "src", n), p(i, "alt", l = /*game*/
326
326
  t[44].name), p(e, "class", "CategorySlideGames");
327
327
  },
328
328
  m(c, g) {
329
- T(c, e, g), v(e, i), v(e, r), u && u.m(e, null), v(e, d), C || (h = A(i, "click", ze(S)), C = !0);
329
+ x(c, e, g), v(e, i), v(e, r), u && u.m(e, null), v(e, d), C || (h = B(i, "click", Ne(S)), C = !0);
330
330
  },
331
331
  p(c, g) {
332
332
  t = c, g[0] & /*gameCategories*/
@@ -337,7 +337,7 @@ function ne(t) {
337
337
  t[2] == "true" ? u ? u.p(t, g) : (u = oe(t), u.c(), u.m(e, d)) : u && (u.d(1), u = null);
338
338
  },
339
339
  d(c) {
340
- c && x(e), u && u.d(), C = !1, h();
340
+ c && F(e), u && u.d(), C = !1, h();
341
341
  }
342
342
  };
343
343
  }
@@ -347,13 +347,15 @@ function re(t) {
347
347
  if (
348
348
  /*titletype*/
349
349
  s[1] == "logo"
350
- ) return qe;
350
+ )
351
+ return qe;
351
352
  if (
352
353
  /*titletype*/
353
354
  s[1] == "title"
354
- ) return We;
355
+ )
356
+ return We;
355
357
  }
356
- let c = u(t), g = c && c(t), m = H(
358
+ let c = u(t), g = c && c(t), m = A(
357
359
  /*category*/
358
360
  t[41].games
359
361
  ), a = [];
@@ -371,24 +373,24 @@ function re(t) {
371
373
  return {
372
374
  c() {
373
375
  var s, f;
374
- e = b("div"), i = b("div"), n = b("div"), g && g.c(), l = F(), r = b("div");
376
+ e = b("div"), i = b("div"), n = b("div"), g && g.c(), l = T(), r = b("div");
375
377
  for (let _ = 0; _ < a.length; _ += 1)
376
378
  a[_].c();
377
- C = F(), p(n, "class", "CategorySlideTopContainer"), p(r, "class", "CategorySlideGameContainer"), p(i, "class", d = "CategorySlide " + /*category*/
379
+ C = T(), p(n, "class", "CategorySlideTopContainer"), p(r, "class", "CategorySlideGameContainer"), p(i, "class", d = "CategorySlide " + /*category*/
378
380
  (((s = t[41]) == null ? void 0 : s.flag[0]) == "vendor" ? "CategorySlideNoHighlight" : "")), I(i, "background-image", "url(" + /*category*/
379
381
  ((f = t[41]) == null ? void 0 : f.background) + ")"), I(i, "background-size", "cover"), p(e, "class", "CategoriesSliderWrapper Animation");
380
382
  },
381
383
  m(s, f) {
382
- T(s, e, f), v(e, i), v(i, n), g && g.m(n, null), v(i, l), v(i, r);
384
+ x(s, e, f), v(e, i), v(i, n), g && g.m(n, null), v(i, l), v(i, r);
383
385
  for (let _ = 0; _ < a.length; _ += 1)
384
386
  a[_] && a[_].m(r, null);
385
- v(e, C), h || (S = A(i, "click", k), h = !0);
387
+ v(e, C), h || (S = B(i, "click", k), h = !0);
386
388
  },
387
389
  p(s, f) {
388
390
  var _, P;
389
391
  if (t = s, c === (c = u(t)) && g ? g.p(t, f) : (g && g.d(1), g = c && c(t), g && (g.c(), g.m(n, null))), f[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
390
392
  16396) {
391
- m = H(
393
+ m = A(
392
394
  /*category*/
393
395
  t[41].games
394
396
  );
@@ -408,11 +410,11 @@ function re(t) {
408
410
  ((P = t[41]) == null ? void 0 : P.background) + ")");
409
411
  },
410
412
  d(s) {
411
- s && x(e), g && g.d(), ae(a, s), h = !1, S();
413
+ s && F(e), g && g.d(), ae(a, s), h = !1, S();
412
414
  }
413
415
  };
414
416
  }
415
- function De(t) {
417
+ function Ee(t) {
416
418
  let e;
417
419
  function i(r, d) {
418
420
  return (
@@ -426,22 +428,22 @@ function De(t) {
426
428
  e = b("div"), l.c();
427
429
  },
428
430
  m(r, d) {
429
- T(r, e, d), l.m(e, null), t[29](e);
431
+ x(r, e, d), l.m(e, null), t[29](e);
430
432
  },
431
433
  p(r, d) {
432
434
  n === (n = i(r)) && l ? l.p(r, d) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
433
435
  },
434
- i: B,
435
- o: B,
436
+ i: O,
437
+ o: O,
436
438
  d(r) {
437
- r && x(e), l.d(), t[29](null);
439
+ r && F(e), l.d(), t[29](null);
438
440
  }
439
441
  };
440
442
  }
441
- function Ee(t, e, i) {
443
+ function De(t, e, i) {
442
444
  let n;
443
- Le(t, Ne, (o) => i(11, n = o));
444
- let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: C = "" } = e, { titletype: h = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: c = "" } = e, { collectionprovidersgamenames: g = "" } = e, { mbsource: m } = e, a = [], k = !0, s, f = 0, _ = 0, P = 0, y, z, j, se = window.navigator.userAgent, V, O = 0;
445
+ Me(t, Be, (o) => i(11, n = o));
446
+ let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: C = "" } = e, { titletype: h = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: c = "" } = e, { collectionprovidersgamenames: g = "" } = e, { mbsource: m } = e, a = [], k = !0, s, f = 0, _ = 0, P = 0, y, z, j, se = window.navigator.userAgent, V, H = 0;
445
447
  const ce = () => {
446
448
  fetch(c).then((w) => w.json()).then((w) => {
447
449
  Object.keys(w).forEach((L) => {
@@ -460,11 +462,11 @@ function Ee(t, e, i) {
460
462
  i(7, k = !1);
461
463
  let L = w.items.filter((G) => G.flags == C);
462
464
  i(3, a = L.map((G) => {
463
- var Z, X, Y;
465
+ var J, X, Y;
464
466
  return {
465
467
  id: G.id,
466
468
  name: G.name,
467
- icon: G.icon ? G.icon : (Y = (X = (Z = G.vendors) == null ? void 0 : Z.items[0]) == null ? void 0 : X.subVendors[0]) == null ? void 0 : Y.logo,
469
+ icon: G.icon ? G.icon : (Y = (X = (J = G.vendors) == null ? void 0 : J.items[0]) == null ? void 0 : X.subVendors[0]) == null ? void 0 : Y.logo,
468
470
  games: G.games.items.slice(0, 4).map((Ce) => Ce),
469
471
  background: G.background,
470
472
  flag: G.flags
@@ -476,12 +478,12 @@ function Ee(t, e, i) {
476
478
  w.style.transform = `translateX(${100 * (o ? L - o : L)}%)`;
477
479
  }), y = z[0].getBoundingClientRect().width, ge();
478
480
  }, ge = () => {
479
- i(9, P = Math.floor(O / y));
481
+ i(9, P = Math.floor(H / y));
480
482
  }, q = () => {
481
483
  W(f);
482
- }, D = () => {
483
- f === 0 ? f = _ - P : f - P < -1 ? f = 0 : f--, q();
484
484
  }, E = () => {
485
+ f === 0 ? f = _ - P : f - P < -1 ? f = 0 : f--, q();
486
+ }, D = () => {
485
487
  f === _ - P ? f = 0 : _ - P < f + 1 ? f = _ - P : f++, q();
486
488
  }, K = (o, w, L, G) => {
487
489
  window.postMessage(
@@ -497,7 +499,7 @@ function Ee(t, e, i) {
497
499
  context: "CollectionsProviders",
498
500
  gameName: `${L}`
499
501
  });
500
- }, J = (o) => {
502
+ }, Z = (o) => {
501
503
  window.postMessage(
502
504
  {
503
505
  type: "OpenCollectionsProvidersCategory",
@@ -508,16 +510,16 @@ function Ee(t, e, i) {
508
510
  }, ue = () => {
509
511
  Ie(d);
510
512
  };
511
- Me(() => (i(10, V = je(se)), () => {
513
+ je(() => (i(10, V = Fe(se)), () => {
512
514
  }));
513
- const me = () => D(), fe = () => E(), pe = (o) => K(o.gameId, o.launchUrl, o.name, o.subVendor), he = (o) => J(o.id);
515
+ const me = () => E(), fe = () => D(), pe = (o) => K(o.gameId, o.launchUrl, o.name, o.subVendor), he = (o) => Z(o.id);
514
516
  function ve(o) {
515
517
  Q[o ? "unshift" : "push"](() => {
516
518
  s = o, i(4, s);
517
519
  });
518
520
  }
519
521
  function _e() {
520
- O = this.clientWidth, i(6, O);
522
+ H = this.clientWidth, i(6, H);
521
523
  }
522
524
  function be(o) {
523
525
  Q[o ? "unshift" : "push"](() => {
@@ -529,11 +531,11 @@ function Ee(t, e, i) {
529
531
  }, t.$$.update = () => {
530
532
  t.$$.dirty[0] & /*endpoint, datasource, lang*/
531
533
  458752 && l && r && d && de(), t.$$.dirty[0] & /*categoriesSliderWidth, gameCategories, categoriesSlider*/
532
- 88 && O && a && s && W(), t.$$.dirty[0] & /*lang*/
534
+ 88 && H && a && s && W(), t.$$.dirty[0] & /*lang*/
533
535
  262144 && d && ue(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
534
- 524320 && S && j && Oe(j, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
535
- 1048608 && u && j && Be(j, u), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
536
- 4194336 && j && He(j, `${m}.Style`), t.$$.dirty[0] & /*translationurl*/
536
+ 524320 && S && j && Te(j, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
537
+ 1048608 && u && j && xe(j, u), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
538
+ 4194336 && j && ze(j, `${m}.Style`), t.$$.dirty[0] & /*translationurl*/
537
539
  2097152 && c && ce();
538
540
  }, [
539
541
  C,
@@ -542,16 +544,16 @@ function Ee(t, e, i) {
542
544
  a,
543
545
  s,
544
546
  j,
545
- O,
547
+ H,
546
548
  k,
547
549
  _,
548
550
  P,
549
551
  V,
550
552
  n,
551
- D,
552
553
  E,
554
+ D,
553
555
  K,
554
- J,
556
+ Z,
555
557
  l,
556
558
  r,
557
559
  d,
@@ -573,9 +575,9 @@ class Ke extends Se {
573
575
  super(), ke(
574
576
  this,
575
577
  e,
576
- Ee,
577
578
  De,
578
- Ge,
579
+ Ee,
580
+ Pe,
579
581
  {
580
582
  endpoint: 16,
581
583
  datasource: 17,
@@ -653,7 +655,7 @@ class Ke extends Se {
653
655
  this.$$set({ mbsource: e }), M();
654
656
  }
655
657
  }
656
- Ae(Ke, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
658
+ Ge(Ke, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
657
659
  export {
658
660
  Ke as default
659
661
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CFPK0TM5.cjs");function N(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const I={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-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(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,n=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,h,C,p,c=i[8]>i[9]&&W(i),u=e.ensure_array_like(i[3]),m=[];for(let s=0;s<u.length;s+=1)m[s]=E(R(i,u,s));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(n),g=e.space(),c&&c.c(),v=e.space(),h=e.element("div");for(let s=0;s<m.length;s+=1)m[s].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(h,"class","CategoriesSlider"),e.add_render_callback(()=>i[28].call(h)),e.attr(t,"class",p="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(s,w){e.insert(s,t,w),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,h);for(let d=0;d<m.length;d+=1)m[d]&&m[d].m(h,null);i[27](h),C=e.add_iframe_resize_listener(h,i[28].bind(h))},p(s,w){if(w[0]&2049&&n!==(n=(s[0]=="vendor"?s[11]("providers"):s[11]("collections"))+"")&&e.set_data(a,n),s[8]>s[9]?c?c.p(s,w):(c=W(s),c.c(),c.m(l,null)):c&&(c.d(1),c=null),w[0]&49166){u=e.ensure_array_like(s[3]);let d;for(d=0;d<u.length;d+=1){const f=R(s,u,d);m[d]?m[d].p(f,w):(m[d]=E(f),m[d].c(),m[d].m(h,null))}for(;d<m.length;d+=1)m[d].d(1);m.length=u.length}w[0]&1025&&p!==(p="CasinoCollectionsProviders "+(s[10]?"Mobile":"")+" "+(s[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",p)},d(s){s&&e.detach(t),c&&c.d(),e.destroy_each(m,s),i[27](null),C()}}}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 W(i){let t,l,r,n,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(),n=e.element("button"),n.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,h){e.insert(v,t,h),e.append(t,l),e.append(t,r),e.append(t,n),a||(g=[e.listen(l,"click",i[23]),e.listen(n,"click",i[24])],a=!0)},p:e.noop,d(v){v&&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(n,a){e.insert(n,t,a),e.append(t,r)},p(n,a){a[0]&8&&l!==(l=n[41].name+"")&&e.set_data(r,l)},d(n){n&&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(n,a){e.insert(n,t,a)},p(n,a){a[0]&8&&!e.src_url_equal(t.src,l=n[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=n[41].name+" icon")&&e.attr(t,"alt",r)},d(n){n&&e.detach(t)}}}function V(i){let t,l=i[44].name+"",r,n;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",n=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&&n!==(n=a[44].name)&&e.attr(t,"title",n)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,n,a,g,v,h;function C(){return i[25](i[44])}let p=i[2]=="true"&&V(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),p&&p.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",n=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(t,a),p&&p.m(t,null),e.append(t,g),v||(h=e.listen(l,"click",e.stop_propagation(C)),v=!0)},p(c,u){i=c,u[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),u[0]&8&&n!==(n=i[44].name)&&e.attr(l,"alt",n),i[2]=="true"?p?p.p(i,u):(p=V(i),p.c(),p.m(t,g)):p&&(p.d(1),p=null)},d(c){c&&e.detach(t),p&&p.d(),v=!1,h()}}}function E(i){let t,l,r,n,a,g,v,h,C;function p(d,f){if(d[1]=="logo")return ue;if(d[1]=="title")return ge}let c=p(i),u=c&&c(i),m=e.ensure_array_like(i[41].games),s=[];for(let d=0;d<m.length;d+=1)s[d]=D(U(i,m,d));function w(){return i[26](i[41])}return{c(){var d,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),u&&u.c(),n=e.space(),a=e.element("div");for(let _=0;_<s.length;_+=1)s[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((d=i[41])==null?void 0:d.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(d,f){e.insert(d,t,f),e.append(t,l),e.append(l,r),u&&u.m(r,null),e.append(l,n),e.append(l,a);for(let _=0;_<s.length;_+=1)s[_]&&s[_].m(a,null);e.append(t,v),h||(C=e.listen(l,"click",w),h=!0)},p(d,f){var _,k;if(i=d,c===(c=p(i))&&u?u.p(i,f):(u&&u.d(1),u=c&&c(i),u&&(u.c(),u.m(r,null))),f[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const L=U(i,m,b);s[b]?s[b].p(L,f):(s[b]=D(L),s[b].c(),s[b].m(a,null))}for(;b<s.length;b+=1)s[b].d(1);s.length=m.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.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(d){d&&e.detach(t),u&&u.d(),e.destroy_each(s,d),h=!1,C()}}}function pe(i){let t;function l(a,g){return a[7]?ce:de}let r=l(i),n=r(i);return{c(){t=e.element("div"),n.c()},m(a,g){e.insert(a,t,g),n.m(t,null),i[29](t)},p(a,g){r===(r=l(a))&&n?n.p(a,g):(n.d(1),n=r(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[29](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,o=>l(11,r=o));let{endpoint:n=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:h=""}=t,{clientstyling:C=""}=t,{clientstylingurl:p=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:u=""}=t,{mbsource:m}=t,s=[],w=!0,d,f=0,_=0,k=0,b,L,P,Z=window.navigator.userAgent,j,M=0;const J=()=>{fetch(c).then(y=>y.json()).then(y=>{Object.keys(y).forEach(G=>{N(G,y[G])})}).catch(y=>{console.log(y)})};Object.keys(I).forEach(o=>{N(o,I[o])});const X=()=>{const o=new URL(`${n}/v2/casino/groups/${a}`);o.searchParams.append("language",g),o.searchParams.append("expand","games"),fetch(o.href).then(y=>y.json()).then(y=>{l(7,w=!1);let G=y.items.filter(S=>S.flags==v);l(3,s=G.map(S=>{var B,A,q;return{id:S.id,name:S.name,icon:S.icon?S.icon:(q=(A=(B=S.vendors)==null?void 0:B.items[0])==null?void 0:A.subVendors[0])==null?void 0:q.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}})),l(8,_=s.length)})},x=o=>{L=[...d.children],L.forEach((y,G)=>{y.style.transform=`translateX(${100*(o?G-o:G)}%)`}),b=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(9,k=Math.floor(M/b))},T=()=>{x(f)},F=()=>{f===0?f=_-k:f-k<-1?f=0:f--,T()},z=()=>{f===_-k?f=0:_-k<f+1?f=_-k:f++,T()},O=(o,y,G,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:o,launchUrl:y,gameName:G,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},H=o=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:o},window.location.href)},Q=()=>{ae(g)};e.onMount(()=>(l(10,j=e.isMobile(Z)),()=>{}));const $=()=>F(),ee=()=>z(),te=o=>O(o.gameId,o.launchUrl,o.name,o.subVendor),ie=o=>H(o.id);function le(o){e.binding_callbacks[o?"unshift":"push"](()=>{d=o,l(4,d)})}function ne(){M=this.clientWidth,l(6,M)}function oe(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,l(5,P)})}return i.$$set=o=>{"endpoint"in o&&l(16,n=o.endpoint),"datasource"in o&&l(17,a=o.datasource),"lang"in o&&l(18,g=o.lang),"type"in o&&l(0,v=o.type),"titletype"in o&&l(1,h=o.titletype),"clientstyling"in o&&l(19,C=o.clientstyling),"clientstylingurl"in o&&l(20,p=o.clientstylingurl),"translationurl"in o&&l(21,c=o.translationurl),"collectionprovidersgamenames"in o&&l(2,u=o.collectionprovidersgamenames),"mbsource"in o&&l(22,m=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&458752&&n&&a&&g&&X(),i.$$.dirty[0]&88&&M&&s&&d&&x(),i.$$.dirty[0]&262144&&g&&Q(),i.$$.dirty[0]&524320&&C&&P&&e.setClientStyling(P,C),i.$$.dirty[0]&1048608&&p&&P&&e.setClientStylingURL(P,p),i.$$.dirty[0]&4194336&&P&&e.setStreamStyling(P,`${m}.Style`),i.$$.dirty[0]&2097152&&c&&J()},[v,h,u,s,d,P,M,w,_,k,j,r,F,z,O,H,n,a,g,C,p,c,m,$,ee,te,ie,le,ne,oe]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2,mbsource:22},se,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}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[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}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[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-pDYRKcjG.cjs");function N(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const I={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-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(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,n=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,h,C,p,c=i[8]>i[9]&&W(i),u=e.ensure_array_like(i[3]),m=[];for(let s=0;s<u.length;s+=1)m[s]=E(R(i,u,s));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(n),g=e.space(),c&&c.c(),v=e.space(),h=e.element("div");for(let s=0;s<m.length;s+=1)m[s].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(h,"class","CategoriesSlider"),e.add_render_callback(()=>i[28].call(h)),e.attr(t,"class",p="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(s,w){e.insert(s,t,w),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,h);for(let d=0;d<m.length;d+=1)m[d]&&m[d].m(h,null);i[27](h),C=e.add_iframe_resize_listener(h,i[28].bind(h))},p(s,w){if(w[0]&2049&&n!==(n=(s[0]=="vendor"?s[11]("providers"):s[11]("collections"))+"")&&e.set_data(a,n),s[8]>s[9]?c?c.p(s,w):(c=W(s),c.c(),c.m(l,null)):c&&(c.d(1),c=null),w[0]&49166){u=e.ensure_array_like(s[3]);let d;for(d=0;d<u.length;d+=1){const f=R(s,u,d);m[d]?m[d].p(f,w):(m[d]=E(f),m[d].c(),m[d].m(h,null))}for(;d<m.length;d+=1)m[d].d(1);m.length=u.length}w[0]&1025&&p!==(p="CasinoCollectionsProviders "+(s[10]?"Mobile":"")+" "+(s[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",p)},d(s){s&&e.detach(t),c&&c.d(),e.destroy_each(m,s),i[27](null),C()}}}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 W(i){let t,l,r,n,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(),n=e.element("button"),n.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,h){e.insert(v,t,h),e.append(t,l),e.append(t,r),e.append(t,n),a||(g=[e.listen(l,"click",i[23]),e.listen(n,"click",i[24])],a=!0)},p:e.noop,d(v){v&&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(n,a){e.insert(n,t,a),e.append(t,r)},p(n,a){a[0]&8&&l!==(l=n[41].name+"")&&e.set_data(r,l)},d(n){n&&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(n,a){e.insert(n,t,a)},p(n,a){a[0]&8&&!e.src_url_equal(t.src,l=n[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=n[41].name+" icon")&&e.attr(t,"alt",r)},d(n){n&&e.detach(t)}}}function V(i){let t,l=i[44].name+"",r,n;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",n=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&&n!==(n=a[44].name)&&e.attr(t,"title",n)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,n,a,g,v,h;function C(){return i[25](i[44])}let p=i[2]=="true"&&V(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),p&&p.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",n=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(t,a),p&&p.m(t,null),e.append(t,g),v||(h=e.listen(l,"click",e.stop_propagation(C)),v=!0)},p(c,u){i=c,u[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),u[0]&8&&n!==(n=i[44].name)&&e.attr(l,"alt",n),i[2]=="true"?p?p.p(i,u):(p=V(i),p.c(),p.m(t,g)):p&&(p.d(1),p=null)},d(c){c&&e.detach(t),p&&p.d(),v=!1,h()}}}function E(i){let t,l,r,n,a,g,v,h,C;function p(d,f){if(d[1]=="logo")return ue;if(d[1]=="title")return ge}let c=p(i),u=c&&c(i),m=e.ensure_array_like(i[41].games),s=[];for(let d=0;d<m.length;d+=1)s[d]=D(U(i,m,d));function w(){return i[26](i[41])}return{c(){var d,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),u&&u.c(),n=e.space(),a=e.element("div");for(let _=0;_<s.length;_+=1)s[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((d=i[41])==null?void 0:d.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(d,f){e.insert(d,t,f),e.append(t,l),e.append(l,r),u&&u.m(r,null),e.append(l,n),e.append(l,a);for(let _=0;_<s.length;_+=1)s[_]&&s[_].m(a,null);e.append(t,v),h||(C=e.listen(l,"click",w),h=!0)},p(d,f){var _,k;if(i=d,c===(c=p(i))&&u?u.p(i,f):(u&&u.d(1),u=c&&c(i),u&&(u.c(),u.m(r,null))),f[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const L=U(i,m,b);s[b]?s[b].p(L,f):(s[b]=D(L),s[b].c(),s[b].m(a,null))}for(;b<s.length;b+=1)s[b].d(1);s.length=m.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.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(d){d&&e.detach(t),u&&u.d(),e.destroy_each(s,d),h=!1,C()}}}function pe(i){let t;function l(a,g){return a[7]?ce:de}let r=l(i),n=r(i);return{c(){t=e.element("div"),n.c()},m(a,g){e.insert(a,t,g),n.m(t,null),i[29](t)},p(a,g){r===(r=l(a))&&n?n.p(a,g):(n.d(1),n=r(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[29](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,o=>l(11,r=o));let{endpoint:n=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:h=""}=t,{clientstyling:C=""}=t,{clientstylingurl:p=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:u=""}=t,{mbsource:m}=t,s=[],w=!0,d,f=0,_=0,k=0,b,L,P,Z=window.navigator.userAgent,j,M=0;const J=()=>{fetch(c).then(y=>y.json()).then(y=>{Object.keys(y).forEach(G=>{N(G,y[G])})}).catch(y=>{console.log(y)})};Object.keys(I).forEach(o=>{N(o,I[o])});const X=()=>{const o=new URL(`${n}/v2/casino/groups/${a}`);o.searchParams.append("language",g),o.searchParams.append("expand","games"),fetch(o.href).then(y=>y.json()).then(y=>{l(7,w=!1);let G=y.items.filter(S=>S.flags==v);l(3,s=G.map(S=>{var B,A,q;return{id:S.id,name:S.name,icon:S.icon?S.icon:(q=(A=(B=S.vendors)==null?void 0:B.items[0])==null?void 0:A.subVendors[0])==null?void 0:q.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}})),l(8,_=s.length)})},x=o=>{L=[...d.children],L.forEach((y,G)=>{y.style.transform=`translateX(${100*(o?G-o:G)}%)`}),b=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(9,k=Math.floor(M/b))},T=()=>{x(f)},F=()=>{f===0?f=_-k:f-k<-1?f=0:f--,T()},z=()=>{f===_-k?f=0:_-k<f+1?f=_-k:f++,T()},O=(o,y,G,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:o,launchUrl:y,gameName:G,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},H=o=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:o},window.location.href)},Q=()=>{ae(g)};e.onMount(()=>(l(10,j=e.isMobile(Z)),()=>{}));const $=()=>F(),ee=()=>z(),te=o=>O(o.gameId,o.launchUrl,o.name,o.subVendor),ie=o=>H(o.id);function le(o){e.binding_callbacks[o?"unshift":"push"](()=>{d=o,l(4,d)})}function ne(){M=this.clientWidth,l(6,M)}function oe(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,l(5,P)})}return i.$$set=o=>{"endpoint"in o&&l(16,n=o.endpoint),"datasource"in o&&l(17,a=o.datasource),"lang"in o&&l(18,g=o.lang),"type"in o&&l(0,v=o.type),"titletype"in o&&l(1,h=o.titletype),"clientstyling"in o&&l(19,C=o.clientstyling),"clientstylingurl"in o&&l(20,p=o.clientstylingurl),"translationurl"in o&&l(21,c=o.translationurl),"collectionprovidersgamenames"in o&&l(2,u=o.collectionprovidersgamenames),"mbsource"in o&&l(22,m=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&458752&&n&&a&&g&&X(),i.$$.dirty[0]&88&&M&&s&&d&&x(),i.$$.dirty[0]&262144&&g&&Q(),i.$$.dirty[0]&524320&&C&&P&&e.setClientStyling(P,C),i.$$.dirty[0]&1048608&&p&&P&&e.setClientStylingURL(P,p),i.$$.dirty[0]&4194336&&P&&e.setStreamStyling(P,`${m}.Style`),i.$$.dirty[0]&2097152&&c&&J()},[v,h,u,s,d,P,M,w,_,k,j,r,F,z,O,H,n,a,g,C,p,c,m,$,ee,te,ie,le,ne,oe]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2,mbsource:22},se,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}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[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}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[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=K;