@everymatrix/casino-page-nd 1.77.7 → 1.77.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFavoritesSectionNd-CdwEnzJZ.js → CasinoFavoritesSectionNd-0mJ6RL8V.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-D2mS2udu.js → CasinoFavoritesSectionNd-BGWRCGIA.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-CeAGZTra.cjs → CasinoFavoritesSectionNd-CxKtk_F7.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BkwNf7Ie.js → CasinoGamesCategorySectionNd-Ch7UYkAx.js} +57 -57
- package/components/{CasinoGamesCategorySectionNd-CAu_HICy.js → CasinoGamesCategorySectionNd-Cnnba9sa.js} +115 -115
- package/components/{CasinoGamesCategorySectionNd-D5biWT8q.cjs → CasinoGamesCategorySectionNd-CqphQ-de.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-CBg0CTuZ.cjs → CasinoLastPlayedSectionNd-BIAayfEX.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-TYJKDp-v.js → CasinoLastPlayedSectionNd-C1wRm8wE.js} +1 -1
- package/components/{CasinoLastPlayedSectionNd-DQd4u6Ws.js → CasinoLastPlayedSectionNd-hkEvsgJI.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-DjSy01-O.cjs → CasinoMostPlayedSectionNd-CFM1yXwt.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-Bj6PXsxR.js → CasinoMostPlayedSectionNd-D8i4BUNG.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-7P294fn0.js → CasinoMostPlayedSectionNd-LytMNWvc.js} +1 -1
- package/components/{CasinoMyGamesNd-C9c0AkAW.js → CasinoMyGamesNd-BB0oNhFI.js} +3 -3
- package/components/{CasinoMyGamesNd-DoJHMCBO.js → CasinoMyGamesNd-Dq6Dlkno.js} +3 -3
- package/components/{CasinoMyGamesNd-CItS5u2W.cjs → CasinoMyGamesNd-XbXB5eJ-.cjs} +1 -1
- package/components/{CasinoPageNd-BTefiNYK.cjs → CasinoPageNd-BNeGwygZ.cjs} +1 -1
- package/components/{CasinoPageNd-BemVSt5X.js → CasinoPageNd-C1V3G6gS.js} +3 -3
- package/components/{CasinoPageNd-BzrF3kYM.js → CasinoPageNd-DKZz18XW.js} +3 -3
- package/components/CasinoSearchNd-BVEWgq5n.cjs +1 -0
- package/components/{CasinoSearchNd-BPqPfey5.js → CasinoSearchNd-Bo4IP8b1.js} +263 -236
- package/components/{CasinoSearchNd-D-dzQh4R.js → CasinoSearchNd-DXQ9Qwfg.js} +169 -158
- 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/lazy/{casino-favorites-section-nd-dxjmtKKO.js → casino-favorites-section-nd--AMnuoRU.js} +1 -1
- package/lazy/{casino-favorites-section-nd-i0uIOVGD.cjs → casino-favorites-section-nd-CQgMbpxt.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd-Dst1OGJj.js → casino-favorites-section-nd-D2VLdX83.js} +1 -1
- package/lazy/{casino-games-category-section-nd-CSKvlTtk.js → casino-games-category-section-nd-CaDNvKu1.js} +1 -1
- package/lazy/{casino-games-category-section-nd-BnFZJMB1.js → casino-games-category-section-nd-CifLABXO.js} +1 -1
- package/lazy/{casino-games-category-section-nd-DOnMFImu.cjs → casino-games-category-section-nd-D7yxFIiu.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-DS3PNGJE.js → casino-last-played-section-nd-C6FQsZ2J.js} +1 -1
- package/lazy/{casino-last-played-section-nd-BCV-c2ss.js → casino-last-played-section-nd-DFHsNsYW.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CtRYZ71v.cjs → casino-last-played-section-nd-YLYUMJRO.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-weFBbO8x.cjs → casino-most-played-section-nd-BzBHiW6D.cjs} +1 -1
- package/lazy/{casino-most-played-section-nd-C947V460.js → casino-most-played-section-nd-CsN8xi5e.js} +1 -1
- package/lazy/{casino-most-played-section-nd-CN4-DEYf.js → casino-most-played-section-nd-Yea3f9Si.js} +1 -1
- package/lazy/{casino-my-games-nd-CE38OsFg.js → casino-my-games-nd-B7anfWWS.js} +1 -1
- package/lazy/{casino-my-games-nd-BerMgLYs.js → casino-my-games-nd-ikqfKgMd.js} +1 -1
- package/lazy/{casino-my-games-nd-DRxtJXue.cjs → casino-my-games-nd-sNbRe4io.cjs} +1 -1
- package/lazy/{casino-search-nd-BiwLSkgL.cjs → casino-search-nd-CpNxCltl.cjs} +1 -1
- package/lazy/{casino-search-nd-ZzfGGH-J.js → casino-search-nd-Dpk7Zw6M.js} +1 -1
- package/lazy/{casino-search-nd-BMooCpw9.js → casino-search-nd-fmDOb2sI.js} +1 -1
- package/package.json +1 -1
- package/components/CasinoSearchNd-DyiDlSpR.cjs +0 -1
package/components/{CasinoFavoritesSectionNd-CdwEnzJZ.js → CasinoFavoritesSectionNd-0mJ6RL8V.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as I, O as D, S as E, i as J, s as K, f as l, b as M, n as q, d as O, h as R, j, u as N, o as T, F as n, D as U, I as V, J as B, K as G, L as H } from "./CasinoCalendar-BDBAlpOq.js";
|
|
2
|
-
import "../lazy/casino-games-category-section-nd-
|
|
2
|
+
import "../lazy/casino-games-category-section-nd-CifLABXO.js";
|
|
3
3
|
function P({ withLocale: s, translations: e }) {
|
|
4
4
|
I.subscribe((t) => {
|
|
5
5
|
t == null && (D.set(e), I.set(s));
|
package/components/{CasinoFavoritesSectionNd-D2mS2udu.js → CasinoFavoritesSectionNd-BGWRCGIA.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as L, O as z, S as H, i as J, s as K, f as l, b as M, n as q, d as E, h as O, j as R, r as N, o as T, E as n, C as U, H as V, I as B, J as D, K as G } from "./CasinoCalendar-D6jmsZcK.js";
|
|
2
|
-
import "../lazy/casino-games-category-section-nd-
|
|
2
|
+
import "../lazy/casino-games-category-section-nd-CaDNvKu1.js";
|
|
3
3
|
function P({ withLocale: s, translations: e }) {
|
|
4
4
|
L.subscribe((t) => {
|
|
5
5
|
t == null && (z.set(e), L.set(s));
|
package/components/{CasinoFavoritesSectionNd-CeAGZTra.cjs → CasinoFavoritesSectionNd-CxKtk_F7.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-lrNBAs15.cjs");require("../lazy/casino-games-category-section-nd-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-lrNBAs15.cjs");require("../lazy/casino-games-category-section-nd-D7yxFIiu.cjs");function I({withLocale:n,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(n))})}function M(n){t.append_styles(n,"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 q(n){let e;return{c(){e=t.element("casino-games-category-section-nd"),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[16]),t.set_custom_element_data(e,"fetchviaevent",n[18]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[9]),t.set_custom_element_data(e,"livecasino",n[10]),t.set_custom_element_data(e,"visiblegames",n[15]),t.set_custom_element_data(e,"gamepagemodalurl",n[14]),t.set_custom_element_data(e,"integratedgameframedesktop",n[12]),t.set_custom_element_data(e,"integratedgameframemobile",n[11]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[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&65536&&t.set_custom_element_data(e,"favorites",s[16]),i&262144&&t.set_custom_element_data(e,"fetchviaevent",s[18]),i&8192&&t.set_custom_element_data(e,"showgamename",s[13]),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,"translationurl",s[9]),i&1024&&t.set_custom_element_data(e,"livecasino",s[10]),i&32768&&t.set_custom_element_data(e,"visiblegames",s[15]),i&16384&&t.set_custom_element_data(e,"gamepagemodalurl",s[14]),i&4096&&t.set_custom_element_data(e,"integratedgameframedesktop",s[12]),i&2048&&t.set_custom_element_data(e,"integratedgameframemobile",s[11]),i&131072&&t.set_custom_element_data(e,"casinomygames",s[17]),i&64&&t.set_custom_element_data(e,"mbsource",s[6])},d(s){s&&t.detach(e)}}}function O(n){let e,s=n[4]&&q(n);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,m){t.insert(i,e,m),s&&s.m(e,null),n[20](e)},p(i,[m]){i[4]?s?s.p(i,m):(s=q(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(),n[20](null)}}}function R(n,e,s){let{endpoint:i=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:g=""}=e,{session:_=""}=e,{userid:f=""}=e,{mbsource:u}=e,{clientstyling:o=""}=e,{clientstylingurl:c=""}=e,{translationurl:d=""}=e,{livecasino:h="false"}=e,{integratedgameframemobile:b="false"}=e,{integratedgameframedesktop:v="false"}=e,{showgamename:y=""}=e,{gamepagemodalurl:w="false"}=e,{visiblegames:k=""}=e,{favorites:C=""}=e,{casinomygames:S="false"}=e,{fetchviaevent:F="true"}=e,l;I({withLocale:"en",translations:{}}),t.onMount(()=>()=>{});function A(a){t.binding_callbacks[a?"unshift":"push"](()=>{l=a,s(19,l)})}return n.$$set=a=>{"endpoint"in a&&s(0,i=a.endpoint),"datasource"in a&&s(1,m=a.datasource),"currency"in a&&s(2,r=a.currency),"lang"in a&&s(3,g=a.lang),"session"in a&&s(4,_=a.session),"userid"in a&&s(5,f=a.userid),"mbsource"in a&&s(6,u=a.mbsource),"clientstyling"in a&&s(7,o=a.clientstyling),"clientstylingurl"in a&&s(8,c=a.clientstylingurl),"translationurl"in a&&s(9,d=a.translationurl),"livecasino"in a&&s(10,h=a.livecasino),"integratedgameframemobile"in a&&s(11,b=a.integratedgameframemobile),"integratedgameframedesktop"in a&&s(12,v=a.integratedgameframedesktop),"showgamename"in a&&s(13,y=a.showgamename),"gamepagemodalurl"in a&&s(14,w=a.gamepagemodalurl),"visiblegames"in a&&s(15,k=a.visiblegames),"favorites"in a&&s(16,C=a.favorites),"casinomygames"in a&&s(17,S=a.casinomygames),"fetchviaevent"in a&&s(18,F=a.fetchviaevent)},n.$$.update=()=>{n.$$.dirty&524416&&o&&l&&t.setClientStyling(l,o),n.$$.dirty&524544&&c&&l&&t.setClientStylingURL(l,c),n.$$.dirty&524352&&u&&l&&t.setStreamStyling(l,`${u}.Style`)},[i,m,r,g,_,f,u,o,c,d,h,b,v,y,w,k,C,S,F,l,A]}class L extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,O,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,translationurl:9,livecasino:10,integratedgameframemobile:11,integratedgameframedesktop:12,showgamename:13,gamepagemodalurl:14,visiblegames:15,favorites:16,casinomygames:17,fetchviaevent:18},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 translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[14]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[15]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[16]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(L,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{}},[],[],!0);exports.default=L;
|
|
@@ -2431,8 +2431,8 @@ function Pi(i, e, a) {
|
|
|
2431
2431
|
let { endpoint: t = "" } = 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: O = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: Q = "false" } = e, { casinomygames: me = "false" } = e, { addfilterselector: ye = "false" } = e, { addsortingselector: ke = "false" } = e, { filterbylogo: Ke = "" } = e, { casinogamesgridslider: Xe = "false" } = e, { fetchviaevent: ce = "false" } = e, { showallpage: je = "casino" } = e, { actionevent: Te = "CategoryChange" } = e, { displayedgamecount: Ge = "10" } = e, { showallbuttongamescount: Se = "10" } = e, { lobbyscreen: Pe = "true" } = e, { usesinglevendorfilter: Ce = "false" } = e, { visiblegames: De = "10" } = e, x = !0, Ue = !1, Fe, ze, K = !0, Ze = window.navigator.userAgent, j, F = [], $ = !0, ne = 40, X = !1, Me = !1, ge = !1, Oe = !1, Be = !0, de = !1, ue, He, fe, he = !1, Y, Ie = !1, _e = new Array(1e4), pe = {}, Ve = "", oe = "", Ee, qe, A, B = [], Ae = new AbortController(), te = { items: [], count: 0, name: "" };
|
|
2432
2432
|
const ka = () => {
|
|
2433
2433
|
fetch(M).then((_) => _.json()).then((_) => {
|
|
2434
|
-
Object.keys(_).forEach((
|
|
2435
|
-
na(
|
|
2434
|
+
Object.keys(_).forEach((y) => {
|
|
2435
|
+
na(y, _[y]);
|
|
2436
2436
|
});
|
|
2437
2437
|
}).catch((_) => {
|
|
2438
2438
|
console.log(_);
|
|
@@ -2443,20 +2443,20 @@ function Pi(i, e, a) {
|
|
|
2443
2443
|
}), typeof document.hidden != "undefined" ? Ee = "hidden" : typeof document.msHidden != "undefined" ? Ee = "msHidden" : typeof document.webkitHidden != "undefined" && (Ee = "webkitHidden");
|
|
2444
2444
|
let Re = new IntersectionObserver((l) => {
|
|
2445
2445
|
l.forEach((_) => Ne(this, null, function* () {
|
|
2446
|
-
let
|
|
2447
|
-
_.isIntersecting ? (E * 1.2 > ne && Ia(g), a(40, pe[
|
|
2446
|
+
let y = _.target.gameid, E = _.target.elems_index;
|
|
2447
|
+
_.isIntersecting ? (E * 1.2 > ne && Ia(g), a(40, pe[y] = 1, pe)) : a(40, pe[y] = 0, pe);
|
|
2448
2448
|
}));
|
|
2449
2449
|
});
|
|
2450
|
-
const Ga = (l, _) => new Promise((
|
|
2450
|
+
const Ga = (l, _) => new Promise((y, E) => {
|
|
2451
2451
|
if (l && _) {
|
|
2452
2452
|
let N = `${t}/v1/player/${_}/favorites/`;
|
|
2453
2453
|
fetch(N, {
|
|
2454
2454
|
method: "GET",
|
|
2455
2455
|
headers: { "X-SessionID": l }
|
|
2456
|
-
}).then((
|
|
2456
|
+
}).then((k) => k.json()).then((k) => {
|
|
2457
2457
|
var J, T;
|
|
2458
|
-
if (A = [],
|
|
2459
|
-
(J =
|
|
2458
|
+
if (A = [], k) {
|
|
2459
|
+
(J = k.items) == null || J.forEach((q) => {
|
|
2460
2460
|
q.gameModel && (A.push(q), B.includes(q.id) || B.push(q.id));
|
|
2461
2461
|
});
|
|
2462
2462
|
const V = (T = Le(A)) == null ? void 0 : T.length;
|
|
@@ -2466,24 +2466,24 @@ function Pi(i, e, a) {
|
|
|
2466
2466
|
});
|
|
2467
2467
|
} else
|
|
2468
2468
|
A = [];
|
|
2469
|
-
g === "FAVORITES" && Je(A),
|
|
2470
|
-
}).catch((
|
|
2471
|
-
console.error(
|
|
2469
|
+
g === "FAVORITES" && Je(A), y(A);
|
|
2470
|
+
}).catch((k) => {
|
|
2471
|
+
console.error(k), E(k);
|
|
2472
2472
|
});
|
|
2473
2473
|
} else
|
|
2474
|
-
|
|
2474
|
+
y([]);
|
|
2475
2475
|
}), We = (l, _) => {
|
|
2476
|
-
let
|
|
2476
|
+
let y = `${t}/v1/player/${_}/favorites/`;
|
|
2477
2477
|
a(25, x = !0);
|
|
2478
2478
|
let E = {
|
|
2479
2479
|
method: "GET",
|
|
2480
2480
|
headers: { "X-SessionID": l }
|
|
2481
2481
|
};
|
|
2482
2482
|
return new Promise((N, R) => {
|
|
2483
|
-
fetch(
|
|
2483
|
+
fetch(y, E).then((k) => k.json()).then((k) => {
|
|
2484
2484
|
var T, V;
|
|
2485
|
-
if (a(25, x = !1), A = [],
|
|
2486
|
-
(T =
|
|
2485
|
+
if (a(25, x = !1), A = [], k) {
|
|
2486
|
+
(T = k.items) == null || T.forEach((se) => {
|
|
2487
2487
|
se.gameModel && (A.push(se), B.includes(se.id) || B.push(se.id));
|
|
2488
2488
|
});
|
|
2489
2489
|
const q = (V = Le(A)) == null ? void 0 : V.length;
|
|
@@ -2498,27 +2498,27 @@ function Pi(i, e, a) {
|
|
|
2498
2498
|
});
|
|
2499
2499
|
let J = F;
|
|
2500
2500
|
a(29, F = void 0), a(29, F = J), N(A);
|
|
2501
|
-
}).catch((
|
|
2502
|
-
console.error(
|
|
2501
|
+
}).catch((k) => {
|
|
2502
|
+
console.error(k), R(k);
|
|
2503
2503
|
});
|
|
2504
2504
|
});
|
|
2505
|
-
}, Qe = (l, _,
|
|
2505
|
+
}, Qe = (l, _, y, E) => {
|
|
2506
2506
|
Ae && Ae.abort(), Ae = new AbortController();
|
|
2507
2507
|
const N = Ae.signal;
|
|
2508
2508
|
a(25, x = !0);
|
|
2509
|
-
let R = "",
|
|
2509
|
+
let R = "", k = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), T = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2510
2510
|
const V = Ce === "true" ? "*" : l;
|
|
2511
|
-
return (l.match(/\$/g) || []).length > 1 ? (R = l.split("$").slice(0, 2).join("$"),
|
|
2511
|
+
return (l.match(/\$/g) || []).length > 1 ? (R = l.split("$").slice(0, 2).join("$"), k = new URL(`${t}/v1/casino/groups/${s}/${R}/subGroups`)) : k = new URL(`${t}/v1/casino/groups/${s}/${l}`), new Promise((q, se) => {
|
|
2512
2512
|
var aa;
|
|
2513
|
-
if (
|
|
2513
|
+
if (k.searchParams.delete("pagination"), k.searchParams.append("expand", "games(vendor)"), k.searchParams.append("fields", "id,name,games"), k.searchParams.append("platform", Qa(Ze)), k.searchParams.append("pagination", `games(offset=${_},limit=${y})`), k.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), J && ((aa = J[V]) != null && aa.length))
|
|
2514
2514
|
if (Ce === "true" || K === !1 && he === !1) {
|
|
2515
2515
|
let P = "";
|
|
2516
2516
|
a(34, Oe = !0), J[V].forEach((ee) => {
|
|
2517
2517
|
P = P + (P ? `,games(vendor(id=${ee}))` : `games(vendor(id=${ee}))`);
|
|
2518
|
-
}),
|
|
2518
|
+
}), k.searchParams.append("filter", `${P}`);
|
|
2519
2519
|
} else
|
|
2520
2520
|
a(34, Oe = !1);
|
|
2521
|
-
T && (T[l] ? T[l] && T[l] != "All" && (T[l] == "isNew" || T[l] == "advancedTags(name(hot))" ? (
|
|
2521
|
+
T && (T[l] ? T[l] && T[l] != "All" && (T[l] == "isNew" || T[l] == "advancedTags(name(hot))" ? (k.searchParams.append("sortedField", `games(${T[l]})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${T[l]})`)) : oe && oe != "All" && (oe == "advancedTags(name(hot))" || oe == "isNew" ? (k.searchParams.append("sortedField", `games(${oe})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${oe})`))), fetch(k, { signal: N }).then((P) => P.json()).then((P) => {
|
|
2522
2522
|
N.aborted || (a(25, x = !1), (l.match(/\$/g) || []).length > 1 && (P = P.items.filter((ee) => {
|
|
2523
2523
|
if (ee.id == l)
|
|
2524
2524
|
return ee;
|
|
@@ -2531,19 +2531,19 @@ function Pi(i, e, a) {
|
|
|
2531
2531
|
Sa();
|
|
2532
2532
|
});
|
|
2533
2533
|
});
|
|
2534
|
-
}, ve = (l, _,
|
|
2534
|
+
}, ve = (l, _, y) => new Promise((E, N) => {
|
|
2535
2535
|
u == "true" ? Ga(m, c).then((R) => {
|
|
2536
|
-
Qe(l, _,
|
|
2537
|
-
E(
|
|
2536
|
+
Qe(l, _, y, R).then((k) => {
|
|
2537
|
+
E(k);
|
|
2538
2538
|
});
|
|
2539
|
-
}) : Qe(l, _,
|
|
2539
|
+
}) : Qe(l, _, y, null).then((R) => {
|
|
2540
2540
|
E(R);
|
|
2541
2541
|
});
|
|
2542
2542
|
}), Sa = () => {
|
|
2543
2543
|
const l = Y.getRootNode().host;
|
|
2544
2544
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2545
|
-
}, Ca = (l, _,
|
|
2546
|
-
l !== "" && (a(31, X = !1), a(27, K = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1), Ie = !1, a(30, $ = +_ > +
|
|
2545
|
+
}, Ca = (l, _, y) => {
|
|
2546
|
+
l !== "" && (a(31, X = !1), a(27, K = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1), Ie = !1, a(30, $ = +_ > +y), ve(l, 0, +_).then((E) => {
|
|
2547
2547
|
a(28, j = E), a(29, F = j.games.items), F && F.forEach((N) => {
|
|
2548
2548
|
N.isFavorite = H(N.id);
|
|
2549
2549
|
});
|
|
@@ -2592,8 +2592,8 @@ function Pi(i, e, a) {
|
|
|
2592
2592
|
break;
|
|
2593
2593
|
case `CategoryData_${g}`:
|
|
2594
2594
|
a(31, X = !1), a(27, K = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1), Ie = !1, ve(l.data.categoryId, 0, l.data.visiblegames).then((_) => {
|
|
2595
|
-
a(28, j = _), a(29, F = j.games.items), a(30, $ = !!(He <= l.data.visiblegames && K)), F && F.forEach((
|
|
2596
|
-
|
|
2595
|
+
a(28, j = _), a(29, F = j.games.items), a(30, $ = !!(He <= l.data.visiblegames && K)), F && F.forEach((y) => {
|
|
2596
|
+
y.isFavorite = H(y.id);
|
|
2597
2597
|
});
|
|
2598
2598
|
});
|
|
2599
2599
|
break;
|
|
@@ -2621,9 +2621,9 @@ function Pi(i, e, a) {
|
|
|
2621
2621
|
g === "FAVORITES" && $e(l.data.url, l.data.sessionID);
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
2624
|
-
}, xe = (l) => {
|
|
2625
|
-
a(31, X = !1), a(27, K = Pe === "true"), a(33, ge = !1), Ie = !0, a(36, de = !1), a(0, g = l), g !== "MOSTPLAYED" && a(30, $ = !1), me !== "true" && (!A && m && We(m, c), ve(g, 0, ne).then((
|
|
2626
|
-
a(28, j =
|
|
2624
|
+
}, xe = (l, _ = !1) => {
|
|
2625
|
+
a(31, X = !1), a(27, K = Pe === "true"), a(33, ge = !1), Ie = !0, a(36, de = !1), a(0, g = l), g !== "MOSTPLAYED" && !_ && a(30, $ = !1), me !== "true" && (!A && m && We(m, c), ve(g, 0, ne).then((y) => {
|
|
2626
|
+
a(28, j = y), a(29, F = j.games.items);
|
|
2627
2627
|
}).finally(
|
|
2628
2628
|
/*// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
2629
2629
|
if (shownCategoryData.length < 10 && e.data.origin ==! 'filters') {
|
|
@@ -2649,10 +2649,10 @@ function Pi(i, e, a) {
|
|
|
2649
2649
|
}));
|
|
2650
2650
|
}, H = (l) => {
|
|
2651
2651
|
var _;
|
|
2652
|
-
return (_ = A == null ? void 0 : A.some((
|
|
2652
|
+
return (_ = A == null ? void 0 : A.some((y) => y.id === l)) != null ? _ : !1;
|
|
2653
2653
|
};
|
|
2654
|
-
let za = (l, _,
|
|
2655
|
-
yield $e(l, _), B.includes(
|
|
2654
|
+
let za = (l, _, y) => Ne(this, null, function* () {
|
|
2655
|
+
yield $e(l, _), B.includes(y) || B.push(y);
|
|
2656
2656
|
let N = {
|
|
2657
2657
|
method: "POST",
|
|
2658
2658
|
headers: {
|
|
@@ -2663,7 +2663,7 @@ function Pi(i, e, a) {
|
|
|
2663
2663
|
body: JSON.stringify({ items: B })
|
|
2664
2664
|
};
|
|
2665
2665
|
fetch(l, N).then((R) => R.json()).then((R) => {
|
|
2666
|
-
window.postMessage({ type: `AddFavoriteThumbnail_${
|
|
2666
|
+
window.postMessage({ type: `AddFavoriteThumbnail_${y}` }, window.location.href), window.postMessage({
|
|
2667
2667
|
type: "UpdateFavoredList",
|
|
2668
2668
|
url: l,
|
|
2669
2669
|
sessionID: _
|
|
@@ -2672,15 +2672,15 @@ function Pi(i, e, a) {
|
|
|
2672
2672
|
console.error("Err", R);
|
|
2673
2673
|
});
|
|
2674
2674
|
});
|
|
2675
|
-
const Ma = (l, _,
|
|
2675
|
+
const Ma = (l, _, y) => {
|
|
2676
2676
|
let E = {
|
|
2677
2677
|
method: "DELETE",
|
|
2678
2678
|
headers: { "X-SessionID": _ }
|
|
2679
2679
|
};
|
|
2680
|
-
fetch(`${l}/${
|
|
2680
|
+
fetch(`${l}/${y}`, E).then((N) => N.json()).then(() => {
|
|
2681
2681
|
window.postMessage(
|
|
2682
2682
|
{
|
|
2683
|
-
type: `RemoveFavoriteThumbnail_${
|
|
2683
|
+
type: `RemoveFavoriteThumbnail_${y}`
|
|
2684
2684
|
},
|
|
2685
2685
|
window.location.href
|
|
2686
2686
|
), window.postMessage({
|
|
@@ -2688,17 +2688,17 @@ function Pi(i, e, a) {
|
|
|
2688
2688
|
url: l,
|
|
2689
2689
|
sessionID: _
|
|
2690
2690
|
});
|
|
2691
|
-
}), B.includes(
|
|
2691
|
+
}), B.includes(y) && (B = B.filter((N) => N != y));
|
|
2692
2692
|
}, $e = (l, _) => Ne(this, null, function* () {
|
|
2693
2693
|
return fetch(l, {
|
|
2694
2694
|
method: "GET",
|
|
2695
2695
|
headers: { "X-SessionID": _ }
|
|
2696
2696
|
}).then((E) => E.json()).then((E) => {
|
|
2697
2697
|
var R;
|
|
2698
|
-
A = E.items, ce ? (A.forEach((
|
|
2699
|
-
B.includes(
|
|
2700
|
-
}), Fa()) : A.forEach((
|
|
2701
|
-
|
|
2698
|
+
A = E.items, ce ? (A.forEach((k) => {
|
|
2699
|
+
B.includes(k.id) || B.push(k.id);
|
|
2700
|
+
}), Fa()) : A.forEach((k) => {
|
|
2701
|
+
k.isFavorite = H(k.id);
|
|
2702
2702
|
});
|
|
2703
2703
|
const N = (R = Le(A)) == null ? void 0 : R.length;
|
|
2704
2704
|
g === "FAVORITES" && (window.postMessage({
|
|
@@ -2712,25 +2712,25 @@ function Pi(i, e, a) {
|
|
|
2712
2712
|
if (!l)
|
|
2713
2713
|
return;
|
|
2714
2714
|
let _;
|
|
2715
|
-
_ = (l == null ? void 0 : l.items) || l || [], _.length > 0 && _.forEach((
|
|
2716
|
-
|
|
2715
|
+
_ = (l == null ? void 0 : l.items) || l || [], _.length > 0 && _.forEach((y) => {
|
|
2716
|
+
y.gameModel && (y.gameModel.isFavorite = !0);
|
|
2717
2717
|
}), a(42, te.items = Le(_, te.items), te), a(42, te.name = "Favorites", te), a(25, x = !1);
|
|
2718
2718
|
}, Ia = (l) => {
|
|
2719
2719
|
ne += 1, a(36, de = !0), ne <= He && ve(l, Ti, ne).then((_) => {
|
|
2720
|
-
a(28, j = _), j.games.items.length > F.length && (a(29, F = j.games.items), F.forEach((
|
|
2721
|
-
|
|
2720
|
+
a(28, j = _), j.games.items.length > F.length && (a(29, F = j.games.items), F.forEach((y) => {
|
|
2721
|
+
y.isFavorite = H(y.id);
|
|
2722
2722
|
})), a(36, de = !1);
|
|
2723
2723
|
});
|
|
2724
2724
|
}, Ea = (l) => {
|
|
2725
2725
|
const _ = l != null ? l : [];
|
|
2726
2726
|
if ((_ == null ? void 0 : _.length) === 0)
|
|
2727
2727
|
return "";
|
|
2728
|
-
let
|
|
2728
|
+
let y = "", E = 999999999999, N;
|
|
2729
2729
|
const R = new Date(Date.now());
|
|
2730
|
-
return _.forEach((
|
|
2731
|
-
const T = new Date(
|
|
2732
|
-
ia(new Date(V), new Date(R)) < E && (E = ia(new Date(V), new Date(R)), N = J), ti(new Date(R), new Date(T)) && si(new Date(R), new Date(V)) && (
|
|
2733
|
-
}),
|
|
2730
|
+
return _.forEach((k, J) => {
|
|
2731
|
+
const T = new Date(k.schedules[0].startTime), V = new Date(k.schedules[0].endTime);
|
|
2732
|
+
ia(new Date(V), new Date(R)) < E && (E = ia(new Date(V), new Date(R)), N = J), ti(new Date(R), new Date(T)) && si(new Date(R), new Date(V)) && (y = _[N].name);
|
|
2733
|
+
}), y;
|
|
2734
2734
|
}, ea = (l) => {
|
|
2735
2735
|
a(30, $ = !1), window.postMessage(
|
|
2736
2736
|
{
|
|
@@ -2752,7 +2752,7 @@ function Pi(i, e, a) {
|
|
|
2752
2752
|
me === "false" && c && m && a(39, he = !1);
|
|
2753
2753
|
break;
|
|
2754
2754
|
default:
|
|
2755
|
-
xe(g);
|
|
2755
|
+
xe(g, !0);
|
|
2756
2756
|
break;
|
|
2757
2757
|
}
|
|
2758
2758
|
}, Ra = () => {
|