@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.
Files changed (79) hide show
  1. package/components/{ArrowLeftIcon-De_oE6VJ.js → ArrowLeftIcon-DorWQbN-.js} +1 -1
  2. package/components/{ArrowLeftIcon-D0LpsufV.cjs → ArrowLeftIcon-f3IOpYNO.cjs} +1 -1
  3. package/components/{Badge-r78wWqnE.cjs → Badge-BDyFx08l.cjs} +4 -4
  4. package/components/{Badge-C2_vCRtE.js → Badge-t5ERZxvC.js} +27 -27
  5. package/components/{Button-CU8n8iLn.cjs → Button-CUICdAqJ.cjs} +1 -1
  6. package/components/{Button-CqWi35Id.js → Button-DgtpbC5z.js} +1 -1
  7. package/components/{ChallengeBanner-oDSEjGGf.js → ChallengeBanner-DSarDh3k.js} +31 -29
  8. package/components/{ChallengeBanner-CBWAGiMi.cjs → ChallengeBanner-uzrRUAwa.cjs} +2 -2
  9. package/components/{ChallengeBreadcrumbs-0C1qzQmn.js → ChallengeBreadcrumbs-DHNKXK43.js} +2 -2
  10. package/components/{ChallengeBreadcrumbs-B1QPZ9Ub.cjs → ChallengeBreadcrumbs-DwyCD4n7.cjs} +1 -1
  11. package/components/{ChallengeCard-3915Vdd8.cjs → ChallengeCard-BuDYjnna.cjs} +1 -1
  12. package/components/{ChallengeCard-yUSt6Ocz.js → ChallengeCard-SkQ_xfqo.js} +6 -6
  13. package/components/{ChallengeClaimCode-D-skzCq6.js → ChallengeClaimCode-DiJqww5t.js} +2 -2
  14. package/components/{ChallengeClaimCode-BUD6Bszw.cjs → ChallengeClaimCode-zgBFr-2W.cjs} +1 -1
  15. package/components/{ChallengeDetails-D74Ki1Uz.cjs → ChallengeDetails-D1h6ITwb.cjs} +1 -1
  16. package/components/{ChallengeDetails-C5WUrhPo.js → ChallengeDetails-DMdkjCMC.js} +2 -2
  17. package/components/{ChallengeEvents-CXxvU73L.js → ChallengeEvents-B6l3iUIf.js} +1 -1
  18. package/components/{ChallengeEvents-U5YbNMZ6.cjs → ChallengeEvents-D5kenBIc.cjs} +1 -1
  19. package/components/ChallengeGames-CZu1MzPA.cjs +11 -0
  20. package/components/{ChallengeGames-CLISWWUl.js → ChallengeGames-CjLLzYVy.js} +57 -56
  21. package/components/{ChallengeHistory-BveIKX6m.js → ChallengeHistory-8LPDK1aA.js} +10 -10
  22. package/components/ChallengeHistory-CHK2Q13H.cjs +1 -0
  23. package/components/ChallengeLevels-CCZGLr9f.cjs +8 -0
  24. package/components/{ChallengeLevels-EESudJez.js → ChallengeLevels-s9abBMuq.js} +84 -84
  25. package/components/ChallengeList-CK16hckg.cjs +20 -0
  26. package/components/{ChallengeList-P4I4Dp10.js → ChallengeList-D6_LjVsa.js} +429 -424
  27. package/components/{ChallengeProgress-BxkeK6qN.js → ChallengeProgress-BFAihSd8.js} +11 -11
  28. package/components/{ChallengeProgress-BpkQJwJK.cjs → ChallengeProgress-F4DvqxcC.cjs} +1 -1
  29. package/components/{ChallengeProgressItem-DHghH0Re.js → ChallengeProgressItem-BHk-1FKU.js} +3 -3
  30. package/components/{ChallengeProgressItem-YsHk5ITp.cjs → ChallengeProgressItem-DrMZEU3z.cjs} +2 -2
  31. package/components/{ChallengeRules-D7Q6JUd5.js → ChallengeRules-CIINsSVb.js} +2 -2
  32. package/components/{ChallengeRules-CoGa-G4a.cjs → ChallengeRules-D5vuaTVl.cjs} +1 -1
  33. package/components/ChallengeSummary-BhoNxD8d.cjs +1 -0
  34. package/components/ChallengeSummary-sGIfhmFq.js +213 -0
  35. package/components/ChallengeTabContent-CYsszYCj.js +795 -0
  36. package/components/ChallengeTabContent-CftvI5C6.cjs +12 -0
  37. package/components/{ChallengeTabPanel-Rci3HLu2.js → ChallengeTabPanel-CdcGT_LI.js} +5 -5
  38. package/components/{ChallengeTabPanel-wgd02Iii.cjs → ChallengeTabPanel-ChsZw13b.cjs} +1 -1
  39. package/components/ChallengeTabSkeleton-CDYom40f.cjs +15 -0
  40. package/components/{ChallengeTabSkeleton-B-MQHvwC.js → ChallengeTabSkeleton-CuRzH3G_.js} +33 -32
  41. package/components/ChallengeTabs-Dcgam5G5.cjs +14 -0
  42. package/components/{ChallengeTabs-nR_tQGbd.js → ChallengeTabs-TgwP2u9F.js} +2256 -2245
  43. package/components/{CheckIcon-D4lHKEA2.js → CheckIcon-B82NDFTL.js} +1 -1
  44. package/components/{CheckIcon-CxbYr1xp.cjs → CheckIcon-BqS1Tdfu.cjs} +1 -1
  45. package/components/{ChevronIcon-CRAlhZkw.js → ChevronIcon-C0yjiiug.js} +1 -1
  46. package/components/{ChevronIcon-BAMpEJGd.cjs → ChevronIcon-zvGKIAT7.cjs} +1 -1
  47. package/components/{ExistIcon-Dto-bbDy.cjs → ExistIcon-DifozqZH.cjs} +1 -1
  48. package/components/{ExistIcon-MA116zUI.js → ExistIcon-Y3lLvkAJ.js} +1 -1
  49. package/components/{GiftIcon-Cd5b3K-t.cjs → GiftIcon-Bd4y8-Fm.cjs} +1 -1
  50. package/components/{GiftIcon-Co84y9Go.js → GiftIcon-CY_-XK0b.js} +1 -1
  51. package/components/{LinkIcon-Bwgy8Luj.cjs → LinkIcon-Bttg6ZAz.cjs} +1 -1
  52. package/components/{LinkIcon-pV2v0CrL.js → LinkIcon-CLHvOQ2s.js} +1 -1
  53. package/components/{LockIcon-BYYuZI1_.cjs → LockIcon-BgDxb03o.cjs} +1 -1
  54. package/components/{LockIcon-CzobKbeF.js → LockIcon-gAFRYl52.js} +1 -1
  55. package/components/Pagination-4P-rWszf.cjs +12 -0
  56. package/components/Pagination-CbvI_9SC.js +123 -0
  57. package/components/PlayerChallenges-CaUu7idr.js +417 -0
  58. package/components/PlayerChallenges-CtnY-k5K.cjs +1 -0
  59. package/components/{StarIcon-D_ixyTtO.js → StarIcon-CbfuCfUA.js} +1 -1
  60. package/components/{StarIcon-tdfCGCXl.cjs → StarIcon-DE0r6703.cjs} +1 -1
  61. package/components/{TargetIcon-Cw-ZoTaW.js → TargetIcon-BVhRYDcS.js} +1 -1
  62. package/components/{TargetIcon-BGcVQbCs.cjs → TargetIcon-DDclkkVP.cjs} +1 -1
  63. package/esnext/player-challenges.cjs +1 -1
  64. package/esnext/player-challenges.js +2 -2
  65. package/package.json +1 -1
  66. package/components/ChallengeGames-BVIMhW8b.cjs +0 -11
  67. package/components/ChallengeHistory-DDWHc60D.cjs +0 -1
  68. package/components/ChallengeLevels-Dqz1Jroz.cjs +0 -8
  69. package/components/ChallengeList-Bby_g4Z8.cjs +0 -20
  70. package/components/ChallengeSummary-Bu4cCk0T.js +0 -222
  71. package/components/ChallengeSummary-CcneZ-_H.cjs +0 -1
  72. package/components/ChallengeTabContent--jk6IZ9p.js +0 -794
  73. package/components/ChallengeTabContent-D3ghO0QX.cjs +0 -12
  74. package/components/ChallengeTabSkeleton-CuGIFm8O.cjs +0 -15
  75. package/components/ChallengeTabs-BtbgPMyA.cjs +0 -14
  76. package/components/Pagination-BgeAkkYm.js +0 -130
  77. package/components/Pagination-vup1vCrG.cjs +0 -12
  78. package/components/PlayerChallenges-C703Qu2L.cjs +0 -1
  79. package/components/PlayerChallenges-htqi9P1E.js +0 -395
