@everymatrix/player-challenges 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{ArrowLeftIcon-9z9pTews.cjs → ArrowLeftIcon-D0LpsufV.cjs} +1 -1
- package/components/{ArrowLeftIcon-DSn8hPkF.js → ArrowLeftIcon-De_oE6VJ.js} +10 -10
- package/components/{Badge-DvLEsRGI.js → Badge-C2_vCRtE.js} +24 -24
- package/components/{Badge-B-XJxDGU.cjs → Badge-r78wWqnE.cjs} +2 -2
- package/components/{Button-LvbCkeeB.cjs → Button-CU8n8iLn.cjs} +2 -2
- package/components/{Button-D84vGE_N.js → Button-CqWi35Id.js} +26 -28
- package/components/{ChallengeBanner-_sqDm-xs.cjs → ChallengeBanner-CBWAGiMi.cjs} +2 -2
- package/components/{ChallengeBanner-DzjEQdUp.js → ChallengeBanner-oDSEjGGf.js} +7 -7
- package/components/{ChallengeBreadcrumbs-DDTCsSWY.js → ChallengeBreadcrumbs-0C1qzQmn.js} +18 -20
- package/components/{ChallengeBreadcrumbs-CZxhI0_L.cjs → ChallengeBreadcrumbs-B1QPZ9Ub.cjs} +1 -1
- package/components/{ChallengeCard-DhT0EyKT.cjs → ChallengeCard-3915Vdd8.cjs} +1 -1
- package/components/{ChallengeCard-BhOpoROp.js → ChallengeCard-yUSt6Ocz.js} +13 -14
- package/components/{ChallengeClaimCode-D4y9Ilgv.cjs → ChallengeClaimCode-BUD6Bszw.cjs} +1 -1
- package/components/{ChallengeClaimCode-DtN7_eaj.js → ChallengeClaimCode-D-skzCq6.js} +16 -17
- package/components/{ChallengeDetails-De--UkDS.js → ChallengeDetails-C5WUrhPo.js} +12 -13
- package/components/{ChallengeDetails-C6knDcqb.cjs → ChallengeDetails-D74Ki1Uz.cjs} +1 -1
- package/components/{ChallengeEvents-DSwYrQ1K.js → ChallengeEvents-CXxvU73L.js} +12 -12
- package/components/{ChallengeEvents-5SdhGalP.cjs → ChallengeEvents-U5YbNMZ6.cjs} +1 -1
- package/components/ChallengeGames-BVIMhW8b.cjs +11 -0
- package/components/ChallengeGames-CLISWWUl.js +133 -0
- package/components/{ChallengeHistory-CoTCstRV.js → ChallengeHistory-BveIKX6m.js} +19 -20
- package/components/{ChallengeHistory-DO7ysttD.cjs → ChallengeHistory-DDWHc60D.cjs} +1 -1
- package/components/ChallengeLevels-Dqz1Jroz.cjs +8 -0
- package/components/ChallengeLevels-EESudJez.js +292 -0
- package/components/ChallengeList-Bby_g4Z8.cjs +20 -0
- package/components/{ChallengeList-BCtLU5A3.js → ChallengeList-P4I4Dp10.js} +510 -550
- package/components/{ChallengeProgress-BJdwMjVx.cjs → ChallengeProgress-BpkQJwJK.cjs} +1 -1
- package/components/{ChallengeProgress-Bz00FfdW.js → ChallengeProgress-BxkeK6qN.js} +20 -21
- package/components/{ChallengeProgressItem-DMuqRQ94.js → ChallengeProgressItem-DHghH0Re.js} +185 -185
- package/components/{ChallengeProgressItem-BijvIdWR.cjs → ChallengeProgressItem-YsHk5ITp.cjs} +2 -2
- package/components/ChallengeRules-CoGa-G4a.cjs +1 -0
- package/components/{ChallengeRules-CDw9YAZb.js → ChallengeRules-D7Q6JUd5.js} +60 -62
- package/components/ChallengeSummary-Bu4cCk0T.js +222 -0
- package/components/ChallengeSummary-CcneZ-_H.cjs +1 -0
- package/components/ChallengeTabContent--jk6IZ9p.js +794 -0
- package/components/ChallengeTabContent-D3ghO0QX.cjs +12 -0
- package/components/ChallengeTabPanel-Rci3HLu2.js +137 -0
- package/components/ChallengeTabPanel-wgd02Iii.cjs +1 -0
- package/components/ChallengeTabSkeleton-B-MQHvwC.js +91 -0
- package/components/{ChallengeTabSkeleton-Dj2rC92S.cjs → ChallengeTabSkeleton-CuGIFm8O.cjs} +2 -2
- package/components/ChallengeTabs-BtbgPMyA.cjs +14 -0
- package/components/{ChallengeTabs-BQfHWZ-v.js → ChallengeTabs-nR_tQGbd.js} +3560 -3123
- package/components/{CheckIcon-D9ebX3ko.cjs → CheckIcon-CxbYr1xp.cjs} +1 -1
- package/components/{CheckIcon-7SG6lvDK.js → CheckIcon-D4lHKEA2.js} +9 -9
- package/components/{ChevronIcon-C4sG0Iq7.cjs → ChevronIcon-BAMpEJGd.cjs} +1 -1
- package/components/{ChevronIcon-sZFDp9-r.js → ChevronIcon-CRAlhZkw.js} +11 -11
- package/components/{ExistIcon-Cjt2I_f3.cjs → ExistIcon-Dto-bbDy.cjs} +1 -1
- package/components/{ExistIcon-BFp2RzHm.js → ExistIcon-MA116zUI.js} +14 -14
- package/components/{GiftIcon-CowOBpN8.cjs → GiftIcon-Cd5b3K-t.cjs} +1 -1
- package/components/{GiftIcon-BsTOo4xA.js → GiftIcon-Co84y9Go.js} +13 -13
- package/components/{LinkIcon-DUiBycAa.cjs → LinkIcon-Bwgy8Luj.cjs} +1 -1
- package/components/{LinkIcon-DY8dMm_r.js → LinkIcon-pV2v0CrL.js} +11 -11
- package/components/{LockIcon-B5-vtEo5.cjs → LockIcon-BYYuZI1_.cjs} +1 -1
- package/components/{LockIcon-DaWR3qRf.js → LockIcon-CzobKbeF.js} +9 -9
- package/components/{Pagination-DLaFwxon.js → Pagination-BgeAkkYm.js} +50 -55
- package/components/{Pagination-CVbrQbU7.cjs → Pagination-vup1vCrG.cjs} +2 -2
- package/components/PlayerChallenges-C703Qu2L.cjs +1 -0
- package/components/{PlayerChallenges-UD6kj-0Y.js → PlayerChallenges-htqi9P1E.js} +67 -68
- package/components/{StarIcon-BvEyzxCo.js → StarIcon-D_ixyTtO.js} +10 -10
- package/components/{StarIcon-mrGEuOQF.cjs → StarIcon-tdfCGCXl.cjs} +1 -1
- package/components/{TargetIcon-D1VeNXPh.cjs → TargetIcon-BGcVQbCs.cjs} +1 -1
- package/components/{TargetIcon-H8pStACk.js → TargetIcon-Cw-ZoTaW.js} +13 -13
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeGames-CWIYOuei.js +0 -135
- package/components/ChallengeGames-Rqb4EmEd.cjs +0 -11
- package/components/ChallengeLevels-D0k6h-sn.cjs +0 -8
- package/components/ChallengeLevels-DE-zA5YQ.js +0 -306
- package/components/ChallengeList-k2WHGOdC.cjs +0 -20
- package/components/ChallengeRules-C-l7Nih5.cjs +0 -1
- package/components/ChallengeSummary-ClsiL0ew.js +0 -222
- package/components/ChallengeSummary-OlE0g3eP.cjs +0 -1
- package/components/ChallengeTabContent-DYhBMEuD.js +0 -837
- package/components/ChallengeTabContent-Y2CcHcab.cjs +0 -12
- package/components/ChallengeTabPanel-DaJ86d-M.js +0 -176
- package/components/ChallengeTabPanel-Vi9JKI9q.cjs +0 -1
- package/components/ChallengeTabSkeleton-nIWKRUtS.js +0 -117
- package/components/ChallengeTabs-BefOeRfL.cjs +0 -14
- package/components/PlayerChallenges-CU3Xg79K.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 J, d as q, h as re, p as a, u as j, q as oe, aj as E, ap as U, v as k, D as N, w as x, x as le, aF as D, aL as L, E as _, aM as ie, A as r, aI as ue, z as de, a as P, b as V, C as v, k as K, e as s, aG as ge, n as ce, r as be, H, o as B, aN as he, aO as O, aP as me, aQ as ve, aJ as G, ak as fe } from "./ChallengeTabs-nR_tQGbd.js";
|
|
2
|
+
import { a as Te } from "./ChallengeList-P4I4Dp10.js";
|
|
3
|
+
import { C as Ie } from "./ChallengeBreadcrumbs-0C1qzQmn.js";
|
|
4
|
+
import { b as ye } from "./ChallengeTabContent--jk6IZ9p.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 Ce = {
|
|
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,60 +44,60 @@ const ye = {
|
|
|
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 F = K("<!> <!>", 1), De = K('<div class="player-challenges svelte-1edjcz1"><!></div>');
|
|
48
|
+
const ke = {
|
|
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
|
-
|
|
52
|
+
function Q(p, n) {
|
|
53
|
+
q(n, !0), re(p, ke);
|
|
54
54
|
const i = a(n, "endpoint", 7, ""), u = a(n, "userSession", 7, ""), d = a(n, "userId", 7, ""), c = a(n, "domainId", 7, ""), o = a(n, "locale", 7, "en"), b = a(n, "translationUrl", 7), h = a(n, "isMobile", 7), f = a(n, "activeTab", 23, () => D.Promo), I = a(n, "activeDetailsTab", 7), y = a(n, "showTabDot", 7, !1);
|
|
55
|
-
|
|
56
|
-
b() &&
|
|
55
|
+
j(() => oe(o(), Ce)), E(() => {
|
|
56
|
+
b() && U(b(), "challenge-card");
|
|
57
57
|
}), k(() => {
|
|
58
|
-
|
|
58
|
+
N(o() || "en");
|
|
59
59
|
});
|
|
60
|
-
let
|
|
60
|
+
let m = x(le(j(() => L(f())) ?? D.Promo));
|
|
61
61
|
k(() => {
|
|
62
62
|
const e = L(f());
|
|
63
|
-
e !== void 0 &&
|
|
63
|
+
e !== void 0 && _(m, e, !0);
|
|
64
64
|
});
|
|
65
|
-
let C =
|
|
66
|
-
const S =
|
|
65
|
+
let C = x(void 0);
|
|
66
|
+
const S = v(() => !u() && !d()), l = ie(() => ({
|
|
67
67
|
endpoint: i(),
|
|
68
68
|
domainId: c(),
|
|
69
69
|
userSession: u(),
|
|
70
70
|
userId: d(),
|
|
71
71
|
locale: o(),
|
|
72
|
-
pageSize:
|
|
73
|
-
})),
|
|
72
|
+
pageSize: ge
|
|
73
|
+
})), M = v(() => l.findChallenge(r(C))), t = v(() => {
|
|
74
74
|
const e = [];
|
|
75
75
|
return l.activeChallenges.some((g) => g.IsNew) && e.push(D.Active), l.pendingChallenges.some((g) => g.IsNew) && e.push(D.Pending), e;
|
|
76
|
-
}),
|
|
77
|
-
e !== r(
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
h() ||
|
|
76
|
+
}), W = (e) => {
|
|
77
|
+
e !== r(m) && (_(m, e, !0), me(ve[e]));
|
|
78
|
+
}, X = (e) => {
|
|
79
|
+
_(C, e, !0), h() || O(!0);
|
|
80
|
+
}, Y = () => {
|
|
81
|
+
h() || O(!1), _(C, void 0);
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
b() &&
|
|
83
|
+
E(() => {
|
|
84
|
+
b() && U(b(), "player-challenges");
|
|
85
85
|
}), k(() => {
|
|
86
|
-
|
|
86
|
+
N(o() || "en");
|
|
87
87
|
}), k(() => {
|
|
88
|
-
const e = r(
|
|
88
|
+
const e = r(m), g = {
|
|
89
89
|
endpoint: i(),
|
|
90
90
|
domainId: c(),
|
|
91
91
|
userSession: u(),
|
|
92
92
|
userId: d(),
|
|
93
93
|
locale: o()
|
|
94
|
-
}, T =
|
|
94
|
+
}, T = ue[e];
|
|
95
95
|
!g.endpoint || !T || l.load(T, r(S));
|
|
96
96
|
}), k(() => {
|
|
97
97
|
if (i())
|
|
98
98
|
return l.connect(), () => l.disconnect();
|
|
99
99
|
});
|
|
100
|
-
var
|
|
100
|
+
var Z = {
|
|
101
101
|
get endpoint() {
|
|
102
102
|
return i();
|
|
103
103
|
},
|
|
@@ -158,15 +158,15 @@ function V(M, n) {
|
|
|
158
158
|
set showTabDot(e = !1) {
|
|
159
159
|
y(e), s();
|
|
160
160
|
}
|
|
161
|
-
}, z =
|
|
161
|
+
}, z = De(), $ = ce(z);
|
|
162
162
|
{
|
|
163
|
-
var
|
|
164
|
-
var g =
|
|
165
|
-
|
|
166
|
-
var w =
|
|
163
|
+
var ee = (e) => {
|
|
164
|
+
var g = F(), T = H(g);
|
|
165
|
+
Ie(T, { onBack: Y });
|
|
166
|
+
var w = B(T, 2);
|
|
167
167
|
{
|
|
168
|
-
let
|
|
169
|
-
|
|
168
|
+
let te = v(() => r(m) === D.Promo), ae = v(() => !!r(M) && l.pausedChallengeIds.includes(r(M).ChallengeId));
|
|
169
|
+
Te(w, {
|
|
170
170
|
get challengeId() {
|
|
171
171
|
return r(C);
|
|
172
172
|
},
|
|
@@ -186,12 +186,12 @@ function V(M, n) {
|
|
|
186
186
|
return o();
|
|
187
187
|
},
|
|
188
188
|
get isPromo() {
|
|
189
|
-
return r(
|
|
189
|
+
return r(te);
|
|
190
190
|
},
|
|
191
191
|
get isPaused() {
|
|
192
|
-
return r(
|
|
192
|
+
return r(ae);
|
|
193
193
|
},
|
|
194
|
-
onStatusChange: (A,
|
|
194
|
+
onStatusChange: (A, se) => l.patchProgress(A, { Status: se }),
|
|
195
195
|
onViewed: (A) => l.patchProgress(A, { IsNew: !1 }),
|
|
196
196
|
get activeTab() {
|
|
197
197
|
return I();
|
|
@@ -202,13 +202,13 @@ function V(M, n) {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
P(e, g);
|
|
205
|
-
},
|
|
206
|
-
var g =
|
|
207
|
-
|
|
205
|
+
}, ne = (e) => {
|
|
206
|
+
var g = F(), T = H(g);
|
|
207
|
+
he(T, {
|
|
208
208
|
get activeTab() {
|
|
209
|
-
return r(
|
|
209
|
+
return r(m);
|
|
210
210
|
},
|
|
211
|
-
onTabChange:
|
|
211
|
+
onTabChange: W,
|
|
212
212
|
get notifyTabs() {
|
|
213
213
|
return r(t);
|
|
214
214
|
},
|
|
@@ -216,8 +216,8 @@ function V(M, n) {
|
|
|
216
216
|
return y();
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
|
-
var w =
|
|
220
|
-
|
|
219
|
+
var w = B(T, 2);
|
|
220
|
+
ye(w, {
|
|
221
221
|
get endpoint() {
|
|
222
222
|
return i();
|
|
223
223
|
},
|
|
@@ -236,23 +236,23 @@ function V(M, n) {
|
|
|
236
236
|
get challenges() {
|
|
237
237
|
return l;
|
|
238
238
|
},
|
|
239
|
-
onViewDetails:
|
|
239
|
+
onViewDetails: X,
|
|
240
240
|
get activeTab() {
|
|
241
|
-
return r(
|
|
241
|
+
return r(m);
|
|
242
242
|
},
|
|
243
243
|
get isMobile() {
|
|
244
244
|
return h();
|
|
245
245
|
}
|
|
246
246
|
}), P(e, g);
|
|
247
247
|
};
|
|
248
|
-
|
|
249
|
-
r(C) ? e(
|
|
248
|
+
de($, (e) => {
|
|
249
|
+
r(C) ? e(ee) : e(ne, -1);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return be(z), P(p, z), V(Z);
|
|
253
253
|
}
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
J(
|
|
255
|
+
Q,
|
|
256
256
|
{
|
|
257
257
|
endpoint: {},
|
|
258
258
|
userSession: {},
|
|
@@ -267,13 +267,13 @@ q(
|
|
|
267
267
|
},
|
|
268
268
|
[],
|
|
269
269
|
[],
|
|
270
|
-
|
|
270
|
+
{ mode: "open" }
|
|
271
271
|
);
|
|
272
|
-
function R(
|
|
273
|
-
|
|
272
|
+
function R(p, n) {
|
|
273
|
+
q(n, !0);
|
|
274
274
|
let i = a(n, "endpoint", 7, ""), u = a(n, "userSession", 7, ""), d = a(n, "userId", 7, ""), c = a(n, "domainId", 7, ""), o = a(n, "locale", 7, "en"), b = a(n, "translationUrl", 7, ""), h = a(n, "isMobile", 7), f = a(n, "activeTab", 7), I = a(n, "activeDetailsTab", 7), y = a(n, "showTabDot", 7);
|
|
275
|
-
const
|
|
276
|
-
var
|
|
275
|
+
const m = v(() => G(h(), !0)), C = v(() => L(f()) ?? D.Promo), S = v(() => fe(I())), l = v(() => G(y()));
|
|
276
|
+
var M = {
|
|
277
277
|
get endpoint() {
|
|
278
278
|
return i();
|
|
279
279
|
},
|
|
@@ -335,7 +335,7 @@ function R(M, n) {
|
|
|
335
335
|
y(t), s();
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
|
-
return
|
|
338
|
+
return Q(p, {
|
|
339
339
|
get endpoint() {
|
|
340
340
|
return i();
|
|
341
341
|
},
|
|
@@ -355,7 +355,7 @@ function R(M, n) {
|
|
|
355
355
|
return b();
|
|
356
356
|
},
|
|
357
357
|
get isMobile() {
|
|
358
|
-
return r(
|
|
358
|
+
return r(m);
|
|
359
359
|
},
|
|
360
360
|
get activeTab() {
|
|
361
361
|
return r(C);
|
|
@@ -366,9 +366,9 @@ function R(M, n) {
|
|
|
366
366
|
get showTabDot() {
|
|
367
367
|
return r(l);
|
|
368
368
|
}
|
|
369
|
-
}),
|
|
369
|
+
}), V(M);
|
|
370
370
|
}
|
|
371
|
-
customElements.define("player-challenges",
|
|
371
|
+
customElements.define("player-challenges", J(
|
|
372
372
|
R,
|
|
373
373
|
{
|
|
374
374
|
endpoint: {},
|
|
@@ -383,14 +383,13 @@ customElements.define("player-challenges", q(
|
|
|
383
383
|
showTabDot: {}
|
|
384
384
|
},
|
|
385
385
|
[],
|
|
386
|
-
[]
|
|
387
|
-
!1
|
|
386
|
+
[]
|
|
388
387
|
));
|
|
389
|
-
const
|
|
388
|
+
const ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
390
389
|
__proto__: null,
|
|
391
390
|
default: R
|
|
392
391
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
393
392
|
export {
|
|
394
|
-
|
|
395
|
-
|
|
393
|
+
Q as P,
|
|
394
|
+
ze as a
|
|
396
395
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as g, d
|
|
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-nR_tQGbd.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
|
-
|
|
7
|
+
var m = u('<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>');
|
|
8
|
+
function w(o, e) {
|
|
9
|
+
d(e, !0);
|
|
10
10
|
let t = i(e, "width", 7, 11), s = i(e, "height", 7, 12);
|
|
11
|
-
var
|
|
11
|
+
var l = {
|
|
12
12
|
get width() {
|
|
13
13
|
return t();
|
|
14
14
|
},
|
|
@@ -21,12 +21,12 @@ function m(l, e) {
|
|
|
21
21
|
set height(a = 12) {
|
|
22
22
|
s(a), r();
|
|
23
23
|
}
|
|
24
|
-
}, h =
|
|
25
|
-
return
|
|
24
|
+
}, h = m();
|
|
25
|
+
return L(() => {
|
|
26
26
|
n(h, "width", t()), n(h, "height", s());
|
|
27
|
-
}), f(
|
|
27
|
+
}), f(o, h), p(l);
|
|
28
28
|
}
|
|
29
|
-
g(
|
|
29
|
+
g(w, { width: {}, height: {} }, [], [], { mode: "open" });
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
w as S
|
|
32
32
|
};
|
|
@@ -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-BtbgPMyA.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 +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-BtbgPMyA.cjs");var h=e.from_svg('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');function n(o,l){e.push(l,!0);let t=e.prop(l,"size",7,12);var a={get size(){return t()},set size(c=12){t(c),e.flushSync()}},i=h(),r=e.sibling(e.child(i)),s=e.child(r),C=e.child(s);return e.reset(s),e.reset(r),e.reset(i),e.template_effect(()=>{e.set_attribute(i,"width",t()),e.set_attribute(i,"height",t()),e.set_attribute(C,"width",t()),e.set_attribute(C,"height",t())}),e.append(o,i),e.pop(a)}e.create_custom_element(n,{size:{}},[],[],{mode:"open"});exports.TargetIcon=n;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as h, d
|
|
1
|
+
import { c as h, d, p as f, o as g, n as l, t as u, a as v, b as m, f as L, e as _, r as a, s } from "./ChallengeTabs-nR_tQGbd.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
5
5
|
}, whenDefined() {
|
|
6
6
|
} });
|
|
7
|
-
var w =
|
|
8
|
-
function T(
|
|
9
|
-
|
|
10
|
-
let e =
|
|
11
|
-
var
|
|
7
|
+
var w = L('<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3193_42932)"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.90553 0.0070498C10.0786 0.035135 10.2276 0.144704 10.306 0.301526L10.7702 1.22981L11.6985 1.69396C11.8553 1.77237 11.9648 1.92138 11.9929 2.09445C12.021 2.26752 11.9642 2.44354 11.8402 2.56752L10.2039 4.20388C10.1016 4.30618 9.96282 4.36364 9.81816 4.36364H8.40773L6.38568 6.38567C6.17266 6.59869 5.8273 6.59868 5.61429 6.38567C5.40128 6.17266 5.40128 5.82729 5.61429 5.61428L7.63634 3.59225V2.18182C7.63634 2.03716 7.69381 1.89842 7.7961 1.79613L9.43246 0.159767C9.55644 0.0357875 9.73246 -0.0210354 9.90553 0.0070498ZM8.72725 3.27273H9.59222L10.5337 2.33125L10.1197 2.12424C10.0141 2.07146 9.92853 1.98587 9.87574 1.88031L9.66873 1.46628L8.72725 2.40776V3.27273ZM6 1.09092C3.28878 1.09092 1.09091 3.28879 1.09091 6.00001C1.09091 8.71122 3.28878 10.9091 6 10.9091C8.71122 10.9091 10.9091 8.71122 10.9091 6.00001C10.9091 5.69876 11.1533 5.45455 11.4545 5.45455C11.7558 5.45455 12 5.69876 12 6.00001C12 9.31372 9.31371 12 6 12C2.68629 12 0 9.31372 0 6.00001C0 2.6863 2.68629 6.58379e-06 6 6.58379e-06C6.30125 6.58379e-06 6.54545 0.244215 6.54545 0.545461C6.54545 0.846707 6.30125 1.09092 6 1.09092ZM6 3.81819C4.79502 3.81819 3.81818 4.79502 3.81818 6.00001C3.81818 7.20499 4.79502 8.18183 6 8.18183C7.20499 8.18183 8.18182 7.20499 8.18182 6.00001C8.18182 5.69876 8.42603 5.45455 8.72727 5.45455C9.02852 5.45455 9.27273 5.69876 9.27273 6.00001C9.27273 7.80748 7.80748 9.27273 6 9.27273C4.19252 9.27273 2.72727 7.80748 2.72727 6.00001C2.72727 4.19253 4.19252 2.72728 6 2.72728C6.30125 2.72728 6.54545 2.97149 6.54545 3.27273C6.54545 3.57398 6.30125 3.81819 6 3.81819Z" fill="currentColor"></path></g><defs><clipPath id="clip0_3193_42932"><rect fill="currentColor"></rect></clipPath></defs></svg>');
|
|
8
|
+
function T(n, i) {
|
|
9
|
+
d(i, !0);
|
|
10
|
+
let e = f(i, "size", 7, 12);
|
|
11
|
+
var p = {
|
|
12
12
|
get size() {
|
|
13
13
|
return e();
|
|
14
14
|
},
|
|
15
|
-
set size(
|
|
16
|
-
e(
|
|
15
|
+
set size(c = 12) {
|
|
16
|
+
e(c), _();
|
|
17
17
|
}
|
|
18
|
-
}, t = w(),
|
|
19
|
-
return
|
|
20
|
-
s(t, "width", e()), s(t, "height", e()), s(
|
|
21
|
-
}), v(
|
|
18
|
+
}, t = w(), r = g(l(t)), C = l(r), o = l(C);
|
|
19
|
+
return a(C), a(r), a(t), u(() => {
|
|
20
|
+
s(t, "width", e()), s(t, "height", e()), s(o, "width", e()), s(o, "height", e());
|
|
21
|
+
}), v(n, t), m(p);
|
|
22
22
|
}
|
|
23
|
-
h(T, { size: {} }, [], [],
|
|
23
|
+
h(T, { size: {} }, [], [], { mode: "open" });
|
|
24
24
|
export {
|
|
25
25
|
T
|
|
26
26
|
};
|
|
@@ -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-C703Qu2L.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-C703Qu2L.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-htqi9P1E.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-htqi9P1E.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,135 +0,0 @@
|
|
|
1
|
-
import { g as ee, c as te, d as ae, h as se, p as E, v as k, w as le, q as H, z as e, D as r, W as ne, y as R, a as i, b as re, B as y, j as o, e as A, m as ie, k as $, r as N, O as oe, G as z, T as O, X as Z, n as P, t as de, s as L, i as ce, Y as ge, Z as he, _ as ve, l as me, $ as pe, P as _e } from "./ChallengeTabs-BQfHWZ-v.js";
|
|
2
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
-
}, globalThis.customElements = { define() {
|
|
4
|
-
}, get() {
|
|
5
|
-
}, whenDefined() {
|
|
6
|
-
} });
|
|
7
|
-
const m = 15, ue = "150px 0px";
|
|
8
|
-
var be = o('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'), fe = o('<button type="button" class="challenge-details__games--card svelte-3o8ht5"><span class="challenge-details__games--ctb svelte-3o8ht5"> </span> <img class="challenge-details__games--image svelte-3o8ht5" loading="lazy"/></button>'), xe = o('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'), ke = o('<div class="challenge-details__games--sentinel svelte-3o8ht5"></div> <!>', 1), ye = o("<!> <!>", 1), Ie = o('<div class="challenge-details__games svelte-3o8ht5"><!></div>');
|
|
9
|
-
const Ce = {
|
|
10
|
-
hash: "svelte-3o8ht5",
|
|
11
|
-
code: `.challenge-details__games.svelte-3o8ht5 {display:grid;grid-template-columns:repeat(5, 1fr);gap:8px;
|
|
12
|
-
|
|
13
|
-
@media (max-width: 767px) {grid-template-columns:repeat(3, 1fr);
|
|
14
|
-
}}.challenge-details__games--skeleton.svelte-3o8ht5 {width:100%;aspect-ratio:1 / 1;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
15
|
-
animation: svelte-3o8ht5-challenge-details-games-pulse 1.2s ease-in-out infinite;}
|
|
16
|
-
|
|
17
|
-
@keyframes svelte-3o8ht5-challenge-details-games-pulse {
|
|
18
|
-
50% {
|
|
19
|
-
opacity: 0.5;
|
|
20
|
-
}
|
|
21
|
-
}.challenge-details__games--sentinel.svelte-3o8ht5 {width:0;height:0;grid-column:1 / -1;}.challenge-details__games--card.svelte-3o8ht5 {position:relative;border-radius:6px;overflow:hidden;padding:0;border:0;background:transparent;width:100%;aspect-ratio:1 / 1;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}}.challenge-details__games--image.svelte-3o8ht5 {display:block;width:100%;height:100%;border-radius:6px;}.challenge-details__games--ctb.svelte-3o8ht5 {position:absolute;top:10px;left:10px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--border-brand, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--text-alert, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}`
|
|
22
|
-
};
|
|
23
|
-
function Ge(j, p) {
|
|
24
|
-
ae(p, !0), se(j, Ce);
|
|
25
|
-
const q = () => me(pe, "$_", B), [B, W] = ie(), d = E(p, "challengeItem", 7), _ = E(p, "userSession", 7), u = E(p, "endpoint", 7), I = y(() => d().ChallengeId);
|
|
26
|
-
let c = k([]), C = k(!1), g = k(le(m)), b = k(null);
|
|
27
|
-
const X = y(() => e(c).slice(0, e(g))), G = y(() => Math.max(0, e(c).length - e(g))), Y = y(() => Math.min(m, e(G)));
|
|
28
|
-
let f = 0;
|
|
29
|
-
H(() => {
|
|
30
|
-
if (!e(I) || !u()) {
|
|
31
|
-
r(c, []);
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const t = ++f;
|
|
35
|
-
r(C, !0), r(g, m, !0), ne({
|
|
36
|
-
challengeId: e(I),
|
|
37
|
-
sessionId: _(),
|
|
38
|
-
endpoint: u()
|
|
39
|
-
}).then((a) => {
|
|
40
|
-
t === f && r(c, a ?? []);
|
|
41
|
-
}).catch((a) => {
|
|
42
|
-
t === f && (r(c, []), console.log("challenge-details games err:", a));
|
|
43
|
-
}).finally(() => {
|
|
44
|
-
t === f && r(C, !1);
|
|
45
|
-
});
|
|
46
|
-
}), H(() => {
|
|
47
|
-
if (!e(b) || !e(G))
|
|
48
|
-
return;
|
|
49
|
-
const t = new IntersectionObserver(
|
|
50
|
-
([a]) => {
|
|
51
|
-
a.isIntersecting && r(g, e(g) + m);
|
|
52
|
-
},
|
|
53
|
-
{ rootMargin: ue }
|
|
54
|
-
);
|
|
55
|
-
return t.observe(e(b)), () => t.disconnect();
|
|
56
|
-
});
|
|
57
|
-
const F = (t) => {
|
|
58
|
-
if (!_()) {
|
|
59
|
-
ge();
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
he(t, e(I), d().ChallengePresentation?.PresentationName ?? "", ve(d()));
|
|
63
|
-
};
|
|
64
|
-
var J = {
|
|
65
|
-
get challengeItem() {
|
|
66
|
-
return d();
|
|
67
|
-
},
|
|
68
|
-
set challengeItem(t) {
|
|
69
|
-
d(t), A();
|
|
70
|
-
},
|
|
71
|
-
get userSession() {
|
|
72
|
-
return _();
|
|
73
|
-
},
|
|
74
|
-
set userSession(t) {
|
|
75
|
-
_(t), A();
|
|
76
|
-
},
|
|
77
|
-
get endpoint() {
|
|
78
|
-
return u();
|
|
79
|
-
},
|
|
80
|
-
set endpoint(t) {
|
|
81
|
-
u(t), A();
|
|
82
|
-
}
|
|
83
|
-
}, S = Ie(), K = $(S);
|
|
84
|
-
{
|
|
85
|
-
var Q = (t) => {
|
|
86
|
-
var a = oe(), x = z(a);
|
|
87
|
-
O(x, 17, () => Array(m), Z, (w, D) => {
|
|
88
|
-
var s = be();
|
|
89
|
-
i(w, s);
|
|
90
|
-
}), i(t, a);
|
|
91
|
-
}, U = (t) => {
|
|
92
|
-
var a = ye(), x = z(a);
|
|
93
|
-
O(x, 17, () => e(X), (s) => s.CasinoGameId, (s, l) => {
|
|
94
|
-
var n = fe();
|
|
95
|
-
n.__click = () => F(e(l));
|
|
96
|
-
var h = $(n), v = $(h);
|
|
97
|
-
N(h);
|
|
98
|
-
var T = P(h, 2);
|
|
99
|
-
N(n), de(
|
|
100
|
-
(M) => {
|
|
101
|
-
L(n, "title", e(l).GameName), ce(v, `${M ?? ""} ${e(l).Contribution ?? ""}%`), L(T, "alt", e(l).GameName), L(T, "src", e(l).Thumbnail);
|
|
102
|
-
},
|
|
103
|
-
[() => q()("ctb")]
|
|
104
|
-
), i(s, n);
|
|
105
|
-
});
|
|
106
|
-
var w = P(x, 2);
|
|
107
|
-
{
|
|
108
|
-
var D = (s) => {
|
|
109
|
-
var l = ke(), n = z(l);
|
|
110
|
-
_e(n, (v) => r(b, v), () => e(b));
|
|
111
|
-
var h = P(n, 2);
|
|
112
|
-
O(h, 17, () => Array(e(Y)), Z, (v, T) => {
|
|
113
|
-
var M = xe();
|
|
114
|
-
i(v, M);
|
|
115
|
-
}), i(s, l);
|
|
116
|
-
};
|
|
117
|
-
R(w, (s) => {
|
|
118
|
-
e(G) && s(D);
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
i(t, a);
|
|
122
|
-
};
|
|
123
|
-
R(K, (t) => {
|
|
124
|
-
e(C) ? t(Q) : t(U, !1);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
N(S), i(j, S);
|
|
128
|
-
var V = re(J);
|
|
129
|
-
return W(), V;
|
|
130
|
-
}
|
|
131
|
-
ee(["click"]);
|
|
132
|
-
te(Ge, { challengeItem: {}, userSession: {}, endpoint: {} }, [], [], !0);
|
|
133
|
-
export {
|
|
134
|
-
Ge as C
|
|
135
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs"),c=15,R="150px 0px";var j=e.from_html('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'),q=e.from_html('<button type="button" class="challenge-details__games--card svelte-3o8ht5"><span class="challenge-details__games--ctb svelte-3o8ht5"> </span> <img class="challenge-details__games--image svelte-3o8ht5" loading="lazy"/></button>'),D=e.from_html('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'),Z=e.from_html('<div class="challenge-details__games--sentinel svelte-3o8ht5"></div> <!>',1),B=e.from_html("<!> <!>",1),F=e.from_html('<div class="challenge-details__games svelte-3o8ht5"><!></div>');const J={hash:"svelte-3o8ht5",code:`.challenge-details__games.svelte-3o8ht5 {display:grid;grid-template-columns:repeat(5, 1fr);gap:8px;
|
|
2
|
-
|
|
3
|
-
@media (max-width: 767px) {grid-template-columns:repeat(3, 1fr);
|
|
4
|
-
}}.challenge-details__games--skeleton.svelte-3o8ht5 {width:100%;aspect-ratio:1 / 1;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
5
|
-
animation: svelte-3o8ht5-challenge-details-games-pulse 1.2s ease-in-out infinite;}
|
|
6
|
-
|
|
7
|
-
@keyframes svelte-3o8ht5-challenge-details-games-pulse {
|
|
8
|
-
50% {
|
|
9
|
-
opacity: 0.5;
|
|
10
|
-
}
|
|
11
|
-
}.challenge-details__games--sentinel.svelte-3o8ht5 {width:0;height:0;grid-column:1 / -1;}.challenge-details__games--card.svelte-3o8ht5 {position:relative;border-radius:6px;overflow:hidden;padding:0;border:0;background:transparent;width:100%;aspect-ratio:1 / 1;cursor:pointer;&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}}.challenge-details__games--image.svelte-3o8ht5 {display:block;width:100%;height:100%;border-radius:6px;}.challenge-details__games--ctb.svelte-3o8ht5 {position:absolute;top:10px;left:10px;z-index:1;display:flex;justify-content:center;align-items:center;padding:4px 6px;background:var(--bg-overlay-secondary-level-5, rgba(0, 40, 81, 0.35));border:1px solid var(--border-brand, rgba(255, 204, 0, 1));backdrop-filter:blur(10px);box-shadow:0 2px 6px rgba(0, 0, 0, 0.25);border-radius:12px;color:var(--text-alert, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}`};function w(G,h){e.push(h,!0),e.append_styles(G,J);const T=()=>e.store_get(e.$format,"$_",M),[M,E]=e.setup_stores(),r=e.prop(h,"challengeItem",7),p=e.prop(h,"userSession",7),_=e.prop(h,"endpoint",7),f=e.user_derived(()=>r().ChallengeId);let i=e.state([]),b=e.state(!1),o=e.state(e.proxy(c)),v=e.state(null);const A=e.user_derived(()=>e.get(i).slice(0,e.get(o))),x=e.user_derived(()=>Math.max(0,e.get(i).length-e.get(o))),N=e.user_derived(()=>Math.min(c,e.get(x)));let m=0;e.user_effect(()=>{if(!e.get(f)||!_()){e.set(i,[]);return}const t=++m;e.set(b,!0),e.set(o,c,!0),e.getChallengeGames({challengeId:e.get(f),sessionId:p(),endpoint:_()}).then(s=>{t===m&&e.set(i,s??[])}).catch(s=>{t===m&&(e.set(i,[]),console.log("challenge-details games err:",s))}).finally(()=>{t===m&&e.set(b,!1)})}),e.user_effect(()=>{if(!e.get(v)||!e.get(x))return;const t=new IntersectionObserver(([s])=>{s.isIntersecting&&e.set(o,e.get(o)+c)},{rootMargin:R});return t.observe(e.get(v)),()=>t.disconnect()});const $=t=>{if(!p()){e.sendChallengeLoginClicked();return}e.sendGameClicked(t,e.get(f),r().ChallengePresentation?.PresentationName??"",e.getChallengeStatusName(r()))};var z={get challengeItem(){return r()},set challengeItem(t){r(t),e.flushSync()},get userSession(){return p()},set userSession(t){p(t),e.flushSync()},get endpoint(){return _()},set endpoint(t){_(t),e.flushSync()}},k=F(),L=e.child(k);{var O=t=>{var s=e.comment(),u=e.first_child(s);e.each(u,17,()=>Array(c),e.index,(y,S)=>{var a=j();e.append(y,a)}),e.append(t,s)},P=t=>{var s=B(),u=e.first_child(s);e.each(u,17,()=>e.get(A),a=>a.CasinoGameId,(a,l)=>{var n=q();n.__click=()=>$(e.get(l));var d=e.child(n),g=e.child(d);e.reset(d);var C=e.sibling(d,2);e.reset(n),e.template_effect(I=>{e.set_attribute(n,"title",e.get(l).GameName),e.set_text(g,`${I??""} ${e.get(l).Contribution??""}%`),e.set_attribute(C,"alt",e.get(l).GameName),e.set_attribute(C,"src",e.get(l).Thumbnail)},[()=>T()("ctb")]),e.append(a,n)});var y=e.sibling(u,2);{var S=a=>{var l=Z(),n=e.first_child(l);e.bind_this(n,g=>e.set(v,g),()=>e.get(v));var d=e.sibling(n,2);e.each(d,17,()=>Array(e.get(N)),e.index,(g,C)=>{var I=D();e.append(g,I)}),e.append(a,l)};e.if_block(y,a=>{e.get(x)&&a(S)})}e.append(t,s)};e.if_block(L,t=>{e.get(b)?t(O):t(P,!1)})}e.reset(k),e.append(G,k);var H=e.pop(z);return E(),H}e.delegate(["click"]);e.create_custom_element(w,{challengeItem:{},userSession:{},endpoint:{}},[],[],!0);exports.ChallengeGames=w;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BefOeRfL.cjs"),se=require("./LockIcon-B5-vtEo5.cjs"),ne=require("./GiftIcon-CowOBpN8.cjs"),ae=require("./TargetIcon-D1VeNXPh.cjs"),ie=require("./CheckIcon-D9ebX3ko.cjs"),oe=require("./ChevronIcon-C4sG0Iq7.cjs"),E=require("./ChallengeProgressItem-BijvIdWR.cjs");var ce=e.from_html("<div></div>");const ge={hash:"svelte-1gkzvh",code:".challenge-progress.svelte-1gkzvh {display:flex;align-items:flex-start;width:100%;padding:8px 0;}.challenge-progress.horizontal.svelte-1gkzvh {flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden;flex:1;overflow-x:auto;padding-top:12px;padding-left:5px;height:75px;}.challenge-progress.vertical.svelte-1gkzvh {flex-direction:column;width:fit-content;}.challenge-progress.synced.svelte-1gkzvh {display:contents;}"};function H(w,n){e.push(n,!0),e.append_styles(w,ge);const i=e.prop(n,"challenge",7),a=e.prop(n,"orientation",23,()=>E.ORIENTATION.vertical),R=e.prop(n,"isExpired",7,!1),o=e.prop(n,"syncRows",7,!1),k=e.prop(n,"rowGap",7,0),S=e.prop(n,"isAnonymous",7),u=e.user_derived(()=>i().LevelProgresses??[]),z=e.user_derived(()=>i().Status),f=e.user_derived(()=>!S()&&e.isOptedIn(i())),b=e.user_derived(()=>e.get(u).length>0),L=e.user_derived(()=>a()===E.ORIENTATION.horizontal&&e.get(u).length>=5),T=e.user_derived(()=>{if(a()!==E.ORIENTATION.horizontal||!e.get(u).length)return-1;let t=-1,m=-1;return e.get(u).forEach((p,O)=>{const l=e.getLevelDisplayStatus(p,e.get(z));l==="completed"&&(t=O),l==="current"&&(m=O)}),t>=0?t:m>=0?m:0});let x=e.state(void 0),C=e.state(e.proxy([]));e.user_effect(()=>{const t=e.get(T)>=0?e.get(C)[e.get(T)]:void 0;!e.get(x)||!t||(e.get(x).scrollLeft=t.offsetLeft)});var G={get challenge(){return i()},set challenge(t){i(t),e.flushSync()},get orientation(){return a()},set orientation(t=E.ORIENTATION.vertical){a(t),e.flushSync()},get isExpired(){return R()},set isExpired(t=!1){R(t),e.flushSync()},get syncRows(){return o()},set syncRows(t=!1){o(t),e.flushSync()},get rowGap(){return k()},set rowGap(t=0){k(t),e.flushSync()},get isAnonymous(){return S()},set isAnonymous(t){S(t),e.flushSync()}},h=ce();let P;return e.each(h,23,()=>e.get(u),t=>t.LevelId,(t,m,p)=>{{let O=e.user_derived(()=>e.get(p)===e.get(u).length-1),l=e.user_derived(()=>o()?e.get(p)+1:void 0),c=e.user_derived(()=>e.get(b)&&e.get(p)===0);E.ChallengeProgressItem(t,{get level(){return e.get(m)},get nextLevel(){return e.get(u)[e.get(p)+1]},get challengeStatus(){return e.get(z)},get isExpired(){return R()},get isLast(){return e.get(O)},get orientation(){return a()},get gridRow(){return e.get(l)},get showStart(){return e.get(c)},get optedIn(){return e.get(f)},get itemEl(){return e.get(C)[e.get(p)]},set itemEl(v){e.get(C)[e.get(p)]=v}})}}),e.reset(h),e.bind_this(h,t=>e.set(x,t),()=>e.get(x)),e.template_effect(()=>{P=e.set_class(h,1,"challenge-progress svelte-1gkzvh",null,P,{horizontal:a()===E.ORIENTATION.horizontal,vertical:a()===E.ORIENTATION.vertical,dense:e.get(L),synced:o()}),e.set_attribute(h,"data-orientation",a()),e.set_attribute(h,"data-dense",e.get(L)),e.set_attribute(h,"data-synced",o()),e.set_style(h,o()?`--progress-row-gap: ${k()}px;`:void 0)}),e.append(w,h),e.pop(G)}e.create_custom_element(H,{challenge:{},orientation:{},isExpired:{},syncRows:{},rowGap:{},isAnonymous:{}},[],[],!0);if(typeof window<"u"){let w=function(n){return function(...i){try{return n.apply(this,i)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a instanceof Error&&a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=w(customElements.define),Promise.resolve().then(()=>require("./ChallengeProgress-BJdwMjVx.cjs")).then(n=>{const i=n.default||n;customElements.get("challenge-progress")||customElements.define("challenge-progress",i.element||i)}).catch(n=>{console.error("BOOT ERROR:",n)})}var de=e.from_html('<span class="challenge-details__level-item--icon-completed svelte-g28wmr"><!></span>'),ve=e.from_html('<span class="challenge-details__level-item--icon svelte-g28wmr"><!></span>'),he=e.from_html('<li class="challenge-details__level--info-row svelte-g28wmr"><span class="challenge-details__level--info-icon svelte-g28wmr"><!></span> <span class="challenge-details__level--info-value svelte-g28wmr"> </span></li>'),pe=e.from_html('<li class="challenge-details__level--info-row svelte-g28wmr"><span class="challenge-details__level--info-icon svelte-g28wmr"><!></span> <span class="challenge-details__level--info-value svelte-g28wmr"> </span></li>'),ue=e.from_html('<button type="button"><!></button>'),_e=e.from_html('<div><div class="challenge-details__level-item--header svelte-g28wmr"><span class="challenge-details__level-item--name svelte-g28wmr"> </span> <!></div> <ul class="challenge-details__level--info-list svelte-g28wmr"><!> <!></ul> <!></div>'),fe=e.from_html('<div class="challenge-details__levels svelte-g28wmr"><!> <!></div>');const me={hash:"svelte-g28wmr",code:`.challenge-details__levels.svelte-g28wmr {display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:var(--challenge-levels-row-gap, 16px);align-items:stretch;.challenge-details__level--details-item:where(.svelte-g28wmr) {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border:1px solid var(--border-default, rgba(251, 251, 251, 0.15));box-sizing:border-box;flex-direction:column;padding:10px;border-radius:6px;gap:16px;display:flex;min-width:0;}.challenge-details__level--details-item.current:where(.svelte-g28wmr) {background:linear-gradient(
|
|
2
|
-
90deg,
|
|
3
|
-
var(--button-primary-bg-default, rgba(255, 204, 0, 0.5)) 0%,
|
|
4
|
-
var(--color-overlay-primary-5, rgba(255, 204, 0, 0.25)) 100%
|
|
5
|
-
);border:1px solid var(--border-brand, rgba(255, 204, 0, 1));border-radius:10px;}.challenge-details__level--details-item.completed:where(.svelte-g28wmr) {background:var(--bg-surface-level-0, rgba(1, 23, 55, 1));border:none;}.challenge-details__level-item--header:where(.svelte-g28wmr) {display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0px;gap:6px;flex:none;order:0;flex-grow:1;}.challenge-details__level-item--name:where(.svelte-g28wmr) {color:var(--text-default, rgba(255, 255, 255, 1));font-weight:700;font-size:16px;line-height:22px;letter-spacing:0%;}.challenge-details__level-item--icon:where(.svelte-g28wmr) {fill:var(--icon-subtle, rgba(223, 227, 232, 1));color:var(--icon-subtle, rgba(223, 227, 232, 1));}.challenge-details__level-item--icon-completed:where(.svelte-g28wmr) {color:var(--icon-success, rgba(50, 242, 0, 1));fill:var(--icon-success, rgba(50, 242, 0, 1));}.challenge-details__level--info-list:where(.svelte-g28wmr) {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0;}.challenge-details__level--info-row:where(.svelte-g28wmr) {display:flex;gap:8px;font-size:14px;line-height:1.4;min-width:0;}.challenge-details__level--info-icon:where(.svelte-g28wmr) {flex-shrink:0;color:var(--icon-subtle, rgba(223, 227, 232, 1));fill:var(--icon-subtle, rgba(223, 227, 232, 1));}.challenge-details__level--info-value:where(.svelte-g28wmr) {color:var(--text-default, rgba(255, 255, 255, 1));font-weight:400;font-size:14px;line-height:140%;letter-spacing:0%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0%;min-width:0;}.challenge-details__level--details-item.expanded:where(.svelte-g28wmr) .challenge-details__level--info-value:where(.svelte-g28wmr) {white-space:normal;overflow:visible;}.challenge-details__level--toggle:where(.svelte-g28wmr) {align-self:center;display:flex;padding:0;border:0;background:transparent;color:var(--icon-subtle, rgba(223, 227, 232, 1));cursor:pointer;transition:transform 0.2s ease;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;&.expanded {transform:rotate(180deg);}&:active {background:transparent;}&:focus:not(:focus-visible) {outline:none;}&:focus-visible {outline:2px solid var(--border-brand, rgba(255, 204, 0, 1));outline-offset:2px;}}
|
|
6
|
-
|
|
7
|
-
@media (max-width: 767px) {.challenge-details__level--details-item:where(.svelte-g28wmr) {gap:4px;}
|
|
8
|
-
}}`};function K(w,n){e.push(n,!0),e.append_styles(w,me);const i=()=>e.store_get(e.$format,"$_",a),[a,R]=e.setup_stores(),o=e.prop(n,"challengeItem",7),k=e.user_derived(()=>o()?.LevelProgresses??[]),S=e.user_derived(()=>o()?.CurrencySymbol??""),u=e.user_derived(()=>!e.isChallengeActive(o()?.Status)),z=16;let f=e.state(e.proxy([])),b=e.state(e.proxy([])),L={},T={},x=e.state(0);const C=l=>{e.set(f,e.get(f).includes(l)?e.get(f).filter(c=>c!==l):[...e.get(f),l],!0)},G=l=>!!l&&l.scrollWidth>l.clientWidth,h=()=>{const l=[];for(const{LevelId:v}of e.get(k)){if(e.get(f).includes(v)){e.get(b).includes(v)&&l.push(v);continue}(G(L[v])||G(T[v]))&&l.push(v)}(l.length!==e.get(b).length||l.some(v=>!e.get(b).includes(v)))&&e.set(b,l,!0)};e.user_effect(()=>{e.get(x),h()});var P={get challengeItem(){return o()},set challengeItem(l){o(l),e.flushSync()}},t=fe();e.set_style(t,`--challenge-levels-row-gap: ${z}px;`);var m=e.child(t);H(m,{get challenge(){return o()},orientation:"vertical",get isExpired(){return e.get(u)},syncRows:!0,rowGap:z});var p=e.sibling(m,2);e.each(p,19,()=>e.get(k),l=>l.LevelId,(l,c,v)=>{const A=e.user_derived(()=>e.getLevelDisplayStatus(e.get(c),o().Status)),j=e.user_derived(()=>e.getLevelRewardText(e.get(c))),B=e.user_derived(()=>e.getLevelCondition(e.get(c),e.get(S),i())),q=e.user_derived(()=>e.get(f).includes(e.get(c).LevelId)),Q=e.user_derived(()=>e.get(b).includes(e.get(c).LevelId));var N=_e();let F;var $=e.child(N),D=e.child($),U=e.child(D);e.reset(D);var V=e.sibling(D,2);{var X=s=>{var r=de(),g=e.child(r);ie.CheckIcon(g,{}),e.reset(r),e.append(s,r)},Y=s=>{var r=e.comment(),g=e.first_child(r);{var y=d=>{var I=ve(),_=e.child(I);se.LockIcon(_,{}),e.reset(I),e.append(d,I)};e.if_block(g,d=>{(e.get(A)==="locked"||e.get(A)==="locked-in-progress")&&d(y)},!0)}e.append(s,r)};e.if_block(V,s=>{e.get(A)==="completed"?s(X):s(Y,!1)})}e.reset($);var W=e.sibling($,2),J=e.child(W);{var Z=s=>{var r=he(),g=e.child(r),y=e.child(g);ne.GiftIcon(y,{}),e.reset(g);var d=e.sibling(g,2),I=e.child(d,!0);e.reset(d),e.bind_this(d,(_,M)=>L[M.LevelId]=_,_=>L?.[_.LevelId],()=>[e.get(c)]),e.reset(r),e.template_effect(()=>e.set_text(I,e.get(j))),e.append(s,r)};e.if_block(J,s=>{e.get(j)&&s(Z)})}var ee=e.sibling(J,2);{var te=s=>{var r=pe(),g=e.child(r),y=e.child(g);ae.TargetIcon(y,{}),e.reset(g);var d=e.sibling(g,2),I=e.child(d,!0);e.reset(d),e.bind_this(d,(_,M)=>T[M.LevelId]=_,_=>T?.[_.LevelId],()=>[e.get(c)]),e.reset(r),e.template_effect(()=>e.set_text(I,e.get(B))),e.append(s,r)};e.if_block(ee,s=>{e.get(B)&&s(te)})}e.reset(W);var le=e.sibling(W,2);{var re=s=>{var r=ue();let g;r.__click=()=>C(e.get(c).LevelId);var y=e.child(r);oe.ChevronIcon(y,{size:16}),e.reset(r),e.template_effect(d=>{g=e.set_class(r,1,"challenge-details__level--toggle svelte-g28wmr",null,g,{expanded:e.get(q)}),e.set_attribute(r,"aria-expanded",e.get(q)),e.set_attribute(r,"aria-label",d)},[()=>i()("level")]),e.append(s,r)};e.if_block(le,s=>{e.get(Q)&&s(re)})}e.reset(N),e.template_effect(s=>{F=e.set_class(N,1,"challenge-details__level--details-item svelte-g28wmr",null,F,{current:e.get(A)==="current",completed:e.get(A)==="completed",expanded:e.get(q)}),e.set_style(N,`grid-row: ${e.get(v)+1}; grid-column: 2;`),e.set_text(U,`${s??""} ${e.get(c).OrderNumber+1}`)},[()=>i()("level")]),e.append(l,N)}),e.reset(t),e.bind_element_size(t,"clientWidth",l=>e.set(x,l)),e.append(w,t);var O=e.pop(P);return R(),O}e.delegate(["click"]);e.create_custom_element(K,{challengeItem:{}},[],[],!0);exports.ChallengeLevels=K;exports.ChallengeProgress=H;
|