@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
@@ -1,7 +1,7 @@
1
- import { c as X, d as Z, h as be, p as s, u as E, q as me, ax as F, aG as J, v as w, B as K, M as x, O as V, aY as C, b1 as G, K as z, y as t, b2 as O, b3 as ve, a_ as B, x as fe, a as H, b as $, A as o, k as R, e as r, aW as Te, n as ye, r as Ie, F as Y, o as W, b4 as Ce, b5 as ke, b6 as De, a$ as Q, ay as Se, b0 as _e } from "./ChallengeTabs-CXIPdZOg.js";
2
- import { a as Le } from "./ChallengeList-DKaU6w9k.js";
3
- import { C as ze } from "./ChallengeBreadcrumbs-2v9qUqv3.js";
4
- import { b as we } from "./ChallengeTabContent-BUbL3Err.js";
1
+ import { c as Q, d as W, h as me, p as s, u as E, q as ve, ay as q, aH as J, v as w, C as V, N as x, P as F, aZ as C, b2 as G, L as z, y as t, b3 as O, b4 as fe, a$ as H, x as Te, a as B, b as $, A as o, k as ee, e as i, aX as ye, n as Ie, r as Ce, G as K, o as X, b5 as ke, b6 as De, b7 as Se, b0 as Y, az as Le, b1 as _e } from "./ChallengeTabs-CzWyw0qJ.js";
2
+ import { a as ze } from "./ChallengeList-BPHmqDRR.js";
3
+ import { C as we } from "./ChallengeBreadcrumbs-C69Rh0k9.js";
4
+ import { b as Pe } from "./ChallengeTabContent-BbELX5s1.js";
5
5
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
6
6
  }, globalThis.customElements = { define() {
7
7
  }, get() {
@@ -36,164 +36,164 @@ const Ae = {
36
36
  noChallenges: "Jelenleg nincs elérhető kihívás. Nézz szét az események között, vagy játssz tovább, hogy újakat oldj fel.",
37
37
  challengesAnonymous: "Jelentkezzen be, hogy lássa a kihívásait és haladását."
38
38
  }
39
- }, Me = 50;
40
- var Pe = R("<!> <!>", 1), pe = R("<!> <!>", 1), Ue = R('<div class="player-challenges svelte-1edjcz1"><!></div>');
39
+ }, pe = 50;
40
+ var Z = ee("<!> <!>", 1), Me = ee('<div class="player-challenges svelte-1edjcz1"><!></div>');
41
41
  const Ne = {
42
42
  hash: "svelte-1edjcz1",
43
43
  code: ".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"
44
44
  };
