@everymatrix/casino-lobby 1.41.0 → 1.42.69

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 (165) hide show
  1. package/components/CasinoCalendar-BQx5-rlk.cjs +9 -0
  2. package/components/CasinoCalendar-CGBzMgQt.cjs +9 -0
  3. package/components/CasinoCalendar-C_GWg7fU.js +5215 -0
  4. package/components/CasinoCalendar-D8A7V_p_.js +5176 -0
  5. package/components/CasinoCalendar-T2eu_ijJ.js +5213 -0
  6. package/components/CasinoCalendar-wabXB62Y.js +5174 -0
  7. package/components/CasinoCalendarDailyDetails-BsuvGAH5.js +701 -0
  8. package/components/CasinoCalendarDailyDetails-CXJQEBiD.js +701 -0
  9. package/components/CasinoCalendarDailyDetails-DD9ivry_.js +701 -0
  10. package/components/CasinoCalendarDailyDetails-DuTGv4cR.cjs +1 -0
  11. package/components/CasinoCalendarDailyDetails-DxoETvny.cjs +1 -0
  12. package/components/CasinoCalendarDailyDetails-HgqSzjsm.js +701 -0
  13. package/components/CasinoCalendarDailyItem-9ZdOdWc1.js +315 -0
  14. package/components/CasinoCalendarDailyItem-BQH_cu-K.cjs +1 -0
  15. package/components/CasinoCalendarDailyItem-Cij4qSkW.js +315 -0
  16. package/components/CasinoCalendarDailyItem-DieqmO8j.js +315 -0
  17. package/components/CasinoCalendarDailyItem-DynzkhlT.js +315 -0
  18. package/components/CasinoCalendarDailyItem-W6jJ8Vef.cjs +1 -0
  19. package/components/CasinoCategoriesSlider-CCBzNNkz.cjs +1 -0
  20. package/components/CasinoCategoriesSlider-Dg6UQ05U.js +594 -0
  21. package/components/CasinoCategoriesSlider-DqNp_BOt.js +594 -0
  22. package/components/CasinoCategoriesSlider-GrF0HXC7.cjs +1 -0
  23. package/components/CasinoCategoriesSlider-_w_55gG7.js +594 -0
  24. package/components/CasinoCategoriesSlider-pHVM7RZL.js +594 -0
  25. package/components/CasinoCollectionsProviders-BIcovGJ8.js +646 -0
  26. package/components/CasinoCollectionsProviders-CH2GAKzC.cjs +1 -0
  27. package/components/CasinoCollectionsProviders-D45_hU-I.js +646 -0
  28. package/components/CasinoCollectionsProviders-DMj_7QBU.cjs +1 -0
  29. package/components/CasinoCollectionsProviders-DfgvvOqL.js +651 -0
  30. package/components/CasinoCollectionsProviders-N_n3oOYS.js +651 -0
  31. package/components/CasinoFavoritesSection-B0uLh581.js +426 -0
  32. package/components/CasinoFavoritesSection-BD3Pecym.cjs +1 -0
  33. package/components/CasinoFavoritesSection-BMVarhje.cjs +1 -0
  34. package/components/CasinoFavoritesSection-B_tSVGIY.js +426 -0
  35. package/components/CasinoFavoritesSection-Da-NSsar.js +426 -0
  36. package/components/CasinoFavoritesSection-Dm0HviHl.js +426 -0
  37. package/components/CasinoFilter-B9sKxzVS.js +620 -0
  38. package/components/CasinoFilter-CMVqOmbG.js +619 -0
  39. package/components/CasinoFilter-Cf00T9dk.js +620 -0
  40. package/components/CasinoFilter-D3HxH1PB.cjs +1 -0
  41. package/components/CasinoFilter-DD3HMkSy.js +619 -0
  42. package/components/CasinoFilter-c8_bvC4c.cjs +1 -0
  43. package/components/CasinoGamePage-BundiLLb.js +4266 -0
  44. package/components/CasinoGamePage-C10RyyZp.cjs +18 -0
  45. package/components/CasinoGamePage-CfbBY5CU.cjs +18 -0
  46. package/components/CasinoGamePage-DC-LoQTc.js +4266 -0
  47. package/components/CasinoGamePage-OZnVr_Bg.js +4287 -0
  48. package/components/CasinoGamePage-yVND0I7w.js +4287 -0
  49. package/components/CasinoGameThumbnail-B1NNWJ0K.js +1820 -0
  50. package/components/CasinoGameThumbnail-Bc66QenW.cjs +38 -0
  51. package/components/CasinoGameThumbnail-CIGOC4uM.js +1820 -0
  52. package/components/CasinoGameThumbnail-DA3jcFAi.js +1836 -0
  53. package/components/CasinoGameThumbnail-DT9ORm8q.js +1836 -0
  54. package/components/CasinoGameThumbnail-DcqwhTjb.cjs +38 -0
  55. package/components/CasinoGamesCategorySection-BNYOO745.cjs +1 -0
  56. package/components/CasinoGamesCategorySection-C78ehK4U.js +2991 -0
  57. package/components/CasinoGamesCategorySection-Cagm02Ih.js +3020 -0
  58. package/components/CasinoGamesCategorySection-DBr4EIfz.js +2991 -0
  59. package/components/CasinoGamesCategorySection-Kzwpz7w5.js +3020 -0
  60. package/components/CasinoGamesCategorySection-_vABwskz.cjs +1 -0
  61. package/components/CasinoJackpotBanner-5cCB-mh2.js +592 -0
  62. package/components/CasinoJackpotBanner-Agfg0mZ0.js +592 -0
  63. package/components/CasinoJackpotBanner-BAhiOMZp.cjs +1 -0
  64. package/components/CasinoJackpotBanner-D7ZMZfDV.cjs +1 -0
  65. package/components/CasinoJackpotBanner-DR-ZzHCR.js +596 -0
  66. package/components/CasinoJackpotBanner-QB6MSrF4.js +596 -0
  67. package/components/CasinoLastPlayedSection-BjhQKUSK.js +556 -0
  68. package/components/CasinoLastPlayedSection-BxzCwcL-.js +556 -0
  69. package/components/CasinoLastPlayedSection-D4vCeonE.js +556 -0
  70. package/components/CasinoLastPlayedSection-Dwe4Td9f.cjs +1 -0
  71. package/components/CasinoLastPlayedSection-XK5dzsj-.js +556 -0
  72. package/components/CasinoLastPlayedSection-v0aQnExT.cjs +1 -0
  73. package/components/CasinoLobby-AFKKESbR.cjs +1 -0
  74. package/components/CasinoLobby-CHvuexFs.js +2315 -0
  75. package/components/CasinoLobby-ClhYpfUU.js +2315 -0
  76. package/components/CasinoLobby-DALY2Dhs.cjs +1 -0
  77. package/components/CasinoLobby-hrKaH7qN.js +2315 -0
  78. package/components/CasinoLobby-ouSesgdC.js +2315 -0
  79. package/components/CasinoModal-BIVMlWQX.js +359 -0
  80. package/components/CasinoModal-BYKM2vRV.cjs +1 -0
  81. package/components/CasinoModal-C3wpERtX.js +359 -0
  82. package/components/CasinoModal-Cabai4o3.js +359 -0
  83. package/components/CasinoModal-DRyqJh1Q.cjs +1 -0
  84. package/components/CasinoModal-Dw_y4THL.js +359 -0
  85. package/components/CasinoMostPlayedSection-C3K0hu8_.js +583 -0
  86. package/components/CasinoMostPlayedSection-CJYMI9VB.js +583 -0
  87. package/components/CasinoMostPlayedSection-DJQuOa6_.js +583 -0
  88. package/components/CasinoMostPlayedSection-DmUpsWqs.cjs +1 -0
  89. package/components/CasinoMostPlayedSection-OUtCsU0t.cjs +1 -0
  90. package/components/CasinoMostPlayedSection-Y5er9Bjh.js +583 -0
  91. package/components/CasinoMyGames-BIxyEUtK.js +1306 -0
  92. package/components/CasinoMyGames-D5rJT74m.cjs +1 -0
  93. package/components/CasinoMyGames-DI1lwYc8.js +1305 -0
  94. package/components/CasinoMyGames-DTHVNaKn.cjs +1 -0
  95. package/components/CasinoMyGames-DwUV6CBn.js +1305 -0
  96. package/components/CasinoMyGames-ctBoKyAg.js +1306 -0
  97. package/components/CasinoPage-BGO7Qjz8.js +3535 -0
  98. package/components/CasinoPage-Bw9pVfhj.cjs +1 -0
  99. package/components/CasinoPage-Ccz2mt9L.js +3535 -0
  100. package/components/CasinoPage-D4SKFGBe.cjs +1 -0
  101. package/components/CasinoPage-DLYXRAgH.js +3538 -0
  102. package/components/CasinoPage-OtILzfbb.js +3538 -0
  103. package/components/CasinoRandomGame-CtZOIJcN.js +658 -0
  104. package/components/CasinoRandomGame-Cveyjhn1.js +642 -0
  105. package/components/CasinoRandomGame-DALiyns2.cjs +2 -0
  106. package/components/CasinoRandomGame-DVoXDVJK.cjs +2 -0
  107. package/components/CasinoRandomGame-DbeS8lnM.js +642 -0
  108. package/components/CasinoRandomGame-HLWP49DK.js +658 -0
  109. package/components/CasinoSearch-B8OpEZBN.cjs +1 -0
  110. package/components/CasinoSearch-BMZWS8yv.js +1058 -0
  111. package/components/CasinoSearch-BQe9Q-5N.js +1060 -0
  112. package/components/CasinoSearch-B_Yrv4Uo.cjs +1 -0
  113. package/components/CasinoSearch-CbqN_jyR.js +1058 -0
  114. package/components/CasinoSearch-D9U7Yh_K.js +1060 -0
  115. package/components/CasinoSlider-BOVT94iB.js +794 -0
  116. package/components/CasinoSlider-BSHGeAYd.js +788 -0
  117. package/components/CasinoSlider-BvS3IBvk.cjs +1 -0
  118. package/components/CasinoSlider-CF-wUwQR.cjs +1 -0
  119. package/components/CasinoSlider-CrHKe4Xk.js +803 -0
  120. package/components/CasinoSlider-Cxh3sOkP.js +797 -0
  121. package/components/CasinoSort-BOWrHLh_.js +420 -0
  122. package/components/CasinoSort-BwnNTnFA.js +420 -0
  123. package/components/CasinoSort-DTw1r10v.js +419 -0
  124. package/components/CasinoSort-DWtBvm9D.cjs +1 -0
  125. package/components/CasinoSort-LblMuLP4.js +419 -0
  126. package/components/CasinoSort-hnzXlXWX.cjs +1 -0
  127. package/components/CasinoWinners-C9izX5Hz.js +955 -0
  128. package/components/CasinoWinners-CO3x7y86.js +955 -0
  129. package/components/CasinoWinners-CZWuAxEs.js +953 -0
  130. package/components/CasinoWinners-CjaKY4pX.cjs +1 -0
  131. package/components/CasinoWinners-DOucg2Bq.js +953 -0
  132. package/components/CasinoWinners-xdJkyzy9.cjs +1 -0
  133. package/components/GeneralAnimationLoading-C4-n6eKC.cjs +1 -0
  134. package/components/GeneralAnimationLoading-CGGvPAzb.js +75 -0
  135. package/components/GeneralAnimationLoading-Ch_RgnSg.js +75 -0
  136. package/components/GeneralAnimationLoading-DBrwarIl.js +75 -0
  137. package/components/GeneralAnimationLoading-YY_Qislb.cjs +1 -0
  138. package/components/GeneralAnimationLoading-qKrL3K2W.js +75 -0
  139. package/es2015/casino-lobby.cjs +1 -0
  140. package/es2015/casino-lobby.js +16 -0
  141. package/esnext/casino-lobby.js +14 -0
  142. package/package.json +19 -34
  143. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  144. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  145. package/stencil/casino-play-random-game-CE7d8ftV.js +559 -0
  146. package/stencil/casino-play-random-game-JlSgoZ7I.js +577 -0
  147. package/stencil/casino-play-random-game-fmski7eY.cjs +371 -0
  148. package/stencil/index-bc02f5d1-CGWk9tpa.js +609 -0
  149. package/stencil/index-bc02f5d1-Cfiraoh4.js +625 -0
  150. package/stencil/index-bc02f5d1-zY9WEQOW.cjs +1 -0
  151. package/CHANGELOG.md +0 -39
  152. package/README.md +0 -0
  153. package/dist/casino-lobby.js +0 -33
  154. package/dist/casino-lobby.js.map +0 -1
  155. package/documentation.md +0 -176
  156. package/index.html +0 -50
  157. package/index.js +0 -1
  158. package/public/favicon.png +0 -0
  159. package/public/reset.css +0 -48
  160. package/rollup.config.js +0 -67
  161. package/src/CasinoLobby.svelte +0 -454
  162. package/src/i18n.js +0 -25
  163. package/src/index.ts +0 -4
  164. package/stories/CasinoLobby.stories.js +0 -13
  165. package/tsconfig.json +0 -6
