@everymatrix/casino-lobby 1.54.12 → 1.56.0

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 (120) hide show
  1. package/components/CasinoCalendar-CFPK0TM5.cjs +9 -0
  2. package/components/{CasinoCalendar-D3cTwZsW.js → CasinoCalendar-CSMUhfCr.js} +1066 -1022
  3. package/components/{CasinoCalendar-CKCvu8d9.js → CasinoCalendar-_T8fa3tA.js} +1215 -1171
  4. package/components/CasinoCalendarDailyDetails-CGRqVKFV.js +693 -0
  5. package/components/CasinoCalendarDailyDetails-DspcjY5l.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-DueCbaZn.js +693 -0
  7. package/components/CasinoCalendarDailyItem-DaSrAYwS.cjs +1 -0
  8. package/components/CasinoCalendarDailyItem-DpLOlYVI.js +306 -0
  9. package/components/CasinoCalendarDailyItem-DxYbPmky.js +306 -0
  10. package/components/{CasinoCategoriesSlider-06Zx2Iq-.js → CasinoCategoriesSlider-B7jmX0uM.js} +204 -197
  11. package/components/{CasinoCategoriesSlider-Bjd1r5S5.js → CasinoCategoriesSlider-DkmZ6uE9.js} +203 -196
  12. package/components/CasinoCategoriesSlider-Tm48k88y.cjs +1 -0
  13. package/components/CasinoCollectionsProviders-CFJKyip5.js +654 -0
  14. package/components/CasinoCollectionsProviders-XHUKRCjH.js +659 -0
  15. package/components/CasinoCollectionsProviders-fHbyEo_l.cjs +1 -0
  16. package/components/{CasinoFavoritesSection-WWaIxjOj.js → CasinoFavoritesSection-BJKuORXc.js} +138 -131
  17. package/components/CasinoFavoritesSection-DAfQZFKH.cjs +1 -0
  18. package/components/{CasinoFavoritesSection-Dumr9yPV.js → CasinoFavoritesSection-ui8ebJSk.js} +138 -131
  19. package/components/CasinoFilter-BZrHKXm3.cjs +1 -0
  20. package/components/{CasinoFilter-CT6gjm3V.js → CasinoFilter-Cj6Ya1tA.js} +237 -244
  21. package/components/{CasinoFilter-ckjDwsuD.js → CasinoFilter-t6_A4K9e.js} +232 -237
  22. package/components/CasinoGamePage-BCpBojD8.cjs +18 -0
  23. package/components/{CasinoGamePage-BUpAQtEi.js → CasinoGamePage-DH-mxVYx.js} +1012 -1018
  24. package/components/{CasinoGamePage-VEREng8k.js → CasinoGamePage-DQ1Yd_-1.js} +1004 -1010
  25. package/components/CasinoGameThumbnail-B15M2LaO.js +1829 -0
  26. package/components/CasinoGameThumbnail-CHGG4fWS.cjs +38 -0
  27. package/components/CasinoGameThumbnail-CmtUwom1.js +1845 -0
  28. package/components/{CasinoGamesCategorySection-DK9t7zLa.js → CasinoGamesCategorySection-D9nxbG-c.js} +945 -919
  29. package/components/CasinoGamesCategorySection-Dw87pk8g.cjs +1 -0
  30. package/components/{CasinoGamesCategorySection-u0JnTvTn.js → CasinoGamesCategorySection-lpoHUMLN.js} +855 -829
  31. package/components/CasinoJackpotBanner-COZRcenh.js +692 -0
  32. package/components/CasinoJackpotBanner-DcwCa-Hp.js +688 -0
  33. package/components/CasinoJackpotBanner-vFHgMV4j.cjs +1 -0
  34. package/components/CasinoLastPlayedSection-DUCFQv-7.cjs +1 -0
  35. package/components/{CasinoLastPlayedSection-CChe4Dsm.js → CasinoLastPlayedSection-IZ9mars2.js} +143 -134
  36. package/components/{CasinoLastPlayedSection-BoyL9RQI.js → CasinoLastPlayedSection-yetII3tl.js} +143 -134
  37. package/components/CasinoLobby-CZ0buhgH.cjs +1 -0
  38. package/components/{CasinoLobby-ClLV4i9d.js → CasinoLobby-CoCRB4M8.js} +706 -657
  39. package/components/{CasinoLobby-DUYjTD-X.js → CasinoLobby-DOvk4Q1L.js} +706 -657
  40. package/components/CasinoModal-6keCUEEx.cjs +1 -0
  41. package/components/CasinoModal-DDDhdR0c.js +368 -0
  42. package/components/CasinoModal-Dzu3FQyi.js +368 -0
  43. package/components/CasinoMostPlayedSection-BNDdZOM6.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-DIF7og_k.js → CasinoMostPlayedSection-CGqU9ZQv.js} +171 -162
  45. package/components/{CasinoMostPlayedSection-qZnaHjV9.js → CasinoMostPlayedSection-D0w6a_z2.js} +171 -162
  46. package/components/{CasinoMyGames-Bu2sU_i0.js → CasinoMyGames-BKqlNnO1.js} +382 -352
  47. package/components/CasinoMyGames-CX5HKRLY.cjs +1 -0
  48. package/components/{CasinoMyGames-BfCr8pSL.js → CasinoMyGames-Dy3IMfzN.js} +389 -359
  49. package/components/CasinoPage--1tMufa9.cjs +1 -0
  50. package/components/{CasinoPage-CoKfFrmH.js → CasinoPage-BnrghJel.js} +1207 -1046
  51. package/components/{CasinoPage-BAJC3ryR.js → CasinoPage-DYcUhqdZ.js} +833 -678
  52. package/components/{CasinoRandomGame-C6-dDxie.cjs → CasinoRandomGame-B1qCGSlR.cjs} +2 -2
  53. package/components/{CasinoRandomGame-Df62wtxc.js → CasinoRandomGame-Cup5oHY3.js} +247 -249
  54. package/components/{CasinoRandomGame-DXFHIw0O.js → CasinoRandomGame-Dq7oLh0O.js} +229 -231
  55. package/components/CasinoSearch-B1D8nnr0.cjs +1 -0
  56. package/components/{CasinoSearch-DP4hDzq5.js → CasinoSearch-DlUwO5L4.js} +385 -378
  57. package/components/{CasinoSearch-U2PDpXMA.js → CasinoSearch-jV0H_1Yg.js} +442 -435
  58. package/components/CasinoSlider-4pDZHG6x.cjs +1 -0
  59. package/components/CasinoSlider-ChnKJ8kH.js +797 -0
  60. package/components/CasinoSlider-Ot2uFDD8.js +803 -0
  61. package/components/CasinoSort-BnarJSWg.js +428 -0
  62. package/components/CasinoSort-DltZUpda.js +427 -0
  63. package/components/CasinoSort-jqMnIqLs.cjs +1 -0
  64. package/components/{CasinoWinners-6mr0X-kZ.js → CasinoWinners-BkJBCXPe.js} +354 -351
  65. package/components/CasinoWinners-Bs7Oh-m-.cjs +1 -0
  66. package/components/{CasinoWinners-CADOvOsd.js → CasinoWinners-CBgbYBfP.js} +343 -340
  67. package/components/GeneralAnimationLoading-BLss2VP4.cjs +1 -0
  68. package/components/GeneralAnimationLoading-BUY2TGQr.js +84 -0
  69. package/components/GeneralAnimationLoading-CRju5T01.js +84 -0
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +1 -1
  74. package/stencil/{casino-play-random-game-NI77_BKB.js → casino-play-random-game-CBXhEsCq.js} +54 -29
  75. package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-PZXnDzfs.js} +73 -48
  76. package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
  77. package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
  78. package/stencil/{index-8b2c4ca7-BNDGCsVn.js → index-29915e18-CQ_kWzEh.js} +134 -133
  79. package/stencil/{index-8b2c4ca7-CtUqBgXG.js → index-29915e18-MPiqo7vY.js} +131 -130
  80. package/components/CasinoCalendar-BlfnJwZ-.cjs +0 -9
  81. package/components/CasinoCalendarDailyDetails-B7hChP4v.js +0 -701
  82. package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +0 -1
  83. package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +0 -701
  84. package/components/CasinoCalendarDailyItem-1iPwEmjb.js +0 -315
  85. package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +0 -315
  86. package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +0 -1
  87. package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +0 -1
  88. package/components/CasinoCollectionsProviders-BQPjVzK8.js +0 -659
  89. package/components/CasinoCollectionsProviders-CSISd5u6.cjs +0 -1
  90. package/components/CasinoCollectionsProviders-CVDFBiI0.js +0 -664
  91. package/components/CasinoFavoritesSection-Dc3krq_m.cjs +0 -1
  92. package/components/CasinoFilter-C10Tgn3c.cjs +0 -1
  93. package/components/CasinoGamePage-DOzefHFS.cjs +0 -18
  94. package/components/CasinoGameThumbnail-CWQWsl_s.cjs +0 -38
  95. package/components/CasinoGameThumbnail-D08-4naW.js +0 -1834
  96. package/components/CasinoGameThumbnail-nmpLDgoF.js +0 -1850
  97. package/components/CasinoGamesCategorySection-LHUR2_EB.cjs +0 -1
  98. package/components/CasinoJackpotBanner-D3s92J-3.js +0 -614
  99. package/components/CasinoJackpotBanner-q02RPv4N.js +0 -618
  100. package/components/CasinoJackpotBanner-uWVFzOiI.cjs +0 -1
  101. package/components/CasinoLastPlayedSection-BVbeW3YI.cjs +0 -1
  102. package/components/CasinoLobby-bvh2k3lg.cjs +0 -1
  103. package/components/CasinoModal-C1oW3YF4.js +0 -372
  104. package/components/CasinoModal-DRtZi6gR.cjs +0 -1
  105. package/components/CasinoModal-IbVlgg7Z.js +0 -372
  106. package/components/CasinoMostPlayedSection-DQ_xJPuX.cjs +0 -1
  107. package/components/CasinoMyGames-B0pWVqCz.cjs +0 -1
  108. package/components/CasinoPage-CoSWrE10.cjs +0 -1
  109. package/components/CasinoSearch-Cnu1-6cZ.cjs +0 -1
  110. package/components/CasinoSlider-BDjskQjI.cjs +0 -1
  111. package/components/CasinoSlider-BWEc4YT5.js +0 -800
  112. package/components/CasinoSlider-BjpV4pLV.js +0 -806
  113. package/components/CasinoSort-CS53Uvnz.cjs +0 -1
  114. package/components/CasinoSort-DFdgT3Dt.js +0 -432
  115. package/components/CasinoSort-DFljh5Sg.js +0 -431
  116. package/components/CasinoWinners-DU3xFq2b.cjs +0 -1
  117. package/components/GeneralAnimationLoading-BG_QynCK.cjs +0 -1
  118. package/components/GeneralAnimationLoading-CX9baArf.js +0 -75
  119. package/components/GeneralAnimationLoading-DVLCsjn0.js +0 -75
  120. package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
