@everymatrix/casino-page 1.57.0 → 1.58.1

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 (70) hide show
  1. package/components/{CasinoCalendar-Beb-D9v5.js → CasinoCalendar-DSG6g7xU.js} +1093 -1115
  2. package/components/{CasinoCalendar-qVpbXj-D.js → CasinoCalendar-DiZrkgaV.js} +833 -855
  3. package/components/CasinoCalendar-df0Yv0_Y.cjs +19 -0
  4. package/components/{CasinoCalendarDailyDetails-C6Shuvfx.js → CasinoCalendarDailyDetails-CcuM0Eaq.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-C6Lmn7pW.cjs → CasinoCalendarDailyDetails-DNnl20nr.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-CmmQq8VR.js → CasinoCalendarDailyDetails-Dv1jxPLQ.js} +48 -48
  7. package/components/{CasinoCalendarDailyItem-BLMalLZx.js → CasinoCalendarDailyItem-BBaphFv2.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-DlHg6exr.js → CasinoCalendarDailyItem-DateMcJ_.js} +41 -41
  9. package/components/{CasinoCalendarDailyItem-D7q0pxAo.cjs → CasinoCalendarDailyItem-HkwdKiaQ.cjs} +1 -1
  10. package/components/{CasinoCollectionsProviders-BU9Vdk7f.js → CasinoCollectionsProviders-CQ42E76I.js} +62 -62
  11. package/components/{CasinoCollectionsProviders-CKeIv7Lm.cjs → CasinoCollectionsProviders-DlyhZFGW.cjs} +1 -1
  12. package/components/{CasinoCollectionsProviders-KxO7bWw9.js → CasinoCollectionsProviders-JONztOpa.js} +69 -69
  13. package/components/{CasinoFavoritesSection-BLcFCYkL.js → CasinoFavoritesSection-B35fc0WA.js} +23 -23
  14. package/components/{CasinoFavoritesSection-DfWNsUcD.js → CasinoFavoritesSection-Di0ChxzM.js} +23 -23
  15. package/components/{CasinoFavoritesSection-Bt1qroiI.cjs → CasinoFavoritesSection-KsIBcFcl.cjs} +1 -1
  16. package/components/{CasinoFilter-5P8W2ayY.js → CasinoFilter-D3nwp5eh.js} +230 -229
  17. package/components/{CasinoFilter-EmKNpmwo.js → CasinoFilter-DTSqCXdO.js} +242 -243
  18. package/components/CasinoFilter-w2jN5tFN.cjs +1 -0
  19. package/components/{CasinoGameThumbnail-kYpO7OYd.cjs → CasinoGameThumbnail-CFfgryHx.cjs} +11 -11
  20. package/components/{CasinoGameThumbnail-DLV5eXt3.js → CasinoGameThumbnail-CcXh2l2p.js} +1177 -1193
  21. package/components/{CasinoGameThumbnail-B-j-s0zl.js → CasinoGameThumbnail-DSJ5QN_S.js} +642 -626
  22. package/components/{CasinoGamesCategorySection-DxdFkiK0.js → CasinoGamesCategorySection-Bt_TCzHb.js} +246 -246
  23. package/components/{CasinoGamesCategorySection-C7wNGeVf.cjs → CasinoGamesCategorySection-CFrf0WgK.cjs} +1 -1
  24. package/components/{CasinoGamesCategorySection-CGLL37Ll.js → CasinoGamesCategorySection-DMsv60nN.js} +327 -327
  25. package/components/{CasinoJackpotBanner-o_Mbn9dc.cjs → CasinoJackpotBanner-Bc1JKlzX.cjs} +1 -1
  26. package/components/{CasinoJackpotBanner-CJWjyexm.js → CasinoJackpotBanner-CB4S1SRX.js} +72 -72
  27. package/components/{CasinoJackpotBanner-DquJdUya.js → CasinoJackpotBanner-DhUCd87f.js} +79 -79
  28. package/components/{CasinoLastPlayedSection-C1fXqsNf.js → CasinoLastPlayedSection-D2YhL3mI.js} +38 -38
  29. package/components/{CasinoLastPlayedSection-D3rQ6OIZ.cjs → CasinoLastPlayedSection-D7Nb9EcO.cjs} +1 -1
  30. package/components/{CasinoLastPlayedSection-Mwvag7Ds.js → CasinoLastPlayedSection-DisexHa1.js} +38 -38
  31. package/components/{CasinoMostPlayedSection-BjERkNCF.js → CasinoMostPlayedSection-BwTn0Z9W.js} +49 -49
  32. package/components/{CasinoMostPlayedSection-T3x41wRX.js → CasinoMostPlayedSection-Dt0krTX5.js} +49 -49
  33. package/components/{CasinoMostPlayedSection-CbOy3yAA.cjs → CasinoMostPlayedSection-vevxfvAK.cjs} +1 -1
  34. package/components/{CasinoMyGames-DCFnCBZ5.js → CasinoMyGames-BUsipYGW.js} +42 -42
  35. package/components/{CasinoMyGames-5bW8Sgi5.js → CasinoMyGames-D18ON4L8.js} +41 -41
  36. package/components/{CasinoMyGames-C_M_zFT2.cjs → CasinoMyGames-eqkYGMmg.cjs} +1 -1
  37. package/components/{CasinoPage-YB6CY7ON.js → CasinoPage-BmW4Yfd6.js} +99 -99
  38. package/components/{CasinoPage-AJMpJvaQ.js → CasinoPage-CaIJbUnB.js} +97 -97
  39. package/components/CasinoPage-CmCL5c1m.cjs +1 -0
  40. package/components/{CasinoRandomGame-B9Eg9Cv4.js → CasinoRandomGame-BdTCJXjk.js} +60 -60
  41. package/components/{CasinoRandomGame-CUHxVoyq.cjs → CasinoRandomGame-C723vTme.cjs} +1 -1
  42. package/components/{CasinoRandomGame-DR6TctHg.js → CasinoRandomGame-Cs6Mh9-O.js} +62 -62
  43. package/components/{CasinoSearch-Bjfocy3y.js → CasinoSearch-BTg9BmdC.js} +87 -87
  44. package/components/{CasinoSearch-CpBhzpsK.cjs → CasinoSearch-Cmgioy33.cjs} +1 -1
  45. package/components/{CasinoSearch-Bx4-nMU3.js → CasinoSearch-CwfU7YXU.js} +85 -85
  46. package/components/{CasinoSort-DvLkFtIz.js → CasinoSort-C9FqhPn1.js} +110 -111
  47. package/components/{CasinoSort-BygFei5r.js → CasinoSort-DJGB2rWX.js} +104 -103
  48. package/components/{CasinoSort-5x4S3mG_.cjs → CasinoSort-d7HpFn0y.cjs} +1 -1
  49. package/components/{CasinoWinners-DbQvZp-o.cjs → CasinoWinners-Br-OwXS1.cjs} +1 -1
  50. package/components/{CasinoWinners-tsFI0Qkd.js → CasinoWinners-Djt0qjWA.js} +146 -146
  51. package/components/{CasinoWinners-BZEiqOuZ.js → CasinoWinners-KCECqhoF.js} +145 -145
  52. package/components/{GeneralAnimationLoading-Bfdh1dfh.js → GeneralAnimationLoading-Dha7DXjj.js} +16 -16
  53. package/components/{GeneralAnimationLoading-BFfW6U-2.cjs → GeneralAnimationLoading-Dy1zCPsz.cjs} +1 -1
  54. package/components/{GeneralAnimationLoading-g0jjajHE.js → GeneralAnimationLoading-jXOehNwh.js} +16 -16
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +1 -1
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +3 -2
  59. package/stencil/{casino-play-random-game-B9yaAMOE.js → casino-play-random-game-BOnTgUqC.js} +1 -1
  60. package/stencil/{casino-play-random-game-a53bUW_d.cjs → casino-play-random-game-DjdZ0XM0.cjs} +1 -1
  61. package/stencil/{casino-play-random-game-BTXyM5es.js → casino-play-random-game-NcJEjFWA.js} +1 -1
  62. package/stencil/index-510a6ba4-1RrL4Z6e.js +564 -0
  63. package/stencil/index-510a6ba4-CNr-xCZE.js +548 -0
  64. package/stencil/index-510a6ba4-eEczisTR.cjs +1 -0
  65. package/components/CasinoCalendar-zkVoyaEl.cjs +0 -19
  66. package/components/CasinoFilter-BLgXtVi-.cjs +0 -1
  67. package/components/CasinoPage-DMaRihI_.cjs +0 -1
  68. package/stencil/index-510a6ba4-B9_VY7vu.cjs +0 -1
  69. package/stencil/index-510a6ba4-CYFuKFRQ.js +0 -564
  70. package/stencil/index-510a6ba4-CzpWs0jf.js +0 -548
