@everymatrix/casino-page-nd 1.74.2 → 1.74.4
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/{CasinoFavoritesSectionNd-BojhJpei.cjs → CasinoFavoritesSectionNd-4vIlan3H.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BHSCQ09c.js → CasinoFavoritesSectionNd-Dzg8AjIh.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-BPYxj6tg.js → CasinoFavoritesSectionNd-_cQ5xRiv.js} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BXwI9IlG.js → CasinoGamesCategorySectionNd-DB97IVzG.js} +63 -55
- package/components/{CasinoGamesCategorySectionNd-CrEOTzR8.js → CasinoGamesCategorySectionNd-iW8xVo8B.js} +343 -335
- package/components/{CasinoGamesCategorySectionNd-DX2XHXUK.cjs → CasinoGamesCategorySectionNd-wkSdhFLy.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-Bz5z_-9L.js → CasinoLastPlayedSectionNd-B0SywtOD.js} +1 -1
- package/components/{CasinoLastPlayedSectionNd-C5b0P3M3.cjs → CasinoLastPlayedSectionNd-Bqsq8N1n.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-C0krpcpw.js → CasinoLastPlayedSectionNd-DPsD96pl.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-DI-xJH91.js → CasinoMostPlayedSectionNd-BLdrRJN3.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-BDoGs9AJ.cjs → CasinoMostPlayedSectionNd-Bfmipga7.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-D-upoJVO.js → CasinoMostPlayedSectionNd-RDJQtjfP.js} +1 -1
- package/components/CasinoMyGamesNd-B6Y-CQn4.js +1315 -0
- package/components/CasinoMyGamesNd-DRW6wUxl.js +1314 -0
- package/components/CasinoMyGamesNd-EsRtwVbW.cjs +1 -0
- package/components/{CasinoPageNd-D_N76QiV.cjs → CasinoPageNd-BXM3LqAa.cjs} +1 -1
- package/components/{CasinoPageNd-CFxeJguw.js → CasinoPageNd-C_8U853c.js} +4 -4
- package/components/{CasinoPageNd-GZw9xpJs.js → CasinoPageNd-Cpz1P4Jg.js} +4 -4
- package/components/{CasinoSearchNd-B_Y2kCdY.js → CasinoSearchNd-BZFZIldj.js} +1 -1
- package/components/{CasinoSearchNd-CSIbLrzZ.js → CasinoSearchNd-DhC_9kHZ.js} +1 -1
- package/components/{CasinoSearchNd-CY3J2XyE.cjs → CasinoSearchNd-sbnm8-s3.cjs} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoMyGamesNd-8nurfZ3l.cjs +0 -1
- package/components/CasinoMyGamesNd-BkOnlJQV.js +0 -1350
- package/components/CasinoMyGamesNd-D30ldxZa.js +0 -1351
package/components/{CasinoFavoritesSectionNd-BojhJpei.cjs → CasinoFavoritesSectionNd-4vIlan3H.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B4OJuO_L.cjs");if(typeof window!="undefined"){let a=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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySectionNd-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B4OJuO_L.cjs");if(typeof window!="undefined"){let a=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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySectionNd-wkSdhFLy.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section-nd")&&customElements.define("casino-games-category-section-nd",e.element)})}function L({withLocale:a,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(a))})}function M(a){t.append_styles(a,"svelte-nazqps",".CasinoFavoritesSectionContainer{font-family:inherit;background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function F(a){let e;return{c(){e=t.element("casino-games-category-section-nd"),t.set_custom_element_data(e,"session",a[4]),t.set_custom_element_data(e,"userid",a[5]),t.set_custom_element_data(e,"endpoint",a[0]),t.set_custom_element_data(e,"datasource",a[1]),t.set_custom_element_data(e,"lang",a[3]),t.set_custom_element_data(e,"currency",a[2]),t.set_custom_element_data(e,"favorites",a[15]),t.set_custom_element_data(e,"fetchviaevent",a[17]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",a[12]),t.set_custom_element_data(e,"clientstyling",a[7]),t.set_custom_element_data(e,"clientstylingurl",a[8]),t.set_custom_element_data(e,"livecasino",a[9]),t.set_custom_element_data(e,"visiblegames",a[14]),t.set_custom_element_data(e,"gamepagemodalurl",a[13]),t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),t.set_custom_element_data(e,"integratedgameframemobile",a[10]),t.set_custom_element_data(e,"casinomygames",a[16]),t.set_custom_element_data(e,"mbsource",a[6])},m(s,i){t.insert(s,e,i)},p(s,i){i&16&&t.set_custom_element_data(e,"session",s[4]),i&32&&t.set_custom_element_data(e,"userid",s[5]),i&1&&t.set_custom_element_data(e,"endpoint",s[0]),i&2&&t.set_custom_element_data(e,"datasource",s[1]),i&8&&t.set_custom_element_data(e,"lang",s[3]),i&4&&t.set_custom_element_data(e,"currency",s[2]),i&32768&&t.set_custom_element_data(e,"favorites",s[15]),i&131072&&t.set_custom_element_data(e,"fetchviaevent",s[17]),i&4096&&t.set_custom_element_data(e,"showgamename",s[12]),i&128&&t.set_custom_element_data(e,"clientstyling",s[7]),i&256&&t.set_custom_element_data(e,"clientstylingurl",s[8]),i&512&&t.set_custom_element_data(e,"livecasino",s[9]),i&16384&&t.set_custom_element_data(e,"visiblegames",s[14]),i&8192&&t.set_custom_element_data(e,"gamepagemodalurl",s[13]),i&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",s[11]),i&1024&&t.set_custom_element_data(e,"integratedgameframemobile",s[10]),i&65536&&t.set_custom_element_data(e,"casinomygames",s[16]),i&64&&t.set_custom_element_data(e,"mbsource",s[6])},d(s){s&&t.detach(e)}}}function O(a){let e,s=a[4]&&F(a);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,l){t.insert(i,e,l),s&&s.m(e,null),a[19](e)},p(i,[l]){i[4]?s?s.p(i,l):(s=F(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),s&&s.d(),a[19](null)}}}function A(a,e,s){let{endpoint:i=""}=e,{datasource:l=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{mbsource:o}=e,{clientstyling:u=""}=e,{clientstylingurl:c=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:b=""}=e,{gamepagemodalurl:v="false"}=e,{visiblegames:w=""}=e,{favorites:k=""}=e,{casinomygames:C="false"}=e,{fetchviaevent:S="true"}=e,m;L({withLocale:"en",translations:{}}),t.onMount(()=>()=>{});function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(18,m)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,l=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"mbsource"in n&&s(6,o=n.mbsource),"clientstyling"in n&&s(7,u=n.clientstyling),"clientstylingurl"in n&&s(8,c=n.clientstylingurl),"livecasino"in n&&s(9,d=n.livecasino),"integratedgameframemobile"in n&&s(10,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(11,y=n.integratedgameframedesktop),"showgamename"in n&&s(12,b=n.showgamename),"gamepagemodalurl"in n&&s(13,v=n.gamepagemodalurl),"visiblegames"in n&&s(14,w=n.visiblegames),"favorites"in n&&s(15,k=n.favorites),"casinomygames"in n&&s(16,C=n.casinomygames),"fetchviaevent"in n&&s(17,S=n.fetchviaevent)},a.$$.update=()=>{a.$$.dirty&262272&&u&&m&&t.setClientStyling(m,u),a.$$.dirty&262400&&c&&m&&t.setClientStylingURL(m,c),a.$$.dirty&262208&&o&&m&&t.setStreamStyling(m,`${o}.Style`)},[i,l,g,r,f,_,o,u,c,d,h,y,b,v,w,k,C,S,m,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,O,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,showgamename:12,gamepagemodalurl:13,visiblegames:14,favorites:15,casinomygames:16,fetchviaevent:17},M)}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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[13]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{}},[],[],!0);exports.default=E;
|
package/components/{CasinoFavoritesSectionNd-BHSCQ09c.js → CasinoFavoritesSectionNd-Dzg8AjIh.js}
RENAMED
|
@@ -11,7 +11,7 @@ if (typeof window != "undefined") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = n(customElements.define), import("./CasinoGamesCategorySectionNd-
|
|
14
|
+
customElements.define = n(customElements.define), import("./CasinoGamesCategorySectionNd-iW8xVo8B.js").then(({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-games-category-section-nd") && customElements.define("casino-games-category-section-nd", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
package/components/{CasinoFavoritesSectionNd-BPYxj6tg.js → CasinoFavoritesSectionNd-_cQ5xRiv.js}
RENAMED
|
@@ -11,7 +11,7 @@ if (typeof window < "u") {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
customElements.define = n(customElements.define), import("./CasinoGamesCategorySectionNd-
|
|
14
|
+
customElements.define = n(customElements.define), import("./CasinoGamesCategorySectionNd-DB97IVzG.js").then(({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-games-category-section-nd") && customElements.define("casino-games-category-section-nd", e.element);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -2453,7 +2453,7 @@ let ji = 0;
|
|
|
2453
2453
|
function Li(i, e, a) {
|
|
2454
2454
|
let t;
|
|
2455
2455
|
Ja(i, $a, (l) => a(43, t = l));
|
|
2456
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: M = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo:
|
|
2456
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: M = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo: qe = "" } = e, { casinogamesgridslider: We = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage: Re = "casino" } = e, { actionevent: Ae = "CategoryChange" } = e, { displayedgamecount: ye = "10" } = e, { showallbuttongamescount: ke = "10" } = e, { lobbyscreen: Ne = "true" } = e, { usesinglevendorfilter: Ge = "false" } = e, { visiblegames: je = "10" } = e, Z = !0, Le = !1, Se, Ce, W = !0, Ye = window.navigator.userAgent, T, F = [], Q = !0, ae = 40, Y = !1, Fe = !1, me = !1, Te = !1, Pe = !0, ce = !1, ge, De, de, ue = !1, q, ze = !1, fe = new Array(1e4), he = {}, Ue = "", ie = "", Me, Oe, N, O = [], Ie = new AbortController(), te = { items: [], count: 0, name: "" };
|
|
2457
2457
|
const va = () => {
|
|
2458
2458
|
fetch(M).then((_) => _.json()).then((_) => {
|
|
2459
2459
|
Object.keys(_).forEach((G) => {
|
|
@@ -2466,13 +2466,13 @@ function Li(i, e, a) {
|
|
|
2466
2466
|
Object.keys(ea).forEach((l) => {
|
|
2467
2467
|
$e(l, ea[l]);
|
|
2468
2468
|
}), typeof document.hidden < "u" ? Me = "hidden" : typeof document.msHidden < "u" ? Me = "msHidden" : typeof document.webkitHidden < "u" && (Me = "webkitHidden");
|
|
2469
|
-
let
|
|
2469
|
+
let Je = new IntersectionObserver((l) => {
|
|
2470
2470
|
l.forEach(async (_) => {
|
|
2471
|
-
let G = _.target.gameid,
|
|
2472
|
-
_.isIntersecting ? (
|
|
2471
|
+
let G = _.target.gameid, R = _.target.elems_index;
|
|
2472
|
+
_.isIntersecting ? (R * 1.2 > ae && Ca(g), a(40, he[G] = 1, he)) : a(40, he[G] = 0, he);
|
|
2473
2473
|
});
|
|
2474
2474
|
});
|
|
2475
|
-
const ba = (l, _) => new Promise((G,
|
|
2475
|
+
const ba = (l, _) => new Promise((G, R) => {
|
|
2476
2476
|
if (l && _) {
|
|
2477
2477
|
let A = `${o}/v1/player/${_}/favorites/`;
|
|
2478
2478
|
fetch(A, {
|
|
@@ -2490,21 +2490,21 @@ function Li(i, e, a) {
|
|
|
2490
2490
|
});
|
|
2491
2491
|
} else
|
|
2492
2492
|
N = [];
|
|
2493
|
-
g === "FAVORITES" &&
|
|
2493
|
+
g === "FAVORITES" && Ve(N), G(N);
|
|
2494
2494
|
}).catch((C) => {
|
|
2495
|
-
console.error(C),
|
|
2495
|
+
console.error(C), R(C);
|
|
2496
2496
|
});
|
|
2497
2497
|
} else
|
|
2498
2498
|
G([]);
|
|
2499
2499
|
}), Be = (l, _) => {
|
|
2500
2500
|
let G = `${o}/v1/player/${_}/favorites/`;
|
|
2501
2501
|
a(25, Z = !0);
|
|
2502
|
-
let
|
|
2502
|
+
let R = {
|
|
2503
2503
|
method: "GET",
|
|
2504
2504
|
headers: { "X-SessionID": l }
|
|
2505
2505
|
};
|
|
2506
|
-
return new Promise((A,
|
|
2507
|
-
fetch(G,
|
|
2506
|
+
return new Promise((A, E) => {
|
|
2507
|
+
fetch(G, R).then((C) => C.json()).then((C) => {
|
|
2508
2508
|
if (a(25, Z = !1), N = [], C) {
|
|
2509
2509
|
C.items?.forEach((H) => {
|
|
2510
2510
|
H.gameModel && (N.push(H), O.includes(H.id) || O.push(H.id));
|
|
@@ -2516,23 +2516,23 @@ function Li(i, e, a) {
|
|
|
2516
2516
|
});
|
|
2517
2517
|
} else
|
|
2518
2518
|
N = [];
|
|
2519
|
-
g === "FAVORITES" &&
|
|
2519
|
+
g === "FAVORITES" && Ve(N), F.forEach((j) => {
|
|
2520
2520
|
j.isFavorite = B(j.id);
|
|
2521
2521
|
});
|
|
2522
2522
|
let J = F;
|
|
2523
2523
|
a(29, F = void 0), a(29, F = J), A(N);
|
|
2524
2524
|
}).catch((C) => {
|
|
2525
|
-
console.error(C),
|
|
2525
|
+
console.error(C), E(C);
|
|
2526
2526
|
});
|
|
2527
2527
|
});
|
|
2528
|
-
},
|
|
2528
|
+
}, Ke = (l, _, G, R) => {
|
|
2529
2529
|
Ie && Ie.abort(), Ie = new AbortController();
|
|
2530
2530
|
const A = Ie.signal;
|
|
2531
2531
|
a(25, Z = !0);
|
|
2532
|
-
let
|
|
2532
|
+
let E = "", C = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), j = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2533
2533
|
const H = Ge === "true" ? "*" : l;
|
|
2534
|
-
return (l.match(/\$/g) || []).length > 1 ? (
|
|
2535
|
-
if (C.searchParams.delete("pagination"), C.searchParams.append("expand", "games(vendor)"), C.searchParams.append("fields", "id,name,games"), C.searchParams.append("platform", ei(
|
|
2534
|
+
return (l.match(/\$/g) || []).length > 1 ? (E = l.split("$").slice(0, 2).join("$"), C = new URL(`${o}/v1/casino/groups/${s}/${E}/subGroups`)) : C = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((Da, Ua) => {
|
|
2535
|
+
if (C.searchParams.delete("pagination"), C.searchParams.append("expand", "games(vendor)"), C.searchParams.append("fields", "id,name,games"), C.searchParams.append("platform", ei(Ye)), C.searchParams.append("pagination", `games(offset=${_},limit=${G})`), C.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), J && J[H]?.length)
|
|
2536
2536
|
if (Ge === "true" || W === !1 && ue === !1) {
|
|
2537
2537
|
let P = "";
|
|
2538
2538
|
a(34, Te = !0), J[H].forEach((x) => {
|
|
@@ -2544,7 +2544,7 @@ function Li(i, e, a) {
|
|
|
2544
2544
|
A.aborted || (a(25, Z = !1), (l.match(/\$/g) || []).length > 1 && (P = P.items.filter((x) => {
|
|
2545
2545
|
if (x.id == l)
|
|
2546
2546
|
return x;
|
|
2547
|
-
})[0]), a(54, Oe = !0), a(26, Le = !1), De = P.games.total,
|
|
2547
|
+
})[0]), a(54, Oe = !0), a(26, Le = !1), De = P.games.total, R && P.games.items.forEach((x) => {
|
|
2548
2548
|
x.isFavorite = B(x.id);
|
|
2549
2549
|
}), a(36, ce = !0), Da(P));
|
|
2550
2550
|
}).catch((P) => {
|
|
@@ -2553,20 +2553,20 @@ function Li(i, e, a) {
|
|
|
2553
2553
|
wa();
|
|
2554
2554
|
});
|
|
2555
2555
|
});
|
|
2556
|
-
}, _e = (l, _, G) => new Promise((
|
|
2557
|
-
u == "true" ? ba(m, c).then((
|
|
2558
|
-
|
|
2559
|
-
|
|
2556
|
+
}, _e = (l, _, G) => new Promise((R, A) => {
|
|
2557
|
+
u == "true" ? ba(m, c).then((E) => {
|
|
2558
|
+
Ke(l, _, G, E).then((C) => {
|
|
2559
|
+
R(C);
|
|
2560
2560
|
});
|
|
2561
|
-
}) :
|
|
2562
|
-
E
|
|
2561
|
+
}) : Ke(l, _, G, null).then((E) => {
|
|
2562
|
+
R(E);
|
|
2563
2563
|
});
|
|
2564
2564
|
}), wa = () => {
|
|
2565
2565
|
const l = q.getRootNode().host;
|
|
2566
2566
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2567
2567
|
}, ya = (l, _, G) => {
|
|
2568
|
-
l !== "" && (a(31, Y = !1), a(27, W = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, a(30, Q = +_ > +G), _e(l, 0, +_).then((
|
|
2569
|
-
a(28, T =
|
|
2568
|
+
l !== "" && (a(31, Y = !1), a(27, W = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, a(30, Q = +_ > +G), _e(l, 0, +_).then((R) => {
|
|
2569
|
+
a(28, T = R), a(29, F = T.games.items), F && F.forEach((A) => {
|
|
2570
2570
|
A.isFavorite = B(A.id);
|
|
2571
2571
|
});
|
|
2572
2572
|
}));
|
|
@@ -2628,7 +2628,7 @@ function Li(i, e, a) {
|
|
|
2628
2628
|
});
|
|
2629
2629
|
break;
|
|
2630
2630
|
case "CategoryUpdate":
|
|
2631
|
-
|
|
2631
|
+
Xe(l.data.itemId);
|
|
2632
2632
|
break;
|
|
2633
2633
|
case `SetUnfavoredGame${g}`:
|
|
2634
2634
|
Sa(`${o}/v1/player/${c}/favorites`, m, l.data.id);
|
|
@@ -2640,10 +2640,10 @@ function Li(i, e, a) {
|
|
|
2640
2640
|
Se = l.data.session, Ce = l.data.userID, u == "true" && Ce && Ce.length && Se && Se.length > 0 && Be(Se, Ce);
|
|
2641
2641
|
break;
|
|
2642
2642
|
case "UpdateFavoredList":
|
|
2643
|
-
g === "FAVORITES" &&
|
|
2643
|
+
g === "FAVORITES" && Ze(l.data.url, l.data.sessionID);
|
|
2644
2644
|
break;
|
|
2645
2645
|
}
|
|
2646
|
-
},
|
|
2646
|
+
}, Xe = (l) => {
|
|
2647
2647
|
a(31, Y = !1), a(27, W = Ne === "true"), a(33, me = !1), ze = !0, a(36, ce = !1), a(0, g = l), g !== "MOSTPLAYED" && a(30, Q = !1), le !== "true" && (!N && m && Be(m, c), _e(g, 0, ae).then((_) => {
|
|
2648
2648
|
a(28, T = _), a(29, F = T.games.items);
|
|
2649
2649
|
}).finally(
|
|
@@ -2671,7 +2671,7 @@ function Li(i, e, a) {
|
|
|
2671
2671
|
}));
|
|
2672
2672
|
}, B = (l) => N?.some((_) => _.id === l) ?? !1;
|
|
2673
2673
|
let Ga = async (l, _, G) => {
|
|
2674
|
-
await
|
|
2674
|
+
await Ze(l, _), O.includes(G) || O.push(G);
|
|
2675
2675
|
let A = {
|
|
2676
2676
|
method: "POST",
|
|
2677
2677
|
headers: {
|
|
@@ -2681,42 +2681,50 @@ function Li(i, e, a) {
|
|
|
2681
2681
|
},
|
|
2682
2682
|
body: JSON.stringify({ items: O })
|
|
2683
2683
|
};
|
|
2684
|
-
fetch(l, A).then((
|
|
2685
|
-
window.postMessage({ type: `AddFavoriteThumbnail_${G}` }, window.location.href)
|
|
2686
|
-
|
|
2687
|
-
|
|
2684
|
+
fetch(l, A).then((E) => E.json()).then((E) => {
|
|
2685
|
+
window.postMessage({ type: `AddFavoriteThumbnail_${G}` }, window.location.href), window.postMessage({
|
|
2686
|
+
type: "UpdateFavoredList",
|
|
2687
|
+
url: l,
|
|
2688
|
+
sessionID: _
|
|
2689
|
+
});
|
|
2690
|
+
}).catch((E) => {
|
|
2691
|
+
console.error("Err", E);
|
|
2688
2692
|
});
|
|
2689
2693
|
};
|
|
2690
2694
|
const Sa = (l, _, G) => {
|
|
2691
|
-
let
|
|
2695
|
+
let R = {
|
|
2692
2696
|
method: "DELETE",
|
|
2693
2697
|
headers: { "X-SessionID": _ }
|
|
2694
2698
|
};
|
|
2695
|
-
fetch(`${l}/${G}`,
|
|
2699
|
+
fetch(`${l}/${G}`, R).then((A) => A.json()).then(() => {
|
|
2696
2700
|
window.postMessage(
|
|
2697
2701
|
{
|
|
2698
2702
|
type: `RemoveFavoriteThumbnail_${G}`
|
|
2699
2703
|
},
|
|
2700
2704
|
window.location.href
|
|
2701
|
-
),
|
|
2705
|
+
), window.postMessage({
|
|
2706
|
+
type: "UpdateFavoredList",
|
|
2707
|
+
url: l,
|
|
2708
|
+
sessionID: _
|
|
2709
|
+
});
|
|
2702
2710
|
}), O.includes(G) && (O = O.filter((A) => A != G));
|
|
2703
|
-
},
|
|
2711
|
+
}, Ze = async (l, _) => fetch(l, {
|
|
2704
2712
|
method: "GET",
|
|
2705
2713
|
headers: { "X-SessionID": _ }
|
|
2706
|
-
}).then((
|
|
2707
|
-
N =
|
|
2708
|
-
O.includes(
|
|
2709
|
-
}), ka()) : N.forEach((
|
|
2710
|
-
|
|
2714
|
+
}).then((R) => R.json()).then((R) => {
|
|
2715
|
+
N = R.items, re ? (N.forEach((E) => {
|
|
2716
|
+
O.includes(E.id) || O.push(E.id);
|
|
2717
|
+
}), ka()) : N.forEach((E) => {
|
|
2718
|
+
E.isFavorite = B(E.id);
|
|
2711
2719
|
});
|
|
2712
2720
|
const A = Ee(N)?.length;
|
|
2713
2721
|
g === "FAVORITES" && (window.postMessage({
|
|
2714
2722
|
type: "UpdateFavoritesCount",
|
|
2715
2723
|
favoriteGamesLength: A
|
|
2716
|
-
}),
|
|
2717
|
-
}).catch((
|
|
2718
|
-
console.error(
|
|
2719
|
-
}),
|
|
2724
|
+
}), Ve(N));
|
|
2725
|
+
}).catch((R) => {
|
|
2726
|
+
console.error(R);
|
|
2727
|
+
}), Ve = (l) => {
|
|
2720
2728
|
if (!l)
|
|
2721
2729
|
return;
|
|
2722
2730
|
let _;
|
|
@@ -2733,11 +2741,11 @@ function Li(i, e, a) {
|
|
|
2733
2741
|
const _ = l ?? [];
|
|
2734
2742
|
if (_?.length === 0)
|
|
2735
2743
|
return "";
|
|
2736
|
-
let G = "",
|
|
2737
|
-
const
|
|
2744
|
+
let G = "", R = 999999999999, A;
|
|
2745
|
+
const E = new Date(Date.now());
|
|
2738
2746
|
return _.forEach((C, J) => {
|
|
2739
2747
|
const j = new Date(C.schedules[0].startTime), H = new Date(C.schedules[0].endTime);
|
|
2740
|
-
xe(new Date(H), new Date(
|
|
2748
|
+
xe(new Date(H), new Date(E)) < R && (R = xe(new Date(H), new Date(E)), A = J), ni(new Date(E), new Date(j)) && ti(new Date(E), new Date(H)) && (G = _[A].name);
|
|
2741
2749
|
}), G;
|
|
2742
2750
|
}, Qe = (l) => {
|
|
2743
2751
|
a(30, Q = !1), window.postMessage(
|
|
@@ -2760,20 +2768,20 @@ function Li(i, e, a) {
|
|
|
2760
2768
|
le === "false" && c && m && a(39, ue = !1);
|
|
2761
2769
|
break;
|
|
2762
2770
|
default:
|
|
2763
|
-
|
|
2771
|
+
Xe(g);
|
|
2764
2772
|
break;
|
|
2765
2773
|
}
|
|
2766
2774
|
}, Ma = () => {
|
|
2767
2775
|
document[Me] ? a(41, Ue = "disconnect") : a(41, Ue = "connect");
|
|
2768
2776
|
}, Ia = () => {
|
|
2769
2777
|
ze && fe.forEach((l, _) => {
|
|
2770
|
-
l && (l.elems_index = _,
|
|
2778
|
+
l && (l.elems_index = _, Je.observe(l));
|
|
2771
2779
|
});
|
|
2772
2780
|
}, Ea = () => {
|
|
2773
2781
|
oi(r);
|
|
2774
2782
|
};
|
|
2775
2783
|
Ka(() => {
|
|
2776
|
-
|
|
2784
|
+
Je?.disconnect();
|
|
2777
2785
|
}), Xa(() => (window.addEventListener("visibilitychange", (l) => Ma()), window.addEventListener("message", He, !1), () => {
|
|
2778
2786
|
window.removeEventListener("message", He), window.removeEventListener("visibilitychange", He);
|
|
2779
2787
|
}));
|
|
@@ -2809,7 +2817,7 @@ function Li(i, e, a) {
|
|
|
2809
2817
|
});
|
|
2810
2818
|
}
|
|
2811
2819
|
return i.$$set = (l) => {
|
|
2812
|
-
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, M = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20,
|
|
2820
|
+
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, M = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20, qe = l.filterbylogo), "casinogamesgridslider" in l && a(21, We = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48, Re = l.showallpage), "actionevent" in l && a(49, Ae = l.actionevent), "displayedgamecount" in l && a(50, ye = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ke = l.showallbuttongamescount), "lobbyscreen" in l && a(52, Ne = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, Ge = l.usesinglevendorfilter), "visiblegames" in l && a(53, je = l.visiblegames);
|
|
2813
2821
|
}, i.$$.update = () => {
|
|
2814
2822
|
i.$$.dirty[0] & /*lang*/
|
|
2815
2823
|
32 && r && Ea(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
@@ -2844,8 +2852,8 @@ function Li(i, e, a) {
|
|
|
2844
2852
|
v,
|
|
2845
2853
|
X,
|
|
2846
2854
|
le,
|
|
2855
|
+
qe,
|
|
2847
2856
|
We,
|
|
2848
|
-
Ye,
|
|
2849
2857
|
Ge,
|
|
2850
2858
|
q,
|
|
2851
2859
|
fe,
|
|
@@ -2868,7 +2876,7 @@ function Li(i, e, a) {
|
|
|
2868
2876
|
Ue,
|
|
2869
2877
|
te,
|
|
2870
2878
|
t,
|
|
2871
|
-
|
|
2879
|
+
Ye,
|
|
2872
2880
|
Fa,
|
|
2873
2881
|
Qe,
|
|
2874
2882
|
re,
|