@everymatrix/casino-challenges-overlay-drawer 0.5.8 → 0.5.10
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-overlay-drawer/casino-challenge-details-events_21.entry.js +1 -1
- package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer-2e167783.js +1 -0
- package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.esm.js +1 -1
- package/dist/casino-challenges-overlay-drawer/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-details-events_21.cjs.entry.js +34 -30
- package/dist/cjs/{casino-challenges-overlay-drawer-d051e5c6.js → casino-challenges-overlay-drawer-9a977344.js} +14 -80
- package/dist/cjs/casino-challenges-overlay-drawer.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-overlay-drawer/casino-challenges-overlay-drawer.js +14 -15
- package/dist/collection/components/components/casino-challenge-opt-out-modal/casino-challenge-opt-out-modal.js +1 -1
- package/dist/collection/utils/locale.utils.js +1 -66
- package/dist/esm/casino-challenge-details-events_21.entry.js +37 -33
- package/dist/esm/{casino-challenges-overlay-drawer-524337b6.js → casino-challenges-overlay-drawer-2e167783.js} +14 -80
- package/dist/esm/casino-challenges-overlay-drawer.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/utils/locale.utils.d.ts +0 -1
- package/package.json +1 -1
- package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer-524337b6.js +0 -1
- package/dist/collection/assets/chevron-up.svg +0 -3
- package/dist/collection/assets/chevron.svg +0 -4
- package/dist/collection/assets/link.svg +0 -3
- package/dist/collection/assets/revert-icon.svg +0 -4
- package/dist/collection/assets/reward-gift.svg +0 -123
- package/dist/collection/assets/slot.svg +0 -59
- package/dist/collection/assets/sport.svg +0 -34
- package/dist/collection/assets/target.svg +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
3
|
import { hasUpdateDataChanged, isMobile as isMobileView } from "../../utils/utils";
|
|
4
|
-
import { resolveTranslationUrl, translate
|
|
4
|
+
import { resolveTranslationUrl, translate } from "../../utils/locale.utils";
|
|
5
5
|
import { EChallengeProgressStatus, EChallengesTabs, EChallengeStatus, EFeatureFlags, EPostMessageRequestType, EPostMessageResponseType } from "../../utils/types";
|
|
6
6
|
import crossSvg from "../../assets/cross.svg";
|
|
7
7
|
import errorIcon from "../../assets/error.svg";
|
|
@@ -11,23 +11,22 @@ import "../../../../../casino-challenges-overlay-drawer-details/dist/types/index
|
|
|
11
11
|
import "../../../../../casino-challenges-modal/dist/types/index";
|
|
12
12
|
export class CasinoChallengesOverlayDrawer {
|
|
13
13
|
constructor() {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
15
14
|
this.EMPTY_STATE_PAGE_DESCRIPTION_MAP = {
|
|
16
15
|
[EChallengesTabs.Promo]: {
|
|
17
|
-
header:
|
|
18
|
-
description:
|
|
16
|
+
header: 'promoTabEmptyHeader',
|
|
17
|
+
description: 'promoTabEmptyDescription'
|
|
19
18
|
},
|
|
20
19
|
[EChallengesTabs.Active]: {
|
|
21
|
-
header:
|
|
22
|
-
description:
|
|
20
|
+
header: 'activeTabEmptyHeader',
|
|
21
|
+
description: 'activeTabEmptyDescription'
|
|
23
22
|
},
|
|
24
23
|
[EChallengesTabs.Pending]: {
|
|
25
|
-
header:
|
|
26
|
-
description:
|
|
24
|
+
header: 'pendingTabEmptyHeader',
|
|
25
|
+
description: 'pendingTabEmptyDescription'
|
|
27
26
|
},
|
|
28
27
|
[EChallengesTabs.Finished]: {
|
|
29
|
-
header:
|
|
30
|
-
description:
|
|
28
|
+
header: 'finishedTabEmptyHeader',
|
|
29
|
+
description: 'finishedTabEmptyDescription'
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
32
|
this.onActiveChallengeChange = (e) => {
|
|
@@ -133,16 +132,16 @@ export class CasinoChallengesOverlayDrawer {
|
|
|
133
132
|
};
|
|
134
133
|
this.renderEmptyState = (isMobile) => {
|
|
135
134
|
var _a, _b;
|
|
136
|
-
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-empty-state", { header: (_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, description: (_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, "is-mobile": isMobile })));
|
|
135
|
+
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-empty-state", { header: translate((_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, this.language), description: translate((_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, this.language), "is-mobile": isMobile })));
|
|
137
136
|
};
|
|
138
137
|
this.renderFinishedTab = (isMobile) => {
|
|
139
138
|
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-overlay-drawer-history", { mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isMobile: isMobile, historyItems: this.playerHistory, hasMore: this.hasMorePlayerHistory, onLoadMore: this.onLoadMorePlayerHistory, loading: this.loading })));
|
|
140
139
|
};
|
|
141
140
|
this.renderCodeTab = (isMobile) => {
|
|
142
|
-
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile })));
|
|
141
|
+
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile, translationUrl: this.translationUrl, language: this.language })));
|
|
143
142
|
};
|
|
144
143
|
this.renderChallengeDetails = (isMobile, isUnique = false) => {
|
|
145
|
-
return (h("casino-challenges-overlay-drawer-details", { challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
|
|
144
|
+
return (h("casino-challenges-overlay-drawer-details", { translationUrl: this.translationUrl, language: this.language, challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
|
|
146
145
|
};
|
|
147
146
|
this.renderChallengesTabs = (isMobile) => {
|
|
148
147
|
const challenges = this.activeTabIndex === EChallengesTabs.Active
|
|
@@ -195,8 +194,8 @@ export class CasinoChallengesOverlayDrawer {
|
|
|
195
194
|
this.playerHistory = [];
|
|
196
195
|
this.hasMorePlayerHistory = false;
|
|
197
196
|
this.emptyState = {
|
|
198
|
-
header:
|
|
199
|
-
description:
|
|
197
|
+
header: 'activeTabEmptyHeader',
|
|
198
|
+
description: 'activeTabEmptyDescription'
|
|
200
199
|
};
|
|
201
200
|
}
|
|
202
201
|
handleClientStylingChange(newValue, oldValue) {
|
|
@@ -17,7 +17,7 @@ export class CasinoChallengeDetailsOptOut {
|
|
|
17
17
|
this.open = false;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutIcon, height: 20, width: 20 })), h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, translate('optOutModalTitle', this.language))), h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, translate('
|
|
20
|
+
return (h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutIcon, height: 20, width: 20 })), h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, translate('optOutModalTitle', this.language))), h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, translate('optOutModalDescription', this.language))), h("div", { key: '34e1e80b7a2435c28788aafea072adba10aff836', class: "modal-footer", slot: "footer" }, h("button", { key: '8a476048cdc8c297f9bba9174c85555e58362204', class: "modal-footer-button confirm", onClick: this.handleCloseOptOut }, translate('optOutModalCancel', this.language)), h("button", { key: 'e993c82f39a4ce6d6faa7581c11b3edde33d04f6', class: "modal-footer-button cancel", onClick: this.handleConfirmOptOut }, translate('optOutModalConfirm', this.language)))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "casino-challenge-opt-out-modal"; }
|
|
23
23
|
static get originalStyleUrls() {
|
|
@@ -6,12 +6,7 @@ export const TRANSLATIONS = {
|
|
|
6
6
|
active: 'Active',
|
|
7
7
|
pendingTab: 'Pending',
|
|
8
8
|
finishedTab: 'Finished',
|
|
9
|
-
levels: 'Levels',
|
|
10
9
|
level: 'Level',
|
|
11
|
-
seeAll: 'See All',
|
|
12
|
-
games: 'Games',
|
|
13
|
-
rules: 'Rules',
|
|
14
|
-
events: 'Events',
|
|
15
10
|
codeTab: 'Code',
|
|
16
11
|
endsIn: 'Ends In',
|
|
17
12
|
expired: 'Expired',
|
|
@@ -25,71 +20,15 @@ export const TRANSLATIONS = {
|
|
|
25
20
|
suspended: 'Suspended',
|
|
26
21
|
completed: 'Completed',
|
|
27
22
|
unavailable: 'Unavailable',
|
|
28
|
-
optIn: 'Opt In',
|
|
29
|
-
optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
|
|
30
|
-
optOutLeavingActionText: 'Opt out of Challenge',
|
|
31
23
|
optOutModalTitle: 'Opt out of challenge?',
|
|
32
|
-
|
|
24
|
+
optOutModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
|
|
33
25
|
optOutModalConfirm: 'Opt Out',
|
|
34
26
|
optOutModalCancel: 'Cancel',
|
|
35
27
|
optOutSuccessMessage: 'You’ve opted out of the challenge.',
|
|
36
|
-
resume: 'Resume',
|
|
37
|
-
pause: 'Pause',
|
|
38
|
-
join: 'Join to Start',
|
|
39
28
|
deposit: 'Deposit',
|
|
40
|
-
launchGame: 'Launch Game',
|
|
41
|
-
launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
|
|
42
29
|
depositAmountDescription: 'to unlock the Challenge',
|
|
43
30
|
noDepositAmountDescription: 'Deposit any amount to unlock the Challenge',
|
|
44
|
-
claimByButton: 'Claim',
|
|
45
|
-
claimDescription: 'Click Claim button to unlock the Challenge',
|
|
46
|
-
resumeDescription: 'Your progress is saved while Challenge is suspended',
|
|
47
|
-
optInDescription: 'You are ready to opt-in!',
|
|
48
|
-
pausedDescription: 'Your progress is saved while Challenge is paused',
|
|
49
|
-
congrats: 'Congratulations!',
|
|
50
|
-
forfeitNotification: 'Unfortunately, your progress has been forfeited, and you are no longer eligible to continue this challenge. Check out other available challenges!',
|
|
51
|
-
optedOutNotification: 'You’ve left this challenge. Your progress has been lost, and rejoining is no longer possible. Discover other available challenges.',
|
|
52
|
-
completedNofitication: "You've successfully completed this challenge! Explore the next one and keep playing to earn more rewards!",
|
|
53
|
-
expiredNotification: 'Unfortunately, this challenge has expired and is no longer available to complete. Try another one that’s still active!',
|
|
54
|
-
pendingDescription: "You can join this challenge once you've finished the previous progress in the Active tab",
|
|
55
31
|
terms: 'Terms & Conditions',
|
|
56
|
-
readFullTerms: 'Read full Terms & Conditions',
|
|
57
|
-
contribution: 'contribution',
|
|
58
|
-
endDate: 'End Date',
|
|
59
|
-
back: 'Back',
|
|
60
|
-
all: 'All Challenges',
|
|
61
|
-
sports: 'Sports',
|
|
62
|
-
casino: 'Casino',
|
|
63
|
-
contributionType: 'Contribution Type',
|
|
64
|
-
contributionRule: 'Contribution Rule',
|
|
65
|
-
isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
|
|
66
|
-
isNotContributeToOne: 'Bets contribute to all started challenges',
|
|
67
|
-
bonusMoney: 'Bonus Money',
|
|
68
|
-
realMoney: 'Real Money',
|
|
69
|
-
mixedMoney: 'Real and Bonus Money contribution',
|
|
70
|
-
defaultRule: 'All events - ',
|
|
71
|
-
fundsUsed: 'Funds Used',
|
|
72
|
-
sportsbookRealMoney: 'Only Real Money bets can contribute',
|
|
73
|
-
sportsbookBonusMoney: 'Only Bonus bets can contribute',
|
|
74
|
-
sportsbookMixMoney: 'Both Real Money and Bonus bets can contribute',
|
|
75
|
-
eligibleMatchTypes: 'Eligible Match Types',
|
|
76
|
-
preLiveMatchType: 'Only Pre-Match bets can contribute',
|
|
77
|
-
liveMatchType: 'Only Live bets can contribute',
|
|
78
|
-
mixMatchType: 'Both Pre-Match and Live bets can contribute',
|
|
79
|
-
eligibleBetTypes: 'Eligible Bet Types',
|
|
80
|
-
single: 'Single',
|
|
81
|
-
multi: 'Multi/Combi',
|
|
82
|
-
betBuilder: 'Only Bet Builder Bets',
|
|
83
|
-
nonBetBuilder: 'Only Non-Bet Builder Bets',
|
|
84
|
-
mixBetBuilder: 'Bet Builder & Non-Bet Builder Bets',
|
|
85
|
-
system: 'System',
|
|
86
|
-
banker: 'Only Banker Bets',
|
|
87
|
-
nonBanker: 'Only Non-Banker Bets',
|
|
88
|
-
mixBanker: 'Banker & Non-Banker Bets',
|
|
89
|
-
oddsPerSection: 'Odds per Selection',
|
|
90
|
-
totalOdds: 'Total Odds',
|
|
91
|
-
totalLevels: 'Total Levels',
|
|
92
|
-
selections: 'Selections',
|
|
93
32
|
time: 'time',
|
|
94
33
|
times: 'times',
|
|
95
34
|
winStakeRatio: 'Win/Stake Ratio',
|
|
@@ -101,7 +40,6 @@ export const TRANSLATIONS = {
|
|
|
101
40
|
pendingTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
102
41
|
finishedTabEmptyHeader: 'No finished challenges yet',
|
|
103
42
|
finishedTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
104
|
-
yourProgress: 'Your Progress',
|
|
105
43
|
claimCodeTitle: 'Enter the secret code to unlock hidden quests and rewards.',
|
|
106
44
|
claimCodeSuccessMessage: 'The code was successfully applied.',
|
|
107
45
|
claimCodeInputLabel: '3–30 characters, no spaces',
|
|
@@ -110,9 +48,6 @@ export const TRANSLATIONS = {
|
|
|
110
48
|
claimCodeDescription: 'Enter code to unlock the challenge',
|
|
111
49
|
status: 'Status',
|
|
112
50
|
grantClaimByButtonSuccessMessage: 'Challenge has been triggered successfully and is now available on the Active tab'
|
|
113
|
-
},
|
|
114
|
-
da: {
|
|
115
|
-
title: ''
|
|
116
51
|
}
|
|
117
52
|
};
|
|
118
53
|
export const translate = (key, customLang) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-25fd45d2.js';
|
|
2
|
-
import { E as EHistoryItemLevelStatus$1, t as translate$2, H as HistoryItemLevelStatusDictionary, a as EPostMessageRequestType$1, s as setClientStyling, b as setClientStylingURL, c as setStreamStyling, r as resolveTranslationUrl$
|
|
3
|
-
export { C as casino_challenges_overlay_drawer } from './casino-challenges-overlay-drawer-
|
|
2
|
+
import { E as EHistoryItemLevelStatus$1, t as translate$2, H as HistoryItemLevelStatusDictionary, a as EPostMessageRequestType$1, s as setClientStyling, b as setClientStylingURL, c as setStreamStyling, r as resolveTranslationUrl$2, d as EChallengesTabs$1, e as EFeatureFlags } from './casino-challenges-overlay-drawer-2e167783.js';
|
|
3
|
+
export { C as casino_challenges_overlay_drawer } from './casino-challenges-overlay-drawer-2e167783.js';
|
|
4
4
|
|
|
5
5
|
function _typeof(o) {
|
|
6
6
|
"@babel/helpers - typeof";
|
|
@@ -2201,18 +2201,11 @@ function cleanEscapedString(input) {
|
|
|
2201
2201
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
2202
2202
|
const TRANSLATIONS$1 = {
|
|
2203
2203
|
en: {
|
|
2204
|
-
title: 'Challenges',
|
|
2205
|
-
promo: 'Promo',
|
|
2206
|
-
active: 'Active',
|
|
2207
|
-
pendingTab: 'Pending',
|
|
2208
|
-
finishedTab: 'Finished',
|
|
2209
2204
|
levels: 'Levels',
|
|
2210
|
-
level: 'Level',
|
|
2211
2205
|
seeAll: 'See All',
|
|
2212
2206
|
games: 'Games',
|
|
2213
2207
|
rules: 'Rules',
|
|
2214
2208
|
events: 'Events',
|
|
2215
|
-
codeTab: 'Code',
|
|
2216
2209
|
endsIn: 'Ends In',
|
|
2217
2210
|
expired: 'Expired',
|
|
2218
2211
|
placeBetsOf: 'Place bets of',
|
|
@@ -2228,13 +2221,8 @@ const TRANSLATIONS$1 = {
|
|
|
2228
2221
|
optIn: 'Opt In',
|
|
2229
2222
|
optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
|
|
2230
2223
|
optOutLeavingActionText: 'Opt out of Challenge',
|
|
2231
|
-
optOutModalTitle: 'Opt out of challenge?',
|
|
2232
|
-
optOudModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
|
|
2233
|
-
optOutModalConfirm: 'Opt Out',
|
|
2234
|
-
optOutModalCancel: 'Cancel',
|
|
2235
2224
|
resume: 'Resume',
|
|
2236
2225
|
pause: 'Pause',
|
|
2237
|
-
join: 'Join to Start',
|
|
2238
2226
|
deposit: 'Deposit',
|
|
2239
2227
|
launchGame: 'Launch Game',
|
|
2240
2228
|
launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
|
|
@@ -2255,8 +2243,6 @@ const TRANSLATIONS$1 = {
|
|
|
2255
2243
|
readFullTerms: 'Read full Terms & Conditions',
|
|
2256
2244
|
contribution: 'contribution',
|
|
2257
2245
|
endDate: 'End Date',
|
|
2258
|
-
back: 'Back',
|
|
2259
|
-
all: 'All Challenges',
|
|
2260
2246
|
sports: 'Sports',
|
|
2261
2247
|
casino: 'Casino',
|
|
2262
2248
|
contributionType: 'Contribution Type',
|
|
@@ -2292,24 +2278,38 @@ const TRANSLATIONS$1 = {
|
|
|
2292
2278
|
time: 'time',
|
|
2293
2279
|
times: 'times',
|
|
2294
2280
|
winStakeRatio: 'Win/Stake Ratio',
|
|
2295
|
-
promoTabEmptyHeader: 'Nothing here - yet!',
|
|
2296
|
-
promoTabEmptyDescription: 'No challenges at the moment. Try exploring events or keep playing to unlock new ones.',
|
|
2297
|
-
activeTabEmptyHeader: 'No active challenges yet',
|
|
2298
|
-
activeTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
2299
|
-
pendingTabEmptyHeader: 'No pending challenges yet',
|
|
2300
|
-
pendingTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
2301
|
-
finishedTabEmptyHeader: 'No finished challenges yet',
|
|
2302
|
-
finishedTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
2303
2281
|
yourProgress: 'Your Progress'
|
|
2304
|
-
},
|
|
2305
|
-
da: {
|
|
2306
|
-
title: ''
|
|
2307
2282
|
}
|
|
2308
2283
|
};
|
|
2309
2284
|
const translate$1 = (key, customLang) => {
|
|
2310
2285
|
const lang = customLang;
|
|
2311
2286
|
return TRANSLATIONS$1[lang !== undefined && lang in TRANSLATIONS$1 ? lang : DEFAULT_LANGUAGE$1][key];
|
|
2312
2287
|
};
|
|
2288
|
+
const getTranslations$1 = (data) => {
|
|
2289
|
+
Object.keys(data).forEach((item) => {
|
|
2290
|
+
if (!TRANSLATIONS$1[item]) {
|
|
2291
|
+
TRANSLATIONS$1[item] = {};
|
|
2292
|
+
}
|
|
2293
|
+
for (let key in data[item]) {
|
|
2294
|
+
TRANSLATIONS$1[item][key] = data[item][key];
|
|
2295
|
+
}
|
|
2296
|
+
});
|
|
2297
|
+
};
|
|
2298
|
+
const resolveTranslationUrl$1 = async (translationUrl) => {
|
|
2299
|
+
if (translationUrl) {
|
|
2300
|
+
try {
|
|
2301
|
+
const response = await fetch(translationUrl);
|
|
2302
|
+
if (!response.ok) {
|
|
2303
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
2304
|
+
}
|
|
2305
|
+
const translations = await response.json();
|
|
2306
|
+
getTranslations$1(translations);
|
|
2307
|
+
}
|
|
2308
|
+
catch (error) {
|
|
2309
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
};
|
|
2313
2313
|
|
|
2314
2314
|
const casinoChallengeDetailsEventsCss = ".Mobile.events-tab{margin-top:16px}.Mobile.events-tab .event{font-size:var(--emw--font-size-small, 14px)}.events-tab{display:none;margin-top:16px;flex-direction:column;overflow-y:auto;transform:translateX(10000px);animation:slideFromRight 0.25s forwards;gap:20px;height:auto;max-height:initial}.events-tab .event{color:var(--emw--color-event-rule, rgba(255, 255, 255, 0.7019607843));font-weight:var(--emw--font-weight-normal, 400);margin:0;font-size:var(--emw--font-size-medium, 16px)}.events-tab .event span{text-transform:capitalize;color:var(--emw--color-white, white);font-weight:var(--emw--font-weight-medium, 500)}.events-tab.visible{display:flex}@keyframes slideFromRight{from{transform:translateX(700px)}to{transform:translateX(0)}}";
|
|
2315
2315
|
const CasinoChallengeDetailsEventsStyle0 = casinoChallengeDetailsEventsCss;
|
|
@@ -2973,7 +2973,7 @@ const CasinoChallengeDetailsOptOut$1 = class {
|
|
|
2973
2973
|
this.open = false;
|
|
2974
2974
|
}
|
|
2975
2975
|
render() {
|
|
2976
|
-
return (h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutSvg, height: 20, width: 20 })), h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, translate$2('optOutModalTitle', this.language))), h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, translate$2('
|
|
2976
|
+
return (h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutSvg, height: 20, width: 20 })), h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, translate$2('optOutModalTitle', this.language))), h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, translate$2('optOutModalDescription', this.language))), h("div", { key: '34e1e80b7a2435c28788aafea072adba10aff836', class: "modal-footer", slot: "footer" }, h("button", { key: '8a476048cdc8c297f9bba9174c85555e58362204', class: "modal-footer-button confirm", onClick: this.handleCloseOptOut }, translate$2('optOutModalCancel', this.language)), h("button", { key: 'e993c82f39a4ce6d6faa7581c11b3edde33d04f6', class: "modal-footer-button cancel", onClick: this.handleConfirmOptOut }, translate$2('optOutModalConfirm', this.language)))));
|
|
2977
2977
|
}
|
|
2978
2978
|
};
|
|
2979
2979
|
CasinoChallengeDetailsOptOut$1.style = CasinoChallengeOptOutModalStyle0;
|
|
@@ -3047,7 +3047,7 @@ const CasinoChallengesClaimCode = class {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
componentWillLoad() {
|
|
3049
3049
|
if (this.translationUrl) {
|
|
3050
|
-
resolveTranslationUrl$
|
|
3050
|
+
resolveTranslationUrl$2(this.translationUrl);
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
3053
|
componentDidLoad() {
|
|
@@ -3662,8 +3662,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
|
|
|
3662
3662
|
this.mbSource = undefined;
|
|
3663
3663
|
this.clientStyling = undefined;
|
|
3664
3664
|
this.clientStylingUrl = undefined;
|
|
3665
|
-
this.
|
|
3665
|
+
this.translationUrl = '';
|
|
3666
3666
|
this.language = 'en';
|
|
3667
|
+
this.challenge = undefined;
|
|
3667
3668
|
this.isMobile = false;
|
|
3668
3669
|
this.isUnique = false;
|
|
3669
3670
|
this.swipped = false;
|
|
@@ -3730,6 +3731,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
|
|
|
3730
3731
|
}, 1000);
|
|
3731
3732
|
}
|
|
3732
3733
|
componentWillLoad() {
|
|
3734
|
+
if (this.translationUrl) {
|
|
3735
|
+
resolveTranslationUrl$1(this.translationUrl);
|
|
3736
|
+
}
|
|
3733
3737
|
this.updateTime();
|
|
3734
3738
|
this.onChallengeChange(this.challenge);
|
|
3735
3739
|
}
|
|
@@ -3907,7 +3911,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
|
|
|
3907
3911
|
var _a, _b;
|
|
3908
3912
|
const fullScreen = (this.swipping && this.progress > 0) || ((_a = this.detailsSubPageInfo) === null || _a === void 0 ? void 0 : _a.open);
|
|
3909
3913
|
const footerIsVisible = !this.isMobile || (this.isMobile && fullScreen);
|
|
3910
|
-
return (h("div", { key: '
|
|
3914
|
+
return (h("div", { key: 'b6b5dfc2777b5a4b1e1557166e1dca5aa2aa4f37', class: {
|
|
3911
3915
|
Mobile: this.isMobile,
|
|
3912
3916
|
swipped: (this.isMobile && this.swipping && this.progress > 0) || !this.isMobile,
|
|
3913
3917
|
moved: this.progress > 0,
|
|
@@ -3985,7 +3989,7 @@ const CasinoChallengesOverlayDrawerHistory = class {
|
|
|
3985
3989
|
}
|
|
3986
3990
|
componentWillLoad() {
|
|
3987
3991
|
if (this.translationUrl) {
|
|
3988
|
-
resolveTranslationUrl$
|
|
3992
|
+
resolveTranslationUrl$2(this.translationUrl);
|
|
3989
3993
|
}
|
|
3990
3994
|
}
|
|
3991
3995
|
componentDidLoad() {
|
|
@@ -4285,7 +4289,7 @@ const CasinoChallengesOverlaySlider = class {
|
|
|
4285
4289
|
return this.currentIndex - 1;
|
|
4286
4290
|
}
|
|
4287
4291
|
render() {
|
|
4288
|
-
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight }))))), this.challenges.length > 1 && (h("div", { key: '
|
|
4292
|
+
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight, language: this.language }))))), this.challenges.length > 1 && (h("div", { key: '39fd37d72070c1198959a61f35a3e4d19088c4a6' }, h("button", { key: 'e58364a6f329ba4998ca35b820fcecfc4e276efc', class: "action-button action-button--prev", onClick: this.prev }, h("img", { key: '725c48c629a64d7bc2121483c3f2967bac303297', src: leftArrowSvg, alt: "" })), h("button", { key: 'd14196ca0fd4de90f57ed0c97d844a88e1c980cf', class: "action-button action-button--next", onClick: this.next }, h("img", { key: '428c63a8b2e1d040e06da89d371c648d3e01c5f7', src: rightArrowSvg, alt: "" })), h("div", { key: '8bd9ffb15115b1a785e9967dc129187e9c6793fe', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (h("span", { class: {
|
|
4289
4293
|
'challenges__slider-dot': true,
|
|
4290
4294
|
active: i === this.getRealIndex()
|
|
4291
4295
|
}, onClick: () => {
|
|
@@ -152,12 +152,7 @@ const TRANSLATIONS = {
|
|
|
152
152
|
active: 'Active',
|
|
153
153
|
pendingTab: 'Pending',
|
|
154
154
|
finishedTab: 'Finished',
|
|
155
|
-
levels: 'Levels',
|
|
156
155
|
level: 'Level',
|
|
157
|
-
seeAll: 'See All',
|
|
158
|
-
games: 'Games',
|
|
159
|
-
rules: 'Rules',
|
|
160
|
-
events: 'Events',
|
|
161
156
|
codeTab: 'Code',
|
|
162
157
|
endsIn: 'Ends In',
|
|
163
158
|
expired: 'Expired',
|
|
@@ -171,71 +166,15 @@ const TRANSLATIONS = {
|
|
|
171
166
|
suspended: 'Suspended',
|
|
172
167
|
completed: 'Completed',
|
|
173
168
|
unavailable: 'Unavailable',
|
|
174
|
-
optIn: 'Opt In',
|
|
175
|
-
optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
|
|
176
|
-
optOutLeavingActionText: 'Opt out of Challenge',
|
|
177
169
|
optOutModalTitle: 'Opt out of challenge?',
|
|
178
|
-
|
|
170
|
+
optOutModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
|
|
179
171
|
optOutModalConfirm: 'Opt Out',
|
|
180
172
|
optOutModalCancel: 'Cancel',
|
|
181
173
|
optOutSuccessMessage: 'You’ve opted out of the challenge.',
|
|
182
|
-
resume: 'Resume',
|
|
183
|
-
pause: 'Pause',
|
|
184
|
-
join: 'Join to Start',
|
|
185
174
|
deposit: 'Deposit',
|
|
186
|
-
launchGame: 'Launch Game',
|
|
187
|
-
launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
|
|
188
175
|
depositAmountDescription: 'to unlock the Challenge',
|
|
189
176
|
noDepositAmountDescription: 'Deposit any amount to unlock the Challenge',
|
|
190
|
-
claimByButton: 'Claim',
|
|
191
|
-
claimDescription: 'Click Claim button to unlock the Challenge',
|
|
192
|
-
resumeDescription: 'Your progress is saved while Challenge is suspended',
|
|
193
|
-
optInDescription: 'You are ready to opt-in!',
|
|
194
|
-
pausedDescription: 'Your progress is saved while Challenge is paused',
|
|
195
|
-
congrats: 'Congratulations!',
|
|
196
|
-
forfeitNotification: 'Unfortunately, your progress has been forfeited, and you are no longer eligible to continue this challenge. Check out other available challenges!',
|
|
197
|
-
optedOutNotification: 'You’ve left this challenge. Your progress has been lost, and rejoining is no longer possible. Discover other available challenges.',
|
|
198
|
-
completedNofitication: "You've successfully completed this challenge! Explore the next one and keep playing to earn more rewards!",
|
|
199
|
-
expiredNotification: 'Unfortunately, this challenge has expired and is no longer available to complete. Try another one that’s still active!',
|
|
200
|
-
pendingDescription: "You can join this challenge once you've finished the previous progress in the Active tab",
|
|
201
177
|
terms: 'Terms & Conditions',
|
|
202
|
-
readFullTerms: 'Read full Terms & Conditions',
|
|
203
|
-
contribution: 'contribution',
|
|
204
|
-
endDate: 'End Date',
|
|
205
|
-
back: 'Back',
|
|
206
|
-
all: 'All Challenges',
|
|
207
|
-
sports: 'Sports',
|
|
208
|
-
casino: 'Casino',
|
|
209
|
-
contributionType: 'Contribution Type',
|
|
210
|
-
contributionRule: 'Contribution Rule',
|
|
211
|
-
isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
|
|
212
|
-
isNotContributeToOne: 'Bets contribute to all started challenges',
|
|
213
|
-
bonusMoney: 'Bonus Money',
|
|
214
|
-
realMoney: 'Real Money',
|
|
215
|
-
mixedMoney: 'Real and Bonus Money contribution',
|
|
216
|
-
defaultRule: 'All events - ',
|
|
217
|
-
fundsUsed: 'Funds Used',
|
|
218
|
-
sportsbookRealMoney: 'Only Real Money bets can contribute',
|
|
219
|
-
sportsbookBonusMoney: 'Only Bonus bets can contribute',
|
|
220
|
-
sportsbookMixMoney: 'Both Real Money and Bonus bets can contribute',
|
|
221
|
-
eligibleMatchTypes: 'Eligible Match Types',
|
|
222
|
-
preLiveMatchType: 'Only Pre-Match bets can contribute',
|
|
223
|
-
liveMatchType: 'Only Live bets can contribute',
|
|
224
|
-
mixMatchType: 'Both Pre-Match and Live bets can contribute',
|
|
225
|
-
eligibleBetTypes: 'Eligible Bet Types',
|
|
226
|
-
single: 'Single',
|
|
227
|
-
multi: 'Multi/Combi',
|
|
228
|
-
betBuilder: 'Only Bet Builder Bets',
|
|
229
|
-
nonBetBuilder: 'Only Non-Bet Builder Bets',
|
|
230
|
-
mixBetBuilder: 'Bet Builder & Non-Bet Builder Bets',
|
|
231
|
-
system: 'System',
|
|
232
|
-
banker: 'Only Banker Bets',
|
|
233
|
-
nonBanker: 'Only Non-Banker Bets',
|
|
234
|
-
mixBanker: 'Banker & Non-Banker Bets',
|
|
235
|
-
oddsPerSection: 'Odds per Selection',
|
|
236
|
-
totalOdds: 'Total Odds',
|
|
237
|
-
totalLevels: 'Total Levels',
|
|
238
|
-
selections: 'Selections',
|
|
239
178
|
time: 'time',
|
|
240
179
|
times: 'times',
|
|
241
180
|
winStakeRatio: 'Win/Stake Ratio',
|
|
@@ -247,7 +186,6 @@ const TRANSLATIONS = {
|
|
|
247
186
|
pendingTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
248
187
|
finishedTabEmptyHeader: 'No finished challenges yet',
|
|
249
188
|
finishedTabEmptyDescription: 'Check Promo tab to find available offers',
|
|
250
|
-
yourProgress: 'Your Progress',
|
|
251
189
|
claimCodeTitle: 'Enter the secret code to unlock hidden quests and rewards.',
|
|
252
190
|
claimCodeSuccessMessage: 'The code was successfully applied.',
|
|
253
191
|
claimCodeInputLabel: '3–30 characters, no spaces',
|
|
@@ -256,9 +194,6 @@ const TRANSLATIONS = {
|
|
|
256
194
|
claimCodeDescription: 'Enter code to unlock the challenge',
|
|
257
195
|
status: 'Status',
|
|
258
196
|
grantClaimByButtonSuccessMessage: 'Challenge has been triggered successfully and is now available on the Active tab'
|
|
259
|
-
},
|
|
260
|
-
da: {
|
|
261
|
-
title: ''
|
|
262
197
|
}
|
|
263
198
|
};
|
|
264
199
|
const translate = (key, customLang) => {
|
|
@@ -461,23 +396,22 @@ const CasinoChallengesOverlayDrawerStyle0 = casinoChallengesOverlayDrawerCss;
|
|
|
461
396
|
const CasinoChallengesOverlayDrawer = class {
|
|
462
397
|
constructor(hostRef) {
|
|
463
398
|
registerInstance(this, hostRef);
|
|
464
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
465
399
|
this.EMPTY_STATE_PAGE_DESCRIPTION_MAP = {
|
|
466
400
|
[EChallengesTabs.Promo]: {
|
|
467
|
-
header:
|
|
468
|
-
description:
|
|
401
|
+
header: 'promoTabEmptyHeader',
|
|
402
|
+
description: 'promoTabEmptyDescription'
|
|
469
403
|
},
|
|
470
404
|
[EChallengesTabs.Active]: {
|
|
471
|
-
header:
|
|
472
|
-
description:
|
|
405
|
+
header: 'activeTabEmptyHeader',
|
|
406
|
+
description: 'activeTabEmptyDescription'
|
|
473
407
|
},
|
|
474
408
|
[EChallengesTabs.Pending]: {
|
|
475
|
-
header:
|
|
476
|
-
description:
|
|
409
|
+
header: 'pendingTabEmptyHeader',
|
|
410
|
+
description: 'pendingTabEmptyDescription'
|
|
477
411
|
},
|
|
478
412
|
[EChallengesTabs.Finished]: {
|
|
479
|
-
header:
|
|
480
|
-
description:
|
|
413
|
+
header: 'finishedTabEmptyHeader',
|
|
414
|
+
description: 'finishedTabEmptyDescription'
|
|
481
415
|
}
|
|
482
416
|
};
|
|
483
417
|
this.onActiveChallengeChange = (e) => {
|
|
@@ -583,16 +517,16 @@ const CasinoChallengesOverlayDrawer = class {
|
|
|
583
517
|
};
|
|
584
518
|
this.renderEmptyState = (isMobile) => {
|
|
585
519
|
var _a, _b;
|
|
586
|
-
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-empty-state", { header: (_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, description: (_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, "is-mobile": isMobile })));
|
|
520
|
+
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-empty-state", { header: translate((_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, this.language), description: translate((_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, this.language), "is-mobile": isMobile })));
|
|
587
521
|
};
|
|
588
522
|
this.renderFinishedTab = (isMobile) => {
|
|
589
523
|
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-overlay-drawer-history", { mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isMobile: isMobile, historyItems: this.playerHistory, hasMore: this.hasMorePlayerHistory, onLoadMore: this.onLoadMorePlayerHistory, loading: this.loading })));
|
|
590
524
|
};
|
|
591
525
|
this.renderCodeTab = (isMobile) => {
|
|
592
|
-
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile })));
|
|
526
|
+
return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile, translationUrl: this.translationUrl, language: this.language })));
|
|
593
527
|
};
|
|
594
528
|
this.renderChallengeDetails = (isMobile, isUnique = false) => {
|
|
595
|
-
return (h("casino-challenges-overlay-drawer-details", { challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
|
|
529
|
+
return (h("casino-challenges-overlay-drawer-details", { translationUrl: this.translationUrl, language: this.language, challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
|
|
596
530
|
};
|
|
597
531
|
this.renderChallengesTabs = (isMobile) => {
|
|
598
532
|
const challenges = this.activeTabIndex === EChallengesTabs.Active
|
|
@@ -645,8 +579,8 @@ const CasinoChallengesOverlayDrawer = class {
|
|
|
645
579
|
this.playerHistory = [];
|
|
646
580
|
this.hasMorePlayerHistory = false;
|
|
647
581
|
this.emptyState = {
|
|
648
|
-
header:
|
|
649
|
-
description:
|
|
582
|
+
header: 'activeTabEmptyHeader',
|
|
583
|
+
description: 'activeTabEmptyDescription'
|
|
650
584
|
};
|
|
651
585
|
}
|
|
652
586
|
handleClientStylingChange(newValue, oldValue) {
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["casino-challenge-details-events_21",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"
|
|
19
|
+
return bootstrapLazy([["casino-challenge-details-events_21",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenge":[16],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[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],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"],"enabledWidgetTabs":[16]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16],"handleGameClick":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], options);
|
|
20
20
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengesOverlayDrawer } from './casino-challenges-overlay-drawer-
|
|
1
|
+
export { C as CasinoChallengesOverlayDrawer } from './casino-challenges-overlay-drawer-2e167783.js';
|
|
2
2
|
import './index-25fd45d2.js';
|