@everymatrix/player-elevate-level 1.69.0 → 1.69.3

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.
Files changed (32) hide show
  1. package/dist/cjs/bonus-elevate-levels_8.cjs.entry.js +106 -29
  2. package/dist/cjs/index-935495e7.js +0 -4
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{player-elevate-card-items-6e894dae.js → player-elevate-card-items-cfb502f3.js} +2 -0
  5. package/dist/cjs/player-elevate-card.cjs.entry.js +3 -2
  6. package/dist/cjs/player-elevate-level.cjs.js +1 -1
  7. package/dist/cjs/player-elevate-pointcard.cjs.entry.js +4 -3
  8. package/dist/cjs/player-rakeback-card.cjs.entry.js +2 -1
  9. package/dist/collection/collection-manifest.json +0 -6
  10. package/dist/collection/components/player-elevate-level/player-elevate-level.js +19 -1
  11. package/dist/collection/components/player-elevate-level/player-elevate-level.stories.js +6 -3
  12. package/dist/esm/bonus-elevate-levels_8.entry.js +106 -29
  13. package/dist/esm/index-8b0eeaf7.js +0 -4
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/{player-elevate-card-items-e28305d4.js → player-elevate-card-items-4fdc5656.js} +2 -1
  16. package/dist/esm/player-elevate-card.entry.js +3 -2
  17. package/dist/esm/player-elevate-level.js +1 -1
  18. package/dist/esm/player-elevate-pointcard.entry.js +4 -3
  19. package/dist/esm/player-rakeback-card.entry.js +2 -1
  20. package/dist/player-elevate-level/bonus-elevate-levels_8.entry.js +1 -1
  21. package/dist/player-elevate-level/{player-elevate-card-items-e28305d4.js → player-elevate-card-items-4fdc5656.js} +1 -1
  22. package/dist/player-elevate-level/player-elevate-card.entry.js +1 -1
  23. package/dist/player-elevate-level/player-elevate-level.esm.js +1 -1
  24. package/dist/player-elevate-level/player-elevate-pointcard.entry.js +1 -1
  25. package/dist/player-elevate-level/player-rakeback-card.entry.js +1 -1
  26. package/dist/types/components/player-elevate-level/player-elevate-level.d.ts +2 -0
  27. package/dist/types/components/player-elevate-level/player-elevate-level.stories.d.ts +1 -1
  28. package/dist/types/components.d.ts +8 -0
  29. package/package.json +1 -1
  30. package/dist/cjs/user-login.cjs.entry.js +0 -22472
  31. package/dist/esm/user-login.entry.js +0 -22468
  32. package/dist/player-elevate-level/user-login.entry.js +0 -2654
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-935495e7.js');
6
6
  const locale_utils = require('./locale.utils-6b4c0dbd.js');
7
- const playerElevateCardItems = require('./player-elevate-card-items-6e894dae.js');
7
+ const playerElevateCardItems = require('./player-elevate-card-items-cfb502f3.js');
8
8
 
9
9
  const DEFAULT_LANGUAGE = 'en';
10
10
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'hr', 'tr'];
@@ -63,6 +63,7 @@ const BonusElevateLevels = class {
63
63
  index.registerInstance(this, hostRef);
64
64
  this.clientStyling = '';
65
65
  this.clientStylingUrl = '';
66
+ this.mbSource = undefined;
66
67
  this.endpoint = undefined;
67
68
  this.language = 'en';
68
69
  this.translationUrl = '';
@@ -119,9 +120,9 @@ const BonusElevateLevels = class {
119
120
  }
120
121
  render() {
121
122
  var _a;
122
- return (index.h("div", { key: '327b5cd6a3bc756ce0696a0f2a4081f35bad7316', class: "ElevateLevelContent" }, index.h("elevate-levels-data", { key: 'cf1ab9a55cdaf9eba688bd524cb4a83d63563e77', scopeParams: this.elevateLevelParamProxy }), index.h("div", { key: '9c85b9a805712db07c7c99ac2db843062997f667', class: "LevelContent" }, ((_a = this.elevateLevels) === null || _a === void 0 ? void 0 : _a.length) ?
123
+ return (index.h("div", { key: '6bc46c87633a9a295108e50886096f67dd35d44a', class: "ElevateLevelContent" }, index.h("elevate-levels-data", { key: '902d2796991a8acf293761255ab10f2cee54a92e', scopeParams: this.elevateLevelParamProxy }), index.h("div", { key: '7e47a25dce1d0fba40e3e432dd9c805aa5bbe308', class: "LevelContent" }, ((_a = this.elevateLevels) === null || _a === void 0 ? void 0 : _a.length) ?
123
124
  index.h("elevate-level-list", { language: this.language, selectedLevelId: this.selectedLevelId, levels: this.elevateLevels }) : translate('noLevelsSet', this.language), this.currentLevel &&
124
- index.h("elevate-level-presentation", { key: '57ea5391608a7c4c4f7eb7f130a8c9f982fe5045', elevateLevel: this.currentLevel })), this.errorMessage && index.h("div", { key: '46121a28053608f8e9632a8a3976c0b33c4d5e72' }, this.errorMessage), index.h("general-styling-wrapper", { key: 'bdbaeee850d2ad84bf26fa81979ae662469a8b41', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl })));
125
+ index.h("elevate-level-presentation", { key: 'dcfad9aa4422545fa74a7b8b957eb72001506046', elevateLevel: this.currentLevel })), this.errorMessage && index.h("div", { key: '7e2741168e50a1ee2adebe39c2c3433b5c9bf7ca' }, this.errorMessage), index.h("general-styling-wrapper", { key: '74cae021838f61964a519c2f200cfbb1f8470778', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource })));
125
126
  }
126
127
  static get watchers() { return {
127
128
  "selectedLevelId": ["selectedLevelIdChangedHandler"],
@@ -378,10 +379,71 @@ const mergeTranslations = (url, target) => {
378
379
  });
379
380
  });
