@everymatrix/bonus-elevate-shop 1.44.0 → 1.45.2

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 (78) hide show
  1. package/dist/bonus-elevate-shop/bonus-elevate-shop.esm.js +1 -1
  2. package/dist/bonus-elevate-shop/p-0b8ef56a.entry.js +1 -0
  3. package/dist/bonus-elevate-shop/p-248310cb.js +2 -0
  4. package/dist/bonus-elevate-shop/p-3feb3345.entry.js +1 -0
  5. package/dist/bonus-elevate-shop/p-e1255160.js +1 -0
  6. package/dist/bonus-elevate-shop/p-e5a4fd7f.js +1 -0
  7. package/dist/bonus-elevate-shop/p-ed3b625c.entry.js +1 -0
  8. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  9. package/dist/cjs/bonus-elevate-shop.cjs.js +17 -11
  10. package/dist/cjs/bonus-elevate-shop_4.cjs.entry.js +489 -699
  11. package/dist/cjs/index-950597be.js +1650 -0
  12. package/dist/cjs/loader.cjs.js +7 -13
  13. package/dist/cjs/{player-elevate-card-items-9d57b9ca.js → player-elevate-card-items-94136a9c.js} +171 -285
  14. package/dist/cjs/player-elevate-card.cjs.entry.js +59 -70
  15. package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +66 -77
  16. package/dist/collection/collection-manifest.json +3 -3
  17. package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.css +2 -2
  18. package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.js +237 -237
  19. package/dist/collection/components/bonus-elevate-shop/index.js +1 -0
  20. package/dist/collection/renders/renderGifts.js +25 -36
  21. package/dist/collection/utils/fetch.js +23 -23
  22. package/dist/collection/utils/translation.js +5 -5
  23. package/dist/collection/utils/utils.js +3 -0
  24. package/dist/esm/app-globals-0f993ce5.js +3 -0
  25. package/dist/esm/bonus-elevate-shop.js +14 -11
  26. package/dist/esm/bonus-elevate-shop_4.entry.js +488 -698
  27. package/dist/esm/index-a343bbd8.js +1620 -0
  28. package/dist/esm/loader.js +7 -13
  29. package/dist/esm/{player-elevate-card-items-10b0ac7c.js → player-elevate-card-items-ea0abf0a.js} +172 -285
  30. package/dist/esm/player-elevate-card.entry.js +59 -70
  31. package/dist/esm/player-elevate-loyaltycard.entry.js +66 -77
  32. package/dist/stencil.config.dev.js +17 -0
  33. package/dist/stencil.config.js +12 -29
  34. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop/.stencil/packages/stencil/bonus-elevate-shop/stencil.config.d.ts +2 -0
  35. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop/.stencil/packages/stencil/bonus-elevate-shop/stencil.config.dev.d.ts +2 -0
  36. package/dist/types/components/bonus-elevate-shop/bonus-elevate-shop.d.ts +40 -40
  37. package/dist/types/components/bonus-elevate-shop/index.d.ts +1 -0
  38. package/dist/types/components.d.ts +16 -1
  39. package/dist/types/stencil-public-runtime.d.ts +142 -33
  40. package/dist/types/utils/translation.d.ts +6 -6
  41. package/dist/types/utils/types.d.ts +9 -9
  42. package/dist/types/utils/utils.d.ts +1 -0
  43. package/loader/cdn.js +1 -3
  44. package/loader/index.cjs.js +1 -3
  45. package/loader/index.d.ts +13 -1
  46. package/loader/index.es2017.js +1 -3
  47. package/loader/index.js +1 -3
  48. package/loader/package.json +1 -0
  49. package/package.json +12 -9
  50. package/dist/assets/avaliable.false.svg +0 -47
  51. package/dist/assets/avaliable.true.svg +0 -47
  52. package/dist/bonus-elevate-shop/p-28f6db7c.js +0 -1
  53. package/dist/bonus-elevate-shop/p-65a44369.entry.js +0 -1
  54. package/dist/bonus-elevate-shop/p-699ed8ff.entry.js +0 -1
  55. package/dist/bonus-elevate-shop/p-ae2ac1de.entry.js +0 -1
  56. package/dist/bonus-elevate-shop/p-ebc6df3b.js +0 -1
  57. package/dist/cjs/index-6ed3151f.js +0 -1681
  58. package/dist/components/bonus-elevate-shop.d.ts +0 -11
  59. package/dist/components/bonus-elevate-shop.js +0 -415
  60. package/dist/components/general-styling-wrapper.js +0 -6
  61. package/dist/components/general-styling-wrapper2.js +0 -104
  62. package/dist/components/index.d.ts +0 -26
  63. package/dist/components/index.js +0 -1
  64. package/dist/components/player-elevate-card-data.js +0 -6
  65. package/dist/components/player-elevate-card-data2.js +0 -636
  66. package/dist/components/player-elevate-card-items.js +0 -2250
  67. package/dist/components/player-elevate-card.js +0 -127
  68. package/dist/components/player-elevate-loyaltycard.js +0 -133
  69. package/dist/components/player-elevate-pointcard.js +0 -6
  70. package/dist/components/player-elevate-pointcard2.js +0 -133
  71. package/dist/esm/index-95550f9f.js +0 -1652
  72. package/dist/esm/polyfills/core-js.js +0 -11
  73. package/dist/esm/polyfills/css-shim.js +0 -1
  74. package/dist/esm/polyfills/dom.js +0 -79
  75. package/dist/esm/polyfills/es5-html-element.js +0 -1
  76. package/dist/esm/polyfills/index.js +0 -34
  77. package/dist/esm/polyfills/system.js +0 -6
  78. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/bonus-elevate-shop/.stencil/packages/bonus-elevate-shop/stencil.config.d.ts +0 -2
