@everymatrix/player-challenges 0.1.15 → 0.1.18
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-De_oE6VJ.js → ArrowLeftIcon-DorWQbN-.js} +1 -1
- package/components/{ArrowLeftIcon-D0LpsufV.cjs → ArrowLeftIcon-f3IOpYNO.cjs} +1 -1
- package/components/{Badge-r78wWqnE.cjs → Badge-BDyFx08l.cjs} +4 -4
- package/components/{Badge-C2_vCRtE.js → Badge-t5ERZxvC.js} +27 -27
- package/components/{Button-CU8n8iLn.cjs → Button-CUICdAqJ.cjs} +1 -1
- package/components/{Button-CqWi35Id.js → Button-DgtpbC5z.js} +1 -1
- package/components/{ChallengeBanner-oDSEjGGf.js → ChallengeBanner-DSarDh3k.js} +31 -29
- package/components/{ChallengeBanner-CBWAGiMi.cjs → ChallengeBanner-uzrRUAwa.cjs} +2 -2
- package/components/{ChallengeBreadcrumbs-0C1qzQmn.js → ChallengeBreadcrumbs-DHNKXK43.js} +2 -2
- package/components/{ChallengeBreadcrumbs-B1QPZ9Ub.cjs → ChallengeBreadcrumbs-DwyCD4n7.cjs} +1 -1
- package/components/{ChallengeCard-3915Vdd8.cjs → ChallengeCard-BuDYjnna.cjs} +1 -1
- package/components/{ChallengeCard-yUSt6Ocz.js → ChallengeCard-SkQ_xfqo.js} +6 -6
- package/components/{ChallengeClaimCode-D-skzCq6.js → ChallengeClaimCode-DiJqww5t.js} +2 -2
- package/components/{ChallengeClaimCode-BUD6Bszw.cjs → ChallengeClaimCode-zgBFr-2W.cjs} +1 -1
- package/components/{ChallengeDetails-D74Ki1Uz.cjs → ChallengeDetails-D1h6ITwb.cjs} +1 -1
- package/components/{ChallengeDetails-C5WUrhPo.js → ChallengeDetails-DMdkjCMC.js} +2 -2
- package/components/{ChallengeEvents-CXxvU73L.js → ChallengeEvents-B6l3iUIf.js} +1 -1
- package/components/{ChallengeEvents-U5YbNMZ6.cjs → ChallengeEvents-D5kenBIc.cjs} +1 -1
- package/components/ChallengeGames-CZu1MzPA.cjs +11 -0
- package/components/{ChallengeGames-CLISWWUl.js → ChallengeGames-CjLLzYVy.js} +57 -56
- package/components/{ChallengeHistory-BveIKX6m.js → ChallengeHistory-8LPDK1aA.js} +10 -10
- package/components/ChallengeHistory-CHK2Q13H.cjs +1 -0
- package/components/ChallengeLevels-CCZGLr9f.cjs +8 -0
- package/components/{ChallengeLevels-EESudJez.js → ChallengeLevels-s9abBMuq.js} +84 -84
- package/components/ChallengeList-CK16hckg.cjs +20 -0
- package/components/{ChallengeList-P4I4Dp10.js → ChallengeList-D6_LjVsa.js} +429 -424
- package/components/{ChallengeProgress-BxkeK6qN.js → ChallengeProgress-BFAihSd8.js} +11 -11
- package/components/{ChallengeProgress-BpkQJwJK.cjs → ChallengeProgress-F4DvqxcC.cjs} +1 -1
- package/components/{ChallengeProgressItem-DHghH0Re.js → ChallengeProgressItem-BHk-1FKU.js} +3 -3
- package/components/{ChallengeProgressItem-YsHk5ITp.cjs → ChallengeProgressItem-DrMZEU3z.cjs} +2 -2
- package/components/{ChallengeRules-D7Q6JUd5.js → ChallengeRules-CIINsSVb.js} +2 -2
- package/components/{ChallengeRules-CoGa-G4a.cjs → ChallengeRules-D5vuaTVl.cjs} +1 -1
- package/components/ChallengeSummary-BhoNxD8d.cjs +1 -0
- package/components/ChallengeSummary-sGIfhmFq.js +213 -0
- package/components/ChallengeTabContent-CYsszYCj.js +795 -0
- package/components/ChallengeTabContent-CftvI5C6.cjs +12 -0
- package/components/{ChallengeTabPanel-Rci3HLu2.js → ChallengeTabPanel-CdcGT_LI.js} +5 -5
- package/components/{ChallengeTabPanel-wgd02Iii.cjs → ChallengeTabPanel-ChsZw13b.cjs} +1 -1
- package/components/ChallengeTabSkeleton-CDYom40f.cjs +15 -0
- package/components/{ChallengeTabSkeleton-B-MQHvwC.js → ChallengeTabSkeleton-CuRzH3G_.js} +33 -32
- package/components/ChallengeTabs-Dcgam5G5.cjs +14 -0
- package/components/{ChallengeTabs-nR_tQGbd.js → ChallengeTabs-TgwP2u9F.js} +2256 -2245
- package/components/{CheckIcon-D4lHKEA2.js → CheckIcon-B82NDFTL.js} +1 -1
- package/components/{CheckIcon-CxbYr1xp.cjs → CheckIcon-BqS1Tdfu.cjs} +1 -1
- package/components/{ChevronIcon-CRAlhZkw.js → ChevronIcon-C0yjiiug.js} +1 -1
- package/components/{ChevronIcon-BAMpEJGd.cjs → ChevronIcon-zvGKIAT7.cjs} +1 -1
- package/components/{ExistIcon-Dto-bbDy.cjs → ExistIcon-DifozqZH.cjs} +1 -1
- package/components/{ExistIcon-MA116zUI.js → ExistIcon-Y3lLvkAJ.js} +1 -1
- package/components/{GiftIcon-Cd5b3K-t.cjs → GiftIcon-Bd4y8-Fm.cjs} +1 -1
- package/components/{GiftIcon-Co84y9Go.js → GiftIcon-CY_-XK0b.js} +1 -1
- package/components/{LinkIcon-Bwgy8Luj.cjs → LinkIcon-Bttg6ZAz.cjs} +1 -1
- package/components/{LinkIcon-pV2v0CrL.js → LinkIcon-CLHvOQ2s.js} +1 -1
- package/components/{LockIcon-BYYuZI1_.cjs → LockIcon-BgDxb03o.cjs} +1 -1
- package/components/{LockIcon-CzobKbeF.js → LockIcon-gAFRYl52.js} +1 -1
- package/components/Pagination-4P-rWszf.cjs +12 -0
- package/components/Pagination-CbvI_9SC.js +123 -0
- package/components/PlayerChallenges-CaUu7idr.js +417 -0
- package/components/PlayerChallenges-CtnY-k5K.cjs +1 -0
- package/components/{StarIcon-D_ixyTtO.js → StarIcon-CbfuCfUA.js} +1 -1
- package/components/{StarIcon-tdfCGCXl.cjs → StarIcon-DE0r6703.cjs} +1 -1
- package/components/{TargetIcon-Cw-ZoTaW.js → TargetIcon-BVhRYDcS.js} +1 -1
- package/components/{TargetIcon-BGcVQbCs.cjs → TargetIcon-DDclkkVP.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeGames-BVIMhW8b.cjs +0 -11
- package/components/ChallengeHistory-DDWHc60D.cjs +0 -1
- package/components/ChallengeLevels-Dqz1Jroz.cjs +0 -8
- package/components/ChallengeList-Bby_g4Z8.cjs +0 -20
- 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/ChallengeTabSkeleton-CuGIFm8O.cjs +0 -15
- package/components/ChallengeTabs-BtbgPMyA.cjs +0 -14
- 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
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
import { g as ot, c as Re, d as Oe, h as Ge, p as u, u as st, q as it, ak as ct, aq as dt, v as we, D as ht, aA as Ht, z as X, t as R, a as k, b as Ue, k as I, e as g, m as ut, n as l, A as e, r as a, B as Y, C as h, o as y, aB as Pt, i as w, aC as Rt, s as he, j as je, l as gt, $ as pt, w as B, E as f, aD as Ot, a8 as Gt, a9 as tt, aa as Ut, ab as Bt, aE as ue, aF as Vt, x as rt, aG as vt, aH as qt, R as Ft, H as at, W as Pe, S as Kt, aI as de, aJ as Yt, aK as Jt } from "./ChallengeTabs-TgwP2u9F.js";
|
|
2
|
+
import { C as Wt } from "./ChevronIcon-C0yjiiug.js";
|
|
3
|
+
import { G as Xt } from "./GiftIcon-CY_-XK0b.js";
|
|
4
|
+
import { L as Zt } from "./LinkIcon-CLHvOQ2s.js";
|
|
5
|
+
import { P as Qt } from "./Pagination-CbvI_9SC.js";
|
|
6
|
+
import { C as $t } from "./ChallengeList-D6_LjVsa.js";
|
|
7
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
|
+
}, globalThis.customElements = { define() {
|
|
9
|
+
}, get() {
|
|
10
|
+
}, whenDefined() {
|
|
11
|
+
} });
|
|
12
|
+
const er = {
|
|
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
|
+
}, tr = 3, lt = 30, rr = /^[\x21-\x7E]+$/, ar = 200;
|
|
63
|
+
var lr = I('<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 = I('<p class="challenge-claim-code__anonymous svelte-1hz4cfc"> </p>'), or = I("<div><!></div>");
|
|
64
|
+
const sr = {
|
|
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 mt(c, t) {
|
|
71
|
+
Oe(t, !0), Ge(c, sr);
|
|
72
|
+
const n = () => gt(pt, "$_", i), [i, V] = ut(), b = u(t, "endpoint", 7), v = u(t, "userSession", 7), E = u(t, "locale", 7, "en"), z = u(t, "translationUrl", 7), S = u(t, "domainId", 7);
|
|
73
|
+
st(() => it(E(), er)), ct(() => {
|
|
74
|
+
z() && dt(z(), "challenge-claim-code");
|
|
75
|
+
}), we(() => {
|
|
76
|
+
ht(E() || "en");
|
|
77
|
+
});
|
|
78
|
+
let x = B(""), _ = B(null), L = B(!1), p = B(!1), T;
|
|
79
|
+
const N = (s) => s.length >= tr && s.length <= lt && rr.test(s), J = h(() => N(e(x))), D = h(() => e(p) || !!e(_)), O = h(() => !!b() && !!v() && !!S()), Z = h(() => e(J) && !e(L) && e(O)), re = h(() => !v()), q = (s) => {
|
|
80
|
+
f(x, s.target.value, !0), f(_, null), clearTimeout(T), T = setTimeout(
|
|
81
|
+
() => {
|
|
82
|
+
f(p, !!e(x) && !N(e(x)), !0);
|
|
83
|
+
},
|
|
84
|
+
ar
|
|
85
|
+
);
|
|
86
|
+
}, ae = async () => {
|
|
87
|
+
if (e(Z)) {
|
|
88
|
+
f(L, !0), f(_, null);
|
|
89
|
+
try {
|
|
90
|
+
await Ot({
|
|
91
|
+
endpoint: b(),
|
|
92
|
+
domainId: S(),
|
|
93
|
+
sessionId: v(),
|
|
94
|
+
code: e(x)
|
|
95
|
+
}), f(x, ""), f(p, !1), Gt(tt.Claim);
|
|
96
|
+
} catch (s) {
|
|
97
|
+
const A = s instanceof Ut ? s.errorCode : null, M = s instanceof Error ? s.message : String(s);
|
|
98
|
+
f(_, M, !0), Bt(tt.Claim, M, A ?? void 0);
|
|
99
|
+
} finally {
|
|
100
|
+
f(L, !1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
Ht(() => clearTimeout(T));
|
|
105
|
+
var le = {
|
|
106
|
+
get endpoint() {
|
|
107
|
+
return b();
|
|
108
|
+
},
|
|
109
|
+
set endpoint(s) {
|
|
110
|
+
b(s), g();
|
|
111
|
+
},
|
|
112
|
+
get userSession() {
|
|
113
|
+
return v();
|
|
114
|
+
},
|
|
115
|
+
set userSession(s) {
|
|
116
|
+
v(s), g();
|
|
117
|
+
},
|
|
118
|
+
get locale() {
|
|
119
|
+
return E();
|
|
120
|
+
},
|
|
121
|
+
set locale(s = "en") {
|
|
122
|
+
E(s), g();
|
|
123
|
+
},
|
|
124
|
+
get translationUrl() {
|
|
125
|
+
return z();
|
|
126
|
+
},
|
|
127
|
+
set translationUrl(s) {
|
|
128
|
+
z(s), g();
|
|
129
|
+
},
|
|
130
|
+
get domainId() {
|
|
131
|
+
return S();
|
|
132
|
+
},
|
|
133
|
+
set domainId(s) {
|
|
134
|
+
S(s), g();
|
|
135
|
+
}
|
|
136
|
+
}, H = or();
|
|
137
|
+
let ne;
|
|
138
|
+
var o = l(H);
|
|
139
|
+
{
|
|
140
|
+
var G = (s) => {
|
|
141
|
+
var A = lr(), M = l(A), Q = l(M, !0);
|
|
142
|
+
a(M);
|
|
143
|
+
var pe = y(M, 2), r = l(pe);
|
|
144
|
+
Pt(r);
|
|
145
|
+
let d;
|
|
146
|
+
var m = y(r, 2);
|
|
147
|
+
let j;
|
|
148
|
+
var $ = l(m, !0);
|
|
149
|
+
a(m), a(pe);
|
|
150
|
+
var U = y(pe, 2), ve = l(U, !0);
|
|
151
|
+
a(U), a(A), R(
|
|
152
|
+
(C, P, W, se) => {
|
|
153
|
+
w(Q, C), d = Y(r, 1, "challenge-claim-code__input svelte-1hz4cfc", null, d, { errored: e(D) }), Rt(r, e(x)), he(r, "maxlength", lt), he(r, "placeholder", P), he(r, "aria-invalid", e(D)), j = Y(m, 1, "challenge-claim-code__rule svelte-1hz4cfc", null, j, { errored: e(D) }), w($, W), U.disabled = !e(Z), w(ve, se);
|
|
154
|
+
},
|
|
155
|
+
[
|
|
156
|
+
() => n()("claimCodeTitle"),
|
|
157
|
+
() => n()("claimCodePlaceholder"),
|
|
158
|
+
() => e(_) ?? n()("claimCodeRuleText"),
|
|
159
|
+
() => n()("applyCode")
|
|
160
|
+
]
|
|
161
|
+
), je("input", r, q), je("keydown", r, (C) => C.key === "Enter" && ae()), je("click", U, ae), k(s, A);
|
|
162
|
+
}, oe = (s) => {
|
|
163
|
+
var A = nr(), M = l(A, !0);
|
|
164
|
+
a(A), R((Q) => w(M, Q), [() => n()("claimCodeAnonymous")]), k(s, A);
|
|
165
|
+
};
|
|
166
|
+
X(o, (s) => {
|
|
167
|
+
e(re) ? s(oe, -1) : s(G);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
a(H), R(() => ne = Y(H, 1, "challenge-claim-code svelte-1hz4cfc", null, ne, { anonymous: e(re) })), k(c, H);
|
|
171
|
+
var ge = Ue(le);
|
|
172
|
+
return V(), ge;
|
|
173
|
+
}
|
|
174
|
+
ot(["input", "keydown", "click"]);
|
|
175
|
+
Re(
|
|
176
|
+
mt,
|
|
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 c = function(t) {
|
|
190
|
+
return function(...n) {
|
|
191
|
+
try {
|
|
192
|
+
return t.apply(this, n);
|
|
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 = c(customElements.define), import("./ChallengeClaimCode-DiJqww5t.js").then((t) => {
|
|
201
|
+
const n = t.default || t;
|
|
202
|
+
customElements.get("challenge-claim-code") || customElements.define("challenge-claim-code", n.element || n);
|
|
203
|
+
}).catch((t) => {
|
|
204
|
+
console.error("BOOT ERROR:", t);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
const ir = {
|
|
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
|
+
}, cr = {
|
|
244
|
+
[ue.Completed]: "completed",
|
|
245
|
+
[ue.Expired]: "expired",
|
|
246
|
+
[ue.Forfeited]: "forfeited"
|
|
247
|
+
}, dr = (c) => Vt(c, "DD/MM/YY HH:mm"), ft = (c) => c.Status === ue.Completed, nt = (c, t) => (c.Levels ?? []).some((n) => n.Status === t), hr = (c) => {
|
|
248
|
+
const t = c.Levels ?? [];
|
|
249
|
+
return t.length ? nt(c, ue.Forfeited) ? "rejected" : nt(c, ue.Expired) ? "failed" : t.every(ft) ? "completed" : null : null;
|
|
250
|
+
}, ur = (c) => Object.values(c ?? {}).map((t) => t?.RewardDescription).filter((t) => !!t);
|
|
251
|
+
var gr = I('<p class="challenge-history__anonymous svelte-or1pjf"> </p>'), pr = I('<div class="challenge-history__skeleton svelte-or1pjf"></div>'), vr = I('<div class="challenge-history__empty svelte-or1pjf"><b class="svelte-or1pjf"> </b> <span class="svelte-or1pjf"> </span></div>'), mr = I("<span> </span>"), fr = I('<div><span class="challenge-history__level-item--icon svelte-or1pjf"><!></span> <span class="challenge-history__level--info-value svelte-or1pjf"> </span></div>'), _r = I('<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 = I('<div class="challenge-history__details-expanded svelte-or1pjf"><a target="_blank" rel="noopener noreferrer" class="challenge-history__terms--link svelte-or1pjf"> <span class="challenge-history__terms--icon svelte-or1pjf" aria-hidden="true"><!></span></a> <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 = I('<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 = I('<div class="challenge-history__load-more-sentinel svelte-or1pjf" aria-hidden="true"></div>'), Cr = I("<!> <!> <!>", 1), wr = I("<div><!></div>");
|
|
252
|
+
const jr = {
|
|
253
|
+
hash: "svelte-or1pjf",
|
|
254
|
+
code: `.challenge-history.svelte-or1pjf {padding:10px 0;display:flex;flex-direction:column;gap:12px;}.challenge-history__load-more-sentinel.svelte-or1pjf {width:100%;height:1px;}.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));
|
|
255
|
+
animation: svelte-or1pjf-challenge-history-pulse 1.2s ease-in-out infinite;}
|
|
256
|
+
|
|
257
|
+
@keyframes svelte-or1pjf-challenge-history-pulse {
|
|
258
|
+
50% {
|
|
259
|
+
opacity: 0.5;
|
|
260
|
+
}
|
|
261
|
+
}.challenge-history__anonymous.svelte-or1pjf,
|
|
262
|
+
.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='rejected'].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) {display:inline-flex;align-items:center;align-self:flex-start;gap:4px;color:var(--semantic-info-400, rgba(0, 156, 245, 1));font-size:10px;font-weight:500;text-decoration:none;margin-right:4px;border-bottom:1px solid currentColor;}.challenge-history__terms--icon:where(.svelte-or1pjf) {display:block;}.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:flex-start;gap:4px;line-height:1.4;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;height:1.4em;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;}`
|
|
263
|
+
};
|
|
264
|
+
function _t(c, t) {
|
|
265
|
+
Oe(t, !0), Ge(c, jr);
|
|
266
|
+
const n = () => gt(pt, "$_", i), [i, V] = ut(), b = u(t, "userSession", 7), v = u(t, "locale", 7, "en"), E = u(t, "translationUrl", 7), z = u(t, "endpoint", 7), S = u(t, "domainId", 7), x = u(t, "userId", 7), _ = u(t, "isMobile", 7, !0), L = u(t, "limit", 7);
|
|
267
|
+
st(() => it(v(), ir)), ct(() => {
|
|
268
|
+
E() && dt(E(), "challenge-history");
|
|
269
|
+
}), we(() => {
|
|
270
|
+
ht(v() || "en");
|
|
271
|
+
});
|
|
272
|
+
let p = B(rt([])), T = B(0), N = B(0), J = B(!1), D = B(rt([]));
|
|
273
|
+
const O = h(() => Number(L()) || vt(_())), Z = h(() => !b() && !x()), re = [0, 1, 2, 3], q = async (r, d = !1) => {
|
|
274
|
+
f(J, !0);
|
|
275
|
+
try {
|
|
276
|
+
const m = await qt({
|
|
277
|
+
endpoint: z(),
|
|
278
|
+
domainId: S(),
|
|
279
|
+
userId: x(),
|
|
280
|
+
sessionId: b(),
|
|
281
|
+
locale: v(),
|
|
282
|
+
pageNumber: Math.floor(r / e(O)),
|
|
283
|
+
pageSize: e(O),
|
|
284
|
+
isFutureAvailable: !0
|
|
285
|
+
}), j = m.Data ?? [];
|
|
286
|
+
f(p, d ? [...e(p), ...j] : j, !0), f(T, m.TotalItem ?? e(p).length, !0), f(N, r, !0), d || f(D, [], !0);
|
|
287
|
+
} catch (m) {
|
|
288
|
+
console.error("challenge-history: failed to load history", m), d || (f(p, [], !0), f(T, 0));
|
|
289
|
+
} finally {
|
|
290
|
+
f(J, !1);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
we(() => {
|
|
294
|
+
const r = {
|
|
295
|
+
endpoint: z(),
|
|
296
|
+
domainId: S(),
|
|
297
|
+
userId: x(),
|
|
298
|
+
userSession: b(),
|
|
299
|
+
locale: v(),
|
|
300
|
+
pageSize: e(O)
|
|
301
|
+
};
|
|
302
|
+
!r.endpoint || !r.userId || q(0);
|
|
303
|
+
});
|
|
304
|
+
const ae = h(() => e(J) && !e(p).length), le = h(() => e(p).length < e(T));
|
|
305
|
+
let H = B(void 0);
|
|
306
|
+
we(() => {
|
|
307
|
+
if (!_() || !e(le) || !e(H))
|
|
308
|
+
return;
|
|
309
|
+
const r = new IntersectionObserver(
|
|
310
|
+
([d]) => {
|
|
311
|
+
d.isIntersecting && !e(J) && q(e(N) + e(O), !0);
|
|
312
|
+
},
|
|
313
|
+
{ rootMargin: "200px" }
|
|
314
|
+
);
|
|
315
|
+
return r.observe(e(H)), () => r.disconnect();
|
|
316
|
+
});
|
|
317
|
+
const ne = (r) => {
|
|
318
|
+
f(
|
|
319
|
+
D,
|
|
320
|
+
e(D).includes(r) ? e(D).filter((d) => d !== r) : [...e(D), r],
|
|
321
|
+
!0
|
|
322
|
+
);
|
|
323
|
+
};
|
|
324
|
+
var o = {
|
|
325
|
+
get userSession() {
|
|
326
|
+
return b();
|
|
327
|
+
},
|
|
328
|
+
set userSession(r) {
|
|
329
|
+
b(r), g();
|
|
330
|
+
},
|
|
331
|
+
get locale() {
|
|
332
|
+
return v();
|
|
333
|
+
},
|
|
334
|
+
set locale(r = "en") {
|
|
335
|
+
v(r), g();
|
|
336
|
+
},
|
|
337
|
+
get translationUrl() {
|
|
338
|
+
return E();
|
|
339
|
+
},
|
|
340
|
+
set translationUrl(r) {
|
|
341
|
+
E(r), g();
|
|
342
|
+
},
|
|
343
|
+
get endpoint() {
|
|
344
|
+
return z();
|
|
345
|
+
},
|
|
346
|
+
set endpoint(r) {
|
|
347
|
+
z(r), g();
|
|
348
|
+
},
|
|
349
|
+
get domainId() {
|
|
350
|
+
return S();
|
|
351
|
+
},
|
|
352
|
+
set domainId(r) {
|
|
353
|
+
S(r), g();
|
|
354
|
+
},
|
|
355
|
+
get userId() {
|
|
356
|
+
return x();
|
|
357
|
+
},
|
|
358
|
+
set userId(r) {
|
|
359
|
+
x(r), g();
|
|
360
|
+
},
|
|
361
|
+
get isMobile() {
|
|
362
|
+
return _();
|
|
363
|
+
},
|
|
364
|
+
set isMobile(r = !0) {
|
|
365
|
+
_(r), g();
|
|
366
|
+
},
|
|
367
|
+
get limit() {
|
|
368
|
+
return L();
|
|
369
|
+
},
|
|
370
|
+
set limit(r) {
|
|
371
|
+
L(r), g();
|
|
372
|
+
}
|
|
373
|
+
}, G = wr();
|
|
374
|
+
let oe;
|
|
375
|
+
var ge = l(G);
|
|
376
|
+
{
|
|
377
|
+
var s = (r) => {
|
|
378
|
+
var d = gr(), m = l(d, !0);
|
|
379
|
+
a(d), R((j) => w(m, j), [() => n()("historyAnonymous")]), k(r, d);
|
|
380
|
+
}, A = (r) => {
|
|
381
|
+
var d = Ft(), m = at(d);
|
|
382
|
+
Pe(m, 16, () => re, (j) => j, (j, $) => {
|
|
383
|
+
var U = pr();
|
|
384
|
+
k(j, U);
|
|
385
|
+
}), k(r, d);
|
|
386
|
+
}, M = (r) => {
|
|
387
|
+
var d = vr(), m = l(d), j = l(m, !0);
|
|
388
|
+
a(m);
|
|
389
|
+
var $ = y(m, 2), U = l($, !0);
|
|
390
|
+
a($), a(d), R(
|
|
391
|
+
(ve, C) => {
|
|
392
|
+
w(j, ve), w(U, C);
|
|
393
|
+
},
|
|
394
|
+
[
|
|
395
|
+
() => n()("historyEmptyTitle"),
|
|
396
|
+
() => n()("historyEmptyDescription")
|
|
397
|
+
]
|
|
398
|
+
), k(r, d);
|
|
399
|
+
}, Q = (r) => {
|
|
400
|
+
var d = Cr(), m = at(d);
|
|
401
|
+
Pe(m, 17, () => e(p), (C) => C.ProgressId, (C, P) => {
|
|
402
|
+
const W = h(() => e(D).includes(e(P).ProgressId)), se = h(() => hr(e(P)));
|
|
403
|
+
var ke = br(), ie = l(ke);
|
|
404
|
+
let Be;
|
|
405
|
+
var Ee = l(ie), yt = l(Ee, !0);
|
|
406
|
+
a(Ee);
|
|
407
|
+
var Ve = y(Ee, 2), qe = l(Ve);
|
|
408
|
+
{
|
|
409
|
+
var bt = (ee) => {
|
|
410
|
+
var F = mr();
|
|
411
|
+
let te;
|
|
412
|
+
var ye = l(F, !0);
|
|
413
|
+
a(F), R(
|
|
414
|
+
(be) => {
|
|
415
|
+
te = Y(F, 1, "challenge-history__item--status svelte-or1pjf", null, te, { failed: e(se) !== "completed" }), he(F, "data-status", e(se)), w(ye, be);
|
|
416
|
+
},
|
|
417
|
+
[() => n()(e(se))]
|
|
418
|
+
), k(ee, F);
|
|
419
|
+
};
|
|
420
|
+
X(qe, (ee) => {
|
|
421
|
+
e(se) !== null && ee(bt);
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
var ze = y(qe, 2);
|
|
425
|
+
let Fe;
|
|
426
|
+
var xt = l(ze);
|
|
427
|
+
Wt(xt, { size: 15 }), a(ze), a(Ve), a(ie);
|
|
428
|
+
var Ct = y(ie, 2);
|
|
429
|
+
{
|
|
430
|
+
var wt = (ee) => {
|
|
431
|
+
var F = yr(), te = l(F), ye = l(te), be = y(ye), jt = l(be);
|
|
432
|
+
Zt(jt, {}), a(be), a(te);
|
|
433
|
+
var Ke = y(te, 2), Ye = l(Ke), Ie = l(Ye), Je = l(Ie), Se = l(Je), kt = l(Se, !0);
|
|
434
|
+
a(Se);
|
|
435
|
+
var Te = y(Se), Et = l(Te, !0);
|
|
436
|
+
a(Te);
|
|
437
|
+
var We = y(Te), zt = l(We, !0);
|
|
438
|
+
a(We), a(Je), a(Ie);
|
|
439
|
+
var Xe = y(Ie);
|
|
440
|
+
Pe(Xe, 21, () => e(P).Levels ?? [], (me) => me.OrderNumber, (me, K) => {
|
|
441
|
+
const fe = h(() => ft(e(K))), xe = h(() => ur(e(K).Rewards));
|
|
442
|
+
var Ae = _r(), Le = l(Ae), Ze = l(Le), De = l(Ze), It = l(De);
|
|
443
|
+
a(De);
|
|
444
|
+
var St = y(De, 2);
|
|
445
|
+
{
|
|
446
|
+
var Tt = (_e) => {
|
|
447
|
+
var ce = fr();
|
|
448
|
+
let Ce;
|
|
449
|
+
var He = l(ce), Dt = l(He);
|
|
450
|
+
Xt(Dt, {}), a(He);
|
|
451
|
+
var et = y(He, 2), Mt = l(et, !0);
|
|
452
|
+
a(et), a(ce), R(
|
|
453
|
+
(Nt) => {
|
|
454
|
+
Ce = Y(ce, 1, "challenge-history__level-reward svelte-or1pjf", null, Ce, { failed: !e(fe) }), w(Mt, Nt);
|
|
455
|
+
},
|
|
456
|
+
[
|
|
457
|
+
() => e(K).CustomRewardMessage || e(xe).join(" + ")
|
|
458
|
+
]
|
|
459
|
+
), k(_e, ce);
|
|
460
|
+
};
|
|
461
|
+
X(St, (_e) => {
|
|
462
|
+
(e(K).CustomRewardMessage || e(xe).length) && _e(Tt);
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
a(Ze), a(Le);
|
|
466
|
+
var Me = y(Le), Ne = l(Me);
|
|
467
|
+
let Qe;
|
|
468
|
+
var At = l(Ne, !0);
|
|
469
|
+
a(Ne), a(Me);
|
|
470
|
+
var $e = y(Me), Lt = l($e, !0);
|
|
471
|
+
a($e), a(Ae), R(
|
|
472
|
+
(_e, ce, Ce) => {
|
|
473
|
+
w(It, `${_e ?? ""}
|
|
474
|
+
${e(K).OrderNumber + 1}`), Qe = Y(Ne, 1, "challenge-history__level-status svelte-or1pjf", null, Qe, { failed: !e(fe), completed: e(fe) }), w(At, ce), w(Lt, Ce);
|
|
475
|
+
},
|
|
476
|
+
[
|
|
477
|
+
() => n()("level"),
|
|
478
|
+
() => n()(cr[e(K).Status]),
|
|
479
|
+
() => dr(e(K).Time)
|
|
480
|
+
]
|
|
481
|
+
), k(me, Ae);
|
|
482
|
+
}), a(Xe), a(Ye), a(Ke), a(F), R(
|
|
483
|
+
(me, K, fe, xe) => {
|
|
484
|
+
he(te, "href", e(P).TermsAndConditionsUrl), w(ye, `${me ?? ""} `), w(kt, K), w(Et, fe), w(zt, xe);
|
|
485
|
+
},
|
|
486
|
+
[
|
|
487
|
+
() => n()("termsAndConditions"),
|
|
488
|
+
() => n()("level"),
|
|
489
|
+
() => n()("status"),
|
|
490
|
+
() => n()("time")
|
|
491
|
+
]
|
|
492
|
+
), k(ee, F);
|
|
493
|
+
};
|
|
494
|
+
X(Ct, (ee) => {
|
|
495
|
+
e(W) && ee(wt);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
a(ke), R(() => {
|
|
499
|
+
Be = Y(ie, 1, "challenge-history__item svelte-or1pjf", null, Be, { expanded: e(W) }), he(ie, "aria-expanded", e(W)), w(yt, e(P).Name), Fe = Y(ze, 1, "challenge-history__view-details-icon svelte-or1pjf", null, Fe, { expanded: e(W) });
|
|
500
|
+
}), je("click", ie, () => ne(e(P).ProgressId)), k(C, ke);
|
|
501
|
+
});
|
|
502
|
+
var j = y(m, 2);
|
|
503
|
+
{
|
|
504
|
+
var $ = (C) => {
|
|
505
|
+
Qt(C, {
|
|
506
|
+
get offset() {
|
|
507
|
+
return e(N);
|
|
508
|
+
},
|
|
509
|
+
get limit() {
|
|
510
|
+
return e(O);
|
|
511
|
+
},
|
|
512
|
+
get total() {
|
|
513
|
+
return e(T);
|
|
514
|
+
},
|
|
515
|
+
get locale() {
|
|
516
|
+
return v();
|
|
517
|
+
},
|
|
518
|
+
onPageChange: q
|
|
519
|
+
});
|
|
520
|
+
};
|
|
521
|
+
X(j, (C) => {
|
|
522
|
+
!_() && e(T) > e(O) && C($);
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
var U = y(j, 2);
|
|
526
|
+
{
|
|
527
|
+
var ve = (C) => {
|
|
528
|
+
var P = xr();
|
|
529
|
+
Kt(P, (W) => f(H, W), () => e(H)), k(C, P);
|
|
530
|
+
};
|
|
531
|
+
X(U, (C) => {
|
|
532
|
+
_() && e(le) && C(ve);
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
k(r, d);
|
|
536
|
+
};
|
|
537
|
+
X(ge, (r) => {
|
|
538
|
+
e(Z) ? r(s) : e(ae) ? r(A, 1) : e(p).length ? r(Q, -1) : r(M, 2);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
a(G), R(() => oe = Y(G, 1, "challenge-history svelte-or1pjf", null, oe, { anonymous: e(Z) })), k(c, G);
|
|
542
|
+
var pe = Ue(o);
|
|
543
|
+
return V(), pe;
|
|
544
|
+
}
|
|
545
|
+
ot(["click"]);
|
|
546
|
+
Re(
|
|
547
|
+
_t,
|
|
548
|
+
{
|
|
549
|
+
userSession: {},
|
|
550
|
+
locale: {},
|
|
551
|
+
translationUrl: {},
|
|
552
|
+
endpoint: {},
|
|
553
|
+
domainId: {},
|
|
554
|
+
userId: {},
|
|
555
|
+
isMobile: {},
|
|
556
|
+
limit: {}
|
|
557
|
+
},
|
|
558
|
+
[],
|
|
559
|
+
[],
|
|
560
|
+
{ mode: "open" }
|
|
561
|
+
);
|
|
562
|
+
if (typeof window < "u") {
|
|
563
|
+
let c = function(t) {
|
|
564
|
+
return function(...n) {
|
|
565
|
+
try {
|
|
566
|
+
return t.apply(this, n);
|
|
567
|
+
} catch (i) {
|
|
568
|
+
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"))
|
|
569
|
+
return !1;
|
|
570
|
+
throw i;
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
customElements.define = c(customElements.define), import("./ChallengeHistory-8LPDK1aA.js").then((t) => {
|
|
575
|
+
const n = t.default || t;
|
|
576
|
+
customElements.get("challenge-history") || customElements.define("challenge-history", n.element || n);
|
|
577
|
+
}).catch((t) => {
|
|
578
|
+
console.error("BOOT ERROR:", t);
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
var kr = I('<div class="player-challenges__tab-content svelte-kfnpxs"><!></div>');
|
|
582
|
+
const Er = {
|
|
583
|
+
hash: "svelte-kfnpxs",
|
|
584
|
+
code: ".player-challenges__tab-content.svelte-kfnpxs {width:100%;}"
|
|
585
|
+
};
|
|
586
|
+
function zr(c, t) {
|
|
587
|
+
Oe(t, !0), Ge(c, Er);
|
|
588
|
+
const n = u(t, "activeTab", 7), i = u(t, "challenges", 7), V = u(t, "endpoint", 7), b = u(t, "userSession", 7), v = u(t, "userId", 7), E = u(t, "domainId", 7), z = u(t, "locale", 7), S = u(t, "historyLimit", 7), x = u(t, "onViewDetails", 7), _ = u(t, "isMobile", 7), L = h(() => vt(_())), p = h(() => Jt[n()]), T = h(() => !b() && !v()), N = h(() => e(p) ? i().getState(e(p)) : void 0), J = h(() => {
|
|
589
|
+
switch (n()) {
|
|
590
|
+
case de.Promo:
|
|
591
|
+
return i().promoChallenges;
|
|
592
|
+
case de.Active:
|
|
593
|
+
return i().runningChallenges;
|
|
594
|
+
case de.Pending:
|
|
595
|
+
return i().pausedChallenges;
|
|
596
|
+
default:
|
|
597
|
+
return [];
|
|
598
|
+
}
|
|
599
|
+
}), D = () => {
|
|
600
|
+
e(p) && i().loadMore(e(p), e(T));
|
|
601
|
+
}, O = (o) => {
|
|
602
|
+
e(p) && i().loadPage(e(p), e(T), Math.floor(o / e(L)));
|
|
603
|
+
}, Z = () => {
|
|
604
|
+
e(p) && i().load(e(p), e(T));
|
|
605
|
+
};
|
|
606
|
+
var re = {
|
|
607
|
+
get activeTab() {
|
|
608
|
+
return n();
|
|
609
|
+
},
|
|
610
|
+
set activeTab(o) {
|
|
611
|
+
n(o), g();
|
|
612
|
+
},
|
|
613
|
+
get challenges() {
|
|
614
|
+
return i();
|
|
615
|
+
},
|
|
616
|
+
set challenges(o) {
|
|
617
|
+
i(o), g();
|
|
618
|
+
},
|
|
619
|
+
get endpoint() {
|
|
620
|
+
return V();
|
|
621
|
+
},
|
|
622
|
+
set endpoint(o) {
|
|
623
|
+
V(o), g();
|
|
624
|
+
},
|
|
625
|
+
get userSession() {
|
|
626
|
+
return b();
|
|
627
|
+
},
|
|
628
|
+
set userSession(o) {
|
|
629
|
+
b(o), g();
|
|
630
|
+
},
|
|
631
|
+
get userId() {
|
|
632
|
+
return v();
|
|
633
|
+
},
|
|
634
|
+
set userId(o) {
|
|
635
|
+
v(o), g();
|
|
636
|
+
},
|
|
637
|
+
get domainId() {
|
|
638
|
+
return E();
|
|
639
|
+
},
|
|
640
|
+
set domainId(o) {
|
|
641
|
+
E(o), g();
|
|
642
|
+
},
|
|
643
|
+
get locale() {
|
|
644
|
+
return z();
|
|
645
|
+
},
|
|
646
|
+
set locale(o) {
|
|
647
|
+
z(o), g();
|
|
648
|
+
},
|
|
649
|
+
get historyLimit() {
|
|
650
|
+
return S();
|
|
651
|
+
},
|
|
652
|
+
set historyLimit(o) {
|
|
653
|
+
S(o), g();
|
|
654
|
+
},
|
|
655
|
+
get onViewDetails() {
|
|
656
|
+
return x();
|
|
657
|
+
},
|
|
658
|
+
set onViewDetails(o) {
|
|
659
|
+
x(o), g();
|
|
660
|
+
},
|
|
661
|
+
get isMobile() {
|
|
662
|
+
return _();
|
|
663
|
+
},
|
|
664
|
+
set isMobile(o) {
|
|
665
|
+
_(o), g();
|
|
666
|
+
}
|
|
667
|
+
}, q = kr(), ae = l(q);
|
|
668
|
+
{
|
|
669
|
+
var le = (o) => {
|
|
670
|
+
mt(o, {
|
|
671
|
+
get endpoint() {
|
|
672
|
+
return V();
|
|
673
|
+
},
|
|
674
|
+
get userSession() {
|
|
675
|
+
return b();
|
|
676
|
+
},
|
|
677
|
+
get domainId() {
|
|
678
|
+
return E();
|
|
679
|
+
},
|
|
680
|
+
get locale() {
|
|
681
|
+
return z();
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}, H = (o) => {
|
|
685
|
+
{
|
|
686
|
+
let G = h(() => S() ?? e(L));
|
|
687
|
+
_t(o, {
|
|
688
|
+
get endpoint() {
|
|
689
|
+
return V();
|
|
690
|
+
},
|
|
691
|
+
get userSession() {
|
|
692
|
+
return b();
|
|
693
|
+
},
|
|
694
|
+
get userId() {
|
|
695
|
+
return v();
|
|
696
|
+
},
|
|
697
|
+
get domainId() {
|
|
698
|
+
return E();
|
|
699
|
+
},
|
|
700
|
+
get locale() {
|
|
701
|
+
return z();
|
|
702
|
+
},
|
|
703
|
+
get limit() {
|
|
704
|
+
return e(G);
|
|
705
|
+
},
|
|
706
|
+
get isMobile() {
|
|
707
|
+
return _();
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
}, ne = (o) => {
|
|
712
|
+
{
|
|
713
|
+
let G = h(() => e(N)?.loading ?? !1), oe = h(() => e(N)?.hasMore ?? !1), ge = h(() => n() === de.Promo), s = h(() => e(N)?.totalCount ?? 0), A = h(() => (e(N)?.pageNumber ?? Yt) * e(L));
|
|
714
|
+
$t(o, {
|
|
715
|
+
get challenges() {
|
|
716
|
+
return e(J);
|
|
717
|
+
},
|
|
718
|
+
get loading() {
|
|
719
|
+
return e(G);
|
|
720
|
+
},
|
|
721
|
+
get hasMore() {
|
|
722
|
+
return e(oe);
|
|
723
|
+
},
|
|
724
|
+
get pausedChallengeIds() {
|
|
725
|
+
return i().pausedChallengeIds;
|
|
726
|
+
},
|
|
727
|
+
get isPromo() {
|
|
728
|
+
return e(ge);
|
|
729
|
+
},
|
|
730
|
+
get total() {
|
|
731
|
+
return e(s);
|
|
732
|
+
},
|
|
733
|
+
get pageSize() {
|
|
734
|
+
return e(L);
|
|
735
|
+
},
|
|
736
|
+
get offset() {
|
|
737
|
+
return e(A);
|
|
738
|
+
},
|
|
739
|
+
onPageChange: O,
|
|
740
|
+
onLoadMore: D,
|
|
741
|
+
onStatusChange: (M, Q) => i().patchProgress(M, { Status: Q }),
|
|
742
|
+
onClaimed: Z,
|
|
743
|
+
get onViewDetails() {
|
|
744
|
+
return x();
|
|
745
|
+
},
|
|
746
|
+
get endpoint() {
|
|
747
|
+
return V();
|
|
748
|
+
},
|
|
749
|
+
get userSession() {
|
|
750
|
+
return b();
|
|
751
|
+
},
|
|
752
|
+
get userId() {
|
|
753
|
+
return v();
|
|
754
|
+
},
|
|
755
|
+
get domainId() {
|
|
756
|
+
return E();
|
|
757
|
+
},
|
|
758
|
+
get locale() {
|
|
759
|
+
return z();
|
|
760
|
+
},
|
|
761
|
+
get isMobile() {
|
|
762
|
+
return _();
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
X(ae, (o) => {
|
|
768
|
+
n() === de.Code ? o(le) : n() === de.Finished ? o(H, 1) : o(ne, -1);
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
return a(q), k(c, q), Ue(re);
|
|
772
|
+
}
|
|
773
|
+
Re(
|
|
774
|
+
zr,
|
|
775
|
+
{
|
|
776
|
+
activeTab: {},
|
|
777
|
+
challenges: {},
|
|
778
|
+
endpoint: {},
|
|
779
|
+
userSession: {},
|
|
780
|
+
userId: {},
|
|
781
|
+
domainId: {},
|
|
782
|
+
locale: {},
|
|
783
|
+
historyLimit: {},
|
|
784
|
+
onViewDetails: {},
|
|
785
|
+
isMobile: {}
|
|
786
|
+
},
|
|
787
|
+
[],
|
|
788
|
+
[],
|
|
789
|
+
{ mode: "open" }
|
|
790
|
+
);
|
|
791
|
+
export {
|
|
792
|
+
mt as C,
|
|
793
|
+
_t as a,
|
|
794
|
+
zr as b
|
|
795
|
+
};
|