@@ -0,0 +1,646 @@
1
+ import { a as ve, $ as _e, S as Ce, i as be, f as L, c as ye, s as we, b as Se, e as C, d as M, D as z, j, k as ke, o as Ge, m as Pe, n as Z, L as Le, M as Me, N as je, q as O, u as I, r as x, v as m, R as xe, w as v, T as Fe, B as R, C as le, x as B, U as Te, I as N, F as ze, E as H, V as Oe } from "./CasinoCalendar-D8A7V_p_.js";
2
+ function J(t, e) {
3
+ ve(t, e);
4
+ }
5
+ function Be(t) {
6
+ _e.set(t);
7
+ }
8
+ const X = {
9
+ en: {
10
+ collections: "Game Collections",
11
+ providers: "Game Providers",
12
+ loading: "Loading, please wait ..."
13
+ },
14
+ "zh-hk": {
15
+ collections: "收藏品",
16
+ providers: "供应商",
17
+ loading: "加載請稍候 ..."
18
+ },
19
+ de: {
20
+ collections: "Game Collections",
21
+ providers: "Game Providers",
22
+ loading: "Laden, bitte warten..."
23
+ },
24
+ it: {
25
+ collections: "Game Collections",
26
+ providers: "Game Providers",
27
+ loading: "Loading, please wait ..."
28
+ },
29
+ fr: {
30
+ collections: "Collections",
31
+ providers: "Fournisseurs",
32
+ loading: "Chargement, veuillez patienter ..."
33
+ },
34
+ es: {
35
+ collections: "Colecciones de juegos",
36
+ providers: "Proveedores de juegos",
37
+ loading: "Cargando…"
38
+ },
39
+ el: {
40
+ collections: "Game Collections",
41
+ providers: "Game Providers",
42
+ loading: "Φορτώνει, παρακαλούμε περιμένετε ..."
43
+ },
44
+ tr: {
45
+ collections: "Oyun Koleksiyonları",
46
+ providers: "Oyun Sağlayıcıları",
47
+ loading: "Yükleniyor, lütfen bekleyin..."
48
+ },
49
+ ru: {
50
+ collections: "Game Collections",
51
+ providers: "Game Providers",
52
+ loading: "Loading, please wait ..."
53
+ },
54
+ ro: {
55
+ collections: "Selectie Jocuri",
56
+ providers: "Furnizori",
57
+ loading: "Se încarcă, asteptati ..."
58
+ },
59
+ hr: {
60
+ collections: "Kolekcije igara",
61
+ providers: "Brendovi igara",
62
+ loading: "Učitavam"
63
+ },
64
+ hu: {
65
+ collections: "Game Collections",
66
+ providers: "Game Providers",
67
+ loading: "Betöltés, kérjük várjon..."
68
+ },
69
+ pl: {
70
+ collections: "Game Collections",
71
+ providers: "Game Providers",
72
+ loading: "Loading, please wait ..."
73
+ },
74
+ pt: {
75
+ collections: "Game Collections",
76
+ providers: "Game Providers",
77
+ loading: "Carregando, por favor espere ..."
78
+ },
79
+ sl: {
80
+ collections: "Game Collections",
81
+ providers: "Game Providers",
82
+ loading: "Loading, please wait ..."
83
+ },
84
+ sr: {
85
+ collections: "Game Collections",
86
+ providers: "Game Providers",
87
+ loading: "Loading, please wait ..."
88
+ },
89
+ "pt-br": {
90
+ collections: "Coleções de jogos",
91
+ providers: "Provedores de jogos",
92
+ Loading: "Carregando, por favor espere..."
93
+ },
94
+ "es-mx": {
95
+ collections: "Colecciones de juego",
96
+ providers: "Proveedores de juego",
97
+ Loading: "Cargando, por favor espere..."
98
+ },
99
+ "en-us": {
100
+ collections: "Game Collections",
101
+ providers: "Game Providers",
102
+ loading: "Loading, please wait ..."
103
+ }
104
+ };
105
+ function He(t) {
106
+ Se(t, "svelte-1myc38z", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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
+ }
108
+ function Y(t, e, i) {
109
+ const r = t.slice();
110
+ return r[40] = e[i], r;
111
+ }
112
+ function Q(t, e, i) {
113
+ const r = t.slice();
114
+ return r[43] = e[i], r;
115
+ }
116
+ function Ae(t) {
117
+ let e, i, r, l = (
118
+ /*type*/
119
+ (t[0] == "vendor" ? (
120
+ /*$_*/
121
+ t[11]("providers")
122
+ ) : (
123
+ /*$_*/
124
+ t[11]("collections")
125
+ )) + ""
126
+ ), a, c, b, h, S, u, d = (
127
+ /*numberOfSlides*/
128
+ t[8] > /*numberOfVisibleSlides*/
129
+ t[9] && $(t)
130
+ ), g = O(
131
+ /*gameCategories*/
132
+ t[3]
133
+ ), f = [];
134
+ for (let s = 0; s < g.length; s += 1)
135
+ f[s] = ie(Y(t, g, s));
136
+ return {
137
+ c() {
138
+ e = C("div"), i = C("div"), r = C("p"), a = I(l), c = x(), d && d.c(), b = x(), h = C("div");
139
+ for (let s = 0; s < f.length; s += 1)
140
+ f[s].c();
141
+ m(r, "class", "Title"), m(i, "class", "CategoriesHeader"), m(h, "class", "CategoriesSlider"), xe(() => (
142
+ /*div1_elementresize_handler*/
143
+ t[27].call(h)
144
+ )), m(e, "class", u = "CasinoCollectionsProviders " + /*mobile*/
145
+ (t[10] ? "Mobile" : "") + " " + /*type*/
146
+ (t[0] === "vendor" ? "Providers" : "Collections"));
147
+ },
148
+ m(s, y) {
149
+ M(s, e, y), v(e, i), v(i, r), v(r, a), v(i, c), d && d.m(i, null), v(e, b), v(e, h);
150
+ for (let o = 0; o < f.length; o += 1)
151
+ f[o] && f[o].m(h, null);
152
+ t[26](h), S = Fe(
153
+ h,
154
+ /*div1_elementresize_handler*/
155
+ t[27].bind(h)
156
+ );
157
+ },
158
+ p(s, y) {
159
+ if (y[0] & /*type, $_*/
160
+ 2049 && l !== (l = /*type*/
161
+ (s[0] == "vendor" ? (
162
+ /*$_*/
163
+ s[11]("providers")
164
+ ) : (
165
+ /*$_*/
166
+ s[11]("collections")
167
+ )) + "") && R(a, l), /*numberOfSlides*/
168
+ s[8] > /*numberOfVisibleSlides*/
169
+ s[9] ? d ? d.p(s, y) : (d = $(s), d.c(), d.m(i, null)) : d && (d.d(1), d = null), y[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
170
+ 49166) {
171
+ g = O(
172
+ /*gameCategories*/
173
+ s[3]
174
+ );
175
+ let o;
176
+ for (o = 0; o < g.length; o += 1) {
177
+ const _ = Y(s, g, o);
178
+ f[o] ? f[o].p(_, y) : (f[o] = ie(_), f[o].c(), f[o].m(h, null));
179
+ }
180
+ for (; o < f.length; o += 1)
181
+ f[o].d(1);
182
+ f.length = g.length;
183
+ }
184
+ y[0] & /*mobile, type*/
185
+ 1025 && u !== (u = "CasinoCollectionsProviders " + /*mobile*/
186
+ (s[10] ? "Mobile" : "") + " " + /*type*/
187
+ (s[0] === "vendor" ? "Providers" : "Collections")) && m(e, "class", u);
188
+ },
189
+ d(s) {
190
+ s && j(e), d && d.d(), le(f, s), t[26](null), S();
191
+ }
192
+ };
193
+ }
194
+ function Ne(t) {
195
+ let e;
196
+ return {
197
+ c() {
198
+ e = C("div"), m(e, "class", "LoadingSpinner");
199
+ },
200
+ m(i, r) {
201
+ M(i, e, r);
202
+ },
203
+ p: z,
204
+ d(i) {
205
+ i && j(e);
206
+ }
207
+ };
208
+ }
209
+ function $(t) {
210
+ let e, i, r, l, a, c;
211
+ return {
212
+ c() {
213
+ e = C("div"), i = C("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>', r = x(), l = C("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");
214
+ },
215
+ m(b, h) {
216
+ M(b, e, h), v(e, i), v(e, r), v(e, l), a || (c = [
217
+ B(
218
+ i,
219
+ "click",
220
+ /*click_handler*/
221
+ t[22]
222
+ ),
223
+ B(
224
+ l,
225
+ "click",
226
+ /*click_handler_1*/
227
+ t[23]
228
+ )
229
+ ], a = !0);
230
+ },
231
+ p: z,
232
+ d(b) {
233
+ b && j(e), a = !1, Te(c);
234
+ }
235
+ };
236
+ }
237
+ function Ie(t) {
238
+ let e, i = (
239
+ /*category*/
240
+ t[40].name + ""
241
+ ), r;
242
+ return {
243
+ c() {
244
+ e = C("p"), r = I(i), m(e, "class", "CategorySlideTitle");
245
+ },
246
+ m(l, a) {
247
+ M(l, e, a), v(e, r);
248
+ },
249
+ p(l, a) {
250
+ a[0] & /*gameCategories*/
251
+ 8 && i !== (i = /*category*/
252
+ l[40].name + "") && R(r, i);
253
+ },
254
+ d(l) {
255
+ l && j(e);
256
+ }
257
+ };
258
+ }
259
+ function Re(t) {
260
+ let e, i, r;
261
+ return {
262
+ c() {
263
+ e = C("img"), m(e, "class", "CategorySlideLogo"), H(e.src, i = /*category*/
264
+ t[40].icon) || m(e, "src", i), m(e, "alt", r = /*category*/
265
+ t[40].name + " icon");
266
+ },
267
+ m(l, a) {
268
+ M(l, e, a);
269
+ },
270
+ p(l, a) {
271
+ a[0] & /*gameCategories*/
272
+ 8 && !H(e.src, i = /*category*/
273
+ l[40].icon) && m(e, "src", i), a[0] & /*gameCategories*/
274
+ 8 && r !== (r = /*category*/
275
+ l[40].name + " icon") && m(e, "alt", r);
276
+ },
277
+ d(l) {
278
+ l && j(e);
279
+ }
280
+ };
281
+ }
282
+ function ee(t) {
283
+ let e, i = (
284
+ /*game*/
285
+ t[43].name + ""
286
+ ), r, l;
287
+ return {
288
+ c() {
289
+ e = C("p"), r = I(i), m(e, "title", l = /*game*/
290
+ t[43].name);
291
+ },
292
+ m(a, c) {
293
+ M(a, e, c), v(e, r);
294
+ },
295
+ p(a, c) {
296
+ c[0] & /*gameCategories*/
297
+ 8 && i !== (i = /*game*/
298
+ a[43].name + "") && R(r, i), c[0] & /*gameCategories*/
299
+ 8 && l !== (l = /*game*/
300
+ a[43].name) && m(e, "title", l);
301
+ },
302
+ d(a) {
303
+ a && j(e);
304
+ }
305
+ };
306
+ }
307
+ function te(t) {
308
+ let e, i, r, l, a, c, b, h;
309
+ function S() {
310
+ return (
311
+ /*click_handler_2*/
312
+ t[24](
313
+ /*game*/
314
+ t[43]
315
+ )
316
+ );
317
+ }
318
+ let u = (
319
+ /*collectionprovidersgamenames*/
320
+ t[2] == "true" && ee(t)
321
+ );
322
+ return {
323
+ c() {
324
+ e = C("div"), i = C("img"), a = x(), u && u.c(), c = x(), m(i, "class", "CategorySlideGameImage"), H(i.src, r = /*game*/
325
+ t[43].defaultThumbnail) || m(i, "src", r), m(i, "alt", l = /*game*/
326
+ t[43].name), m(e, "class", "CategorySlideGames");
327
+ },
328
+ m(d, g) {
329
+ M(d, e, g), v(e, i), v(e, a), u && u.m(e, null), v(e, c), b || (h = B(i, "click", Oe(S)), b = !0);
330
+ },
331
+ p(d, g) {
332
+ t = d, g[0] & /*gameCategories*/
333
+ 8 && !H(i.src, r = /*game*/
334
+ t[43].defaultThumbnail) && m(i, "src", r), g[0] & /*gameCategories*/
335
+ 8 && l !== (l = /*game*/
336
+ t[43].name) && m(i, "alt", l), /*collectionprovidersgamenames*/
337
+ t[2] == "true" ? u ? u.p(t, g) : (u = ee(t), u.c(), u.m(e, c)) : u && (u.d(1), u = null);
338
+ },
339
+ d(d) {
340
+ d && j(e), u && u.d(), b = !1, h();
341
+ }
342
+ };
343
+ }
344
+ function ie(t) {
345
+ let e, i, r, l, a, c, b, h, S;
346
+ function u(o, _) {
347
+ if (
348
+ /*titletype*/
349
+ o[1] == "logo"
350
+ ) return Re;
351
+ if (
352
+ /*titletype*/
353
+ o[1] == "title"
354
+ ) return Ie;
355
+ }
356
+ let d = u(t), g = d && d(t), f = O(
357
+ /*category*/
358
+ t[40].games
359
+ ), s = [];
360
+ for (let o = 0; o < f.length; o += 1)
361
+ s[o] = te(Q(t, f, o));
362
+ function y() {
363
+ return (
364
+ /*click_handler_3*/
365
+ t[25](
366
+ /*category*/
367
+ t[40]
368
+ )
369
+ );
370
+ }
371
+ return {
372
+ c() {
373
+ e = C("div"), i = C("div"), r = C("div"), g && g.c(), l = x(), a = C("div");
374
+ for (let o = 0; o < s.length; o += 1)
375
+ s[o].c();
376
+ b = x(), m(r, "class", "CategorySlideTopContainer"), m(a, "class", "CategorySlideGameContainer"), m(i, "class", c = "CategorySlide " + /*category*/
377
+ (t[40]?.flag[0] == "vendor" ? "CategorySlideNoHighlight" : "")), N(i, "background-image", "url(" + /*category*/
378
+ t[40]?.background + ")"), N(i, "background-size", "cover"), m(e, "class", "CategoriesSliderWrapper Animation");
379
+ },
380
+ m(o, _) {
381
+ M(o, e, _), v(e, i), v(i, r), g && g.m(r, null), v(i, l), v(i, a);
382
+ for (let p = 0; p < s.length; p += 1)
383
+ s[p] && s[p].m(a, null);
384
+ v(e, b), h || (S = B(i, "click", y), h = !0);
385
+ },
386
+ p(o, _) {
387
+ if (t = o, d === (d = u(t)) && g ? g.p(t, _) : (g && g.d(1), g = d && d(t), g && (g.c(), g.m(r, null))), _[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
388
+ 16396) {
389
+ f = O(
390
+ /*category*/
391
+ t[40].games
392
+ );
393
+ let p;
394
+ for (p = 0; p < f.length; p += 1) {
395
+ const F = Q(t, f, p);
396
+ s[p] ? s[p].p(F, _) : (s[p] = te(F), s[p].c(), s[p].m(a, null));
397
+ }
398
+ for (; p < s.length; p += 1)
399
+ s[p].d(1);
400
+ s.length = f.length;
401
+ }
402
+ _[0] & /*gameCategories*/
403
+ 8 && c !== (c = "CategorySlide " + /*category*/
404
+ (t[40]?.flag[0] == "vendor" ? "CategorySlideNoHighlight" : "")) && m(i, "class", c), _[0] & /*gameCategories*/
405
+ 8 && N(i, "background-image", "url(" + /*category*/
406
+ t[40]?.background + ")");
407
+ },
408
+ d(o) {
409
+ o && j(e), g && g.d(), le(s, o), h = !1, S();
410
+ }
411
+ };
412
+ }
413
+ function Ue(t) {
414
+ let e;
415
+ function i(a, c) {
416
+ return (
417
+ /*isLoading*/
418
+ a[7] ? Ne : Ae
419
+ );
420
+ }
421
+ let r = i(t), l = r(t);
422
+ return {
423
+ c() {
424
+ e = C("div"), l.c();
425
+ },
426
+ m(a, c) {
427
+ M(a, e, c), l.m(e, null), t[28](e);
428
+ },
429
+ p(a, c) {
430
+ r === (r = i(a)) && l ? l.p(a, c) : (l.d(1), l = r(a), l && (l.c(), l.m(e, null)));
431
+ },
432
+ i: z,
433
+ o: z,
434
+ d(a) {
435
+ a && j(e), l.d(), t[28](null);
436
+ }
437
+ };
438
+ }
439
+ function Ve(t, e, i) {
440
+ let r;
441
+ ke(t, ze, (n) => i(11, r = n));
442
+ let { endpoint: l = "" } = e, { datasource: a = "" } = e, { lang: c = "" } = e, { type: b = "" } = e, { titletype: h = "" } = e, { clientstyling: S = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: d = "" } = e, { collectionprovidersgamenames: g = "" } = e, f = [], s = !0, y, o = 0, _ = 0, p = 0, F, A, P, oe = window.navigator.userAgent, U, T = 0;
443
+ const ne = () => {
444
+ fetch(d).then((w) => w.json()).then((w) => {
445
+ Object.keys(w).forEach((G) => {
446
+ J(G, w[G]);
447
+ });
448
+ }).catch((w) => {
449
+ console.log(w);
450
+ });
451
+ };
452
+ Object.keys(X).forEach((n) => {
453
+ J(n, X[n]);
454
+ });
455
+ const re = () => {
456
+ const n = new URL(`${l}/v2/casino/groups/${a}`);
457
+ n.searchParams.append("language", c), n.searchParams.append("expand", "games"), fetch(n.href).then((w) => w.json()).then((w) => {
458
+ i(7, s = !1);
459
+ let G = w.items.filter((k) => k.flags == b);
460
+ i(3, f = G.map((k) => ({
461
+ id: k.id,
462
+ name: k.name,
463
+ icon: k.icon ? k.icon : k.vendors?.items[0]?.subVendors[0]?.logo,
464
+ games: k.games.items.slice(0, 4).map((he) => he),
465
+ background: k.background,
466
+ flag: k.flags
467
+ }))), i(8, _ = f.length);
468
+ });
469
+ }, V = (n) => {
470
+ A = [...y.children], A.forEach((w, G) => {
471
+ w.style.transform = `translateX(${100 * (n ? G - n : G)}%)`;
472
+ }), F = A[0].getBoundingClientRect().width, ae();
473
+ }, ae = () => {
474
+ i(9, p = Math.floor(T / F));
475
+ }, W = () => {
476
+ V(o);
477
+ }, D = () => {
478
+ o === 0 ? o = _ - p : o - p < -1 ? o = 0 : o--, W();
479
+ }, E = () => {
480
+ o === _ - p ? o = 0 : _ - p < o + 1 ? o = _ - p : o++, W();
481
+ }, q = (n, w, G, k) => {
482
+ window.postMessage(
483
+ {
484
+ type: "OpenCollectionsProvidersGame",
485
+ gameId: n,
486
+ launchUrl: w,
487
+ gameName: G,
488
+ subVendor: k
489
+ },
490
+ window.location.href
491
+ ), typeof gtag == "function" && gtag("event", "OpenGame", {
492
+ context: "CollectionsProviders",
493
+ gameName: `${G}`
494
+ });
495
+ }, K = (n) => {
496
+ window.postMessage(
497
+ {
498
+ type: "OpenCollectionsProvidersCategory",
499
+ categoryId: n
500
+ },
501
+ window.location.href
502
+ );
503
+ }, se = () => {
504
+ Be(c);
505
+ };
506
+ Ge(() => (i(10, U = Pe(oe)), () => {
507
+ }));
508
+ const de = () => D(), ce = () => E(), ge = (n) => q(n.gameId, n.launchUrl, n.name, n.subVendor), ue = (n) => K(n.id);
509
+ function fe(n) {
510
+ Z[n ? "unshift" : "push"](() => {
511
+ y = n, i(4, y);
512
+ });
513
+ }
514
+ function me() {
515
+ T = this.clientWidth, i(6, T);
516
+ }
517
+ function pe(n) {
518
+ Z[n ? "unshift" : "push"](() => {
519
+ P = n, i(5, P);
520
+ });
521
+ }
522
+ return t.$$set = (n) => {
523
+ "endpoint" in n && i(16, l = n.endpoint), "datasource" in n && i(17, a = n.datasource), "lang" in n && i(18, c = n.lang), "type" in n && i(0, b = n.type), "titletype" in n && i(1, h = n.titletype), "clientstyling" in n && i(19, S = n.clientstyling), "clientstylingurl" in n && i(20, u = n.clientstylingurl), "translationurl" in n && i(21, d = n.translationurl), "collectionprovidersgamenames" in n && i(2, g = n.collectionprovidersgamenames);
524
+ }, t.$$.update = () => {
525
+ t.$$.dirty[0] & /*endpoint, datasource, lang*/
526
+ 458752 && l && a && c && re(), t.$$.dirty[0] & /*categoriesSliderWidth, gameCategories, categoriesSlider*/
527
+ 88 && T && f && y && V(), t.$$.dirty[0] & /*lang*/
528
+ 262144 && c && se(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
529
+ 524320 && S && P && Le(P, S), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
530
+ 1048608 && u && P && Me(P, u), t.$$.dirty[0] & /*customStylingContainer*/
531
+ 32 && P && je(P, "Casino.Style"), t.$$.dirty[0] & /*translationurl*/
532
+ 2097152 && d && ne();
533
+ }, [
534
+ b,
535
+ h,
536
+ g,
537
+ f,
538
+ y,
539
+ P,
540
+ T,
541
+ s,
542
+ _,
543
+ p,
544
+ U,
545
+ r,
546
+ D,
547
+ E,
548
+ q,
549
+ K,
550
+ l,
551
+ a,
552
+ c,
553
+ S,
554
+ u,
555
+ d,
556
+ de,
557
+ ce,
558
+ ge,
559
+ ue,
560
+ fe,
561
+ me,
562
+ pe
563
+ ];
564
+ }
565
+ class We extends Ce {
566
+ constructor(e) {
567
+ super(), be(
568
+ this,
569
+ e,
570
+ Ve,
571
+ Ue,
572
+ we,
573
+ {
574
+ endpoint: 16,
575
+ datasource: 17,
576
+ lang: 18,
577
+ type: 0,
578
+ titletype: 1,
579
+ clientstyling: 19,
580
+ clientstylingurl: 20,
581
+ translationurl: 21,
582
+ collectionprovidersgamenames: 2
583
+ },
584
+ He,
585
+ [-1, -1]
586
+ );
587
+ }
588
+ get endpoint() {
589
+ return this.$$.ctx[16];
590
+ }
591
+ set endpoint(e) {
592
+ this.$$set({ endpoint: e }), L();
593
+ }
594
+ get datasource() {
595
+ return this.$$.ctx[17];
596
+ }
597
+ set datasource(e) {
598
+ this.$$set({ datasource: e }), L();
599
+ }
600
+ get lang() {
601
+ return this.$$.ctx[18];
602
+ }
603
+ set lang(e) {
604
+ this.$$set({ lang: e }), L();
605
+ }
606
+ get type() {
607
+ return this.$$.ctx[0];
608
+ }
609
+ set type(e) {
610
+ this.$$set({ type: e }), L();
611
+ }
612
+ get titletype() {
613
+ return this.$$.ctx[1];
614
+ }
615
+ set titletype(e) {
616
+ this.$$set({ titletype: e }), L();
617
+ }
618
+ get clientstyling() {
619
+ return this.$$.ctx[19];
620
+ }
621
+ set clientstyling(e) {
622
+ this.$$set({ clientstyling: e }), L();
623
+ }
624
+ get clientstylingurl() {
625
+ return this.$$.ctx[20];
626
+ }
627
+ set clientstylingurl(e) {
628
+ this.$$set({ clientstylingurl: e }), L();
629
+ }
630
+ get translationurl() {
631
+ return this.$$.ctx[21];
632
+ }
633
+ set translationurl(e) {
634
+ this.$$set({ translationurl: e }), L();
635
+ }
636
+ get collectionprovidersgamenames() {
637
+ return this.$$.ctx[2];
638
+ }
639
+ set collectionprovidersgamenames(e) {
640
+ this.$$set({ collectionprovidersgamenames: e }), L();
641
+ }
642
+ }
643
+ ye(We, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {} }, [], [], !0);
644
+ export {
645
+ We as default
646
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BQx5-rlk.cjs");function N(i,t){e.addMessages(i,t)}function re(i){e.$locale.set(i)}const q={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-1myc38z",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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 I(i,t,l){const r=i.slice();return r[40]=t[l],r}function R(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,n=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,f,w,m,c=i[8]>i[9]&&U(i),p=e.ensure_array_like(i[3]),u=[];for(let d=0;d<p.length;d+=1)u[d]=D(I(i,p,d));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(),f=e.element("div");for(let d=0;d<u.length;d+=1)u[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(f,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(f)),e.attr(t,"class",m="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,b){e.insert(d,t,b),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,f);for(let s=0;s<u.length;s+=1)u[s]&&u[s].m(f,null);i[26](f),w=e.add_iframe_resize_listener(f,i[27].bind(f))},p(d,b){if(b[0]&2049&&n!==(n=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,n),d[8]>d[9]?c?c.p(d,b):(c=U(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),b[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=I(d,p,s);u[s]?u[s].p(h,b):(u[s]=D(h),u[s].c(),u[s].m(f,null))}for(;s<u.length;s+=1)u[s].d(1);u.length=p.length}b[0]&1025&&m!==(m="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",m)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(u,d),i[26](null),w()}}}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 U(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,f){e.insert(v,t,f),e.append(t,l),e.append(t,r),e.append(t,n),a||(g=[e.listen(l,"click",i[22]),e.listen(n,"click",i[23])],a=!0)},p:e.noop,d(v){v&&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(n,a){e.insert(n,t,a),e.append(t,r)},p(n,a){a[0]&8&&l!==(l=n[40].name+"")&&e.set_data(r,l)},d(n){n&&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(n,a){e.insert(n,t,a)},p(n,a){a[0]&8&&!e.src_url_equal(t.src,l=n[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=n[40].name+" icon")&&e.attr(t,"alt",r)},d(n){n&&e.detach(t)}}}function W(i){let t,l=i[43].name+"",r,n;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",n=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&&n!==(n=a[43].name)&&e.attr(t,"title",n)},d(a){a&&e.detach(t)}}}function V(i){let t,l,r,n,a,g,v,f;function w(){return i[24](i[43])}let m=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),m&&m.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",n=i[43].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),m&&m.m(t,null),e.append(t,g),v||(f=e.listen(l,"click",e.stop_propagation(w)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&n!==(n=i[43].name)&&e.attr(l,"alt",n),i[2]=="true"?m?m.p(i,p):(m=W(i),m.c(),m.m(t,g)):m&&(m.d(1),m=null)},d(c){c&&e.detach(t),m&&m.d(),v=!1,f()}}}function D(i){let t,l,r,n,a,g,v,f,w;function m(s,h){if(s[1]=="logo")return ge;if(s[1]=="title")return ce}let c=m(i),p=c&&c(i),u=e.ensure_array_like(i[40].games),d=[];for(let s=0;s<u.length;s+=1)d[s]=V(R(i,u,s));function b(){return i[25](i[40])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),n=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[40])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[40])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,n),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),f||(w=e.listen(l,"click",b),f=!0)},p(s,h){var _,P;if(i=s,c===(c=m(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){u=e.ensure_array_like(i[40].games);let C;for(C=0;C<u.length;C+=1){const S=R(i,u,C);d[C]?d[C].p(S,h):(d[C]=V(S),d[C].c(),d[C].m(a,null))}for(;C<d.length;C+=1)d[C].d(1);d.length=u.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[40])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),f=!1,w()}}}function pe(i){let t;function l(a,g){return a[7]?de:se}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[28](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[28](null)}}}function ue(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:f=""}=t,{clientstyling:w=""}=t,{clientstylingurl:m=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,u=[],d=!0,b,s=0,h=0,_=0,P,C,S,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(y=>y.json()).then(y=>{Object.keys(y).forEach(G=>{N(G,y[G])})}).catch(y=>{console.log(y)})};Object.keys(q).forEach(o=>{N(o,q[o])});const J=()=>{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,d=!1);let G=y.items.filter(k=>k.flags==v);l(3,u=G.map(k=>{var B,H,A;return{id:k.id,name:k.name,icon:k.icon?k.icon:(A=(H=(B=k.vendors)==null?void 0:B.items[0])==null?void 0:H.subVendors[0])==null?void 0:A.logo,games:k.games.items.slice(0,4).map(oe=>oe),background:k.background,flag:k.flags}})),l(8,h=u.length)})},j=o=>{C=[...b.children],C.forEach((y,G)=>{y.style.transform=`translateX(${100*(o?G-o:G)}%)`}),P=C[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},x=()=>{j(s)},F=()=>{s===0?s=h-_:s-_<-1?s=0:s--,x()},T=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,x()},z=(o,y,G,k)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:o,launchUrl:y,gameName:G,subVendor:k},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},O=o=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:o},window.location.href)},Y=()=>{re(g)};e.onMount(()=>(l(10,M=e.isMobile(K)),()=>{}));const Q=()=>F(),$=()=>T(),ee=o=>z(o.gameId,o.launchUrl,o.name,o.subVendor),te=o=>O(o.id);function ie(o){e.binding_callbacks[o?"unshift":"push"](()=>{b=o,l(4,b)})}function le(){L=this.clientWidth,l(6,L)}function ne(o){e.binding_callbacks[o?"unshift":"push"](()=>{S=o,l(5,S)})}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,f=o.titletype),"clientstyling"in o&&l(19,w=o.clientstyling),"clientstylingurl"in o&&l(20,m=o.clientstylingurl),"translationurl"in o&&l(21,c=o.translationurl),"collectionprovidersgamenames"in o&&l(2,p=o.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&n&&a&&g&&J(),i.$$.dirty[0]&88&&L&&u&&b&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&w&&S&&e.setClientStyling(S,w),i.$$.dirty[0]&1048608&&m&&S&&e.setClientStylingURL(S),i.$$.dirty[0]&32&&S&&e.setClientStylingFromMB(S,"Casino.Style"),i.$$.dirty[0]&2097152&&c&&Z()},[v,f,p,u,b,S,L,d,h,_,M,r,F,T,z,O,n,a,g,w,m,c,Q,$,ee,te,ie,le,ne]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ue,pe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},ae,[-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()}}e.create_custom_element(E,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=E;