@@ -2,84 +2,73 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6ed3151f.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-9d57b9ca.js');
5
+ const index = require('./index-950597be.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-94136a9c.js');
7
7
 
8
- const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\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(--emfe-w-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}";
8
+ 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(--emfe-w-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}";
9
+ const PlayerElevateCardStyle0 = playerElevateCardCss;
9
10
 
10
11
  const PlayerElevateCard = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /**
14
- * The style that widget shows,available value: Dark, Light
15
- * Default: Dark
16
- */
17
- this.theme = 'Dark';
18
- /**
19
- * Widget Language to show
20
- */
21
- this.language = 'en';
22
- /**
23
- * datePattern
24
- */
25
- this.dateFormat = 'yyyy-MM-dd';
26
- /**
27
- * Client custom styling via inline styles
28
- */
29
- this.clientStyling = '';
30
- /**
31
- * Client custom styling via url
32
- */
33
- this.clientStylingUrl = '';
34
- /**
35
- * Translation via url
36
- */
37
- this.translationUrl = '';
38
- this.playerLevelFlag = 0;
39
- }
40
- onSessionOrEndpointChange() {
41
- this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
42
- }
43
- playerElevateLeveLoadedHandler(event) {
44
- if (!event.detail) {
45
- return;
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.endpoint = undefined;
15
+ this.theme = 'Dark';
16
+ this.session = undefined;
17
+ this.playerAvatarUrl = undefined;
18
+ this.language = 'en';
19
+ this.playerName = undefined;
20
+ this.dateFormat = 'yyyy-MM-dd';
21
+ this.clientStyling = '';
22
+ this.clientStylingUrl = '';
23
+ this.translationUrl = '';
24
+ this.pointExpireString = undefined;
25
+ this.playerLevelFlag = 0;
26
+ this.playerElevateLevel = undefined;
27
+ this.elevateWalletTotal = undefined;
46
28
  }
47
- if (event.detail['elevateLevelWalletTotal']) {
48
- this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
29
+ onSessionOrEndpointChange() {
30
+ this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
49
31
  }
50
- if (event.detail['elevateLevel']) {
51
- this.playerElevateLevel = event.detail['elevateLevel'];
32
+ playerElevateLeveLoadedHandler(event) {
33
+ if (!event.detail) {
34
+ return;
35
+ }
36
+ if (event.detail['elevateLevelWalletTotal']) {
37
+ this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
38
+ }
39
+ if (event.detail['elevateLevel']) {
40
+ this.playerElevateLevel = event.detail['elevateLevel'];
41
+ }
42
+ if (event.detail['pointExpireString']) {
43
+ this.pointExpireString = event.detail.xpExpireString;
44
+ }
45
+ if (event.detail.calculatedLevelFlag) {
46
+ this.playerLevelFlag = event.detail.calculatedLevelFlag;
47
+ }
52
48
  }
53
- if (event.detail['pointExpireString']) {
54
- this.pointExpireString = event.detail.xpExpireString;
49
+ onRedeemClick() {
50
+ window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
55
51
  }
56
- if (event.detail.calculatedLevelFlag) {
57
- this.playerLevelFlag = event.detail.calculatedLevelFlag;
52
+ componentWillLoad() {
53
+ this.paramProxy = {
54
+ endpoint: this.endpoint,
55
+ session: this.session,
56
+ language: this.language,
57
+ calculateLevelFlag: true,
58
+ };
58
59
  }
59
- }
60
- onRedeemClick() {
61
- window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
62
- }
63
- componentWillLoad() {
64
- this.paramProxy = {
65
- endpoint: this.endpoint,
66
- session: this.session,
67
- language: this.language,
68
- calculateLevelFlag: true,
69
- };
70
- }
71
- render() {
72
- const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
73
- const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
74
- return (index.h("div", { class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: playerElevateCardItems.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { params: this.paramProxy }), index.h("div", { class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (index.h(index.Fragment, null, index.h("div", { class: 'Content Row' }, index.h("div", { class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), index.h(playerElevateCardItems.PlayerPoints, { loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (index.h("div", { class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h("div", { class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, index.h(playerElevateCardItems.PlayerNameDiv, { playerName: this.playerName }), index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerLoyaltyProcess, null), index.h(playerElevateCardItems.PlayerElevateCardRedeem, { onRedeemClick: this.onRedeemClick, language: this.language })))))))));
75
- }
76
- static get assetsDirs() { return ["../static"]; }
77
- static get watchers() { return {
78
- "session": ["onSessionOrEndpointChange"],
79
- "endpoint": ["onSessionOrEndpointChange"],
80
- "language": ["onSessionOrEndpointChange"]
81
- }; }
60
+ render() {
61
+ const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
62
+ const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
63
+ 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: playerElevateCardItems.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 })))))))));
64
+ }
65
+ static get assetsDirs() { return ["../static"]; }
66
+ static get watchers() { return {
67
+ "session": ["onSessionOrEndpointChange"],
68
+ "endpoint": ["onSessionOrEndpointChange"],
69
+ "language": ["onSessionOrEndpointChange"]
70
+ }; }
82
71
  };