@@ -1,4 +1,4 @@
1
- import { a as ve, $ as be, S as Ce, i as ye, f as L, c as _e, s as we, b as Se, e as y, d as j, G as T, j as x, k as ke, o as Ge, l as Pe, p as Le, q as X, r as Me, m as je, v as O, x as q, w as F, y as m, z as b, E as R, F as ne, A as H, N as xe, L as I, I as Fe, H as z, O as Te } from "./CasinoCalendar-qVpbXj-D.js";
1
+ import { a as ve, $ as be, S as Ce, i as ye, s as _e, f as L, b as we, n as T, d as j, h as x, j as y, k as Se, o as ke, l as Ge, C as X, r as m, v as O, w as ne, m as q, p as b, q as R, B as F, N as Pe, A as B, G as I, D as H, O as Le, I as Me, J as je, K as xe, L as Fe, M as Te } from "./CasinoCalendar-DiZrkgaV.js";
2
2
  function Y(t, e) {
3
3
  ve(t, e);
4
4
  }
@@ -102,8 +102,8 @@ const Q = {
102
102
  loading: "Loading, please wait ..."
103
103
  }
104
104
  };
105
- function He(t) {
106
- Se(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)}}');
105
+ function Be(t) {
106
+ we(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 $(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[43] = e[i], n;
115
115
  }
116
- function ze(t) {
116
+ function He(t) {
117
117
  let e, i, n, l = (
118
118
  /*type*/
119
119
  (t[0] === "vendor" ? (
@@ -135,7 +135,7 @@ function ze(t) {
135
135
  a[c] = le($(t, f, c));
136
136
  return {
137
137
  c() {
138
- e = y("div"), i = y("div"), n = y("p"), r = q(l), d = F(), s && s.c(), _ = F(), C = y("div");
138
+ e = y("div"), i = y("div"), n = y("p"), r = R(l), d = F(), s && s.c(), _ = F(), C = y("div");
139
139
  for (let c = 0; c < a.length; c += 1)
140
140
  a[c].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 ze(t) {
143
143
  (t[0] === "vendor" ? "Providers" : "Collections"));
144
144
  },
145
145
  m(c, g) {
146
- j(c, e, g), b(e, i), b(i, n), b(n, r), b(i, d), s && s.m(i, null), b(e, _), b(e, C);
146
+ x(c, e, g), b(e, i), b(i, n), b(n, r), b(i, d), 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 ze(t) {
157
157
  ) : (
158
158
  /*$_*/
159
159
  c[10]("collections")
160
- )) + "") && R(r, l), /*numberOfSlides*/
160
+ )) + "") && q(r, l), /*numberOfSlides*/
161
161
  c[7] > /*numberOfVisibleSlides*/
162
162
  c[8] ? s ? s.p(c, g) : (s = te(c), s.c(), s.m(i, null)) : s && (s.d(1), s = null), g[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
163
163
  24590) {
@@ -180,22 +180,22 @@ function ze(t) {
180
180
  (c[0] === "vendor" ? "Providers" : "Collections")) && m(e, "class", S);
181
181
  },
182
182
  d(c) {
183
- c && x(e), s && s.d(), ne(a, c), t[25](null);
183
+ c && j(e), s && s.d(), ne(a, c), t[25](null);
184
184
  }
185
185
  };
186
186
  }
187
- function Ae(t) {
187
+ function ze(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
- j(i, e, n);
194
+ x(i, e, n);
195
195
  },
196
196
  p: T,
197
197
  d(i) {
198
- i && x(e);
198
+ i && j(e);
199
199
  }
200
200
  };
201
201
  }
@@ -206,14 +206,14 @@ 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
- j(_, e, C), b(e, i), b(e, n), b(e, l), r || (d = [
210
- H(
209
+ x(_, e, C), b(e, i), b(e, n), b(e, l), r || (d = [
210
+ B(
211
211
  i,
212
212
  "click",
213
213
  /*sliderScrollLeft*/
214
214
  t[11]
215
215
  ),
216
- H(
216
+ B(
217
217
  l,
218
218
  "click",
219
219
  /*sliderScrollRight*/
@@ -223,29 +223,29 @@ function te(t) {
223
223
  },
224
224
  p: T,
225
225
  d(_) {
226
- _ && x(e), r = !1, xe(d);
226
+ _ && j(e), r = !1, Pe(d);
227
227
  }
228
228
  };
229
229
  }
230
- function Be(t) {
230
+ function Ae(t) {
231
231
  let e, i = (
232
232
  /*category*/
233
233
  t[40].name + ""
234
234
  ), n;
235
235
  return {
236
236
  c() {
237
- e = y("p"), n = q(i), m(e, "class", "CategorySlideTitle");
237
+ e = y("p"), n = R(i), m(e, "class", "CategorySlideTitle");
238
238
  },
239
239
  m(l, r) {
240
- j(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[40].name + "") && R(n, i);
245
+ l[40].name + "") && q(n, i);
246
246
  },
247
247
  d(l) {
248
- l && x(e);
248
+ l && j(e);
249
249
  }
250
250
  };
251
251
  }
@@ -253,22 +253,22 @@ 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[40].icon) || m(e, "src", i), m(e, "alt", n = /*category*/
258
258
  t[40].name + " icon");
259
259
  },
260
260
  m(l, r) {
261
- j(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[40].icon) && m(e, "src", i), r[0] & /*gameCategories*/
267
267
  8 && n !== (n = /*category*/
268
268
  l[40].name + " icon") && m(e, "alt", n);
269
269
  },
270
270
  d(l) {
271
- l && x(e);
271
+ l && j(e);
272
272
  }
273
273
  };
274
274
  }
@@ -279,21 +279,21 @@ function ie(t) {
279
279
  ), n, l;
280
280
  return {
281
281
  c() {
282
- e = y("p"), n = q(i), m(e, "title", l = /*game*/
282
+ e = y("p"), n = R(i), m(e, "title", l = /*game*/
283
283
  t[43].name);
284
284
  },
285
285
  m(r, d) {
286
- j(r, e, d), b(e, n);
286
+ x(r, e, d), b(e, n);
287
287
  },
288
288
  p(r, d) {
289
289
  d[0] & /*gameCategories*/
290
290
  8 && i !== (i = /*game*/
291
- r[43].name + "") && R(n, i), d[0] & /*gameCategories*/
291
+ r[43].name + "") && q(n, i), d[0] & /*gameCategories*/
292
292
  8 && l !== (l = /*game*/
293
293
  r[43].name) && m(e, "title", l);
294
294
  },
295
295
  d(r) {
296
- r && x(e);
296
+ r && j(e);
297
297
  }
298
298
  };
299
299
  }
@@ -314,23 +314,23 @@ function oe(t) {
314
314
  );
315
315
  return {
316
316
  c() {
317
- e = y("div"), i = y("img"), r = F(), s && s.c(), d = F(), m(i, "class", "CategorySlideGameImage"), z(i.src, n = /*game*/
317
+ e = y("div"), i = y("img"), r = F(), s && s.c(), d = F(), m(i, "class", "CategorySlideGameImage"), H(i.src, n = /*game*/
318
318
  t[43].defaultThumbnail) || m(i, "src", n), m(i, "alt", l = /*game*/
319
319
  t[43].name), m(e, "class", "CategorySlideGames");
320
320
  },
321
321
  m(f, a) {
322
- j(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, d), _ || (C = H(i, "click", Te(S)), _ = !0);
322
+ x(f, e, a), b(e, i), b(e, r), s && s.m(e, null), b(e, d), _ || (C = B(i, "click", Le(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[43].defaultThumbnail) && m(i, "src", n), a[0] & /*gameCategories*/
328
328
  8 && l !== (l = /*game*/
329
329
  t[43].name) && m(i, "alt", l), /*collectionprovidersgamenames*/
330
330
  t[2] == "true" ? s ? s.p(t, a) : (s = ie(t), s.c(), s.m(e, d)) : s && (s.d(1), s = null);
331
331
  },
332
332
  d(f) {
333
- f && x(e), s && s.d(), _ = !1, C();
333
+ f && j(e), s && s.d(), _ = !1, C();
334
334
  }
335
335
  };
336
336
  }
@@ -346,7 +346,7 @@ function le(t) {
346
346
  /*titletype*/
347
347
  u[1] === "title"
348
348
  )
349
- return Be;
349
+ return Ae;
350
350
  }
351
351
  let f = s(t), a = f && f(t), c = O(
352
352
  /*category*/
@@ -373,10 +373,10 @@ function le(t) {
373
373
  t[40]?.background + ")"), I(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
374
374
  },
375
375
  m(u, v) {
376
- j(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
- b(e, _), C || (S = H(i, "click", h), C = !0);
379
+ b(e, _), C || (S = B(i, "click", h), C = !0);
380
380
  },
381
381
  p(u, v) {
382
382
  if (t = u, f === (f = s(t)) && a ? a.p(t, v) : (a && a.d(1), a = f && f(t), a && (a.c(), a.m(n, null))), v[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
@@ -401,7 +401,7 @@ function le(t) {
401
401
  t[40]?.background + ")");
402
402
  },
403
403
  d(u) {
404
- u && x(e), a && a.d(), ne(g, u), C = !1, S();
404
+ u && j(e), a && a.d(), ne(g, u), C = !1, S();
405
405
  }
406
406
  };
407
407
  }
@@ -410,7 +410,7 @@ function Ie(t) {
410
410
  function i(r, d) {
411
411
  return (
412
412
  /*isLoading*/
413
- r[6] ? Ae : ze
413
+ r[6] ? ze : He
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, d) {
422
- j(r, e, d), l.m(e, null), t[26](e);
422
+ x(r, e, d), l.m(e, null), t[26](e);
423
423
  },
424
424
  p(r, d) {
425
425
  n === (n = i(r)) && l ? l.p(r, d) : (l.d(1), l = n(r), l && (l.c(), l.m(e, null)));
@@ -427,14 +427,14 @@ function Ie(t) {
427
427
  i: T,
428
428
  o: T,
429
429
  d(r) {
430
- r && x(e), l.d(), t[26](null);
430
+ r && j(e), l.d(), t[26](null);
431
431
  }
432
432
  };
433
433
  }
434
434
  function qe(t, e, i) {
435
435
  let n;
436
- ke(t, Fe, (o) => i(10, n = o));
437
- let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: c } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, A, E = 0, B = 50, N = !1, M, re = window.navigator.userAgent, V;
436
+ Se(t, Te, (o) => i(10, n = o));
437
+ let { endpoint: l = "" } = e, { datasource: r = "" } = e, { lang: d = "" } = e, { type: _ = "" } = e, { titletype: C = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f = "" } = e, { collectionprovidersgamenames: a = "" } = e, { mbsource: c } = e, g = [], h = !0, u, v = 0, p = 0, k = 0, U, z, V = 0, A = 50, N = !1, M, re = window.navigator.userAgent, W;
438
438
  const ae = () => {
439
439
  fetch(f).then((w) => w.json()).then((w) => {
440
440
  Object.keys(w).forEach((G) => {
@@ -447,10 +447,10 @@ function qe(t, e, i) {
447
447
  Object.keys(Q).forEach((o) => {
448
448
  Y(o, Q[o]);
449
449
  });
450
- const W = () => {
450
+ const D = () => {
451
451
  const o = new URL(`${l}/v2/casino/groups/${r}`);
452
- o.searchParams.append("language", d), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${E},limit=${B}`), fetch(o.href).then((w) => w.json()).then((w) => {
453
- i(6, h = !1), w.total > B && (E += 50, B += 50, i(22, N = !0));
452
+ o.searchParams.append("language", d), o.searchParams.append("expand", "games"), o.searchParams.append("filter", `$and(flags=${_})`), o.searchParams.append("pagination", `offset=${V},limit=${A}`), fetch(o.href).then((w) => w.json()).then((w) => {
453
+ i(6, h = !1), w.total > A && (V += 50, A += 50, i(22, N = !0));
454
454
  let G = w.items.map((P) => ({
455
455
  id: P.id,
456
456
  name: P.name,
@@ -461,19 +461,19 @@ function qe(t, e, i) {
461
461
  }));
462
462
  i(3, g = [...g, ...G]), i(7, p = g.length);
463
463
  });
464
- }, D = (o) => {
465
- A = [...u.children], A.forEach((w, G) => {
464
+ }, E = (o) => {
465
+ z = [...u.children], z.forEach((w, G) => {
466
466
  w.style.transform = `translateX(${100 * (o ? G - o : G)}%)`;
467
- }), U = A[0].getBoundingClientRect().width, se();
467
+ }), U = z[0].getBoundingClientRect().width, se();
468
468
  }, se = () => {
469
469
  i(8, k = Math.floor(u.clientWidth / U));
470
470
  }, K = () => {
471
- D(v);
471
+ E(v);
472
472
  }, ce = () => {
473
473
  v === 0 ? v = p - k : v - k < -1 ? v = 0 : v--, K();
474
474
  }, de = () => {
475
475
  v === p - k ? v = 0 : p - k < v + 1 ? v = p - k : v++, K();
476
- }, Z = (o, w, G, P) => {
476
+ }, J = (o, w, G, P) => {
477
477
  window.postMessage(
478
478
  {
479
479
  type: "OpenCollectionsProvidersGame",
@@ -487,7 +487,7 @@ function qe(t, e, i) {
487
487
  context: "CollectionsProviders",
488
488
  gameName: `${G}`
489
489
  });
490
- }, J = (o) => {
490
+ }, Z = (o) => {
491
491
  window.postMessage(
492
492
  {
493
493
  type: "OpenCollectionsProvidersCategory",
@@ -498,9 +498,9 @@ function qe(t, e, i) {
498
498
  }, ge = () => {
499
499
  Oe(d);
500
500
  };
501
- Ge(() => (i(9, V = Le(re)), () => {
501
+ ke(() => (i(9, W = Ge(re)), () => {
502
502
  }));
503
- const ue = (o) => Z(o.gameId, o.launchUrl, o.name, o.subVendor), me = (o) => J(o.id);
503
+ const ue = (o) => J(o.gameId, o.launchUrl, o.name, o.subVendor), me = (o) => Z(o.id);
504
504
  function fe(o) {
505
505
  X[o ? "unshift" : "push"](() => {
506
506
  u = o, i(4, u);
@@ -515,14 +515,14 @@ function qe(t, e, i) {
515
515
  "endpoint" in o && i(15, l = o.endpoint), "datasource" in o && i(16, r = o.datasource), "lang" in o && i(17, d = o.lang), "type" in o && i(0, _ = o.type), "titletype" in o && i(1, C = o.titletype), "clientstyling" in o && i(18, S = o.clientstyling), "clientstylingurl" in o && i(19, s = o.clientstylingurl), "translationurl" in o && i(20, f = o.translationurl), "collectionprovidersgamenames" in o && i(2, a = o.collectionprovidersgamenames), "mbsource" in o && i(21, c = o.mbsource);
516
516
  }, t.$$.update = () => {
517
517
  t.$$.dirty[0] & /*endpoint, datasource, lang*/
518
- 229376 && l && r && d && W(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
519
- 24 && g && u && D(), t.$$.dirty[0] & /*lang*/
518
+ 229376 && l && r && d && D(), t.$$.dirty[0] & /*gameCategories, categoriesSlider*/
519
+ 24 && g && u && E(), t.$$.dirty[0] & /*lang*/
520
520
  131072 && d && ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
521
521
  262176 && S && M && Me(M, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
- 524320 && s && M && Pe(M, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
523
- 2097184 && M && je(M, `${c}.Style`), t.$$.dirty[0] & /*translationurl*/
522
+ 524320 && s && M && je(M, s), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
523
+ 2097184 && M && xe(M, `${c}.Style`), t.$$.dirty[0] & /*translationurl*/
524
524
  1048576 && f && ae(), t.$$.dirty[0] & /*paginationrequired*/
525
- 4194304 && N && W();
525
+ 4194304 && N && D();
526
526
  }, [
527
527
  _,
528
528
  C,
@@ -533,12 +533,12 @@ function qe(t, e, i) {
533
533
  h,
534
534
  p,
535
535
  k,
536
- V,
536
+ W,
537
537
  n,
538
538
  ce,
539
539
  de,
540
- Z,
541
540
  J,
541
+ Z,
542
542
  l,
543
543
  r,
544
544
  d,
@@ -560,7 +560,7 @@ class Re extends Ce {
560
560
  e,
561
561
  qe,
562
562
  Ie,
563
- we,
563
+ _e,
564
564
  {
565
565
  endpoint: 15,
566
566
  datasource: 16,
@@ -573,7 +573,7 @@ class Re extends Ce {
573
573
  collectionprovidersgamenames: 2,
574
574
  mbsource: 21
575
575
  },
576
- He,
576
+ Be,
577
577
  [-1, -1]
578
578
  );
579
579
  }
@@ -638,7 +638,7 @@ class Re extends Ce {
638
638
  this.$$set({ mbsource: e }), L();
639
639
  }
640
640
  }
641
- _e(Re, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
641
+ Fe(Re, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
642
642
  export {
643
643
  Re as default
644
644
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-zkVoyaEl.cjs");function I(i,t){e.addMessages(i,t)}function re(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 ae(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 U(i,t,l){const r=i.slice();return r[40]=t[l],r}function V(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&W(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(U(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(),b=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,b),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=W(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=U(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(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 de(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,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(b,v){e.insert(b,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(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ce(i){let t,l=i[40].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[40].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ge(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[40].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[40].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[40].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function E(i){let t,l=i[43].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[43].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[43].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[43].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[43])}let d=i[2]=="true"&&E(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[43].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[43].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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[43].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=E(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ge;if(p[1]==="title")return ce}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[40].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(V(i,c,p));function h(){return i[24](i[40])}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 _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[40])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[40])==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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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[40].games);let y;for(y=0;y<c.length;y+=1){const L=V(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[40])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function ue(i){let t;function l(a,g){return a[6]?de:se}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 pe(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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,P,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(k=>{I(k,C[k])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{I(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let k=C.items.map(G=>{var q,A,N;return{id:G.id,name:G.name,icon:G.icon?G.icon:(N=(A=(q=G.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:G.games.items.slice(0,4).map(oe=>oe),background:G.background,flag:G.flags}});l(3,u=[...u,...k]),l(7,_=u.length)})},O=n=>{L=[...p.children],L.forEach((C,k)=>{C.style.transform=`translateX(${100*(n?k-n:k)}%)`}),y=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},Q=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},$=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,k,G)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:k,subVendor:G},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${k}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ee=()=>{re(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const te=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ie=n=>B(n.id);function le(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{P=n,l(5,P)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&ee(),i.$$.dirty[0]&262176&&w&&P&&e.setClientStyling(P,w),i.$$.dirty[0]&524320&&d&&P&&e.setClientStylingURL(P,d),i.$$.dirty[0]&2097184&&P&&e.setStreamStyling(P,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,P,h,_,S,T,r,Q,$,z,B,o,a,g,w,d,m,c,j,te,ie,le,ne]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pe,ue,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},ae,[-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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-df0Yv0_Y.cjs");function I(i,t){e.addMessages(i,t)}function re(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 ae(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 U(i,t,l){const r=i.slice();return r[40]=t[l],r}function V(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&W(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(U(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(),b=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,b),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=W(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=U(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(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 de(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,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(b,v){e.insert(b,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(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ce(i){let t,l=i[40].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[40].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ge(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[40].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[40].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[40].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function E(i){let t,l=i[43].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[43].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[43].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[43].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[43])}let d=i[2]=="true"&&E(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[43].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[43].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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[43].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=E(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ge;if(p[1]==="title")return ce}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[40].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(V(i,c,p));function h(){return i[24](i[40])}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 _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[40])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[40])==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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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[40].games);let y;for(y=0;y<c.length;y+=1){const L=V(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[40])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function ue(i){let t;function l(a,g){return a[6]?de:se}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 pe(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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,P,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(k=>{I(k,C[k])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{I(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let k=C.items.map(G=>{var q,A,N;return{id:G.id,name:G.name,icon:G.icon?G.icon:(N=(A=(q=G.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:G.games.items.slice(0,4).map(oe=>oe),background:G.background,flag:G.flags}});l(3,u=[...u,...k]),l(7,_=u.length)})},O=n=>{L=[...p.children],L.forEach((C,k)=>{C.style.transform=`translateX(${100*(n?k-n:k)}%)`}),y=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},Q=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},$=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,k,G)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:k,subVendor:G},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${k}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ee=()=>{re(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const te=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ie=n=>B(n.id);function le(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{P=n,l(5,P)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&ee(),i.$$.dirty[0]&262176&&w&&P&&e.setClientStyling(P,w),i.$$.dirty[0]&524320&&d&&P&&e.setClientStylingURL(P,d),i.$$.dirty[0]&2097184&&P&&e.setStreamStyling(P,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,P,h,_,S,T,r,Q,$,z,B,o,a,g,w,d,m,c,j,te,ie,le,ne]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pe,ue,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},ae,[-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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;