380
381
  resolve(true);
382
+ })
383
+ .catch(err => {
384
+ console.error("Failed to load translations:", err);
385
+ resolve(false);
381
386
  });
382
387
  });
383
388
  };
384
389
 
390
+ /**
391
+ * @name setClientStyling
392
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
393
+ * @param {HTMLElement} stylingContainer The reference element of the widget
394
+ * @param {string} clientStyling The style content
395
+ */
396
+ function setClientStyling(stylingContainer, clientStyling) {
397
+ if (stylingContainer) {
398
+ const sheet = document.createElement('style');
399
+ sheet.innerHTML = clientStyling;
400
+ stylingContainer.appendChild(sheet);
401
+ }
402
+ }
403
+
404
+ /**
405
+ * @name setClientStylingURL
406
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
407
+ * @param {HTMLElement} stylingContainer The reference element of the widget
408
+ * @param {string} clientStylingUrl The URL of the style content
409
+ */
410
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
411
+ const url = new URL(clientStylingUrl);
412
+
413
+ fetch(url.href)
414
+ .then((res) => res.text())
415
+ .then((data) => {
416
+ const cssFile = document.createElement('style');
417
+ cssFile.innerHTML = data;
418
+ if (stylingContainer) {
419
+ stylingContainer.appendChild(cssFile);
420
+ }
421
+ })
422
+ .catch((err) => {
423
+ console.error('There was an error while trying to load client styling from URL', err);
424
+ });
425
+ }
426
+
427
+ /**
428
+ * @name setStreamLibrary
429
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
430
+ * @param {HTMLElement} stylingContainer The highest element of the widget
431
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
432
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
433
+ */
434
+ function setStreamStyling(stylingContainer, domain, subscription) {
435
+ if (window.emMessageBus) {
436
+ const sheet = document.createElement('style');
437
+
438
+ window.emMessageBus.subscribe(domain, (data) => {
439
+ sheet.innerHTML = data;
440
+ if (stylingContainer) {
441
+ stylingContainer.appendChild(sheet);
442
+ }
443
+ });
444
+ }
445
+ }
446
+
385
447
  const generalStylingWrapperCss = ":host{display:block}";
386
448
  const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
387
449
 
