@everymatrix/player-challenges 0.1.20 → 0.1.22
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-DO6udG1s.cjs → ArrowLeftIcon-BiMYdT8t.cjs} +1 -1
- package/components/{ArrowLeftIcon-Kaa3LG8f.js → ArrowLeftIcon-CFsh9aDe.js} +1 -1
- package/components/Badge-UWC8kYCn.js +123 -0
- package/components/Badge-YgwgSxde.cjs +6 -0
- package/components/{Button-DAWII22_.cjs → Button-CCETVbzA.cjs} +1 -1
- package/components/{Button--aG_lPro.js → Button-DzLb4jjA.js} +14 -14
- package/components/ChallengeBanner-CeyN9Cdj.cjs +5 -0
- package/components/ChallengeBanner-Cn0WwkaW.js +93 -0
- package/components/{ChallengeBreadcrumbs-DeCNSw4j.js → ChallengeBreadcrumbs-BScNcbLU.js} +2 -2
- package/components/{ChallengeBreadcrumbs-D-k5g986.cjs → ChallengeBreadcrumbs-BxHagpnm.cjs} +1 -1
- package/components/{ChallengeCard-DV8NRsI8.cjs → ChallengeCard-BODxt6Hg.cjs} +1 -1
- package/components/{ChallengeCard-DmJwt2y9.js → ChallengeCard-DTlBBbKV.js} +11 -11
- package/components/{ChallengeClaimCode-C3wmimbK.cjs → ChallengeClaimCode-BfGglGz0.cjs} +1 -1
- package/components/{ChallengeClaimCode-lHWYRca3.js → ChallengeClaimCode-Bm5AAoUe.js} +2 -2
- package/components/{ChallengeDetails-CfJ9IZJZ.js → ChallengeDetails-C6ntkKsx.js} +9 -8
- package/components/{ChallengeDetails-DhoUowNR.cjs → ChallengeDetails-COHx1pGv.cjs} +1 -1
- package/components/{ChallengeDetailsSkeleton-CQE9XygJ.js → ChallengeDetailsSkeleton-DOHrvBEi.js} +19 -19
- package/components/{ChallengeDetailsSkeleton-DUsj6Ex3.cjs → ChallengeDetailsSkeleton-kfl1T5z7.cjs} +1 -1
- package/components/{ChallengeEvents-DbhIZhJN.cjs → ChallengeEvents-CqAADkDD.cjs} +1 -1
- package/components/{ChallengeEvents-D94H9Krw.js → ChallengeEvents-DCfqf6tP.js} +13 -13
- package/components/ChallengeGames-B-v1bhzZ.cjs +14 -0
- package/components/ChallengeGames-DrMRO47n.js +154 -0
- package/components/{ChallengeHistory-IrHNMx-f.cjs → ChallengeHistory-CBRy7MwM.cjs} +1 -1
- package/components/{ChallengeHistory-C37Ju-TF.js → ChallengeHistory-wUOSqTsh.js} +3 -3
- package/components/ChallengeLevels-Bd3eZ0ZG.cjs +8 -0
- package/components/ChallengeLevels-Bg4e1hlt.js +315 -0
- package/components/ChallengeList-BsBRQM05.cjs +21 -0
- package/components/{ChallengeList-DNBErKGO.js → ChallengeList-d5GgkNR8.js} +656 -546
- package/components/{ChallengeProgress-DD6NEO1V.cjs → ChallengeProgress-DEDzxP-j.cjs} +1 -1
- package/components/{ChallengeProgress-BYIofXd9.js → ChallengeProgress-UbZOpGIM.js} +17 -17
- package/components/{ChallengeProgressItem-Cx1q3OK1.cjs → ChallengeProgressItem-BCFaRcE0.cjs} +3 -3
- package/components/{ChallengeProgressItem-BPDACh1_.js → ChallengeProgressItem-BQ_b5lCw.js} +154 -154
- package/components/ChallengeRules-BSaFEII2.cjs +1 -0
- package/components/{ChallengeRules-Cd4G_z7I.js → ChallengeRules-C-um3eWg.js} +44 -44
- package/components/{ChallengeSummary-DUvVQjAb.js → ChallengeSummary-0xqZ2rqb.js} +143 -125
- package/components/ChallengeSummary-CR7VCdpN.cjs +1 -0
- package/components/{ChallengeTabContent-e78Z_mn_.js → ChallengeTabContent-C5ssNPHs.js} +72 -72
- package/components/{ChallengeTabContent-GaoM87MI.cjs → ChallengeTabContent-DcI1bmvz.cjs} +3 -3
- package/components/{ChallengeTabPanel-swSmY8NR.js → ChallengeTabPanel-C7RO1Mnj.js} +49 -39
- package/components/ChallengeTabPanel-DJLN3EuW.cjs +1 -0
- package/components/ChallengeTabs-CKQzoa1j.cjs +14 -0
- package/components/{ChallengeTabs-DJMMrYac.js → ChallengeTabs-CLpDSk-K.js} +2352 -2251
- package/components/{CheckIcon-tK7V78N4.js → CheckIcon-DWMKu1VU.js} +1 -1
- package/components/{CheckIcon-BlrbsjpT.cjs → CheckIcon-JnGsrsng.cjs} +1 -1
- package/components/{ChevronIcon-qaJ1Oj2y.js → ChevronIcon-CpH5_CVS.js} +1 -1
- package/components/{ChevronIcon-BqhIe8-q.cjs → ChevronIcon-wZ1NJT-j.cjs} +1 -1
- package/components/{ChipIcon-BduX6dog.cjs → ChipIcon-C-nwcY8G.cjs} +1 -1
- package/components/{ChipIcon-Ujh-VOxq.js → ChipIcon-EFvoKeJk.js} +1 -1
- package/components/{ChipShineIcon-CeuttnnT.js → ChipShineIcon-DGMTQqxH.js} +4 -4
- package/components/{ChipShineIcon-Da9RxUg4.cjs → ChipShineIcon-qSU0zyiq.cjs} +1 -1
- package/components/{ExistIcon-DRSBI9MS.cjs → ExistIcon-CXA8Fxkn.cjs} +1 -1
- package/components/{ExistIcon-D4vwoDrn.js → ExistIcon-DhizbcjA.js} +1 -1
- package/components/{GiftIcon-CamLbeF4.cjs → GiftIcon-D74WUZjl.cjs} +1 -1
- package/components/{GiftIcon-OBRuiA-K.js → GiftIcon-dodsz2Ve.js} +1 -1
- package/components/{LinkIcon-Ddovd_62.cjs → LinkIcon-BwcQ66zD.cjs} +1 -1
- package/components/{LinkIcon-CgJEoIZw.js → LinkIcon-tnazlF5P.js} +1 -1
- package/components/{LockIcon-DIQ-GJQk.js → LockIcon-CGQ-oxNq.js} +1 -1
- package/components/{LockIcon-a1RxQQaV.cjs → LockIcon-CJoeKZ4m.cjs} +1 -1
- package/components/{Pagination-o53D-u3a.cjs → Pagination-6kte82b9.cjs} +1 -1
- package/components/{Pagination-CP5YVa1Z.js → Pagination-BrIIsxTO.js} +22 -22
- package/components/{PlayerChallenges-BvI4m2pX.js → PlayerChallenges-CQ6IaLc3.js} +199 -183
- package/components/PlayerChallenges-DeaPIt6-.cjs +1 -0
- package/components/{StarIcon-BObqgUDq.cjs → StarIcon-B2vJGruF.cjs} +1 -1
- package/components/{StarIcon-DndEbyJY.js → StarIcon-B3Zg9FJp.js} +1 -1
- package/components/{TargetIcon-DI14gV_H.cjs → TargetIcon-B9a1Kr62.cjs} +1 -1
- package/components/{TargetIcon-Bo2nEJYn.js → TargetIcon-BdZR3qGS.js} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/Badge-CRqhE-Hj.js +0 -138
- package/components/Badge-D0ZJbgp_.cjs +0 -9
- package/components/ChallengeBanner-BSZGA4qu.js +0 -75
- package/components/ChallengeBanner-Bs54x1Zc.cjs +0 -4
- package/components/ChallengeGames-BzYJAg3r.cjs +0 -14
- package/components/ChallengeGames-CEbrL9fk.js +0 -135
- package/components/ChallengeLevels-C1Za1xaA.js +0 -314
- package/components/ChallengeLevels-C9PgTVw2.cjs +0 -8
- package/components/ChallengeList-DBHOCEpb.cjs +0 -21
- package/components/ChallengeRules-yhHxeXjC.cjs +0 -1
- package/components/ChallengeSummary-DYXjswnX.cjs +0 -1
- package/components/ChallengeTabPanel-CSDQ_fby.cjs +0 -1
- package/components/ChallengeTabs-C8XAfjLf.cjs +0 -14
- package/components/PlayerChallenges-B8InccvG.cjs +0 -1
|
@@ -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-DeaPIt6-.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-DeaPIt6-.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-CQ6IaLc3.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-CQ6IaLc3.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,138 +0,0 @@
|
|
|
1
|
-
import { c as ee, d as te, h as ae, p as l, u as se, q as re, v as H, w as ne, x as de, y as D, z as y, t as S, A as e, s as G, B as le, i as b, a as h, b as oe, k as x, l as ie, $ as pe, C as M, n as T, D as f, e as o, m as ce, E as ue, F as ge, G as ve, o as i, r as z, H as be, I as he } from "./ChallengeTabs-DJMMrYac.js";
|
|
2
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
-
}, globalThis.customElements = { define() {
|
|
4
|
-
}, get() {
|
|
5
|
-
}, whenDefined() {
|
|
6
|
-
} });
|
|
7
|
-
var fe = x('<span class="timer-date svelte-tfkqbj"> </span>'), xe = x('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>', 1), me = x('<div class="timer svelte-tfkqbj"><!> <!></div>'), we = x('<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 ke = {
|
|
9
|
-
hash: "svelte-tfkqbj",
|
|
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-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'],
|
|
11
|
-
&[data-status='ongoing'],
|
|
12
|
-
&[data-status='paused'],
|
|
13
|
-
&[data-status='suspended'] {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,
|
|
14
|
-
box-shadow 0.2s ease;&.new,
|
|
15
|
-
&.completed {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled,
|
|
16
|
-
&.ongoing {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.paused,
|
|
17
|
-
&.suspended {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),
|
|
18
|
-
.timer-date:where(.svelte-tfkqbj) {font-weight:400;}.timer-dash:where(.svelte-tfkqbj) {font-weight:500;opacity:0.7;}}}`
|
|
19
|
-
};
|
|
20
|
-
function _e(C, r) {
|
|
21
|
-
te(r, !0), ae(C, ke);
|
|
22
|
-
const m = () => ie(pe, "$_", O), [O, $] = ce(), p = l(r, "status", 7), w = l(r, "time", 7), c = l(r, "locale", 7, ""), k = l(r, "isNew", 7, !1), _ = l(r, "isSuspended", 7, !1);
|
|
23
|
-
se(() => re(c())), H(() => {
|
|
24
|
-
ue(c() ?? "en");
|
|
25
|
-
});
|
|
26
|
-
let N = ne(de(D().valueOf()));
|
|
27
|
-
H(() => {
|
|
28
|
-
const t = setInterval(
|
|
29
|
-
() => {
|
|
30
|
-
ge(N, D().valueOf(), !0);
|
|
31
|
-
},
|
|
32
|
-
1e3
|
|
33
|
-
);
|
|
34
|
-
return () => clearInterval(t);
|
|
35
|
-
});
|
|
36
|
-
const A = {
|
|
37
|
-
new: "new",
|
|
38
|
-
scheduled: "scheduled",
|
|
39
|
-
ongoing: "onGoing",
|
|
40
|
-
paused: "paused",
|
|
41
|
-
suspended: "suspended",
|
|
42
|
-
completed: "completed",
|
|
43
|
-
expired: "expired",
|
|
44
|
-
rejected: "rejected"
|
|
45
|
-
}, n = M(() => be(p(), w(), e(N))), a = M(() => ve(p(), k(), _()));
|
|
46
|
-
var F = {
|
|
47
|
-
get status() {
|
|
48
|
-
return p();
|
|
49
|
-
},
|
|
50
|
-
set status(t) {
|
|
51
|
-
p(t), o();
|
|
52
|
-
},
|
|
53
|
-
get time() {
|
|
54
|
-
return w();
|
|
55
|
-
},
|
|
56
|
-
set time(t) {
|
|
57
|
-
w(t), o();
|
|
58
|
-
},
|
|
59
|
-
get locale() {
|
|
60
|
-
return c();
|
|
61
|
-
},
|
|
62
|
-
set locale(t = "") {
|
|
63
|
-
c(t), o();
|
|
64
|
-
},
|
|
65
|
-
get isNew() {
|
|
66
|
-
return k();
|
|
67
|
-
},
|
|
68
|
-
set isNew(t = !1) {
|
|
69
|
-
k(t), o();
|
|
70
|
-
},
|
|
71
|
-
get isSuspended() {
|
|
72
|
-
return _();
|
|
73
|
-
},
|
|
74
|
-
set isSuspended(t = !1) {
|
|
75
|
-
_(t), o();
|
|
76
|
-
}
|
|
77
|
-
}, u = we(), g = T(u), B = T(g);
|
|
78
|
-
let E;
|
|
79
|
-
var J = i(B, 2), K = f(J, !0);
|
|
80
|
-
z(g);
|
|
81
|
-
var P = i(g, 2);
|
|
82
|
-
{
|
|
83
|
-
var Q = (t) => {
|
|
84
|
-
var j = me(), I = T(j);
|
|
85
|
-
{
|
|
86
|
-
var U = (s) => {
|
|
87
|
-
var d = fe(), v = f(d, !0);
|
|
88
|
-
S((q) => b(v, q), [() => m()(e(n).date)]), h(s, d);
|
|
89
|
-
};
|
|
90
|
-
y(I, (s) => {
|
|
91
|
-
e(n).date && s(U);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
var V = i(I, 2);
|
|
95
|
-
{
|
|
96
|
-
var W = (s) => {
|
|
97
|
-
var d = xe(), v = he(d), q = f(v, !0), L = i(v, 2);
|
|
98
|
-
L.textContent = "-";
|
|
99
|
-
var X = i(L, 2), Y = f(X, !0);
|
|
100
|
-
S(
|
|
101
|
-
(Z) => {
|
|
102
|
-
b(q, Z), b(Y, e(n).countdownTime);
|
|
103
|
-
},
|
|
104
|
-
[() => m()(e(n).label)]
|
|
105
|
-
), h(s, d);
|
|
106
|
-
};
|
|
107
|
-
y(V, (s) => {
|
|
108
|
-
e(n).countdownTime && s(W);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
z(j), h(t, j);
|
|
112
|
-
};
|
|
113
|
-
y(P, (t) => {
|
|
114
|
-
e(n) && t(Q);
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
z(u), S(
|
|
118
|
-
(t) => {
|
|
119
|
-
G(u, "data-status", e(a)), G(g, "data-status", e(a)), E = le(B, 1, "dot dot-status svelte-tfkqbj", null, E, {
|
|
120
|
-
new: e(a) === "new",
|
|
121
|
-
scheduled: e(a) === "scheduled",
|
|
122
|
-
ongoing: e(a) === "ongoing",
|
|
123
|
-
paused: e(a) === "paused",
|
|
124
|
-
suspended: e(a) === "suspended",
|
|
125
|
-
completed: e(a) === "completed",
|
|
126
|
-
expired: e(a) === "expired",
|
|
127
|
-
rejected: e(a) === "rejected"
|
|
128
|
-
}), b(K, t);
|
|
129
|
-
},
|
|
130
|
-
[() => m()(A[e(a)])]
|
|
131
|
-
), h(C, u);
|
|
132
|
-
var R = oe(F);
|
|
133
|
-
return $(), R;
|
|
134
|
-
}
|
|
135
|
-
ee(_e, { status: {}, time: {}, locale: {}, isNew: {}, isSuspended: {} }, [], [], { mode: "open" });
|
|
136
|
-
export {
|
|
137
|
-
_e as B
|
|
138
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-C8XAfjLf.cjs");var $=e.from_html('<span class="timer-date svelte-tfkqbj"> </span>'),A=e.from_html('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>',1),F=e.from_html('<div class="timer svelte-tfkqbj"><!> <!></div>'),J=e.from_html('<div class="challenge-badge svelte-tfkqbj"><div class="status-pill svelte-tfkqbj"><span></span> <span class="status-label svelte-tfkqbj"> </span></div> <!></div>');const K={hash:"svelte-tfkqbj",code:`.challenge-badge.svelte-tfkqbj {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-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'],
|
|
4
|
-
&[data-status='suspended'] {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,
|
|
5
|
-
box-shadow 0.2s ease;&.new,
|
|
6
|
-
&.completed {background:var(--semantic-success-400, rgba(45, 223, 0, 1));}&.scheduled,
|
|
7
|
-
&.ongoing {background:var(--semantic-info-400, rgba(0, 156, 245, 1));}&.paused,
|
|
8
|
-
&.suspended {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),
|
|
9
|
-
.timer-date:where(.svelte-tfkqbj) {font-weight:400;}.timer-dash:where(.svelte-tfkqbj) {font-weight:500;opacity:0.7;}}}`};function y(x,r){e.push(r,!0),e.append_styles(x,K);const g=()=>e.store_get(e.$format,"$_",q),[q,S]=e.setup_stores(),d=e.prop(r,"status",7),u=e.prop(r,"time",7),i=e.prop(r,"locale",7,""),b=e.prop(r,"isNew",7,!1),v=e.prop(r,"isSuspended",7,!1);e.untrack(()=>e.initI18n(i())),e.user_effect(()=>{e.setLocale(i()??"en")});let m=e.state(e.proxy(e.dayjs().valueOf()));e.user_effect(()=>{const t=setInterval(()=>{e.set(m,e.dayjs().valueOf(),!0)},1e3);return()=>clearInterval(t)});const T={new:"new",scheduled:"scheduled",ongoing:"onGoing",paused:"paused",suspended:"suspended",completed:"completed",expired:"expired",rejected:"rejected"},n=e.user_derived(()=>e.getBadgeContent(d(),u(),e.get(m))),s=e.user_derived(()=>e.mapChallengeStatus(d(),b(),v()));var C={get status(){return d()},set status(t){d(t),e.flushSync()},get time(){return u()},set time(t){u(t),e.flushSync()},get locale(){return i()},set locale(t=""){i(t),e.flushSync()},get isNew(){return b()},set isNew(t=!1){b(t),e.flushSync()},get isSuspended(){return v()},set isSuspended(t=!1){v(t),e.flushSync()}},o=J(),p=e.child(o),_=e.child(p);let w;var N=e.sibling(_,2),z=e.only_child(N,!0);e.reset(p);var L=e.sibling(p,2);{var B=t=>{var h=F(),k=e.child(h);{var I=a=>{var l=$(),c=e.only_child(l,!0);e.template_effect(f=>e.set_text(c,f),[()=>g()(e.get(n).date)]),e.append(a,l)};e.if_block(k,a=>{e.get(n).date&&a(I)})}var H=e.sibling(k,2);{var M=a=>{var l=A(),c=e.first_child(l),f=e.only_child(c,!0),j=e.sibling(c,2);j.textContent="-";var O=e.sibling(j,2),D=e.only_child(O,!0);e.template_effect(G=>{e.set_text(f,G),e.set_text(D,e.get(n).countdownTime)},[()=>g()(e.get(n).label)]),e.append(a,l)};e.if_block(H,a=>{e.get(n).countdownTime&&a(M)})}e.reset(h),e.append(t,h)};e.if_block(L,t=>{e.get(n)&&t(B)})}e.reset(o),e.template_effect(t=>{e.set_attribute(o,"data-status",e.get(s)),e.set_attribute(p,"data-status",e.get(s)),w=e.set_class(_,1,"dot dot-status svelte-tfkqbj",null,w,{new:e.get(s)==="new",scheduled:e.get(s)==="scheduled",ongoing:e.get(s)==="ongoing",paused:e.get(s)==="paused",suspended:e.get(s)==="suspended",completed:e.get(s)==="completed",expired:e.get(s)==="expired",rejected:e.get(s)==="rejected"}),e.set_text(z,t)},[()=>g()(T[e.get(s)])]),e.append(x,o);var E=e.pop(C);return S(),E}e.create_custom_element(y,{status:{},time:{},locale:{},isNew:{},isSuspended:{}},[],[],{mode:"open"});exports.Badge=y;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { c as V, d as U, h as Z, p as h, u as z, A as e, z as D, t as C, J as j, a as y, b as A, k as B, C as t, K as F, n as I, e as g, r as P, o as S, B as J, s as v, F as K, L as q, w as G, D as O, M as Q } from "./ChallengeTabs-DJMMrYac.js";
|
|
2
|
-
import { B as R } from "./Badge-CRqhE-Hj.js";
|
|
3
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
|
-
}, globalThis.customElements = { define() {
|
|
5
|
-
}, get() {
|
|
6
|
-
}, whenDefined() {
|
|
7
|
-
} });
|
|
8
|
-
const W = "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 X = B('<div class="challenge-details__banner--new-icon svelte-1rs963e"><img alt="" aria-hidden="true" class="svelte-1rs963e"/></div>'), Y = B('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <!> <img/></div>');
|
|
10
|
-
const $ = {
|
|
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
|
-
}.challenge-details__banner--new-icon:where(.svelte-1rs963e) {position:absolute;right:8px;top:8px;& img:where(.svelte-1rs963e) {width:48px;height:48px;}}}`
|
|
16
|
-
};
|
|
17
|
-
function ee(u, n) {
|
|
18
|
-
U(n, !0), Z(u, $);
|
|
19
|
-
const s = h(n, "challengeItem", 7), i = h(n, "locale", 7), o = h(n, "isPaused", 7, !1), M = t(() => o() || s().ChallengeStatus === F.Paused), p = t(() => s().ChallengePresentation);
|
|
20
|
-
let _ = G(void 0);
|
|
21
|
-
const r = t(() => e(p)?.BannerUrl), m = t(() => !!e(r) && e(_) !== e(r)), T = t(() => e(m) ? e(r) : W), b = z(() => !!s().IsNew), k = t(() => Q(b));
|
|
22
|
-
var H = {
|
|
23
|
-
get challengeItem() {
|
|
24
|
-
return s();
|
|
25
|
-
},
|
|
26
|
-
set challengeItem(a) {
|
|
27
|
-
s(a), g();
|
|
28
|
-
},
|
|
29
|
-
get locale() {
|
|
30
|
-
return i();
|
|
31
|
-
},
|
|
32
|
-
set locale(a) {
|
|
33
|
-
i(a), g();
|
|
34
|
-
},
|
|
35
|
-
get isPaused() {
|
|
36
|
-
return o();
|
|
37
|
-
},
|
|
38
|
-
set isPaused(a = !1) {
|
|
39
|
-
o(a), g();
|
|
40
|
-
}
|
|
41
|
-
}, d = Y(), c = I(d), L = I(c);
|
|
42
|
-
R(L, {
|
|
43
|
-
get status() {
|
|
44
|
-
return s().Status;
|
|
45
|
-
},
|
|
46
|
-
get time() {
|
|
47
|
-
return s().ExpirationTime;
|
|
48
|
-
},
|
|
49
|
-
get isSuspended() {
|
|
50
|
-
return e(M);
|
|
51
|
-
},
|
|
52
|
-
get locale() {
|
|
53
|
-
return i();
|
|
54
|
-
}
|
|
55
|
-
}), P(c);
|
|
56
|
-
var w = S(c, 2);
|
|
57
|
-
{
|
|
58
|
-
var E = (a) => {
|
|
59
|
-
var x = X(), N = O(x);
|
|
60
|
-
C(() => v(N, "src", e(k))), y(a, x);
|
|
61
|
-
};
|
|
62
|
-
D(w, (a) => {
|
|
63
|
-
b && a(E);
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
var l = S(w, 2);
|
|
67
|
-
let f;
|
|
68
|
-
return P(d), C(() => {
|
|
69
|
-
f = J(l, 1, "challenge-details__banner--image svelte-1rs963e", null, f, { "challenge-details__banner--placeholder": !e(m) }), v(l, "src", e(T)), v(l, "alt", e(p)?.PresentationName ?? "");
|
|
70
|
-
}), j("error", l, () => K(_, e(r), !0)), q(l), y(u, d), A(H);
|
|
71
|
-
}
|
|
72
|
-
V(ee, { challengeItem: {}, locale: {}, isPaused: {} }, [], [], { mode: "open" });
|
|
73
|
-
export {
|
|
74
|
-
ee as C
|
|
75
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-C8XAfjLf.cjs"),P=require("./Badge-D0ZJbgp_.cjs"),B="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 T=e.from_html('<div class="challenge-details__banner--new-icon svelte-1rs963e"><img alt="" aria-hidden="true" class="svelte-1rs963e"/></div>'),H=e.from_html('<div class="challenge-details__banner svelte-1rs963e"><div class="challenge-details__banner--overlay svelte-1rs963e"><!></div> <!> <img/></div>');const M={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
|
-
}.challenge-details__banner--new-icon:where(.svelte-1rs963e) {position:absolute;right:8px;top:8px;& img:where(.svelte-1rs963e) {width:48px;height:48px;}}}`};function b(c,n){e.push(n,!0),e.append_styles(c,M);const l=e.prop(n,"challengeItem",7),r=e.prop(n,"locale",7),i=e.prop(n,"isPaused",7,!1),f=e.user_derived(()=>i()||l().ChallengeStatus===e.ChallengeStatus.Paused),g=e.user_derived(()=>l().ChallengePresentation);let h=e.state(void 0);const a=e.user_derived(()=>e.get(g)?.BannerUrl),u=e.user_derived(()=>!!e.get(a)&&e.get(h)!==e.get(a)),w=e.user_derived(()=>e.get(u)?e.get(a):B),v=e.untrack(()=>!!l().IsNew),x=e.user_derived(()=>e.getNewStatusIcon(v));var C={get challengeItem(){return l()},set challengeItem(t){l(t),e.flushSync()},get locale(){return r()},set locale(t){r(t),e.flushSync()},get isPaused(){return i()},set isPaused(t=!1){i(t),e.flushSync()}},d=H(),o=e.child(d),y=e.child(o);P.Badge(y,{get status(){return l().Status},get time(){return l().ExpirationTime},get isSuspended(){return e.get(f)},get locale(){return r()}}),e.reset(o);var _=e.sibling(o,2);{var S=t=>{var m=T(),I=e.only_child(m);e.template_effect(()=>e.set_attribute(I,"src",e.get(x))),e.append(t,m)};e.if_block(_,t=>{v&&t(S)})}var s=e.sibling(_,2);let p;return e.reset(d),e.template_effect(()=>{p=e.set_class(s,1,"challenge-details__banner--image svelte-1rs963e",null,p,{"challenge-details__banner--placeholder":!e.get(u)}),e.set_attribute(s,"src",e.get(w)),e.set_attribute(s,"alt",e.get(g)?.PresentationName??"")}),e.event("error",s,()=>e.set(h,e.get(a),!0)),e.replay_events(s),e.append(c,d),e.pop(C)}e.create_custom_element(b,{challengeItem:{},locale:{},isPaused:{}},[],[],{mode:"open"});exports.ChallengeBanner=b;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-C8XAfjLf.cjs"),i=15,Z="150px 0px";var w=e.from_html('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'),j=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>'),q=e.from_html('<div class="challenge-details__games--sentinel svelte-3o8ht5"></div> <!>',1),D=e.from_html("<!> <!>",1),B=e.from_html('<div class="challenge-details__games svelte-3o8ht5"><!></div>');const F={hash:"svelte-3o8ht5",code:`.challenge-details__games.svelte-3o8ht5 {display:grid;grid-template-columns:repeat(5, 1fr);gap:12px;
|
|
2
|
-
|
|
3
|
-
@media (max-width: 767px) {grid-template-columns:repeat(3, 1fr);gap:6px;
|
|
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%;align-self:start;line-height:0;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:120px;border-radius:6px;}.challenge-details__games--ctb.svelte-3o8ht5 {position:absolute;top:10px;left:9.6px;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(--primary-400, 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(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}
|
|
12
|
-
|
|
13
|
-
@media (max-width: 767px) {.challenge-details__games--ctb.svelte-3o8ht5 {top:5px;left:4.67px;}.challenge-details__games--image.svelte-3o8ht5 {height:75px;}
|
|
14
|
-
}`};function E(S,c){e.push(c,!0),e.append_styles(S,F);const M=()=>e.store_get(e.$format,"$_",T),[T,A]=e.setup_stores(),r=e.prop(c,"challengeItem",7),h=e.prop(c,"userSession",7),p=e.prop(c,"endpoint",7),f=e.user_derived(()=>r().ChallengeId);let o=e.state([]),b=e.state(!1),d=e.state(e.proxy(i)),m=e.state(null);const N=e.user_derived(()=>e.get(o).slice(0,e.get(d))),x=e.user_derived(()=>Math.max(0,e.get(o).length-e.get(d))),$=e.user_derived(()=>Math.min(i,e.get(x)));let _=0;e.user_effect(()=>{if(!e.get(f)||!p()){e.set(o,[]);return}const t=++_;e.set(b,!0),e.set(d,i,!0),e.getChallengeGames({challengeId:e.get(f),sessionId:h(),endpoint:p()}).then(a=>{t===_&&e.set(o,a??[])}).catch(a=>{t===_&&(e.set(o,[]),console.log("challenge-details games err:",a))}).finally(()=>{t===_&&e.set(b,!1)})}),e.user_effect(()=>{if(!e.get(m)||!e.get(x))return;const t=new IntersectionObserver(([a])=>{a.isIntersecting&&e.set(d,e.get(d)+i)},{rootMargin:Z});return t.observe(e.get(m)),()=>t.disconnect()});const P=t=>{if(!h()){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 h()},set userSession(t){h(t),e.flushSync()},get endpoint(){return p()},set endpoint(t){p(t),e.flushSync()}},y=B(),L=e.child(y);{var O=t=>{var a=e.comment(),v=e.first_child(a);e.each(v,17,()=>Array(i),e.index,(k,C)=>{var s=w();e.append(k,s)}),e.append(t,a)},H=t=>{var a=D(),v=e.first_child(a);e.each(v,17,()=>e.get(N),s=>s.CasinoGameId,(s,l)=>{var n=j(),u=e.child(n),g=e.only_child(u),G=e.sibling(u,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(G,"alt",e.get(l).GameName),e.set_attribute(G,"src",e.get(l).Thumbnail)},[()=>M()("ctb")]),e.delegated("click",n,()=>P(e.get(l))),e.append(s,n)});var k=e.sibling(v,2);{var C=s=>{var l=q(),n=e.first_child(l);e.bind_this(n,g=>e.set(m,g),()=>e.get(m));var u=e.sibling(n,2);e.each(u,17,()=>Array(e.get($)),e.index,(g,G)=>{var I=w();e.append(g,I)}),e.append(s,l)};e.if_block(k,s=>{e.get(x)&&s(C)})}e.append(t,a)};e.if_block(L,t=>{e.get(b)?t(O):t(H,-1)})}e.reset(y),e.append(S,y);var R=e.pop(z);return A(),R}e.delegate(["click"]);e.create_custom_element(E,{challengeItem:{},userSession:{},endpoint:{}},[],[],{mode:"open"});exports.ChallengeGames=E;exports.GAMES_PAGE_SIZE=i;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { g as ae, c as te, d as se, h as le, p as A, w as y, x as ne, v as j, A as e, F as i, a9 as ie, z as D, a as r, b as re, C as k, k as p, e as E, m as oe, n as H, r as R, _ as de, I as $, a6 as N, aa as F, D as ge, o as z, t as ce, s as L, i as he, j as pe, l as me, $ as ve, ab as _e, ac as ue, ad as be, a0 as fe } from "./ChallengeTabs-DJMMrYac.js";
|
|
2
|
-
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
-
}, globalThis.customElements = { define() {
|
|
4
|
-
}, get() {
|
|
5
|
-
}, whenDefined() {
|
|
6
|
-
} });
|
|
7
|
-
const h = 15, xe = "150px 0px";
|
|
8
|
-
var Z = p('<div class="challenge-details__games--skeleton svelte-3o8ht5"></div>'), ye = p('<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>'), ke = p('<div class="challenge-details__games--sentinel svelte-3o8ht5"></div> <!>', 1), Ie = p("<!> <!>", 1), Ce = p('<div class="challenge-details__games svelte-3o8ht5"><!></div>');
|
|
9
|
-
const Ge = {
|
|
10
|
-
hash: "svelte-3o8ht5",
|
|
11
|
-
code: `.challenge-details__games.svelte-3o8ht5 {display:grid;grid-template-columns:repeat(5, 1fr);gap:12px;
|
|
12
|
-
|
|
13
|
-
@media (max-width: 767px) {grid-template-columns:repeat(3, 1fr);gap:6px;
|
|
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%;align-self:start;line-height:0;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:120px;border-radius:6px;}.challenge-details__games--ctb.svelte-3o8ht5 {position:absolute;top:10px;left:9.6px;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(--primary-400, 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(--primary-400, rgba(255, 225, 107, 1));font-size:8px;line-height:8px;}
|
|
22
|
-
|
|
23
|
-
@media (max-width: 767px) {.challenge-details__games--ctb.svelte-3o8ht5 {top:5px;left:4.67px;}.challenge-details__games--image.svelte-3o8ht5 {height:75px;}
|
|
24
|
-
}`
|
|
25
|
-
};
|
|
26
|
-
function we(O, m) {
|
|
27
|
-
se(m, !0), le(O, Ge);
|
|
28
|
-
const q = () => me(ve, "$_", B), [B, J] = oe(), o = A(m, "challengeItem", 7), v = A(m, "userSession", 7), _ = A(m, "endpoint", 7), I = k(() => o().ChallengeId);
|
|
29
|
-
let d = y([]), C = y(!1), g = y(ne(h)), u = y(null);
|
|
30
|
-
const K = k(() => e(d).slice(0, e(g))), G = k(() => Math.max(0, e(d).length - e(g))), Q = k(() => Math.min(h, e(G)));
|
|
31
|
-
let b = 0;
|
|
32
|
-
j(() => {
|
|
33
|
-
if (!e(I) || !_()) {
|
|
34
|
-
i(d, []);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const a = ++b;
|
|
38
|
-
i(C, !0), i(g, h, !0), ie({
|
|
39
|
-
challengeId: e(I),
|
|
40
|
-
sessionId: v(),
|
|
41
|
-
endpoint: _()
|
|
42
|
-
}).then((t) => {
|
|
43
|
-
a === b && i(d, t ?? []);
|
|
44
|
-
}).catch((t) => {
|
|
45
|
-
a === b && (i(d, []), console.log("challenge-details games err:", t));
|
|
46
|
-
}).finally(() => {
|
|
47
|
-
a === b && i(C, !1);
|
|
48
|
-
});
|
|
49
|
-
}), j(() => {
|
|
50
|
-
if (!e(u) || !e(G))
|
|
51
|
-
return;
|
|
52
|
-
const a = new IntersectionObserver(
|
|
53
|
-
([t]) => {
|
|
54
|
-
t.isIntersecting && i(g, e(g) + h);
|
|
55
|
-
},
|
|
56
|
-
{ rootMargin: xe }
|
|
57
|
-
);
|
|
58
|
-
return a.observe(e(u)), () => a.disconnect();
|
|
59
|
-
});
|
|
60
|
-
const U = (a) => {
|
|
61
|
-
if (!v()) {
|
|
62
|
-
_e();
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
ue(a, e(I), o().ChallengePresentation?.PresentationName ?? "", be(o()));
|
|
66
|
-
};
|
|
67
|
-
var V = {
|
|
68
|
-
get challengeItem() {
|
|
69
|
-
return o();
|
|
70
|
-
},
|
|
71
|
-
set challengeItem(a) {
|
|
72
|
-
o(a), E();
|
|
73
|
-
},
|
|
74
|
-
get userSession() {
|
|
75
|
-
return v();
|
|
76
|
-
},
|
|
77
|
-
set userSession(a) {
|
|
78
|
-
v(a), E();
|
|
79
|
-
},
|
|
80
|
-
get endpoint() {
|
|
81
|
-
return _();
|
|
82
|
-
},
|
|
83
|
-
set endpoint(a) {
|
|
84
|
-
_(a), E();
|
|
85
|
-
}
|
|
86
|
-
}, w = Ce(), W = H(w);
|
|
87
|
-
{
|
|
88
|
-
var X = (a) => {
|
|
89
|
-
var t = de(), f = $(t);
|
|
90
|
-
N(f, 17, () => Array(h), F, (S, P) => {
|
|
91
|
-
var s = Z();
|
|
92
|
-
r(S, s);
|
|
93
|
-
}), r(a, t);
|
|
94
|
-
}, Y = (a) => {
|
|
95
|
-
var t = Ie(), f = $(t);
|
|
96
|
-
N(f, 17, () => e(K), (s) => s.CasinoGameId, (s, l) => {
|
|
97
|
-
var n = ye(), x = H(n), c = ge(x), M = z(x, 2);
|
|
98
|
-
R(n), ce(
|
|
99
|
-
(T) => {
|
|
100
|
-
L(n, "title", e(l).GameName), he(c, `${T ?? ""} ${e(l).Contribution ?? ""}%`), L(M, "alt", e(l).GameName), L(M, "src", e(l).Thumbnail);
|
|
101
|
-
},
|
|
102
|
-
[() => q()("ctb")]
|
|
103
|
-
), pe("click", n, () => U(e(l))), r(s, n);
|
|
104
|
-
});
|
|
105
|
-
var S = z(f, 2);
|
|
106
|
-
{
|
|
107
|
-
var P = (s) => {
|
|
108
|
-
var l = ke(), n = $(l);
|
|
109
|
-
fe(n, (c) => i(u, c), () => e(u));
|
|
110
|
-
var x = z(n, 2);
|
|
111
|
-
N(x, 17, () => Array(e(Q)), F, (c, M) => {
|
|
112
|
-
var T = Z();
|
|
113
|
-
r(c, T);
|
|
114
|
-
}), r(s, l);
|
|
115
|
-
};
|
|
116
|
-
D(S, (s) => {
|
|
117
|
-
e(G) && s(P);
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
r(a, t);
|
|
121
|
-
};
|
|
122
|
-
D(W, (a) => {
|
|
123
|
-
e(C) ? a(X) : a(Y, -1);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
R(w), r(O, w);
|
|
127
|
-
var ee = re(V);
|
|
128
|
-
return J(), ee;
|
|
129
|
-
}
|
|
130
|
-
ae(["click"]);
|
|
131
|
-
te(we, { challengeItem: {}, userSession: {}, endpoint: {} }, [], [], { mode: "open" });
|
|
132
|
-
export {
|
|
133
|
-
we as C,
|
|
134
|
-
h as G
|
|
135
|
-
};
|