@everymatrix/player-challenges 0.1.13 → 0.1.15

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 (111) hide show
  1. package/components/ArrowLeftIcon-D0LpsufV.cjs +1 -0
  2. package/components/ArrowLeftIcon-De_oE6VJ.js +26 -0
  3. package/components/{Badge-C2wt4e90.js → Badge-C2_vCRtE.js} +47 -42
  4. package/components/Badge-r78wWqnE.cjs +7 -0
  5. package/components/Button-CU8n8iLn.cjs +3 -0
  6. package/components/{Button--XqKsOFn.js → Button-CqWi35Id.js} +37 -34
  7. package/components/ChallengeBanner-CBWAGiMi.cjs +4 -0
  8. package/components/ChallengeBanner-oDSEjGGf.js +57 -0
  9. package/components/ChallengeBreadcrumbs-0C1qzQmn.js +41 -0
  10. package/components/ChallengeBreadcrumbs-B1QPZ9Ub.cjs +1 -0
  11. package/components/ChallengeCard-3915Vdd8.cjs +1 -0
  12. package/components/{ChallengeCard-B6CuOUjR.js → ChallengeCard-yUSt6Ocz.js} +59 -54
  13. package/components/ChallengeClaimCode-BUD6Bszw.cjs +1 -0
  14. package/components/{ChallengeClaimCode-CHjR7wvj.js → ChallengeClaimCode-D-skzCq6.js} +21 -17
  15. package/components/ChallengeDetails-C5WUrhPo.js +116 -0
  16. package/components/ChallengeDetails-D74Ki1Uz.cjs +1 -0
  17. package/components/ChallengeEvents-CXxvU73L.js +34 -0
  18. package/components/ChallengeEvents-U5YbNMZ6.cjs +1 -0
  19. package/components/ChallengeGames-BVIMhW8b.cjs +11 -0
  20. package/components/ChallengeGames-CLISWWUl.js +133 -0
  21. package/components/{ChallengeHistory-BGGX8pSa.js → ChallengeHistory-BveIKX6m.js} +35 -30
  22. package/components/ChallengeHistory-DDWHc60D.cjs +1 -0
  23. package/components/ChallengeLevels-Dqz1Jroz.cjs +8 -0
  24. package/components/ChallengeLevels-EESudJez.js +292 -0
  25. package/components/ChallengeList-Bby_g4Z8.cjs +20 -0
  26. package/components/{ChallengeList-CVeq75Nw.js → ChallengeList-P4I4Dp10.js} +610 -635
  27. package/components/ChallengeProgress-BpkQJwJK.cjs +1 -0
  28. package/components/ChallengeProgress-BxkeK6qN.js +95 -0
  29. package/components/ChallengeProgressItem-DHghH0Re.js +417 -0
  30. package/components/ChallengeProgressItem-YsHk5ITp.cjs +68 -0
  31. package/components/ChallengeRules-CoGa-G4a.cjs +1 -0
  32. package/components/ChallengeRules-D7Q6JUd5.js +173 -0
  33. package/components/ChallengeSummary-Bu4cCk0T.js +222 -0
  34. package/components/ChallengeSummary-CcneZ-_H.cjs +1 -0
  35. package/components/ChallengeTabContent--jk6IZ9p.js +794 -0
  36. package/components/ChallengeTabContent-D3ghO0QX.cjs +12 -0
  37. package/components/ChallengeTabPanel-Rci3HLu2.js +137 -0
  38. package/components/ChallengeTabPanel-wgd02Iii.cjs +1 -0
  39. package/components/ChallengeTabSkeleton-B-MQHvwC.js +91 -0
  40. package/components/ChallengeTabSkeleton-CuGIFm8O.cjs +15 -0
  41. package/components/ChallengeTabs-BtbgPMyA.cjs +14 -0
  42. package/components/{ChallengeTabs-B6_2WSU0.js → ChallengeTabs-nR_tQGbd.js} +3714 -3214
  43. package/components/CheckIcon-CxbYr1xp.cjs +1 -0
  44. package/components/{CheckIcon-Bh-pkq9I.js → CheckIcon-D4lHKEA2.js} +19 -14
  45. package/components/ChevronIcon-BAMpEJGd.cjs +1 -0
  46. package/components/{ChevronIcon-D9cP6u1l.js → ChevronIcon-CRAlhZkw.js} +18 -13
  47. package/components/ExistIcon-Dto-bbDy.cjs +1 -0
  48. package/components/{ExistIcon--D18_Qhm.js → ExistIcon-MA116zUI.js} +23 -18
  49. package/components/GiftIcon-Cd5b3K-t.cjs +1 -0
  50. package/components/{GiftIcon-B0Ax8oOy.js → GiftIcon-Co84y9Go.js} +17 -12
  51. package/components/LinkIcon-Bwgy8Luj.cjs +1 -0
  52. package/components/{LinkIcon-Bui5HZdD.js → LinkIcon-pV2v0CrL.js} +19 -14
  53. package/components/LockIcon-BYYuZI1_.cjs +1 -0
  54. package/components/{LockIcon-C8tR8voO.js → LockIcon-CzobKbeF.js} +20 -15
  55. package/components/{Pagination-_6zMfbPi.js → Pagination-BgeAkkYm.js} +60 -60
  56. package/components/Pagination-vup1vCrG.cjs +12 -0
  57. package/components/PlayerChallenges-C703Qu2L.cjs +1 -0
  58. package/components/PlayerChallenges-htqi9P1E.js +395 -0
  59. package/components/{StarIcon-Dns8s0G7.js → StarIcon-D_ixyTtO.js} +21 -16
  60. package/components/StarIcon-tdfCGCXl.cjs +1 -0
  61. package/components/TargetIcon-BGcVQbCs.cjs +1 -0
  62. package/components/{TargetIcon-TJPVnCek.js → TargetIcon-Cw-ZoTaW.js} +19 -14
  63. package/esnext/player-challenges.cjs +1 -1
  64. package/esnext/player-challenges.js +8 -3
  65. package/package.json +1 -1
  66. package/components/ArrowLeftIcon-BRaj1LmB.js +0 -21
  67. package/components/ArrowLeftIcon-DDLFT41L.cjs +0 -1
  68. package/components/Badge-DAKtct6K.cjs +0 -7
  69. package/components/Button-D-VBD0Q3.cjs +0 -3
  70. package/components/ChallengeBanner-CBpmtUBF.cjs +0 -4
  71. package/components/ChallengeBanner-Cmpj8DEM.js +0 -59
  72. package/components/ChallengeBreadcrumbs-2wbaNU9B.js +0 -38
  73. package/components/ChallengeBreadcrumbs-CI85tqGz.cjs +0 -1
  74. package/components/ChallengeCard-3mRYB8cV.cjs +0 -1
  75. package/components/ChallengeClaimCode-CbvBupc_.cjs +0 -1
  76. package/components/ChallengeDetails-D8ZWkzvs.cjs +0 -1
  77. package/components/ChallengeDetails-kST_L2H6.js +0 -91
  78. package/components/ChallengeEvents-CQ6STVwu.js +0 -57
  79. package/components/ChallengeEvents-Cs53agnU.cjs +0 -1
  80. package/components/ChallengeGames-B0HjqvW0.cjs +0 -11
  81. package/components/ChallengeGames-Cba0U_35.js +0 -136
  82. package/components/ChallengeHistory-VT3TVd3m.cjs +0 -1
  83. package/components/ChallengeLevels-BGZpw1ET.js +0 -297
  84. package/components/ChallengeLevels-iQPTsHa6.cjs +0 -4
  85. package/components/ChallengeList-CFGrG4th.cjs +0 -23
  86. package/components/ChallengeProgress-CFLdRZji.cjs +0 -1
  87. package/components/ChallengeProgress-DP3VVpVT.js +0 -81
  88. package/components/ChallengeProgressItem-D8RsRZvE.cjs +0 -68
  89. package/components/ChallengeProgressItem-DTB7cV5H.js +0 -412
  90. package/components/ChallengeRules-DcFk9naV.cjs +0 -1
  91. package/components/ChallengeRules-DhjdAEuR.js +0 -153
  92. package/components/ChallengeSummary-CLGCOtRQ.cjs +0 -3
  93. package/components/ChallengeSummary-DiE9D1bF.js +0 -219
  94. package/components/ChallengeTabContent-BWahIpTH.js +0 -833
  95. package/components/ChallengeTabContent-DROK-E8d.cjs +0 -13
  96. package/components/ChallengeTabPanel-Cpm0azOu.js +0 -164
  97. package/components/ChallengeTabPanel-DRfYUk0O.cjs +0 -1
  98. package/components/ChallengeTabSkeleton-BpCRuAwx.cjs +0 -15
  99. package/components/ChallengeTabSkeleton-Ch33vV8a.js +0 -112
  100. package/components/ChallengeTabs-CEYwcPlJ.cjs +0 -14
  101. package/components/CheckIcon-Co2f_WCA.cjs +0 -1
  102. package/components/ChevronIcon-DM0lqt14.cjs +0 -1
  103. package/components/ExistIcon-mCUINSW_.cjs +0 -1
  104. package/components/GiftIcon-Dqfja7-X.cjs +0 -1
  105. package/components/LinkIcon-BrRosQTW.cjs +0 -1
  106. package/components/LockIcon-DtM1_YzG.cjs +0 -1
  107. package/components/Pagination-Bx6K50Vt.cjs +0 -12
  108. package/components/PlayerChallenges-DVzU_6kl.js +0 -328
  109. package/components/PlayerChallenges-QYR3YEzs.cjs +0 -1
  110. package/components/StarIcon-DH0eCmcS.cjs +0 -1
  111. package/components/TargetIcon-DG4XwqL4.cjs +0 -1
