@everymatrix/gamification-dropdown 1.55.0 → 1.56.0

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 (44) hide show
  1. package/dist/cjs/{gamification-dropdown-0a3a8194.js → gamification-dropdown-b8288984.js} +108 -39
  2. package/dist/cjs/gamification-dropdown.cjs.js +3 -3
  3. package/dist/cjs/gamification-dropdown_4.cjs.entry.js +35 -18
  4. package/dist/cjs/{index-7b4d999d.js → index-ec2fd1aa.js} +260 -142
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/{player-elevate-card-items-087e5a58.js → player-elevate-card-items-a73ef8aa.js} +1 -1
  8. package/dist/cjs/player-elevate-card.cjs.entry.js +21 -9
  9. package/dist/cjs/player-elevate-pointcard.cjs.entry.js +29 -12
  10. package/dist/collection/collection-manifest.json +1 -1
  11. package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +85 -38
  12. package/dist/esm/{gamification-dropdown-456bb56a.js → gamification-dropdown-246b88da.js} +108 -39
  13. package/dist/esm/gamification-dropdown.js +4 -4
  14. package/dist/esm/gamification-dropdown_4.entry.js +35 -18
  15. package/dist/esm/{index-171550cf.js → index-30fda5fb.js} +260 -142
  16. package/dist/esm/index.js +2 -2
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/{player-elevate-card-items-2078bd83.js → player-elevate-card-items-be1e68f1.js} +1 -1
  19. package/dist/esm/player-elevate-card.entry.js +21 -9
  20. package/dist/esm/player-elevate-pointcard.entry.js +29 -12
  21. package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
  22. package/dist/gamification-dropdown/index.esm.js +1 -1
  23. package/dist/gamification-dropdown/p-750bfdce.entry.js +1 -0
  24. package/dist/gamification-dropdown/p-9ccf7a30.js +1 -0
  25. package/dist/gamification-dropdown/p-b06e6dd1.entry.js +1 -0
  26. package/dist/gamification-dropdown/{p-dda9c7be.js → p-c3422048.js} +1 -1
  27. package/dist/gamification-dropdown/p-d3088e7c.entry.js +1 -0
  28. package/dist/gamification-dropdown/p-dec0ad6f.js +2 -0
  29. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/gamification-dropdown/gamification-dropdown.d.ts +9 -4
  32. package/dist/types/components.d.ts +8 -0
  33. package/package.json +1 -1
  34. package/dist/gamification-dropdown/p-7ecb6fdf.js +0 -2
  35. package/dist/gamification-dropdown/p-8426f967.entry.js +0 -1
  36. package/dist/gamification-dropdown/p-881e823a.entry.js +0 -1
  37. package/dist/gamification-dropdown/p-a2f51157.entry.js +0 -1
  38. package/dist/gamification-dropdown/p-cfb00725.js +0 -1
  39. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
  40. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
  41. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
  42. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  43. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  44. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-7b4d999d.js');
3
+ const index = require('./index-ec2fd1aa.js');
4
4
 
5
5
  const DEFAULT_LANGUAGE = 'en';
