@everymatrix/player-challenges 0.1.28 → 0.1.29
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/{ArrowLeftIcon-DEPBZBRM.js → ArrowLeftIcon-CN8fnRp8.js} +1 -1
- package/components/{ArrowLeftIcon-BE-UTNx8.cjs → ArrowLeftIcon-CZ3gGRB3.cjs} +1 -1
- package/components/{Badge-BHsDsF1a.cjs → Badge-CoQkNOLz.cjs} +2 -2
- package/components/{Badge-CVIWOeMs.js → Badge-f3CAHZz-.js} +53 -55
- package/components/{Button-BuvNO4_4.js → Button-CDZljoNz.js} +18 -18
- package/components/{Button-uyqixgQp.cjs → Button-DC3uGF37.cjs} +2 -2
- package/components/{ChallengeBanner-DaStj94I.cjs → ChallengeBanner-1-AkmUgP.cjs} +2 -2
- package/components/{ChallengeBanner-CJq-rT4a.js → ChallengeBanner-DCn4hf4t.js} +39 -39
- package/components/{ChallengeBreadcrumbs-ChatLS_r.cjs → ChallengeBreadcrumbs-CacWSV7H.cjs} +1 -1
- package/components/{ChallengeBreadcrumbs-CI8weFPB.js → ChallengeBreadcrumbs-DUmyey3m.js} +2 -2
- package/components/ChallengeCard-BV24m-Jd.cjs +6 -0
- package/components/{ChallengeCard-ChvTO3u-.js → ChallengeCard-C6X1e4Qz.js} +199 -207
- package/components/{ChallengeClaimCode-QzWtGl3d.js → ChallengeClaimCode-CNt8hEwc.js} +68 -70
- package/components/{ChallengeClaimCode-CNDcRf40.cjs → ChallengeClaimCode-CubjEAcf.cjs} +2 -2
- package/components/ChallengeDetails-6jIXM6l5.cjs +5 -0
- package/components/{ChallengeDetails-BMhe6TJQ.js → ChallengeDetails-CohHYoAu.js} +97 -97
- package/components/{ChallengeDetailsSkeleton-DvaG5Vtl.cjs → ChallengeDetailsSkeleton-Bbi5XeY4.cjs} +2 -2
- package/components/{ChallengeDetailsSkeleton-C3lUpHQI.js → ChallengeDetailsSkeleton-vgCYWjlo.js} +53 -53
- package/components/ChallengeEvents-Cjz4tswW.js +35 -0
- package/components/{ChallengeEvents-Ccs-2sVC.cjs → ChallengeEvents-xYQkjebV.cjs} +1 -1
- package/components/ChallengeGames-BMzPkFEG.cjs +14 -0
- package/components/ChallengeGames-Bb9-sCGS.js +153 -0
- package/components/{ChallengeHistory-Br6nJHSY.js → ChallengeHistory-BOj5whNg.js} +177 -185
- package/components/{ChallengeHistory-CwTWuI_m.cjs → ChallengeHistory-BbxTXHG4.cjs} +3 -3
- package/components/{ChallengeLevels-DEJpd5Ea.js → ChallengeLevels-BCgo1i-P.js} +77 -79
- package/components/ChallengeLevels-D3LWKkQS.cjs +8 -0
- package/components/{ChallengeList-C252FlUp.js → ChallengeList-CHz5ZFfn.js} +88 -88
- package/components/{ChallengeList-DNS2FzUI.cjs → ChallengeList-SN9hvo6q.cjs} +2 -2
- package/components/{ChallengeProgress-DdQh9kmS.js → ChallengeProgress-Bod6fqEG.js} +14 -14
- package/components/{ChallengeProgress-CryVLDRB.cjs → ChallengeProgress-DMfpLlh1.cjs} +1 -1
- package/components/ChallengeProgressItem--DFpxTS8.cjs +69 -0
- package/components/{ChallengeProgressItem-BKmopRoi.js → ChallengeProgressItem-DVzUDYfl.js} +232 -242
- package/components/ChallengeRules-BsTHkcok.cjs +1 -0
- package/components/ChallengeRules-DNTBzq1F.js +162 -0
- package/components/ChallengeSummary-CdvUiACN.cjs +1 -0
- package/components/ChallengeSummary-Cx9h7OMj.js +248 -0
- package/components/{ChallengeTabContent-CkUU95je.cjs → ChallengeTabContent-DR6EJPzq.cjs} +1 -1
- package/components/{ChallengeTabContent-DZOkUEj2.js → ChallengeTabContent-DWV_gXFX.js} +11 -11
- package/components/{ChallengeTabPanel-BWmMHkmf.cjs → ChallengeTabPanel-CrOPWNMt.cjs} +1 -1
- package/components/{ChallengeTabPanel-DTPlF4YU.js → ChallengeTabPanel-jE8C4Q5r.js} +5 -5
- package/components/{ChallengeTabs-DRKSY-vH.js → ChallengeTabs-BYF7WY5P.js} +3400 -3220
- package/components/ChallengeTabs-CW3EEpFo.cjs +16 -0
- package/components/{CheckIcon-DpKfE1MH.js → CheckIcon-Bl4pZuZP.js} +1 -1
- package/components/{CheckIcon-CEazWbva.cjs → CheckIcon-C2GpI-L5.cjs} +1 -1
- package/components/{ChevronIcon-B0XO_sUW.js → ChevronIcon-AmqjeKSO.js} +1 -1
- package/components/{ChevronIcon-C-xOQWRM.cjs → ChevronIcon-CX6qrx3X.cjs} +1 -1
- package/components/{ChipIcon-B5wdN3J7.cjs → ChipIcon-B2yaPI-s.cjs} +1 -1
- package/components/{ChipIcon-CU8BiGM5.js → ChipIcon-B7uOkRi1.js} +1 -1
- package/components/{ChipShineIcon-B242dy7k.cjs → ChipShineIcon-DBJlgZQk.cjs} +1 -1
- package/components/{ChipShineIcon-CT4MiKNr.js → ChipShineIcon-Ds9EEhmb.js} +16 -16
- package/components/{ExistIcon-BQc3oxU_.cjs → ExistIcon-CWyY8R3Y.cjs} +1 -1
- package/components/{ExistIcon-19wwQ4Pq.js → ExistIcon-DgXqZa1S.js} +1 -1
- package/components/{GiftIcon-BsPdSFbS.js → GiftIcon-BjXXGhso.js} +14 -14
- package/components/{GiftIcon-BWI2iEW8.cjs → GiftIcon-Z9tIE34i.cjs} +1 -1
- package/components/{LinkIcon-BpW-XAWm.cjs → LinkIcon-CtURiIc0.cjs} +1 -1
- package/components/{LinkIcon-CaI0ly4O.js → LinkIcon-Q21sEvwx.js} +1 -1
- package/components/{LockIcon-Df1B037b.js → LockIcon-B04vlajd.js} +1 -1
- package/components/{LockIcon-CteP5M0h.cjs → LockIcon-CnUh5OJU.cjs} +1 -1
- package/components/Pagination-DHDCvM8U.js +113 -0
- package/components/{Pagination-95wNrpqw.cjs → Pagination-DKoBrsEV.cjs} +2 -2
- package/components/PlayerChallenges-DRa1KyWF.cjs +1 -0
- package/components/{PlayerChallenges-CchBlHVQ.js → PlayerChallenges-sVHaxkEo.js} +95 -95
- package/components/{StarIcon-BRqeO8o_.cjs → StarIcon-CsFTNsW6.cjs} +1 -1
- package/components/{StarIcon-DAgfGbDi.js → StarIcon-DvSZN2ZN.js} +1 -1
- package/components/{TargetIcon-BAPh5-Az.cjs → TargetIcon-Bar3gCh5.cjs} +1 -1
- package/components/{TargetIcon-CNt_y-Aw.js → TargetIcon-DZRz2KNP.js} +14 -14
- package/components/helpers-D0ruQkxz.cjs +1 -0
- package/components/helpers-jidkTB_0.js +71 -0
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ArrowLeftIcon-BU8o_waD.cjs +0 -1
- package/components/ArrowLeftIcon-Dbj_5vYn.js +0 -26
- package/components/Badge-DDYnNLoY.js +0 -125
- package/components/Badge-ridfl0PP.cjs +0 -6
- package/components/Button-Cj8wu5Md.cjs +0 -3
- package/components/Button-Dz4pnWKK.js +0 -67
- package/components/ChallengeBanner-Ba31Rq9f.cjs +0 -5
- package/components/ChallengeBanner-DXWb4w7k.js +0 -93
- package/components/ChallengeBreadcrumbs-2v9qUqv3.js +0 -41
- package/components/ChallengeBreadcrumbs-BEi8Lx4a.cjs +0 -1
- package/components/ChallengeCard-BYU6ox2N.cjs +0 -1
- package/components/ChallengeCard-CGvvBTal.js +0 -144
- package/components/ChallengeCard-H34qbqNf.cjs +0 -6
- package/components/ChallengeClaimCode-CtYh4Ozl.cjs +0 -1
- package/components/ChallengeClaimCode-DPcQv49Q.js +0 -75
- package/components/ChallengeDetails-Bwmo2LpG.js +0 -117
- package/components/ChallengeDetails-Cki5CFXf.cjs +0 -1
- package/components/ChallengeDetails-DRg9YZq-.cjs +0 -5
- package/components/ChallengeDetailsSkeleton-CNSrDvGk.cjs +0 -20
- package/components/ChallengeDetailsSkeleton-qBJgVZ5l.js +0 -138
- package/components/ChallengeEvents-AYaCm7Ce.js +0 -34
- package/components/ChallengeEvents-BQ4LQqmr.cjs +0 -1
- package/components/ChallengeEvents-oiDWNAEQ.js +0 -35
- package/components/ChallengeGames-CPR-dFtl.js +0 -155
- package/components/ChallengeGames-DrWOhsw3.js +0 -156
- package/components/ChallengeGames-M7zbeynl.cjs +0 -14
- package/components/ChallengeGames-k_-7nQQv.cjs +0 -14
- package/components/ChallengeHistory-EhVWOyML.cjs +0 -1
- package/components/ChallengeHistory-KLxNtWrW.js +0 -106
- package/components/ChallengeLevels-B3mcA42d.cjs +0 -8
- package/components/ChallengeLevels-DKyb_yzN.cjs +0 -8
- package/components/ChallengeLevels-HZHAF0YW.js +0 -317
- package/components/ChallengeList-B27KTsS-.cjs +0 -21
- package/components/ChallengeList-D7VynPhn.js +0 -1339
- package/components/ChallengeProgress-IiqaT5Em.js +0 -95
- package/components/ChallengeProgress-x-i7Uk-N.cjs +0 -1
- package/components/ChallengeProgressItem-BpLvYFMi.js +0 -443
- package/components/ChallengeProgressItem-DPqFHoj1.cjs +0 -69
- package/components/ChallengeProgressItem-DXcUKs_2.cjs +0 -69
- package/components/ChallengeRules-Bo71x-dY.cjs +0 -1
- package/components/ChallengeRules-BsBkXth2.js +0 -174
- package/components/ChallengeRules-CwpK2Xkv.js +0 -173
- package/components/ChallengeRules-SITJ01zy.cjs +0 -1
- package/components/ChallengeSummary-Ced7xEuQ.js +0 -254
- package/components/ChallengeSummary-DUBk5FGa.cjs +0 -1
- package/components/ChallengeSummary-Dgk8SI6H.js +0 -254
- package/components/ChallengeSummary-zwkbvHT6.cjs +0 -1
- package/components/ChallengeTabContent-D_RL7M0X.js +0 -793
- package/components/ChallengeTabContent-muOLaUSq.cjs +0 -16
- package/components/ChallengeTabPanel-BVBxw6tU.cjs +0 -1
- package/components/ChallengeTabPanel-Dg5mInmF.js +0 -150
- package/components/ChallengeTabs-BPweSLWX.cjs +0 -16
- package/components/ChallengeTabs-By40DWWg.cjs +0 -14
- package/components/ChallengeTabs-CXIPdZOg.js +0 -8713
- package/components/CheckIcon-BCx9LxqP.js +0 -26
- package/components/CheckIcon-CBLEKwsu.cjs +0 -1
- package/components/ChevronIcon-B_AytxK9.cjs +0 -1
- package/components/ChevronIcon-eCnBnm2z.js +0 -26
- package/components/ChipIcon-C-8el2zw.cjs +0 -1
- package/components/ChipIcon-CkGZN2GT.js +0 -26
- package/components/ChipShineIcon-BX9N9Mpi.cjs +0 -1
- package/components/ChipShineIcon-DWo1fBoj.js +0 -28
- package/components/ExistIcon-CjAJ5-z2.cjs +0 -1
- package/components/ExistIcon-DEnZyv5q.js +0 -32
- package/components/GiftIcon-Bj8xI_6c.cjs +0 -1
- package/components/GiftIcon-DXI72ybm.js +0 -26
- package/components/LinkIcon-PygPJuza.cjs +0 -1
- package/components/LinkIcon-msfckwlK.js +0 -26
- package/components/LockIcon-ZP9fS6Md.js +0 -26
- package/components/LockIcon-r0QOgTzt.cjs +0 -1
- package/components/Pagination-CacSm8FD.js +0 -115
- package/components/Pagination-DXS6FT0T.js +0 -115
- package/components/Pagination-M6DDVzpt.cjs +0 -4
- package/components/PlayerChallenges-B-2JO8O3.cjs +0 -1
- package/components/PlayerChallenges-Cql01JjT.cjs +0 -1
- package/components/PlayerChallenges-D745-4Zy.js +0 -457
- package/components/StarIcon-BEbIdRDu.js +0 -32
- package/components/StarIcon-CGd046oW.cjs +0 -1
- package/components/TargetIcon-CAhk8AIu.cjs +0 -1
- package/components/TargetIcon-Dj7y_no3.js +0 -26
- package/components/helpers-C-XoHPgR.js +0 -64
- package/components/helpers-CmamnXjp.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { t as
|
|
3
|
-
import { C as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
1
|
+
import { c as Z, d as Q, h as me, p as s, w as j, x as ve, au as V, aB as J, y as z, G as K, R as x, T as Y, aS as C, aV as G, P as w, B as t, aW as O, aX as fe, aU as B, A as Te, a as H, b as $, E as o, k as ee, e as i, aL as Ie, n as ye, r as Ce, K as q, o as F, aY as ke, aZ as De, a_ as Se, a$ as W, b0 as _e } from "./ChallengeTabs-BYF7WY5P.js";
|
|
2
|
+
import { t as Le } from "./types-C1hrKH4R.js";
|
|
3
|
+
import { C as we } from "./ChallengeBreadcrumbs-DUmyey3m.js";
|
|
4
|
+
import { C as ze } from "./ChallengeDetails-CohHYoAu.js";
|
|
5
|
+
import { C as Pe } from "./ChallengeTabContent-DWV_gXFX.js";
|
|
6
6
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
7
7
|
}, globalThis.customElements = { define() {
|
|
8
8
|
}, get() {
|
|
9
9
|
}, whenDefined() {
|
|
10
10
|
} });
|
|
11
|
-
const
|
|
11
|
+
const pe = {
|
|
12
12
|
en: {
|
|
13
13
|
noChallenges: "No challenges at the moment. Try exploring events or keep playing to unlock new ones.",
|
|
14
14
|
challengesAnonymous: "Login to see your challenges and progress."
|
|
@@ -37,17 +37,17 @@ const Ae = {
|
|
|
37
37
|
noChallenges: "Jelenleg nincs elérhető kihívás. Nézz szét az események között, vagy játssz tovább, hogy újakat oldj fel.",
|
|
38
38
|
challengesAnonymous: "Jelentkezzen be, hogy lássa a kihívásait és haladását."
|
|
39
39
|
}
|
|
40
|
-
},
|
|
41
|
-
var
|
|
42
|
-
const
|
|
40
|
+
}, Ae = 50;
|
|
41
|
+
var X = ee("<!> <!>", 1), Me = ee('<div class="player-challenges svelte-1edjcz1"><!></div>');
|
|
42
|
+
const Ue = {
|
|
43
43
|
hash: "svelte-1edjcz1",
|
|
44
44
|
code: ".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"
|
|
45
45
|
};
|
|
46
|
-
function
|
|
47
|
-
|
|
46
|
+
function te(p, a) {
|
|
47
|
+
Q(a, !0), me(p, Ue);
|
|
48
48
|
const h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7), d = s(a, "isMobile", 7, !0), y = s(a, "activeTab", 23, () => C.Promo), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7, !1);
|
|
49
|
-
j(() =>
|
|
50
|
-
T() &&
|
|
49
|
+
j(() => ve(u(), pe)), V(() => {
|
|
50
|
+
T() && J(T(), "challenge-card");
|
|
51
51
|
}), z(() => {
|
|
52
52
|
K(u() || "en");
|
|
53
53
|
});
|
|
@@ -61,140 +61,140 @@ function ee(p, a) {
|
|
|
61
61
|
z(() => {
|
|
62
62
|
t(L) !== void 0 && (w(c, t(L), !0), O(!0, t(L)));
|
|
63
63
|
});
|
|
64
|
-
let
|
|
65
|
-
const M = o(() => t(
|
|
64
|
+
let P = x(void 0);
|
|
65
|
+
const M = o(() => t(P) ?? (t(c) === t(L) ? D() : void 0)), A = o(() => !b()), l = fe(() => ({
|
|
66
66
|
endpoint: h(),
|
|
67
67
|
domainId: f(),
|
|
68
68
|
userSession: b(),
|
|
69
69
|
userId: v(),
|
|
70
70
|
locale: u(),
|
|
71
|
-
pageSize:
|
|
71
|
+
pageSize: Ie(d())
|
|
72
72
|
})), n = o(() => {
|
|
73
73
|
const e = B[t(g)];
|
|
74
74
|
return (e && e !== "history" ? l.getList(e) : []).find((m) => m.ChallengeId === t(c)) ?? l.findChallenge(t(c));
|
|
75
|
-
}),
|
|
75
|
+
}), ae = o(() => {
|
|
76
76
|
const e = [];
|
|
77
|
-
return l.activeChallenges.some((
|
|
78
|
-
}),
|
|
79
|
-
e !== t(g) && (w(g, e, !0),
|
|
80
|
-
},
|
|
81
|
-
w(c, e, !0), w(
|
|
82
|
-
},
|
|
83
|
-
d() || O(!1, t(c)), w(c, void 0), w(
|
|
77
|
+
return l.activeChallenges.some((r) => r.IsNew) && e.push(C.Active), l.awaitingChallenges.some((r) => r.IsNew) && e.push(C.Pending), e;
|
|
78
|
+
}), se = (e) => {
|
|
79
|
+
e !== t(g) && (w(g, e, !0), De(Se[e]));
|
|
80
|
+
}, ie = (e, r) => {
|
|
81
|
+
w(c, e, !0), w(P, r, !0), d() || O(!0, e);
|
|
82
|
+
}, R = () => {
|
|
83
|
+
d() || O(!1, t(c)), w(c, void 0), w(P, void 0);
|
|
84
84
|
}, re = (e) => {
|
|
85
85
|
if (e !== t(c))
|
|
86
86
|
return;
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
|
|
87
|
+
R();
|
|
88
|
+
const r = B[t(g)];
|
|
89
|
+
r && l.load(r, t(A));
|
|
90
90
|
};
|
|
91
91
|
V(() => {
|
|
92
|
-
T() &&
|
|
92
|
+
T() && J(T(), "player-challenges");
|
|
93
93
|
}), z(() => {
|
|
94
94
|
K(u() || "en");
|
|
95
95
|
}), z(() => {
|
|
96
|
-
const e = t(g),
|
|
96
|
+
const e = t(g), r = {
|
|
97
97
|
endpoint: h(),
|
|
98
98
|
domainId: f(),
|
|
99
99
|
userSession: b(),
|
|
100
100
|
userId: v(),
|
|
101
101
|
locale: u()
|
|
102
|
-
}, m = t(
|
|
103
|
-
if (!
|
|
102
|
+
}, m = t(A), I = B[e];
|
|
103
|
+
if (!r.endpoint || !I)
|
|
104
104
|
return;
|
|
105
105
|
if (I !== "promo" || !m) {
|
|
106
106
|
l.load(I, m);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
l.markLoading(I);
|
|
110
|
-
const E = setTimeout(() => l.load(I, m),
|
|
110
|
+
const E = setTimeout(() => l.load(I, m), Ae);
|
|
111
111
|
return () => clearTimeout(E);
|
|
112
112
|
}), z(() => {
|
|
113
113
|
if (h())
|
|
114
114
|
return l.connect(), () => l.disconnect();
|
|
115
115
|
});
|
|
116
|
-
var
|
|
116
|
+
var le = {
|
|
117
117
|
get endpoint() {
|
|
118
118
|
return h();
|
|
119
119
|
},
|
|
120
120
|
set endpoint(e = "") {
|
|
121
|
-
h(e),
|
|
121
|
+
h(e), i();
|
|
122
122
|
},
|
|
123
123
|
get userSession() {
|
|
124
124
|
return b();
|
|
125
125
|
},
|
|
126
126
|
set userSession(e = "") {
|
|
127
|
-
b(e),
|
|
127
|
+
b(e), i();
|
|
128
128
|
},
|
|
129
129
|
get userId() {
|
|
130
130
|
return v();
|
|
131
131
|
},
|
|
132
132
|
set userId(e = "") {
|
|
133
|
-
v(e),
|
|
133
|
+
v(e), i();
|
|
134
134
|
},
|
|
135
135
|
get domainId() {
|
|
136
136
|
return f();
|
|
137
137
|
},
|
|
138
138
|
set domainId(e = "") {
|
|
139
|
-
f(e),
|
|
139
|
+
f(e), i();
|
|
140
140
|
},
|
|
141
141
|
get locale() {
|
|
142
142
|
return u();
|
|
143
143
|
},
|
|
144
144
|
set locale(e = "en") {
|
|
145
|
-
u(e),
|
|
145
|
+
u(e), i();
|
|
146
146
|
},
|
|
147
147
|
get translationUrl() {
|
|
148
148
|
return T();
|
|
149
149
|
},
|
|
150
150
|
set translationUrl(e) {
|
|
151
|
-
T(e),
|
|
151
|
+
T(e), i();
|
|
152
152
|
},
|
|
153
153
|
get isMobile() {
|
|
154
154
|
return d();
|
|
155
155
|
},
|
|
156
156
|
set isMobile(e = !0) {
|
|
157
|
-
d(e),
|
|
157
|
+
d(e), i();
|
|
158
158
|
},
|
|
159
159
|
get activeTab() {
|
|
160
160
|
return y();
|
|
161
161
|
},
|
|
162
162
|
set activeTab(e = C.Promo) {
|
|
163
|
-
y(e),
|
|
163
|
+
y(e), i();
|
|
164
164
|
},
|
|
165
165
|
get activeChallengeId() {
|
|
166
166
|
return k();
|
|
167
167
|
},
|
|
168
168
|
set activeChallengeId(e) {
|
|
169
|
-
k(e),
|
|
169
|
+
k(e), i();
|
|
170
170
|
},
|
|
171
171
|
get activeDetailsTab() {
|
|
172
172
|
return D();
|
|
173
173
|
},
|
|
174
174
|
set activeDetailsTab(e) {
|
|
175
|
-
D(e),
|
|
175
|
+
D(e), i();
|
|
176
176
|
},
|
|
177
177
|
get historyLimit() {
|
|
178
178
|
return S();
|
|
179
179
|
},
|
|
180
180
|
set historyLimit(e) {
|
|
181
|
-
S(e),
|
|
181
|
+
S(e), i();
|
|
182
182
|
},
|
|
183
183
|
get showTabDot() {
|
|
184
184
|
return _();
|
|
185
185
|
},
|
|
186
186
|
set showTabDot(e = !1) {
|
|
187
|
-
_(e),
|
|
187
|
+
_(e), i();
|
|
188
188
|
}
|
|
189
|
-
}, U =
|
|
189
|
+
}, U = Me(), oe = ye(U);
|
|
190
190
|
{
|
|
191
|
-
var
|
|
192
|
-
var
|
|
193
|
-
|
|
194
|
-
var I =
|
|
191
|
+
var ue = (e) => {
|
|
192
|
+
var r = X(), m = q(r);
|
|
193
|
+
we(m, { onBack: R });
|
|
194
|
+
var I = F(m, 2);
|
|
195
195
|
{
|
|
196
|
-
let E = o(() => t(g) === C.Promo),
|
|
197
|
-
|
|
196
|
+
let E = o(() => t(g) === C.Promo), ge = o(() => t(g) === C.Pending), ce = o(() => !!t(n) && l.pausedChallengeIds.includes(t(n).ChallengeId)), he = o(() => t(n)?.Status);
|
|
197
|
+
ze(I, {
|
|
198
198
|
get challengeId() {
|
|
199
199
|
return t(c);
|
|
200
200
|
},
|
|
@@ -217,18 +217,18 @@ function ee(p, a) {
|
|
|
217
217
|
return t(E);
|
|
218
218
|
},
|
|
219
219
|
get isPending() {
|
|
220
|
-
return t(
|
|
220
|
+
return t(ge);
|
|
221
221
|
},
|
|
222
222
|
get isPaused() {
|
|
223
|
-
return t(
|
|
223
|
+
return t(ce);
|
|
224
224
|
},
|
|
225
225
|
get status() {
|
|
226
|
-
return t(
|
|
226
|
+
return t(he);
|
|
227
227
|
},
|
|
228
228
|
get progress() {
|
|
229
229
|
return t(n);
|
|
230
230
|
},
|
|
231
|
-
onStatusChange: (N,
|
|
231
|
+
onStatusChange: (N, be) => l.patchProgress(N, { Status: be }),
|
|
232
232
|
onViewed: (N) => l.patchProgress(N, { IsNew: !1 }),
|
|
233
233
|
get activeTab() {
|
|
234
234
|
return t(M);
|
|
@@ -239,23 +239,23 @@ function ee(p, a) {
|
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
H(e,
|
|
243
|
-
},
|
|
244
|
-
var
|
|
245
|
-
|
|
242
|
+
H(e, r);
|
|
243
|
+
}, de = (e) => {
|
|
244
|
+
var r = X(), m = q(r);
|
|
245
|
+
ke(m, {
|
|
246
246
|
get activeTab() {
|
|
247
247
|
return t(g);
|
|
248
248
|
},
|
|
249
|
-
onTabChange:
|
|
249
|
+
onTabChange: se,
|
|
250
250
|
get notifyTabs() {
|
|
251
|
-
return t(
|
|
251
|
+
return t(ae);
|
|
252
252
|
},
|
|
253
253
|
get showTabDot() {
|
|
254
254
|
return _();
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
|
-
var I =
|
|
258
|
-
|
|
257
|
+
var I = F(m, 2);
|
|
258
|
+
Pe(I, {
|
|
259
259
|
get endpoint() {
|
|
260
260
|
return h();
|
|
261
261
|
},
|
|
@@ -274,7 +274,7 @@ function ee(p, a) {
|
|
|
274
274
|
get challenges() {
|
|
275
275
|
return l;
|
|
276
276
|
},
|
|
277
|
-
onViewDetails:
|
|
277
|
+
onViewDetails: ie,
|
|
278
278
|
get activeTab() {
|
|
279
279
|
return t(g);
|
|
280
280
|
},
|
|
@@ -284,16 +284,16 @@ function ee(p, a) {
|
|
|
284
284
|
get historyLimit() {
|
|
285
285
|
return S();
|
|
286
286
|
}
|
|
287
|
-
}), H(e,
|
|
287
|
+
}), H(e, r);
|
|
288
288
|
};
|
|
289
|
-
|
|
290
|
-
t(c) ? e(
|
|
289
|
+
Te(oe, (e) => {
|
|
290
|
+
t(c) ? e(ue) : e(de, -1);
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return Ce(U), H(p, U), $(le);
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
Z(
|
|
296
|
+
te,
|
|
297
297
|
{
|
|
298
298
|
endpoint: {},
|
|
299
299
|
userSession: {},
|
|
@@ -312,85 +312,85 @@ X(
|
|
|
312
312
|
[],
|
|
313
313
|
{ mode: "open" }
|
|
314
314
|
);
|
|
315
|
-
function
|
|
316
|
-
|
|
315
|
+
function ne(p, a) {
|
|
316
|
+
Q(a, !0);
|
|
317
317
|
let h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7, ""), d = s(a, "isMobile", 7), y = s(a, "activeTab", 7), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7);
|
|
318
|
-
const g = o(() => W(d(), !0)), L = o(() => G(y()) ?? C.Promo), c = o(() => k() || void 0),
|
|
318
|
+
const g = o(() => W(d(), !0)), L = o(() => G(y()) ?? C.Promo), c = o(() => k() || void 0), P = o(() => Le(D())), M = o(() => W(_())), A = o(() => _e(S(), 0) || void 0);
|
|
319
319
|
var l = {
|
|
320
320
|
get endpoint() {
|
|
321
321
|
return h();
|
|
322
322
|
},
|
|
323
323
|
set endpoint(n = "") {
|
|
324
|
-
h(n),
|
|
324
|
+
h(n), i();
|
|
325
325
|
},
|
|
326
326
|
get userSession() {
|
|
327
327
|
return b();
|
|
328
328
|
},
|
|
329
329
|
set userSession(n = "") {
|
|
330
|
-
b(n),
|
|
330
|
+
b(n), i();
|
|
331
331
|
},
|
|
332
332
|
get userId() {
|
|
333
333
|
return v();
|
|
334
334
|
},
|
|
335
335
|
set userId(n = "") {
|
|
336
|
-
v(n),
|
|
336
|
+
v(n), i();
|
|
337
337
|
},
|
|
338
338
|
get domainId() {
|
|
339
339
|
return f();
|
|
340
340
|
},
|
|
341
341
|
set domainId(n = "") {
|
|
342
|
-
f(n),
|
|
342
|
+
f(n), i();
|
|
343
343
|
},
|
|
344
344
|
get locale() {
|
|
345
345
|
return u();
|
|
346
346
|
},
|
|
347
347
|
set locale(n = "en") {
|
|
348
|
-
u(n),
|
|
348
|
+
u(n), i();
|
|
349
349
|
},
|
|
350
350
|
get translationUrl() {
|
|
351
351
|
return T();
|
|
352
352
|
},
|
|
353
353
|
set translationUrl(n = "") {
|
|
354
|
-
T(n),
|
|
354
|
+
T(n), i();
|
|
355
355
|
},
|
|
356
356
|
get isMobile() {
|
|
357
357
|
return d();
|
|
358
358
|
},
|
|
359
359
|
set isMobile(n) {
|
|
360
|
-
d(n),
|
|
360
|
+
d(n), i();
|
|
361
361
|
},
|
|
362
362
|
get activeTab() {
|
|
363
363
|
return y();
|
|
364
364
|
},
|
|
365
365
|
set activeTab(n) {
|
|
366
|
-
y(n),
|
|
366
|
+
y(n), i();
|
|
367
367
|
},
|
|
368
368
|
get activeChallengeId() {
|
|
369
369
|
return k();
|
|
370
370
|
},
|
|
371
371
|
set activeChallengeId(n) {
|
|
372
|
-
k(n),
|
|
372
|
+
k(n), i();
|
|
373
373
|
},
|
|
374
374
|
get activeDetailsTab() {
|
|
375
375
|
return D();
|
|
376
376
|
},
|
|
377
377
|
set activeDetailsTab(n) {
|
|
378
|
-
D(n),
|
|
378
|
+
D(n), i();
|
|
379
379
|
},
|
|
380
380
|
get historyLimit() {
|
|
381
381
|
return S();
|
|
382
382
|
},
|
|
383
383
|
set historyLimit(n) {
|
|
384
|
-
S(n),
|
|
384
|
+
S(n), i();
|
|
385
385
|
},
|
|
386
386
|
get showTabDot() {
|
|
387
387
|
return _();
|
|
388
388
|
},
|
|
389
389
|
set showTabDot(n) {
|
|
390
|
-
_(n),
|
|
390
|
+
_(n), i();
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
|
-
return
|
|
393
|
+
return te(p, {
|
|
394
394
|
get endpoint() {
|
|
395
395
|
return h();
|
|
396
396
|
},
|
|
@@ -419,18 +419,18 @@ function te(p, a) {
|
|
|
419
419
|
return t(c);
|
|
420
420
|
},
|
|
421
421
|
get activeDetailsTab() {
|
|
422
|
-
return t(
|
|
422
|
+
return t(P);
|
|
423
423
|
},
|
|
424
424
|
get historyLimit() {
|
|
425
|
-
return t(
|
|
425
|
+
return t(A);
|
|
426
426
|
},
|
|
427
427
|
get showTabDot() {
|
|
428
428
|
return t(M);
|
|
429
429
|
}
|
|
430
430
|
}), $(l);
|
|
431
431
|
}
|
|
432
|
-
customElements.define("player-challenges",
|
|
433
|
-
|
|
432
|
+
customElements.define("player-challenges", Z(
|
|
433
|
+
ne,
|
|
434
434
|
{
|
|
435
435
|
endpoint: {},
|
|
436
436
|
userSession: {},
|
|
@@ -448,11 +448,11 @@ customElements.define("player-challenges", X(
|
|
|
448
448
|
[],
|
|
449
449
|
[]
|
|
450
450
|
));
|
|
451
|
-
const
|
|
451
|
+
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
452
452
|
__proto__: null,
|
|
453
|
-
default:
|
|
453
|
+
default: ne
|
|
454
454
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
455
455
|
export {
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
te as P,
|
|
457
|
+
Be as a
|
|
458
458
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-CW3EEpFo.cjs");var a=e.from_svg('<svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.46289 0.26802C5.08176 -0.0893401 5.845 -0.0893401 6.46387 0.26802L9.92676 2.26802C10.5455 2.6253 10.9268 3.28596 10.9268 4.00044V8.00044C10.9268 8.71492 10.5455 9.37558 9.92676 9.73286L6.46387 11.7329C5.845 12.0902 5.08176 12.0902 4.46289 11.7329L1 9.73286C0.381267 9.37558 0 8.71492 0 8.00044V4.00044C0 3.28596 0.381267 2.6253 1 2.26802L4.46289 0.26802ZM4.36914 4.49263L1.86328 4.82954L3.69238 6.57466L3.23828 9.06197L5.46387 7.86177L7.68848 9.06197L7.23535 6.57466L9.06348 4.82954L6.55859 4.49263L5.46387 2.21333L4.36914 4.49263Z" fill="currentColor"></path></svg>');function s(o,t){e.push(t,!0);let h=e.prop(t,"width",7,11),i=e.prop(t,"height",7,12);var l={get width(){return h()},set width(r=11){h(r),e.flushSync()},get height(){return i()},set height(r=12){i(r),e.flushSync()}},n=a();return e.template_effect(()=>{e.set_attribute(n,"width",h()),e.set_attribute(n,"height",i())}),e.append(o,n),e.pop(l)}e.create_custom_element(s,{width:{},height:{}},[],[],{mode:"open"});exports.StarIcon=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-
|
|
1
|
+
import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-BYF7WY5P.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-CW3EEpFo.cjs");var h=e.from_svg('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');function C(n,i){e.push(i,!0);let t=e.prop(i,"size",7,12);var o={get size(){return t()},set size(c=12){t(c),e.flushSync()}},l=h(),r=e.sibling(e.child(l)),a=e.child(r),s=e.only_child(a);return e.reset(r),e.reset(l),e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t()),e.set_attribute(s,"width",t()),e.set_attribute(s,"height",t())}),e.append(n,l),e.pop(o)}e.create_custom_element(C,{size:{}},[],[],{mode:"open"});exports.TargetIcon=C;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as h, d, p as f, o as g, n as
|
|
1
|
+
import { c as h, d, p as f, o as g, n as r, t as u, a as v, b as m, f as L, e as _, F as w, r as C, s } from "./ChallengeTabs-BYF7WY5P.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
5
5
|
}, whenDefined() {
|
|
6
6
|
} });
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
d(
|
|
10
|
-
let e = f(
|
|
11
|
-
var
|
|
7
|
+
var T = L('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');
|
|
8
|
+
function b(o, l) {
|
|
9
|
+
d(l, !0);
|
|
10
|
+
let e = f(l, "size", 7, 12);
|
|
11
|
+
var n = {
|
|
12
12
|
get size() {
|
|
13
13
|
return e();
|
|
14
14
|
},
|
|
15
|
-
set size(
|
|
16
|
-
e(
|
|
15
|
+
set size(p = 12) {
|
|
16
|
+
e(p), _();
|
|
17
17
|
}
|
|
18
|
-
}, t =
|
|
19
|
-
return
|
|
20
|
-
s(t, "width", e()), s(t, "height", e()), s(
|
|
21
|
-
}), v(
|
|
18
|
+
}, t = T(), a = g(r(t)), c = r(a), i = w(c);
|
|
19
|
+
return C(a), C(t), u(() => {
|
|
20
|
+
s(t, "width", e()), s(t, "height", e()), s(i, "width", e()), s(i, "height", e());
|
|
21
|
+
}), v(o, t), m(n);
|
|
22
22
|
}
|
|
23
|
-
h(
|
|
23
|
+
h(b, { size: {} }, [], [], { mode: "open" });
|
|
24
24
|
export {
|
|
25
|
-
T
|
|
25
|
+
b as T
|
|
26
26
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const n=require("./ChallengeTabs-CW3EEpFo.cjs"),l=require("./types-BS-x0LbR.cjs"),s=e=>{switch(e){case n.ContributedFrom.Casino:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Games,l.ChallengeDetailsTab.Rules];case n.ContributedFrom.Sportsbook:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Events,l.ChallengeDetailsTab.Rules];default:return[]}},i=e=>s(e).find(t=>t===l.ChallengeDetailsTab.Games||t===l.ChallengeDetailsTab.Events),u=e=>[e.Discipline?.Name,e.Location?.Name,e.Template?.Name,e.Tournament?.Name,e.Event?.Name].filter(Boolean).join(", "),c=e=>[...e??[]].sort((t,r)=>t.OrderNumber-r.OrderNumber),g=e=>{switch(e){case n.WalletType.RealCash:return"contributionTypeRealMoney";case n.WalletType.BonusMoney:return"contributionTypeBonusMoney";case n.WalletType.Mixed:return"contributionTypeMixed";default:return}},y=e=>e?"contributeToOne":"contributeToAll",T=e=>{switch(e){case n.ChallengeRecurrenceType.Single:return"recurrenceSingle";case n.ChallengeRecurrenceType.Daily:return"recurrenceDaily";case n.ChallengeRecurrenceType.Weekly:return"recurrenceWeekly";case n.ChallengeRecurrenceType.Monthly:return"recurrenceMonthly";default:return}},m=(e,t)=>{switch(e){case n.ChallengeHistoryLevelStatus.Completed:return t("completed");case n.ChallengeHistoryLevelStatus.Expired:return t("expired");case n.ChallengeHistoryLevelStatus.Forfeited:return t("forfeited");default:return""}},b=e=>n.formatDisplayDate(e,"DD/MM/YY HH:mm"),o=e=>e.Status===n.ChallengeHistoryLevelStatus.Completed,a=(e,t)=>(e.Levels??[]).some(r=>r.Status===t),d=e=>{const t=e.Levels??[];return t.length?a(e,n.ChallengeHistoryLevelStatus.Forfeited)?"rejected":a(e,n.ChallengeHistoryLevelStatus.Expired)?"failed":t.every(o)?"completed":null:null},p=e=>Object.values(e??{}).map(t=>t?.RewardDescription).filter(t=>!!t);exports.formatLevelTime=b;exports.getAvailableTabs=s;exports.getContributeToKey=y;exports.getContributionTypeKey=g;exports.getEventRuleName=u;exports.getGamesTab=i;exports.getHistoryStatus=d;exports.getRecurrenceKey=T;exports.getRewardDescriptions=p;exports.getStatusLabel=m;exports.isLevelCompleted=o;exports.sortEventRules=c;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { C as l, W as o, q as n, u as s, v as c } from "./ChallengeTabs-BYF7WY5P.js";
|
|
2
|
+
import { C as r } from "./types-C1hrKH4R.js";
|
|
3
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
|
+
}, globalThis.customElements = { define() {
|
|
5
|
+
}, get() {
|
|
6
|
+
}, whenDefined() {
|
|
7
|
+
} });
|
|
8
|
+
const u = (e) => {
|
|
9
|
+
switch (e) {
|
|
10
|
+
case l.Casino:
|
|
11
|
+
return [r.Levels, r.Games, r.Rules];
|
|
12
|
+
case l.Sportsbook:
|
|
13
|
+
return [r.Levels, r.Events, r.Rules];
|
|
14
|
+
default:
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
}, p = (e) => u(e).find(
|
|
18
|
+
(t) => t === r.Games || t === r.Events
|
|
19
|
+
), y = (e) => [e.Discipline?.Name, e.Location?.Name, e.Template?.Name, e.Tournament?.Name, e.Event?.Name].filter(Boolean).join(", "), b = (e) => [...e ?? []].sort((t, a) => t.OrderNumber - a.OrderNumber), g = (e) => {
|
|
20
|
+
switch (e) {
|
|
21
|
+
case o.RealCash:
|
|
22
|
+
return "contributionTypeRealMoney";
|
|
23
|
+
case o.BonusMoney:
|
|
24
|
+
return "contributionTypeBonusMoney";
|
|
25
|
+
case o.Mixed:
|
|
26
|
+
return "contributionTypeMixed";
|
|
27
|
+
default:
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
}, v = (e) => e ? "contributeToOne" : "contributeToAll", T = (e) => {
|
|
31
|
+
switch (e) {
|
|
32
|
+
case n.Single:
|
|
33
|
+
return "recurrenceSingle";
|
|
34
|
+
case n.Daily:
|
|
35
|
+
return "recurrenceDaily";
|
|
36
|
+
case n.Weekly:
|
|
37
|
+
return "recurrenceWeekly";
|
|
38
|
+
case n.Monthly:
|
|
39
|
+
return "recurrenceMonthly";
|
|
40
|
+
default:
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
}, h = (e, t) => {
|
|
44
|
+
switch (e) {
|
|
45
|
+
case s.Completed:
|
|
46
|
+
return t("completed");
|
|
47
|
+
case s.Expired:
|
|
48
|
+
return t("expired");
|
|
49
|
+
case s.Forfeited:
|
|
50
|
+
return t("forfeited");
|
|
51
|
+
default:
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
}, C = (e) => c(e, "DD/MM/YY HH:mm"), d = (e) => e.Status === s.Completed, i = (e, t) => (e.Levels ?? []).some((a) => a.Status === t), L = (e) => {
|
|
55
|
+
const t = e.Levels ?? [];
|
|
56
|
+
return t.length ? i(e, s.Forfeited) ? "rejected" : i(e, s.Expired) ? "failed" : t.every(d) ? "completed" : null : null;
|
|
57
|
+
}, D = (e) => Object.values(e ?? {}).map((t) => t?.RewardDescription).filter((t) => !!t);
|
|
58
|
+
export {
|
|
59
|
+
y as a,
|
|
60
|
+
v as b,
|
|
61
|
+
g as c,
|
|
62
|
+
T as d,
|
|
63
|
+
p as e,
|
|
64
|
+
L as f,
|
|
65
|
+
u as g,
|
|
66
|
+
h,
|
|
67
|
+
C as i,
|
|
68
|
+
D as j,
|
|
69
|
+
d as k,
|
|
70
|
+
b as s
|
|
71
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-DRa1KyWF.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/PlayerChallenges-DRa1KyWF.cjs")).then(e=>e.PlayerChallenges_ce).then(e=>{const t=e.default||e;customElements.get("player-challenges")||customElements.define("player-challenges",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=l.PlayerChallenges;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as o } from "../components/PlayerChallenges-
|
|
1
|
+
import { P as o } from "../components/PlayerChallenges-sVHaxkEo.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -16,7 +16,7 @@ if (typeof window < "u") {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
customElements.define = s(customElements.define), import("../components/PlayerChallenges-
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/PlayerChallenges-sVHaxkEo.js").then((e) => e.a).then((e) => {
|
|
20
20
|
const n = e.default || e;
|
|
21
21
|
customElements.get("player-challenges") || customElements.define("player-challenges", n.element || n);
|
|
22
22
|
}).catch((e) => {
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-By40DWWg.cjs");var a=e.from_svg('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 11H7.83l4.88-4.88a1 1 0 10-1.42-1.42l-6.59 6.59a1 1 0 000 1.42l6.59 6.59a1 1 0 001.42-1.42L7.83 13H19a1 1 0 000-2z" fill="currentColor"></path></svg>');function r(s,n){e.push(n,!0);let t=e.prop(n,"size",7,24);var o={get size(){return t()},set size(i=24){t(i),e.flushSync()}},l=a();return e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t())}),e.append(s,l),e.pop(o)}e.create_custom_element(r,{size:{}},[],[],{mode:"open"});exports.ArrowLeftIcon=r;
|