@@ -389,38 +451,47 @@ const GeneralStylingWrapper = class {
389
451
  constructor(hostRef) {
390
452
  index.registerInstance(this, hostRef);
391
453
  this.stylingAppends = false;
392
- this.setClientStyling = () => {
393
- let sheet = document.createElement('style');
394
- sheet.innerHTML = this.clientStyling;
395
- this.el.prepend(sheet);
396
- };
397
- this.setClientStylingURL = () => {
398
- let url = new URL(this.clientStylingUrl);
399
- let cssFile = document.createElement('style');
400
- fetch(url.href)
401
- .then((res) => res.text())
402
- .then((data) => {
403
- cssFile.innerHTML = data;
404
- setTimeout(() => {
405
- this.el.prepend(cssFile);
406
- }, 1);
407
- })
408
- .catch((err) => {
409
- console.log('error ', err);
410
- });
411
- };
412
454
  this.clientStyling = '';
413
455
  this.clientStylingUrl = '';
456
+ this.mbSource = undefined;
414
457
  this.translationUrl = '';
415
458
  this.targetTranslations = undefined;
416
459
  }
460
+ componentDidLoad() {
461
+ if (this.el) {
462
+ if (window.emMessageBus != undefined) {
463
+ setStreamStyling(this.el, `${this.mbSource}.Style`);
464
+ }
465
+ else {
466
+ if (this.clientStyling)
467
+ setClientStyling(this.el, this.clientStyling);
468
+ if (this.clientStylingUrl)
469
+ setClientStylingURL(this.el, this.clientStylingUrl);
470
+ this.stylingAppends = true;
471
+ }
472
+ }
473
+ }
474
+ disconnectedCallback() {
475
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
476
+ }
477
+ handleClientStylingChange(newValue, oldValue) {
478
+ if (newValue != oldValue) {
479
+ setClientStyling(this.el, this.clientStyling);
480
+ }
481
+ }
482
+ handleClientStylingUrlChange(newValue, oldValue) {
483
+ if (newValue != oldValue) {
484
+ if (this.clientStylingUrl)
485
+ setClientStylingURL(this.el, this.clientStylingUrl);
486
+ }
487
+ }
417
488
  componentDidRender() {
418
489
  // start custom styling area
419
490
  if (!this.stylingAppends) {
420
491
  if (this.clientStyling)
421
- this.setClientStyling();
492
+ setClientStyling(this.el, this.clientStyling);
422
493
  if (this.clientStylingUrl)
423
- this.setClientStylingURL();
494
+ setClientStylingURL(this.el, this.clientStylingUrl);
424
495
  this.stylingAppends = true;
425
496
  }
426
497
  // end custom styling area
@@ -434,9 +505,13 @@ const GeneralStylingWrapper = class {
434
505
  return await Promise.all(promises);
435
506
  }
436
507
  render() {
437
- return (index.h("div", { key: '4d3414408c7662f88331dbe655966237f74d6958', class: "StyleShell" }, index.h("slot", { key: '1d004644d84602c4314bdf5dfc26b55b160f57df', name: "mainContent" })));
508
+ return (index.h("div", { key: '09ad83748bbad518743c8671b986c541c52bf3f0', class: "StyleShell" }, index.h("slot", { key: '3b28b776d3944410c717b002b70946d274a4e8e7', name: "mainContent" })));
438
509
  }
439
510
  get el() { return index.getElement(this); }
511
+ static get watchers() { return {
512
+ "clientStyling": ["handleClientStylingChange"],
513
+ "clientStylingUrl": ["handleClientStylingUrlChange"]
514
+ }; }
440
515
  };
441
516
  GeneralStylingWrapper.style = GeneralStylingWrapperStyle0;
442
517
 
@@ -907,6 +982,7 @@ const PlayerElevateLevel = class {
907
982
  this.language = undefined;
908
983
  this.playerName = undefined;
909
984
  this.dateFormat = 'yyyy-MM-dd';
985
+ this.mbSource = undefined;
910
986
  this.clientStyling = '';
911
987
  this.clientStylingUrl = '';
912
988
  this.translationUrl = '';
@@ -918,12 +994,12 @@ const PlayerElevateLevel = class {
918
994
  }
919
995
  }
920
996
  render() {
921
- return index.h(index.Host, { key: '8ff544f13c2709a4f5314e0c4e190ca70d9732ff' }, index.h("div", { key: '90c75c6283ab1b7b83f5b9af8b163853852a5636', class: 'PlayerElevateCard' }, index.h("player-elevate-loyaltycard", { key: 'be1ab26bc44443547364a64cc31e6bac42e8ba8e', playerName: this.playerName, dateFormat: this.dateFormat, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, clientStyling: `${this.clientStyling} .Outer{height: 185px}`, endpoint: this.endpoint, language: this.language, session: this.session })), index.h("div", { key: 'd868908d61b3320a4c3751eab8cf8cdbd98c41c4', class: 'ElevateLevelsInfo' }, index.h("bonus-elevate-levels", { key: '715bc9c3d15e1ac07f4fc75217beeaa48875ec63', selectedLevelId: this.userLevelId, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, endpoint: this.endpoint })), index.h("general-styling-wrapper", { key: '0e40a6825499a6c44e04dadce2079d995ecb2702', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }));
997
+ return index.h(index.Host, { key: 'f039ea289aa472352232b46c7cdac78736edca71' }, index.h("div", { key: '6085bdf6bd805e59a83172c384dc580d44f09fcb', class: 'PlayerElevateCard' }, index.h("player-elevate-loyaltycard", { key: '8cb6d33753fa01274b358592303090e43fc59391', playerName: this.playerName, dateFormat: this.dateFormat, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, mbSource: this.mbSource, clientStyling: `${this.clientStyling} .Outer{height: 185px}`, endpoint: this.endpoint, language: this.language, session: this.session })), index.h("div", { key: '403f5f92bbf5e3142e89f0f8e6ec6a73c4326cb3', class: 'ElevateLevelsInfo' }, index.h("bonus-elevate-levels", { key: '0b9dfbbd8dfd10480c3088f5770a52ee711b19f5', selectedLevelId: this.userLevelId, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, mbSource: this.mbSource, language: this.language, endpoint: this.endpoint })), index.h("general-styling-wrapper", { key: '813ea25a331bfd4274988212da027663e5e46b73', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, mbSource: this.mbSource }));
922
998
  }
923
999
  };
924
1000
  PlayerElevateLevel.style = PlayerElevateLevelStyle0;
925
1001
 
926
- const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}";
1002
+ const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:0px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}";
927
1003
  const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
928
1004
 
