@everymatrix/player-challenges 0.1.27 → 0.1.28
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-BmltraQE.cjs → ArrowLeftIcon-BE-UTNx8.cjs} +1 -1
- package/components/ArrowLeftIcon-BU8o_waD.cjs +1 -0
- package/components/{ArrowLeftIcon-BPiXQVj9.js → ArrowLeftIcon-DEPBZBRM.js} +1 -1
- package/components/ArrowLeftIcon-Dbj_5vYn.js +26 -0
- package/components/{Badge-DB6ry5SO.cjs → Badge-BHsDsF1a.cjs} +2 -2
- package/components/{Badge-pa7-6Tas.js → Badge-CVIWOeMs.js} +53 -51
- package/components/Badge-DDYnNLoY.js +125 -0
- package/components/Badge-ridfl0PP.cjs +6 -0
- package/components/Button-BuvNO4_4.js +67 -0
- package/components/{Button-BRSzo_fm.cjs → Button-Cj8wu5Md.cjs} +2 -2
- package/components/{Button-DZmi-cz9.js → Button-Dz4pnWKK.js} +17 -17
- package/components/Button-uyqixgQp.cjs +3 -0
- package/components/{ChallengeBanner-CKdF6zQ3.cjs → ChallengeBanner-Ba31Rq9f.cjs} +2 -2
- package/components/ChallengeBanner-CJq-rT4a.js +93 -0
- package/components/{ChallengeBanner-C1Mds6B2.js → ChallengeBanner-DXWb4w7k.js} +38 -38
- package/components/ChallengeBanner-DaStj94I.cjs +5 -0
- package/components/{ChallengeBreadcrumbs-C69Rh0k9.js → ChallengeBreadcrumbs-2v9qUqv3.js} +2 -2
- package/components/{ChallengeBreadcrumbs-DWiFNQCa.cjs → ChallengeBreadcrumbs-BEi8Lx4a.cjs} +1 -1
- package/components/ChallengeBreadcrumbs-CI8weFPB.js +41 -0
- package/components/ChallengeBreadcrumbs-ChatLS_r.cjs +1 -0
- package/components/{ChallengeCard-D9vr6N3d.cjs → ChallengeCard-BYU6ox2N.cjs} +1 -1
- package/components/{ChallengeCard-CHQhYp-x.js → ChallengeCard-CGvvBTal.js} +2 -2
- package/components/ChallengeCard-ChvTO3u-.js +422 -0
- package/components/ChallengeCard-H34qbqNf.cjs +6 -0
- package/components/ChallengeClaimCode-CNDcRf40.cjs +3 -0
- package/components/{ChallengeClaimCode-D0OIyaP4.cjs → ChallengeClaimCode-CtYh4Ozl.cjs} +1 -1
- package/components/{ChallengeClaimCode-nwSriHyb.js → ChallengeClaimCode-DPcQv49Q.js} +2 -2
- package/components/ChallengeClaimCode-QzWtGl3d.js +137 -0
- package/components/ChallengeDetails-BMhe6TJQ.js +445 -0
- package/components/{ChallengeDetails-L21GaGh6.js → ChallengeDetails-Bwmo2LpG.js} +7 -7
- package/components/{ChallengeDetails-BrsSxqF-.cjs → ChallengeDetails-Cki5CFXf.cjs} +1 -1
- package/components/ChallengeDetails-DRg9YZq-.cjs +5 -0
- package/components/ChallengeDetailsSkeleton-C3lUpHQI.js +139 -0
- package/components/{ChallengeDetailsSkeleton-CMxjj8kd.cjs → ChallengeDetailsSkeleton-CNSrDvGk.cjs} +2 -2
- package/components/ChallengeDetailsSkeleton-DvaG5Vtl.cjs +20 -0
- package/components/{ChallengeDetailsSkeleton-liZDUwqb.js → ChallengeDetailsSkeleton-qBJgVZ5l.js} +52 -52
- package/components/ChallengeEvents-AYaCm7Ce.js +34 -0
- package/components/{ChallengeEvents-CyoTadTD.cjs → ChallengeEvents-BQ4LQqmr.cjs} +1 -1
- package/components/ChallengeEvents-Ccs-2sVC.cjs +1 -0
- package/components/ChallengeEvents-oiDWNAEQ.js +35 -0
- package/components/ChallengeGames-CPR-dFtl.js +155 -0
- package/components/ChallengeGames-DrWOhsw3.js +156 -0
- package/components/ChallengeGames-M7zbeynl.cjs +14 -0
- package/components/ChallengeGames-k_-7nQQv.cjs +14 -0
- package/components/ChallengeHistory-Br6nJHSY.js +327 -0
- package/components/ChallengeHistory-CwTWuI_m.cjs +14 -0
- package/components/{ChallengeHistory-B7YS1BG8.cjs → ChallengeHistory-EhVWOyML.cjs} +1 -1
- package/components/{ChallengeHistory-s85EKTLX.js → ChallengeHistory-KLxNtWrW.js} +2 -2
- package/components/ChallengeLevels-B3mcA42d.cjs +8 -0
- package/components/ChallengeLevels-DEJpd5Ea.js +161 -0
- package/components/ChallengeLevels-DKyb_yzN.cjs +8 -0
- package/components/{ChallengeLevels-CcaAn1ym.js → ChallengeLevels-HZHAF0YW.js} +148 -146
- package/components/{ChallengeList-DGgEiIo3.cjs → ChallengeList-B27KTsS-.cjs} +4 -4
- package/components/ChallengeList-C252FlUp.js +299 -0
- package/components/{ChallengeList-BPHmqDRR.js → ChallengeList-D7VynPhn.js} +363 -355
- package/components/ChallengeList-DNS2FzUI.cjs +12 -0
- package/components/ChallengeProgress-CryVLDRB.cjs +1 -0
- package/components/ChallengeProgress-DdQh9kmS.js +150 -0
- package/components/{ChallengeProgress-CYhTxFai.js → ChallengeProgress-IiqaT5Em.js} +7 -7
- package/components/{ChallengeProgress-CoaiL93a.cjs → ChallengeProgress-x-i7Uk-N.cjs} +1 -1
- package/components/ChallengeProgressItem-BKmopRoi.js +468 -0
- package/components/{ChallengeProgressItem-CX9m5VWF.js → ChallengeProgressItem-BpLvYFMi.js} +225 -215
- package/components/{ChallengeProgressItem-DfCjG1l0.cjs → ChallengeProgressItem-DPqFHoj1.cjs} +2 -2
- package/components/ChallengeProgressItem-DXcUKs_2.cjs +69 -0
- package/components/ChallengeRules-Bo71x-dY.cjs +1 -0
- package/components/ChallengeRules-BsBkXth2.js +174 -0
- package/components/ChallengeRules-CwpK2Xkv.js +173 -0
- package/components/ChallengeRules-SITJ01zy.cjs +1 -0
- package/components/ChallengeSummary-Ced7xEuQ.js +254 -0
- package/components/ChallengeSummary-DUBk5FGa.cjs +1 -0
- package/components/ChallengeSummary-Dgk8SI6H.js +254 -0
- package/components/ChallengeSummary-zwkbvHT6.cjs +1 -0
- package/components/ChallengeTabContent-CkUU95je.cjs +1 -0
- package/components/ChallengeTabContent-DZOkUEj2.js +225 -0
- package/components/{ChallengeTabContent-BbELX5s1.js → ChallengeTabContent-D_RL7M0X.js} +329 -319
- package/components/ChallengeTabContent-muOLaUSq.cjs +16 -0
- package/components/{ChallengeTabPanel-dicZoDAf.cjs → ChallengeTabPanel-BVBxw6tU.cjs} +1 -1
- package/components/ChallengeTabPanel-BWmMHkmf.cjs +1 -0
- package/components/ChallengeTabPanel-DTPlF4YU.js +151 -0
- package/components/{ChallengeTabPanel-DdZ1eKhH.js → ChallengeTabPanel-Dg5mInmF.js} +5 -5
- package/components/ChallengeTabs-BPweSLWX.cjs +16 -0
- package/components/ChallengeTabs-By40DWWg.cjs +14 -0
- package/components/{ChallengeTabs-CzWyw0qJ.js → ChallengeTabs-CXIPdZOg.js} +3426 -3606
- package/components/ChallengeTabs-DRKSY-vH.js +8785 -0
- package/components/{CheckIcon-BMVX5t03.js → CheckIcon-BCx9LxqP.js} +1 -1
- package/components/{CheckIcon-D4xRlb-8.cjs → CheckIcon-CBLEKwsu.cjs} +1 -1
- package/components/CheckIcon-CEazWbva.cjs +1 -0
- package/components/CheckIcon-DpKfE1MH.js +26 -0
- package/components/{ChevronIcon-DtM-BwhX.js → ChevronIcon-B0XO_sUW.js} +1 -1
- package/components/{ChevronIcon-CAkwQWH1.cjs → ChevronIcon-B_AytxK9.cjs} +1 -1
- package/components/ChevronIcon-C-xOQWRM.cjs +1 -0
- package/components/ChevronIcon-eCnBnm2z.js +26 -0
- package/components/{ChipIcon-DKhd9Uuf.cjs → ChipIcon-B5wdN3J7.cjs} +1 -1
- package/components/ChipIcon-C-8el2zw.cjs +1 -0
- package/components/{ChipIcon-DaHbdbr0.js → ChipIcon-CU8BiGM5.js} +1 -1
- package/components/ChipIcon-CkGZN2GT.js +26 -0
- package/components/{ChipShineIcon-BePq6_s5.cjs → ChipShineIcon-B242dy7k.cjs} +1 -1
- package/components/ChipShineIcon-BX9N9Mpi.cjs +1 -0
- package/components/{ChipShineIcon-CCFIiJmI.js → ChipShineIcon-CT4MiKNr.js} +16 -16
- package/components/ChipShineIcon-DWo1fBoj.js +28 -0
- package/components/{ExistIcon-D_d1Lrm_.js → ExistIcon-19wwQ4Pq.js} +1 -1
- package/components/{ExistIcon-BTThOV0f.cjs → ExistIcon-BQc3oxU_.cjs} +1 -1
- package/components/ExistIcon-CjAJ5-z2.cjs +1 -0
- package/components/ExistIcon-DEnZyv5q.js +32 -0
- package/components/{GiftIcon-6zT0-B3C.cjs → GiftIcon-BWI2iEW8.cjs} +1 -1
- package/components/GiftIcon-Bj8xI_6c.cjs +1 -0
- package/components/{GiftIcon-DG8O5rSK.js → GiftIcon-BsPdSFbS.js} +14 -14
- package/components/GiftIcon-DXI72ybm.js +26 -0
- package/components/{LinkIcon-kWfeglnB.cjs → LinkIcon-BpW-XAWm.cjs} +1 -1
- package/components/{LinkIcon-Bi6G9eYP.js → LinkIcon-CaI0ly4O.js} +1 -1
- package/components/LinkIcon-PygPJuza.cjs +1 -0
- package/components/LinkIcon-msfckwlK.js +26 -0
- package/components/{LockIcon-TxxaMDyc.cjs → LockIcon-CteP5M0h.cjs} +1 -1
- package/components/{LockIcon-DDBVHVuK.js → LockIcon-Df1B037b.js} +1 -1
- package/components/LockIcon-ZP9fS6Md.js +26 -0
- package/components/LockIcon-r0QOgTzt.cjs +1 -0
- package/components/{Pagination-0fQD_Gig.cjs → Pagination-95wNrpqw.cjs} +2 -2
- package/components/Pagination-CacSm8FD.js +115 -0
- package/components/Pagination-DXS6FT0T.js +115 -0
- package/components/Pagination-M6DDVzpt.cjs +4 -0
- package/components/PlayerChallenges-B-2JO8O3.cjs +1 -0
- package/components/PlayerChallenges-CchBlHVQ.js +458 -0
- package/components/PlayerChallenges-Cql01JjT.cjs +1 -0
- package/components/{PlayerChallenges-DloMzh4n.js → PlayerChallenges-D745-4Zy.js} +108 -108
- package/components/{StarIcon-Xxm4har4.js → StarIcon-BEbIdRDu.js} +1 -1
- package/components/{StarIcon-DVy1r8sv.cjs → StarIcon-BRqeO8o_.cjs} +1 -1
- package/components/StarIcon-CGd046oW.cjs +1 -0
- package/components/StarIcon-DAgfGbDi.js +32 -0
- package/components/{TargetIcon-CohCxDfw.cjs → TargetIcon-BAPh5-Az.cjs} +1 -1
- package/components/TargetIcon-CAhk8AIu.cjs +1 -0
- package/components/{TargetIcon-Cbhbz76j.js → TargetIcon-CNt_y-Aw.js} +14 -14
- package/components/TargetIcon-Dj7y_no3.js +26 -0
- package/components/constants-BcSpy2nX.js +14 -0
- package/components/constants-DjpdyteO.cjs +1 -0
- package/components/gift-box-BcvZI7Gc.js +9 -0
- package/components/gift-box-CwFDqbwF.cjs +1 -0
- package/components/gift-box-gray-DcOvqkwI.js +9 -0
- package/components/gift-box-gray-DxbLMUOA.cjs +1 -0
- package/components/gift-shine-left-sl3yV_83.cjs +1 -0
- package/components/gift-shine-left-ylsmHXUO.js +9 -0
- package/components/gift-shine-right-97_YtLJV.cjs +1 -0
- package/components/gift-shine-right-Dv2rDIbi.js +9 -0
- package/components/helpers-C-XoHPgR.js +64 -0
- package/components/helpers-CmamnXjp.cjs +1 -0
- package/components/img-placeholder-BP1dw7Jq.js +9 -0
- package/components/img-placeholder-DhbIx3rU.cjs +1 -0
- package/components/translations-BSuAza-E.js +261 -0
- package/components/translations-FyoqR3gH.cjs +1 -0
- package/components/types-BS-x0LbR.cjs +1 -0
- package/components/types-C1hrKH4R.js +22 -0
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeEvents-2JSSIhGA.js +0 -34
- package/components/ChallengeGames-Cj5M4h2m.js +0 -154
- package/components/ChallengeGames-DEjLnYyQ.cjs +0 -14
- package/components/ChallengeLevels-_6E8leAW.cjs +0 -8
- package/components/ChallengeRules-B2t53W3a.cjs +0 -1
- package/components/ChallengeRules-BK88n9Xm.js +0 -161
- package/components/ChallengeSummary-4bkZrmTC.cjs +0 -1
- package/components/ChallengeSummary-CUXYNK2b.js +0 -248
- package/components/ChallengeTabContent-D-W8FtWj.cjs +0 -16
- package/components/ChallengeTabs-BmJ83kB1.cjs +0 -14
- package/components/Pagination-Cm8XoSbE.js +0 -113
- package/components/PlayerChallenges-BeHfyw8o.cjs +0 -1
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { L as
|
|
3
|
-
import { G as
|
|
4
|
-
import { T as
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
7
|
-
import { O as G, C as
|
|
1
|
+
import { c as pe, d as me, h as fe, p as E, M as B, O as re, v as _e, y as e, a8 as we, a2 as ne, t as H, a as L, b as xe, A as r, a6 as be, k, e as I, r as o, K as J, z as ie, s as K, a3 as oe, S as Oe, g as Ae, o as T, a9 as Ge, aa as De, n as v, m as We, x as F, i as ae, V as Me, X as $e, j as Ne, l as je, $ as He, a4 as he } from "./ChallengeTabs-CXIPdZOg.js";
|
|
2
|
+
import { L as Be } from "./LockIcon-Df1B037b.js";
|
|
3
|
+
import { G as Ke } from "./GiftIcon-DXI72ybm.js";
|
|
4
|
+
import { T as Ve } from "./TargetIcon-CNt_y-Aw.js";
|
|
5
|
+
import { C as Xe } from "./CheckIcon-DpKfE1MH.js";
|
|
6
|
+
import { C as qe } from "./ChevronIcon-B0XO_sUW.js";
|
|
7
|
+
import { O as G, C as Fe } from "./ChallengeProgressItem-BpLvYFMi.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
|
|
14
|
-
const
|
|
13
|
+
var Je = k("<div></div>");
|
|
14
|
+
const Qe = {
|
|
15
15
|
hash: "svelte-1gkzvh",
|
|
16
16
|
code: ".challenge-progress.svelte-1gkzvh {display:flex;align-items:flex-start;width:100%;}.challenge-progress.horizontal.svelte-1gkzvh {position:relative;flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden;flex:1;overflow-x:auto;padding-top:18px;padding-left:5px;}.challenge-progress.vertical.svelte-1gkzvh {flex-direction:column;width:fit-content;}.challenge-progress.synced.svelte-1gkzvh {display:contents;}"
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
if (i() !== G.horizontal || !e(
|
|
22
|
-
let t = -1,
|
|
23
|
-
return e(
|
|
24
|
-
const A =
|
|
25
|
-
A === "completed" && (t =
|
|
26
|
-
}), t >= 0 ? t :
|
|
18
|
+
function ye(P, n) {
|
|
19
|
+
me(n, !0), fe(P, Qe);
|
|
20
|
+
const c = E(n, "challenge", 7), i = E(n, "orientation", 23, () => G.vertical), D = E(n, "isExpired", 7, !1), u = E(n, "isPaused", 7, !1), p = E(n, "syncRows", 7, !1), O = E(n, "rowGap", 7, 0), W = E(n, "isAnonymous", 7), _ = r(() => c().LevelProgresses ?? []), V = r(() => c().Status), Q = r(() => !W() && Oe(c())), X = r(() => e(_).length > 0), w = r(() => i() === G.horizontal && e(_).length >= 5), x = r(() => {
|
|
21
|
+
if (i() !== G.horizontal || !e(_).length) return -1;
|
|
22
|
+
let t = -1, C = -1;
|
|
23
|
+
return e(_).forEach((d, S) => {
|
|
24
|
+
const A = be(d, e(V));
|
|
25
|
+
A === "completed" && (t = S), A === "current" && (C = S);
|
|
26
|
+
}), t >= 0 ? t : C >= 0 ? C : 0;
|
|
27
27
|
});
|
|
28
|
-
let b =
|
|
29
|
-
|
|
28
|
+
let b = B(void 0), z = B(re([]));
|
|
29
|
+
_e(() => {
|
|
30
30
|
if (!e(b) || e(x) < 0) return;
|
|
31
31
|
if (e(x) === 0) {
|
|
32
32
|
e(b).scrollLeft = 0;
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
const t = e(
|
|
35
|
+
const t = e(z)[e(x)];
|
|
36
36
|
t && (e(b).scrollLeft = t.offsetLeft);
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var q = {
|
|
39
39
|
get challenge() {
|
|
40
|
-
return
|
|
40
|
+
return c();
|
|
41
41
|
},
|
|
42
42
|
set challenge(t) {
|
|
43
|
-
|
|
43
|
+
c(t), I();
|
|
44
44
|
},
|
|
45
45
|
get orientation() {
|
|
46
46
|
return i();
|
|
47
47
|
},
|
|
48
48
|
set orientation(t = G.vertical) {
|
|
49
|
-
i(t),
|
|
49
|
+
i(t), I();
|
|
50
50
|
},
|
|
51
51
|
get isExpired() {
|
|
52
|
-
return
|
|
52
|
+
return D();
|
|
53
53
|
},
|
|
54
54
|
set isExpired(t = !1) {
|
|
55
|
-
|
|
55
|
+
D(t), I();
|
|
56
56
|
},
|
|
57
57
|
get isPaused() {
|
|
58
|
-
return
|
|
58
|
+
return u();
|
|
59
59
|
},
|
|
60
60
|
set isPaused(t = !1) {
|
|
61
|
-
|
|
61
|
+
u(t), I();
|
|
62
62
|
},
|
|
63
63
|
get syncRows() {
|
|
64
|
-
return
|
|
64
|
+
return p();
|
|
65
65
|
},
|
|
66
66
|
set syncRows(t = !1) {
|
|
67
|
-
|
|
67
|
+
p(t), I();
|
|
68
68
|
},
|
|
69
69
|
get rowGap() {
|
|
70
70
|
return O();
|
|
71
71
|
},
|
|
72
72
|
set rowGap(t = 0) {
|
|
73
|
-
O(t),
|
|
73
|
+
O(t), I();
|
|
74
74
|
},
|
|
75
75
|
get isAnonymous() {
|
|
76
|
-
return
|
|
76
|
+
return W();
|
|
77
77
|
},
|
|
78
78
|
set isAnonymous(t) {
|
|
79
|
-
|
|
79
|
+
W(t), I();
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
let
|
|
83
|
-
return
|
|
81
|
+
}, m = Je();
|
|
82
|
+
let M;
|
|
83
|
+
return we(m, 23, () => e(_), (t) => t.LevelId, (t, C, d) => {
|
|
84
84
|
{
|
|
85
|
-
let
|
|
86
|
-
|
|
85
|
+
let S = r(() => e(d) === e(_).length - 1), A = r(() => p() ? e(d) + 1 : void 0), U = r(() => e(X) && e(d) === 0);
|
|
86
|
+
Fe(t, {
|
|
87
87
|
get level() {
|
|
88
|
-
return e(
|
|
88
|
+
return e(C);
|
|
89
89
|
},
|
|
90
90
|
get nextLevel() {
|
|
91
|
-
return e(
|
|
91
|
+
return e(_)[e(d) + 1];
|
|
92
92
|
},
|
|
93
93
|
get challengeStatus() {
|
|
94
|
-
return e(
|
|
94
|
+
return e(V);
|
|
95
95
|
},
|
|
96
96
|
get isExpired() {
|
|
97
|
-
return
|
|
97
|
+
return D();
|
|
98
98
|
},
|
|
99
99
|
get isPaused() {
|
|
100
|
-
return
|
|
100
|
+
return u();
|
|
101
101
|
},
|
|
102
102
|
get isLast() {
|
|
103
|
-
return e(
|
|
103
|
+
return e(S);
|
|
104
104
|
},
|
|
105
105
|
get orientation() {
|
|
106
106
|
return i();
|
|
@@ -109,30 +109,30 @@ function Ie(L, n) {
|
|
|
109
109
|
return e(A);
|
|
110
110
|
},
|
|
111
111
|
get showStart() {
|
|
112
|
-
return e(
|
|
112
|
+
return e(U);
|
|
113
113
|
},
|
|
114
114
|
get optedIn() {
|
|
115
|
-
return e(
|
|
115
|
+
return e(Q);
|
|
116
116
|
},
|
|
117
117
|
get itemEl() {
|
|
118
|
-
return e(
|
|
118
|
+
return e(z)[e(d)];
|
|
119
119
|
},
|
|
120
120
|
set itemEl(l) {
|
|
121
|
-
e(
|
|
121
|
+
e(z)[e(d)] = l;
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
}),
|
|
126
|
-
|
|
125
|
+
}), o(m), ne(m, (t) => J(b, t), () => e(b)), H(() => {
|
|
126
|
+
M = ie(m, 1, "challenge-progress svelte-1gkzvh", null, M, {
|
|
127
127
|
horizontal: i() === G.horizontal,
|
|
128
128
|
vertical: i() === G.vertical,
|
|
129
|
-
dense: e(
|
|
130
|
-
synced:
|
|
131
|
-
}),
|
|
132
|
-
}),
|
|
129
|
+
dense: e(w),
|
|
130
|
+
synced: p()
|
|
131
|
+
}), K(m, "data-orientation", i()), K(m, "data-dense", e(w)), K(m, "data-synced", p()), oe(m, p() ? `--progress-row-gap: ${O()}px;` : void 0);
|
|
132
|
+
}), L(P, m), xe(q);
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
pe(
|
|
135
|
+
ye,
|
|
136
136
|
{
|
|
137
137
|
challenge: {},
|
|
138
138
|
orientation: {},
|
|
@@ -147,10 +147,10 @@ fe(
|
|
|
147
147
|
{ mode: "open" }
|
|
148
148
|
);
|
|
149
149
|
if (typeof window < "u") {
|
|
150
|
-
let
|
|
151
|
-
return function(...
|
|
150
|
+
let P = function(n) {
|
|
151
|
+
return function(...c) {
|
|
152
152
|
try {
|
|
153
|
-
return n.apply(this,
|
|
153
|
+
return n.apply(this, c);
|
|
154
154
|
} catch (i) {
|
|
155
155
|
if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i instanceof Error && i.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
156
156
|
return !1;
|
|
@@ -158,14 +158,14 @@ if (typeof window < "u") {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
|
-
customElements.define =
|
|
162
|
-
const
|
|
163
|
-
customElements.get("challenge-progress") || customElements.define("challenge-progress",
|
|
161
|
+
customElements.define = P(customElements.define), import("./ChallengeProgress-IiqaT5Em.js").then((n) => {
|
|
162
|
+
const c = n.default || n;
|
|
163
|
+
customElements.get("challenge-progress") || customElements.define("challenge-progress", c.element || c);
|
|
164
164
|
}).catch((n) => {
|
|
165
165
|
console.error("BOOT ERROR:", n);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
var
|
|
168
|
+
var Ue = k('<span class="challenge-details__level-item--icon-completed svelte-g28wmr"><!></span>'), Ye = k('<span class="challenge-details__level-item--icon svelte-g28wmr"><!></span>'), Ze = k('<li class="challenge-details__level--info-row svelte-g28wmr"><span class="challenge-details__level--info-icon svelte-g28wmr"><!></span> <span class="challenge-details__level--info-value svelte-g28wmr"> </span></li>'), et = k('<li class="challenge-details__level--info-row svelte-g28wmr"><span class="challenge-details__level--info-icon svelte-g28wmr"><!></span> <span class="challenge-details__level--info-value svelte-g28wmr"> </span></li>'), tt = k('<button type="button"><!></button>'), lt = k('<div><div class="challenge-details__level-item--header svelte-g28wmr"><span class="challenge-details__level-item--name svelte-g28wmr"> </span> <!></div> <ul class="challenge-details__level--info-list svelte-g28wmr"><!> <!></ul> <!></div>'), st = k('<div class="challenge-details__levels svelte-g28wmr"><!> <!></div>');
|
|
169
169
|
const at = {
|
|
170
170
|
hash: "svelte-g28wmr",
|
|
171
171
|
code: `.challenge-details__levels.svelte-g28wmr {display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:var(--challenge-levels-row-gap, 16px);align-items:stretch;.challenge-details__level--details-item:where(.svelte-g28wmr) {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border:1px solid var(--border-default, rgba(251, 251, 251, 0.15));box-sizing:border-box;flex-direction:column;padding:10px;border-radius:6px;gap:16px;display:flex;min-width:0;}.challenge-details__level--details-item.current:where(.svelte-g28wmr) {background:linear-gradient(
|
|
@@ -177,139 +177,141 @@ const at = {
|
|
|
177
177
|
@media (max-width: 767px) {.challenge-details__level--details-item:where(.svelte-g28wmr) {gap:4px;}
|
|
178
178
|
}}`
|
|
179
179
|
};
|
|
180
|
-
function rt(
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
e(
|
|
180
|
+
function rt(P, n) {
|
|
181
|
+
me(n, !0), fe(P, at);
|
|
182
|
+
const c = () => je(He, "$_", i), [i, D] = We(), u = E(n, "challengeItem", 7), p = E(n, "isPaused", 7, !1), O = r(() => u()?.LevelProgresses ?? []), W = r(() => u()?.CurrencySymbol ?? ""), _ = r(() => !De(u()?.Status)), V = r(() => u()?.Status === he.Expired), Q = r(() => p() || u()?.Status === he.Paused), X = 16;
|
|
183
|
+
let w = B(re([])), x = B(re([])), b = {}, z = {}, q = B(0);
|
|
184
|
+
const m = (l) => {
|
|
185
|
+
J(
|
|
186
|
+
w,
|
|
187
|
+
e(w).includes(l) ? e(w).filter((h) => h !== l) : [...e(w), l],
|
|
188
188
|
!0
|
|
189
189
|
);
|
|
190
|
-
},
|
|
190
|
+
}, M = (l) => !!l && l.scrollWidth > l.clientWidth, t = () => {
|
|
191
191
|
const l = [];
|
|
192
192
|
for (const { LevelId: f } of e(O)) {
|
|
193
|
-
if (e(
|
|
193
|
+
if (e(w).includes(f)) {
|
|
194
194
|
e(x).includes(f) && l.push(f);
|
|
195
195
|
continue;
|
|
196
196
|
}
|
|
197
|
-
(
|
|
197
|
+
(M(b[f]) || M(z[f])) && l.push(f);
|
|
198
198
|
}
|
|
199
|
-
(l.length !== e(x).length || l.some((f) => !e(x).includes(f))) &&
|
|
199
|
+
(l.length !== e(x).length || l.some((f) => !e(x).includes(f))) && J(x, l, !0);
|
|
200
200
|
};
|
|
201
|
-
|
|
202
|
-
e(
|
|
201
|
+
_e(() => {
|
|
202
|
+
e(q), t();
|
|
203
203
|
});
|
|
204
|
-
var
|
|
204
|
+
var C = {
|
|
205
205
|
get challengeItem() {
|
|
206
|
-
return
|
|
206
|
+
return u();
|
|
207
207
|
},
|
|
208
208
|
set challengeItem(l) {
|
|
209
|
-
|
|
209
|
+
u(l), I();
|
|
210
210
|
},
|
|
211
211
|
get isPaused() {
|
|
212
|
-
return
|
|
212
|
+
return p();
|
|
213
213
|
},
|
|
214
214
|
set isPaused(l = !1) {
|
|
215
|
-
|
|
215
|
+
p(l), I();
|
|
216
216
|
}
|
|
217
|
-
},
|
|
218
|
-
oe(
|
|
219
|
-
var
|
|
220
|
-
|
|
217
|
+
}, d = st();
|
|
218
|
+
oe(d, `--challenge-levels-row-gap: ${X}px;`);
|
|
219
|
+
var S = v(d);
|
|
220
|
+
ye(S, {
|
|
221
221
|
get challenge() {
|
|
222
|
-
return
|
|
222
|
+
return u();
|
|
223
223
|
},
|
|
224
224
|
orientation: "vertical",
|
|
225
225
|
get isExpired() {
|
|
226
|
-
return e(
|
|
226
|
+
return e(_);
|
|
227
227
|
},
|
|
228
228
|
get isPaused() {
|
|
229
|
-
return
|
|
229
|
+
return p();
|
|
230
230
|
},
|
|
231
231
|
syncRows: !0,
|
|
232
|
-
rowGap:
|
|
232
|
+
rowGap: X
|
|
233
233
|
});
|
|
234
|
-
var A =
|
|
235
|
-
|
|
236
|
-
const ce = r(() =>
|
|
237
|
-
var
|
|
234
|
+
var A = T(S, 2);
|
|
235
|
+
we(A, 19, () => e(O), (l) => l.LevelId, (l, h, f) => {
|
|
236
|
+
const ce = r(() => be(e(h), u().Status)), $ = r(() => e(Q) && e(ce) === "current" ? "locked" : e(ce)), de = r(() => Me(e(h))), ge = r(() => $e(e(h), e(W), c())), Y = r(() => e(w).includes(e(h).LevelId)), Ee = r(() => e(x).includes(e(h).LevelId));
|
|
237
|
+
var N = lt();
|
|
238
238
|
let ve;
|
|
239
|
-
var Z =
|
|
239
|
+
var Z = v(N), ee = v(Z), Ie = v(ee);
|
|
240
|
+
o(ee);
|
|
241
|
+
var Le = T(ee, 2);
|
|
240
242
|
{
|
|
241
|
-
var
|
|
242
|
-
var s =
|
|
243
|
-
|
|
244
|
-
},
|
|
245
|
-
var s =
|
|
246
|
-
|
|
243
|
+
var ke = (a) => {
|
|
244
|
+
var s = Ue(), g = v(s);
|
|
245
|
+
Xe(g, {}), o(s), L(a, s);
|
|
246
|
+
}, Pe = (a) => {
|
|
247
|
+
var s = Ye(), g = v(s);
|
|
248
|
+
Be(g, {}), o(s), L(a, s);
|
|
247
249
|
};
|
|
248
|
-
|
|
249
|
-
e($) === "completed" ? a(
|
|
250
|
+
F(Le, (a) => {
|
|
251
|
+
e($) === "completed" ? a(ke) : (e($) === "locked" || e($) === "locked-in-progress") && a(Pe, 1);
|
|
250
252
|
});
|
|
251
253
|
}
|
|
252
|
-
|
|
253
|
-
var
|
|
254
|
+
o(Z);
|
|
255
|
+
var te = T(Z, 2), ue = v(te);
|
|
254
256
|
{
|
|
255
|
-
var
|
|
256
|
-
var s =
|
|
257
|
-
|
|
258
|
-
var
|
|
259
|
-
ne(
|
|
257
|
+
var ze = (a) => {
|
|
258
|
+
var s = Ze(), g = v(s), j = v(g);
|
|
259
|
+
Ke(j, {}), o(g);
|
|
260
|
+
var y = T(g, 2), le = v(y, !0);
|
|
261
|
+
o(y), ne(y, (R, se) => b[se.LevelId] = R, (R) => b?.[R.LevelId], () => [e(h)]), o(s), H(() => ae(le, e(de))), L(a, s);
|
|
260
262
|
};
|
|
261
|
-
|
|
262
|
-
e(de) && a(
|
|
263
|
+
F(ue, (a) => {
|
|
264
|
+
e(de) && a(ze);
|
|
263
265
|
});
|
|
264
266
|
}
|
|
265
|
-
var
|
|
267
|
+
var Ce = T(ue, 2);
|
|
266
268
|
{
|
|
267
|
-
var
|
|
268
|
-
var s =
|
|
269
|
-
|
|
270
|
-
var
|
|
271
|
-
ne(
|
|
269
|
+
var Se = (a) => {
|
|
270
|
+
var s = et(), g = v(s), j = v(g);
|
|
271
|
+
Ve(j, {}), o(g);
|
|
272
|
+
var y = T(g, 2), le = v(y, !0);
|
|
273
|
+
o(y), ne(y, (R, se) => z[se.LevelId] = R, (R) => z?.[R.LevelId], () => [e(h)]), o(s), H(() => ae(le, e(ge))), L(a, s);
|
|
272
274
|
};
|
|
273
|
-
|
|
274
|
-
e(ge) && a(
|
|
275
|
+
F(Ce, (a) => {
|
|
276
|
+
e(ge) && a(Se);
|
|
275
277
|
});
|
|
276
278
|
}
|
|
277
|
-
|
|
278
|
-
var
|
|
279
|
+
o(te);
|
|
280
|
+
var Re = T(te, 2);
|
|
279
281
|
{
|
|
280
|
-
var
|
|
282
|
+
var Te = (a) => {
|
|
281
283
|
var s = tt();
|
|
282
|
-
let
|
|
283
|
-
var j =
|
|
284
|
-
|
|
285
|
-
(
|
|
286
|
-
|
|
284
|
+
let g;
|
|
285
|
+
var j = v(s);
|
|
286
|
+
qe(j, { size: 16 }), o(s), H(
|
|
287
|
+
(y) => {
|
|
288
|
+
g = ie(s, 1, "challenge-details__level--toggle svelte-g28wmr", null, g, { expanded: e(Y) }), K(s, "aria-expanded", e(Y)), K(s, "aria-label", y);
|
|
287
289
|
},
|
|
288
|
-
[() =>
|
|
289
|
-
),
|
|
290
|
+
[() => c()("level")]
|
|
291
|
+
), Ne("click", s, () => m(e(h).LevelId)), L(a, s);
|
|
290
292
|
};
|
|
291
|
-
|
|
292
|
-
e(
|
|
293
|
+
F(Re, (a) => {
|
|
294
|
+
e(Ee) && a(Te);
|
|
293
295
|
});
|
|
294
296
|
}
|
|
295
|
-
|
|
297
|
+
o(N), H(
|
|
296
298
|
(a) => {
|
|
297
|
-
ve = ie(
|
|
299
|
+
ve = ie(N, 1, "challenge-details__level--details-item svelte-g28wmr", null, ve, {
|
|
298
300
|
current: e($) === "current",
|
|
299
301
|
completed: e($) === "completed",
|
|
300
|
-
expanded: e(
|
|
301
|
-
expired: e(
|
|
302
|
-
}), oe(
|
|
302
|
+
expanded: e(Y),
|
|
303
|
+
expired: e(V)
|
|
304
|
+
}), oe(N, `grid-row: ${e(f) + 1}; grid-column: 2;`), ae(Ie, `${a ?? ""} ${e(h).OrderNumber + 1}`);
|
|
303
305
|
},
|
|
304
|
-
[() =>
|
|
305
|
-
),
|
|
306
|
-
}),
|
|
307
|
-
var
|
|
308
|
-
return
|
|
306
|
+
[() => c()("level")]
|
|
307
|
+
), L(l, N);
|
|
308
|
+
}), o(d), Ge(d, "clientWidth", (l) => J(q, l)), L(P, d);
|
|
309
|
+
var U = xe(C);
|
|
310
|
+
return D(), U;
|
|
309
311
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
+
Ae(["click"]);
|
|
313
|
+
pe(rt, { challengeItem: {}, isPaused: {} }, [], [], { mode: "open" });
|
|
312
314
|
export {
|
|
313
315
|
rt as C,
|
|
314
|
-
|
|
316
|
+
ye as a
|
|
315
317
|
};
|