@everymatrix/player-challenges 0.1.29 → 0.2.1
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-CN8fnRp8.js → ArrowLeftIcon-3qrKAvdj.js} +1 -1
- package/components/{ArrowLeftIcon-CZ3gGRB3.cjs → ArrowLeftIcon-DfIi_ild.cjs} +1 -1
- package/components/{Badge-CoQkNOLz.cjs → Badge-DFveO0N2.cjs} +1 -1
- package/components/{Badge-f3CAHZz-.js → Badge-UAilzVOG.js} +1 -1
- package/components/{Button-CDZljoNz.js → Button-CzKbnOcC.js} +1 -1
- package/components/{Button-DC3uGF37.cjs → Button-DYIKg1bw.cjs} +1 -1
- package/components/{ChallengeBanner-1-AkmUgP.cjs → ChallengeBanner-CLOInO3g.cjs} +1 -1
- package/components/{ChallengeBanner-DCn4hf4t.js → ChallengeBanner-IgIai24t.js} +2 -2
- package/components/{ChallengeBreadcrumbs-CacWSV7H.cjs → ChallengeBreadcrumbs-BTbBzzQ7.cjs} +1 -1
- package/components/{ChallengeBreadcrumbs-DUmyey3m.js → ChallengeBreadcrumbs-CJtVYxk1.js} +2 -2
- package/components/{ChallengeCard-BV24m-Jd.cjs → ChallengeCard-Bgbcplkq.cjs} +1 -1
- package/components/{ChallengeCard-C6X1e4Qz.js → ChallengeCard-eycA-QQR.js} +11 -11
- package/components/{ChallengeClaimCode-CNt8hEwc.js → ChallengeClaimCode-7_t0VrV1.js} +1 -1
- package/components/{ChallengeClaimCode-CubjEAcf.cjs → ChallengeClaimCode-_w823IPm.cjs} +1 -1
- package/components/ChallengeDetails-DG09x6Eu.cjs +5 -0
- package/components/ChallengeDetails-DIlswoao.js +455 -0
- package/components/{ChallengeDetailsSkeleton-Bbi5XeY4.cjs → ChallengeDetailsSkeleton--laE6pYH.cjs} +1 -1
- package/components/{ChallengeDetailsSkeleton-vgCYWjlo.js → ChallengeDetailsSkeleton-M5rC4gwT.js} +1 -1
- package/components/{ChallengeEvents-Cjz4tswW.js → ChallengeEvents-B3Bzqtoo.js} +2 -2
- package/components/{ChallengeEvents-xYQkjebV.cjs → ChallengeEvents-eIpuL6Yk.cjs} +1 -1
- package/components/ChallengeGames-B8Vm2L5G.cjs +14 -0
- package/components/ChallengeGames-L5TQ1wVu.js +164 -0
- package/components/{ChallengeHistory-BbxTXHG4.cjs → ChallengeHistory-CfySyCJf.cjs} +1 -1
- package/components/{ChallengeHistory-BOj5whNg.js → ChallengeHistory-Cpr3ZtU1.js} +6 -6
- package/components/{ChallengeLevels-BCgo1i-P.js → ChallengeLevels-BcKvLTo3.js} +7 -7
- package/components/{ChallengeLevels-D3LWKkQS.cjs → ChallengeLevels-h_sq1iMg.cjs} +1 -1
- package/components/{ChallengeList-SN9hvo6q.cjs → ChallengeList-BdM811gO.cjs} +1 -1
- package/components/{ChallengeList-CHz5ZFfn.js → ChallengeList-DynA4UU9.js} +3 -3
- package/components/{ChallengeProgress-DMfpLlh1.cjs → ChallengeProgress-Dg6HSNMv.cjs} +1 -1
- package/components/{ChallengeProgress-Bod6fqEG.js → ChallengeProgress-NWAKjOv2.js} +2 -2
- package/components/{ChallengeProgressItem--DFpxTS8.cjs → ChallengeProgressItem-Cxzfd65S.cjs} +1 -1
- package/components/{ChallengeProgressItem-DVzUDYfl.js → ChallengeProgressItem-D44UERwx.js} +4 -4
- package/components/{ChallengeRules-BsTHkcok.cjs → ChallengeRules-CoSSDWCX.cjs} +1 -1
- package/components/{ChallengeRules-DNTBzq1F.js → ChallengeRules-CyKZ9sRh.js} +3 -3
- package/components/{ChallengeSummary-CdvUiACN.cjs → ChallengeSummary-B4Vp1cu8.cjs} +1 -1
- package/components/{ChallengeSummary-Cx9h7OMj.js → ChallengeSummary-BoDIsHBs.js} +6 -6
- package/components/{ChallengeTabContent-DWV_gXFX.js → ChallengeTabContent-DjqSySNS.js} +4 -4
- package/components/{ChallengeTabContent-DR6EJPzq.cjs → ChallengeTabContent-qwpLkxSQ.cjs} +1 -1
- package/components/{ChallengeTabPanel-jE8C4Q5r.js → ChallengeTabPanel-DFXF6VqV.js} +54 -44
- package/components/ChallengeTabPanel-DYPhrVRz.cjs +1 -0
- package/components/ChallengeTabs-B5g-SF2b.cjs +16 -0
- package/components/{ChallengeTabs-BYF7WY5P.js → ChallengeTabs-_vjQrF0A.js} +2573 -2547
- package/components/{CheckIcon-C2GpI-L5.cjs → CheckIcon-0LtHk7fE.cjs} +1 -1
- package/components/{CheckIcon-Bl4pZuZP.js → CheckIcon-BfH-d7h_.js} +1 -1
- package/components/{ChevronIcon-CX6qrx3X.cjs → ChevronIcon-BfZDLe6C.cjs} +1 -1
- package/components/{ChevronIcon-AmqjeKSO.js → ChevronIcon-D-mzPrXJ.js} +1 -1
- package/components/{ChipIcon-B7uOkRi1.js → ChipIcon-BAasRRs4.js} +1 -1
- package/components/{ChipIcon-B2yaPI-s.cjs → ChipIcon-ChCUc7Ro.cjs} +1 -1
- package/components/{ChipShineIcon-DBJlgZQk.cjs → ChipShineIcon-BiuHUnXR.cjs} +1 -1
- package/components/{ChipShineIcon-Ds9EEhmb.js → ChipShineIcon-CoeUovBC.js} +1 -1
- package/components/{ExistIcon-CWyY8R3Y.cjs → ExistIcon-CfsNk2my.cjs} +1 -1
- package/components/{ExistIcon-DgXqZa1S.js → ExistIcon-Dv8paf_U.js} +1 -1
- package/components/{GiftIcon-Z9tIE34i.cjs → GiftIcon-BH735MXR.cjs} +1 -1
- package/components/{GiftIcon-BjXXGhso.js → GiftIcon-Mnb_Nxbd.js} +1 -1
- package/components/{LinkIcon-Q21sEvwx.js → LinkIcon-DiVYY9ci.js} +1 -1
- package/components/{LinkIcon-CtURiIc0.cjs → LinkIcon-Du4_pcZZ.cjs} +1 -1
- package/components/{LockIcon-B04vlajd.js → LockIcon-KP_pUGJo.js} +1 -1
- package/components/{LockIcon-CnUh5OJU.cjs → LockIcon-QA92rEFW.cjs} +1 -1
- package/components/{Pagination-DHDCvM8U.js → Pagination-DQklVx0w.js} +1 -1
- package/components/{Pagination-DKoBrsEV.cjs → Pagination-DfqNdchM.cjs} +1 -1
- package/components/PlayerChallenges-BVshv0hR.cjs +1 -0
- package/components/{PlayerChallenges-sVHaxkEo.js → PlayerChallenges-Cj6-v75C.js} +167 -154
- package/components/{StarIcon-DvSZN2ZN.js → StarIcon-DTSu1OOQ.js} +1 -1
- package/components/{StarIcon-CsFTNsW6.cjs → StarIcon-DturCxI3.cjs} +1 -1
- package/components/{TargetIcon-Bar3gCh5.cjs → TargetIcon-BlVaf2Xr.cjs} +1 -1
- package/components/{TargetIcon-DZRz2KNP.js → TargetIcon-CJJKDeVK.js} +1 -1
- package/components/{helpers-jidkTB_0.js → helpers-B2y_AV0y.js} +1 -1
- package/components/{helpers-D0ruQkxz.cjs → helpers-BmTQLAcy.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
- package/components/ChallengeDetails-6jIXM6l5.cjs +0 -5
- package/components/ChallengeDetails-CohHYoAu.js +0 -445
- package/components/ChallengeGames-BMzPkFEG.cjs +0 -14
- package/components/ChallengeGames-Bb9-sCGS.js +0 -153
- package/components/ChallengeTabPanel-CrOPWNMt.cjs +0 -1
- package/components/ChallengeTabs-CW3EEpFo.cjs +0 -16
- package/components/PlayerChallenges-DRa1KyWF.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { t as
|
|
3
|
-
import { C as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
1
|
+
import { c as $, d as ee, h as Ie, p as s, w as z, x as Ce, au as J, aB as Y, y as P, G as q, R as G, T as F, aS as y, aV as K, P as w, B as t, aW as H, aX as ye, aL as Se, aU as j, A as ke, a as R, b as te, E as l, k as ne, e as i, n as De, r as _e, K as W, o as X, aY as Le, aZ as we, a_ as ze, a$ as Z, b0 as Pe } from "./ChallengeTabs-_vjQrF0A.js";
|
|
2
|
+
import { t as Ae } from "./types-C1hrKH4R.js";
|
|
3
|
+
import { C as Me } from "./ChallengeBreadcrumbs-CJtVYxk1.js";
|
|
4
|
+
import { C as pe } from "./ChallengeDetails-DIlswoao.js";
|
|
5
|
+
import { C as Ue } from "./ChallengeTabContent-DjqSySNS.js";
|
|
6
6
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
7
7
|
}, globalThis.customElements = { define() {
|
|
8
8
|
}, get() {
|
|
9
9
|
}, whenDefined() {
|
|
10
10
|
} });
|
|
11
|
-
const
|
|
11
|
+
const je = {
|
|
12
12
|
en: {
|
|
13
13
|
noChallenges: "No challenges at the moment. Try exploring events or keep playing to unlock new ones.",
|
|
14
14
|
challengesAnonymous: "Login to see your challenges and progress."
|
|
@@ -37,83 +37,86 @@ const pe = {
|
|
|
37
37
|
noChallenges: "Jelenleg nincs elérhető kihívás. Nézz szét az események között, vagy játssz tovább, hogy újakat oldj fel.",
|
|
38
38
|
challengesAnonymous: "Jelentkezzen be, hogy lássa a kihívásait és haladását."
|
|
39
39
|
}
|
|
40
|
-
},
|
|
41
|
-
var
|
|
42
|
-
const
|
|
40
|
+
}, Ee = 50;
|
|
41
|
+
var Q = ne("<!> <!>", 1), Ne = ne('<div class="player-challenges svelte-1edjcz1"><!></div>');
|
|
42
|
+
const xe = {
|
|
43
43
|
hash: "svelte-1edjcz1",
|
|
44
44
|
code: ".player-challenges.svelte-1edjcz1 {display:flex;flex-direction:column;gap:12px;width:100%;}"
|
|
45
45
|
};
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
const h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}),
|
|
52
|
-
|
|
46
|
+
function ae(M, a) {
|
|
47
|
+
ee(a, !0), Ie(M, xe);
|
|
48
|
+
const h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), m = s(a, "userId", 7, ""), v = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), f = s(a, "translationUrl", 7), d = s(a, "isMobile", 7, !0), I = s(a, "activeTab", 23, () => y.Promo), S = s(a, "activeChallengeId", 7), k = s(a, "activeDetailsTab", 7), D = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7, !1), C = s(a, "initialState", 7);
|
|
49
|
+
z(() => Ce(u(), je)), J(() => {
|
|
50
|
+
f() && Y(f(), "challenge-card");
|
|
51
|
+
}), P(() => {
|
|
52
|
+
q(u() || "en");
|
|
53
53
|
});
|
|
54
|
-
let g =
|
|
55
|
-
|
|
56
|
-
const e =
|
|
54
|
+
let g = G(F(z(() => K(I())) ?? y.Promo));
|
|
55
|
+
P(() => {
|
|
56
|
+
const e = K(I());
|
|
57
57
|
e !== void 0 && w(g, e, !0);
|
|
58
58
|
});
|
|
59
|
-
const L =
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
t(L) !== void 0 && (w(
|
|
59
|
+
const L = l(() => d() ? void 0 : S() || void 0);
|
|
60
|
+
let o = G(F(z(() => t(L))));
|
|
61
|
+
P(() => {
|
|
62
|
+
t(L) !== void 0 && (w(o, t(L), !0), H(!0, t(L)));
|
|
63
63
|
});
|
|
64
|
-
let
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
64
|
+
let A = G(void 0);
|
|
65
|
+
const E = l(() => t(A) ?? (t(o) === t(L) ? k() : void 0)), p = l(() => !b()), n = ye(
|
|
66
|
+
() => ({
|
|
67
|
+
endpoint: h(),
|
|
68
|
+
domainId: v(),
|
|
69
|
+
userSession: b(),
|
|
70
|
+
userId: m(),
|
|
71
|
+
locale: u(),
|
|
72
|
+
pageSize: Se(d())
|
|
73
|
+
}),
|
|
74
|
+
z(() => C()?.list)
|
|
75
|
+
), ie = new Set(z(() => C()?.list ? Object.values(j) : [])), N = z(() => C()?.challenge), U = l(() => {
|
|
76
|
+
const e = j[t(g)];
|
|
77
|
+
return (e && e !== "history" ? n.getList(e) : []).find((c) => c.ChallengeId === t(o)) ?? n.findChallenge(t(o)) ?? (N?.ChallengeId === t(o) ? N : void 0);
|
|
78
|
+
}), re = l(() => {
|
|
76
79
|
const e = [];
|
|
77
|
-
return
|
|
78
|
-
}),
|
|
79
|
-
e !== t(g) && (w(g, e, !0),
|
|
80
|
-
},
|
|
81
|
-
w(
|
|
82
|
-
},
|
|
83
|
-
d() ||
|
|
84
|
-
},
|
|
85
|
-
if (e !== t(
|
|
80
|
+
return n.activeChallenges.some((r) => r.IsNew) && e.push(y.Active), n.awaitingChallenges.some((r) => r.IsNew) && e.push(y.Pending), e;
|
|
81
|
+
}), le = (e) => {
|
|
82
|
+
e !== t(g) && (w(g, e, !0), we(ze[e]));
|
|
83
|
+
}, oe = (e, r) => {
|
|
84
|
+
w(o, e, !0), w(A, r, !0), d() || H(!0, e);
|
|
85
|
+
}, V = () => {
|
|
86
|
+
d() || H(!1, t(o)), w(o, void 0), w(A, void 0);
|
|
87
|
+
}, ue = (e) => {
|
|
88
|
+
if (e !== t(o))
|
|
86
89
|
return;
|
|
87
|
-
|
|
88
|
-
const r =
|
|
89
|
-
r &&
|
|
90
|
+
V();
|
|
91
|
+
const r = j[t(g)];
|
|
92
|
+
r && n.load(r, t(p));
|
|
90
93
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
}),
|
|
94
|
+
J(() => {
|
|
95
|
+
f() && Y(f(), "player-challenges");
|
|
96
|
+
}), P(() => {
|
|
97
|
+
q(u() || "en");
|
|
98
|
+
}), P(() => {
|
|
96
99
|
const e = t(g), r = {
|
|
97
100
|
endpoint: h(),
|
|
98
|
-
domainId:
|
|
101
|
+
domainId: v(),
|
|
99
102
|
userSession: b(),
|
|
100
|
-
userId:
|
|
103
|
+
userId: m(),
|
|
101
104
|
locale: u()
|
|
102
|
-
},
|
|
103
|
-
if (!r.endpoint || !
|
|
105
|
+
}, c = t(p), T = j[e];
|
|
106
|
+
if (!r.endpoint || !T || c && ie.delete(T))
|
|
104
107
|
return;
|
|
105
|
-
if (
|
|
106
|
-
|
|
108
|
+
if (T !== "promo" || !c) {
|
|
109
|
+
n.load(T, c);
|
|
107
110
|
return;
|
|
108
111
|
}
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
return () => clearTimeout(
|
|
112
|
-
}),
|
|
112
|
+
n.markLoading(T);
|
|
113
|
+
const O = setTimeout(() => n.load(T, c), Ee);
|
|
114
|
+
return () => clearTimeout(O);
|
|
115
|
+
}), P(() => {
|
|
113
116
|
if (h())
|
|
114
|
-
return
|
|
117
|
+
return n.connect(), () => n.disconnect();
|
|
115
118
|
});
|
|
116
|
-
var
|
|
119
|
+
var de = {
|
|
117
120
|
get endpoint() {
|
|
118
121
|
return h();
|
|
119
122
|
},
|
|
@@ -127,16 +130,16 @@ function te(p, a) {
|
|
|
127
130
|
b(e), i();
|
|
128
131
|
},
|
|
129
132
|
get userId() {
|
|
130
|
-
return
|
|
133
|
+
return m();
|
|
131
134
|
},
|
|
132
135
|
set userId(e = "") {
|
|
133
|
-
|
|
136
|
+
m(e), i();
|
|
134
137
|
},
|
|
135
138
|
get domainId() {
|
|
136
|
-
return
|
|
139
|
+
return v();
|
|
137
140
|
},
|
|
138
141
|
set domainId(e = "") {
|
|
139
|
-
|
|
142
|
+
v(e), i();
|
|
140
143
|
},
|
|
141
144
|
get locale() {
|
|
142
145
|
return u();
|
|
@@ -145,10 +148,10 @@ function te(p, a) {
|
|
|
145
148
|
u(e), i();
|
|
146
149
|
},
|
|
147
150
|
get translationUrl() {
|
|
148
|
-
return
|
|
151
|
+
return f();
|
|
149
152
|
},
|
|
150
153
|
set translationUrl(e) {
|
|
151
|
-
|
|
154
|
+
f(e), i();
|
|
152
155
|
},
|
|
153
156
|
get isMobile() {
|
|
154
157
|
return d();
|
|
@@ -157,46 +160,52 @@ function te(p, a) {
|
|
|
157
160
|
d(e), i();
|
|
158
161
|
},
|
|
159
162
|
get activeTab() {
|
|
160
|
-
return
|
|
163
|
+
return I();
|
|
161
164
|
},
|
|
162
|
-
set activeTab(e =
|
|
163
|
-
|
|
165
|
+
set activeTab(e = y.Promo) {
|
|
166
|
+
I(e), i();
|
|
164
167
|
},
|
|
165
168
|
get activeChallengeId() {
|
|
166
|
-
return
|
|
169
|
+
return S();
|
|
167
170
|
},
|
|
168
171
|
set activeChallengeId(e) {
|
|
169
|
-
|
|
172
|
+
S(e), i();
|
|
170
173
|
},
|
|
171
174
|
get activeDetailsTab() {
|
|
172
|
-
return
|
|
175
|
+
return k();
|
|
173
176
|
},
|
|
174
177
|
set activeDetailsTab(e) {
|
|
175
|
-
|
|
178
|
+
k(e), i();
|
|
176
179
|
},
|
|
177
180
|
get historyLimit() {
|
|
178
|
-
return
|
|
181
|
+
return D();
|
|
179
182
|
},
|
|
180
183
|
set historyLimit(e) {
|
|
181
|
-
|
|
184
|
+
D(e), i();
|
|
182
185
|
},
|
|
183
186
|
get showTabDot() {
|
|
184
187
|
return _();
|
|
185
188
|
},
|
|
186
189
|
set showTabDot(e = !1) {
|
|
187
190
|
_(e), i();
|
|
191
|
+
},
|
|
192
|
+
get initialState() {
|
|
193
|
+
return C();
|
|
194
|
+
},
|
|
195
|
+
set initialState(e) {
|
|
196
|
+
C(e), i();
|
|
188
197
|
}
|
|
189
|
-
},
|
|
198
|
+
}, x = Ne(), ge = De(x);
|
|
190
199
|
{
|
|
191
|
-
var
|
|
192
|
-
var r =
|
|
193
|
-
|
|
194
|
-
var
|
|
200
|
+
var ce = (e) => {
|
|
201
|
+
var r = Q(), c = W(r);
|
|
202
|
+
Me(c, { onBack: V });
|
|
203
|
+
var T = X(c, 2);
|
|
195
204
|
{
|
|
196
|
-
let
|
|
197
|
-
|
|
205
|
+
let O = l(() => t(g) === y.Promo), be = l(() => t(g) === y.Pending), me = l(() => !!t(U) && n.pausedChallengeIds.includes(t(U).ChallengeId)), ve = l(() => t(U)?.Status), fe = l(() => N?.ChallengeId === t(o) ? C()?.games : void 0);
|
|
206
|
+
pe(T, {
|
|
198
207
|
get challengeId() {
|
|
199
|
-
return t(
|
|
208
|
+
return t(o);
|
|
200
209
|
},
|
|
201
210
|
get endpoint() {
|
|
202
211
|
return h();
|
|
@@ -205,57 +214,60 @@ function te(p, a) {
|
|
|
205
214
|
return b();
|
|
206
215
|
},
|
|
207
216
|
get userId() {
|
|
208
|
-
return
|
|
217
|
+
return m();
|
|
209
218
|
},
|
|
210
219
|
get domainId() {
|
|
211
|
-
return
|
|
220
|
+
return v();
|
|
212
221
|
},
|
|
213
222
|
get locale() {
|
|
214
223
|
return u();
|
|
215
224
|
},
|
|
216
225
|
get isPromo() {
|
|
217
|
-
return t(
|
|
226
|
+
return t(O);
|
|
218
227
|
},
|
|
219
228
|
get isPending() {
|
|
220
|
-
return t(
|
|
229
|
+
return t(be);
|
|
221
230
|
},
|
|
222
231
|
get isPaused() {
|
|
223
|
-
return t(
|
|
232
|
+
return t(me);
|
|
224
233
|
},
|
|
225
234
|
get status() {
|
|
226
|
-
return t(
|
|
235
|
+
return t(ve);
|
|
227
236
|
},
|
|
228
237
|
get progress() {
|
|
229
|
-
return t(
|
|
238
|
+
return t(U);
|
|
239
|
+
},
|
|
240
|
+
get initialGames() {
|
|
241
|
+
return t(fe);
|
|
230
242
|
},
|
|
231
|
-
onStatusChange: (
|
|
232
|
-
onViewed: (
|
|
243
|
+
onStatusChange: (B, Te) => n.patchProgress(B, { Status: Te }),
|
|
244
|
+
onViewed: (B) => n.patchProgress(B, { IsNew: !1 }),
|
|
233
245
|
get activeTab() {
|
|
234
|
-
return t(
|
|
246
|
+
return t(E);
|
|
235
247
|
},
|
|
236
|
-
onUnavailable:
|
|
248
|
+
onUnavailable: ue,
|
|
237
249
|
get isMobile() {
|
|
238
250
|
return d();
|
|
239
251
|
}
|
|
240
252
|
});
|
|
241
253
|
}
|
|
242
|
-
|
|
243
|
-
},
|
|
244
|
-
var r =
|
|
245
|
-
|
|
254
|
+
R(e, r);
|
|
255
|
+
}, he = (e) => {
|
|
256
|
+
var r = Q(), c = W(r);
|
|
257
|
+
Le(c, {
|
|
246
258
|
get activeTab() {
|
|
247
259
|
return t(g);
|
|
248
260
|
},
|
|
249
|
-
onTabChange:
|
|
261
|
+
onTabChange: le,
|
|
250
262
|
get notifyTabs() {
|
|
251
|
-
return t(
|
|
263
|
+
return t(re);
|
|
252
264
|
},
|
|
253
265
|
get showTabDot() {
|
|
254
266
|
return _();
|
|
255
267
|
}
|
|
256
268
|
});
|
|
257
|
-
var
|
|
258
|
-
|
|
269
|
+
var T = X(c, 2);
|
|
270
|
+
Ue(T, {
|
|
259
271
|
get endpoint() {
|
|
260
272
|
return h();
|
|
261
273
|
},
|
|
@@ -263,18 +275,18 @@ function te(p, a) {
|
|
|
263
275
|
return b();
|
|
264
276
|
},
|
|
265
277
|
get userId() {
|
|
266
|
-
return
|
|
278
|
+
return m();
|
|
267
279
|
},
|
|
268
280
|
get domainId() {
|
|
269
|
-
return
|
|
281
|
+
return v();
|
|
270
282
|
},
|
|
271
283
|
get locale() {
|
|
272
284
|
return u();
|
|
273
285
|
},
|
|
274
286
|
get challenges() {
|
|
275
|
-
return
|
|
287
|
+
return n;
|
|
276
288
|
},
|
|
277
|
-
onViewDetails:
|
|
289
|
+
onViewDetails: oe,
|
|
278
290
|
get activeTab() {
|
|
279
291
|
return t(g);
|
|
280
292
|
},
|
|
@@ -282,18 +294,18 @@ function te(p, a) {
|
|
|
282
294
|
return d();
|
|
283
295
|
},
|
|
284
296
|
get historyLimit() {
|
|
285
|
-
return
|
|
297
|
+
return D();
|
|
286
298
|
}
|
|
287
|
-
}),
|
|
299
|
+
}), R(e, r);
|
|
288
300
|
};
|
|
289
|
-
|
|
290
|
-
t(
|
|
301
|
+
ke(ge, (e) => {
|
|
302
|
+
t(o) ? e(ce) : e(he, -1);
|
|
291
303
|
});
|
|
292
304
|
}
|
|
293
|
-
return
|
|
305
|
+
return _e(x), R(M, x), te(de);
|
|
294
306
|
}
|
|
295
|
-
|
|
296
|
-
|
|
307
|
+
$(
|
|
308
|
+
ae,
|
|
297
309
|
{
|
|
298
310
|
endpoint: {},
|
|
299
311
|
userSession: {},
|
|
@@ -306,17 +318,18 @@ Z(
|
|
|
306
318
|
activeChallengeId: {},
|
|
307
319
|
activeDetailsTab: {},
|
|
308
320
|
historyLimit: {},
|
|
309
|
-
showTabDot: {}
|
|
321
|
+
showTabDot: {},
|
|
322
|
+
initialState: {}
|
|
310
323
|
},
|
|
311
324
|
[],
|
|
312
325
|
[],
|
|
313
326
|
{ mode: "open" }
|
|
314
327
|
);
|
|
315
|
-
function
|
|
316
|
-
|
|
317
|
-
let h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""),
|
|
318
|
-
const
|
|
319
|
-
var
|
|
328
|
+
function se(M, a) {
|
|
329
|
+
ee(a, !0);
|
|
330
|
+
let h = s(a, "endpoint", 7, ""), b = s(a, "userSession", 7, ""), m = s(a, "userId", 7, ""), v = s(a, "domainId", 7, ""), u = s(a, "locale", 7, "en"), f = s(a, "translationUrl", 7, ""), d = s(a, "isMobile", 7), I = s(a, "activeTab", 7), S = s(a, "activeChallengeId", 7), k = s(a, "activeDetailsTab", 7), D = s(a, "historyLimit", 7), _ = s(a, "showTabDot", 7);
|
|
331
|
+
const C = l(() => Z(d(), !0)), g = l(() => K(I()) ?? y.Promo), L = l(() => S() || void 0), o = l(() => Ae(k())), A = l(() => Z(_())), E = l(() => Pe(D(), 0) || void 0);
|
|
332
|
+
var p = {
|
|
320
333
|
get endpoint() {
|
|
321
334
|
return h();
|
|
322
335
|
},
|
|
@@ -330,16 +343,16 @@ function ne(p, a) {
|
|
|
330
343
|
b(n), i();
|
|
331
344
|
},
|
|
332
345
|
get userId() {
|
|
333
|
-
return
|
|
346
|
+
return m();
|
|
334
347
|
},
|
|
335
348
|
set userId(n = "") {
|
|
336
|
-
|
|
349
|
+
m(n), i();
|
|
337
350
|
},
|
|
338
351
|
get domainId() {
|
|
339
|
-
return
|
|
352
|
+
return v();
|
|
340
353
|
},
|
|
341
354
|
set domainId(n = "") {
|
|
342
|
-
|
|
355
|
+
v(n), i();
|
|
343
356
|
},
|
|
344
357
|
get locale() {
|
|
345
358
|
return u();
|
|
@@ -348,10 +361,10 @@ function ne(p, a) {
|
|
|
348
361
|
u(n), i();
|
|
349
362
|
},
|
|
350
363
|
get translationUrl() {
|
|
351
|
-
return
|
|
364
|
+
return f();
|
|
352
365
|
},
|
|
353
366
|
set translationUrl(n = "") {
|
|
354
|
-
|
|
367
|
+
f(n), i();
|
|
355
368
|
},
|
|
356
369
|
get isMobile() {
|
|
357
370
|
return d();
|
|
@@ -360,28 +373,28 @@ function ne(p, a) {
|
|
|
360
373
|
d(n), i();
|
|
361
374
|
},
|
|
362
375
|
get activeTab() {
|
|
363
|
-
return
|
|
376
|
+
return I();
|
|
364
377
|
},
|
|
365
378
|
set activeTab(n) {
|
|
366
|
-
|
|
379
|
+
I(n), i();
|
|
367
380
|
},
|
|
368
381
|
get activeChallengeId() {
|
|
369
|
-
return
|
|
382
|
+
return S();
|
|
370
383
|
},
|
|
371
384
|
set activeChallengeId(n) {
|
|
372
|
-
|
|
385
|
+
S(n), i();
|
|
373
386
|
},
|
|
374
387
|
get activeDetailsTab() {
|
|
375
|
-
return
|
|
388
|
+
return k();
|
|
376
389
|
},
|
|
377
390
|
set activeDetailsTab(n) {
|
|
378
|
-
|
|
391
|
+
k(n), i();
|
|
379
392
|
},
|
|
380
393
|
get historyLimit() {
|
|
381
|
-
return
|
|
394
|
+
return D();
|
|
382
395
|
},
|
|
383
396
|
set historyLimit(n) {
|
|
384
|
-
|
|
397
|
+
D(n), i();
|
|
385
398
|
},
|
|
386
399
|
get showTabDot() {
|
|
387
400
|
return _();
|
|
@@ -390,7 +403,7 @@ function ne(p, a) {
|
|
|
390
403
|
_(n), i();
|
|
391
404
|
}
|
|
392
405
|
};
|
|
393
|
-
return
|
|
406
|
+
return ae(M, {
|
|
394
407
|
get endpoint() {
|
|
395
408
|
return h();
|
|
396
409
|
},
|
|
@@ -398,39 +411,39 @@ function ne(p, a) {
|
|
|
398
411
|
return b();
|
|
399
412
|
},
|
|
400
413
|
get userId() {
|
|
401
|
-
return
|
|
414
|
+
return m();
|
|
402
415
|
},
|
|
403
416
|
get domainId() {
|
|
404
|
-
return
|
|
417
|
+
return v();
|
|
405
418
|
},
|
|
406
419
|
get locale() {
|
|
407
420
|
return u();
|
|
408
421
|
},
|
|
409
422
|
get translationUrl() {
|
|
410
|
-
return
|
|
423
|
+
return f();
|
|
411
424
|
},
|
|
412
425
|
get isMobile() {
|
|
413
|
-
return t(
|
|
426
|
+
return t(C);
|
|
414
427
|
},
|
|
415
428
|
get activeTab() {
|
|
416
|
-
return t(
|
|
429
|
+
return t(g);
|
|
417
430
|
},
|
|
418
431
|
get activeChallengeId() {
|
|
419
|
-
return t(
|
|
432
|
+
return t(L);
|
|
420
433
|
},
|
|
421
434
|
get activeDetailsTab() {
|
|
422
|
-
return t(
|
|
435
|
+
return t(o);
|
|
423
436
|
},
|
|
424
437
|
get historyLimit() {
|
|
425
|
-
return t(
|
|
438
|
+
return t(E);
|
|
426
439
|
},
|
|
427
440
|
get showTabDot() {
|
|
428
|
-
return t(
|
|
441
|
+
return t(A);
|
|
429
442
|
}
|
|
430
|
-
}),
|
|
443
|
+
}), te(p);
|
|
431
444
|
}
|
|
432
|
-
customElements.define("player-challenges",
|
|
433
|
-
|
|
445
|
+
customElements.define("player-challenges", $(
|
|
446
|
+
se,
|
|
434
447
|
{
|
|
435
448
|
endpoint: {},
|
|
436
449
|
userSession: {},
|
|
@@ -448,11 +461,11 @@ customElements.define("player-challenges", Z(
|
|
|
448
461
|
[],
|
|
449
462
|
[]
|
|
450
463
|
));
|
|
451
|
-
const
|
|
464
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
452
465
|
__proto__: null,
|
|
453
|
-
default:
|
|
466
|
+
default: se
|
|
454
467
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
455
468
|
export {
|
|
456
|
-
|
|
457
|
-
|
|
469
|
+
ae as P,
|
|
470
|
+
Ke as a
|
|
458
471
|
};
|
|
@@ -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-_vjQrF0A.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-B5g-SF2b.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-B5g-SF2b.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,4 +1,4 @@
|
|
|
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 _, F as w, r as C, s } from "./ChallengeTabs-
|
|
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 _, F as w, r as C, s } from "./ChallengeTabs-_vjQrF0A.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as l, W as o, q as n, u as s, v as c } from "./ChallengeTabs-
|
|
1
|
+
import { C as l, W as o, q as n, u as s, v as c } from "./ChallengeTabs-_vjQrF0A.js";
|
|
2
2
|
import { C as r } from "./types-C1hrKH4R.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const n=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const n=require("./ChallengeTabs-B5g-SF2b.cjs"),l=require("./types-BS-x0LbR.cjs"),s=e=>{switch(e){case n.ContributedFrom.Casino:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Games,l.ChallengeDetailsTab.Rules];case n.ContributedFrom.Sportsbook:return[l.ChallengeDetailsTab.Levels,l.ChallengeDetailsTab.Events,l.ChallengeDetailsTab.Rules];default:return[]}},i=e=>s(e).find(t=>t===l.ChallengeDetailsTab.Games||t===l.ChallengeDetailsTab.Events),u=e=>[e.Discipline?.Name,e.Location?.Name,e.Template?.Name,e.Tournament?.Name,e.Event?.Name].filter(Boolean).join(", "),c=e=>[...e??[]].sort((t,r)=>t.OrderNumber-r.OrderNumber),g=e=>{switch(e){case n.WalletType.RealCash:return"contributionTypeRealMoney";case n.WalletType.BonusMoney:return"contributionTypeBonusMoney";case n.WalletType.Mixed:return"contributionTypeMixed";default:return}},y=e=>e?"contributeToOne":"contributeToAll",T=e=>{switch(e){case n.ChallengeRecurrenceType.Single:return"recurrenceSingle";case n.ChallengeRecurrenceType.Daily:return"recurrenceDaily";case n.ChallengeRecurrenceType.Weekly:return"recurrenceWeekly";case n.ChallengeRecurrenceType.Monthly:return"recurrenceMonthly";default:return}},m=(e,t)=>{switch(e){case n.ChallengeHistoryLevelStatus.Completed:return t("completed");case n.ChallengeHistoryLevelStatus.Expired:return t("expired");case n.ChallengeHistoryLevelStatus.Forfeited:return t("forfeited");default:return""}},b=e=>n.formatDisplayDate(e,"DD/MM/YY HH:mm"),o=e=>e.Status===n.ChallengeHistoryLevelStatus.Completed,a=(e,t)=>(e.Levels??[]).some(r=>r.Status===t),d=e=>{const t=e.Levels??[];return t.length?a(e,n.ChallengeHistoryLevelStatus.Forfeited)?"rejected":a(e,n.ChallengeHistoryLevelStatus.Expired)?"failed":t.every(o)?"completed":null:null},p=e=>Object.values(e??{}).map(t=>t?.RewardDescription).filter(t=>!!t);exports.formatLevelTime=b;exports.getAvailableTabs=s;exports.getContributeToKey=y;exports.getContributionTypeKey=g;exports.getEventRuleName=u;exports.getGamesTab=i;exports.getHistoryStatus=d;exports.getRecurrenceKey=T;exports.getRewardDescriptions=p;exports.getStatusLabel=m;exports.isLevelCompleted=o;exports.sortEventRules=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-BVshv0hR.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-BVshv0hR.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-Cj6-v75C.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-Cj6-v75C.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) => {
|