@everymatrix/casino-challenges-overlay 0.22.30 → 0.22.31
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/casino-challenge-details-events_23.entry.js +1 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay-97159a90.js +1 -0
- package/dist/casino-challenges-overlay/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-details-events_23.cjs.entry.js +1 -1
- package/dist/cjs/{casino-challenges-overlay-c00e3b15.js → casino-challenges-overlay-ae870ca3.js} +11 -8
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-challenges-overlay/casino-challenges-overlay.js +11 -8
- package/dist/esm/casino-challenge-details-events_23.entry.js +2 -2
- package/dist/esm/{casino-challenges-overlay-8a765607.js → casino-challenges-overlay-97159a90.js} +11 -8
- package/dist/esm/index.js +1 -1
- package/dist/types/components/casino-challenges-overlay/casino-challenges-overlay.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay-8a765607.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-
|
|
1
|
+
export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-97159a90.js";import"./index-58f943ea.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-98384ab0.js');
|
|
6
|
-
const casinoChallengesOverlay = require('./casino-challenges-overlay-
|
|
6
|
+
const casinoChallengesOverlay = require('./casino-challenges-overlay-ae870ca3.js');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
9
9
|
const TRANSLATIONS$3 = {
|
package/dist/cjs/{casino-challenges-overlay-c00e3b15.js → casino-challenges-overlay-ae870ca3.js}
RENAMED
|
@@ -1053,10 +1053,13 @@ const CasinoChallengesOverlay = class {
|
|
|
1053
1053
|
return this.completedLevelId ? 100 : this.progress;
|
|
1054
1054
|
}
|
|
1055
1055
|
syncDisplayedProgress() {
|
|
1056
|
+
var _a, _b;
|
|
1056
1057
|
const target = this.getTargetProgress();
|
|
1057
1058
|
const hasActiveProgress = this.inProgressCount > 0;
|
|
1058
1059
|
const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
|
|
1059
1060
|
this.hadActiveProgress = hasActiveProgress;
|
|
1061
|
+
const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
|
|
1062
|
+
this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
|
|
1060
1063
|
const previousTarget = this.progressTarget;
|
|
1061
1064
|
this.progressTarget = target;
|
|
1062
1065
|
if (this.hasPendingLevelComplete) {
|
|
@@ -1070,9 +1073,9 @@ const CasinoChallengesOverlay = class {
|
|
|
1070
1073
|
return;
|
|
1071
1074
|
if (target === previousTarget && !activeProgressToggled)
|
|
1072
1075
|
return;
|
|
1073
|
-
// Only increases are animated: decreases (level reset,
|
|
1074
|
-
// full ring shown without active progress are applied instantly
|
|
1075
|
-
if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
1076
|
+
// Only increases of the same challenge are animated: decreases (level reset), a switch of the active
|
|
1077
|
+
// challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
|
|
1078
|
+
if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
1076
1079
|
this.progressAnimation.jumpToProgress(target);
|
|
1077
1080
|
return;
|
|
1078
1081
|
}
|
|
@@ -1175,17 +1178,17 @@ const CasinoChallengesOverlay = class {
|
|
|
1175
1178
|
const activeProgressId = hasActiveProgress
|
|
1176
1179
|
? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
|
|
1177
1180
|
: (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
|
|
1178
|
-
return (index.h("div", { key: '
|
|
1181
|
+
return (index.h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, index.h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
|
|
1179
1182
|
'--progress': `${progressPoint.angle}deg`
|
|
1180
|
-
} }, index.h("img", { key: '
|
|
1183
|
+
} }, index.h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
|
|
1181
1184
|
// Turns the wobble and spin around the coin drawn in the image, not the image centre
|
|
1182
|
-
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), index.h("div", { key: '
|
|
1185
|
+
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), index.h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (index.h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
|
|
1183
1186
|
left: `${progressPoint.x}px`,
|
|
1184
1187
|
top: `${progressPoint.y}px`
|
|
1185
|
-
} }))), hasActiveProgress && (index.h("div", { key: '
|
|
1188
|
+
} }))), hasActiveProgress && (index.h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
|
|
1186
1189
|
badge: true,
|
|
1187
1190
|
new: this.isNew
|
|
1188
|
-
} }, this.renderBadgeContent())), index.h("div", { key: '
|
|
1191
|
+
} }, this.renderBadgeContent())), index.h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), index.h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (index.h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
|
|
1189
1192
|
}
|
|
1190
1193
|
static get watchers() { return {
|
|
1191
1194
|
"clientStyling": ["handleClientStylingChange"],
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlay = require('./casino-challenges-overlay-
|
|
5
|
+
const casinoChallengesOverlay = require('./casino-challenges-overlay-ae870ca3.js');
|
|
6
6
|
require('./index-98384ab0.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -369,10 +369,13 @@ export class CasinoChallengesOverlay {
|
|
|
369
369
|
return this.completedLevelId ? 100 : this.progress;
|
|
370
370
|
}
|
|
371
371
|
syncDisplayedProgress() {
|
|
372
|
+
var _a, _b;
|
|
372
373
|
const target = this.getTargetProgress();
|
|
373
374
|
const hasActiveProgress = this.inProgressCount > 0;
|
|
374
375
|
const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
|
|
375
376
|
this.hadActiveProgress = hasActiveProgress;
|
|
377
|
+
const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
|
|
378
|
+
this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
|
|
376
379
|
const previousTarget = this.progressTarget;
|
|
377
380
|
this.progressTarget = target;
|
|
378
381
|
if (this.hasPendingLevelComplete) {
|
|
@@ -386,9 +389,9 @@ export class CasinoChallengesOverlay {
|
|
|
386
389
|
return;
|
|
387
390
|
if (target === previousTarget && !activeProgressToggled)
|
|
388
391
|
return;
|
|
389
|
-
// Only increases are animated: decreases (level reset,
|
|
390
|
-
// full ring shown without active progress are applied instantly
|
|
391
|
-
if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
392
|
+
// Only increases of the same challenge are animated: decreases (level reset), a switch of the active
|
|
393
|
+
// challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
|
|
394
|
+
if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
392
395
|
this.progressAnimation.jumpToProgress(target);
|
|
393
396
|
return;
|
|
394
397
|
}
|
|
@@ -491,17 +494,17 @@ export class CasinoChallengesOverlay {
|
|
|
491
494
|
const activeProgressId = hasActiveProgress
|
|
492
495
|
? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
|
|
493
496
|
: (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
|
|
494
|
-
return (h("div", { key: '
|
|
497
|
+
return (h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
|
|
495
498
|
'--progress': `${progressPoint.angle}deg`
|
|
496
|
-
} }, h("img", { key: '
|
|
499
|
+
} }, h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIcon,
|
|
497
500
|
// Turns the wobble and spin around the coin drawn in the image, not the image centre
|
|
498
|
-
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: '
|
|
501
|
+
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
|
|
499
502
|
left: `${progressPoint.x}px`,
|
|
500
503
|
top: `${progressPoint.y}px`
|
|
501
|
-
} }))), hasActiveProgress && (h("div", { key: '
|
|
504
|
+
} }))), hasActiveProgress && (h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
|
|
502
505
|
badge: true,
|
|
503
506
|
new: this.isNew
|
|
504
|
-
} }, this.renderBadgeContent())), h("div", { key: '
|
|
507
|
+
} }, this.renderBadgeContent())), h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
|
|
505
508
|
}
|
|
506
509
|
static get is() { return "casino-challenges-overlay"; }
|
|
507
510
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-58f943ea.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-
|
|
3
|
-
export { C as casino_challenges_overlay } from './casino-challenges-overlay-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-97159a90.js';
|
|
3
|
+
export { C as casino_challenges_overlay } from './casino-challenges-overlay-97159a90.js';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
6
6
|
const TRANSLATIONS$3 = {
|
package/dist/esm/{casino-challenges-overlay-8a765607.js → casino-challenges-overlay-97159a90.js}
RENAMED
|
@@ -1051,10 +1051,13 @@ const CasinoChallengesOverlay = class {
|
|
|
1051
1051
|
return this.completedLevelId ? 100 : this.progress;
|
|
1052
1052
|
}
|
|
1053
1053
|
syncDisplayedProgress() {
|
|
1054
|
+
var _a, _b;
|
|
1054
1055
|
const target = this.getTargetProgress();
|
|
1055
1056
|
const hasActiveProgress = this.inProgressCount > 0;
|
|
1056
1057
|
const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
|
|
1057
1058
|
this.hadActiveProgress = hasActiveProgress;
|
|
1059
|
+
const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
|
|
1060
|
+
this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
|
|
1058
1061
|
const previousTarget = this.progressTarget;
|
|
1059
1062
|
this.progressTarget = target;
|
|
1060
1063
|
if (this.hasPendingLevelComplete) {
|
|
@@ -1068,9 +1071,9 @@ const CasinoChallengesOverlay = class {
|
|
|
1068
1071
|
return;
|
|
1069
1072
|
if (target === previousTarget && !activeProgressToggled)
|
|
1070
1073
|
return;
|
|
1071
|
-
// Only increases are animated: decreases (level reset,
|
|
1072
|
-
// full ring shown without active progress are applied instantly
|
|
1073
|
-
if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
1074
|
+
// Only increases of the same challenge are animated: decreases (level reset), a switch of the active
|
|
1075
|
+
// challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
|
|
1076
|
+
if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
|
|
1074
1077
|
this.progressAnimation.jumpToProgress(target);
|
|
1075
1078
|
return;
|
|
1076
1079
|
}
|
|
@@ -1173,17 +1176,17 @@ const CasinoChallengesOverlay = class {
|
|
|
1173
1176
|
const activeProgressId = hasActiveProgress
|
|
1174
1177
|
? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
|
|
1175
1178
|
: (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
|
|
1176
|
-
return (h("div", { key: '
|
|
1179
|
+
return (h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
|
|
1177
1180
|
'--progress': `${progressPoint.angle}deg`
|
|
1178
|
-
} }, h("img", { key: '
|
|
1181
|
+
} }, h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
|
|
1179
1182
|
// Turns the wobble and spin around the coin drawn in the image, not the image centre
|
|
1180
|
-
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: '
|
|
1183
|
+
style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
|
|
1181
1184
|
left: `${progressPoint.x}px`,
|
|
1182
1185
|
top: `${progressPoint.y}px`
|
|
1183
|
-
} }))), hasActiveProgress && (h("div", { key: '
|
|
1186
|
+
} }))), hasActiveProgress && (h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
|
|
1184
1187
|
badge: true,
|
|
1185
1188
|
new: this.isNew
|
|
1186
|
-
} }, this.renderBadgeContent())), h("div", { key: '
|
|
1189
|
+
} }, this.renderBadgeContent())), h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
|
|
1187
1190
|
}
|
|
1188
1191
|
static get watchers() { return {
|
|
1189
1192
|
"clientStyling": ["handleClientStylingChange"],
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengesOverlay } from './casino-challenges-overlay-
|
|
1
|
+
export { C as CasinoChallengesOverlay } from './casino-challenges-overlay-97159a90.js';
|
|
2
2
|
import './index-58f943ea.js';
|
|
@@ -74,6 +74,7 @@ export declare class CasinoChallengesOverlay {
|
|
|
74
74
|
private statusTimeoutId;
|
|
75
75
|
private progressTarget;
|
|
76
76
|
private hadActiveProgress;
|
|
77
|
+
private lastActiveChallengeId;
|
|
77
78
|
/** Set by the update that completed a level; the next render starts the level complete animation */
|
|
78
79
|
private hasPendingLevelComplete;
|
|
79
80
|
private circleElement;
|