@everymatrix/player-challenges 0.1.15 → 0.1.19
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-D0LpsufV.cjs → ArrowLeftIcon-BEURnjpJ.cjs} +1 -1
- package/components/{ArrowLeftIcon-De_oE6VJ.js → ArrowLeftIcon-DN6e9luu.js} +1 -1
- package/components/Badge-BEjEww7C.cjs +9 -0
- package/components/Badge-DSBvI-B9.js +138 -0
- package/components/{Button-CU8n8iLn.cjs → Button-Bvh3WQSZ.cjs} +2 -2
- package/components/{Button-CqWi35Id.js → Button-ewgCN0Ji.js} +17 -17
- package/components/ChallengeBanner-E82laAQ0.js +103 -0
- package/components/ChallengeBanner-WwVvI1Uu.cjs +30 -0
- package/components/{ChallengeBreadcrumbs-0C1qzQmn.js → ChallengeBreadcrumbs-BtOwj4Jl.js} +7 -7
- package/components/ChallengeBreadcrumbs-SeC9192i.cjs +1 -0
- package/components/{ChallengeCard-yUSt6Ocz.js → ChallengeCard-BZ8CZvgE.js} +6 -6
- package/components/{ChallengeCard-3915Vdd8.cjs → ChallengeCard-Zj92mrKO.cjs} +1 -1
- package/components/{ChallengeClaimCode-BUD6Bszw.cjs → ChallengeClaimCode-BXn91GDr.cjs} +1 -1
- package/components/{ChallengeClaimCode-D-skzCq6.js → ChallengeClaimCode-CeM2Z6p6.js} +2 -2
- package/components/{ChallengeDetails-C5WUrhPo.js → ChallengeDetails-B5AHPIQM.js} +2 -2
- package/components/{ChallengeDetails-D74Ki1Uz.cjs → ChallengeDetails-BVoZJVVL.cjs} +1 -1
- package/components/ChallengeDetailsSkeleton-CdG_rSGQ.js +138 -0
- package/components/ChallengeDetailsSkeleton-u24ioQh6.cjs +20 -0
- package/components/{ChallengeEvents-U5YbNMZ6.cjs → ChallengeEvents-7BMohfz-.cjs} +1 -1
- package/components/{ChallengeEvents-CXxvU73L.js → ChallengeEvents-DkdwGm5z.js} +16 -16
- package/components/ChallengeGames-BvHQAgRm.js +135 -0
- package/components/ChallengeGames-hnPYCbOH.cjs +14 -0
- package/components/{ChallengeHistory-BveIKX6m.js → ChallengeHistory-C0lhKrpA.js} +12 -12
- package/components/ChallengeHistory-DoXcpVtR.cjs +1 -0
- package/components/ChallengeLevels-BpGMpkdK.cjs +8 -0
- package/components/ChallengeLevels-CmLntQ0a.js +314 -0
- package/components/ChallengeList-DWrRtGZ6.cjs +47 -0
- package/components/{ChallengeList-P4I4Dp10.js → ChallengeList-Dztxku3t.js} +608 -547
- package/components/{ChallengeProgress-BxkeK6qN.js → ChallengeProgress-BPSQNZFN.js} +10 -10
- package/components/{ChallengeProgress-BpkQJwJK.cjs → ChallengeProgress-vtUcMyKL.cjs} +1 -1
- package/components/{ChallengeProgressItem-DHghH0Re.js → ChallengeProgressItem-3A5VPooB.js} +239 -223
- package/components/ChallengeProgressItem-bSzmG8l2.cjs +69 -0
- package/components/ChallengeRules-VFOXD1ge.cjs +1 -0
- package/components/ChallengeRules-YzymE0DQ.js +161 -0
- package/components/ChallengeSummary-D6OJ_aBt.cjs +1 -0
- package/components/ChallengeSummary-rhsO5YE0.js +205 -0
- package/components/ChallengeTabContent-2kOyabcA.js +779 -0
- package/components/ChallengeTabContent-BmBcztk_.cjs +16 -0
- package/components/{ChallengeTabPanel-Rci3HLu2.js → ChallengeTabPanel-CqwPtmvo.js} +47 -44
- package/components/ChallengeTabPanel-D_brgA-W.cjs +1 -0
- package/components/ChallengeTabs-Bkx7hDSs.cjs +14 -0
- package/components/ChallengeTabs-DrR1HXiu.js +8749 -0
- package/components/{CheckIcon-CxbYr1xp.cjs → CheckIcon-DeZrzQxv.cjs} +1 -1
- package/components/{CheckIcon-D4lHKEA2.js → CheckIcon-DlNpzYWO.js} +1 -1
- package/components/{ChevronIcon-CRAlhZkw.js → ChevronIcon-BLforcQh.js} +1 -1
- package/components/{ChevronIcon-BAMpEJGd.cjs → ChevronIcon-Bx8g9KW1.cjs} +1 -1
- package/components/ChipIcon-BIaydmmL.js +26 -0
- package/components/ChipIcon-kKYQ4DVa.cjs +1 -0
- package/components/ChipShineIcon-BhJxc-7o.cjs +1 -0
- package/components/ChipShineIcon-x_PFBpiC.js +28 -0
- package/components/{ExistIcon-Dto-bbDy.cjs → ExistIcon--rtolulO.cjs} +1 -1
- package/components/{ExistIcon-MA116zUI.js → ExistIcon-eNMDxHqT.js} +1 -1
- package/components/{GiftIcon-Co84y9Go.js → GiftIcon-B0dDFiN1.js} +14 -14
- package/components/{GiftIcon-Cd5b3K-t.cjs → GiftIcon-BEczx5al.cjs} +1 -1
- package/components/{LinkIcon-pV2v0CrL.js → LinkIcon-B1a0ukPT.js} +1 -1
- package/components/{LinkIcon-Bwgy8Luj.cjs → LinkIcon-D8SAcoU1.cjs} +1 -1
- package/components/{LockIcon-CzobKbeF.js → LockIcon-B96T_uuy.js} +1 -1
- package/components/{LockIcon-BYYuZI1_.cjs → LockIcon-C0YL_dFy.cjs} +1 -1
- package/components/Pagination-BACM981T.js +113 -0
- package/components/Pagination-Xk727E7v.cjs +4 -0
- package/components/PlayerChallenges-T3zWVcYA.cjs +1 -0
- package/components/PlayerChallenges-r9ozrIGW.js +437 -0
- package/components/{StarIcon-D_ixyTtO.js → StarIcon-BcWj-wRN.js} +1 -1
- package/components/{StarIcon-tdfCGCXl.cjs → StarIcon-D891Qux1.cjs} +1 -1
- package/components/{TargetIcon-Cw-ZoTaW.js → TargetIcon-Bv2zPej6.js} +14 -14
- package/components/{TargetIcon-BGcVQbCs.cjs → TargetIcon-CCXuJUbZ.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/Badge-C2_vCRtE.js +0 -130
- package/components/Badge-r78wWqnE.cjs +0 -7
- package/components/ChallengeBanner-CBWAGiMi.cjs +0 -4
- package/components/ChallengeBanner-oDSEjGGf.js +0 -57
- package/components/ChallengeBreadcrumbs-B1QPZ9Ub.cjs +0 -1
- package/components/ChallengeGames-BVIMhW8b.cjs +0 -11
- package/components/ChallengeGames-CLISWWUl.js +0 -133
- package/components/ChallengeHistory-DDWHc60D.cjs +0 -1
- package/components/ChallengeLevels-Dqz1Jroz.cjs +0 -8
- package/components/ChallengeLevels-EESudJez.js +0 -292
- package/components/ChallengeList-Bby_g4Z8.cjs +0 -20
- package/components/ChallengeProgressItem-YsHk5ITp.cjs +0 -68
- package/components/ChallengeRules-CoGa-G4a.cjs +0 -1
- package/components/ChallengeRules-D7Q6JUd5.js +0 -173
- package/components/ChallengeSummary-Bu4cCk0T.js +0 -222
- package/components/ChallengeSummary-CcneZ-_H.cjs +0 -1
- package/components/ChallengeTabContent--jk6IZ9p.js +0 -794
- package/components/ChallengeTabContent-D3ghO0QX.cjs +0 -12
- package/components/ChallengeTabPanel-wgd02Iii.cjs +0 -1
- package/components/ChallengeTabSkeleton-B-MQHvwC.js +0 -91
- package/components/ChallengeTabSkeleton-CuGIFm8O.cjs +0 -15
- package/components/ChallengeTabs-BtbgPMyA.cjs +0 -14
- package/components/ChallengeTabs-nR_tQGbd.js +0 -8607
- package/components/Pagination-BgeAkkYm.js +0 -130
- package/components/Pagination-vup1vCrG.cjs +0 -12
- package/components/PlayerChallenges-C703Qu2L.cjs +0 -1
- package/components/PlayerChallenges-htqi9P1E.js +0 -395
|
@@ -1,794 +0,0 @@
|
|
|
1
|
-
import { g as lt, c as Ue, d as Ge, h as Oe, p as d, u as nt, q as ot, aj as st, ap as it, v as Re, D as ct, ay as St, z as Z, t as P, a as C, b as Be, k as E, e as u, m as dt, n, A as e, r as a, B as F, C as g, o as y, az as At, i as b, aA as Lt, s as oe, j as xe, l as ut, $ as gt, w as q, E as m, aB as Dt, a6 as Mt, a7 as et, a8 as Nt, a9 as Pt, aC as re, aD as Ht, x as tt, ag as Me, aE as Rt, P as Ut, H as rt, U as Ne, aF as te, aG as Pe, aH as Gt, aI as Ot } from "./ChallengeTabs-nR_tQGbd.js";
|
|
2
|
-
import { C as Bt } from "./ChevronIcon-CRAlhZkw.js";
|
|
3
|
-
import { G as Vt } from "./GiftIcon-Co84y9Go.js";
|
|
4
|
-
import { L as Ft } from "./LinkIcon-pV2v0CrL.js";
|
|
5
|
-
import { P as qt } from "./Pagination-BgeAkkYm.js";
|
|
6
|
-
import { C as Kt } from "./ChallengeList-P4I4Dp10.js";
|
|
7
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
|
-
}, globalThis.customElements = { define() {
|
|
9
|
-
}, get() {
|
|
10
|
-
}, whenDefined() {
|
|
11
|
-
} });
|
|
12
|
-
const Yt = {
|
|
13
|
-
en: {
|
|
14
|
-
applyCode: "Apply Code",
|
|
15
|
-
claimCodeTitle: "Enter the secret code to unlock hidden quests and rewards.",
|
|
16
|
-
claimCodeRuleText: "3-30 characters, no spaces",
|
|
17
|
-
claimCodePlaceholder: "e.g. CHALLENGES",
|
|
18
|
-
claimCodeAnonymous: "You must be logged in to claim a code."
|
|
19
|
-
},
|
|
20
|
-
tr: {
|
|
21
|
-
applyCode: "Kodu Uygula",
|
|
22
|
-
claimCodeTitle: "Gizli görevlerin ve ödüllerin kilidini açmak için gizli kodu girin.",
|
|
23
|
-
claimCodeRuleText: "3-30 karakter, boşluk yok",
|
|
24
|
-
claimCodePlaceholder: "örn. CHALLENGES",
|
|
25
|
-
claimCodeAnonymous: "Bir kod talep etmek için giriş yapmalısınız."
|
|
26
|
-
},
|
|
27
|
-
da: {
|
|
28
|
-
applyCode: "Anvend kode",
|
|
29
|
-
claimCodeTitle: "Indtast den hemmelige kode for at låse skjulte missioner og belønninger op.",
|
|
30
|
-
claimCodeRuleText: "3-30 tegn, ingen mellemrum",
|
|
31
|
-
claimCodePlaceholder: "f.eks. CHALLENGES",
|
|
32
|
-
claimCodeAnonymous: "Du skal være logget ind for at kræve en kode."
|
|
33
|
-
},
|
|
34
|
-
de: {
|
|
35
|
-
applyCode: "Code anwenden",
|
|
36
|
-
claimCodeTitle: "Gib den Geheimcode ein, um versteckte Aufgaben und Belohnungen freizuschalten.",
|
|
37
|
-
claimCodeRuleText: "3-30 Zeichen, keine Leerzeichen",
|
|
38
|
-
claimCodePlaceholder: "z.B. CHALLENGES",
|
|
39
|
-
claimCodeAnonymous: "Du musst eingeloggt sein, um einen Code einzulösen."
|
|
40
|
-
},
|
|
41
|
-
nl: {
|
|
42
|
-
applyCode: "Code toepassen",
|
|
43
|
-
claimCodeTitle: "Voer de geheime code in om verborgen missies en beloningen te ontgrendelen.",
|
|
44
|
-
claimCodeRuleText: "3-30 tekens, geen spaties",
|
|
45
|
-
claimCodePlaceholder: "bijv. CHALLENGES",
|
|
46
|
-
claimCodeAnonymous: "Je moet ingelogd zijn om een code te claimen."
|
|
47
|
-
},
|
|
48
|
-
fr: {
|
|
49
|
-
applyCode: "Appliquer le code",
|
|
50
|
-
claimCodeTitle: "Entrez le code secret pour débloquer des quêtes cachées et des récompenses.",
|
|
51
|
-
claimCodeRuleText: "3-30 caractères, sans espace",
|
|
52
|
-
claimCodePlaceholder: "ex. CHALLENGES",
|
|
53
|
-
claimCodeAnonymous: "Vous devez être connecté pour réclamer un code."
|
|
54
|
-
},
|
|
55
|
-
hu: {
|
|
56
|
-
applyCode: "Kód alkalmazása",
|
|
57
|
-
claimCodeTitle: "Add meg a titkos kódot a rejtett küldetések és jutalmak feloldásához.",
|
|
58
|
-
claimCodeRuleText: "3-30 karakter, szóköz nélkül",
|
|
59
|
-
claimCodePlaceholder: "pl. CHALLENGES",
|
|
60
|
-
claimCodeAnonymous: "Be kell jelentked a kód igényléséhez."
|
|
61
|
-
}
|
|
62
|
-
}, Jt = 3, at = 30, Xt = /^[\x21-\x7E]+$/, Zt = 200;
|
|
63
|
-
var Qt = E('<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>'), Wt = E('<p class="challenge-claim-code__anonymous svelte-1hz4cfc"> </p>'), $t = E("<div><!></div>");
|
|
64
|
-
const er = {
|
|
65
|
-
hash: "svelte-1hz4cfc",
|
|
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));}}
|
|
67
|
-
@media (max-width: 767px) {.challenge-claim-code.svelte-1hz4cfc {margin-top:20px;}
|
|
68
|
-
}.challenge-claim-code.anonymous.svelte-1hz4cfc {padding:32px 12px;text-align:center;margin:0;}`
|
|
69
|
-
};
|
|
70
|
-
function ht(h, t) {
|
|
71
|
-
Ge(t, !0), Oe(h, er);
|
|
72
|
-
const l = () => ut(gt, "$_", i), [i, U] = dt(), f = d(t, "endpoint", 7), p = d(t, "userSession", 7), w = d(t, "locale", 7, "en"), j = d(t, "translationUrl", 7), S = d(t, "domainId", 7);
|
|
73
|
-
nt(() => ot(w(), Yt)), st(() => {
|
|
74
|
-
j() && it(j(), "challenge-claim-code");
|
|
75
|
-
}), Re(() => {
|
|
76
|
-
ct(w() || "en");
|
|
77
|
-
});
|
|
78
|
-
let _ = q(""), z = q(null), x = q(!1), A = q(!1), L;
|
|
79
|
-
const Q = (s) => s.length >= Jt && s.length <= at && Xt.test(s), W = g(() => Q(e(_))), M = g(() => e(A) || !!e(z)), G = g(() => !!f() && !!p() && !!S()), $ = g(() => e(W) && !e(x) && e(G)), K = g(() => !p()), ae = (s) => {
|
|
80
|
-
m(_, s.target.value, !0), m(z, null), clearTimeout(L), L = setTimeout(
|
|
81
|
-
() => {
|
|
82
|
-
m(A, !!e(_) && !Q(e(_)), !0);
|
|
83
|
-
},
|
|
84
|
-
Zt
|
|
85
|
-
);
|
|
86
|
-
}, le = async () => {
|
|
87
|
-
if (e($)) {
|
|
88
|
-
m(x, !0), m(z, null);
|
|
89
|
-
try {
|
|
90
|
-
await Dt({
|
|
91
|
-
endpoint: f(),
|
|
92
|
-
domainId: S(),
|
|
93
|
-
sessionId: p(),
|
|
94
|
-
code: e(_)
|
|
95
|
-
}), m(_, ""), m(A, !1), Mt(et.Claim);
|
|
96
|
-
} catch (s) {
|
|
97
|
-
const D = s instanceof Nt ? s.errorCode : null, r = s instanceof Error ? s.message : String(s);
|
|
98
|
-
m(z, r, !0), Pt(et.Claim, r, D ?? void 0);
|
|
99
|
-
} finally {
|
|
100
|
-
m(x, !1);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
St(() => clearTimeout(L));
|
|
105
|
-
var se = {
|
|
106
|
-
get endpoint() {
|
|
107
|
-
return f();
|
|
108
|
-
},
|
|
109
|
-
set endpoint(s) {
|
|
110
|
-
f(s), u();
|
|
111
|
-
},
|
|
112
|
-
get userSession() {
|
|
113
|
-
return p();
|
|
114
|
-
},
|
|
115
|
-
set userSession(s) {
|
|
116
|
-
p(s), u();
|
|
117
|
-
},
|
|
118
|
-
get locale() {
|
|
119
|
-
return w();
|
|
120
|
-
},
|
|
121
|
-
set locale(s = "en") {
|
|
122
|
-
w(s), u();
|
|
123
|
-
},
|
|
124
|
-
get translationUrl() {
|
|
125
|
-
return j();
|
|
126
|
-
},
|
|
127
|
-
set translationUrl(s) {
|
|
128
|
-
j(s), u();
|
|
129
|
-
},
|
|
130
|
-
get domainId() {
|
|
131
|
-
return S();
|
|
132
|
-
},
|
|
133
|
-
set domainId(s) {
|
|
134
|
-
S(s), u();
|
|
135
|
-
}
|
|
136
|
-
}, H = $t();
|
|
137
|
-
let o;
|
|
138
|
-
var ie = n(H);
|
|
139
|
-
{
|
|
140
|
-
var ce = (s) => {
|
|
141
|
-
var D = Qt(), r = n(D), c = n(r, !0);
|
|
142
|
-
a(r);
|
|
143
|
-
var T = y(r, 2), v = n(T);
|
|
144
|
-
At(v);
|
|
145
|
-
let Y;
|
|
146
|
-
var k = y(v, 2);
|
|
147
|
-
let N;
|
|
148
|
-
var J = n(k, !0);
|
|
149
|
-
a(k), a(T);
|
|
150
|
-
var O = y(T, 2), ge = n(O, !0);
|
|
151
|
-
a(O), a(D), P(
|
|
152
|
-
(R, fe, he, we) => {
|
|
153
|
-
b(c, R), Y = F(v, 1, "challenge-claim-code__input svelte-1hz4cfc", null, Y, { errored: e(M) }), Lt(v, e(_)), oe(v, "maxlength", at), oe(v, "placeholder", fe), oe(v, "aria-invalid", e(M)), N = F(k, 1, "challenge-claim-code__rule svelte-1hz4cfc", null, N, { errored: e(M) }), b(J, he), O.disabled = !e($), b(ge, we);
|
|
154
|
-
},
|
|
155
|
-
[
|
|
156
|
-
() => l()("claimCodeTitle"),
|
|
157
|
-
() => l()("claimCodePlaceholder"),
|
|
158
|
-
() => e(z) ?? l()("claimCodeRuleText"),
|
|
159
|
-
() => l()("applyCode")
|
|
160
|
-
]
|
|
161
|
-
), xe("input", v, ae), xe("keydown", v, (R) => R.key === "Enter" && le()), xe("click", O, le), C(s, D);
|
|
162
|
-
}, de = (s) => {
|
|
163
|
-
var D = Wt(), r = n(D, !0);
|
|
164
|
-
a(D), P((c) => b(r, c), [() => l()("claimCodeAnonymous")]), C(s, D);
|
|
165
|
-
};
|
|
166
|
-
Z(ie, (s) => {
|
|
167
|
-
e(K) ? s(de, -1) : s(ce);
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
a(H), P(() => o = F(H, 1, "challenge-claim-code svelte-1hz4cfc", null, o, { anonymous: e(K) })), C(h, H);
|
|
171
|
-
var ue = Be(se);
|
|
172
|
-
return U(), ue;
|
|
173
|
-
}
|
|
174
|
-
lt(["input", "keydown", "click"]);
|
|
175
|
-
Ue(
|
|
176
|
-
ht,
|
|
177
|
-
{
|
|
178
|
-
endpoint: {},
|
|
179
|
-
userSession: {},
|
|
180
|
-
locale: {},
|
|
181
|
-
translationUrl: {},
|
|
182
|
-
domainId: {}
|
|
183
|
-
},
|
|
184
|
-
[],
|
|
185
|
-
[],
|
|
186
|
-
{ mode: "open" }
|
|
187
|
-
);
|
|
188
|
-
if (typeof window < "u") {
|
|
189
|
-
let h = function(t) {
|
|
190
|
-
return function(...l) {
|
|
191
|
-
try {
|
|
192
|
-
return t.apply(this, l);
|
|
193
|
-
} catch (i) {
|
|
194
|
-
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"))
|
|
195
|
-
return !1;
|
|
196
|
-
throw i;
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
customElements.define = h(customElements.define), import("./ChallengeClaimCode-D-skzCq6.js").then((t) => {
|
|
201
|
-
const l = t.default || t;
|
|
202
|
-
customElements.get("challenge-claim-code") || customElements.define("challenge-claim-code", l.element || l);
|
|
203
|
-
}).catch((t) => {
|
|
204
|
-
console.error("BOOT ERROR:", t);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
const tr = {
|
|
208
|
-
en: {
|
|
209
|
-
historyEmptyTitle: "No challenge history yet",
|
|
210
|
-
historyEmptyDescription: "Completed and expired challenges will show up here.",
|
|
211
|
-
historyAnonymous: "Log in to view your history."
|
|
212
|
-
},
|
|
213
|
-
tr: {
|
|
214
|
-
historyEmptyTitle: "Henüz hiçbir görev geçmişi yok",
|
|
215
|
-
historyEmptyDescription: "Tamamlanan ve süresi dolan görevler burada görünecek.",
|
|
216
|
-
historyAnonymous: "Geçmişinizi görmek için giriş yapın."
|
|
217
|
-
},
|
|
218
|
-
da: {
|
|
219
|
-
historyEmptyTitle: "Ingen udfordringshistorik endnu",
|
|
220
|
-
historyEmptyDescription: "Fuldførte og udløbne udfordringer vil blive vist her.",
|
|
221
|
-
historyAnonymous: "Log ind for at se din historik."
|
|
222
|
-
},
|
|
223
|
-
de: {
|
|
224
|
-
historyEmptyTitle: "Noch keine Herausforderungshistorie",
|
|
225
|
-
historyEmptyDescription: "Abgeschlossene und abgelaufene Herausforderungen werden hier angezeigt.",
|
|
226
|
-
historyAnonymous: "Melden Sie sich an, um Ihre Historie anzuzeigen."
|
|
227
|
-
},
|
|
228
|
-
nl: {
|
|
229
|
-
historyEmptyTitle: "Nog geen uitdaginggeschiedenis",
|
|
230
|
-
historyEmptyDescription: "Voltooide en verlopen uitdagingen verschijnen hier.",
|
|
231
|
-
historyAnonymous: "Log in om uw geschiedenis te bekijken."
|
|
232
|
-
},
|
|
233
|
-
fr: {
|
|
234
|
-
historyEmptyTitle: "Aucun historique de défi pour le moment",
|
|
235
|
-
historyEmptyDescription: "Les défis terminés et expirés apparaîtront ici.",
|
|
236
|
-
historyAnonymous: "Connectez-vous pour voir votre historique."
|
|
237
|
-
},
|
|
238
|
-
hu: {
|
|
239
|
-
historyEmptyTitle: "Még nincs kihívási előzmény",
|
|
240
|
-
historyEmptyDescription: "Befejezett és lejárt kihívások itt jelennek meg.",
|
|
241
|
-
historyAnonymous: "Jelentkezzen be, hogy lássa az előzményeit."
|
|
242
|
-
}
|
|
243
|
-
}, He = {
|
|
244
|
-
[re.Completed]: "completed",
|
|
245
|
-
[re.Expired]: "expired",
|
|
246
|
-
[re.Forfeited]: "forfeited"
|
|
247
|
-
}, rr = (h) => Ht(h, "DD/MM/YY HH:mm"), Ce = (h) => h.Status === re.Completed, ar = (h) => {
|
|
248
|
-
const t = h.Levels ?? [];
|
|
249
|
-
if (!t.length)
|
|
250
|
-
return null;
|
|
251
|
-
if (t.every(Ce))
|
|
252
|
-
return re.Completed;
|
|
253
|
-
const l = t[t.length - 1];
|
|
254
|
-
return Ce(l) ? t.filter((i) => !Ce(i)).pop()?.Status ?? re.Completed : l.Status;
|
|
255
|
-
}, lr = (h) => Object.values(h ?? {}).map((t) => t?.RewardDescription).filter((t) => !!t);
|
|
256
|
-
var nr = E('<p class="challenge-history__anonymous svelte-or1pjf"> </p>'), or = E('<div class="challenge-history__skeleton svelte-or1pjf"></div>'), sr = E('<div class="challenge-history__empty svelte-or1pjf"><b class="svelte-or1pjf"> </b> <span class="svelte-or1pjf"> </span></div>'), ir = E("<span> </span>"), cr = E('<a target="_blank" rel="noopener noreferrer" class="challenge-history__terms--link svelte-or1pjf"> <!></a>'), dr = E('<div><span class="challenge-history__level-item--icon svelte-or1pjf"><!></span> <span class="challenge-history__level--info-value svelte-or1pjf"> </span></div>'), ur = E('<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>'), gr = E('<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>'), hr = E('<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>'), pr = E("<!> <!>", 1), vr = E("<div><!></div>");
|
|
257
|
-
const mr = {
|
|
258
|
-
hash: "svelte-or1pjf",
|
|
259
|
-
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));
|
|
260
|
-
animation: svelte-or1pjf-challenge-history-pulse 1.2s ease-in-out infinite;}
|
|
261
|
-
|
|
262
|
-
@keyframes svelte-or1pjf-challenge-history-pulse {
|
|
263
|
-
50% {
|
|
264
|
-
opacity: 0.5;
|
|
265
|
-
}
|
|
266
|
-
}.challenge-history__anonymous.svelte-or1pjf,
|
|
267
|
-
.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;}`
|
|
268
|
-
};
|
|
269
|
-
function pt(h, t) {
|
|
270
|
-
Ge(t, !0), Oe(h, mr);
|
|
271
|
-
const l = () => ut(gt, "$_", i), [i, U] = dt(), f = d(t, "userSession", 7), p = d(t, "locale", 7, "en"), w = d(t, "translationUrl", 7), j = d(t, "endpoint", 7), S = d(t, "domainId", 7), _ = d(t, "userId", 7), z = d(t, "isMobile", 7, !0), x = d(t, "limit", 7, Me);
|
|
272
|
-
nt(() => ot(p(), tr)), st(() => {
|
|
273
|
-
w() && it(w(), "challenge-history");
|
|
274
|
-
}), Re(() => {
|
|
275
|
-
ct(p() || "en");
|
|
276
|
-
});
|
|
277
|
-
let A = q(tt([])), L = q(0), Q = q(0), W = q(!1), M = q(tt([]));
|
|
278
|
-
const G = g(() => Number(x()) || Me), $ = g(() => !f() && !_()), K = [0, 1, 2, 3], ae = async (r) => {
|
|
279
|
-
m(W, !0);
|
|
280
|
-
try {
|
|
281
|
-
const c = await Rt({
|
|
282
|
-
endpoint: j(),
|
|
283
|
-
domainId: S(),
|
|
284
|
-
userId: _(),
|
|
285
|
-
sessionId: f(),
|
|
286
|
-
locale: p(),
|
|
287
|
-
pageNumber: Math.floor(r / e(G)),
|
|
288
|
-
pageSize: e(G),
|
|
289
|
-
isFutureAvailable: !0
|
|
290
|
-
});
|
|
291
|
-
m(A, c.Data ?? [], !0), m(L, c.TotalItem ?? e(A).length, !0), m(Q, r, !0), m(M, [], !0);
|
|
292
|
-
} catch (c) {
|
|
293
|
-
console.error("challenge-history: failed to load history", c), m(A, [], !0), m(L, 0);
|
|
294
|
-
} finally {
|
|
295
|
-
m(W, !1);
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
Re(() => {
|
|
299
|
-
const r = {
|
|
300
|
-
endpoint: j(),
|
|
301
|
-
domainId: S(),
|
|
302
|
-
userId: _(),
|
|
303
|
-
userSession: f(),
|
|
304
|
-
locale: p(),
|
|
305
|
-
pageSize: e(G)
|
|
306
|
-
};
|
|
307
|
-
!r.endpoint || !r.userId || ae(0);
|
|
308
|
-
});
|
|
309
|
-
const le = (r) => {
|
|
310
|
-
m(
|
|
311
|
-
M,
|
|
312
|
-
e(M).includes(r) ? e(M).filter((c) => c !== r) : [...e(M), r],
|
|
313
|
-
!0
|
|
314
|
-
);
|
|
315
|
-
};
|
|
316
|
-
var se = {
|
|
317
|
-
get userSession() {
|
|
318
|
-
return f();
|
|
319
|
-
},
|
|
320
|
-
set userSession(r) {
|
|
321
|
-
f(r), u();
|
|
322
|
-
},
|
|
323
|
-
get locale() {
|
|
324
|
-
return p();
|
|
325
|
-
},
|
|
326
|
-
set locale(r = "en") {
|
|
327
|
-
p(r), u();
|
|
328
|
-
},
|
|
329
|
-
get translationUrl() {
|
|
330
|
-
return w();
|
|
331
|
-
},
|
|
332
|
-
set translationUrl(r) {
|
|
333
|
-
w(r), u();
|
|
334
|
-
},
|
|
335
|
-
get endpoint() {
|
|
336
|
-
return j();
|
|
337
|
-
},
|
|
338
|
-
set endpoint(r) {
|
|
339
|
-
j(r), u();
|
|
340
|
-
},
|
|
341
|
-
get domainId() {
|
|
342
|
-
return S();
|
|
343
|
-
},
|
|
344
|
-
set domainId(r) {
|
|
345
|
-
S(r), u();
|
|
346
|
-
},
|
|
347
|
-
get userId() {
|
|
348
|
-
return _();
|
|
349
|
-
},
|
|
350
|
-
set userId(r) {
|
|
351
|
-
_(r), u();
|
|
352
|
-
},
|
|
353
|
-
get isMobile() {
|
|
354
|
-
return z();
|
|
355
|
-
},
|
|
356
|
-
set isMobile(r = !0) {
|
|
357
|
-
z(r), u();
|
|
358
|
-
},
|
|
359
|
-
get limit() {
|
|
360
|
-
return x();
|
|
361
|
-
},
|
|
362
|
-
set limit(r = Me) {
|
|
363
|
-
x(r), u();
|
|
364
|
-
}
|
|
365
|
-
}, H = vr();
|
|
366
|
-
let o;
|
|
367
|
-
var ie = n(H);
|
|
368
|
-
{
|
|
369
|
-
var ce = (r) => {
|
|
370
|
-
var c = nr(), T = n(c, !0);
|
|
371
|
-
a(c), P((v) => b(T, v), [() => l()("historyAnonymous")]), C(r, c);
|
|
372
|
-
}, de = (r) => {
|
|
373
|
-
var c = Ut(), T = rt(c);
|
|
374
|
-
Ne(T, 16, () => K, (v) => v, (v, Y) => {
|
|
375
|
-
var k = or();
|
|
376
|
-
C(v, k);
|
|
377
|
-
}), C(r, c);
|
|
378
|
-
}, ue = (r) => {
|
|
379
|
-
var c = sr(), T = n(c), v = n(T, !0);
|
|
380
|
-
a(T);
|
|
381
|
-
var Y = y(T, 2), k = n(Y, !0);
|
|
382
|
-
a(Y), a(c), P(
|
|
383
|
-
(N, J) => {
|
|
384
|
-
b(v, N), b(k, J);
|
|
385
|
-
},
|
|
386
|
-
[
|
|
387
|
-
() => l()("historyEmptyTitle"),
|
|
388
|
-
() => l()("historyEmptyDescription")
|
|
389
|
-
]
|
|
390
|
-
), C(r, c);
|
|
391
|
-
}, s = (r) => {
|
|
392
|
-
var c = pr(), T = rt(c);
|
|
393
|
-
Ne(T, 17, () => e(A), (k) => k.ProgressId, (k, N) => {
|
|
394
|
-
const J = g(() => e(M).includes(e(N).ProgressId)), O = g(() => ar(e(N)));
|
|
395
|
-
var ge = hr(), R = n(ge);
|
|
396
|
-
let fe;
|
|
397
|
-
var he = n(R), we = n(he, !0);
|
|
398
|
-
a(he);
|
|
399
|
-
var Ve = y(he, 2), Fe = n(Ve);
|
|
400
|
-
{
|
|
401
|
-
var vt = (ee) => {
|
|
402
|
-
var B = ir();
|
|
403
|
-
let pe;
|
|
404
|
-
var ke = n(B, !0);
|
|
405
|
-
a(B), P(
|
|
406
|
-
(_e) => {
|
|
407
|
-
pe = F(B, 1, "challenge-history__item--status svelte-or1pjf", null, pe, {
|
|
408
|
-
failed: e(O) !== re.Completed
|
|
409
|
-
}), oe(B, "data-status", He[e(O)]), b(ke, _e);
|
|
410
|
-
},
|
|
411
|
-
[() => l()(He[e(O)])]
|
|
412
|
-
), C(ee, B);
|
|
413
|
-
};
|
|
414
|
-
Z(Fe, (ee) => {
|
|
415
|
-
e(O) !== null && ee(vt);
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
var je = y(Fe, 2);
|
|
419
|
-
let qe;
|
|
420
|
-
var mt = n(je);
|
|
421
|
-
Bt(mt, { size: 15 }), a(je), a(Ve), a(R);
|
|
422
|
-
var ft = y(R, 2);
|
|
423
|
-
{
|
|
424
|
-
var _t = (ee) => {
|
|
425
|
-
var B = gr(), pe = n(B);
|
|
426
|
-
{
|
|
427
|
-
var ke = (V) => {
|
|
428
|
-
var I = cr(), X = n(I), ye = y(X);
|
|
429
|
-
Ft(ye, {}), a(I), P(
|
|
430
|
-
(ve) => {
|
|
431
|
-
oe(I, "href", e(N).TermsAndConditionsUrl), b(X, `${ve ?? ""} `);
|
|
432
|
-
},
|
|
433
|
-
[() => l()("termsAndConditions")]
|
|
434
|
-
), C(V, I);
|
|
435
|
-
};
|
|
436
|
-
Z(pe, (V) => {
|
|
437
|
-
e(N).TermsAndConditionsUrl && V(ke);
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
var _e = y(pe, 2), Ke = n(_e), Ee = n(Ke), Ye = n(Ee), ze = n(Ye), yt = n(ze, !0);
|
|
441
|
-
a(ze);
|
|
442
|
-
var Te = y(ze), bt = n(Te, !0);
|
|
443
|
-
a(Te);
|
|
444
|
-
var Je = y(Te), xt = n(Je, !0);
|
|
445
|
-
a(Je), a(Ye), a(Ee);
|
|
446
|
-
var Xe = y(Ee);
|
|
447
|
-
Ne(Xe, 21, () => e(N).Levels ?? [], (V) => V.OrderNumber, (V, I) => {
|
|
448
|
-
const X = g(() => Ce(e(I))), ye = g(() => lr(e(I).Rewards));
|
|
449
|
-
var ve = ur(), Ie = n(ve), Ze = n(Ie), Se = n(Ze), Ct = n(Se);
|
|
450
|
-
a(Se);
|
|
451
|
-
var wt = y(Se, 2);
|
|
452
|
-
{
|
|
453
|
-
var jt = (me) => {
|
|
454
|
-
var ne = dr();
|
|
455
|
-
let be;
|
|
456
|
-
var De = n(ne), zt = n(De);
|
|
457
|
-
Vt(zt, {}), a(De);
|
|
458
|
-
var $e = y(De, 2), Tt = n($e, !0);
|
|
459
|
-
a($e), a(ne), P(
|
|
460
|
-
(It) => {
|
|
461
|
-
be = F(ne, 1, "challenge-history__level-reward svelte-or1pjf", null, be, { failed: !e(X) }), b(Tt, It);
|
|
462
|
-
},
|
|
463
|
-
[
|
|
464
|
-
() => e(I).CustomRewardMessage || e(ye).join(" + ")
|
|
465
|
-
]
|
|
466
|
-
), C(me, ne);
|
|
467
|
-
};
|
|
468
|
-
Z(wt, (me) => {
|
|
469
|
-
(e(I).CustomRewardMessage || e(ye).length) && me(jt);
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
a(Ze), a(Ie);
|
|
473
|
-
var Ae = y(Ie), Le = n(Ae);
|
|
474
|
-
let Qe;
|
|
475
|
-
var kt = n(Le, !0);
|
|
476
|
-
a(Le), a(Ae);
|
|
477
|
-
var We = y(Ae), Et = n(We, !0);
|
|
478
|
-
a(We), a(ve), P(
|
|
479
|
-
(me, ne, be) => {
|
|
480
|
-
b(Ct, `${me ?? ""}
|
|
481
|
-
${e(I).OrderNumber + 1}`), Qe = F(Le, 1, "challenge-history__level-status svelte-or1pjf", null, Qe, { failed: !e(X), completed: e(X) }), b(kt, ne), b(Et, be);
|
|
482
|
-
},
|
|
483
|
-
[
|
|
484
|
-
() => l()("level"),
|
|
485
|
-
() => l()(He[e(I).Status]),
|
|
486
|
-
() => rr(e(I).Time)
|
|
487
|
-
]
|
|
488
|
-
), C(V, ve);
|
|
489
|
-
}), a(Xe), a(Ke), a(_e), a(B), P(
|
|
490
|
-
(V, I, X) => {
|
|
491
|
-
b(yt, V), b(bt, I), b(xt, X);
|
|
492
|
-
},
|
|
493
|
-
[
|
|
494
|
-
() => l()("level"),
|
|
495
|
-
() => l()("status"),
|
|
496
|
-
() => l()("time")
|
|
497
|
-
]
|
|
498
|
-
), C(ee, B);
|
|
499
|
-
};
|
|
500
|
-
Z(ft, (ee) => {
|
|
501
|
-
e(J) && ee(_t);
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
a(ge), P(() => {
|
|
505
|
-
fe = F(R, 1, "challenge-history__item svelte-or1pjf", null, fe, { expanded: e(J) }), oe(R, "aria-expanded", e(J)), b(we, e(N).Name), qe = F(je, 1, "challenge-history__view-details-icon svelte-or1pjf", null, qe, { expanded: e(J) });
|
|
506
|
-
}), xe("click", R, () => le(e(N).ProgressId)), C(k, ge);
|
|
507
|
-
});
|
|
508
|
-
var v = y(T, 2);
|
|
509
|
-
{
|
|
510
|
-
var Y = (k) => {
|
|
511
|
-
qt(k, {
|
|
512
|
-
get offset() {
|
|
513
|
-
return e(Q);
|
|
514
|
-
},
|
|
515
|
-
get limit() {
|
|
516
|
-
return e(G);
|
|
517
|
-
},
|
|
518
|
-
get total() {
|
|
519
|
-
return e(L);
|
|
520
|
-
},
|
|
521
|
-
get locale() {
|
|
522
|
-
return p();
|
|
523
|
-
},
|
|
524
|
-
get isMobile() {
|
|
525
|
-
return z();
|
|
526
|
-
},
|
|
527
|
-
onPageChange: ae
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
Z(v, (k) => {
|
|
531
|
-
e(L) > e(G) && k(Y);
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
C(r, c);
|
|
535
|
-
};
|
|
536
|
-
Z(ie, (r) => {
|
|
537
|
-
e($) ? r(ce) : e(W) ? r(de, 1) : e(A).length ? r(s, -1) : r(ue, 2);
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
a(H), P(() => o = F(H, 1, "challenge-history svelte-or1pjf", null, o, { anonymous: e($) })), C(h, H);
|
|
541
|
-
var D = Be(se);
|
|
542
|
-
return U(), D;
|
|
543
|
-
}
|
|
544
|
-
lt(["click"]);
|
|
545
|
-
Ue(
|
|
546
|
-
pt,
|
|
547
|
-
{
|
|
548
|
-
userSession: {},
|
|
549
|
-
locale: {},
|
|
550
|
-
translationUrl: {},
|
|
551
|
-
endpoint: {},
|
|
552
|
-
domainId: {},
|
|
553
|
-
userId: {},
|
|
554
|
-
isMobile: {},
|
|
555
|
-
limit: {}
|
|
556
|
-
},
|
|
557
|
-
[],
|
|
558
|
-
[],
|
|
559
|
-
{ mode: "open" }
|
|
560
|
-
);
|
|
561
|
-
if (typeof window < "u") {
|
|
562
|
-
let h = function(t) {
|
|
563
|
-
return function(...l) {
|
|
564
|
-
try {
|
|
565
|
-
return t.apply(this, l);
|
|
566
|
-
} catch (i) {
|
|
567
|
-
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"))
|
|
568
|
-
return !1;
|
|
569
|
-
throw i;
|
|
570
|
-
}
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
customElements.define = h(customElements.define), import("./ChallengeHistory-BveIKX6m.js").then((t) => {
|
|
574
|
-
const l = t.default || t;
|
|
575
|
-
customElements.get("challenge-history") || customElements.define("challenge-history", l.element || l);
|
|
576
|
-
}).catch((t) => {
|
|
577
|
-
console.error("BOOT ERROR:", t);
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
var fr = E('<div class="player-challenges__tab-content svelte-kfnpxs"><!></div>');
|
|
581
|
-
const _r = {
|
|
582
|
-
hash: "svelte-kfnpxs",
|
|
583
|
-
code: ".player-challenges__tab-content.svelte-kfnpxs {width:100%;}"
|
|
584
|
-
};
|
|
585
|
-
function yr(h, t) {
|
|
586
|
-
Ge(t, !0), Oe(h, _r);
|
|
587
|
-
const l = d(t, "activeTab", 7), i = d(t, "challenges", 7), U = d(t, "endpoint", 7), f = d(t, "userSession", 7), p = d(t, "userId", 7), w = d(t, "domainId", 7), j = d(t, "locale", 7), S = d(t, "historyLimit", 7, 10), _ = d(t, "onViewDetails", 7), z = d(t, "isMobile", 7), x = g(() => Ot[l()]), A = g(() => !f() && !p()), L = g(() => e(x) ? i().getState(e(x)) : void 0), Q = g(() => {
|
|
588
|
-
switch (l()) {
|
|
589
|
-
case te.Promo:
|
|
590
|
-
return i().promoChallenges;
|
|
591
|
-
case te.Active:
|
|
592
|
-
return i().activeChallenges;
|
|
593
|
-
case te.Pending:
|
|
594
|
-
return i().pendingChallenges;
|
|
595
|
-
default:
|
|
596
|
-
return [];
|
|
597
|
-
}
|
|
598
|
-
}), W = () => {
|
|
599
|
-
e(x) && i().loadMore(e(x), e(A));
|
|
600
|
-
}, M = (o) => {
|
|
601
|
-
e(x) && i().loadPage(e(x), e(A), Math.floor(o / Pe));
|
|
602
|
-
}, G = () => {
|
|
603
|
-
e(x) && i().load(e(x), e(A));
|
|
604
|
-
};
|
|
605
|
-
var $ = {
|
|
606
|
-
get activeTab() {
|
|
607
|
-
return l();
|
|
608
|
-
},
|
|
609
|
-
set activeTab(o) {
|
|
610
|
-
l(o), u();
|
|
611
|
-
},
|
|
612
|
-
get challenges() {
|
|
613
|
-
return i();
|
|
614
|
-
},
|
|
615
|
-
set challenges(o) {
|
|
616
|
-
i(o), u();
|
|
617
|
-
},
|
|
618
|
-
get endpoint() {
|
|
619
|
-
return U();
|
|
620
|
-
},
|
|
621
|
-
set endpoint(o) {
|
|
622
|
-
U(o), u();
|
|
623
|
-
},
|
|
624
|
-
get userSession() {
|
|
625
|
-
return f();
|
|
626
|
-
},
|
|
627
|
-
set userSession(o) {
|
|
628
|
-
f(o), u();
|
|
629
|
-
},
|
|
630
|
-
get userId() {
|
|
631
|
-
return p();
|
|
632
|
-
},
|
|
633
|
-
set userId(o) {
|
|
634
|
-
p(o), u();
|
|
635
|
-
},
|
|
636
|
-
get domainId() {
|
|
637
|
-
return w();
|
|
638
|
-
},
|
|
639
|
-
set domainId(o) {
|
|
640
|
-
w(o), u();
|
|
641
|
-
},
|
|
642
|
-
get locale() {
|
|
643
|
-
return j();
|
|
644
|
-
},
|
|
645
|
-
set locale(o) {
|
|
646
|
-
j(o), u();
|
|
647
|
-
},
|
|
648
|
-
get historyLimit() {
|
|
649
|
-
return S();
|
|
650
|
-
},
|
|
651
|
-
set historyLimit(o = 10) {
|
|
652
|
-
S(o), u();
|
|
653
|
-
},
|
|
654
|
-
get onViewDetails() {
|
|
655
|
-
return _();
|
|
656
|
-
},
|
|
657
|
-
set onViewDetails(o) {
|
|
658
|
-
_(o), u();
|
|
659
|
-
},
|
|
660
|
-
get isMobile() {
|
|
661
|
-
return z();
|
|
662
|
-
},
|
|
663
|
-
set isMobile(o) {
|
|
664
|
-
z(o), u();
|
|
665
|
-
}
|
|
666
|
-
}, K = fr(), ae = n(K);
|
|
667
|
-
{
|
|
668
|
-
var le = (o) => {
|
|
669
|
-
ht(o, {
|
|
670
|
-
get endpoint() {
|
|
671
|
-
return U();
|
|
672
|
-
},
|
|
673
|
-
get userSession() {
|
|
674
|
-
return f();
|
|
675
|
-
},
|
|
676
|
-
get domainId() {
|
|
677
|
-
return w();
|
|
678
|
-
},
|
|
679
|
-
get locale() {
|
|
680
|
-
return j();
|
|
681
|
-
}
|
|
682
|
-
});
|
|
683
|
-
}, se = (o) => {
|
|
684
|
-
pt(o, {
|
|
685
|
-
get endpoint() {
|
|
686
|
-
return U();
|
|
687
|
-
},
|
|
688
|
-
get userSession() {
|
|
689
|
-
return f();
|
|
690
|
-
},
|
|
691
|
-
get userId() {
|
|
692
|
-
return p();
|
|
693
|
-
},
|
|
694
|
-
get domainId() {
|
|
695
|
-
return w();
|
|
696
|
-
},
|
|
697
|
-
get locale() {
|
|
698
|
-
return j();
|
|
699
|
-
},
|
|
700
|
-
get limit() {
|
|
701
|
-
return S();
|
|
702
|
-
},
|
|
703
|
-
get isMobile() {
|
|
704
|
-
return z();
|
|
705
|
-
}
|
|
706
|
-
});
|
|
707
|
-
}, H = (o) => {
|
|
708
|
-
{
|
|
709
|
-
let ie = g(() => e(L)?.loading ?? !1), ce = g(() => e(L)?.hasMore ?? !1), de = g(() => l() === te.Promo), ue = g(() => l() === te.Pending), s = g(() => e(L)?.totalCount ?? 0), D = g(() => (e(L)?.pageNumber ?? Gt) * Pe);
|
|
710
|
-
Kt(o, {
|
|
711
|
-
get challenges() {
|
|
712
|
-
return e(Q);
|
|
713
|
-
},
|
|
714
|
-
get loading() {
|
|
715
|
-
return e(ie);
|
|
716
|
-
},
|
|
717
|
-
get hasMore() {
|
|
718
|
-
return e(ce);
|
|
719
|
-
},
|
|
720
|
-
get pausedChallengeIds() {
|
|
721
|
-
return i().pausedChallengeIds;
|
|
722
|
-
},
|
|
723
|
-
get isPromo() {
|
|
724
|
-
return e(de);
|
|
725
|
-
},
|
|
726
|
-
get isPending() {
|
|
727
|
-
return e(ue);
|
|
728
|
-
},
|
|
729
|
-
get total() {
|
|
730
|
-
return e(s);
|
|
731
|
-
},
|
|
732
|
-
get pageSize() {
|
|
733
|
-
return Pe;
|
|
734
|
-
},
|
|
735
|
-
get offset() {
|
|
736
|
-
return e(D);
|
|
737
|
-
},
|
|
738
|
-
onPageChange: M,
|
|
739
|
-
onLoadMore: W,
|
|
740
|
-
onStatusChange: (r, c) => i().patchProgress(r, { Status: c }),
|
|
741
|
-
onClaimed: G,
|
|
742
|
-
get onViewDetails() {
|
|
743
|
-
return _();
|
|
744
|
-
},
|
|
745
|
-
get endpoint() {
|
|
746
|
-
return U();
|
|
747
|
-
},
|
|
748
|
-
get userSession() {
|
|
749
|
-
return f();
|
|
750
|
-
},
|
|
751
|
-
get userId() {
|
|
752
|
-
return p();
|
|
753
|
-
},
|
|
754
|
-
get domainId() {
|
|
755
|
-
return w();
|
|
756
|
-
},
|
|
757
|
-
get locale() {
|
|
758
|
-
return j();
|
|
759
|
-
},
|
|
760
|
-
get isMobile() {
|
|
761
|
-
return z();
|
|
762
|
-
}
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
Z(ae, (o) => {
|
|
767
|
-
l() === te.Code ? o(le) : l() === te.Finished ? o(se, 1) : o(H, -1);
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
return a(K), C(h, K), Be($);
|
|
771
|
-
}
|
|
772
|
-
Ue(
|
|
773
|
-
yr,
|
|
774
|
-
{
|
|
775
|
-
activeTab: {},
|
|
776
|
-
challenges: {},
|
|
777
|
-
endpoint: {},
|
|
778
|
-
userSession: {},
|
|
779
|
-
userId: {},
|
|
780
|
-
domainId: {},
|
|
781
|
-
locale: {},
|
|
782
|
-
historyLimit: {},
|
|
783
|
-
onViewDetails: {},
|
|
784
|
-
isMobile: {}
|
|
785
|
-
},
|
|
786
|
-
[],
|
|
787
|
-
[],
|
|
788
|
-
{ mode: "open" }
|
|
789
|
-
);
|
|
790
|
-
export {
|
|
791
|
-
ht as C,
|
|
792
|
-
pt as a,
|
|
793
|
-
yr as b
|
|
794
|
-
};
|