@everymatrix/casino-challenges-overlay 0.22.8 → 0.22.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoChallengesOverlay = require('./casino-challenges-overlay-5fe2c768.js');
5
+ const casinoChallengesOverlay = require('./casino-challenges-overlay-7ce3e62a.js');
6
6
  require('./index-6300a889.js');
7
7
 
8
8
 
@@ -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-details-events_23.cjs",[[1,"casino-challenges-overlay",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenges":[16],"extendedIngameWidget":[516,"extended-ingame-widget"],"enabledWidgetTabs":[32],"progress":[32],"isNew":[32],"isGift":[32],"isNotification":[32],"inProgressCount":[32],"activeChallenge":[32],"completedLevelId":[32],"prevUpdateEvent":[32],"showModal":[32],"modalErrored":[32],"modalReward":[32],"modalAddition":[32],"modalOrderNumber":[32],"modalLevelsCount":[32],"modalIsFreeSpinsGranted":[32],"modalBonusProgramGames":[32],"showDrawer":[32],"init":[64]},[[1,"touchmove","handleTouchMove"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"challenges":["handleChallengesChange"]}],[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-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"reward":[513],"addition":[516],"handleClick":[16],"errored":[516],"orderNumber":[514,"order-number"],"isFreeSpinsGranted":[516,"is-free-spins-granted"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"language":[513],"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);
11
+ return index.bootstrapLazy([["casino-challenge-details-events_23.cjs",[[1,"casino-challenges-overlay",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenges":[16],"extendedIngameWidget":[516,"extended-ingame-widget"],"enabledWidgetTabs":[32],"progress":[32],"isNew":[32],"isGift":[32],"isNotification":[32],"inProgressCount":[32],"activeChallenge":[32],"completedLevelId":[32],"prevUpdateEvent":[32],"showModal":[32],"modalErrored":[32],"modalReward":[32],"modalAddition":[32],"modalOrderNumber":[32],"modalLevelsCount":[32],"modalIsFreeSpinsGranted":[32],"modalBonusProgramGames":[32],"showDrawer":[32],"init":[64]},[[1,"touchmove","handleTouchMove"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"challenges":["handleChallengesChange"]}],[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-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"reward":[513],"addition":[516],"handleClick":[16],"errored":[516],"orderNumber":[514,"order-number"],"isFreeSpinsGranted":[516,"is-free-spins-granted"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}],[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -3,22 +3,124 @@ const DEFAULT_LANGUAGE = 'en';
3
3
  export const TRANSLATIONS = {
4
4
  en: {
5
5
  new: 'new',
6
- join: 'Join',
7
- // casino-challenges-overlay-modal
8
6
  congrats: 'Congratulations!',
9
7
  continue: 'Continue',
10
8
  errorBtnText: 'Ok',
11
9
  errorTitle: 'Reward failed',
12
10
  errorSubTitle: 'Sorry — we couldn’t grant the reward. Please try again.',
13
11
  level: 'Level',
14
- completed: 'has been completed!',
12
+ levelCompleted: 'has been completed!',
15
13
  youWon: 'You have won',
16
14
  physicalReward: 'for physical rewards please contact ',
17
15
  linkText: 'Customer Support',
18
16
  playNowOrLater: 'Play your free spins now or come back later.',
19
17
  rewardInLobby: 'You can find your reward in the relevant section of the Lobby Widget.',
20
- assistance: 'If you need any assistance, please contact',
21
- useSpinsNow: 'Use spins now'
18
+ useSpinsNow: 'Use spins now',
19
+ // extended widget
20
+ title: 'Challenges',
21
+ claimCodeSuccessMessage: 'The code was successfully applied.',
22
+ grantClaimByButtonSuccessMessage: 'Challenge has been triggered successfully and is now available on the Active tab',
23
+ optOutSuccessMessage: 'You’ve opted out of the challenge.',
24
+ promoTabEmptyHeader: 'Nothing here - yet!',
25
+ promoTabEmptyDescription: 'No challenges at the moment. Try exploring events or keep playing to unlock new ones.',
26
+ activeTabEmptyHeader: 'No active challenges yet',
27
+ activeTabEmptyDescription: 'Check Promo tab to find available offers',
28
+ pendingTabEmptyHeader: 'No pending challenges yet',
29
+ pendingTabEmptyDescription: 'Check Promo tab to find available offers',
30
+ finishedTabEmptyHeader: 'No finished challenges yet',
31
+ finishedTabEmptyDescription: 'Check Promo tab to find available offers',
32
+ promo: 'Promo',
33
+ active: 'Active',
34
+ pendingTab: 'Pending',
35
+ finishedTab: 'Finished',
36
+ codeTab: 'Code',
37
+ terms: 'Terms & Conditions',
38
+ status: 'Status',
39
+ time: 'time',
40
+ claimCodeTitle: 'Enter the secret code to unlock hidden quests and rewards.',
41
+ claimCodeInputLabel: '3–30 characters, no spaces',
42
+ claimCodeBtnText: 'Apply Code',
43
+ claimCodeError: 'Invalid format. Use Latin letters, numbers, or symbols.',
44
+ claimCodeDescription: 'Enter code to unlock the challenge',
45
+ endsIn: 'Ends In',
46
+ expired: 'Expired',
47
+ forfeited: 'Forfeited',
48
+ finished: 'Finished',
49
+ suspended: 'Suspended',
50
+ unavailable: 'Unavailable',
51
+ optedOutNotification: 'You’ve left this challenge. Your progress has been lost, and rejoining is no longer possible. Discover other available challenges.',
52
+ forfeitNotification: 'Unfortunately, your progress has been forfeited, and you are no longer eligible to continue this challenge. Check out other available challenges!',
53
+ completedNofitication: "You've successfully completed this challenge! Explore the next one and keep playing to earn more rewards!",
54
+ expiredNotification: 'Unfortunately, this challenge has expired and is no longer available to complete. Try another one that’s still active!',
55
+ launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
56
+ claimDescription: 'Click Claim button to unlock the Challenge',
57
+ noDepositAmountDescription: 'Deposit any amount to unlock the Challenge',
58
+ deposit: 'Deposit',
59
+ depositAmountDescription: 'to unlock the Challenge',
60
+ claimByButton: 'Claim',
61
+ launchGame: 'Launch Game',
62
+ optIn: 'Opt In',
63
+ resume: 'Resume',
64
+ pause: 'Pause',
65
+ pendingDescription: "You can join this challenge once you've finished the previous progress in the Active tab",
66
+ optInDescription: 'You are ready to opt-in!',
67
+ resumeDescription: 'Your progress is saved while Challenge is suspended',
68
+ pausedDescription: 'Your progress is saved while Challenge is paused',
69
+ yourProgress: 'Your Progress',
70
+ bet: 'bet',
71
+ bets: 'bets',
72
+ sports: 'Sports',
73
+ casino: 'Casino',
74
+ endDate: 'End Date',
75
+ totalLevels: 'Total Levels',
76
+ levels: 'Levels',
77
+ seeAll: 'See All',
78
+ games: 'Games',
79
+ rules: 'Rules',
80
+ events: 'Events',
81
+ defaultRule: 'All events - ',
82
+ contribution: 'contribution',
83
+ minBet: 'min bet',
84
+ placeBetsOf: 'Place bets of',
85
+ place: 'Place',
86
+ winStakeRatio: 'Win/Stake Ratio',
87
+ completed: 'Completed',
88
+ times: 'times',
89
+ contributionType: 'Contribution Type',
90
+ contributionTo: 'Contribution To',
91
+ isContributeToOne: 'Your eligible bets count only toward this challenge',
92
+ isNotContributeToOne: 'Your eligible bets count toward all active challenges',
93
+ bonusMoney: 'Only bonus money bets count toward your progress',
94
+ realMoney: 'Only real money bets count toward your progress',
95
+ mixedMoney: 'Both real money and bonus money bets count toward your progress',
96
+ fundsUsed: 'Funds Used',
97
+ sportsbookRealMoney: 'Only Real Money bets can contribute',
98
+ sportsbookBonusMoney: 'Only Bonus bets can contribute',
99
+ sportsbookMixMoney: 'Both Real Money and Bonus bets can contribute',
100
+ eligibleMatchTypes: 'Eligible Match Types',
101
+ preLiveMatchType: 'Only Pre-Match bets can contribute',
102
+ liveMatchType: 'Only Live bets can contribute',
103
+ mixMatchType: 'Both Pre-Match and Live bets can contribute',
104
+ eligibleBetTypes: 'Eligible Bet Types',
105
+ single: 'Single',
106
+ multi: 'Multi/Combi',
107
+ system: 'System',
108
+ selections: 'Selections',
109
+ totalOdds: 'Total Odds',
110
+ oddsPerSection: 'Odds per Selection',
111
+ betBuilder: 'Only Bet Builder Bets',
112
+ nonBetBuilder: 'Only Non-Bet Builder Bets',
113
+ mixBetBuilder: 'Bet Builder & Non-Bet Builder Bets',
114
+ banker: 'Only Banker Bets',
115
+ nonBanker: 'Only Non-Banker Bets',
116
+ mixBanker: 'Banker & Non-Banker Bets',
117
+ readFullTerms: 'Read full Terms & Conditions',
118
+ optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
119
+ optOutLeavingActionText: 'Opt out of Challenge',
120
+ optOutModalTitle: 'Opt out of challenge?',
121
+ optOutModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
122
+ optOutModalCancel: 'Cancel',
123
+ optOutModalConfirm: 'Opt Out'
22
124
  }
23
125
  };
24
126
  export const translate = (key, customLang) => {
@@ -1,22 +1,15 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-b4a452f5.js';
2
- import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-721c0311.js';
3
- export { C as casino_challenges_overlay } from './casino-challenges-overlay-721c0311.js';
2
+ import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-9406646f.js';
3
+ export { C as casino_challenges_overlay } from './casino-challenges-overlay-9406646f.js';
4
4
 
5
5
  const DEFAULT_LANGUAGE$3 = 'en';
6
6
  const TRANSLATIONS$3 = {
7
7
  en: {
8
- title: 'Challenges',
9
- promo: 'Promo',
10
- active: 'Active',
11
- pendingTab: 'Pending',
12
- finishedTab: 'Finished',
13
8
  levels: 'Levels',
14
- level: 'Level',
15
9
  seeAll: 'See All',
16
10
  games: 'Games',
17
11
  rules: 'Rules',
18
12
  events: 'Events',
19
- codeTab: 'Code',
20
13
  endsIn: 'Ends In',
21
14
  expired: 'Expired',
22
15
  placeBetsOf: 'Place bets of',
@@ -32,13 +25,8 @@ const TRANSLATIONS$3 = {
32
25
  optIn: 'Opt In',
33
26
  optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
34
27
  optOutLeavingActionText: 'Opt out of Challenge',
35
- optOutModalTitle: 'Opt out of challenge?',
36
- optOudModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
37
- optOutModalConfirm: 'Opt Out',
38
- optOutModalCancel: 'Cancel',
39
28
  resume: 'Resume',
40
29
  pause: 'Pause',
41
- join: 'Join to Start',
42
30
  deposit: 'Deposit',
43
31
  launchGame: 'Launch Game',
44
32
  launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
@@ -59,8 +47,6 @@ const TRANSLATIONS$3 = {
59
47
  readFullTerms: 'Read full Terms & Conditions',
60
48
  contribution: 'contribution',
61
49
  endDate: 'End Date',
62
- back: 'Back',
63
- all: 'All Challenges',
64
50
  sports: 'Sports',
65
51
  casino: 'Casino',
66
52
  contributionType: 'Contribution Type',
@@ -96,24 +82,38 @@ const TRANSLATIONS$3 = {
96
82
  time: 'time',
97
83
  times: 'times',
98
84
  winStakeRatio: 'Win/Stake Ratio',
99
- promoTabEmptyHeader: 'Nothing here - yet!',
100
- promoTabEmptyDescription: 'No challenges at the moment. Try exploring events or keep playing to unlock new ones.',
101
- activeTabEmptyHeader: 'No active challenges yet',
102
- activeTabEmptyDescription: 'Check Promo tab to find available offers',
103
- pendingTabEmptyHeader: 'No pending challenges yet',
104
- pendingTabEmptyDescription: 'Check Promo tab to find available offers',
105
- finishedTabEmptyHeader: 'No finished challenges yet',
106
- finishedTabEmptyDescription: 'Check Promo tab to find available offers',
107
85
  yourProgress: 'Your Progress'
108
- },
109
- da: {
110
- title: ''
111
86
  }
112
87
  };
113
88
  const translate$3 = (key, customLang) => {
114
89
  const lang = customLang;
115
90
  return TRANSLATIONS$3[lang !== undefined && lang in TRANSLATIONS$3 ? lang : DEFAULT_LANGUAGE$3][key];
116
91
  };
92
+ const getTranslations$3 = (data) => {
93
+ Object.keys(data).forEach((item) => {
94
+ if (!TRANSLATIONS$3[item]) {
95
+ TRANSLATIONS$3[item] = {};
96
+ }
97
+ for (let key in data[item]) {
98
+ TRANSLATIONS$3[item][key] = data[item][key];
99
+ }
100
+ });
101
+ };
102
+ const resolveTranslationUrl$3 = async (translationUrl) => {
103
+ if (translationUrl) {
104
+ try {
105
+ const response = await fetch(translationUrl);
106
+ if (!response.ok) {
107
+ throw new Error(`HTTP error! status: ${response.status}`);
108
+ }
109
+ const translations = await response.json();
110
+ getTranslations$3(translations);
111
+ }
112
+ catch (error) {
113
+ console.error('Failed to fetch or parse translations from URL:', error);
114
+ }
115
+ }
116
+ };
117
117
 
118
118
  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)}}";
119
119
  const CasinoChallengeDetailsEventsStyle0 = casinoChallengeDetailsEventsCss;
@@ -647,12 +647,7 @@ const TRANSLATIONS$2 = {
647
647
  active: 'Active',
648
648
  pendingTab: 'Pending',
649
649
  finishedTab: 'Finished',
650
- levels: 'Levels',
651
650
  level: 'Level',
652
- seeAll: 'See All',
653
- games: 'Games',
654
- rules: 'Rules',
655
- events: 'Events',
656
651
  codeTab: 'Code',
657
652
  endsIn: 'Ends In',
658
653
  expired: 'Expired',
@@ -666,71 +661,15 @@ const TRANSLATIONS$2 = {
666
661
  suspended: 'Suspended',
667
662
  completed: 'Completed',
668
663
  unavailable: 'Unavailable',
669
- optIn: 'Opt In',
670
- optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
671
- optOutLeavingActionText: 'Opt out of Challenge',
672
664
  optOutModalTitle: 'Opt out of challenge?',
673
- optOudModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
665
+ optOutModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
674
666
  optOutModalConfirm: 'Opt Out',
675
667
  optOutModalCancel: 'Cancel',
676
668
  optOutSuccessMessage: 'You’ve opted out of the challenge.',
677
- resume: 'Resume',
678
- pause: 'Pause',
679
- join: 'Join to Start',
680
669
  deposit: 'Deposit',
681
- launchGame: 'Launch Game',
682
- launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
683
670
  depositAmountDescription: 'to unlock the Challenge',
684
671
  noDepositAmountDescription: 'Deposit any amount to unlock the Challenge',
685
- claimByButton: 'Claim',
686
- claimDescription: 'Click Claim button to unlock the Challenge',
687
- resumeDescription: 'Your progress is saved while Challenge is suspended',
688
- optInDescription: 'You are ready to opt-in!',
689
- pausedDescription: 'Your progress is saved while Challenge is paused',
690
- congrats: 'Congratulations!',
691
- forfeitNotification: 'Unfortunately, your progress has been forfeited, and you are no longer eligible to continue this challenge. Check out other available challenges!',
692
- optedOutNotification: 'You’ve left this challenge. Your progress has been lost, and rejoining is no longer possible. Discover other available challenges.',
693
- completedNofitication: "You've successfully completed this challenge! Explore the next one and keep playing to earn more rewards!",
694
- expiredNotification: 'Unfortunately, this challenge has expired and is no longer available to complete. Try another one that’s still active!',
695
- pendingDescription: "You can join this challenge once you've finished the previous progress in the Active tab",
696
672
  terms: 'Terms & Conditions',
697
- readFullTerms: 'Read full Terms & Conditions',
698
- contribution: 'contribution',
699
- endDate: 'End Date',
700
- back: 'Back',
701
- all: 'All Challenges',
702
- sports: 'Sports',
703
- casino: 'Casino',
704
- contributionType: 'Contribution Type',
705
- contributionRule: 'Contribution Rule',
706
- isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
707
- isNotContributeToOne: 'Bets contribute to all started challenges',
708
- bonusMoney: 'Bonus Money',
709
- realMoney: 'Real Money',
710
- mixedMoney: 'Real and Bonus Money contribution',
711
- defaultRule: 'All events - ',
712
- fundsUsed: 'Funds Used',
713
- sportsbookRealMoney: 'Only Real Money bets can contribute',
714
- sportsbookBonusMoney: 'Only Bonus bets can contribute',
715
- sportsbookMixMoney: 'Both Real Money and Bonus bets can contribute',
716
- eligibleMatchTypes: 'Eligible Match Types',
717
- preLiveMatchType: 'Only Pre-Match bets can contribute',
718
- liveMatchType: 'Only Live bets can contribute',
719
- mixMatchType: 'Both Pre-Match and Live bets can contribute',
720
- eligibleBetTypes: 'Eligible Bet Types',
721
- single: 'Single',
722
- multi: 'Multi/Combi',
723
- betBuilder: 'Only Bet Builder Bets',
724
- nonBetBuilder: 'Only Non-Bet Builder Bets',
725
- mixBetBuilder: 'Bet Builder & Non-Bet Builder Bets',
726
- system: 'System',
727
- banker: 'Only Banker Bets',
728
- nonBanker: 'Only Non-Banker Bets',
729
- mixBanker: 'Banker & Non-Banker Bets',
730
- oddsPerSection: 'Odds per Selection',
731
- totalOdds: 'Total Odds',
732
- totalLevels: 'Total Levels',
733
- selections: 'Selections',
734
673
  time: 'time',
735
674
  times: 'times',
736
675
  winStakeRatio: 'Win/Stake Ratio',
@@ -742,7 +681,6 @@ const TRANSLATIONS$2 = {
742
681
  pendingTabEmptyDescription: 'Check Promo tab to find available offers',
743
682
  finishedTabEmptyHeader: 'No finished challenges yet',
744
683
  finishedTabEmptyDescription: 'Check Promo tab to find available offers',
745
- yourProgress: 'Your Progress',
746
684
  claimCodeTitle: 'Enter the secret code to unlock hidden quests and rewards.',
747
685
  claimCodeSuccessMessage: 'The code was successfully applied.',
748
686
  claimCodeInputLabel: '3–30 characters, no spaces',
@@ -751,9 +689,6 @@ const TRANSLATIONS$2 = {
751
689
  claimCodeDescription: 'Enter code to unlock the challenge',
752
690
  status: 'Status',
753
691
  grantClaimByButtonSuccessMessage: 'Challenge has been triggered successfully and is now available on the Active tab'
754
- },
755
- da: {
756
- title: ''
757
692
  }
758
693
  };
759
694
  const translate$2 = (key, customLang) => {
@@ -3278,7 +3213,7 @@ const CasinoChallengeDetailsOptOut$1 = class {
3278
3213
  this.open = false;
3279
3214
  }
3280
3215
  render() {
3281
- 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('optOudModalDescription', 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)))));
3216
+ 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)))));
3282
3217
  }
3283
3218
  };
3284
3219
  CasinoChallengeDetailsOptOut$1.style = CasinoChallengeOptOutModalStyle0;
@@ -3705,23 +3640,22 @@ const CasinoChallengesOverlayDrawerStyle0 = casinoChallengesOverlayDrawerCss;
3705
3640
  const CasinoChallengesOverlayDrawer = class {
3706
3641
  constructor(hostRef) {
3707
3642
  registerInstance(this, hostRef);
3708
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
3709
3643
  this.EMPTY_STATE_PAGE_DESCRIPTION_MAP = {
3710
3644
  [EChallengesTabs.Promo]: {
3711
- header: (_a = TRANSLATIONS$2[this.language]) === null || _a === void 0 ? void 0 : _a.promoTabEmptyHeader,
3712
- description: (_b = TRANSLATIONS$2[this.language]) === null || _b === void 0 ? void 0 : _b.promoTabEmptyDescription
3645
+ header: 'promoTabEmptyHeader',
3646
+ description: 'promoTabEmptyDescription'
3713
3647
  },
3714
3648
  [EChallengesTabs.Active]: {
3715
- header: (_c = TRANSLATIONS$2[this.language]) === null || _c === void 0 ? void 0 : _c.activeTabEmptyHeader,
3716
- description: (_d = TRANSLATIONS$2[this.language]) === null || _d === void 0 ? void 0 : _d.activeTabEmptyDescription
3649
+ header: 'activeTabEmptyHeader',
3650
+ description: 'activeTabEmptyDescription'
3717
3651
  },
3718
3652
  [EChallengesTabs.Pending]: {
3719
- header: (_e = TRANSLATIONS$2[this.language]) === null || _e === void 0 ? void 0 : _e.pendingTabEmptyHeader,
3720
- description: (_f = TRANSLATIONS$2[this.language]) === null || _f === void 0 ? void 0 : _f.pendingTabEmptyDescription
3653
+ header: 'pendingTabEmptyHeader',
3654
+ description: 'pendingTabEmptyDescription'
3721
3655
  },
3722
3656
  [EChallengesTabs.Finished]: {
3723
- header: (_g = TRANSLATIONS$2[this.language]) === null || _g === void 0 ? void 0 : _g.finishedTabEmptyHeader,
3724
- description: (_h = TRANSLATIONS$2[this.language]) === null || _h === void 0 ? void 0 : _h.finishedTabEmptyDescription
3657
+ header: 'finishedTabEmptyHeader',
3658
+ description: 'finishedTabEmptyDescription'
3725
3659
  }
3726
3660
  };
3727
3661
  this.onActiveChallengeChange = (e) => {
@@ -3827,16 +3761,16 @@ const CasinoChallengesOverlayDrawer = class {
3827
3761
  };
3828
3762
  this.renderEmptyState = (isMobile) => {
3829
3763
  var _a, _b;
3830
- 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 })));
3764
+ return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-empty-state", { header: translate$2((_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, this.language), description: translate$2((_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, this.language), "is-mobile": isMobile })));
3831
3765
  };