929
1005
  const PlayerElevateLoyaltycard = class {
@@ -992,7 +1068,8 @@ const PlayerElevateLoyaltycard = class {
992
1068
  render() {
993
1069
  const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
994
1070
  const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
995
- return (index.h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'b53e4b59d4ee55a2f567efa09afab3d72969e6e4', params: this.paramProxy }), index.h("div", { key: '1f3e504440bab2df3a181058fad7149c85c48c14', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '5c104f5ba1a018219c6ed5f6e50af99b035a0344' }, index.h("div", { key: 'bd94591e6ab9298ab7c769fa48efaf314dc1a63b', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '928849ce86d8c7a483eba7850efc83f8149bae43', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '37192c9b8502eb3c7d93914369df2d784c17e9f7', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '2d1df152fa288291128259c3950ff84e7cb6d8f2', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat, language: this.language }), index.h("div", { key: '798167bf5a4525623008954bd91c241fb1fe6f59', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: 'cb88a77677200b0b459900c34781857933e15c26', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: 'c7958718ca7b423842c7f88808ab69246388b75c', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: 'e66ef489cbaa28ac60019daa1eba0b0f04309181' }), index.h("div", { key: 'e6ca3ffc781b37bc92be8a264ae44dcbc01d9024', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '9538973ab5c1d4bdd33f4d532f7041f94a1cb2d7', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
1071
+ return (index.h("div", { key: 'aa8f0d13a1e1d26ea7307d05fc50cda507172949', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '485075740ced316bf89f69359bdc8642dbb2af8f', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '3648821972ac115a1c33705463cdc2cdb427a95b', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: '7b36c46a869bd4b014d1f04dbb718445b23ec964', params: this.paramProxy }), index.h("div", { key: 'f4e5aa453459f693e07c166028aec9b0b696c907', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'd5f1894120cba3e7cf3c54b838a025f469bc445e', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '112ee04598b23dda6911f043101c0c1631454d7f' }, index.h("div", { key: '7af4b6e937bbe73cc00aae0f27f8c93da47bb626', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '1b5037bfa196063f56cccd947c988a3aca0781b0', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '7b714e446f4e01edd4f4aefcc035d070b7d6a47b', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: '37ad8ce5dae374685e74f6772d28e79d251932e3', class: 'CardCell ElevateLevel' }, index.h("span", { key: '2d9dcf4b08fcecc927d3e8bdca74c75ff4336480', class: "LevelName", title: this.playerElevateLevel.name }, this.playerElevateLevel.name)), index.h("div", { key: 'cc89cbaa70d9583b9626da15e98f9fd61d82f81f', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: '32de4cac05a4fd5610af857b25e096a7cb9ba34d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: '298f492c8991384547c31396fc930b5c21f41501', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: 'aca4f5642c41db1c4b7fa04411331a5c25c655dd' }), index.h("div", { key: 'd841c5df319de105376c6eee24bc685757916aae', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '774279829f3f52ee5696550a855a833b39df8c81', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), this.playerElevateLevel.expireTime &&
1072
+ index.h(playerElevateCardItems.LoyaltyLevelExpireDay, { key: '3a4319e502e85b26cb220942492b161ad842be82', expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat, language: this.language })))))))));
996
1073
  }
997
1074
  static get watchers() { return {
998
1075
  "session": ["onSessionOrEndpointChange"],
@@ -87,10 +87,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
87
87
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
88
88
  /* webpackMode: "lazy" */
89
89
  './player-rakeback-card.cjs.entry.js')); }).then(processMod, consoleError);
90
- case 'user-login.cjs':
91
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
92
- /* webpackMode: "lazy" */
93
- './user-login.cjs.entry.js')); }).then(processMod, consoleError);
94
90
  }
95
91
  }
