@everymatrix/casino-most-played-section-nd 1.87.26 → 1.87.27

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 (30) hide show
  1. package/components/CasinoFilter-B3Jn-BGq.js +644 -0
  2. package/components/CasinoFilter-BEyLlRri.cjs +1 -0
  3. package/components/CasinoFilter-DHFpP9Nw.js +645 -0
  4. package/components/CasinoGameThumbnailNd-6hEd1R_n.js +1825 -0
  5. package/components/CasinoGameThumbnailNd-B9zeewBP.js +1841 -0
  6. package/components/CasinoGameThumbnailNd-BDVWXyiG.cjs +30 -0
  7. package/components/CasinoGamesCategorySectionNd-CE7LUO4f.js +4644 -0
  8. package/components/CasinoGamesCategorySectionNd-CXtV0EVC.cjs +1 -0
  9. package/components/CasinoGamesCategorySectionNd-DZ6vhOEX.js +4611 -0
  10. package/components/{CasinoFilter-Bewb2r1U.js → CasinoMostPlayedSectionNd-17r_oGlU.js} +1557 -1552
  11. package/components/{CasinoFilter-CfmNpR8n.js → CasinoMostPlayedSectionNd-BMYPzThn.js} +1634 -1625
  12. package/components/CasinoMostPlayedSectionNd-UwJ5kO22.cjs +18 -0
  13. package/components/{CasinoSort-Ble7RivW.js → CasinoSort-BE66A0EH.js} +99 -99
  14. package/components/CasinoSort-BjC9YIs-.cjs +1 -0
  15. package/components/{CasinoSort-mUx2YtqU.js → CasinoSort-WtLQQNgQ.js} +116 -116
  16. package/es2015/casino-most-played-section-nd.cjs +1 -1
  17. package/es2015/casino-most-played-section-nd.js +7 -7
  18. package/esnext/casino-most-played-section-nd.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoFilter-kyZEUL_7.cjs +0 -18
  21. package/components/CasinoGameThumbnailNd-BAsnH482.js +0 -3105
  22. package/components/CasinoGameThumbnailNd-BaaPJqHS.js +0 -3121
  23. package/components/CasinoGameThumbnailNd-BopLHbng.cjs +0 -30
  24. package/components/CasinoGamesCategorySectionNd-DfS_g-xr.js +0 -3370
  25. package/components/CasinoGamesCategorySectionNd-DiLjvbFK.cjs +0 -1
  26. package/components/CasinoGamesCategorySectionNd-DitreXUz.js +0 -3337
  27. package/components/CasinoMostPlayedSectionNd-CG9awB8W.js +0 -620
  28. package/components/CasinoMostPlayedSectionNd-Ch-W0Ug-.js +0 -620
  29. package/components/CasinoMostPlayedSectionNd-LT8G9T2M.cjs +0 -1
  30. package/components/CasinoSort-VNKspKX0.cjs +0 -1
