@everymatrix/casino-challenges-container 0.3.12 → 0.3.13
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/dist/casino-challenges-container/casino-challenge-card_6.entry.js +1 -1
- package/dist/casino-challenges-container/casino-challenges-container-bb64adfe.js +1 -0
- package/dist/casino-challenges-container/casino-challenges-container.esm.js +1 -1
- package/dist/casino-challenges-container/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-card_6.cjs.entry.js +92 -67
- package/dist/cjs/{casino-challenges-container-c3d7fee7.js → casino-challenges-container-d393937e.js} +8 -2
- package/dist/cjs/casino-challenges-container.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-challenges-container/casino-challenges-container.js +9 -1
- package/dist/esm/casino-challenge-card_6.entry.js +93 -68
- package/dist/esm/{casino-challenges-container-254099ff.js → casino-challenges-container-bb64adfe.js} +8 -2
- package/dist/esm/casino-challenges-container.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-challenges-container/casino-challenges-container.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-challenges-container/casino-challenges-container-254099ff.js +0 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesContainer = require('./casino-challenges-container-
|
|
5
|
+
const casinoChallengesContainer = require('./casino-challenges-container-d393937e.js');
|
|
6
6
|
require('./index-d5f8d1ee.js');
|
|
7
7
|
|
|
8
8
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["casino-challenge-card_6.cjs",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["casino-challenge-card_6.cjs",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"userId":["handleSessionChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32],"isChallengePaused":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
package/dist/collection/components/casino-challenges-container/casino-challenges-container.js
CHANGED
|
@@ -89,6 +89,11 @@ export class CasinoChallengesContainer {
|
|
|
89
89
|
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
handleSessionChange(newValue, oldValue) {
|
|
93
|
+
if (newValue != oldValue) {
|
|
94
|
+
this.loadData();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
92
97
|
async getChallenges() {
|
|
93
98
|
if (!this.checkAttrs()) {
|
|
94
99
|
const path = this.activeTabIndex === 2 ? 'PlayerHistory' : 'GetChallengesInfo';
|
|
@@ -156,7 +161,7 @@ export class CasinoChallengesContainer {
|
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
163
|
render() {
|
|
159
|
-
return (h("div", { key: '
|
|
164
|
+
return (h("div", { key: '11584e752c3e2ef1142e9c311936561571bbf614', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '30370e99d9b0affaafb3ee2ad243c188425b9d36', class: "challenges" }, h("div", { key: '5970f5e8421f444beef8d15f27a92835dab7cfff', class: "challenges__header" }, h("h1", { key: '91cf9d253aef6717e8eae76687a3ef29a640789f', class: "challenges__title" }, h("img", { key: '6c60c3c5ef2f6f219e1cf7575d70ec621237a3c1', src: titleIcon, alt: "icon" }), translate('title', this.language)), this.session && (h("div", { key: 'ef180453ddd0d96738feb44e8ec0657f7a684e2c', class: "challenges__tabs" }, this.tabs.map((label, index) => (h("div", { class: `challenges__tab ${index === this.activeTabIndex ? 'active' : ''}`, onClick: this.handleTabClick(index) }, label, this.showNotification === index && h("img", { src: notificationIcon }))))))), this.renderChallengesContent(), this.notification && this.renderNotification())));
|
|
160
165
|
}
|
|
161
166
|
static get is() { return "casino-challenges-container"; }
|
|
162
167
|
static get encapsulation() { return "shadow"; }
|
|
@@ -357,6 +362,9 @@ export class CasinoChallengesContainer {
|
|
|
357
362
|
}, {
|
|
358
363
|
"propName": "mbSource",
|
|
359
364
|
"methodName": "handleMbSourceChange"
|
|
365
|
+
}, {
|
|
366
|
+
"propName": "userId",
|
|
367
|
+
"methodName": "handleSessionChange"
|
|
360
368
|
}];
|
|
361
369
|
}
|
|
362
370
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-7720ad93.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-container-
|
|
3
|
-
export { C as casino_challenges_container } from './casino-challenges-container-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-container-bb64adfe.js';
|
|
3
|
+
export { C as casino_challenges_container } from './casino-challenges-container-bb64adfe.js';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
6
6
|
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
@@ -20,6 +20,7 @@ const TRANSLATIONS$3 = {
|
|
|
20
20
|
forfeited: 'Forfeited',
|
|
21
21
|
finished: 'Finished',
|
|
22
22
|
suspended: 'Suspended',
|
|
23
|
+
unavailable: 'Unavailable',
|
|
23
24
|
start: 'Start',
|
|
24
25
|
resume: 'Resume',
|
|
25
26
|
pause: 'Pause',
|
|
@@ -40,6 +41,7 @@ const TRANSLATIONS$3 = {
|
|
|
40
41
|
forfeited: 'Pierdut',
|
|
41
42
|
finished: 'Terminat',
|
|
42
43
|
suspended: 'Suspendat',
|
|
44
|
+
unavailable: 'Indisponibil',
|
|
43
45
|
start: 'Start',
|
|
44
46
|
resume: 'Reia',
|
|
45
47
|
pause: 'Pauză'
|
|
@@ -59,6 +61,7 @@ const TRANSLATIONS$3 = {
|
|
|
59
61
|
forfeited: 'Forfait',
|
|
60
62
|
finished: 'Terminé',
|
|
61
63
|
suspended: 'Suspendu',
|
|
64
|
+
unavailable: 'Indisponible',
|
|
62
65
|
start: 'Démarrer',
|
|
63
66
|
resume: 'Reprendre',
|
|
64
67
|
pause: 'Pause'
|
|
@@ -78,6 +81,7 @@ const TRANSLATIONS$3 = {
|
|
|
78
81
|
forfeited: 'خاسر',
|
|
79
82
|
finished: 'منتهي',
|
|
80
83
|
suspended: 'معلق',
|
|
84
|
+
unavailable: 'غير متاح',
|
|
81
85
|
start: 'ابدأ',
|
|
82
86
|
resume: 'استئناف',
|
|
83
87
|
pause: 'إيقاف مؤقت'
|
|
@@ -97,6 +101,7 @@ const TRANSLATIONS$3 = {
|
|
|
97
101
|
forfeited: 'Oduzeto',
|
|
98
102
|
finished: 'Završeno',
|
|
99
103
|
suspended: 'Suspendirano',
|
|
104
|
+
unavailable: 'غير متاح',
|
|
100
105
|
start: 'Počni',
|
|
101
106
|
resume: 'Nastavi',
|
|
102
107
|
pause: 'Pauza'
|
|
@@ -150,24 +155,32 @@ var EChallengeRewardType;
|
|
|
150
155
|
EChallengeRewardType[EChallengeRewardType["Challenge"] = 3] = "Challenge";
|
|
151
156
|
EChallengeRewardType[EChallengeRewardType["Custom"] = 4] = "Custom";
|
|
152
157
|
})(EChallengeRewardType || (EChallengeRewardType = {}));
|
|
158
|
+
var EChallengeStatus;
|
|
159
|
+
(function (EChallengeStatus) {
|
|
160
|
+
EChallengeStatus[EChallengeStatus["Draft"] = 0] = "Draft";
|
|
161
|
+
EChallengeStatus[EChallengeStatus["Enabled"] = 1] = "Enabled";
|
|
162
|
+
EChallengeStatus[EChallengeStatus["Paused"] = 2] = "Paused";
|
|
163
|
+
EChallengeStatus[EChallengeStatus["Closed"] = 3] = "Closed";
|
|
164
|
+
EChallengeStatus[EChallengeStatus["Deleted"] = 4] = "Deleted";
|
|
165
|
+
})(EChallengeStatus || (EChallengeStatus = {}));
|
|
153
166
|
var EChallengeProgressStatus;
|
|
154
167
|
(function (EChallengeProgressStatus) {
|
|
155
|
-
EChallengeProgressStatus[EChallengeProgressStatus["
|
|
168
|
+
EChallengeProgressStatus[EChallengeProgressStatus["Started"] = 0] = "Started";
|
|
156
169
|
EChallengeProgressStatus[EChallengeProgressStatus["InProgress"] = 1] = "InProgress";
|
|
157
|
-
EChallengeProgressStatus[EChallengeProgressStatus["
|
|
170
|
+
EChallengeProgressStatus[EChallengeProgressStatus["PendingLevelReward"] = 2] = "PendingLevelReward";
|
|
158
171
|
EChallengeProgressStatus[EChallengeProgressStatus["Completed"] = 3] = "Completed";
|
|
172
|
+
EChallengeProgressStatus[EChallengeProgressStatus["Expired"] = 4] = "Expired";
|
|
173
|
+
EChallengeProgressStatus[EChallengeProgressStatus["Forfeited"] = 5] = "Forfeited";
|
|
174
|
+
EChallengeProgressStatus[EChallengeProgressStatus["Awaiting"] = 6] = "Awaiting";
|
|
175
|
+
EChallengeProgressStatus[EChallengeProgressStatus["Paused"] = 7] = "Paused";
|
|
159
176
|
})(EChallengeProgressStatus || (EChallengeProgressStatus = {}));
|
|
160
|
-
var
|
|
161
|
-
(function (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
EChallengeStatus[EChallengeStatus["Forfeited"] = 5] = "Forfeited";
|
|
168
|
-
EChallengeStatus[EChallengeStatus["Awaiting"] = 6] = "Awaiting";
|
|
169
|
-
EChallengeStatus[EChallengeStatus["Paused"] = 7] = "Paused";
|
|
170
|
-
})(EChallengeStatus || (EChallengeStatus = {}));
|
|
177
|
+
var EChallengeProgressLevelStatus;
|
|
178
|
+
(function (EChallengeProgressLevelStatus) {
|
|
179
|
+
EChallengeProgressLevelStatus[EChallengeProgressLevelStatus["Closed"] = 0] = "Closed";
|
|
180
|
+
EChallengeProgressLevelStatus[EChallengeProgressLevelStatus["InProgress"] = 1] = "InProgress";
|
|
181
|
+
EChallengeProgressLevelStatus[EChallengeProgressLevelStatus["Fillup"] = 2] = "Fillup";
|
|
182
|
+
EChallengeProgressLevelStatus[EChallengeProgressLevelStatus["Completed"] = 3] = "Completed";
|
|
183
|
+
})(EChallengeProgressLevelStatus || (EChallengeProgressLevelStatus = {}));
|
|
171
184
|
const ChallengeStatusDictionary = [
|
|
172
185
|
'started',
|
|
173
186
|
'inProgress',
|
|
@@ -223,16 +236,21 @@ const CasinoChallengeCard = class {
|
|
|
223
236
|
var _a;
|
|
224
237
|
if (!level)
|
|
225
238
|
return '';
|
|
226
|
-
const minbet = ((_a = level.BetRange) === null || _a === void 0 ? void 0 : _a.MinBet)
|
|
227
|
-
? `, ${translate$3('minBet', this.language)} ${currencySymbol + level.BetRange.MinBet}`
|
|
228
|
-
: '';
|
|
229
239
|
switch (level.LevelTargetType) {
|
|
230
|
-
case EChallengeLevelTargetType.Accumulative:
|
|
240
|
+
case EChallengeLevelTargetType.Accumulative: {
|
|
241
|
+
const minbet = ((_a = level.BetRange) === null || _a === void 0 ? void 0 : _a.MinBet)
|
|
242
|
+
? `, ${translate$3('minBet', this.language)} ${currencySymbol + level.BetRange.MinBet}`
|
|
243
|
+
: '';
|
|
231
244
|
return `${translate$3('placeBetsOf', this.language)} ${currencySymbol + level.DisplayCurrencyTargetTurnover + minbet}`;
|
|
245
|
+
}
|
|
232
246
|
case EChallengeLevelTargetType.SingleBet:
|
|
233
247
|
return `${translate$3('place', this.language)} ${currencySymbol + level.TargetTurnover} ${translate$3('bet', this.language)}`;
|
|
234
|
-
case EChallengeLevelTargetType.MultipleOneBetSize:
|
|
248
|
+
case EChallengeLevelTargetType.MultipleOneBetSize: {
|
|
249
|
+
const minbet = level.TargetTurnover
|
|
250
|
+
? `, ${translate$3('minBet', this.language)} ${currencySymbol + level.TargetTurnover}`
|
|
251
|
+
: '';
|
|
235
252
|
return `${translate$3('place', this.language)} ${level.TargetBetCount} ${translate$3('bets', this.language) + minbet}`;
|
|
253
|
+
}
|
|
236
254
|
}
|
|
237
255
|
};
|
|
238
256
|
this.onMouseEnterHandler = (index, el) => {
|
|
@@ -244,14 +262,17 @@ const CasinoChallengeCard = class {
|
|
|
244
262
|
this.tooltipIndex = null;
|
|
245
263
|
};
|
|
246
264
|
this.getBadgeContent = () => {
|
|
265
|
+
if (this.isChallengePaused) {
|
|
266
|
+
return translate$3('unavailable', this.language);
|
|
267
|
+
}
|
|
247
268
|
switch (this.challenge.Status) {
|
|
248
|
-
case
|
|
269
|
+
case EChallengeProgressStatus.Expired:
|
|
249
270
|
return translate$3('expired', this.language);
|
|
250
|
-
case
|
|
271
|
+
case EChallengeProgressStatus.Forfeited:
|
|
251
272
|
return translate$3('forfeited', this.language);
|
|
252
|
-
case
|
|
273
|
+
case EChallengeProgressStatus.Completed:
|
|
253
274
|
return translate$3('finished', this.language);
|
|
254
|
-
case
|
|
275
|
+
case EChallengeProgressStatus.Paused:
|
|
255
276
|
return translate$3('suspended', this.language);
|
|
256
277
|
default:
|
|
257
278
|
return this.timeLeft
|
|
@@ -259,11 +280,11 @@ const CasinoChallengeCard = class {
|
|
|
259
280
|
: translate$3('expired', this.language);
|
|
260
281
|
}
|
|
261
282
|
};
|
|
262
|
-
this.goToDetailsPage = (
|
|
283
|
+
this.goToDetailsPage = () => {
|
|
263
284
|
window.postMessage({
|
|
264
285
|
type: 'GoToDetailsPage',
|
|
265
286
|
info: {
|
|
266
|
-
challengeId:
|
|
287
|
+
challengeId: this.challenge.ChallengeId,
|
|
267
288
|
activeTabIndex: this.activeTabIndex
|
|
268
289
|
}
|
|
269
290
|
}, window.location.href);
|
|
@@ -293,28 +314,28 @@ const CasinoChallengeCard = class {
|
|
|
293
314
|
this.error = '';
|
|
294
315
|
this.hasError = false;
|
|
295
316
|
this.actionLoading = false;
|
|
317
|
+
this.isChallengePaused = false;
|
|
296
318
|
}
|
|
297
319
|
get infoItems() {
|
|
298
|
-
var _a, _b, _c, _d, _e
|
|
320
|
+
var _a, _b, _c, _d, _e;
|
|
299
321
|
let level = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses.find((x) => x.OrderNumber === 0);
|
|
300
322
|
if (this.isUserAuthorized) {
|
|
301
323
|
level =
|
|
302
|
-
(_c = (_b = this.challenge) === null || _b === void 0 ? void 0 : _b.LevelProgresses.find((x) => x.ProgressStatus ===
|
|
324
|
+
(_c = (_b = this.challenge) === null || _b === void 0 ? void 0 : _b.LevelProgresses.find((x) => x.ProgressStatus === EChallengeProgressLevelStatus.InProgress)) !== null && _c !== void 0 ? _c : level;
|
|
303
325
|
}
|
|
304
326
|
if (level) {
|
|
305
|
-
const rewardValue = (_d = level.Rewards) === null || _d === void 0 ? void 0 : _d.slice(0, 2).map((r) => r.RewardDescription).join(' + ');
|
|
306
327
|
return [
|
|
307
328
|
{
|
|
308
329
|
lable: translate$3('totalLevels', this.language),
|
|
309
|
-
value: ((
|
|
330
|
+
value: ((_d = this.challenge.LevelProgresses) === null || _d === void 0 ? void 0 : _d.length) || '-'
|
|
310
331
|
},
|
|
311
332
|
{
|
|
312
333
|
lable: translate$3('level1', this.language),
|
|
313
|
-
value: this.calculateTargetValue(level, (
|
|
334
|
+
value: this.calculateTargetValue(level, (_e = this.challenge) === null || _e === void 0 ? void 0 : _e.CurrencySymbol) || '-'
|
|
314
335
|
},
|
|
315
336
|
{
|
|
316
337
|
lable: translate$3('get', this.language),
|
|
317
|
-
value:
|
|
338
|
+
value: level.CustomRewardMessage || '-'
|
|
318
339
|
}
|
|
319
340
|
];
|
|
320
341
|
}
|
|
@@ -347,6 +368,7 @@ const CasinoChallengeCard = class {
|
|
|
347
368
|
this.updateTime();
|
|
348
369
|
}
|
|
349
370
|
componentDidLoad() {
|
|
371
|
+
this.isChallengePaused = this.challenge.ChallengeStatus === EChallengeStatus.Paused;
|
|
350
372
|
if (this.stylingContainer) {
|
|
351
373
|
if (this.mbSource)
|
|
352
374
|
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
@@ -367,7 +389,7 @@ const CasinoChallengeCard = class {
|
|
|
367
389
|
this.timeLeft = getTimeLeft((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.ExpirationTime);
|
|
368
390
|
if (!this.timeLeft && this.timerExpired) {
|
|
369
391
|
clearInterval(this.timerId);
|
|
370
|
-
this.challenge.Status =
|
|
392
|
+
this.challenge.Status = EChallengeProgressStatus.Expired;
|
|
371
393
|
this.timerExpired.emit(this.challenge.Id);
|
|
372
394
|
}
|
|
373
395
|
}
|
|
@@ -375,68 +397,71 @@ const CasinoChallengeCard = class {
|
|
|
375
397
|
return (h("div", { class: `info-item ${this.isChallengeGrayed}`, onMouseEnter: (e) => this.onMouseEnterHandler(index, e.currentTarget), onMouseLeave: this.onMouseLeaveHandler }, h("span", { class: "info-item__label" }, item.lable), item.value, this.tooltipIndex === index && h("div", { class: "info-item__tooltip" }, item.value)));
|
|
376
398
|
}
|
|
377
399
|
get getCardBadge() {
|
|
378
|
-
return (h("div", { class: `card__badge ${
|
|
400
|
+
return (h("div", { class: `card__badge ${this.isChallengePaused
|
|
401
|
+
? ChallengeStatusDictionary[EChallengeProgressStatus.Expired]
|
|
402
|
+
: ChallengeStatusDictionary[this.challenge.Status]}` }, this.getBadgeContent()));
|
|
379
403
|
}
|
|
380
404
|
get isChallengeGrayed() {
|
|
381
|
-
return [
|
|
405
|
+
return [
|
|
406
|
+
EChallengeProgressStatus.Expired,
|
|
407
|
+
EChallengeProgressStatus.Forfeited,
|
|
408
|
+
EChallengeProgressStatus.Completed
|
|
409
|
+
].includes(this.challenge.Status) || this.isChallengePaused
|
|
382
410
|
? 'grayed'
|
|
383
411
|
: '';
|
|
384
412
|
}
|
|
385
413
|
get getChallengeProgress() {
|
|
386
414
|
var _a;
|
|
387
|
-
const currLevel = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses.find((x) => x.ProgressStatus ===
|
|
388
|
-
if (!this.isUserAuthorized || !currLevel)
|
|
415
|
+
const currLevel = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses.find((x) => x.ProgressStatus === EChallengeProgressLevelStatus.InProgress);
|
|
416
|
+
if (this.isChallengePaused || !this.isUserAuthorized || !currLevel)
|
|
389
417
|
return null;
|
|
390
418
|
const { Status, LevelProgresses } = this.challenge;
|
|
391
|
-
if (Status ===
|
|
419
|
+
if (Status === EChallengeProgressStatus.Expired || Status === EChallengeProgressStatus.Started) {
|
|
392
420
|
return h("div", { class: "progress__placeholder" });
|
|
393
421
|
}
|
|
394
|
-
const barValue = Status ===
|
|
422
|
+
const barValue = Status === EChallengeProgressStatus.Paused
|
|
395
423
|
? translate$3('suspended', this.language)
|
|
396
|
-
: Status ===
|
|
424
|
+
: Status === EChallengeProgressStatus.Completed
|
|
397
425
|
? translate$3('finished', this.language)
|
|
398
426
|
: `${currLevel.ProgressPercentage}%`;
|
|
399
427
|
const isLastLevel = !LevelProgresses.some((x) => x.OrderNumber > currLevel.OrderNumber);
|
|
400
|
-
const secondImgSrc = Status ===
|
|
428
|
+
const secondImgSrc = Status === EChallengeProgressStatus.Completed ? trophySvg : isLastLevel ? finishSvg : '';
|
|
401
429
|
return (h("div", { class: {
|
|
402
430
|
progress: true,
|
|
403
|
-
paused: Status ===
|
|
404
|
-
grayed: Status ===
|
|
431
|
+
paused: Status === EChallengeProgressStatus.Paused,
|
|
432
|
+
grayed: Status === EChallengeProgressStatus.Forfeited
|
|
405
433
|
} }, h("div", { class: {
|
|
406
434
|
progress__point: true,
|
|
407
435
|
start: true,
|
|
408
|
-
hidden: Status ===
|
|
436
|
+
hidden: Status === EChallengeProgressStatus.Completed
|
|
409
437
|
} }, currLevel.OrderNumber + 1), h("div", { class: {
|
|
410
438
|
progress__bar: true,
|
|
411
|
-
finished: Status ===
|
|
439
|
+
finished: Status === EChallengeProgressStatus.Completed
|
|
412
440
|
}, style: { width: `${currLevel.ProgressPercentage}%` } }, barValue), h("div", { class: {
|
|
413
441
|
progress__point: true,
|
|
414
442
|
end: true,
|
|
415
|
-
finished: Status ===
|
|
443
|
+
finished: Status === EChallengeProgressStatus.Completed
|
|
416
444
|
} }, secondImgSrc ? h("img", { class: "progress__icon", src: secondImgSrc }) : currLevel.OrderNumber + 2)));
|
|
417
445
|
}
|
|
418
446
|
get getCardButton() {
|
|
419
|
-
if (this.isUserAuthorized) {
|
|
420
|
-
if (this.challenge.Status ===
|
|
447
|
+
if (this.isUserAuthorized && !this.isChallengePaused) {
|
|
448
|
+
if (this.challenge.Status === EChallengeProgressStatus.Started) {
|
|
421
449
|
return (h("button", { class: "card__button filled", disabled: this.actionLoading, onClick: () => this.joinUnjoinProgress(true) }, translate$3('start', this.language)));
|
|
422
450
|
}
|
|
423
|
-
if (this.challenge.Status ===
|
|
451
|
+
if (this.challenge.Status === EChallengeProgressStatus.Paused) {
|
|
424
452
|
return (h("button", { class: "card__button grayed", disabled: this.actionLoading, onClick: () => this.joinUnjoinProgress(true) }, translate$3('resume', this.language)));
|
|
425
453
|
}
|
|
426
|
-
if (this.challenge.Status ===
|
|
427
|
-
this.challenge.Status ===
|
|
454
|
+
if (this.challenge.Status === EChallengeProgressStatus.InProgress ||
|
|
455
|
+
this.challenge.Status === EChallengeProgressStatus.PendingLevelReward) {
|
|
428
456
|
return (h("button", { class: "card__button grayed", disabled: this.actionLoading, onClick: () => this.joinUnjoinProgress(false) }, translate$3('pause', this.language)));
|
|
429
457
|
}
|
|
430
458
|
}
|
|
431
|
-
|
|
432
|
-
return (h("button", { class: "card__button", onClick: this.goToDetailsPage(detailsId) }, translate$3('viewDetails', this.language)));
|
|
459
|
+
return h("button", { class: "card__button" }, translate$3('viewDetails', this.language));
|
|
433
460
|
}
|
|
434
461
|
async joinUnjoinProgress(join) {
|
|
435
|
-
|
|
436
|
-
const progress = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses.find((x) => x.ProgressStatus === EChallengeProgressStatus.InProgress);
|
|
437
|
-
if (!this.checkAttrs()) {
|
|
462
|
+
if (!this.checkAttrs() && this.challenge) {
|
|
438
463
|
const url = `${this.endpoint}/challenge/ChangeProgressStatus`;
|
|
439
|
-
const body = Object.assign(Object.assign(Object.assign({ DomainId: this.domain }, (this.session && { PlayerSessionId: this.session })), (this.userId && { InternalUserId: this.userId })), (join ? { ProgressToActivate:
|
|
464
|
+
const body = Object.assign(Object.assign(Object.assign({ DomainId: this.domain }, (this.session && { PlayerSessionId: this.session })), (this.userId && { InternalUserId: this.userId })), (join ? { ProgressToActivate: this.challenge.Id } : { ProgressToDeactivate: this.challenge.Id }));
|
|
440
465
|
this.actionLoading = true;
|
|
441
466
|
return fetch(url, {
|
|
442
467
|
method: 'POST',
|
|
@@ -454,7 +479,7 @@ const CasinoChallengeCard = class {
|
|
|
454
479
|
}
|
|
455
480
|
render() {
|
|
456
481
|
var _a, _b, _c, _d;
|
|
457
|
-
return (h("div", { key: '
|
|
482
|
+
return (h("div", { key: '9e7fac60f8b832183578ec00e6e88e37ab4a4d41', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'a044740c3586e9151dfe38c50c51ada830622316', class: "card", onClick: this.goToDetailsPage }, h("img", { key: '25dd98c358074160ad4f32241deb5f99c30829ed', class: `card__image ${this.isChallengeGrayed}`, src: (_b = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.ChallengePresentation) === null || _b === void 0 ? void 0 : _b.BannerUrl }), this.getCardBadge, this.challenge.IsNew && this.renderNewLabel(), h("div", { key: '9236700fe41744ccfd78d16364dfb49eff350926', class: "card__content" }, h("h1", { key: 'c4207cf505d6fa57ab61dd4142c7bcfccc981a02', class: "card__title" }, (_d = (_c = this.challenge) === null || _c === void 0 ? void 0 : _c.ChallengePresentation) === null || _d === void 0 ? void 0 : _d.PresentationName), this.getChallengeProgress, this.infoItems.map((x, index) => this.renderInfoItem(x, index)), this.getCardButton))));
|
|
458
483
|
}
|
|
459
484
|
static get watchers() { return {
|
|
460
485
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -634,7 +659,7 @@ const translate$1 = (key, customLang) => {
|
|
|
634
659
|
return TRANSLATIONS$1[lang !== undefined && lang in TRANSLATIONS$1 ? lang : DEFAULT_LANGUAGE$1][key];
|
|
635
660
|
};
|
|
636
661
|
|
|
637
|
-
const casinoChallengesListCss = ".empty {\n color: var(--emw--color-gray-50, #E2E2E2);\n padding: 80px 0 0;\n display: flex;\n gap: 12px;\n flex-direction: column;\n align-items: center;\n line-height: 24px;\n font-size: var(--emw--font-size-medium, 16px);\n text-align: center;\n}\n.empty img {\n height: 38px;\n margin-bottom: 18px;\n}\n\n.challenges-list {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 30px;\n width: 100%;\n}\n@container challenges-container (max-width: 670px) {\n .challenges-list .list-item {\n width: 100%;\n }\n}\n\n.loader {\n width: 308px;\n border-radius: 16px;\n border: 2px solid var(--emw--button-border-color, rgba(221, 255, 207, 0.1019607843));\n background-color: var(--emw--color-background, #141515);\n box-sizing: border-box;\n position: relative;\n}\n@container challenges-container (max-width: 576px) {\n .loader {\n width: 100%;\n }\n}\n.loader:hover {\n background: linear-gradient(90deg, rgb(0, 62, 92) 0%, rgb(17, 59, 33) 100%);\n cursor: pointer;\n}\n.loader .SkeletonRows .SkeletonContainer {\n padding: 0 20px 0 20px;\n}\n.loader .SkeletonButton .Skeleton.
|
|
662
|
+
const casinoChallengesListCss = ".empty {\n color: var(--emw--color-gray-50, #E2E2E2);\n padding: 80px 0 0;\n display: flex;\n gap: 12px;\n flex-direction: column;\n align-items: center;\n line-height: 24px;\n font-size: var(--emw--font-size-medium, 16px);\n text-align: center;\n}\n.empty img {\n height: 38px;\n margin-bottom: 18px;\n}\n\n.challenges-list {\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n gap: 30px;\n width: 100%;\n}\n@container challenges-container (max-width: 670px) {\n .challenges-list .list-item {\n width: 100%;\n }\n}\n\n.loader {\n width: 308px;\n border-radius: 16px;\n border: 2px solid var(--emw--button-border-color, rgba(221, 255, 207, 0.1019607843));\n background-color: var(--emw--color-background, #141515);\n box-sizing: border-box;\n position: relative;\n}\n@container challenges-container (max-width: 576px) {\n .loader {\n width: 100%;\n }\n}\n.loader:hover {\n background: linear-gradient(90deg, rgb(0, 62, 92) 0%, rgb(17, 59, 33) 100%);\n cursor: pointer;\n}\n.loader .SkeletonRows .SkeletonContainer {\n padding: 0 20px 0 20px;\n}\n.loader .SkeletonButton .Skeleton.SkeletonText {\n margin: 0;\n height: 28px;\n margin: 0 20px 20px 20px;\n border-radius: var(--emw--button-border-radius, 99px);\n width: auto;\n}\n.loader .Skeleton.SkeletonImage {\n border-radius: 16px 16px 0 0;\n}\n.loader .Skeleton.SkeletonText {\n margin: 20px 0;\n}";
|
|
638
663
|
const CasinoChallengesListStyle0 = casinoChallengesListCss;
|
|
639
664
|
|
|
640
665
|
const skeletons$1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
@@ -3124,7 +3149,7 @@ const CasinoChallengesPlayerHistory = class {
|
|
|
3124
3149
|
};
|
|
3125
3150
|
CasinoChallengesPlayerHistory.style = CasinoChallengesPlayerHistoryStyle0;
|
|
3126
3151
|
|
|
3127
|
-
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.
|
|
3152
|
+
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
|
|
3128
3153
|
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
3129
3154
|
|
|
3130
3155
|
const UiSkeleton = class {
|
|
@@ -3138,7 +3163,7 @@ const UiSkeleton = class {
|
|
|
3138
3163
|
marginTop: this.handleStylingProps(this.marginTop),
|
|
3139
3164
|
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
3140
3165
|
marginRight: this.handleStylingProps(this.marginRight),
|
|
3141
|
-
size: this.handleStylingProps(this.size)
|
|
3166
|
+
size: this.handleStylingProps(this.size),
|
|
3142
3167
|
};
|
|
3143
3168
|
this.structure = undefined;
|
|
3144
3169
|
this.width = 'unset';
|
|
@@ -3195,22 +3220,22 @@ const UiSkeleton = class {
|
|
|
3195
3220
|
}
|
|
3196
3221
|
}
|
|
3197
3222
|
renderLogo() {
|
|
3198
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: '
|
|
3223
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonLogo ' + (this.animation ? 'Skeleton' : '') })));
|
|
3199
3224
|
}
|
|
3200
3225
|
renderImage() {
|
|
3201
|
-
return h("div", { class: '
|
|
3226
|
+
return h("div", { class: 'SkeletonImage ' + (this.animation ? 'Skeleton' : '') });
|
|
3202
3227
|
}
|
|
3203
3228
|
renderTitle() {
|
|
3204
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: '
|
|
3229
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonTitle ' + (this.animation ? 'Skeleton' : '') })));
|
|
3205
3230
|
}
|
|
3206
3231
|
renderText() {
|
|
3207
|
-
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: '
|
|
3232
|
+
return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'SkeletonText ' + (this.animation ? 'Skeleton' : '') })))));
|
|
3208
3233
|
}
|
|
3209
3234
|
renderRectangle() {
|
|
3210
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: '
|
|
3235
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonRectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
3211
3236
|
}
|
|
3212
3237
|
renderCircle() {
|
|
3213
|
-
return (h("div", { class: "SkeletonContainer" }, h("div", { class: '
|
|
3238
|
+
return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'SkeletonCircle ' + (this.animation ? 'Skeleton' : '') })));
|
|
3214
3239
|
}
|
|
3215
3240
|
render() {
|
|
3216
3241
|
let styleBlock = '';
|
|
@@ -3290,7 +3315,7 @@ const UiSkeleton = class {
|
|
|
3290
3315
|
default:
|
|
3291
3316
|
styleBlock = '';
|
|
3292
3317
|
}
|
|
3293
|
-
return (h(Host, { key: '
|
|
3318
|
+
return (h(Host, { key: 'c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8' }, h("style", { key: '9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19' }, styleBlock), this.handleStructure(this.structure)));
|
|
3294
3319
|
}
|
|
3295
3320
|
static get watchers() { return {
|
|
3296
3321
|
"structure": ["handleStructureChange"]
|
package/dist/esm/{casino-challenges-container-254099ff.js → casino-challenges-container-bb64adfe.js}
RENAMED
|
@@ -205,6 +205,11 @@ const CasinoChallengesContainer = class {
|
|
|
205
205
|
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
handleSessionChange(newValue, oldValue) {
|
|
209
|
+
if (newValue != oldValue) {
|
|
210
|
+
this.loadData();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
208
213
|
async getChallenges() {
|
|
209
214
|
if (!this.checkAttrs()) {
|
|
210
215
|
const path = this.activeTabIndex === 2 ? 'PlayerHistory' : 'GetChallengesInfo';
|
|
@@ -272,12 +277,13 @@ const CasinoChallengesContainer = class {
|
|
|
272
277
|
}
|
|
273
278
|
}
|
|
274
279
|
render() {
|
|
275
|
-
return (h("div", { key: '
|
|
280
|
+
return (h("div", { key: '11584e752c3e2ef1142e9c311936561571bbf614', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '30370e99d9b0affaafb3ee2ad243c188425b9d36', class: "challenges" }, h("div", { key: '5970f5e8421f444beef8d15f27a92835dab7cfff', class: "challenges__header" }, h("h1", { key: '91cf9d253aef6717e8eae76687a3ef29a640789f', class: "challenges__title" }, h("img", { key: '6c60c3c5ef2f6f219e1cf7575d70ec621237a3c1', src: titleIconSvg, alt: "icon" }), translate('title', this.language)), this.session && (h("div", { key: 'ef180453ddd0d96738feb44e8ec0657f7a684e2c', class: "challenges__tabs" }, this.tabs.map((label, index) => (h("div", { class: `challenges__tab ${index === this.activeTabIndex ? 'active' : ''}`, onClick: this.handleTabClick(index) }, label, this.showNotification === index && h("img", { src: notificationSvg }))))))), this.renderChallengesContent(), this.notification && this.renderNotification())));
|
|
276
281
|
}
|
|
277
282
|
static get watchers() { return {
|
|
278
283
|
"clientStyling": ["handleClientStylingChange"],
|
|
279
284
|
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
280
|
-
"mbSource": ["handleMbSourceChange"]
|
|
285
|
+
"mbSource": ["handleMbSourceChange"],
|
|
286
|
+
"userId": ["handleSessionChange"]
|
|
281
287
|
}; }
|
|
282
288
|
};
|
|
283
289
|
CasinoChallengesContainer.style = CasinoChallengesContainerStyle0;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["casino-challenge-card_6",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["casino-challenge-card_6",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"userId":["handleSessionChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32],"isChallengePaused":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
20
20
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengesContainer } from './casino-challenges-container-
|
|
1
|
+
export { C as CasinoChallengesContainer } from './casino-challenges-container-bb64adfe.js';
|
|
2
2
|
import './index-7720ad93.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["casino-challenge-card_6",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["casino-challenge-card_6",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"playerHistory":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32],"notification":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"userId":["handleSessionChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"],"activeTabIndex":[514,"active-tab-index"],"isUserAuthorized":[516,"is-user-authorized"],"userId":[513,"user-id"],"endpoint":[513],"domain":[513],"session":[513]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-player-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"playerHistory":[16],"loading":[516],"hasMore":[516,"has-more"],"openItems":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"playerHistory":["handlePlayerHistoryChange"]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"activeTabIndex":[514,"active-tab-index"],"userId":[513,"user-id"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32],"isChallengePaused":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -56,6 +56,7 @@ export declare class CasinoChallengesContainer {
|
|
|
56
56
|
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
57
57
|
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
58
58
|
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
59
|
+
handleSessionChange(newValue: any, oldValue: any): void;
|
|
59
60
|
onOpenNotification: (event: CustomEvent<INotificationOptions>) => void;
|
|
60
61
|
checkAttrs: () => boolean;
|
|
61
62
|
getChallenges(): Promise<any>;
|