@everymatrix/player-challenges 0.1.18 → 0.1.19
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-f3IOpYNO.cjs → ArrowLeftIcon-BEURnjpJ.cjs} +1 -1
- package/components/{ArrowLeftIcon-DorWQbN-.js → ArrowLeftIcon-DN6e9luu.js} +1 -1
- package/components/Badge-BEjEww7C.cjs +9 -0
- package/components/Badge-DSBvI-B9.js +138 -0
- package/components/{Button-CUICdAqJ.cjs → Button-Bvh3WQSZ.cjs} +2 -2
- package/components/{Button-DgtpbC5z.js → Button-ewgCN0Ji.js} +17 -17
- package/components/ChallengeBanner-E82laAQ0.js +103 -0
- package/components/ChallengeBanner-WwVvI1Uu.cjs +30 -0
- package/components/{ChallengeBreadcrumbs-DHNKXK43.js → ChallengeBreadcrumbs-BtOwj4Jl.js} +7 -7
- package/components/ChallengeBreadcrumbs-SeC9192i.cjs +1 -0
- package/components/{ChallengeCard-SkQ_xfqo.js → ChallengeCard-BZ8CZvgE.js} +5 -5
- package/components/{ChallengeCard-BuDYjnna.cjs → ChallengeCard-Zj92mrKO.cjs} +1 -1
- package/components/{ChallengeClaimCode-zgBFr-2W.cjs → ChallengeClaimCode-BXn91GDr.cjs} +1 -1
- package/components/{ChallengeClaimCode-DiJqww5t.js → ChallengeClaimCode-CeM2Z6p6.js} +2 -2
- package/components/{ChallengeDetails-DMdkjCMC.js → ChallengeDetails-B5AHPIQM.js} +2 -2
- package/components/{ChallengeDetails-D1h6ITwb.cjs → ChallengeDetails-BVoZJVVL.cjs} +1 -1
- package/components/ChallengeDetailsSkeleton-CdG_rSGQ.js +138 -0
- package/components/ChallengeDetailsSkeleton-u24ioQh6.cjs +20 -0
- package/components/{ChallengeEvents-D5kenBIc.cjs → ChallengeEvents-7BMohfz-.cjs} +1 -1
- package/components/{ChallengeEvents-B6l3iUIf.js → ChallengeEvents-DkdwGm5z.js} +16 -16
- package/components/ChallengeGames-BvHQAgRm.js +135 -0
- package/components/ChallengeGames-hnPYCbOH.cjs +14 -0
- package/components/{ChallengeHistory-8LPDK1aA.js → ChallengeHistory-C0lhKrpA.js} +4 -4
- package/components/{ChallengeHistory-CHK2Q13H.cjs → ChallengeHistory-DoXcpVtR.cjs} +1 -1
- package/components/ChallengeLevels-BpGMpkdK.cjs +8 -0
- package/components/ChallengeLevels-CmLntQ0a.js +314 -0
- package/components/ChallengeList-DWrRtGZ6.cjs +47 -0
- package/components/{ChallengeList-D6_LjVsa.js → ChallengeList-Dztxku3t.js} +616 -560
- package/components/{ChallengeProgress-BFAihSd8.js → ChallengeProgress-BPSQNZFN.js} +9 -9
- package/components/{ChallengeProgress-F4DvqxcC.cjs → ChallengeProgress-vtUcMyKL.cjs} +1 -1
- package/components/{ChallengeProgressItem-BHk-1FKU.js → ChallengeProgressItem-3A5VPooB.js} +239 -223
- package/components/ChallengeProgressItem-bSzmG8l2.cjs +69 -0
- package/components/ChallengeRules-VFOXD1ge.cjs +1 -0
- package/components/ChallengeRules-YzymE0DQ.js +161 -0
- package/components/ChallengeSummary-D6OJ_aBt.cjs +1 -0
- package/components/{ChallengeSummary-sGIfhmFq.js → ChallengeSummary-rhsO5YE0.js} +79 -87
- package/components/ChallengeTabContent-2kOyabcA.js +779 -0
- package/components/ChallengeTabContent-BmBcztk_.cjs +16 -0
- package/components/{ChallengeTabPanel-CdcGT_LI.js → ChallengeTabPanel-CqwPtmvo.js} +47 -44
- package/components/ChallengeTabPanel-D_brgA-W.cjs +1 -0
- package/components/ChallengeTabs-Bkx7hDSs.cjs +14 -0
- package/components/ChallengeTabs-DrR1HXiu.js +8749 -0
- package/components/{CheckIcon-BqS1Tdfu.cjs → CheckIcon-DeZrzQxv.cjs} +1 -1
- package/components/{CheckIcon-B82NDFTL.js → CheckIcon-DlNpzYWO.js} +1 -1
- package/components/{ChevronIcon-C0yjiiug.js → ChevronIcon-BLforcQh.js} +1 -1
- package/components/{ChevronIcon-zvGKIAT7.cjs → ChevronIcon-Bx8g9KW1.cjs} +1 -1
- package/components/ChipIcon-BIaydmmL.js +26 -0
- package/components/ChipIcon-kKYQ4DVa.cjs +1 -0
- package/components/ChipShineIcon-BhJxc-7o.cjs +1 -0
- package/components/ChipShineIcon-x_PFBpiC.js +28 -0
- package/components/{ExistIcon-DifozqZH.cjs → ExistIcon--rtolulO.cjs} +1 -1
- package/components/{ExistIcon-Y3lLvkAJ.js → ExistIcon-eNMDxHqT.js} +1 -1
- package/components/{GiftIcon-CY_-XK0b.js → GiftIcon-B0dDFiN1.js} +14 -14
- package/components/{GiftIcon-Bd4y8-Fm.cjs → GiftIcon-BEczx5al.cjs} +1 -1
- package/components/{LinkIcon-CLHvOQ2s.js → LinkIcon-B1a0ukPT.js} +1 -1
- package/components/{LinkIcon-Bttg6ZAz.cjs → LinkIcon-D8SAcoU1.cjs} +1 -1
- package/components/{LockIcon-gAFRYl52.js → LockIcon-B96T_uuy.js} +1 -1
- package/components/{LockIcon-BgDxb03o.cjs → LockIcon-C0YL_dFy.cjs} +1 -1
- package/components/Pagination-BACM981T.js +113 -0
- package/components/Pagination-Xk727E7v.cjs +4 -0
- package/components/PlayerChallenges-T3zWVcYA.cjs +1 -0
- package/components/{PlayerChallenges-CaUu7idr.js → PlayerChallenges-r9ozrIGW.js} +147 -127
- package/components/{StarIcon-CbfuCfUA.js → StarIcon-BcWj-wRN.js} +1 -1
- package/components/{StarIcon-DE0r6703.cjs → StarIcon-D891Qux1.cjs} +1 -1
- package/components/{TargetIcon-BVhRYDcS.js → TargetIcon-Bv2zPej6.js} +14 -14
- package/components/{TargetIcon-DDclkkVP.cjs → TargetIcon-CCXuJUbZ.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/Badge-BDyFx08l.cjs +0 -7
- package/components/Badge-t5ERZxvC.js +0 -130
- package/components/ChallengeBanner-DSarDh3k.js +0 -59
- package/components/ChallengeBanner-uzrRUAwa.cjs +0 -4
- package/components/ChallengeBreadcrumbs-DwyCD4n7.cjs +0 -1
- package/components/ChallengeGames-CZu1MzPA.cjs +0 -11
- package/components/ChallengeGames-CjLLzYVy.js +0 -134
- package/components/ChallengeLevels-CCZGLr9f.cjs +0 -8
- package/components/ChallengeLevels-s9abBMuq.js +0 -292
- package/components/ChallengeList-CK16hckg.cjs +0 -20
- package/components/ChallengeProgressItem-DrMZEU3z.cjs +0 -68
- package/components/ChallengeRules-CIINsSVb.js +0 -173
- package/components/ChallengeRules-D5vuaTVl.cjs +0 -1
- package/components/ChallengeSummary-BhoNxD8d.cjs +0 -1
- package/components/ChallengeTabContent-CYsszYCj.js +0 -795
- package/components/ChallengeTabContent-CftvI5C6.cjs +0 -12
- package/components/ChallengeTabPanel-ChsZw13b.cjs +0 -1
- package/components/ChallengeTabSkeleton-CDYom40f.cjs +0 -15
- package/components/ChallengeTabSkeleton-CuRzH3G_.js +0 -92
- package/components/ChallengeTabs-Dcgam5G5.cjs +0 -14
- package/components/ChallengeTabs-TgwP2u9F.js +0 -8618
- package/components/Pagination-4P-rWszf.cjs +0 -12
- package/components/Pagination-CbvI_9SC.js +0 -123
- package/components/PlayerChallenges-CtnY-k5K.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { a as
|
|
3
|
-
import { C as
|
|
4
|
-
import { b as
|
|
1
|
+
import { c as Q, d as W, h as ge, p as s, u as N, q as ce, ap as O, av as q, v as _, E as G, w as U, x as V, aN as L, aS as H, F as S, A as n, aT as x, aU as he, aP as be, z as me, a as B, b as X, C as o, k as Y, e as r, aL as ve, n as fe, r as Te, I as F, o as J, aV as Ie, aW as ye, aX as Ce, aQ as R, aq as De, aR as ke } from "./ChallengeTabs-DrR1HXiu.js";
|
|
2
|
+
import { a as Se } from "./ChallengeList-Dztxku3t.js";
|
|
3
|
+
import { C as Le } from "./ChallengeBreadcrumbs-BtOwj4Jl.js";
|
|
4
|
+
import { b as Me } from "./ChallengeTabContent-2kOyabcA.js";
|
|
5
5
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
6
6
|
}, globalThis.customElements = { define() {
|
|
7
7
|
}, get() {
|
|
8
8
|
}, whenDefined() {
|
|
9
9
|
} });
|
|
10
|
-
const
|
|
10
|
+
const _e = {
|
|
11
11
|
en: {
|
|
12
12
|
noChallenges: "No challenges at the moment. Try exploring events or keep playing to unlock new ones.",
|
|
13
13
|
loadMore: "Load more",
|
|
@@ -44,140 +44,146 @@ const Me = {
|
|
|
44
44
|
challengesAnonymous: "Jelentkezzen be, hogy lássa a kihívásait és haladását."
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
var
|
|
48
|
-
const
|
|
47
|
+
var K = Y("<!> <!>", 1), ze = Y('<div class="player-challenges svelte-1edjcz1"><!></div>');
|
|
48
|
+
const we = {
|
|
49
49
|
hash: "svelte-1edjcz1",
|
|
50
50
|
code: ".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
const g = s(t, "endpoint", 7, ""), c = s(t, "userSession", 7, ""), h = s(t, "userId", 7, ""), b = s(t, "domainId", 7, ""),
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
function Z(w, t) {
|
|
53
|
+
W(t, !0), ge(w, we);
|
|
54
|
+
const g = s(t, "endpoint", 7, ""), c = s(t, "userSession", 7, ""), h = s(t, "userId", 7, ""), b = s(t, "domainId", 7, ""), i = s(t, "locale", 7, "en"), m = s(t, "translationUrl", 7), d = s(t, "isMobile", 7, !0), T = s(t, "activeTab", 23, () => L.Promo), y = s(t, "activeChallengeId", 7), C = s(t, "activeDetailsTab", 7), D = s(t, "historyLimit", 7), k = s(t, "showTabDot", 7, !1);
|
|
55
|
+
N(() => ce(i(), _e)), O(() => {
|
|
56
|
+
m() && q(m(), "challenge-card");
|
|
57
57
|
}), _(() => {
|
|
58
|
-
|
|
58
|
+
G(i() || "en");
|
|
59
59
|
});
|
|
60
|
-
let
|
|
60
|
+
let v = U(V(N(() => H(T())) ?? L.Promo));
|
|
61
61
|
_(() => {
|
|
62
|
-
const e =
|
|
63
|
-
e !== void 0 &&
|
|
62
|
+
const e = H(T());
|
|
63
|
+
e !== void 0 && S(v, e, !0);
|
|
64
64
|
});
|
|
65
|
-
const M =
|
|
66
|
-
let f =
|
|
65
|
+
const M = o(() => d() ? void 0 : y() || void 0);
|
|
66
|
+
let f = U(V(N(() => n(M))));
|
|
67
67
|
_(() => {
|
|
68
|
-
n(M) !== void 0 && (
|
|
68
|
+
n(M) !== void 0 && (S(f, n(M), !0), x(!0, n(M)));
|
|
69
69
|
});
|
|
70
|
-
let
|
|
71
|
-
const
|
|
70
|
+
let z = U(void 0);
|
|
71
|
+
const A = o(() => !c() && !h()), u = he(() => ({
|
|
72
72
|
endpoint: g(),
|
|
73
73
|
domainId: b(),
|
|
74
74
|
userSession: c(),
|
|
75
75
|
userId: h(),
|
|
76
|
-
locale:
|
|
77
|
-
pageSize: ve(
|
|
78
|
-
})),
|
|
76
|
+
locale: i(),
|
|
77
|
+
pageSize: ve(d())
|
|
78
|
+
})), p = o(() => u.findChallenge(n(f))), a = o(() => {
|
|
79
79
|
const e = [];
|
|
80
|
-
return
|
|
81
|
-
}),
|
|
82
|
-
e !== n(
|
|
83
|
-
},
|
|
84
|
-
|
|
80
|
+
return u.activeChallenges.some((l) => l.IsNew) && e.push(L.Active), u.awaitingChallenges.some((l) => l.IsNew) && e.push(L.Pending), e;
|
|
81
|
+
}), ee = (e) => {
|
|
82
|
+
e !== n(v) && (S(v, e, !0), ye(Ce[e]));
|
|
83
|
+
}, te = (e, l) => {
|
|
84
|
+
S(f, e, !0), S(z, l, !0), d() || x(!0, e);
|
|
85
85
|
}, ne = () => {
|
|
86
|
-
|
|
86
|
+
d() || x(!1, n(f)), S(f, void 0), S(z, void 0);
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
O(() => {
|
|
89
|
+
m() && q(m(), "player-challenges");
|
|
90
90
|
}), _(() => {
|
|
91
|
-
|
|
91
|
+
G(i() || "en");
|
|
92
92
|
}), _(() => {
|
|
93
|
-
const e = n(
|
|
93
|
+
const e = n(v), l = {
|
|
94
94
|
endpoint: g(),
|
|
95
95
|
domainId: b(),
|
|
96
96
|
userSession: c(),
|
|
97
97
|
userId: h(),
|
|
98
|
-
locale:
|
|
99
|
-
}, I =
|
|
100
|
-
!
|
|
98
|
+
locale: i()
|
|
99
|
+
}, I = be[e];
|
|
100
|
+
!l.endpoint || !I || u.load(I, n(A));
|
|
101
101
|
}), _(() => {
|
|
102
102
|
if (g())
|
|
103
|
-
return
|
|
103
|
+
return u.connect(), () => u.disconnect();
|
|
104
104
|
});
|
|
105
|
-
var
|
|
105
|
+
var ae = {
|
|
106
106
|
get endpoint() {
|
|
107
107
|
return g();
|
|
108
108
|
},
|
|
109
109
|
set endpoint(e = "") {
|
|
110
|
-
g(e),
|
|
110
|
+
g(e), r();
|
|
111
111
|
},
|
|
112
112
|
get userSession() {
|
|
113
113
|
return c();
|
|
114
114
|
},
|
|
115
115
|
set userSession(e = "") {
|
|
116
|
-
c(e),
|
|
116
|
+
c(e), r();
|
|
117
117
|
},
|
|
118
118
|
get userId() {
|
|
119
119
|
return h();
|
|
120
120
|
},
|
|
121
121
|
set userId(e = "") {
|
|
122
|
-
h(e),
|
|
122
|
+
h(e), r();
|
|
123
123
|
},
|
|
124
124
|
get domainId() {
|
|
125
125
|
return b();
|
|
126
126
|
},
|
|
127
127
|
set domainId(e = "") {
|
|
128
|
-
b(e),
|
|
128
|
+
b(e), r();
|
|
129
129
|
},
|
|
130
130
|
get locale() {
|
|
131
|
-
return
|
|
131
|
+
return i();
|
|
132
132
|
},
|
|
133
133
|
set locale(e = "en") {
|
|
134
|
-
|
|
134
|
+
i(e), r();
|
|
135
135
|
},
|
|
136
136
|
get translationUrl() {
|
|
137
|
-
return
|
|
137
|
+
return m();
|
|
138
138
|
},
|
|
139
139
|
set translationUrl(e) {
|
|
140
|
-
|
|
140
|
+
m(e), r();
|
|
141
141
|
},
|
|
142
142
|
get isMobile() {
|
|
143
|
-
return
|
|
143
|
+
return d();
|
|
144
144
|
},
|
|
145
|
-
set isMobile(e) {
|
|
146
|
-
|
|
145
|
+
set isMobile(e = !0) {
|
|
146
|
+
d(e), r();
|
|
147
147
|
},
|
|
148
148
|
get activeTab() {
|
|
149
149
|
return T();
|
|
150
150
|
},
|
|
151
|
-
set activeTab(e =
|
|
152
|
-
T(e),
|
|
151
|
+
set activeTab(e = L.Promo) {
|
|
152
|
+
T(e), r();
|
|
153
153
|
},
|
|
154
154
|
get activeChallengeId() {
|
|
155
|
-
return
|
|
155
|
+
return y();
|
|
156
156
|
},
|
|
157
157
|
set activeChallengeId(e) {
|
|
158
|
-
|
|
158
|
+
y(e), r();
|
|
159
159
|
},
|
|
160
160
|
get activeDetailsTab() {
|
|
161
|
-
return
|
|
161
|
+
return C();
|
|
162
162
|
},
|
|
163
163
|
set activeDetailsTab(e) {
|
|
164
|
-
|
|
164
|
+
C(e), r();
|
|
165
165
|
},
|
|
166
|
-
get
|
|
166
|
+
get historyLimit() {
|
|
167
167
|
return D();
|
|
168
168
|
},
|
|
169
|
+
set historyLimit(e) {
|
|
170
|
+
D(e), r();
|
|
171
|
+
},
|
|
172
|
+
get showTabDot() {
|
|
173
|
+
return k();
|
|
174
|
+
},
|
|
169
175
|
set showTabDot(e = !1) {
|
|
170
|
-
|
|
176
|
+
k(e), r();
|
|
171
177
|
}
|
|
172
|
-
},
|
|
178
|
+
}, P = ze(), se = fe(P);
|
|
173
179
|
{
|
|
174
|
-
var
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
var
|
|
180
|
+
var re = (e) => {
|
|
181
|
+
var l = K(), I = F(l);
|
|
182
|
+
Le(I, { onBack: ne });
|
|
183
|
+
var j = J(I, 2);
|
|
178
184
|
{
|
|
179
|
-
let
|
|
180
|
-
|
|
185
|
+
let le = o(() => n(v) === L.Promo), oe = o(() => !!n(p) && u.pausedChallengeIds.includes(n(p).ChallengeId)), de = o(() => n(z) ?? C());
|
|
186
|
+
Se(j, {
|
|
181
187
|
get challengeId() {
|
|
182
188
|
return n(f);
|
|
183
189
|
},
|
|
@@ -194,41 +200,41 @@ function X(z, t) {
|
|
|
194
200
|
return b();
|
|
195
201
|
},
|
|
196
202
|
get locale() {
|
|
197
|
-
return
|
|
203
|
+
return i();
|
|
198
204
|
},
|
|
199
205
|
get isPromo() {
|
|
200
|
-
return n(
|
|
206
|
+
return n(le);
|
|
201
207
|
},
|
|
202
208
|
get isPaused() {
|
|
203
209
|
return n(oe);
|
|
204
210
|
},
|
|
205
|
-
onStatusChange: (
|
|
206
|
-
onViewed: (
|
|
211
|
+
onStatusChange: (E, ue) => u.patchProgress(E, { Status: ue }),
|
|
212
|
+
onViewed: (E) => u.patchProgress(E, { IsNew: !1 }),
|
|
207
213
|
get activeTab() {
|
|
208
|
-
return n(
|
|
214
|
+
return n(de);
|
|
209
215
|
},
|
|
210
216
|
get isMobile() {
|
|
211
|
-
return
|
|
217
|
+
return d();
|
|
212
218
|
}
|
|
213
219
|
});
|
|
214
220
|
}
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
var
|
|
218
|
-
|
|
221
|
+
B(e, l);
|
|
222
|
+
}, ie = (e) => {
|
|
223
|
+
var l = K(), I = F(l);
|
|
224
|
+
Ie(I, {
|
|
219
225
|
get activeTab() {
|
|
220
|
-
return n(
|
|
226
|
+
return n(v);
|
|
221
227
|
},
|
|
222
|
-
onTabChange:
|
|
228
|
+
onTabChange: ee,
|
|
223
229
|
get notifyTabs() {
|
|
224
|
-
return n(
|
|
230
|
+
return n(a);
|
|
225
231
|
},
|
|
226
232
|
get showTabDot() {
|
|
227
|
-
return
|
|
233
|
+
return k();
|
|
228
234
|
}
|
|
229
235
|
});
|
|
230
|
-
var
|
|
231
|
-
|
|
236
|
+
var j = J(I, 2);
|
|
237
|
+
Me(j, {
|
|
232
238
|
get endpoint() {
|
|
233
239
|
return g();
|
|
234
240
|
},
|
|
@@ -242,28 +248,31 @@ function X(z, t) {
|
|
|
242
248
|
return b();
|
|
243
249
|
},
|
|
244
250
|
get locale() {
|
|
245
|
-
return
|
|
251
|
+
return i();
|
|
246
252
|
},
|
|
247
253
|
get challenges() {
|
|
248
|
-
return
|
|
254
|
+
return u;
|
|
249
255
|
},
|
|
250
|
-
onViewDetails:
|
|
256
|
+
onViewDetails: te,
|
|
251
257
|
get activeTab() {
|
|
252
|
-
return n(
|
|
258
|
+
return n(v);
|
|
253
259
|
},
|
|
254
260
|
get isMobile() {
|
|
255
|
-
return
|
|
261
|
+
return d();
|
|
262
|
+
},
|
|
263
|
+
get historyLimit() {
|
|
264
|
+
return D();
|
|
256
265
|
}
|
|
257
|
-
}),
|
|
266
|
+
}), B(e, l);
|
|
258
267
|
};
|
|
259
|
-
|
|
260
|
-
n(f) ? e(
|
|
268
|
+
me(se, (e) => {
|
|
269
|
+
n(f) ? e(re) : e(ie, -1);
|
|
261
270
|
});
|
|
262
271
|
}
|
|
263
|
-
return
|
|
272
|
+
return Te(P), B(w, P), X(ae);
|
|
264
273
|
}
|
|
265
|
-
|
|
266
|
-
|
|
274
|
+
Q(
|
|
275
|
+
Z,
|
|
267
276
|
{
|
|
268
277
|
endpoint: {},
|
|
269
278
|
userSession: {},
|
|
@@ -275,85 +284,92 @@ V(
|
|
|
275
284
|
activeTab: {},
|
|
276
285
|
activeChallengeId: {},
|
|
277
286
|
activeDetailsTab: {},
|
|
287
|
+
historyLimit: {},
|
|
278
288
|
showTabDot: {}
|
|
279
289
|
},
|
|
280
290
|
[],
|
|
281
291
|
[],
|
|
282
292
|
{ mode: "open" }
|
|
283
293
|
);
|
|
284
|
-
function
|
|
285
|
-
|
|
286
|
-
let g = s(t, "endpoint", 7, ""), c = s(t, "userSession", 7, ""), h = s(t, "userId", 7, ""), b = s(t, "domainId", 7, ""),
|
|
287
|
-
const
|
|
288
|
-
var
|
|
294
|
+
function $(w, t) {
|
|
295
|
+
W(t, !0);
|
|
296
|
+
let g = s(t, "endpoint", 7, ""), c = s(t, "userSession", 7, ""), h = s(t, "userId", 7, ""), b = s(t, "domainId", 7, ""), i = s(t, "locale", 7, "en"), m = s(t, "translationUrl", 7, ""), d = s(t, "isMobile", 7), T = s(t, "activeTab", 7), y = s(t, "activeChallengeId", 7), C = s(t, "activeDetailsTab", 7), D = s(t, "historyLimit", 7), k = s(t, "showTabDot", 7);
|
|
297
|
+
const v = o(() => R(d(), !0)), M = o(() => H(T()) ?? L.Promo), f = o(() => y() || void 0), z = o(() => De(C())), A = o(() => R(k())), u = o(() => ke(D(), 0) || void 0);
|
|
298
|
+
var p = {
|
|
289
299
|
get endpoint() {
|
|
290
300
|
return g();
|
|
291
301
|
},
|
|
292
302
|
set endpoint(a = "") {
|
|
293
|
-
g(a),
|
|
303
|
+
g(a), r();
|
|
294
304
|
},
|
|
295
305
|
get userSession() {
|
|
296
306
|
return c();
|
|
297
307
|
},
|
|
298
308
|
set userSession(a = "") {
|
|
299
|
-
c(a),
|
|
309
|
+
c(a), r();
|
|
300
310
|
},
|
|
301
311
|
get userId() {
|
|
302
312
|
return h();
|
|
303
313
|
},
|
|
304
314
|
set userId(a = "") {
|
|
305
|
-
h(a),
|
|
315
|
+
h(a), r();
|
|
306
316
|
},
|
|
307
317
|
get domainId() {
|
|
308
318
|
return b();
|
|
309
319
|
},
|
|
310
320
|
set domainId(a = "") {
|
|
311
|
-
b(a),
|
|
321
|
+
b(a), r();
|
|
312
322
|
},
|
|
313
323
|
get locale() {
|
|
314
|
-
return
|
|
324
|
+
return i();
|
|
315
325
|
},
|
|
316
326
|
set locale(a = "en") {
|
|
317
|
-
|
|
327
|
+
i(a), r();
|
|
318
328
|
},
|
|
319
329
|
get translationUrl() {
|
|
320
|
-
return
|
|
330
|
+
return m();
|
|
321
331
|
},
|
|
322
332
|
set translationUrl(a = "") {
|
|
323
|
-
|
|
333
|
+
m(a), r();
|
|
324
334
|
},
|
|
325
335
|
get isMobile() {
|
|
326
|
-
return
|
|
336
|
+
return d();
|
|
327
337
|
},
|
|
328
338
|
set isMobile(a) {
|
|
329
|
-
|
|
339
|
+
d(a), r();
|
|
330
340
|
},
|
|
331
341
|
get activeTab() {
|
|
332
342
|
return T();
|
|
333
343
|
},
|
|
334
344
|
set activeTab(a) {
|
|
335
|
-
T(a),
|
|
345
|
+
T(a), r();
|
|
336
346
|
},
|
|
337
347
|
get activeChallengeId() {
|
|
338
|
-
return
|
|
348
|
+
return y();
|
|
339
349
|
},
|
|
340
350
|
set activeChallengeId(a) {
|
|
341
|
-
|
|
351
|
+
y(a), r();
|
|
342
352
|
},
|
|
343
353
|
get activeDetailsTab() {
|
|
344
|
-
return
|
|
354
|
+
return C();
|
|
345
355
|
},
|
|
346
356
|
set activeDetailsTab(a) {
|
|
347
|
-
|
|
357
|
+
C(a), r();
|
|
348
358
|
},
|
|
349
|
-
get
|
|
359
|
+
get historyLimit() {
|
|
350
360
|
return D();
|
|
351
361
|
},
|
|
362
|
+
set historyLimit(a) {
|
|
363
|
+
D(a), r();
|
|
364
|
+
},
|
|
365
|
+
get showTabDot() {
|
|
366
|
+
return k();
|
|
367
|
+
},
|
|
352
368
|
set showTabDot(a) {
|
|
353
|
-
|
|
369
|
+
k(a), r();
|
|
354
370
|
}
|
|
355
371
|
};
|
|
356
|
-
return
|
|
372
|
+
return Z(w, {
|
|
357
373
|
get endpoint() {
|
|
358
374
|
return g();
|
|
359
375
|
},
|
|
@@ -367,13 +383,13 @@ function Y(z, t) {
|
|
|
367
383
|
return b();
|
|
368
384
|
},
|
|
369
385
|
get locale() {
|
|
370
|
-
return
|
|
386
|
+
return i();
|
|
371
387
|
},
|
|
372
388
|
get translationUrl() {
|
|
373
|
-
return
|
|
389
|
+
return m();
|
|
374
390
|
},
|
|
375
391
|
get isMobile() {
|
|
376
|
-
return n(
|
|
392
|
+
return n(v);
|
|
377
393
|
},
|
|
378
394
|
get activeTab() {
|
|
379
395
|
return n(M);
|
|
@@ -382,15 +398,18 @@ function Y(z, t) {
|
|
|
382
398
|
return n(f);
|
|
383
399
|
},
|
|
384
400
|
get activeDetailsTab() {
|
|
385
|
-
return n(
|
|
401
|
+
return n(z);
|
|
402
|
+
},
|
|
403
|
+
get historyLimit() {
|
|
404
|
+
return n(u);
|
|
386
405
|
},
|
|
387
406
|
get showTabDot() {
|
|
388
|
-
return n(
|
|
407
|
+
return n(A);
|
|
389
408
|
}
|
|
390
|
-
}),
|
|
409
|
+
}), X(p);
|
|
391
410
|
}
|
|
392
|
-
customElements.define("player-challenges",
|
|
393
|
-
|
|
411
|
+
customElements.define("player-challenges", Q(
|
|
412
|
+
$,
|
|
394
413
|
{
|
|
395
414
|
endpoint: {},
|
|
396
415
|
userSession: {},
|
|
@@ -402,16 +421,17 @@ customElements.define("player-challenges", V(
|
|
|
402
421
|
activeTab: {},
|
|
403
422
|
activeChallengeId: {},
|
|
404
423
|
activeDetailsTab: {},
|
|
424
|
+
historyLimit: {},
|
|
405
425
|
showTabDot: {}
|
|
406
426
|
},
|
|
407
427
|
[],
|
|
408
428
|
[]
|
|
409
429
|
));
|
|
410
|
-
const
|
|
430
|
+
const Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
411
431
|
__proto__: null,
|
|
412
|
-
default:
|
|
432
|
+
default: $
|
|
413
433
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
414
434
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
435
|
+
Z as P,
|
|
436
|
+
Ee as a
|
|
417
437
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-
|
|
1
|
+
import { c as g, d, p as i, t as L, a as f, b as p, f as u, e as r, s as n } from "./ChallengeTabs-DrR1HXiu.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-Bkx7hDSs.cjs");var a=e.from_svg('<svg viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.46289 0.26802C5.08176 -0.0893401 5.845 -0.0893401 6.46387 0.26802L9.92676 2.26802C10.5455 2.6253 10.9268 3.28596 10.9268 4.00044V8.00044C10.9268 8.71492 10.5455 9.37558 9.92676 9.73286L6.46387 11.7329C5.845 12.0902 5.08176 12.0902 4.46289 11.7329L1 9.73286C0.381267 9.37558 0 8.71492 0 8.00044V4.00044C0 3.28596 0.381267 2.6253 1 2.26802L4.46289 0.26802ZM4.36914 4.49263L1.86328 4.82954L3.69238 6.57466L3.23828 9.06197L5.46387 7.86177L7.68848 9.06197L7.23535 6.57466L9.06348 4.82954L6.55859 4.49263L5.46387 2.21333L4.36914 4.49263Z" fill="currentColor"></path></svg>');function s(o,t){e.push(t,!0);let h=e.prop(t,"width",7,11),i=e.prop(t,"height",7,12);var l={get width(){return h()},set width(r=11){h(r),e.flushSync()},get height(){return i()},set height(r=12){i(r),e.flushSync()}},n=a();return e.template_effect(()=>{e.set_attribute(n,"width",h()),e.set_attribute(n,"height",i())}),e.append(o,n),e.pop(l)}e.create_custom_element(s,{width:{},height:{}},[],[],{mode:"open"});exports.StarIcon=s;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as h, d, p as f, o as g, n as
|
|
1
|
+
import { c as h, d, p as f, o as g, n as r, t as u, a as v, b as m, f as L, e as _, D as w, r as C, s } from "./ChallengeTabs-DrR1HXiu.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
5
5
|
}, whenDefined() {
|
|
6
6
|
} });
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
d(
|
|
10
|
-
let e = f(
|
|
11
|
-
var
|
|
7
|
+
var T = L('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');
|
|
8
|
+
function b(o, l) {
|
|
9
|
+
d(l, !0);
|
|
10
|
+
let e = f(l, "size", 7, 12);
|
|
11
|
+
var n = {
|
|
12
12
|
get size() {
|
|
13
13
|
return e();
|
|
14
14
|
},
|
|
15
|
-
set size(
|
|
16
|
-
e(
|
|
15
|
+
set size(p = 12) {
|
|
16
|
+
e(p), _();
|
|
17
17
|
}
|
|
18
|
-
}, t =
|
|
19
|
-
return
|
|
20
|
-
s(t, "width", e()), s(t, "height", e()), s(
|
|
21
|
-
}), v(
|
|
18
|
+
}, t = T(), a = g(r(t)), c = r(a), i = w(c);
|
|
19
|
+
return C(a), C(t), u(() => {
|
|
20
|
+
s(t, "width", e()), s(t, "height", e()), s(i, "width", e()), s(i, "height", e());
|
|
21
|
+
}), v(o, t), m(n);
|
|
22
22
|
}
|
|
23
|
-
h(
|
|
23
|
+
h(b, { size: {} }, [], [], { mode: "open" });
|
|
24
24
|
export {
|
|
25
|
-
T
|
|
25
|
+
b as T
|
|
26
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-Bkx7hDSs.cjs");var h=e.from_svg('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');function C(n,i){e.push(i,!0);let t=e.prop(i,"size",7,12);var o={get size(){return t()},set size(c=12){t(c),e.flushSync()}},l=h(),r=e.sibling(e.child(l)),a=e.child(r),s=e.only_child(a);return e.reset(r),e.reset(l),e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t()),e.set_attribute(s,"width",t()),e.set_attribute(s,"height",t())}),e.append(n,l),e.pop(o)}e.create_custom_element(C,{size:{}},[],[],{mode:"open"});exports.TargetIcon=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const l=require("../components/PlayerChallenges-T3zWVcYA.cjs");if(typeof window<"u"){let s=function(e){return function(...t){try{return e.apply(this,t)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n instanceof Error&&n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/PlayerChallenges-T3zWVcYA.cjs")).then(e=>e.PlayerChallenges_ce).then(e=>{const t=e.default||e;customElements.get("player-challenges")||customElements.define("player-challenges",t.element||t)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=l.PlayerChallenges;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as o } from "../components/PlayerChallenges-
|
|
1
|
+
import { P as o } from "../components/PlayerChallenges-r9ozrIGW.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -16,7 +16,7 @@ if (typeof window < "u") {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
customElements.define = s(customElements.define), import("../components/PlayerChallenges-
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/PlayerChallenges-r9ozrIGW.js").then((e) => e.a).then((e) => {
|
|
20
20
|
const n = e.default || e;
|
|
21
21
|
customElements.get("player-challenges") || customElements.define("player-challenges", n.element || n);
|
|
22
22
|
}).catch((e) => {
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-Dcgam5G5.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-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, 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(--alpha-white-25, 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(--secondary-50, rgba(223, 227, 232, 1));}}.timer:where(.svelte-tfkqbj) {display:flex;align-items:center;gap:6px;color:var(--secondary-50, 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(f,n){e.push(n,!0),e.append_styles(f,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 w=e.sibling(m,2),z=e.child(w,!0);e.reset(w),e.reset(p);var L=e.sibling(p,2);{var B=t=>{var v=A(),k=e.child(v);{var I=s=>{var l=D(),i=e.child(l,!0);e.reset(l),e.template_effect(h=>e.set_text(i,h),[()=>g()(e.get(r).date)]),e.append(s,l)};e.if_block(k,s=>{e.get(r).date&&s(I)})}var $=e.sibling(k,2);{var H=s=>{var l=G(),i=e.first_child(l),h=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(h,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(f,c);var E=e.pop(N);return S(),E}e.create_custom_element(y,{status:{},time:{},locale:{},isNew:{}},[],[],{mode:"open"});exports.Badge=y;
|