@everymatrix/casino-challenges-overlay 0.21.25 → 0.21.27

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.
@@ -1 +1 @@
1
- export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-241ddb3f.js";import"./index-b4a452f5.js";
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-ba80fe26.js');
6
+ const casinoChallengesOverlay = require('./casino-challenges-overlay-00bb9c6a.js');
7
7
 
8
8
  const DEFAULT_LANGUAGE$3 = 'en';
9
9
  const TRANSLATIONS$3 = {
@@ -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: 'b2f7821020d8a4b0e19ba22ba7e100f7977e5440', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: 'f902ff6a4ae2c5a473c1104bf2885949320cc70d', class: "container", onClick: this.handleClick }, index.h("div", { key: '89152c3831113c328b5f354a88cd212612c24244', class: "circle", style: {
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: '3dc55842963560598fef9d3186cf3f37a035e4b5', class: "circle__img", src: bgIconSvg }), index.h("div", { key: '9244e9d61490cc44803a2a4c01679b377734f384', 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: '291b8c266815b80ca4121227132581df8146ccd9', class: "dot", style: {
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: '33b0e12cc8dfc8344ca4a27d904515d65c6cf5a7', class: {
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: '4cc75815533a7eb1a844660aeda1ab4b5efad2d5', 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: 'a437ea7454628d3c68a43bb03b450320828af481', 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 }))));
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"],
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoChallengesOverlay = require('./casino-challenges-overlay-ba80fe26.js');
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: 'b2f7821020d8a4b0e19ba22ba7e100f7977e5440', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'f902ff6a4ae2c5a473c1104bf2885949320cc70d', class: "container", onClick: this.handleClick }, h("div", { key: '89152c3831113c328b5f354a88cd212612c24244', class: "circle", style: {
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: '3dc55842963560598fef9d3186cf3f37a035e4b5', class: "circle__img", src: bgIcon }), h("div", { key: '9244e9d61490cc44803a2a4c01679b377734f384', 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: '291b8c266815b80ca4121227132581df8146ccd9', class: "dot", style: {
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: '33b0e12cc8dfc8344ca4a27d904515d65c6cf5a7', class: {
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: '4cc75815533a7eb1a844660aeda1ab4b5efad2d5', 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: 'a437ea7454628d3c68a43bb03b450320828af481', 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 }))));
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-241ddb3f.js';
3
- export { C as casino_challenges_overlay } from './casino-challenges-overlay-241ddb3f.js';
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 = {
@@ -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: 'b2f7821020d8a4b0e19ba22ba7e100f7977e5440', ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'f902ff6a4ae2c5a473c1104bf2885949320cc70d', class: "container", onClick: this.handleClick }, h("div", { key: '89152c3831113c328b5f354a88cd212612c24244', class: "circle", style: {
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: '3dc55842963560598fef9d3186cf3f37a035e4b5', class: "circle__img", src: bgIconSvg }), h("div", { key: '9244e9d61490cc44803a2a4c01679b377734f384', 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: '291b8c266815b80ca4121227132581df8146ccd9', class: "dot", style: {
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: '33b0e12cc8dfc8344ca4a27d904515d65c6cf5a7', class: {
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: '4cc75815533a7eb1a844660aeda1ab4b5efad2d5', 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: 'a437ea7454628d3c68a43bb03b450320828af481', 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 }))));
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-241ddb3f.js';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-challenges-overlay",
3
- "version": "0.21.25",
3
+ "version": "0.21.27",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",