@everymatrix/casino-last-played-section 1.87.37 → 1.87.39

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 (19) hide show
  1. package/components/{CasinoFilter-RGuOjNV-.js → CasinoFilter-BGbdLmNb.js} +115 -114
  2. package/components/{CasinoFilter-Bq27fkl0.cjs → CasinoFilter-CeXUPKNn.cjs} +1 -1
  3. package/components/{CasinoFilter-ur0N0e_q.js → CasinoFilter-erjAS5u7.js} +116 -115
  4. package/components/{CasinoGameThumbnail-D8eKiOCc.cjs → CasinoGameThumbnail-BQhF1guo.cjs} +1 -1
  5. package/components/{CasinoGameThumbnail-Ck10-v-p.js → CasinoGameThumbnail-CcpK-ENB.js} +2 -2
  6. package/components/{CasinoGameThumbnail-CWi08UB2.js → CasinoGameThumbnail-NDT8Z7TI.js} +2 -2
  7. package/components/{CasinoGamesCategorySection-BxPHrlVj.js → CasinoGamesCategorySection-BBKpAFe2.js} +4 -4
  8. package/components/{CasinoGamesCategorySection-BIc39Efl.js → CasinoGamesCategorySection-DjHvJC-w.js} +4 -4
  9. package/components/{CasinoGamesCategorySection-Y8eLR0W5.cjs → CasinoGamesCategorySection-iBpGKd-y.cjs} +2 -2
  10. package/components/{CasinoLastPlayedSection-DrrWbeZS.cjs → CasinoLastPlayedSection-BBp356hi.cjs} +1 -1
  11. package/components/{CasinoLastPlayedSection-tw4aeVIv.js → CasinoLastPlayedSection-BTimobYP.js} +1 -1
  12. package/components/{CasinoLastPlayedSection-jaTKdLsf.js → CasinoLastPlayedSection-mwpAVpa9.js} +1 -1
  13. package/components/{CasinoSort-CwwPvIGU.cjs → CasinoSort-BMl33Jsp.cjs} +1 -1
  14. package/components/{CasinoSort-OyxicsAe.js → CasinoSort-BYnQjt_a.js} +1 -1
  15. package/components/{CasinoSort-CliCKl9a.js → CasinoSort-Bt_Bp_JQ.js} +1 -1
  16. package/es2015/casino-last-played-section.cjs +1 -1
  17. package/es2015/casino-last-played-section.js +1 -1
  18. package/esnext/casino-last-played-section.js +1 -1
  19. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { $ as re, M as pe, a as me, S as he, i as Fe, s as be, f as L, b as ye, n as ie, d as j, e as z, g as u, j as ve, k as we, u as _e, l as ke, h as n, x as ae, B as Ce, N as ge, v as q, q as o, C as te, D as ee, r as O, w as B, O as ne, I as oe, F as xe, G as Se, H as Ie, c as Le, E as Pe } from "./CasinoLastPlayedSection-tw4aeVIv.js";
