@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,17 +1,17 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { C as jt } from "./ChevronIcon-
|
|
3
|
-
import { G as Ht } from "./GiftIcon-
|
|
4
|
-
import { L as
|
|
5
|
-
import { P as
|
|
6
|
-
import { b as
|
|
7
|
-
import { f as
|
|
1
|
+
import { g as bt, c as xt, d as zt, h as wt, p as b, w as kt, x as It, au as St, aB as Mt, y as ge, G as Tt, R as A, T as je, B as e, A as N, t as x, a as i, b as Ct, E as z, aL as Lt, P as n, aM as At, k as v, e as w, m as Nt, n as l, r as a, D, F as d, i as u, K as _e, o, l as Pt, $ as Et, a6 as He, ad as ye, s as pe, j as Ut, a7 as Rt } from "./ChallengeTabs-_vjQrF0A.js";
|
|
2
|
+
import { C as jt } from "./ChevronIcon-D-mzPrXJ.js";
|
|
3
|
+
import { G as Ht } from "./GiftIcon-Mnb_Nxbd.js";
|
|
4
|
+
import { L as Dt } from "./LinkIcon-DiVYY9ci.js";
|
|
5
|
+
import { P as Ot } from "./Pagination-DQklVx0w.js";
|
|
6
|
+
import { b as Gt } from "./translations-BSuAza-E.js";
|
|
7
|
+
import { f as Bt, h as Ft, i as Kt, j as qt, k as Jt } from "./helpers-B2y_AV0y.js";
|
|
8
8
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
9
9
|
}, globalThis.customElements = { define() {
|
|
10
10
|
}, get() {
|
|
11
11
|
}, whenDefined() {
|
|
12
12
|
} });
|
|
13
|
-
var Qt =
|
|
14
|
-
const
|
|
13
|
+
var Qt = v('<p class="challenge-history__anonymous svelte-1uuyh3z"> </p>'), Vt = v('<div class="challenge-history__skeleton svelte-1uuyh3z"></div>'), Wt = v('<p class="challenge-history__empty svelte-1uuyh3z"> </p>'), Xt = v("<span> </span>"), Yt = v('<div><span class="challenge-history__level-item--icon svelte-1uuyh3z"><!></span> <span class="challenge-history__level--info-value svelte-1uuyh3z"> </span></div>'), Zt = v('<tr class="svelte-1uuyh3z"><td class="svelte-1uuyh3z"><div class="challenge-history__level-item svelte-1uuyh3z"><span class="challenge-history__level-item--name svelte-1uuyh3z"> </span> <!></div></td><td class="svelte-1uuyh3z"><span> </span></td><td class="challenge-history__level-time svelte-1uuyh3z"> </td></tr>'), $t = v('<div class="challenge-history__details-expanded svelte-1uuyh3z"><a target="_blank" rel="noopener noreferrer" class="challenge-history__terms--link svelte-1uuyh3z"> <span class="challenge-history__terms--icon svelte-1uuyh3z" aria-hidden="true"><!></span></a> <div class="challenge-history__level-table-wrapper svelte-1uuyh3z"><table class="challenge-history__level-table svelte-1uuyh3z"><thead class="challenge-history__level-table-header svelte-1uuyh3z"><tr class="svelte-1uuyh3z"><th class="svelte-1uuyh3z"> </th><th class="svelte-1uuyh3z"> </th><th class="svelte-1uuyh3z"> </th></tr></thead><tbody class="challenge-history__level-table-body svelte-1uuyh3z"></tbody></table></div></div>'), ea = v('<div class="challenge-history__row svelte-1uuyh3z"><button type="button"><span class="challenge-history__item--name svelte-1uuyh3z"> </span> <span class="challenge-history__item--action svelte-1uuyh3z"><!> <span><!></span></span></button> <!></div>'), ta = v('<div class="challenge-history__load-more-sentinel svelte-1uuyh3z" aria-hidden="true"></div>'), aa = v("<!> <!> <!>", 1), la = v("<div><!></div>");
|
|
14
|
+
const sa = {
|
|
15
15
|
hash: "svelte-1uuyh3z",
|
|
16
16
|
code: `.challenge-history.svelte-1uuyh3z {padding:10px 0;display:flex;flex-direction:column;gap:12px;}.challenge-history__load-more-sentinel.svelte-1uuyh3z {width:100%;height:1px;}.challenge-history__row.svelte-1uuyh3z {display:flex;flex-direction:column;}.challenge-history__skeleton.svelte-1uuyh3z {height:60px;border-radius:12px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
17
17
|
animation: svelte-1uuyh3z-challenge-history-pulse 1.2s ease-in-out infinite;}
|
|
@@ -27,287 +27,279 @@ const la = {
|
|
|
27
27
|
.challenge-history__details-expanded.svelte-1uuyh3z .challenge-history__level-table-body:where(.svelte-1uuyh3z) td:where(.svelte-1uuyh3z) {padding-left:8px;padding-right:8px;}
|
|
28
28
|
}`
|
|
29
29
|
};
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
J() &&
|
|
35
|
-
}),
|
|
36
|
-
Tt(
|
|
30
|
+
function ra(fe, c) {
|
|
31
|
+
zt(c, !0), wt(fe, sa);
|
|
32
|
+
const g = () => Pt(Et, "$_", De), [De, Oe] = Nt(), O = b(c, "userSession", 7), k = b(c, "locale", 7, "en"), J = b(c, "translationUrl", 7), Q = b(c, "endpoint", 7), V = b(c, "domainId", 7), G = b(c, "userId", 7), P = b(c, "isMobile", 7, !0), le = b(c, "limit", 7);
|
|
33
|
+
kt(() => It(k(), Gt)), St(() => {
|
|
34
|
+
J() && Mt(J(), "challenge-history");
|
|
35
|
+
}), ge(() => {
|
|
36
|
+
Tt(k() || "en");
|
|
37
37
|
});
|
|
38
|
-
let
|
|
39
|
-
const U =
|
|
40
|
-
n(
|
|
38
|
+
let _ = A(je([])), I = A(0), W = A(0), B = A(!1), se = A(!1), E = A(je([]));
|
|
39
|
+
const U = z(() => Number(le()) || Lt(P())), re = z(() => !O() && !G()), Ge = [0, 1, 2, 3], ne = async (t, r = !1) => {
|
|
40
|
+
n(B, !0), n(se, r, !0), r || n(W, t, !0);
|
|
41
41
|
try {
|
|
42
|
-
const
|
|
42
|
+
const y = await At({
|
|
43
43
|
endpoint: Q(),
|
|
44
|
-
domainId:
|
|
45
|
-
userId:
|
|
46
|
-
sessionId:
|
|
47
|
-
locale:
|
|
44
|
+
domainId: V(),
|
|
45
|
+
userId: G(),
|
|
46
|
+
sessionId: O(),
|
|
47
|
+
locale: k(),
|
|
48
48
|
pageNumber: Math.floor(t / e(U)),
|
|
49
49
|
pageSize: e(U),
|
|
50
50
|
isFutureAvailable: !0
|
|
51
|
-
}),
|
|
52
|
-
n(
|
|
53
|
-
} catch (
|
|
54
|
-
console.error("challenge-history: failed to load history",
|
|
51
|
+
}), S = y.Data ?? [];
|
|
52
|
+
n(_, r ? [...e(_), ...S] : S, !0), n(I, y.TotalItem ?? e(_).length, !0), n(W, t, !0), r && !S.length && n(I, e(_).length, !0), r || n(E, [], !0);
|
|
53
|
+
} catch (y) {
|
|
54
|
+
console.error("challenge-history: failed to load history", y), r ? n(I, e(_).length, !0) : (n(_, [], !0), n(I, 0));
|
|
55
55
|
} finally {
|
|
56
|
-
n(
|
|
56
|
+
n(B, !1), n(se, !1);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
ge(() => {
|
|
60
60
|
!{
|
|
61
61
|
endpoint: Q(),
|
|
62
|
-
domainId:
|
|
63
|
-
userId:
|
|
64
|
-
userSession:
|
|
65
|
-
locale:
|
|
62
|
+
domainId: V(),
|
|
63
|
+
userId: G(),
|
|
64
|
+
userSession: O(),
|
|
65
|
+
locale: k(),
|
|
66
66
|
pageSize: e(U)
|
|
67
|
-
}.endpoint || e(
|
|
67
|
+
}.endpoint || e(re) || ne(0);
|
|
68
68
|
});
|
|
69
|
-
const Be =
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
if (!
|
|
69
|
+
const Be = z(() => e(B) && !e(se)), me = z(() => e(_).length < e(I));
|
|
70
|
+
let X = A(void 0);
|
|
71
|
+
ge(() => {
|
|
72
|
+
if (!P() || !e(me) || e(B) || !e(X))
|
|
73
73
|
return;
|
|
74
74
|
const t = new IntersectionObserver(
|
|
75
|
-
([
|
|
76
|
-
|
|
75
|
+
([r]) => {
|
|
76
|
+
r.isIntersecting && !e(B) && ne(e(W) + e(U), !0);
|
|
77
77
|
},
|
|
78
78
|
{ rootMargin: "200px" }
|
|
79
79
|
);
|
|
80
|
-
return t.observe(e(
|
|
80
|
+
return t.observe(e(X)), () => t.disconnect();
|
|
81
81
|
});
|
|
82
|
-
const
|
|
82
|
+
const Fe = (t) => {
|
|
83
83
|
n(
|
|
84
|
-
|
|
85
|
-
e(
|
|
84
|
+
E,
|
|
85
|
+
e(E).includes(t) ? e(E).filter((r) => r !== t) : [...e(E), t],
|
|
86
86
|
!0
|
|
87
87
|
);
|
|
88
88
|
};
|
|
89
|
-
var
|
|
89
|
+
var Ke = {
|
|
90
90
|
get userSession() {
|
|
91
|
-
return
|
|
91
|
+
return O();
|
|
92
92
|
},
|
|
93
93
|
set userSession(t) {
|
|
94
|
-
|
|
94
|
+
O(t), w();
|
|
95
95
|
},
|
|
96
96
|
get locale() {
|
|
97
|
-
return
|
|
97
|
+
return k();
|
|
98
98
|
},
|
|
99
99
|
set locale(t = "en") {
|
|
100
|
-
|
|
100
|
+
k(t), w();
|
|
101
101
|
},
|
|
102
102
|
get translationUrl() {
|
|
103
103
|
return J();
|
|
104
104
|
},
|
|
105
105
|
set translationUrl(t) {
|
|
106
|
-
J(t),
|
|
106
|
+
J(t), w();
|
|
107
107
|
},
|
|
108
108
|
get endpoint() {
|
|
109
109
|
return Q();
|
|
110
110
|
},
|
|
111
111
|
set endpoint(t) {
|
|
112
|
-
Q(t),
|
|
112
|
+
Q(t), w();
|
|
113
113
|
},
|
|
114
114
|
get domainId() {
|
|
115
|
-
return
|
|
115
|
+
return V();
|
|
116
116
|
},
|
|
117
117
|
set domainId(t) {
|
|
118
|
-
|
|
118
|
+
V(t), w();
|
|
119
119
|
},
|
|
120
120
|
get userId() {
|
|
121
|
-
return
|
|
121
|
+
return G();
|
|
122
122
|
},
|
|
123
123
|
set userId(t) {
|
|
124
|
-
|
|
124
|
+
G(t), w();
|
|
125
125
|
},
|
|
126
126
|
get isMobile() {
|
|
127
|
-
return
|
|
127
|
+
return P();
|
|
128
128
|
},
|
|
129
129
|
set isMobile(t = !0) {
|
|
130
|
-
|
|
130
|
+
P(t), w();
|
|
131
131
|
},
|
|
132
132
|
get limit() {
|
|
133
|
-
return
|
|
133
|
+
return le();
|
|
134
134
|
},
|
|
135
135
|
set limit(t) {
|
|
136
|
-
|
|
136
|
+
le(t), w();
|
|
137
137
|
}
|
|
138
|
-
},
|
|
139
|
-
let
|
|
140
|
-
var
|
|
138
|
+
}, Y = la();
|
|
139
|
+
let be;
|
|
140
|
+
var qe = l(Y);
|
|
141
141
|
{
|
|
142
|
-
var
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
var
|
|
142
|
+
var Je = (t) => {
|
|
143
|
+
var r = Qt(), y = d(r, !0);
|
|
144
|
+
x((S) => u(y, S), [() => g()("historyAnonymous")]), i(t, r);
|
|
145
|
+
}, Qe = (t) => {
|
|
146
|
+
var r = aa(), y = _e(r);
|
|
147
147
|
{
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
var
|
|
152
|
-
i(
|
|
153
|
-
}), i(
|
|
154
|
-
},
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
var
|
|
162
|
-
let
|
|
163
|
-
var
|
|
164
|
-
a(oe);
|
|
165
|
-
var Te = o(oe, 2), Me = l(Te);
|
|
148
|
+
var S = (s) => {
|
|
149
|
+
var h = He(), M = _e(h);
|
|
150
|
+
ye(M, 16, () => Ge, (p) => p, (p, T) => {
|
|
151
|
+
var R = Vt();
|
|
152
|
+
i(p, R);
|
|
153
|
+
}), i(s, h);
|
|
154
|
+
}, We = (s) => {
|
|
155
|
+
var h = Wt(), M = d(h, !0);
|
|
156
|
+
x((p) => u(M, p), [() => g()("historyEmpty")]), i(s, h);
|
|
157
|
+
}, Xe = (s) => {
|
|
158
|
+
var h = He(), M = _e(h);
|
|
159
|
+
ye(M, 17, () => e(_), (p) => p.ProgressId, (p, T) => {
|
|
160
|
+
const R = z(() => e(E).includes(e(T).ProgressId)), Z = z(() => Bt(e(T)));
|
|
161
|
+
var oe = ea(), j = l(oe);
|
|
162
|
+
let ze;
|
|
163
|
+
var we = l(j), et = d(we, !0), ke = o(we, 2), Ie = l(ke);
|
|
166
164
|
{
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
let
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
(
|
|
173
|
-
|
|
165
|
+
var tt = (C) => {
|
|
166
|
+
var m = Xt();
|
|
167
|
+
let L;
|
|
168
|
+
var $ = d(m, !0);
|
|
169
|
+
x(
|
|
170
|
+
(ee) => {
|
|
171
|
+
L = D(m, 1, "challenge-history__item--status svelte-1uuyh3z", null, L, { failed: e(Z) !== "completed" }), pe(m, "data-status", e(Z)), u($, ee);
|
|
174
172
|
},
|
|
175
|
-
[() =>
|
|
176
|
-
), i(
|
|
173
|
+
[() => g()(e(Z))]
|
|
174
|
+
), i(C, m);
|
|
177
175
|
};
|
|
178
|
-
|
|
179
|
-
e(
|
|
176
|
+
N(Ie, (C) => {
|
|
177
|
+
e(Z) !== null && C(tt);
|
|
180
178
|
});
|
|
181
179
|
}
|
|
182
|
-
var ie = o(
|
|
183
|
-
let
|
|
184
|
-
var
|
|
185
|
-
jt(
|
|
186
|
-
var
|
|
180
|
+
var ie = o(Ie, 2);
|
|
181
|
+
let Se;
|
|
182
|
+
var at = l(ie);
|
|
183
|
+
jt(at, { size: 15 }), a(ie), a(ke), a(j);
|
|
184
|
+
var lt = o(j, 2);
|
|
187
185
|
{
|
|
188
|
-
var
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
var
|
|
192
|
-
a(
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var Ue = o(ue);
|
|
198
|
-
be(Ue, 21, () => e(T).Levels ?? [], (F) => F.OrderNumber, (F, f) => {
|
|
199
|
-
const G = x(() => Jt(e(f))), ee = x(() => Bt(e(f).Rewards));
|
|
200
|
-
var ve = Xt(), ce = l(ve), Pe = l(ce), ge = l(Pe), dt = l(ge);
|
|
201
|
-
a(ge);
|
|
202
|
-
var vt = o(ge, 2);
|
|
186
|
+
var st = (C) => {
|
|
187
|
+
var m = $t(), L = l(m), $ = l(L), ee = o($), rt = l(ee);
|
|
188
|
+
Dt(rt, {}), a(ee), a(L);
|
|
189
|
+
var Me = o(L, 2), Te = l(Me), ue = l(Te), Ce = l(ue), Le = l(Ce), nt = d(Le, !0), Ae = o(Le), ot = d(Ae, !0), it = o(Ae), ut = d(it, !0);
|
|
190
|
+
a(Ce), a(ue);
|
|
191
|
+
var Ne = o(ue);
|
|
192
|
+
ye(Ne, 21, () => e(T).Levels ?? [], (F) => F.OrderNumber, (F, f) => {
|
|
193
|
+
const K = z(() => Jt(e(f))), te = z(() => qt(e(f).Rewards));
|
|
194
|
+
var he = Zt(), de = l(he), Pe = l(de), Ee = l(Pe), ht = d(Ee), dt = o(Ee, 2);
|
|
203
195
|
{
|
|
204
|
-
var
|
|
205
|
-
var H =
|
|
206
|
-
let
|
|
207
|
-
var
|
|
208
|
-
Ht(yt, {}), a(
|
|
209
|
-
var
|
|
210
|
-
a(
|
|
211
|
-
(
|
|
212
|
-
|
|
196
|
+
var vt = (q) => {
|
|
197
|
+
var H = Yt();
|
|
198
|
+
let ae;
|
|
199
|
+
var ce = l(H), yt = l(ce);
|
|
200
|
+
Ht(yt, {}), a(ce);
|
|
201
|
+
var pt = o(ce, 2), ft = d(pt, !0);
|
|
202
|
+
a(H), x(
|
|
203
|
+
(mt) => {
|
|
204
|
+
ae = D(H, 1, "challenge-history__level-reward svelte-1uuyh3z", null, ae, { failed: !e(K) }), u(ft, mt);
|
|
213
205
|
},
|
|
214
206
|
[
|
|
215
|
-
() => e(f).CustomRewardMessage || e(
|
|
207
|
+
() => e(f).CustomRewardMessage || e(te).join(" + ")
|
|
216
208
|
]
|
|
217
|
-
), i(
|
|
209
|
+
), i(q, H);
|
|
218
210
|
};
|
|
219
|
-
|
|
220
|
-
(e(f).CustomRewardMessage || e(
|
|
211
|
+
N(dt, (q) => {
|
|
212
|
+
(e(f).CustomRewardMessage || e(te).length) && q(vt);
|
|
221
213
|
});
|
|
222
214
|
}
|
|
223
|
-
a(Pe), a(
|
|
224
|
-
var
|
|
225
|
-
let
|
|
226
|
-
var
|
|
227
|
-
a(
|
|
228
|
-
var
|
|
229
|
-
a(
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
${e(f).OrderNumber + 1}`),
|
|
215
|
+
a(Pe), a(de);
|
|
216
|
+
var ve = o(de), Ue = l(ve);
|
|
217
|
+
let Re;
|
|
218
|
+
var ct = d(Ue, !0);
|
|
219
|
+
a(ve);
|
|
220
|
+
var gt = o(ve), _t = d(gt, !0);
|
|
221
|
+
a(he), x(
|
|
222
|
+
(q, H, ae) => {
|
|
223
|
+
u(ht, `${q ?? ""}
|
|
224
|
+
${e(f).OrderNumber + 1}`), Re = D(Ue, 1, "challenge-history__level-status svelte-1uuyh3z", null, Re, { failed: !e(K), completed: e(K) }), u(ct, H), u(_t, ae);
|
|
233
225
|
},
|
|
234
226
|
[
|
|
235
|
-
() =>
|
|
236
|
-
() =>
|
|
237
|
-
() =>
|
|
227
|
+
() => g()("level"),
|
|
228
|
+
() => Ft(e(f).Status, g()),
|
|
229
|
+
() => Kt(e(f).Time)
|
|
238
230
|
]
|
|
239
|
-
), i(F,
|
|
240
|
-
}), a(
|
|
241
|
-
(F, f,
|
|
242
|
-
|
|
231
|
+
), i(F, he);
|
|
232
|
+
}), a(Ne), a(Te), a(Me), a(m), x(
|
|
233
|
+
(F, f, K, te) => {
|
|
234
|
+
pe(L, "href", e(T).TermsAndConditionsUrl), u($, `${F ?? ""} `), u(nt, f), u(ot, K), u(ut, te);
|
|
243
235
|
},
|
|
244
236
|
[
|
|
245
|
-
() =>
|
|
246
|
-
() =>
|
|
247
|
-
() =>
|
|
248
|
-
() =>
|
|
237
|
+
() => g()("termsAndConditions"),
|
|
238
|
+
() => g()("level"),
|
|
239
|
+
() => g()("status"),
|
|
240
|
+
() => g()("time")
|
|
249
241
|
]
|
|
250
|
-
), i(
|
|
242
|
+
), i(C, m);
|
|
251
243
|
};
|
|
252
|
-
|
|
253
|
-
e(
|
|
244
|
+
N(lt, (C) => {
|
|
245
|
+
e(R) && C(st);
|
|
254
246
|
});
|
|
255
247
|
}
|
|
256
|
-
a(
|
|
257
|
-
|
|
258
|
-
}), Ut("click", j, () =>
|
|
259
|
-
}), i(
|
|
248
|
+
a(oe), x(() => {
|
|
249
|
+
ze = D(j, 1, "challenge-history__item svelte-1uuyh3z", null, ze, { expanded: e(R) }), pe(j, "aria-expanded", e(R)), u(et, e(T).Name), Se = D(ie, 1, "challenge-history__view-details-icon svelte-1uuyh3z", null, Se, { expanded: e(R) });
|
|
250
|
+
}), Ut("click", j, () => Fe(e(T).ProgressId)), i(p, oe);
|
|
251
|
+
}), i(s, h);
|
|
260
252
|
};
|
|
261
|
-
|
|
262
|
-
e(Be) ?
|
|
253
|
+
N(y, (s) => {
|
|
254
|
+
e(Be) ? s(S) : e(_).length ? s(Xe, -1) : s(We, 1);
|
|
263
255
|
});
|
|
264
256
|
}
|
|
265
|
-
var
|
|
257
|
+
var xe = o(y, 2);
|
|
266
258
|
{
|
|
267
|
-
var
|
|
268
|
-
|
|
259
|
+
var Ye = (s) => {
|
|
260
|
+
Ot(s, {
|
|
269
261
|
get offset() {
|
|
270
|
-
return e(
|
|
262
|
+
return e(W);
|
|
271
263
|
},
|
|
272
264
|
get limit() {
|
|
273
265
|
return e(U);
|
|
274
266
|
},
|
|
275
267
|
get total() {
|
|
276
|
-
return e(
|
|
268
|
+
return e(I);
|
|
277
269
|
},
|
|
278
270
|
get locale() {
|
|
279
|
-
return
|
|
271
|
+
return k();
|
|
280
272
|
},
|
|
281
|
-
onPageChange:
|
|
273
|
+
onPageChange: ne
|
|
282
274
|
});
|
|
283
275
|
};
|
|
284
|
-
|
|
285
|
-
!
|
|
276
|
+
N(xe, (s) => {
|
|
277
|
+
!P() && e(I) > e(U) && s(Ye);
|
|
286
278
|
});
|
|
287
279
|
}
|
|
288
|
-
var
|
|
280
|
+
var Ze = o(xe, 2);
|
|
289
281
|
{
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
|
|
282
|
+
var $e = (s) => {
|
|
283
|
+
var h = ta();
|
|
284
|
+
Rt(h, (M) => n(X, M), () => e(X)), i(s, h);
|
|
293
285
|
};
|
|
294
|
-
|
|
295
|
-
|
|
286
|
+
N(Ze, (s) => {
|
|
287
|
+
P() && e(me) && s($e);
|
|
296
288
|
});
|
|
297
289
|
}
|
|
298
|
-
i(t,
|
|
290
|
+
i(t, r);
|
|
299
291
|
};
|
|
300
|
-
|
|
301
|
-
e(
|
|
292
|
+
N(qe, (t) => {
|
|
293
|
+
e(re) ? t(Je) : t(Qe, -1);
|
|
302
294
|
});
|
|
303
295
|
}
|
|
304
|
-
a(
|
|
305
|
-
var
|
|
306
|
-
return
|
|
296
|
+
a(Y), x(() => be = D(Y, 1, "challenge-history svelte-1uuyh3z", null, be, { anonymous: e(re) })), i(fe, Y);
|
|
297
|
+
var Ve = Ct(Ke);
|
|
298
|
+
return Oe(), Ve;
|
|
307
299
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
300
|
+
bt(["click"]);
|
|
301
|
+
xt(
|
|
302
|
+
ra,
|
|
311
303
|
{
|
|
312
304
|
userSession: {},
|
|
313
305
|
locale: {},
|
|
@@ -323,5 +315,5 @@ bt(
|
|
|
323
315
|
{ mode: "open" }
|
|
324
316
|
);
|
|
325
317
|
export {
|
|
326
|
-
|
|
318
|
+
ra as C
|
|
327
319
|
};
|