@everymatrix/casino-last-played-section 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-Bq27fkl0.cjs +1 -0
  2. package/components/CasinoFilter-RGuOjNV-.js +644 -0
  3. package/components/CasinoFilter-ur0N0e_q.js +645 -0
  4. package/components/CasinoGameThumbnail-CWi08UB2.js +1831 -0
  5. package/components/CasinoGameThumbnail-Ck10-v-p.js +1847 -0
  6. package/components/CasinoGameThumbnail-D8eKiOCc.cjs +38 -0
  7. package/components/CasinoGamesCategorySection-BIc39Efl.js +5745 -0
  8. package/components/CasinoGamesCategorySection-BxPHrlVj.js +5713 -0
  9. package/components/CasinoGamesCategorySection-Y8eLR0W5.cjs +10 -0
  10. package/components/CasinoLastPlayedSection-DrrWbeZS.cjs +18 -0
  11. package/components/{CasinoFilter-BTVMoy_t.js → CasinoLastPlayedSection-jaTKdLsf.js} +1631 -1644
  12. package/components/{CasinoFilter-aZNjaj7s.js → CasinoLastPlayedSection-tw4aeVIv.js} +1553 -1570
  13. package/components/{CasinoSort-BllIwG-L.js → CasinoSort-CliCKl9a.js} +110 -109
  14. package/components/CasinoSort-CwwPvIGU.cjs +1 -0
  15. package/components/{CasinoSort-tQyhZT1U.js → CasinoSort-OyxicsAe.js} +96 -97
  16. package/es2015/casino-last-played-section.cjs +1 -1
  17. package/es2015/casino-last-played-section.js +7 -7
  18. package/esnext/casino-last-played-section.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoFilter-ChNOJ2MK.cjs +0 -18
  21. package/components/CasinoGameThumbnail-BRddAcBN.js +0 -4359
  22. package/components/CasinoGameThumbnail-D5aY7MyL.cjs +0 -47
  23. package/components/CasinoGameThumbnail-rFXSnS2v.js +0 -4375
  24. package/components/CasinoGamesCategorySection-6xzUZp3K.js +0 -3185
  25. package/components/CasinoGamesCategorySection-BHDp-KJ4.js +0 -3217
  26. package/components/CasinoGamesCategorySection-k99QzULe.cjs +0 -1
  27. package/components/CasinoLastPlayedSection-CKRaykV6.js +0 -601
  28. package/components/CasinoLastPlayedSection-CjV0ylzn.js +0 -601
  29. package/components/CasinoLastPlayedSection-ds7jt5iT.cjs +0 -1
  30. package/components/CasinoSort-Bjtm0zBv.cjs +0 -1
