@everymatrix/player-challenges 0.1.26 → 0.1.27

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 (83) hide show
  1. package/components/{ArrowLeftIcon-Dbj_5vYn.js → ArrowLeftIcon-BPiXQVj9.js} +1 -1
  2. package/components/{ArrowLeftIcon-BU8o_waD.cjs → ArrowLeftIcon-BmltraQE.cjs} +1 -1
  3. package/components/{Badge-BHsDsF1a.cjs → Badge-DB6ry5SO.cjs} +2 -2
  4. package/components/{Badge-DDYnNLoY.js → Badge-pa7-6Tas.js} +53 -55
  5. package/components/{Button-uyqixgQp.cjs → Button-BRSzo_fm.cjs} +2 -2
  6. package/components/{Button-Dz4pnWKK.js → Button-DZmi-cz9.js} +17 -17
  7. package/components/ChallengeBanner-C1Mds6B2.js +93 -0
  8. package/components/ChallengeBanner-CKdF6zQ3.cjs +5 -0
  9. package/components/{ChallengeBreadcrumbs-2v9qUqv3.js → ChallengeBreadcrumbs-C69Rh0k9.js} +2 -2
  10. package/components/{ChallengeBreadcrumbs-ChatLS_r.cjs → ChallengeBreadcrumbs-DWiFNQCa.cjs} +1 -1
  11. package/components/{ChallengeCard-CyLEqvr9.js → ChallengeCard-CHQhYp-x.js} +2 -2
  12. package/components/{ChallengeCard-B92B93t4.cjs → ChallengeCard-D9vr6N3d.cjs} +1 -1
  13. package/components/{ChallengeClaimCode-XoU3k73G.cjs → ChallengeClaimCode-D0OIyaP4.cjs} +1 -1
  14. package/components/{ChallengeClaimCode-DsNB-iOH.js → ChallengeClaimCode-nwSriHyb.js} +2 -2
  15. package/components/{ChallengeDetails-BALmle1D.cjs → ChallengeDetails-BrsSxqF-.cjs} +1 -1
  16. package/components/{ChallengeDetails-xy9WtVz7.js → ChallengeDetails-L21GaGh6.js} +7 -7
  17. package/components/{ChallengeDetailsSkeleton-CNSrDvGk.cjs → ChallengeDetailsSkeleton-CMxjj8kd.cjs} +2 -2
  18. package/components/{ChallengeDetailsSkeleton-qBJgVZ5l.js → ChallengeDetailsSkeleton-liZDUwqb.js} +52 -52
  19. package/components/ChallengeEvents-2JSSIhGA.js +34 -0
  20. package/components/{ChallengeEvents-BQ4LQqmr.cjs → ChallengeEvents-CyoTadTD.cjs} +1 -1
  21. package/components/ChallengeGames-Cj5M4h2m.js +154 -0
  22. package/components/ChallengeGames-DEjLnYyQ.cjs +14 -0
  23. package/components/{ChallengeHistory-nwIKfglb.cjs → ChallengeHistory-B7YS1BG8.cjs} +1 -1
  24. package/components/{ChallengeHistory-Djtltju3.js → ChallengeHistory-s85EKTLX.js} +2 -2
  25. package/components/{ChallengeLevels-HZHAF0YW.js → ChallengeLevels-CcaAn1ym.js} +146 -148
  26. package/components/ChallengeLevels-_6E8leAW.cjs +8 -0
  27. package/components/{ChallengeList-DKaU6w9k.js → ChallengeList-BPHmqDRR.js} +356 -364
  28. package/components/{ChallengeList-Dv0WsFLX.cjs → ChallengeList-DGgEiIo3.cjs} +4 -4
  29. package/components/{ChallengeProgress-IiqaT5Em.js → ChallengeProgress-CYhTxFai.js} +7 -7
  30. package/components/{ChallengeProgress-x-i7Uk-N.cjs → ChallengeProgress-CoaiL93a.cjs} +1 -1
  31. package/components/{ChallengeProgressItem-BpLvYFMi.js → ChallengeProgressItem-CX9m5VWF.js} +215 -225
  32. package/components/{ChallengeProgressItem-DPqFHoj1.cjs → ChallengeProgressItem-DfCjG1l0.cjs} +2 -2
  33. package/components/ChallengeRules-B2t53W3a.cjs +1 -0
  34. package/components/ChallengeRules-BK88n9Xm.js +161 -0
  35. package/components/ChallengeSummary-4bkZrmTC.cjs +1 -0
  36. package/components/ChallengeSummary-CUXYNK2b.js +248 -0
  37. package/components/{ChallengeTabContent-BUbL3Err.js → ChallengeTabContent-BbELX5s1.js} +319 -329
  38. package/components/ChallengeTabContent-D-W8FtWj.cjs +16 -0
  39. package/components/{ChallengeTabPanel-Dg5mInmF.js → ChallengeTabPanel-DdZ1eKhH.js} +5 -5
  40. package/components/{ChallengeTabPanel-BVBxw6tU.cjs → ChallengeTabPanel-dicZoDAf.cjs} +1 -1
  41. package/components/ChallengeTabs-BmJ83kB1.cjs +14 -0
  42. package/components/{ChallengeTabs-CXIPdZOg.js → ChallengeTabs-CzWyw0qJ.js} +3185 -3005
  43. package/components/{CheckIcon-DpKfE1MH.js → CheckIcon-BMVX5t03.js} +1 -1
  44. package/components/{CheckIcon-CBLEKwsu.cjs → CheckIcon-D4xRlb-8.cjs} +1 -1
  45. package/components/{ChevronIcon-B_AytxK9.cjs → ChevronIcon-CAkwQWH1.cjs} +1 -1
  46. package/components/{ChevronIcon-B0XO_sUW.js → ChevronIcon-DtM-BwhX.js} +1 -1
  47. package/components/{ChipIcon-B5wdN3J7.cjs → ChipIcon-DKhd9Uuf.cjs} +1 -1
  48. package/components/{ChipIcon-CkGZN2GT.js → ChipIcon-DaHbdbr0.js} +1 -1
  49. package/components/{ChipShineIcon-B242dy7k.cjs → ChipShineIcon-BePq6_s5.cjs} +1 -1
  50. package/components/{ChipShineIcon-CT4MiKNr.js → ChipShineIcon-CCFIiJmI.js} +16 -16
  51. package/components/{ExistIcon-BQc3oxU_.cjs → ExistIcon-BTThOV0f.cjs} +1 -1
  52. package/components/{ExistIcon-19wwQ4Pq.js → ExistIcon-D_d1Lrm_.js} +1 -1
  53. package/components/{GiftIcon-Bj8xI_6c.cjs → GiftIcon-6zT0-B3C.cjs} +1 -1
  54. package/components/{GiftIcon-DXI72ybm.js → GiftIcon-DG8O5rSK.js} +14 -14
  55. package/components/{LinkIcon-CaI0ly4O.js → LinkIcon-Bi6G9eYP.js} +1 -1
  56. package/components/{LinkIcon-BpW-XAWm.cjs → LinkIcon-kWfeglnB.cjs} +1 -1
  57. package/components/{LockIcon-Df1B037b.js → LockIcon-DDBVHVuK.js} +1 -1
  58. package/components/{LockIcon-CteP5M0h.cjs → LockIcon-TxxaMDyc.cjs} +1 -1
  59. package/components/{Pagination-95wNrpqw.cjs → Pagination-0fQD_Gig.cjs} +2 -2
  60. package/components/Pagination-Cm8XoSbE.js +113 -0
  61. package/components/PlayerChallenges-BeHfyw8o.cjs +1 -0
  62. package/components/{PlayerChallenges-BfN5x59V.js → PlayerChallenges-DloMzh4n.js} +108 -108
  63. package/components/{StarIcon-CGd046oW.cjs → StarIcon-DVy1r8sv.cjs} +1 -1
  64. package/components/{StarIcon-BEbIdRDu.js → StarIcon-Xxm4har4.js} +1 -1
  65. package/components/{TargetIcon-CNt_y-Aw.js → TargetIcon-Cbhbz76j.js} +14 -14
  66. package/components/{TargetIcon-CAhk8AIu.cjs → TargetIcon-CohCxDfw.cjs} +1 -1
  67. package/esnext/player-challenges.cjs +1 -1
  68. package/esnext/player-challenges.js +2 -2
  69. package/package.json +1 -1
  70. package/components/ChallengeBanner-C9EF9EN6.cjs +0 -2
  71. package/components/ChallengeBanner-DQR_JSJP.js +0 -90
  72. package/components/ChallengeEvents-AYaCm7Ce.js +0 -34
  73. package/components/ChallengeGames-DrWOhsw3.js +0 -156
  74. package/components/ChallengeGames-k_-7nQQv.cjs +0 -14
  75. package/components/ChallengeLevels-DKyb_yzN.cjs +0 -8
  76. package/components/ChallengeRules-Bo71x-dY.cjs +0 -1
  77. package/components/ChallengeRules-CwpK2Xkv.js +0 -173
  78. package/components/ChallengeSummary-Dgk8SI6H.js +0 -254
  79. package/components/ChallengeSummary-zwkbvHT6.cjs +0 -1
  80. package/components/ChallengeTabContent-Dq4gafrq.cjs +0 -16
  81. package/components/ChallengeTabs-By40DWWg.cjs +0 -14
  82. package/components/Pagination-DXS6FT0T.js +0 -115
  83. package/components/PlayerChallenges-CrOVN2iM.cjs +0 -1