@@ -1,620 +0,0 @@
1
- import { a as $, $ as ee, S as te, i as se, f as r, s as ae, G as ne, b as ie, n as J, d as A, j as D, k as Y, l as P, g as L, o as oe, p as re, w as le, x as me, q as ge, u as ce, e as n, I as ue, D as de, E as fe, F as he } from "./CasinoFilter-CfmNpR8n.js";
2
- import { g as ye } from "./CasinoGameThumbnailNd-BaaPJqHS.js";
3
- function be(a, e) {
4
- $(a, e);
5
- }
6
- function ve(a) {
7
- ee.set(a);
8
- }
9
- const we = {
10
- en: {
11
- noGames: "No games in most played"
12
- },
13
- "zh-hk": {
14
- noGames: "No games in most played"
15
- },
16
- de: {
17
- noGames: "No games in most played"
18
- },
19
- it: {
20
- noGames: "No games in most played"
21
- },
22
- fr: {
23
- noGames: "No games in most played"
24
- },
25
- es: {
26
- noGames: "No hay juegos en más jugados."
27
- },
28
- tr: {
29
- noGames: "En çok oynananlarda oyun yok"
30
- },
31
- ru: {
32
- noGames: "No games in most played"
33
- },
34
- ro: {
35
- noGames: "No games in most played"
36
- },
37
- hr: {
38
- noGames: "Nema igara u najigranijim"
39
- },
40
- hu: {
41
- noGames: "No games in most played"
42
- },
43
- pl: {
44
- noGames: "No games in most played"
45
- },
46
- pt: {
47
- noGames: "No games in most played"
48
- },
49
- sl: {
50
- noGames: "No games in most played"
51
- },
52
- sr: {
53
- noGames: "No games in most played"
54
- },
55
- "pt-br": {
56
- noGames: "Não há jogos nos mais jogados"
57
- },
58
- "es-mx": {
59
- noGames: "No hay juegos en los más jugados"
60
- },
61
- "en-us": {
62
- noGames: "No games in most played"
63
- }
64
- };
65
- if (typeof window != "undefined") {
66
- let a = function(e) {
67
- return function(...s) {
68
- try {
69
- return e.apply(this, s);
70
- } catch (i) {
71
- if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
72
- return !1;
73
- throw i;
74
- }
75
- };
76
- };
77
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySectionNd-DfS_g-xr.js").then(({ default: e }) => {
78
- !customElements.get("casino-games-category-section-nd") && customElements.define("casino-games-category-section-nd", e.element);
79
- });
80
- }
81
- function _e(a) {
82
- ie(a, "svelte-1de9den", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
83
- }
84
- function Ge(a) {
85
- let e;
86
- return {
87
- c() {
88
- e = P("casino-games-category-section-nd"), n(
89
- e,
90
- "session",
91
- /*session*/
92
- a[4]
93
- ), n(
94
- e,
95
- "userid",
96
- /*userid*/
97
- a[5]
98
- ), n(
99
- e,
100
- "endpoint",
101
- /*endpoint*/
102
- a[0]
103
- ), n(
104
- e,
105
- "datasource",
106
- /*datasource*/
107
- a[1]
108
- ), n(
109
- e,
110
- "lang",
111
- /*lang*/
112
- a[3]
113
- ), n(
114
- e,
115
- "currency",
116
- /*currency*/
117
- a[2]
118
- ), n(
119
- e,
120
- "favorites",
121
- /*favorites*/
122
- a[15]
123
- ), n(
124
- e,
125
- "fetchviaevent",
126
- /*fetchviaevent*/
127
- a[18]
128
- ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
129
- e,
130
- "showgamename",
131
- /*showgamename*/
132
- a[13]
133
- ), n(
134
- e,
135
- "clientstyling",
136
- /*clientstyling*/
137
- a[7]
138
- ), n(
139
- e,
140
- "clientstylingurl",
141
- /*clientstylingurl*/
142
- a[8]
143
- ), n(
144
- e,
145
- "translationurl",
146
- /*translationurl*/
147
- a[16]
148
- ), n(
149
- e,
150
- "livecasino",
151
- /*livecasino*/
152
- a[9]
153
- ), n(
154
- e,
155
- "visiblegames",
156
- /*visiblegames*/
157
- a[14]
158
- ), n(
159
- e,
160
- "gamepagemodalurl",
161
- /*gamepagemodalurl*/
162
- a[12]
163
- ), n(
164
- e,
165
- "integratedgameframedesktop",
166
- /*integratedgameframedesktop*/
167
- a[11]
168
- ), n(
169
- e,
170
- "integratedgameframemobile",
171
- /*integratedgameframemobile*/
172
- a[10]
173
- ), n(
174
- e,
175
- "casinomygames",
176
- /*casinomygames*/
177
- a[17]
178
- ), n(
179
- e,
180
- "mbsource",
181
- /*mbsource*/
182
- a[6]
183
- );
184
- },
185
- m(s, i) {
186
- D(s, e, i);
187
- },
188
- p(s, i) {
189
- i[0] & /*session*/
190
- 16 && n(
191
- e,
192
- "session",
193
- /*session*/
194
- s[4]
195
- ), i[0] & /*userid*/
196
- 32 && n(
197
- e,
198
- "userid",
199
- /*userid*/
200
- s[5]
201
- ), i[0] & /*endpoint*/
202
- 1 && n(
203
- e,
204
- "endpoint",
205
- /*endpoint*/
206
- s[0]
207
- ), i[0] & /*datasource*/
208
- 2 && n(
209
- e,
210
- "datasource",
211
- /*datasource*/
212
- s[1]
213
- ), i[0] & /*lang*/
214
- 8 && n(
215
- e,
216
- "lang",
217
- /*lang*/
218
- s[3]
219
- ), i[0] & /*currency*/
220
- 4 && n(
221
- e,
222
- "currency",
223
- /*currency*/
224
- s[2]
225
- ), i[0] & /*favorites*/
226
- 32768 && n(
227
- e,
228
- "favorites",
229
- /*favorites*/
230
- s[15]
231
- ), i[0] & /*fetchviaevent*/
232
- 262144 && n(
233
- e,
234
- "fetchviaevent",
235
- /*fetchviaevent*/
236
- s[18]
237
- ), i[0] & /*showgamename*/
238
- 8192 && n(
239
- e,
240
- "showgamename",
241
- /*showgamename*/
242
- s[13]
243
- ), i[0] & /*clientstyling*/
244
- 128 && n(
245
- e,
246
- "clientstyling",
247
- /*clientstyling*/
248
- s[7]
249
- ), i[0] & /*clientstylingurl*/
250
- 256 && n(
251
- e,
252
- "clientstylingurl",
253
- /*clientstylingurl*/
254
- s[8]
255
- ), i[0] & /*translationurl*/
256
- 65536 && n(
257
- e,
258
- "translationurl",
259
- /*translationurl*/
260
- s[16]
261
- ), i[0] & /*livecasino*/
262
- 512 && n(
263
- e,
264
- "livecasino",
265
- /*livecasino*/
266
- s[9]
267
- ), i[0] & /*visiblegames*/
268
- 16384 && n(
269
- e,
270
- "visiblegames",
271
- /*visiblegames*/
272
- s[14]
273
- ), i[0] & /*gamepagemodalurl*/
274
- 4096 && n(
275
- e,
276
- "gamepagemodalurl",
277
- /*gamepagemodalurl*/
278
- s[12]
279
- ), i[0] & /*integratedgameframedesktop*/
280
- 2048 && n(
281
- e,
282
- "integratedgameframedesktop",
283
- /*integratedgameframedesktop*/
284
- s[11]
285
- ), i[0] & /*integratedgameframemobile*/
286
- 1024 && n(
287
- e,
288
- "integratedgameframemobile",
289
- /*integratedgameframemobile*/
290
- s[10]
291
- ), i[0] & /*casinomygames*/
292
- 131072 && n(
293
- e,
294
- "casinomygames",
295
- /*casinomygames*/
296
- s[17]
297
- ), i[0] & /*mbsource*/
298
- 64 && n(
299
- e,
300
- "mbsource",
301
- /*mbsource*/
302
- s[6]
303
- );
304
- },
305
- d(s) {
306
- s && A(e);
307
- }
308
- };
309
- }
310
- function ke(a) {
311
- let e, s = (
312
- /*$_*/
313
- a[21]("noGames") + ""
314
- ), i;
315
- return {
316
- c() {
317
- e = P("p"), i = ce(s), L(e, "class", "SearchLoading");
318
- },
319
- m(m, l) {
320
- D(m, e, l), Y(e, i);
321
- },
322
- p(m, l) {
323
- l[0] & /*$_*/
324
- 2097152 && s !== (s = /*$_*/
325
- m[21]("noGames") + "") && ge(i, s);
326
- },
327
- d(m) {
328
- m && A(e);
329
- }
330
- };
331
- }
332
- function Ne(a) {
333
- let e, s;
334
- function i(g, c) {
335
- return (
336
- /*mostPlayedEmpty*/
337
- g[20] ? ke : Ge
338
- );
339
- }
340
- let m = i(a), l = m(a);
341
- return {
342
- c() {
343
- e = P("div"), s = P("div"), l.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
344
- },
345
- m(g, c) {
346
- D(g, e, c), Y(e, s), l.m(s, null), a[24](e);
347
- },
348
- p(g, c) {
349
- m === (m = i(g)) && l ? l.p(g, c) : (l.d(1), l = m(g), l && (l.c(), l.m(s, null)));
350
- },
351
- i: J,
352
- o: J,
353
- d(g) {
354
- g && A(e), l.d(), a[24](null);
355
- }
356
- };
357
- }
358
- function Pe(a, e, s) {
359
- let i;
360
- oe(a, ue, (t) => s(21, i = t));
361
- let { endpoint: m = "" } = e, { datasource: l = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: F = "" } = e, { userid: w = "" } = e, { mbsource: h } = e, { clientstyling: _ = "" } = e, { clientstylingurl: G = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: T = "false" } = e, { integratedgameframedesktop: O = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: U = "" } = e, { visiblegames: S } = e, { favorites: I = "" } = e, { translationurl: b = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: q = "true" } = e, H = window.navigator.userAgent, K;
362
- const M = (t) => {
363
- Object.keys(t).forEach((o) => {
364
- be(o, t[o]);
365
- });
366
- }, Q = () => {
367
- fetch(b).then((o) => o.json()).then((o) => {
368
- M(o);
369
- }).catch((o) => {
370
- console.log(o);
371
- });
372
- };
373
- M(we);
374
- let N = [], z, p = !1, u;
375
- const V = (t) => {
376
- let o = new URL(`${m}/v1/player/${w}/games/most-played`);
377
- t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
378
- let y = t.device;
379
- return y ? y === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), z = k ? o : o.href, new Promise((d, v) => {
380
- fetch(z).then((f) => f.json()).then((f) => {
381
- f.items = f.items.filter((x) => {
382
- let B = !0;
383
- return x.gameCode == "OddsMatrix2" && (f.count--, B = !1), B;
384
- }), d(f);
385
- }).catch((f) => {
386
- console.error(f), v(f);
387
- });
388
- });
389
- }, W = () => {
390
- V({
391
- limit: 100,
392
- device: le(H),
393
- rounds: E
394
- }).then((t) => {
395
- if (t.count > 0) {
396
- let o = [];
397
- t.items.forEach((y) => {
398
- let d = new URL(`${m}/v1/casino/games/${y.gameId}`);
399
- d.searchParams.append("datasource", l), k ? o.push(fetch(d.href).then((v) => v.json())) : o.push(fetch(d.href).then((v) => v.json()));
400
- }), Promise.all(o).then((y) => {
401
- N = y.filter((d) => !("error" in d)).map((d) => d[0]), C === "true" && (N = N.slice(0, JSON.parse(S))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
402
- });
403
- } else
404
- s(20, p = !0);
405
- });
406
- }, X = () => {
407
- ve(c);
408
- };
409
- re(() => () => {
410
- });
411
- function Z(t) {
412
- me[t ? "unshift" : "push"](() => {
413
- u = t, s(19, u);
414
- });
415
- }
416
- return a.$$set = (t) => {
417
- "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, l = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, F = t.session), "userid" in t && s(5, w = t.userid), "mbsource" in t && s(6, h = t.mbsource), "clientstyling" in t && s(7, _ = t.clientstyling), "clientstylingurl" in t && s(8, G = t.clientstylingurl), "livecasino" in t && s(9, k = t.livecasino), "integratedgameframemobile" in t && s(10, T = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, O = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, U = t.showgamename), "visiblegames" in t && s(14, S = t.visiblegames), "favorites" in t && s(15, I = t.favorites), "translationurl" in t && s(16, b = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, j = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(18, q = t.fetchviaevent);
418
- }, a.$$.update = () => {
419
- a.$$.dirty[0] & /*endpoint, userid, lang*/
420
- 41 && m && w && c && W(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
421
- 524416 && _ && u && de(u, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
422
- 524544 && G && u && fe(u, G), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
423
- 524352 && h && u && he(u, `${h}.Style`), a.$$.dirty[0] & /*mbsource, translationurl*/
424
- 65600 && h && !b && ye(`${h}.Translation`, K, M), a.$$.dirty[0] & /*translationurl*/
425
- 65536 && b && Q(), a.$$.dirty[0] & /*lang*/
426
- 8 && c && X();
427
- }, [
428
- m,
429
- l,
430
- g,
431
- c,
432
- F,
433
- w,
434
- h,
435
- _,
436
- G,
437
- k,
438
- T,
439
- O,
440
- R,
441
- U,
442
- S,
443
- I,
444
- b,
445
- C,
446
- q,
447
- u,
448
- p,
449
- i,
450
- j,
451
- E,
452
- Z
453
- ];
454
- }
455
- class Se extends te {
456
- constructor(e) {
457
- super(), se(
458
- this,
459
- e,
460
- Pe,
461
- Ne,
462
- ae,
463
- {
464
- endpoint: 0,
465
- datasource: 1,
466
- currency: 2,
467
- lang: 3,
468
- session: 4,
469
- userid: 5,
470
- mbsource: 6,
471
- clientstyling: 7,
472
- clientstylingurl: 8,
473
- livecasino: 9,
474
- integratedgameframemobile: 10,
475
- integratedgameframedesktop: 11,
476
- gamepagemodalurl: 12,
477
- showgamename: 13,
478
- visiblegames: 14,
479
- favorites: 15,
480
- translationurl: 16,
481
- casinomygames: 17,
482
- mostplayedperiod: 22,
483
- mostplayedrounds: 23,
484
- fetchviaevent: 18
485
- },
486
- _e,
487
- [-1, -1]
488
- );
489
- }
490
- get endpoint() {
491
- return this.$$.ctx[0];
492
- }
493
- set endpoint(e) {
494
- this.$$set({ endpoint: e }), r();
495
- }
496
- get datasource() {
497
- return this.$$.ctx[1];
498
- }
499
- set datasource(e) {
500
- this.$$set({ datasource: e }), r();
501
- }
502
- get currency() {
503
- return this.$$.ctx[2];
504
- }
505
- set currency(e) {
506
- this.$$set({ currency: e }), r();
507
- }
508
- get lang() {
509
- return this.$$.ctx[3];
510
- }
511
- set lang(e) {
512
- this.$$set({ lang: e }), r();
513
- }
514
- get session() {
515
- return this.$$.ctx[4];
516
- }
517
- set session(e) {
518
- this.$$set({ session: e }), r();
519
- }
520
- get userid() {
521
- return this.$$.ctx[5];
522
- }
523
- set userid(e) {
524
- this.$$set({ userid: e }), r();
525
- }
526
- get mbsource() {
527
- return this.$$.ctx[6];
528
- }
529
- set mbsource(e) {
530
- this.$$set({ mbsource: e }), r();
531
- }
532
- get clientstyling() {
533
- return this.$$.ctx[7];
534
- }
535
- set clientstyling(e) {
536
- this.$$set({ clientstyling: e }), r();
537
- }
538
- get clientstylingurl() {
539
- return this.$$.ctx[8];
540
- }
541
- set clientstylingurl(e) {
542
- this.$$set({ clientstylingurl: e }), r();
543
- }
544
- get livecasino() {
545
- return this.$$.ctx[9];
546
- }
547
- set livecasino(e) {
548
- this.$$set({ livecasino: e }), r();
549
- }
550
- get integratedgameframemobile() {
551
- return this.$$.ctx[10];
552
- }
553
- set integratedgameframemobile(e) {
554
- this.$$set({ integratedgameframemobile: e }), r();
555
- }
556
- get integratedgameframedesktop() {
557
- return this.$$.ctx[11];
558
- }
559
- set integratedgameframedesktop(e) {
560
- this.$$set({ integratedgameframedesktop: e }), r();
561
- }
562
- get gamepagemodalurl() {
563
- return this.$$.ctx[12];
564
- }
565
- set gamepagemodalurl(e) {
566
- this.$$set({ gamepagemodalurl: e }), r();
567
- }
568
- get showgamename() {
569
- return this.$$.ctx[13];
570
- }
571
- set showgamename(e) {
572
- this.$$set({ showgamename: e }), r();
573
- }
574
- get visiblegames() {
575
- return this.$$.ctx[14];
576
- }
577
- set visiblegames(e) {
578
- this.$$set({ visiblegames: e }), r();
579
- }
580
- get favorites() {
581
- return this.$$.ctx[15];
582
- }
583
- set favorites(e) {
584
- this.$$set({ favorites: e }), r();
585
- }
586
- get translationurl() {
587
- return this.$$.ctx[16];
588
- }
589
- set translationurl(e) {
590
- this.$$set({ translationurl: e }), r();
591
- }
592
- get casinomygames() {
593
- return this.$$.ctx[17];
594
- }
595
- set casinomygames(e) {
596
- this.$$set({ casinomygames: e }), r();
597
- }
598
- get mostplayedperiod() {
599
- return this.$$.ctx[22];
600
- }
601
- set mostplayedperiod(e) {
602
- this.$$set({ mostplayedperiod: e }), r();
603
- }
604
- get mostplayedrounds() {
605
- return this.$$.ctx[23];
606
- }
607
- set mostplayedrounds(e) {
608
- this.$$set({ mostplayedrounds: e }), r();
609
- }
610
- get fetchviaevent() {
611
- return this.$$.ctx[18];
612
- }
613
- set fetchviaevent(e) {
614
- this.$$set({ fetchviaevent: e }), r();
615
- }
616
- }
617
- ne(Se, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
618
- export {
619
- Se as default
620
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-kyZEUL_7.cjs"),Q=require("./CasinoGameThumbnailNd-BopLHbng.cjs");function V(n,e){t.addMessages(n,e)}function W(n){t.$locale.set(n)}const X={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySectionNd-DiLjvbFK.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section-nd")&&customElements.define("casino-games-category-section-nd",e.element)})}function Z(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function x(n){let e;return{c(){e=t.element("casino-games-category-section-nd"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[18]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[16]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[6])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&65536&&t.set_custom_element_data(e,"translationurl",a[16]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function $(n){let e,a=n[21]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&2097152&&a!==(a=l[21]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function ee(n){let e,a;function i(r,u){return r[20]?$:x}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),o.m(a,null),n[24](e)},p(r,u){l===(l=i(r))&&o?o.p(r,u):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function te(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:M=""}=e,{userid:b=""}=e,{mbsource:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{livecasino:G="false"}=e,{integratedgameframemobile:E="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:T="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:D=""}=e,{translationurl:h=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:S="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:F="true"}=e,p=window.navigator.userAgent,z;const j=s=>{Object.keys(s).forEach(m=>{V(m,s[m])})},I=()=>{fetch(h).then(m=>m.json()).then(m=>{j(m)}).catch(m=>{console.log(m)})};j(X);let N=[],O,q=!1,c;const B=s=>{let m=new URL(`${l}/v1/player/${b}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",S);let _=s.device;return _?_==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),O=G?m:m.href,new Promise((d,y)=>{fetch(O).then(g=>g.json()).then(g=>{g.items=g.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(g.count--,R=!1),R}),d(g)}).catch(g=>{console.error(g),y(g)})})},J=()=>{B({limit:100,device:t.getDevice(p),rounds:C}).then(s=>{if(s.count>0){let m=[];s.items.forEach(_=>{let d=new URL(`${l}/v1/casino/games/${_.gameId}`);d.searchParams.append("datasource",o),G?m.push(fetch(d.href).then(y=>y.json())):m.push(fetch(d.href).then(y=>y.json()))}),Promise.all(m).then(_=>{N=_.filter(d=>!("error"in d)).map(d=>d[0]),P==="true"&&(N=N.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:N},window.location.href)})}else a(20,q=!0)})},Y=()=>{W(u)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(19,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,M=s.session),"userid"in s&&a(5,b=s.userid),"mbsource"in s&&a(6,f=s.mbsource),"clientstyling"in s&&a(7,v=s.clientstyling),"clientstylingurl"in s&&a(8,w=s.clientstylingurl),"livecasino"in s&&a(9,G=s.livecasino),"integratedgameframemobile"in s&&a(10,E=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,T=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"translationurl"in s&&a(16,h=s.translationurl),"casinomygames"in s&&a(17,P=s.casinomygames),"mostplayedperiod"in s&&a(22,S=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,C=s.mostplayedrounds),"fetchviaevent"in s&&a(18,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&b&&u&&J(),n.$$.dirty[0]&524416&&v&&c&&t.setClientStyling(c,v),n.$$.dirty[0]&524544&&w&&c&&t.setClientStylingURL(c,w),n.$$.dirty[0]&524352&&f&&c&&t.setStreamStyling(c,`${f}.Style`),n.$$.dirty[0]&65600&&f&&!h&&Q.getStreamTranslations(`${f}.Translation`,z,j),n.$$.dirty[0]&65536&&h&&I(),n.$$.dirty[0]&8&&u&&Y()},[l,o,r,u,M,b,f,v,w,G,E,L,T,A,k,D,h,P,F,c,q,i,S,C,H]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,te,ee,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:16,casinomygames:17,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:18},Z,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-kyZEUL_7.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function E(e,r){t.addMessages(e,r)}const j={en:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},zh:{sortby:"Sort by",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},de:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},it:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},fr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},es:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},tr:{sortby:"Sırala:",all:"Hepsi",az:"A-Z",newest:"En yeni",hottest:"Öne Çıkan"},ru:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},ro:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},hr:{sortby:"Poredaj po:",all:"Sve",az:"A-Z",newest:"Najnovije",hottest:"Hot igre"},hu:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},pt:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sl:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},sr:{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"},"pt-br":{sortby:"Organizar por:",all:"Todos",az:"A-Z",newest:"Mais recente",hottest:"mais quente"},"es-mx":{sortby:"Ordenar Por:",all:"Todo",az:"A-Z",newest:"Más nuevos",hottest:"Más calientes"},"en-us":{sortby:"Sort by:",all:"All",az:"A-Z",newest:"Newest",hottest:"Hottest"}};function J(e){t.append_styles(e,"svelte-p37neu",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{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;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{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}.SorterDropdownContainer{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:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));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}.ClearSorters: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){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}')}function D(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,p,h,d,S,c,m,v=e[4]("sortby")+"",f,w,z,A,F=(e[3]||e[4]("all"))+"",N,I,k,_,C,Z,a,g,b,O,M,H,L,B=t.ensure_array_like(Object.values(e[5])),y=[];for(let i=0;i<B.length;i+=1)y[i]=P(D(e,B,i));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),p=t.svg_element("path"),h=t.svg_element("path"),d=t.svg_element("path"),S=t.space(),c=t.element("div"),m=t.element("span"),f=t.text(v),w=t.space(),z=t.element("div"),A=t.element("span"),N=t.text(F),I=t.space(),k=t.element("span"),_=t.svg_element("svg"),C=t.svg_element("path"),g=t.space(),b=t.element("div"),O=t.element("ul");for(let i=0;i<y.length;i+=1)y[i].c();t.attr(p,"id","Path_5267"),t.attr(p,"data-name","Path 5267"),t.attr(p,"d","M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"),t.attr(p,"transform","translate(-206.448 0)"),t.attr(p,"fill","#fff"),t.attr(h,"id","Path_5268"),t.attr(h,"data-name","Path 5268"),t.attr(h,"d","M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"),t.attr(h,"transform","translate(0 0)"),t.attr(h,"fill","#fff"),t.attr(d,"id","Path_5269"),t.attr(d,"data-name","Path 5269"),t.attr(d,"d","M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"),t.attr(d,"transform","translate(-412.896 0)"),t.attr(d,"fill","#fff"),t.attr(s,"id","sortby"),t.attr(s,"transform","translate(-306 -342)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","20"),t.attr(l,"height","20"),t.attr(l,"viewBox","0 0 26.003 22.819"),t.attr(m,"class","SorterName"),t.attr(z,"class","SorterValueContainer"),t.attr(c,"class","SorterTextContainer"),t.attr(o,"class","SorterMainArea"),t.attr(C,"id","arrow"),t.attr(C,"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"),t.attr(C,"transform","translate(-274.511 -441.088)"),t.attr(C,"fill","#d1d1d1"),t.attr(_,"xmlns","http://www.w3.org/2000/svg"),t.attr(_,"width","14"),t.attr(_,"height","6.835"),t.attr(_,"viewBox","0 0 14 6.835"),t.attr(k,"class",Z="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",a="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(O,"class","SorterDropdown"),t.attr(b,"class",M="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(i,x){t.insert(i,r,x),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,p),t.append(s,h),t.append(s,d),t.append(o,S),t.append(o,c),t.append(c,m),t.append(m,f),t.append(c,w),t.append(c,z),t.append(z,A),t.append(A,N),t.append(n,I),t.append(n,k),t.append(k,_),t.append(_,C),t.append(r,g),t.append(r,b),t.append(b,O);for(let u=0;u<y.length;u+=1)y[u]&&y[u].m(O,null);H||(L=t.listen(n,"click",e[14]),H=!0)},p(i,x){if(x&16&&v!==(v=i[4]("sortby")+"")&&t.set_data(f,v),x&24&&F!==(F=(i[3]||i[4]("all"))+"")&&t.set_data(N,F),x&2&&Z!==(Z="TriangleInactive "+(i[1]?"TriangleActive":""))&&t.attr(k,"class",Z),x&2&&a!==(a="SorterSelector "+(i[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",a),x&120){B=t.ensure_array_like(Object.values(i[5]));let u;for(u=0;u<B.length;u+=1){const T=D(i,B,u);y[u]?y[u].p(T,x):(y[u]=P(T),y[u].c(),y[u].m(O,null))}for(;u<y.length;u+=1)y[u].d(1);y.length=B.length}x&2&&M!==(M="SorterDropdownContainer "+(i[1]?"SorterOpen":""))&&t.attr(b,"class",M)},d(i){i&&t.detach(r),t.destroy_each(y,i),H=!1,L()}}}function P(e){let r,n,o,l,s,p,h,d,S,c,m;function v(){return e[15](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),p=t.element("span"),h=t.space(),d=t.element("span"),d.textContent=`${e[23]}`,S=t.space(),t.attr(o,"type","radio"),t.attr(o,"name","radio"),o.value=e[23],o.checked=l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"),t.attr(p,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(f,w){t.insert(f,r,w),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,p),t.append(n,h),t.append(n,d),t.append(r,S),c||(m=t.listen(o,"click",v),c=!0)},p(f,w){e=f,w&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(f){f&&t.detach(r),c=!1,m()}}}function U(e){let r;function n(s,p){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,p){t.insert(s,r,p),l&&l.m(r,null),e[16](r)},p(s,[p]){o===(o=n(s))&&l?l.p(s,p):(l&&l.d(1),l=o&&o(s),l&&(l.c(),l.m(r,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(r),l&&l.d(),e[16](null)}}}function G(e,r,n){let o;t.component_subscribe(e,t.$format,a=>n(4,o=a));let{lang:l=""}=r,{translationurl:s=""}=r,{clientstyling:p=""}=r,{clientstylingurl:h=""}=r,{categoryid:d=""}=r,{mbsource:S}=r,c,m=!1,v=!0,f="",w="All";V({withLocale:"en",translations:{}});const z=()=>{fetch(s).then(g=>g.json()).then(g=>{Object.keys(g).forEach(b=>{E(b,g[b])})}).catch(g=>{console.log(g)})};Object.keys(j).forEach(a=>{E(a,j[a])});const A={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},F=()=>{var g;n(3,w="All"),n(2,v=!1),n(1,m=!1);let a=(g=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:g[d];a?n(3,w=a):n(3,w="All"),n(3,w=A[a])},N=a=>{n(3,w=a);let g=localStorage.getItem("vendorSortingBy");f=a;for(let b in A)if(A[b]===a){f=b;break}g==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[d]:f})):(g=JSON.parse(g),g[d]=f,localStorage.setItem("vendorSortingBy",JSON.stringify(g))),window.postMessage({type:"ApplySorter",sortBy:f,itemId:d},window.location.href),n(1,m=!m)},I=()=>{n(1,m=!m),window.postMessage({type:"SortingOpened"},window.location.href)},k=a=>{a.data.type=="FilterOpened"&&n(1,m=!1)};t.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));const _=()=>I(),C=a=>N(a);function Z(a){t.binding_callbacks[a?"unshift":"push"](()=>{c=a,n(0,c)})}return e.$$set=a=>{"lang"in a&&n(8,l=a.lang),"translationurl"in a&&n(9,s=a.translationurl),"clientstyling"in a&&n(10,p=a.clientstyling),"clientstylingurl"in a&&n(11,h=a.clientstylingurl),"categoryid"in a&&n(12,d=a.categoryid),"mbsource"in a&&n(13,S=a.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&d&&F(),e.$$.dirty&1025&&p&&c&&t.setClientStyling(c,p),e.$$.dirty&2049&&h&&c&&t.setClientStylingURL(c,h),e.$$.dirty&8193&&c&&t.setStreamStyling(c,`${S}.Style`),e.$$.dirty&512&&s&&z()},[c,m,v,w,o,A,N,I,l,s,p,h,d,S,_,C,Z]}class R extends t.SvelteComponent{constructor(r){super(),t.init(this,r,G,U,t.safe_not_equal,{lang:8,translationurl:9,clientstyling:10,clientstylingurl:11,categoryid:12,mbsource:13},J)}get lang(){return this.$$.ctx[8]}set lang(r){this.$$set({lang:r}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),t.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),t.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(r){this.$$set({mbsource:r}),t.flush()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},mbsource:{}},[],[],!0);exports.default=R;