@everymatrix/casino-challenges-overlay 0.21.25 → 0.21.26
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-b293562e.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-ba80fe26.js → casino-challenges-overlay-00bb9c6a.js} +5 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-challenges-overlay/casino-challenges-overlay.js +5 -5
- package/dist/esm/casino-challenge-details-events_23.entry.js +2 -2
- package/dist/esm/{casino-challenges-overlay-241ddb3f.js → casino-challenges-overlay-b293562e.js} +5 -5
- package/dist/esm/index.js +1 -1
- package/dist/types/utils/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-challenges-overlay/casino-challenges-overlay-241ddb3f.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-
|
|
1
|
+
export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-b293562e.js";import"./index-b4a452f5.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-6300a889.js');
|
|
6
|
-
const casinoChallengesOverlay = require('./casino-challenges-overlay-
|
|
6
|
+
const casinoChallengesOverlay = require('./casino-challenges-overlay-00bb9c6a.js');
|
|
7
7
|
|
|
8
8
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
9
9
|
const TRANSLATIONS$3 = {
|
package/dist/cjs/{casino-challenges-overlay-ba80fe26.js → casino-challenges-overlay-00bb9c6a.js}
RENAMED
|
@@ -429,7 +429,7 @@ const CasinoChallengesOverlay = class {
|
|
|
429
429
|
}
|
|
430
430
|
this.modalOrderNumber = (level === null || level === void 0 ? void 0 : level.OrderNumber) + 1;
|
|
431
431
|
this.modalReward = level === null || level === void 0 ? void 0 : level.CustomRewardMessage;
|
|
432
|
-
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram);
|
|
432
|
+
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram && x.BonusProgramGames != null);
|
|
433
433
|
this.modalAddition = (_e = level === null || level === void 0 ? void 0 : level.Rewards) === null || _e === void 0 ? void 0 : _e.some((x) => x.Type === EChallengeRewardType.Custom);
|
|
434
434
|
this.modalBonusProgramGames = ((_f = data === null || data === void 0 ? void 0 : data.BonusProgramGames) !== null && _f !== void 0 ? _f : []);
|
|
435
435
|
}
|
|
@@ -644,15 +644,15 @@ const CasinoChallengesOverlay = class {
|
|
|
644
644
|
if (!hasActiveProgress) {
|
|
645
645
|
currProgress = 100;
|
|
646
646
|
}
|
|
647
|
-
return (index.h("div", { key: '
|
|
647
|
+
return (index.h("div", { key: '2ad7b4850637fbbc574a877e9e758da67b95474b', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: 'f7c48bbdb4cb85cd4a41daa6910cf5780e8cfc08', class: "container", onClick: this.handleClick }, index.h("div", { key: '694ec636c287370eee6bfd09d104ca5081dc46b1', class: "circle", style: {
|
|
648
648
|
'--progress': `${currProgress}%`
|
|
649
|
-
} }, index.h("img", { key: '
|
|
649
|
+
} }, index.h("img", { key: '65653d01e0157d8e6829f43c2ff13460b3c50128', class: "circle__img", src: bgIconSvg }), index.h("div", { key: '0b8824bbd462ecc57486dbd124d105fe1b749a4f', class: "circle__content" }, hasActiveProgress ? (index.h("span", null, Math.floor(currProgress), "%")) : (index.h("span", { class: "join-icon", style: { '--join-icon-mask': `url(${joinSvg})` } }))), dot && (index.h("div", { key: 'd077fe10cb26186e3f39ef4658770480efa3ccc1', class: "dot", style: {
|
|
650
650
|
left: `${dot.x}px`,
|
|
651
651
|
top: `${dot.y}px`
|
|
652
|
-
} }))), hasActiveProgress && (index.h("div", { key: '
|
|
652
|
+
} }))), hasActiveProgress && (index.h("div", { key: '1e71497ef2c683c02ed0db60b7dd1024cc427f52', class: {
|
|
653
653
|
badge: true,
|
|
654
654
|
new: this.isNew
|
|
655
|
-
} }, this.renderBadgeContent()))), index.h("casino-challenges-overlay-modal", { key: '
|
|
655
|
+
} }, this.renderBadgeContent()))), index.h("casino-challenges-overlay-modal", { key: '5723a624e5b4ee9a0cd5f10df632c73aed5ba70c', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (index.h("casino-challenges-overlay-drawer", { key: 'c1547c8f07fe79831f066d82d871efa2d7f32ce8', 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 }))));
|
|
656
656
|
}
|
|
657
657
|
static get watchers() { return {
|
|
658
658
|
"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-00bb9c6a.js');
|
|
6
6
|
require('./index-6300a889.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -189,7 +189,7 @@ export class CasinoChallengesOverlay {
|
|
|
189
189
|
}
|
|
190
190
|
this.modalOrderNumber = (level === null || level === void 0 ? void 0 : level.OrderNumber) + 1;
|
|
191
191
|
this.modalReward = level === null || level === void 0 ? void 0 : level.CustomRewardMessage;
|
|
192
|
-
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram);
|
|
192
|
+
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram && x.BonusProgramGames != null);
|
|
193
193
|
this.modalAddition = (_e = level === null || level === void 0 ? void 0 : level.Rewards) === null || _e === void 0 ? void 0 : _e.some((x) => x.Type === EChallengeRewardType.Custom);
|
|
194
194
|
this.modalBonusProgramGames = ((_f = data === null || data === void 0 ? void 0 : data.BonusProgramGames) !== null && _f !== void 0 ? _f : []);
|
|
195
195
|
}
|
|
@@ -404,15 +404,15 @@ export class CasinoChallengesOverlay {
|
|
|
404
404
|
if (!hasActiveProgress) {
|
|
405
405
|
currProgress = 100;
|
|
406
406
|
}
|
|
407
|
-
return (h("div", { key: '
|
|
407
|
+
return (h("div", { key: '2ad7b4850637fbbc574a877e9e758da67b95474b', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'f7c48bbdb4cb85cd4a41daa6910cf5780e8cfc08', class: "container", onClick: this.handleClick }, h("div", { key: '694ec636c287370eee6bfd09d104ca5081dc46b1', class: "circle", style: {
|
|
408
408
|
'--progress': `${currProgress}%`
|
|
409
|
-
} }, h("img", { key: '
|
|
409
|
+
} }, h("img", { key: '65653d01e0157d8e6829f43c2ff13460b3c50128', class: "circle__img", src: bgIcon }), h("div", { key: '0b8824bbd462ecc57486dbd124d105fe1b749a4f', class: "circle__content" }, hasActiveProgress ? (h("span", null, Math.floor(currProgress), "%")) : (h("span", { class: "join-icon", style: { '--join-icon-mask': `url(${joinIcon})` } }))), dot && (h("div", { key: 'd077fe10cb26186e3f39ef4658770480efa3ccc1', class: "dot", style: {
|
|
410
410
|
left: `${dot.x}px`,
|
|
411
411
|
top: `${dot.y}px`
|
|
412
|
-
} }))), hasActiveProgress && (h("div", { key: '
|
|
412
|
+
} }))), hasActiveProgress && (h("div", { key: '1e71497ef2c683c02ed0db60b7dd1024cc427f52', class: {
|
|
413
413
|
badge: true,
|
|
414
414
|
new: this.isNew
|
|
415
|
-
} }, this.renderBadgeContent()))), h("casino-challenges-overlay-modal", { key: '
|
|
415
|
+
} }, this.renderBadgeContent()))), h("casino-challenges-overlay-modal", { key: '5723a624e5b4ee9a0cd5f10df632c73aed5ba70c', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: 'c1547c8f07fe79831f066d82d871efa2d7f32ce8', 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 }))));
|
|
416
416
|
}
|
|
417
417
|
static get is() { return "casino-challenges-overlay"; }
|
|
418
418
|
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-b4a452f5.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-b293562e.js';
|
|
3
|
+
export { C as casino_challenges_overlay } from './casino-challenges-overlay-b293562e.js';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LANGUAGE$3 = 'en';
|
|
6
6
|
const TRANSLATIONS$3 = {
|
package/dist/esm/{casino-challenges-overlay-241ddb3f.js → casino-challenges-overlay-b293562e.js}
RENAMED
|
@@ -427,7 +427,7 @@ const CasinoChallengesOverlay = class {
|
|
|
427
427
|
}
|
|
428
428
|
this.modalOrderNumber = (level === null || level === void 0 ? void 0 : level.OrderNumber) + 1;
|
|
429
429
|
this.modalReward = level === null || level === void 0 ? void 0 : level.CustomRewardMessage;
|
|
430
|
-
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram);
|
|
430
|
+
this.modalIsFreeSpinsGranted = (_d = level === null || level === void 0 ? void 0 : level.Rewards) === null || _d === void 0 ? void 0 : _d.some((x) => x.Type === EChallengeRewardType.BonusProgram && x.BonusProgramGames != null);
|
|
431
431
|
this.modalAddition = (_e = level === null || level === void 0 ? void 0 : level.Rewards) === null || _e === void 0 ? void 0 : _e.some((x) => x.Type === EChallengeRewardType.Custom);
|
|
432
432
|
this.modalBonusProgramGames = ((_f = data === null || data === void 0 ? void 0 : data.BonusProgramGames) !== null && _f !== void 0 ? _f : []);
|
|
433
433
|
}
|
|
@@ -642,15 +642,15 @@ const CasinoChallengesOverlay = class {
|
|
|
642
642
|
if (!hasActiveProgress) {
|
|
643
643
|
currProgress = 100;
|
|
644
644
|
}
|
|
645
|
-
return (h("div", { key: '
|
|
645
|
+
return (h("div", { key: '2ad7b4850637fbbc574a877e9e758da67b95474b', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'f7c48bbdb4cb85cd4a41daa6910cf5780e8cfc08', class: "container", onClick: this.handleClick }, h("div", { key: '694ec636c287370eee6bfd09d104ca5081dc46b1', class: "circle", style: {
|
|
646
646
|
'--progress': `${currProgress}%`
|
|
647
|
-
} }, h("img", { key: '
|
|
647
|
+
} }, h("img", { key: '65653d01e0157d8e6829f43c2ff13460b3c50128', class: "circle__img", src: bgIconSvg }), h("div", { key: '0b8824bbd462ecc57486dbd124d105fe1b749a4f', class: "circle__content" }, hasActiveProgress ? (h("span", null, Math.floor(currProgress), "%")) : (h("span", { class: "join-icon", style: { '--join-icon-mask': `url(${joinSvg})` } }))), dot && (h("div", { key: 'd077fe10cb26186e3f39ef4658770480efa3ccc1', class: "dot", style: {
|
|
648
648
|
left: `${dot.x}px`,
|
|
649
649
|
top: `${dot.y}px`
|
|
650
|
-
} }))), hasActiveProgress && (h("div", { key: '
|
|
650
|
+
} }))), hasActiveProgress && (h("div", { key: '1e71497ef2c683c02ed0db60b7dd1024cc427f52', class: {
|
|
651
651
|
badge: true,
|
|
652
652
|
new: this.isNew
|
|
653
|
-
} }, this.renderBadgeContent()))), h("casino-challenges-overlay-modal", { key: '
|
|
653
|
+
} }, this.renderBadgeContent()))), h("casino-challenges-overlay-modal", { key: '5723a624e5b4ee9a0cd5f10df632c73aed5ba70c', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: 'c1547c8f07fe79831f066d82d871efa2d7f32ce8', 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 }))));
|
|
654
654
|
}
|
|
655
655
|
static get watchers() { return {
|
|
656
656
|
"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-b293562e.js';
|
|
2
2
|
import './index-b4a452f5.js';
|
|
@@ -58,6 +58,7 @@ export interface IChallengeLevelReward {
|
|
|
58
58
|
BonusCode?: string | null;
|
|
59
59
|
LoyaltyEngineRewardType: number;
|
|
60
60
|
RewardAmount: number;
|
|
61
|
+
BonusProgramGames?: Record<string, string[]> | null;
|
|
61
62
|
}
|
|
62
63
|
export interface IChallengePresentation {
|
|
63
64
|
TriggerPopupMessage: string;
|