@@ -0,0 +1 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BtbgPMyA.cjs");var a=e.from_svg('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 11H7.83l4.88-4.88a1 1 0 10-1.42-1.42l-6.59 6.59a1 1 0 000 1.42l6.59 6.59a1 1 0 001.42-1.42L7.83 13H19a1 1 0 000-2z" fill="currentColor"></path></svg>');function r(s,n){e.push(n,!0);let t=e.prop(n,"size",7,24);var o={get size(){return t()},set size(i=24){t(i),e.flushSync()}},l=a();return e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t())}),e.append(s,l),e.pop(o)}e.create_custom_element(r,{size:{}},[],[],{mode:"open"});exports.ArrowLeftIcon=r;
@@ -0,0 +1,26 @@
1
+ import { c as i, p as n, t as f, a as p, b as d, f as u, d as h, e as g, s as a } from "./ChallengeTabs-nR_tQGbd.js";
2
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
+ }, globalThis.customElements = { define() {
4
+ }, get() {
5
+ }, whenDefined() {
6
+ } });
7
+ var m = u('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 11H7.83l4.88-4.88a1 1 0 10-1.42-1.42l-6.59 6.59a1 1 0 000 1.42l6.59 6.59a1 1 0 001.42-1.42L7.83 13H19a1 1 0 000-2z" fill="currentColor"></path></svg>');
8
+ function c(l, s) {
9
+ h(s, !0);
10
+ let e = n(s, "size", 7, 24);
11
+ var o = {
12
+ get size() {
13
+ return e();
14
+ },
15
+ set size(r = 24) {
16
+ e(r), g();
17
+ }
18
+ }, t = m();
19
+ return f(() => {
20
+ a(t, "width", e()), a(t, "height", e());
21
+ }), p(l, t), d(o);
22
+ }
23
+ i(c, { size: {} }, [], [], { mode: "open" });
24
+ export {
25
+ c as A
26
+ };
@@ -1,32 +1,37 @@
1
- import { c as Y, d as Z, h as ee, p as b, o as te, u as T, q as ae, v as se, w as A, x as y, t as z, y as e, s as D, z as re, i as x, a as f, b as ne, j as m, l as le, $ as oe, A as E, k as r, e as h, m as de, n as p, B as ie, C as pe, D as ce, r as n, E as ue, F as ge } from "./ChallengeTabs-B6_2WSU0.js";
2
- var ve = m('<span class="timer-date svelte-tfkqbj"> </span>'), be = m('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>', 1), xe = m('<div class="timer svelte-tfkqbj"><!> <!></div>'), fe = m('<div class="challenge-badge svelte-tfkqbj"><div class="status-pill svelte-tfkqbj"><span></span> <span class="status-label svelte-tfkqbj"> </span></div> <!></div>');
3
- const he = {
1
+ import { c as Y, d as Z, h as ee, p as v, u as te, q as ae, v as I, w as se, x as re, y as S, z as y, t as T, A as e, s as D, B as ne, i as f, a as x, b as le, k as m, l as oe, $ as de, C as G, n as r, e as h, m as ie, D as pe, E as ce, F as ue, o as p, r as n, G as ge, H as be } from "./ChallengeTabs-nR_tQGbd.js";
2
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
+ }, globalThis.customElements = { define() {
4
+ }, get() {
5
+ }, whenDefined() {
6
+ } });
7
+ var ve = m('<span class="timer-date svelte-tfkqbj"> </span>'), fe = m('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>', 1), xe = m('<div class="timer svelte-tfkqbj"><!> <!></div>'), he = m('<div class="challenge-badge svelte-tfkqbj"><div class="status-pill svelte-tfkqbj"><span></span> <span class="status-label svelte-tfkqbj"> </span></div> <!></div>');
8
+ const me = {
4
9
  hash: "svelte-tfkqbj",
5
10
  code: `.challenge-badge.svelte-tfkqbj {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-black-30, rgba(0, 0, 0, 0.3));border:1px solid var(--border-strong, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
6
11
  &[data-status='ongoing'],
7
- &[data-status='paused'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-tfkqbj) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px ;border-radius:20px;border:0.8px solid var(--border-strong, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;.dot-status:where(.svelte-tfkqbj) {width:5px;height:5px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
12
+ &[data-status='paused'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-tfkqbj) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--border-strong, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;.dot-status:where(.svelte-tfkqbj) {width:5px;height:5px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
8
13
  box-shadow 0.2s ease;&.new,
9
14
  &.completed {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled,
10
15
  &.ongoing {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.paused {background:var(--bg-primary-level-1, rgba(255, 204, 0, 1));}&.expired {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.rejected {background:var(--semantic-error-500, rgba(235, 0, 0, 1));}}.status-label:where(.svelte-tfkqbj) {font-weight:500;font-size:11px;line-height:13px;text-align:center;color:var(--text-default, rgba(223, 227, 232, 1));}}.timer:where(.svelte-tfkqbj) {display:flex;align-items:center;gap:6px;color:var(--text-default, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;.timer-label:where(.svelte-tfkqbj),
11
16
  .timer-date:where(.svelte-tfkqbj) {font-weight:400;}.timer-dash:where(.svelte-tfkqbj) {font-weight:500;opacity:0.7;}}}`
12
17
  };