45
- function ee(M, a) {
46
- Z(a, !0), be(M, Ne);
47
- const h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7), d = s(a, "isMobile", 7, !0), I = s(a, "activeTab", 23, () => C.Promo), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7, !1);
48
- E(() => me(u(), Ae)), F(() => {
45
+ function te(A, a) {
46
+ W(a, !0), me(A, Ne);
47
+ const h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7), d = s(a, "isMobile", 7, !0), I = s(a, "activeTab", 23, () => C.Promo), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), L = s(a, "showTabDot", 7, !1);
48
+ E(() => ve(u(), Ae)), q(() => {
49
49
  T() && J(T(), "challenge-card");
50
50
  }), w(() => {
51
- K(u() || "en");
51
+ V(u() || "en");
52
52
  });
53
- let g = x(V(E(() => G(I())) ?? C.Promo));
53
+ let g = x(F(E(() => G(I())) ?? C.Promo));
54
54
  w(() => {
55
55
  const e = G(I());
56
56
  e !== void 0 && z(g, e, !0);
57
57
  });
58
- const L = o(() => d() ? void 0 : k() || void 0);
59
- let c = x(V(E(() => t(L))));
58
+ const _ = o(() => d() ? void 0 : k() || void 0);
59
+ let c = x(F(E(() => t(_))));
60
60
  w(() => {
61
- t(L) !== void 0 && (z(c, t(L), !0), O(!0, t(L)));
61
+ t(_) !== void 0 && (z(c, t(_), !0), O(!0, t(_)));
62
62
  });
63
- let A = x(void 0);
64
- const p = o(() => t(A) ?? (t(c) === t(L) ? D() : void 0)), P = o(() => !b()), l = ve(() => ({
63
+ let P = x(void 0);
64
+ const M = o(() => t(P) ?? (t(c) === t(_) ? D() : void 0)), p = o(() => !b()), l = fe(() => ({
65
65
  endpoint: h(),
66
66
  domainId: f(),
67
67
  userSession: b(),
68
68
  userId: v(),
69
69
  locale: u(),
70
- pageSize: Te(d())
70
+ pageSize: ye(d())
71
71
  })), n = o(() => {
72
- const e = B[t(g)];
72
+ const e = H[t(g)];
73
73
  return (e && e !== "history" ? l.getList(e) : []).find((m) => m.ChallengeId === t(c)) ?? l.findChallenge(t(c));
74
- }), ne = o(() => {
74
+ }), ae = o(() => {
75
75
  const e = [];
76
- return l.activeChallenges.some((i) => i.IsNew) && e.push(C.Active), l.awaitingChallenges.some((i) => i.IsNew) && e.push(C.Pending), e;
77
- }), ae = (e) => {
78
- e !== t(g) && (z(g, e, !0), ke(De[e]));
79
- }, se = (e, i) => {
80
- z(c, e, !0), z(A, i, !0), d() || O(!0, e);
81
- }, q = () => {
82
- d() || O(!1, t(c)), z(c, void 0), z(A, void 0);
76
+ return l.activeChallenges.some((r) => r.IsNew) && e.push(C.Active), l.awaitingChallenges.some((r) => r.IsNew) && e.push(C.Pending), e;
77
+ }), se = (e) => {
78
+ e !== t(g) && (z(g, e, !0), De(Se[e]));
79
+ }, ie = (e, r) => {
80
+ z(c, e, !0), z(P, r, !0), d() || O(!0, e);
81
+ }, R = () => {
82
+ d() || O(!1, t(c)), z(c, void 0), z(P, void 0);
83
83
  }, re = (e) => {
84
84
  if (e !== t(c))
85
85
  return;
86
- q();
87
- const i = B[t(g)];
88
- i && l.load(i, t(P));
86
+ R();
87
+ const r = H[t(g)];
88
+ r && l.load(r, t(p));
89
89
  };
90
- F(() => {
90
+ q(() => {
91
91
  T() && J(T(), "player-challenges");
92
92
  }), w(() => {
93
- K(u() || "en");
93
+ V(u() || "en");
94
94
  }), w(() => {
95
- const e = t(g), i = {
95
+ const e = t(g), r = {
96
96
  endpoint: h(),
97
97
  domainId: f(),
98
98
  userSession: b(),
99
99
  userId: v(),
100
100
  locale: u()
101
- }, m = t(P), y = B[e];
102
- if (!i.endpoint || !y)
101
+ }, m = t(p), y = H[e];
102
+ if (!r.endpoint || !y)
103
103
  return;
104
104
  if (y !== "promo" || !m) {
105
105
  l.load(y, m);
106
106
  return;
107
107
  }
108
108
  l.markLoading(y);
109
- const N = setTimeout(() => l.load(y, m), Me);
110
- return () => clearTimeout(N);
109
+ const U = setTimeout(() => l.load(y, m), pe);
110
+ return () => clearTimeout(U);
111
111
  }), w(() => {
112
112
  if (h())
113
113
  return l.connect(), () => l.disconnect();
114
114
  });
115
- var ie = {
115
+ var le = {
116
116
  get endpoint() {
117
117
  return h();
118
118
  },
119
119
  set endpoint(e = "") {
120
- h(e), r();
120
+ h(e), i();
121
121
  },
122
122
  get userSession() {
123
123
  return b();
124
124
  },
125
125
  set userSession(e = "") {
126
- b(e), r();
126
+ b(e), i();
127
127
  },
128
128
  get userId() {
129
129
  return v();
130
130
  },
131
131
  set userId(e = "") {
132
- v(e), r();
132
+ v(e), i();
133
133
  },
134
134
  get domainId() {
135
135
  return f();
136
136
  },
137
137
  set domainId(e = "") {
138
- f(e), r();
138
+ f(e), i();
139
139
  },
140
140
  get locale() {
141
141
  return u();
142
142
  },
143
143
  set locale(e = "en") {
144
- u(e), r();
144
+ u(e), i();
145
145
  },
146
146
  get translationUrl() {
147
147
  return T();
148
148
  },
149
149
  set translationUrl(e) {
150
- T(e), r();
150
+ T(e), i();
151
151
  },
152
152
  get isMobile() {
153
153
  return d();
154
154
  },
155
155
  set isMobile(e = !0) {
156
- d(e), r();
156
+ d(e), i();
157
157
  },
158
158
  get activeTab() {
159
159
  return I();
160
160
  },
161
161
  set activeTab(e = C.Promo) {
162
- I(e), r();
162
+ I(e), i();
163
163
  },
164
164
  get activeChallengeId() {
165
165
  return k();
166
166
  },
167
167
  set activeChallengeId(e) {
168
- k(e), r();
168
+ k(e), i();
169
169
  },
170
170
  get activeDetailsTab() {
171
171
  return D();
172
172
  },
173
173
  set activeDetailsTab(e) {
174
- D(e), r();
174
+ D(e), i();
175
175
  },
176
176
  get historyLimit() {
177
177
  return S();
178
178
  },
179
179
  set historyLimit(e) {
180
- S(e), r();
180
+ S(e), i();
181
181
  },
182
182
  get showTabDot() {
183
- return _();
183
+ return L();
184
184
  },
185
185
  set showTabDot(e = !1) {
186
- _(e), r();
186
+ L(e), i();
187
187
  }
188
- }, U = Ue(), le = ye(U);
188
+ }, N = Me(), oe = Ie(N);
189
189
  {
190
- var oe = (e) => {
191
- var i = Pe(), m = Y(i);
192
- ze(m, { onBack: q });
193
- var y = W(m, 2);
190
+ var ue = (e) => {
191
+ var r = Z(), m = K(r);
192
+ we(m, { onBack: R });
193
+ var y = X(m, 2);
194
194
  {
195
- let N = o(() => t(g) === C.Promo), de = o(() => t(g) === C.Pending), ge = o(() => !!t(n) && l.pausedChallengeIds.includes(t(n).ChallengeId)), ce = o(() => t(n)?.Status);
196
- Le(y, {
195
+ let U = o(() => t(g) === C.Promo), ge = o(() => t(g) === C.Pending), ce = o(() => !!t(n) && l.pausedChallengeIds.includes(t(n).ChallengeId)), he = o(() => t(n)?.Status);
196
+ ze(y, {
197
197
  get challengeId() {
198
198
  return t(c);
199
199
  },
@@ -213,24 +213,24 @@ function ee(M, a) {
213
213
  return u();
214
214
  },
215
215
  get isPromo() {
216
- return t(N);
216
+ return t(U);
217
217
  },
218
218
  get isPending() {
219
- return t(de);
219
+ return t(ge);
220
220
  },
221
221
  get isPaused() {
222
- return t(ge);
222
+ return t(ce);
223
223
  },
224
224
  get status() {
225
- return t(ce);
225
+ return t(he);
226
226
  },
227
227
  get progress() {
228
228
  return t(n);
229
229
  },
230
- onStatusChange: (j, he) => l.patchProgress(j, { Status: he }),
230
+ onStatusChange: (j, be) => l.patchProgress(j, { Status: be }),
231
231
  onViewed: (j) => l.patchProgress(j, { IsNew: !1 }),
232
232
  get activeTab() {
233
- return t(p);
233
+ return t(M);
234
234
  },
235
235
  onUnavailable: re,
236
236
  get isMobile() {
@@ -238,23 +238,23 @@ function ee(M, a) {
238
238
  }
239
239
  });
240
240
  }
241
- H(e, i);
242
- }, ue = (e) => {
243
- var i = pe(), m = Y(i);
244
- Ce(m, {
241
+ B(e, r);
242
+ }, de = (e) => {
243
+ var r = Z(), m = K(r);
244
+ ke(m, {
245
245
  get activeTab() {
246
246
  return t(g);
247
247
  },
248
- onTabChange: ae,
248
+ onTabChange: se,
249
249
  get notifyTabs() {
250
- return t(ne);
250
+ return t(ae);
251
251
  },
252
252
  get showTabDot() {
253
- return _();
253
+ return L();
254
254
  }
255
255
  });
256
- var y = W(m, 2);
257
- we(y, {
256
+ var y = X(m, 2);
257
+ Pe(y, {
258
258
  get endpoint() {
259
259
  return h();
260
260
  },
@@ -273,7 +273,7 @@ function ee(M, a) {
273
273
  get challenges() {
274
274
  return l;
275
275
  },
276
- onViewDetails: se,
276
+ onViewDetails: ie,
277
277
  get activeTab() {
278
278
  return t(g);
279
279
  },
@@ -283,16 +283,16 @@ function ee(M, a) {
283
283
  get historyLimit() {
284
284
  return S();
285
285
  }
286
- }), H(e, i);
286
+ }), B(e, r);
287
287
  };
288
- fe(le, (e) => {
289
- t(c) ? e(oe) : e(ue, -1);
288
+ Te(oe, (e) => {
289
+ t(c) ? e(ue) : e(de, -1);
290
290
  });
291
291
  }
292
- return Ie(U), H(M, U), $(ie);
292
+ return Ce(N), B(A, N), $(le);
293
293
  }
294
- X(
295
- ee,
294
+ Q(
295
+ te,
296
296
  {
297
297
  endpoint: {},
298
298
  userSession: {},
@@ -311,85 +311,85 @@ X(
311
311
  [],
312
312
  { mode: "open" }
313
313
  );
314
- function te(M, a) {
315
- Z(a, !0);
316
- let h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7, ""), d = s(a, "isMobile", 7), I = s(a, "activeTab", 7), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7);
317
- const g = o(() => Q(d(), !0)), L = o(() => G(I()) ?? C.Promo), c = o(() => k() || void 0), A = o(() => Se(D())), p = o(() => Q(_())), P = o(() => _e(S(), 0) || void 0);
314
+ function ne(A, a) {
315
+ W(a, !0);
316
+ let h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), v = s(a, "userId", 7, ""), f = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), T = s(a, "translationUrl", 7, ""), d = s(a, "isMobile", 7), I = s(a, "activeTab", 7), k = s(a, "activeChallengeId", 7), D = s(a, "activeDetailsTab", 7), S = s(a, "historyLimit", 7), L = s(a, "showTabDot", 7);
317
+ const g = o(() => Y(d(), !0)), _ = o(() => G(I()) ?? C.Promo), c = o(() => k() || void 0), P = o(() => Le(D())), M = o(() => Y(L())), p = o(() => _e(S(), 0) || void 0);
318
318
  var l = {
319
319
  get endpoint() {
320
320
  return h();
321
321
  },
322
322
  set endpoint(n = "") {
323
- h(n), r();
323
+ h(n), i();
324
324
  },
325
325
  get userSession() {
326
326
  return b();
327
327
  },
328
328
  set userSession(n = "") {
329
- b(n), r();
329
+ b(n), i();
330
330
  },
331
331
  get userId() {
332
332
  return v();
333
333
  },
334
334
  set userId(n = "") {
335
- v(n), r();
335
+ v(n), i();
336
336
  },
337
337
  get domainId() {
338
338
  return f();
339
339
  },
340
340
  set domainId(n = "") {
341
- f(n), r();
341
+ f(n), i();
342
342
  },
343
343
  get locale() {
344
344
  return u();
345
345
  },
346
346
  set locale(n = "en") {
347
- u(n), r();
347
+ u(n), i();
348
348
  },
349
349
  get translationUrl() {
350
350
  return T();
351
351
  },
352
352
  set translationUrl(n = "") {
353
- T(n), r();
353
+ T(n), i();
354
354
  },
355
355
  get isMobile() {
356
356
  return d();
357
357
  },
358
358
  set isMobile(n) {
359
- d(n), r();
359
+ d(n), i();
360
360
  },
361
361
  get activeTab() {
362
362
  return I();
363
363
  },
364
364
  set activeTab(n) {
365
- I(n), r();
365
+ I(n), i();
366
366
  },
367
367
  get activeChallengeId() {
368
368
  return k();
369
369
  },
370
370
  set activeChallengeId(n) {
371
- k(n), r();
371
+ k(n), i();
372
372
  },
373
373
  get activeDetailsTab() {
374
374
  return D();
375
375
  },
376
376
  set activeDetailsTab(n) {
377
- D(n), r();
377
+ D(n), i();
378
378
  },
379
379
  get historyLimit() {
380
380
  return S();
381
381
  },
382
382
  set historyLimit(n) {
383
- S(n), r();
383
+ S(n), i();
384
384
  },
385
385
  get showTabDot() {
386
- return _();
386
+ return L();
387
387
  },
388
388
  set showTabDot(n) {
389
- _(n), r();
389
+ L(n), i();
390
390
  }
391
391
  };
392
- return ee(M, {
392
+ return te(A, {
393
393
  get endpoint() {
394
394
  return h();
395
395
  },
@@ -412,24 +412,24 @@ function te(M, a) {
412
412
  return t(g);
413
413
  },
414
414
  get activeTab() {
415
- return t(L);
415
+ return t(_);
416
416
  },
417
417
  get activeChallengeId() {
418
418
  return t(c);
419
419
  },
420
420
  get activeDetailsTab() {
421
- return t(A);
421
+ return t(P);
422
422
  },
423
423
  get historyLimit() {
424
- return t(P);
424
+ return t(p);
425
425
  },
426
426
  get showTabDot() {
427
- return t(p);
427
+ return t(M);
428
428
  }
429
429
  }), $(l);
430
430
  }
431
- customElements.define("player-challenges", X(
432
- te,
431
+ customElements.define("player-challenges", Q(
432
+ ne,
433
433
  {
434
434
  endpoint: {},
435
435
  userSession: {},
@@ -447,11 +447,11 @@ customElements.define("player-challenges", X(
447
447
  [],
448
448
  []
449
449
  ));
450
- const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
450
+ const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
451
451
  __proto__: null,
452
- default: te
452
+ default: ne
453
453
  }, Symbol.toStringTag, { value: "Module" }));
454
454
  export {
455
- ee as P,
456
- Be as a
455
+ te as P,
456
+ Oe as a
457
457
  };
@@ -1 +1 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-By40DWWg.cjs");var a=e.from_svg('<svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.46289 0.26802C5.08176 -0.0893401 5.845 -0.0893401 6.46387 0.26802L9.92676 2.26802C10.5455 2.6253 10.9268 3.28596 10.9268 4.00044V8.00044C10.9268 8.71492 10.5455 9.37558 9.92676 9.73286L6.46387 11.7329C5.845 12.0902 5.08176 12.0902 4.46289 11.7329L1 9.73286C0.381267 9.37558 0 8.71492 0 8.00044V4.00044C0 3.28596 0.381267 2.6253 1 2.26802L4.46289 0.26802ZM4.36914 4.49263L1.86328 4.82954L3.69238 6.57466L3.23828 9.06197L5.46387 7.86177L7.68848 9.06197L7.23535 6.57466L9.06348 4.82954L6.55859 4.49263L5.46387 2.21333L4.36914 4.49263Z" fill="currentColor"></path></svg>');function s(o,t){e.push(t,!0);let h=e.prop(t,"width",7,11),i=e.prop(t,"height",7,12);var l={get width(){return h()},set width(r=11){h(r),e.flushSync()},get height(){return i()},set height(r=12){i(r),e.flushSync()}},n=a();return e.template_effect(()=>{e.set_attribute(n,"width",h()),e.set_attribute(n,"height",i())}),e.append(o,n),e.pop(l)}e.create_custom_element(s,{width:{},height:{}},[],[],{mode:"open"});exports.StarIcon=s;
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BmJ83kB1.cjs");var a=e.from_svg('<svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.46289 0.26802C5.08176 -0.0893401 5.845 -0.0893401 6.46387 0.26802L9.92676 2.26802C10.5455 2.6253 10.9268 3.28596 10.9268 4.00044V8.00044C10.9268 8.71492 10.5455 9.37558 9.92676 9.73286L6.46387 11.7329C5.845 12.0902 5.08176 12.0902 4.46289 11.7329L1 9.73286C0.381267 9.37558 0 8.71492 0 8.00044V4.00044C0 3.28596 0.381267 2.6253 1 2.26802L4.46289 0.26802ZM4.36914 4.49263L1.86328 4.82954L3.69238 6.57466L3.23828 9.06197L5.46387 7.86177L7.68848 9.06197L7.23535 6.57466L9.06348 4.82954L6.55859 4.49263L5.46387 2.21333L4.36914 4.49263Z" fill="currentColor"></path></svg>');function s(o,t){e.push(t,!0);let h=e.prop(t,"width",7,11),i=e.prop(t,"height",7,12);var l={get width(){return h()},set width(r=11){h(r),e.flushSync()},get height(){return i()},set height(r=12){i(r),e.flushSync()}},n=a();return e.template_effect(()=>{e.set_attribute(n,"width",h()),e.set_attribute(n,"height",i())}),e.append(o,n),e.pop(l)}e.create_custom_element(s,{width:{},height:{}},[],[],{mode:"open"});exports.StarIcon=s;
@@ -1,4 +1,4 @@
1
- import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-CXIPdZOg.js";
1
+ import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-CzWyw0qJ.js";
2
2
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
@@ -1,26 +1,26 @@
1
- import { c as h, d, p as f, o as g, n as l, t as u, a as v, b as m, f as L, e as _, r as a, s } from "./ChallengeTabs-CXIPdZOg.js";
1
+ import { c as h, d, p as f, o as g, n as r, t as u, a as v, b as m, f as L, e as _, B as w, r as C, s } from "./ChallengeTabs-CzWyw0qJ.js";
2
2
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
5
5
  }, whenDefined() {
6
6
  } });
7
- var w = L('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');
8
- function T(n, i) {
9
- d(i, !0);
10
- let e = f(i, "size", 7, 12);
11
- var p = {
7
+ var T = L('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');
8
+ function b(o, l) {
9
+ d(l, !0);
10
+ let e = f(l, "size", 7, 12);
11
+ var n = {
12
12
  get size() {
13
13
  return e();
14
14
  },
15
- set size(c = 12) {
16
- e(c), _();
15
+ set size(p = 12) {
16
+ e(p), _();
17
17
  }
18
- }, t = w(), r = g(l(t)), C = l(r), o = l(C);
19
- return a(C), a(r), a(t), u(() => {
20
- s(t, "width", e()), s(t, "height", e()), s(o, "width", e()), s(o, "height", e());
21
- }), v(n, t), m(p);
18
+ }, t = T(), a = g(r(t)), c = r(a), i = w(c);
19
+ return C(a), C(t), u(() => {
20
+ s(t, "width", e()), s(t, "height", e()), s(i, "width", e()), s(i, "height", e());
21
+ }), v(o, t), m(n);
22
22
  }
23
- h(T, { size: {} }, [], [], { mode: "open" });
23
+ h(b, { size: {} }, [], [], { mode: "open" });
24
24
  export {
25
- T
25
+ b as T
26
26
  };
@@ -1 +1 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-By40DWWg.cjs");var h=e.from_svg('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');function n(o,l){e.push(l,!0);let t=e.prop(l,"size",7,12);var a={get size(){return t()},set size(c=12){t(c),e.flushSync()}},i=h(),r=e.sibling(e.child(i)),s=e.child(r),C=e.child(s);return e.reset(s),e.reset(r),e.reset(i),e.template_effect(()=>{e.set_attribute(i,"width",t()),e.set_attribute(i,"height",t()),e.set_attribute(C,"width",t()),e.set_attribute(C,"height",t())}),e.append(o,i),e.pop(a)}e.create_custom_element(n,{size:{}},[],[],{mode:"open"});exports.TargetIcon=n;
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BmJ83kB1.cjs");var h=e.from_svg('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');function C(n,i){e.push(i,!0);let t=e.prop(i,"size",7,12);var o={get size(){return t()},set size(c=12){t(c),e.flushSync()}},l=h(),r=e.sibling(e.child(l)),a=e.child(r),s=e.only_child(a);return e.reset(r),e.reset(l),e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t()),e.set_attribute(s,"width",t()),e.set_attribute(s,"height",t())}),e.append(n,l),e.pop(o)}e.create_custom_element(C,{size:{}},[],[],{mode:"open"});exports.TargetIcon=C;
@@ -1 +1 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-CrOVN2iM.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/PlayerChallenges-CrOVN2iM.cjs")).then(e=>e.PlayerChallenges_ce).then(e=>{const t=e.default||e;customElements.get("player-challenges")||customElements.define("player-challenges",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=l.PlayerChallenges;
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-BeHfyw8o.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/PlayerChallenges-BeHfyw8o.cjs")).then(e=>e.PlayerChallenges_ce).then(e=>{const t=e.default||e;customElements.get("player-challenges")||customElements.define("player-challenges",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=l.PlayerChallenges;
@@ -1,4 +1,4 @@
1
- import { P as o } from "../components/PlayerChallenges-BfN5x59V.js";
1
+ import { P as o } from "../components/PlayerChallenges-DloMzh4n.js";
2
2
  typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
3
  }, globalThis.customElements = { define() {
4
4
  }, get() {
@@ -16,7 +16,7 @@ if (typeof window < "u") {
16
16
  }
17
17
  };
18
18
  };
19
- customElements.define = s(customElements.define), import("../components/PlayerChallenges-BfN5x59V.js").then((e) => e.a).then((e) => {
19
+ customElements.define = s(customElements.define), import("../components/PlayerChallenges-DloMzh4n.js").then((e) => e.a).then((e) => {
20
20
  const n = e.default || e;
21
21
  customElements.get("player-challenges") || customElements.define("player-challenges", n.element || n);
22
22
  }).catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-challenges",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "type": "module",
5
5
  "main": "./esnext/player-challenges.cjs",
6
6
  "module": "./esnext/player-challenges.js",
@@ -1,2 +0,0 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-By40DWWg.cjs"),N=require("./Badge-BHsDsF1a.cjs"),V="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%20120%20120'%20fill='none'%3e%3crect%20width='120'%20height='120'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2503%2038.4816C33.2603%2037.0472%2034.4199%2035.8864%2035.8543%2035.875H83.1463C84.5848%2035.875%2085.7503%2037.0431%2085.7503%2038.4816V80.5184C85.7403%2081.9528%2084.5807%2083.1136%2083.1463%2083.125H35.8543C34.4158%2083.1236%2033.2503%2081.957%2033.2503%2080.5184V38.4816ZM80.5006%2041.1251H38.5006V77.8751L62.8921%2053.4783C63.9172%2052.4536%2065.5788%2052.4536%2066.6039%2053.4783L80.5006%2067.4013V41.1251ZM43.75%2051.6249C43.75%2054.5244%2046.1005%2056.8749%2049%2056.8749C51.8995%2056.8749%2054.25%2054.5244%2054.25%2051.6249C54.25%2048.7254%2051.8995%2046.3749%2049%2046.3749C46.1005%2046.3749%2043.75%2048.7254%2043.75%2051.6249Z'%20fill='%23687787'/%3e%3c/svg%3e";var E=e.from_html('<div class="challenge-details__banner--scrim svelte-1rs963e" aria-hidden="true"></div>'),U=e.from_html('<div class="challenge-details__banner--new-icon svelte-1rs963e"><img alt="" aria-hidden="true" class="svelte-1rs963e"/></div>'),Z=e.from_html('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <!> <!> <img/></div>');const j={hash:"svelte-1rs963e",code:`.challenge-details__banner.svelte-1rs963e {position:relative;width:100%;border-radius:12px;overflow:hidden;.challenge-details__banner--overlay:where(.svelte-1rs963e) {position:absolute;top:12px;left:12px;z-index:1;}.challenge-details__banner--image:where(.svelte-1rs963e) {display:block;width:100%;height:auto;}.challenge-details__banner--inactive:where(.svelte-1rs963e) {filter:grayscale(1) brightness(0.45);}.challenge-details__banner--scrim:where(.svelte-1rs963e) {position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg, rgba(10, 12, 24, 0) 50%, #0a0c18 100%),
2
- linear-gradient(0deg, rgba(10, 12, 24, 0.6), rgba(10, 12, 24, 0.6));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}.challenge-details__banner--placeholder:where(.svelte-1rs963e) {object-fit:contain;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}.challenge-details__banner--new-icon:where(.svelte-1rs963e) {position:absolute;right:8px;top:8px;& img:where(.svelte-1rs963e) {width:48px;height:48px;}}}`};function x(h,r){e.push(r,!0),e.append_styles(h,j);const a=e.prop(r,"challengeItem",7),d=e.prop(r,"locale",7),g=e.prop(r,"isPaused",7,!1),v=e.user_derived(()=>g()||a().ChallengeStatus===e.ChallengeStatus.Paused),S=e.createLiveChallengeStatus(()=>a()),c=e.user_derived(()=>({...a(),Status:S.status})),n=e.user_derived(()=>e.mapChallengeStatus(e.get(c).Status,!1,e.get(v))),y=e.user_derived(()=>e.get(n)==="expired"||e.get(n)==="rejected"),P=e.user_derived(()=>e.get(n)==="completed"||e.get(n)==="paused"),_=e.user_derived(()=>a().ChallengePresentation);let p=e.state(void 0);const i=e.user_derived(()=>e.get(_)?.BannerUrl),b=e.user_derived(()=>!!e.get(i)&&e.get(p)!==e.get(i)),k=e.user_derived(()=>e.get(b)?e.get(i):V),m=e.untrack(()=>!!a().IsNew),I=e.user_derived(()=>e.getNewStatusIcon(m));var B={get challengeItem(){return a()},set challengeItem(t){a(t),e.flushSync()},get locale(){return d()},set locale(t){d(t),e.flushSync()},get isPaused(){return g()},set isPaused(t=!1){g(t),e.flushSync()}},o=Z(),u=e.child(o),T=e.child(u);{let t=e.user_derived(()=>e.getStatusTime(e.get(c)));N.Badge(T,{get status(){return e.get(c).Status},get time(){return e.get(t)},get isPaused(){return e.get(v)},get locale(){return d()}})}e.reset(u);var f=e.sibling(u,2);{var H=t=>{var s=E();e.append(t,s)};e.if_block(f,t=>{e.get(P)&&t(H)})}var w=e.sibling(f,2);{var L=t=>{var s=U(),M=e.child(s);e.reset(s),e.template_effect(()=>e.set_attribute(M,"src",e.get(I))),e.append(t,s)};e.if_block(w,t=>{m&&t(L)})}var l=e.sibling(w,2);let C;return e.reset(o),e.template_effect(()=>{C=e.set_class(l,1,"challenge-details__banner--image svelte-1rs963e",null,C,{"challenge-details__banner--inactive":e.get(y),"challenge-details__banner--placeholder":!e.get(b)}),e.set_attribute(l,"src",e.get(k)),e.set_attribute(l,"alt",e.get(_)?.PresentationName??"")}),e.event("error",l,()=>e.set(p,e.get(i),!0)),e.replay_events(l),e.append(h,o),e.pop(B)}e.create_custom_element(x,{challengeItem:{},locale:{},isPaused:{}},[],[],{mode:"open"});exports.ChallengeBanner=x;