@everymatrix/player-challenges 0.1.19 → 0.1.20
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-BEURnjpJ.cjs → ArrowLeftIcon-DO6udG1s.cjs} +1 -1
- package/components/{ArrowLeftIcon-DN6e9luu.js → ArrowLeftIcon-Kaa3LG8f.js} +1 -1
- package/components/{Badge-DSBvI-B9.js → Badge-CRqhE-Hj.js} +1 -1
- package/components/{Badge-BEjEww7C.cjs → Badge-D0ZJbgp_.cjs} +1 -1
- package/components/{Button-ewgCN0Ji.js → Button--aG_lPro.js} +1 -1
- package/components/{Button-Bvh3WQSZ.cjs → Button-DAWII22_.cjs} +1 -1
- package/components/ChallengeBanner-BSZGA4qu.js +75 -0
- package/components/ChallengeBanner-Bs54x1Zc.cjs +4 -0
- package/components/{ChallengeBreadcrumbs-SeC9192i.cjs → ChallengeBreadcrumbs-D-k5g986.cjs} +1 -1
- package/components/{ChallengeBreadcrumbs-BtOwj4Jl.js → ChallengeBreadcrumbs-DeCNSw4j.js} +2 -2
- package/components/{ChallengeCard-Zj92mrKO.cjs → ChallengeCard-DV8NRsI8.cjs} +1 -1
- package/components/{ChallengeCard-BZ8CZvgE.js → ChallengeCard-DmJwt2y9.js} +2 -2
- package/components/{ChallengeClaimCode-BXn91GDr.cjs → ChallengeClaimCode-C3wmimbK.cjs} +1 -1
- package/components/{ChallengeClaimCode-CeM2Z6p6.js → ChallengeClaimCode-lHWYRca3.js} +2 -2
- package/components/{ChallengeDetails-B5AHPIQM.js → ChallengeDetails-CfJ9IZJZ.js} +2 -2
- package/components/{ChallengeDetails-BVoZJVVL.cjs → ChallengeDetails-DhoUowNR.cjs} +1 -1
- package/components/{ChallengeDetailsSkeleton-CdG_rSGQ.js → ChallengeDetailsSkeleton-CQE9XygJ.js} +10 -10
- package/components/{ChallengeDetailsSkeleton-u24ioQh6.cjs → ChallengeDetailsSkeleton-DUsj6Ex3.cjs} +1 -1
- package/components/{ChallengeEvents-DkdwGm5z.js → ChallengeEvents-D94H9Krw.js} +1 -1
- package/components/{ChallengeEvents-7BMohfz-.cjs → ChallengeEvents-DbhIZhJN.cjs} +1 -1
- package/components/{ChallengeGames-hnPYCbOH.cjs → ChallengeGames-BzYJAg3r.cjs} +1 -1
- package/components/{ChallengeGames-BvHQAgRm.js → ChallengeGames-CEbrL9fk.js} +16 -16
- package/components/{ChallengeHistory-C0lhKrpA.js → ChallengeHistory-C37Ju-TF.js} +2 -2
- package/components/{ChallengeHistory-DoXcpVtR.cjs → ChallengeHistory-IrHNMx-f.cjs} +1 -1
- package/components/{ChallengeLevels-CmLntQ0a.js → ChallengeLevels-C1Za1xaA.js} +58 -58
- package/components/{ChallengeLevels-BpGMpkdK.cjs → ChallengeLevels-C9PgTVw2.cjs} +1 -1
- package/components/ChallengeList-DBHOCEpb.cjs +21 -0
- package/components/ChallengeList-DNBErKGO.js +1228 -0
- package/components/{ChallengeProgress-BPSQNZFN.js → ChallengeProgress-BYIofXd9.js} +9 -9
- package/components/{ChallengeProgress-vtUcMyKL.cjs → ChallengeProgress-DD6NEO1V.cjs} +1 -1
- package/components/{ChallengeProgressItem-3A5VPooB.js → ChallengeProgressItem-BPDACh1_.js} +67 -67
- package/components/{ChallengeProgressItem-bSzmG8l2.cjs → ChallengeProgressItem-Cx1q3OK1.cjs} +4 -4
- package/components/{ChallengeRules-YzymE0DQ.js → ChallengeRules-Cd4G_z7I.js} +14 -14
- package/components/{ChallengeRules-VFOXD1ge.cjs → ChallengeRules-yhHxeXjC.cjs} +1 -1
- package/components/ChallengeSummary-DUvVQjAb.js +230 -0
- package/components/ChallengeSummary-DYXjswnX.cjs +1 -0
- package/components/{ChallengeTabContent-BmBcztk_.cjs → ChallengeTabContent-GaoM87MI.cjs} +4 -4
- package/components/{ChallengeTabContent-2kOyabcA.js → ChallengeTabContent-e78Z_mn_.js} +105 -102
- package/components/{ChallengeTabPanel-D_brgA-W.cjs → ChallengeTabPanel-CSDQ_fby.cjs} +1 -1
- package/components/{ChallengeTabPanel-CqwPtmvo.js → ChallengeTabPanel-swSmY8NR.js} +8 -8
- package/components/ChallengeTabs-C8XAfjLf.cjs +14 -0
- package/components/ChallengeTabs-DJMMrYac.js +8754 -0
- package/components/{CheckIcon-DeZrzQxv.cjs → CheckIcon-BlrbsjpT.cjs} +1 -1
- package/components/{CheckIcon-DlNpzYWO.js → CheckIcon-tK7V78N4.js} +1 -1
- package/components/{ChevronIcon-Bx8g9KW1.cjs → ChevronIcon-BqhIe8-q.cjs} +1 -1
- package/components/{ChevronIcon-BLforcQh.js → ChevronIcon-qaJ1Oj2y.js} +1 -1
- package/components/{ChipIcon-kKYQ4DVa.cjs → ChipIcon-BduX6dog.cjs} +1 -1
- package/components/{ChipIcon-BIaydmmL.js → ChipIcon-Ujh-VOxq.js} +1 -1
- package/components/{ChipShineIcon-x_PFBpiC.js → ChipShineIcon-CeuttnnT.js} +4 -4
- package/components/{ChipShineIcon-BhJxc-7o.cjs → ChipShineIcon-Da9RxUg4.cjs} +1 -1
- package/components/{ExistIcon-eNMDxHqT.js → ExistIcon-D4vwoDrn.js} +1 -1
- package/components/{ExistIcon--rtolulO.cjs → ExistIcon-DRSBI9MS.cjs} +1 -1
- package/components/{GiftIcon-BEczx5al.cjs → GiftIcon-CamLbeF4.cjs} +1 -1
- package/components/{GiftIcon-B0dDFiN1.js → GiftIcon-OBRuiA-K.js} +1 -1
- package/components/{LinkIcon-B1a0ukPT.js → LinkIcon-CgJEoIZw.js} +1 -1
- package/components/{LinkIcon-D8SAcoU1.cjs → LinkIcon-Ddovd_62.cjs} +1 -1
- package/components/{LockIcon-B96T_uuy.js → LockIcon-DIQ-GJQk.js} +1 -1
- package/components/{LockIcon-C0YL_dFy.cjs → LockIcon-a1RxQQaV.cjs} +1 -1
- package/components/{Pagination-BACM981T.js → Pagination-CP5YVa1Z.js} +5 -5
- package/components/{Pagination-Xk727E7v.cjs → Pagination-o53D-u3a.cjs} +1 -1
- package/components/PlayerChallenges-B8InccvG.cjs +1 -0
- package/components/{PlayerChallenges-r9ozrIGW.js → PlayerChallenges-BvI4m2pX.js} +109 -106
- package/components/{StarIcon-D891Qux1.cjs → StarIcon-BObqgUDq.cjs} +1 -1
- package/components/{StarIcon-BcWj-wRN.js → StarIcon-DndEbyJY.js} +1 -1
- package/components/{TargetIcon-Bv2zPej6.js → TargetIcon-Bo2nEJYn.js} +1 -1
- package/components/{TargetIcon-CCXuJUbZ.cjs → TargetIcon-DI14gV_H.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeBanner-E82laAQ0.js +0 -103
- package/components/ChallengeBanner-WwVvI1Uu.cjs +0 -30
- package/components/ChallengeList-DWrRtGZ6.cjs +0 -47
- package/components/ChallengeList-Dztxku3t.js +0 -1259
- package/components/ChallengeSummary-D6OJ_aBt.cjs +0 -1
- package/components/ChallengeSummary-rhsO5YE0.js +0 -205
- package/components/ChallengeTabs-Bkx7hDSs.cjs +0 -14
- package/components/ChallengeTabs-DrR1HXiu.js +0 -8749
- package/components/PlayerChallenges-T3zWVcYA.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as dt, c as Ge, d as Ue, h as Be, p as g, u as ht, q as gt,
|
|
2
|
-
import { C as tr } from "./ChevronIcon-
|
|
3
|
-
import { G as rr } from "./GiftIcon-
|
|
4
|
-
import { L as lr } from "./LinkIcon-
|
|
5
|
-
import { P as ar } from "./Pagination-
|
|
6
|
-
import { C as nr } from "./ChallengeList-
|
|
1
|
+
import { g as dt, c as Ge, d as Ue, h as Be, p as g, u as ht, q as gt, au as ut, aA as pt, v as ze, E as vt, aJ as Vt, z as J, t as R, a as w, b as Ve, k as S, e as u, m as mt, n as v, A as e, r as h, B as Z, C as i, D as E, o as x, aK as qt, i as C, aL as Ft, s as ue, j as Ee, l as ft, $ as _t, w as H, F as d, aM as Kt, ai as Yt, aj as nt, ak as Jt, al as Zt, aN as pe, aO as Qt, x as ot, aP as yt, aQ as Xt, I as He, _ as st, a6 as Oe, a0 as Wt, aR as se, aS as $t, aT as er } from "./ChallengeTabs-DJMMrYac.js";
|
|
2
|
+
import { C as tr } from "./ChevronIcon-qaJ1Oj2y.js";
|
|
3
|
+
import { G as rr } from "./GiftIcon-OBRuiA-K.js";
|
|
4
|
+
import { L as lr } from "./LinkIcon-CgJEoIZw.js";
|
|
5
|
+
import { P as ar } from "./Pagination-CP5YVa1Z.js";
|
|
6
|
+
import { C as nr } from "./ChallengeList-DNBErKGO.js";
|
|
7
7
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
8
|
}, globalThis.customElements = { define() {
|
|
9
9
|
}, get() {
|
|
@@ -67,37 +67,37 @@ const ur = {
|
|
|
67
67
|
@media (max-width: 767px) {.challenge-claim-code.svelte-1hz4cfc {margin-top:20px;}
|
|
68
68
|
}.challenge-claim-code.anonymous.svelte-1hz4cfc {padding:32px 12px;text-align:center;margin:0;}`
|
|
69
69
|
};
|
|
70
|
-
function bt(
|
|
71
|
-
Ue(t, !0), Be(
|
|
70
|
+
function bt(c, t) {
|
|
71
|
+
Ue(t, !0), Be(c, ur);
|
|
72
72
|
const l = () => ft(_t, "$_", o), [o, U] = mt(), y = g(t, "endpoint", 7), m = g(t, "userSession", 7), j = g(t, "locale", 7, "en"), k = g(t, "translationUrl", 7), I = g(t, "domainId", 7);
|
|
73
73
|
ht(() => gt(j(), or)), ut(() => {
|
|
74
74
|
k() && pt(k(), "challenge-claim-code");
|
|
75
75
|
}), ze(() => {
|
|
76
76
|
vt(j() || "en");
|
|
77
77
|
});
|
|
78
|
-
let b =
|
|
79
|
-
const L = (n) => n.length >= sr && n.length <= it && ir.test(n), B =
|
|
80
|
-
|
|
78
|
+
let b = H(""), _ = H(null), T = H(!1), p = H(!1), z;
|
|
79
|
+
const L = (n) => n.length >= sr && n.length <= it && ir.test(n), B = i(() => L(e(b))), V = i(() => e(p) || !!e(_)), O = i(() => !!y() && !!m() && !!I()), N = i(() => e(B) && !e(T) && e(O)), Q = i(() => !m()), ee = (n) => {
|
|
80
|
+
d(b, n.target.value, !0), d(_, null), clearTimeout(z), z = setTimeout(
|
|
81
81
|
() => {
|
|
82
|
-
|
|
82
|
+
d(p, !!e(b) && !L(e(b)), !0);
|
|
83
83
|
},
|
|
84
84
|
cr
|
|
85
85
|
);
|
|
86
86
|
}, X = async () => {
|
|
87
87
|
if (e(N)) {
|
|
88
|
-
|
|
88
|
+
d(T, !0), d(_, null);
|
|
89
89
|
try {
|
|
90
90
|
await Kt({
|
|
91
91
|
endpoint: y(),
|
|
92
92
|
domainId: I(),
|
|
93
93
|
sessionId: m(),
|
|
94
94
|
code: e(b)
|
|
95
|
-
}),
|
|
95
|
+
}), d(b, ""), d(p, !1), Yt(nt.Claim);
|
|
96
96
|
} catch (n) {
|
|
97
97
|
const M = n instanceof Jt ? n.errorCode : null, P = n instanceof Error ? n.message : String(n);
|
|
98
|
-
|
|
98
|
+
d(_, P, !0), Zt(nt.Claim, P, M ?? void 0);
|
|
99
99
|
} finally {
|
|
100
|
-
|
|
100
|
+
d(T, !1);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
};
|
|
@@ -145,10 +145,10 @@ function bt(i, t) {
|
|
|
145
145
|
let be;
|
|
146
146
|
var Se = E(G, !0);
|
|
147
147
|
h(r);
|
|
148
|
-
var
|
|
149
|
-
h(M),
|
|
148
|
+
var ce = x(r, 2), Ie = E(ce, !0);
|
|
149
|
+
h(M), R(
|
|
150
150
|
(me, Ae, f, A) => {
|
|
151
|
-
C(re, me), D = Z(s, 1, "challenge-claim-code__input svelte-1hz4cfc", null, D, { errored: e(V) }), Ft(s, e(b)), ue(s, "maxlength", it), ue(s, "placeholder", Ae), ue(s, "aria-invalid", e(V)), be = Z(G, 1, "challenge-claim-code__rule svelte-1hz4cfc", null, be, { errored: e(V) }), C(Se, f),
|
|
151
|
+
C(re, me), D = Z(s, 1, "challenge-claim-code__input svelte-1hz4cfc", null, D, { errored: e(V) }), Ft(s, e(b)), ue(s, "maxlength", it), ue(s, "placeholder", Ae), ue(s, "aria-invalid", e(V)), be = Z(G, 1, "challenge-claim-code__rule svelte-1hz4cfc", null, be, { errored: e(V) }), C(Se, f), ce.disabled = !e(N), C(Ie, A);
|
|
152
152
|
},
|
|
153
153
|
[
|
|
154
154
|
() => l()("claimCodeTitle"),
|
|
@@ -156,18 +156,18 @@ function bt(i, t) {
|
|
|
156
156
|
() => e(_) ?? l()("claimCodeRuleText"),
|
|
157
157
|
() => l()("applyCode")
|
|
158
158
|
]
|
|
159
|
-
), Ee("input", s, ee), Ee("keydown", s, (me) => me.key === "Enter" && X()), Ee("click",
|
|
160
|
-
},
|
|
159
|
+
), Ee("input", s, ee), Ee("keydown", s, (me) => me.key === "Enter" && X()), Ee("click", ce, X), w(n, M);
|
|
160
|
+
}, W = (n) => {
|
|
161
161
|
var M = hr(), P = E(M, !0);
|
|
162
|
-
|
|
162
|
+
R((re) => C(P, re), [() => l()("claimCodeAnonymous")]), w(n, M);
|
|
163
163
|
};
|
|
164
164
|
J(a, (n) => {
|
|
165
|
-
e(
|
|
165
|
+
e(Q) ? n(W, -1) : n(te);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
h(q),
|
|
169
|
-
var
|
|
170
|
-
return U(),
|
|
168
|
+
h(q), R(() => F = Z(q, 1, "challenge-claim-code svelte-1hz4cfc", null, F, { anonymous: e(Q) })), w(c, q);
|
|
169
|
+
var ie = Ve(ve);
|
|
170
|
+
return U(), ie;
|
|
171
171
|
}
|
|
172
172
|
dt(["input", "keydown", "click"]);
|
|
173
173
|
Ge(
|
|
@@ -184,7 +184,7 @@ Ge(
|
|
|
184
184
|
{ mode: "open" }
|
|
185
185
|
);
|
|
186
186
|
if (typeof window < "u") {
|
|
187
|
-
let
|
|
187
|
+
let c = function(t) {
|
|
188
188
|
return function(...l) {
|
|
189
189
|
try {
|
|
190
190
|
return t.apply(this, l);
|
|
@@ -195,7 +195,7 @@ if (typeof window < "u") {
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
|
-
customElements.define =
|
|
198
|
+
customElements.define = c(customElements.define), import("./ChallengeClaimCode-lHWYRca3.js").then((t) => {
|
|
199
199
|
const l = t.default || t;
|
|
200
200
|
customElements.get("challenge-claim-code") || customElements.define("challenge-claim-code", l.element || l);
|
|
201
201
|
}).catch((t) => {
|
|
@@ -235,10 +235,10 @@ const pr = {
|
|
|
235
235
|
[pe.Completed]: "completed",
|
|
236
236
|
[pe.Expired]: "expired",
|
|
237
237
|
[pe.Forfeited]: "forfeited"
|
|
238
|
-
}, mr = (
|
|
239
|
-
const t =
|
|
240
|
-
return t.length ? ct(
|
|
241
|
-
}, _r = (
|
|
238
|
+
}, mr = (c) => Qt(c, "DD/MM/YY HH:mm"), xt = (c) => c.Status === pe.Completed, ct = (c, t) => (c.Levels ?? []).some((l) => l.Status === t), fr = (c) => {
|
|
239
|
+
const t = c.Levels ?? [];
|
|
240
|
+
return t.length ? ct(c, pe.Forfeited) ? "rejected" : ct(c, pe.Expired) ? "failed" : t.every(xt) ? "completed" : null : null;
|
|
241
|
+
}, _r = (c) => Object.values(c ?? {}).map((t) => t?.RewardDescription).filter((t) => !!t);
|
|
242
242
|
var yr = S('<p class="challenge-history__anonymous svelte-or1pjf"> </p>'), br = S('<div class="challenge-history__skeleton svelte-or1pjf"></div>'), xr = S('<p class="challenge-history__empty svelte-or1pjf"> </p>'), wr = S("<span> </span>"), Cr = S('<div><span class="challenge-history__level-item--icon svelte-or1pjf"><!></span> <span class="challenge-history__level--info-value svelte-or1pjf"> </span></div>'), jr = S('<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="challenge-history__level-time svelte-or1pjf"> </td></tr>'), kr = S('<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="challenge-history__level-table-wrapper 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>'), zr = S('<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>'), Er = S('<div class="challenge-history__load-more-sentinel svelte-or1pjf" aria-hidden="true"></div>'), Sr = S("<!> <!> <!>", 1), Ir = S("<div><!></div>");
|
|
243
243
|
const Ar = {
|
|
244
244
|
hash: "svelte-or1pjf",
|
|
@@ -256,17 +256,17 @@ const Ar = {
|
|
|
256
256
|
.challenge-history__details-expanded.svelte-or1pjf .challenge-history__level-table-body:where(.svelte-or1pjf) td:where(.svelte-or1pjf) {padding-left:8px;padding-right:8px;}
|
|
257
257
|
}`
|
|
258
258
|
};
|
|
259
|
-
function wt(
|
|
260
|
-
Ue(t, !0), Be(
|
|
259
|
+
function wt(c, t) {
|
|
260
|
+
Ue(t, !0), Be(c, Ar);
|
|
261
261
|
const l = () => ft(_t, "$_", o), [o, U] = mt(), y = g(t, "userSession", 7), m = g(t, "locale", 7, "en"), j = g(t, "translationUrl", 7), k = g(t, "endpoint", 7), I = g(t, "domainId", 7), b = g(t, "userId", 7), _ = g(t, "isMobile", 7, !0), T = g(t, "limit", 7);
|
|
262
262
|
ht(() => gt(m(), pr)), ut(() => {
|
|
263
263
|
j() && pt(j(), "challenge-history");
|
|
264
264
|
}), ze(() => {
|
|
265
265
|
vt(m() || "en");
|
|
266
266
|
});
|
|
267
|
-
let p =
|
|
268
|
-
const N =
|
|
269
|
-
|
|
267
|
+
let p = H(ot([])), z = H(0), L = H(0), B = H(!1), V = H(!1), O = H(ot([]));
|
|
268
|
+
const N = i(() => Number(T()) || yt(_())), Q = i(() => !y() && !b()), ee = [0, 1, 2, 3], X = async (r, s = !1) => {
|
|
269
|
+
d(B, !0), d(V, s, !0), s || d(L, r, !0);
|
|
270
270
|
try {
|
|
271
271
|
const D = await Xt({
|
|
272
272
|
endpoint: k(),
|
|
@@ -278,11 +278,11 @@ function wt(i, t) {
|
|
|
278
278
|
pageSize: e(N),
|
|
279
279
|
isFutureAvailable: !0
|
|
280
280
|
}), G = D.Data ?? [];
|
|
281
|
-
|
|
281
|
+
d(p, s ? [...e(p), ...G] : G, !0), d(z, D.TotalItem ?? e(p).length, !0), d(L, r, !0), s && !G.length && d(z, e(p).length, !0), s || d(O, [], !0);
|
|
282
282
|
} catch (D) {
|
|
283
|
-
console.error("challenge-history: failed to load history", D), s ?
|
|
283
|
+
console.error("challenge-history: failed to load history", D), s ? d(z, e(p).length, !0) : (d(p, [], !0), d(z, 0));
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
d(B, !1), d(V, !1);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
ze(() => {
|
|
@@ -293,10 +293,10 @@ function wt(i, t) {
|
|
|
293
293
|
userSession: y(),
|
|
294
294
|
locale: m(),
|
|
295
295
|
pageSize: e(N)
|
|
296
|
-
}.endpoint || e(
|
|
296
|
+
}.endpoint || e(Q) || X(0);
|
|
297
297
|
});
|
|
298
|
-
const ve =
|
|
299
|
-
let F =
|
|
298
|
+
const ve = i(() => e(B) && !e(V)), q = i(() => e(p).length < e(z));
|
|
299
|
+
let F = H(void 0);
|
|
300
300
|
ze(() => {
|
|
301
301
|
if (!_() || !e(q) || e(B) || !e(F))
|
|
302
302
|
return;
|
|
@@ -309,7 +309,7 @@ function wt(i, t) {
|
|
|
309
309
|
return r.observe(e(F)), () => r.disconnect();
|
|
310
310
|
});
|
|
311
311
|
const a = (r) => {
|
|
312
|
-
|
|
312
|
+
d(
|
|
313
313
|
O,
|
|
314
314
|
e(O).includes(r) ? e(O).filter((s) => s !== r) : [...e(O), r],
|
|
315
315
|
!0
|
|
@@ -364,38 +364,38 @@ function wt(i, t) {
|
|
|
364
364
|
set limit(r) {
|
|
365
365
|
T(r), u();
|
|
366
366
|
}
|
|
367
|
-
},
|
|
368
|
-
let
|
|
369
|
-
var n = v(
|
|
367
|
+
}, W = Ir();
|
|
368
|
+
let ie;
|
|
369
|
+
var n = v(W);
|
|
370
370
|
{
|
|
371
371
|
var M = (r) => {
|
|
372
372
|
var s = yr(), D = E(s, !0);
|
|
373
|
-
|
|
373
|
+
R((G) => C(D, G), [() => l()("historyAnonymous")]), w(r, s);
|
|
374
374
|
}, P = (r) => {
|
|
375
|
-
var s = Sr(), D =
|
|
375
|
+
var s = Sr(), D = He(s);
|
|
376
376
|
{
|
|
377
377
|
var G = (f) => {
|
|
378
|
-
var A = st(), le =
|
|
378
|
+
var A = st(), le = He(A);
|
|
379
379
|
Oe(le, 16, () => ee, (K) => K, (K, ae) => {
|
|
380
|
-
var
|
|
381
|
-
w(K,
|
|
380
|
+
var de = br();
|
|
381
|
+
w(K, de);
|
|
382
382
|
}), w(f, A);
|
|
383
383
|
}, be = (f) => {
|
|
384
384
|
var A = xr(), le = E(A, !0);
|
|
385
|
-
|
|
385
|
+
R((K) => C(le, K), [() => l()("historyEmpty")]), w(f, A);
|
|
386
386
|
}, Se = (f) => {
|
|
387
|
-
var A = st(), le =
|
|
387
|
+
var A = st(), le = He(A);
|
|
388
388
|
Oe(le, 17, () => e(p), (K) => K.ProgressId, (K, ae) => {
|
|
389
|
-
const
|
|
390
|
-
var Te = zr(),
|
|
389
|
+
const de = i(() => e(O).includes(e(ae).ProgressId)), xe = i(() => fr(e(ae)));
|
|
390
|
+
var Te = zr(), he = v(Te);
|
|
391
391
|
let qe;
|
|
392
|
-
var Fe = v(
|
|
392
|
+
var Fe = v(he), Ct = E(Fe, !0), Ke = x(Fe, 2), Ye = v(Ke);
|
|
393
393
|
{
|
|
394
394
|
var jt = (ne) => {
|
|
395
395
|
var $ = wr();
|
|
396
396
|
let oe;
|
|
397
397
|
var we = E($, !0);
|
|
398
|
-
|
|
398
|
+
R(
|
|
399
399
|
(Ce) => {
|
|
400
400
|
oe = Z($, 1, "challenge-history__item--status svelte-or1pjf", null, oe, { failed: e(xe) !== "completed" }), ue($, "data-status", e(xe)), C(we, Ce);
|
|
401
401
|
},
|
|
@@ -409,33 +409,33 @@ function wt(i, t) {
|
|
|
409
409
|
var Le = x(Ye, 2);
|
|
410
410
|
let Je;
|
|
411
411
|
var kt = v(Le);
|
|
412
|
-
tr(kt, { size: 15 }), h(Le), h(Ke), h(
|
|
413
|
-
var zt = x(
|
|
412
|
+
tr(kt, { size: 15 }), h(Le), h(Ke), h(he);
|
|
413
|
+
var zt = x(he, 2);
|
|
414
414
|
{
|
|
415
415
|
var Et = (ne) => {
|
|
416
416
|
var $ = kr(), oe = v($), we = v(oe), Ce = x(we), St = v(Ce);
|
|
417
417
|
lr(St, {}), h(Ce), h(oe);
|
|
418
|
-
var Ze = x(oe, 2),
|
|
418
|
+
var Ze = x(oe, 2), Qe = v(Ze), Me = v(Qe), Xe = v(Me), We = v(Xe), It = E(We, !0), $e = x(We), At = E($e, !0), Tt = x($e), Lt = E(Tt, !0);
|
|
419
419
|
h(Xe), h(Me);
|
|
420
420
|
var et = x(Me);
|
|
421
421
|
Oe(et, 21, () => e(ae).Levels ?? [], (fe) => fe.OrderNumber, (fe, Y) => {
|
|
422
|
-
const _e =
|
|
422
|
+
const _e = i(() => xt(e(Y))), je = i(() => _r(e(Y).Rewards));
|
|
423
423
|
var De = jr(), Ne = v(De), tt = v(Ne), rt = v(tt), Mt = E(rt), Dt = x(rt, 2);
|
|
424
424
|
{
|
|
425
425
|
var Nt = (ye) => {
|
|
426
|
-
var
|
|
426
|
+
var ge = Cr();
|
|
427
427
|
let ke;
|
|
428
|
-
var
|
|
429
|
-
rr(Ot, {}), h(
|
|
430
|
-
var Gt = x(
|
|
431
|
-
h(
|
|
428
|
+
var Re = v(ge), Ot = v(Re);
|
|
429
|
+
rr(Ot, {}), h(Re);
|
|
430
|
+
var Gt = x(Re, 2), Ut = E(Gt, !0);
|
|
431
|
+
h(ge), R(
|
|
432
432
|
(Bt) => {
|
|
433
|
-
ke = Z(
|
|
433
|
+
ke = Z(ge, 1, "challenge-history__level-reward svelte-or1pjf", null, ke, { failed: !e(_e) }), C(Ut, Bt);
|
|
434
434
|
},
|
|
435
435
|
[
|
|
436
436
|
() => e(Y).CustomRewardMessage || e(je).join(" + ")
|
|
437
437
|
]
|
|
438
|
-
), w(ye,
|
|
438
|
+
), w(ye, ge);
|
|
439
439
|
};
|
|
440
440
|
J(Dt, (ye) => {
|
|
441
441
|
(e(Y).CustomRewardMessage || e(je).length) && ye(Nt);
|
|
@@ -446,11 +446,11 @@ function wt(i, t) {
|
|
|
446
446
|
let at;
|
|
447
447
|
var Pt = E(lt, !0);
|
|
448
448
|
h(Pe);
|
|
449
|
-
var
|
|
450
|
-
h(De),
|
|
451
|
-
(ye,
|
|
449
|
+
var Rt = x(Pe), Ht = E(Rt, !0);
|
|
450
|
+
h(De), R(
|
|
451
|
+
(ye, ge, ke) => {
|
|
452
452
|
C(Mt, `${ye ?? ""}
|
|
453
|
-
${e(Y).OrderNumber + 1}`), at = Z(lt, 1, "challenge-history__level-status svelte-or1pjf", null, at, { failed: !e(_e), completed: e(_e) }), C(Pt,
|
|
453
|
+
${e(Y).OrderNumber + 1}`), at = Z(lt, 1, "challenge-history__level-status svelte-or1pjf", null, at, { failed: !e(_e), completed: e(_e) }), C(Pt, ge), C(Ht, ke);
|
|
454
454
|
},
|
|
455
455
|
[
|
|
456
456
|
() => l()("level"),
|
|
@@ -458,7 +458,7 @@ function wt(i, t) {
|
|
|
458
458
|
() => mr(e(Y).Time)
|
|
459
459
|
]
|
|
460
460
|
), w(fe, De);
|
|
461
|
-
}), h(et), h(
|
|
461
|
+
}), h(et), h(Qe), h(Ze), h($), R(
|
|
462
462
|
(fe, Y, _e, je) => {
|
|
463
463
|
ue(oe, "href", e(ae).TermsAndConditionsUrl), C(we, `${fe ?? ""} `), C(It, Y), C(At, _e), C(Lt, je);
|
|
464
464
|
},
|
|
@@ -471,19 +471,19 @@ function wt(i, t) {
|
|
|
471
471
|
), w(ne, $);
|
|
472
472
|
};
|
|
473
473
|
J(zt, (ne) => {
|
|
474
|
-
e(
|
|
474
|
+
e(de) && ne(Et);
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
h(Te),
|
|
478
|
-
qe = Z(
|
|
479
|
-
}), Ee("click",
|
|
477
|
+
h(Te), R(() => {
|
|
478
|
+
qe = Z(he, 1, "challenge-history__item svelte-or1pjf", null, qe, { expanded: e(de) }), ue(he, "aria-expanded", e(de)), C(Ct, e(ae).Name), Je = Z(Le, 1, "challenge-history__view-details-icon svelte-or1pjf", null, Je, { expanded: e(de) });
|
|
479
|
+
}), Ee("click", he, () => a(e(ae).ProgressId)), w(K, Te);
|
|
480
480
|
}), w(f, A);
|
|
481
481
|
};
|
|
482
482
|
J(D, (f) => {
|
|
483
483
|
e(ve) ? f(G) : e(p).length ? f(Se, -1) : f(be, 1);
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
|
-
var
|
|
486
|
+
var ce = x(D, 2);
|
|
487
487
|
{
|
|
488
488
|
var Ie = (f) => {
|
|
489
489
|
ar(f, {
|
|
@@ -502,15 +502,15 @@ function wt(i, t) {
|
|
|
502
502
|
onPageChange: X
|
|
503
503
|
});
|
|
504
504
|
};
|
|
505
|
-
J(
|
|
505
|
+
J(ce, (f) => {
|
|
506
506
|
!_() && e(z) > e(N) && f(Ie);
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
var me = x(
|
|
509
|
+
var me = x(ce, 2);
|
|
510
510
|
{
|
|
511
511
|
var Ae = (f) => {
|
|
512
512
|
var A = Er();
|
|
513
|
-
|
|
513
|
+
Wt(A, (le) => d(F, le), () => e(F)), w(f, A);
|
|
514
514
|
};
|
|
515
515
|
J(me, (f) => {
|
|
516
516
|
_() && e(q) && f(Ae);
|
|
@@ -519,10 +519,10 @@ function wt(i, t) {
|
|
|
519
519
|
w(r, s);
|
|
520
520
|
};
|
|
521
521
|
J(n, (r) => {
|
|
522
|
-
e(
|
|
522
|
+
e(Q) ? r(M) : r(P, -1);
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
|
-
h(
|
|
525
|
+
h(W), R(() => ie = Z(W, 1, "challenge-history svelte-or1pjf", null, ie, { anonymous: e(Q) })), w(c, W);
|
|
526
526
|
var re = Ve(te);
|
|
527
527
|
return U(), re;
|
|
528
528
|
}
|
|
@@ -544,7 +544,7 @@ Ge(
|
|
|
544
544
|
{ mode: "open" }
|
|
545
545
|
);
|
|
546
546
|
if (typeof window < "u") {
|
|
547
|
-
let
|
|
547
|
+
let c = function(t) {
|
|
548
548
|
return function(...l) {
|
|
549
549
|
try {
|
|
550
550
|
return t.apply(this, l);
|
|
@@ -555,7 +555,7 @@ if (typeof window < "u") {
|
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
};
|
|
558
|
-
customElements.define =
|
|
558
|
+
customElements.define = c(customElements.define), import("./ChallengeHistory-C37Ju-TF.js").then((t) => {
|
|
559
559
|
const l = t.default || t;
|
|
560
560
|
customElements.get("challenge-history") || customElements.define("challenge-history", l.element || l);
|
|
561
561
|
}).catch((t) => {
|
|
@@ -567,15 +567,15 @@ const Lr = {
|
|
|
567
567
|
hash: "svelte-kfnpxs",
|
|
568
568
|
code: ".player-challenges__tab-content.svelte-kfnpxs {width:100%;}"
|
|
569
569
|
};
|
|
570
|
-
function Mr(
|
|
571
|
-
Ue(t, !0), Be(
|
|
572
|
-
const l = g(t, "activeTab", 7), o = g(t, "challenges", 7), U = g(t, "endpoint", 7), y = g(t, "userSession", 7), m = g(t, "userId", 7), j = g(t, "domainId", 7), k = g(t, "locale", 7), I = g(t, "historyLimit", 7), b = g(t, "onViewDetails", 7), _ = g(t, "isMobile", 7), T =
|
|
570
|
+
function Mr(c, t) {
|
|
571
|
+
Ue(t, !0), Be(c, Lr);
|
|
572
|
+
const l = g(t, "activeTab", 7), o = g(t, "challenges", 7), U = g(t, "endpoint", 7), y = g(t, "userSession", 7), m = g(t, "userId", 7), j = g(t, "domainId", 7), k = g(t, "locale", 7), I = g(t, "historyLimit", 7), b = g(t, "onViewDetails", 7), _ = g(t, "isMobile", 7), T = i(() => yt(_())), p = i(() => er[l()]), z = i(() => !y() && !m()), L = i(() => e(p) ? o().getState(e(p)) : void 0), B = i(() => {
|
|
573
573
|
switch (l()) {
|
|
574
|
-
case
|
|
574
|
+
case se.Promo:
|
|
575
575
|
return o().promoChallenges;
|
|
576
|
-
case
|
|
576
|
+
case se.Active:
|
|
577
577
|
return o().activeChallenges;
|
|
578
|
-
case
|
|
578
|
+
case se.Pending:
|
|
579
579
|
return o().awaitingChallenges;
|
|
580
580
|
default:
|
|
581
581
|
return [];
|
|
@@ -587,7 +587,7 @@ function Mr(i, t) {
|
|
|
587
587
|
}, N = () => {
|
|
588
588
|
e(p) && o().load(e(p), e(z));
|
|
589
589
|
};
|
|
590
|
-
var
|
|
590
|
+
var Q = {
|
|
591
591
|
get activeTab() {
|
|
592
592
|
return l();
|
|
593
593
|
},
|
|
@@ -667,7 +667,7 @@ function Mr(i, t) {
|
|
|
667
667
|
});
|
|
668
668
|
}, q = (a) => {
|
|
669
669
|
{
|
|
670
|
-
let te =
|
|
670
|
+
let te = i(() => I() ?? e(T));
|
|
671
671
|
wt(a, {
|
|
672
672
|
get endpoint() {
|
|
673
673
|
return U();
|
|
@@ -694,7 +694,7 @@ function Mr(i, t) {
|
|
|
694
694
|
}
|
|
695
695
|
}, F = (a) => {
|
|
696
696
|
{
|
|
697
|
-
let te =
|
|
697
|
+
let te = i(() => e(L)?.loading ?? !1), W = i(() => e(L)?.hasMore ?? !1), ie = i(() => l() === se.Promo), n = i(() => l() === se.Pending), M = i(() => e(L)?.totalCount ?? 0), P = i(() => (e(L)?.pageNumber ?? $t) * e(T));
|
|
698
698
|
nr(a, {
|
|
699
699
|
get challenges() {
|
|
700
700
|
return e(B);
|
|
@@ -703,26 +703,29 @@ function Mr(i, t) {
|
|
|
703
703
|
return e(te);
|
|
704
704
|
},
|
|
705
705
|
get hasMore() {
|
|
706
|
-
return e(
|
|
706
|
+
return e(W);
|
|
707
707
|
},
|
|
708
708
|
get pausedChallengeIds() {
|
|
709
709
|
return o().pausedChallengeIds;
|
|
710
710
|
},
|
|
711
711
|
get isPromo() {
|
|
712
|
-
return e(
|
|
712
|
+
return e(ie);
|
|
713
713
|
},
|
|
714
|
-
get
|
|
714
|
+
get isPending() {
|
|
715
715
|
return e(n);
|
|
716
716
|
},
|
|
717
|
+
get total() {
|
|
718
|
+
return e(M);
|
|
719
|
+
},
|
|
717
720
|
get pageSize() {
|
|
718
721
|
return e(T);
|
|
719
722
|
},
|
|
720
723
|
get offset() {
|
|
721
|
-
return e(
|
|
724
|
+
return e(P);
|
|
722
725
|
},
|
|
723
726
|
onPageChange: O,
|
|
724
727
|
onLoadMore: V,
|
|
725
|
-
onStatusChange: (
|
|
728
|
+
onStatusChange: (re, r) => o().patchProgress(re, { Status: r }),
|
|
726
729
|
onClaimed: N,
|
|
727
730
|
get onViewDetails() {
|
|
728
731
|
return b();
|
|
@@ -749,10 +752,10 @@ function Mr(i, t) {
|
|
|
749
752
|
}
|
|
750
753
|
};
|
|
751
754
|
J(X, (a) => {
|
|
752
|
-
l() ===
|
|
755
|
+
l() === se.Code ? a(ve) : l() === se.Finished ? a(q, 1) : a(F, -1);
|
|
753
756
|
});
|
|
754
757
|
}
|
|
755
|
-
return h(ee), w(
|
|
758
|
+
return h(ee), w(c, ee), Ve(Q);
|
|
756
759
|
}
|
|
757
760
|
Ge(
|
|
758
761
|
Mr,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-C8XAfjLf.cjs"),S=require("./ChallengeLevels-C9PgTVw2.cjs"),b=require("./ChallengeGames-BzYJAg3r.cjs"),T=require("./ChallengeEvents-DbhIZhJN.cjs"),_=require("./ChallengeRules-yhHxeXjC.cjs");var y=e.from_html('<div class="challenge-details__tab-panel"><!></div>');const P={hash:"svelte-c4i06z",code:""};function d(c,t){e.push(t,!0),e.append_styles(c,P);const s=e.prop(t,"challengeItem",7),a=e.prop(t,"activeTab",15),l=e.prop(t,"endpoint",7),u=e.prop(t,"domainId",7),r=e.prop(t,"userSession",7),i=e.prop(t,"userId",7),o=e.prop(t,"isPaused",7,!1),g=e.prop(t,"onStatusChange",7);var m={get challengeItem(){return s()},set challengeItem(n){s(n),e.flushSync()},get activeTab(){return a()},set activeTab(n){a(n),e.flushSync()},get endpoint(){return l()},set endpoint(n){l(n),e.flushSync()},get domainId(){return u()},set domainId(n){u(n),e.flushSync()},get userSession(){return r()},set userSession(n){r(n),e.flushSync()},get userId(){return i()},set userId(n){i(n),e.flushSync()},get isPaused(){return o()},set isPaused(n=!1){o(n),e.flushSync()},get onStatusChange(){return g()},set onStatusChange(n){g(n),e.flushSync()}},h=y(),p=e.child(h);{var v=n=>{S.ChallengeLevels(n,{get challengeItem(){return s()},get isPaused(){return o()}})},f=n=>{b.ChallengeGames(n,{get challengeItem(){return s()},get endpoint(){return l()},get userSession(){return r()}})},C=n=>{T.ChallengeEvents(n,{get challengeItem(){return s()}})},I=n=>{_.ChallengeRules(n,{get challengeItem(){return s()},get endpoint(){return l()},get domainId(){return u()},get userSession(){return r()},get userId(){return i()},get onStatusChange(){return g()}})};e.if_block(p,n=>{a()===e.ChallengeDetailsTab.Levels?n(v):a()===e.ChallengeDetailsTab.Games?n(f,1):a()===e.ChallengeDetailsTab.Events?n(C,2):a()===e.ChallengeDetailsTab.Rules&&n(I,3)})}return e.reset(h),e.append(c,h),e.pop(m)}e.create_custom_element(d,{challengeItem:{},activeTab:{},endpoint:{},domainId:{},userSession:{},userId:{},isPaused:{},onStatusChange:{}},[],[],{mode:"open"});exports.ChallengeTabPanel=d;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as T, d as p, h as P, p as s, z as _, a as E, b as L, k as y, e as a, n as k,
|
|
2
|
-
import { C as z } from "./ChallengeLevels-
|
|
3
|
-
import { C as D } from "./ChallengeGames-
|
|
4
|
-
import { C as G } from "./ChallengeEvents-
|
|
5
|
-
import { C as H } from "./ChallengeRules-
|
|
1
|
+
import { c as T, d as p, h as P, p as s, z as _, a as E, b as L, k as y, e as a, n as k, aq as u, r as x } from "./ChallengeTabs-DJMMrYac.js";
|
|
2
|
+
import { C as z } from "./ChallengeLevels-C1Za1xaA.js";
|
|
3
|
+
import { C as D } from "./ChallengeGames-CEbrL9fk.js";
|
|
4
|
+
import { C as G } from "./ChallengeEvents-D94H9Krw.js";
|
|
5
|
+
import { C as H } from "./ChallengeRules-Cd4G_z7I.js";
|
|
6
6
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
7
7
|
}, globalThis.customElements = { define() {
|
|
8
8
|
}, get() {
|
|
@@ -10,7 +10,7 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
10
10
|
} });
|
|
11
11
|
var M = y('<div class="challenge-details__tab-panel"><!></div>');
|
|
12
12
|
const R = { hash: "svelte-c4i06z", code: "" };
|
|
13
|
-
function
|
|
13
|
+
function q(c, t) {
|
|
14
14
|
p(t, !0), P(c, R);
|
|
15
15
|
const n = s(t, "challengeItem", 7), r = s(t, "activeTab", 15), l = s(t, "endpoint", 7), o = s(t, "domainId", 7), i = s(t, "userSession", 7), g = s(t, "userId", 7), d = s(t, "isPaused", 7, !1), m = s(t, "onStatusChange", 7);
|
|
16
16
|
var v = {
|
|
@@ -120,7 +120,7 @@ function w(c, t) {
|
|
|
120
120
|
return x(h), E(c, h), L(v);
|
|
121
121
|
}
|
|
122
122
|
T(
|
|
123
|
-
|
|
123
|
+
q,
|
|
124
124
|
{
|
|
125
125
|
challengeItem: {},
|
|
126
126
|
activeTab: {},
|
|
@@ -136,5 +136,5 @@ T(
|
|
|
136
136
|
{ mode: "open" }
|
|
137
137
|
);
|
|
138
138
|
export {
|
|
139
|
-
|
|
139
|
+
q as C
|
|
140
140
|
};
|