13
- function me(C, d) {
14
- Z(d, !0), ee(C, he);
15
- const w = () => le(oe, "$_", F), [F, G] = de(), c = b(d, "status", 7), k = b(d, "time", 7), u = b(d, "locale", 7, ""), _ = b(d, "isNew", 7, !1);
16
- te(u()), T(() => {
17
- ie(u() ?? "en");
18
+ function we(z, d) {
19
+ Z(d, !0), ee(z, me);
20
+ const w = () => oe(de, "$_", M), [M, O] = ie(), c = v(d, "status", 7), k = v(d, "time", 7), u = v(d, "locale", 7, ""), _ = v(d, "isNew", 7, !1);
21
+ te(() => ae(u())), I(() => {
22
+ pe(u() ?? "en");
18
23
  });
19
- let N = ae(se(A().valueOf()));
20
- T(() => {
24
+ let C = se(re(S().valueOf()));
25
+ I(() => {
21
26
  const t = setInterval(
22
27
  () => {
23
- pe(N, A().valueOf(), !0);
28
+ ce(C, S().valueOf(), !0);
24
29
  },
25
30
  1e3
26
31
  );
27
32
  return () => clearInterval(t);
28
33
  });
29
- const H = {
34
+ const A = {
30
35
  new: "new",
31
36
  scheduled: "scheduled",
32
37
  ongoing: "onGoing",
@@ -34,8 +39,8 @@ function me(C, d) {
34
39
  completed: "completed",
35
40
  expired: "expired",
36
41
  rejected: "rejected"
37
- }, l = E(() => ue(c(), k(), e(N))), a = E(() => ce(c(), _()));
38
- var J = {
42
+ }, l = G(() => ge(c(), k(), e(C))), a = G(() => ue(c(), _()));
43
+ var F = {
39
44
  get status() {
40
45
  return c();
41
46
  },
@@ -60,51 +65,51 @@ function me(C, d) {
60
65
  set isNew(t = !1) {
61
66
  _(t), h();
62
67
  }
63
- }, g = fe(), v = r(g), B = r(v);
64
- let $;
65
- var I = p(B, 2), K = r(I, !0);
66
- n(I), n(v);
67
- var M = p(v, 2);
68
+ }, g = he(), b = r(g), N = r(b);
69
+ let B;
70
+ var E = p(N, 2), J = r(E, !0);
71
+ n(E), n(b);
72
+ var K = p(b, 2);
68
73
  {
69
74
  var P = (t) => {
70
- var j = xe(), S = r(j);
75
+ var j = xe(), L = r(j);
71
76
  {
72
77
  var R = (s) => {
73
78
  var o = ve(), i = r(o, !0);
74
- n(o), z((q) => x(i, q), [() => w()(e(l).date)]), f(s, o);
79
+ n(o), T((q) => f(i, q), [() => w()(e(l).date)]), x(s, o);
75
80
  };
76
- y(S, (s) => {
81
+ y(L, (s) => {
77
82
  e(l).date && s(R);
78
83
  });
79
84
  }
80
- var U = p(S, 2);
85
+ var U = p(L, 2);
81
86
  {
82
87
  var V = (s) => {
83
- var o = be(), i = ge(o), q = r(i, !0);
88
+ var o = fe(), i = be(o), q = r(i, !0);
84
89
  n(i);
85
- var L = p(i, 2);
86
- L.textContent = "-";
87
- var O = p(L, 2), W = r(O, !0);
88
- n(O), z(
90
+ var $ = p(i, 2);
91
+ $.textContent = "-";
92
+ var H = p($, 2), W = r(H, !0);
93
+ n(H), T(
89
94
  (X) => {
90
- x(q, X), x(W, e(l).countdownTime);
95
+ f(q, X), f(W, e(l).countdownTime);
91
96
  },
92
97
  [() => w()(e(l).label)]
93
- ), f(s, o);
98
+ ), x(s, o);
94
99
  };
95
100
  y(U, (s) => {
96
101
  e(l).countdownTime && s(V);
97
102
  });
98
103
  }
99
- n(j), f(t, j);
104
+ n(j), x(t, j);
100
105
  };
101
- y(M, (t) => {
106
+ y(K, (t) => {
102
107
  e(l) && t(P);
103
108
  });
104
109
  }
105
- n(g), z(
110
+ n(g), T(
106
111
  (t) => {
107
- D(g, "data-status", e(a)), D(v, "data-status", e(a)), $ = re(B, 1, "dot dot-status svelte-tfkqbj", null, $, {
112
+ D(g, "data-status", e(a)), D(b, "data-status", e(a)), B = ne(N, 1, "dot dot-status svelte-tfkqbj", null, B, {
108
113
  new: e(a) === "new",
109
114
  scheduled: e(a) === "scheduled",
110
115
  ongoing: e(a) === "ongoing",
@@ -112,14 +117,14 @@ function me(C, d) {
112
117
  completed: e(a) === "completed",
113
118
  expired: e(a) === "expired",
114
119
  rejected: e(a) === "rejected"
115
- }), x(K, t);
120
+ }), f(J, t);
116
121
  },
117
- [() => w()(H[e(a)])]
118
- ), f(C, g);
119
- var Q = ne(J);
120
- return G(), Q;
122
+ [() => w()(A[e(a)])]
123
+ ), x(z, g);
124
+ var Q = le(F);
125
+ return O(), Q;
121
126
  }
122
- Y(me, { status: {}, time: {}, locale: {}, isNew: {} }, [], [], !0);
127
+ Y(we, { status: {}, time: {}, locale: {}, isNew: {} }, [], [], { mode: "open" });
123
128
  export {
124
- me as B
129
+ we as B
125
130
  };
@@ -0,0 +1,7 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BtbgPMyA.cjs");var D=e.from_html('<span class="timer-date svelte-tfkqbj"> </span>'),G=e.from_html('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>',1),A=e.from_html('<div class="timer svelte-tfkqbj"><!> <!></div>'),F=e.from_html('<div class="challenge-badge svelte-tfkqbj"><div class="status-pill svelte-tfkqbj"><span></span> <span class="status-label svelte-tfkqbj"> </span></div> <!></div>');const J={hash:"svelte-tfkqbj",code:`.challenge-badge.svelte-tfkqbj {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-black-30, rgba(0, 0, 0, 0.3));border:1px solid var(--border-strong, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
2
+ &[data-status='ongoing'],
3
+ &[data-status='paused'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-tfkqbj) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--border-strong, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;.dot-status:where(.svelte-tfkqbj) {width:5px;height:5px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
4
+ box-shadow 0.2s ease;&.new,
5
+ &.completed {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled,
6
+ &.ongoing {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.paused {background:var(--bg-primary-level-1, rgba(255, 204, 0, 1));}&.expired {background:var(--secondary-300, rgba(78, 103, 134, 1));}&.rejected {background:var(--semantic-error-500, rgba(235, 0, 0, 1));}}.status-label:where(.svelte-tfkqbj) {font-weight:500;font-size:11px;line-height:13px;text-align:center;color:var(--text-default, rgba(223, 227, 232, 1));}}.timer:where(.svelte-tfkqbj) {display:flex;align-items:center;gap:6px;color:var(--text-default, rgba(223, 227, 232, 1));font-size:10px;line-height:1;white-space:nowrap;.timer-label:where(.svelte-tfkqbj),
7
+ .timer-date:where(.svelte-tfkqbj) {font-weight:400;}.timer-dash:where(.svelte-tfkqbj) {font-weight:500;opacity:0.7;}}}`};function y(h,n){e.push(n,!0),e.append_styles(h,J);const g=()=>e.store_get(e.$format,"$_",T),[T,S]=e.setup_stores(),i=e.prop(n,"status",7),u=e.prop(n,"time",7),d=e.prop(n,"locale",7,""),b=e.prop(n,"isNew",7,!1);e.untrack(()=>e.initI18n(d())),e.user_effect(()=>{e.setLocale(d()??"en")});let x=e.state(e.proxy(e.dayjs().valueOf()));e.user_effect(()=>{const t=setInterval(()=>{e.set(x,e.dayjs().valueOf(),!0)},1e3);return()=>clearInterval(t)});const C={new:"new",scheduled:"scheduled",ongoing:"onGoing",paused:"paused",completed:"completed",expired:"expired",rejected:"rejected"},r=e.user_derived(()=>e.getBadgeContent(i(),u(),e.get(x))),a=e.user_derived(()=>e.mapChallengeStatus(i(),b()));var N={get status(){return i()},set status(t){i(t),e.flushSync()},get time(){return u()},set time(t){u(t),e.flushSync()},get locale(){return d()},set locale(t=""){d(t),e.flushSync()},get isNew(){return b()},set isNew(t=!1){b(t),e.flushSync()}},c=F(),p=e.child(c),m=e.child(p);let _;var k=e.sibling(m,2),z=e.child(k,!0);e.reset(k),e.reset(p);var L=e.sibling(p,2);{var B=t=>{var v=A(),w=e.child(v);{var I=s=>{var l=D(),o=e.child(l,!0);e.reset(l),e.template_effect(f=>e.set_text(o,f),[()=>g()(e.get(r).date)]),e.append(s,l)};e.if_block(w,s=>{e.get(r).date&&s(I)})}var $=e.sibling(w,2);{var H=s=>{var l=G(),o=e.first_child(l),f=e.child(o,!0);e.reset(o);var j=e.sibling(o,2);j.textContent="-";var q=e.sibling(j,2),M=e.child(q,!0);e.reset(q),e.template_effect(O=>{e.set_text(f,O),e.set_text(M,e.get(r).countdownTime)},[()=>g()(e.get(r).label)]),e.append(s,l)};e.if_block($,s=>{e.get(r).countdownTime&&s(H)})}e.reset(v),e.append(t,v)};e.if_block(L,t=>{e.get(r)&&t(B)})}e.reset(c),e.template_effect(t=>{e.set_attribute(c,"data-status",e.get(a)),e.set_attribute(p,"data-status",e.get(a)),_=e.set_class(m,1,"dot dot-status svelte-tfkqbj",null,_,{new:e.get(a)==="new",scheduled:e.get(a)==="scheduled",ongoing:e.get(a)==="ongoing",paused:e.get(a)==="paused",completed:e.get(a)==="completed",expired:e.get(a)==="expired",rejected:e.get(a)==="rejected"}),e.set_text(z,t)},[()=>g()(C[e.get(a)])]),e.append(h,c);var E=e.pop(N);return S(),E}e.create_custom_element(y,{status:{},time:{},locale:{},isNew:{}},[],[],{mode:"open"});exports.Badge=y;
@@ -0,0 +1,3 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BtbgPMyA.cjs");var x=e.from_html('<button class="challenge-button svelte-166ic7y"> </button>');const v={hash:"svelte-166ic7y",code:`.challenge-button.svelte-166ic7y {box-sizing:border-box;&:disabled {opacity:0.5;cursor:default;}display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;gap:10px;width:80px;height:37px;border-radius:6px;font-size:13px;font-weight:600;line-height:1;cursor:pointer;transition:background 0.15s ease,
2
+ border-color 0.15s ease,
3
+ opacity 0.15s ease;flex:none;order:1;flex-grow:0;&:hover {opacity:0.9;}&:active {opacity:0.8;}&:disabled {opacity:0.4;cursor:not-allowed;}&[data-variant='primary'] {background:var(--button-primary-bg-default, #ffcc00);border:none;color:var(--button-primary-text-default, rgba(38, 29, 0, 1));}&[data-variant='secondary'] {background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));align-self:stretch;}&[data-variant='accent'] {background:var(--button-primary-icon-disabled, rgba(251, 251, 251, 0.15));border:1px solid var(--button-primary-bg-default, #ffcc00);backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));}}`};function d(s,a){e.push(a,!0),e.append_styles(s,v);const u=()=>e.store_get(e.$format,"$_",b),[b,p]=e.setup_stores(),n=e.prop(a,"variant",7,"primary"),l=e.prop(a,"text",7),o=e.prop(a,"locale",7,""),c=e.prop(a,"disabled",7,!1),i=e.prop(a,"onclick",7);e.untrack(()=>e.initI18n(o())),e.user_effect(()=>{e.setLocale(o()||"en")});var f={get variant(){return n()},set variant(t="primary"){n(t),e.flushSync()},get text(){return l()},set text(t){l(t),e.flushSync()},get locale(){return o()},set locale(t=""){o(t),e.flushSync()},get disabled(){return c()},set disabled(t=!1){c(t),e.flushSync()},get onclick(){return i()},set onclick(t){i(t),e.flushSync()}},r=x(),g=e.child(r,!0);e.reset(r),e.template_effect(t=>{e.set_attribute(r,"data-variant",n()),r.disabled=c(),e.set_text(g,t)},[()=>u()(l())]),e.delegated("click",r,function(...t){i()?.apply(this,t)}),e.append(s,r);var y=e.pop(f);return p(),y}e.delegate(["click"]);e.create_custom_element(d,{variant:{},text:{},locale:{},disabled:{},onclick:{}},[],[],{mode:"open"});exports.Button=d;
@@ -1,64 +1,67 @@
1
- import { g as v, c as y, d as h, h as m, p as r, o as _, u as k, B as w, t as B, s as j, i as z, a as $, b as I, j as L, l as S, $ as q, k as A, e as o, m as C, r as D } from "./ChallengeTabs-B6_2WSU0.js";
2
- var E = L('<button class="challenge-button svelte-166ic7y"> </button>');
3
- const F = {
1
+ import { g as v, c as y, d as m, h, p as r, u as k, q as _, v as w, D as T, t as E, s as L, i as j, j as z, a as B, b as D, k as H, l as M, $, n as q, e as o, m as I, r as S } from "./ChallengeTabs-nR_tQGbd.js";
2
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
3
+ }, globalThis.customElements = { define() {
4
+ }, get() {
5
+ }, whenDefined() {
6
+ } });
7
+ var A = H('<button class="challenge-button svelte-166ic7y"> </button>');
8
+ const C = {
4
9
  hash: "svelte-166ic7y",
5
10
  code: `.challenge-button.svelte-166ic7y {box-sizing:border-box;&:disabled {opacity:0.5;cursor:default;}display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;gap:10px;width:80px;height:37px;border-radius:6px;font-size:13px;font-weight:600;line-height:1;cursor:pointer;transition:background 0.15s ease,
6
11
  border-color 0.15s ease,
7
12
  opacity 0.15s ease;flex:none;order:1;flex-grow:0;&:hover {opacity:0.9;}&:active {opacity:0.8;}&:disabled {opacity:0.4;cursor:not-allowed;}&[data-variant='primary'] {background:var(--button-primary-bg-default, #ffcc00);border:none;color:var(--button-primary-text-default, rgba(38, 29, 0, 1));}&[data-variant='secondary'] {background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));align-self:stretch;}&[data-variant='accent'] {background:var(--button-primary-icon-disabled, rgba(251, 251, 251, 0.15));border:1px solid var(--button-primary-bg-default, #ffcc00);backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));}}`
8
13
  };
9
- function G(d, e) {
10
- h(e, !0), m(d, F);
11
- const u = () => S(q, "$_", b), [b, p] = C(), n = r(e, "variant", 7, "primary"), c = r(e, "text", 7), s = r(e, "locale", 7, ""), l = r(e, "disabled", 7, !1), i = r(e, "onclick", 7);
12
- _(s()), k(() => {
13
- w(s() || "en");
14
+ function F(d, t) {
15
+ m(t, !0), h(d, C);
16
+ const u = () => M($, "$_", b), [b, p] = I(), n = r(t, "variant", 7, "primary"), l = r(t, "text", 7), s = r(t, "locale", 7, ""), i = r(t, "disabled", 7, !1), c = r(t, "onclick", 7);
17
+ k(() => _(s())), w(() => {
18
+ T(s() || "en");
14
19
  });
15
20
  var f = {
16
21
  get variant() {
17
22
  return n();
18
23
  },
19
- set variant(t = "primary") {
20
- n(t), o();
24
+ set variant(e = "primary") {
25
+ n(e), o();
21
26
  },
22
27
  get text() {
23
- return c();
28
+ return l();
24
29
  },
25
- set text(t) {
26
- c(t), o();
30
+ set text(e) {
31
+ l(e), o();
27
32
  },
28
33
  get locale() {
29
34
  return s();
30
35
  },
31
- set locale(t = "") {
32
- s(t), o();
36
+ set locale(e = "") {
37
+ s(e), o();
33
38
  },
34
39
  get disabled() {
35
- return l();
40
+ return i();
36
41
  },
37
- set disabled(t = !1) {
38
- l(t), o();
42
+ set disabled(e = !1) {
43
+ i(e), o();
39
44
  },
40
45
  get onclick() {
41
- return i();
46
+ return c();
42
47
  },
43
- set onclick(t) {
44
- i(t), o();
48
+ set onclick(e) {
49
+ c(e), o();
45
50
  }
46
- }, a = E();
47
- a.__click = function(...t) {
48
- i()?.apply(this, t);
49
- };
50
- var g = A(a, !0);
51
- D(a), B(
52
- (t) => {
53
- j(a, "data-variant", n()), a.disabled = l(), z(g, t);
51
+ }, a = A(), g = q(a, !0);
52
+ S(a), E(
53
+ (e) => {
54
+ L(a, "data-variant", n()), a.disabled = i(), j(g, e);
54
55
  },
55
- [() => u()(c())]
56
- ), $(d, a);
57
- var x = I(f);
56
+ [() => u()(l())]
57
+ ), z("click", a, function(...e) {
58
+ c()?.apply(this, e);
59
+ }), B(d, a);
60
+ var x = D(f);
58
61
  return p(), x;
59
62
  }
60
63
  v(["click"]);
61
- y(G, { variant: {}, text: {}, locale: {}, disabled: {}, onclick: {} }, [], [], !0);
64
+ y(F, { variant: {}, text: {}, locale: {}, disabled: {}, onclick: {} }, [], [], { mode: "open" });
62
65
  export {
63
- G as B
66
+ F as B
64
67
  };
@@ -0,0 +1,4 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BtbgPMyA.cjs"),_=require("./Badge-r78wWqnE.cjs"),m="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 b=e.from_html('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <img/></div>');const w={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:340px;}.challenge-details__banner--placeholder:where(.svelte-1rs963e) {object-fit:contain;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}
2
+
3
+ @media (max-width: 767px) {.challenge-details__banner--image:where(.svelte-1rs963e) {height:140px;}
4
+ }}`};function g(c,t){e.push(t,!0),e.append_styles(c,w);const l=e.prop(t,"challengeItem",7),n=e.prop(t,"locale",7),a=e.user_derived(()=>l().ChallengePresentation),h=e.user_derived(()=>e.get(a)?.BannerUrl||m),v=e.user_derived(()=>!!e.get(a)?.BannerUrl);var p={get challengeItem(){return l()},set challengeItem(o){l(o),e.flushSync()},get locale(){return n()},set locale(o){n(o),e.flushSync()}},s=b(),r=e.child(s),u=e.child(r);_.Badge(u,{get status(){return l().Status},get time(){return l().ExpirationTime},get isNew(){return l().IsNew},get locale(){return n()}}),e.reset(r);var i=e.sibling(r,2);let d;return e.reset(s),e.template_effect(()=>{d=e.set_class(i,1,"challenge-details__banner--image svelte-1rs963e",null,d,{"challenge-details__banner--placeholder":!e.get(v)}),e.set_attribute(i,"src",e.get(h)),e.set_attribute(i,"alt",e.get(a)?.PresentationName??"")}),e.append(c,s),e.pop(p)}e.create_custom_element(g,{challengeItem:{},locale:{}},[],[],{mode:"open"});exports.ChallengeBanner=g;
@@ -0,0 +1,57 @@
1
+ import { c as x, d as C, h as B, p as g, t as y, a as I, b as T, k as H, n as v, e as m, r as p, o as M, B as E, A as l, s as _, C as c } from "./ChallengeTabs-nR_tQGbd.js";
2
+ import { B as L } from "./Badge-C2_vCRtE.js";
3
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
4
+ }, globalThis.customElements = { define() {
5
+ }, get() {
6
+ }, whenDefined() {
7
+ } });
8
+ const 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";
9
+ var k = H('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <img/></div>');
10
+ const N = {
11
+ hash: "svelte-1rs963e",
12
+ 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:340px;}.challenge-details__banner--placeholder:where(.svelte-1rs963e) {object-fit:contain;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}
13
+
14
+ @media (max-width: 767px) {.challenge-details__banner--image:where(.svelte-1rs963e) {height:140px;}
15
+ }}`
16
+ };
17
+ function P(d, a) {
18
+ C(a, !0), B(d, N);
19
+ const e = g(a, "challengeItem", 7), t = g(a, "locale", 7), s = c(() => e().ChallengePresentation), u = c(() => l(s)?.BannerUrl || V), b = c(() => !!l(s)?.BannerUrl);
20
+ var f = {
21
+ get challengeItem() {
22
+ return e();
23
+ },
24
+ set challengeItem(o) {
25
+ e(o), m();
26
+ },
27
+ get locale() {
28
+ return t();
29
+ },
30
+ set locale(o) {
31
+ t(o), m();
32
+ }
33
+ }, n = k(), r = v(n), w = v(r);
34
+ L(w, {
35
+ get status() {
36
+ return e().Status;
37
+ },
38
+ get time() {
39
+ return e().ExpirationTime;
40
+ },
41
+ get isNew() {
42
+ return e().IsNew;
43
+ },
44
+ get locale() {
45
+ return t();
46
+ }
47
+ }), p(r);
48
+ var i = M(r, 2);
49
+ let h;
50
+ return p(n), y(() => {
51
+ h = E(i, 1, "challenge-details__banner--image svelte-1rs963e", null, h, { "challenge-details__banner--placeholder": !l(b) }), _(i, "src", l(u)), _(i, "alt", l(s)?.PresentationName ?? "");
52
+ }), I(d, n), T(f);
53
+ }
54
+ x(P, { challengeItem: {}, locale: {} }, [], [], { mode: "open" });
55
+ export {
56
+ P as C
57
+ };
@@ -0,0 +1,41 @@
1
+ import { g as v, c as m, d as _, h as k, p as x, t as y, s as $, i as w, j as B, a as T, b as C, k as z, l as E, e as L, m as j, $ as A, n as l, r as n, o as H } from "./ChallengeTabs-nR_tQGbd.js";
2
+ import { A as M } from "./ArrowLeftIcon-De_oE6VJ.js";
3
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
4
+ }, globalThis.customElements = { define() {
5
+ }, get() {
6
+ }, whenDefined() {
7
+ } });
8
+ var D = z('<nav class="player-challenges__breadcrumbs svelte-ca3bk6"><button type="button" class="player-challenges__breadcrumb-back svelte-ca3bk6"><span class="player-challenges__breadcrumb-back-icon svelte-ca3bk6" aria-hidden="true"><!></span> </button></nav>');
9
+ const I = {
10
+ hash: "svelte-ca3bk6",
11
+ code: ".player-challenges__breadcrumbs.svelte-ca3bk6 {display:flex;align-items:center;gap:13px;font-size:12px;min-width:0;padding:8px 12px;border-radius:6px;background:var(--app-container-bg-default, rgba(2, 38, 82, 1));}.player-challenges__breadcrumb-back.svelte-ca3bk6 {display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:var(--text-default, rgba(255, 255, 255, 1));font-size:14px;font-weight:500;cursor:pointer;&:hover {color:var(--text-default, rgba(223, 227, 232, 1));}&:focus-visible {outline:2px solid var(--border-info, rgba(110, 181, 255, 1));outline-offset:2px;}}.player-challenges__breadcrumb-back-icon.svelte-ca3bk6 {display:flex;border-radius:100%;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.15));width:24px;height:24px;align-items:center;justify-content:center;color:var(--icon-default, rgba(255, 255, 255, 1));font-weight:500;}"
12
+ };
13
+ function S(o, c) {
14
+ _(c, !0), k(o, I);
15
+ const i = () => E(A, "$_", p), [p, b] = j(), t = x(c, "onBack", 7);
16
+ var d = {
17
+ get onBack() {
18
+ return t();
19
+ },
20
+ set onBack(e) {
21
+ t(e), L();
22
+ }
23
+ }, a = D(), s = l(a), r = l(s), g = l(r);
24
+ M(g, { size: 16 }), n(r);
25
+ var u = H(r);
26
+ n(s), n(a), y(
27
+ (e, h) => {
28
+ $(a, "aria-label", e), w(u, ` ${h ?? ""}`);
29
+ },
30
+ [() => i()("allChallenges"), () => i()("allChallenges")]
31
+ ), B("click", s, function(...e) {
32
+ t()?.apply(this, e);
33
+ }), T(o, a);
34
+ var f = C(d);
35
+ return b(), f;
36
+ }
37
+ v(["click"]);
38
+ m(S, { onBack: {} }, [], [], { mode: "open" });
39
+ export {
40
+ S as C
41
+ };
@@ -0,0 +1 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BtbgPMyA.cjs"),v=require("./ArrowLeftIcon-D0LpsufV.cjs");var m=e.from_html('<nav class="player-challenges__breadcrumbs svelte-ca3bk6"><button type="button" class="player-challenges__breadcrumb-back svelte-ca3bk6"><span class="player-challenges__breadcrumb-back-icon svelte-ca3bk6" aria-hidden="true"><!></span> </button></nav>');const _={hash:"svelte-ca3bk6",code:".player-challenges__breadcrumbs.svelte-ca3bk6 {display:flex;align-items:center;gap:13px;font-size:12px;min-width:0;padding:8px 12px;border-radius:6px;background:var(--app-container-bg-default, rgba(2, 38, 82, 1));}.player-challenges__breadcrumb-back.svelte-ca3bk6 {display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:var(--text-default, rgba(255, 255, 255, 1));font-size:14px;font-weight:500;cursor:pointer;&:hover {color:var(--text-default, rgba(223, 227, 232, 1));}&:focus-visible {outline:2px solid var(--border-info, rgba(110, 181, 255, 1));outline-offset:2px;}}.player-challenges__breadcrumb-back-icon.svelte-ca3bk6 {display:flex;border-radius:100%;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.15));width:24px;height:24px;align-items:center;justify-content:center;color:var(--icon-default, rgba(255, 255, 255, 1));font-weight:500;}"};function i(s,c){e.push(c,!0),e.append_styles(s,_);const o=()=>e.store_get(e.$format,"$_",b),[b,p]=e.setup_stores(),r=e.prop(c,"onBack",7);var d={get onBack(){return r()},set onBack(a){r(a),e.flushSync()}},t=m(),l=e.child(t),n=e.child(l),u=e.child(n);v.ArrowLeftIcon(u,{size:16}),e.reset(n);var g=e.sibling(n);e.reset(l),e.reset(t),e.template_effect((a,f)=>{e.set_attribute(t,"aria-label",a),e.set_text(g,` ${f??""}`)},[()=>o()("allChallenges"),()=>o()("allChallenges")]),e.delegated("click",l,function(...a){r()?.apply(this,a)}),e.append(s,t);var h=e.pop(d);return p(),h}e.delegate(["click"]);e.create_custom_element(i,{onBack:{}},[],[],{mode:"open"});exports.ChallengeBreadcrumbs=i;
@@ -0,0 +1 @@
1
+ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChallengeTabs-BtbgPMyA.cjs"),M=require("./ChallengeList-Bby_g4Z8.cjs");function S(f,t){e.push(t,!0);let r=e.prop(t,"challenge",7),o=e.prop(t,"endpoint",7,""),s=e.prop(t,"domainId",7,""),l=e.prop(t,"userSession",7,""),i=e.prop(t,"userId",7,""),u=e.prop(t,"locale",7,"en"),a=e.prop(t,"isPromo",7),d=e.prop(t,"isPaused",7),c=e.prop(t,"isShowIcon",7),g=e.prop(t,"isMobile",7),h=e.prop(t,"translationUrl",7,"");const I=e.user_derived(()=>e.toBoolean(a())),p=e.user_derived(()=>e.toBoolean(d())),b=e.user_derived(()=>e.toBoolean(c())),y=e.user_derived(()=>e.toBoolean(g(),!0));var P={get challenge(){return r()},set challenge(n){r(n),e.flushSync()},get endpoint(){return o()},set endpoint(n=""){o(n),e.flushSync()},get domainId(){return s()},set domainId(n=""){s(n),e.flushSync()},get userSession(){return l()},set userSession(n=""){l(n),e.flushSync()},get userId(){return i()},set userId(n=""){i(n),e.flushSync()},get locale(){return u()},set locale(n="en"){u(n),e.flushSync()},get isPromo(){return a()},set isPromo(n){a(n),e.flushSync()},get isPaused(){return d()},set isPaused(n){d(n),e.flushSync()},get isShowIcon(){return c()},set isShowIcon(n){c(n),e.flushSync()},get isMobile(){return g()},set isMobile(n){g(n),e.flushSync()},get translationUrl(){return h()},set translationUrl(n=""){h(n),e.flushSync()}},m=e.comment(),_=e.first_child(m);{var v=n=>{M.ChallengeCard(n,{get challenge(){return r()},get endpoint(){return o()},get domainId(){return s()},get userSession(){return l()},get userId(){return i()},get locale(){return u()},get isPromo(){return e.get(I)},get isPaused(){return e.get(p)},get isShowIcon(){return e.get(b)},get isMobile(){return e.get(y)},get translationUrl(){return h()}})};e.if_block(_,n=>{r()&&n(v)})}return e.append(f,m),e.pop(P)}customElements.define("challenge-card",e.create_custom_element(S,{challenge:{},endpoint:{},domainId:{},userSession:{},userId:{},locale:{},isPromo:{},isPaused:{},isShowIcon:{},isMobile:{},translationUrl:{}},[],[]));exports.default=S;
@@ -1,122 +1,128 @@
1
- import { d as w, p as n, N as M, F as U, x as _, a as v, b as C, e as r, c as x } from "./ChallengeTabs-B6_2WSU0.js";
2
- import { b as k } from "./ChallengeList-CVeq75Nw.js";
3
- function y(f, t) {
4
- w(t, !0);
5
- let s = n(t, "challenge", 7), a = n(t, "endpoint", 7, ""), o = n(t, "domainId", 7, ""), i = n(t, "userSession", 7, ""), l = n(t, "userId", 7, ""), u = n(t, "locale", 7, "en"), d = n(t, "isPromo", 7, !1), g = n(t, "isPaused", 7, !1), c = n(t, "isShowIcon", 7, !1), m = n(t, "isMobile", 7, !0), h = n(t, "translationUrl", 7, "");
6
- var S = {
1
+ import { d as E, p as n, P as H, H as x, z as y, a as L, b as k, e as s, c as z, A as o, C as a, aJ as i } from "./ChallengeTabs-nR_tQGbd.js";
2
+ import { b as A } from "./ChallengeList-P4I4Dp10.js";
3
+ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
4
+ }, globalThis.customElements = { define() {
5
+ }, get() {
6
+ }, whenDefined() {
7
+ } });
8
+ function B(S, t) {
9
+ E(t, !0);
10
+ let r = n(t, "challenge", 7), l = n(t, "endpoint", 7, ""), u = n(t, "domainId", 7, ""), d = n(t, "userSession", 7, ""), c = n(t, "userId", 7, ""), g = n(t, "locale", 7, "en"), m = n(t, "isPromo", 7), h = n(t, "isPaused", 7), I = n(t, "isShowIcon", 7), f = n(t, "isMobile", 7), b = n(t, "translationUrl", 7, "");
11
+ const w = a(() => i(m())), M = a(() => i(h())), U = a(() => i(I())), _ = a(() => i(f(), !0));
12
+ var v = {
7
13
  get challenge() {
8
- return s();
14
+ return r();
9
15
  },
10
16
  set challenge(e) {
11
- s(e), r();
17
+ r(e), s();
12
18
  },
13
19
  get endpoint() {
14
- return a();
20
+ return l();
15
21
  },
16
22
  set endpoint(e = "") {
17
- a(e), r();
23
+ l(e), s();
18
24
  },
19
25
  get domainId() {
20
- return o();
26
+ return u();
21
27
  },
22
28
  set domainId(e = "") {
23
- o(e), r();
29
+ u(e), s();
24
30
  },
25
31
  get userSession() {
26
- return i();
32
+ return d();
27
33
  },
28
34
  set userSession(e = "") {
29
- i(e), r();
35
+ d(e), s();
30
36
  },
31
37
  get userId() {
32
- return l();
38
+ return c();
33
39
  },
34
40
  set userId(e = "") {
35
- l(e), r();
41
+ c(e), s();
36
42
  },
37
43
  get locale() {
38
- return u();
44
+ return g();
39
45
  },
40
46
  set locale(e = "en") {
41
- u(e), r();
47
+ g(e), s();
42
48
  },
43
49
  get isPromo() {
44
- return d();
50
+ return m();
45
51
  },
46
- set isPromo(e = !1) {
47
- d(e), r();
52
+ set isPromo(e) {
53
+ m(e), s();
48
54
  },
49
55
  get isPaused() {
50
- return g();
56
+ return h();
51
57
  },
52
- set isPaused(e = !1) {
53
- g(e), r();
58
+ set isPaused(e) {
59
+ h(e), s();
54
60
  },
55
61
  get isShowIcon() {
56
- return c();
62
+ return I();
57
63
  },
58
- set isShowIcon(e = !1) {
59
- c(e), r();
64
+ set isShowIcon(e) {
65
+ I(e), s();
60
66
  },
61
67
  get isMobile() {
62
- return m();
68
+ return f();
63
69
  },
64
- set isMobile(e = !0) {
65
- m(e), r();
70
+ set isMobile(e) {
71
+ f(e), s();
66
72
  },
67
73
  get translationUrl() {
68
- return h();
74
+ return b();
69
75
  },
70
76
  set translationUrl(e = "") {
71
- h(e), r();
77
+ b(e), s();
72
78
  }
73
- }, I = M(), P = U(I);
79
+ }, P = H(), C = x(P);
74
80
  {
75
- var b = (e) => {
76
- k(e, {
81
+ var T = (e) => {
82
+ A(e, {
77
83
  get challenge() {
78
- return s();
84
+ return r();
79
85
  },
80
86
  get endpoint() {
81
- return a();
87
+ return l();
82
88
  },
83
89
  get domainId() {
84
- return o();
90
+ return u();
85
91
  },
86
92
  get userSession() {
87
- return i();
93
+ return d();
88
94
  },
89
95
  get userId() {
90
- return l();
96
+ return c();
91
97
  },
92
98
  get locale() {
93
- return u();
99
+ return g();
94
100
  },
95
101
  get isPromo() {
96
- return d();
102
+ return o(w);
97
103
  },
98
104
  get isPaused() {
99
- return g();
105
+ return o(M);
100
106
  },
101
107
  get isShowIcon() {
102
- return c();
108
+ return o(U);
103
109
  },
104
110
  get isMobile() {
105
- return m();
111
+ return o(_);
106
112
  },
107
113
  get translationUrl() {
108
- return h();
114
+ return b();
109
115
  }
110
116
  });
111
117
  };
112
- _(P, (e) => {
113
- s() && e(b);
118
+ y(C, (e) => {
119
+ r() && e(T);
114
120
  });
115
121
  }
116
- return v(f, I), C(S);
122
+ return L(S, P), k(v);
117
123
  }
118
- customElements.define("challenge-card", x(
119
- y,
124
+ customElements.define("challenge-card", z(
125
+ B,
120
126
  {
121
127
  challenge: {},
122
128
  endpoint: {},
@@ -131,9 +137,8 @@ customElements.define("challenge-card", x(
131
137
  translationUrl: {}
132
138
  },
133
139
  [],
134
- [],
135
- !1
140
+ []
136
141
  ));
137
142
  export {
138
- y as default
143
+ B as default
139
144
  };