83
- PlayerElevateCard.style = playerElevateCardCss;
72
+ PlayerElevateCard.style = PlayerElevateCardStyle0;
84
73
 
85
74
  exports.player_elevate_card = PlayerElevateCard;
@@ -2,91 +2,80 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6ed3151f.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-9d57b9ca.js');
5
+ const index = require('./index-950597be.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-94136a9c.js');
7
7
 
8
- 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{width:100%}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emfe-w-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(--emfe-w-elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emfe-w-elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .Row{padding-top:3px;padding-bottom:5px}.LoyaltyCard .ExpireTime{margin-left:5px}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emfe-w-color-black, #000);opacity:0.8;font-weight:bold}";
8
+ 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{width:100%}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emfe-w-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(--emfe-w-elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emfe-w-elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emfe-w-color-black, #000);opacity:0.8;font-weight:bold}";
9
+ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
9
10
 
10
11
  const PlayerElevateLoyaltycard = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- /**
14
- * The style that widget shows,available value: Dark, Light
15
- * Default: Dark
16
- */
17
- this.theme = 'Dark';
18
- /**
19
- * Widget Language to show
20
- */
21
- this.language = 'en';
22
- /**
23
- * datePattern
24
- */
25
- this.dateFormat = 'yyyy-MM-dd';
26
- /**
27
- * Client custom styling via inline styles
28
- */
29
- this.clientStyling = '';
30
- /**
31
- * Client custom styling via url
32
- */
33
- this.clientStylingUrl = '';
34
- /**
35
- * Translation via url
36
- */
37
- this.translationUrl = '';
38
- }
39
- onSessionOrEndpointChange() {
40
- this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
41
- }
42
- playerElevateLeveLoadedHandler(event) {
43
- if (!event.detail) {
44
- return;
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.endpoint = undefined;
15
+ this.theme = 'Dark';
16
+ this.session = undefined;
17
+ this.playerAvatarUrl = undefined;
18
+ this.language = 'en';
19
+ this.playerName = undefined;
20
+ this.dateFormat = 'yyyy-MM-dd';
21
+ this.clientStyling = '';
22
+ this.clientStylingUrl = '';
23
+ this.translationUrl = '';
24
+ this.pointExpireString = undefined;
25
+ this.playerElevateLevel = undefined;
26
+ this.elevateWalletTotal = undefined;
45
27
  }
46
- if (event.detail['elevateLevelWalletTotal']) {
47
- this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
28
+ onSessionOrEndpointChange() {
29
+ this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
48
30
  }
49
- if (event.detail['elevateLevel']) {
50
- this.playerElevateLevel = event.detail['elevateLevel'];
31
+ playerElevateLeveLoadedHandler(event) {
32
+ if (!event.detail) {
33
+ return;
34
+ }
35
+ if (event.detail['elevateLevelWalletTotal']) {
36
+ this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
37
+ }
38
+ if (event.detail['elevateLevel']) {
39
+ this.playerElevateLevel = event.detail['elevateLevel'];
40
+ }
41
+ if (event.detail['pointExpireString']) {
42
+ this.pointExpireString = event.detail.xpExpireString;
43
+ }
51
44
  }
52
- if (event.detail['pointExpireString']) {
53
- this.pointExpireString = event.detail.xpExpireString;
45
+ onRedeemClick() {
46
+ window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
54
47
  }
55
- }
56
- onRedeemClick() {
57
- window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
58
- }
59
- componentWillLoad() {
60
- this.paramProxy = {
61
- endpoint: this.endpoint,
62
- session: this.session,
63
- language: this.language,
64
- };
65
- }
66
- getNextLevelTips() {
67
- var _a;
68
- //need xx to reach Diamond
69
- let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
70
- if (this.playerElevateLevel && nextLevel) {
71
- const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
72
- return playerElevateCardItems.translateWithParams('tipsForNextLevel', {
73
- pointsToReach,
74
- levelName: nextLevel.name,
75
- });
48
+ componentWillLoad() {
49
+ this.paramProxy = {
50
+ endpoint: this.endpoint,
51
+ session: this.session,
52
+ language: this.language,
53
+ };
76
54
  }
77
- return '';
78
- }
79
- render() {
80
- const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
81
- const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
82
- return (index.h("div", { class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: playerElevateCardItems.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { params: this.paramProxy }), index.h("div", { class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, null, index.h("div", { class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { class: 'CardCell ElevateLevel' }, index.h("span", { class: "LevelName", title: this.playerElevateLevel.name }, this.playerElevateLevel.name)), index.h(playerElevateCardItems.PlayerPoints, { loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), this.pointExpireString && (index.h("div", { class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h(playerElevateCardItems.PlayerLoyaltyProcess, null), index.h("div", { class: "Row NextLevelTip" }, this.getNextLevelTips()), this.playerElevateLevel.expireTime && (index.h("div", { class: "Row CardCell ExpirationDate Txt" }, playerElevateCardItems.translate('expireOn', this.language), index.h("span", { class: "ExpireTime" }, playerElevateCardItems.format(new Date(this.playerElevateLevel.expireTime), this.dateFormat || 'yyyy-MM-dd'))))))))))));
83
- }
84
- static get watchers() { return {
85
- "session": ["onSessionOrEndpointChange"],
86
- "endpoint": ["onSessionOrEndpointChange"],
87
- "language": ["onSessionOrEndpointChange"]
88
- }; }
55
+ getNextLevelTips() {
56
+ var _a;
57
+ //need xx to reach Diamond
58
+ let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
59
+ if (this.playerElevateLevel && nextLevel) {
60
+ const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
61
+ return playerElevateCardItems.translateWithParams('tipsForNextLevel', {
62
+ pointsToReach,
63
+ levelName: nextLevel.name,
64
+ });
65
+ }
66
+ return '';
67
+ }
68
+ render() {
69
+ const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
70
+ const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
71
+ return (index.h("div", { key: 'd32d09786bf66e0abef026482e7ea04a53c051b1', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'dd2685eb840341b8823f24db9b72d0f6b7d340ae', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '3e2a00d1697c89441a8254cb81c6dc72e5b9f534', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: playerElevateCardItems.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '56221e6d50df3b09c4269000637818009807c994', params: this.paramProxy }), index.h("div", { key: 'f11201024b280d6beb2ce1978ebfa7f2c7c59678', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '948a023268fad3945b5069686eb29312111042a2', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: 'de7c52faa07386949ce1ca728968534922e9d880' }, index.h("div", { key: '7c1a0c6ea5dbe7ee2375813b3819efa61e283232', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '70ae13ee168c6de7bf4618f6ab8761462c8812b2', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: 'c11f916999b52e43e04ee472b0f54691012409a5', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '6aa61d117b24f9abbee9c5d33e882d6f023f205b', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerPoints, { key: '7cc02e34d4682c25095dbf6a3077b314410d8093', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), this.pointExpireString && (index.h("div", { key: '793e388644891e15b32e003ac8914e57e758e86b', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: 'a4f6c3b9f9cd5e8c6a025c26154702f9495bbe5b' }), index.h("div", { key: 'd91eda0f963ba9ffd481237f4b16bd4ef638d25e', class: "NextLevelTip" }, this.getNextLevelTips())))))))));
72
+ }
73
+ static get watchers() { return {
74
+ "session": ["onSessionOrEndpointChange"],
75
+ "endpoint": ["onSessionOrEndpointChange"],
76
+ "language": ["onSessionOrEndpointChange"]
77
+ }; }
89
78
  };
90
- PlayerElevateLoyaltycard.style = playerElevateLoyaltycardCss;
79
+ PlayerElevateLoyaltycard.style = PlayerElevateLoyaltycardStyle0;
91
80
 
92
81
  exports.player_elevate_loyaltycard = PlayerElevateLoyaltycard;
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/bonus-elevate-shop/bonus-elevate-shop.js"
3
+ "components/bonus-elevate-shop/bonus-elevate-shop.js"
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.15.2",
8
- "typescriptVersion": "4.5.4"
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
9
  },
10
10
  "collections": [
11
11
  {
@@ -42,7 +42,7 @@ svg circle {
42
42
  display: block;
43
43
  margin-bottom: 10px;
44
44
  padding: 8px;
45
- box-shadow: 0px 18px 45px 0px var(--emfe-w-color-black-150, #A7A7A733);
45
+ box-shadow: 0px 18px 45px 0px var(--emfe-w-color-black-150, rgba(167, 167, 167, 0.2));
46
46
  border-radius: 11px;
47
47
  background: var(--emfe-w-color-white, #FFFFFF);
48
48
  }
@@ -50,7 +50,7 @@ svg circle {
50
50
  width: 160px;
51
51
  height: 107px;
52
52
  border-radius: 11px;
53
- box-shadow: 0px 2px 6px 0px var(--emfe-w-color-black-200, #00000040);
53
+ box-shadow: 0px 2px 6px 0px var(--emfe-w-color-black-200, rgba(0, 0, 0, 0.2509803922));
54
54
  cursor: pointer;
55
55
  background-size: cover;
56
56
  background-position: center center;