6
6
  let TRANSLATIONS = {
@@ -45,30 +45,91 @@ const translate = (key, customLang) => {
45
45
  return TRANSLATIONS[(lang !== undefined) && (lang in TRANSLATIONS) ? lang : DEFAULT_LANGUAGE][key];
46
46
  };
47
47
 
48
+ /**
49
+ * @name setClientStyling
50
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
51
+ * @param {HTMLElement} stylingContainer The reference element of the widget
52
+ * @param {string} clientStyling The style content
53
+ */
54
+ function setClientStyling(stylingContainer, clientStyling) {
55
+ if (stylingContainer) {
56
+ const sheet = document.createElement('style');
57
+ sheet.innerHTML = clientStyling;
58
+ stylingContainer.appendChild(sheet);
59
+ }
60
+ }
61
+
62
+ /**
63
+ * @name setClientStylingURL
64
+ * @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
65
+ * @param {HTMLElement} stylingContainer The reference element of the widget
66
+ * @param {string} clientStylingUrl The URL of the style content
67
+ */
68
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
69
+ const url = new URL(clientStylingUrl);
70
+
71
+ fetch(url.href)
72
+ .then((res) => res.text())
73
+ .then((data) => {
74
+ const cssFile = document.createElement('style');
75
+ cssFile.innerHTML = data;
76
+ if (stylingContainer) {
77
+ stylingContainer.appendChild(cssFile);
78
+ }
79
+ })
80
+ .catch((err) => {
81
+ console.error('There was an error while trying to load client styling from URL', err);
82
+ });
83
+ }
84
+
85
+ /**
86
+ * @name setStreamLibrary
87
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
88
+ * @param {HTMLElement} stylingContainer The highest element of the widget
89
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
90
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
91
+ */
92
+ function setStreamStyling(stylingContainer, domain, subscription) {
93
+ if (window.emMessageBus) {
94
+ const sheet = document.createElement('style');
95
+
96
+ window.emMessageBus.subscribe(domain, (data) => {
97
+ sheet.innerHTML = data;
98
+ if (stylingContainer) {
99
+ stylingContainer.appendChild(sheet);
100
+ }
101
+ });
102
+ }
103
+ }
104
+
48
105
  const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";
49
106
  const GamificationDropdownStyle0 = gamificationDropdownCss;
50
107
 
51
108
  const GamificationDropdown = class {
52
109
  constructor(hostRef) {
53
110
  index.registerInstance(this, hostRef);
54
- this.setClientStyling = () => {
55
- let sheet = document.createElement('style');
56
- sheet.innerHTML = this.clientStyling;
57
- this.stylingContainer.prepend(sheet);
58
- };
59
- this.setClientStylingURL = () => {
60
- let url = new URL(this.clientStylingUrl);
61
- let cssFile = document.createElement('style');
62
- fetch(url.href)
63
- .then((res) => res.text())
64
- .then((data) => {
65
- cssFile.innerHTML = data;
66
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
67
- })
68
- .catch((err) => {
69
- console.log('error ', err);
70
- });
71
- };
111
+ /**
112
+ * Language of the widget
113
+ */
114
+ this.language = 'en';
115
+ /**
116
+ * Session of the user
117
+ */
118
+ this.session = '';
119
+ /**
120
+ * Client custom styling via string
121
+ */
122
+ this.clientStyling = '';
123
+ /**
124
+ * Client custom styling via url
125
+ */
126
+ this.clientStylingUrl = '';
127
+ /**
128
+ * Translations via URL
129
+ */
130
+ this.translationUrl = '';
131
+ this.isOpen = false;
132
+ this.isLoading = false;
72
133
  this.navigateToGamification = () => {
73
134
  window.postMessage({ type: 'NavigateToGamification' }, window.location.href);
74
135
  this.isOpen = false;
@@ -90,16 +151,6 @@ const GamificationDropdown = class {
90
151
  document.removeEventListener('click', this.handleOutsideClick);
91
152
  }
92
153
  };
93
- this.endpoint = undefined;
94
- this.language = 'en';
95
- this.session = '';
96
- this.clientStyling = '';
97
- this.clientStylingUrl = '';
98
- this.translationUrl = '';
99
- this.isOpen = false;
100
- this.isLoading = false;
101
- this.stylingAppends = false;
102
- this.loyaltyPoints = undefined;
103
154
  }
104
155
  handleNewTranslations() {
105
156
  this.isLoading = true;
@@ -107,6 +158,17 @@ const GamificationDropdown = class {
107
158
  this.isLoading = false;
108
159
  });
109
160
  }
