@everymatrix/casino-most-played-section 1.43.4 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoFilter-BA6RsRdQ.js +4975 -0
- package/components/CasinoFilter-BcZN9Fwc.cjs +5 -0
- package/components/CasinoGameThumbnail-DP_N0Utt.js +4404 -0
- package/components/CasinoGameThumbnail-KSNIbeh_.cjs +47 -0
- package/components/CasinoGamesCategorySection-BqPidgQt.js +3022 -0
- package/components/CasinoGamesCategorySection-C-EDsc7x.cjs +1 -0
- package/components/CasinoMostPlayedSection-DItMviDj.js +595 -0
- package/components/CasinoMostPlayedSection-Dh2nzc19.cjs +1 -0
- package/components/CasinoSort-Cj2B7na1.cjs +1 -0
- package/components/CasinoSort-D-ElrcU-.js +425 -0
- package/es2015/casino-most-played-section.cjs +1 -0
- package/es2015/casino-most-played-section.js +16 -0
- package/package.json +17 -32
- package/CHANGELOG.md +0 -7
- package/README.md +0 -30
- package/dist/casino-most-played-section.js +0 -1466
- package/dist/casino-most-played-section.js.map +0 -1
- package/index.html +0 -37
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -59
- package/src/CasinoMostPlayedSection.svelte +0 -232
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -53
- package/stories/CasinoMostPlayedSection.stories.js +0 -13
- package/tsconfig.json +0 -6
@@ -0,0 +1,595 @@
|
|
1
|
+
import { a as ee, $ as te, S as se, i as ae, f as o, c as ne, s as ie, b as le, e as N, h as E, k as L, l as J, o as H, p as M, q as oe, x as re, y as me, F as n, t as ce, m as ge, B as de } from "./CasinoFilter-BA6RsRdQ.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
|
+
};
|
61
|
+
if (typeof window != "undefined") {
|
62
|
+
let a = function(e) {
|
63
|
+
return function(...s) {
|
64
|
+
try {
|
65
|
+
return e.apply(this, s);
|
66
|
+
} catch (i) {
|
67
|
+
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"))
|
68
|
+
return !1;
|
69
|
+
throw i;
|
70
|
+
}
|
71
|
+
};
|
72
|
+
};
|
73
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-BqPidgQt.js").then(({ default: e }) => {
|
74
|
+
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
75
|
+
});
|
76
|
+
}
|
77
|
+
function fe(a) {
|
78
|
+
le(a, "svelte-lpws4r", ".svelte-lpws4r,.svelte-lpws4r::before,.svelte-lpws4r::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section.svelte-lpws4r{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
|
79
|
+
}
|
80
|
+
function he(a) {
|
81
|
+
let e;
|
82
|
+
return {
|
83
|
+
c() {
|
84
|
+
e = N("casino-games-category-section"), n(
|
85
|
+
e,
|
86
|
+
"session",
|
87
|
+
/*session*/
|
88
|
+
a[4]
|
89
|
+
), n(
|
90
|
+
e,
|
91
|
+
"userid",
|
92
|
+
/*userid*/
|
93
|
+
a[5]
|
94
|
+
), n(
|
95
|
+
e,
|
96
|
+
"endpoint",
|
97
|
+
/*endpoint*/
|
98
|
+
a[0]
|
99
|
+
), n(
|
100
|
+
e,
|
101
|
+
"datasource",
|
102
|
+
/*datasource*/
|
103
|
+
a[1]
|
104
|
+
), n(
|
105
|
+
e,
|
106
|
+
"lang",
|
107
|
+
/*lang*/
|
108
|
+
a[3]
|
109
|
+
), n(
|
110
|
+
e,
|
111
|
+
"currency",
|
112
|
+
/*currency*/
|
113
|
+
a[2]
|
114
|
+
), n(
|
115
|
+
e,
|
116
|
+
"favorites",
|
117
|
+
/*favorites*/
|
118
|
+
a[14]
|
119
|
+
), n(
|
120
|
+
e,
|
121
|
+
"fetchviaevent",
|
122
|
+
/*fetchviaevent*/
|
123
|
+
a[16]
|
124
|
+
), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer svelte-lpws4r"), n(
|
125
|
+
e,
|
126
|
+
"showgamename",
|
127
|
+
/*showgamename*/
|
128
|
+
a[12]
|
129
|
+
), n(
|
130
|
+
e,
|
131
|
+
"clientstyling",
|
132
|
+
/*clientstyling*/
|
133
|
+
a[6]
|
134
|
+
), n(
|
135
|
+
e,
|
136
|
+
"clientstylingurl",
|
137
|
+
/*clientstylingurl*/
|
138
|
+
a[7]
|
139
|
+
), n(
|
140
|
+
e,
|
141
|
+
"livecasino",
|
142
|
+
/*livecasino*/
|
143
|
+
a[8]
|
144
|
+
), n(
|
145
|
+
e,
|
146
|
+
"visiblegames",
|
147
|
+
/*visiblegames*/
|
148
|
+
a[13]
|
149
|
+
), n(
|
150
|
+
e,
|
151
|
+
"gamepagemodalurl",
|
152
|
+
/*gamepagemodalurl*/
|
153
|
+
a[11]
|
154
|
+
), n(
|
155
|
+
e,
|
156
|
+
"integratedgameframedesktop",
|
157
|
+
/*integratedgameframedesktop*/
|
158
|
+
a[10]
|
159
|
+
), n(
|
160
|
+
e,
|
161
|
+
"integratedgameframemobile",
|
162
|
+
/*integratedgameframemobile*/
|
163
|
+
a[9]
|
164
|
+
), n(
|
165
|
+
e,
|
166
|
+
"casinomygames",
|
167
|
+
/*casinomygames*/
|
168
|
+
a[15]
|
169
|
+
);
|
170
|
+
},
|
171
|
+
m(s, i) {
|
172
|
+
L(s, e, i);
|
173
|
+
},
|
174
|
+
p(s, i) {
|
175
|
+
i[0] & /*session*/
|
176
|
+
16 && n(
|
177
|
+
e,
|
178
|
+
"session",
|
179
|
+
/*session*/
|
180
|
+
s[4]
|
181
|
+
), i[0] & /*userid*/
|
182
|
+
32 && n(
|
183
|
+
e,
|
184
|
+
"userid",
|
185
|
+
/*userid*/
|
186
|
+
s[5]
|
187
|
+
), i[0] & /*endpoint*/
|
188
|
+
1 && n(
|
189
|
+
e,
|
190
|
+
"endpoint",
|
191
|
+
/*endpoint*/
|
192
|
+
s[0]
|
193
|
+
), i[0] & /*datasource*/
|
194
|
+
2 && n(
|
195
|
+
e,
|
196
|
+
"datasource",
|
197
|
+
/*datasource*/
|
198
|
+
s[1]
|
199
|
+
), i[0] & /*lang*/
|
200
|
+
8 && n(
|
201
|
+
e,
|
202
|
+
"lang",
|
203
|
+
/*lang*/
|
204
|
+
s[3]
|
205
|
+
), i[0] & /*currency*/
|
206
|
+
4 && n(
|
207
|
+
e,
|
208
|
+
"currency",
|
209
|
+
/*currency*/
|
210
|
+
s[2]
|
211
|
+
), i[0] & /*favorites*/
|
212
|
+
16384 && n(
|
213
|
+
e,
|
214
|
+
"favorites",
|
215
|
+
/*favorites*/
|
216
|
+
s[14]
|
217
|
+
), i[0] & /*fetchviaevent*/
|
218
|
+
65536 && n(
|
219
|
+
e,
|
220
|
+
"fetchviaevent",
|
221
|
+
/*fetchviaevent*/
|
222
|
+
s[16]
|
223
|
+
), i[0] & /*showgamename*/
|
224
|
+
4096 && n(
|
225
|
+
e,
|
226
|
+
"showgamename",
|
227
|
+
/*showgamename*/
|
228
|
+
s[12]
|
229
|
+
), i[0] & /*clientstyling*/
|
230
|
+
64 && n(
|
231
|
+
e,
|
232
|
+
"clientstyling",
|
233
|
+
/*clientstyling*/
|
234
|
+
s[6]
|
235
|
+
), i[0] & /*clientstylingurl*/
|
236
|
+
128 && n(
|
237
|
+
e,
|
238
|
+
"clientstylingurl",
|
239
|
+
/*clientstylingurl*/
|
240
|
+
s[7]
|
241
|
+
), i[0] & /*livecasino*/
|
242
|
+
256 && n(
|
243
|
+
e,
|
244
|
+
"livecasino",
|
245
|
+
/*livecasino*/
|
246
|
+
s[8]
|
247
|
+
), i[0] & /*visiblegames*/
|
248
|
+
8192 && n(
|
249
|
+
e,
|
250
|
+
"visiblegames",
|
251
|
+
/*visiblegames*/
|
252
|
+
s[13]
|
253
|
+
), i[0] & /*gamepagemodalurl*/
|
254
|
+
2048 && n(
|
255
|
+
e,
|
256
|
+
"gamepagemodalurl",
|
257
|
+
/*gamepagemodalurl*/
|
258
|
+
s[11]
|
259
|
+
), i[0] & /*integratedgameframedesktop*/
|
260
|
+
1024 && n(
|
261
|
+
e,
|
262
|
+
"integratedgameframedesktop",
|
263
|
+
/*integratedgameframedesktop*/
|
264
|
+
s[10]
|
265
|
+
), i[0] & /*integratedgameframemobile*/
|
266
|
+
512 && n(
|
267
|
+
e,
|
268
|
+
"integratedgameframemobile",
|
269
|
+
/*integratedgameframemobile*/
|
270
|
+
s[9]
|
271
|
+
), i[0] & /*casinomygames*/
|
272
|
+
32768 && n(
|
273
|
+
e,
|
274
|
+
"casinomygames",
|
275
|
+
/*casinomygames*/
|
276
|
+
s[15]
|
277
|
+
);
|
278
|
+
},
|
279
|
+
d(s) {
|
280
|
+
s && M(e);
|
281
|
+
}
|
282
|
+
};
|
283
|
+
}
|
284
|
+
function ye(a) {
|
285
|
+
let e, s = (
|
286
|
+
/*$_*/
|
287
|
+
a[19]("noGames") + ""
|
288
|
+
), i;
|
289
|
+
return {
|
290
|
+
c() {
|
291
|
+
e = N("p"), i = ce(s), E(e, "class", "SearchLoading svelte-lpws4r");
|
292
|
+
},
|
293
|
+
m(m, r) {
|
294
|
+
L(m, e, r), J(e, i);
|
295
|
+
},
|
296
|
+
p(m, r) {
|
297
|
+
r[0] & /*$_*/
|
298
|
+
524288 && s !== (s = /*$_*/
|
299
|
+
m[19]("noGames") + "") && ge(i, s);
|
300
|
+
},
|
301
|
+
d(m) {
|
302
|
+
m && M(e);
|
303
|
+
}
|
304
|
+
};
|
305
|
+
}
|
306
|
+
function ve(a) {
|
307
|
+
let e, s;
|
308
|
+
function i(c, g) {
|
309
|
+
return (
|
310
|
+
/*mostPlayedEmpty*/
|
311
|
+
c[18] ? ye : he
|
312
|
+
);
|
313
|
+
}
|
314
|
+
let m = i(a), r = m(a);
|
315
|
+
return {
|
316
|
+
c() {
|
317
|
+
e = N("div"), s = N("div"), r.c(), E(s, "class", "casino-most-played-section svelte-lpws4r"), E(e, "class", "CasinoGamesCategorySectionContainer svelte-lpws4r");
|
318
|
+
},
|
319
|
+
m(c, g) {
|
320
|
+
L(c, e, g), J(e, s), r.m(s, null), a[23](e);
|
321
|
+
},
|
322
|
+
p(c, g) {
|
323
|
+
m === (m = i(c)) && r ? r.p(c, g) : (r.d(1), r = m(c), r && (r.c(), r.m(s, null)));
|
324
|
+
},
|
325
|
+
i: H,
|
326
|
+
o: H,
|
327
|
+
d(c) {
|
328
|
+
c && M(e), r.d(), a[23](null);
|
329
|
+
}
|
330
|
+
};
|
331
|
+
}
|
332
|
+
function be(a, e, s) {
|
333
|
+
let i;
|
334
|
+
oe(a, de, (t) => s(19, i = t));
|
335
|
+
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: c = "" } = e, { lang: g = "" } = e, { session: S = "" } = 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: P } = e, { favorites: T = "" } = e, { translationurl: k = "" } = e, { casinomygames: p = "false" } = e, { mostplayedperiod: C = "Last30Days" } = e, { mostplayedrounds: j = "10" } = e, { fetchviaevent: R = "true" } = e, Y = window.navigator.userAgent;
|
336
|
+
const K = () => {
|
337
|
+
fetch(k).then((l) => l.json()).then((l) => {
|
338
|
+
Object.keys(l).forEach((d) => {
|
339
|
+
I(d, l[d]);
|
340
|
+
});
|
341
|
+
}).catch((l) => {
|
342
|
+
console.log(l);
|
343
|
+
});
|
344
|
+
};
|
345
|
+
Object.keys(B).forEach((t) => {
|
346
|
+
I(t, B[t]);
|
347
|
+
});
|
348
|
+
let G = [], U, q = !1, h;
|
349
|
+
const Q = (t) => {
|
350
|
+
let l = new URL(`${m}/v1/player/${v}/games/most-played`);
|
351
|
+
t.limit && l.searchParams.append("limit", t.limit), t.order && l.searchParams.append("order", t.order), l.searchParams.append("expand", "games"), l.searchParams.append("period", C);
|
352
|
+
let d = t.device;
|
353
|
+
return d ? d === "PC" ? l.searchParams.append("device", "Desktop") : l.searchParams.append("device", "Mobile") : l.searchParams.append("device", "All"), t.rounds && l.searchParams.append("rounds", t.rounds), U = _ ? l : l.href, new Promise((u, y) => {
|
354
|
+
fetch(U).then((f) => f.json()).then((f) => {
|
355
|
+
f.items = f.items.filter(($) => {
|
356
|
+
let z = !0;
|
357
|
+
return $.gameCode == "OddsMatrix2" && (f.count--, z = !1), z;
|
358
|
+
}), u(f);
|
359
|
+
}).catch((f) => {
|
360
|
+
console.error(f), y(f);
|
361
|
+
});
|
362
|
+
});
|
363
|
+
}, V = () => {
|
364
|
+
Q({
|
365
|
+
limit: 100,
|
366
|
+
device: re(Y),
|
367
|
+
rounds: j
|
368
|
+
}).then((t) => {
|
369
|
+
if (t.count > 0) {
|
370
|
+
let l = [];
|
371
|
+
t.items.forEach((d) => {
|
372
|
+
let u = new URL(`${m}/v1/casino/games/${d.gameId}`);
|
373
|
+
u.searchParams.append("datasource", r), _ ? l.push(fetch(u.href).then((y) => y.json())) : l.push(fetch(u.href).then((y) => y.json()));
|
374
|
+
}), Promise.all(l).then((d) => {
|
375
|
+
G = d.filter((u) => !("error" in u)).map((u) => u[0]), p === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
|
376
|
+
});
|
377
|
+
} else
|
378
|
+
s(18, q = !0);
|
379
|
+
});
|
380
|
+
}, W = () => {
|
381
|
+
ue(g);
|
382
|
+
}, X = () => {
|
383
|
+
let t = document.createElement("style");
|
384
|
+
t.innerHTML = b, h.appendChild(t);
|
385
|
+
}, Z = () => {
|
386
|
+
let t = document.createElement("style");
|
387
|
+
fetch(new URL(w)).then((l) => l.text()).then((l) => {
|
388
|
+
t.innerHTML = l, setTimeout(
|
389
|
+
() => {
|
390
|
+
h.appendChild(t);
|
391
|
+
},
|
392
|
+
1
|
393
|
+
);
|
394
|
+
});
|
395
|
+
};
|
396
|
+
function x(t) {
|
397
|
+
me[t ? "unshift" : "push"](() => {
|
398
|
+
h = t, s(17, h);
|
399
|
+
});
|
400
|
+
}
|
401
|
+
return a.$$set = (t) => {
|
402
|
+
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, c = t.currency), "lang" in t && s(3, g = t.lang), "session" in t && s(4, S = 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, P = 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, C = t.mostplayedperiod), "mostplayedrounds" in t && s(22, j = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
|
403
|
+
}, a.$$.update = () => {
|
404
|
+
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
405
|
+
41 && m && v && g && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
406
|
+
131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
407
|
+
131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
|
408
|
+
1048576 && k && K(), a.$$.dirty[0] & /*lang*/
|
409
|
+
8 && g && W();
|
410
|
+
}, [
|
411
|
+
m,
|
412
|
+
r,
|
413
|
+
c,
|
414
|
+
g,
|
415
|
+
S,
|
416
|
+
v,
|
417
|
+
b,
|
418
|
+
w,
|
419
|
+
_,
|
420
|
+
A,
|
421
|
+
F,
|
422
|
+
D,
|
423
|
+
O,
|
424
|
+
P,
|
425
|
+
T,
|
426
|
+
p,
|
427
|
+
R,
|
428
|
+
h,
|
429
|
+
q,
|
430
|
+
i,
|
431
|
+
k,
|
432
|
+
C,
|
433
|
+
j,
|
434
|
+
x
|
435
|
+
];
|
436
|
+
}
|
437
|
+
class we extends se {
|
438
|
+
constructor(e) {
|
439
|
+
super(), ae(
|
440
|
+
this,
|
441
|
+
e,
|
442
|
+
be,
|
443
|
+
ve,
|
444
|
+
ie,
|
445
|
+
{
|
446
|
+
endpoint: 0,
|
447
|
+
datasource: 1,
|
448
|
+
currency: 2,
|
449
|
+
lang: 3,
|
450
|
+
session: 4,
|
451
|
+
userid: 5,
|
452
|
+
clientstyling: 6,
|
453
|
+
clientstylingurl: 7,
|
454
|
+
livecasino: 8,
|
455
|
+
integratedgameframemobile: 9,
|
456
|
+
integratedgameframedesktop: 10,
|
457
|
+
gamepagemodalurl: 11,
|
458
|
+
showgamename: 12,
|
459
|
+
visiblegames: 13,
|
460
|
+
favorites: 14,
|
461
|
+
translationurl: 20,
|
462
|
+
casinomygames: 15,
|
463
|
+
mostplayedperiod: 21,
|
464
|
+
mostplayedrounds: 22,
|
465
|
+
fetchviaevent: 16
|
466
|
+
},
|
467
|
+
fe,
|
468
|
+
[-1, -1]
|
469
|
+
);
|
470
|
+
}
|
471
|
+
get endpoint() {
|
472
|
+
return this.$$.ctx[0];
|
473
|
+
}
|
474
|
+
set endpoint(e) {
|
475
|
+
this.$$set({ endpoint: e }), o();
|
476
|
+
}
|
477
|
+
get datasource() {
|
478
|
+
return this.$$.ctx[1];
|
479
|
+
}
|
480
|
+
set datasource(e) {
|
481
|
+
this.$$set({ datasource: e }), o();
|
482
|
+
}
|
483
|
+
get currency() {
|
484
|
+
return this.$$.ctx[2];
|
485
|
+
}
|
486
|
+
set currency(e) {
|
487
|
+
this.$$set({ currency: e }), o();
|
488
|
+
}
|
489
|
+
get lang() {
|
490
|
+
return this.$$.ctx[3];
|
491
|
+
}
|
492
|
+
set lang(e) {
|
493
|
+
this.$$set({ lang: e }), o();
|
494
|
+
}
|
495
|
+
get session() {
|
496
|
+
return this.$$.ctx[4];
|
497
|
+
}
|
498
|
+
set session(e) {
|
499
|
+
this.$$set({ session: e }), o();
|
500
|
+
}
|
501
|
+
get userid() {
|
502
|
+
return this.$$.ctx[5];
|
503
|
+
}
|
504
|
+
set userid(e) {
|
505
|
+
this.$$set({ userid: e }), o();
|
506
|
+
}
|
507
|
+
get clientstyling() {
|
508
|
+
return this.$$.ctx[6];
|
509
|
+
}
|
510
|
+
set clientstyling(e) {
|
511
|
+
this.$$set({ clientstyling: e }), o();
|
512
|
+
}
|
513
|
+
get clientstylingurl() {
|
514
|
+
return this.$$.ctx[7];
|
515
|
+
}
|
516
|
+
set clientstylingurl(e) {
|
517
|
+
this.$$set({ clientstylingurl: e }), o();
|
518
|
+
}
|
519
|
+
get livecasino() {
|
520
|
+
return this.$$.ctx[8];
|
521
|
+
}
|
522
|
+
set livecasino(e) {
|
523
|
+
this.$$set({ livecasino: e }), o();
|
524
|
+
}
|
525
|
+
get integratedgameframemobile() {
|
526
|
+
return this.$$.ctx[9];
|
527
|
+
}
|
528
|
+
set integratedgameframemobile(e) {
|
529
|
+
this.$$set({ integratedgameframemobile: e }), o();
|
530
|
+
}
|
531
|
+
get integratedgameframedesktop() {
|
532
|
+
return this.$$.ctx[10];
|
533
|
+
}
|
534
|
+
set integratedgameframedesktop(e) {
|
535
|
+
this.$$set({ integratedgameframedesktop: e }), o();
|
536
|
+
}
|
537
|
+
get gamepagemodalurl() {
|
538
|
+
return this.$$.ctx[11];
|
539
|
+
}
|
540
|
+
set gamepagemodalurl(e) {
|
541
|
+
this.$$set({ gamepagemodalurl: e }), o();
|
542
|
+
}
|
543
|
+
get showgamename() {
|
544
|
+
return this.$$.ctx[12];
|
545
|
+
}
|
546
|
+
set showgamename(e) {
|
547
|
+
this.$$set({ showgamename: e }), o();
|
548
|
+
}
|
549
|
+
get visiblegames() {
|
550
|
+
return this.$$.ctx[13];
|
551
|
+
}
|
552
|
+
set visiblegames(e) {
|
553
|
+
this.$$set({ visiblegames: e }), o();
|
554
|
+
}
|
555
|
+
get favorites() {
|
556
|
+
return this.$$.ctx[14];
|
557
|
+
}
|
558
|
+
set favorites(e) {
|
559
|
+
this.$$set({ favorites: e }), o();
|
560
|
+
}
|
561
|
+
get translationurl() {
|
562
|
+
return this.$$.ctx[20];
|
563
|
+
}
|
564
|
+
set translationurl(e) {
|
565
|
+
this.$$set({ translationurl: e }), o();
|
566
|
+
}
|
567
|
+
get casinomygames() {
|
568
|
+
return this.$$.ctx[15];
|
569
|
+
}
|
570
|
+
set casinomygames(e) {
|
571
|
+
this.$$set({ casinomygames: e }), o();
|
572
|
+
}
|
573
|
+
get mostplayedperiod() {
|
574
|
+
return this.$$.ctx[21];
|
575
|
+
}
|
576
|
+
set mostplayedperiod(e) {
|
577
|
+
this.$$set({ mostplayedperiod: e }), o();
|
578
|
+
}
|
579
|
+
get mostplayedrounds() {
|
580
|
+
return this.$$.ctx[22];
|
581
|
+
}
|
582
|
+
set mostplayedrounds(e) {
|
583
|
+
this.$$set({ mostplayedrounds: e }), o();
|
584
|
+
}
|
585
|
+
get fetchviaevent() {
|
586
|
+
return this.$$.ctx[16];
|
587
|
+
}
|
588
|
+
set fetchviaevent(e) {
|
589
|
+
this.$$set({ fetchviaevent: e }), o();
|
590
|
+
}
|
591
|
+
}
|
592
|
+
ne(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
593
|
+
export {
|
594
|
+
we as default
|
595
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BcZN9Fwc.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={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"}};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-C-EDsc7x.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function W(n){t.append_styles(n,"svelte-lpws4r",".svelte-lpws4r,.svelte-lpws4r::before,.svelte-lpws4r::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section.svelte-lpws4r{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}")}function X(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[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),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 svelte-lpws4r"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},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]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),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,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading svelte-lpws4r")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section svelte-lpws4r"),t.attr(e,"class","CasinoGamesCategorySectionContainer svelte-lpws4r")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:C=""}=e,{userid:_=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:j="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:M=""}=e,{visiblegames:G}=e,{favorites:S=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:p="10"}=e,{fetchviaevent:A="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let k=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${_}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,h)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let T=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,T=!1),T}),d(g)}).catch(g=>{console.error(g),h(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:p}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(h=>h.json())):l.push(fetch(d.href).then(h=>h.json()))}),Promise.all(l).then(u=>{k=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(k=k.slice(0,JSON.parse(G))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,C=s.session),"userid"in s&&a(5,_=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,j=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,L=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,G=s.visiblegames),"favorites"in s&&a(14,S=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,p=s.mostplayedrounds),"fetchviaevent"in s&&a(16,A=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,C,_,y,v,b,j,E,L,M,G,S,N,A,f,O,i,w,P,p,K]}class U 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,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-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 livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoFilter-BcZN9Fwc.cjs");function V({withLocale:t,translations:r}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(r),e.$locale.set(t))})}function j(t,r){e.addMessages(t,r)}const D={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"}};function J(t){e.append_styles(t,"svelte-1rm2543",'.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543,.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543::before,.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.SorterContainer.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{background-color:var(--emfe-w-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.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{border-radius:5px 5px 0 0}.SorterMainArea.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{display:flex;align-items:center}.SorterMainArea.svelte-1rm2543 svg.svelte-1rm2543.svelte-1rm2543{margin-right:16px}.SorterName.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{display:flex;flex-direction:column}.SorterValueContainer.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{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.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{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.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543::-webkit-scrollbar{display:none}.SorterItem.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{position:relative}.SorterItem.svelte-1rm2543 label.svelte-1rm2543.svelte-1rm2543{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.svelte-1rm2543 input.svelte-1rm2543.svelte-1rm2543{cursor:pointer;margin-right:10px}.SorterItem.svelte-1rm2543 .SortersCheckmark.svelte-1rm2543.svelte-1rm2543{margin:0 15px}.SorterItem.svelte-1rm2543 .CustomRadioButton input[type=radio].svelte-1rm2543.svelte-1rm2543{position:absolute;left:-9999px}.SorterItem.svelte-1rm2543 .CustomRadioButton input[type=radio].svelte-1rm2543+span.svelte-1rm2543{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem.svelte-1rm2543 .CustomRadioButton input[type=radio].svelte-1rm2543+span.svelte-1rm2543:before{content:"";background:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem.svelte-1rm2543 .CustomRadioButton input[type=radio].svelte-1rm2543+span.svelte-1rm2543:after{content:"";background:var(--emfe-w-casino-color-primary, var(--emfe-w-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.svelte-1rm2543 .CustomRadioButton input[type=radio].svelte-1rm2543:checked+span.svelte-1rm2543:after{opacity:1;transform:scale(1)}.SorterLabel.svelte-1rm2543 input.svelte-1rm2543.svelte-1rm2543{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel.svelte-1rm2543 input.svelte-1rm2543:checked+span.svelte-1rm2543{font-weight:600}@media only screen and (max-width: 768px){.SorterSelector.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{max-width:initial;padding:7px 16px}.SorterDropdownContainer.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{width:100%;margin-bottom:20px}.SorterDropdown.svelte-1rm2543.svelte-1rm2543.svelte-1rm2543{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown.svelte-1rm2543 .SorterLabel.svelte-1rm2543.svelte-1rm2543{line-height:24px}.SorterDropdown.svelte-1rm2543 .SorterLabel.svelte-1rm2543>.svelte-1rm2543{pointer-events:none}}')}function E(t,r,l){const a=t.slice();return a[23]=r[l],a}function q(t){let r,l,a,n,o,m,g,c,f,d,b,y=t[4]("sortby")+"",u,k,_,z,N=(t[3]||t[4]("all"))+"",M,O,C,w,A,Z,F,s,i,S,H,L,T,I=e.ensure_array_like(Object.values(t[5])),h=[];for(let p=0;p<I.length;p+=1)h[p]=P(E(t,I,p));return{c(){r=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("g"),m=e.svg_element("path"),g=e.svg_element("path"),c=e.svg_element("path"),f=e.space(),d=e.element("div"),b=e.element("span"),u=e.text(y),k=e.space(),_=e.element("div"),z=e.element("span"),M=e.text(N),O=e.space(),C=e.element("span"),w=e.svg_element("svg"),A=e.svg_element("path"),s=e.space(),i=e.element("div"),S=e.element("ul");for(let p=0;p<h.length;p+=1)h[p].c();e.attr(m,"id","Path_5267"),e.attr(m,"data-name","Path 5267"),e.attr(m,"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"),e.attr(m,"transform","translate(-206.448 0)"),e.attr(m,"fill","#fff"),e.attr(m,"class","svelte-1rm2543"),e.attr(g,"id","Path_5268"),e.attr(g,"data-name","Path 5268"),e.attr(g,"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"),e.attr(g,"transform","translate(0 0)"),e.attr(g,"fill","#fff"),e.attr(g,"class","svelte-1rm2543"),e.attr(c,"id","Path_5269"),e.attr(c,"data-name","Path 5269"),e.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"),e.attr(c,"transform","translate(-412.896 0)"),e.attr(c,"fill","#fff"),e.attr(c,"class","svelte-1rm2543"),e.attr(o,"id","sortby"),e.attr(o,"transform","translate(-306 -342)"),e.attr(o,"class","svelte-1rm2543"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","20"),e.attr(n,"height","20"),e.attr(n,"viewBox","0 0 26.003 22.819"),e.attr(n,"class","svelte-1rm2543"),e.attr(b,"class","SorterName svelte-1rm2543"),e.attr(z,"class","svelte-1rm2543"),e.attr(_,"class","SorterValueContainer svelte-1rm2543"),e.attr(d,"class","SorterTextContainer svelte-1rm2543"),e.attr(a,"class","SorterMainArea svelte-1rm2543"),e.attr(A,"id","arrow"),e.attr(A,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(A,"transform","translate(-274.511 -441.088)"),e.attr(A,"fill","#d1d1d1"),e.attr(A,"class","svelte-1rm2543"),e.attr(w,"xmlns","http://www.w3.org/2000/svg"),e.attr(w,"width","14"),e.attr(w,"height","6.835"),e.attr(w,"viewBox","0 0 14 6.835"),e.attr(w,"class","svelte-1rm2543"),e.attr(C,"class",Z="TriangleInactive "+(t[1]?"TriangleActive":"")+" svelte-1rm2543"),e.attr(l,"class",F="SorterSelector "+(t[1]?"SorterSelectorOpen":"")+" svelte-1rm2543"),e.attr(S,"class","SorterDropdown svelte-1rm2543"),e.attr(i,"class",H="SorterDropdownContainer "+(t[1]?"SorterOpen":"")+" svelte-1rm2543"),e.attr(r,"class","SorterContainer svelte-1rm2543")},m(p,x){e.insert(p,r,x),e.append(r,l),e.append(l,a),e.append(a,n),e.append(n,o),e.append(o,m),e.append(o,g),e.append(o,c),e.append(a,f),e.append(a,d),e.append(d,b),e.append(b,u),e.append(d,k),e.append(d,_),e.append(_,z),e.append(z,M),e.append(l,O),e.append(l,C),e.append(C,w),e.append(w,A),e.append(r,s),e.append(r,i),e.append(i,S);for(let v=0;v<h.length;v+=1)h[v]&&h[v].m(S,null);L||(T=e.listen(l,"click",t[13]),L=!0)},p(p,x){if(x&16&&y!==(y=p[4]("sortby")+"")&&e.set_data(u,y),x&24&&N!==(N=(p[3]||p[4]("all"))+"")&&e.set_data(M,N),x&2&&Z!==(Z="TriangleInactive "+(p[1]?"TriangleActive":"")+" svelte-1rm2543")&&e.attr(C,"class",Z),x&2&&F!==(F="SorterSelector "+(p[1]?"SorterSelectorOpen":"")+" svelte-1rm2543")&&e.attr(l,"class",F),x&120){I=e.ensure_array_like(Object.values(p[5]));let v;for(v=0;v<I.length;v+=1){const B=E(p,I,v);h[v]?h[v].p(B,x):(h[v]=P(B),h[v].c(),h[v].m(S,null))}for(;v<h.length;v+=1)h[v].d(1);h.length=I.length}x&2&&H!==(H="SorterDropdownContainer "+(p[1]?"SorterOpen":"")+" svelte-1rm2543")&&e.attr(i,"class",H)},d(p){p&&e.detach(r),e.destroy_each(h,p),L=!1,T()}}}function P(t){let r,l,a,n,o,m,g,c,f,d,b;function y(){return t[14](t[23])}return{c(){r=e.element("li"),l=e.element("label"),a=e.element("input"),o=e.space(),m=e.element("span"),g=e.space(),c=e.element("span"),c.textContent=`${t[23]}`,f=e.space(),e.attr(a,"type","radio"),e.attr(a,"name","radio"),a.value=t[23],a.checked=n=t[3]==t[23]?!0:t[3]==null&&t[23]==t[4]("all"),e.attr(a,"class","svelte-1rm2543"),e.attr(m,"class","SortersCheckmark svelte-1rm2543"),e.attr(c,"class","svelte-1rm2543"),e.attr(l,"class","SorterLabel CustomRadioButton svelte-1rm2543"),e.attr(r,"class","SorterItem svelte-1rm2543"),r.value=t[23]},m(u,k){e.insert(u,r,k),e.append(r,l),e.append(l,a),e.append(l,o),e.append(l,m),e.append(l,g),e.append(l,c),e.append(r,f),d||(b=e.listen(a,"click",y),d=!0)},p(u,k){t=u,k&24&&n!==(n=t[3]==t[23]?!0:t[3]==null&&t[23]==t[4]("all"))&&(a.checked=n)},d(u){u&&e.detach(r),d=!1,b()}}}function U(t){let r;function l(o,m){if(!o[2])return q}let a=l(t),n=a&&a(t);return{c(){r=e.element("div"),n&&n.c(),e.attr(r,"class","svelte-1rm2543")},m(o,m){e.insert(o,r,m),n&&n.m(r,null),t[15](r)},p(o,[m]){a===(a=l(o))&&n?n.p(o,m):(n&&n.d(1),n=a&&a(o),n&&(n.c(),n.m(r,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(r),n&&n.d(),t[15](null)}}}function G(t,r,l){let a;e.component_subscribe(t,e.$format,s=>l(4,a=s));let{lang:n=""}=r,{translationurl:o=""}=r,{clientstyling:m=""}=r,{clientstylingurl:g=""}=r,{categoryid:c=""}=r,f,d=!1,b=!0,y="",u="All";V({withLocale:"en",translations:{}});const k=()=>{fetch(o).then(i=>i.json()).then(i=>{Object.keys(i).forEach(S=>{j(S,i[S])})}).catch(i=>{console.log(i)})};Object.keys(D).forEach(s=>{j(s,D[s])});const _={All:a("all"),name:a("az"),isNew:a("newest"),"advancedTags(name(hot))":a("hottest")},z=()=>{let s=document.createElement("style");s.innerHTML=m,f.appendChild(s)},N=()=>{let s=document.createElement("style");fetch(new URL(g)).then(i=>i.text()).then(i=>{s.innerHTML=i,setTimeout(()=>{f.appendChild(s)},1)})},M=()=>{var i;l(3,u="All"),l(2,b=!1),l(1,d=!1);let s=(i=JSON.parse(localStorage.getItem("vendorSortingBy")))==null?void 0:i[c];s?l(3,u=s):l(3,u="All"),l(3,u=_[s])},O=s=>{l(3,u=s);let i=localStorage.getItem("vendorSortingBy");y=s;for(let S in _)if(_[S]===s){y=S;break}i==null?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:y})):(i=JSON.parse(i),i[c]=y,localStorage.setItem("vendorSortingBy",JSON.stringify(i))),window.postMessage({type:"ApplySorter",sortBy:y,itemId:c},window.location.href),l(1,d=!d)},C=()=>{l(1,d=!d),window.postMessage({type:"SortingOpened"},window.location.href)},w=s=>{s.data.type=="FilterOpened"&&l(1,d=!1)};e.onMount(()=>(window.addEventListener("message",w,!1),()=>{window.removeEventListener("message",w)}));const A=()=>C(),Z=s=>O(s);function F(s){e.binding_callbacks[s?"unshift":"push"](()=>{f=s,l(0,f)})}return t.$$set=s=>{"lang"in s&&l(8,n=s.lang),"translationurl"in s&&l(9,o=s.translationurl),"clientstyling"in s&&l(10,m=s.clientstyling),"clientstylingurl"in s&&l(11,g=s.clientstylingurl),"categoryid"in s&&l(12,c=s.categoryid)},t.$$.update=()=>{t.$$.dirty&4096&&c&&M(),t.$$.dirty&1025&&m&&f&&z(),t.$$.dirty&2049&&g&&f&&N(),t.$$.dirty&512&&o&&k()},[f,d,b,u,a,_,O,C,n,o,m,g,c,A,Z,F]}class R extends e.SvelteComponent{constructor(r){super(),e.init(this,r,G,U,e.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}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}get categoryid(){return this.$$.ctx[12]}set categoryid(r){this.$$set({categoryid:r}),e.flush()}}e.create_custom_element(R,{lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{}},[],[],!0);exports.default=R;
|