@everymatrix/casino-tournaments-thumbnail-controller 1.85.17 → 1.85.19
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/{CasinoTournamentsThumbnail-D0bhSl27.js → CasinoTournamentsThumbnail-Cm8ygS_j.js} +2 -0
- package/components/{CasinoTournamentsThumbnail-CM0KZ_qz.cjs → CasinoTournamentsThumbnail-DgXXegVa.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-9Gq7MC6d.js → CasinoTournamentsThumbnail-J7Of-3j4.js} +2 -0
- package/components/CasinoTournamentsThumbnailController-DD3a1bpc.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-DOjilyoZ.js → CasinoTournamentsThumbnailController-DGTv-6Vg.js} +71 -70
- package/components/{CasinoTournamentsThumbnailController-JwnjQ2RC.js → CasinoTournamentsThumbnailController-yXv_8aa_.js} +56 -55
- package/components/{CasinoTournamentsThumbnailDuration-CtmrF1Bt.js → CasinoTournamentsThumbnailDuration-DMSfakAi.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-z4SPG9J0.cjs → CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-D8wqEI1t.js → CasinoTournamentsThumbnailDuration-ShCMXlPG.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-QWcaIVMB.js → CasinoTournamentsThumbnailGamesSlider-C9n0GZT3.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-CdslU7P8.cjs → CasinoTournamentsThumbnailGamesSlider-HEUEl0MK.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-D8vWKDUH.js → CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-xWpi7CTf.cjs → CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Ch-II_fr.js → CasinoTournamentsThumbnailPrizes-CEvbFf9m.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DW1RprQk.js → CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailController-D_bV_R7A.cjs +0 -16
|
@@ -14,7 +14,7 @@ var ce = (n, t, e) => new Promise((r, i) => {
|
|
|
14
14
|
}, l = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(o, s);
|
|
15
15
|
l((e = e.apply(n, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as me, a as yt, b as vt, S as _t, i as kt, f as _, s as St, c as Tt, d as Ft, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Et, p as jt, q as zt, r as ve, t as Pt, u as O, v as C, w as Bt, x as R, y as _e, z as x, A as Ct, B as Ot, C as xt, D as At } from "./CasinoTournamentsThumbnail-
|
|
17
|
+
import { $ as me, a as yt, b as vt, S as _t, i as kt, f as _, s as St, c as Tt, d as Ft, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Et, p as jt, q as zt, r as ve, t as Pt, u as O, v as C, w as Bt, x as R, y as _e, z as x, A as Ct, B as Ot, C as xt, D as At } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
|
|
18
18
|
/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
@@ -334,7 +334,7 @@ var Je = function() {
|
|
|
334
334
|
var e = new n();
|
|
335
335
|
return e.source = this, e.operator = t, e;
|
|
336
336
|
}, n.prototype.subscribe = function(t, e, r) {
|
|
337
|
-
var i = this, o =
|
|
337
|
+
var i = this, o = Nt(t) ? t : new ye(t, e, r);
|
|
338
338
|
return te(function() {
|
|
339
339
|
var s = i, l = s.operator, f = s.source;
|
|
340
340
|
o.add(l ? l.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -390,13 +390,13 @@ function We(n) {
|
|
|
390
390
|
var t;
|
|
391
391
|
return (t = n != null ? n : Dt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Gt(n) {
|
|
394
394
|
return n && B(n.next) && B(n.error) && B(n.complete);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return n && n instanceof it ||
|
|
396
|
+
function Nt(n) {
|
|
397
|
+
return n && n instanceof it || Gt(n) && rt(n);
|
|
398
398
|
}
|
|
399
|
-
var
|
|
399
|
+
var qt = tt(function(n) {
|
|
400
400
|
return function() {
|
|
401
401
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
402
402
|
};
|
|
@@ -411,7 +411,7 @@ var Nt = tt(function(n) {
|
|
|
411
411
|
return r.operator = e, r;
|
|
412
412
|
}, t.prototype._throwIfClosed = function() {
|
|
413
413
|
if (this.closed)
|
|
414
|
-
throw new
|
|
414
|
+
throw new qt();
|
|
415
415
|
}, t.prototype.next = function(e) {
|
|
416
416
|
var r = this;
|
|
417
417
|
te(function() {
|
|
@@ -504,7 +504,7 @@ var Nt = tt(function(n) {
|
|
|
504
504
|
return (st.delegate || Date).now();
|
|
505
505
|
},
|
|
506
506
|
delegate: void 0
|
|
507
|
-
},
|
|
507
|
+
}, Xt = function(n) {
|
|
508
508
|
U(t, n);
|
|
509
509
|
function t(e, r, i) {
|
|
510
510
|
e === void 0 && (e = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = st);
|
|
@@ -528,27 +528,28 @@ var Nt = tt(function(n) {
|
|
|
528
528
|
}
|
|
529
529
|
}, t;
|
|
530
530
|
}(ot);
|
|
531
|
-
const
|
|
532
|
-
if (
|
|
533
|
-
const e = new
|
|
534
|
-
|
|
531
|
+
const Ge = [], Ne = {}, Yt = (n, t = 0) => {
|
|
532
|
+
if (Ge.indexOf(n) == -1) {
|
|
533
|
+
const e = new Xt(t);
|
|
534
|
+
Ne[n] = e, Ge.push(n);
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return Ne[n];
|
|
537
537
|
};
|
|
538
|
-
window.emWidgets = { topic:
|
|
539
|
-
const
|
|
540
|
-
|
|
538
|
+
window.emWidgets = { topic: Yt };
|
|
539
|
+
const qe = (n) => n.toLowerCase().match(/android/i) ? "Android" : n.toLowerCase().match(/iphone/i) ? "iPhone" : n.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
540
|
+
String(Number.MAX_SAFE_INTEGER).length;
|
|
541
|
+
function Kt({ withLocale: n, translations: t }) {
|
|
541
542
|
me.subscribe((e) => {
|
|
542
543
|
e == null && (yt.set(t), me.set(n));
|
|
543
544
|
});
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
+
function Xe(n, t) {
|
|
546
547
|
vt(n, t);
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function Vt(n) {
|
|
549
550
|
me.set(n);
|
|
550
551
|
}
|
|
551
|
-
const
|
|
552
|
+
const Ye = {
|
|
552
553
|
en: {
|
|
553
554
|
login: "Log in",
|
|
554
555
|
register: "Register",
|
|
@@ -650,7 +651,7 @@ if (typeof window != "undefined") {
|
|
|
650
651
|
}
|
|
651
652
|
};
|
|
652
653
|
};
|
|
653
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
654
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-Cm8ygS_j.js").then((t) => t.L).then(({ default: t }) => {
|
|
654
655
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
655
656
|
});
|
|
656
657
|
}
|
|
@@ -666,7 +667,7 @@ if (typeof window != "undefined") {
|
|
|
666
667
|
}
|
|
667
668
|
};
|
|
668
669
|
};
|
|
669
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
670
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-DMSfakAi.js").then(({ default: t }) => {
|
|
670
671
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
671
672
|
"casino-tournaments-thumbnail-duration",
|
|
672
673
|
t.element
|
|
@@ -685,7 +686,7 @@ if (typeof window != "undefined") {
|
|
|
685
686
|
}
|
|
686
687
|
};
|
|
687
688
|
};
|
|
688
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
689
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js").then(({ default: t }) => {
|
|
689
690
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
690
691
|
});
|
|
691
692
|
}
|
|
@@ -701,7 +702,7 @@ if (typeof window != "undefined") {
|
|
|
701
702
|
}
|
|
702
703
|
};
|
|
703
704
|
};
|
|
704
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
705
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js").then(
|
|
705
706
|
({ default: t }) => {
|
|
706
707
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
707
708
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -716,7 +717,7 @@ function Zt(n) {
|
|
|
716
717
|
function Qt(n) {
|
|
717
718
|
let t, e, r, i, o, s, l, f = (
|
|
718
719
|
/*tourid*/
|
|
719
|
-
n[25] &&
|
|
720
|
+
n[25] && Ke(n)
|
|
720
721
|
);
|
|
721
722
|
function g(m, b) {
|
|
722
723
|
if (!/*isLoggedIn*/
|
|
@@ -791,7 +792,7 @@ function Qt(n) {
|
|
|
791
792
|
},
|
|
792
793
|
p(m, b) {
|
|
793
794
|
/*tourid*/
|
|
794
|
-
m[25] ? f ? f.p(m, b) : (f =
|
|
795
|
+
m[25] ? f ? f.p(m, b) : (f = Ke(m), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), b[0] & /*clientstyling*/
|
|
795
796
|
1024 && u(
|
|
796
797
|
e,
|
|
797
798
|
"clientstyling",
|
|
@@ -864,7 +865,7 @@ function $t(n) {
|
|
|
864
865
|
}
|
|
865
866
|
};
|
|
866
867
|
}
|
|
867
|
-
function
|
|
868
|
+
function Ke(n) {
|
|
868
869
|
let t, e, r, i;
|
|
869
870
|
return {
|
|
870
871
|
c() {
|
|
@@ -985,7 +986,7 @@ function en(n) {
|
|
|
985
986
|
function tn(n) {
|
|
986
987
|
let t, e, r = (
|
|
987
988
|
/*showdetails*/
|
|
988
|
-
n[2] == "true" &&
|
|
989
|
+
n[2] == "true" && Ve(n)
|
|
989
990
|
);
|
|
990
991
|
function i(l, f) {
|
|
991
992
|
return (
|
|
@@ -1003,7 +1004,7 @@ function tn(n) {
|
|
|
1003
1004
|
},
|
|
1004
1005
|
p(l, f) {
|
|
1005
1006
|
/*showdetails*/
|
|
1006
|
-
l[2] == "true" ? r ? r.p(l, f) : (r =
|
|
1007
|
+
l[2] == "true" ? r ? r.p(l, f) : (r = Ve(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null), o === (o = i(l)) && s ? s.p(l, f) : (s.d(1), s = o(l), s && (s.c(), s.m(e.parentNode, e)));
|
|
1007
1008
|
},
|
|
1008
1009
|
d(l) {
|
|
1009
1010
|
l && (w(t), w(e)), r && r.d(l), s.d(l);
|
|
@@ -1050,7 +1051,7 @@ function nn(n) {
|
|
|
1050
1051
|
}
|
|
1051
1052
|
};
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
+
function Ve(n) {
|
|
1054
1055
|
let t, e = (
|
|
1055
1056
|
/*$_*/
|
|
1056
1057
|
n[33]("details") + ""
|
|
@@ -1582,24 +1583,24 @@ function an(n) {
|
|
|
1582
1583
|
function un(n, t, e) {
|
|
1583
1584
|
let r;
|
|
1584
1585
|
Et(n, Ct, (a) => e(33, r = a));
|
|
1585
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { tournamenturl: s = "" } = t, { touridx: l } = t, { endpoint: f = "" } = t, { showdetails: g = "" } = t, { showslider: h = "" } = t, { showenrolled: c = "" } = t, { maxwidth: d = "" } = t, { fullsize: v = "" } = t, { lang: m = "" } = t, { loginevent: b = "" } = t, { registerevent: J = "" } = t, { detailsevent: ke = "" } = t, { loginurl: W = "" } = t, { registerurl: H = "" } = t, { currency: ie = "" } = t, { keepbrowsercontext: Se = "false" } = t, { clientstyling:
|
|
1586
|
-
|
|
1586
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { tournamenturl: s = "" } = t, { touridx: l } = t, { endpoint: f = "" } = t, { showdetails: g = "" } = t, { showslider: h = "" } = t, { showenrolled: c = "" } = t, { maxwidth: d = "" } = t, { fullsize: v = "" } = t, { lang: m = "" } = t, { loginevent: b = "" } = t, { registerevent: J = "" } = t, { detailsevent: ke = "" } = t, { loginurl: W = "" } = t, { registerurl: H = "" } = t, { currency: ie = "" } = t, { keepbrowsercontext: Se = "false" } = t, { clientstyling: G = "" } = t, { clientstylingurl: N = "" } = t, { translationurl: q = "" } = t, { tournamentinfo: X } = t, { mbsource: Y } = t, z, D = !1, K = "", L = !0, Te = window.navigator.userAgent, V = !1, Z = !1, Fe = "There was an error while trying to join the tournament", oe = !1, se, Ee, je, I, P, ze, le, Pe, Be, Ce = [], ae = [], Oe = "#", Q = !1;
|
|
1587
|
+
Kt({ withLocale: "en", translations: {} });
|
|
1587
1588
|
const at = () => {
|
|
1588
|
-
fetch(
|
|
1589
|
+
fetch(q).then((k) => k.json()).then((k) => {
|
|
1589
1590
|
Object.keys(k).forEach((E) => {
|
|
1590
|
-
|
|
1591
|
+
Xe(E, k[E]);
|
|
1591
1592
|
});
|
|
1592
1593
|
}).catch((k) => {
|
|
1593
1594
|
console.log(k);
|
|
1594
1595
|
});
|
|
1595
1596
|
};
|
|
1596
|
-
Object.keys(
|
|
1597
|
-
|
|
1597
|
+
Object.keys(Ye).forEach((a) => {
|
|
1598
|
+
Xe(a, Ye[a]);
|
|
1598
1599
|
});
|
|
1599
1600
|
const xe = (a) => {
|
|
1600
1601
|
ut(a), ue(a), Le(this, P);
|
|
1601
1602
|
}, Ae = (a) => {
|
|
1602
|
-
if (a.data && a.data.type == "UserSessionID" && (e(15, D = !0),
|
|
1603
|
+
if (a.data && a.data.type == "UserSessionID" && (e(15, D = !0), K = a.data.session), a.data.type == "UpdateTournamentView") {
|
|
1603
1604
|
let k = a.data.tournamentData;
|
|
1604
1605
|
if (P && P != k.id)
|
|
1605
1606
|
return;
|
|
@@ -1658,9 +1659,9 @@ function un(n, t, e) {
|
|
|
1658
1659
|
tournamentId: a
|
|
1659
1660
|
},
|
|
1660
1661
|
window.location.href
|
|
1661
|
-
), e(17,
|
|
1662
|
+
), e(17, V = !0);
|
|
1662
1663
|
let E = new URL(`${f}/v1/bonus/claim`), $ = new Headers(), A = {};
|
|
1663
|
-
E.searchParams.append("language", m), E.searchParams.append("platform",
|
|
1664
|
+
E.searchParams.append("language", m), E.searchParams.append("platform", qe(Te)), $.append("Content-Type", "application/json"), $.append("X-SessionID", K), k && k.length >= 1 && (A = {
|
|
1664
1665
|
language: m,
|
|
1665
1666
|
bonusCode: k[0].code,
|
|
1666
1667
|
currency: ie,
|
|
@@ -1672,9 +1673,9 @@ function un(n, t, e) {
|
|
|
1672
1673
|
body: JSON.stringify(A)
|
|
1673
1674
|
};
|
|
1674
1675
|
const Ie = () => {
|
|
1675
|
-
e(17,
|
|
1676
|
+
e(17, V = !1), e(27, le = !0);
|
|
1676
1677
|
}, fe = (F) => {
|
|
1677
|
-
e(17,
|
|
1678
|
+
e(17, V = !1), F && e(19, Fe = F), e(18, Z = !0);
|
|
1678
1679
|
}, M = yield ce(this, null, function* () {
|
|
1679
1680
|
let F;
|
|
1680
1681
|
try {
|
|
@@ -1705,16 +1706,16 @@ function un(n, t, e) {
|
|
|
1705
1706
|
}, mt = (a) => {
|
|
1706
1707
|
e(16, L = !0);
|
|
1707
1708
|
let k = new URL(a), E = new Headers();
|
|
1708
|
-
k.searchParams.append("language", m), k.searchParams.append("platform",
|
|
1709
|
+
k.searchParams.append("language", m), k.searchParams.append("platform", qe(Te)), D && E.append("X-SessionID", K), fetch(k, { method: "GET", headers: E }).then((A) => A.json()).then((A) => {
|
|
1709
1710
|
ue(A.item);
|
|
1710
1711
|
}).finally(() => {
|
|
1711
1712
|
e(16, L = !1);
|
|
1712
1713
|
});
|
|
1713
1714
|
}, ht = () => {
|
|
1714
|
-
e(15, D = (i == null ? void 0 : i.length) > 10), D && (
|
|
1715
|
+
e(15, D = (i == null ? void 0 : i.length) > 10), D && (K = i);
|
|
1715
1716
|
}, pt = () => {
|
|
1716
|
-
if (
|
|
1717
|
-
ue(
|
|
1717
|
+
if (X) {
|
|
1718
|
+
ue(X);
|
|
1718
1719
|
return;
|
|
1719
1720
|
}
|
|
1720
1721
|
e(16, L = !0), mt(s);
|
|
@@ -1729,16 +1730,16 @@ function un(n, t, e) {
|
|
|
1729
1730
|
});
|
|
1730
1731
|
}
|
|
1731
1732
|
return n.$$set = (a) => {
|
|
1732
|
-
"session" in a && e(39, i = a.session), "userid" in a && e(0, o = a.userid), "tournamenturl" in a && e(1, s = a.tournamenturl), "touridx" in a && e(40, l = a.touridx), "endpoint" in a && e(41, f = a.endpoint), "showdetails" in a && e(2, g = a.showdetails), "showslider" in a && e(3, h = a.showslider), "showenrolled" in a && e(4, c = a.showenrolled), "maxwidth" in a && e(5, d = a.maxwidth), "fullsize" in a && e(6, v = a.fullsize), "lang" in a && e(7, m = a.lang), "loginevent" in a && e(42, b = a.loginevent), "registerevent" in a && e(43, J = a.registerevent), "detailsevent" in a && e(8, ke = a.detailsevent), "loginurl" in a && e(44, W = a.loginurl), "registerurl" in a && e(45, H = a.registerurl), "currency" in a && e(46, ie = a.currency), "keepbrowsercontext" in a && e(9, Se = a.keepbrowsercontext), "clientstyling" in a && e(10,
|
|
1733
|
+
"session" in a && e(39, i = a.session), "userid" in a && e(0, o = a.userid), "tournamenturl" in a && e(1, s = a.tournamenturl), "touridx" in a && e(40, l = a.touridx), "endpoint" in a && e(41, f = a.endpoint), "showdetails" in a && e(2, g = a.showdetails), "showslider" in a && e(3, h = a.showslider), "showenrolled" in a && e(4, c = a.showenrolled), "maxwidth" in a && e(5, d = a.maxwidth), "fullsize" in a && e(6, v = a.fullsize), "lang" in a && e(7, m = a.lang), "loginevent" in a && e(42, b = a.loginevent), "registerevent" in a && e(43, J = a.registerevent), "detailsevent" in a && e(8, ke = a.detailsevent), "loginurl" in a && e(44, W = a.loginurl), "registerurl" in a && e(45, H = a.registerurl), "currency" in a && e(46, ie = a.currency), "keepbrowsercontext" in a && e(9, Se = a.keepbrowsercontext), "clientstyling" in a && e(10, G = a.clientstyling), "clientstylingurl" in a && e(11, N = a.clientstylingurl), "translationurl" in a && e(12, q = a.translationurl), "tournamentinfo" in a && e(47, X = a.tournamentinfo), "mbsource" in a && e(13, Y = a.mbsource);
|
|
1733
1734
|
}, n.$$.update = () => {
|
|
1734
1735
|
n.$$.dirty[0] & /*lang*/
|
|
1735
|
-
128 && m &&
|
|
1736
|
-
4096 &&
|
|
1736
|
+
128 && m && Vt(m), n.$$.dirty[0] & /*translationurl*/
|
|
1737
|
+
4096 && q && at(), n.$$.dirty[1] & /*session*/
|
|
1737
1738
|
256 && i && ht(), n.$$.dirty[0] & /*tournamenturl, lang*/
|
|
1738
1739
|
130 && s && m && pt(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1739
|
-
17408 &&
|
|
1740
|
-
18432 &&
|
|
1741
|
-
24576 &&
|
|
1740
|
+
17408 && G && z && Ot(z, G), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1741
|
+
18432 && N && z && xt(z, N), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1742
|
+
24576 && Y && z && At(z, `${Y}.Style`);
|
|
1742
1743
|
}, [
|
|
1743
1744
|
o,
|
|
1744
1745
|
s,
|
|
@@ -1750,14 +1751,14 @@ function un(n, t, e) {
|
|
|
1750
1751
|
m,
|
|
1751
1752
|
ke,
|
|
1752
1753
|
Se,
|
|
1753
|
-
q,
|
|
1754
1754
|
G,
|
|
1755
1755
|
N,
|
|
1756
|
-
|
|
1756
|
+
q,
|
|
1757
|
+
Y,
|
|
1757
1758
|
z,
|
|
1758
1759
|
D,
|
|
1759
1760
|
L,
|
|
1760
|
-
|
|
1761
|
+
V,
|
|
1761
1762
|
Z,
|
|
1762
1763
|
Fe,
|
|
1763
1764
|
oe,
|
|
@@ -1787,7 +1788,7 @@ function un(n, t, e) {
|
|
|
1787
1788
|
W,
|
|
1788
1789
|
H,
|
|
1789
1790
|
ie,
|
|
1790
|
-
|
|
1791
|
+
X,
|
|
1791
1792
|
gt,
|
|
1792
1793
|
bt
|
|
1793
1794
|
];
|
|
@@ -1975,5 +1976,5 @@ const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1975
1976
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1976
1977
|
export {
|
|
1977
1978
|
hn as C,
|
|
1978
|
-
|
|
1979
|
+
qe as g
|
|
1979
1980
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
|
|
2
2
|
function O(n, t) {
|
|
3
3
|
H(n, t);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs");function C(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function I(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function S(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:O}let T=S(r),_=T(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return A;if(s[5]>0)return q;if(s[4]>0)return U}let v=P(r),c=v&&v(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),T===(T=S(s))&&_?_.p(s,f):(_.d(1),_=T(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function L(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function q(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function A(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&z(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[17](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",S="",T="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,S=v(i,u)),n(6,T=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),B=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${B}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(B,D)=>B+" "+l(D),F=B=>{const D=Math.floor(B);return D<10?`0${D}`:`${D}`};if(i<1440){const B=i/60,D=i%60,R=(D-Math.floor(D))*60;return[B,D,R].map(x=>F(x)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,S,T,a,l,c,s,f,g,k,y,m,w,j]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},I)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
|
|
2
2
|
function O(n, t) {
|
|
3
3
|
H(n, t);
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-DGTv-6Vg.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs"),se=require("./CasinoTournamentsThumbnailController-DD3a1bpc.cjs");function U(t,l){e.addMessages(t,l)}const D={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function I(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function W(t){let l,n,i,d,h,p,y,a,_,w,g=e.ensure_array_like(t[1]),o=[];for(let s=0;s<g.length;s+=1)o[s]=G(I(t,g,s));return{c(){l=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),h=e.element("div");for(let s=0;s<o.length;s+=1)o[s].c();y=e.space(),a=e.element("div"),a.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(h,"class","items"),e.attr(h,"part","items"),e.set_style(h,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(d)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,m){e.insert(s,l,m),e.append(l,n),e.append(l,i),e.append(l,d),e.append(d,h);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(h,null);t[28](h),p=e.add_iframe_resize_listener(d,t[29].bind(d)),e.append(l,y),e.append(l,a),t[31](l),_||(w=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],_=!0)},p(s,m){if(m[0]&256&&e.toggle_class(n,"disabled",s[8]),m[0]&23650){g=e.ensure_array_like(s[1]);let u;for(u=0;u<g.length;u+=1){const v=I(s,g,u);o[u]?o[u].p(v,m):(o[u]=G(v),o[u].c(),o[u].m(h,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=g.length}m[0]&4&&e.set_style(h,"transform","translateX("+s[2]+"px)"),m[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),p(),t[31](null),_=!1,e.run_all(w)}}}function G(t){let l,n,i=t[10]("playNow")+"",d,h,p,y,a,_,w,g,o,s,m;function u(){return t[25](t[49])}function v(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),d=e.text(i),y=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,_=t[49].thumbnail)||e.attr(a,"src",_),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",w=t[49].name),e.attr(a,"title",g=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(b,c){e.insert(b,l,c),e.append(l,n),e.append(n,d),e.append(l,y),e.append(l,a),e.append(l,o),s||(m=[e.listen(l,"click",u),e.listen(l,"mouseenter",v),e.listen(l,"mouseleave",t[27])],s=!0)},p(b,c){t=b,c[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),c[0]&96&&h!==(h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",h),c[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",p),c[0]&2&&!e.src_url_equal(a.src,_=t[49].thumbnail)&&e.attr(a,"src",_),c[0]&2&&w!==(w=t[49].name)&&e.attr(a,"alt",w),c[0]&2&&g!==(g=t[49].name)&&e.attr(a,"title",g)},d(b){b&&e.detach(l),s=!1,e.run_all(m)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&W(t);return{c(){l=e.element("div"),n&&n.c()},m(i,d){e.insert(i,l,d),n&&n.m(l,null),t[32](l)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=W(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,d,h;e.component_subscribe(t,e.$format,r=>n(10,h=r));let{tournamenturl:p=""}=l,{scrollby:y="3"}=l,{pagfactor:a="175"}=l,{lang:_=""}=l,{translationurl:w=""}=l,{clientstyling:g=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,m,u=window.navigator.userAgent,v,b=[],c=0,k,B=null,E=null,j=!1,C,T,P=0,N;const X=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(M=>{U(M,f[M])})}).catch(f=>{console.log(f)})};Object.keys(D).forEach(r=>{U(r,D[r])});const L=r=>{n(5,j=!0),n(6,C=r)},z=()=>{n(5,j=!1),n(6,C=-1)},J=r=>r.touches||r.originalEvent.touches,A=r=>{const f=J(r)[0];B=f.clientX,E=f.clientY},H=r=>{if(!B||!E)return;let f=r.touches[0].clientX,M=r.touches[0].clientY,S=B-f,ae=E-M;Math.abs(S)>Math.abs(ae)&&(S>0?F(1):F(-1)),B=null,E=null},F=r=>{r>0&&!d?(n(2,c-=v),n(2,c=c<P?P:c)):r<0&&!i&&(n(2,c+=v),n(2,c=c>0?0:c))},q=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},R=()=>{let r=new URL(p),f=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${c})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",_),r.searchParams.append("platform",se.getDevice(u)),fetch(r,{method:"GET",headers:f}).then(S=>S.json()).then(S=>{n(1,b=S.item.games.items),S.item.games.total})},x=()=>{k.addEventListener("touchstart",A,{passive:!0}),k.addEventListener("touchmove",H,{passive:!0})},Y=()=>{setTimeout(()=>{n(23,P=(T.scrollWidth-T.clientWidth)*-1),n(16,a=new String(T.scrollWidth/b.length)),v=parseInt(y,10)*parseFloat(a,2).toFixed(2)},1e3)},Z=()=>{N>0&&N<Math.floor((parseInt(y)+1)*a)&&n(15,y=Math.ceil(N/a).toString())};e.onMount(()=>(v=parseInt(y,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",A),k.removeEventListener("touchmove",H)}));const K=()=>F(-1),Q=r=>q(r),V=r=>L(r),$=()=>z();function ee(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,n(7,T)})}function te(){N=this.clientWidth,n(4,N)}const ne=()=>F(1);function le(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{m=r,n(0,m)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,p=r.tournamenturl),"scrollby"in r&&n(15,y=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,_=r.lang),"translationurl"in r&&n(19,w=r.translationurl),"clientstyling"in r&&n(20,g=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=c===0),t.$$.dirty[0]&8388612&&n(9,d=c<=P),t.$$.dirty[0]&16&&N&&Z(),t.$$.dirty[0]&131072&&p&&R(),t.$$.dirty[0]&8&&k&&x(),t.$$.dirty[0]&524288&&w&&X(),t.$$.dirty[0]&2&&b.length&&Y(),t.$$.dirty[0]&1048577&&g&&m&&e.setClientStyling(m,g),t.$$.dirty[0]&2097153&&o&&m&&e.setClientStylingURL(m,o),t.$$.dirty[0]&4194305&&s&&m&&e.setStreamStyling(m,`${s}.Style`)},n(2,c=0),[m,b,c,k,N,j,C,T,i,d,h,L,z,F,q,y,a,p,_,w,g,o,s,P,K,Q,V,$,ee,te,ne,le,re]}class O extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(O,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-yXv_8aa_.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs");function _(l,t){e.addMessages(l,t)}const y={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function k(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=T(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=T(d),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class w extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(w,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
C(l, e);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
|
|
2
2
|
function N(l, e) {
|
|
3
3
|
C(l, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-DD3a1bpc.cjs")).then(e=>e.CasinoTournamentsThumbnailController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-yXv_8aa_.js").then((e) => e.C).then(
|
|
14
14
|
({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
16
16
|
"casino-tournaments-thumbnail-controller",
|
package/package.json
CHANGED