@@ -1,221 +1,232 @@
1
- import { $ as E, T as H, S as O, i as U, s as j, f as l, b as V, n as L, d as I, h as M, j as R, r as z, L as n, C as B, I as G } from "./CasinoCalendar-CKCvu8d9.js";
1
+ import { $ as E, W as M, S as R, i as j, s as z, f as l, b as J, n as L, d as O, h as q, j as A, r as K, o as T, O as s, C as U, I as V, J as W, K as B, L as G } from "./CasinoCalendar-_T8fa3tA.js";
2
2
  if (typeof window < "u") {
3
- let a = function(e) {
3
+ let n = function(e) {
4
4
  return function(...t) {
5
5
  try {
6
6
  return e.apply(this, t);
7
- } catch (s) {
8
- if (s instanceof DOMException && s.message.includes("has already been used with this registry") || s.message.includes("Cannot define multiple custom elements with the same tag name"))
7
+ } catch (a) {
8
+ if (a instanceof DOMException && a.message.includes("has already been used with this registry") || a.message.includes("Cannot define multiple custom elements with the same tag name"))
9
9
  return !1;
10
- throw s;
10
+ throw a;
11
11
  }
12
12
  };
13
13
  };
14
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-u0JnTvTn.js").then(({ default: e }) => {
14
+ customElements.define = n(customElements.define), import("./CasinoGamesCategorySection-lpoHUMLN.js").then(({ default: e }) => {
15
15
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
16
16
  });
17
17
  }
18
- function J({ withLocale: a, translations: e }) {
18
+ function H({ withLocale: n, translations: e }) {
19
19
  E.subscribe((t) => {
20
- t == null && (H.set(e), E.set(a));
20
+ t == null && (M.set(e), E.set(n));
21
21
  });
22
22
  }
23
- function K(a) {
24
- V(a, "svelte-1rh2qpg", ".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
23
+ function N(n) {
24
+ J(n, "svelte-nazqps", ".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
25
25
  }
26
- function T(a) {
26
+ function I(n) {
27
27
  let e;
28
28
  return {
29
29
  c() {
30
- e = R("casino-games-category-section"), n(
30
+ e = A("casino-games-category-section"), s(
31
31
  e,
32
32
  "session",
33
33
  /*session*/
34
- a[4]
35
- ), n(
34
+ n[4]
35
+ ), s(
36
36
  e,
37
37
  "userid",
38
38
  /*userid*/
39
- a[5]
40
- ), n(
39
+ n[5]
40
+ ), s(
41
41
  e,
42
42
  "endpoint",
43
43
  /*endpoint*/
44
- a[0]
45
- ), n(
44
+ n[0]
45
+ ), s(
46
46
  e,
47
47
  "datasource",
48
48
  /*datasource*/
49
- a[1]
50
- ), n(
49
+ n[1]
50
+ ), s(
51
51
  e,
52
52
  "lang",
53
53
  /*lang*/
54
- a[3]
55
- ), n(
54
+ n[3]
55
+ ), s(
56
56
  e,
57
57
  "currency",
58
58
  /*currency*/
59
- a[2]
60
- ), n(
59
+ n[2]
60
+ ), s(
61
61
  e,
62
62
  "favorites",
63
63
  /*favorites*/
64
- a[14]
65
- ), n(
64
+ n[14]
65
+ ), s(
66
66
  e,
67
67
  "fetchviaevent",
68
68
  /*fetchviaevent*/
69
- a[16]
70
- ), n(e, "categoryid", "FAVORITES"), n(e, "class", "CategoryContainer"), n(
69
+ n[16]
70
+ ), s(
71
+ e,
72
+ "mbsource",
73
+ /*mbsource*/
74
+ n[17]
75
+ ), s(e, "categoryid", "FAVORITES"), s(e, "class", "CategoryContainer"), s(
71
76
  e,
72
77
  "showgamename",
73
78
  /*showgamename*/
74
- a[11]
75
- ), n(
79
+ n[11]
80
+ ), s(
76
81
  e,
77
82
  "clientstyling",
78
83
  /*clientstyling*/
79
- a[6]
80
- ), n(
84
+ n[6]
85
+ ), s(
81
86
  e,
82
87
  "clientstylingurl",
83
88
  /*clientstylingurl*/
84
- a[7]
85
- ), n(
89
+ n[7]
90
+ ), s(
86
91
  e,
87
92
  "livecasino",
88
93
  /*livecasino*/
89
- a[8]
90
- ), n(
94
+ n[8]
95
+ ), s(
91
96
  e,
92
97
  "visiblegames",
93
98
  /*visiblegames*/
94
- a[13]
95
- ), n(
99
+ n[13]
100
+ ), s(
96
101
  e,
97
102
  "gamepagemodalurl",
98
103
  /*gamepagemodalurl*/
99
- a[12]
100
- ), n(
104
+ n[12]
105
+ ), s(
101
106
  e,
102
107
  "integratedgameframedesktop",
103
108
  /*integratedgameframedesktop*/
104
- a[10]
105
- ), n(
109
+ n[10]
110
+ ), s(
106
111
  e,
107
112
  "integratedgameframemobile",
108
113
  /*integratedgameframemobile*/
109
- a[9]
110
- ), n(
114
+ n[9]
115
+ ), s(
111
116
  e,
112
117
  "casinomygames",
113
118
  /*casinomygames*/
114
- a[15]
119
+ n[15]
115
120
  );
116
121
  },
117
- m(t, s) {
118
- M(t, e, s);
122
+ m(t, a) {
123
+ q(t, e, a);
119
124
  },
120
- p(t, s) {
121
- s & /*session*/
122
- 16 && n(
125
+ p(t, a) {
126
+ a & /*session*/
127
+ 16 && s(
123
128
  e,
124
129
  "session",
125
130
  /*session*/
126
131
  t[4]
127
- ), s & /*userid*/
128
- 32 && n(
132
+ ), a & /*userid*/
133
+ 32 && s(
129
134
  e,
130
135
  "userid",
131
136
  /*userid*/
132
137
  t[5]
133
- ), s & /*endpoint*/
134
- 1 && n(
138
+ ), a & /*endpoint*/
139
+ 1 && s(
135
140
  e,
136
141
  "endpoint",
137
142
  /*endpoint*/
138
143
  t[0]
139
- ), s & /*datasource*/
140
- 2 && n(
144
+ ), a & /*datasource*/
145
+ 2 && s(
141
146
  e,
142
147
  "datasource",
143
148
  /*datasource*/
144
149
  t[1]
145
- ), s & /*lang*/
146
- 8 && n(
150
+ ), a & /*lang*/
151
+ 8 && s(
147
152
  e,
148
153
  "lang",
149
154
  /*lang*/
150
155
  t[3]
151
- ), s & /*currency*/
152
- 4 && n(
156
+ ), a & /*currency*/
157
+ 4 && s(
153
158
  e,
154
159
  "currency",
155
160
  /*currency*/
156
161
  t[2]
157
- ), s & /*favorites*/
158
- 16384 && n(
162
+ ), a & /*favorites*/
163
+ 16384 && s(
159
164
  e,
160
165
  "favorites",
161
166
  /*favorites*/
162
167
  t[14]
163
- ), s & /*fetchviaevent*/
164
- 65536 && n(
168
+ ), a & /*fetchviaevent*/
169
+ 65536 && s(
165
170
  e,
166
171
  "fetchviaevent",
167
172
  /*fetchviaevent*/
168
173
  t[16]
169
- ), s & /*showgamename*/
170
- 2048 && n(
174
+ ), a & /*mbsource*/
175
+ 131072 && s(
176
+ e,
177
+ "mbsource",
178
+ /*mbsource*/
179
+ t[17]
180
+ ), a & /*showgamename*/
181
+ 2048 && s(
171
182
  e,
172
183
  "showgamename",
173
184
  /*showgamename*/
174
185
  t[11]
175
- ), s & /*clientstyling*/
176
- 64 && n(
186
+ ), a & /*clientstyling*/
187
+ 64 && s(
177
188
  e,
178
189
  "clientstyling",
179
190
  /*clientstyling*/
180
191
  t[6]
181
- ), s & /*clientstylingurl*/
182
- 128 && n(
192
+ ), a & /*clientstylingurl*/
193
+ 128 && s(
183
194
  e,
184
195
  "clientstylingurl",
185
196
  /*clientstylingurl*/
186
197
  t[7]
187
- ), s & /*livecasino*/
188
- 256 && n(
198
+ ), a & /*livecasino*/
199
+ 256 && s(
189
200
  e,
190
201
  "livecasino",
191
202
  /*livecasino*/
192
203
  t[8]
193
- ), s & /*visiblegames*/
194
- 8192 && n(
204
+ ), a & /*visiblegames*/
205
+ 8192 && s(
195
206
  e,
196
207
  "visiblegames",
197
208
  /*visiblegames*/
198
209
  t[13]
199
- ), s & /*gamepagemodalurl*/
200
- 4096 && n(
210
+ ), a & /*gamepagemodalurl*/
211
+ 4096 && s(
201
212
  e,
202
213
  "gamepagemodalurl",
203
214
  /*gamepagemodalurl*/
204
215
  t[12]
205
- ), s & /*integratedgameframedesktop*/
206
- 1024 && n(
216
+ ), a & /*integratedgameframedesktop*/
217
+ 1024 && s(
207
218
  e,
208
219
  "integratedgameframedesktop",
209
220
  /*integratedgameframedesktop*/
210
221
  t[10]
211
- ), s & /*integratedgameframemobile*/
212
- 512 && n(
222
+ ), a & /*integratedgameframemobile*/
223
+ 512 && s(
213
224
  e,
214
225
  "integratedgameframemobile",
215
226
  /*integratedgameframemobile*/
216
227
  t[9]
217
- ), s & /*casinomygames*/
218
- 32768 && n(
228
+ ), a & /*casinomygames*/
229
+ 32768 && s(
219
230
  e,
220
231
  "casinomygames",
221
232
  /*casinomygames*/
@@ -223,91 +234,80 @@ function T(a) {
223
234
  );
224
235
  },
225
236
  d(t) {
226
- t && I(e);
237
+ t && O(e);
227
238
  }
228
239
  };
229
240
  }
230
- function N(a) {
241
+ function P(n) {
231
242
  let e, t = (
232
243
  /*session*/
233
- a[4] && T(a)
244
+ n[4] && I(n)
234
245
  );
235
246
  return {
236
247
  c() {
237
- e = R("div"), t && t.c(), z(e, "class", "CasinoFavoritesSectionContainer");
248
+ e = A("div"), t && t.c(), K(e, "class", "CasinoFavoritesSectionContainer");
238
249
  },
239
- m(s, g) {
240
- M(s, e, g), t && t.m(e, null), a[18](e);
250
+ m(a, g) {
251
+ q(a, e, g), t && t.m(e, null), n[19](e);
241
252
  },
242
- p(s, [g]) {
253
+ p(a, [g]) {
243
254
  /*session*/
244
- s[4] ? t ? t.p(s, g) : (t = T(s), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
255
+ a[4] ? t ? t.p(a, g) : (t = I(a), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
245
256
  },
246
257
  i: L,
247
258
  o: L,
248
- d(s) {
249
- s && I(e), t && t.d(), a[18](null);
259
+ d(a) {
260
+ a && O(e), t && t.d(), n[19](null);
250
261
  }
251
262
  };
252
263
  }
253
- function P(a, e, t) {
254
- let { endpoint: s = "" } = e, { datasource: g = "" } = e, { currency: f = "" } = e, { lang: u = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: v = "false" } = e, { integratedgameframedesktop: b = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: C = "" } = e, { favorites: k = "" } = e, { casinomygames: F = "false" } = e, { fetchviaevent: S = "true" } = e, m;
255
- J({ withLocale: "en", translations: {} });
256
- const q = () => {
257
- let i = document.createElement("style");
258
- i.innerHTML = r, m.appendChild(i);
259
- }, A = () => {
260
- let i = document.createElement("style");
261
- fetch(new URL(c)).then((o) => o.text()).then((o) => {
262
- i.innerHTML = o, setTimeout(
263
- () => {
264
- m.appendChild(i);
265
- },
266
- 1
267
- );
268
- });
269
- };
264
+ function Q(n, e, t) {
265
+ let { endpoint: a = "" } = e, { datasource: g = "" } = e, { currency: u = "" } = e, { lang: f = "" } = e, { session: h = "" } = e, { userid: d = "" } = e, { clientstyling: r = "" } = e, { clientstylingurl: o = "" } = e, { livecasino: y = "false" } = e, { integratedgameframemobile: b = "false" } = e, { integratedgameframedesktop: v = "false" } = e, { showgamename: w = "" } = e, { gamepagemodalurl: _ = "false" } = e, { visiblegames: k = "" } = e, { favorites: C = "" } = e, { casinomygames: S = "false" } = e, { fetchviaevent: F = "true" } = e, { mbsource: c } = e, m;
266
+ H({ withLocale: "en", translations: {} }), T(() => () => {
267
+ });
270
268
  function D(i) {
271
- B[i ? "unshift" : "push"](() => {
272
- m = i, t(17, m);
269
+ U[i ? "unshift" : "push"](() => {
270
+ m = i, t(18, m);
273
271
  });
274
272
  }
275
- return a.$$set = (i) => {
276
- "endpoint" in i && t(0, s = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, f = i.currency), "lang" in i && t(3, u = i.lang), "session" in i && t(4, h = i.session), "userid" in i && t(5, d = i.userid), "clientstyling" in i && t(6, r = i.clientstyling), "clientstylingurl" in i && t(7, c = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, v = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, b = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, C = i.visiblegames), "favorites" in i && t(14, k = i.favorites), "casinomygames" in i && t(15, F = i.casinomygames), "fetchviaevent" in i && t(16, S = i.fetchviaevent);
277
- }, a.$$.update = () => {
278
- a.$$.dirty & /*clientstyling, customStylingContainer*/
279
- 131136 && r && m && q(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
280
- 131200 && c && m && A();
273
+ return n.$$set = (i) => {
274
+ "endpoint" in i && t(0, a = i.endpoint), "datasource" in i && t(1, g = i.datasource), "currency" in i && t(2, u = i.currency), "lang" in i && t(3, f = i.lang), "session" in i && t(4, h = i.session), "userid" in i && t(5, d = i.userid), "clientstyling" in i && t(6, r = i.clientstyling), "clientstylingurl" in i && t(7, o = i.clientstylingurl), "livecasino" in i && t(8, y = i.livecasino), "integratedgameframemobile" in i && t(9, b = i.integratedgameframemobile), "integratedgameframedesktop" in i && t(10, v = i.integratedgameframedesktop), "showgamename" in i && t(11, w = i.showgamename), "gamepagemodalurl" in i && t(12, _ = i.gamepagemodalurl), "visiblegames" in i && t(13, k = i.visiblegames), "favorites" in i && t(14, C = i.favorites), "casinomygames" in i && t(15, S = i.casinomygames), "fetchviaevent" in i && t(16, F = i.fetchviaevent), "mbsource" in i && t(17, c = i.mbsource);
275
+ }, n.$$.update = () => {
276
+ n.$$.dirty & /*clientstyling, customStylingContainer*/
277
+ 262208 && r && m && V(m, r), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
278
+ 262272 && o && m && W(m, o), n.$$.dirty & /*customStylingContainer, mbsource*/
279
+ 393216 && m && B(m, `${c}.Style`);
281
280
  }, [
282
- s,
281
+ a,
283
282
  g,
284
- f,
285
283
  u,
284
+ f,
286
285
  h,
287
286
  d,
288
287
  r,
289
- c,
288
+ o,
290
289
  y,
291
- v,
292
290
  b,
291
+ v,
293
292
  w,
294
293
  _,
295
- C,
296
294
  k,
297
- F,
295
+ C,
298
296
  S,
297
+ F,
298
+ c,
299
299
  m,
300
300
  D
301
301
  ];
302
302
  }
303
- class Q extends O {
303
+ class X extends R {
304
304
  constructor(e) {
305
- super(), U(
305
+ super(), j(
306
306
  this,
307
307
  e,
308
+ Q,
308
309
  P,
309
- N,
310
- j,
310
+ z,
311
311
  {
312
312
  endpoint: 0,
313
313
  datasource: 1,
@@ -325,9 +325,10 @@ class Q extends O {
325
325
  visiblegames: 13,
326
326
  favorites: 14,
327
327
  casinomygames: 15,
328
- fetchviaevent: 16
328
+ fetchviaevent: 16,
329
+ mbsource: 17
329
330
  },
330
- K
331
+ N
331
332
  );
332
333
  }
333
334
  get endpoint() {
@@ -432,8 +433,14 @@ class Q extends O {
432
433
  set fetchviaevent(e) {
433
434
  this.$$set({ fetchviaevent: e }), l();
434
435
  }
436
+ get mbsource() {
437
+ return this.$$.ctx[17];
438
+ }
439
+ set mbsource(e) {
440
+ this.$$set({ mbsource: e }), l();
441
+ }
435
442
  }
436
- G(Q, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {} }, [], [], !0);
443
+ G(X, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, showgamename: {}, gamepagemodalurl: {}, visiblegames: {}, favorites: {}, casinomygames: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
437
444
  export {
438
- Q as default
445
+ X as default
439
446
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CFPK0TM5.cjs");function X({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}const Z={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function Y(r){e.append_styles(r,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function G(r,t,l){const a=r.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function $(r){let t,l,a,n,s,g,y,v,F=r[11]("filterby")+"",p,_,b,P,S=r[11]("providers")+"",w,k,f,d,m,I,D,O,C,L,T,W,A,N=r[11]("clear")+"",z,B,M,E,J,q;function H(o,u){return o[7]?le:te}let V=H(r),x=V(r),i=e.ensure_array_like(r[5]),c=[];for(let o=0;o<i.length;o+=1)c[o]=K(G(r,i,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),y=e.element("div"),v=e.element("span"),p=e.text(F),_=e.space(),b=e.element("div"),P=e.element("span"),w=e.text(S),k=e.space(),x.c(),f=e.space(),d=e.element("span"),m=e.svg_element("svg"),I=e.svg_element("path"),C=e.space(),L=e.element("div"),T=e.element("ul");for(let o=0;o<c.length;o+=1)c[o].c();W=e.space(),A=e.element("button"),z=e.text(N),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(v,"class","FilterName"),e.attr(b,"class","FilterValueContainer"),e.attr(y,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(I,"id","arrow"),e.attr(I,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(I,"transform","translate(-274.511 -441.088)"),e.attr(I,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(d,"class",D="TriangleInactive "+(r[4]?"TriangleActive":"")),e.attr(l,"class",O="FilterSelector "+(r[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(A,"class","ClearFilters"),A.disabled=B=r[7]&&r[6].length!=r[5].length,e.attr(L,"class",M="FilterDropdownContainer "+(r[4]?"FilterOpen":"")),e.attr(t,"class",E="FilterContainer "+(r[0]=="true"&&r[1]=="true"?"FilerContainerSplit":""))},m(o,u){e.insert(o,t,u),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,y),e.append(y,v),e.append(v,p),e.append(y,_),e.append(y,b),e.append(b,P),e.append(P,w),e.append(b,k),x.m(b,null),e.append(l,f),e.append(l,d),e.append(d,m),e.append(m,I),e.append(t,C),e.append(t,L),e.append(L,T);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(T,null);e.append(L,W),e.append(L,A),e.append(A,z),J||(q=[e.listen(l,"click",r[23]),e.listen(A,"click",r[26])],J=!0)},p(o,u){if(u[0]&2048&&F!==(F=o[11]("filterby")+"")&&e.set_data(p,F),u[0]&2048&&S!==(S=o[11]("providers")+"")&&e.set_data(w,S),V===(V=H(o))&&x?x.p(o,u):(x.d(1),x=V(o),x&&(x.c(),x.m(b,null))),u[0]&16&&D!==(D="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(d,"class",D),u[0]&16&&O!==(O="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",O),u[0]&8228){i=e.ensure_array_like(o[5]);let h;for(h=0;h<i.length;h+=1){const j=G(o,i,h);c[h]?c[h].p(j,u):(c[h]=K(j),c[h].c(),c[h].m(T,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=i.length}u[0]&2048&&N!==(N=o[11]("clear")+"")&&e.set_data(z,N),u[0]&224&&B!==(B=o[7]&&o[6].length!=o[5].length)&&(A.disabled=B),u[0]&16&&M!==(M="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(L,"class",M),u[0]&3&&E!==(E="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",E)},d(o){o&&e.detach(t),x.d(),e.destroy_each(c,o),J=!1,e.run_all(q)}}}function ee(r){let t,l=r[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function te(r){let t,l;return{c(){t=e.element("span"),l=e.text(r[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function le(r){let t,l=r[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function re(r){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=r[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ie(r){let t,l,a=r[36].name+"",n,s,g,y,v=r[36].games.count+"",F,p;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),y=e.text("("),F=e.text(v),p=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(_,b){e.insert(_,t,b),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,y),e.append(g,F),e.append(g,p)},p(_,b){b[0]&32&&a!==(a=_[36].name+"")&&e.set_data(n,a),b[0]&32&&v!==(v=_[36].games.count+"")&&e.set_data(F,v)},d(_){_&&e.detach(t)}}}function K(r){let t,l,a,n,s,g,y,v,F,p,_,b;function P(){r[24].call(a,r[37],r[38])}function S(){return r[25](r[36])}function w(d,m){if(d[2]==="false")return ie;if(d[2]==="true")return re}let k=w(r),f=k&&k(r);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),y=e.space(),f&&f.c(),v=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=r[36].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":"")),t.value=p=r[36].name},m(d,m){e.insert(d,t,m),e.append(t,l),e.append(l,a),a.checked=r[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,y),f&&f.m(l,null),e.append(t,v),_||(b=[e.listen(a,"change",P),e.listen(a,"click",S)],_=!0)},p(d,m){r=d,m[0]&32&&n!==(n=r[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=r[36].isFilterSelected),k===(k=w(r))&&f?f.p(r,m):(f&&f.d(1),f=k&&k(r),f&&(f.c(),f.m(l,null))),m[0]&4&&F!==(F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",F),m[0]&32&&p!==(p=r[36].name)&&(t.value=p)},d(d){d&&e.detach(t),f&&f.d(),_=!1,e.run_all(b)}}}function ae(r){let t;function l(s,g){if(s[10])return ee;if(!s[9])return $}let a=l(r),n=a&&a(r);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),r[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),r[27](null)}}}function ne(r,t,l){let a;e.component_subscribe(r,e.$format,i=>l(11,a=i));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:y=""}=t,{clientstyling:v=""}=t,{clientstylingurl:F=""}=t,{categoryid:p=""}=t,{addfilterselector:_="false"}=t,{addsortingselector:b="false"}=t,{filterbylogo:P="false"}=t,{mbsource:S}=t,w=!1,k=window.navigator.userAgent,f=[],d=[],m={},I=!1,D=0,O=!0,C,L=!1;X({withLocale:"en",translations:{}});const T=()=>{fetch(y).then(c=>c.json()).then(c=>{Object.keys(c).forEach(o=>{U(o,c[o])})}).catch(c=>{console.log(c)})};Object.keys(Z).forEach(i=>{U(i,Z[i])}),m[p]&&(m={[p]:[]});const W=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},A=i=>(l(9,O=!0),new Promise((c,o)=>{fetch(i).then(u=>u.json()).then(u=>{u=u.items,c(u.items),l(6,d=[]);let h=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));u.forEach(j=>{var R;h||(h={currentCategoryId:[]}),((R=h[p])==null?void 0:R.indexOf(j.id))>=0?(j.isFilterSelected=!0,d.push(j)):j.isFilterSelected=!1}),l(5,f=u),z()}).catch(u=>{console.error(u),l(10,L=!0),o(u)}).finally(()=>{l(9,O=!1)})})),N=i=>{let c=localStorage.getItem("vendorFiltersByCategory");i.isFilterSelected=!i.isFilterSelected,!d.length||d.filter(o=>o.name===i.name).length==0?d.push(i):l(6,d=d.filter(o=>o.name!==i.name)),c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[p]:d.map(o=>o.id)})):(c=JSON.parse(c),c[p]=d.map(o=>o.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),z()},z=()=>{l(7,I=d.length===f.length||d.length==0),l(8,D=d.length)},B=()=>{const i=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),i.searchParams.append("fields","id,name,logo,subVendors,games"),i.searchParams.append("language",g),i.searchParams.append("datasource",s),i.searchParams.append("platform",e.getDevice(k)),(p.match(/\$/g)||[]).length>1?(i.searchParams.append("filter",`games(subGroups=${p})`),i.searchParams.append("subVendors",`games(subGroups=${p})`)):i.searchParams.append("filter",`games(groups=${p})`),A(i)},M=()=>{l(6,d=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[p]:d.map(i=>i.id)})),f.forEach(i=>i.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,I=!0),l(4,w=!1)},E=i=>{i.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const J=()=>W();function q(i,c){i[c].isFilterSelected=this.checked,l(5,f)}const H=i=>N(i),V=()=>M();function x(i){e.binding_callbacks[i?"unshift":"push"](()=>{C=i,l(3,C)})}return r.$$set=i=>{"endpoint"in i&&l(15,n=i.endpoint),"datasource"in i&&l(16,s=i.datasource),"lang"in i&&l(17,g=i.lang),"translationurl"in i&&l(18,y=i.translationurl),"clientstyling"in i&&l(19,v=i.clientstyling),"clientstylingurl"in i&&l(20,F=i.clientstylingurl),"categoryid"in i&&l(21,p=i.categoryid),"addfilterselector"in i&&l(0,_=i.addfilterselector),"addsortingselector"in i&&l(1,b=i.addsortingselector),"filterbylogo"in i&&l(2,P=i.filterbylogo),"mbsource"in i&&l(22,S=i.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&2195460&&n&&s&&p&&P&&B(),r.$$.dirty[0]&524296&&v&&C&&e.setClientStyling(C,v),r.$$.dirty[0]&1048584&&F&&C&&e.setClientStylingURL(C,F),r.$$.dirty[0]&4194312&&C&&e.setStreamStyling(C,`${S}.Style`),r.$$.dirty[0]&262144&&y&&T()},[_,b,P,C,w,f,d,I,D,O,L,a,W,N,M,n,s,g,y,v,F,p,S,J,q,H,V,x]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,ae,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22},Y,[-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 translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl: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 categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=Q;