@everymatrix/player-challenges 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ArrowLeftIcon-BRaj1LmB.js +21 -0
- package/components/ArrowLeftIcon-DDLFT41L.cjs +1 -0
- package/components/Badge-C2wt4e90.js +125 -0
- package/components/Badge-DAKtct6K.cjs +7 -0
- package/components/Button--XqKsOFn.js +64 -0
- package/components/Button-D-VBD0Q3.cjs +3 -0
- package/components/ChallengeBanner-CBpmtUBF.cjs +4 -0
- package/components/ChallengeBanner-Cmpj8DEM.js +59 -0
- package/components/ChallengeBreadcrumbs-2wbaNU9B.js +38 -0
- package/components/ChallengeBreadcrumbs-CI85tqGz.cjs +1 -0
- package/components/ChallengeCard-3mRYB8cV.cjs +1 -0
- package/components/ChallengeCard-B6CuOUjR.js +139 -0
- package/components/ChallengeClaimCode-CHjR7wvj.js +71 -0
- package/components/ChallengeClaimCode-CbvBupc_.cjs +1 -0
- package/components/ChallengeDetails-D8ZWkzvs.cjs +1 -0
- package/components/ChallengeDetails-kST_L2H6.js +91 -0
- package/components/ChallengeEvents-CQ6STVwu.js +57 -0
- package/components/ChallengeEvents-Cs53agnU.cjs +1 -0
- package/components/ChallengeGames-B0HjqvW0.cjs +11 -0
- package/components/ChallengeGames-Cba0U_35.js +136 -0
- package/components/ChallengeHistory-BGGX8pSa.js +101 -0
- package/components/ChallengeHistory-VT3TVd3m.cjs +1 -0
- package/components/ChallengeLevels-BGZpw1ET.js +297 -0
- package/components/ChallengeLevels-iQPTsHa6.cjs +4 -0
- package/components/ChallengeList-CFGrG4th.cjs +23 -0
- package/components/ChallengeList-CVeq75Nw.js +1223 -0
- package/components/ChallengeProgress-CFLdRZji.cjs +1 -0
- package/components/ChallengeProgress-DP3VVpVT.js +81 -0
- package/components/ChallengeProgressItem-D8RsRZvE.cjs +68 -0
- package/components/ChallengeProgressItem-DTB7cV5H.js +412 -0
- package/components/ChallengeRules-DcFk9naV.cjs +1 -0
- package/components/ChallengeRules-DhjdAEuR.js +153 -0
- package/components/ChallengeSummary-CLGCOtRQ.cjs +3 -0
- package/components/ChallengeSummary-DiE9D1bF.js +219 -0
- package/components/ChallengeTabContent-BWahIpTH.js +833 -0
- package/components/ChallengeTabContent-DROK-E8d.cjs +13 -0
- package/components/ChallengeTabPanel-Cpm0azOu.js +164 -0
- package/components/ChallengeTabPanel-DRfYUk0O.cjs +1 -0
- package/components/ChallengeTabSkeleton-BpCRuAwx.cjs +15 -0
- package/components/ChallengeTabSkeleton-Ch33vV8a.js +112 -0
- package/components/ChallengeTabs-B6_2WSU0.js +8107 -0
- package/components/ChallengeTabs-CEYwcPlJ.cjs +14 -0
- package/components/CheckIcon-Bh-pkq9I.js +21 -0
- package/components/CheckIcon-Co2f_WCA.cjs +1 -0
- package/components/ChevronIcon-D9cP6u1l.js +21 -0
- package/components/ChevronIcon-DM0lqt14.cjs +1 -0
- package/components/ExistIcon--D18_Qhm.js +27 -0
- package/components/ExistIcon-mCUINSW_.cjs +1 -0
- package/components/GiftIcon-B0Ax8oOy.js +21 -0
- package/components/GiftIcon-Dqfja7-X.cjs +1 -0
- package/components/LinkIcon-BrRosQTW.cjs +1 -0
- package/components/LinkIcon-Bui5HZdD.js +21 -0
- package/components/LockIcon-C8tR8voO.js +21 -0
- package/components/LockIcon-DtM1_YzG.cjs +1 -0
- package/components/Pagination-Bx6K50Vt.cjs +12 -0
- package/components/Pagination-_6zMfbPi.js +130 -0
- package/components/PlayerChallenges-DVzU_6kl.js +328 -0
- package/components/PlayerChallenges-QYR3YEzs.cjs +1 -0
- package/components/StarIcon-DH0eCmcS.cjs +1 -0
- package/components/StarIcon-Dns8s0G7.js +27 -0
- package/components/TargetIcon-DG4XwqL4.cjs +1 -0
- package/components/TargetIcon-TJPVnCek.js +21 -0
- package/esnext/player-challenges.cjs +1 -0
- package/esnext/player-challenges.js +23 -0
- package/package.json +24 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { c as i, p as n, t as p, a as u, b as f, f as v, d, e as c, s } from "./ChallengeTabs-B6_2WSU0.js";
|
|
2
|
+
var h = v('<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>');
|
|
3
|
+
function g(a, r) {
|
|
4
|
+
d(r, !0);
|
|
5
|
+
let e = n(r, "size", 7, 24);
|
|
6
|
+
var o = {
|
|
7
|
+
get size() {
|
|
8
|
+
return e();
|
|
9
|
+
},
|
|
10
|
+
set size(l = 24) {
|
|
11
|
+
e(l), c();
|
|
12
|
+
}
|
|
13
|
+
}, t = h();
|
|
14
|
+
return p(() => {
|
|
15
|
+
s(t, "width", e()), s(t, "height", e());
|
|
16
|
+
}), u(a, t), f(o);
|
|
17
|
+
}
|
|
18
|
+
i(g, { size: {} }, [], [], !0);
|
|
19
|
+
export {
|
|
20
|
+
g as A
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./ChallengeTabs-CEYwcPlJ.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 o(l,s){e.push(s,!0);let t=e.prop(s,"size",7,24);var n={get size(){return t()},set size(i=24){t(i),e.flushSync()}},r=a();return e.template_effect(()=>{e.set_attribute(r,"width",t()),e.set_attribute(r,"height",t())}),e.append(l,r),e.pop(n)}e.create_custom_element(o,{size:{}},[],[],!0);exports.ArrowLeftIcon=o;
|
|
@@ -0,0 +1,125 @@
|
|
|
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 = {
|
|
4
|
+
hash: "svelte-tfkqbj",
|
|
5
|
+
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
|
+
&[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,
|
|
8
|
+
box-shadow 0.2s ease;&.new,
|
|
9
|
+
&.completed {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled,
|
|
10
|
+
&.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
|
+
.timer-date:where(.svelte-tfkqbj) {font-weight:400;}.timer-dash:where(.svelte-tfkqbj) {font-weight:500;opacity:0.7;}}}`
|
|
12
|
+
};
|
|
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
|
+
});
|
|
19
|
+
let N = ae(se(A().valueOf()));
|
|
20
|
+
T(() => {
|
|
21
|
+
const t = setInterval(
|
|
22
|
+
() => {
|
|
23
|
+
pe(N, A().valueOf(), !0);
|
|
24
|
+
},
|
|
25
|
+
1e3
|
|
26
|
+
);
|
|
27
|
+
return () => clearInterval(t);
|
|
28
|
+
});
|
|
29
|
+
const H = {
|
|
30
|
+
new: "new",
|
|
31
|
+
scheduled: "scheduled",
|
|
32
|
+
ongoing: "onGoing",
|
|
33
|
+
paused: "paused",
|
|
34
|
+
completed: "completed",
|
|
35
|
+
expired: "expired",
|
|
36
|
+
rejected: "rejected"
|
|
37
|
+
}, l = E(() => ue(c(), k(), e(N))), a = E(() => ce(c(), _()));
|
|
38
|
+
var J = {
|
|
39
|
+
get status() {
|
|
40
|
+
return c();
|
|
41
|
+
},
|
|
42
|
+
set status(t) {
|
|
43
|
+
c(t), h();
|
|
44
|
+
},
|
|
45
|
+
get time() {
|
|
46
|
+
return k();
|
|
47
|
+
},
|
|
48
|
+
set time(t) {
|
|
49
|
+
k(t), h();
|
|
50
|
+
},
|
|
51
|
+
get locale() {
|
|
52
|
+
return u();
|
|
53
|
+
},
|
|
54
|
+
set locale(t = "") {
|
|
55
|
+
u(t), h();
|
|
56
|
+
},
|
|
57
|
+
get isNew() {
|
|
58
|
+
return _();
|
|
59
|
+
},
|
|
60
|
+
set isNew(t = !1) {
|
|
61
|
+
_(t), h();
|
|
62
|
+
}
|
|
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
|
+
{
|
|
69
|
+
var P = (t) => {
|
|
70
|
+
var j = xe(), S = r(j);
|
|
71
|
+
{
|
|
72
|
+
var R = (s) => {
|
|
73
|
+
var o = ve(), i = r(o, !0);
|
|
74
|
+
n(o), z((q) => x(i, q), [() => w()(e(l).date)]), f(s, o);
|
|
75
|
+
};
|
|
76
|
+
y(S, (s) => {
|
|
77
|
+
e(l).date && s(R);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var U = p(S, 2);
|
|
81
|
+
{
|
|
82
|
+
var V = (s) => {
|
|
83
|
+
var o = be(), i = ge(o), q = r(i, !0);
|
|
84
|
+
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(
|
|
89
|
+
(X) => {
|
|
90
|
+
x(q, X), x(W, e(l).countdownTime);
|
|
91
|
+
},
|
|
92
|
+
[() => w()(e(l).label)]
|
|
93
|
+
), f(s, o);
|
|
94
|
+
};
|
|
95
|
+
y(U, (s) => {
|
|
96
|
+
e(l).countdownTime && s(V);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
n(j), f(t, j);
|
|
100
|
+
};
|
|
101
|
+
y(M, (t) => {
|
|
102
|
+
e(l) && t(P);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
n(g), z(
|
|
106
|
+
(t) => {
|
|
107
|
+
D(g, "data-status", e(a)), D(v, "data-status", e(a)), $ = re(B, 1, "dot dot-status svelte-tfkqbj", null, $, {
|
|
108
|
+
new: e(a) === "new",
|
|
109
|
+
scheduled: e(a) === "scheduled",
|
|
110
|
+
ongoing: e(a) === "ongoing",
|
|
111
|
+
paused: e(a) === "paused",
|
|
112
|
+
completed: e(a) === "completed",
|
|
113
|
+
expired: e(a) === "expired",
|
|
114
|
+
rejected: e(a) === "rejected"
|
|
115
|
+
}), x(K, t);
|
|
116
|
+
},
|
|
117
|
+
[() => w()(H[e(a)])]
|
|
118
|
+
), f(C, g);
|
|
119
|
+
var Q = ne(J);
|
|
120
|
+
return G(), Q;
|
|
121
|
+
}
|
|
122
|
+
Y(me, { status: {}, time: {}, locale: {}, isNew: {} }, [], [], !0);
|
|
123
|
+
export {
|
|
124
|
+
me as B
|
|
125
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const e=require("./ChallengeTabs-CEYwcPlJ.cjs");var E=e.from_html('<span class="timer-date svelte-tfkqbj"> </span>'),F=e.from_html('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>',1),H=e.from_html('<div class="timer svelte-tfkqbj"><!> <!></div>'),J=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 K={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,K);const g=()=>e.store_get(e.$format,"$_",S),[S,C]=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.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 N={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 z={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=J(),p=e.child(c),m=e.child(p);let _;var k=e.sibling(m,2),B=e.child(k,!0);e.reset(k),e.reset(p);var I=e.sibling(p,2);{var T=t=>{var v=H(),w=e.child(v);{var L=s=>{var l=E(),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(L)})}var O=e.sibling(w,2);{var G=s=>{var l=F(),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),A=e.child(q,!0);e.reset(q),e.template_effect(D=>{e.set_text(f,D),e.set_text(A,e.get(r).countdownTime)},[()=>g()(e.get(r).label)]),e.append(s,l)};e.if_block(O,s=>{e.get(r).countdownTime&&s(G)})}e.reset(v),e.append(t,v)};e.if_block(I,t=>{e.get(r)&&t(T)})}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(B,t)},[()=>g()(N[e.get(a)])]),e.append(h,c);var $=e.pop(z);return C(),$}e.create_custom_element(y,{status:{},time:{},locale:{},isNew:{}},[],[],!0);exports.Badge=y;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 = {
|
|
4
|
+
hash: "svelte-166ic7y",
|
|
5
|
+
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
|
+
border-color 0.15s ease,
|
|
7
|
+
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
|
+
};
|
|
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
|
+
});
|
|
15
|
+
var f = {
|
|
16
|
+
get variant() {
|
|
17
|
+
return n();
|
|
18
|
+
},
|
|
19
|
+
set variant(t = "primary") {
|
|
20
|
+
n(t), o();
|
|
21
|
+
},
|
|
22
|
+
get text() {
|
|
23
|
+
return c();
|
|
24
|
+
},
|
|
25
|
+
set text(t) {
|
|
26
|
+
c(t), o();
|
|
27
|
+
},
|
|
28
|
+
get locale() {
|
|
29
|
+
return s();
|
|
30
|
+
},
|
|
31
|
+
set locale(t = "") {
|
|
32
|
+
s(t), o();
|
|
33
|
+
},
|
|
34
|
+
get disabled() {
|
|
35
|
+
return l();
|
|
36
|
+
},
|
|
37
|
+
set disabled(t = !1) {
|
|
38
|
+
l(t), o();
|
|
39
|
+
},
|
|
40
|
+
get onclick() {
|
|
41
|
+
return i();
|
|
42
|
+
},
|
|
43
|
+
set onclick(t) {
|
|
44
|
+
i(t), o();
|
|
45
|
+
}
|
|
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);
|
|
54
|
+
},
|
|
55
|
+
[() => u()(c())]
|
|
56
|
+
), $(d, a);
|
|
57
|
+
var x = I(f);
|
|
58
|
+
return p(), x;
|
|
59
|
+
}
|
|
60
|
+
v(["click"]);
|
|
61
|
+
y(G, { variant: {}, text: {}, locale: {}, disabled: {}, onclick: {} }, [], [], !0);
|
|
62
|
+
export {
|
|
63
|
+
G as B
|
|
64
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const t=require("./ChallengeTabs-CEYwcPlJ.cjs");var x=t.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,r){t.push(r,!0),t.append_styles(s,v);const u=()=>t.store_get(t.$format,"$_",b),[b,p]=t.setup_stores(),n=t.prop(r,"variant",7,"primary"),c=t.prop(r,"text",7),o=t.prop(r,"locale",7,""),l=t.prop(r,"disabled",7,!1),i=t.prop(r,"onclick",7);t.initI18n(o()),t.user_effect(()=>{t.setLocale(o()||"en")});var f={get variant(){return n()},set variant(e="primary"){n(e),t.flushSync()},get text(){return c()},set text(e){c(e),t.flushSync()},get locale(){return o()},set locale(e=""){o(e),t.flushSync()},get disabled(){return l()},set disabled(e=!1){l(e),t.flushSync()},get onclick(){return i()},set onclick(e){i(e),t.flushSync()}},a=x();a.__click=function(...e){i()?.apply(this,e)};var g=t.child(a,!0);t.reset(a),t.template_effect(e=>{t.set_attribute(a,"data-variant",n()),a.disabled=l(),t.set_text(g,e)},[()=>u()(c())]),t.append(s,a);var y=t.pop(f);return p(),y}t.delegate(["click"]);t.create_custom_element(d,{variant:{},text:{},locale:{},disabled:{},onclick:{}},[],[],!0);exports.Button=d;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const e=require("./ChallengeTabs-CEYwcPlJ.cjs"),p=require("./Badge-DAKtct6K.cjs");var m=e.from_html('<img class="challenge-details__banner--image svelte-1rs963e"/>'),u=e.from_html('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <!></div>');const b={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;}
|
|
2
|
+
|
|
3
|
+
@media (max-width: 767px) {.challenge-details__banner--image:where(.svelte-1rs963e) {height:140px;}
|
|
4
|
+
}}`};function d(c,a){e.push(a,!0),e.append_styles(c,b);const l=e.prop(a,"challengeItem",7),n=e.prop(a,"locale",7),r=e.user_derived(()=>l().ChallengePresentation);var g={get challengeItem(){return l()},set challengeItem(t){l(t),e.flushSync()},get locale(){return n()},set locale(t){n(t),e.flushSync()}},s=u(),i=e.child(s),h=e.child(i);p.Badge(h,{get status(){return l().Status},get time(){return l().ExpirationTime},get isNew(){return l().IsNew},get locale(){return n()}}),e.reset(i);var _=e.sibling(i,2);{var v=t=>{var o=m();e.template_effect(()=>{e.set_attribute(o,"src",e.get(r).BannerUrl),e.set_attribute(o,"alt",e.get(r).PresentationName)}),e.append(t,o)};e.if_block(_,t=>{e.get(r)?.BannerUrl&&t(v)})}return e.reset(s),e.append(c,s),e.pop(g)}e.create_custom_element(d,{challengeItem:{},locale:{}},[],[],!0);exports.ChallengeBanner=d;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { c as w, d as y, h as I, p as d, n as B, x as k, a as h, b as C, j as p, k as g, e as v, r as _, y as o, A as N, t as P, s as m } from "./ChallengeTabs-B6_2WSU0.js";
|
|
2
|
+
import { B as S } from "./Badge-C2wt4e90.js";
|
|
3
|
+
var U = p('<img class="challenge-details__banner--image svelte-1rs963e"/>'), j = p('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <!></div>');
|
|
4
|
+
const z = {
|
|
5
|
+
hash: "svelte-1rs963e",
|
|
6
|
+
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;}
|
|
7
|
+
|
|
8
|
+
@media (max-width: 767px) {.challenge-details__banner--image:where(.svelte-1rs963e) {height:140px;}
|
|
9
|
+
}}`
|
|
10
|
+
};
|
|
11
|
+
function A(c, t) {
|
|
12
|
+
y(t, !0), I(c, z);
|
|
13
|
+
const a = d(t, "challengeItem", 7), s = d(t, "locale", 7), l = N(() => a().ChallengePresentation);
|
|
14
|
+
var u = {
|
|
15
|
+
get challengeItem() {
|
|
16
|
+
return a();
|
|
17
|
+
},
|
|
18
|
+
set challengeItem(e) {
|
|
19
|
+
a(e), v();
|
|
20
|
+
},
|
|
21
|
+
get locale() {
|
|
22
|
+
return s();
|
|
23
|
+
},
|
|
24
|
+
set locale(e) {
|
|
25
|
+
s(e), v();
|
|
26
|
+
}
|
|
27
|
+
}, r = j(), n = g(r), b = g(n);
|
|
28
|
+
S(b, {
|
|
29
|
+
get status() {
|
|
30
|
+
return a().Status;
|
|
31
|
+
},
|
|
32
|
+
get time() {
|
|
33
|
+
return a().ExpirationTime;
|
|
34
|
+
},
|
|
35
|
+
get isNew() {
|
|
36
|
+
return a().IsNew;
|
|
37
|
+
},
|
|
38
|
+
get locale() {
|
|
39
|
+
return s();
|
|
40
|
+
}
|
|
41
|
+
}), _(n);
|
|
42
|
+
var x = B(n, 2);
|
|
43
|
+
{
|
|
44
|
+
var f = (e) => {
|
|
45
|
+
var i = U();
|
|
46
|
+
P(() => {
|
|
47
|
+
m(i, "src", o(l).BannerUrl), m(i, "alt", o(l).PresentationName);
|
|
48
|
+
}), h(e, i);
|
|
49
|
+
};
|
|
50
|
+
k(x, (e) => {
|
|
51
|
+
o(l)?.BannerUrl && e(f);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return _(r), h(c, r), C(u);
|
|
55
|
+
}
|
|
56
|
+
w(A, { challengeItem: {}, locale: {} }, [], [], !0);
|
|
57
|
+
export {
|
|
58
|
+
A as C
|
|
59
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { g as _, c as h, d as m, h as k, p as x, t as y, s as $, i as B, a as w, b as C, j as z, k as l, l as j, e as A, m as I, $ as L, r as n, n as S } from "./ChallengeTabs-B6_2WSU0.js";
|
|
2
|
+
import { A as q } from "./ArrowLeftIcon-BRaj1LmB.js";
|
|
3
|
+
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>');
|
|
4
|
+
const E = {
|
|
5
|
+
hash: "svelte-ca3bk6",
|
|
6
|
+
code: ".player-challenges__breadcrumbs.svelte-ca3bk6 {display:flex;align-items:center;gap:8px;font-size:12px;min-width:0;}.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-3, 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;}"
|
|
7
|
+
};
|
|
8
|
+
function F(c, o) {
|
|
9
|
+
m(o, !0), k(c, E);
|
|
10
|
+
const i = () => j(L, "$_", p), [p, b] = I(), t = x(o, "onBack", 7);
|
|
11
|
+
var u = {
|
|
12
|
+
get onBack() {
|
|
13
|
+
return t();
|
|
14
|
+
},
|
|
15
|
+
set onBack(e) {
|
|
16
|
+
t(e), A();
|
|
17
|
+
}
|
|
18
|
+
}, a = D(), s = l(a);
|
|
19
|
+
s.__click = function(...e) {
|
|
20
|
+
t()?.apply(this, e);
|
|
21
|
+
};
|
|
22
|
+
var r = l(s), d = l(r);
|
|
23
|
+
q(d, { size: 16 }), n(r);
|
|
24
|
+
var g = S(r);
|
|
25
|
+
n(s), n(a), y(
|
|
26
|
+
(e, f) => {
|
|
27
|
+
$(a, "aria-label", e), B(g, ` ${f ?? ""}`);
|
|
28
|
+
},
|
|
29
|
+
[() => i()("allChallenges"), () => i()("allChallenges")]
|
|
30
|
+
), w(c, a);
|
|
31
|
+
var v = C(u);
|
|
32
|
+
return b(), v;
|
|
33
|
+
}
|
|
34
|
+
_(["click"]);
|
|
35
|
+
h(F, { onBack: {} }, [], [], !0);
|
|
36
|
+
export {
|
|
37
|
+
F as C
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./ChallengeTabs-CEYwcPlJ.cjs"),_=require("./ArrowLeftIcon-DDLFT41L.cjs");var f=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 k={hash:"svelte-ca3bk6",code:".player-challenges__breadcrumbs.svelte-ca3bk6 {display:flex;align-items:center;gap:8px;font-size:12px;min-width:0;}.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-3, 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,k);const o=()=>e.store_get(e.$format,"$_",b),[b,p]=e.setup_stores(),r=e.prop(c,"onBack",7);var u={get onBack(){return r()},set onBack(a){r(a),e.flushSync()}},t=f(),l=e.child(t);l.__click=function(...a){r()?.apply(this,a)};var n=e.child(l),d=e.child(n);_.ArrowLeftIcon(d,{size:16}),e.reset(n);var g=e.sibling(n);e.reset(l),e.reset(t),e.template_effect((a,v)=>{e.set_attribute(t,"aria-label",a),e.set_text(g,` ${v??""}`)},[()=>o()("allChallenges"),()=>o()("allChallenges")]),e.append(s,t);var h=e.pop(u);return p(),h}e.delegate(["click"]);e.create_custom_element(i,{onBack:{}},[],[],!0);exports.ChallengeBreadcrumbs=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChallengeTabs-CEYwcPlJ.cjs"),P=require("./ChallengeList-CFGrG4th.cjs");function S(m,t){e.push(t,!0);let r=e.prop(t,"challenge",7),s=e.prop(t,"endpoint",7,""),l=e.prop(t,"domainId",7,""),o=e.prop(t,"userSession",7,""),i=e.prop(t,"userId",7,""),u=e.prop(t,"locale",7,"en"),a=e.prop(t,"isPromo",7,!1),c=e.prop(t,"isPaused",7,!1),d=e.prop(t,"isShowIcon",7,!1),g=e.prop(t,"isMobile",7,!0),h=e.prop(t,"translationUrl",7,"");var I={get challenge(){return r()},set challenge(n){r(n),e.flushSync()},get endpoint(){return s()},set endpoint(n=""){s(n),e.flushSync()},get domainId(){return l()},set domainId(n=""){l(n),e.flushSync()},get userSession(){return o()},set userSession(n=""){o(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=!1){a(n),e.flushSync()},get isPaused(){return c()},set isPaused(n=!1){c(n),e.flushSync()},get isShowIcon(){return d()},set isShowIcon(n=!1){d(n),e.flushSync()},get isMobile(){return g()},set isMobile(n=!0){g(n),e.flushSync()},get translationUrl(){return h()},set translationUrl(n=""){h(n),e.flushSync()}},f=e.comment(),p=e.first_child(f);{var y=n=>{P.ChallengeCard(n,{get challenge(){return r()},get endpoint(){return s()},get domainId(){return l()},get userSession(){return o()},get userId(){return i()},get locale(){return u()},get isPromo(){return a()},get isPaused(){return c()},get isShowIcon(){return d()},get isMobile(){return g()},get translationUrl(){return h()}})};e.if_block(p,n=>{r()&&n(y)})}return e.append(m,f),e.pop(I)}customElements.define("challenge-card",e.create_custom_element(S,{challenge:{},endpoint:{},domainId:{},userSession:{},userId:{},locale:{},isPromo:{},isPaused:{},isShowIcon:{},isMobile:{},translationUrl:{}},[],[],!1));exports.default=S;
|
|
@@ -0,0 +1,139 @@
|
|
|
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 = {
|
|
7
|
+
get challenge() {
|
|
8
|
+
return s();
|
|
9
|
+
},
|
|
10
|
+
set challenge(e) {
|
|
11
|
+
s(e), r();
|
|
12
|
+
},
|
|
13
|
+
get endpoint() {
|
|
14
|
+
return a();
|
|
15
|
+
},
|
|
16
|
+
set endpoint(e = "") {
|
|
17
|
+
a(e), r();
|
|
18
|
+
},
|
|
19
|
+
get domainId() {
|
|
20
|
+
return o();
|
|
21
|
+
},
|
|
22
|
+
set domainId(e = "") {
|
|
23
|
+
o(e), r();
|
|
24
|
+
},
|
|
25
|
+
get userSession() {
|
|
26
|
+
return i();
|
|
27
|
+
},
|
|
28
|
+
set userSession(e = "") {
|
|
29
|
+
i(e), r();
|
|
30
|
+
},
|
|
31
|
+
get userId() {
|
|
32
|
+
return l();
|
|
33
|
+
},
|
|
34
|
+
set userId(e = "") {
|
|
35
|
+
l(e), r();
|
|
36
|
+
},
|
|
37
|
+
get locale() {
|
|
38
|
+
return u();
|
|
39
|
+
},
|
|
40
|
+
set locale(e = "en") {
|
|
41
|
+
u(e), r();
|
|
42
|
+
},
|
|
43
|
+
get isPromo() {
|
|
44
|
+
return d();
|
|
45
|
+
},
|
|
46
|
+
set isPromo(e = !1) {
|
|
47
|
+
d(e), r();
|
|
48
|
+
},
|
|
49
|
+
get isPaused() {
|
|
50
|
+
return g();
|
|
51
|
+
},
|
|
52
|
+
set isPaused(e = !1) {
|
|
53
|
+
g(e), r();
|
|
54
|
+
},
|
|
55
|
+
get isShowIcon() {
|
|
56
|
+
return c();
|
|
57
|
+
},
|
|
58
|
+
set isShowIcon(e = !1) {
|
|
59
|
+
c(e), r();
|
|
60
|
+
},
|
|
61
|
+
get isMobile() {
|
|
62
|
+
return m();
|
|
63
|
+
},
|
|
64
|
+
set isMobile(e = !0) {
|
|
65
|
+
m(e), r();
|
|
66
|
+
},
|
|
67
|
+
get translationUrl() {
|
|
68
|
+
return h();
|
|
69
|
+
},
|
|
70
|
+
set translationUrl(e = "") {
|
|
71
|
+
h(e), r();
|
|
72
|
+
}
|
|
73
|
+
}, I = M(), P = U(I);
|
|
74
|
+
{
|
|
75
|
+
var b = (e) => {
|
|
76
|
+
k(e, {
|
|
77
|
+
get challenge() {
|
|
78
|
+
return s();
|
|
79
|
+
},
|
|
80
|
+
get endpoint() {
|
|
81
|
+
return a();
|
|
82
|
+
},
|
|
83
|
+
get domainId() {
|
|
84
|
+
return o();
|
|
85
|
+
},
|
|
86
|
+
get userSession() {
|
|
87
|
+
return i();
|
|
88
|
+
},
|
|
89
|
+
get userId() {
|
|
90
|
+
return l();
|
|
91
|
+
},
|
|
92
|
+
get locale() {
|
|
93
|
+
return u();
|
|
94
|
+
},
|
|
95
|
+
get isPromo() {
|
|
96
|
+
return d();
|
|
97
|
+
},
|
|
98
|
+
get isPaused() {
|
|
99
|
+
return g();
|
|
100
|
+
},
|
|
101
|
+
get isShowIcon() {
|
|
102
|
+
return c();
|
|
103
|
+
},
|
|
104
|
+
get isMobile() {
|
|
105
|
+
return m();
|
|
106
|
+
},
|
|
107
|
+
get translationUrl() {
|
|
108
|
+
return h();
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
_(P, (e) => {
|
|
113
|
+
s() && e(b);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
return v(f, I), C(S);
|
|
117
|
+
}
|
|
118
|
+
customElements.define("challenge-card", x(
|
|
119
|
+
y,
|
|
120
|
+
{
|
|
121
|
+
challenge: {},
|
|
122
|
+
endpoint: {},
|
|
123
|
+
domainId: {},
|
|
124
|
+
userSession: {},
|
|
125
|
+
userId: {},
|
|
126
|
+
locale: {},
|
|
127
|
+
isPromo: {},
|
|
128
|
+
isPaused: {},
|
|
129
|
+
isShowIcon: {},
|
|
130
|
+
isMobile: {},
|
|
131
|
+
translationUrl: {}
|
|
132
|
+
},
|
|
133
|
+
[],
|
|
134
|
+
[],
|
|
135
|
+
!1
|
|
136
|
+
));
|
|
137
|
+
export {
|
|
138
|
+
y as default
|
|
139
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { d as m, p as t, b as c, e as r, c as g } from "./ChallengeTabs-B6_2WSU0.js";
|
|
2
|
+
import { C as f } from "./ChallengeTabContent-BWahIpTH.js";
|
|
3
|
+
function C(d, n) {
|
|
4
|
+
m(n, !0);
|
|
5
|
+
let a = t(n, "endpoint", 7, ""), l = t(n, "userSession", 7, ""), o = t(n, "locale", 7, "en"), s = t(n, "translationUrl", 7, ""), i = t(n, "domainId", 7, "");
|
|
6
|
+
var u = {
|
|
7
|
+
get endpoint() {
|
|
8
|
+
return a();
|
|
9
|
+
},
|
|
10
|
+
set endpoint(e = "") {
|
|
11
|
+
a(e), r();
|
|
12
|
+
},
|
|
13
|
+
get userSession() {
|
|
14
|
+
return l();
|
|
15
|
+
},
|
|
16
|
+
set userSession(e = "") {
|
|
17
|
+
l(e), r();
|
|
18
|
+
},
|
|
19
|
+
get locale() {
|
|
20
|
+
return o();
|
|
21
|
+
},
|
|
22
|
+
set locale(e = "en") {
|
|
23
|
+
o(e), r();
|
|
24
|
+
},
|
|
25
|
+
get translationUrl() {
|
|
26
|
+
return s();
|
|
27
|
+
},
|
|
28
|
+
set translationUrl(e = "") {
|
|
29
|
+
s(e), r();
|
|
30
|
+
},
|
|
31
|
+
get domainId() {
|
|
32
|
+
return i();
|
|
33
|
+
},
|
|
34
|
+
set domainId(e = "") {
|
|
35
|
+
i(e), r();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return f(d, {
|
|
39
|
+
get endpoint() {
|
|
40
|
+
return a();
|
|
41
|
+
},
|
|
42
|
+
get userSession() {
|
|
43
|
+
return l();
|
|
44
|
+
},
|
|
45
|
+
get locale() {
|
|
46
|
+
return o();
|
|
47
|
+
},
|
|
48
|
+
get translationUrl() {
|
|
49
|
+
return s();
|
|
50
|
+
},
|
|
51
|
+
get domainId() {
|
|
52
|
+
return i();
|
|
53
|
+
}
|
|
54
|
+
}), c(u);
|
|
55
|
+
}
|
|
56
|
+
customElements.define("challenge-claim-code", g(
|
|
57
|
+
C,
|
|
58
|
+
{
|
|
59
|
+
endpoint: {},
|
|
60
|
+
userSession: {},
|
|
61
|
+
locale: {},
|
|
62
|
+
translationUrl: {},
|
|
63
|
+
domainId: {}
|
|
64
|
+
},
|
|
65
|
+
[],
|
|
66
|
+
[],
|
|
67
|
+
!1
|
|
68
|
+
));
|
|
69
|
+
export {
|
|
70
|
+
C as default
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChallengeTabs-CEYwcPlJ.cjs"),d=require("./ChallengeTabContent-DROK-E8d.cjs");function i(u,t){e.push(t,!0);let r=e.prop(t,"endpoint",7,""),l=e.prop(t,"userSession",7,""),o=e.prop(t,"locale",7,"en"),s=e.prop(t,"translationUrl",7,""),a=e.prop(t,"domainId",7,"");var c={get endpoint(){return r()},set endpoint(n=""){r(n),e.flushSync()},get userSession(){return l()},set userSession(n=""){l(n),e.flushSync()},get locale(){return o()},set locale(n="en"){o(n),e.flushSync()},get translationUrl(){return s()},set translationUrl(n=""){s(n),e.flushSync()},get domainId(){return a()},set domainId(n=""){a(n),e.flushSync()}};return d.ChallengeClaimCode(u,{get endpoint(){return r()},get userSession(){return l()},get locale(){return o()},get translationUrl(){return s()},get domainId(){return a()}}),e.pop(c)}customElements.define("challenge-claim-code",e.create_custom_element(i,{endpoint:{},userSession:{},locale:{},translationUrl:{},domainId:{}},[],[],!1));exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ChallengeTabs-CEYwcPlJ.cjs"),h=require("./ChallengeList-CFGrG4th.cjs");function c(d,t){e.push(t,!0);let l=e.prop(t,"challengeId",7,""),r=e.prop(t,"endpoint",7,""),s=e.prop(t,"userSession",7,""),o=e.prop(t,"domainId",7,""),i=e.prop(t,"locale",7,"en"),a=e.prop(t,"isMobile",7,!0),u=e.prop(t,"translationUrl",7,"");var g={get challengeId(){return l()},set challengeId(n=""){l(n),e.flushSync()},get endpoint(){return r()},set endpoint(n=""){r(n),e.flushSync()},get userSession(){return s()},set userSession(n=""){s(n),e.flushSync()},get domainId(){return o()},set domainId(n=""){o(n),e.flushSync()},get locale(){return i()},set locale(n="en"){i(n),e.flushSync()},get isMobile(){return a()},set isMobile(n=!0){a(n),e.flushSync()},get translationUrl(){return u()},set translationUrl(n=""){u(n),e.flushSync()}};return h.ChallengeDetails(d,{get challengeId(){return l()},get endpoint(){return r()},get userSession(){return s()},get domainId(){return o()},get locale(){return i()},get isMobile(){return a()},get translationUrl(){return u()}}),e.pop(g)}customElements.define("challenge-details",e.create_custom_element(c,{challengeId:{},endpoint:{},userSession:{},domainId:{},locale:{},isMobile:{},translationUrl:{}},[],[],!1));exports.default=c;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { d as m, p as n, b as I, e as l, c as h } from "./ChallengeTabs-B6_2WSU0.js";
|
|
2
|
+
import { a as b } from "./ChallengeList-CVeq75Nw.js";
|
|
3
|
+
function f(g, t) {
|
|
4
|
+
m(t, !0);
|
|
5
|
+
let r = n(t, "challengeId", 7, ""), a = n(t, "endpoint", 7, ""), s = n(t, "userSession", 7, ""), i = n(t, "domainId", 7, ""), o = n(t, "locale", 7, "en"), u = n(t, "isMobile", 7, !0), d = n(t, "translationUrl", 7, "");
|
|
6
|
+
var c = {
|
|
7
|
+
get challengeId() {
|
|
8
|
+
return r();
|
|
9
|
+
},
|
|
10
|
+
set challengeId(e = "") {
|
|
11
|
+
r(e), l();
|
|
12
|
+
},
|
|
13
|
+
get endpoint() {
|
|
14
|
+
return a();
|
|
15
|
+
},
|
|
16
|
+
set endpoint(e = "") {
|
|
17
|
+
a(e), l();
|
|
18
|
+
},
|
|
19
|
+
get userSession() {
|
|
20
|
+
return s();
|
|
21
|
+
},
|
|
22
|
+
set userSession(e = "") {
|
|
23
|
+
s(e), l();
|
|
24
|
+
},
|
|
25
|
+
get domainId() {
|
|
26
|
+
return i();
|
|
27
|
+
},
|
|
28
|
+
set domainId(e = "") {
|
|
29
|
+
i(e), l();
|
|
30
|
+
},
|
|
31
|
+
get locale() {
|
|
32
|
+
return o();
|
|
33
|
+
},
|
|
34
|
+
set locale(e = "en") {
|
|
35
|
+
o(e), l();
|
|
36
|
+
},
|
|
37
|
+
get isMobile() {
|
|
38
|
+
return u();
|
|
39
|
+
},
|
|
40
|
+
set isMobile(e = !0) {
|
|
41
|
+
u(e), l();
|
|
42
|
+
},
|
|
43
|
+
get translationUrl() {
|
|
44
|
+
return d();
|
|
45
|
+
},
|
|
46
|
+
set translationUrl(e = "") {
|
|
47
|
+
d(e), l();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return b(g, {
|
|
51
|
+
get challengeId() {
|
|
52
|
+
return r();
|
|
53
|
+
},
|
|
54
|
+
get endpoint() {
|
|
55
|
+
return a();
|
|
56
|
+
},
|
|
57
|
+
get userSession() {
|
|
58
|
+
return s();
|
|
59
|
+
},
|
|
60
|
+
get domainId() {
|
|
61
|
+
return i();
|
|
62
|
+
},
|
|
63
|
+
get locale() {
|
|
64
|
+
return o();
|
|
65
|
+
},
|
|
66
|
+
get isMobile() {
|
|
67
|
+
return u();
|
|
68
|
+
},
|
|
69
|
+
get translationUrl() {
|
|
70
|
+
return d();
|
|
71
|
+
}
|
|
72
|
+
}), I(c);
|
|
73
|
+
}
|
|
74
|
+
customElements.define("challenge-details", h(
|
|
75
|
+
f,
|
|
76
|
+
{
|
|
77
|
+
challengeId: {},
|
|
78
|
+
endpoint: {},
|
|
79
|
+
userSession: {},
|
|
80
|
+
domainId: {},
|
|
81
|
+
locale: {},
|
|
82
|
+
isMobile: {},
|
|
83
|
+
translationUrl: {}
|
|
84
|
+
},
|
|
85
|
+
[],
|
|
86
|
+
[],
|
|
87
|
+
!1
|
|
88
|
+
));
|
|
89
|
+
export {
|
|
90
|
+
f as default
|
|
91
|
+
};
|