@everymatrix/player-challenges 0.1.13 → 0.1.14
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-9z9pTews.cjs +1 -0
- package/components/ArrowLeftIcon-DSn8hPkF.js +26 -0
- package/components/Badge-B-XJxDGU.cjs +7 -0
- package/components/{Badge-C2wt4e90.js → Badge-DvLEsRGI.js} +51 -46
- package/components/{Button--XqKsOFn.js → Button-D84vGE_N.js} +29 -24
- package/components/Button-LvbCkeeB.cjs +3 -0
- package/components/ChallengeBanner-DzjEQdUp.js +57 -0
- package/components/ChallengeBanner-_sqDm-xs.cjs +4 -0
- package/components/ChallengeBreadcrumbs-CZxhI0_L.cjs +1 -0
- package/components/ChallengeBreadcrumbs-DDTCsSWY.js +43 -0
- package/components/{ChallengeCard-B6CuOUjR.js → ChallengeCard-BhOpoROp.js} +58 -52
- package/components/ChallengeCard-DhT0EyKT.cjs +1 -0
- package/components/ChallengeClaimCode-D4y9Ilgv.cjs +1 -0
- package/components/{ChallengeClaimCode-CHjR7wvj.js → ChallengeClaimCode-DtN7_eaj.js} +22 -17
- package/components/ChallengeDetails-C6knDcqb.cjs +1 -0
- package/components/ChallengeDetails-De--UkDS.js +117 -0
- package/components/ChallengeEvents-5SdhGalP.cjs +1 -0
- package/components/ChallengeEvents-DSwYrQ1K.js +34 -0
- package/components/ChallengeGames-CWIYOuei.js +135 -0
- package/components/ChallengeGames-Rqb4EmEd.cjs +11 -0
- package/components/{ChallengeHistory-BGGX8pSa.js → ChallengeHistory-CoTCstRV.js} +32 -26
- package/components/ChallengeHistory-DO7ysttD.cjs +1 -0
- package/components/ChallengeLevels-D0k6h-sn.cjs +8 -0
- package/components/ChallengeLevels-DE-zA5YQ.js +306 -0
- package/components/{ChallengeList-CVeq75Nw.js → ChallengeList-BCtLU5A3.js} +519 -504
- package/components/ChallengeList-k2WHGOdC.cjs +20 -0
- package/components/ChallengeProgress-BJdwMjVx.cjs +1 -0
- package/components/ChallengeProgress-Bz00FfdW.js +96 -0
- package/components/ChallengeProgressItem-BijvIdWR.cjs +68 -0
- package/components/ChallengeProgressItem-DMuqRQ94.js +417 -0
- package/components/ChallengeRules-C-l7Nih5.cjs +1 -0
- package/components/ChallengeRules-CDw9YAZb.js +175 -0
- package/components/{ChallengeSummary-DiE9D1bF.js → ChallengeSummary-ClsiL0ew.js} +71 -68
- package/components/ChallengeSummary-OlE0g3eP.cjs +1 -0
- package/components/{ChallengeTabContent-BWahIpTH.js → ChallengeTabContent-DYhBMEuD.js} +198 -194
- package/components/ChallengeTabContent-Y2CcHcab.cjs +12 -0
- package/components/ChallengeTabPanel-DaJ86d-M.js +176 -0
- package/components/ChallengeTabPanel-Vi9JKI9q.cjs +1 -0
- package/components/ChallengeTabSkeleton-Dj2rC92S.cjs +15 -0
- package/components/{ChallengeTabSkeleton-Ch33vV8a.js → ChallengeTabSkeleton-nIWKRUtS.js} +46 -41
- package/components/{ChallengeTabs-B6_2WSU0.js → ChallengeTabs-BQfHWZ-v.js} +2239 -2176
- package/components/ChallengeTabs-BefOeRfL.cjs +14 -0
- package/components/{CheckIcon-Bh-pkq9I.js → CheckIcon-7SG6lvDK.js} +19 -14
- package/components/CheckIcon-D9ebX3ko.cjs +1 -0
- package/components/ChevronIcon-C4sG0Iq7.cjs +1 -0
- package/components/{ChevronIcon-D9cP6u1l.js → ChevronIcon-sZFDp9-r.js} +18 -13
- package/components/{ExistIcon--D18_Qhm.js → ExistIcon-BFp2RzHm.js} +22 -17
- package/components/ExistIcon-Cjt2I_f3.cjs +1 -0
- package/components/{GiftIcon-B0Ax8oOy.js → GiftIcon-BsTOo4xA.js} +18 -13
- package/components/GiftIcon-CowOBpN8.cjs +1 -0
- package/components/LinkIcon-DUiBycAa.cjs +1 -0
- package/components/{LinkIcon-Bui5HZdD.js → LinkIcon-DY8dMm_r.js} +19 -14
- package/components/LockIcon-B5-vtEo5.cjs +1 -0
- package/components/{LockIcon-C8tR8voO.js → LockIcon-DaWR3qRf.js} +20 -15
- package/components/Pagination-CVbrQbU7.cjs +12 -0
- package/components/{Pagination-_6zMfbPi.js → Pagination-DLaFwxon.js} +53 -48
- package/components/PlayerChallenges-CU3Xg79K.cjs +1 -0
- package/components/PlayerChallenges-UD6kj-0Y.js +396 -0
- package/components/{StarIcon-Dns8s0G7.js → StarIcon-BvEyzxCo.js} +20 -15
- package/components/StarIcon-mrGEuOQF.cjs +1 -0
- package/components/TargetIcon-D1VeNXPh.cjs +1 -0
- package/components/{TargetIcon-TJPVnCek.js → TargetIcon-H8pStACk.js} +19 -14
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +8 -3
- package/package.json +1 -1
- package/components/ArrowLeftIcon-BRaj1LmB.js +0 -21
- package/components/ArrowLeftIcon-DDLFT41L.cjs +0 -1
- package/components/Badge-DAKtct6K.cjs +0 -7
- package/components/Button-D-VBD0Q3.cjs +0 -3
- package/components/ChallengeBanner-CBpmtUBF.cjs +0 -4
- package/components/ChallengeBanner-Cmpj8DEM.js +0 -59
- package/components/ChallengeBreadcrumbs-2wbaNU9B.js +0 -38
- package/components/ChallengeBreadcrumbs-CI85tqGz.cjs +0 -1
- package/components/ChallengeCard-3mRYB8cV.cjs +0 -1
- package/components/ChallengeClaimCode-CbvBupc_.cjs +0 -1
- package/components/ChallengeDetails-D8ZWkzvs.cjs +0 -1
- package/components/ChallengeDetails-kST_L2H6.js +0 -91
- package/components/ChallengeEvents-CQ6STVwu.js +0 -57
- package/components/ChallengeEvents-Cs53agnU.cjs +0 -1
- package/components/ChallengeGames-B0HjqvW0.cjs +0 -11
- package/components/ChallengeGames-Cba0U_35.js +0 -136
- package/components/ChallengeHistory-VT3TVd3m.cjs +0 -1
- package/components/ChallengeLevels-BGZpw1ET.js +0 -297
- package/components/ChallengeLevels-iQPTsHa6.cjs +0 -4
- package/components/ChallengeList-CFGrG4th.cjs +0 -23
- package/components/ChallengeProgress-CFLdRZji.cjs +0 -1
- package/components/ChallengeProgress-DP3VVpVT.js +0 -81
- package/components/ChallengeProgressItem-D8RsRZvE.cjs +0 -68
- package/components/ChallengeProgressItem-DTB7cV5H.js +0 -412
- package/components/ChallengeRules-DcFk9naV.cjs +0 -1
- package/components/ChallengeRules-DhjdAEuR.js +0 -153
- package/components/ChallengeSummary-CLGCOtRQ.cjs +0 -3
- package/components/ChallengeTabContent-DROK-E8d.cjs +0 -13
- package/components/ChallengeTabPanel-Cpm0azOu.js +0 -164
- package/components/ChallengeTabPanel-DRfYUk0O.cjs +0 -1
- package/components/ChallengeTabSkeleton-BpCRuAwx.cjs +0 -15
- package/components/ChallengeTabs-CEYwcPlJ.cjs +0 -14
- package/components/CheckIcon-Co2f_WCA.cjs +0 -1
- package/components/ChevronIcon-DM0lqt14.cjs +0 -1
- package/components/ExistIcon-mCUINSW_.cjs +0 -1
- package/components/GiftIcon-Dqfja7-X.cjs +0 -1
- package/components/LinkIcon-BrRosQTW.cjs +0 -1
- package/components/LockIcon-DtM1_YzG.cjs +0 -1
- package/components/Pagination-Bx6K50Vt.cjs +0 -12
- package/components/PlayerChallenges-DVzU_6kl.js +0 -328
- package/components/PlayerChallenges-QYR3YEzs.cjs +0 -1
- package/components/StarIcon-DH0eCmcS.cjs +0 -1
- 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-BefOeRfL.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 s(n,r){e.push(r,!0);let t=e.prop(r,"size",7,24);var i={get size(){return t()},set size(o=24){t(o),e.flushSync()}},l=a();return e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t())}),e.append(n,l),e.pop(i)}e.create_custom_element(s,{size:{}},[],[],!0);exports.ArrowLeftIcon=s;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { c as o, p as n, t as f, a as p, b as u, f as d, d as h, e as g, s as a } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
7
|
+
var c = d('<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 m(l, s) {
|
|
9
|
+
h(s, !0);
|
|
10
|
+
let e = n(s, "size", 7, 24);
|
|
11
|
+
var r = {
|
|
12
|
+
get size() {
|
|
13
|
+
return e();
|
|
14
|
+
},
|
|
15
|
+
set size(i = 24) {
|
|
16
|
+
e(i), g();
|
|
17
|
+
}
|
|
18
|
+
}, t = c();
|
|
19
|
+
return f(() => {
|
|
20
|
+
a(t, "width", e()), a(t, "height", e());
|
|
21
|
+
}), p(l, t), u(r);
|
|
22
|
+
}
|
|
23
|
+
o(m, { size: {} }, [], [], !0);
|
|
24
|
+
export {
|
|
25
|
+
m as A
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.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(),o=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(o(),u(),e.get(x))),a=e.user_derived(()=>e.mapChallengeStatus(o(),b()));var N={get status(){return o()},set status(t){o(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(),i=e.child(l,!0);e.reset(l),e.template_effect(f=>e.set_text(i,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(),i=e.first_child(l),f=e.child(i,!0);e.reset(i);var j=e.sibling(i,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:{}},[],[],!0);exports.Badge=y;
|
|
@@ -1,32 +1,37 @@
|
|
|
1
|
-
import { c as Y, d as Z, h as ee, p as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { c as Y, d as Z, h as ee, p as v, u as te, o as ae, q as S, v as se, w as re, x as D, y, t as T, z as e, s as G, A as ne, i as f, a as x, b as le, j as m, l as oe, $ as ie, B as H, k as r, e as h, m as de, n as c, C as ce, D as pe, E as ue, r as n, F as ge, G as be } from "./ChallengeTabs-BQfHWZ-v.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
|
|
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
|
|
14
|
-
Z(
|
|
15
|
-
const w = () =>
|
|
16
|
-
te(u()),
|
|
17
|
-
|
|
18
|
+
function we(z, i) {
|
|
19
|
+
Z(i, !0), ee(z, me);
|
|
20
|
+
const w = () => oe(ie, "$_", M), [M, O] = de(), p = v(i, "status", 7), k = v(i, "time", 7), u = v(i, "locale", 7, ""), _ = v(i, "isNew", 7, !1);
|
|
21
|
+
te(() => ae(u())), S(() => {
|
|
22
|
+
ce(u() ?? "en");
|
|
18
23
|
});
|
|
19
|
-
let
|
|
20
|
-
|
|
24
|
+
let C = se(re(D().valueOf()));
|
|
25
|
+
S(() => {
|
|
21
26
|
const t = setInterval(
|
|
22
27
|
() => {
|
|
23
|
-
pe(
|
|
28
|
+
pe(C, D().valueOf(), !0);
|
|
24
29
|
},
|
|
25
30
|
1e3
|
|
26
31
|
);
|
|
27
32
|
return () => clearInterval(t);
|
|
28
33
|
});
|
|
29
|
-
const
|
|
34
|
+
const A = {
|
|
30
35
|
new: "new",
|
|
31
36
|
scheduled: "scheduled",
|
|
32
37
|
ongoing: "onGoing",
|
|
@@ -34,13 +39,13 @@ function me(C, d) {
|
|
|
34
39
|
completed: "completed",
|
|
35
40
|
expired: "expired",
|
|
36
41
|
rejected: "rejected"
|
|
37
|
-
}, l =
|
|
38
|
-
var
|
|
42
|
+
}, l = H(() => ge(p(), k(), e(C))), a = H(() => ue(p(), _()));
|
|
43
|
+
var F = {
|
|
39
44
|
get status() {
|
|
40
|
-
return
|
|
45
|
+
return p();
|
|
41
46
|
},
|
|
42
47
|
set status(t) {
|
|
43
|
-
|
|
48
|
+
p(t), h();
|
|
44
49
|
},
|
|
45
50
|
get time() {
|
|
46
51
|
return k();
|
|
@@ -60,51 +65,51 @@ function me(C, d) {
|
|
|
60
65
|
set isNew(t = !1) {
|
|
61
66
|
_(t), h();
|
|
62
67
|
}
|
|
63
|
-
}, g =
|
|
64
|
-
let
|
|
65
|
-
var
|
|
66
|
-
n(
|
|
67
|
-
var
|
|
68
|
+
}, g = he(), b = r(g), N = r(b);
|
|
69
|
+
let B;
|
|
70
|
+
var E = c(N, 2), J = r(E, !0);
|
|
71
|
+
n(E), n(b);
|
|
72
|
+
var K = c(b, 2);
|
|
68
73
|
{
|
|
69
74
|
var P = (t) => {
|
|
70
|
-
var j = xe(),
|
|
75
|
+
var j = xe(), L = r(j);
|
|
71
76
|
{
|
|
72
77
|
var R = (s) => {
|
|
73
|
-
var o = ve(),
|
|
74
|
-
n(o),
|
|
78
|
+
var o = ve(), d = r(o, !0);
|
|
79
|
+
n(o), T((q) => f(d, q), [() => w()(e(l).date)]), x(s, o);
|
|
75
80
|
};
|
|
76
|
-
y(
|
|
81
|
+
y(L, (s) => {
|
|
77
82
|
e(l).date && s(R);
|
|
78
83
|
});
|
|
79
84
|
}
|
|
80
|
-
var U =
|
|
85
|
+
var U = c(L, 2);
|
|
81
86
|
{
|
|
82
87
|
var V = (s) => {
|
|
83
|
-
var o =
|
|
84
|
-
n(
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
var
|
|
88
|
-
n(
|
|
88
|
+
var o = fe(), d = be(o), q = r(d, !0);
|
|
89
|
+
n(d);
|
|
90
|
+
var $ = c(d, 2);
|
|
91
|
+
$.textContent = "-";
|
|
92
|
+
var I = c($, 2), W = r(I, !0);
|
|
93
|
+
n(I), T(
|
|
89
94
|
(X) => {
|
|
90
|
-
|
|
95
|
+
f(q, X), f(W, e(l).countdownTime);
|
|
91
96
|
},
|
|
92
97
|
[() => w()(e(l).label)]
|
|
93
|
-
),
|
|
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),
|
|
104
|
+
n(j), x(t, j);
|
|
100
105
|
};
|
|
101
|
-
y(
|
|
106
|
+
y(K, (t) => {
|
|
102
107
|
e(l) && t(P);
|
|
103
108
|
});
|
|
104
109
|
}
|
|
105
|
-
n(g),
|
|
110
|
+
n(g), T(
|
|
106
111
|
(t) => {
|
|
107
|
-
|
|
112
|
+
G(g, "data-status", e(a)), G(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
|
-
}),
|
|
120
|
+
}), f(J, t);
|
|
116
121
|
},
|
|
117
|
-
[() => w()(
|
|
118
|
-
),
|
|
119
|
-
var Q =
|
|
120
|
-
return
|
|
122
|
+
[() => w()(A[e(a)])]
|
|
123
|
+
), x(z, g);
|
|
124
|
+
var Q = le(F);
|
|
125
|
+
return O(), Q;
|
|
121
126
|
}
|
|
122
|
-
Y(
|
|
127
|
+
Y(we, { status: {}, time: {}, locale: {}, isNew: {} }, [], [], !0);
|
|
123
128
|
export {
|
|
124
|
-
|
|
129
|
+
we as B
|
|
125
130
|
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { g as v, c as y, d as h, h as m, p as r, o as _,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { g as v, c as y, d as h, h as m, p as r, u as k, o as _, q as w, C as T, t as E, s as L, i as j, a as z, b as B, j as H, l as M, $, k as q, e as o, m as C, r as D } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
7
|
+
var I = H('<button class="challenge-button svelte-166ic7y"> </button>');
|
|
8
|
+
const S = {
|
|
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
|
|
10
|
-
h(e, !0), m(d,
|
|
11
|
-
const u = () =>
|
|
12
|
-
_(s()),
|
|
13
|
-
|
|
14
|
+
function A(d, e) {
|
|
15
|
+
h(e, !0), m(d, S);
|
|
16
|
+
const u = () => M($, "$_", b), [b, p] = C(), n = r(e, "variant", 7, "primary"), l = r(e, "text", 7), s = r(e, "locale", 7, ""), i = r(e, "disabled", 7, !1), c = r(e, "onclick", 7);
|
|
17
|
+
k(() => _(s())), w(() => {
|
|
18
|
+
T(s() || "en");
|
|
14
19
|
});
|
|
15
20
|
var f = {
|
|
16
21
|
get variant() {
|
|
@@ -20,10 +25,10 @@ function G(d, e) {
|
|
|
20
25
|
n(t), o();
|
|
21
26
|
},
|
|
22
27
|
get text() {
|
|
23
|
-
return
|
|
28
|
+
return l();
|
|
24
29
|
},
|
|
25
30
|
set text(t) {
|
|
26
|
-
|
|
31
|
+
l(t), o();
|
|
27
32
|
},
|
|
28
33
|
get locale() {
|
|
29
34
|
return s();
|
|
@@ -32,33 +37,33 @@ function G(d, e) {
|
|
|
32
37
|
s(t), o();
|
|
33
38
|
},
|
|
34
39
|
get disabled() {
|
|
35
|
-
return
|
|
40
|
+
return i();
|
|
36
41
|
},
|
|
37
42
|
set disabled(t = !1) {
|
|
38
|
-
|
|
43
|
+
i(t), o();
|
|
39
44
|
},
|
|
40
45
|
get onclick() {
|
|
41
|
-
return
|
|
46
|
+
return c();
|
|
42
47
|
},
|
|
43
48
|
set onclick(t) {
|
|
44
|
-
|
|
49
|
+
c(t), o();
|
|
45
50
|
}
|
|
46
|
-
}, a =
|
|
51
|
+
}, a = I();
|
|
47
52
|
a.__click = function(...t) {
|
|
48
|
-
|
|
53
|
+
c()?.apply(this, t);
|
|
49
54
|
};
|
|
50
|
-
var g =
|
|
51
|
-
D(a),
|
|
55
|
+
var g = q(a, !0);
|
|
56
|
+
D(a), E(
|
|
52
57
|
(t) => {
|
|
53
|
-
|
|
58
|
+
L(a, "data-variant", n()), a.disabled = i(), j(g, t);
|
|
54
59
|
},
|
|
55
|
-
[() => u()(
|
|
56
|
-
),
|
|
57
|
-
var x =
|
|
60
|
+
[() => u()(l())]
|
|
61
|
+
), z(d, a);
|
|
62
|
+
var x = B(f);
|
|
58
63
|
return p(), x;
|
|
59
64
|
}
|
|
60
65
|
v(["click"]);
|
|
61
|
-
y(
|
|
66
|
+
y(A, { variant: {}, text: {}, locale: {}, disabled: {}, onclick: {} }, [], [], !0);
|
|
62
67
|
export {
|
|
63
|
-
|
|
68
|
+
A as B
|
|
64
69
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const t=require("./ChallengeTabs-BefOeRfL.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,a){t.push(a,!0),t.append_styles(s,v);const u=()=>t.store_get(t.$format,"$_",b),[b,p]=t.setup_stores(),n=t.prop(a,"variant",7,"primary"),l=t.prop(a,"text",7),o=t.prop(a,"locale",7,""),c=t.prop(a,"disabled",7,!1),i=t.prop(a,"onclick",7);t.untrack(()=>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 l()},set text(e){l(e),t.flushSync()},get locale(){return o()},set locale(e=""){o(e),t.flushSync()},get disabled(){return c()},set disabled(e=!1){c(e),t.flushSync()},get onclick(){return i()},set onclick(e){i(e),t.flushSync()}},r=x();r.__click=function(...e){i()?.apply(this,e)};var g=t.child(r,!0);t.reset(r),t.template_effect(e=>{t.set_attribute(r,"data-variant",n()),r.disabled=c(),t.set_text(g,e)},[()=>u()(l())]),t.append(s,r);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,57 @@
|
|
|
1
|
+
import { c as x, d as C, h as B, p as g, n as y, t as I, a as T, b as H, j as M, k as v, e as m, r as p, A as E, z as l, s as _, B as c } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
import { B as L } from "./Badge-DvLEsRGI.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 = M('<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 = y(r, 2);
|
|
49
|
+
let h;
|
|
50
|
+
return p(n), I(() => {
|
|
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
|
+
}), T(d, n), H(f);
|
|
53
|
+
}
|
|
54
|
+
x(P, { challengeItem: {}, locale: {} }, [], [], !0);
|
|
55
|
+
export {
|
|
56
|
+
P as C
|
|
57
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs"),p=require("./Badge-B-XJxDGU.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(o,t){e.push(t,!0),e.append_styles(o,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 u={get challengeItem(){return l()},set challengeItem(c){l(c),e.flushSync()},get locale(){return n()},set locale(c){n(c),e.flushSync()}},r=b(),s=e.child(r),_=e.child(s);p.Badge(_,{get status(){return l().Status},get time(){return l().ExpirationTime},get isNew(){return l().IsNew},get locale(){return n()}}),e.reset(s);var i=e.sibling(s,2);let d;return e.reset(r),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(o,r),e.pop(u)}e.create_custom_element(g,{challengeItem:{},locale:{}},[],[],!0);exports.ChallengeBanner=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs"),v=require("./ArrowLeftIcon-9z9pTews.cjs");var _=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 m={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,m);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=_(),l=e.child(t);l.__click=function(...a){r()?.apply(this,a)};var 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.append(s,t);var h=e.pop(d);return p(),h}e.delegate(["click"]);e.create_custom_element(i,{onBack:{}},[],[],!0);exports.ChallengeBreadcrumbs=i;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { g as v, c as m, d as _, h as k, p as x, t as y, s as $, i as w, a as B, b as T, j as C, k as l, l as z, e as E, m as L, $ as j, r as n, n as A } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
import { A as H } from "./ArrowLeftIcon-DSn8hPkF.js";
|
|
3
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
|
+
}, globalThis.customElements = { define() {
|
|
5
|
+
}, get() {
|
|
6
|
+
}, whenDefined() {
|
|
7
|
+
} });
|
|
8
|
+
var M = C('<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 D = {
|
|
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 I(o, c) {
|
|
14
|
+
_(c, !0), k(o, D);
|
|
15
|
+
const i = () => z(j, "$_", p), [p, b] = L(), t = x(c, "onBack", 7);
|
|
16
|
+
var d = {
|
|
17
|
+
get onBack() {
|
|
18
|
+
return t();
|
|
19
|
+
},
|
|
20
|
+
set onBack(e) {
|
|
21
|
+
t(e), E();
|
|
22
|
+
}
|
|
23
|
+
}, a = M(), s = l(a);
|
|
24
|
+
s.__click = function(...e) {
|
|
25
|
+
t()?.apply(this, e);
|
|
26
|
+
};
|
|
27
|
+
var r = l(s), u = l(r);
|
|
28
|
+
H(u, { size: 16 }), n(r);
|
|
29
|
+
var g = A(r);
|
|
30
|
+
n(s), n(a), y(
|
|
31
|
+
(e, h) => {
|
|
32
|
+
$(a, "aria-label", e), w(g, ` ${h ?? ""}`);
|
|
33
|
+
},
|
|
34
|
+
[() => i()("allChallenges"), () => i()("allChallenges")]
|
|
35
|
+
), B(o, a);
|
|
36
|
+
var f = T(d);
|
|
37
|
+
return b(), f;
|
|
38
|
+
}
|
|
39
|
+
v(["click"]);
|
|
40
|
+
m(I, { onBack: {} }, [], [], !0);
|
|
41
|
+
export {
|
|
42
|
+
I as C
|
|
43
|
+
};
|
|
@@ -1,122 +1,128 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { b as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { d as E, p as n, O as y, G as x, y as B, a as H, b as L, e as s, c as k, z as o, B as a, aI as i } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
+
import { b as z } from "./ChallengeList-BCtLU5A3.js";
|
|
3
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
|
+
}, globalThis.customElements = { define() {
|
|
5
|
+
}, get() {
|
|
6
|
+
}, whenDefined() {
|
|
7
|
+
} });
|
|
8
|
+
function D(P, 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
|
|
14
|
+
return r();
|
|
9
15
|
},
|
|
10
16
|
set challenge(e) {
|
|
11
|
-
|
|
17
|
+
r(e), s();
|
|
12
18
|
},
|
|
13
19
|
get endpoint() {
|
|
14
|
-
return
|
|
20
|
+
return l();
|
|
15
21
|
},
|
|
16
22
|
set endpoint(e = "") {
|
|
17
|
-
|
|
23
|
+
l(e), s();
|
|
18
24
|
},
|
|
19
25
|
get domainId() {
|
|
20
|
-
return
|
|
26
|
+
return u();
|
|
21
27
|
},
|
|
22
28
|
set domainId(e = "") {
|
|
23
|
-
|
|
29
|
+
u(e), s();
|
|
24
30
|
},
|
|
25
31
|
get userSession() {
|
|
26
|
-
return
|
|
32
|
+
return d();
|
|
27
33
|
},
|
|
28
34
|
set userSession(e = "") {
|
|
29
|
-
|
|
35
|
+
d(e), s();
|
|
30
36
|
},
|
|
31
37
|
get userId() {
|
|
32
|
-
return
|
|
38
|
+
return c();
|
|
33
39
|
},
|
|
34
40
|
set userId(e = "") {
|
|
35
|
-
|
|
41
|
+
c(e), s();
|
|
36
42
|
},
|
|
37
43
|
get locale() {
|
|
38
|
-
return
|
|
44
|
+
return g();
|
|
39
45
|
},
|
|
40
46
|
set locale(e = "en") {
|
|
41
|
-
|
|
47
|
+
g(e), s();
|
|
42
48
|
},
|
|
43
49
|
get isPromo() {
|
|
44
|
-
return
|
|
50
|
+
return m();
|
|
45
51
|
},
|
|
46
|
-
set isPromo(e
|
|
47
|
-
|
|
52
|
+
set isPromo(e) {
|
|
53
|
+
m(e), s();
|
|
48
54
|
},
|
|
49
55
|
get isPaused() {
|
|
50
|
-
return
|
|
56
|
+
return h();
|
|
51
57
|
},
|
|
52
|
-
set isPaused(e
|
|
53
|
-
|
|
58
|
+
set isPaused(e) {
|
|
59
|
+
h(e), s();
|
|
54
60
|
},
|
|
55
61
|
get isShowIcon() {
|
|
56
|
-
return
|
|
62
|
+
return I();
|
|
57
63
|
},
|
|
58
|
-
set isShowIcon(e
|
|
59
|
-
|
|
64
|
+
set isShowIcon(e) {
|
|
65
|
+
I(e), s();
|
|
60
66
|
},
|
|
61
67
|
get isMobile() {
|
|
62
|
-
return
|
|
68
|
+
return f();
|
|
63
69
|
},
|
|
64
|
-
set isMobile(e
|
|
65
|
-
|
|
70
|
+
set isMobile(e) {
|
|
71
|
+
f(e), s();
|
|
66
72
|
},
|
|
67
73
|
get translationUrl() {
|
|
68
|
-
return
|
|
74
|
+
return b();
|
|
69
75
|
},
|
|
70
76
|
set translationUrl(e = "") {
|
|
71
|
-
|
|
77
|
+
b(e), s();
|
|
72
78
|
}
|
|
73
|
-
},
|
|
79
|
+
}, S = y(), T = x(S);
|
|
74
80
|
{
|
|
75
|
-
var
|
|
76
|
-
|
|
81
|
+
var C = (e) => {
|
|
82
|
+
z(e, {
|
|
77
83
|
get challenge() {
|
|
78
|
-
return
|
|
84
|
+
return r();
|
|
79
85
|
},
|
|
80
86
|
get endpoint() {
|
|
81
|
-
return
|
|
87
|
+
return l();
|
|
82
88
|
},
|
|
83
89
|
get domainId() {
|
|
84
|
-
return
|
|
90
|
+
return u();
|
|
85
91
|
},
|
|
86
92
|
get userSession() {
|
|
87
|
-
return
|
|
93
|
+
return d();
|
|
88
94
|
},
|
|
89
95
|
get userId() {
|
|
90
|
-
return
|
|
96
|
+
return c();
|
|
91
97
|
},
|
|
92
98
|
get locale() {
|
|
93
|
-
return
|
|
99
|
+
return g();
|
|
94
100
|
},
|
|
95
101
|
get isPromo() {
|
|
96
|
-
return
|
|
102
|
+
return o(w);
|
|
97
103
|
},
|
|
98
104
|
get isPaused() {
|
|
99
|
-
return
|
|
105
|
+
return o(M);
|
|
100
106
|
},
|
|
101
107
|
get isShowIcon() {
|
|
102
|
-
return
|
|
108
|
+
return o(U);
|
|
103
109
|
},
|
|
104
110
|
get isMobile() {
|
|
105
|
-
return
|
|
111
|
+
return o(_);
|
|
106
112
|
},
|
|
107
113
|
get translationUrl() {
|
|
108
|
-
return
|
|
114
|
+
return b();
|
|
109
115
|
}
|
|
110
116
|
});
|
|
111
117
|
};
|
|
112
|
-
|
|
113
|
-
|
|
118
|
+
B(T, (e) => {
|
|
119
|
+
r() && e(C);
|
|
114
120
|
});
|
|
115
121
|
}
|
|
116
|
-
return
|
|
122
|
+
return H(P, S), L(v);
|
|
117
123
|
}
|
|
118
|
-
customElements.define("challenge-card",
|
|
119
|
-
|
|
124
|
+
customElements.define("challenge-card", k(
|
|
125
|
+
D,
|
|
120
126
|
{
|
|
121
127
|
challenge: {},
|
|
122
128
|
endpoint: {},
|
|
@@ -135,5 +141,5 @@ customElements.define("challenge-card", x(
|
|
|
135
141
|
!1
|
|
136
142
|
));
|
|
137
143
|
export {
|
|
138
|
-
|
|
144
|
+
D as default
|
|
139
145
|
};
|
|
@@ -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-BefOeRfL.cjs"),M=require("./ChallengeList-k2WHGOdC.cjs");function f(S,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(S,m),e.pop(P)}customElements.define("challenge-card",e.create_custom_element(f,{challenge:{},endpoint:{},domainId:{},userSession:{},userId:{},locale:{},isPromo:{},isPaused:{},isShowIcon:{},isMobile:{},translationUrl:{}},[],[],!1));exports.default=f;
|
|
@@ -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-BefOeRfL.cjs"),c=require("./ChallengeTabContent-Y2CcHcab.cjs");function i(u,t){e.push(t,!0);let l=e.prop(t,"endpoint",7,""),o=e.prop(t,"userSession",7,""),r=e.prop(t,"locale",7,"en"),s=e.prop(t,"translationUrl",7,""),a=e.prop(t,"domainId",7,"");var d={get endpoint(){return l()},set endpoint(n=""){l(n),e.flushSync()},get userSession(){return o()},set userSession(n=""){o(n),e.flushSync()},get locale(){return r()},set locale(n="en"){r(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 c.ChallengeClaimCode(u,{get endpoint(){return l()},get userSession(){return o()},get locale(){return r()},get translationUrl(){return s()},get domainId(){return a()}}),e.pop(d)}customElements.define("challenge-claim-code",e.create_custom_element(i,{endpoint:{},userSession:{},locale:{},translationUrl:{},domainId:{}},[],[],!1));exports.default=i;
|