@everymatrix/casino-most-played-section 1.54.6 → 1.54.9

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.
@@ -0,0 +1,598 @@
1
+ import { a as ee, $ as te, S as se, i as ae, f as l, s as ne, B as ie, b as oe, n as H, d as M, h as S, j as J, k as N, e as L, o as le, v as me, w as re, g as ge, m as ce, F as n, C as de } from "./CasinoFilter-DFZ3WYCN.js";
2
+ function I(a, e) {
3
+ ee(a, e);
4
+ }
5
+ function ue(a) {
6
+ te.set(a);
7
+ }
8
+ const B = {
9
+ en: {
10
+ noGames: "No games in most played"
11
+ },
12
+ "zh-hk": {
13
+ noGames: "No games in most played"
14
+ },
15
+ de: {
16
+ noGames: "No games in most played"
17
+ },
18
+ it: {
19
+ noGames: "No games in most played"
20
+ },
21
+ fr: {
22
+ noGames: "No games in most played"
23
+ },
24
+ es: {
25
+ noGames: "No hay juegos en más jugados."
26
+ },
27
+ tr: {
28
+ noGames: "En çok oynananlarda oyun yok"
29
+ },
30
+ ru: {
31
+ noGames: "No games in most played"
32
+ },
33
+ ro: {
34
+ noGames: "No games in most played"
35
+ },
36
+ hr: {
37
+ noGames: "Nema igara u najigranijim"
38
+ },
39
+ hu: {
40
+ noGames: "No games in most played"
41
+ },
42
+ pl: {
43
+ noGames: "No games in most played"
44
+ },
45
+ pt: {
46
+ noGames: "No games in most played"
47
+ },
48
+ sl: {
49
+ noGames: "No games in most played"
50
+ },
51
+ sr: {
52
+ noGames: "No games in most played"
53
+ },
54
+ "pt-br": {
55
+ noGames: "Não há jogos nos mais jogados"
56
+ },
57
+ "es-mx": {
58
+ noGames: "No hay juegos en los más jugados"
59
+ },
60
+ "en-us": {
61
+ noGames: "No games in most played"
62
+ }
63
+ };
64
+ if (typeof window != "undefined") {
65
+ let a = function(e) {
66
+ return function(...s) {
67
+ try {
68
+ return e.apply(this, s);
69
+ } catch (i) {
70
+ 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"))
71
+ return !1;
72
+ throw i;
73
+ }
74
+ };
75
+ };
76
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-CX7b8KGX.js").then(({ default: e }) => {
77
+ !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
78
+ });
79
+ }
80
+ function fe(a) {
81
+ oe(a, "svelte-14zqglz", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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))}");
82
+ }
83
+ function he(a) {
84
+ let e;
85
+ return {
86
+ c() {
87
+ e = N("casino-games-category-section"), n(
88
+ e,
89
+ "session",
90
+ /*session*/
91
+ a[4]
92
+ ), n(
93
+ e,
94
+ "userid",
95
+ /*userid*/
96
+ a[5]
97
+ ), n(
98
+ e,
99
+ "endpoint",
100
+ /*endpoint*/
101
+ a[0]
102
+ ), n(
103
+ e,
104
+ "datasource",
105
+ /*datasource*/
106
+ a[1]
107
+ ), n(
108
+ e,
109
+ "lang",
110
+ /*lang*/
111
+ a[3]
112
+ ), n(
113
+ e,
114
+ "currency",
115
+ /*currency*/
116
+ a[2]
117
+ ), n(
118
+ e,
119
+ "favorites",
120
+ /*favorites*/
121
+ a[14]
122
+ ), n(
123
+ e,
124
+ "fetchviaevent",
125
+ /*fetchviaevent*/
126
+ a[16]
127
+ ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
128
+ e,
129
+ "showgamename",
130
+ /*showgamename*/
131
+ a[12]
132
+ ), n(
133
+ e,
134
+ "clientstyling",
135
+ /*clientstyling*/
136
+ a[6]
137
+ ), n(
138
+ e,
139
+ "clientstylingurl",
140
+ /*clientstylingurl*/
141
+ a[7]
142
+ ), n(
143
+ e,
144
+ "livecasino",
145
+ /*livecasino*/
146
+ a[8]
147
+ ), n(
148
+ e,
149
+ "visiblegames",
150
+ /*visiblegames*/
151
+ a[13]
152
+ ), n(
153
+ e,
154
+ "gamepagemodalurl",
155
+ /*gamepagemodalurl*/
156
+ a[11]
157
+ ), n(
158
+ e,
159
+ "integratedgameframedesktop",
160
+ /*integratedgameframedesktop*/
161
+ a[10]
162
+ ), n(
163
+ e,
164
+ "integratedgameframemobile",
165
+ /*integratedgameframemobile*/
166
+ a[9]
167
+ ), n(
168
+ e,
169
+ "casinomygames",
170
+ /*casinomygames*/
171
+ a[15]
172
+ );
173
+ },
174
+ m(s, i) {
175
+ S(s, e, i);
176
+ },
177
+ p(s, i) {
178
+ i[0] & /*session*/
179
+ 16 && n(
180
+ e,
181
+ "session",
182
+ /*session*/
183
+ s[4]
184
+ ), i[0] & /*userid*/
185
+ 32 && n(
186
+ e,
187
+ "userid",
188
+ /*userid*/
189
+ s[5]
190
+ ), i[0] & /*endpoint*/
191
+ 1 && n(
192
+ e,
193
+ "endpoint",
194
+ /*endpoint*/
195
+ s[0]
196
+ ), i[0] & /*datasource*/
197
+ 2 && n(
198
+ e,
199
+ "datasource",
200
+ /*datasource*/
201
+ s[1]
202
+ ), i[0] & /*lang*/
203
+ 8 && n(
204
+ e,
205
+ "lang",
206
+ /*lang*/
207
+ s[3]
208
+ ), i[0] & /*currency*/
209
+ 4 && n(
210
+ e,
211
+ "currency",
212
+ /*currency*/
213
+ s[2]
214
+ ), i[0] & /*favorites*/
215
+ 16384 && n(
216
+ e,
217
+ "favorites",
218
+ /*favorites*/
219
+ s[14]
220
+ ), i[0] & /*fetchviaevent*/
221
+ 65536 && n(
222
+ e,
223
+ "fetchviaevent",
224
+ /*fetchviaevent*/
225
+ s[16]
226
+ ), i[0] & /*showgamename*/
227
+ 4096 && n(
228
+ e,
229
+ "showgamename",
230
+ /*showgamename*/
231
+ s[12]
232
+ ), i[0] & /*clientstyling*/
233
+ 64 && n(
234
+ e,
235
+ "clientstyling",
236
+ /*clientstyling*/
237
+ s[6]
238
+ ), i[0] & /*clientstylingurl*/
239
+ 128 && n(
240
+ e,
241
+ "clientstylingurl",
242
+ /*clientstylingurl*/
243
+ s[7]
244
+ ), i[0] & /*livecasino*/
245
+ 256 && n(
246
+ e,
247
+ "livecasino",
248
+ /*livecasino*/
249
+ s[8]
250
+ ), i[0] & /*visiblegames*/
251
+ 8192 && n(
252
+ e,
253
+ "visiblegames",
254
+ /*visiblegames*/
255
+ s[13]
256
+ ), i[0] & /*gamepagemodalurl*/
257
+ 2048 && n(
258
+ e,
259
+ "gamepagemodalurl",
260
+ /*gamepagemodalurl*/
261
+ s[11]
262
+ ), i[0] & /*integratedgameframedesktop*/
263
+ 1024 && n(
264
+ e,
265
+ "integratedgameframedesktop",
266
+ /*integratedgameframedesktop*/
267
+ s[10]
268
+ ), i[0] & /*integratedgameframemobile*/
269
+ 512 && n(
270
+ e,
271
+ "integratedgameframemobile",
272
+ /*integratedgameframemobile*/
273
+ s[9]
274
+ ), i[0] & /*casinomygames*/
275
+ 32768 && n(
276
+ e,
277
+ "casinomygames",
278
+ /*casinomygames*/
279
+ s[15]
280
+ );
281
+ },
282
+ d(s) {
283
+ s && M(e);
284
+ }
285
+ };
286
+ }
287
+ function ye(a) {
288
+ let e, s = (
289
+ /*$_*/
290
+ a[19]("noGames") + ""
291
+ ), i;
292
+ return {
293
+ c() {
294
+ e = N("p"), i = ce(s), L(e, "class", "SearchLoading");
295
+ },
296
+ m(r, m) {
297
+ S(r, e, m), J(e, i);
298
+ },
299
+ p(r, m) {
300
+ m[0] & /*$_*/
301
+ 524288 && s !== (s = /*$_*/
302
+ r[19]("noGames") + "") && ge(i, s);
303
+ },
304
+ d(r) {
305
+ r && M(e);
306
+ }
307
+ };
308
+ }
309
+ function ve(a) {
310
+ let e, s;
311
+ function i(g, c) {
312
+ return (
313
+ /*mostPlayedEmpty*/
314
+ g[18] ? ye : he
315
+ );
316
+ }
317
+ let r = i(a), m = r(a);
318
+ return {
319
+ c() {
320
+ e = N("div"), s = N("div"), m.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
321
+ },
322
+ m(g, c) {
323
+ S(g, e, c), J(e, s), m.m(s, null), a[23](e);
324
+ },
325
+ p(g, c) {
326
+ r === (r = i(g)) && m ? m.p(g, c) : (m.d(1), m = r(g), m && (m.c(), m.m(s, null)));
327
+ },
328
+ i: H,
329
+ o: H,
330
+ d(g) {
331
+ g && M(e), m.d(), a[23](null);
332
+ }
333
+ };
334
+ }
335
+ function be(a, e, s) {
336
+ let i;
337
+ le(a, de, (t) => s(19, i = t));
338
+ let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: p = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: A = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: O = "" } = e, { visiblegames: C } = e, { favorites: T = "" } = e, { translationurl: k = "" } = e, { casinomygames: P = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: R = "true" } = e, Y = window.navigator.userAgent;
339
+ const K = () => {
340
+ fetch(k).then((o) => o.json()).then((o) => {
341
+ Object.keys(o).forEach((d) => {
342
+ I(d, o[d]);
343
+ });
344
+ }).catch((o) => {
345
+ console.log(o);
346
+ });
347
+ };
348
+ Object.keys(B).forEach((t) => {
349
+ I(t, B[t]);
350
+ });
351
+ let G = [], U, z = !1, h;
352
+ const Q = (t) => {
353
+ let o = new URL(`${r}/v1/player/${v}/games/most-played`);
354
+ 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);
355
+ let d = t.device;
356
+ return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), U = _ ? o : o.href, new Promise((u, y) => {
357
+ fetch(U).then((f) => f.json()).then((f) => {
358
+ f.items = f.items.filter(($) => {
359
+ let q = !0;
360
+ return $.gameCode == "OddsMatrix2" && (f.count--, q = !1), q;
361
+ }), u(f);
362
+ }).catch((f) => {
363
+ console.error(f), y(f);
364
+ });
365
+ });
366
+ }, V = () => {
367
+ Q({
368
+ limit: 100,
369
+ device: me(Y),
370
+ rounds: E
371
+ }).then((t) => {
372
+ if (t.count > 0) {
373
+ let o = [];
374
+ t.items.forEach((d) => {
375
+ let u = new URL(`${r}/v1/casino/games/${d.gameId}`);
376
+ u.searchParams.append("datasource", m), _ ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
377
+ }), Promise.all(o).then((d) => {
378
+ G = d.filter((u) => !("error" in u)).map((u) => u[0]), P === "true" && (G = G.slice(0, JSON.parse(C))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
379
+ });
380
+ } else
381
+ s(18, z = !0);
382
+ });
383
+ }, W = () => {
384
+ ue(c);
385
+ }, X = () => {
386
+ let t = document.createElement("style");
387
+ t.innerHTML = b, h.appendChild(t);
388
+ }, Z = () => {
389
+ let t = document.createElement("style");
390
+ fetch(new URL(w)).then((o) => o.text()).then((o) => {
391
+ t.innerHTML = o, setTimeout(
392
+ () => {
393
+ h.appendChild(t);
394
+ },
395
+ 1
396
+ );
397
+ });
398
+ };
399
+ function x(t) {
400
+ re[t ? "unshift" : "push"](() => {
401
+ h = t, s(17, h);
402
+ });
403
+ }
404
+ return a.$$set = (t) => {
405
+ "endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, p = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, A = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, D = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, C = t.visiblegames), "favorites" in t && s(14, T = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, P = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, E = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
406
+ }, a.$$.update = () => {
407
+ a.$$.dirty[0] & /*endpoint, userid, lang*/
408
+ 41 && r && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
409
+ 131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
410
+ 131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
411
+ 1048576 && k && K(), a.$$.dirty[0] & /*lang*/
412
+ 8 && c && W();
413
+ }, [
414
+ r,
415
+ m,
416
+ g,
417
+ c,
418
+ p,
419
+ v,
420
+ b,
421
+ w,
422
+ _,
423
+ A,
424
+ F,
425
+ D,
426
+ O,
427
+ C,
428
+ T,
429
+ P,
430
+ R,
431
+ h,
432
+ z,
433
+ i,
434
+ k,
435
+ j,
436
+ E,
437
+ x
438
+ ];
439
+ }
440
+ class we extends se {
441
+ constructor(e) {
442
+ super(), ae(
443
+ this,
444
+ e,
445
+ be,
446
+ ve,
447
+ ne,
448
+ {
449
+ endpoint: 0,
450
+ datasource: 1,
451
+ currency: 2,
452
+ lang: 3,
453
+ session: 4,
454
+ userid: 5,
455
+ clientstyling: 6,
456
+ clientstylingurl: 7,
457
+ livecasino: 8,
458
+ integratedgameframemobile: 9,
459
+ integratedgameframedesktop: 10,
460
+ gamepagemodalurl: 11,
461
+ showgamename: 12,
462
+ visiblegames: 13,
463
+ favorites: 14,
464
+ translationurl: 20,
465
+ casinomygames: 15,
466
+ mostplayedperiod: 21,
467
+ mostplayedrounds: 22,
468
+ fetchviaevent: 16
469
+ },
470
+ fe,
471
+ [-1, -1]
472
+ );
473
+ }
474
+ get endpoint() {
475
+ return this.$$.ctx[0];
476
+ }
477
+ set endpoint(e) {
478
+ this.$$set({ endpoint: e }), l();
479
+ }
480
+ get datasource() {
481
+ return this.$$.ctx[1];
482
+ }
483
+ set datasource(e) {
484
+ this.$$set({ datasource: e }), l();
485
+ }
486
+ get currency() {
487
+ return this.$$.ctx[2];
488
+ }
489
+ set currency(e) {
490
+ this.$$set({ currency: e }), l();
491
+ }
492
+ get lang() {
493
+ return this.$$.ctx[3];
494
+ }
495
+ set lang(e) {
496
+ this.$$set({ lang: e }), l();
497
+ }
498
+ get session() {
499
+ return this.$$.ctx[4];
500
+ }
501
+ set session(e) {
502
+ this.$$set({ session: e }), l();
503
+ }
504
+ get userid() {
505
+ return this.$$.ctx[5];
506
+ }
507
+ set userid(e) {
508
+ this.$$set({ userid: e }), l();
509
+ }
510
+ get clientstyling() {
511
+ return this.$$.ctx[6];
512
+ }
513
+ set clientstyling(e) {
514
+ this.$$set({ clientstyling: e }), l();
515
+ }
516
+ get clientstylingurl() {
517
+ return this.$$.ctx[7];
518
+ }
519
+ set clientstylingurl(e) {
520
+ this.$$set({ clientstylingurl: e }), l();
521
+ }
522
+ get livecasino() {
523
+ return this.$$.ctx[8];
524
+ }
525
+ set livecasino(e) {
526
+ this.$$set({ livecasino: e }), l();
527
+ }
528
+ get integratedgameframemobile() {
529
+ return this.$$.ctx[9];
530
+ }
531
+ set integratedgameframemobile(e) {
532
+ this.$$set({ integratedgameframemobile: e }), l();
533
+ }
534
+ get integratedgameframedesktop() {
535
+ return this.$$.ctx[10];
536
+ }
537
+ set integratedgameframedesktop(e) {
538
+ this.$$set({ integratedgameframedesktop: e }), l();
539
+ }
540
+ get gamepagemodalurl() {
541
+ return this.$$.ctx[11];
542
+ }
543
+ set gamepagemodalurl(e) {
544
+ this.$$set({ gamepagemodalurl: e }), l();
545
+ }
546
+ get showgamename() {
547
+ return this.$$.ctx[12];
548
+ }
549
+ set showgamename(e) {
550
+ this.$$set({ showgamename: e }), l();
551
+ }
552
+ get visiblegames() {
553
+ return this.$$.ctx[13];
554
+ }
555
+ set visiblegames(e) {
556
+ this.$$set({ visiblegames: e }), l();
557
+ }
558
+ get favorites() {
559
+ return this.$$.ctx[14];
560
+ }
561
+ set favorites(e) {
562
+ this.$$set({ favorites: e }), l();
563
+ }
564
+ get translationurl() {
565
+ return this.$$.ctx[20];
566
+ }
567
+ set translationurl(e) {
568
+ this.$$set({ translationurl: e }), l();
569
+ }
570
+ get casinomygames() {
571
+ return this.$$.ctx[15];
572
+ }
573
+ set casinomygames(e) {
574
+ this.$$set({ casinomygames: e }), l();
575
+ }
576
+ get mostplayedperiod() {
577
+ return this.$$.ctx[21];
578
+ }
579
+ set mostplayedperiod(e) {
580
+ this.$$set({ mostplayedperiod: e }), l();
581
+ }
582
+ get mostplayedrounds() {
583
+ return this.$$.ctx[22];
584
+ }
585
+ set mostplayedrounds(e) {
586
+ this.$$set({ mostplayedrounds: e }), l();
587
+ }
588
+ get fetchviaevent() {
589
+ return this.$$.ctx[16];
590
+ }
591
+ set fetchviaevent(e) {
592
+ this.$$set({ fetchviaevent: e }), l();
593
+ }
594
+ }
595
+ ie(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
596
+ export {
597
+ we as default
598
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-DsPFGyLq.cjs");function V({withLocale:e,translations:r}){t.$locale.subscribe(n=>{n==null&&(t.$dictionary.set(r),t.$locale.set(e))})}function D(e,r){t.addMessages(e,r)}const E={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-kh3a1g",':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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, #D0046C));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, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.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 j(e,r,n){const o=e.slice();return o[23]=r[n],o}function q(e){let r,n,o,l,s,d,m,c,y,g,S,w=e[4]("sortby")+"",h,A,_,I,z=(e[3]||e[4]("all"))+"",M,O,k,v,C,F,N,a,i,b,H,L,T,Z=t.ensure_array_like(Object.values(e[5])),f=[];for(let p=0;p<Z.length;p+=1)f[p]=P(j(e,Z,p));return{c(){r=t.element("div"),n=t.element("div"),o=t.element("div"),l=t.svg_element("svg"),s=t.svg_element("g"),d=t.svg_element("path"),m=t.svg_element("path"),c=t.svg_element("path"),y=t.space(),g=t.element("div"),S=t.element("span"),h=t.text(w),A=t.space(),_=t.element("div"),I=t.element("span"),M=t.text(z),O=t.space(),k=t.element("span"),v=t.svg_element("svg"),C=t.svg_element("path"),a=t.space(),i=t.element("div"),b=t.element("ul");for(let p=0;p<f.length;p+=1)f[p].c();t.attr(d,"id","Path_5267"),t.attr(d,"data-name","Path 5267"),t.attr(d,"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(d,"transform","translate(-206.448 0)"),t.attr(d,"fill","#fff"),t.attr(m,"id","Path_5268"),t.attr(m,"data-name","Path 5268"),t.attr(m,"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(m,"transform","translate(0 0)"),t.attr(m,"fill","#fff"),t.attr(c,"id","Path_5269"),t.attr(c,"data-name","Path 5269"),t.attr(c,"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(c,"transform","translate(-412.896 0)"),t.attr(c,"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(S,"class","SorterName"),t.attr(_,"class","SorterValueContainer"),t.attr(g,"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(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(k,"class",F="TriangleInactive "+(e[1]?"TriangleActive":"")),t.attr(n,"class",N="SorterSelector "+(e[1]?"SorterSelectorOpen":"")),t.attr(b,"class","SorterDropdown"),t.attr(i,"class",H="SorterDropdownContainer "+(e[1]?"SorterOpen":"")),t.attr(r,"class","SorterContainer")},m(p,x){t.insert(p,r,x),t.append(r,n),t.append(n,o),t.append(o,l),t.append(l,s),t.append(s,d),t.append(s,m),t.append(s,c),t.append(o,y),t.append(o,g),t.append(g,S),t.append(S,h),t.append(g,A),t.append(g,_),t.append(_,I),t.append(I,M),t.append(n,O),t.append(n,k),t.append(k,v),t.append(v,C),t.append(r,a),t.append(r,i),t.append(i,b);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(b,null);L||(T=t.listen(n,"click",e[13]),L=!0)},p(p,x){if(x&16&&w!==(w=p[4]("sortby")+"")&&t.set_data(h,w),x&24&&z!==(z=(p[3]||p[4]("all"))+"")&&t.set_data(M,z),x&2&&F!==(F="TriangleInactive "+(p[1]?"TriangleActive":""))&&t.attr(k,"class",F),x&2&&N!==(N="SorterSelector "+(p[1]?"SorterSelectorOpen":""))&&t.attr(n,"class",N),x&120){Z=t.ensure_array_like(Object.values(p[5]));let u;for(u=0;u<Z.length;u+=1){const B=j(p,Z,u);f[u]?f[u].p(B,x):(f[u]=P(B),f[u].c(),f[u].m(b,null))}for(;u<f.length;u+=1)f[u].d(1);f.length=Z.length}x&2&&H!==(H="SorterDropdownContainer "+(p[1]?"SorterOpen":""))&&t.attr(i,"class",H)},d(p){p&&t.detach(r),t.destroy_each(f,p),L=!1,T()}}}function P(e){let r,n,o,l,s,d,m,c,y,g,S;function w(){return e[14](e[23])}return{c(){r=t.element("li"),n=t.element("label"),o=t.element("input"),s=t.space(),d=t.element("span"),m=t.space(),c=t.element("span"),c.textContent=`${e[23]}`,y=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(d,"class","SortersCheckmark"),t.attr(n,"class","SorterLabel CustomRadioButton"),t.attr(r,"class","SorterItem"),r.value=e[23]},m(h,A){t.insert(h,r,A),t.append(r,n),t.append(n,o),t.append(n,s),t.append(n,d),t.append(n,m),t.append(n,c),t.append(r,y),g||(S=t.listen(o,"click",w),g=!0)},p(h,A){e=h,A&24&&l!==(l=e[3]==e[23]?!0:e[3]==null&&e[23]==e[4]("all"))&&(o.checked=l)},d(h){h&&t.detach(r),g=!1,S()}}}function U(e){let r;function n(s,d){if(!s[2])return q}let o=n(e),l=o&&o(e);return{c(){r=t.element("div"),l&&l.c()},m(s,d){t.insert(s,r,d),l&&l.m(r,null),e[15](r)},p(s,[d]){o===(o=n(s))&&l?l.p(s,d):(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[15](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:d=""}=r,{clientstylingurl:m=""}=r,{categoryid:c=""}=r,y,g=!1,S=!0,w="",h="All";V({withLocale:"en",translations:{}});const A=()=>{fetch(s).then(i=>i.json()).then(i=>{Object.keys(i).forEach(b=>{D(b,i[b])})}).catch(i=>{console.log(i)})};Object.keys(E).forEach(a=>{D(a,E[a])});const _={All:o("all"),name:o("az"),isNew:o("newest"),"advancedTags(name(hot))":o("hottest")},I=()=>{let a=document.createElement("style");a.innerHTML=d,y.appendChild(a)},z=()=>{let a=document.createElement("style");fetch(new URL(m)).then(i=>i.text()).then(i=>{a.innerHTML=i,setTimeout(()=>{y.appendChild(a)},1)})},M=()=>{var i;n(3,h="All"),n(2,S=!1),n(1,g=!1);let a=(i=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:i[c];a?n(3,h=a):n(3,h="All"),n(3,h=_[a])},O=a=>{n(3,h=a);let i=localStorage.getItem("vendorSortingBy");w=a;for(let b in _)if(_[b]===a){w=b;break}i==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:w})):(i=JSON.parse(i),i[c]=w,localStorage.setItem("vendorSortingBy",JSON.stringify(i))),window.postMessage({type:"ApplySorter",sortBy:w,itemId:c},window.location.href),n(1,g=!g)},k=()=>{n(1,g=!g),window.postMessage({type:"SortingOpened"},window.location.href)},v=a=>{a.data.type=="FilterOpened"&&n(1,g=!1)};t.onMount(()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)}));const C=()=>k(),F=a=>O(a);function N(a){t.binding_callbacks[a?"unshift":"push"](()=>{y=a,n(0,y)})}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,d=a.clientstyling),"clientstylingurl"in a&&n(11,m=a.clientstylingurl),"categoryid"in a&&n(12,c=a.categoryid)},e.$$.update=()=>{e.$$.dirty&4096&&c&&M(),e.$$.dirty&1025&&d&&y&&I(),e.$$.dirty&2049&&m&&y&&z(),e.$$.dirty&512&&s&&A()},[y,g,S,h,o,_,O,k,l,s,d,m,c,C,F,N]}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},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()}}t.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{}},[],[],!0);exports.default=R;