@@ -0,0 +1,213 @@
1
+ import { c as ye, d as ke, h as Ce, p as i, o as l, z as Q, t as R, i as g, A as a, s as Ie, a as b, b as we, k as U, n as s, l as Se, $ as Pe, C as c, K as Le, e as o, m as Ge, L as Te, r as t, M as Ae, N as ze, O as De, P as Ee, Q as Me } from "./ChallengeTabs-TgwP2u9F.js";
2
+ import { B as Ne } from "./Button-DgtpbC5z.js";
3
+ import { G as Be } from "./GiftIcon-CY_-XK0b.js";
4
+ import { L as He } from "./LinkIcon-CLHvOQ2s.js";
5
+ import { S as Ke } from "./StarIcon-CbfuCfUA.js";
6
+ import { T as Oe } from "./TargetIcon-BVhRYDcS.js";
7
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
8
+ }, globalThis.customElements = { define() {
9
+ }, get() {
10
+ }, whenDefined() {
11
+ } });
12
+ var te = U('<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>'), Qe = U('<div class="challenge-details__summary--action svelte-gxb9rk"><!></div>'), Re = U('<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 Ue = {
14
+ hash: "svelte-gxb9rk",
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
+ };
17
+ function Ve(V, r) {
18
+ ke(r, !0), Ce(V, Ue);
19
+ const v = () => Se(Pe, "$_", ne), [ne, le] = Ge(), m = i(r, "challengeItem", 7), y = i(r, "endpoint", 7, ""), k = i(r, "domainId", 7, ""), x = i(r, "userSession", 7, ""), p = i(r, "userId", 7, ""), C = i(r, "locale", 7, "en"), I = i(r, "isPromo", 7, !1), w = i(r, "isPaused", 7, !1), S = i(r, "onStatusChange", 7), P = i(r, "onClaimed", 7), L = i(r, "onLaunchGame", 7), G = c(() => m().ChallengePresentation), T = c(() => m().LevelProgresses ?? []), j = c(() => !x() && !p()), re = c(() => !a(j) && Te(m())), q = c(() => Ee(m())), F = c(() => Ae(a(q))), J = c(() => ze(a(q), m().CurrencySymbol ?? "", v())), ie = c(() => a(re) ? v()("levelProgress", {
20
+ values: {
21
+ current: Le(a(T)),
22
+ total: a(T).length
23
+ }
24
+ }) : String(a(T).length)), _ = c(() => De(m(), {
25
+ isPromo: I(),
26
+ isPaused: w(),
27
+ isAuthorized: !a(j)
28
+ })), W = Me(() => ({
29
+ endpoint: y(),
30
+ domainId: k(),
31
+ userSession: x(),
32
+ userId: p(),
33
+ onStatusChange: S(),
34
+ onClaimed: P()
35
+ })), oe = () => {
36
+ if (a(_).kind === "launchGame") {
37
+ L()?.();
38
+ return;
39
+ }
40
+ W.run(a(_).kind, m());
41
+ };
42
+ var me = {
43
+ get challengeItem() {
44
+ return m();
45
+ },
46
+ set challengeItem(e) {
47
+ m(e), o();
48
+ },
49
+ get endpoint() {
50
+ return y();
51
+ },
52
+ set endpoint(e = "") {
53
+ y(e), o();
54
+ },
55
+ get domainId() {
56
+ return k();
57
+ },
58
+ set domainId(e = "") {
59
+ k(e), o();
60
+ },
61
+ get userSession() {
62
+ return x();
63
+ },
64
+ set userSession(e = "") {
65
+ x(e), o();
66
+ },
67
+ get userId() {
68
+ return p();
69
+ },
70
+ set userId(e = "") {
71
+ p(e), o();
72
+ },
73
+ get locale() {
74
+ return C();
75
+ },
76
+ set locale(e = "en") {
77
+ C(e), o();
78
+ },
79
+ get isPromo() {
80
+ return I();
81
+ },
82
+ set isPromo(e = !1) {
83
+ I(e), o();
84
+ },
85
+ get isPaused() {
86
+ return w();
87
+ },
88
+ set isPaused(e = !1) {
89
+ w(e), o();
90
+ },
91
+ get onStatusChange() {
92
+ return S();
93
+ },
94
+ set onStatusChange(e) {
95
+ S(e), o();
96
+ },
97
+ get onClaimed() {
98
+ return P();
99
+ },
100
+ set onClaimed(e) {
101
+ P(e), o();
102
+ },
103
+ get onLaunchGame() {
104
+ return L();
105
+ },
106
+ set onLaunchGame(e) {
107
+ L(e), o();
108
+ }
109
+ }, A = Re(), z = s(A), de = s(z, !0);
110
+ t(z);
111
+ var D = l(z, 2), X = s(D);
112
+ {
113
+ var ge = (e) => {
114
+ var n = te(), d = s(n), B = s(d);
115
+ Be(B, {}), t(d);
116
+ var u = l(d, 2), H = s(u);
117
+ t(u);
118
+ var h = l(u, 2), K = s(h, !0);
119
+ t(h), t(n), R(
120
+ (O) => {
121
+ g(H, `${O ?? ""}:`), g(K, a(F));
122
+ },
123
+ [() => v()("get")]
124
+ ), b(e, n);
125
+ };
126
+ Q(X, (e) => {
127
+ a(F) && e(ge);
128
+ });
129
+ }
130
+ var Y = l(X, 2);
131
+ {
132
+ var ce = (e) => {
133
+ var n = te(), d = s(n), B = s(d);
134
+ Oe(B, {}), t(d);
135
+ var u = l(d, 2), H = s(u);
136
+ t(u);
137
+ var h = l(u, 2), K = s(h, !0);
138
+ t(h), t(n), R(
139
+ (O) => {
140
+ g(H, `${O ?? ""}:`), g(K, a(J));
141
+ },
142
+ [() => v()("Condition")]
143
+ ), b(e, n);
144
+ };
145
+ Q(Y, (e) => {
146
+ a(J) && e(ce);
147
+ });
148
+ }
149
+ var Z = l(Y, 2), E = s(Z), ue = s(E);
150
+ Ke(ue, {}), t(E);
151
+ var M = l(E, 2), ve = s(M);
152
+ t(M);
153
+ var $ = l(M, 2), _e = s($, !0);
154
+ t($), t(Z), t(D);
155
+ var N = l(D, 2), f = s(N), ee = s(f), ae = l(ee), he = s(ae);
156
+ He(he, {}), t(ae), t(f);
157
+ var se = l(f, 2), xe = s(se, !0);
158
+ t(se), t(N);
159
+ var pe = l(N, 2);
160
+ {
161
+ var fe = (e) => {
162
+ var n = Qe(), d = s(n);
163
+ Ne(d, {
164
+ get text() {
165
+ return a(_).labelKey;
166
+ },
167
+ get variant() {
168
+ return a(_).variant;
169
+ },
170
+ get disabled() {
171
+ return W.loading;
172
+ },
173
+ get locale() {
174
+ return C();
175
+ },
176
+ onclick: oe
177
+ }), t(n), b(e, n);
178
+ };
179
+ Q(pe, (e) => {
180
+ a(_).kind !== "viewDetails" && e(fe);
181
+ });
182
+ }
183
+ t(A), R(
184
+ (e, n) => {
185
+ g(de, a(G)?.PresentationName), g(ve, `${e ?? ""}:`), g(_e, a(ie)), Ie(f, "href", a(G).Url), g(ee, `${n ?? ""} `), g(xe, a(G).SignificantCondition);
186
+ },
187
+ [() => v()("levels"), () => v()("termsAndConditions")]
188
+ ), b(V, A);
189
+ var be = we(me);
190
+ return le(), be;
191
+ }
192
+ ye(
193
+ Ve,
194
+ {
195
+ challengeItem: {},
196
+ endpoint: {},
197
+ domainId: {},
198
+ userSession: {},
199
+ userId: {},
200
+ locale: {},
201
+ isPromo: {},
202
+ isPaused: {},
203
+ onStatusChange: {},
204
+ onClaimed: {},
205
+ onLaunchGame: {}
206
+ },
207
+ [],
208
+ [],
209
+ { mode: "open" }
210
+ );
211
+ export {
212
+ Ve as C
213
+ };