96
92
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
@@ -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([["bonus-elevate-levels_8.cjs",[[1,"player-elevate-level",{"endpoint":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"userLevelId":[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[513],"translationUrl":[513,"translation-url"],"selectedLevelId":[1537,"selected-level-id"],"showDefault":[4,"show-default"],"elevateLevelParamProxy":[32],"elevateLevels":[32],"currentLevel":[32],"errorMessage":[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{"selectedLevelId":["selectedLevelIdChangedHandler"],"elevateLevels":["selectedLevelIdChangedHandler"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"elevate-level-list",{"levels":[16],"language":[1],"selectedLevelId":[1537,"selected-level-id"],"isShowSliderButton":[32],"touchPosStart":[32],"touchPosEnd":[32],"offset":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{"selectedLevelId":["levelsChangedHandler"]}],[0,"elevate-level-presentation",{"elevateLevel":[16]}],[0,"elevate-levels-data",{"scopeParams":[1544,"scope-params"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard.cjs",[[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card.cjs",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]],["user-login.cjs",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"errorForFields":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32],"captchaData":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
11
+ return index.bootstrapLazy([["bonus-elevate-levels_8.cjs",[[1,"player-elevate-level",{"endpoint":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"userLevelId":[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"endpoint":[513],"language":[513],"translationUrl":[513,"translation-url"],"selectedLevelId":[1537,"selected-level-id"],"showDefault":[4,"show-default"],"elevateLevelParamProxy":[32],"elevateLevels":[32],"currentLevel":[32],"errorMessage":[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{"selectedLevelId":["selectedLevelIdChangedHandler"],"elevateLevels":["selectedLevelIdChangedHandler"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"elevate-level-list",{"levels":[16],"language":[1],"selectedLevelId":[1537,"selected-level-id"],"isShowSliderButton":[32],"touchPosStart":[32],"touchPosEnd":[32],"offset":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{"selectedLevelId":["levelsChangedHandler"]}],[0,"elevate-level-presentation",{"elevateLevel":[16]}],[0,"elevate-levels-data",{"scopeParams":[1544,"scope-params"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]],["player-elevate-card.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard.cjs",[[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"mbSource":[513,"mb-source"],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card.cjs",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2212,6 +2212,7 @@ const PlayerElevateCardRedeem = ({ language, onRedeemClick }) => (index.h("div",
2212
2212
  } }, index.h("span", null, locale_utils.translate('redeem', language)))));
2213
2213
  const PlayerNameDiv = (props) => (index.h("div", { class: 'CardCell PlayerName Txt' }, props.playerName));
2214
2214
  const PlayerElevateLoyaltyLevel = (props) => (index.h("div", { class: 'CardCell ElevateLevel' }, index.h("span", { class: "LevelName", title: props.level }, props.level), props.expireTime && (index.h("div", { class: "CardCell ExpirationDate Txt" }, locale_utils.translate('expireOn', props.language), index.h("span", { class: "ExpireTime" }, format(new Date(props.expireTime), props.dateFormat || 'yyyy-MM-dd')), !props.hideInfo && (index.h("span", { class: "fa Info", style: { 'background': `url(${index.getAssetPath('../static/info.svg')})` } }, index.h("span", { class: "InfoTips", innerHTML: tipsInfoSvg })))))));
2215
+ const LoyaltyLevelExpireDay = (props) => (index.h("div", { class: 'CardCell ElevateLevel Expire' }, index.h("div", { class: "CardCell ExpirationDate Txt" }, locale_utils.translate('expireOn', props.language), index.h("span", { class: "ExpireTime" }, format(new Date(props.expireTime), props.dateFormat || 'yyyy-MM-dd')))));
2215
2216
  const PlayerAvatar = (props) => {
2216
2217
  const badge = props.loyaltyIconUrl
2217
2218
  ? index.h("img", { class: "Badge", src: props.loyaltyIconUrl })
@@ -2220,6 +2221,7 @@ const PlayerAvatar = (props) => {
2220
2221
  return index.h("div", { class: "PlayerAvatar", style: { 'position': `${props.onlyBadge ? '' : 'relative'}` } }, !props.onlyBadge && index.h("img", { class: "Avatar", src: avatarSrc }), badge);
2221
2222
  };
2222
2223
 
2224
+ exports.LoyaltyLevelExpireDay = LoyaltyLevelExpireDay;
2223
2225
  exports.PlayerAvatar = PlayerAvatar;
2224
2226
  exports.PlayerElevateCardRedeem = PlayerElevateCardRedeem;
2225
2227
  exports.PlayerElevateLoyaltyLevel = PlayerElevateLoyaltyLevel;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-935495e7.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-6e894dae.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-cfb502f3.js');
7
7
  const locale_utils = require('./locale.utils-6b4c0dbd.js');
8
8
 
9
9
  const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
@@ -19,6 +19,7 @@ const PlayerElevateCard = class {
19
19
  this.language = 'en';
20
20
  this.playerName = undefined;
21
21
  this.dateFormat = 'yyyy-MM-dd';
22
+ this.mbSource = undefined;
22
23
  this.clientStyling = '';
23
24
  this.clientStylingUrl = '';
24
25
  this.translationUrl = '';
@@ -61,7 +62,7 @@ const PlayerElevateCard = class {
61
62
  render() {
62
63
  const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
63
64
  const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
64
- return (index.h("div", { key: '278a328dd084ee73b2707b93a57bccae64a2c9c7', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '68c885baf533447a7c77fd887bbec11e53768277', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '4066253a70cdd5e712ca244a708e7c1600c83071', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '64cda2a267c752056b3c7e3134cc324fa96bc261', params: this.paramProxy }), index.h("div", { key: 'c63ae83b401a35f5a78acd83dc3d7296c25141d7', class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (index.h(index.Fragment, { key: 'ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c' }, index.h("div", { key: 'fa1bf74f45e28318c95266cc42c54541bde92718', class: 'Content Row' }, index.h("div", { key: '7ede46f91bcc0d894b2b633627a4ca97d15fbe90', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: 'b6d0bac085e0178512b8a63ba8fccae7d4cc8399', playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), index.h(playerElevateCardItems.PlayerPoints, { key: '88c445dbcd7dbe426a8de18beea02aecc03e26f3', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (index.h("div", { key: '4d985e486ecb74a6c916b28e619de83cb3d77ac1', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h("div", { key: '34e051ee1ff79b825fca57db958e1e5684a0aca1', class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, index.h(playerElevateCardItems.PlayerNameDiv, { key: 'fa1b1f16e0b25c6adfba4c215e4ed377e05699b2', playerName: this.playerName }), index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '6d18b1422db202363ebcd56cc56946e0e071937b', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '7dae355c4a5a9e28c70dced0ac061608f1753020' }), index.h(playerElevateCardItems.PlayerElevateCardRedeem, { key: '7e5f830b612c962a828c58f20a88dc97d315c910', onRedeemClick: this.onRedeemClick, language: this.language })))))))));
65
+ return (index.h("div", { key: 'e976417483a756b8f67d70feb09afb544efb3802', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '5de2dbc7d093bbcbe7b415122effa691c058ddb6', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '1a5b13640d37efab6dacee24e27f9f2bdc83cd0c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: 'e80389984932f77408c772ad9cb130de99e88504', params: this.paramProxy }), index.h("div", { key: 'fec6145e06a300bc044fec2f96e61dfe86f44d6c', class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (index.h(index.Fragment, { key: '90b1f057c5d1d5ae286a75c3d30182c16593bbe6' }, index.h("div", { key: 'cf5a0cc332fc6beafe079a2b500ebbc1f8d21b91', class: 'Content Row' }, index.h("div", { key: 'f3348ba8eb7bcb08085ab49ce2059c7fd86f862f', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '8fa96d942ee70d43ea0231b87f5d5de0b72198df', playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), index.h(playerElevateCardItems.PlayerPoints, { key: 'f774e833169326404d44dd8c2361bd89f0e5a9e6', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (index.h("div", { key: 'c85b28e71be4e13df275f2ae74f5b0c9538b3cda', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h("div", { key: '63ef752d5e25c3a65e5af7977b9e9f4846b8ba45', class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, index.h(playerElevateCardItems.PlayerNameDiv, { key: '7cc0d416fe0aadc1b7406b95b31d23ad2ca45ba4', playerName: this.playerName }), index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '38d7c5aed410c9bf55e9640a98f6f74fc2d38291', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '2e1305ff3bea4cb2f432f1187c40bb36a1464627' }), index.h(playerElevateCardItems.PlayerElevateCardRedeem, { key: '427405f246bec7a028b5164fc70292b769ea609b', onRedeemClick: this.onRedeemClick, language: this.language })))))))));
65
66
  }
66
67
  static get assetsDirs() { return ["../static"]; }
67
68
  static get watchers() { return {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["bonus-elevate-levels_8.cjs",[[1,"player-elevate-level",{"endpoint":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"userLevelId":[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[513],"translationUrl":[513,"translation-url"],"selectedLevelId":[1537,"selected-level-id"],"showDefault":[4,"show-default"],"elevateLevelParamProxy":[32],"elevateLevels":[32],"currentLevel":[32],"errorMessage":[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{"selectedLevelId":["selectedLevelIdChangedHandler"],"elevateLevels":["selectedLevelIdChangedHandler"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"elevate-level-list",{"levels":[16],"language":[1],"selectedLevelId":[1537,"selected-level-id"],"isShowSliderButton":[32],"touchPosStart":[32],"touchPosEnd":[32],"offset":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{"selectedLevelId":["levelsChangedHandler"]}],[0,"elevate-level-presentation",{"elevateLevel":[16]}],[0,"elevate-levels-data",{"scopeParams":[1544,"scope-params"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard.cjs",[[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card.cjs",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]],["user-login.cjs",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"errorForFields":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32],"captchaData":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
22
+ return index.bootstrapLazy([["bonus-elevate-levels_8.cjs",[[1,"player-elevate-level",{"endpoint":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"userLevelId":[32]},[[0,"playerElevateLeveLoaded","setPlayerElevateLevelInfo"]]],[1,"bonus-elevate-levels",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"endpoint":[513],"language":[513],"translationUrl":[513,"translation-url"],"selectedLevelId":[1537,"selected-level-id"],"showDefault":[4,"show-default"],"elevateLevelParamProxy":[32],"elevateLevels":[32],"currentLevel":[32],"errorMessage":[32]},[[0,"selectedLevelChanged","selectedLevelChangedHandler"],[2,"elevateLevelsDataChange","elevateLevelsDataChangeHandler"]],{"selectedLevelId":["selectedLevelIdChangedHandler"],"elevateLevels":["selectedLevelIdChangedHandler"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"elevate-level-list",{"levels":[16],"language":[1],"selectedLevelId":[1537,"selected-level-id"],"isShowSliderButton":[32],"touchPosStart":[32],"touchPosEnd":[32],"offset":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[9,"resize","handleResize"]],{"selectedLevelId":["levelsChangedHandler"]}],[0,"elevate-level-presentation",{"elevateLevel":[16]}],[0,"elevate-levels-data",{"scopeParams":[1544,"scope-params"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]],["player-elevate-card.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard.cjs",[[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"mbSource":[513,"mb-source"],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card.cjs",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-935495e7.js');
6
6
  const locale_utils = require('./locale.utils-6b4c0dbd.js');
7
- const playerElevateCardItems = require('./player-elevate-card-items-6e894dae.js');
7
+ const playerElevateCardItems = require('./player-elevate-card-items-cfb502f3.js');
8
8
 
9
9
  const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";
10
10
  const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
@@ -18,6 +18,7 @@ const PlayerElevatePointcard = class {
18
18
  this.session = undefined;
19
19
  this.playerAvatarUrl = undefined;
20
20
  this.language = 'en';
21
+ this.mbSource = undefined;
21
22
  this.playerName = undefined;
22
23
  this.cardTitle = undefined;
23
24
  this.buttonType = 'earningRule';
@@ -62,9 +63,9 @@ const PlayerElevatePointcard = class {
62
63
  render() {
63
64
  const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
64
65
  const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
65
- return (index.h("div", { key: '4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '4371faac6967c5b3eced57f6251064ea4e1d6a65', params: this.paramProxy }), index.h("div", { key: 'c78235a6fdc2aed90df898f007b5ee091cece8dc', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '025e779223c1c85c11998be8389a8ff836a31e6c', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '68daa6047dc93d2596d8b2309a26f56960737617' }, index.h("div", { key: '6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: 'aeaf35ad8055ad4f7312922c8600ea58d09be74f', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: 'bd51ce868b4d8a547f40ec55548bbf3cfa416534', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: '5f4d77a5b43c8efee850b9813bc1c8e61d27d45d', class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : locale_utils.translate('spendablePoints', this.language)), index.h("div", { key: 'eb83431a73b78eaa1e9384e87492f45a258927c7', class: 'PointsTxt SPPoints' }, index.h(playerElevateCardItems.PlayerPoints, { key: '91e1326134f0417dcbc6a0811739ab906272862c', spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }), index.h("a", { key: '4333bb9afa6276f62f25acb8042d9df82fe03f40', class: "TC", onClick: () => {
66
+ return (index.h("div", { key: '45aa5be359b46d5503a8310daa4db2029a8c59b8', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '0d1773bd9eb0913ede4eeedfc93f22967aa133d6', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'cfb35c5220633e39e25b11f0be5b6fc5cc73df5c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: '25206c4deb6e51e3ea60259d4fee3452df8253d6', params: this.paramProxy }), index.h("div", { key: 'c14ee3498a1a584b7f484fe2ef6a204c337d2b27', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'dd7e0528034013d889f1f9bfbacf7928d2b4d1e9', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '20b36f112f735446a6219b61e012e4568f199717' }, index.h("div", { key: '3705136c1ee509484f43b7268b23cfbe273f727c', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: 'b81cbcff0528acd3253a676e0a64141c6414fc2a', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '311b3ffcdf8a3ffe4b609fd0f1d9dee83424ca58', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: 'ba1744b3b9cee03a424093df96454ff68d04aec1', class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : locale_utils.translate('spendablePoints', this.language)), index.h("div", { key: '6b554d17a0f74684e23549365fb06f6079ba7239', class: 'PointsTxt SPPoints' }, index.h(playerElevateCardItems.PlayerPoints, { key: '6c9f812eccea99cd94095c252ba552816f800447', spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }), index.h("a", { key: 'eb79d25c2ccce8c542a192c1ca07265649dbd1bc', class: "TC", onClick: () => {
66
67
  this.onDetailsClick();
67
- } }, locale_utils.translate('termAndConditions', this.language))), this.pointExpireString && (index.h("div", { key: '77c30ba4c25c810e84bac42199ab4ca78bdbae99', class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
68
+ } }, locale_utils.translate('termAndConditions', this.language))), this.pointExpireString && (index.h("div", { key: 'e64127c87c4c4a3e5253606e2c4c472e9b728103', class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
68
69
  }
69
70
  static get watchers() { return {
70
71
  "session": ["onSessionOrEndpointChange"],
@@ -31,6 +31,7 @@ const PlayerRakebackCard = class {
31
31
  this.theme = 'Dark';
32
32
  this.session = undefined;
33
33
  this.language = 'en';
34
+ this.mbSource = undefined;
34
35
  this.clientStyling = '';
35
36
  this.clientStylingUrl = '';
36
37
  this.translationUrl = '';
@@ -144,7 +145,7 @@ const PlayerRakebackCard = class {
144
145
  await this.onShowOrHasRakebackWalletChange();
145
146
  }
146
147
  render() {
147
- return this.showTheWidget ? (index.h("div", { class: "RakebackCard" }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { class: "RakebackCardContent" }, index.h("div", { class: "RakebackTitle" }, locale_utils.translate('rakebackTitle', this.language)), index.h("div", { class: "RakebackDetails" }, index.h("div", { class: "RakebackInfo" }, index.h("div", { class: "RakebackNumContainer" }, index.h("span", { class: "RakebackNum" }, this.rakebackInfo.points), index.h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), index.h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, locale_utils.translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (index.h("div", { class: "RakebackCoolOff" }, locale_utils.translateWithParams('minutesCanClaim', {
148
+ return this.showTheWidget ? (index.h("div", { class: "RakebackCard" }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("div", { class: "RakebackCardContent" }, index.h("div", { class: "RakebackTitle" }, locale_utils.translate('rakebackTitle', this.language)), index.h("div", { class: "RakebackDetails" }, index.h("div", { class: "RakebackInfo" }, index.h("div", { class: "RakebackNumContainer" }, index.h("span", { class: "RakebackNum" }, this.rakebackInfo.points), index.h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), index.h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, locale_utils.translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (index.h("div", { class: "RakebackCoolOff" }, locale_utils.translateWithParams('minutesCanClaim', {
148
149
  lang: this.language,
149
150
  minutes: this.rakebackInfo.minutesCanClaim
150
151
  })))))) : null;
@@ -32,12 +32,6 @@
32
32
  "player-elevate-pointcard",
33
33
  "player-rakeback-card"
34
34
  ]
35
- },
36
- {
37
- "name": "@everymatrix/user-login",
38
- "tags": [
39
- "user-login"
40
- ]
41
35
  }
42
36
  ],
43
37
  "bundles": []
@@ -9,6 +9,7 @@ export class PlayerElevateLevel {
9
9
  this.language = undefined;
10
10
  this.playerName = undefined;
11
11
  this.dateFormat = 'yyyy-MM-dd';
12
+ this.mbSource = undefined;
12
13
  this.clientStyling = '';
13
14
  this.clientStylingUrl = '';
14
15
  this.translationUrl = '';
@@ -20,7 +21,7 @@ export class PlayerElevateLevel {
20
21
  }
21
22
  }
22
23
  render() {
23
- return h(Host, { key: '8ff544f13c2709a4f5314e0c4e190ca70d9732ff' }, h("div", { key: '90c75c6283ab1b7b83f5b9af8b163853852a5636', class: 'PlayerElevateCard' }, h("player-elevate-loyaltycard", { key: 'be1ab26bc44443547364a64cc31e6bac42e8ba8e', playerName: this.playerName, dateFormat: this.dateFormat, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, clientStyling: `${this.clientStyling} .Outer{height: 185px}`, endpoint: this.endpoint, language: this.language, session: this.session })), h("div", { key: 'd868908d61b3320a4c3751eab8cf8cdbd98c41c4', class: 'ElevateLevelsInfo' }, h("bonus-elevate-levels", { key: '715bc9c3d15e1ac07f4fc75217beeaa48875ec63', selectedLevelId: this.userLevelId, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, endpoint: this.endpoint })), h("general-styling-wrapper", { key: '0e40a6825499a6c44e04dadce2079d995ecb2702', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }));
24
+ return h(Host, { key: 'f039ea289aa472352232b46c7cdac78736edca71' }, h("div", { key: '6085bdf6bd805e59a83172c384dc580d44f09fcb', class: 'PlayerElevateCard' }, h("player-elevate-loyaltycard", { key: '8cb6d33753fa01274b358592303090e43fc59391', playerName: this.playerName, dateFormat: this.dateFormat, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, mbSource: this.mbSource, clientStyling: `${this.clientStyling} .Outer{height: 185px}`, endpoint: this.endpoint, language: this.language, session: this.session })), h("div", { key: '403f5f92bbf5e3142e89f0f8e6ec6a73c4326cb3', class: 'ElevateLevelsInfo' }, h("bonus-elevate-levels", { key: '0b9dfbbd8dfd10480c3088f5770a52ee711b19f5', selectedLevelId: this.userLevelId, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, mbSource: this.mbSource, language: this.language, endpoint: this.endpoint })), h("general-styling-wrapper", { key: '813ea25a331bfd4274988212da027663e5e46b73', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, mbSource: this.mbSource }));
24
25
  }
25
26
  static get is() { return "player-elevate-level"; }
26
27
  static get encapsulation() { return "shadow"; }
@@ -139,6 +140,23 @@ export class PlayerElevateLevel {
139
140
  "reflect": true,
140
141
  "defaultValue": "'yyyy-MM-dd'"
141
142
  },
143
+ "mbSource": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "string",
148
+ "resolved": "string",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "Client custom styling via streamStyling"
156
+ },
157
+ "attribute": "mb-source",
158
+ "reflect": true
159
+ },
142
160
  "clientStyling": {
143
161
  "type": "string",
144
162
  "mutable": false,
@@ -1,6 +1,6 @@
1
1
  import { html } from "lit";
2
2
  import "@everymatrix/player-elevate-level";
3
- import "../../../../../user-login/dist/types/index";
3
+ import "@everymatrix/user-login";
4
4
  const meta = {
5
5
  title: 'Player/Components/player-elevate-level',
6
6
  component: 'player-elevate-level',
@@ -14,6 +14,7 @@ const meta = {
14
14
  clientStyling: "",
15
15
  clientStylingUrl: "",
16
16
  translationUrl: "",
17
+ mbSource: "",
17
18
  },
18
19
  argTypes: {
19
20
  endpoint: { control: 'text', description: '' },
@@ -25,6 +26,7 @@ const meta = {
25
26
  clientStyling: { control: 'text', description: '' },
26
27
  clientStylingUrl: { control: 'text', description: '' },
27
28
  translationUrl: { control: 'text', description: '' },
29
+ mbSource: { control: 'text', description: '' },
28
30
  },
29
31
  };
30
32
  export default meta;
@@ -44,13 +46,13 @@ const Template = (args) => {
44
46
  endpoint="${args.endpoint}"
45
47
  session="${args.session}"
46
48
  ></player-elevate-level>
47
-
49
+
48
50
  <!-- Placeholder to display the User Session ID -->
49
51
  <div id="session-id-container" style="margin-top: 16px; font-family: sans-serif;">
50
52
  <strong>User Session ID:</strong> <span id="user-session-id">Waiting for session ID...</span>
51
53
  </div>
52
54
 
53
-
55
+
54
56
  `;
55
57
  };
56
58
  export const Default = Template.bind({});
@@ -66,6 +68,7 @@ Default.args = {
66
68
  clientStyling: "",
67
69
  clientStylingUrl: "",
68
70
  translationUrl: "",
71
+ mbSource: "",
69
72
  };
70
73
  if (typeof window !== 'undefined') {
71
74
  window.addEventListener('message', (event) => {