3832
3766
  this.renderFinishedTab = (isMobile) => {
3833
3767
  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 })));
3834
3768
  };
3835
3769
  this.renderCodeTab = (isMobile) => {
3836
- return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile })));
3770
+ return (h("div", null, this.renderHeader(isMobile), h("casino-challenges-claim-code", { "is-mobile": isMobile, translationUrl: this.translationUrl, language: this.language })));
3837
3771
  };
3838
3772
  this.renderChallengeDetails = (isMobile, isUnique = false) => {
3839
- 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 }));
3773
+ 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 }));
3840
3774
  };
3841
3775
  this.renderChallengesTabs = (isMobile) => {
3842
3776
  const challenges = this.activeTabIndex === EChallengesTabs.Active
@@ -3889,8 +3823,8 @@ const CasinoChallengesOverlayDrawer = class {
3889
3823
  this.playerHistory = [];
3890
3824
  this.hasMorePlayerHistory = false;
3891
3825
  this.emptyState = {
3892
- header: (_j = TRANSLATIONS$2[this.language]) === null || _j === void 0 ? void 0 : _j.activeTabEmptyHeader,
3893
- description: (_k = TRANSLATIONS$2[this.language]) === null || _k === void 0 ? void 0 : _k.activeTabEmptyDescription
3826
+ header: 'activeTabEmptyHeader',
3827
+ description: 'activeTabEmptyDescription'
3894
3828
  };
3895
3829
  }
3896
3830
  handleClientStylingChange(newValue, oldValue) {
@@ -4551,8 +4485,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
4551
4485
  this.mbSource = undefined;
4552
4486
  this.clientStyling = undefined;
4553
4487
  this.clientStylingUrl = undefined;
4554
- this.challenge = undefined;
4488
+ this.translationUrl = '';
4555
4489
  this.language = 'en';
4490
+ this.challenge = undefined;
4556
4491
  this.isMobile = false;
4557
4492
  this.isUnique = false;
4558
4493
  this.swipped = false;
@@ -4619,6 +4554,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
4619
4554
  }, 1000);
