@everymatrix/casino-last-played-section 1.54.4 → 1.54.8
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-BYeEBK-a.js → CasinoFilter-C_NFi_rN.js} +456 -464
- package/components/CasinoFilter-DEXkfvfQ.cjs +5 -0
- package/components/CasinoFilter-DuUevwDN.js +4991 -0
- package/components/{CasinoGameThumbnail-BfeiKtC4.js → CasinoGameThumbnail-DLCuQBSY.js} +65 -65
- package/components/CasinoGameThumbnail-DWrQCx6i.cjs +47 -0
- package/components/CasinoGameThumbnail-DkLajZ-6.js +4432 -0
- package/components/CasinoGamesCategorySection-BUCzSW6j.js +3032 -0
- package/components/{CasinoGamesCategorySection-mzPrMyYZ.js → CasinoGamesCategorySection-CMQyuUzV.js} +163 -163
- package/components/CasinoGamesCategorySection-u15kKRqx.cjs +1 -0
- package/components/CasinoLastPlayedSection-BT-v-nQG.cjs +1 -0
- package/components/{CasinoLastPlayedSection-Cjpegv3D.js → CasinoLastPlayedSection-DQMf0eZL.js} +15 -15
- package/components/CasinoLastPlayedSection-DU-n8ggt.js +581 -0
- package/components/CasinoSort-BHWKjHLA.cjs +1 -0
- package/components/{CasinoSort-B1pgdr2s.js → CasinoSort-BO8pFRNg.js} +22 -22
- package/components/CasinoSort-Chc8wKdN.js +432 -0
- package/es2015/casino-last-played-section.cjs +1 -0
- package/es2015/casino-last-played-section.js +16 -0
- package/esnext/casino-last-played-section.js +1 -1
- package/package.json +1 -1
@@ -0,0 +1,581 @@
|
|
1
|
+
import { a as te, $ as ae, S as se, i as ne, f as l, s as ie, B as le, b as re, n as H, d as q, h as A, j as B, k as L, e as E, o as oe, w as ce, g as ue, m as me, F as n, v as ge, C as de } from "./CasinoFilter-DuUevwDN.js";
|
2
|
+
function I(s, e) {
|
3
|
+
te(s, e);
|
4
|
+
}
|
5
|
+
function fe(s) {
|
6
|
+
ae.set(s);
|
7
|
+
}
|
8
|
+
const J = {
|
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(...a) {
|
37
|
+
try {
|
38
|
+
return e.apply(this, a);
|
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-BUCzSW6j.js").then(({ default: e }) => {
|
47
|
+
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
48
|
+
});
|
49
|
+
}
|
50
|
+
function he(s) {
|
51
|
+
re(s, "svelte-w4ziup", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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 ye(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[14]
|
92
|
+
), n(
|
93
|
+
e,
|
94
|
+
"fetchviaevent",
|
95
|
+
/*fetchviaevent*/
|
96
|
+
s[16]
|
97
|
+
), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
|
98
|
+
e,
|
99
|
+
"showgamename",
|
100
|
+
/*showgamename*/
|
101
|
+
s[12]
|
102
|
+
), n(
|
103
|
+
e,
|
104
|
+
"clientstyling",
|
105
|
+
/*clientstyling*/
|
106
|
+
s[6]
|
107
|
+
), n(
|
108
|
+
e,
|
109
|
+
"clientstylingurl",
|
110
|
+
/*clientstylingurl*/
|
111
|
+
s[7]
|
112
|
+
), n(
|
113
|
+
e,
|
114
|
+
"livecasino",
|
115
|
+
/*livecasino*/
|
116
|
+
s[8]
|
117
|
+
), n(
|
118
|
+
e,
|
119
|
+
"visiblegames",
|
120
|
+
/*visiblegames*/
|
121
|
+
s[13]
|
122
|
+
), n(
|
123
|
+
e,
|
124
|
+
"gamepagemodalurl",
|
125
|
+
/*gamepagemodalurl*/
|
126
|
+
s[11]
|
127
|
+
), n(
|
128
|
+
e,
|
129
|
+
"integratedgameframedesktop",
|
130
|
+
/*integratedgameframedesktop*/
|
131
|
+
s[10]
|
132
|
+
), n(
|
133
|
+
e,
|
134
|
+
"integratedgameframemobile",
|
135
|
+
/*integratedgameframemobile*/
|
136
|
+
s[9]
|
137
|
+
), n(
|
138
|
+
e,
|
139
|
+
"casinomygames",
|
140
|
+
/*casinomygames*/
|
141
|
+
s[15]
|
142
|
+
);
|
143
|
+
},
|
144
|
+
m(a, i) {
|
145
|
+
A(a, e, i);
|
146
|
+
},
|
147
|
+
p(a, i) {
|
148
|
+
i[0] & /*session*/
|
149
|
+
16 && n(
|
150
|
+
e,
|
151
|
+
"session",
|
152
|
+
/*session*/
|
153
|
+
a[4]
|
154
|
+
), i[0] & /*userid*/
|
155
|
+
32 && n(
|
156
|
+
e,
|
157
|
+
"userid",
|
158
|
+
/*userid*/
|
159
|
+
a[5]
|
160
|
+
), i[0] & /*endpoint*/
|
161
|
+
1 && n(
|
162
|
+
e,
|
163
|
+
"endpoint",
|
164
|
+
/*endpoint*/
|
165
|
+
a[0]
|
166
|
+
), i[0] & /*datasource*/
|
167
|
+
2 && n(
|
168
|
+
e,
|
169
|
+
"datasource",
|
170
|
+
/*datasource*/
|
171
|
+
a[1]
|
172
|
+
), i[0] & /*lang*/
|
173
|
+
8 && n(
|
174
|
+
e,
|
175
|
+
"lang",
|
176
|
+
/*lang*/
|
177
|
+
a[3]
|
178
|
+
), i[0] & /*currency*/
|
179
|
+
4 && n(
|
180
|
+
e,
|
181
|
+
"currency",
|
182
|
+
/*currency*/
|
183
|
+
a[2]
|
184
|
+
), i[0] & /*favorites*/
|
185
|
+
16384 && n(
|
186
|
+
e,
|
187
|
+
"favorites",
|
188
|
+
/*favorites*/
|
189
|
+
a[14]
|
190
|
+
), i[0] & /*fetchviaevent*/
|
191
|
+
65536 && n(
|
192
|
+
e,
|
193
|
+
"fetchviaevent",
|
194
|
+
/*fetchviaevent*/
|
195
|
+
a[16]
|
196
|
+
), i[0] & /*showgamename*/
|
197
|
+
4096 && n(
|
198
|
+
e,
|
199
|
+
"showgamename",
|
200
|
+
/*showgamename*/
|
201
|
+
a[12]
|
202
|
+
), i[0] & /*clientstyling*/
|
203
|
+
64 && n(
|
204
|
+
e,
|
205
|
+
"clientstyling",
|
206
|
+
/*clientstyling*/
|
207
|
+
a[6]
|
208
|
+
), i[0] & /*clientstylingurl*/
|
209
|
+
128 && n(
|
210
|
+
e,
|
211
|
+
"clientstylingurl",
|
212
|
+
/*clientstylingurl*/
|
213
|
+
a[7]
|
214
|
+
), i[0] & /*livecasino*/
|
215
|
+
256 && n(
|
216
|
+
e,
|
217
|
+
"livecasino",
|
218
|
+
/*livecasino*/
|
219
|
+
a[8]
|
220
|
+
), i[0] & /*visiblegames*/
|
221
|
+
8192 && n(
|
222
|
+
e,
|
223
|
+
"visiblegames",
|
224
|
+
/*visiblegames*/
|
225
|
+
a[13]
|
226
|
+
), i[0] & /*gamepagemodalurl*/
|
227
|
+
2048 && n(
|
228
|
+
e,
|
229
|
+
"gamepagemodalurl",
|
230
|
+
/*gamepagemodalurl*/
|
231
|
+
a[11]
|
232
|
+
), i[0] & /*integratedgameframedesktop*/
|
233
|
+
1024 && n(
|
234
|
+
e,
|
235
|
+
"integratedgameframedesktop",
|
236
|
+
/*integratedgameframedesktop*/
|
237
|
+
a[10]
|
238
|
+
), i[0] & /*integratedgameframemobile*/
|
239
|
+
512 && n(
|
240
|
+
e,
|
241
|
+
"integratedgameframemobile",
|
242
|
+
/*integratedgameframemobile*/
|
243
|
+
a[9]
|
244
|
+
), i[0] & /*casinomygames*/
|
245
|
+
32768 && n(
|
246
|
+
e,
|
247
|
+
"casinomygames",
|
248
|
+
/*casinomygames*/
|
249
|
+
a[15]
|
250
|
+
);
|
251
|
+
},
|
252
|
+
d(a) {
|
253
|
+
a && q(e);
|
254
|
+
}
|
255
|
+
};
|
256
|
+
}
|
257
|
+
function be(s) {
|
258
|
+
let e, a = (
|
259
|
+
/*$_*/
|
260
|
+
s[19]("noRecentGames") + ""
|
261
|
+
), i;
|
262
|
+
return {
|
263
|
+
c() {
|
264
|
+
e = L("p"), i = me(a), E(e, "class", "SearchLoading");
|
265
|
+
},
|
266
|
+
m(o, r) {
|
267
|
+
A(o, e, r), B(e, i);
|
268
|
+
},
|
269
|
+
p(o, r) {
|
270
|
+
r[0] & /*$_*/
|
271
|
+
524288 && a !== (a = /*$_*/
|
272
|
+
o[19]("noRecentGames") + "") && ue(i, a);
|
273
|
+
},
|
274
|
+
d(o) {
|
275
|
+
o && q(e);
|
276
|
+
}
|
277
|
+
};
|
278
|
+
}
|
279
|
+
function ve(s) {
|
280
|
+
let e, a;
|
281
|
+
function i(g, d) {
|
282
|
+
return (
|
283
|
+
/*lastPlayedEmpty*/
|
284
|
+
g[18] ? be : ye
|
285
|
+
);
|
286
|
+
}
|
287
|
+
let o = i(s), r = o(s);
|
288
|
+
return {
|
289
|
+
c() {
|
290
|
+
e = L("div"), a = L("div"), r.c(), E(a, "class", "CasinoLastPlayedSection"), E(e, "class", "CasinoGamesCategorySectionContainer");
|
291
|
+
},
|
292
|
+
m(g, d) {
|
293
|
+
A(g, e, d), B(e, a), r.m(a, null), s[25](e);
|
294
|
+
},
|
295
|
+
p(g, d) {
|
296
|
+
o === (o = i(g)) && r ? r.p(g, d) : (r.d(1), r = o(g), r && (r.c(), r.m(a, null)));
|
297
|
+
},
|
298
|
+
i: H,
|
299
|
+
o: H,
|
300
|
+
d(g) {
|
301
|
+
g && q(e), r.d(), s[25](null);
|
302
|
+
}
|
303
|
+
};
|
304
|
+
}
|
305
|
+
function we(s, e, a) {
|
306
|
+
let i;
|
307
|
+
oe(s, de, (t) => a(19, i = t));
|
308
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: D = "false" } = e, { integratedgameframedesktop: p = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: T = "" } = e, { visiblegames: C = "" } = e, { favorites: z = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: G = "true" } = e, { fetchviaevent: N = "true" } = e, V = window.navigator.userAgent, O = !1, k = [], U, h;
|
309
|
+
const Z = () => {
|
310
|
+
fetch(w).then((c) => c.json()).then((c) => {
|
311
|
+
Object.keys(c).forEach((u) => {
|
312
|
+
I(u, c[u]);
|
313
|
+
});
|
314
|
+
}).catch((c) => {
|
315
|
+
console.log(c);
|
316
|
+
});
|
317
|
+
};
|
318
|
+
Object.keys(J).forEach((t) => {
|
319
|
+
I(t, J[t]);
|
320
|
+
});
|
321
|
+
const K = () => new Promise((t, c) => {
|
322
|
+
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
323
|
+
u.searchParams.append("unique", G), u.searchParams.append("limit", S), u.searchParams.append("order", j), u.searchParams.append("period", P), ge(V) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), U = _ ? u : u.href, fetch(U).then((m) => m.json()).then((m) => {
|
324
|
+
m.items = m.items.filter((ee) => {
|
325
|
+
let Y = !0;
|
326
|
+
return ee.gameCode == "OddsMatrix2" && (m.count--, Y = !1), Y;
|
327
|
+
}), t(m), window.postMessage(
|
328
|
+
{
|
329
|
+
type: "AddNewCategory",
|
330
|
+
category: { name: "Last Played", id: "LASTPLAYED" }
|
331
|
+
},
|
332
|
+
window.location.href
|
333
|
+
), window.postMessage({ type: "LastPlayedGames", data: m }, window.location.href);
|
334
|
+
}).catch((m) => {
|
335
|
+
console.error(m), c(m);
|
336
|
+
});
|
337
|
+
}), Q = () => {
|
338
|
+
K().then((t) => {
|
339
|
+
if (t.count > 0) {
|
340
|
+
let c = [];
|
341
|
+
t.items.forEach((u) => {
|
342
|
+
let f = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
343
|
+
f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((m) => m.json())) : c.push(fetch(f.href).then((m) => m.json()));
|
344
|
+
}), Promise.all(c).then((u) => {
|
345
|
+
k = u.filter((f) => !("error" in f)).map((f) => f[0]), R === "true" && (k = k.slice(0, JSON.parse(C))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
346
|
+
});
|
347
|
+
} else
|
348
|
+
a(18, O = !0);
|
349
|
+
});
|
350
|
+
}, W = () => {
|
351
|
+
fe(d);
|
352
|
+
}, X = () => {
|
353
|
+
let t = document.createElement("style");
|
354
|
+
t.innerHTML = b, h.appendChild(t);
|
355
|
+
}, x = () => {
|
356
|
+
let t = document.createElement("style");
|
357
|
+
fetch(new URL(v)).then((c) => c.text()).then((c) => {
|
358
|
+
t.innerHTML = c, setTimeout(
|
359
|
+
() => {
|
360
|
+
h.appendChild(t);
|
361
|
+
},
|
362
|
+
1
|
363
|
+
);
|
364
|
+
});
|
365
|
+
};
|
366
|
+
function $(t) {
|
367
|
+
ce[t ? "unshift" : "push"](() => {
|
368
|
+
h = t, a(17, h);
|
369
|
+
});
|
370
|
+
}
|
371
|
+
return s.$$set = (t) => {
|
372
|
+
"endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, g = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, M = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, D = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, p = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, F = t.gamepagemodalurl), "showgamename" in t && a(12, T = t.showgamename), "visiblegames" in t && a(13, C = t.visiblegames), "favorites" in t && a(14, z = t.favorites), "lastplayedperiod" in t && a(21, P = t.lastplayedperiod), "lastplayedorder" in t && a(22, j = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, R = t.casinomygames), "lastplayedunique" in t && a(24, G = t.lastplayedunique), "fetchviaevent" in t && a(16, N = t.fetchviaevent);
|
373
|
+
}, s.$$.update = () => {
|
374
|
+
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
375
|
+
41 && o && y && d && Q(), s.$$.dirty[0] & /*translationurl*/
|
376
|
+
1048576 && w && Z(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
377
|
+
131136 && b && h && X(), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
378
|
+
131200 && v && h && x(), s.$$.dirty[0] & /*lang*/
|
379
|
+
8 && d && W();
|
380
|
+
}, [
|
381
|
+
o,
|
382
|
+
r,
|
383
|
+
g,
|
384
|
+
d,
|
385
|
+
M,
|
386
|
+
y,
|
387
|
+
b,
|
388
|
+
v,
|
389
|
+
_,
|
390
|
+
D,
|
391
|
+
p,
|
392
|
+
F,
|
393
|
+
T,
|
394
|
+
C,
|
395
|
+
z,
|
396
|
+
R,
|
397
|
+
N,
|
398
|
+
h,
|
399
|
+
O,
|
400
|
+
i,
|
401
|
+
w,
|
402
|
+
P,
|
403
|
+
j,
|
404
|
+
S,
|
405
|
+
G,
|
406
|
+
$
|
407
|
+
];
|
408
|
+
}
|
409
|
+
class _e extends se {
|
410
|
+
constructor(e) {
|
411
|
+
super(), ne(
|
412
|
+
this,
|
413
|
+
e,
|
414
|
+
we,
|
415
|
+
ve,
|
416
|
+
ie,
|
417
|
+
{
|
418
|
+
endpoint: 0,
|
419
|
+
datasource: 1,
|
420
|
+
currency: 2,
|
421
|
+
lang: 3,
|
422
|
+
session: 4,
|
423
|
+
userid: 5,
|
424
|
+
clientstyling: 6,
|
425
|
+
clientstylingurl: 7,
|
426
|
+
translationurl: 20,
|
427
|
+
livecasino: 8,
|
428
|
+
integratedgameframemobile: 9,
|
429
|
+
integratedgameframedesktop: 10,
|
430
|
+
gamepagemodalurl: 11,
|
431
|
+
showgamename: 12,
|
432
|
+
visiblegames: 13,
|
433
|
+
favorites: 14,
|
434
|
+
lastplayedperiod: 21,
|
435
|
+
lastplayedorder: 22,
|
436
|
+
lastplayedlimit: 23,
|
437
|
+
casinomygames: 15,
|
438
|
+
lastplayedunique: 24,
|
439
|
+
fetchviaevent: 16
|
440
|
+
},
|
441
|
+
he,
|
442
|
+
[-1, -1]
|
443
|
+
);
|
444
|
+
}
|
445
|
+
get endpoint() {
|
446
|
+
return this.$$.ctx[0];
|
447
|
+
}
|
448
|
+
set endpoint(e) {
|
449
|
+
this.$$set({ endpoint: e }), l();
|
450
|
+
}
|
451
|
+
get datasource() {
|
452
|
+
return this.$$.ctx[1];
|
453
|
+
}
|
454
|
+
set datasource(e) {
|
455
|
+
this.$$set({ datasource: e }), l();
|
456
|
+
}
|
457
|
+
get currency() {
|
458
|
+
return this.$$.ctx[2];
|
459
|
+
}
|
460
|
+
set currency(e) {
|
461
|
+
this.$$set({ currency: e }), l();
|
462
|
+
}
|
463
|
+
get lang() {
|
464
|
+
return this.$$.ctx[3];
|
465
|
+
}
|
466
|
+
set lang(e) {
|
467
|
+
this.$$set({ lang: e }), l();
|
468
|
+
}
|
469
|
+
get session() {
|
470
|
+
return this.$$.ctx[4];
|
471
|
+
}
|
472
|
+
set session(e) {
|
473
|
+
this.$$set({ session: e }), l();
|
474
|
+
}
|
475
|
+
get userid() {
|
476
|
+
return this.$$.ctx[5];
|
477
|
+
}
|
478
|
+
set userid(e) {
|
479
|
+
this.$$set({ userid: e }), l();
|
480
|
+
}
|
481
|
+
get clientstyling() {
|
482
|
+
return this.$$.ctx[6];
|
483
|
+
}
|
484
|
+
set clientstyling(e) {
|
485
|
+
this.$$set({ clientstyling: e }), l();
|
486
|
+
}
|
487
|
+
get clientstylingurl() {
|
488
|
+
return this.$$.ctx[7];
|
489
|
+
}
|
490
|
+
set clientstylingurl(e) {
|
491
|
+
this.$$set({ clientstylingurl: e }), l();
|
492
|
+
}
|
493
|
+
get translationurl() {
|
494
|
+
return this.$$.ctx[20];
|
495
|
+
}
|
496
|
+
set translationurl(e) {
|
497
|
+
this.$$set({ translationurl: e }), l();
|
498
|
+
}
|
499
|
+
get livecasino() {
|
500
|
+
return this.$$.ctx[8];
|
501
|
+
}
|
502
|
+
set livecasino(e) {
|
503
|
+
this.$$set({ livecasino: e }), l();
|
504
|
+
}
|
505
|
+
get integratedgameframemobile() {
|
506
|
+
return this.$$.ctx[9];
|
507
|
+
}
|
508
|
+
set integratedgameframemobile(e) {
|
509
|
+
this.$$set({ integratedgameframemobile: e }), l();
|
510
|
+
}
|
511
|
+
get integratedgameframedesktop() {
|
512
|
+
return this.$$.ctx[10];
|
513
|
+
}
|
514
|
+
set integratedgameframedesktop(e) {
|
515
|
+
this.$$set({ integratedgameframedesktop: e }), l();
|
516
|
+
}
|
517
|
+
get gamepagemodalurl() {
|
518
|
+
return this.$$.ctx[11];
|
519
|
+
}
|
520
|
+
set gamepagemodalurl(e) {
|
521
|
+
this.$$set({ gamepagemodalurl: e }), l();
|
522
|
+
}
|
523
|
+
get showgamename() {
|
524
|
+
return this.$$.ctx[12];
|
525
|
+
}
|
526
|
+
set showgamename(e) {
|
527
|
+
this.$$set({ showgamename: e }), l();
|
528
|
+
}
|
529
|
+
get visiblegames() {
|
530
|
+
return this.$$.ctx[13];
|
531
|
+
}
|
532
|
+
set visiblegames(e) {
|
533
|
+
this.$$set({ visiblegames: e }), l();
|
534
|
+
}
|
535
|
+
get favorites() {
|
536
|
+
return this.$$.ctx[14];
|
537
|
+
}
|
538
|
+
set favorites(e) {
|
539
|
+
this.$$set({ favorites: e }), l();
|
540
|
+
}
|
541
|
+
get lastplayedperiod() {
|
542
|
+
return this.$$.ctx[21];
|
543
|
+
}
|
544
|
+
set lastplayedperiod(e) {
|
545
|
+
this.$$set({ lastplayedperiod: e }), l();
|
546
|
+
}
|
547
|
+
get lastplayedorder() {
|
548
|
+
return this.$$.ctx[22];
|
549
|
+
}
|
550
|
+
set lastplayedorder(e) {
|
551
|
+
this.$$set({ lastplayedorder: e }), l();
|
552
|
+
}
|
553
|
+
get lastplayedlimit() {
|
554
|
+
return this.$$.ctx[23];
|
555
|
+
}
|
556
|
+
set lastplayedlimit(e) {
|
557
|
+
this.$$set({ lastplayedlimit: e }), l();
|
558
|
+
}
|
559
|
+
get casinomygames() {
|
560
|
+
return this.$$.ctx[15];
|
561
|
+
}
|
562
|
+
set casinomygames(e) {
|
563
|
+
this.$$set({ casinomygames: e }), l();
|
564
|
+
}
|
565
|
+
get lastplayedunique() {
|
566
|
+
return this.$$.ctx[24];
|
567
|
+
}
|
568
|
+
set lastplayedunique(e) {
|
569
|
+
this.$$set({ lastplayedunique: e }), l();
|
570
|
+
}
|
571
|
+
get fetchviaevent() {
|
572
|
+
return this.$$.ctx[16];
|
573
|
+
}
|
574
|
+
set fetchviaevent(e) {
|
575
|
+
this.$$set({ fetchviaevent: e }), l();
|
576
|
+
}
|
577
|
+
}
|
578
|
+
le(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
|
579
|
+
export {
|
580
|
+
_e as default
|
581
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-DEXkfvfQ.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;
|