@@ -1,601 +0,0 @@
1
- import { a as ee, $ as te, S as ae, i as se, f as l, s as ne, F as ie, b as le, n as H, d as E, j as D, k as B, l as L, h as A, p as re, q as oe, x as ue, g as ce, o as me, e as n, w as ge, G as de, C as fe, D as he, E as ye } from "./CasinoFilter-BTVMoy_t.js";
2
- function V(s, e) {
3
- ee(s, e);
4
- }
5
- function be(s) {
6
- te.set(s);
7
- }
8
- const Z = {
9
- en: {
10
- noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
11
- },
12
- de: {
13
- noRecentGames: "Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."
14
- },
15
- es: {
16
- noRecentGames: "No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."
17
- },
18
- hr: {
19
- noRecentGames: "Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."
20
- },
21
- "pt-br": {
22
- noRecentGames: "Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."
23
- },
24
- "es-mx": {
25
- noRecentGames: "Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."
26
- },
27
- tr: {
28
- noRecentGames: "Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."
29
- },
30
- "en-us": {
31
- noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
32
- }
33
- };
34
- if (typeof window != "undefined") {
35
- let s = function(e) {
36
- return function(...t) {
37
- try {
38
- return e.apply(this, t);
39
- } catch (i) {
40
- 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"))
41
- return !1;
42
- throw i;
43
- }
44
- };
45
- };
46
- customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-BHDp-KJ4.js").then(({ default: e }) => {
47
- !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
48
- });
49
- }
50
- function ve(s) {
51
- le(s, "svelte-9pcrt1", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
52
- }
53
- function we(s) {
54
- let e;
55
- return {
56
- c() {
57
- e = L("casino-games-category-section"), n(
58
- e,
59
- "session",
60
- /*session*/
61
- s[4]
62
- ), n(
63
- e,
64
- "userid",
65
- /*userid*/
66
- s[5]
67
- ), n(
68
- e,
69
- "endpoint",
70
- /*endpoint*/
71
- s[0]
72
- ), n(
73
- e,
74
- "datasource",
75
- /*datasource*/
76
- s[1]
77
- ), n(
78
- e,
79
- "lang",
80
- /*lang*/
81
- s[3]
82
- ), n(
83
- e,
84
- "currency",
85
- /*currency*/
86
- s[2]
87
- ), n(
88
- e,
89
- "favorites",
90
- /*favorites*/
91
- s[15]
92
- ), n(
93
- e,
94
- "fetchviaevent",
95
- /*fetchviaevent*/
96
- s[17]
97
- ), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
98
- e,
99
- "mbsource",
100
- /*mbsource*/
101
- s[18]
102
- ), n(
103
- e,
104
- "showgamename",
105
- /*showgamename*/
106
- s[13]
107
- ), n(
108
- e,
109
- "clientstyling",
110
- /*clientstyling*/
111
- s[6]
112
- ), n(
113
- e,
114
- "clientstylingurl",
115
- /*clientstylingurl*/
116
- s[7]
117
- ), n(
118
- e,
119
- "translationurl",
120
- /*translationurl*/
121
- s[8]
122
- ), n(
123
- e,
124
- "livecasino",
125
- /*livecasino*/
126
- s[9]
127
- ), n(
128
- e,
129
- "visiblegames",
130
- /*visiblegames*/
131
- s[14]
132
- ), n(
133
- e,
134
- "gamepagemodalurl",
135
- /*gamepagemodalurl*/
136
- s[12]
137
- ), n(
138
- e,
139
- "integratedgameframedesktop",
140
- /*integratedgameframedesktop*/
141
- s[11]
142
- ), n(
143
- e,
144
- "integratedgameframemobile",
145
- /*integratedgameframemobile*/
146
- s[10]
147
- ), n(
148
- e,
149
- "casinomygames",
150
- /*casinomygames*/
151
- s[16]
152
- );
153
- },
154
- m(t, i) {
155
- D(t, e, i);
156
- },
157
- p(t, i) {
158
- i[0] & /*session*/
159
- 16 && n(
160
- e,
161
- "session",
162
- /*session*/
163
- t[4]
164
- ), i[0] & /*userid*/
165
- 32 && n(
166
- e,
167
- "userid",
168
- /*userid*/
169
- t[5]
170
- ), i[0] & /*endpoint*/
171
- 1 && n(
172
- e,
173
- "endpoint",
174
- /*endpoint*/
175
- t[0]
176
- ), i[0] & /*datasource*/
177
- 2 && n(
178
- e,
179
- "datasource",
180
- /*datasource*/
181
- t[1]
182
- ), i[0] & /*lang*/
183
- 8 && n(
184
- e,
185
- "lang",
186
- /*lang*/
187
- t[3]
188
- ), i[0] & /*currency*/
189
- 4 && n(
190
- e,
191
- "currency",
192
- /*currency*/
193
- t[2]
194
- ), i[0] & /*favorites*/
195
- 32768 && n(
196
- e,
197
- "favorites",
198
- /*favorites*/
199
- t[15]
200
- ), i[0] & /*fetchviaevent*/
201
- 131072 && n(
202
- e,
203
- "fetchviaevent",
204
- /*fetchviaevent*/
205
- t[17]
206
- ), i[0] & /*mbsource*/
207
- 262144 && n(
208
- e,
209
- "mbsource",
210
- /*mbsource*/
211
- t[18]
212
- ), i[0] & /*showgamename*/
213
- 8192 && n(
214
- e,
215
- "showgamename",
216
- /*showgamename*/
217
- t[13]
218
- ), i[0] & /*clientstyling*/
219
- 64 && n(
220
- e,
221
- "clientstyling",
222
- /*clientstyling*/
223
- t[6]
224
- ), i[0] & /*clientstylingurl*/
225
- 128 && n(
226
- e,
227
- "clientstylingurl",
228
- /*clientstylingurl*/
229
- t[7]
230
- ), i[0] & /*translationurl*/
231
- 256 && n(
232
- e,
233
- "translationurl",
234
- /*translationurl*/
235
- t[8]
236
- ), i[0] & /*livecasino*/
237
- 512 && n(
238
- e,
239
- "livecasino",
240
- /*livecasino*/
241
- t[9]
242
- ), i[0] & /*visiblegames*/
243
- 16384 && n(
244
- e,
245
- "visiblegames",
246
- /*visiblegames*/
247
- t[14]
248
- ), i[0] & /*gamepagemodalurl*/
249
- 4096 && n(
250
- e,
251
- "gamepagemodalurl",
252
- /*gamepagemodalurl*/
253
- t[12]
254
- ), i[0] & /*integratedgameframedesktop*/
255
- 2048 && n(
256
- e,
257
- "integratedgameframedesktop",
258
- /*integratedgameframedesktop*/
259
- t[11]
260
- ), i[0] & /*integratedgameframemobile*/
261
- 1024 && n(
262
- e,
263
- "integratedgameframemobile",
264
- /*integratedgameframemobile*/
265
- t[10]
266
- ), i[0] & /*casinomygames*/
267
- 65536 && n(
268
- e,
269
- "casinomygames",
270
- /*casinomygames*/
271
- t[16]
272
- );
273
- },
274
- d(t) {
275
- t && E(e);
276
- }
277
- };
278
- }
279
- function _e(s) {
280
- let e, t = (
281
- /*$_*/
282
- s[21]("noRecentGames") + ""
283
- ), i;
284
- return {
285
- c() {
286
- e = L("p"), i = me(t), A(e, "class", "SearchLoading");
287
- },
288
- m(o, r) {
289
- D(o, e, r), B(e, i);
290
- },
291
- p(o, r) {
292
- r[0] & /*$_*/
293
- 2097152 && t !== (t = /*$_*/
294
- o[21]("noRecentGames") + "") && ce(i, t);
295
- },
296
- d(o) {
297
- o && E(e);
298
- }
299
- };
300
- }
301
- function ke(s) {
302
- let e, t;
303
- function i(m, d) {
304
- return (
305
- /*lastPlayedEmpty*/
306
- m[20] ? _e : we
307
- );
308
- }
309
- let o = i(s), r = o(s);
310
- return {
311
- c() {
312
- e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
313
- },
314
- m(m, d) {
315
- D(m, e, d), B(e, t), r.m(t, null), s[26](e);
316
- },
317
- p(m, d) {
318
- o === (o = i(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
319
- },
320
- i: H,
321
- o: H,
322
- d(m) {
323
- m && E(e), r.d(), s[26](null);
324
- }
325
- };
326
- }
327
- function Le(s, e, t) {
328
- let i;
329
- re(s, de, (a) => t(21, i = a));
330
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: z = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
331
- const Q = () => {
332
- fetch(w).then((g) => g.json()).then((g) => {
333
- Object.keys(g).forEach((u) => {
334
- V(u, g[u]);
335
- });
336
- }).catch((g) => {
337
- console.log(g);
338
- });
339
- };
340
- Object.keys(Z).forEach((a) => {
341
- V(a, Z[a]);
342
- });
343
- const W = () => new Promise((a, g) => {
344
- let u = new URL(`${o}/v1/player/${y}/games/last-played`);
345
- u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ge(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
346
- c.items = c.items.filter(($) => {
347
- let J = !0;
348
- return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
349
- }), a(c), window.postMessage(
350
- {
351
- type: "AddNewCategory",
352
- category: { name: "Last Played", id: "LASTPLAYED" }
353
- },
354
- window.location.href
355
- ), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
356
- }).catch((c) => {
357
- console.error(c), g(c);
358
- });
359
- }), X = () => {
360
- W().then((a) => {
361
- if (a.count > 0) {
362
- let g = [];
363
- a.items.forEach((u) => {
364
- let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
365
- h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((c) => c.json())) : g.push(fetch(h.href).then((c) => c.json()));
366
- }), Promise.all(g).then((u) => {
367
- k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
368
- });
369
- } else
370
- t(20, Y = !0);
371
- });
372
- }, p = () => {
373
- be(d);
374
- };
375
- oe(() => () => {
376
- });
377
- function x(a) {
378
- ue[a ? "unshift" : "push"](() => {
379
- f = a, t(19, f);
380
- });
381
- }
382
- return s.$$set = (a) => {
383
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, O = a.gamepagemodalurl), "showgamename" in a && t(13, z = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
384
- }, s.$$.update = () => {
385
- s.$$.dirty[0] & /*endpoint, userid, lang*/
386
- 41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
387
- 256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
388
- 524352 && b && f && fe(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
389
- 524416 && v && f && he(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
390
- 786432 && f && ye(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
391
- 8 && d && p();
392
- }, [
393
- o,
394
- r,
395
- m,
396
- d,
397
- M,
398
- y,
399
- b,
400
- v,
401
- w,
402
- _,
403
- F,
404
- N,
405
- O,
406
- z,
407
- P,
408
- T,
409
- G,
410
- U,
411
- q,
412
- f,
413
- Y,
414
- i,
415
- C,
416
- S,
417
- j,
418
- R,
419
- x
420
- ];
421
- }
422
- class Pe extends ae {
423
- constructor(e) {
424
- super(), se(
425
- this,
426
- e,
427
- Le,
428
- ke,
429
- ne,
430
- {
431
- endpoint: 0,
432
- datasource: 1,
433
- currency: 2,
434
- lang: 3,
435
- session: 4,
436
- userid: 5,
437
- clientstyling: 6,
438
- clientstylingurl: 7,
439
- translationurl: 8,
440
- livecasino: 9,
441
- integratedgameframemobile: 10,
442
- integratedgameframedesktop: 11,
443
- gamepagemodalurl: 12,
444
- showgamename: 13,
445
- visiblegames: 14,
446
- favorites: 15,
447
- lastplayedperiod: 22,
448
- lastplayedorder: 23,
449
- lastplayedlimit: 24,
450
- casinomygames: 16,
451
- lastplayedunique: 25,
452
- fetchviaevent: 17,
453
- mbsource: 18
454
- },
455
- ve,
456
- [-1, -1]
457
- );
458
- }
459
- get endpoint() {
460
- return this.$$.ctx[0];
461
- }
462
- set endpoint(e) {
463
- this.$$set({ endpoint: e }), l();
464
- }
465
- get datasource() {
466
- return this.$$.ctx[1];
467
- }
468
- set datasource(e) {
469
- this.$$set({ datasource: e }), l();
470
- }
471
- get currency() {
472
- return this.$$.ctx[2];
473
- }
474
- set currency(e) {
475
- this.$$set({ currency: e }), l();
476
- }
477
- get lang() {
478
- return this.$$.ctx[3];
479
- }
480
- set lang(e) {
481
- this.$$set({ lang: e }), l();
482
- }
483
- get session() {
484
- return this.$$.ctx[4];
485
- }
486
- set session(e) {
487
- this.$$set({ session: e }), l();
488
- }
489
- get userid() {
490
- return this.$$.ctx[5];
491
- }
492
- set userid(e) {
493
- this.$$set({ userid: e }), l();
494
- }
495
- get clientstyling() {
496
- return this.$$.ctx[6];
497
- }
498
- set clientstyling(e) {
499
- this.$$set({ clientstyling: e }), l();
500
- }
501
- get clientstylingurl() {
502
- return this.$$.ctx[7];
503
- }
504
- set clientstylingurl(e) {
505
- this.$$set({ clientstylingurl: e }), l();
506
- }
507
- get translationurl() {
508
- return this.$$.ctx[8];
509
- }
510
- set translationurl(e) {
511
- this.$$set({ translationurl: e }), l();
512
- }
513
- get livecasino() {
514
- return this.$$.ctx[9];
515
- }
516
- set livecasino(e) {
517
- this.$$set({ livecasino: e }), l();
518
- }
519
- get integratedgameframemobile() {
520
- return this.$$.ctx[10];
521
- }
522
- set integratedgameframemobile(e) {
523
- this.$$set({ integratedgameframemobile: e }), l();
524
- }
525
- get integratedgameframedesktop() {
526
- return this.$$.ctx[11];
527
- }
528
- set integratedgameframedesktop(e) {
529
- this.$$set({ integratedgameframedesktop: e }), l();
530
- }
531
- get gamepagemodalurl() {
532
- return this.$$.ctx[12];
533
- }
534
- set gamepagemodalurl(e) {
535
- this.$$set({ gamepagemodalurl: e }), l();
536
- }
537
- get showgamename() {
538
- return this.$$.ctx[13];
539
- }
540
- set showgamename(e) {
541
- this.$$set({ showgamename: e }), l();
542
- }
543
- get visiblegames() {
544
- return this.$$.ctx[14];
545
- }
546
- set visiblegames(e) {
547
- this.$$set({ visiblegames: e }), l();
548
- }
549
- get favorites() {
550
- return this.$$.ctx[15];
551
- }
552
- set favorites(e) {
553
- this.$$set({ favorites: e }), l();
554
- }
555
- get lastplayedperiod() {
556
- return this.$$.ctx[22];
557
- }
558
- set lastplayedperiod(e) {
559
- this.$$set({ lastplayedperiod: e }), l();
560
- }
561
- get lastplayedorder() {
562
- return this.$$.ctx[23];
563
- }
564
- set lastplayedorder(e) {
565
- this.$$set({ lastplayedorder: e }), l();
566
- }
567
- get lastplayedlimit() {
568
- return this.$$.ctx[24];
569
- }
570
- set lastplayedlimit(e) {
571
- this.$$set({ lastplayedlimit: e }), l();
572
- }
573
- get casinomygames() {
574
- return this.$$.ctx[16];
575
- }
576
- set casinomygames(e) {
577
- this.$$set({ casinomygames: e }), l();
578
- }
579
- get lastplayedunique() {
580
- return this.$$.ctx[25];
581
- }
582
- set lastplayedunique(e) {
583
- this.$$set({ lastplayedunique: e }), l();
584
- }
585
- get fetchviaevent() {
586
- return this.$$.ctx[17];
587
- }
588
- set fetchviaevent(e) {
589
- this.$$set({ fetchviaevent: e }), l();
590
- }
591
- get mbsource() {
592
- return this.$$.ctx[18];
593
- }
594
- set mbsource(e) {
595
- this.$$set({ mbsource: e }), l();
596
- }
597
- }
598
- ie(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
599
- export {
600
- Pe as default
601
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-ChNOJ2MK.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};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("./CasinoGamesCategorySection-k99QzULe.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(n){let e;return{c(){e=t.element("casino-games-category-section"),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[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),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,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),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[16])},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]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",a[8]),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]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,E=s.gamepagemodalurl),"showgamename"in s&&a(13,M=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,b,v,R,A,E,M,k,D,S,F,q,g,O,i,P,L,C,j,p]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},Q,[-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 clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-ChNOJ2MK.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;