@everymatrix/player-challenges 0.1.13 → 0.1.14
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-9z9pTews.cjs +1 -0
- package/components/ArrowLeftIcon-DSn8hPkF.js +26 -0
- package/components/Badge-B-XJxDGU.cjs +7 -0
- package/components/{Badge-C2wt4e90.js → Badge-DvLEsRGI.js} +51 -46
- package/components/{Button--XqKsOFn.js → Button-D84vGE_N.js} +29 -24
- package/components/Button-LvbCkeeB.cjs +3 -0
- package/components/ChallengeBanner-DzjEQdUp.js +57 -0
- package/components/ChallengeBanner-_sqDm-xs.cjs +4 -0
- package/components/ChallengeBreadcrumbs-CZxhI0_L.cjs +1 -0
- package/components/ChallengeBreadcrumbs-DDTCsSWY.js +43 -0
- package/components/{ChallengeCard-B6CuOUjR.js → ChallengeCard-BhOpoROp.js} +58 -52
- package/components/ChallengeCard-DhT0EyKT.cjs +1 -0
- package/components/ChallengeClaimCode-D4y9Ilgv.cjs +1 -0
- package/components/{ChallengeClaimCode-CHjR7wvj.js → ChallengeClaimCode-DtN7_eaj.js} +22 -17
- package/components/ChallengeDetails-C6knDcqb.cjs +1 -0
- package/components/ChallengeDetails-De--UkDS.js +117 -0
- package/components/ChallengeEvents-5SdhGalP.cjs +1 -0
- package/components/ChallengeEvents-DSwYrQ1K.js +34 -0
- package/components/ChallengeGames-CWIYOuei.js +135 -0
- package/components/ChallengeGames-Rqb4EmEd.cjs +11 -0
- package/components/{ChallengeHistory-BGGX8pSa.js → ChallengeHistory-CoTCstRV.js} +32 -26
- package/components/ChallengeHistory-DO7ysttD.cjs +1 -0
- package/components/ChallengeLevels-D0k6h-sn.cjs +8 -0
- package/components/ChallengeLevels-DE-zA5YQ.js +306 -0
- package/components/{ChallengeList-CVeq75Nw.js → ChallengeList-BCtLU5A3.js} +519 -504
- package/components/ChallengeList-k2WHGOdC.cjs +20 -0
- package/components/ChallengeProgress-BJdwMjVx.cjs +1 -0
- package/components/ChallengeProgress-Bz00FfdW.js +96 -0
- package/components/ChallengeProgressItem-BijvIdWR.cjs +68 -0
- package/components/ChallengeProgressItem-DMuqRQ94.js +417 -0
- package/components/ChallengeRules-C-l7Nih5.cjs +1 -0
- package/components/ChallengeRules-CDw9YAZb.js +175 -0
- package/components/{ChallengeSummary-DiE9D1bF.js → ChallengeSummary-ClsiL0ew.js} +71 -68
- package/components/ChallengeSummary-OlE0g3eP.cjs +1 -0
- package/components/{ChallengeTabContent-BWahIpTH.js → ChallengeTabContent-DYhBMEuD.js} +198 -194
- package/components/ChallengeTabContent-Y2CcHcab.cjs +12 -0
- package/components/ChallengeTabPanel-DaJ86d-M.js +176 -0
- package/components/ChallengeTabPanel-Vi9JKI9q.cjs +1 -0
- package/components/ChallengeTabSkeleton-Dj2rC92S.cjs +15 -0
- package/components/{ChallengeTabSkeleton-Ch33vV8a.js → ChallengeTabSkeleton-nIWKRUtS.js} +46 -41
- package/components/{ChallengeTabs-B6_2WSU0.js → ChallengeTabs-BQfHWZ-v.js} +2239 -2176
- package/components/ChallengeTabs-BefOeRfL.cjs +14 -0
- package/components/{CheckIcon-Bh-pkq9I.js → CheckIcon-7SG6lvDK.js} +19 -14
- package/components/CheckIcon-D9ebX3ko.cjs +1 -0
- package/components/ChevronIcon-C4sG0Iq7.cjs +1 -0
- package/components/{ChevronIcon-D9cP6u1l.js → ChevronIcon-sZFDp9-r.js} +18 -13
- package/components/{ExistIcon--D18_Qhm.js → ExistIcon-BFp2RzHm.js} +22 -17
- package/components/ExistIcon-Cjt2I_f3.cjs +1 -0
- package/components/{GiftIcon-B0Ax8oOy.js → GiftIcon-BsTOo4xA.js} +18 -13
- package/components/GiftIcon-CowOBpN8.cjs +1 -0
- package/components/LinkIcon-DUiBycAa.cjs +1 -0
- package/components/{LinkIcon-Bui5HZdD.js → LinkIcon-DY8dMm_r.js} +19 -14
- package/components/LockIcon-B5-vtEo5.cjs +1 -0
- package/components/{LockIcon-C8tR8voO.js → LockIcon-DaWR3qRf.js} +20 -15
- package/components/Pagination-CVbrQbU7.cjs +12 -0
- package/components/{Pagination-_6zMfbPi.js → Pagination-DLaFwxon.js} +53 -48
- package/components/PlayerChallenges-CU3Xg79K.cjs +1 -0
- package/components/PlayerChallenges-UD6kj-0Y.js +396 -0
- package/components/{StarIcon-Dns8s0G7.js → StarIcon-BvEyzxCo.js} +20 -15
- package/components/StarIcon-mrGEuOQF.cjs +1 -0
- package/components/TargetIcon-D1VeNXPh.cjs +1 -0
- package/components/{TargetIcon-TJPVnCek.js → TargetIcon-H8pStACk.js} +19 -14
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +8 -3
- package/package.json +1 -1
- package/components/ArrowLeftIcon-BRaj1LmB.js +0 -21
- package/components/ArrowLeftIcon-DDLFT41L.cjs +0 -1
- package/components/Badge-DAKtct6K.cjs +0 -7
- package/components/Button-D-VBD0Q3.cjs +0 -3
- package/components/ChallengeBanner-CBpmtUBF.cjs +0 -4
- package/components/ChallengeBanner-Cmpj8DEM.js +0 -59
- package/components/ChallengeBreadcrumbs-2wbaNU9B.js +0 -38
- package/components/ChallengeBreadcrumbs-CI85tqGz.cjs +0 -1
- package/components/ChallengeCard-3mRYB8cV.cjs +0 -1
- package/components/ChallengeClaimCode-CbvBupc_.cjs +0 -1
- package/components/ChallengeDetails-D8ZWkzvs.cjs +0 -1
- package/components/ChallengeDetails-kST_L2H6.js +0 -91
- package/components/ChallengeEvents-CQ6STVwu.js +0 -57
- package/components/ChallengeEvents-Cs53agnU.cjs +0 -1
- package/components/ChallengeGames-B0HjqvW0.cjs +0 -11
- package/components/ChallengeGames-Cba0U_35.js +0 -136
- package/components/ChallengeHistory-VT3TVd3m.cjs +0 -1
- package/components/ChallengeLevels-BGZpw1ET.js +0 -297
- package/components/ChallengeLevels-iQPTsHa6.cjs +0 -4
- package/components/ChallengeList-CFGrG4th.cjs +0 -23
- package/components/ChallengeProgress-CFLdRZji.cjs +0 -1
- package/components/ChallengeProgress-DP3VVpVT.js +0 -81
- package/components/ChallengeProgressItem-D8RsRZvE.cjs +0 -68
- package/components/ChallengeProgressItem-DTB7cV5H.js +0 -412
- package/components/ChallengeRules-DcFk9naV.cjs +0 -1
- package/components/ChallengeRules-DhjdAEuR.js +0 -153
- package/components/ChallengeSummary-CLGCOtRQ.cjs +0 -3
- package/components/ChallengeTabContent-DROK-E8d.cjs +0 -13
- package/components/ChallengeTabPanel-Cpm0azOu.js +0 -164
- package/components/ChallengeTabPanel-DRfYUk0O.cjs +0 -1
- package/components/ChallengeTabSkeleton-BpCRuAwx.cjs +0 -15
- package/components/ChallengeTabs-CEYwcPlJ.cjs +0 -14
- package/components/CheckIcon-Co2f_WCA.cjs +0 -1
- package/components/ChevronIcon-DM0lqt14.cjs +0 -1
- package/components/ExistIcon-mCUINSW_.cjs +0 -1
- package/components/GiftIcon-Dqfja7-X.cjs +0 -1
- package/components/LinkIcon-BrRosQTW.cjs +0 -1
- package/components/LockIcon-DtM1_YzG.cjs +0 -1
- package/components/Pagination-Bx6K50Vt.cjs +0 -12
- package/components/PlayerChallenges-DVzU_6kl.js +0 -328
- package/components/PlayerChallenges-QYR3YEzs.cjs +0 -1
- package/components/StarIcon-DH0eCmcS.cjs +0 -1
- package/components/TargetIcon-DG4XwqL4.cjs +0 -1
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { g as ut, c as Ke, d as Ye, h as Je, p as c, o as ht,
|
|
2
|
-
import { C as
|
|
3
|
-
import { G as
|
|
4
|
-
import { L as
|
|
5
|
-
import { P as
|
|
6
|
-
import { C as
|
|
7
|
-
|
|
1
|
+
import { g as ut, c as Ke, d as Ye, h as Je, p as c, u as gt, o as ht, ai as pt, ao as vt, q as qe, C as mt, ax as Rt, y as N, t as D, a as p, b as Xe, j, e as d, m as ft, k as o, z as e, r as a, A as K, B as u, n as y, ay as Ut, i as b, az as Gt, s as ge, D as m, aA as Ot, a5 as Bt, a6 as it, a7 as Vt, a8 as Ft, l as _t, $ as yt, v as Y, aB as ne, aC as qt, w as ct, af as Oe, aD as Kt, O as ze, G as xe, T as Be, aE as le, aF as Ve, aG as Yt, aH as Jt } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
import { C as Xt } from "./ChevronIcon-sZFDp9-r.js";
|
|
3
|
+
import { G as Zt } from "./GiftIcon-BsTOo4xA.js";
|
|
4
|
+
import { L as Qt } from "./LinkIcon-DY8dMm_r.js";
|
|
5
|
+
import { P as Wt } from "./Pagination-DLaFwxon.js";
|
|
6
|
+
import { C as $t } from "./ChallengeList-BCtLU5A3.js";
|
|
7
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
|
+
}, globalThis.customElements = { define() {
|
|
9
|
+
}, get() {
|
|
10
|
+
}, whenDefined() {
|
|
11
|
+
} });
|
|
12
|
+
const er = {
|
|
8
13
|
en: {
|
|
9
14
|
applyCode: "Apply Code",
|
|
10
15
|
claimCodeTitle: "Enter the secret code to unlock hidden quests and rewards.",
|
|
@@ -54,29 +59,29 @@ const $t = {
|
|
|
54
59
|
claimCodePlaceholder: "pl. CHALLENGES",
|
|
55
60
|
claimCodeAnonymous: "Be kell jelentked a kód igényléséhez."
|
|
56
61
|
}
|
|
57
|
-
},
|
|
58
|
-
var
|
|
59
|
-
const
|
|
62
|
+
}, tr = 3, dt = 30, rr = /^[\x21-\x7E]+$/, ar = 200;
|
|
63
|
+
var lr = j('<div class="challenge-claim-code__container svelte-1hz4cfc"><p class="challenge-claim-code__title svelte-1hz4cfc"> </p> <div class="challenge-claim-code__content svelte-1hz4cfc"><input id="challenge-claim-code-input" name="claimCode" type="text"/> <p> </p></div> <button class="challenge-claim-code__button svelte-1hz4cfc"> </button></div>'), nr = j('<p class="challenge-claim-code__anonymous svelte-1hz4cfc"> </p>'), or = j("<div><!></div>");
|
|
64
|
+
const sr = {
|
|
60
65
|
hash: "svelte-1hz4cfc",
|
|
61
|
-
code: `.challenge-claim-code.svelte-1hz4cfc {width:100%;display:flex;justify-content:center;margin-top:100px;.challenge-claim-code__container:where(.svelte-1hz4cfc) {width:281px;display:flex;justify-content:center;flex-direction:column;gap:28px;.challenge-claim-code__title:where(.svelte-1hz4cfc) {font-size:16px;font-weight:400;line-height:24px;color:var(--text-subtle, rgba(255, 255, 255, 1));text-align:center;margin:0;}.challenge-claim-code__content:where(.svelte-1hz4cfc) {display:flex;align-items:center;text-align:center;flex-direction:column;gap:12px;width:100%;.challenge-claim-code__input:where(.svelte-1hz4cfc) {box-sizing:border-box;border-radius:6px;border:1px solid var(--input-element-border-hover, rgba(251, 251, 251, 0.05));background-color:var(--
|
|
66
|
+
code: `.challenge-claim-code.svelte-1hz4cfc {width:100%;display:flex;justify-content:center;margin-top:100px;.challenge-claim-code__container:where(.svelte-1hz4cfc) {width:281px;display:flex;justify-content:center;flex-direction:column;gap:28px;.challenge-claim-code__title:where(.svelte-1hz4cfc) {font-size:16px;font-weight:400;line-height:24px;color:var(--text-subtle, rgba(255, 255, 255, 1));text-align:center;margin:0;}.challenge-claim-code__content:where(.svelte-1hz4cfc) {display:flex;align-items:center;text-align:center;flex-direction:column;gap:12px;width:100%;.challenge-claim-code__input:where(.svelte-1hz4cfc) {box-sizing:border-box;border-radius:6px;border:1px solid var(--input-element-border-hover, rgba(251, 251, 251, 0.05));background-color:var(--bg-overlay-neutral-level-3, rgba(251, 251, 251, 0.15));color:var(--input-element-text-active, rgba(255, 255, 255, 1));font-size:14px;font-weight:400;padding:12px 16px;line-height:125%;width:100%;text-align:center;text-transform:uppercase;}.challenge-claim-code__input:where(.svelte-1hz4cfc)::placeholder {color:var(--input-element-text-disable, rgba(251, 251, 251, 0.25));}.challenge-claim-code__input:where(.svelte-1hz4cfc):focus {outline:none;}.challenge-claim-code__input.errored:where(.svelte-1hz4cfc) {border-color:var(--semantic-error-500, rgba(235, 0, 0, 1));}.challenge-claim-code__rule:where(.svelte-1hz4cfc) {font-weight:400;font-size:12px;line-height:24px;color:var(--text-subtle, rgba(255, 255, 255, 1));width:100%;margin:0;}.challenge-claim-code__rule.errored:where(.svelte-1hz4cfc) {color:var(--semantic-error-500, rgba(235, 0, 0, 1));}}.challenge-claim-code__button:where(.svelte-1hz4cfc) {background-color:var(--button-primary-bg-default, rgba(255, 204, 0, 1));display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;height:33px;border-radius:6px;border:none;font-weight:700;font-size:12px;}.challenge-claim-code__button:where(.svelte-1hz4cfc):disabled {opacity:50%;cursor:not-allowed;}.challenge-claim-code__button:where(.svelte-1hz4cfc):hover {background-color:var(--button-primary-bg-hover, rgba(199, 158, 0, 1));}}.challenge-claim-code__anonymous:where(.svelte-1hz4cfc) {margin:0;text-align:center;font-size:13px;color:var(--text-subtle, rgba(251, 251, 251, 0.5));}}
|
|
62
67
|
@media (max-width: 767px) {.challenge-claim-code.svelte-1hz4cfc {margin-top:20px;}
|
|
63
68
|
}.challenge-claim-code.anonymous.svelte-1hz4cfc {padding:32px 12px;text-align:center;margin:0;}`
|
|
64
69
|
};
|
|
65
|
-
function
|
|
66
|
-
Ye(r, !0), Je(
|
|
67
|
-
const l = () =>
|
|
68
|
-
ht(C(),
|
|
69
|
-
w() &&
|
|
70
|
+
function bt(g, r) {
|
|
71
|
+
Ye(r, !0), Je(g, sr);
|
|
72
|
+
const l = () => _t(yt, "$_", s), [s, U] = ft(), f = c(r, "endpoint", 7), h = c(r, "userSession", 7), C = c(r, "locale", 7, "en"), w = c(r, "translationUrl", 7), T = c(r, "domainId", 7);
|
|
73
|
+
gt(() => ht(C(), er)), pt(() => {
|
|
74
|
+
w() && vt(w(), "challenge-claim-code");
|
|
70
75
|
}), qe(() => {
|
|
71
|
-
|
|
76
|
+
mt(C() || "en");
|
|
72
77
|
});
|
|
73
|
-
let _ = Y(""), k = Y(null), x = Y(!1),
|
|
74
|
-
const $ = (t) => t.length >=
|
|
75
|
-
m(_, t.target.value, !0), m(k, null), clearTimeout(
|
|
78
|
+
let _ = Y(""), k = Y(null), x = Y(!1), I = Y(!1), S;
|
|
79
|
+
const $ = (t) => t.length >= tr && t.length <= dt && rr.test(t), ee = u(() => $(e(_))), L = u(() => e(I) || !!e(k)), G = u(() => !!f() && !!h() && !!T()), te = u(() => e(ee) && !e(x) && e(G)), J = u(() => !h()), oe = (t) => {
|
|
80
|
+
m(_, t.target.value, !0), m(k, null), clearTimeout(S), S = setTimeout(
|
|
76
81
|
() => {
|
|
77
|
-
m(
|
|
82
|
+
m(I, !!e(_) && !$(e(_)), !0);
|
|
78
83
|
},
|
|
79
|
-
|
|
84
|
+
ar
|
|
80
85
|
);
|
|
81
86
|
}, se = async () => {
|
|
82
87
|
if (e(te)) {
|
|
@@ -84,20 +89,20 @@ function yt(h, r) {
|
|
|
84
89
|
try {
|
|
85
90
|
await Ot({
|
|
86
91
|
endpoint: f(),
|
|
87
|
-
domainId:
|
|
88
|
-
sessionId:
|
|
92
|
+
domainId: T(),
|
|
93
|
+
sessionId: h(),
|
|
89
94
|
code: e(_)
|
|
90
|
-
}), m(_, ""), m(
|
|
95
|
+
}), m(_, ""), m(I, !1), Bt(it.Claim);
|
|
91
96
|
} catch (t) {
|
|
92
|
-
const i = t instanceof
|
|
93
|
-
m(k,
|
|
97
|
+
const i = t instanceof Vt ? t.errorCode : null, E = t instanceof Error ? t.message : String(t);
|
|
98
|
+
m(k, E, !0), Ft(it.Claim, E, i ?? void 0);
|
|
94
99
|
} finally {
|
|
95
100
|
m(x, !1);
|
|
96
101
|
}
|
|
97
102
|
}
|
|
98
103
|
};
|
|
99
|
-
Rt(() => clearTimeout(
|
|
100
|
-
var
|
|
104
|
+
Rt(() => clearTimeout(S));
|
|
105
|
+
var he = {
|
|
101
106
|
get endpoint() {
|
|
102
107
|
return f();
|
|
103
108
|
},
|
|
@@ -105,10 +110,10 @@ function yt(h, r) {
|
|
|
105
110
|
f(t), d();
|
|
106
111
|
},
|
|
107
112
|
get userSession() {
|
|
108
|
-
return
|
|
113
|
+
return h();
|
|
109
114
|
},
|
|
110
115
|
set userSession(t) {
|
|
111
|
-
|
|
116
|
+
h(t), d();
|
|
112
117
|
},
|
|
113
118
|
get locale() {
|
|
114
119
|
return C();
|
|
@@ -123,22 +128,22 @@ function yt(h, r) {
|
|
|
123
128
|
w(t), d();
|
|
124
129
|
},
|
|
125
130
|
get domainId() {
|
|
126
|
-
return
|
|
131
|
+
return T();
|
|
127
132
|
},
|
|
128
133
|
set domainId(t) {
|
|
129
|
-
|
|
134
|
+
T(t), d();
|
|
130
135
|
}
|
|
131
|
-
}, n =
|
|
136
|
+
}, n = or();
|
|
132
137
|
let X;
|
|
133
138
|
var pe = o(n);
|
|
134
139
|
{
|
|
135
140
|
var ve = (t) => {
|
|
136
|
-
var i =
|
|
137
|
-
a(
|
|
138
|
-
var re = y(
|
|
139
|
-
|
|
140
|
-
let
|
|
141
|
-
v.__input = oe, v.__keydown = (
|
|
141
|
+
var i = lr(), E = o(i), O = o(E, !0);
|
|
142
|
+
a(E);
|
|
143
|
+
var re = y(E, 2), v = o(re);
|
|
144
|
+
Ut(v);
|
|
145
|
+
let H;
|
|
146
|
+
v.__input = oe, v.__keydown = (R) => R.key === "Enter" && se();
|
|
142
147
|
var B = y(v, 2);
|
|
143
148
|
let Z;
|
|
144
149
|
var Ce = o(B, !0);
|
|
@@ -147,8 +152,8 @@ function yt(h, r) {
|
|
|
147
152
|
A.__click = se;
|
|
148
153
|
var Q = o(A, !0);
|
|
149
154
|
a(A), a(i), D(
|
|
150
|
-
(
|
|
151
|
-
b(
|
|
155
|
+
(R, fe, ie, M) => {
|
|
156
|
+
b(O, R), H = K(v, 1, "challenge-claim-code__input svelte-1hz4cfc", null, H, { errored: e(L) }), Gt(v, e(_)), ge(v, "maxlength", dt), ge(v, "placeholder", fe), ge(v, "aria-invalid", e(L)), Z = K(B, 1, "challenge-claim-code__rule svelte-1hz4cfc", null, Z, { errored: e(L) }), b(Ce, ie), A.disabled = !e(te), b(Q, M);
|
|
152
157
|
},
|
|
153
158
|
[
|
|
154
159
|
() => l()("claimCodeTitle"),
|
|
@@ -158,20 +163,20 @@ function yt(h, r) {
|
|
|
158
163
|
]
|
|
159
164
|
), p(t, i);
|
|
160
165
|
}, me = (t) => {
|
|
161
|
-
var i =
|
|
162
|
-
a(i), D((
|
|
166
|
+
var i = nr(), E = o(i, !0);
|
|
167
|
+
a(i), D((O) => b(E, O), [() => l()("claimCodeAnonymous")]), p(t, i);
|
|
163
168
|
};
|
|
164
169
|
N(pe, (t) => {
|
|
165
170
|
e(J) ? t(me, !1) : t(ve);
|
|
166
171
|
});
|
|
167
172
|
}
|
|
168
|
-
a(n), D(() => X = K(n, 1, "challenge-claim-code svelte-1hz4cfc", null, X, { anonymous: e(J) })), p(
|
|
169
|
-
var P = Xe(
|
|
173
|
+
a(n), D(() => X = K(n, 1, "challenge-claim-code svelte-1hz4cfc", null, X, { anonymous: e(J) })), p(g, n);
|
|
174
|
+
var P = Xe(he);
|
|
170
175
|
return U(), P;
|
|
171
176
|
}
|
|
172
177
|
ut(["input", "keydown", "click"]);
|
|
173
178
|
Ke(
|
|
174
|
-
|
|
179
|
+
bt,
|
|
175
180
|
{
|
|
176
181
|
endpoint: {},
|
|
177
182
|
userSession: {},
|
|
@@ -184,7 +189,7 @@ Ke(
|
|
|
184
189
|
!0
|
|
185
190
|
);
|
|
186
191
|
if (typeof window < "u") {
|
|
187
|
-
let
|
|
192
|
+
let g = function(r) {
|
|
188
193
|
return function(...l) {
|
|
189
194
|
try {
|
|
190
195
|
return r.apply(this, l);
|
|
@@ -195,14 +200,14 @@ if (typeof window < "u") {
|
|
|
195
200
|
}
|
|
196
201
|
};
|
|
197
202
|
};
|
|
198
|
-
customElements.define =
|
|
203
|
+
customElements.define = g(customElements.define), import("./ChallengeClaimCode-DtN7_eaj.js").then((r) => {
|
|
199
204
|
const l = r.default || r;
|
|
200
205
|
customElements.get("challenge-claim-code") || customElements.define("challenge-claim-code", l.element || l);
|
|
201
206
|
}).catch((r) => {
|
|
202
207
|
console.error("BOOT ERROR:", r);
|
|
203
208
|
});
|
|
204
209
|
}
|
|
205
|
-
const
|
|
210
|
+
const ir = {
|
|
206
211
|
en: {
|
|
207
212
|
historyEmptyTitle: "No challenge history yet",
|
|
208
213
|
historyEmptyDescription: "Completed and expired challenges will show up here.",
|
|
@@ -242,17 +247,17 @@ const sr = {
|
|
|
242
247
|
[ne.Completed]: "completed",
|
|
243
248
|
[ne.Expired]: "expired",
|
|
244
249
|
[ne.Forfeited]: "forfeited"
|
|
245
|
-
},
|
|
246
|
-
const r =
|
|
250
|
+
}, cr = (g) => qt(g, "DD/MM/YY HH:mm"), Te = (g) => g.Status === ne.Completed, dr = (g) => {
|
|
251
|
+
const r = g.Levels ?? [];
|
|
247
252
|
if (!r.length)
|
|
248
253
|
return null;
|
|
249
|
-
if (r.every(
|
|
254
|
+
if (r.every(Te))
|
|
250
255
|
return ne.Completed;
|
|
251
256
|
const l = r[r.length - 1];
|
|
252
|
-
return
|
|
253
|
-
},
|
|
254
|
-
var
|
|
255
|
-
const
|
|
257
|
+
return Te(l) ? r.filter((s) => !Te(s)).pop()?.Status ?? ne.Completed : l.Status;
|
|
258
|
+
}, ur = (g) => Object.values(g ?? {}).map((r) => r?.RewardDescription).filter((r) => !!r);
|
|
259
|
+
var gr = j('<p class="challenge-history__anonymous svelte-or1pjf"> </p>'), hr = j('<div class="challenge-history__skeleton svelte-or1pjf"></div>'), pr = j('<div class="challenge-history__empty svelte-or1pjf"><b class="svelte-or1pjf"> </b> <span class="svelte-or1pjf"> </span></div>'), vr = j("<span> </span>"), mr = j('<a target="_blank" rel="noopener noreferrer" class="challenge-history__terms--link svelte-or1pjf"> <!></a>'), fr = j('<div><span class="challenge-history__level-item--icon svelte-or1pjf"><!></span> <span class="challenge-history__level--info-value svelte-or1pjf"> </span></div>'), _r = j('<tr class="svelte-or1pjf"><td class="svelte-or1pjf"><div class="challenge-history__level-item svelte-or1pjf"><span class="challenge-history__level-item--name svelte-or1pjf"> </span> <!></div></td><td class="svelte-or1pjf"><span> </span></td><td class="svelte-or1pjf"> </td></tr>'), yr = j('<div class="challenge-history__details-expanded svelte-or1pjf"><!> <div class="svelte-or1pjf"><table class="challenge-history__level-table svelte-or1pjf"><thead class="challenge-history__level-table-header svelte-or1pjf"><tr class="svelte-or1pjf"><th class="svelte-or1pjf"> </th><th class="svelte-or1pjf"> </th><th class="svelte-or1pjf"> </th></tr></thead><tbody class="challenge-history__level-table-body svelte-or1pjf"></tbody></table></div></div>'), br = j('<div class="challenge-history__row svelte-or1pjf"><button type="button"><span class="challenge-history__item--name svelte-or1pjf"> </span> <span class="challenge-history__item--action svelte-or1pjf"><!> <span><!></span></span></button> <!></div>'), xr = j("<!> <!>", 1), Cr = j("<div><!></div>");
|
|
260
|
+
const wr = {
|
|
256
261
|
hash: "svelte-or1pjf",
|
|
257
262
|
code: `.challenge-history.svelte-or1pjf {padding:10px 0;display:flex;flex-direction:column;gap:12px;}.challenge-history__row.svelte-or1pjf {display:flex;flex-direction:column;}.challenge-history__skeleton.svelte-or1pjf {height:60px;border-radius:12px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
258
263
|
animation: svelte-or1pjf-challenge-history-pulse 1.2s ease-in-out infinite;}
|
|
@@ -262,34 +267,33 @@ const Cr = {
|
|
|
262
267
|
opacity: 0.5;
|
|
263
268
|
}
|
|
264
269
|
}.challenge-history__anonymous.svelte-or1pjf,
|
|
265
|
-
.challenge-history__empty.svelte-or1pjf {margin:0;text-align:center;font-size:13px;color:var(--text-subtle, rgba(251, 251, 251, 0.5));}.challenge-history__item.svelte-or1pjf {width:100%;color:var(--text-default, rgba(255, 255, 255, 1));font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border-radius:12px;padding:20px 12px;border:0;text-align:left;&:focus {outline:none;}}.challenge-history__item.expanded.svelte-or1pjf {border-radius:12px 12px 0 0;padding-bottom:8px;}.challenge-history__item--name.svelte-or1pjf {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.challenge-history__item--action.svelte-or1pjf {display:flex;align-items:center;gap:8px;flex-shrink:0;}.challenge-history__item--status.svelte-or1pjf {border-radius:14px;padding:2px 10px;background:var(--tags-live-bg, rgba(30, 162, 0, 1));color:var(--secondary-0, rgba(255, 255, 255, 1));font-weight:700;font-size:10px;}.challenge-history__item--status.failed.svelte-or1pjf {background:var(--tags-ended-bg, rgba(170, 0, 0, 1));}.challenge-history__item--status[data-status='forfeited'].svelte-or1pjf {background:var(--tags-forfeited-bg, var(--tags-ended-bg, rgba(170, 0, 0, 1)));}.challenge-history__view-details-icon.svelte-or1pjf {display:flex;transition:transform 0.2s ease;fill:var(--icon-default, rgba(255, 255, 255, 1));color:var(--icon-default, rgba(255, 255, 255, 1));}.challenge-history__view-details-icon.expanded.svelte-or1pjf {transform:rotate(180deg);}.challenge-history__details-expanded.svelte-or1pjf {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border-radius:0 0 12px 12px;padding:0 20px 12px 12px;color:var(--text-default, rgba(255, 255, 255, 1));font-size:12px;font-weight:400;display:flex;flex-direction:column;gap:9px;.challenge-history__terms--link:where(.svelte-or1pjf) {color:var(--semantic-info-400, rgba(0, 156, 245, 1));font-size:10px;font-weight:500;}.challenge-history__level-status:where(.svelte-or1pjf) {font-weight:400;font-size:12px;line-height:12px;}.challenge-history__level-status.failed:where(.svelte-or1pjf) {color:var(--icon-error, rgba(235, 0, 0, 1));}.challenge-history__level-status.completed:where(.svelte-or1pjf) {color:var(--icon-success, rgba(50, 242, 0, 1));}.challenge-history__level-table:where(.svelte-or1pjf) {width:100%;border-collapse:separate;border-spacing:0;text-align:left;thead:where(.svelte-or1pjf) {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}.challenge-history__level-table-header:where(.svelte-or1pjf) {th:where(.svelte-or1pjf) {color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-weight:700;font-size:10px;text-transform:uppercase;padding:6px 20px;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));text-align:left;}th:where(.svelte-or1pjf):first-child {border-radius:4px 0 0 0;}th:where(.svelte-or1pjf):last-child {border-radius:0 4px 0 0;}}}.challenge-history__level-table-body:where(.svelte-or1pjf) {td:where(.svelte-or1pjf) {color:var(--text-default, rgba(255, 255, 255, 1));font-weight:400;font-size:12px;padding:10px 20px;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));text-align:left;vertical-align:top;}}.challenge-history__level-reward:where(.svelte-or1pjf),
|
|
266
|
-
.challenge-history__level-item--icon:where(.svelte-or1pjf) {color:var(--text-brand, rgba(255, 204, 0, 1));margin-top:8px;}.challenge-history__level-reward.failed:where(.svelte-or1pjf) {color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));}}.challenge-history.anonymous.svelte-or1pjf {padding:32px 12px;text-align:center;margin:0;}`
|
|
270
|
+
.challenge-history__empty.svelte-or1pjf {margin:0;text-align:center;font-size:13px;color:var(--text-subtle, rgba(251, 251, 251, 0.5));}.challenge-history__item.svelte-or1pjf {width:100%;color:var(--text-default, rgba(255, 255, 255, 1));font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border-radius:12px;padding:20px 12px;border:0;text-align:left;&:focus {outline:none;}}.challenge-history__item.expanded.svelte-or1pjf {border-radius:12px 12px 0 0;padding-bottom:8px;}.challenge-history__item--name.svelte-or1pjf {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.challenge-history__item--action.svelte-or1pjf {display:flex;align-items:center;gap:8px;flex-shrink:0;}.challenge-history__item--status.svelte-or1pjf {border-radius:14px;padding:2px 10px;background:var(--tags-live-bg, rgba(30, 162, 0, 1));color:var(--secondary-0, rgba(255, 255, 255, 1));font-weight:700;font-size:10px;}.challenge-history__item--status.failed.svelte-or1pjf {background:var(--tags-ended-bg, rgba(170, 0, 0, 1));}.challenge-history__item--status[data-status='forfeited'].svelte-or1pjf {background:var(--tags-forfeited-bg, var(--tags-ended-bg, rgba(170, 0, 0, 1)));}.challenge-history__view-details-icon.svelte-or1pjf {display:flex;transition:transform 0.2s ease;fill:var(--icon-default, rgba(255, 255, 255, 1));color:var(--icon-default, rgba(255, 255, 255, 1));}.challenge-history__view-details-icon.expanded.svelte-or1pjf {transform:rotate(180deg);}.challenge-history__details-expanded.svelte-or1pjf {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border-radius:0 0 12px 12px;padding:0 20px 12px 12px;color:var(--text-default, rgba(255, 255, 255, 1));font-size:12px;font-weight:400;display:flex;flex-direction:column;gap:9px;.challenge-history__terms--link:where(.svelte-or1pjf) {color:var(--semantic-info-400, rgba(0, 156, 245, 1));font-size:10px;font-weight:500;}.challenge-history__level-status:where(.svelte-or1pjf) {font-weight:400;font-size:12px;line-height:12px;}.challenge-history__level-status.failed:where(.svelte-or1pjf) {color:var(--icon-error, rgba(235, 0, 0, 1));}.challenge-history__level-status.completed:where(.svelte-or1pjf) {color:var(--icon-success, rgba(50, 242, 0, 1));}.challenge-history__level-table:where(.svelte-or1pjf) {width:100%;border-collapse:separate;border-spacing:0;text-align:left;thead:where(.svelte-or1pjf) {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}.challenge-history__level-table-header:where(.svelte-or1pjf) {th:where(.svelte-or1pjf) {color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));font-weight:700;font-size:10px;text-transform:uppercase;padding:6px 20px;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));text-align:left;}th:where(.svelte-or1pjf):first-child {border-radius:4px 0 0 0;}th:where(.svelte-or1pjf):last-child {border-radius:0 4px 0 0;}}}.challenge-history__level-table-body:where(.svelte-or1pjf) {td:where(.svelte-or1pjf) {color:var(--text-default, rgba(255, 255, 255, 1));font-weight:400;font-size:12px;padding:10px 20px;border-bottom:1px solid var(--border-default, rgba(251, 251, 251, 0.15));text-align:left;vertical-align:top;}}.challenge-history__level-reward:where(.svelte-or1pjf) {display:flex;align-items:center;gap:4px;color:var(--text-brand, rgba(255, 204, 0, 1));margin-top:8px;}.challenge-history__level-item--icon:where(.svelte-or1pjf) {display:flex;align-items:center;flex-shrink:0;color:var(--text-brand, rgba(255, 204, 0, 1));}.challenge-history__level-reward.failed:where(.svelte-or1pjf) {color:var(--text-super-subtle, rgba(251, 251, 251, 0.5));}}.challenge-history.anonymous.svelte-or1pjf {padding:32px 12px;text-align:center;margin:0;}`
|
|
267
271
|
};
|
|
268
|
-
function
|
|
269
|
-
Ye(r, !0), Je(
|
|
270
|
-
const l = () =>
|
|
271
|
-
ht(
|
|
272
|
-
C() &&
|
|
272
|
+
function xt(g, r) {
|
|
273
|
+
Ye(r, !0), Je(g, wr);
|
|
274
|
+
const l = () => _t(yt, "$_", s), [s, U] = ft(), f = c(r, "userSession", 7), h = c(r, "locale", 7, "en"), C = c(r, "translationUrl", 7), w = c(r, "endpoint", 7), T = c(r, "domainId", 7), _ = c(r, "userId", 7), k = c(r, "isMobile", 7, !0), x = c(r, "limit", 7, Oe);
|
|
275
|
+
gt(() => ht(h(), ir)), pt(() => {
|
|
276
|
+
C() && vt(C(), "challenge-history");
|
|
273
277
|
}), qe(() => {
|
|
274
|
-
|
|
278
|
+
mt(h() || "en");
|
|
275
279
|
});
|
|
276
|
-
let
|
|
277
|
-
const
|
|
280
|
+
let I = Y(ct([])), S = Y(0), $ = Y(0), ee = Y(!1), L = Y(ct([]));
|
|
281
|
+
const G = u(() => Number(x()) || Oe), te = u(() => !f() && !_()), J = [0, 1, 2, 3], oe = async (t) => {
|
|
278
282
|
m(ee, !0);
|
|
279
283
|
try {
|
|
280
|
-
const i = await
|
|
284
|
+
const i = await Kt({
|
|
281
285
|
endpoint: w(),
|
|
282
|
-
domainId:
|
|
286
|
+
domainId: T(),
|
|
283
287
|
userId: _(),
|
|
284
288
|
sessionId: f(),
|
|
285
|
-
locale:
|
|
286
|
-
pageNumber: Math.floor(t / e(
|
|
287
|
-
pageSize: e(
|
|
289
|
+
locale: h(),
|
|
290
|
+
pageNumber: Math.floor(t / e(G)),
|
|
291
|
+
pageSize: e(G),
|
|
288
292
|
isFutureAvailable: !0
|
|
289
293
|
});
|
|
290
|
-
m(
|
|
294
|
+
m(I, i.Data ?? [], !0), m(S, i.TotalItem ?? e(I).length, !0), m($, t, !0), m(L, [], !0);
|
|
291
295
|
} catch (i) {
|
|
292
|
-
console.error("challenge-history: failed to load history", i), m(
|
|
296
|
+
console.error("challenge-history: failed to load history", i), m(I, [], !0), m(S, 0);
|
|
293
297
|
} finally {
|
|
294
298
|
m(ee, !1);
|
|
295
299
|
}
|
|
@@ -297,11 +301,11 @@ function bt(h, r) {
|
|
|
297
301
|
qe(() => {
|
|
298
302
|
const t = {
|
|
299
303
|
endpoint: w(),
|
|
300
|
-
domainId:
|
|
304
|
+
domainId: T(),
|
|
301
305
|
userId: _(),
|
|
302
306
|
userSession: f(),
|
|
303
|
-
locale:
|
|
304
|
-
pageSize: e(
|
|
307
|
+
locale: h(),
|
|
308
|
+
pageSize: e(G)
|
|
305
309
|
};
|
|
306
310
|
!t.endpoint || !t.userId || oe(0);
|
|
307
311
|
});
|
|
@@ -312,7 +316,7 @@ function bt(h, r) {
|
|
|
312
316
|
!0
|
|
313
317
|
);
|
|
314
318
|
};
|
|
315
|
-
var
|
|
319
|
+
var he = {
|
|
316
320
|
get userSession() {
|
|
317
321
|
return f();
|
|
318
322
|
},
|
|
@@ -320,10 +324,10 @@ function bt(h, r) {
|
|
|
320
324
|
f(t), d();
|
|
321
325
|
},
|
|
322
326
|
get locale() {
|
|
323
|
-
return
|
|
327
|
+
return h();
|
|
324
328
|
},
|
|
325
329
|
set locale(t = "en") {
|
|
326
|
-
|
|
330
|
+
h(t), d();
|
|
327
331
|
},
|
|
328
332
|
get translationUrl() {
|
|
329
333
|
return C();
|
|
@@ -338,10 +342,10 @@ function bt(h, r) {
|
|
|
338
342
|
w(t), d();
|
|
339
343
|
},
|
|
340
344
|
get domainId() {
|
|
341
|
-
return
|
|
345
|
+
return T();
|
|
342
346
|
},
|
|
343
347
|
set domainId(t) {
|
|
344
|
-
|
|
348
|
+
T(t), d();
|
|
345
349
|
},
|
|
346
350
|
get userId() {
|
|
347
351
|
return _();
|
|
@@ -358,32 +362,32 @@ function bt(h, r) {
|
|
|
358
362
|
get limit() {
|
|
359
363
|
return x();
|
|
360
364
|
},
|
|
361
|
-
set limit(t =
|
|
365
|
+
set limit(t = Oe) {
|
|
362
366
|
x(t), d();
|
|
363
367
|
}
|
|
364
|
-
}, n =
|
|
368
|
+
}, n = Cr();
|
|
365
369
|
let X;
|
|
366
370
|
var pe = o(n);
|
|
367
371
|
{
|
|
368
372
|
var ve = (t) => {
|
|
369
|
-
var i =
|
|
370
|
-
a(i), D((
|
|
373
|
+
var i = gr(), E = o(i, !0);
|
|
374
|
+
a(i), D((O) => b(E, O), [() => l()("historyAnonymous")]), p(t, i);
|
|
371
375
|
}, me = (t) => {
|
|
372
|
-
var i =
|
|
376
|
+
var i = ze(), E = xe(i);
|
|
373
377
|
{
|
|
374
|
-
var
|
|
375
|
-
var
|
|
378
|
+
var O = (v) => {
|
|
379
|
+
var H = ze(), B = xe(H);
|
|
376
380
|
Be(B, 16, () => J, (Z) => Z, (Z, Ce) => {
|
|
377
381
|
var A = hr();
|
|
378
382
|
p(Z, A);
|
|
379
|
-
}), p(v,
|
|
383
|
+
}), p(v, H);
|
|
380
384
|
}, re = (v) => {
|
|
381
|
-
var
|
|
385
|
+
var H = ze(), B = xe(H);
|
|
382
386
|
{
|
|
383
387
|
var Z = (A) => {
|
|
384
|
-
var Q =
|
|
385
|
-
a(
|
|
386
|
-
var ie = y(
|
|
388
|
+
var Q = pr(), R = o(Q), fe = o(R, !0);
|
|
389
|
+
a(R);
|
|
390
|
+
var ie = y(R, 2), M = o(ie, !0);
|
|
387
391
|
a(ie), a(Q), D(
|
|
388
392
|
(V, ce) => {
|
|
389
393
|
b(fe, V), b(M, ce);
|
|
@@ -394,50 +398,50 @@ function bt(h, r) {
|
|
|
394
398
|
]
|
|
395
399
|
), p(A, Q);
|
|
396
400
|
}, Ce = (A) => {
|
|
397
|
-
var Q =
|
|
398
|
-
Be(
|
|
399
|
-
const ce = u(() => e(L).includes(e(V).ProgressId)), we = u(() =>
|
|
400
|
-
var
|
|
401
|
+
var Q = xr(), R = xe(Q);
|
|
402
|
+
Be(R, 17, () => e(I), (M) => M.ProgressId, (M, V) => {
|
|
403
|
+
const ce = u(() => e(L).includes(e(V).ProgressId)), we = u(() => dr(e(V)));
|
|
404
|
+
var Ie = br(), de = o(Ie);
|
|
401
405
|
let Ze;
|
|
402
406
|
de.__click = () => se(e(V).ProgressId);
|
|
403
|
-
var
|
|
404
|
-
a(
|
|
405
|
-
var Qe = y(
|
|
407
|
+
var Se = o(de), Ct = o(Se, !0);
|
|
408
|
+
a(Se);
|
|
409
|
+
var Qe = y(Se, 2), We = o(Qe);
|
|
406
410
|
{
|
|
407
|
-
var
|
|
408
|
-
var F =
|
|
411
|
+
var wt = (ae) => {
|
|
412
|
+
var F = vr();
|
|
409
413
|
let _e;
|
|
410
414
|
var Le = o(F, !0);
|
|
411
415
|
a(F), D(
|
|
412
416
|
(je) => {
|
|
413
417
|
_e = K(F, 1, "challenge-history__item--status svelte-or1pjf", null, _e, {
|
|
414
418
|
failed: e(we) !== ne.Completed
|
|
415
|
-
}),
|
|
419
|
+
}), ge(F, "data-status", Fe[e(we)]), b(Le, je);
|
|
416
420
|
},
|
|
417
421
|
[() => l()(Fe[e(we)])]
|
|
418
422
|
), p(ae, F);
|
|
419
423
|
};
|
|
420
424
|
N(We, (ae) => {
|
|
421
|
-
e(we) !== null && ae(
|
|
425
|
+
e(we) !== null && ae(wt);
|
|
422
426
|
});
|
|
423
427
|
}
|
|
424
428
|
var Ae = y(We, 2);
|
|
425
429
|
let $e;
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
var
|
|
430
|
+
var jt = o(Ae);
|
|
431
|
+
Xt(jt, { size: 15 }), a(Ae), a(Qe), a(de);
|
|
432
|
+
var kt = y(de, 2);
|
|
429
433
|
{
|
|
430
|
-
var
|
|
431
|
-
var F =
|
|
434
|
+
var Et = (ae) => {
|
|
435
|
+
var F = yr(), _e = o(F);
|
|
432
436
|
{
|
|
433
437
|
var Le = (q) => {
|
|
434
|
-
var
|
|
435
|
-
|
|
438
|
+
var z = mr(), W = o(z), ke = y(W);
|
|
439
|
+
Qt(ke, {}), a(z), D(
|
|
436
440
|
(ye) => {
|
|
437
|
-
|
|
441
|
+
ge(z, "href", e(V).TermsAndConditionsUrl), b(W, `${ye ?? ""} `);
|
|
438
442
|
},
|
|
439
443
|
[() => l()("termsAndConditions")]
|
|
440
|
-
), p(q,
|
|
444
|
+
), p(q, z);
|
|
441
445
|
};
|
|
442
446
|
N(_e, (q) => {
|
|
443
447
|
e(V).TermsAndConditionsUrl && q(Le);
|
|
@@ -445,56 +449,56 @@ function bt(h, r) {
|
|
|
445
449
|
}
|
|
446
450
|
var je = y(_e, 2), et = o(je), De = o(et), tt = o(De), Me = o(tt), zt = o(Me, !0);
|
|
447
451
|
a(Me);
|
|
448
|
-
var Ne = y(Me),
|
|
452
|
+
var Ne = y(Me), Tt = o(Ne, !0);
|
|
449
453
|
a(Ne);
|
|
450
454
|
var rt = y(Ne), It = o(rt, !0);
|
|
451
455
|
a(rt), a(tt), a(De);
|
|
452
456
|
var at = y(De);
|
|
453
|
-
Be(at, 21, () => e(V).Levels ?? [], (q) => q.OrderNumber, (q,
|
|
454
|
-
const W = u(() =>
|
|
455
|
-
var ye =
|
|
456
|
-
a(
|
|
457
|
-
var
|
|
457
|
+
Be(at, 21, () => e(V).Levels ?? [], (q) => q.OrderNumber, (q, z) => {
|
|
458
|
+
const W = u(() => Te(e(z))), ke = u(() => ur(e(z).Rewards));
|
|
459
|
+
var ye = _r(), Pe = o(ye), lt = o(Pe), He = o(lt), St = o(He);
|
|
460
|
+
a(He);
|
|
461
|
+
var At = y(He, 2);
|
|
458
462
|
{
|
|
459
|
-
var
|
|
460
|
-
var ue =
|
|
461
|
-
let
|
|
462
|
-
var
|
|
463
|
-
|
|
464
|
-
var st = y(
|
|
463
|
+
var Lt = (be) => {
|
|
464
|
+
var ue = fr();
|
|
465
|
+
let Ee;
|
|
466
|
+
var Ge = o(ue), Nt = o(Ge);
|
|
467
|
+
Zt(Nt, {}), a(Ge);
|
|
468
|
+
var st = y(Ge, 2), Pt = o(st, !0);
|
|
465
469
|
a(st), a(ue), D(
|
|
466
|
-
(
|
|
467
|
-
|
|
470
|
+
(Ht) => {
|
|
471
|
+
Ee = K(ue, 1, "challenge-history__level-reward svelte-or1pjf", null, Ee, { failed: !e(W) }), b(Pt, Ht);
|
|
468
472
|
},
|
|
469
473
|
[
|
|
470
|
-
() => e(
|
|
474
|
+
() => e(z).CustomRewardMessage || e(ke).join(" + ")
|
|
471
475
|
]
|
|
472
476
|
), p(be, ue);
|
|
473
477
|
};
|
|
474
|
-
N(
|
|
475
|
-
(e(
|
|
478
|
+
N(At, (be) => {
|
|
479
|
+
(e(z).CustomRewardMessage || e(ke).length) && be(Lt);
|
|
476
480
|
});
|
|
477
481
|
}
|
|
478
482
|
a(lt), a(Pe);
|
|
479
|
-
var
|
|
483
|
+
var Re = y(Pe), Ue = o(Re);
|
|
480
484
|
let nt;
|
|
481
|
-
var
|
|
482
|
-
a(Ue), a(
|
|
483
|
-
var ot = y(
|
|
485
|
+
var Dt = o(Ue, !0);
|
|
486
|
+
a(Ue), a(Re);
|
|
487
|
+
var ot = y(Re), Mt = o(ot, !0);
|
|
484
488
|
a(ot), a(ye), D(
|
|
485
|
-
(be, ue,
|
|
489
|
+
(be, ue, Ee) => {
|
|
486
490
|
b(St, `${be ?? ""}
|
|
487
|
-
${e(
|
|
491
|
+
${e(z).OrderNumber + 1}`), nt = K(Ue, 1, "challenge-history__level-status svelte-or1pjf", null, nt, { failed: !e(W), completed: e(W) }), b(Dt, ue), b(Mt, Ee);
|
|
488
492
|
},
|
|
489
493
|
[
|
|
490
494
|
() => l()("level"),
|
|
491
|
-
() => l()(Fe[e(
|
|
492
|
-
() =>
|
|
495
|
+
() => l()(Fe[e(z).Status]),
|
|
496
|
+
() => cr(e(z).Time)
|
|
493
497
|
]
|
|
494
498
|
), p(q, ye);
|
|
495
499
|
}), a(at), a(et), a(je), a(F), D(
|
|
496
|
-
(q,
|
|
497
|
-
b(zt, q), b(
|
|
500
|
+
(q, z, W) => {
|
|
501
|
+
b(zt, q), b(Tt, z), b(It, W);
|
|
498
502
|
},
|
|
499
503
|
[
|
|
500
504
|
() => l()("level"),
|
|
@@ -503,29 +507,29 @@ function bt(h, r) {
|
|
|
503
507
|
]
|
|
504
508
|
), p(ae, F);
|
|
505
509
|
};
|
|
506
|
-
N(
|
|
507
|
-
e(ce) && ae(
|
|
510
|
+
N(kt, (ae) => {
|
|
511
|
+
e(ce) && ae(Et);
|
|
508
512
|
});
|
|
509
513
|
}
|
|
510
|
-
a(
|
|
511
|
-
Ze = K(de, 1, "challenge-history__item svelte-or1pjf", null, Ze, { expanded: e(ce) }),
|
|
512
|
-
}), p(M,
|
|
514
|
+
a(Ie), D(() => {
|
|
515
|
+
Ze = K(de, 1, "challenge-history__item svelte-or1pjf", null, Ze, { expanded: e(ce) }), ge(de, "aria-expanded", e(ce)), b(Ct, e(V).Name), $e = K(Ae, 1, "challenge-history__view-details-icon svelte-or1pjf", null, $e, { expanded: e(ce) });
|
|
516
|
+
}), p(M, Ie);
|
|
513
517
|
});
|
|
514
|
-
var fe = y(
|
|
518
|
+
var fe = y(R, 2);
|
|
515
519
|
{
|
|
516
520
|
var ie = (M) => {
|
|
517
|
-
|
|
521
|
+
Wt(M, {
|
|
518
522
|
get offset() {
|
|
519
523
|
return e($);
|
|
520
524
|
},
|
|
521
525
|
get limit() {
|
|
522
|
-
return e(
|
|
526
|
+
return e(G);
|
|
523
527
|
},
|
|
524
528
|
get total() {
|
|
525
|
-
return e(
|
|
529
|
+
return e(S);
|
|
526
530
|
},
|
|
527
531
|
get locale() {
|
|
528
|
-
return
|
|
532
|
+
return h();
|
|
529
533
|
},
|
|
530
534
|
get isMobile() {
|
|
531
535
|
return k();
|
|
@@ -534,7 +538,7 @@ function bt(h, r) {
|
|
|
534
538
|
});
|
|
535
539
|
};
|
|
536
540
|
N(fe, (M) => {
|
|
537
|
-
e(
|
|
541
|
+
e(S) > e(G) && M(ie);
|
|
538
542
|
});
|
|
539
543
|
}
|
|
540
544
|
p(A, Q);
|
|
@@ -542,17 +546,17 @@ function bt(h, r) {
|
|
|
542
546
|
N(
|
|
543
547
|
B,
|
|
544
548
|
(A) => {
|
|
545
|
-
e(
|
|
549
|
+
e(I).length ? A(Ce, !1) : A(Z);
|
|
546
550
|
},
|
|
547
551
|
!0
|
|
548
552
|
);
|
|
549
553
|
}
|
|
550
|
-
p(v,
|
|
554
|
+
p(v, H);
|
|
551
555
|
};
|
|
552
556
|
N(
|
|
553
|
-
|
|
557
|
+
E,
|
|
554
558
|
(v) => {
|
|
555
|
-
e(ee) ? v(
|
|
559
|
+
e(ee) ? v(O) : v(re, !1);
|
|
556
560
|
},
|
|
557
561
|
!0
|
|
558
562
|
);
|
|
@@ -563,13 +567,13 @@ function bt(h, r) {
|
|
|
563
567
|
e(te) ? t(ve) : t(me, !1);
|
|
564
568
|
});
|
|
565
569
|
}
|
|
566
|
-
a(n), D(() => X = K(n, 1, "challenge-history svelte-or1pjf", null, X, { anonymous: e(te) })), p(
|
|
567
|
-
var P = Xe(
|
|
570
|
+
a(n), D(() => X = K(n, 1, "challenge-history svelte-or1pjf", null, X, { anonymous: e(te) })), p(g, n);
|
|
571
|
+
var P = Xe(he);
|
|
568
572
|
return U(), P;
|
|
569
573
|
}
|
|
570
574
|
ut(["click"]);
|
|
571
575
|
Ke(
|
|
572
|
-
|
|
576
|
+
xt,
|
|
573
577
|
{
|
|
574
578
|
userSession: {},
|
|
575
579
|
locale: {},
|
|
@@ -585,7 +589,7 @@ Ke(
|
|
|
585
589
|
!0
|
|
586
590
|
);
|
|
587
591
|
if (typeof window < "u") {
|
|
588
|
-
let
|
|
592
|
+
let g = function(r) {
|
|
589
593
|
return function(...l) {
|
|
590
594
|
try {
|
|
591
595
|
return r.apply(this, l);
|
|
@@ -596,21 +600,21 @@ if (typeof window < "u") {
|
|
|
596
600
|
}
|
|
597
601
|
};
|
|
598
602
|
};
|
|
599
|
-
customElements.define =
|
|
603
|
+
customElements.define = g(customElements.define), import("./ChallengeHistory-CoTCstRV.js").then((r) => {
|
|
600
604
|
const l = r.default || r;
|
|
601
605
|
customElements.get("challenge-history") || customElements.define("challenge-history", l.element || l);
|
|
602
606
|
}).catch((r) => {
|
|
603
607
|
console.error("BOOT ERROR:", r);
|
|
604
608
|
});
|
|
605
609
|
}
|
|
606
|
-
var
|
|
607
|
-
const
|
|
610
|
+
var jr = j('<div class="player-challenges__tab-content svelte-kfnpxs"><!></div>');
|
|
611
|
+
const kr = {
|
|
608
612
|
hash: "svelte-kfnpxs",
|
|
609
613
|
code: ".player-challenges__tab-content.svelte-kfnpxs {width:100%;}"
|
|
610
614
|
};
|
|
611
|
-
function
|
|
612
|
-
Ye(r, !0), Je(
|
|
613
|
-
const l = c(r, "activeTab", 7), s = c(r, "challenges", 7), U = c(r, "endpoint", 7), f = c(r, "userSession", 7),
|
|
615
|
+
function Er(g, r) {
|
|
616
|
+
Ye(r, !0), Je(g, kr);
|
|
617
|
+
const l = c(r, "activeTab", 7), s = c(r, "challenges", 7), U = c(r, "endpoint", 7), f = c(r, "userSession", 7), h = c(r, "userId", 7), C = c(r, "domainId", 7), w = c(r, "locale", 7), T = c(r, "historyLimit", 7, 10), _ = c(r, "onViewDetails", 7), k = c(r, "isMobile", 7), x = u(() => Jt[l()]), I = u(() => !f() && !h()), S = u(() => e(x) ? s().getState(e(x)) : void 0), $ = u(() => {
|
|
614
618
|
switch (l()) {
|
|
615
619
|
case le.Promo:
|
|
616
620
|
return s().promoChallenges;
|
|
@@ -622,11 +626,11 @@ function kr(h, r) {
|
|
|
622
626
|
return [];
|
|
623
627
|
}
|
|
624
628
|
}), ee = () => {
|
|
625
|
-
e(x) && s().loadMore(e(x), e(
|
|
629
|
+
e(x) && s().loadMore(e(x), e(I));
|
|
626
630
|
}, L = (n) => {
|
|
627
|
-
e(x) && s().loadPage(e(x), e(
|
|
628
|
-
},
|
|
629
|
-
e(x) && s().load(e(x), e(
|
|
631
|
+
e(x) && s().loadPage(e(x), e(I), Math.floor(n / Ve));
|
|
632
|
+
}, G = () => {
|
|
633
|
+
e(x) && s().load(e(x), e(I));
|
|
630
634
|
};
|
|
631
635
|
var te = {
|
|
632
636
|
get activeTab() {
|
|
@@ -654,10 +658,10 @@ function kr(h, r) {
|
|
|
654
658
|
f(n), d();
|
|
655
659
|
},
|
|
656
660
|
get userId() {
|
|
657
|
-
return
|
|
661
|
+
return h();
|
|
658
662
|
},
|
|
659
663
|
set userId(n) {
|
|
660
|
-
|
|
664
|
+
h(n), d();
|
|
661
665
|
},
|
|
662
666
|
get domainId() {
|
|
663
667
|
return C();
|
|
@@ -672,10 +676,10 @@ function kr(h, r) {
|
|
|
672
676
|
w(n), d();
|
|
673
677
|
},
|
|
674
678
|
get historyLimit() {
|
|
675
|
-
return
|
|
679
|
+
return T();
|
|
676
680
|
},
|
|
677
681
|
set historyLimit(n = 10) {
|
|
678
|
-
|
|
682
|
+
T(n), d();
|
|
679
683
|
},
|
|
680
684
|
get onViewDetails() {
|
|
681
685
|
return _();
|
|
@@ -689,10 +693,10 @@ function kr(h, r) {
|
|
|
689
693
|
set isMobile(n) {
|
|
690
694
|
k(n), d();
|
|
691
695
|
}
|
|
692
|
-
}, J =
|
|
696
|
+
}, J = jr(), oe = o(J);
|
|
693
697
|
{
|
|
694
698
|
var se = (n) => {
|
|
695
|
-
|
|
699
|
+
bt(n, {
|
|
696
700
|
get endpoint() {
|
|
697
701
|
return U();
|
|
698
702
|
},
|
|
@@ -706,11 +710,11 @@ function kr(h, r) {
|
|
|
706
710
|
return w();
|
|
707
711
|
}
|
|
708
712
|
});
|
|
709
|
-
},
|
|
710
|
-
var X =
|
|
713
|
+
}, he = (n) => {
|
|
714
|
+
var X = ze(), pe = xe(X);
|
|
711
715
|
{
|
|
712
716
|
var ve = (P) => {
|
|
713
|
-
|
|
717
|
+
xt(P, {
|
|
714
718
|
get endpoint() {
|
|
715
719
|
return U();
|
|
716
720
|
},
|
|
@@ -718,7 +722,7 @@ function kr(h, r) {
|
|
|
718
722
|
return f();
|
|
719
723
|
},
|
|
720
724
|
get userId() {
|
|
721
|
-
return
|
|
725
|
+
return h();
|
|
722
726
|
},
|
|
723
727
|
get domainId() {
|
|
724
728
|
return C();
|
|
@@ -727,7 +731,7 @@ function kr(h, r) {
|
|
|
727
731
|
return w();
|
|
728
732
|
},
|
|
729
733
|
get limit() {
|
|
730
|
-
return
|
|
734
|
+
return T();
|
|
731
735
|
},
|
|
732
736
|
get isMobile() {
|
|
733
737
|
return k();
|
|
@@ -735,8 +739,8 @@ function kr(h, r) {
|
|
|
735
739
|
});
|
|
736
740
|
}, me = (P) => {
|
|
737
741
|
{
|
|
738
|
-
let t = u(() => e(
|
|
739
|
-
|
|
742
|
+
let t = u(() => e(S)?.loading ?? !1), i = u(() => e(S)?.hasMore ?? !1), E = u(() => l() === le.Promo), O = u(() => l() === le.Pending), re = u(() => e(S)?.totalCount ?? 0), v = u(() => (e(S)?.pageNumber ?? Yt) * Ve);
|
|
743
|
+
$t(P, {
|
|
740
744
|
get challenges() {
|
|
741
745
|
return e($);
|
|
742
746
|
},
|
|
@@ -750,10 +754,10 @@ function kr(h, r) {
|
|
|
750
754
|
return s().pausedChallengeIds;
|
|
751
755
|
},
|
|
752
756
|
get isPromo() {
|
|
753
|
-
return e(
|
|
757
|
+
return e(E);
|
|
754
758
|
},
|
|
755
759
|
get isPending() {
|
|
756
|
-
return e(
|
|
760
|
+
return e(O);
|
|
757
761
|
},
|
|
758
762
|
get total() {
|
|
759
763
|
return e(re);
|
|
@@ -766,8 +770,8 @@ function kr(h, r) {
|
|
|
766
770
|
},
|
|
767
771
|
onPageChange: L,
|
|
768
772
|
onLoadMore: ee,
|
|
769
|
-
onStatusChange: (
|
|
770
|
-
onClaimed:
|
|
773
|
+
onStatusChange: (H, B) => s().patchProgress(H, { Status: B }),
|
|
774
|
+
onClaimed: G,
|
|
771
775
|
get onViewDetails() {
|
|
772
776
|
return _();
|
|
773
777
|
},
|
|
@@ -778,7 +782,7 @@ function kr(h, r) {
|
|
|
778
782
|
return f();
|
|
779
783
|
},
|
|
780
784
|
get userId() {
|
|
781
|
-
return
|
|
785
|
+
return h();
|
|
782
786
|
},
|
|
783
787
|
get domainId() {
|
|
784
788
|
return C();
|
|
@@ -803,13 +807,13 @@ function kr(h, r) {
|
|
|
803
807
|
p(n, X);
|
|
804
808
|
};
|
|
805
809
|
N(oe, (n) => {
|
|
806
|
-
l() === le.Code ? n(se) : n(
|
|
810
|
+
l() === le.Code ? n(se) : n(he, !1);
|
|
807
811
|
});
|
|
808
812
|
}
|
|
809
|
-
return a(J), p(
|
|
813
|
+
return a(J), p(g, J), Xe(te);
|
|
810
814
|
}
|
|
811
815
|
Ke(
|
|
812
|
-
|
|
816
|
+
Er,
|
|
813
817
|
{
|
|
814
818
|
activeTab: {},
|
|
815
819
|
challenges: {},
|
|
@@ -827,7 +831,7 @@ Ke(
|
|
|
827
831
|
!0
|
|
828
832
|
);
|
|
829
833
|
export {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
834
|
+
bt as C,
|
|
835
|
+
xt as a,
|
|
836
|
+
Er as b
|
|
833
837
|
};
|