161
+ handleClientStylingChange(newValue, oldValue) {
162
+ if (newValue != oldValue) {
163
+ setClientStyling(this.stylingContainer, this.clientStyling);
164
+ }
165
+ }
166
+ handleClientStylingChangeURL(newValue, oldValue) {
167
+ if (newValue != oldValue) {
168
+ if (this.clientStylingUrl)
169
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
170
+ }
171
+ }
110
172
  async componentWillLoad() {
111
173
  if (this.translationUrl.length > 2) {
112
174
  await getTranslations(this.translationUrl);
@@ -115,16 +177,21 @@ const GamificationDropdown = class {
115
177
  return this.fetchPointsData();
116
178
  }
117
179
  }
118
- componentDidRender() {
119
- // start custom styling area
120
- if (!this.stylingAppends && this.stylingContainer) {
121
- if (this.clientStyling)
122
- this.setClientStyling();
123
- if (this.clientStylingUrl)
124
- this.setClientStylingURL();
125
- this.stylingAppends = true;
180
+ componentDidLoad() {
181
+ if (this.stylingContainer) {
182
+ if (window.emMessageBus != undefined) {
183
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
184
+ }
185
+ else {
186
+ if (this.clientStyling)
187
+ setClientStyling(this.stylingContainer, this.clientStyling);
188
+ if (this.clientStylingUrl)
189
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
190
+ }
126
191
  }
127
- // end custom styling area
192
+ }
193
+ disconnectedCallback() {
194
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
128
195
  }
129
196
  fetchPointsData() {
130
197
  let url = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
@@ -165,7 +232,9 @@ const GamificationDropdown = class {
165
232
  }
166
233
  get el() { return index.getElement(this); }
167
234
  static get watchers() { return {
168
- "translationUrl": ["handleNewTranslations"]
235
+ "translationUrl": ["handleNewTranslations"],
236
+ "clientStyling": ["handleClientStylingChange"],
237
+ "clientStylingUrl": ["handleClientStylingChangeURL"]
169
238
  }; }
170
239
  };
171
240
  GamificationDropdown.style = GamificationDropdownStyle0;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7b4d999d.js');
5
+ const index = require('./index-ec2fd1aa.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('gamification-dropdown.cjs.js', document.baseURI).href));
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"stylingAppends":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"]}],[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"],"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"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}]]],["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"]}]]]], options);
22
+ return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}]]],["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"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const gamificationDropdown = require('./gamification-dropdown-0a3a8194.js');
6
- const index = require('./index-7b4d999d.js');
7
- const playerElevateCardItems = require('./player-elevate-card-items-087e5a58.js');
5
+ const gamificationDropdown = require('./gamification-dropdown-b8288984.js');
6
+ const index = require('./index-ec2fd1aa.js');
7
+ const playerElevateCardItems = require('./player-elevate-card-items-a73ef8aa.js');
8
8
 
9
9
  const mergeTranslations = (url, target) => {
10
10
  return new Promise((resolve) => {
@@ -28,6 +28,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
28
28
  const GeneralStylingWrapper = class {
29
29
  constructor(hostRef) {
30
30
  index.registerInstance(this, hostRef);
31
+ /**
32
+ * Client custom styling via inline styles
33
+ */
34
+ this.clientStyling = '';
35
+ /**
36
+ * Client custom styling via url
37
+ */
38
+ this.clientStylingUrl = '';
39
+ /**
40
+ * Translation via url
41
+ */
42
+ this.translationUrl = '';
31
43
  this.stylingAppends = false;
32
44
  this.setClientStyling = () => {
33
45
  let sheet = document.createElement('style');
@@ -49,10 +61,6 @@ const GeneralStylingWrapper = class {
49
61
  console.log('error ', err);
50
62
  });
51
63
  };
52
- this.clientStyling = '';
53
- this.clientStylingUrl = '';
54
- this.translationUrl = '';
55
- this.targetTranslations = undefined;
56
64
  }
57
65
  componentDidRender() {
58
66
  // start custom styling area
@@ -370,9 +378,6 @@ const PlayerElevateCardData = class {
370
378
  constructor(hostRef) {
371
379
  index.registerInstance(this, hostRef);
372
380
  this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
373
- this.params = undefined;
374
- this.playerElevateLevel = undefined;
375
- this.pointExpireString = undefined;
376
381
  }
377
382
  handleWindowResizs() {
378
383
  this.initLevelProgressbar();
@@ -540,19 +545,31 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
540
545
  const PlayerElevateLoyaltycard = class {
541
546
  constructor(hostRef) {
542
547
  index.registerInstance(this, hostRef);
543
- this.endpoint = undefined;
548
+ /**
549
+ * The style that widget shows,available value: Dark, Light
550
+ * Default: Dark
551
+ */
544
552
  this.theme = 'Dark';
545
- this.session = undefined;
546
- this.playerAvatarUrl = undefined;
553
+ /**
554
+ * Widget Language to show
555
+ */
547
556
  this.language = 'en';
548
- this.playerName = undefined;
557
+ /**
558
+ * datePattern
559
+ */
549
560
  this.dateFormat = 'yyyy-MM-dd';
561
+ /**
562
+ * Client custom styling via inline styles
563
+ */
550
564
  this.clientStyling = '';
565
+ /**
566
+ * Client custom styling via url
567
+ */
551
568
  this.clientStylingUrl = '';
569
+ /**
570
+ * Translation via url
571
+ */
552
572
  this.translationUrl = '';
553
- this.pointExpireString = undefined;
554
- this.playerElevateLevel = undefined;
555
- this.elevateWalletTotal = undefined;
556
573
  }
557
574
  onSessionOrEndpointChange() {
558
575
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -602,7 +619,7 @@ const PlayerElevateLoyaltycard = class {
602
619
  render() {
603
620
  const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
604
621
  const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
605
- return (index.h("div", { key: '2b0944f8317a94621e1bc65bbbb3726654b8963b', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'c6d4dbba143435b4485d7fde91ab0a48a2f6688b', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'e47a4efe925eb35d4449c6ff33a0afef9d284e55', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: playerElevateCardItems.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'a560991893305894ddd41756cd7b3c32d0ef9e03', params: this.paramProxy }), index.h("div", { key: 'ceb8b71386f84f54518a3694535aa16c2c3d3951', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '1df9647c3de42e74adee0f8895511442118ae381', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '569bcd5fc3c578d2e6cc7442d28444e29688660c' }, index.h("div", { key: 'aa40032bff99c5462b906e4427232ca2d4019017', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '7a2d535b0c2029c90b9f1c123f9feebafca6bdde', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '90999da8fc2a3102eac235fcbc8afbec2a2bbdf8', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '67e8bf370b1b77e776fb6d955ae63928fd1338d8', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '1e0fefc6a23f4aeeef5e19828399fe1229a3fc81', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: 'dd176e624cde3b6f517101d7702a15465305174d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: '6cddb64c92545803d08fbbc513cc951b2691a42e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '08817ca979ea784aeb735579b0d52e5150eb0852' }), index.h("div", { key: 'be9a1b40a8145d5e6d329d8e9f047296e84dd24b', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: 'f9cbb7d06e34717cb9f74cb8d2e506e49969e775', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
622
+ 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: playerElevateCardItems.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: '2684a177f4bb1053c4587fd4158666fb35ca23f4', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '173a37c63868f2d900c12af3ffc2d9a4a57550e4', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: 'a7111154f7dc547e0b05c70d24508bdd75c5d882', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: 'ad31574e7db81a7ecb7a06b28b1d4968cbcab93e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '88ddfdb326edfb1de9519da6b3d0e5b514725e27' }), index.h("div", { key: 'b9c79555a8001bd2c754d7573df04016da235c84', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '02da725060c9db4a8c1c2e8bad3426894d7f8f2c', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
606
623
  }
607
624
  static get watchers() { return {
608
625
  "session": ["onSessionOrEndpointChange"],