4620
4555
  }
4621
4556
  componentWillLoad() {
4557
+ if (this.translationUrl) {
4558
+ resolveTranslationUrl$3(this.translationUrl);
4559
+ }
4622
4560
  this.updateTime();
4623
4561
  this.onChallengeChange(this.challenge);
4624
4562
  }
@@ -4796,7 +4734,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
4796
4734
  var _a, _b;
4797
4735
  const fullScreen = (this.swipping && this.progress > 0) || ((_a = this.detailsSubPageInfo) === null || _a === void 0 ? void 0 : _a.open);
4798
4736
  const footerIsVisible = !this.isMobile || (this.isMobile && fullScreen);
4799
- return (h("div", { key: '220d4ad44d1bd16544edc01af1a10bc8b915de9b', class: {
4737
+ return (h("div", { key: 'b6b5dfc2777b5a4b1e1557166e1dca5aa2aa4f37', class: {
4800
4738
  Mobile: this.isMobile,
4801
4739
  swipped: (this.isMobile && this.swipping && this.progress > 0) || !this.isMobile,
4802
4740
  moved: this.progress > 0,
@@ -4964,13 +4902,12 @@ const TRANSLATIONS = {
4964
4902
  errorTitle: 'Reward failed',
4965
4903
  errorSubTitle: 'Sorry — we couldn’t grant the reward. Please try again.',
4966
4904
  level: 'Level',
4967
- completed: 'has been completed!',
4905
+ levelCompleted: 'has been completed!',
4968
4906
  youWon: 'You have won',
4969
4907
  physicalReward: 'for physical rewards please contact ',
4970
4908
  linkText: 'Customer Support',
4971
4909
  playNowOrLater: 'Play your free spins now or come back later.',
4972
4910
  rewardInLobby: 'You can find your reward in the relevant section of the Lobby Widget.',
4973
- assistance: 'If you need any assistance, please contact',
4974
4911
  useSpinsNow: 'Use spins now'
4975
4912
  }
4976
4913
  };
@@ -5097,7 +5034,7 @@ const CasinoChallengesOverlayModal = class {
5097
5034
  if (this.levelsCount <= 1)
5098
5035
  return '';
5099
5036
  const level = (_a = translate('level', this.language)) !== null && _a !== void 0 ? _a : translate('level');
5100
- const completed = (_b = translate('completed', this.language)) !== null && _b !== void 0 ? _b : translate('completed');
5037
+ const completed = (_b = translate('levelCompleted', this.language)) !== null && _b !== void 0 ? _b : translate('levelCompleted');
5101
5038
  return `${level} ${this.orderNumber} ${completed}`;
5102
5039
  };
5103
5040
  this.mbSource = undefined;
@@ -5175,17 +5112,17 @@ const CasinoChallengesOverlayModal = class {
5175
5112
  }
5176
5113
  render() {
5177
5114
  var _a;
5178
- return (h("div", { key: '7f90dd075fc9046cca7d55704b19cc9d23655f63', ref: (el) => (this.stylingContainer = el), class: {
5115
+ return (h("div", { key: '45c0dd1d4e2a3567850f2d3ff0c9fdda18892697', ref: (el) => (this.stylingContainer = el), class: {
5179
5116
  ModalOverlay: true,
5180
5117
  Mobile: this.isMobile,
5181
5118
  Open: this.isOpen
5182
- } }, h("div", { key: 'ec14dcd43407142937617a39db007fce65f67c52', class: "ModalWinAnimation" }), h("div", { key: '887b13b1c82bfdee17154d72023fe3541d208293', class: "ModalWrapper" }, h("div", { key: '5539d5631d8a9c2d8fef1ad64849b6c923317587', class: "ModalContent GradientBorder" }, h("div", { key: '459b3e70f5d00355a359d5183e1b14cf7c46709b', class: "InnerContainer" }, !this.errored && (h("div", { key: 'b30e892c29090cd265714e9802f01fe527c39fc3', class: "ImageWrapper" }, h("img", { key: 'c2414e02822fa41e82a9baaee3439540570525e1', src: giftboxSvg, alt: "gift-box-icon" }))), h("h1", { key: '612d76d1c1d6731a375c690af3580e114625e2a6', class: "ModalHeader" }, translate(this.errored ? 'errorTitle' : 'congrats', this.language)), this.errored ? (h("div", { class: "ModalErrorMessage" }, translate('errorSubTitle', this.language))) : (h("div", { class: "ModalSubtitle" }, this.renderLevelNumberLine(), h("div", null, translate('youWon', this.language)), h("div", { class: "ModalReward" }, this.reward), this.isFreeSpinsGranted && (h("div", { class: "ModalAddition" }, translate('playNowOrLater', this.language))), h("div", { class: "ModalAddition" }, translate('rewardInLobby', this.language)))), this.addition && (h("div", { key: 'd0364241f481d77530e674745c76bfaa608177e9', class: "ModalAddition" }, h("div", { key: '00ec8519bf53ded42f2f2ba5f20c903b679f429c' }, translate('physicalReward', this.language)), h("span", { key: '939c62bfba3ec93e52a4c8d27c9c8b813bf42101' }, translate('linkText', this.language)))), h("button", { key: '442d877ac3d368b118f1cfc987c1f1dc003d5600', class: "ModalAction", onClick: this.handleClick }, this.errored ? translate('errorBtnText', this.language) : translate('continue', this.language)), this.isFreeSpinsGranted && ((_a = this.bonusProgramGames) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: 'a0e330774c4333c1f09d2e574644fa375fa301e4', class: "ModalSliderWrapper" }, h("div", { key: '96270d7f0c6bf9aa0c8376fa80fc3aea99632696', class: "ModalSlider", ref: (el) => (this.sliderContainer = el), onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, this.bonusProgramGames.map((item) => (h("div", { class: "ModalSlide", key: item.GameSlug, "data-slug": item.GameSlug }, h("div", { class: "ModalSlideImageWrapper" }, h("img", { src: item.Thumbnail, alt: "" })), h("div", { class: "ModalSlideSpins" }, translate('useSpinsNow', this.language), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L5.13807 4.19526C5.39842 4.45561 5.39842 4.87772 5.13807 5.13807L1.13807 9.13807C0.877722 9.39842 0.455612 9.39842 0.195262 9.13807C-0.0650874 8.87772 -0.0650874 8.45561 0.195262 8.19526L3.72386 4.66667L0.195262 1.13807C-0.0650874 0.877722 -0.0650874 0.455612 0.195262 0.195262Z", fill: "white" }))))))), this.bonusProgramGames.length > 1 && (h("div", { key: 'be0e1b63310d39993cc6ae2e49ed6240583bd1e6' }, h("button", { key: '94f41cd5bf2064f94e3d593e07a8620cdb5bcc56', class: {
5119
+ } }, h("div", { key: '394f01833178c5bd7bcacf33079202c9de272687', class: "ModalWinAnimation" }), h("div", { key: 'bb20f68ad852446f52f5fed290fddb324dfd8168', class: "ModalWrapper" }, h("div", { key: '392f2f5946d8dd684cfe4625e37f694ab015b276', class: "ModalContent GradientBorder" }, h("div", { key: 'a45444c5655f0c75bbf8c19a141af7c20cce04fd', class: "InnerContainer" }, !this.errored && (h("div", { key: '3e2c391e31569188547521a97cae262f46964260', class: "ImageWrapper" }, h("img", { key: '33dfe2b25024ee7e018d1077a34305c4a55d2521', src: giftboxSvg, alt: "gift-box-icon" }))), h("h1", { key: '4a1f61db16a4d85e82d61ede928494018123d261', class: "ModalHeader" }, translate(this.errored ? 'errorTitle' : 'congrats', this.language)), this.errored ? (h("div", { class: "ModalErrorMessage" }, translate('errorSubTitle', this.language))) : (h("div", { class: "ModalSubtitle" }, this.renderLevelNumberLine(), h("div", null, translate('youWon', this.language)), h("div", { class: "ModalReward" }, this.reward), this.isFreeSpinsGranted && (h("div", { class: "ModalAddition" }, translate('playNowOrLater', this.language))), h("div", { class: "ModalAddition" }, translate('rewardInLobby', this.language)))), this.addition && (h("div", { key: 'c4e7b3f0af774a0269b9655ba3e0672c5556d6e6', class: "ModalAddition" }, h("div", { key: 'adad33feebe2a0defb222d147238bb255f2a33f2' }, translate('physicalReward', this.language)), h("span", { key: 'f66a38bbdfe5c06b72afa18ca9a2c443d98bcc02' }, translate('linkText', this.language)))), h("button", { key: 'e58dcd071d82ba97273faa62b88ccd5b6663f90e', class: "ModalAction", onClick: this.handleClick }, this.errored ? translate('errorBtnText', this.language) : translate('continue', this.language)), this.isFreeSpinsGranted && ((_a = this.bonusProgramGames) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: '925a3869f84b44e841a0bc71aeac88cebc2bfc0d', class: "ModalSliderWrapper" }, h("div", { key: '5e1573ecaabe23c7f7890b39fe4c7612247ae50a', class: "ModalSlider", ref: (el) => (this.sliderContainer = el), onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, this.bonusProgramGames.map((item) => (h("div", { class: "ModalSlide", key: item.GameSlug, "data-slug": item.GameSlug }, h("div", { class: "ModalSlideImageWrapper" }, h("img", { src: item.Thumbnail, alt: "" })), h("div", { class: "ModalSlideSpins" }, translate('useSpinsNow', this.language), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L5.13807 4.19526C5.39842 4.45561 5.39842 4.87772 5.13807 5.13807L1.13807 9.13807C0.877722 9.39842 0.455612 9.39842 0.195262 9.13807C-0.0650874 8.87772 -0.0650874 8.45561 0.195262 8.19526L3.72386 4.66667L0.195262 1.13807C-0.0650874 0.877722 -0.0650874 0.455612 0.195262 0.195262Z", fill: "white" }))))))), this.bonusProgramGames.length > 1 && (h("div", { key: 'a87a8694b4303d70d3d48678740d7d41c86e5943' }, h("button", { key: 'db3098504dec5b764c1728094cbf4cc044861f05', class: {
5183
5120
  prev: true,
5184
5121
  disabled: this.currentIndex === 0
5185
- }, onClick: this.prev }, h("svg", { key: 'c5befb61fd9219ac50e4e4bac0f667893df8f332', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'bda4f14c6bbe6ae040c37b605b06faf4ed4cac25', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { key: 'a05cdf0d9029f46a449b4587a94f3441d23e2198', class: {
5122
+ }, onClick: this.prev }, h("svg", { key: 'ba6da9bb485ce54fef5aafb2fb755e2900417392', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: '9d03b38b3d0e668cb2bbf43925c3f7538f4d9bcf', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { key: '5766cdc2bdf105329c004467b4433dcbbe936306', class: {
5186
5123
  next: true,
5187
5124
  disabled: this.currentIndex === this.bonusProgramGames.length - 1
5188
- }, onClick: this.next }, h("svg", { key: '3d61797e54ab9b57e52a953272aa49d86a727de6', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'c0b66efe13ed0535b7760cef09940b32ef834919', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '015daf3190bd0f08c9519e3efd36f82cc1a1ac45', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (h("span", { class: {
5125
+ }, onClick: this.next }, h("svg", { key: '13387b4fef2d54b72757b7eeae68d65c82f51ad7', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'b84abe30536fd6c707f68ef300886fc5b1af3a6b', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '2ff7174edec7f6210856e20725192fde78c94a9c', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (h("span", { class: {
5189
5126
  ModalSliderDot: true,
5190
5127
  active: i === this.currentIndex
5191
5128
  }, onClick: () => {
@@ -5423,7 +5360,7 @@ const CasinoChallengesOverlaySlider = class {
5423
5360
  return this.currentIndex - 1;
5424
5361
  }
5425
5362
  render() {
5426
- 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: 'ffc80e15f608761c6b830dd6f8ed19ebf7a2498e' }, h("button", { key: '0403fb4615605c33ef596c74ae2427b5e823b7d9', class: "action-button action-button--prev", onClick: this.prev }, h("img", { key: 'de3536ec00f15de6240d3c7da032b9584fffbc92', src: leftArrowSvg, alt: "" })), h("button", { key: '84cc6967ded946264bde8db938c8e5541ace145c', class: "action-button action-button--next", onClick: this.next }, h("img", { key: 'f6e8d44662f3ca55866001d90d41f66c4a5f6f04', src: rightArrowSvg, alt: "" })), h("div", { key: '25124a8bb6d0fc72086e69e20b6fc2f41986999e', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (h("span", { class: {
5363
+ 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: {
5427
5364
  'challenges__slider-dot': true,
5428
5365
  active: i === this.getRealIndex()
5429
5366
  }, onClick: () => {