1
+ import { $ as re, M as pe, a as me, S as he, i as Fe, s as be, f as L, b as ye, n as ie, d as z, e as V, g, j as ve, k as we, u as _e, l as ke, h as n, x as ae, B as Ce, N as ue, v as G, q as o, C as te, D as ee, r as O, w as T, O as ne, I as oe, F as xe, G as Se, H as Ie, c as Le, E as Pe } from "./CasinoLastPlayedSection-BTimobYP.js";
2
2
  function Ae({ withLocale: r, translations: e }) {
3
3
  re.subscribe((l) => {
4
4
  l == null && (pe.set(e), re.set(r));
@@ -128,112 +128,112 @@ function Ee(r) {
128
128
  let e, l, i, a, s, m, v, w, b = (
129
129
  /*$_*/
130
130
  r[11]("filterby") + ""
131
- ), g, C, y, E, A = (
131
+ ), u, C, y, E, P = (
132
132
  /*$_*/
133
133
  r[11]("providers") + ""
134
- ), S, x, F, p, c, P, M, V, G, _, N, X, T, W = (
134
+ ), S, x, F, p, c, A, M, W, R, _, N, D, B, H = (
135
135
  /*$_*/
136
136
  r[11]("clear") + ""
137
- ), R, H, J, U, Z, Q;
137
+ ), U, J, q, Z, K, X;
138
138
  function Y(t, d) {
139
139
  return (
140
140
  /*fullSelection*/
141
- t[7] ? Me : Be
141
+ t[7] ? Me : Te
142
142
  );
143
143
  }
144
- let K = Y(r), I = K(r), D = ae(
144
+ let Q = Y(r), I = Q(r), j = ae(
145
145
  /*vendorArray*/
146
146
  r[5]
147
147
  ), k = [];
148
- for (let t = 0; t < D.length; t += 1)
149
- k[t] = fe(de(r, D, t));
148
+ for (let t = 0; t < j.length; t += 1)
149
+ k[t] = fe(de(r, j, t));
150
150
  return {
151
151
  c() {
152
- e = u("div"), l = u("div"), i = u("div"), a = ee("svg"), s = ee("path"), m = O(), v = u("div"), w = u("span"), g = B(b), C = O(), y = u("div"), E = u("span"), S = B(A), x = O(), I.c(), F = O(), p = u("span"), c = ee("svg"), P = ee("path"), G = O(), _ = u("div"), N = u("ul");
152
+ e = g("div"), l = g("div"), i = g("div"), a = ee("svg"), s = ee("path"), m = O(), v = g("div"), w = g("span"), u = T(b), C = O(), y = g("div"), E = g("span"), S = T(P), x = O(), I.c(), F = O(), p = g("span"), c = ee("svg"), A = ee("path"), R = O(), _ = g("div"), N = g("ul");
153
153
  for (let t = 0; t < k.length; t += 1)
154
154
  k[t].c();
155
- X = O(), T = u("button"), R = B(W), n(s, "id", "noun_filter_736223"), n(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"), n(s, "transform", "translate(-5 -6.2)"), n(s, "fill", "#fff"), n(a, "xmlns", "http://www.w3.org/2000/svg"), n(a, "width", "16"), n(a, "height", "16"), n(a, "viewBox", "0 0 16 16"), n(w, "class", "FilterName"), n(y, "class", "FilterValueContainer"), n(v, "class", "FilterTextContainer"), n(i, "class", "FilterMainArea"), n(P, "id", "arrow"), n(P, "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"), n(P, "transform", "translate(-274.511 -441.088)"), n(P, "fill", "#d1d1d1"), n(c, "xmlns", "http://www.w3.org/2000/svg"), n(c, "width", "14"), n(c, "height", "6.835"), n(c, "viewBox", "0 0 14 6.835"), n(p, "class", M = "TriangleInactive " + /*isFilterActive*/
156
- (r[4] ? "TriangleActive" : "")), n(l, "class", V = "FilterSelector " + /*isFilterActive*/
157
- (r[4] ? "FilterSelectorOpen" : "")), n(N, "class", "FilterDropdown"), n(T, "class", "ClearFilters"), T.disabled = H = /*fullSelection*/
155
+ D = O(), B = g("button"), U = T(H), n(s, "id", "noun_filter_736223"), n(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"), n(s, "transform", "translate(-5 -6.2)"), n(s, "fill", "#fff"), n(a, "xmlns", "http://www.w3.org/2000/svg"), n(a, "width", "16"), n(a, "height", "16"), n(a, "viewBox", "0 0 16 16"), n(w, "class", "FilterName"), n(y, "class", "FilterValueContainer"), n(v, "class", "FilterTextContainer"), n(i, "class", "FilterMainArea"), n(A, "id", "arrow"), n(A, "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"), n(A, "transform", "translate(-274.511 -441.088)"), n(A, "fill", "#d1d1d1"), n(c, "xmlns", "http://www.w3.org/2000/svg"), n(c, "width", "14"), n(c, "height", "6.835"), n(c, "viewBox", "0 0 14 6.835"), n(p, "class", M = "TriangleInactive " + /*isFilterActive*/
156
+ (r[4] ? "TriangleActive" : "")), n(l, "class", W = "FilterSelector " + /*isFilterActive*/
157
+ (r[4] ? "FilterSelectorOpen" : "")), n(N, "class", "FilterDropdown"), n(B, "class", "ClearFilters"), B.disabled = J = /*fullSelection*/
158
158
  r[7] && /*selectedVendorArray*/
159
159
  r[6].length != /*vendorArray*/
160
- r[5].length, n(_, "class", J = "FilterDropdownContainer " + /*isFilterActive*/
161
- (r[4] ? "FilterOpen" : "")), n(e, "class", U = "FilterContainer " + /*addfilterselector*/
160
+ r[5].length, n(_, "class", q = "FilterDropdownContainer " + /*isFilterActive*/
161
+ (r[4] ? "FilterOpen" : "")), n(e, "class", Z = "FilterContainer " + /*addfilterselector*/
162
162
  (r[0] == "true" && /*addsortingselector*/
163
163
  r[1] == "true" ? "FilerContainerSplit" : ""));
164
164
  },
165
165
  m(t, d) {
166
- z(t, e, d), o(e, l), o(l, i), o(i, a), o(a, s), o(i, m), o(i, v), o(v, w), o(w, g), o(v, C), o(v, y), o(y, E), o(E, S), o(y, x), I.m(y, null), o(l, F), o(l, p), o(p, c), o(c, P), o(e, G), o(e, _), o(_, N);
166
+ V(t, e, d), o(e, l), o(l, i), o(i, a), o(a, s), o(i, m), o(i, v), o(v, w), o(w, u), o(v, C), o(v, y), o(y, E), o(E, S), o(y, x), I.m(y, null), o(l, F), o(l, p), o(p, c), o(c, A), o(e, R), o(e, _), o(_, N);
167
167
  for (let f = 0; f < k.length; f += 1)
168
168
  k[f] && k[f].m(N, null);
169
- o(_, X), o(_, T), o(T, R), Z || (Q = [
169
+ o(_, D), o(_, B), o(B, U), K || (X = [
170
170
  te(
171
171
  l,
172
172
  "click",
173
173
  /*click_handler*/
174
- r[24]
174
+ r[25]
175
175
  ),
176
176
  te(
177
- T,
177
+ B,
178
178
  "click",
179
179
  /*click_handler_2*/
180
- r[27]
180
+ r[28]
181
181
  )
182
- ], Z = !0);
182
+ ], K = !0);
183
183
  },
184
184
  p(t, d) {
185
185
  if (d[0] & /*$_*/
186
186
  2048 && b !== (b = /*$_*/
187
- t[11]("filterby") + "") && q(g, b), d[0] & /*$_*/
188
- 2048 && A !== (A = /*$_*/
189
- t[11]("providers") + "") && q(S, A), K === (K = Y(t)) && I ? I.p(t, d) : (I.d(1), I = K(t), I && (I.c(), I.m(y, null))), d[0] & /*isFilterActive*/
187
+ t[11]("filterby") + "") && G(u, b), d[0] & /*$_*/
188
+ 2048 && P !== (P = /*$_*/
189
+ t[11]("providers") + "") && G(S, P), Q === (Q = Y(t)) && I ? I.p(t, d) : (I.d(1), I = Q(t), I && (I.c(), I.m(y, null))), d[0] & /*isFilterActive*/
190
190
  16 && M !== (M = "TriangleInactive " + /*isFilterActive*/
191
191
  (t[4] ? "TriangleActive" : "")) && n(p, "class", M), d[0] & /*isFilterActive*/
192
- 16 && V !== (V = "FilterSelector " + /*isFilterActive*/
193
- (t[4] ? "FilterSelectorOpen" : "")) && n(l, "class", V), d[0] & /*filterbylogo, vendorArray, filterByVendors*/
192
+ 16 && W !== (W = "FilterSelector " + /*isFilterActive*/
193
+ (t[4] ? "FilterSelectorOpen" : "")) && n(l, "class", W), d[0] & /*filterbylogo, vendorArray, filterByVendors*/
194
194
  8228) {
195
- D = ae(
195
+ j = ae(
196
196
  /*vendorArray*/
197
197
  t[5]
198
198
  );
199
199
  let f;
200
- for (f = 0; f < D.length; f += 1) {
201
- const h = de(t, D, f);
200
+ for (f = 0; f < j.length; f += 1) {
201
+ const h = de(t, j, f);
202
202
  k[f] ? k[f].p(h, d) : (k[f] = fe(h), k[f].c(), k[f].m(N, null));
203
203
  }
204
204
  for (; f < k.length; f += 1)
205
205
  k[f].d(1);
206
- k.length = D.length;
206
+ k.length = j.length;
207
207
  }
208
208
  d[0] & /*$_*/
209
- 2048 && W !== (W = /*$_*/
210
- t[11]("clear") + "") && q(R, W), d[0] & /*fullSelection, selectedVendorArray, vendorArray*/
211
- 224 && H !== (H = /*fullSelection*/
209
+ 2048 && H !== (H = /*$_*/
210
+ t[11]("clear") + "") && G(U, H), d[0] & /*fullSelection, selectedVendorArray, vendorArray*/
211
+ 224 && J !== (J = /*fullSelection*/
212
212
  t[7] && /*selectedVendorArray*/
213
213
  t[6].length != /*vendorArray*/
214
- t[5].length) && (T.disabled = H), d[0] & /*isFilterActive*/
215
- 16 && J !== (J = "FilterDropdownContainer " + /*isFilterActive*/
216
- (t[4] ? "FilterOpen" : "")) && n(_, "class", J), d[0] & /*addfilterselector, addsortingselector*/
217
- 3 && U !== (U = "FilterContainer " + /*addfilterselector*/
214
+ t[5].length) && (B.disabled = J), d[0] & /*isFilterActive*/
215
+ 16 && q !== (q = "FilterDropdownContainer " + /*isFilterActive*/
216
+ (t[4] ? "FilterOpen" : "")) && n(_, "class", q), d[0] & /*addfilterselector, addsortingselector*/
217
+ 3 && Z !== (Z = "FilterContainer " + /*addfilterselector*/
218
218
  (t[0] == "true" && /*addsortingselector*/
219
- t[1] == "true" ? "FilerContainerSplit" : "")) && n(e, "class", U);
219
+ t[1] == "true" ? "FilerContainerSplit" : "")) && n(e, "class", Z);
220
220
  },
221
221
  d(t) {
222
- t && j(e), I.d(), Ce(k, t), Z = !1, ge(Q);
222
+ t && z(e), I.d(), Ce(k, t), K = !1, ue(X);
223
223
  }
224
224
  };
225
225
  }
226
- function Te(r) {
226
+ function Be(r) {
227
227
  let e, l = (
228
228
  /*$_*/
229
229
  r[11]("500") + ""
230
230
  );
231
231
  return {
232
232
  c() {
233
- e = u("p"), n(e, "class", "SearchLoading");
233
+ e = g("p"), n(e, "class", "SearchLoading");
234
234
  },
235
235
  m(i, a) {
236
- z(i, e, a), e.innerHTML = l;
236
+ V(i, e, a), e.innerHTML = l;
237
237
  },
238
238
  p(i, a) {
239
239
  a[0] & /*$_*/
@@ -241,32 +241,32 @@ function Te(r) {
241
241
  i[11]("500") + "") && (e.innerHTML = l);
242
242
  },
243
243
  d(i) {
244
- i && j(e);
244
+ i && z(e);
245
245
  }
246
246
  };
247
247
  }
248
- function Be(r) {
248
+ function Te(r) {
249
249
  let e, l;
250
250
  return {
251
251
  c() {
252
- e = u("span"), l = B(
252
+ e = g("span"), l = T(
253
253
  /*selectionNumber*/
254
254
  r[8]
255
255
  ), n(e, "class", "FilterCounter");
256
256
  },
257
257
  m(i, a) {
258
- z(i, e, a), o(e, l);
258
+ V(i, e, a), o(e, l);
259
259
  },
260
260
  p(i, a) {
261
261
  a[0] & /*selectionNumber*/
262
- 256 && q(
262
+ 256 && G(
263
263
  l,
264
264
  /*selectionNumber*/
265
265
  i[8]
266
266
  );
267
267
  },
268
268
  d(i) {
269
- i && j(e);
269
+ i && z(e);
270
270
  }
271
271
  };
272
272
  }
@@ -277,18 +277,18 @@ function Me(r) {
277
277
  ), i;
278
278
  return {
279
279
  c() {
280
- e = u("span"), i = B(l), n(e, "class", "FilterCounter");
280
+ e = g("span"), i = T(l), n(e, "class", "FilterCounter");
281
281
  },
282
282
  m(a, s) {
283
- z(a, e, s), o(e, i);
283
+ V(a, e, s), o(e, i);
284
284
  },
285
285
  p(a, s) {
286
286
  s[0] & /*$_*/
287
287
  2048 && l !== (l = /*$_*/
288
- a[11]("all") + "") && q(i, l);
288
+ a[11]("all") + "") && G(i, l);
289
289
  },
290
290
  d(a) {
291
- a && j(e);
291
+ a && z(e);
292
292
  }
293
293
  };
294
294
  }
@@ -296,11 +296,11 @@ function Ne(r) {
296
296
  let e, l;
297
297
  return {
298
298
  c() {
299
- e = u("img"), oe(e.src, l = /*vendor*/
299
+ e = g("img"), oe(e.src, l = /*vendor*/
300
300
  r[37].logo) || n(e, "src", l), n(e, "alt", "vendor logo");
301
301
  },
302
302
  m(i, a) {
303
- z(i, e, a);
303
+ V(i, e, a);
304
304
  },
305
305
  p(i, a) {
306
306
  a[0] & /*vendorArray*/
@@ -308,7 +308,7 @@ function Ne(r) {
308
308
  i[37].logo) && n(e, "src", l);
309
309
  },
310
310
  d(i) {
311
- i && j(e);
311
+ i && z(e);
312
312
  }
313
313
  };
314
314
  }
@@ -319,30 +319,30 @@ function De(r) {
319
319
  ), a, s, m, v, w = (
320
320
  /*vendor*/
321
321
  r[37].games.total + ""
322
- ), b, g;
322
+ ), b, u;
323
323
  return {
324
324
  c() {
325
- e = u("div"), l = u("span"), a = B(i), s = O(), m = u("span"), v = B("("), b = B(w), g = B(")"), n(l, "class", "VendorName"), n(e, "class", "FilterItemLabel");
325
+ e = g("div"), l = g("span"), a = T(i), s = O(), m = g("span"), v = T("("), b = T(w), u = T(")"), n(l, "class", "VendorName"), n(e, "class", "FilterItemLabel");
326
326
  },
327
327
  m(C, y) {
328
- z(C, e, y), o(e, l), o(l, a), o(e, s), o(e, m), o(m, v), o(m, b), o(m, g);
328
+ V(C, e, y), o(e, l), o(l, a), o(e, s), o(e, m), o(m, v), o(m, b), o(m, u);
329
329
  },
330
330
  p(C, y) {
331
331
  y[0] & /*vendorArray*/
332
332
  32 && i !== (i = /*vendor*/
333
- C[37].name + "") && q(a, i), y[0] & /*vendorArray*/
333
+ C[37].name + "") && G(a, i), y[0] & /*vendorArray*/
334
334
  32 && w !== (w = /*vendor*/
335
- C[37].games.total + "") && q(b, w);
335
+ C[37].games.total + "") && G(b, w);
336
336
  },
337
337
  d(C) {
338
- C && j(e);
338
+ C && z(e);
339
339
  }
340
340
  };
341
341
  }
342
342
  function fe(r) {
343
- let e, l, i, a, s, m, v, w, b, g, C, y;
343
+ let e, l, i, a, s, m, v, w, b, u, C, y;
344
344
  function E() {
345
- r[25].call(
345
+ r[26].call(
346
346
  i,
347
347
  /*each_value*/
348
348
  r[38],
@@ -350,10 +350,10 @@ function fe(r) {
350
350
  r[39]
351
351
  );
352
352
  }
353
- function A() {
353
+ function P() {
354
354
  return (
355
355
  /*click_handler_1*/
356
- r[26](
356
+ r[27](
357
357
  /*vendor*/
358
358
  r[37]
359
359
  )
@@ -374,16 +374,16 @@ function fe(r) {
374
374
  let x = S(r), F = x && x(r);
375
375
  return {
376
376
  c() {
377
- e = u("li"), l = u("label"), i = u("input"), s = O(), m = u("span"), v = O(), F && F.c(), w = O(), n(i, "type", "checkbox"), n(i, "name", "checkbox"), i.__value = a = /*vendor*/
377
+ e = g("li"), l = g("label"), i = g("input"), s = O(), m = g("span"), v = O(), F && F.c(), w = O(), n(i, "type", "checkbox"), n(i, "name", "checkbox"), i.__value = a = /*vendor*/
378
378
  r[37].name, ne(i, i.__value), n(m, "class", "FiltersCheckmark"), n(l, "class", "FilterLabel"), n(e, "class", b = "FilterItem " + /*filterbylogo*/
379
- (r[2] === "true" ? "FilterItemWithLogos" : "")), e.value = g = /*vendor*/
379
+ (r[2] === "true" ? "FilterItemWithLogos" : "")), e.value = u = /*vendor*/
380
380
  r[37].name;
381
381
  },
382
382
  m(p, c) {
383
- z(p, e, c), o(e, l), o(l, i), i.checked = /*vendor*/
383
+ V(p, e, c), o(e, l), o(l, i), i.checked = /*vendor*/
384
384
  r[37].isFilterSelected, o(l, s), o(l, m), o(l, v), F && F.m(l, null), o(e, w), C || (y = [
385
385
  te(i, "change", E),
386
- te(i, "click", A)
386
+ te(i, "click", P)
387
387
  ], C = !0);
388
388
  },
389
389
  p(p, c) {
@@ -394,11 +394,11 @@ function fe(r) {
394
394
  r[37].isFilterSelected), x === (x = S(r)) && F ? F.p(r, c) : (F && F.d(1), F = x && x(r), F && (F.c(), F.m(l, null))), c[0] & /*filterbylogo*/
395
395
  4 && b !== (b = "FilterItem " + /*filterbylogo*/
396
396
  (r[2] === "true" ? "FilterItemWithLogos" : "")) && n(e, "class", b), c[0] & /*vendorArray*/
397
- 32 && g !== (g = /*vendor*/
398
- r[37].name) && (e.value = g);
397
+ 32 && u !== (u = /*vendor*/
398
+ r[37].name) && (e.value = u);
399
399
  },
400
400
  d(p) {
401
- p && j(e), F && F.d(), C = !1, ge(y);
401
+ p && z(e), F && F.d(), C = !1, ue(y);
402
402
  }
403
403
  };
404
404
  }
@@ -409,7 +409,7 @@ function je(r) {
409
409
  /*hasErrors*/
410
410
  s[10]
411
411
  )
412
- return Te;
412
+ return Be;
413
413
  if (!/*isLoading*/
414
414
  s[9])
415
415
  return Ee;
@@ -417,10 +417,10 @@ function je(r) {
417
417
  let i = l(r), a = i && i(r);
418
418
  return {
419
419
  c() {
420
- e = u("div"), a && a.c();
420
+ e = g("div"), a && a.c();
421
421
  },
422
422
  m(s, m) {
423
- z(s, e, m), a && a.m(e, null), r[28](e);
423
+ V(s, e, m), a && a.m(e, null), r[29](e);
424
424
  },
425
425
  p(s, m) {
426
426
  i === (i = l(s)) && a ? a.p(s, m) : (a && a.d(1), a = i && i(s), a && (a.c(), a.m(e, null)));
@@ -428,16 +428,16 @@ function je(r) {
428
428
  i: ie,
429
429
  o: ie,
430
430
  d(s) {
431
- s && j(e), a && a.d(), r[28](null);
431
+ s && z(e), a && a.d(), r[29](null);
432
432
  }
433
433
  };
434
434
  }
435
435
  function ze(r, e, l) {
436
436
  let i;
437
437
  ve(r, Pe, (t) => l(11, i = t));
438
- let { endpoint: a = "" } = e, { datasource: s = "" } = e, { lang: m = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: g = "" } = e, { addfilterselector: C = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: E = "false" } = e, { mbsource: A } = e, { usesinglevendorfilter: S = "false" } = e, x = !1, F = window.navigator.userAgent, p = [], c = [], P = {}, M = !1, V = 0, G = !0, _, N = !1, X;
438
+ let { endpoint: a = "" } = e, { datasource: s = "" } = e, { lang: m = "" } = e, { translationurl: v = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: b = "" } = e, { categoryid: u = "" } = e, { addfilterselector: C = "false" } = e, { addsortingselector: y = "false" } = e, { filterbylogo: E = "false" } = e, { mbsource: P } = e, { usesinglevendorfilter: S = "false" } = e, x = !1, F = window.navigator.userAgent, p = [], c = [], A = {}, M = !1, W = 0, R = !0, _, N = !1, D;
439
439
  Ae({ withLocale: "en", translations: {} });
440
- const T = () => {
440
+ const B = () => {
441
441
  fetch(v).then((d) => d.json()).then((d) => {
442
442
  Object.keys(d).forEach((f) => {
443
443
  se(f, d[f]);
@@ -448,65 +448,65 @@ function ze(r, e, l) {
448
448
  };
449
449
  Object.keys(ce).forEach((t) => {
450
450
  se(t, ce[t]);
451
- }), P[g] && (P = { [g]: [] });
452
- const W = () => {
451
+ }), A[u] && (A = { [u]: [] });
452
+ const H = () => {
453
453
  l(4, x = !x), window.postMessage({ type: "FilterOpened" }, window.location.href);
454
- }, R = (t) => (l(9, G = !0), new Promise((d, f) => {
454
+ }, U = (t) => (l(9, R = !0), new Promise((d, f) => {
455
455
  fetch(t).then((h) => h.json()).then((h) => {
456
456
  h = h.items, d(h.items), l(6, c = []);
457
457
  let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
458
- const ue = S === "true" ? "*" : g;
458
+ const ge = S === "true" ? "*" : u;
459
459
  h.forEach(($) => {
460
- le || (le = { currentCategoryId: [] }), le[ue]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, c.push($)) : $.isFilterSelected = !1;
461
- }), l(5, p = h), J();
460
+ le || (le = { currentCategoryId: [] }), le[ge]?.indexOf($.id) >= 0 ? ($.isFilterSelected = !0, c.push($)) : $.isFilterSelected = !1;
461
+ }), l(5, p = h), q();
462
462
  }).catch((h) => {
463
463
  console.error(h), l(10, N = !0), f(h);
464
464
  }).finally(() => {
465
- l(9, G = !1);
465
+ l(9, R = !1);
466
466
  });
467
- })), H = (t) => {
467
+ })), J = (t) => {
468
468
  let d = localStorage.getItem("vendorFiltersByCategory");
469
469
  t.isFilterSelected = !t.isFilterSelected, !c.length || c.filter((h) => h.name === t.name).length == 0 ? c.push(t) : l(6, c = c.filter((h) => h.name !== t.name));
470
- const f = S === "true" ? "*" : g;
471
- d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(P = {
470
+ const f = S === "true" ? "*" : u;
471
+ d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(A = {
472
472
  [f]: c.map((h) => h.id)
473
- })) : (d = JSON.parse(d), d[f] = c.map((h) => h.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), J();
474
- }, J = () => {
475
- l(7, M = c.length === p.length || c.length == 0), l(8, V = c.length);
476
- }, U = () => {
473
+ })) : (d = JSON.parse(d), d[f] = c.map((h) => h.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), q();
474
+ }, q = () => {
475
+ l(7, M = c.length === p.length || c.length == 0), l(8, W = c.length);
476
+ }, Z = () => {
477
477
  if (p.length && S === "true")
478
478
  return;
479
479
  const t = new URL(`${a}/v1/casino/vendors`);
480
- l(4, x = !1), t.searchParams.append("fields", "id,name,logo,subVendors,games"), t.searchParams.append("language", m), t.searchParams.append("datasource", s), t.searchParams.append("platform", _e(F)), S === "true" || ((g.match(/\$/g) || []).length > 1 ? (t.searchParams.append("filter", `games(subGroups=${g})`), t.searchParams.append("subVendors", `games(subGroups=${g})`)) : t.searchParams.append("filter", `games(groups=${g})`)), R(t);
481
- }, Z = () => {
482
- l(6, c = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(P = {
483
- [S === "true" ? "*" : g]: c.map((t) => t.id)
480
+ l(4, x = !1), t.searchParams.append("fields", "id,name,logo,subVendors,games"), t.searchParams.append("language", m), t.searchParams.append("datasource", s), t.searchParams.append("platform", _e(F)), S === "true" || ((u.match(/\$/g) || []).length > 1 ? (t.searchParams.append("filter", `games(subGroups=${u})`), t.searchParams.append("subVendors", `games(subGroups=${u})`)) : t.searchParams.append("filter", `games(groups=${u})`)), U(t);
481
+ }, K = () => {
482
+ l(6, c = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(A = {
483
+ [S === "true" ? "*" : u]: c.map((t) => t.id)
484
484
  })), p.forEach((t) => t.isFilterSelected = !1), l(5, p), window.postMessage({ type: "ApplyFilters" }, window.location.href), l(7, M = !0), l(4, x = !1);
485
- }, Q = (t) => {
485
+ }, X = (t) => {
486
486
  t.data.type == "SortingOpened" && l(4, x = !1);
487
487
  };
488
- we(() => (window.addEventListener("message", Q, !1), () => {
489
- window.removeEventListener("message", Q);
488
+ we(() => (window.addEventListener("message", X, !1), () => {
489
+ window.emMessageBus != null && D && D.unsubscribe(), window.removeEventListener("message", X);
490
490
  }));
491
- const Y = () => W();
492
- function K(t, d) {
491
+ const Y = () => H();
492
+ function Q(t, d) {
493
493
  t[d].isFilterSelected = this.checked, l(5, p);
494
494
  }
495
- const I = (t) => H(t), D = () => Z();
495
+ const I = (t) => J(t), j = () => K();
496
496
  function k(t) {
497
497
  ke[t ? "unshift" : "push"](() => {
498
498
  _ = t, l(3, _);
499
499
  });
500
500
  }
501
501
  return r.$$set = (t) => {
502
- "endpoint" in t && l(15, a = t.endpoint), "datasource" in t && l(16, s = t.datasource), "lang" in t && l(17, m = t.lang), "translationurl" in t && l(18, v = t.translationurl), "clientstyling" in t && l(19, w = t.clientstyling), "clientstylingurl" in t && l(20, b = t.clientstylingurl), "categoryid" in t && l(21, g = t.categoryid), "addfilterselector" in t && l(0, C = t.addfilterselector), "addsortingselector" in t && l(1, y = t.addsortingselector), "filterbylogo" in t && l(2, E = t.filterbylogo), "mbsource" in t && l(22, A = t.mbsource), "usesinglevendorfilter" in t && l(23, S = t.usesinglevendorfilter);
502
+ "endpoint" in t && l(15, a = t.endpoint), "datasource" in t && l(16, s = t.datasource), "lang" in t && l(17, m = t.lang), "translationurl" in t && l(18, v = t.translationurl), "clientstyling" in t && l(19, w = t.clientstyling), "clientstylingurl" in t && l(20, b = t.clientstylingurl), "categoryid" in t && l(21, u = t.categoryid), "addfilterselector" in t && l(0, C = t.addfilterselector), "addsortingselector" in t && l(1, y = t.addsortingselector), "filterbylogo" in t && l(2, E = t.filterbylogo), "mbsource" in t && l(22, P = t.mbsource), "usesinglevendorfilter" in t && l(23, S = t.usesinglevendorfilter);
503
503
  }, r.$$.update = () => {
504
504
  r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
505
- 2195460 && a && s && g && E && U(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
505
+ 2195460 && a && s && u && E && Z(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
506
506
  524296 && w && _ && xe(_, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
507
- 1048584 && b && _ && Se(_, b), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
508
- 4194312 && _ && Ie(_, `${A}.Style`, X), r.$$.dirty[0] & /*translationurl*/
509
- 262144 && v && T();
507
+ 1048584 && b && _ && Se(_, b), r.$$.dirty[0] & /*mbsource, customStylingContainer, styleSubscription*/
508
+ 20971528 && P && _ && l(24, D = Ie(_, `${P}.Style`, D, !0)), r.$$.dirty[0] & /*translationurl*/
509
+ 262144 && v && B();
510
510
  }, [
511
511
  C,
512
512
  y,
@@ -516,26 +516,27 @@ function ze(r, e, l) {
516
516
  p,
517
517
  c,
518
518
  M,
519
- V,
520
- G,
519
+ W,
520
+ R,
521
521
  N,
522
522
  i,
523
- W,
524
523
  H,
525
- Z,
524
+ J,
525
+ K,
526
526
  a,
527
527
  s,
528
528
  m,
529
529
  v,
530
530
  w,
531
531
  b,
532
- g,
533
- A,
532
+ u,
533
+ P,
534
534
  S,
535
+ D,
535
536
  Y,
536
- K,
537
+ Q,
537
538
  I,
538
- D,
539
+ j,
539
540
  k
540
541
  ];
541
542
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoLastPlayedSection-DrrWbeZS.cjs");function ee({withLocale:i,translations:t}){e.$locale.subscribe(r=>{r==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function G(i,t){e.addMessages(i,t)}const K={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 te(i){e.append_styles(i,"svelte-14m0j7n",':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:17}.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, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.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 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, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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 Q(i,t,r){const a=i.slice();return a[37]=t[r],a[38]=t,a[39]=r,a}function le(i){let t,r,a,n,o,f,b,y,h=i[11]("filterby")+"",p,w,F,I,L=i[11]("providers")+"",k,x,m,u,s,S,A,E,j,v,O,J,P,B=i[11]("clear")+"",D,M,N,z,V,H;function q(l,c){return l[7]?ae:ie}let W=q(i),C=W(i),T=e.ensure_array_like(i[5]),_=[];for(let l=0;l<T.length;l+=1)_[l]=X(Q(i,T,l));return{c(){t=e.element("div"),r=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("path"),f=e.space(),b=e.element("div"),y=e.element("span"),p=e.text(h),w=e.space(),F=e.element("div"),I=e.element("span"),k=e.text(L),x=e.space(),C.c(),m=e.space(),u=e.element("span"),s=e.svg_element("svg"),S=e.svg_element("path"),j=e.space(),v=e.element("div"),O=e.element("ul");for(let l=0;l<_.length;l+=1)_[l].c();J=e.space(),P=e.element("button"),D=e.text(B),e.attr(o,"id","noun_filter_736223"),e.attr(o,"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(o,"transform","translate(-5 -6.2)"),e.attr(o,"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(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(S,"id","arrow"),e.attr(S,"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(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(s,"xmlns","http://www.w3.org/2000/svg"),e.attr(s,"width","14"),e.attr(s,"height","6.835"),e.attr(s,"viewBox","0 0 14 6.835"),e.attr(u,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(r,"class",E="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(P,"class","ClearFilters"),P.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(v,"class",N="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",z="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(l,c){e.insert(l,t,c),e.append(t,r),e.append(r,a),e.append(a,n),e.append(n,o),e.append(a,f),e.append(a,b),e.append(b,y),e.append(y,p),e.append(b,w),e.append(b,F),e.append(F,I),e.append(I,k),e.append(F,x),C.m(F,null),e.append(r,m),e.append(r,u),e.append(u,s),e.append(s,S),e.append(t,j),e.append(t,v),e.append(v,O);for(let d=0;d<_.length;d+=1)_[d]&&_[d].m(O,null);e.append(v,J),e.append(v,P),e.append(P,D),V||(H=[e.listen(r,"click",i[24]),e.listen(P,"click",i[27])],V=!0)},p(l,c){if(c[0]&2048&&h!==(h=l[11]("filterby")+"")&&e.set_data(p,h),c[0]&2048&&L!==(L=l[11]("providers")+"")&&e.set_data(k,L),W===(W=q(l))&&C?C.p(l,c):(C.d(1),C=W(l),C&&(C.c(),C.m(F,null))),c[0]&16&&A!==(A="TriangleInactive "+(l[4]?"TriangleActive":""))&&e.attr(u,"class",A),c[0]&16&&E!==(E="FilterSelector "+(l[4]?"FilterSelectorOpen":""))&&e.attr(r,"class",E),c[0]&8228){T=e.ensure_array_like(l[5]);let d;for(d=0;d<T.length;d+=1){const g=Q(l,T,d);_[d]?_[d].p(g,c):(_[d]=X(g),_[d].c(),_[d].m(O,null))}for(;d<_.length;d+=1)_[d].d(1);_.length=T.length}c[0]&2048&&B!==(B=l[11]("clear")+"")&&e.set_data(D,B),c[0]&224&&M!==(M=l[7]&&l[6].length!=l[5].length)&&(P.disabled=M),c[0]&16&&N!==(N="FilterDropdownContainer "+(l[4]?"FilterOpen":""))&&e.attr(v,"class",N),c[0]&3&&z!==(z="FilterContainer "+(l[0]=="true"&&l[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",z)},d(l){l&&e.detach(t),C.d(),e.destroy_each(_,l),V=!1,e.run_all(H)}}}function re(i){let t,r=i[11]("500")+"";return{c(){t=e.element("p"),e.attr(t,"class","SearchLoading")},m(a,n){e.insert(a,t,n),t.innerHTML=r},p(a,n){n[0]&2048&&r!==(r=a[11]("500")+"")&&(t.innerHTML=r)},d(a){a&&e.detach(t)}}}function ie(i){let t,r;return{c(){t=e.element("span"),r=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,r)},p(a,n){n[0]&256&&e.set_data(r,a[8])},d(a){a&&e.detach(t)}}}function ae(i){let t,r=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(r),e.attr(t,"class","FilterCounter")},m(n,o){e.insert(n,t,o),e.append(t,a)},p(n,o){o[0]&2048&&r!==(r=n[11]("all")+"")&&e.set_data(a,r)},d(n){n&&e.detach(t)}}}function ne(i){let t,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,r=i[37].logo)||e.attr(t,"src",r),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,r=a[37].logo)&&e.attr(t,"src",r)},d(a){a&&e.detach(t)}}}function oe(i){let t,r,a=i[37].name+"",n,o,f,b,y=i[37].games.total+"",h,p;return{c(){t=e.element("div"),r=e.element("span"),n=e.text(a),o=e.space(),f=e.element("span"),b=e.text("("),h=e.text(y),p=e.text(")"),e.attr(r,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(w,F){e.insert(w,t,F),e.append(t,r),e.append(r,n),e.append(t,o),e.append(t,f),e.append(f,b),e.append(f,h),e.append(f,p)},p(w,F){F[0]&32&&a!==(a=w[37].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=w[37].games.total+"")&&e.set_data(h,y)},d(w){w&&e.detach(t)}}}function X(i){let t,r,a,n,o,f,b,y,h,p,w,F;function I(){i[25].call(a,i[38],i[39])}function L(){return i[26](i[37])}function k(u,s){if(u[2]==="false")return oe;if(u[2]==="true")return ne}let x=k(i),m=x&&x(i);return{c(){t=e.element("li"),r=e.element("label"),a=e.element("input"),o=e.space(),f=e.element("span"),b=e.space(),m&&m.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[37].name,e.set_input_value(a,a.__value),e.attr(f,"class","FiltersCheckmark"),e.attr(r,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=p=i[37].name},m(u,s){e.insert(u,t,s),e.append(t,r),e.append(r,a),a.checked=i[37].isFilterSelected,e.append(r,o),e.append(r,f),e.append(r,b),m&&m.m(r,null),e.append(t,y),w||(F=[e.listen(a,"change",I),e.listen(a,"click",L)],w=!0)},p(u,s){i=u,s[0]&32&&n!==(n=i[37].name)&&(a.__value=n,e.set_input_value(a,a.__value)),s[0]&32&&(a.checked=i[37].isFilterSelected),x===(x=k(i))&&m?m.p(i,s):(m&&m.d(1),m=x&&x(i),m&&(m.c(),m.m(r,null))),s[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),s[0]&32&&p!==(p=i[37].name)&&(t.value=p)},d(u){u&&e.detach(t),m&&m.d(),w=!1,e.run_all(F)}}}function se(i){let t;function r(o,f){if(o[10])return re;if(!o[9])return le}let a=r(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(o,f){e.insert(o,t,f),n&&n.m(t,null),i[28](t)},p(o,f){a===(a=r(o))&&n?n.p(o,f):(n&&n.d(1),n=a&&a(o),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),i[28](null)}}}function ce(i,t,r){let a;e.component_subscribe(i,e.$format,l=>r(11,a=l));let{endpoint:n=""}=t,{datasource:o=""}=t,{lang:f=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:p=""}=t,{addfilterselector:w="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:I="false"}=t,{mbsource:L}=t,{usesinglevendorfilter:k="false"}=t,x=!1,m=window.navigator.userAgent,u=[],s=[],S={},A=!1,E=0,j=!0,v,O=!1,J;ee({withLocale:"en",translations:{}});const P=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(d=>{G(d,c[d])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(l=>{G(l,K[l])}),S[p]&&(S={[p]:[]});const B=()=>{r(4,x=!x),window.postMessage({type:"FilterOpened"},window.location.href)},D=l=>(r(9,j=!0),new Promise((c,d)=>{fetch(l).then(g=>g.json()).then(g=>{g=g.items,c(g.items),r(6,s=[]);let U=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));const $=k==="true"?"*":p;g.forEach(R=>{var Z;U||(U={currentCategoryId:[]}),((Z=U[$])==null?void 0:Z.indexOf(R.id))>=0?(R.isFilterSelected=!0,s.push(R)):R.isFilterSelected=!1}),r(5,u=g),N()}).catch(g=>{console.error(g),r(10,O=!0),d(g)}).finally(()=>{r(9,j=!1)})})),M=l=>{let c=localStorage.getItem("vendorFiltersByCategory");l.isFilterSelected=!l.isFilterSelected,!s.length||s.filter(g=>g.name===l.name).length==0?s.push(l):r(6,s=s.filter(g=>g.name!==l.name));const d=k==="true"?"*":p;c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(S={[d]:s.map(g=>g.id)})):(c=JSON.parse(c),c[d]=s.map(g=>g.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),N()},N=()=>{r(7,A=s.length===u.length||s.length==0),r(8,E=s.length)},z=()=>{if(u.length&&k==="true")return;const l=new URL(`${n}/v1/casino/vendors`);r(4,x=!1),l.searchParams.append("fields","id,name,logo,subVendors,games"),l.searchParams.append("language",f),l.searchParams.append("datasource",o),l.searchParams.append("platform",e.getDevice(m)),k==="true"||((p.match(/\$/g)||[]).length>1?(l.searchParams.append("filter",`games(subGroups=${p})`),l.searchParams.append("subVendors",`games(subGroups=${p})`)):l.searchParams.append("filter",`games(groups=${p})`)),D(l)},V=()=>{r(6,s=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(S={[k==="true"?"*":p]:s.map(l=>l.id)})),u.forEach(l=>l.isFilterSelected=!1),r(5,u),window.postMessage({type:"ApplyFilters"},window.location.href),r(7,A=!0),r(4,x=!1)},H=l=>{l.data.type=="SortingOpened"&&r(4,x=!1)};e.onMount(()=>(window.addEventListener("message",H,!1),()=>{window.removeEventListener("message",H)}));const q=()=>B();function W(l,c){l[c].isFilterSelected=this.checked,r(5,u)}const C=l=>M(l),T=()=>V();function _(l){e.binding_callbacks[l?"unshift":"push"](()=>{v=l,r(3,v)})}return i.$$set=l=>{"endpoint"in l&&r(15,n=l.endpoint),"datasource"in l&&r(16,o=l.datasource),"lang"in l&&r(17,f=l.lang),"translationurl"in l&&r(18,b=l.translationurl),"clientstyling"in l&&r(19,y=l.clientstyling),"clientstylingurl"in l&&r(20,h=l.clientstylingurl),"categoryid"in l&&r(21,p=l.categoryid),"addfilterselector"in l&&r(0,w=l.addfilterselector),"addsortingselector"in l&&r(1,F=l.addsortingselector),"filterbylogo"in l&&r(2,I=l.filterbylogo),"mbsource"in l&&r(22,L=l.mbsource),"usesinglevendorfilter"in l&&r(23,k=l.usesinglevendorfilter)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&o&&p&&I&&z(),i.$$.dirty[0]&524296&&y&&v&&e.setClientStyling(v,y),i.$$.dirty[0]&1048584&&h&&v&&e.setClientStylingURL(v,h),i.$$.dirty[0]&4194312&&v&&e.setStreamStyling(v,`${L}.Style`,J),i.$$.dirty[0]&262144&&b&&P()},[w,F,I,v,x,u,s,A,E,j,O,a,B,M,V,n,o,f,b,y,h,p,L,k,q,W,C,T,_]}class Y extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ce,se,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,usesinglevendorfilter:23},te,[-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()}get usesinglevendorfilter(){return this.$$.ctx[23]}set usesinglevendorfilter(t){this.$$set({usesinglevendorfilter:t}),e.flush()}}e.create_custom_element(Y,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{},usesinglevendorfilter:{}},[],[],!0);exports.default=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoLastPlayedSection-BBp356hi.cjs");function ee({withLocale:i,translations:t}){e.$locale.subscribe(r=>{r==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function G(i,t){e.addMessages(i,t)}const K={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 te(i){e.append_styles(i,"svelte-14m0j7n",':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:17}.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, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.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 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, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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 Q(i,t,r){const a=i.slice();return a[37]=t[r],a[38]=t,a[39]=r,a}function le(i){let t,r,a,n,s,f,b,y,h=i[11]("filterby")+"",p,w,F,I,S=i[11]("providers")+"",k,x,m,u,o,L,A,B,D,v,O,T,P,M=i[11]("clear")+"",z,N,j,V,W,J;function q(l,c){return l[7]?ae:ie}let H=q(i),C=H(i),E=e.ensure_array_like(i[5]),_=[];for(let l=0;l<E.length;l+=1)_[l]=X(Q(i,E,l));return{c(){t=e.element("div"),r=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),f=e.space(),b=e.element("div"),y=e.element("span"),p=e.text(h),w=e.space(),F=e.element("div"),I=e.element("span"),k=e.text(S),x=e.space(),C.c(),m=e.space(),u=e.element("span"),o=e.svg_element("svg"),L=e.svg_element("path"),D=e.space(),v=e.element("div"),O=e.element("ul");for(let l=0;l<_.length;l+=1)_[l].c();T=e.space(),P=e.element("button"),z=e.text(M),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(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(L,"id","arrow"),e.attr(L,"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(L,"transform","translate(-274.511 -441.088)"),e.attr(L,"fill","#d1d1d1"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","14"),e.attr(o,"height","6.835"),e.attr(o,"viewBox","0 0 14 6.835"),e.attr(u,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(r,"class",B="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(P,"class","ClearFilters"),P.disabled=N=i[7]&&i[6].length!=i[5].length,e.attr(v,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",V="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(l,c){e.insert(l,t,c),e.append(t,r),e.append(r,a),e.append(a,n),e.append(n,s),e.append(a,f),e.append(a,b),e.append(b,y),e.append(y,p),e.append(b,w),e.append(b,F),e.append(F,I),e.append(I,k),e.append(F,x),C.m(F,null),e.append(r,m),e.append(r,u),e.append(u,o),e.append(o,L),e.append(t,D),e.append(t,v),e.append(v,O);for(let d=0;d<_.length;d+=1)_[d]&&_[d].m(O,null);e.append(v,T),e.append(v,P),e.append(P,z),W||(J=[e.listen(r,"click",i[25]),e.listen(P,"click",i[28])],W=!0)},p(l,c){if(c[0]&2048&&h!==(h=l[11]("filterby")+"")&&e.set_data(p,h),c[0]&2048&&S!==(S=l[11]("providers")+"")&&e.set_data(k,S),H===(H=q(l))&&C?C.p(l,c):(C.d(1),C=H(l),C&&(C.c(),C.m(F,null))),c[0]&16&&A!==(A="TriangleInactive "+(l[4]?"TriangleActive":""))&&e.attr(u,"class",A),c[0]&16&&B!==(B="FilterSelector "+(l[4]?"FilterSelectorOpen":""))&&e.attr(r,"class",B),c[0]&8228){E=e.ensure_array_like(l[5]);let d;for(d=0;d<E.length;d+=1){const g=Q(l,E,d);_[d]?_[d].p(g,c):(_[d]=X(g),_[d].c(),_[d].m(O,null))}for(;d<_.length;d+=1)_[d].d(1);_.length=E.length}c[0]&2048&&M!==(M=l[11]("clear")+"")&&e.set_data(z,M),c[0]&224&&N!==(N=l[7]&&l[6].length!=l[5].length)&&(P.disabled=N),c[0]&16&&j!==(j="FilterDropdownContainer "+(l[4]?"FilterOpen":""))&&e.attr(v,"class",j),c[0]&3&&V!==(V="FilterContainer "+(l[0]=="true"&&l[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",V)},d(l){l&&e.detach(t),C.d(),e.destroy_each(_,l),W=!1,e.run_all(J)}}}function re(i){let t,r=i[11]("500")+"";return{c(){t=e.element("p"),e.attr(t,"class","SearchLoading")},m(a,n){e.insert(a,t,n),t.innerHTML=r},p(a,n){n[0]&2048&&r!==(r=a[11]("500")+"")&&(t.innerHTML=r)},d(a){a&&e.detach(t)}}}function ie(i){let t,r;return{c(){t=e.element("span"),r=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,r)},p(a,n){n[0]&256&&e.set_data(r,a[8])},d(a){a&&e.detach(t)}}}function ae(i){let t,r=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(r),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&r!==(r=n[11]("all")+"")&&e.set_data(a,r)},d(n){n&&e.detach(t)}}}function ne(i){let t,r;return{c(){t=e.element("img"),e.src_url_equal(t.src,r=i[37].logo)||e.attr(t,"src",r),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,r=a[37].logo)&&e.attr(t,"src",r)},d(a){a&&e.detach(t)}}}function se(i){let t,r,a=i[37].name+"",n,s,f,b,y=i[37].games.total+"",h,p;return{c(){t=e.element("div"),r=e.element("span"),n=e.text(a),s=e.space(),f=e.element("span"),b=e.text("("),h=e.text(y),p=e.text(")"),e.attr(r,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(w,F){e.insert(w,t,F),e.append(t,r),e.append(r,n),e.append(t,s),e.append(t,f),e.append(f,b),e.append(f,h),e.append(f,p)},p(w,F){F[0]&32&&a!==(a=w[37].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=w[37].games.total+"")&&e.set_data(h,y)},d(w){w&&e.detach(t)}}}function X(i){let t,r,a,n,s,f,b,y,h,p,w,F;function I(){i[26].call(a,i[38],i[39])}function S(){return i[27](i[37])}function k(u,o){if(u[2]==="false")return se;if(u[2]==="true")return ne}let x=k(i),m=x&&x(i);return{c(){t=e.element("li"),r=e.element("label"),a=e.element("input"),s=e.space(),f=e.element("span"),b=e.space(),m&&m.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[37].name,e.set_input_value(a,a.__value),e.attr(f,"class","FiltersCheckmark"),e.attr(r,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=p=i[37].name},m(u,o){e.insert(u,t,o),e.append(t,r),e.append(r,a),a.checked=i[37].isFilterSelected,e.append(r,s),e.append(r,f),e.append(r,b),m&&m.m(r,null),e.append(t,y),w||(F=[e.listen(a,"change",I),e.listen(a,"click",S)],w=!0)},p(u,o){i=u,o[0]&32&&n!==(n=i[37].name)&&(a.__value=n,e.set_input_value(a,a.__value)),o[0]&32&&(a.checked=i[37].isFilterSelected),x===(x=k(i))&&m?m.p(i,o):(m&&m.d(1),m=x&&x(i),m&&(m.c(),m.m(r,null))),o[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),o[0]&32&&p!==(p=i[37].name)&&(t.value=p)},d(u){u&&e.detach(t),m&&m.d(),w=!1,e.run_all(F)}}}function oe(i){let t;function r(s,f){if(s[10])return re;if(!s[9])return le}let a=r(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,f){e.insert(s,t,f),n&&n.m(t,null),i[29](t)},p(s,f){a===(a=r(s))&&n?n.p(s,f):(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(),i[29](null)}}}function ce(i,t,r){let a;e.component_subscribe(i,e.$format,l=>r(11,a=l));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:f=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:p=""}=t,{addfilterselector:w="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:I="false"}=t,{mbsource:S}=t,{usesinglevendorfilter:k="false"}=t,x=!1,m=window.navigator.userAgent,u=[],o=[],L={},A=!1,B=0,D=!0,v,O=!1,T;ee({withLocale:"en",translations:{}});const P=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(d=>{G(d,c[d])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(l=>{G(l,K[l])}),L[p]&&(L={[p]:[]});const M=()=>{r(4,x=!x),window.postMessage({type:"FilterOpened"},window.location.href)},z=l=>(r(9,D=!0),new Promise((c,d)=>{fetch(l).then(g=>g.json()).then(g=>{g=g.items,c(g.items),r(6,o=[]);let U=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));const $=k==="true"?"*":p;g.forEach(R=>{var Z;U||(U={currentCategoryId:[]}),((Z=U[$])==null?void 0:Z.indexOf(R.id))>=0?(R.isFilterSelected=!0,o.push(R)):R.isFilterSelected=!1}),r(5,u=g),j()}).catch(g=>{console.error(g),r(10,O=!0),d(g)}).finally(()=>{r(9,D=!1)})})),N=l=>{let c=localStorage.getItem("vendorFiltersByCategory");l.isFilterSelected=!l.isFilterSelected,!o.length||o.filter(g=>g.name===l.name).length==0?o.push(l):r(6,o=o.filter(g=>g.name!==l.name));const d=k==="true"?"*":p;c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(L={[d]:o.map(g=>g.id)})):(c=JSON.parse(c),c[d]=o.map(g=>g.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),j()},j=()=>{r(7,A=o.length===u.length||o.length==0),r(8,B=o.length)},V=()=>{if(u.length&&k==="true")return;const l=new URL(`${n}/v1/casino/vendors`);r(4,x=!1),l.searchParams.append("fields","id,name,logo,subVendors,games"),l.searchParams.append("language",f),l.searchParams.append("datasource",s),l.searchParams.append("platform",e.getDevice(m)),k==="true"||((p.match(/\$/g)||[]).length>1?(l.searchParams.append("filter",`games(subGroups=${p})`),l.searchParams.append("subVendors",`games(subGroups=${p})`)):l.searchParams.append("filter",`games(groups=${p})`)),z(l)},W=()=>{r(6,o=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(L={[k==="true"?"*":p]:o.map(l=>l.id)})),u.forEach(l=>l.isFilterSelected=!1),r(5,u),window.postMessage({type:"ApplyFilters"},window.location.href),r(7,A=!0),r(4,x=!1)},J=l=>{l.data.type=="SortingOpened"&&r(4,x=!1)};e.onMount(()=>(window.addEventListener("message",J,!1),()=>{window.emMessageBus!=null&&T&&T.unsubscribe(),window.removeEventListener("message",J)}));const q=()=>M();function H(l,c){l[c].isFilterSelected=this.checked,r(5,u)}const C=l=>N(l),E=()=>W();function _(l){e.binding_callbacks[l?"unshift":"push"](()=>{v=l,r(3,v)})}return i.$$set=l=>{"endpoint"in l&&r(15,n=l.endpoint),"datasource"in l&&r(16,s=l.datasource),"lang"in l&&r(17,f=l.lang),"translationurl"in l&&r(18,b=l.translationurl),"clientstyling"in l&&r(19,y=l.clientstyling),"clientstylingurl"in l&&r(20,h=l.clientstylingurl),"categoryid"in l&&r(21,p=l.categoryid),"addfilterselector"in l&&r(0,w=l.addfilterselector),"addsortingselector"in l&&r(1,F=l.addsortingselector),"filterbylogo"in l&&r(2,I=l.filterbylogo),"mbsource"in l&&r(22,S=l.mbsource),"usesinglevendorfilter"in l&&r(23,k=l.usesinglevendorfilter)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&p&&I&&V(),i.$$.dirty[0]&524296&&y&&v&&e.setClientStyling(v,y),i.$$.dirty[0]&1048584&&h&&v&&e.setClientStylingURL(v,h),i.$$.dirty[0]&20971528&&S&&v&&r(24,T=e.setStreamStyling(v,`${S}.Style`,T,!0)),i.$$.dirty[0]&262144&&b&&P()},[w,F,I,v,x,u,o,A,B,D,O,a,M,N,W,n,s,f,b,y,h,p,S,k,T,q,H,C,E,_]}class Y extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ce,oe,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,usesinglevendorfilter:23},te,[-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()}get usesinglevendorfilter(){return this.$$.ctx[23]}set usesinglevendorfilter(t){this.$$set({usesinglevendorfilter:t}),e.flush()}}e.create_custom_element(Y,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{},usesinglevendorfilter:{}},[],[],!0);exports.default=Y;