@everymatrix/casino-last-played-section 1.50.0 → 1.51.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-CVuKaCwW.js → CasinoFilter-XACP-J3y.js} +323 -311
- package/components/CasinoFilter-tzredHGl.cjs +5 -0
- package/components/{CasinoGameThumbnail-Ci76yXvl.cjs → CasinoGameThumbnail-CWRpW1FQ.cjs} +7 -7
- package/components/{CasinoGameThumbnail-DE4jUfVR.js → CasinoGameThumbnail-DlHh77U1.js} +10 -2
- package/components/CasinoGamesCategorySection-CQQHka3g.cjs +1 -0
- package/components/{CasinoGamesCategorySection-Ch_YioYX.js → CasinoGamesCategorySection-Dn0LaRd5.js} +66 -53
- package/components/{CasinoLastPlayedSection-BcJy3l30.js → CasinoLastPlayedSection-B7gRyuIQ.js} +33 -30
- package/components/CasinoLastPlayedSection-DLEHkKDg.cjs +1 -0
- package/components/{CasinoSort-Dvz79j1U.js → CasinoSort-BSgfUrr1.js} +25 -18
- package/components/CasinoSort-CNiMeABX.cjs +1 -0
- package/es2015/casino-last-played-section.cjs +1 -1
- package/es2015/casino-last-played-section.js +1 -1
- package/package.json +1 -1
- package/components/CasinoFilter-DoohrQ48.cjs +0 -5
- package/components/CasinoGamesCategorySection-Dfpnc6TB.cjs +0 -1
- package/components/CasinoLastPlayedSection-DIlI7sY2.cjs +0 -1
- package/components/CasinoSort-BtDnNGSy.cjs +0 -1
package/components/{CasinoLastPlayedSection-BcJy3l30.js → CasinoLastPlayedSection-B7gRyuIQ.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as te, $ as ae, S as se, i as ne, f as l, c as ie, s as le, b as re, e as L, h as
|
1
|
+
import { a as te, $ as ae, S as se, i as ne, f as l, c as ie, s as le, b as re, e as L, h as A, k as E, l as V, n as H, o as q, p as oe, x as ce, F as n, t as ue, m as me, A as ge, w as de } from "./CasinoFilter-XACP-J3y.js";
|
2
2
|
function I(s, e) {
|
3
3
|
te(s, e);
|
4
4
|
}
|
@@ -26,6 +26,9 @@ const J = {
|
|
26
26
|
},
|
27
27
|
tr: {
|
28
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."
|
29
32
|
}
|
30
33
|
};
|
31
34
|
if (typeof window != "undefined") {
|
@@ -40,7 +43,7 @@ if (typeof window != "undefined") {
|
|
40
43
|
}
|
41
44
|
};
|
42
45
|
};
|
43
|
-
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-
|
46
|
+
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-Dn0LaRd5.js").then(({ default: e }) => {
|
44
47
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
45
48
|
});
|
46
49
|
}
|
@@ -139,7 +142,7 @@ function ye(s) {
|
|
139
142
|
);
|
140
143
|
},
|
141
144
|
m(a, i) {
|
142
|
-
|
145
|
+
E(a, e, i);
|
143
146
|
},
|
144
147
|
p(a, i) {
|
145
148
|
i[0] & /*session*/
|
@@ -258,15 +261,15 @@ function be(s) {
|
|
258
261
|
), i;
|
259
262
|
return {
|
260
263
|
c() {
|
261
|
-
e = L("p"), i =
|
264
|
+
e = L("p"), i = ue(a), A(e, "class", "SearchLoading");
|
262
265
|
},
|
263
266
|
m(o, r) {
|
264
|
-
|
267
|
+
E(o, e, r), V(e, i);
|
265
268
|
},
|
266
269
|
p(o, r) {
|
267
270
|
r[0] & /*$_*/
|
268
271
|
524288 && a !== (a = /*$_*/
|
269
|
-
o[19]("noRecentGames") + "") &&
|
272
|
+
o[19]("noRecentGames") + "") && me(i, a);
|
270
273
|
},
|
271
274
|
d(o) {
|
272
275
|
o && q(e);
|
@@ -284,16 +287,16 @@ function ve(s) {
|
|
284
287
|
let o = i(s), r = o(s);
|
285
288
|
return {
|
286
289
|
c() {
|
287
|
-
e = L("div"), a = L("div"), r.c(),
|
290
|
+
e = L("div"), a = L("div"), r.c(), A(a, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
288
291
|
},
|
289
292
|
m(g, d) {
|
290
|
-
|
293
|
+
E(g, e, d), V(e, a), r.m(a, null), s[25](e);
|
291
294
|
},
|
292
295
|
p(g, d) {
|
293
296
|
o === (o = i(g)) && r ? r.p(g, d) : (r.d(1), r = o(g), r && (r.c(), r.m(a, null)));
|
294
297
|
},
|
295
|
-
i:
|
296
|
-
o:
|
298
|
+
i: H,
|
299
|
+
o: H,
|
297
300
|
d(g) {
|
298
301
|
g && q(e), r.d(), s[25](null);
|
299
302
|
}
|
@@ -302,11 +305,11 @@ function ve(s) {
|
|
302
305
|
function we(s, e, a) {
|
303
306
|
let i;
|
304
307
|
oe(s, ge, (t) => a(19, i = t));
|
305
|
-
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:
|
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: p = "false" } = e, { integratedgameframedesktop: D = "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, Z = window.navigator.userAgent, O = !1, k = [], U, h;
|
306
309
|
const B = () => {
|
307
310
|
fetch(w).then((c) => c.json()).then((c) => {
|
308
|
-
Object.keys(c).forEach((
|
309
|
-
I(
|
311
|
+
Object.keys(c).forEach((u) => {
|
312
|
+
I(u, c[u]);
|
310
313
|
});
|
311
314
|
}).catch((c) => {
|
312
315
|
console.log(c);
|
@@ -316,30 +319,30 @@ function we(s, e, a) {
|
|
316
319
|
I(t, J[t]);
|
317
320
|
});
|
318
321
|
const K = () => new Promise((t, c) => {
|
319
|
-
let
|
320
|
-
|
321
|
-
|
322
|
-
let
|
323
|
-
return ee.gameCode == "OddsMatrix2" && (
|
324
|
-
}), t(
|
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), de(Z) === "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(
|
325
328
|
{
|
326
329
|
type: "AddNewCategory",
|
327
330
|
category: { name: "Last Played", id: "LASTPLAYED" }
|
328
331
|
},
|
329
332
|
window.location.href
|
330
|
-
), window.postMessage({ type: "LastPlayedGames", data:
|
331
|
-
}).catch((
|
332
|
-
console.error(
|
333
|
+
), window.postMessage({ type: "LastPlayedGames", data: m }, window.location.href);
|
334
|
+
}).catch((m) => {
|
335
|
+
console.error(m), c(m);
|
333
336
|
});
|
334
337
|
}), Q = () => {
|
335
338
|
K().then((t) => {
|
336
339
|
if (t.count > 0) {
|
337
340
|
let c = [];
|
338
|
-
t.items.forEach((
|
339
|
-
let f = new URL(`${o}/v1/casino/games/${
|
340
|
-
f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((
|
341
|
-
}), Promise.all(c).then((
|
342
|
-
k =
|
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);
|
343
346
|
});
|
344
347
|
} else
|
345
348
|
a(18, O = !0);
|
@@ -366,7 +369,7 @@ function we(s, e, a) {
|
|
366
369
|
});
|
367
370
|
}
|
368
371
|
return s.$$set = (t) => {
|
369
|
-
"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,
|
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, p = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, D = 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);
|
370
373
|
}, s.$$.update = () => {
|
371
374
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
372
375
|
41 && o && y && d && Q(), s.$$.dirty[0] & /*translationurl*/
|
@@ -384,8 +387,8 @@ function we(s, e, a) {
|
|
384
387
|
b,
|
385
388
|
v,
|
386
389
|
_,
|
387
|
-
D,
|
388
390
|
p,
|
391
|
+
D,
|
389
392
|
F,
|
390
393
|
T,
|
391
394
|
C,
|
@@ -399,7 +402,7 @@ function we(s, e, a) {
|
|
399
402
|
P,
|
400
403
|
j,
|
401
404
|
S,
|
402
|
-
|
405
|
+
G,
|
403
406
|
$
|
404
407
|
];
|
405
408
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-tzredHGl.cjs");function O(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const z={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}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-CQQHka3g.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-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))}")}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","LASTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"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(s,i){t.insert(s,e,i)},p(s,i){i[0]&16&&t.set_custom_element_data(e,"session",s[4]),i[0]&32&&t.set_custom_element_data(e,"userid",s[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",s[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",s[1]),i[0]&8&&t.set_custom_element_data(e,"lang",s[3]),i[0]&4&&t.set_custom_element_data(e,"currency",s[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",s[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",s[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",s[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",s[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function x(n){let e,s=n[19]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(s),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&524288&&s!==(s=o[19]("noRecentGames")+"")&&t.set_data(i,s)},d(o){o&&t.detach(e)}}}function $(n){let e,s;function i(c,d){return c[18]?x:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),s=t.element("div"),l.c(),t.attr(s,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(c,d){t.insert(c,e,d),t.append(e,s),l.m(s,null),n[25](e)},p(c,d){o===(o=i(c))&&l?l.p(c,d):(l.d(1),l=o(c),l&&(l.c(),l.m(s,null)))},i:t.noop,o:t.noop,d(c){c&&t.detach(e),l.d(),n[25](null)}}}function ee(n,e,s){let i;t.component_subscribe(n,t.$format,a=>s(19,i=a));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:c=""}=e,{lang:d=""}=e,{session:R=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:q="false"}=e,{integratedgameframedesktop:G="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:A=""}=e,{visiblegames:L=""}=e,{favorites:M=""}=e,{lastplayedperiod:k="Last30Days"}=e,{lastplayedorder:P=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:S="true"}=e,{fetchviaevent:p="true"}=e,U=window.navigator.userAgent,D=!1,w=[],T,f;const Y=()=>{fetch(b).then(r=>r.json()).then(r=>{Object.keys(r).forEach(m=>{O(m,r[m])})}).catch(r=>{console.log(r)})};Object.keys(z).forEach(a=>{O(a,z[a])});const H=()=>new Promise((a,r)=>{let m=new URL(`${o}/v1/player/${h}/games/last-played`);m.searchParams.append("unique",S),m.searchParams.append("limit",C),m.searchParams.append("order",P),m.searchParams.append("period",k),t.getDevice(U)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),T=v?m:m.href,fetch(T).then(u=>u.json()).then(u=>{u.items=u.items.filter(K=>{let F=!0;return K.gameCode=="OddsMatrix2"&&(u.count--,F=!1),F}),a(u),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:u},window.location.href)}).catch(u=>{console.error(u),r(u)})}),I=()=>{H().then(a=>{if(a.count>0){let r=[];a.items.forEach(m=>{let g=new URL(`${o}/v1/casino/games/${m.gameId}`);g.searchParams.append("datasource",l),v?r.push(fetch(g.href).then(u=>u.json())):r.push(fetch(g.href).then(u=>u.json()))}),Promise.all(r).then(m=>{w=m.filter(g=>!("error"in g)).map(g=>g[0]),j==="true"&&(w=w.slice(0,JSON.parse(L))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else s(18,D=!0)})},J=()=>{Q(d)},V=()=>{let a=document.createElement("style");a.innerHTML=_,f.appendChild(a)},Z=()=>{let a=document.createElement("style");fetch(new URL(y)).then(r=>r.text()).then(r=>{a.innerHTML=r,setTimeout(()=>{f.appendChild(a)},1)})};function B(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(17,f)})}return n.$$set=a=>{"endpoint"in a&&s(0,o=a.endpoint),"datasource"in a&&s(1,l=a.datasource),"currency"in a&&s(2,c=a.currency),"lang"in a&&s(3,d=a.lang),"session"in a&&s(4,R=a.session),"userid"in a&&s(5,h=a.userid),"clientstyling"in a&&s(6,_=a.clientstyling),"clientstylingurl"in a&&s(7,y=a.clientstylingurl),"translationurl"in a&&s(20,b=a.translationurl),"livecasino"in a&&s(8,v=a.livecasino),"integratedgameframemobile"in a&&s(9,q=a.integratedgameframemobile),"integratedgameframedesktop"in a&&s(10,G=a.integratedgameframedesktop),"gamepagemodalurl"in a&&s(11,E=a.gamepagemodalurl),"showgamename"in a&&s(12,A=a.showgamename),"visiblegames"in a&&s(13,L=a.visiblegames),"favorites"in a&&s(14,M=a.favorites),"lastplayedperiod"in a&&s(21,k=a.lastplayedperiod),"lastplayedorder"in a&&s(22,P=a.lastplayedorder),"lastplayedlimit"in a&&s(23,C=a.lastplayedlimit),"casinomygames"in a&&s(15,j=a.casinomygames),"lastplayedunique"in a&&s(24,S=a.lastplayedunique),"fetchviaevent"in a&&s(16,p=a.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&I(),n.$$.dirty[0]&1048576&&b&&Y(),n.$$.dirty[0]&131136&&_&&f&&V(),n.$$.dirty[0]&131200&&y&&f&&Z(),n.$$.dirty[0]&8&&d&&J()},[o,l,c,d,R,h,_,y,v,q,G,E,A,L,M,j,p,f,D,i,b,k,P,C,S,B]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ee,$,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:20,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:21,lastplayedorder:22,lastplayedlimit:23,casinomygames:15,lastplayedunique:24,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 translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[21]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[22]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[23]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[24]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(N,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=N;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $ as q, I as te, a as re, S as oe, i as ne, f as D, c as ae, s as le, b as se, e as f, k as R, n as U, o as P, p as ie, q as ce, x as de, y as G, C as N, d as Z, t as K, h as r, l as s, r as ee, m as Q, z as pe, A as ge } from "./CasinoFilter-
|
1
|
+
import { $ as q, I as te, a as re, S as oe, i as ne, f as D, c as ae, s as le, b as se, e as f, k as R, n as U, o as P, p as ie, q as ce, x as de, y as G, C as N, d as Z, t as K, h as r, l as s, r as ee, m as Q, z as pe, A as ge } from "./CasinoFilter-XACP-J3y.js";
|
2
2
|
function ue({ withLocale: e, translations: t }) {
|
3
3
|
q.subscribe((o) => {
|
4
4
|
o == null && (te.set(t), q.set(e));
|
@@ -126,6 +126,13 @@ const X = {
|
|
126
126
|
az: "A-Z",
|
127
127
|
newest: "Más nuevos",
|
128
128
|
hottest: "Más calientes"
|
129
|
+
},
|
130
|
+
"en-us": {
|
131
|
+
sortby: "Sort by:",
|
132
|
+
all: "All",
|
133
|
+
az: "A-Z",
|
134
|
+
newest: "Newest",
|
135
|
+
hottest: "Hottest"
|
129
136
|
}
|
130
137
|
};
|
131
138
|
function he(e) {
|
@@ -143,19 +150,19 @@ function me(e) {
|
|
143
150
|
/*vendorSortingBy*/
|
144
151
|
(e[3] || /*$_*/
|
145
152
|
e[4]("all")) + ""
|
146
|
-
), B, T, z, _, F,
|
153
|
+
), B, T, z, _, F, H, M, n, c, v, E, j, V, O = G(Object.values(
|
147
154
|
/*vendorMap*/
|
148
155
|
e[5]
|
149
156
|
)), w = [];
|
150
|
-
for (let d = 0; d <
|
151
|
-
w[d] = $(Y(e,
|
157
|
+
for (let d = 0; d < O.length; d += 1)
|
158
|
+
w[d] = $(Y(e, O, d));
|
152
159
|
return {
|
153
160
|
c() {
|
154
161
|
t = f("div"), o = f("div"), a = f("div"), l = N("svg"), i = N("g"), p = N("path"), y = N("path"), g = N("path"), b = Z(), u = f("div"), x = f("span"), m = K(S), C = Z(), A = f("div"), L = f("span"), B = K(I), T = Z(), z = f("span"), _ = N("svg"), F = N("path"), n = Z(), c = f("div"), v = f("ul");
|
155
162
|
for (let d = 0; d < w.length; d += 1)
|
156
163
|
w[d].c();
|
157
|
-
r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(p, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "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"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "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"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "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"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class",
|
158
|
-
(e[1] ? "TriangleActive" : "")), r(o, "class",
|
164
|
+
r(p, "id", "Path_5267"), r(p, "data-name", "Path 5267"), r(p, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), r(p, "transform", "translate(-206.448 0)"), r(p, "fill", "#fff"), r(y, "id", "Path_5268"), r(y, "data-name", "Path 5268"), r(y, "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"), r(y, "transform", "translate(0 0)"), r(y, "fill", "#fff"), r(g, "id", "Path_5269"), r(g, "data-name", "Path 5269"), r(g, "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"), r(g, "transform", "translate(-412.896 0)"), r(g, "fill", "#fff"), r(i, "id", "sortby"), r(i, "transform", "translate(-306 -342)"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "width", "20"), r(l, "height", "20"), r(l, "viewBox", "0 0 26.003 22.819"), r(x, "class", "SorterName"), r(A, "class", "SorterValueContainer"), r(u, "class", "SorterTextContainer"), r(a, "class", "SorterMainArea"), r(F, "id", "arrow"), r(F, "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"), r(F, "transform", "translate(-274.511 -441.088)"), r(F, "fill", "#d1d1d1"), r(_, "xmlns", "http://www.w3.org/2000/svg"), r(_, "width", "14"), r(_, "height", "6.835"), r(_, "viewBox", "0 0 14 6.835"), r(z, "class", H = "TriangleInactive " + /*isSorterActive*/
|
165
|
+
(e[1] ? "TriangleActive" : "")), r(o, "class", M = "SorterSelector " + /*isSorterActive*/
|
159
166
|
(e[1] ? "SorterSelectorOpen" : "")), r(v, "class", "SorterDropdown"), r(c, "class", E = "SorterDropdownContainer " + /*isSorterActive*/
|
160
167
|
(e[1] ? "SorterOpen" : "")), r(t, "class", "SorterContainer");
|
161
168
|
},
|
@@ -177,23 +184,23 @@ function me(e) {
|
|
177
184
|
24 && I !== (I = /*vendorSortingBy*/
|
178
185
|
(d[3] || /*$_*/
|
179
186
|
d[4]("all")) + "") && Q(B, I), k & /*isSorterActive*/
|
180
|
-
2 &&
|
181
|
-
(d[1] ? "TriangleActive" : "")) && r(z, "class",
|
182
|
-
2 &&
|
183
|
-
(d[1] ? "SorterSelectorOpen" : "")) && r(o, "class",
|
187
|
+
2 && H !== (H = "TriangleInactive " + /*isSorterActive*/
|
188
|
+
(d[1] ? "TriangleActive" : "")) && r(z, "class", H), k & /*isSorterActive*/
|
189
|
+
2 && M !== (M = "SorterSelector " + /*isSorterActive*/
|
190
|
+
(d[1] ? "SorterSelectorOpen" : "")) && r(o, "class", M), k & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
|
184
191
|
120) {
|
185
|
-
|
192
|
+
O = G(Object.values(
|
186
193
|
/*vendorMap*/
|
187
194
|
d[5]
|
188
195
|
));
|
189
196
|
let h;
|
190
|
-
for (h = 0; h <
|
191
|
-
const J = Y(d,
|
197
|
+
for (h = 0; h < O.length; h += 1) {
|
198
|
+
const J = Y(d, O, h);
|
192
199
|
w[h] ? w[h].p(J, k) : (w[h] = $(J), w[h].c(), w[h].m(v, null));
|
193
200
|
}
|
194
201
|
for (; h < w.length; h += 1)
|
195
202
|
w[h].d(1);
|
196
|
-
w.length =
|
203
|
+
w.length = O.length;
|
197
204
|
}
|
198
205
|
k & /*isSorterActive*/
|
199
206
|
2 && E !== (E = "SorterDropdownContainer " + /*isSorterActive*/
|
@@ -337,8 +344,8 @@ function ye(e, t, o) {
|
|
337
344
|
ce(() => (window.addEventListener("message", _, !1), () => {
|
338
345
|
window.removeEventListener("message", _);
|
339
346
|
}));
|
340
|
-
const F = () => z(),
|
341
|
-
function
|
347
|
+
const F = () => z(), H = (n) => T(n);
|
348
|
+
function M(n) {
|
342
349
|
de[n ? "unshift" : "push"](() => {
|
343
350
|
b = n, o(0, b);
|
344
351
|
});
|
@@ -366,8 +373,8 @@ function ye(e, t, o) {
|
|
366
373
|
y,
|
367
374
|
g,
|
368
375
|
F,
|
369
|
-
|
370
|
-
|
376
|
+
H,
|
377
|
+
M
|
371
378
|
];
|
372
379
|
}
|
373
380
|
class we extends oe {
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-tzredHGl.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;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLastPlayedSection-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLastPlayedSection-DLEHkKDg.cjs")).then(({default:t})=>{!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-B7gRyuIQ.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-last-played-section") && customElements.define("casino-last-played-section", t.element);
|
15
15
|
});
|
16
16
|
}
|