@@ -0,0 +1,248 @@
1
+ import { c as Ge, d as Ne, h as ze, p as i, N as Be, P as De, u as Fe, y as a, v as He, L as Me, Q as oe, x as S, o as t, t as w, i as g, s as X, a as f, b as Re, A as o, R as Ue, k as P, n as l, l as Ve, $ as Ke, B as u, S as Oe, e as c, m as Qe, T as We, r, U as Xe, V as Ye, W as Ze, X as je, Y as qe, Z as Je, z as $e, _ as ea, a0 as aa } from "./ChallengeTabs-CzWyw0qJ.js";
2
+ import { B as sa } from "./Button-DZmi-cz9.js";
3
+ import { G as ta } from "./GiftIcon-DG8O5rSK.js";
4
+ import { L as na } from "./LinkIcon-Bi6G9eYP.js";
5
+ import { S as la } from "./StarIcon-Xxm4har4.js";
6
+ import { T as ra } from "./TargetIcon-Cbhbz76j.js";
7
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
8
+ }, globalThis.customElements = { define() {
9
+ }, get() {
10
+ }, whenDefined() {
11
+ } });
12
+ var ia = P("<img/>"), ce = P('<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>'), oa = P('<div class="challenge-details__summary--action svelte-gxb9rk"><!></div>'), ca = P('<div class="challenge-details__summary svelte-gxb9rk"><div class="challenge-details__summary--header svelte-gxb9rk"><!> <h2 class="challenge-details__summary--title svelte-gxb9rk"> </h2></div> <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 da = {
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%;}}.challenge-details__summary--header:where(.svelte-gxb9rk) {display:flex;align-items:flex-start;gap:6px;}}"
16
+ };
17
+ function ma(Y, n) {
18
+ Ne(n, !0), ze(Y, da);
19
+ const _ = () => Ve(Ke, "$_", de), [de, me] = Qe(), d = i(n, "challengeItem", 7), L = i(n, "endpoint", 7, ""), A = i(n, "domainId", 7, ""), b = i(n, "userSession", 7, ""), y = i(n, "userId", 7, ""), T = i(n, "locale", 7, "en"), k = i(n, "isPromo", 7, !1), E = i(n, "isPaused", 7, !1), v = i(n, "isExpired", 7, !1), G = i(n, "onStatusChange", 7), N = i(n, "onClaimed", 7), z = i(n, "onLaunchGame", 7), B = o(() => d().ChallengePresentation), D = o(() => d().LevelProgresses ?? []), Z = o(() => !b() && !y()), ge = o(() => !a(Z) && We(d())), j = o(() => Je(d())), q = o(() => Ze(a(j))), J = o(() => k() ? je(d(), _()) : qe(a(j), d().CurrencySymbol ?? "", _())), ue = o(() => a(ge) ? _()("levelProgress", {
20
+ values: {
21
+ current: Oe(a(D)),
22
+ total: a(D).length
23
+ }
24
+ }) : String(a(D).length)), F = o(() => Ue(d(), {
25
+ isPromo: k(),
26
+ isPaused: E(),
27
+ isAuthorized: !a(Z)
28
+ }));
29
+ let $ = Be(De(Fe(() => a(F))));
30
+ He(() => {
31
+ v() || Me($, a(F), !0);
32
+ });
33
+ const h = o(() => v() ? a($) : a(F)), ee = aa(() => ({
34
+ endpoint: L(),
35
+ domainId: A(),
36
+ userSession: b(),
37
+ userId: y(),
38
+ onStatusChange: G(),
39
+ onClaimed: N()
40
+ })), _e = () => {
41
+ if (!v()) {
42
+ if (a(h).kind === "launchGame") {
43
+ z()?.();
44
+ return;
45
+ }
46
+ ee.run(a(h).kind, d());
47
+ }
48
+ }, ve = {
49
+ [oe.Casino]: {
50
+ className: "challenge-details__summary__icon--casino",
51
+ src: Ye,
52
+ alt: "casino"
53
+ },
54
+ [oe.Sportsbook]: {
55
+ className: "challenge-details__summary__icon--sportsbook",
56
+ src: Xe,
57
+ alt: "sportsbook"
58
+ }
59
+ }, C = o(() => ve[d().ContributedFrom]);
60
+ var he = {
61
+ get challengeItem() {
62
+ return d();
63
+ },
64
+ set challengeItem(e) {
65
+ d(e), c();
66
+ },
67
+ get endpoint() {
68
+ return L();
69
+ },
70
+ set endpoint(e = "") {
71
+ L(e), c();
72
+ },
73
+ get domainId() {
74
+ return A();
75
+ },
76
+ set domainId(e = "") {
77
+ A(e), c();
78
+ },
79
+ get userSession() {
80
+ return b();
81
+ },
82
+ set userSession(e = "") {
83
+ b(e), c();
84
+ },
85
+ get userId() {
86
+ return y();
87
+ },
88
+ set userId(e = "") {
89
+ y(e), c();
90
+ },
91
+ get locale() {
92
+ return T();
93
+ },
94
+ set locale(e = "en") {
95
+ T(e), c();
96
+ },
97
+ get isPromo() {
98
+ return k();
99
+ },
100
+ set isPromo(e = !1) {
101
+ k(e), c();
102
+ },
103
+ get isPaused() {
104
+ return E();
105
+ },
106
+ set isPaused(e = !1) {
107
+ E(e), c();
108
+ },
109
+ get isExpired() {
110
+ return v();
111
+ },
112
+ set isExpired(e = !1) {
113
+ v(e), c();
114
+ },
115
+ get onStatusChange() {
116
+ return G();
117
+ },
118
+ set onStatusChange(e) {
119
+ G(e), c();
120
+ },
121
+ get onClaimed() {
122
+ return N();
123
+ },
124
+ set onClaimed(e) {
125
+ N(e), c();
126
+ },
127
+ get onLaunchGame() {
128
+ return z();
129
+ },
130
+ set onLaunchGame(e) {
131
+ z(e), c();
132
+ }
133
+ }, H = ca(), M = l(H), ae = l(M);
134
+ {
135
+ var xe = (e) => {
136
+ var s = ia();
137
+ w(() => {
138
+ $e(s, 1, ea(a(C).className), "svelte-gxb9rk"), X(s, "src", a(C).src), X(s, "alt", a(C).alt);
139
+ }), f(e, s);
140
+ };
141
+ S(ae, (e) => {
142
+ a(C) && e(xe);
143
+ });
144
+ }
145
+ var pe = t(ae, 2), fe = u(pe, !0);
146
+ r(M);
147
+ var R = t(M, 2), se = l(R);
148
+ {
149
+ var be = (e) => {
150
+ var s = ce(), m = l(s), x = l(m);
151
+ ta(x, {}), r(m);
152
+ var p = t(m, 2), K = u(p), O = t(p, 2), Q = u(O, !0);
153
+ r(s), w(
154
+ (W) => {
155
+ g(K, `${W ?? ""}:`), g(Q, a(q));
156
+ },
157
+ [() => _()("get")]
158
+ ), f(e, s);
159
+ };
160
+ S(se, (e) => {
161
+ a(q) && e(be);
162
+ });
163
+ }
164
+ var te = t(se, 2);
165
+ {
166
+ var ye = (e) => {
167
+ var s = ce(), m = l(s), x = l(m);
168
+ ra(x, {}), r(m);
169
+ var p = t(m, 2), K = u(p), O = t(p, 2), Q = u(O, !0);
170
+ r(s), w(
171
+ (W) => {
172
+ g(K, `${W ?? ""}:`), g(Q, a(J));
173
+ },
174
+ [() => _()("Condition")]
175
+ ), f(e, s);
176
+ };
177
+ S(te, (e) => {
178
+ a(J) && e(ye);
179
+ });
180
+ }
181
+ var ne = t(te, 2), U = l(ne), ke = l(U);
182
+ la(ke, {}), r(U);
183
+ var le = t(U, 2), Ce = u(le), Ie = t(le, 2), Se = u(Ie, !0);
184
+ r(ne), r(R);
185
+ var V = t(R, 2), I = l(V), re = l(I), ie = t(re), we = l(ie);
186
+ na(we, {}), r(ie), r(I);
187
+ var Pe = t(I, 2), Le = u(Pe, !0);
188
+ r(V);
189
+ var Ae = t(V, 2);
190
+ {
191
+ var Te = (e) => {
192
+ var s = oa(), m = l(s);
193
+ {
194
+ let x = o(() => ee.loading || v());
195
+ sa(m, {
196
+ get text() {
197
+ return a(h).labelKey;
198
+ },
199
+ get variant() {
200
+ return a(h).variant;
201
+ },
202
+ get disabled() {
203
+ return a(x);
204
+ },
205
+ get locale() {
206
+ return T();
207
+ },
208
+ onclick: _e
209
+ });
210
+ }
211
+ r(s), f(e, s);
212
+ };
213
+ S(Ae, (e) => {
214
+ a(h).kind !== "viewDetails" && e(Te);
215
+ });
216
+ }
217
+ r(H), w(
218
+ (e, s) => {
219
+ g(fe, a(B)?.PresentationName), g(Ce, `${e ?? ""}:`), g(Se, a(ue)), X(I, "href", a(B).Url), g(re, `${s ?? ""} `), g(Le, a(B).SignificantCondition);
220
+ },
221
+ [() => _()("levels"), () => _()("termsAndConditions")]
222
+ ), f(Y, H);
223
+ var Ee = Re(he);
224
+ return me(), Ee;
225
+ }
226
+ Ge(
227
+ ma,
228
+ {
229
+ challengeItem: {},
230
+ endpoint: {},
231
+ domainId: {},
232
+ userSession: {},
233
+ userId: {},
234
+ locale: {},
235
+ isPromo: {},
236
+ isPaused: {},
237
+ isExpired: {},
238
+ onStatusChange: {},
239
+ onClaimed: {},
240
+ onLaunchGame: {}
241
+ },
242
+ [],
243
+ [],
244
+ { mode: "open" }
245
+ );
246
+ export {
247
+ ma as C
248
+ };