@everymatrix/player-challenges 0.1.18 → 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-f3IOpYNO.cjs → ArrowLeftIcon-BEURnjpJ.cjs} +1 -1
- package/components/{ArrowLeftIcon-DorWQbN-.js → ArrowLeftIcon-DN6e9luu.js} +1 -1
- package/components/Badge-BEjEww7C.cjs +9 -0
- package/components/Badge-DSBvI-B9.js +138 -0
- package/components/{Button-CUICdAqJ.cjs → Button-Bvh3WQSZ.cjs} +2 -2
- package/components/{Button-DgtpbC5z.js → Button-ewgCN0Ji.js} +17 -17
- package/components/ChallengeBanner-E82laAQ0.js +103 -0
- package/components/ChallengeBanner-WwVvI1Uu.cjs +30 -0
- package/components/{ChallengeBreadcrumbs-DHNKXK43.js → ChallengeBreadcrumbs-BtOwj4Jl.js} +7 -7
- package/components/ChallengeBreadcrumbs-SeC9192i.cjs +1 -0
- package/components/{ChallengeCard-SkQ_xfqo.js → ChallengeCard-BZ8CZvgE.js} +5 -5
- package/components/{ChallengeCard-BuDYjnna.cjs → ChallengeCard-Zj92mrKO.cjs} +1 -1
- package/components/{ChallengeClaimCode-zgBFr-2W.cjs → ChallengeClaimCode-BXn91GDr.cjs} +1 -1
- package/components/{ChallengeClaimCode-DiJqww5t.js → ChallengeClaimCode-CeM2Z6p6.js} +2 -2
- package/components/{ChallengeDetails-DMdkjCMC.js → ChallengeDetails-B5AHPIQM.js} +2 -2
- package/components/{ChallengeDetails-D1h6ITwb.cjs → ChallengeDetails-BVoZJVVL.cjs} +1 -1
- package/components/ChallengeDetailsSkeleton-CdG_rSGQ.js +138 -0
- package/components/ChallengeDetailsSkeleton-u24ioQh6.cjs +20 -0
- package/components/{ChallengeEvents-D5kenBIc.cjs → ChallengeEvents-7BMohfz-.cjs} +1 -1
- package/components/{ChallengeEvents-B6l3iUIf.js → ChallengeEvents-DkdwGm5z.js} +16 -16
- package/components/ChallengeGames-BvHQAgRm.js +135 -0
- package/components/ChallengeGames-hnPYCbOH.cjs +14 -0
- package/components/{ChallengeHistory-8LPDK1aA.js → ChallengeHistory-C0lhKrpA.js} +4 -4
- package/components/{ChallengeHistory-CHK2Q13H.cjs → ChallengeHistory-DoXcpVtR.cjs} +1 -1
- package/components/ChallengeLevels-BpGMpkdK.cjs +8 -0
- package/components/ChallengeLevels-CmLntQ0a.js +314 -0
- package/components/ChallengeList-DWrRtGZ6.cjs +47 -0
- package/components/{ChallengeList-D6_LjVsa.js → ChallengeList-Dztxku3t.js} +616 -560
- package/components/{ChallengeProgress-BFAihSd8.js → ChallengeProgress-BPSQNZFN.js} +9 -9
- package/components/{ChallengeProgress-F4DvqxcC.cjs → ChallengeProgress-vtUcMyKL.cjs} +1 -1
- package/components/{ChallengeProgressItem-BHk-1FKU.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-sGIfhmFq.js → ChallengeSummary-rhsO5YE0.js} +79 -87
- package/components/ChallengeTabContent-2kOyabcA.js +779 -0
- package/components/ChallengeTabContent-BmBcztk_.cjs +16 -0
- package/components/{ChallengeTabPanel-CdcGT_LI.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-BqS1Tdfu.cjs → CheckIcon-DeZrzQxv.cjs} +1 -1
- package/components/{CheckIcon-B82NDFTL.js → CheckIcon-DlNpzYWO.js} +1 -1
- package/components/{ChevronIcon-C0yjiiug.js → ChevronIcon-BLforcQh.js} +1 -1
- package/components/{ChevronIcon-zvGKIAT7.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-DifozqZH.cjs → ExistIcon--rtolulO.cjs} +1 -1
- package/components/{ExistIcon-Y3lLvkAJ.js → ExistIcon-eNMDxHqT.js} +1 -1
- package/components/{GiftIcon-CY_-XK0b.js → GiftIcon-B0dDFiN1.js} +14 -14
- package/components/{GiftIcon-Bd4y8-Fm.cjs → GiftIcon-BEczx5al.cjs} +1 -1
- package/components/{LinkIcon-CLHvOQ2s.js → LinkIcon-B1a0ukPT.js} +1 -1
- package/components/{LinkIcon-Bttg6ZAz.cjs → LinkIcon-D8SAcoU1.cjs} +1 -1
- package/components/{LockIcon-gAFRYl52.js → LockIcon-B96T_uuy.js} +1 -1
- package/components/{LockIcon-BgDxb03o.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-CaUu7idr.js → PlayerChallenges-r9ozrIGW.js} +147 -127
- package/components/{StarIcon-CbfuCfUA.js → StarIcon-BcWj-wRN.js} +1 -1
- package/components/{StarIcon-DE0r6703.cjs → StarIcon-D891Qux1.cjs} +1 -1
- package/components/{TargetIcon-BVhRYDcS.js → TargetIcon-Bv2zPej6.js} +14 -14
- package/components/{TargetIcon-DDclkkVP.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-BDyFx08l.cjs +0 -7
- package/components/Badge-t5ERZxvC.js +0 -130
- package/components/ChallengeBanner-DSarDh3k.js +0 -59
- package/components/ChallengeBanner-uzrRUAwa.cjs +0 -4
- package/components/ChallengeBreadcrumbs-DwyCD4n7.cjs +0 -1
- package/components/ChallengeGames-CZu1MzPA.cjs +0 -11
- package/components/ChallengeGames-CjLLzYVy.js +0 -134
- package/components/ChallengeLevels-CCZGLr9f.cjs +0 -8
- package/components/ChallengeLevels-s9abBMuq.js +0 -292
- package/components/ChallengeList-CK16hckg.cjs +0 -20
- package/components/ChallengeProgressItem-DrMZEU3z.cjs +0 -68
- package/components/ChallengeRules-CIINsSVb.js +0 -173
- package/components/ChallengeRules-D5vuaTVl.cjs +0 -1
- package/components/ChallengeSummary-BhoNxD8d.cjs +0 -1
- package/components/ChallengeTabContent-CYsszYCj.js +0 -795
- package/components/ChallengeTabContent-CftvI5C6.cjs +0 -12
- package/components/ChallengeTabPanel-ChsZw13b.cjs +0 -1
- package/components/ChallengeTabSkeleton-CDYom40f.cjs +0 -15
- package/components/ChallengeTabSkeleton-CuRzH3G_.js +0 -92
- package/components/ChallengeTabs-Dcgam5G5.cjs +0 -14
- package/components/ChallengeTabs-TgwP2u9F.js +0 -8618
- package/components/Pagination-4P-rWszf.cjs +0 -12
- package/components/Pagination-CbvI_9SC.js +0 -123
- package/components/PlayerChallenges-CtnY-k5K.cjs +0 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { B as
|
|
3
|
-
import { G as
|
|
4
|
-
import { L as
|
|
5
|
-
import { S as Ke } from "./StarIcon-
|
|
6
|
-
import { T as
|
|
1
|
+
import { c as ke, d as Ce, h as Ie, p as i, o as t, z as R, t as K, i as g, A as a, s as we, a as y, b as Se, k as Q, n as l, l as Pe, $ as Le, C as c, D as u, M as Te, e as o, m as Ae, N as Ge, r, O as ze, P as De, Q as Ee, R as Me, S as Ne, T as Be } from "./ChallengeTabs-DrR1HXiu.js";
|
|
2
|
+
import { B as He } from "./Button-ewgCN0Ji.js";
|
|
3
|
+
import { G as Oe } from "./GiftIcon-B0dDFiN1.js";
|
|
4
|
+
import { L as Re } from "./LinkIcon-B1a0ukPT.js";
|
|
5
|
+
import { S as Ke } from "./StarIcon-BcWj-wRN.js";
|
|
6
|
+
import { T as Qe } from "./TargetIcon-Bv2zPej6.js";
|
|
7
7
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
8
|
}, globalThis.customElements = { define() {
|
|
9
9
|
}, get() {
|
|
10
10
|
}, whenDefined() {
|
|
11
11
|
} });
|
|
12
|
-
var
|
|
13
|
-
const
|
|
12
|
+
var se = Q('<li class="challenge-details__summary--info-row svelte-gxb9rk"><span class="challenge-details__summary--info-icon svelte-gxb9rk" aria-hidden="true"><!></span> <span class="challenge-details__summary--info-label svelte-gxb9rk"> </span> <span class="challenge-details__summary--info-value svelte-gxb9rk"> </span></li>'), Ue = Q('<div class="challenge-details__summary--action svelte-gxb9rk"><!></div>'), Ve = Q('<div class="challenge-details__summary svelte-gxb9rk"><h2 class="challenge-details__summary--title svelte-gxb9rk"> </h2> <ul class="challenge-details__summary--info-list svelte-gxb9rk"><!> <!> <li class="challenge-details__summary--info-row svelte-gxb9rk"><span class="challenge-details__summary--info-icon svelte-gxb9rk" aria-hidden="true"><!></span> <span class="challenge-details__summary--info-label svelte-gxb9rk"> </span> <span class="challenge-details__summary--info-value svelte-gxb9rk"> </span></li></ul> <p class="challenge-details__summary--terms svelte-gxb9rk"><a class="challenge-details__summary--terms-link svelte-gxb9rk" target="_blank" rel="noopener noreferrer"> <span class="challenge-details__summary--terms-icon svelte-gxb9rk" aria-hidden="true"><!></span></a> <span class="challenge-details__summary--terms-note"> </span></p> <!></div>');
|
|
13
|
+
const je = {
|
|
14
14
|
hash: "svelte-gxb9rk",
|
|
15
15
|
code: ".challenge-details__summary.svelte-gxb9rk {display:flex;flex-direction:column;gap:12px;min-width:0;.challenge-details__summary--title:where(.svelte-gxb9rk) {margin:0;font-size:16px;font-weight:700;line-height:22px;color:var(--text-default, rgba(255, 255, 255, 1));}.challenge-details__summary--info-list:where(.svelte-gxb9rk) {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}.challenge-details__summary--info-row:where(.svelte-gxb9rk) {display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.4;}.challenge-details__summary--info-icon:where(.svelte-gxb9rk) {display:flex;align-items:center;height:1.4em;flex-shrink:0;color:var(--icon-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--info-label:where(.svelte-gxb9rk) {flex-shrink:0;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--info-value:where(.svelte-gxb9rk) {color:var(--text-brand, rgba(255, 204, 0, 1));}.challenge-details__summary--terms:where(.svelte-gxb9rk) {margin:0;font-size:11px;line-height:1.5;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--terms-link:where(.svelte-gxb9rk) {display:inline-flex;align-items:center;gap:4px;margin-right:4px;color:var(--semantic-info-400, rgba(0, 156, 245, 1));text-decoration:none;border-bottom:1px solid currentColor;}.challenge-details__summary--terms-icon:where(.svelte-gxb9rk) {display:flex;}.challenge-details__summary--action:where(.svelte-gxb9rk) {display:flex;.challenge-button {width:100%;}}}"
|
|
16
16
|
};
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
const v = () =>
|
|
17
|
+
function qe(U, n) {
|
|
18
|
+
Ce(n, !0), Ie(U, je);
|
|
19
|
+
const v = () => Pe(Le, "$_", te), [te, ne] = Ae(), d = i(n, "challengeItem", 7), k = i(n, "endpoint", 7, ""), C = i(n, "domainId", 7, ""), x = i(n, "userSession", 7, ""), p = i(n, "userId", 7, ""), I = i(n, "locale", 7, "en"), f = i(n, "isPromo", 7, !1), w = i(n, "isPaused", 7, !1), S = i(n, "onStatusChange", 7), P = i(n, "onClaimed", 7), L = i(n, "onLaunchGame", 7), T = c(() => d().ChallengePresentation), A = c(() => d().LevelProgresses ?? []), V = c(() => !x() && !p()), le = c(() => !a(V) && Ge(d())), j = c(() => Ne(d())), q = c(() => ze(a(j))), F = c(() => f() ? De(d(), v()) : Ee(a(j), d().CurrencySymbol ?? "", v())), re = c(() => a(le) ? v()("levelProgress", {
|
|
20
20
|
values: {
|
|
21
|
-
current:
|
|
22
|
-
total: a(
|
|
21
|
+
current: Te(a(A)),
|
|
22
|
+
total: a(A).length
|
|
23
23
|
}
|
|
24
|
-
}) : String(a(
|
|
25
|
-
isPromo:
|
|
24
|
+
}) : String(a(A).length)), _ = c(() => Me(d(), {
|
|
25
|
+
isPromo: f(),
|
|
26
26
|
isPaused: w(),
|
|
27
|
-
isAuthorized: !a(
|
|
28
|
-
})),
|
|
29
|
-
endpoint:
|
|
30
|
-
domainId:
|
|
27
|
+
isAuthorized: !a(V)
|
|
28
|
+
})), J = Be(() => ({
|
|
29
|
+
endpoint: k(),
|
|
30
|
+
domainId: C(),
|
|
31
31
|
userSession: x(),
|
|
32
32
|
userId: p(),
|
|
33
33
|
onStatusChange: S(),
|
|
34
34
|
onClaimed: P()
|
|
35
|
-
})),
|
|
35
|
+
})), ie = () => {
|
|
36
36
|
if (a(_).kind === "launchGame") {
|
|
37
37
|
L()?.();
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
J.run(a(_).kind, d());
|
|
41
41
|
};
|
|
42
|
-
var
|
|
42
|
+
var oe = {
|
|
43
43
|
get challengeItem() {
|
|
44
|
-
return
|
|
44
|
+
return d();
|
|
45
45
|
},
|
|
46
46
|
set challengeItem(e) {
|
|
47
|
-
|
|
47
|
+
d(e), o();
|
|
48
48
|
},
|
|
49
49
|
get endpoint() {
|
|
50
|
-
return
|
|
50
|
+
return k();
|
|
51
51
|
},
|
|
52
52
|
set endpoint(e = "") {
|
|
53
|
-
|
|
53
|
+
k(e), o();
|
|
54
54
|
},
|
|
55
55
|
get domainId() {
|
|
56
|
-
return
|
|
56
|
+
return C();
|
|
57
57
|
},
|
|
58
58
|
set domainId(e = "") {
|
|
59
|
-
|
|
59
|
+
C(e), o();
|
|
60
60
|
},
|
|
61
61
|
get userSession() {
|
|
62
62
|
return x();
|
|
@@ -71,16 +71,16 @@ function Ve(V, r) {
|
|
|
71
71
|
p(e), o();
|
|
72
72
|
},
|
|
73
73
|
get locale() {
|
|
74
|
-
return
|
|
74
|
+
return I();
|
|
75
75
|
},
|
|
76
76
|
set locale(e = "en") {
|
|
77
|
-
|
|
77
|
+
I(e), o();
|
|
78
78
|
},
|
|
79
79
|
get isPromo() {
|
|
80
|
-
return
|
|
80
|
+
return f();
|
|
81
81
|
},
|
|
82
82
|
set isPromo(e = !1) {
|
|
83
|
-
|
|
83
|
+
f(e), o();
|
|
84
84
|
},
|
|
85
85
|
get isPaused() {
|
|
86
86
|
return w();
|
|
@@ -106,61 +106,53 @@ function Ve(V, r) {
|
|
|
106
106
|
set onLaunchGame(e) {
|
|
107
107
|
L(e), o();
|
|
108
108
|
}
|
|
109
|
-
},
|
|
110
|
-
t(z);
|
|
111
|
-
var D = l(z, 2), X = s(D);
|
|
109
|
+
}, G = Ve(), W = l(G), de = u(W, !0), z = t(W, 2), X = l(z);
|
|
112
110
|
{
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
var u =
|
|
117
|
-
|
|
118
|
-
var h = l(u, 2), K = s(h, !0);
|
|
119
|
-
t(h), t(n), R(
|
|
111
|
+
var me = (e) => {
|
|
112
|
+
var s = se(), m = l(s), M = l(m);
|
|
113
|
+
Oe(M, {}), r(m);
|
|
114
|
+
var h = t(m, 2), N = u(h), B = t(h, 2), H = u(B, !0);
|
|
115
|
+
r(s), K(
|
|
120
116
|
(O) => {
|
|
121
|
-
g(
|
|
117
|
+
g(N, `${O ?? ""}:`), g(H, a(q));
|
|
122
118
|
},
|
|
123
119
|
[() => v()("get")]
|
|
124
|
-
),
|
|
120
|
+
), y(e, s);
|
|
125
121
|
};
|
|
126
|
-
|
|
127
|
-
a(
|
|
122
|
+
R(X, (e) => {
|
|
123
|
+
a(q) && e(me);
|
|
128
124
|
});
|
|
129
125
|
}
|
|
130
|
-
var Y =
|
|
126
|
+
var Y = t(X, 2);
|
|
131
127
|
{
|
|
132
|
-
var
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
var u =
|
|
136
|
-
|
|
137
|
-
var h = l(u, 2), K = s(h, !0);
|
|
138
|
-
t(h), t(n), R(
|
|
128
|
+
var ge = (e) => {
|
|
129
|
+
var s = se(), m = l(s), M = l(m);
|
|
130
|
+
Qe(M, {}), r(m);
|
|
131
|
+
var h = t(m, 2), N = u(h), B = t(h, 2), H = u(B, !0);
|
|
132
|
+
r(s), K(
|
|
139
133
|
(O) => {
|
|
140
|
-
g(
|
|
134
|
+
g(N, `${O ?? ""}:`), g(H, a(F));
|
|
141
135
|
},
|
|
142
136
|
[() => v()("Condition")]
|
|
143
|
-
),
|
|
137
|
+
), y(e, s);
|
|
144
138
|
};
|
|
145
|
-
|
|
146
|
-
a(
|
|
139
|
+
R(Y, (e) => {
|
|
140
|
+
a(F) && e(ge);
|
|
147
141
|
});
|
|
148
142
|
}
|
|
149
|
-
var Z =
|
|
150
|
-
Ke(
|
|
151
|
-
var
|
|
152
|
-
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
var
|
|
158
|
-
t(se), t(N);
|
|
159
|
-
var pe = l(N, 2);
|
|
143
|
+
var Z = t(Y, 2), D = l(Z), ce = l(D);
|
|
144
|
+
Ke(ce, {}), r(D);
|
|
145
|
+
var $ = t(D, 2), ue = u($), ve = t($, 2), _e = u(ve, !0);
|
|
146
|
+
r(Z), r(z);
|
|
147
|
+
var E = t(z, 2), b = l(E), ee = l(b), ae = t(ee), he = l(ae);
|
|
148
|
+
Re(he, {}), r(ae), r(b);
|
|
149
|
+
var xe = t(b, 2), pe = u(xe, !0);
|
|
150
|
+
r(E);
|
|
151
|
+
var fe = t(E, 2);
|
|
160
152
|
{
|
|
161
|
-
var
|
|
162
|
-
var
|
|
163
|
-
|
|
153
|
+
var be = (e) => {
|
|
154
|
+
var s = Ue(), m = l(s);
|
|
155
|
+
He(m, {
|
|
164
156
|
get text() {
|
|
165
157
|
return a(_).labelKey;
|
|
166
158
|
},
|
|
@@ -168,29 +160,29 @@ function Ve(V, r) {
|
|
|
168
160
|
return a(_).variant;
|
|
169
161
|
},
|
|
170
162
|
get disabled() {
|
|
171
|
-
return
|
|
163
|
+
return J.loading;
|
|
172
164
|
},
|
|
173
165
|
get locale() {
|
|
174
|
-
return
|
|
166
|
+
return I();
|
|
175
167
|
},
|
|
176
|
-
onclick:
|
|
177
|
-
}),
|
|
168
|
+
onclick: ie
|
|
169
|
+
}), r(s), y(e, s);
|
|
178
170
|
};
|
|
179
|
-
|
|
180
|
-
a(_).kind !== "viewDetails" && e(
|
|
171
|
+
R(fe, (e) => {
|
|
172
|
+
a(_).kind !== "viewDetails" && e(be);
|
|
181
173
|
});
|
|
182
174
|
}
|
|
183
|
-
|
|
184
|
-
(e,
|
|
185
|
-
g(de, a(
|
|
175
|
+
r(G), K(
|
|
176
|
+
(e, s) => {
|
|
177
|
+
g(de, a(T)?.PresentationName), g(ue, `${e ?? ""}:`), g(_e, a(re)), we(b, "href", a(T).Url), g(ee, `${s ?? ""} `), g(pe, a(T).SignificantCondition);
|
|
186
178
|
},
|
|
187
179
|
[() => v()("levels"), () => v()("termsAndConditions")]
|
|
188
|
-
),
|
|
189
|
-
var
|
|
190
|
-
return
|
|
180
|
+
), y(U, G);
|
|
181
|
+
var ye = Se(oe);
|
|
182
|
+
return ne(), ye;
|
|
191
183
|
}
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
ke(
|
|
185
|
+
qe,
|
|
194
186
|
{
|
|
195
187
|
challengeItem: {},
|
|
196
188
|
endpoint: {},
|
|
@@ -209,5 +201,5 @@ ye(
|
|
|
209
201
|
{ mode: "open" }
|
|
210
202
|
);
|
|
211
203
|
export {
|
|
212
|
-
|
|
204
|
+
qe as C
|
|
213
205
|
};
|