@everymatrix/player-challenges 0.1.28 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{ArrowLeftIcon-DEPBZBRM.js → ArrowLeftIcon-3qrKAvdj.js} +1 -1
- package/components/{ArrowLeftIcon-BE-UTNx8.cjs → ArrowLeftIcon-DfIi_ild.cjs} +1 -1
- package/components/{Badge-BHsDsF1a.cjs → Badge-DFveO0N2.cjs} +2 -2
- package/components/{Badge-CVIWOeMs.js → Badge-UAilzVOG.js} +53 -55
- package/components/{Button-BuvNO4_4.js → Button-CzKbnOcC.js} +18 -18
- package/components/{Button-uyqixgQp.cjs → Button-DYIKg1bw.cjs} +2 -2
- package/components/{ChallengeBanner-DaStj94I.cjs → ChallengeBanner-CLOInO3g.cjs} +2 -2
- package/components/{ChallengeBanner-CJq-rT4a.js → ChallengeBanner-IgIai24t.js} +39 -39
- package/components/{ChallengeBreadcrumbs-ChatLS_r.cjs → ChallengeBreadcrumbs-BTbBzzQ7.cjs} +1 -1
- package/components/{ChallengeBreadcrumbs-CI8weFPB.js → ChallengeBreadcrumbs-CJtVYxk1.js} +2 -2
- package/components/ChallengeCard-Bgbcplkq.cjs +6 -0
- package/components/{ChallengeCard-ChvTO3u-.js → ChallengeCard-eycA-QQR.js} +199 -207
- package/components/{ChallengeClaimCode-QzWtGl3d.js → ChallengeClaimCode-7_t0VrV1.js} +68 -70
- package/components/{ChallengeClaimCode-CNDcRf40.cjs → ChallengeClaimCode-_w823IPm.cjs} +2 -2
- package/components/ChallengeDetails-DG09x6Eu.cjs +5 -0
- package/components/{ChallengeDetails-BMhe6TJQ.js → ChallengeDetails-DIlswoao.js} +171 -161
- package/components/{ChallengeDetailsSkeleton-DvaG5Vtl.cjs → ChallengeDetailsSkeleton--laE6pYH.cjs} +2 -2
- package/components/{ChallengeDetailsSkeleton-C3lUpHQI.js → ChallengeDetailsSkeleton-M5rC4gwT.js} +53 -53
- package/components/ChallengeEvents-B3Bzqtoo.js +35 -0
- package/components/{ChallengeEvents-Ccs-2sVC.cjs → ChallengeEvents-eIpuL6Yk.cjs} +1 -1
- package/components/ChallengeGames-B8Vm2L5G.cjs +14 -0
- package/components/ChallengeGames-L5TQ1wVu.js +164 -0
- package/components/{ChallengeHistory-CwTWuI_m.cjs → ChallengeHistory-CfySyCJf.cjs} +3 -3
- package/components/{ChallengeHistory-Br6nJHSY.js → ChallengeHistory-Cpr3ZtU1.js} +177 -185
- package/components/{ChallengeLevels-DEJpd5Ea.js → ChallengeLevels-BcKvLTo3.js} +77 -79
- package/components/ChallengeLevels-h_sq1iMg.cjs +8 -0
- package/components/{ChallengeList-DNS2FzUI.cjs → ChallengeList-BdM811gO.cjs} +2 -2
- package/components/{ChallengeList-C252FlUp.js → ChallengeList-DynA4UU9.js} +88 -88
- package/components/{ChallengeProgress-CryVLDRB.cjs → ChallengeProgress-Dg6HSNMv.cjs} +1 -1
- package/components/{ChallengeProgress-DdQh9kmS.js → ChallengeProgress-NWAKjOv2.js} +14 -14
- package/components/ChallengeProgressItem-Cxzfd65S.cjs +69 -0
- package/components/{ChallengeProgressItem-BKmopRoi.js → ChallengeProgressItem-D44UERwx.js} +232 -242
- package/components/ChallengeRules-CoSSDWCX.cjs +1 -0
- package/components/ChallengeRules-CyKZ9sRh.js +162 -0
- package/components/ChallengeSummary-B4Vp1cu8.cjs +1 -0
- package/components/ChallengeSummary-BoDIsHBs.js +248 -0
- package/components/{ChallengeTabContent-DZOkUEj2.js → ChallengeTabContent-DjqSySNS.js} +11 -11
- package/components/{ChallengeTabContent-CkUU95je.cjs → ChallengeTabContent-qwpLkxSQ.cjs} +1 -1
- package/components/{ChallengeTabPanel-DTPlF4YU.js → ChallengeTabPanel-DFXF6VqV.js} +54 -44
- package/components/ChallengeTabPanel-DYPhrVRz.cjs +1 -0
- package/components/ChallengeTabs-B5g-SF2b.cjs +16 -0
- package/components/{ChallengeTabs-DRKSY-vH.js → ChallengeTabs-_vjQrF0A.js} +3563 -3357
- package/components/{CheckIcon-CEazWbva.cjs → CheckIcon-0LtHk7fE.cjs} +1 -1
- package/components/{CheckIcon-DpKfE1MH.js → CheckIcon-BfH-d7h_.js} +1 -1
- package/components/{ChevronIcon-C-xOQWRM.cjs → ChevronIcon-BfZDLe6C.cjs} +1 -1
- package/components/{ChevronIcon-B0XO_sUW.js → ChevronIcon-D-mzPrXJ.js} +1 -1
- package/components/{ChipIcon-CU8BiGM5.js → ChipIcon-BAasRRs4.js} +1 -1
- package/components/{ChipIcon-B5wdN3J7.cjs → ChipIcon-ChCUc7Ro.cjs} +1 -1
- package/components/{ChipShineIcon-B242dy7k.cjs → ChipShineIcon-BiuHUnXR.cjs} +1 -1
- package/components/{ChipShineIcon-CT4MiKNr.js → ChipShineIcon-CoeUovBC.js} +16 -16
- package/components/{ExistIcon-BQc3oxU_.cjs → ExistIcon-CfsNk2my.cjs} +1 -1
- package/components/{ExistIcon-19wwQ4Pq.js → ExistIcon-Dv8paf_U.js} +1 -1
- package/components/{GiftIcon-BWI2iEW8.cjs → GiftIcon-BH735MXR.cjs} +1 -1
- package/components/{GiftIcon-BsPdSFbS.js → GiftIcon-Mnb_Nxbd.js} +14 -14
- package/components/{LinkIcon-CaI0ly4O.js → LinkIcon-DiVYY9ci.js} +1 -1
- package/components/{LinkIcon-BpW-XAWm.cjs → LinkIcon-Du4_pcZZ.cjs} +1 -1
- package/components/{LockIcon-Df1B037b.js → LockIcon-KP_pUGJo.js} +1 -1
- package/components/{LockIcon-CteP5M0h.cjs → LockIcon-QA92rEFW.cjs} +1 -1
- package/components/Pagination-DQklVx0w.js +113 -0
- package/components/{Pagination-95wNrpqw.cjs → Pagination-DfqNdchM.cjs} +2 -2
- package/components/PlayerChallenges-BVshv0hR.cjs +1 -0
- package/components/{PlayerChallenges-CchBlHVQ.js → PlayerChallenges-Cj6-v75C.js} +178 -165
- package/components/{StarIcon-DAgfGbDi.js → StarIcon-DTSu1OOQ.js} +1 -1
- package/components/{StarIcon-BRqeO8o_.cjs → StarIcon-DturCxI3.cjs} +1 -1
- package/components/{TargetIcon-BAPh5-Az.cjs → TargetIcon-BlVaf2Xr.cjs} +1 -1
- package/components/{TargetIcon-CNt_y-Aw.js → TargetIcon-CJJKDeVK.js} +14 -14
- package/components/helpers-B2y_AV0y.js +71 -0
- package/components/helpers-BmTQLAcy.cjs +1 -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-BWmMHkmf.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,457 +0,0 @@
|
|
|
1
|
-
import { c as X, d as Z, h as be, p as s, u as E, q as me, ax as F, aG as J, v as w, B as K, M as x, O as V, aY as C, b1 as G, K as z, y as t, b2 as O, b3 as ve, a_ as B, x as fe, a as H, b as $, A as o, k as R, e as r, aW as Te, n as ye, r as Ie, F as Y, o as W, b4 as Ce, b5 as ke, b6 as De, a$ as Q, ay as Se, b0 as _e } from "./ChallengeTabs-CXIPdZOg.js";
|
|
2
|
-
import { a as Le } from "./ChallengeList-D7VynPhn.js";
|
|
3
|
-
import { C as ze } from "./ChallengeBreadcrumbs-2v9qUqv3.js";
|
|
4
|
-
import { b as we } from "./ChallengeTabContent-D_RL7M0X.js";
|
|
5
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
6
|
-
}, globalThis.customElements = { define() {
|
|
7
|
-
}, get() {
|
|
8
|
-
}, whenDefined() {
|
|
9
|
-
} });
|
|
10
|
-
const Ae = {
|
|
11
|
-
en: {
|
|
12
|
-
noChallenges: "No challenges at the moment. Try exploring events or keep playing to unlock new ones.",
|
|
13
|
-
challengesAnonymous: "Login to see your challenges and progress."
|
|
14
|
-
},
|
|
15
|
-
tr: {
|
|
16
|
-
noChallenges: "Şu anda görev yok. Etkinliklere göz atabilir veya oynamaya devam ederek yenilerinin kilidini açabilirsin.",
|
|
17
|
-
challengesAnonymous: "Görevlerinizi ve ilerlemenizi görmek için giriş yapın."
|
|
18
|
-
},
|
|
19
|
-
da: {
|
|
20
|
-
noChallenges: "Ingen udfordringer i øjeblikket. Prøv at udforske events, eller bliv ved med at spille for at låse nye op.",
|
|
21
|
-
challengesAnonymous: "Log ind for at se dine udfordringer og fremskridt."
|
|
22
|
-
},
|
|
23
|
-
de: {
|
|
24
|
-
noChallenges: "Aktuell keine Herausforderungen verfügbar. Entdecke Events oder spiele weiter, um neue freizuschalten.",
|
|
25
|
-
challengesAnonymous: "Melde dich an, um deine Herausforderungen und Fortschritte zu sehen."
|
|
26
|
-
},
|
|
27
|
-
nl: {
|
|
28
|
-
noChallenges: "Op dit moment geen uitdagingen beschikbaar. Bekijk events of blijf spelen om nieuwe uitdagingen te ontgrendelen.",
|
|
29
|
-
challengesAnonymous: "Log in om je uitdagingen en voortgang te zien."
|
|
30
|
-
},
|
|
31
|
-
fr: {
|
|
32
|
-
noChallenges: "Aucun défi pour le moment. Découvrez les événements ou continuez à jouer pour en débloquer de nouveaux.",
|
|
33
|
-
challengesAnonymous: "Connectez-vous pour voir vos défis et votre progression."
|
|
34
|
-
},
|
|
35
|
-
hu: {
|
|
36
|
-
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.",
|
|
37
|
-
challengesAnonymous: "Jelentkezzen be, hogy lássa a kihívásait és haladását."
|
|
38
|
-
}
|
|
39
|
-
}, Me = 50;
|
|
40
|
-
var Pe = R("<!> <!>", 1), pe = R("<!> <!>", 1), Ue = R('<div class="player-challenges svelte-1edjcz1"><!></div>');
|
|
41
|
-
const Ne = {
|
|
42
|
-
hash: "svelte-1edjcz1",
|
|
43
|
-
code: ".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"
|
|
44
|
-
};
|
|
45
|
-
function ee(M, a) {
|
|
46
|
-
Z(a, !0), be(M, Ne);
|
|
47
|
-
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), I = 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);
|
|
48
|
-
E(() => me(u(), Ae)), F(() => {
|
|
49
|
-
T() && J(T(), "challenge-card");
|
|
50
|
-
}), w(() => {
|
|
51
|
-
K(u() || "en");
|
|
52
|
-
});
|
|
53
|
-
let g = x(V(E(() => G(I())) ?? C.Promo));
|
|
54
|
-
w(() => {
|
|
55
|
-
const e = G(I());
|
|
56
|
-
e !== void 0 && z(g, e, !0);
|
|
57
|
-
});
|
|
58
|
-
const L = o(() => d() ? void 0 : k() || void 0);
|
|
59
|
-
let c = x(V(E(() => t(L))));
|
|
60
|
-
w(() => {
|
|
61
|
-
t(L) !== void 0 && (z(c, t(L), !0), O(!0, t(L)));
|
|
62
|
-
});
|
|
63
|
-
let A = x(void 0);
|
|
64
|
-
const p = o(() => t(A) ?? (t(c) === t(L) ? D() : void 0)), P = o(() => !b()), l = ve(() => ({
|
|
65
|
-
endpoint: h(),
|
|
66
|
-
domainId: f(),
|
|
67
|
-
userSession: b(),
|
|
68
|
-
userId: v(),
|
|
69
|
-
locale: u(),
|
|
70
|
-
pageSize: Te(d())
|
|
71
|
-
})), n = o(() => {
|
|
72
|
-
const e = B[t(g)];
|
|
73
|
-
return (e && e !== "history" ? l.getList(e) : []).find((m) => m.ChallengeId === t(c)) ?? l.findChallenge(t(c));
|
|
74
|
-
}), ne = o(() => {
|
|
75
|
-
const e = [];
|
|
76
|
-
return l.activeChallenges.some((i) => i.IsNew) && e.push(C.Active), l.awaitingChallenges.some((i) => i.IsNew) && e.push(C.Pending), e;
|
|
77
|
-
}), ae = (e) => {
|
|
78
|
-
e !== t(g) && (z(g, e, !0), ke(De[e]));
|
|
79
|
-
}, se = (e, i) => {
|
|
80
|
-
z(c, e, !0), z(A, i, !0), d() || O(!0, e);
|
|
81
|
-
}, q = () => {
|
|
82
|
-
d() || O(!1, t(c)), z(c, void 0), z(A, void 0);
|
|
83
|
-
}, re = (e) => {
|
|
84
|
-
if (e !== t(c))
|
|
85
|
-
return;
|
|
86
|
-
q();
|
|
87
|
-
const i = B[t(g)];
|
|
88
|
-
i && l.load(i, t(P));
|
|
89
|
-
};
|
|
90
|
-
F(() => {
|
|
91
|
-
T() && J(T(), "player-challenges");
|
|
92
|
-
}), w(() => {
|
|
93
|
-
K(u() || "en");
|
|
94
|
-
}), w(() => {
|
|
95
|
-
const e = t(g), i = {
|
|
96
|
-
endpoint: h(),
|
|
97
|
-
domainId: f(),
|
|
98
|
-
userSession: b(),
|
|
99
|
-
userId: v(),
|
|
100
|
-
locale: u()
|
|
101
|
-
}, m = t(P), y = B[e];
|
|
102
|
-
if (!i.endpoint || !y)
|
|
103
|
-
return;
|
|
104
|
-
if (y !== "promo" || !m) {
|
|
105
|
-
l.load(y, m);
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
l.markLoading(y);
|
|
109
|
-
const N = setTimeout(() => l.load(y, m), Me);
|
|
110
|
-
return () => clearTimeout(N);
|
|
111
|
-
}), w(() => {
|
|
112
|
-
if (h())
|
|
113
|
-
return l.connect(), () => l.disconnect();
|
|
114
|
-
});
|
|
115
|
-
var ie = {
|
|
116
|
-
get endpoint() {
|
|
117
|
-
return h();
|
|
118
|
-
},
|
|
119
|
-
set endpoint(e = "") {
|
|
120
|
-
h(e), r();
|
|
121
|
-
},
|
|
122
|
-
get userSession() {
|
|
123
|
-
return b();
|
|
124
|
-
},
|
|
125
|
-
set userSession(e = "") {
|
|
126
|
-
b(e), r();
|
|
127
|
-
},
|
|
128
|
-
get userId() {
|
|
129
|
-
return v();
|
|
130
|
-
},
|
|
131
|
-
set userId(e = "") {
|
|
132
|
-
v(e), r();
|
|
133
|
-
},
|
|
134
|
-
get domainId() {
|
|
135
|
-
return f();
|
|
136
|
-
},
|
|
137
|
-
set domainId(e = "") {
|
|
138
|
-
f(e), r();
|
|
139
|
-
},
|
|
140
|
-
get locale() {
|
|
141
|
-
return u();
|
|
142
|
-
},
|
|
143
|
-
set locale(e = "en") {
|
|
144
|
-
u(e), r();
|
|
145
|
-
},
|
|
146
|
-
get translationUrl() {
|
|
147
|
-
return T();
|
|
148
|
-
},
|
|
149
|
-
set translationUrl(e) {
|
|
150
|
-
T(e), r();
|
|
151
|
-
},
|
|
152
|
-
get isMobile() {
|
|
153
|
-
return d();
|
|
154
|
-
},
|
|
155
|
-
set isMobile(e = !0) {
|
|
156
|
-
d(e), r();
|
|
157
|
-
},
|
|
158
|
-
get activeTab() {
|
|
159
|
-
return I();
|
|
160
|
-
},
|
|
161
|
-
set activeTab(e = C.Promo) {
|
|
162
|
-
I(e), r();
|
|
163
|
-
},
|
|
164
|
-
get activeChallengeId() {
|
|
165
|
-
return k();
|
|
166
|
-
},
|
|
167
|
-
set activeChallengeId(e) {
|
|
168
|
-
k(e), r();
|
|
169
|
-
},
|
|
170
|
-
get activeDetailsTab() {
|
|
171
|
-
return D();
|
|
172
|
-
},
|
|
173
|
-
set activeDetailsTab(e) {
|
|
174
|
-
D(e), r();
|
|
175
|
-
},
|
|
176
|
-
get historyLimit() {
|
|
177
|
-
return S();
|
|
178
|
-
},
|
|
179
|
-
set historyLimit(e) {
|
|
180
|
-
S(e), r();
|
|
181
|
-
},
|
|
182
|
-
get showTabDot() {
|
|
183
|
-
return _();
|
|
184
|
-
},
|
|
185
|
-
set showTabDot(e = !1) {
|
|
186
|
-
_(e), r();
|
|
187
|
-
}
|
|
188
|
-
}, U = Ue(), le = ye(U);
|
|
189
|
-
{
|
|
190
|
-
var oe = (e) => {
|
|
191
|
-
var i = Pe(), m = Y(i);
|
|
192
|
-
ze(m, { onBack: q });
|
|
193
|
-
var y = W(m, 2);
|
|
194
|
-
{
|
|
195
|
-
let N = o(() => t(g) === C.Promo), de = o(() => t(g) === C.Pending), ge = o(() => !!t(n) && l.pausedChallengeIds.includes(t(n).ChallengeId)), ce = o(() => t(n)?.Status);
|
|
196
|
-
Le(y, {
|
|
197
|
-
get challengeId() {
|
|
198
|
-
return t(c);
|
|
199
|
-
},
|
|
200
|
-
get endpoint() {
|
|
201
|
-
return h();
|
|
202
|
-
},
|
|
203
|
-
get userSession() {
|
|
204
|
-
return b();
|
|
205
|
-
},
|
|
206
|
-
get userId() {
|
|
207
|
-
return v();
|
|
208
|
-
},
|
|
209
|
-
get domainId() {
|
|
210
|
-
return f();
|
|
211
|
-
},
|
|
212
|
-
get locale() {
|
|
213
|
-
return u();
|
|
214
|
-
},
|
|
215
|
-
get isPromo() {
|
|
216
|
-
return t(N);
|
|
217
|
-
},
|
|
218
|
-
get isPending() {
|
|
219
|
-
return t(de);
|
|
220
|
-
},
|
|
221
|
-
get isPaused() {
|
|
222
|
-
return t(ge);
|
|
223
|
-
},
|
|
224
|
-
get status() {
|
|
225
|
-
return t(ce);
|
|
226
|
-
},
|
|
227
|
-
get progress() {
|
|
228
|
-
return t(n);
|
|
229
|
-
},
|
|
230
|
-
onStatusChange: (j, he) => l.patchProgress(j, { Status: he }),
|
|
231
|
-
onViewed: (j) => l.patchProgress(j, { IsNew: !1 }),
|
|
232
|
-
get activeTab() {
|
|
233
|
-
return t(p);
|
|
234
|
-
},
|
|
235
|
-
onUnavailable: re,
|
|
236
|
-
get isMobile() {
|
|
237
|
-
return d();
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
H(e, i);
|
|
242
|
-
}, ue = (e) => {
|
|
243
|
-
var i = pe(), m = Y(i);
|
|
244
|
-
Ce(m, {
|
|
245
|
-
get activeTab() {
|
|
246
|
-
return t(g);
|
|
247
|
-
},
|
|
248
|
-
onTabChange: ae,
|
|
249
|
-
get notifyTabs() {
|
|
250
|
-
return t(ne);
|
|
251
|
-
},
|
|
252
|
-
get showTabDot() {
|
|
253
|
-
return _();
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
var y = W(m, 2);
|
|
257
|
-
we(y, {
|
|
258
|
-
get endpoint() {
|
|
259
|
-
return h();
|
|
260
|
-
},
|
|
261
|
-
get userSession() {
|
|
262
|
-
return b();
|
|
263
|
-
},
|
|
264
|
-
get userId() {
|
|
265
|
-
return v();
|
|
266
|
-
},
|
|
267
|
-
get domainId() {
|
|
268
|
-
return f();
|
|
269
|
-
},
|
|
270
|
-
get locale() {
|
|
271
|
-
return u();
|
|
272
|
-
},
|
|
273
|
-
get challenges() {
|
|
274
|
-
return l;
|
|
275
|
-
},
|
|
276
|
-
onViewDetails: se,
|
|
277
|
-
get activeTab() {
|
|
278
|
-
return t(g);
|
|
279
|
-
},
|
|
280
|
-
get isMobile() {
|
|
281
|
-
return d();
|
|
282
|
-
},
|
|
283
|
-
get historyLimit() {
|
|
284
|
-
return S();
|
|
285
|
-
}
|
|
286
|
-
}), H(e, i);
|
|
287
|
-
};
|
|
288
|
-
fe(le, (e) => {
|
|
289
|
-
t(c) ? e(oe) : e(ue, -1);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
return Ie(U), H(M, U), $(ie);
|
|
293
|
-
}
|
|
294
|
-
X(
|
|
295
|
-
ee,
|
|
296
|
-
{
|
|
297
|
-
endpoint: {},
|
|
298
|
-
userSession: {},
|
|
299
|
-
userId: {},
|
|
300
|
-
domainId: {},
|
|
301
|
-
locale: {},
|
|
302
|
-
translationUrl: {},
|
|
303
|
-
isMobile: {},
|
|
304
|
-
activeTab: {},
|
|
305
|
-
activeChallengeId: {},
|
|
306
|
-
activeDetailsTab: {},
|
|
307
|
-
historyLimit: {},
|
|
308
|
-
showTabDot: {}
|
|
309
|
-
},
|
|
310
|
-
[],
|
|
311
|
-
[],
|
|
312
|
-
{ mode: "open" }
|
|
313
|
-
);
|
|
314
|
-
function te(M, a) {
|
|
315
|
-
Z(a, !0);
|
|
316
|
-
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), I = s(a, "activeTab", 7), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7);
|
|
317
|
-
const g = o(() => Q(d(), !0)), L = o(() => G(I()) ?? C.Promo), c = o(() => k() || void 0), A = o(() => Se(D())), p = o(() => Q(_())), P = o(() => _e(S(), 0) || void 0);
|
|
318
|
-
var l = {
|
|
319
|
-
get endpoint() {
|
|
320
|
-
return h();
|
|
321
|
-
},
|
|
322
|
-
set endpoint(n = "") {
|
|
323
|
-
h(n), r();
|
|
324
|
-
},
|
|
325
|
-
get userSession() {
|
|
326
|
-
return b();
|
|
327
|
-
},
|
|
328
|
-
set userSession(n = "") {
|
|
329
|
-
b(n), r();
|
|
330
|
-
},
|
|
331
|
-
get userId() {
|
|
332
|
-
return v();
|
|
333
|
-
},
|
|
334
|
-
set userId(n = "") {
|
|
335
|
-
v(n), r();
|
|
336
|
-
},
|
|
337
|
-
get domainId() {
|
|
338
|
-
return f();
|
|
339
|
-
},
|
|
340
|
-
set domainId(n = "") {
|
|
341
|
-
f(n), r();
|
|
342
|
-
},
|
|
343
|
-
get locale() {
|
|
344
|
-
return u();
|
|
345
|
-
},
|
|
346
|
-
set locale(n = "en") {
|
|
347
|
-
u(n), r();
|
|
348
|
-
},
|
|
349
|
-
get translationUrl() {
|
|
350
|
-
return T();
|
|
351
|
-
},
|
|
352
|
-
set translationUrl(n = "") {
|
|
353
|
-
T(n), r();
|
|
354
|
-
},
|
|
355
|
-
get isMobile() {
|
|
356
|
-
return d();
|
|
357
|
-
},
|
|
358
|
-
set isMobile(n) {
|
|
359
|
-
d(n), r();
|
|
360
|
-
},
|
|
361
|
-
get activeTab() {
|
|
362
|
-
return I();
|
|
363
|
-
},
|
|
364
|
-
set activeTab(n) {
|
|
365
|
-
I(n), r();
|
|
366
|
-
},
|
|
367
|
-
get activeChallengeId() {
|
|
368
|
-
return k();
|
|
369
|
-
},
|
|
370
|
-
set activeChallengeId(n) {
|
|
371
|
-
k(n), r();
|
|
372
|
-
},
|
|
373
|
-
get activeDetailsTab() {
|
|
374
|
-
return D();
|
|
375
|
-
},
|
|
376
|
-
set activeDetailsTab(n) {
|
|
377
|
-
D(n), r();
|
|
378
|
-
},
|
|
379
|
-
get historyLimit() {
|
|
380
|
-
return S();
|
|
381
|
-
},
|
|
382
|
-
set historyLimit(n) {
|
|
383
|
-
S(n), r();
|
|
384
|
-
},
|
|
385
|
-
get showTabDot() {
|
|
386
|
-
return _();
|
|
387
|
-
},
|
|
388
|
-
set showTabDot(n) {
|
|
389
|
-
_(n), r();
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
return ee(M, {
|
|
393
|
-
get endpoint() {
|
|
394
|
-
return h();
|
|
395
|
-
},
|
|
396
|
-
get userSession() {
|
|
397
|
-
return b();
|
|
398
|
-
},
|
|
399
|
-
get userId() {
|
|
400
|
-
return v();
|
|
401
|
-
},
|
|
402
|
-
get domainId() {
|
|
403
|
-
return f();
|
|
404
|
-
},
|
|
405
|
-
get locale() {
|
|
406
|
-
return u();
|
|
407
|
-
},
|
|
408
|
-
get translationUrl() {
|
|
409
|
-
return T();
|
|
410
|
-
},
|
|
411
|
-
get isMobile() {
|
|
412
|
-
return t(g);
|
|
413
|
-
},
|
|
414
|
-
get activeTab() {
|
|
415
|
-
return t(L);
|
|
416
|
-
},
|
|
417
|
-
get activeChallengeId() {
|
|
418
|
-
return t(c);
|
|
419
|
-
},
|
|
420
|
-
get activeDetailsTab() {
|
|
421
|
-
return t(A);
|
|
422
|
-
},
|
|
423
|
-
get historyLimit() {
|
|
424
|
-
return t(P);
|
|
425
|
-
},
|
|
426
|
-
get showTabDot() {
|
|
427
|
-
return t(p);
|
|
428
|
-
}
|
|
429
|
-
}), $(l);
|
|
430
|
-
}
|
|
431
|
-
customElements.define("player-challenges", X(
|
|
432
|
-
te,
|
|
433
|
-
{
|
|
434
|
-
endpoint: {},
|
|
435
|
-
userSession: {},
|
|
436
|
-
userId: {},
|
|
437
|
-
domainId: {},
|
|
438
|
-
locale: {},
|
|
439
|
-
translationUrl: {},
|
|
440
|
-
isMobile: {},
|
|
441
|
-
activeTab: {},
|
|
442
|
-
activeChallengeId: {},
|
|
443
|
-
activeDetailsTab: {},
|
|
444
|
-
historyLimit: {},
|
|
445
|
-
showTabDot: {}
|
|
446
|
-
},
|
|
447
|
-
[],
|
|
448
|
-
[]
|
|
449
|
-
));
|
|
450
|
-
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
451
|
-
__proto__: null,
|
|
452
|
-
default: te
|
|
453
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
454
|
-
export {
|
|
455
|
-
ee as P,
|
|
456
|
-
Be as a
|
|
457
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
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-CXIPdZOg.js";
|
|
2
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
-
}, globalThis.customElements = { define() {
|
|
4
|
-
}, get() {
|
|
5
|
-
}, whenDefined() {
|
|
6
|
-
} });
|
|
7
|
-
var m = u('<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>');
|
|
8
|
-
function w(o, e) {
|
|
9
|
-
d(e, !0);
|
|
10
|
-
let t = i(e, "width", 7, 11), s = i(e, "height", 7, 12);
|
|
11
|
-
var l = {
|
|
12
|
-
get width() {
|
|
13
|
-
return t();
|
|
14
|
-
},
|
|
15
|
-
set width(a = 11) {
|
|
16
|
-
t(a), r();
|
|
17
|
-
},
|
|
18
|
-
get height() {
|
|
19
|
-
return s();
|
|
20
|
-
},
|
|
21
|
-
set height(a = 12) {
|
|
22
|
-
s(a), r();
|
|
23
|
-
}
|
|
24
|
-
}, h = m();
|
|
25
|
-
return L(() => {
|
|
26
|
-
n(h, "width", t()), n(h, "height", s());
|
|
27
|
-
}), f(o, h), p(l);
|
|
28
|
-
}
|
|
29
|
-
g(w, { width: {}, height: {} }, [], [], { mode: "open" });
|
|
30
|
-
export {
|
|
31
|
-
w as S
|
|
32
|
-
};
|
|
@@ -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 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 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-By40DWWg.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 n(o,l){e.push(l,!0);let t=e.prop(l,"size",7,12);var a={get size(){return t()},set size(c=12){t(c),e.flushSync()}},i=h(),r=e.sibling(e.child(i)),s=e.child(r),C=e.child(s);return e.reset(s),e.reset(r),e.reset(i),e.template_effect(()=>{e.set_attribute(i,"width",t()),e.set_attribute(i,"height",t()),e.set_attribute(C,"width",t()),e.set_attribute(C,"height",t())}),e.append(o,i),e.pop(a)}e.create_custom_element(n,{size:{}},[],[],{mode:"open"});exports.TargetIcon=n;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { c as h, d, p as f, o as g, n as l, t as u, a as v, b as m, f as L, e as _, r as a, s } from "./ChallengeTabs-DRKSY-vH.js";
|
|
2
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
-
}, globalThis.customElements = { define() {
|
|
4
|
-
}, get() {
|
|
5
|
-
}, whenDefined() {
|
|
6
|
-
} });
|
|
7
|
-
var w = 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 T(n, i) {
|
|
9
|
-
d(i, !0);
|
|
10
|
-
let e = f(i, "size", 7, 12);
|
|
11
|
-
var p = {
|
|
12
|
-
get size() {
|
|
13
|
-
return e();
|
|
14
|
-
},
|
|
15
|
-
set size(c = 12) {
|
|
16
|
-
e(c), _();
|
|
17
|
-
}
|
|
18
|
-
}, t = w(), r = g(l(t)), C = l(r), o = l(C);
|
|
19
|
-
return a(C), a(r), a(t), u(() => {
|
|
20
|
-
s(t, "width", e()), s(t, "height", e()), s(o, "width", e()), s(o, "height", e());
|
|
21
|
-
}), v(n, t), m(p);
|
|
22
|
-
}
|
|
23
|
-
h(T, { size: {} }, [], [], { mode: "open" });
|
|
24
|
-
export {
|
|
25
|
-
T
|
|
26
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { C as l, W as o, q as r, u as n, v as c } from "./ChallengeTabs-DRKSY-vH.js";
|
|
2
|
-
import { C as s } 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 [s.Levels, s.Games, s.Rules];
|
|
12
|
-
case l.Sportsbook:
|
|
13
|
-
return [s.Levels, s.Events, s.Rules];
|
|
14
|
-
default:
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
}, f = (e) => u(e).find(
|
|
18
|
-
(t) => t === s.Games || t === s.Events
|
|
19
|
-
), y = (e) => [e.Discipline?.Name, e.Location?.Name, e.Template?.Name, e.Tournament?.Name, e.Event?.Name].filter(Boolean).join(", "), T = (e) => [...e ?? []].sort((t, a) => t.OrderNumber - a.OrderNumber), v = (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
|
-
}, b = (e) => e ? "contributeToOne" : "contributeToAll", g = (e) => {
|
|
31
|
-
switch (e) {
|
|
32
|
-
case r.Single:
|
|
33
|
-
return "recurrenceSingle";
|
|
34
|
-
case r.Daily:
|
|
35
|
-
return "recurrenceDaily";
|
|
36
|
-
case r.Weekly:
|
|
37
|
-
return "recurrenceWeekly";
|
|
38
|
-
case r.Monthly:
|
|
39
|
-
return "recurrenceMonthly";
|
|
40
|
-
default:
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
}, h = {
|
|
44
|
-
[n.Completed]: "completed",
|
|
45
|
-
[n.Expired]: "expired",
|
|
46
|
-
[n.Forfeited]: "forfeited"
|
|
47
|
-
}, C = (e) => c(e, "DD/MM/YY HH:mm"), m = (e) => e.Status === n.Completed, i = (e, t) => (e.Levels ?? []).some((a) => a.Status === t), D = (e) => {
|
|
48
|
-
const t = e.Levels ?? [];
|
|
49
|
-
return t.length ? i(e, n.Forfeited) ? "rejected" : i(e, n.Expired) ? "failed" : t.every(m) ? "completed" : null : null;
|
|
50
|
-
}, E = (e) => Object.values(e ?? {}).map((t) => t?.RewardDescription).filter((t) => !!t);
|
|
51
|
-
export {
|
|
52
|
-
h as S,
|
|
53
|
-
y as a,
|
|
54
|
-
b,
|
|
55
|
-
v as c,
|
|
56
|
-
g as d,
|
|
57
|
-
f as e,
|
|
58
|
-
D as f,
|
|
59
|
-
u as g,
|
|
60
|
-
C as h,
|
|
61
|
-
E as i,
|
|
62
|
-
m as j,
|
|
63
|
-
T as s
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const t=require("./ChallengeTabs-BPweSLWX.cjs"),l=require("./types-BS-x0LbR.cjs"),s=e=>{switch(e){case t.ContributedFrom.Casino:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Games,l.ChallengeDetailsTab.Rules];case t.ContributedFrom.Sportsbook:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Events,l.ChallengeDetailsTab.Rules];default:return[]}},i=e=>s(e).find(n=>n===l.ChallengeDetailsTab.Games||n===l.ChallengeDetailsTab.Events),c=e=>[e.Discipline?.Name,e.Location?.Name,e.Template?.Name,e.Tournament?.Name,e.Event?.Name].filter(Boolean).join(", "),u=e=>[...e??[]].sort((n,r)=>n.OrderNumber-r.OrderNumber),g=e=>{switch(e){case t.WalletType.RealCash:return"contributionTypeRealMoney";case t.WalletType.BonusMoney:return"contributionTypeBonusMoney";case t.WalletType.Mixed:return"contributionTypeMixed";default:return}},T=e=>e?"contributeToOne":"contributeToAll",y=e=>{switch(e){case t.ChallengeRecurrenceType.Single:return"recurrenceSingle";case t.ChallengeRecurrenceType.Daily:return"recurrenceDaily";case t.ChallengeRecurrenceType.Weekly:return"recurrenceWeekly";case t.ChallengeRecurrenceType.Monthly:return"recurrenceMonthly";default:return}},m={[t.ChallengeHistoryLevelStatus.Completed]:"completed",[t.ChallengeHistoryLevelStatus.Expired]:"expired",[t.ChallengeHistoryLevelStatus.Forfeited]:"forfeited"},d=e=>t.formatDisplayDate(e,"DD/MM/YY HH:mm"),o=e=>e.Status===t.ChallengeHistoryLevelStatus.Completed,a=(e,n)=>(e.Levels??[]).some(r=>r.Status===n),p=e=>{const n=e.Levels??[];return n.length?a(e,t.ChallengeHistoryLevelStatus.Forfeited)?"rejected":a(e,t.ChallengeHistoryLevelStatus.Expired)?"failed":n.every(o)?"completed":null:null},b=e=>Object.values(e??{}).map(n=>n?.RewardDescription).filter(n=>!!n);exports.STATUS_KEYS=m;exports.formatLevelTime=d;exports.getAvailableTabs=s;exports.getContributeToKey=T;exports.getContributionTypeKey=g;exports.getEventRuleName=c;exports.getGamesTab=i;exports.getHistoryStatus=p;exports.getRecurrenceKey=y;exports.getRewardDescriptions=b;exports.isLevelCompleted=o;exports.sortEventRules=u;
|