@everymatrix/gamification-dropdown 1.40.1 → 1.40.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 (27) hide show
  1. package/dist/cjs/gamification-dropdown.cjs.js +1 -1
  2. package/dist/cjs/gamification-dropdown_4.cjs.entry.js +10 -8
  3. package/dist/cjs/{index-afa95f63.js → index-4aa14dda.js} +13 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{player-elevate-card-items-37501652.js → player-elevate-card-items-8d5a2468.js} +1 -1
  6. package/dist/cjs/player-elevate-card.cjs.entry.js +2 -2
  7. package/dist/cjs/player-elevate-pointcard.cjs.entry.js +2 -2
  8. package/dist/collection/components/gamification-dropdown/gamification-dropdown.css +9 -0
  9. package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +9 -7
  10. package/dist/components/gamification-dropdown.js +8 -6
  11. package/dist/esm/gamification-dropdown.js +1 -1
  12. package/dist/esm/gamification-dropdown_4.entry.js +10 -8
  13. package/dist/esm/{index-76ec399c.js → index-a803f08b.js} +13 -0
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/{player-elevate-card-items-5d6e44ca.js → player-elevate-card-items-11fa1dc1.js} +1 -1
  16. package/dist/esm/player-elevate-card.entry.js +2 -2
  17. package/dist/esm/player-elevate-pointcard.entry.js +2 -2
  18. package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
  19. package/dist/gamification-dropdown/{p-62327671.entry.js → p-0296e4e5.entry.js} +1 -1
  20. package/dist/gamification-dropdown/p-1bea1936.js +1 -0
  21. package/dist/gamification-dropdown/p-3115c6e5.entry.js +1 -0
  22. package/dist/gamification-dropdown/{p-bbd6d5a3.entry.js → p-3440095c.entry.js} +1 -1
  23. package/dist/gamification-dropdown/{p-2d5bddc0.js → p-e734000d.js} +1 -1
  24. package/dist/types/components/gamification-dropdown/gamification-dropdown.d.ts +2 -1
  25. package/package.json +1 -1
  26. package/dist/gamification-dropdown/p-4eba8e43.entry.js +0 -1
  27. package/dist/gamification-dropdown/p-5e3064ce.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-afa95f63.js');
3
+ const index = require('./index-4aa14dda.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-afa95f63.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-37501652.js');
5
+ const index = require('./index-4aa14dda.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-8d5a2468.js');
7
7
 
8
8
  const DEFAULT_LANGUAGE = 'en';
9
9
  const SUPPORTED_LANGUAGES = ['de', 'en', 'hr'];
@@ -54,7 +54,7 @@ const translate = (key, customLang, values) => {
54
54
  return translation;
55
55
  };
56
56
 
57
- const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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 svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";
57
+ const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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}";
58
58
 
59
59
  const GamificationDropdown = class {
60
60
  constructor(hostRef) {
@@ -79,6 +79,7 @@ const GamificationDropdown = class {
79
79
  * Translations via URL
80
80
  */
81
81
  this.translationUrl = '';
82
+ this.isOpen = false;
82
83
  this.isLoading = false;
83
84
  this.stylingAppends = false;
84
85
  this.setClientStyling = () => {
@@ -100,13 +101,13 @@ const GamificationDropdown = class {
100
101
  });
101
102
  };
102
103
  this.handleOutsideClick = (event) => {
103
- const dropdownElement = document.querySelector('gamification-dropdown');
104
- if (dropdownElement && !dropdownElement.contains(event.target)) {
104
+ if (!this.el.contains(event.target)) {
105
105
  this.isOpen = false;
106
106
  document.removeEventListener('click', this.handleOutsideClick);
107
107
  }
108
108
  };
109
- this.handleDropdownClick = () => {
109
+ this.handleDropdownClick = (event) => {
110
+ event.stopPropagation();
110
111
  this.isOpen = !this.isOpen;
111
112
  if (this.isOpen) {
112
113
  document.addEventListener('click', this.handleOutsideClick);
@@ -171,13 +172,14 @@ const GamificationDropdown = class {
171
172
  return null;
172
173
  }
173
174
  else {
174
- return (index.h("div", { class: "GamificationDropdownContainer" }, index.h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: this.handleDropdownClick, title: typeof this.loyaltyPoints === 'number'
175
+ return (index.h("div", { ref: el => this.stylingContainer = el, class: "GamificationDropdownContainer" }, index.h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints === 'number'
175
176
  ? String(this.loyaltyPoints)
176
177
  : translate('gamificationNoPoints', this.language) }, typeof this.loyaltyPoints === 'number'
177
178
  ? `${Math.floor(this.loyaltyPoints)} XP`
178
- : '...', index.h("span", null, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, index.h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (index.h("div", { class: "GamificationDropdown" }, index.h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
179
+ : '...', index.h("span", { class: this.isOpen ? 'TriangleActive' : 'TriangleInactive' }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, index.h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (index.h("div", { class: "GamificationDropdown" }, index.h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
179
180
  }
180
181
  }
182
+ get el() { return index.getElement(this); }
181
183
  static get watchers() { return {
182
184
  "translationUrl": ["handleNewTranslations"]
183
185
  }; }
@@ -346,6 +346,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
346
346
  }
347
347
  }
348
348
  }
349
+ else if (memberName === 'ref') {
350
+ // minifier will clean this up
351
+ if (newValue) {
352
+ newValue(elm);
353
+ }
354
+ }
349
355
  else if ((!isProp ) &&
350
356
  memberName[0] === 'o' &&
351
357
  memberName[1] === 'n') {
@@ -584,6 +590,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
584
590
  for (; startIdx <= endIdx; ++startIdx) {
585
591
  if ((vnode = vnodes[startIdx])) {
586
592
  elm = vnode.$elm$;
593
+ callNodeRefs(vnode);
587
594
  {
588
595
  // we're removing this element
589
596
  // so it's possible we need to show slot fallback content now
@@ -882,6 +889,12 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
882
889
  }
883
890
  return slotNameAttr === '';
884
891
  };
892
+ const callNodeRefs = (vNode) => {
893
+ {
894
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
895
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
896
+ }
897
+ };
885
898
  const renderVdom = (hostRef, renderFnResults) => {
886
899
  const hostElm = hostRef.$hostElement$;
887
900
  const cmpMeta = hostRef.$cmpMeta$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-afa95f63.js');
5
+ const index = require('./index-4aa14dda.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-afa95f63.js');
3
+ const index = require('./index-4aa14dda.js');
4
4
 
5
5
  function _typeof(o) {
6
6
  "@babel/helpers - typeof";
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-afa95f63.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-37501652.js');
5
+ const index = require('./index-4aa14dda.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-8d5a2468.js');
7
7
 
8
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}";
9
9
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-afa95f63.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-37501652.js');
5
+ const index = require('./index-4aa14dda.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-8d5a2468.js');
7
7
 
8
8
  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(--emfe-w-color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emfe-w-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}";
9
9
 
@@ -40,6 +40,15 @@
40
40
  .GamificationDropdownButton.IsOpen svg {
41
41
  fill: var(--emw--color-primary, #52d004);
42
42
  }
43
+ .GamificationDropdownButton .TriangleActive, .GamificationDropdownButton .TriangleInactive {
44
+ display: block;
45
+ transition: all 0.2s;
46
+ }
47
+ .GamificationDropdownButton .TriangleActive {
48
+ transform: scale(1.1) rotateX(180deg) translateY(3px);
49
+ fill: var(--emw--color-primary, #52d004);
50
+ margin-top: 4px;
51
+ }
43
52
  .GamificationDropdownButton svg {
44
53
  fill: var(--emw--color-typography, #FFFFFF);
45
54
  margin-left: 8px;
@@ -1,4 +1,4 @@
1
- import { Component, h, State, Prop, Watch } from '@stencil/core';
1
+ import { Component, h, State, Prop, Watch, Element } from '@stencil/core';
2
2
  import { getTranslations, translate } from '../../utils/locale.utils';
3
3
  import '@everymatrix/player-elevate-card';
4
4
  export class GamificationDropdown {
@@ -23,6 +23,7 @@ export class GamificationDropdown {
23
23
  * Translations via URL
24
24
  */
25
25
  this.translationUrl = '';
26
+ this.isOpen = false;
26
27
  this.isLoading = false;
27
28
  this.stylingAppends = false;
28
29
  this.setClientStyling = () => {
@@ -44,13 +45,13 @@ export class GamificationDropdown {
44
45
  });
45
46
  };
46
47
  this.handleOutsideClick = (event) => {
47
- const dropdownElement = document.querySelector('gamification-dropdown');
48
- if (dropdownElement && !dropdownElement.contains(event.target)) {
48
+ if (!this.el.contains(event.target)) {
49
49
  this.isOpen = false;
50
50
  document.removeEventListener('click', this.handleOutsideClick);
51
51
  }
52
52
  };
53
- this.handleDropdownClick = () => {
53
+ this.handleDropdownClick = (event) => {
54
+ event.stopPropagation();
54
55
  this.isOpen = !this.isOpen;
55
56
  if (this.isOpen) {
56
57
  document.addEventListener('click', this.handleOutsideClick);
@@ -115,14 +116,14 @@ export class GamificationDropdown {
115
116
  return null;
116
117
  }
117
118
  else {
118
- return (h("div", { class: "GamificationDropdownContainer" },
119
- h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: this.handleDropdownClick, title: typeof this.loyaltyPoints === 'number'
119
+ return (h("div", { ref: el => this.stylingContainer = el, class: "GamificationDropdownContainer" },
120
+ h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints === 'number'
120
121
  ? String(this.loyaltyPoints)
121
122
  : translate('gamificationNoPoints', this.language) },
122
123
  typeof this.loyaltyPoints === 'number'
123
124
  ? `${Math.floor(this.loyaltyPoints)} XP`
124
125
  : '...',
125
- h("span", null,
126
+ h("span", { class: this.isOpen ? 'TriangleActive' : 'TriangleInactive' },
126
127
  h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" },
127
128
  h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))),
128
129
  this.isOpen && (h("div", { class: "GamificationDropdown" },
@@ -252,6 +253,7 @@ export class GamificationDropdown {
252
253
  "stylingAppends": {},
253
254
  "loyaltyPoints": {}
254
255
  }; }
256
+ static get elementRef() { return "el"; }
255
257
  static get watchers() { return [{
256
258
  "propName": "translationUrl",
257
259
  "methodName": "handleNewTranslations"
@@ -52,7 +52,7 @@ const translate = (key, customLang, values) => {
52
52
  return translation;
53
53
  };
54
54
 
55
- const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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 svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";
55
+ const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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}";
56
56
 
57
57
  const GamificationDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
58
58
  constructor() {
@@ -79,6 +79,7 @@ const GamificationDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
79
79
  * Translations via URL
80
80
  */
81
81
  this.translationUrl = '';
82
+ this.isOpen = false;
82
83
  this.isLoading = false;
83
84
  this.stylingAppends = false;
84
85
  this.setClientStyling = () => {
@@ -100,13 +101,13 @@ const GamificationDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
100
101
  });
101
102
  };
102
103
  this.handleOutsideClick = (event) => {
103
- const dropdownElement = document.querySelector('gamification-dropdown');
104
- if (dropdownElement && !dropdownElement.contains(event.target)) {
104
+ if (!this.el.contains(event.target)) {
105
105
  this.isOpen = false;
106
106
  document.removeEventListener('click', this.handleOutsideClick);
107
107
  }
108
108
  };
109
- this.handleDropdownClick = () => {
109
+ this.handleDropdownClick = (event) => {
110
+ event.stopPropagation();
110
111
  this.isOpen = !this.isOpen;
111
112
  if (this.isOpen) {
112
113
  document.addEventListener('click', this.handleOutsideClick);
@@ -171,13 +172,14 @@ const GamificationDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
171
172
  return null;
172
173
  }
173
174
  else {
174
- return (h("div", { class: "GamificationDropdownContainer" }, h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: this.handleDropdownClick, title: typeof this.loyaltyPoints === 'number'
175
+ return (h("div", { ref: el => this.stylingContainer = el, class: "GamificationDropdownContainer" }, h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints === 'number'
175
176
  ? String(this.loyaltyPoints)
176
177
  : translate('gamificationNoPoints', this.language) }, typeof this.loyaltyPoints === 'number'
177
178
  ? `${Math.floor(this.loyaltyPoints)} XP`
178
- : '...', h("span", null, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (h("div", { class: "GamificationDropdown" }, h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
179
+ : '...', h("span", { class: this.isOpen ? 'TriangleActive' : 'TriangleInactive' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (h("div", { class: "GamificationDropdown" }, h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
179
180
  }
180
181
  }
182
+ get el() { return this; }
181
183
  static get watchers() { return {
182
184
  "translationUrl": ["handleNewTranslations"]
183
185
  }; }
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-76ec399c.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a803f08b.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-76ec399c.js';
2
- import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS$1, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-5d6e44ca.js';
1
+ import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-a803f08b.js';
2
+ import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS$1, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-11fa1dc1.js';
3
3
 
4
4
  const DEFAULT_LANGUAGE = 'en';
5
5
  const SUPPORTED_LANGUAGES = ['de', 'en', 'hr'];
@@ -50,7 +50,7 @@ const translate = (key, customLang, values) => {
50
50
  return translation;
51
51
  };
52
52
 
53
- const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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 svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";
53
+ const gamificationDropdownCss = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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}";
54
54
 
55
55
  const GamificationDropdown = class {
56
56
  constructor(hostRef) {
@@ -75,6 +75,7 @@ const GamificationDropdown = class {
75
75
  * Translations via URL
76
76
  */
77
77
  this.translationUrl = '';
78
+ this.isOpen = false;
78
79
  this.isLoading = false;
79
80
  this.stylingAppends = false;
80
81
  this.setClientStyling = () => {
@@ -96,13 +97,13 @@ const GamificationDropdown = class {
96
97
  });
97
98
  };
98
99
  this.handleOutsideClick = (event) => {
99
- const dropdownElement = document.querySelector('gamification-dropdown');
100
- if (dropdownElement && !dropdownElement.contains(event.target)) {
100
+ if (!this.el.contains(event.target)) {
101
101
  this.isOpen = false;
102
102
  document.removeEventListener('click', this.handleOutsideClick);
103
103
  }
104
104
  };
105
- this.handleDropdownClick = () => {
105
+ this.handleDropdownClick = (event) => {
106
+ event.stopPropagation();
106
107
  this.isOpen = !this.isOpen;
107
108
  if (this.isOpen) {
108
109
  document.addEventListener('click', this.handleOutsideClick);
@@ -167,13 +168,14 @@ const GamificationDropdown = class {
167
168
  return null;
168
169
  }
169
170
  else {
170
- return (h("div", { class: "GamificationDropdownContainer" }, h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: this.handleDropdownClick, title: typeof this.loyaltyPoints === 'number'
171
+ return (h("div", { ref: el => this.stylingContainer = el, class: "GamificationDropdownContainer" }, h("button", { class: `GamificationDropdownButton ${this.isOpen ? 'IsOpen' : ''}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints === 'number'
171
172
  ? String(this.loyaltyPoints)
172
173
  : translate('gamificationNoPoints', this.language) }, typeof this.loyaltyPoints === 'number'
173
174
  ? `${Math.floor(this.loyaltyPoints)} XP`
174
- : '...', h("span", null, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (h("div", { class: "GamificationDropdown" }, h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
175
+ : '...', h("span", { class: this.isOpen ? 'TriangleActive' : 'TriangleInactive' }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && (h("div", { class: "GamificationDropdown" }, h("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })))));
175
176
  }
176
177
  }
178
+ get el() { return getElement(this); }
177
179
  static get watchers() { return {
178
180
  "translationUrl": ["handleNewTranslations"]
179
181
  }; }
@@ -324,6 +324,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
324
324
  }
325
325
  }
326
326
  }
327
+ else if (memberName === 'ref') {
328
+ // minifier will clean this up
329
+ if (newValue) {
330
+ newValue(elm);
331
+ }
332
+ }
327
333
  else if ((!isProp ) &&
328
334
  memberName[0] === 'o' &&
329
335
  memberName[1] === 'n') {
@@ -562,6 +568,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
562
568
  for (; startIdx <= endIdx; ++startIdx) {
563
569
  if ((vnode = vnodes[startIdx])) {
564
570
  elm = vnode.$elm$;
571
+ callNodeRefs(vnode);
565
572
  {
566
573
  // we're removing this element
567
574
  // so it's possible we need to show slot fallback content now
@@ -860,6 +867,12 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
860
867
  }
861
868
  return slotNameAttr === '';
862
869
  };
870
+ const callNodeRefs = (vNode) => {
871
+ {
872
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
873
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
874
+ }
875
+ };
863
876
  const renderVdom = (hostRef, renderFnResults) => {
864
877
  const hostElm = hostRef.$hostElement$;
865
878
  const cmpMeta = hostRef.$cmpMeta$;
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-76ec399c.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a803f08b.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -1,4 +1,4 @@
1
- import { h, a as getAssetPath } from './index-76ec399c.js';
1
+ import { h, a as getAssetPath } from './index-a803f08b.js';
2
2
 
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-76ec399c.js';
2
- import { T as TRANSLATIONS, P as PlayerAvatar, c as PlayerPoints, e as PlayerNameDiv, b as PlayerElevateLoyaltyLevel, d as PlayerLoyaltyProcess, f as PlayerElevateCardRedeem } from './player-elevate-card-items-5d6e44ca.js';
1
+ import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-a803f08b.js';
2
+ import { T as TRANSLATIONS, P as PlayerAvatar, c as PlayerPoints, e as PlayerNameDiv, b as PlayerElevateLoyaltyLevel, d as PlayerLoyaltyProcess, f as PlayerElevateCardRedeem } from './player-elevate-card-items-11fa1dc1.js';
3
3
 
4
4
  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}";
5
5
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-76ec399c.js';
2
- import { T as TRANSLATIONS, P as PlayerAvatar, h as translate, c as PlayerPoints } from './player-elevate-card-items-5d6e44ca.js';
1
+ import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-a803f08b.js';
2
+ import { T as TRANSLATIONS, P as PlayerAvatar, h as translate, c as PlayerPoints } from './player-elevate-card-items-11fa1dc1.js';
3
3
 
4
4
  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(--emfe-w-color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emfe-w-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}";
5
5
 
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-5e3064ce.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((e=>l([["p-4eba8e43",[[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]}],[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"]]],[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"]]]]],["p-bbd6d5a3",[[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"]]]]],["p-62327671",[[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"]]]]]],e)));
1
+ import{p as e,b as l}from"./p-1bea1936.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((e=>l([["p-3115c6e5",[[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]}],[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"]]],[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"]]]]],["p-3440095c",[[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"]]]]],["p-0296e4e5",[[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"]]]]]],e)));
@@ -1 +1 @@
1
- import{r as n,a as t,h as e,F as i}from"./p-5e3064ce.js";import{T as a,P as s,h as r,c as o}from"./p-2d5bddc0.js";const l=class{constructor(t){n(this,t),this.theme="Dark",this.language="en",this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isPointDetailCard="earningRule"===this.buttonType}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(n){n.detail&&(n.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=n.detail.elevateLevelWalletTotal,this.elevateSPTotal=n.detail.loyaltyWalletTotal),n.detail.elevateLevel&&(this.playerElevateLevel=n.detail.elevateLevel),n.detail.pointExpireString&&(this.pointExpireString=n.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const n=t("../static/card-ground.svg"),l=t("../static/card-ground-over.svg");return e("div",{class:`ElevateCardWrapper ${this.theme}`},e("div",{class:"PointsCard Outer ",style:{backgroundImage:`url(${n}`}},e("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:a,translationUrl:this.translationUrl}),e("player-elevate-card-data",{params:this.paramProxy}),e("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${l}`}},e("div",{class:"Content Row"},this.playerElevateLevel&&e(i,null,e("div",{class:"PlayerImg"},e(s,{onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),e("div",{class:`LevelInfo ${this.playerElevateLevel.name}`},e("div",{class:"PointsTxt Label"},this.cardTitle?this.cardTitle:r("spendablePoints")),e("div",{class:"PointsTxt SPPoints"},e(o,{spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),e("a",{class:"TC",onClick:()=>{this.onDetailsClick()}},r("termAndConditions",this.language))),this.pointExpireString&&e("div",{class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};l.style=":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(--emfe-w-color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emfe-w-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}";export{l as player_elevate_pointcard}
1
+ import{r as n,a as t,h as e,F as i}from"./p-1bea1936.js";import{T as a,P as s,h as r,c as o}from"./p-e734000d.js";const l=class{constructor(t){n(this,t),this.theme="Dark",this.language="en",this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isPointDetailCard="earningRule"===this.buttonType}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(n){n.detail&&(n.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=n.detail.elevateLevelWalletTotal,this.elevateSPTotal=n.detail.loyaltyWalletTotal),n.detail.elevateLevel&&(this.playerElevateLevel=n.detail.elevateLevel),n.detail.pointExpireString&&(this.pointExpireString=n.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const n=t("../static/card-ground.svg"),l=t("../static/card-ground-over.svg");return e("div",{class:`ElevateCardWrapper ${this.theme}`},e("div",{class:"PointsCard Outer ",style:{backgroundImage:`url(${n}`}},e("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:a,translationUrl:this.translationUrl}),e("player-elevate-card-data",{params:this.paramProxy}),e("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${l}`}},e("div",{class:"Content Row"},this.playerElevateLevel&&e(i,null,e("div",{class:"PlayerImg"},e(s,{onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),e("div",{class:`LevelInfo ${this.playerElevateLevel.name}`},e("div",{class:"PointsTxt Label"},this.cardTitle?this.cardTitle:r("spendablePoints")),e("div",{class:"PointsTxt SPPoints"},e(o,{spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),e("a",{class:"TC",onClick:()=>{this.onDetailsClick()}},r("termAndConditions",this.language))),this.pointExpireString&&e("div",{class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};l.style=":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(--emfe-w-color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emfe-w-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}";export{l as player_elevate_pointcard}
@@ -0,0 +1 @@
1
+ let e,t,n,l=!1,o=!1,s=!1,r=!1,i=!1;const c="undefined"!=typeof window?window:{},f=c.document||{head:{}},a={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},u=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=m(e,n),r=h(t,o),i=p(n);a.ael(s,l,r,i),(t.o=t.o||[]).push((()=>a.rel(s,l,r,i)))}))},h=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){$e(e)}},m=(e,t)=>8&t?c:e,p=e=>0!=(2&e),y=new WeakMap,b=e=>"sc-"+e.$,w={},g=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1,i=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&r?i[i.length-1].h+=l:i.push(s?j(null,l):l),r=s)};if(c(n),t){t.name&&(o=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,k);const f=j(e,null);return f.m=t,i.length>0&&(f.p=i),f.g=o,f},j=(e,t)=>({t:0,v:e,h:t,j:null,p:null,m:null,g:null}),S={},k={forEach:(e,t)=>e.map(O).forEach(t),map:(e,t)=>e.map(O).map(t).map(M)},O=e=>({vattrs:e.m,vchildren:e.p,vkey:e.S,vname:e.g,vtag:e.v,vtext:e.h}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=j(e.vtag,e.vtext);return t.m=e.vattrs,t.p=e.vchildren,t.S=e.vkey,t.g=e.vname,t},R=(e,t,n,l,o,s)=>{if(n!==l){let r=ue(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=x(n),s=x(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ue(c,i)?i.slice(2):i[2]+t.slice(3),n&&a.rel(e,t,n,!1),l&&a.ael(e,t,l,!1)}},C=/\s/,x=e=>e?e.split(C):[],T=(e,t,n,l)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.m||w,r=t.m||w;for(l in s)l in r||R(o,l,s[l],void 0,n,t.t);for(l in r)R(o,l,s[l],r[l],n,t.t)},E=(o,i,c,a)=>{let u,$,d,h=i.p[c],m=0;if(l||(s=!0,"slot"===h.v&&(e&&a.classList.add(e+"-s"),h.t|=h.p?2:1)),null!==h.h)u=h.j=f.createTextNode(h.h);else if(1&h.t)u=h.j=f.createTextNode("");else{if(r||(r="svg"===h.v),u=h.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.v),r&&"foreignObject"===h.v&&(r=!1),T(null,h,r),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),h.p)for(m=0;m<h.p.length;++m)$=E(o,h,m,u),$&&u.appendChild($);"svg"===h.v?r=!1:"foreignObject"===u.tagName&&(r=!0)}return u["s-hn"]=n,3&h.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=h.g||"",d=o&&o.p&&o.p[c],d&&d.v===h.v&&o.j&&L(o.j,!1)),u},L=(e,t)=>{a.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(A(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&L(o,t)}a.t&=-2},N=(e,t,l,o,s,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=E(null,l,s,e),i&&(o[s].j=i,c.insertBefore(i,W(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,_(l),o=!0,s["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},U=(e,t)=>e.v===t.v&&("slot"!==e.v||e.g===t.g),W=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,F=(e,t)=>{const n=t.j=e.j,l=e.p,o=t.p,s=t.v,i=t.h;let c;null===i?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||T(e,t,r),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,i=t.length-1,c=t[0],f=t[i],a=l.length-1,u=l[0],$=l[a];for(;s<=i&&r<=a;)null==c?c=t[++s]:null==f?f=t[--i]:null==u?u=l[++r]:null==$?$=l[--a]:U(c,u)?(F(c,u),c=t[++s],u=l[++r]):U(f,$)?(F(f,$),f=t[--i],$=l[--a]):U(c,$)?("slot"!==c.v&&"slot"!==$.v||L(c.j.parentNode,!1),F(c,$),e.insertBefore(c.j,f.j.nextSibling),c=t[++s],$=l[--a]):U(f,u)?("slot"!==c.v&&"slot"!==$.v||L(f.j.parentNode,!1),F(f,u),e.insertBefore(f.j,c.j),f=t[--i],u=l[++r]):(o=E(t&&t[r],n,r,e),u=l[++r],o&&A(c.j).insertBefore(o,W(c.j)));s>i?N(e,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&P(t,s,i)})(n,l,t,o):null!==o?(null!==e.h&&(n.textContent=""),N(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.h!==i&&(n.data=i)},q=e=>{let t,n,l,o,s,r,i=e.childNodes;for(n=0,l=i.length;n<l;n++)if(t=i[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<l;o++)if(r=i[o].nodeType,i[o]["s-hn"]!==t["s-hn"]||""!==s){if(1===r&&s===i[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===r||3===r&&""!==i[o].textContent.trim()){t.hidden=!0;break}q(t)}},D=[],H=e=>{let t,n,l,s,r,i,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=t["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(V(n,s)?(r=D.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.O=t:D.push({O:t,k:n}),n["s-sr"]&&D.map((e=>{V(e.k,n["s-sn"])&&(r=D.find((e=>e.k===n)),r&&!e.O&&(e.O=r.O))}))):D.some((e=>e.k===n))||D.push({k:n}));1===t.nodeType&&H(t)}},V=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(_)},z=e=>ce(e).M,B=(e,t,n)=>{const l=z(e);return{emit:e=>G(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const l=a.ce(t,n);return e.dispatchEvent(l),l},I=(e,t)=>{t&&!e.R&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.R=t)))},J=(e,t)=>{if(e.t|=16,!(4&e.t))return I(e,e.C),je((()=>K(e,t)));e.t|=512},K=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>ee(n,e,t))),e.u=null),l=ee(n,"componentWillLoad")),te(l,(()=>Q(e,n,t)))},Q=async(e,t,n)=>{const l=e.M,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.M,l=t.t,o=((e,t)=>{let n=b(t),l=me.get(n);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=f.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);X(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>Y(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},X=(r,i)=>{try{i=i.render&&i.render(),r.t&=-17,r.t|=2,((r,i)=>{const c=r.M,u=r.T,$=r.L||j(null,null),d=(e=>e&&e.v===S)(i)?i:v(null,null,i);if(n=c.tagName,u.N&&(d.m=d.m||{},u.N.map((([e,t])=>d.m[t]=c[e]))),d.v=null,d.t|=4,r.L=d,d.j=$.j=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&u.t),o=!1,F($,d),a.t|=1,s){let e,t,n,l,o,s;H(d.j);let r=0;for(;r<D.length;r++)e=D[r],t=e.k,t["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(r=0;r<D.length;r++)if(e=D[r],t=e.k,e.O){for(l=e.O.parentNode,o=e.O.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),l.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&q(d.j),a.t&=-2,D.length=0})(r,i)}catch(e){$e(e,r.M)}return null},Y=e=>{const t=e.M,n=e.C;ee(e.i,"componentDidRender"),64&e.t||(e.t|=64,ne(t),e.P(t),n||Z()),e.R&&(e.R(),e.R=void 0),512&e.t&&ve((()=>J(e,!1))),e.t&=-517},Z=()=>{ne(f.documentElement),ve((()=>G(c,"appload",{detail:{namespace:"gamification-dropdown"}})))},ee=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){$e(e)}},te=(e,t)=>e&&e.then?e.then(t):t(),ne=e=>e.classList.add("hydrated"),le=(e,t,n)=>{if(t.U){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.U),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>ce(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ce(e),s=o.M,r=o.A.get(t),i=o.t,c=o.i;if(n=((e,t)=>null==e||g(e)?e:1&t?e+"":e)(n,l.U[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.A.set(t,n),c)){if(l.W&&128&i){const e=l.W[t];e&&e.map((e=>{try{c[e](n,r,t)}catch(e){$e(e,s)}}))}2==(18&i)&&J(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){a.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},oe=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=f.head,r=s.querySelector("meta[charset]"),i=f.createElement("style"),u=[];let h,m=!0;Object.assign(a,t),a.l=new URL(t.resourcesUrl||"./",f.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],U:t[2],F:t[3]};s.U=t[2],s.F=t[3],s.N=[],s.W={};const r=s.$,i=class extends HTMLElement{constructor(e){super(e),ae(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?u.push(this):a.jmp((()=>(e=>{if(0==(1&a.t)){const t=ce(e),n=t.T,l=()=>{};if(1&t.t)d(e,t,n.F);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.C=n);break}}n.U&&Object.entries(n.U).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=he(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.W=o.watchers,le(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){$e(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=b(n);if(!me.has(t)){const l=()=>{};((e,t,n)=>{let l=me.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,me.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.C,r=()=>J(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(()=>{if(0==(1&a.t)){const e=ce(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return ce(this).q}};s.D=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,le(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),m=!1,u.length?u.map((e=>e.connectedCallback())):a.jmp((()=>h=setTimeout(Z,30)))},se=e=>{const t=new URL(e,a.l);return t.origin!==c.location.origin?t.href:t.pathname},re=(e,t)=>t,ie=new WeakMap,ce=e=>ie.get(e),fe=(e,t)=>ie.set(t.i=e,t),ae=(e,t)=>{const n={t:0,M:e,T:t,A:new Map};return n.q=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.F),ie.set(e,n)},ue=(e,t)=>t in e,$e=(e,t)=>(0,console.error)(e,t),de=new Map,he=e=>{const t=e.$.replace(/-/g,"_"),n=e.D,l=de.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(de.set(n,e),e[t])),$e)},me=new Map,pe=[],ye=[],be=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&a.t?ve(ge):a.raf(ge))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){$e(e)}e.length=0},ge=()=>{we(pe),we(ye),(i=pe.length>0)&&a.raf(ge)},ve=e=>u().then(e),je=be(ye,!0);export{re as F,se as a,oe as b,B as c,z as g,v as h,u as p,fe as r}
@@ -0,0 +1 @@
1
+ import{r as e,h as n,g as t,c as i,a as o,F as a}from"./p-1bea1936.js";import{r,t as l,g as s,a as h,T as d,P as c,b as v,c as p,d as g}from"./p-e734000d.js";const f=["de","en","hr"];let m={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const w=e=>new Promise((n=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((n=>{for(let t in e[n])m[n][t]=e[n][t]})),n(!0)}))})),x=(e,n,t)=>{const i=n;let o=m[void 0!==i&&f.includes(i)?i:"en"][e];if(void 0!==t)for(const[e,n]of Object.entries(t.values)){const t=new RegExp(`{${e}}`,"g");o=o.replace(t,n)}return o},u=class{constructor(n){e(this,n),this.language="en",this.session="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),n=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(n)}),1)})).catch((e=>{console.log("error ",e)}))},this.handleOutsideClick=e=>{this.el.contains(e.target)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=e=>{e.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}}handleNewTranslations(){this.isLoading=!0,w(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){if(this.translationUrl.length>2&&await w(this.translationUrl),this.endpoint&&this.language)return this.fetchPointsData()}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const n=new Headers;n.append("X-SessionId",this.session);const t={method:"GET",headers:n};return new Promise(((n,i)=>{this.isLoading=!0,fetch(e.href,t).then((e=>e.json())).then((e=>{var t,i;this.loyaltyPoints=null===(i=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.level)||void 0===i?void 0:i.loyaltyPoints,n(!0)})).catch((e=>{console.error(e),i(e)})).finally((()=>{this.isLoading=!1}))}))}render(){return this.isLoading?null:n("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},n("button",{class:"GamificationDropdownButton "+(this.isOpen?"IsOpen":""),type:"button",onClick:e=>this.handleDropdownClick(e),title:"number"==typeof this.loyaltyPoints?String(this.loyaltyPoints):x("gamificationNoPoints",this.language)},"number"==typeof this.loyaltyPoints?`${Math.floor(this.loyaltyPoints)} XP`:"...",n("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},n("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&n("div",{class:"GamificationDropdown"},n("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling})))}get el(){return t(this)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};u.style=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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}";const y=class{constructor(n){e(this,n),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),n=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{this.el.prepend(n)}),1)})).catch((e=>{console.log("error ",e)}))}}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const i=(n=this.translationUrl,t=this.targetTranslations,new Promise((e=>{fetch(n).then((e=>e.json())).then((n=>{Object.keys(n).forEach((e=>{t[e]=t[e]?t[e]:{};for(let i in n[e])t[e][i]=n[e][i]})),e(!0)}))})));e.push(i)}var n,t;return await Promise.all(e)}render(){return n("div",{class:"StyleShell"},n("slot",{name:"mainContent"}))}get el(){return t(this)}};function b(e){r(1,arguments);var n=l(e);return n.setHours(0,0,0,0),n}function L(e,n){return r(2,arguments),l(e).getTime()-l(n).getTime()}y.style=":host{display:block}";var I={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function E(e){return e?I[e]:I.trunc}const C=class{constructor(n){e(this,n),this.playerElevateLeveLoaded=i(this,"playerElevateLeveLoaded",7)}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise(((n,t)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,n(!0)})).catch((e=>{t(e)}))))}calcuatePointsToBeExpired(e){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;e.aboutToExpire.sort(((e,n)=>function(e,n){r(2,arguments);var t=l(e),i=l(n);return t.getTime()<i.getTime()}(new Date(e.expireTime),new Date(n.expireTime))?-1:1));const t=e.aboutToExpire[0],i=function(e,n){r(2,arguments);var t=b(e),i=b(n),o=t.getTime()-s(t),a=i.getTime()-s(i);return Math.round((o-a)/864e5)}(new Date(t.expireTime),new Date);let o=0,a=0===i?"pointsToBeExpiredDay":"pointsToBeExpired";return 0==i&&(o=function(e,n,t){r(2,arguments);var i=L(e,n)/36e5;return E(null==t?void 0:t.roundingMethod)(i)}(new Date(t.expireTime),new Date),a=o>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour"),n=h(a,{expirationPoints:t.points,expireDay:i}),n}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((n,t)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var i,o,a;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void t(!0);let r=e.data;this.playerElevateLevel=r.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(i=r.spendableWallet)||void 0===i?void 0:i.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const l=null===(o=e.data.spendableWallet)||void 0===o?void 0:o.total,s=null===(a=e.data.loyaltyWallet)||void 0===a?void 0:a.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:l,loyaltyWalletTotal:s});let h=this.calcuatePointsToBeExpired(l),d=this.calcuatePointsToBeExpired(s);(h||d)&&this.playerElevateLeveLoaded.emit({pointExpireString:h,xpExpireString:d}),n(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),t(!0)}))))}setLoyaltyProgress(e){!function(e,n){const t=e.querySelector("#total_level"),i=t.getBBox().width,o=n>1?1:n,a=o*i-17<0?0:o*i-17,r=e.querySelector("#current_level"),l=e.querySelector("#filter_current_level"),s=e.querySelector("#circle_current_level");t.setAttribute("viewbox",`0 0 ${a} 28`),r.setAttribute("width",`${a}`),s.setAttribute("cx",`${a<6.5?6.5:a}`),l.setAttribute("x",""+(a-8));const h=e.querySelector("#lock"),d=e.querySelector("#filter_heart_ball"),c=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),p=e.querySelector("#filter_lock"),g=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),m=e.querySelector("#lock_box"),w=e.querySelector("#heart_box"),x=i-10;h.setAttribute("cx",`${x}`),f.setAttribute("x1",`${x}`),f.setAttribute("x2",`${x}`),g.setAttribute("x1",""+(x-6)),g.setAttribute("x2",""+(x-6+11.2)),p.setAttribute("x",""+(x-6)),v.setAttribute("x",""+(x-6-2)),c.setAttribute("x",""+(x-6-2-2)),d.setAttribute("x",""+(x-6-2-2-4)),m.setAttribute("x",""+(x-6)),w.setAttribute("x",""+(x-6)),t.parentElement.style.opacity="1"}(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout((()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)}),80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then((e=>{if(console.log("elevate-init",e),this.initLevelProgressbar(),!this.levels)return;this.levels.sort(((e,n)=>e.firstEntryPoints>n.firstEntryPoints?1:-1));const n=this.playerElevateLevel.loyaltyPoints;let t=0;this.levels.forEach(((e,i)=>{n>e.firstEntryPoints&&(t=i)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:t})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return t(this)}static get watchers(){return{params:["onParamsChanged"]}}};C.style=':host {\n display: block;\n width: 360px;\n height: 230px;\n}\n\n.ElevateCardWrapper {\n contain: layout inline-size;\n width: 100%;\n height: fit-content;\n min-height: 218px;\n}\n\n.Outer {\n container-type: inline-size;\n font-size: 12px;\n background-size: cover;\n background-repeat: no-repeat;\n line-height: initial;\n width: 100%;\n height: 100%;\n}\n\n.Dark {\n color: var(--emfe-w-color-gray150, #efefef);\n}\n\n.Light {\n color: var(--emfe-w-color-black, #0e0e0e);\n}\n\n@container (min-width: 381px) {\n .Outer {\n background-size: cover;\n }\n .Outer .OuterCover {\n min-height: 190px;\n }\n}\n@container (min-width: 260px) {\n .Outer {\n background-size: contain;\n }\n}\n.OuterCover {\n width: 100%;\n height: 100%;\n content: "";\n background-repeat: no-repeat;\n background-size: cover;\n border-radius: 15px;\n}\n\n.Inner {\n display: flex;\n flex-direction: column;\n min-height: 158px;\n}\n.Inner .Content {\n padding: 15px;\n flex-wrap: wrap;\n gap: 8px;\n}\n.Inner .Row {\n display: flex;\n flex-direction: row;\n}\n.Inner .CardCell {\n display: flex;\n}\n.Inner .LevelProgress svg {\n transition: opacity 0.4s;\n}\n.Inner .LevelInfo {\n display: flex;\n flex-direction: column;\n}\n.Inner .LevelInfo .ElevateLevel .LevelName {\n height: 28px;\n border-radius: 5px;\n line-height: 28px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level0-bg0, #E2792C) 0%, var(--emfe-w-elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);\n}\n.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level1-bg0, #BEBFED) 0%, var(--emfe-w-elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);\n}\n.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level2-bg0, #FCC410) 0%, var(--emfe-w-elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);\n}\n.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level3-bg0, #B1A2DB) 0%, var(--emfe-w-elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level4-bg0, #B1A2DB) 0%, var(--emfe-w-elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo .ElevateLevel {\n display: flex;\n}\n.Inner .LevelInfo {\n flex: 1;\n flex-grow: 1;\n min-width: 150px;\n}\n.Inner .PlayerImg {\n width: 29%;\n margin: auto;\n max-width: 100px;\n min-width: 30px;\n order: 0;\n}\n.Inner .PlayerAvatar {\n max-width: 100px;\n flex-basis: 100px;\n height: auto;\n margin: auto;\n padding-top: 10px;\n}\n.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {\n width: 100%;\n height: 100%;\n}\n.Inner .PlayerAvatar .Avatar {\n border-radius: 50%;\n background-size: contain;\n background-repeat: no-repeat;\n}\n.Inner .ElevateLevel .ExpirationDate {\n max-width: 138px;\n min-width: 118px;\n}\n.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {\n text-transform: capitalize;\n width: 100%;\n}\n.Inner .PlayerName {\n font-size: 16px;\n}\n.Inner .Row .PointsInfo {\n display: table;\n font-weight: 600;\n}\n.Inner .Row .Redeem {\n justify-content: flex-end;\n margin-left: auto;\n}\n.Inner .Row .Redeem:hover {\n color: var(--emfe-w-elevate-color-redeem-hover, #00ABA4);\n cursor: pointer;\n}\n.Inner .Row .RedeemButton:hover span {\n color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);\n font-weight: bold;\n}\n.Inner .Row .RedeemButton {\n width: 95px;\n height: 35px;\n display: flex;\n align-items: center;\n border-radius: 10px;\n background: var(--emfe-w-elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);\n box-shadow: 0px 4px 4px 0px #00000040;\n}\n.Inner .Row .RedeemButton span {\n color: var(--emfe-w-color-white, #fff);\n line-height: 18px;\n font-size: 15px;\n text-align: center;\n width: 100%;\n}\n.Inner .Row .Points {\n font-size: large;\n vertical-align: middle;\n}\n.Inner .Row .Points .XP {\n font-size: x-small;\n}\n.Inner .Row .ExpirationPoints {\n font-size: small;\n text-align: right;\n font-weight: bold;\n color: var(--emfe-w-color-red, #9e595f);\n}';const P=class{constructor(n){e(this,n),this.theme="Dark",this.language="en",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelTips(){var e;let n=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&n){const e=(n.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return h("tipsForNextLevel",{pointsToReach:e,levelName:n.name})}return""}render(){const e=o("../static/card-ground.svg"),t=o("../static/card-ground-over.svg");return n("div",{class:`ElevateCardWrapper ${this.theme}`},n("div",{class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},n("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:d,translationUrl:this.translationUrl}),n("player-elevate-card-data",{params:this.paramProxy}),n("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},n("div",{class:"Content Row"},this.playerElevateLevel&&n(a,null,n("div",{class:"PlayerImg"},n(c,{onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),n("div",{class:`LevelInfo ${this.playerElevateLevel.name}`},n(v,{hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),n(p,{loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),this.pointExpireString&&n("div",{class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),n(g,null),n("div",{class:"NextLevelTip"},this.getNextLevelTips())))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};P.style=":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}";export{u as gamification_dropdown,y as general_styling_wrapper,C as player_elevate_card_data,P as player_elevate_loyaltycard}
@@ -1 +1 @@
1
- import{r as n,a as e,h as t,F as a}from"./p-5e3064ce.js";import{T as i,P as r,c as s,e as o,b as l,d,f as c}from"./p-2d5bddc0.js";const h=class{constructor(e){n(this,e),this.theme="Dark",this.language="en",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.playerLevelFlag=0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(n){n.detail&&(n.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=n.detail.elevateLevelWalletTotal),n.detail.elevateLevel&&(this.playerElevateLevel=n.detail.elevateLevel),n.detail.pointExpireString&&(this.pointExpireString=n.detail.xpExpireString),n.detail.calculatedLevelFlag&&(this.playerLevelFlag=n.detail.calculatedLevelFlag))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language,calculateLevelFlag:!0}}render(){const n=e("../static/card-ground.svg"),h=e("../static/card-ground-over.svg");return t("div",{class:`ElevateCardWrapper ${this.theme}`},t("div",{class:"Card Outer",style:{backgroundImage:`url(${n}`}},t("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl}),t("player-elevate-card-data",{params:this.paramProxy}),t("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${h}`}},this.playerElevateLevel&&t(a,null,t("div",{class:"Content Row"},t("div",{class:"PlayerImg"},t(r,{playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),t(s,{loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&t("div",{class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),t("div",{class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},t(o,{playerName:this.playerName}),t(l,{hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t(d,null),t(c,{onRedeemClick:this.onRedeemClick,language:this.language})))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};h.style="@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}";export{h as player_elevate_card}
1
+ import{r as n,a as e,h as t,F as a}from"./p-1bea1936.js";import{T as i,P as r,c as s,e as o,b as l,d,f as h}from"./p-e734000d.js";const c=class{constructor(e){n(this,e),this.theme="Dark",this.language="en",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.playerLevelFlag=0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(n){n.detail&&(n.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=n.detail.elevateLevelWalletTotal),n.detail.elevateLevel&&(this.playerElevateLevel=n.detail.elevateLevel),n.detail.pointExpireString&&(this.pointExpireString=n.detail.xpExpireString),n.detail.calculatedLevelFlag&&(this.playerLevelFlag=n.detail.calculatedLevelFlag))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language,calculateLevelFlag:!0}}render(){const n=e("../static/card-ground.svg"),c=e("../static/card-ground-over.svg");return t("div",{class:`ElevateCardWrapper ${this.theme}`},t("div",{class:"Card Outer",style:{backgroundImage:`url(${n}`}},t("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl}),t("player-elevate-card-data",{params:this.paramProxy}),t("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${c}`}},this.playerElevateLevel&&t(a,null,t("div",{class:"Content Row"},t("div",{class:"PlayerImg"},t(r,{playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),t(s,{loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&t("div",{class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),t("div",{class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},t(o,{playerName:this.playerName}),t(l,{hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t(d,null),t(h,{onRedeemClick:this.onRedeemClick,language:this.language})))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};c.style="@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}";export{c as player_elevate_card}
@@ -1 +1 @@
1
- import{h as e,a as i}from"./p-5e3064ce.js";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){if(null===e||!0===e||!1===e)return NaN;var i=Number(e);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function r(e,i){if(i.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+i.length+" present")}function a(e){r(1,arguments);var i=Object.prototype.toString.call(e);return e instanceof Date||"object"===t(e)&&"[object Date]"===i?new Date(e.getTime()):"number"==typeof e||"[object Number]"===i?new Date(e):("string"!=typeof e&&"[object String]"!==i||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function o(e,i){r(2,arguments);var t=a(e).getTime(),o=n(i);return new Date(t+o)}var s={};function I(){return s}function M(e){var i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),e.getTime()-i.getTime()}function u(e){return r(1,arguments),e instanceof Date||"object"===t(e)&&"[object Date]"===Object.prototype.toString.call(e)}function w(e){if(r(1,arguments),!u(e)&&"number"!=typeof e)return!1;var i=a(e);return!isNaN(Number(i))}function g(e,i){r(2,arguments);var t=n(i);return o(e,-t)}function d(e){r(1,arguments);var i=1,t=a(e),n=t.getUTCDay(),o=(n<i?7:0)+n-i;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function C(e){r(1,arguments);var i=a(e),t=i.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var o=d(n),s=new Date(0);s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0);var I=d(s);return i.getTime()>=o.getTime()?t+1:i.getTime()>=I.getTime()?t:t-1}function c(e){r(1,arguments);var i=C(e),t=new Date(0);t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0);var n=d(t);return n}function A(e,i){var t,o,s,M,u,w,g,d;r(1,arguments);var C=I(),c=n(null!==(t=null!==(o=null!==(s=null!==(M=null==i?void 0:i.weekStartsOn)&&void 0!==M?M:null==i||null===(u=i.locale)||void 0===u||null===(w=u.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==s?s:C.weekStartsOn)&&void 0!==o?o:null===(g=C.locale)||void 0===g||null===(d=g.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==t?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var A=a(e),l=A.getUTCDay(),L=(l<c?7:0)+l-c;return A.setUTCDate(A.getUTCDate()-L),A.setUTCHours(0,0,0,0),A}function l(e,i){var t,o,s,M,u,w,g,d;r(1,arguments);var C=a(e),c=C.getUTCFullYear(),l=I(),L=n(null!==(t=null!==(o=null!==(s=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(u=i.locale)||void 0===u||null===(w=u.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==s?s:l.firstWeekContainsDate)&&void 0!==o?o:null===(g=l.locale)||void 0===g||null===(d=g.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==t?t:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,L),m.setUTCHours(0,0,0,0);var D=A(m,i),y=new Date(0);y.setUTCFullYear(c,0,L),y.setUTCHours(0,0,0,0);var j=A(y,i);return C.getTime()>=D.getTime()?c+1:C.getTime()>=j.getTime()?c:c-1}function L(e,i){var t,a,o,s,M,u,w,g;r(1,arguments);var d=I(),C=n(null!==(t=null!==(a=null!==(o=null!==(s=null==i?void 0:i.firstWeekContainsDate)&&void 0!==s?s:null==i||null===(M=i.locale)||void 0===M||null===(u=M.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==a?a:null===(w=d.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==t?t:1),c=l(e,i),L=new Date(0);L.setUTCFullYear(c,0,C),L.setUTCHours(0,0,0,0);var m=A(L,i);return m}function m(e,i){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<i;)n="0"+n;return t+n}var D={G:function(e,i,t){var n=e.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,i,t){if("yo"===i){var n=e.getUTCFullYear();return t.ordinalNumber(n>0?n:1-n,{unit:"year"})}return function(e,i){var t=e.getUTCFullYear(),n=t>0?t:1-t;return m("yy"===i?n%100:n,i.length)}(e,i)},Y:function(e,i,t,n){var r=l(e,n),a=r>0?r:1-r;return"YY"===i?m(a%100,2):"Yo"===i?t.ordinalNumber(a,{unit:"year"}):m(a,i.length)},R:function(e,i){return m(C(e),i.length)},u:function(e,i){return m(e.getUTCFullYear(),i.length)},Q:function(e,i,t){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"Q":return String(n);case"QQ":return m(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,i,t){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"q":return String(n);case"qq":return m(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,i,t){var n=e.getUTCMonth();switch(i){case"M":case"MM":return function(e,i){var t=e.getUTCMonth();return"M"===i?String(t+1):m(t+1,2)}(e,i);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,i,t){var n=e.getUTCMonth();switch(i){case"L":return String(n+1);case"LL":return m(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,i,t,n){var o=function(e,i){r(1,arguments);var t=a(e),n=A(t,i).getTime()-L(t,i).getTime();return Math.round(n/6048e5)+1}(e,n);return"wo"===i?t.ordinalNumber(o,{unit:"week"}):m(o,i.length)},I:function(e,i,t){var n=function(e){r(1,arguments);var i=a(e),t=d(i).getTime()-c(i).getTime();return Math.round(t/6048e5)+1}(e);return"Io"===i?t.ordinalNumber(n,{unit:"week"}):m(n,i.length)},d:function(e,i,t){return"do"===i?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,i){return m(e.getUTCDate(),i.length)}(e,i)},D:function(e,i,t){var n=function(e){r(1,arguments);var i=a(e),t=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var n=i.getTime();return Math.floor((t-n)/864e5)+1}(e);return"Do"===i?t.ordinalNumber(n,{unit:"dayOfYear"}):m(n,i.length)},E:function(e,i,t){var n=e.getUTCDay();switch(i){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,i,t,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(i){case"e":return String(a);case"ee":return m(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(r,{width:"short",context:"formatting"});case"eeee":default:return t.day(r,{width:"wide",context:"formatting"})}},c:function(e,i,t,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(i){case"c":return String(a);case"cc":return m(a,i.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(r,{width:"narrow",context:"standalone"});case"cccccc":return t.day(r,{width:"short",context:"standalone"});case"cccc":default:return t.day(r,{width:"wide",context:"standalone"})}},i:function(e,i,t){var n=e.getUTCDay(),r=0===n?7:n;switch(i){case"i":return String(r);case"ii":return m(r,i.length);case"io":return t.ordinalNumber(r,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,i,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,i,t){var n,r=e.getUTCHours();switch(n=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",i){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,i,t){var n,r=e.getUTCHours();switch(n=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",i){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,i,t){if("ho"===i){var n=e.getUTCHours()%12;return 0===n&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return function(e,i){return m(e.getUTCHours()%12||12,i.length)}(e,i)},H:function(e,i,t){return"Ho"===i?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,i){return m(e.getUTCHours(),i.length)}(e,i)},K:function(e,i,t){var n=e.getUTCHours()%12;return"Ko"===i?t.ordinalNumber(n,{unit:"hour"}):m(n,i.length)},k:function(e,i,t){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===i?t.ordinalNumber(n,{unit:"hour"}):m(n,i.length)},m:function(e,i,t){return"mo"===i?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,i){return m(e.getUTCMinutes(),i.length)}(e,i)},s:function(e,i,t){return"so"===i?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,i){return m(e.getUTCSeconds(),i.length)}(e,i)},S:function(e,i){return function(e,i){var t=i.length,n=e.getUTCMilliseconds();return m(Math.floor(n*Math.pow(10,t-3)),i.length)}(e,i)},X:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(i){case"X":return j(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"x":return j(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+y(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+y(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(e,i,t,n){return m(Math.floor((n._originalDate||e).getTime()/1e3),i.length)},T:function(e,i,t,n){return m((n._originalDate||e).getTime(),i.length)}};function y(e,i){var t=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),a=n%60;if(0===a)return t+String(r);var o=i||"";return t+String(r)+o+m(a,2)}function j(e,i){return e%60==0?(e>0?"-":"+")+m(Math.abs(e)/60,2):N(e,i)}function N(e,i){var t=i||"",n=e>0?"-":"+",r=Math.abs(e);return n+m(Math.floor(r/60),2)+t+m(r%60,2)}var x=function(e,i){switch(e){case"P":return i.date({width:"short"});case"PP":return i.date({width:"medium"});case"PPP":return i.date({width:"long"});case"PPPP":default:return i.date({width:"full"})}},h=function(e,i){switch(e){case"p":return i.time({width:"short"});case"pp":return i.time({width:"medium"});case"ppp":return i.time({width:"long"});case"pppp":default:return i.time({width:"full"})}},b={p:h,P:function(e,i){var t,n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return x(e,i);switch(r){case"P":t=i.dateTime({width:"short"});break;case"PP":t=i.dateTime({width:"medium"});break;case"PPP":t=i.dateTime({width:"long"});break;case"PPPP":default:t=i.dateTime({width:"full"})}return t.replace("{{date}}",x(r,i)).replace("{{time}}",h(a,i))}},v=["D","DD"],p=["YY","YYYY"];function T(e){return-1!==v.indexOf(e)}function z(e){return-1!==p.indexOf(e)}function f(e,i,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.width?String(i.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var S={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},G={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function W(e){return function(i,t){var n;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,a=null!=t&&t.width?String(t.width):r;n=e.formattingValues[a]||e.formattingValues[r]}else{var o=e.defaultWidth,s=null!=t&&t.width?String(t.width):e.defaultWidth;n=e.values[s]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(i):i]}}function Y(e){return function(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=i.match(r);if(!a)return null;var o,s=a[0],I=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(I)?Q(I,(function(e){return e.test(s)})):E(I,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(M):M,o=t.valueCallback?t.valueCallback(o):o;var u=i.slice(s.length);return{value:o,rest:u}}}function E(e,i){for(var t in e)if(e.hasOwnProperty(t)&&i(e[t]))return t}function Q(e,i){for(var t=0;t<e.length;t++)if(i(e[t]))return t}var k,X={code:"en-US",formatDistance:function(e,i,t){var n,r=Z[e];return n="string"==typeof r?r:1===i?r.one:r.other.replace("{{count}}",i.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n},formatLong:S,formatRelative:function(e){return G[e]},localize:{ordinalNumber:function(e){var i=Number(e),t=i%100;if(t>20||t<10)switch(t%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:W({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:W({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:W({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:W({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:W({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.match(k.matchPattern);if(!t)return null;var n=t[0],r=e.match(k.parsePattern);if(!r)return null;var a=k.valueCallback?k.valueCallback(r[0]):r[0];a=i.valueCallback?i.valueCallback(a):a;var o=e.slice(n.length);return{value:a,rest:o}}),era:Y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V=/^'([^]*?)'?$/,U=/''/g,J=/[a-zA-Z]/;function O(e){var i=e.match(V);return i?i[1].replace(U,"'"):e}const H=["ro","en"],F={en:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},"zh-hk":{redeem:"兑奖",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"明细",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},de:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},it:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},fr:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},es:{redeem:"Redeem"},tr:{redeem:"Redeem"},ru:{redeem:"Redeem"},ro:{redeem:"Redeem"},hr:{redeem:"Otkupiti",expireOn:"Istječe",pointsToBeExpired:"${expirationPoints} bodova ističe za ${expireDay} dana",tipsForNextLevel:"Trebate ${pointsToReach} da dosegnete razinu ${levelName}",spendablePoints:"Bodovi za potrošit:",details:"Detalji",xp:"XP"},hu:{redeem:"Redeem"},pl:{redeem:"Redeem"},pt:{redeem:"Redeem"},sl:{redeem:"Redeem"},sr:{redeem:"Redeem"}},$=(e,i)=>{const t=i;return F[void 0!==t&&H.includes(t)?t:"en"][e]},K=(e,i)=>{const t=i.lang;let n=F[void 0!==t&&H.includes(t)?t:"en"][e];return i?(Object.keys(i).forEach((e=>{n=n.replace(new RegExp("\\${"+e+"}","gm"),i[e])})),n):F[void 0!==t&&H.includes(t)?t:"en"][e]},q=()=>e("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ0b3RhbF9sZXZlbCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KICAgIDxyZWN0IHk9IjEyIiAgeD0iMiIgaWQ9ImN1cnJlbnRfbGV2ZWwiIHdpZHRoPSI2NCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIvPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcl9jdXJyZW50X2xldmVsKSI+CiAgICAgICAgPGNpcmNsZSBpZD0iY2lyY2xlX2N1cnJlbnRfbGV2ZWwiIGN4PSI3NC41IiBjeT0iMTQuNSIgcj0iNi41IiBmaWxsPSJ3aGl0ZSIvPgogICAgPC9nPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcl9oZWFydF9iYWxsKSI+CiAgICAgICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcl9iYWxsKSI+CiAgICAgICAgICAgIDxjaXJjbGUgY3g9IjE2OSIgY3k9IjE0IiByPSIxMCIgaWQ9ImxvY2siIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl9iYWx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UZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMzA1XzIzIi8+CiAgICAgICAgICAgIDxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzMwNV8yMyIgcmVzdWx0PSJzaGFwZSIvPgogICAgICAgIDwvZmlsdGVyPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl9iYWxsIiB4MT0iMTYzIiB5MT0iNiIgeDI9IjE3NC4yIiB5Mj0iMjIuNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOTQ2QUQ3Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VGQUJFQiIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),_=({loyaltyPoints:i,spendablePoints:t,pointExpireString:n,language:r})=>e("div",{class:"PointsInfo"},i&&e("div",{class:"Points"},i," ",e("sub",{class:"XP"},$("xp",r))),t&&e("div",{class:"Points"},t," ",e("sub",{class:"XP"},$("sp",r))),n&&e("div",{class:"ExpirationPoints"},n," ")),ee=({language:i,onRedeemClick:t})=>e("div",{class:"CardCell Redeem"},e("div",{class:"RedeemButton",onClick:()=>{t()}},e("span",null,$("redeem",i)))),ie=i=>e("div",{class:"CardCell PlayerName Txt"},i.playerName),te=t=>e("div",{class:"CardCell ElevateLevel"},e("span",{class:"LevelName",title:t.level},t.level),t.expireTime&&e("div",{class:"CardCell ExpirationDate Txt"},$("expireOn",t.language),e("span",{class:"ExpireTime"},function(e,i,t){var o,s,u,d,C,c,A,l,L,m,y,j,N,x,h,v,p,Z;r(2,arguments);var P=String(i),S=I(),G=null!==(o=null!==(s=null==t?void 0:t.locale)&&void 0!==s?s:S.locale)&&void 0!==o?o:X,W=n(null!==(u=null!==(d=null!==(C=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(A=t.locale)||void 0===A||null===(l=A.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==C?C:S.firstWeekContainsDate)&&void 0!==d?d:null===(L=S.locale)||void 0===L||null===(m=L.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==u?u:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=n(null!==(y=null!==(j=null!==(N=null!==(x=null==t?void 0:t.weekStartsOn)&&void 0!==x?x:null==t||null===(h=t.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==N?N:S.weekStartsOn)&&void 0!==j?j:null===(p=S.locale)||void 0===p||null===(Z=p.options)||void 0===Z?void 0:Z.weekStartsOn)&&void 0!==y?y:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!G.localize)throw new RangeError("locale must contain localize property");if(!G.formatLong)throw new RangeError("locale must contain formatLong property");var E=a(e);if(!w(E))throw new RangeError("Invalid time value");var Q=M(E),k=g(E,Q),V={firstWeekContainsDate:W,weekStartsOn:Y,locale:G,_originalDate:E};return P.match(R).map((function(e){var i=e[0];return"p"===i||"P"===i?(0,b[i])(e,G.formatLong):e})).join("").match(B).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return O(n);var a=D[r];if(a)return null!=t&&t.useAdditionalWeekYearTokens||!z(n)||f(n,i,String(e)),null!=t&&t.useAdditionalDayOfYearTokens||!T(n)||f(n,i,String(e)),a(k,n,G.localize,V);if(r.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date(t.expireTime),t.dateFormat||"yyyy-MM-dd")),!t.hideInfo&&e("span",{class:"fa Info",style:{background:`url(${i("../static/info.svg")})`}},e("span",{class:"InfoTips",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI2IiBoZWlnaHQ9IjkyIiB2aWV3Qm94PSIwIDAgMTI2IDkyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI0Ml80MjMxKSI+CjxyZWN0IHg9IjI0IiB5PSIyMCIgd2lkdGg9Ijc4IiBoZWlnaHQ9IjM2IiByeD0iNCIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTI0IDI0QzI0IDIxLjc5MDkgMjUuNzkwOSAyMCAyOCAyMEg2NFY1NkgyOEMyNS43OTA5IDU2IDI0IDU0LjIwOTEgMjQgNTJWMjRaIiBmaWxsPSIjNDY0NjQ2Ii8+CjxwYXRoIGQ9Ik01MSA1NkgzN0w0My4yNDc0IDYzLjEzOTlDNDMuNjQ1OCA2My41OTUyIDQ0LjM1NDIgNjMuNTk1MiA0NC43NTI2IDYzLjEzOTlMNTEgNTZaIiBmaWxsPSIjNDY0NjQ2Ii8+CjxjaXJjbGUgY3g9IjQ0IiBjeT0iMzgiIHI9IjciIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik00My45NDA1IDM0QzQ0LjU0NTYgMzQgNDUuMDM2MiAzNC40OTA2IDQ1LjAzNjIgMzUuMDk1N0M0NS4wMzYyIDM1L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qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMiIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),ne=t=>{const n=t.loyaltyIconUrl?e("img",{class:"Badge",src:t.loyaltyIconUrl}):t.hideIfNull?"":e("div",{class:"Badge"}),r=t.playerAvatarUrl||i("../static/user.svg");return e("div",{class:"PlayerAvatar",style:{position:t.onlyBadge?"":"relative"}},!t.onlyBadge&&e("img",{class:"Avatar",src:r}),n)};export{ne as P,F as T,K as a,te as b,_ as c,q as d,ie as e,ee as f,M as g,$ as h,r,a as t}
1
+ import{h as e,a as i}from"./p-1bea1936.js";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){if(null===e||!0===e||!1===e)return NaN;var i=Number(e);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function r(e,i){if(i.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+i.length+" present")}function a(e){r(1,arguments);var i=Object.prototype.toString.call(e);return e instanceof Date||"object"===t(e)&&"[object Date]"===i?new Date(e.getTime()):"number"==typeof e||"[object Number]"===i?new Date(e):("string"!=typeof e&&"[object String]"!==i||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function o(e,i){r(2,arguments);var t=a(e).getTime(),o=n(i);return new Date(t+o)}var s={};function I(){return s}function M(e){var i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),e.getTime()-i.getTime()}function u(e){return r(1,arguments),e instanceof Date||"object"===t(e)&&"[object Date]"===Object.prototype.toString.call(e)}function w(e){if(r(1,arguments),!u(e)&&"number"!=typeof e)return!1;var i=a(e);return!isNaN(Number(i))}function g(e,i){r(2,arguments);var t=n(i);return o(e,-t)}function d(e){r(1,arguments);var i=1,t=a(e),n=t.getUTCDay(),o=(n<i?7:0)+n-i;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function C(e){r(1,arguments);var i=a(e),t=i.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(t+1,0,4),n.setUTCHours(0,0,0,0);var o=d(n),s=new Date(0);s.setUTCFullYear(t,0,4),s.setUTCHours(0,0,0,0);var I=d(s);return i.getTime()>=o.getTime()?t+1:i.getTime()>=I.getTime()?t:t-1}function c(e){r(1,arguments);var i=C(e),t=new Date(0);t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0);var n=d(t);return n}function A(e,i){var t,o,s,M,u,w,g,d;r(1,arguments);var C=I(),c=n(null!==(t=null!==(o=null!==(s=null!==(M=null==i?void 0:i.weekStartsOn)&&void 0!==M?M:null==i||null===(u=i.locale)||void 0===u||null===(w=u.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==s?s:C.weekStartsOn)&&void 0!==o?o:null===(g=C.locale)||void 0===g||null===(d=g.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==t?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var A=a(e),l=A.getUTCDay(),L=(l<c?7:0)+l-c;return A.setUTCDate(A.getUTCDate()-L),A.setUTCHours(0,0,0,0),A}function l(e,i){var t,o,s,M,u,w,g,d;r(1,arguments);var C=a(e),c=C.getUTCFullYear(),l=I(),L=n(null!==(t=null!==(o=null!==(s=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(u=i.locale)||void 0===u||null===(w=u.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==s?s:l.firstWeekContainsDate)&&void 0!==o?o:null===(g=l.locale)||void 0===g||null===(d=g.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==t?t:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,L),m.setUTCHours(0,0,0,0);var D=A(m,i),y=new Date(0);y.setUTCFullYear(c,0,L),y.setUTCHours(0,0,0,0);var j=A(y,i);return C.getTime()>=D.getTime()?c+1:C.getTime()>=j.getTime()?c:c-1}function L(e,i){var t,a,o,s,M,u,w,g;r(1,arguments);var d=I(),C=n(null!==(t=null!==(a=null!==(o=null!==(s=null==i?void 0:i.firstWeekContainsDate)&&void 0!==s?s:null==i||null===(M=i.locale)||void 0===M||null===(u=M.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==a?a:null===(w=d.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==t?t:1),c=l(e,i),L=new Date(0);L.setUTCFullYear(c,0,C),L.setUTCHours(0,0,0,0);var m=A(L,i);return m}function m(e,i){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<i;)n="0"+n;return t+n}var D={G:function(e,i,t){var n=e.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(e,i,t){if("yo"===i){var n=e.getUTCFullYear();return t.ordinalNumber(n>0?n:1-n,{unit:"year"})}return function(e,i){var t=e.getUTCFullYear(),n=t>0?t:1-t;return m("yy"===i?n%100:n,i.length)}(e,i)},Y:function(e,i,t,n){var r=l(e,n),a=r>0?r:1-r;return"YY"===i?m(a%100,2):"Yo"===i?t.ordinalNumber(a,{unit:"year"}):m(a,i.length)},R:function(e,i){return m(C(e),i.length)},u:function(e,i){return m(e.getUTCFullYear(),i.length)},Q:function(e,i,t){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"Q":return String(n);case"QQ":return m(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,i,t){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(i){case"q":return String(n);case"qq":return m(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,i,t){var n=e.getUTCMonth();switch(i){case"M":case"MM":return function(e,i){var t=e.getUTCMonth();return"M"===i?String(t+1):m(t+1,2)}(e,i);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(e,i,t){var n=e.getUTCMonth();switch(i){case"L":return String(n+1);case"LL":return m(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,i,t,n){var o=function(e,i){r(1,arguments);var t=a(e),n=A(t,i).getTime()-L(t,i).getTime();return Math.round(n/6048e5)+1}(e,n);return"wo"===i?t.ordinalNumber(o,{unit:"week"}):m(o,i.length)},I:function(e,i,t){var n=function(e){r(1,arguments);var i=a(e),t=d(i).getTime()-c(i).getTime();return Math.round(t/6048e5)+1}(e);return"Io"===i?t.ordinalNumber(n,{unit:"week"}):m(n,i.length)},d:function(e,i,t){return"do"===i?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):function(e,i){return m(e.getUTCDate(),i.length)}(e,i)},D:function(e,i,t){var n=function(e){r(1,arguments);var i=a(e),t=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var n=i.getTime();return Math.floor((t-n)/864e5)+1}(e);return"Do"===i?t.ordinalNumber(n,{unit:"dayOfYear"}):m(n,i.length)},E:function(e,i,t){var n=e.getUTCDay();switch(i){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(e,i,t,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(i){case"e":return String(a);case"ee":return m(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(r,{width:"short",context:"formatting"});case"eeee":default:return t.day(r,{width:"wide",context:"formatting"})}},c:function(e,i,t,n){var r=e.getUTCDay(),a=(r-n.weekStartsOn+8)%7||7;switch(i){case"c":return String(a);case"cc":return m(a,i.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(r,{width:"narrow",context:"standalone"});case"cccccc":return t.day(r,{width:"short",context:"standalone"});case"cccc":default:return t.day(r,{width:"wide",context:"standalone"})}},i:function(e,i,t){var n=e.getUTCDay(),r=0===n?7:n;switch(i){case"i":return String(r);case"ii":return m(r,i.length);case"io":return t.ordinalNumber(r,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(e,i,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,i,t){var n,r=e.getUTCHours();switch(n=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",i){case"b":case"bb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,i,t){var n,r=e.getUTCHours();switch(n=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",i){case"B":case"BB":case"BBB":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,i,t){if("ho"===i){var n=e.getUTCHours()%12;return 0===n&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return function(e,i){return m(e.getUTCHours()%12||12,i.length)}(e,i)},H:function(e,i,t){return"Ho"===i?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):function(e,i){return m(e.getUTCHours(),i.length)}(e,i)},K:function(e,i,t){var n=e.getUTCHours()%12;return"Ko"===i?t.ordinalNumber(n,{unit:"hour"}):m(n,i.length)},k:function(e,i,t){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===i?t.ordinalNumber(n,{unit:"hour"}):m(n,i.length)},m:function(e,i,t){return"mo"===i?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):function(e,i){return m(e.getUTCMinutes(),i.length)}(e,i)},s:function(e,i,t){return"so"===i?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):function(e,i){return m(e.getUTCSeconds(),i.length)}(e,i)},S:function(e,i){return function(e,i){var t=i.length,n=e.getUTCMilliseconds();return m(Math.floor(n*Math.pow(10,t-3)),i.length)}(e,i)},X:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(i){case"X":return j(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"x":return j(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+y(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+y(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(e,i,t,n){return m(Math.floor((n._originalDate||e).getTime()/1e3),i.length)},T:function(e,i,t,n){return m((n._originalDate||e).getTime(),i.length)}};function y(e,i){var t=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),a=n%60;if(0===a)return t+String(r);var o=i||"";return t+String(r)+o+m(a,2)}function j(e,i){return e%60==0?(e>0?"-":"+")+m(Math.abs(e)/60,2):N(e,i)}function N(e,i){var t=i||"",n=e>0?"-":"+",r=Math.abs(e);return n+m(Math.floor(r/60),2)+t+m(r%60,2)}var x=function(e,i){switch(e){case"P":return i.date({width:"short"});case"PP":return i.date({width:"medium"});case"PPP":return i.date({width:"long"});case"PPPP":default:return i.date({width:"full"})}},h=function(e,i){switch(e){case"p":return i.time({width:"short"});case"pp":return i.time({width:"medium"});case"ppp":return i.time({width:"long"});case"pppp":default:return i.time({width:"full"})}},b={p:h,P:function(e,i){var t,n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return x(e,i);switch(r){case"P":t=i.dateTime({width:"short"});break;case"PP":t=i.dateTime({width:"medium"});break;case"PPP":t=i.dateTime({width:"long"});break;case"PPPP":default:t=i.dateTime({width:"full"})}return t.replace("{{date}}",x(r,i)).replace("{{time}}",h(a,i))}},v=["D","DD"],p=["YY","YYYY"];function T(e){return-1!==v.indexOf(e)}function z(e){return-1!==p.indexOf(e)}function f(e,i,t){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(e){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.width?String(i.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}var S={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},G={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function W(e){return function(i,t){var n;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,a=null!=t&&t.width?String(t.width):r;n=e.formattingValues[a]||e.formattingValues[r]}else{var o=e.defaultWidth,s=null!=t&&t.width?String(t.width):e.defaultWidth;n=e.values[s]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(i):i]}}function Y(e){return function(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=i.match(r);if(!a)return null;var o,s=a[0],I=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(I)?Q(I,(function(e){return e.test(s)})):E(I,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(M):M,o=t.valueCallback?t.valueCallback(o):o;var u=i.slice(s.length);return{value:o,rest:u}}}function E(e,i){for(var t in e)if(e.hasOwnProperty(t)&&i(e[t]))return t}function Q(e,i){for(var t=0;t<e.length;t++)if(i(e[t]))return t}var k,X={code:"en-US",formatDistance:function(e,i,t){var n,r=Z[e];return n="string"==typeof r?r:1===i?r.one:r.other.replace("{{count}}",i.toString()),null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n},formatLong:S,formatRelative:function(e){return G[e]},localize:{ordinalNumber:function(e){var i=Number(e),t=i%100;if(t>20||t<10)switch(t%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:W({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:W({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:W({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:W({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:W({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(k={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.match(k.matchPattern);if(!t)return null;var n=t[0],r=e.match(k.parsePattern);if(!r)return null;var a=k.valueCallback?k.valueCallback(r[0]):r[0];a=i.valueCallback?i.valueCallback(a):a;var o=e.slice(n.length);return{value:a,rest:o}}),era:Y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V=/^'([^]*?)'?$/,U=/''/g,J=/[a-zA-Z]/;function O(e){var i=e.match(V);return i?i[1].replace(U,"'"):e}const H=["ro","en"],F={en:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},"zh-hk":{redeem:"兑奖",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"明细",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},de:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},it:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},fr:{redeem:"Redeem",expireOn:"Expire on ",pointsToBeExpired:"${expirationPoints} points to expire in ${expireDay} days",pointsToBeExpiredDay:"${expirationPoints} points to expire in ${expireDay} day",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",tipsForNextLevel:"Need ${pointsToReach} to reach ${levelName}",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions"},es:{redeem:"Redeem"},tr:{redeem:"Redeem"},ru:{redeem:"Redeem"},ro:{redeem:"Redeem"},hr:{redeem:"Otkupiti",expireOn:"Istječe",pointsToBeExpired:"${expirationPoints} bodova ističe za ${expireDay} dana",tipsForNextLevel:"Trebate ${pointsToReach} da dosegnete razinu ${levelName}",spendablePoints:"Bodovi za potrošit:",details:"Detalji",xp:"XP"},hu:{redeem:"Redeem"},pl:{redeem:"Redeem"},pt:{redeem:"Redeem"},sl:{redeem:"Redeem"},sr:{redeem:"Redeem"}},$=(e,i)=>{const t=i;return F[void 0!==t&&H.includes(t)?t:"en"][e]},K=(e,i)=>{const t=i.lang;let n=F[void 0!==t&&H.includes(t)?t:"en"][e];return i?(Object.keys(i).forEach((e=>{n=n.replace(new RegExp("\\${"+e+"}","gm"),i[e])})),n):F[void 0!==t&&H.includes(t)?t:"en"][e]},q=()=>e("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgIC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cCBzdG9wLWNvbG9yPSIjOTQ2QUQ3Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VGQUJFQiIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),_=({loyaltyPoints:i,spendablePoints:t,pointExpireString:n,language:r})=>e("div",{class:"PointsInfo"},i&&e("div",{class:"Points"},i," ",e("sub",{class:"XP"},$("xp",r))),t&&e("div",{class:"Points"},t," ",e("sub",{class:"XP"},$("sp",r))),n&&e("div",{class:"ExpirationPoints"},n," ")),ee=({language:i,onRedeemClick:t})=>e("div",{class:"CardCell Redeem"},e("div",{class:"RedeemButton",onClick:()=>{t()}},e("span",null,$("redeem",i)))),ie=i=>e("div",{class:"CardCell PlayerName Txt"},i.playerName),te=t=>e("div",{class:"CardCell ElevateLevel"},e("span",{class:"LevelName",title:t.level},t.level),t.expireTime&&e("div",{class:"CardCell ExpirationDate Txt"},$("expireOn",t.language),e("span",{class:"ExpireTime"},function(e,i,t){var o,s,u,d,C,c,A,l,L,m,y,j,N,x,h,v,p,Z;r(2,arguments);var P=String(i),S=I(),G=null!==(o=null!==(s=null==t?void 0:t.locale)&&void 0!==s?s:S.locale)&&void 0!==o?o:X,W=n(null!==(u=null!==(d=null!==(C=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(A=t.locale)||void 0===A||null===(l=A.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==C?C:S.firstWeekContainsDate)&&void 0!==d?d:null===(L=S.locale)||void 0===L||null===(m=L.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==u?u:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=n(null!==(y=null!==(j=null!==(N=null!==(x=null==t?void 0:t.weekStartsOn)&&void 0!==x?x:null==t||null===(h=t.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==N?N:S.weekStartsOn)&&void 0!==j?j:null===(p=S.locale)||void 0===p||null===(Z=p.options)||void 0===Z?void 0:Z.weekStartsOn)&&void 0!==y?y:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!G.localize)throw new RangeError("locale must contain localize property");if(!G.formatLong)throw new RangeError("locale must contain formatLong property");var E=a(e);if(!w(E))throw new RangeError("Invalid time value");var Q=M(E),k=g(E,Q),V={firstWeekContainsDate:W,weekStartsOn:Y,locale:G,_originalDate:E};return P.match(R).map((function(e){var i=e[0];return"p"===i||"P"===i?(0,b[i])(e,G.formatLong):e})).join("").match(B).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return O(n);var a=D[r];if(a)return null!=t&&t.useAdditionalWeekYearTokens||!z(n)||f(n,i,String(e)),null!=t&&t.useAdditionalDayOfYearTokens||!T(n)||f(n,i,String(e)),a(k,n,G.localize,V);if(r.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date(t.expireTime),t.dateFormat||"yyyy-MM-dd")),!t.hideInfo&&e("span",{class:"fa Info",style:{background:`url(${i("../static/info.svg")})`}},e("span",{class:"InfoTips",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI2IiBoZWlnaHQ9IjkyIiB2aWV3Qm94PSIwI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gMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),ne=t=>{const n=t.loyaltyIconUrl?e("img",{class:"Badge",src:t.loyaltyIconUrl}):t.hideIfNull?"":e("div",{class:"Badge"}),r=t.playerAvatarUrl||i("../static/user.svg");return e("div",{class:"PlayerAvatar",style:{position:t.onlyBadge?"":"relative"}},!t.onlyBadge&&e("img",{class:"Avatar",src:r}),n)};export{ne as P,F as T,K as a,te as b,_ as c,q as d,ie as e,ee as f,M as g,$ as h,r,a as t}
@@ -28,6 +28,7 @@ export declare class GamificationDropdown {
28
28
  isLoading: boolean;
29
29
  private stylingAppends;
30
30
  private loyaltyPoints;
31
+ el: HTMLElement;
31
32
  private stylingContainer;
32
33
  handleNewTranslations(): void;
33
34
  componentWillLoad(): Promise<any>;
@@ -36,6 +37,6 @@ export declare class GamificationDropdown {
36
37
  setClientStylingURL: () => void;
37
38
  fetchPointsData(): Promise<any>;
38
39
  handleOutsideClick: (event: MouseEvent) => void;
39
- handleDropdownClick: () => void;
40
+ handleDropdownClick: (event: MouseEvent) => void;
40
41
  render(): any;
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/gamification-dropdown",
3
- "version": "1.40.1",
3
+ "version": "1.40.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as e,h as n,g as t,c as i,a as o,F as a}from"./p-5e3064ce.js";import{r,t as l,g as s,a as h,T as d,P as c,b as v,c as p,d as g}from"./p-2d5bddc0.js";const f=["de","en","hr"];let m={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const w=e=>new Promise((n=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((n=>{for(let t in e[n])m[n][t]=e[n][t]})),n(!0)}))})),x=(e,n,t)=>{const i=n;let o=m[void 0!==i&&f.includes(i)?i:"en"][e];if(void 0!==t)for(const[e,n]of Object.entries(t.values)){const t=new RegExp(`{${e}}`,"g");o=o.replace(t,n)}return o},u=class{constructor(n){e(this,n),this.language="en",this.session="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isLoading=!1,this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),n=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(n)}),1)})).catch((e=>{console.log("error ",e)}))},this.handleOutsideClick=e=>{const n=document.querySelector("gamification-dropdown");n&&!n.contains(e.target)&&(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=()=>{this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}}handleNewTranslations(){this.isLoading=!0,w(this.translationUrl).then((()=>{this.isLoading=!1}))}async componentWillLoad(){if(this.translationUrl.length>2&&await w(this.translationUrl),this.endpoint&&this.language)return this.fetchPointsData()}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const n=new Headers;n.append("X-SessionId",this.session);const t={method:"GET",headers:n};return new Promise(((n,i)=>{this.isLoading=!0,fetch(e.href,t).then((e=>e.json())).then((e=>{var t,i;this.loyaltyPoints=null===(i=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.level)||void 0===i?void 0:i.loyaltyPoints,n(!0)})).catch((e=>{console.error(e),i(e)})).finally((()=>{this.isLoading=!1}))}))}render(){return this.isLoading?null:n("div",{class:"GamificationDropdownContainer"},n("button",{class:"GamificationDropdownButton "+(this.isOpen?"IsOpen":""),type:"button",onClick:this.handleDropdownClick,title:"number"==typeof this.loyaltyPoints?String(this.loyaltyPoints):x("gamificationNoPoints",this.language)},"number"==typeof this.loyaltyPoints?`${Math.floor(this.loyaltyPoints)} XP`:"...",n("span",null,n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},n("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&n("div",{class:"GamificationDropdown"},n("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling})))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};u.style=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:999;overflow:hidden}.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 svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}";const y=class{constructor(n){e(this,n),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),n=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{n.innerHTML=e,setTimeout((()=>{this.el.prepend(n)}),1)})).catch((e=>{console.log("error ",e)}))}}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const i=(n=this.translationUrl,t=this.targetTranslations,new Promise((e=>{fetch(n).then((e=>e.json())).then((n=>{Object.keys(n).forEach((e=>{t[e]=t[e]?t[e]:{};for(let i in n[e])t[e][i]=n[e][i]})),e(!0)}))})));e.push(i)}var n,t;return await Promise.all(e)}render(){return n("div",{class:"StyleShell"},n("slot",{name:"mainContent"}))}get el(){return t(this)}};function b(e){r(1,arguments);var n=l(e);return n.setHours(0,0,0,0),n}function L(e,n){return r(2,arguments),l(e).getTime()-l(n).getTime()}y.style=":host{display:block}";var I={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function E(e){return e?I[e]:I.trunc}const C=class{constructor(n){e(this,n),this.playerElevateLeveLoaded=i(this,"playerElevateLeveLoaded",7)}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise(((n,t)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,n(!0)})).catch((e=>{t(e)}))))}calcuatePointsToBeExpired(e){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;e.aboutToExpire.sort(((e,n)=>function(e,n){r(2,arguments);var t=l(e),i=l(n);return t.getTime()<i.getTime()}(new Date(e.expireTime),new Date(n.expireTime))?-1:1));const t=e.aboutToExpire[0],i=function(e,n){r(2,arguments);var t=b(e),i=b(n),o=t.getTime()-s(t),a=i.getTime()-s(i);return Math.round((o-a)/864e5)}(new Date(t.expireTime),new Date);let o=0,a=0===i?"pointsToBeExpiredDay":"pointsToBeExpired";return 0==i&&(o=function(e,n,t){r(2,arguments);var i=L(e,n)/36e5;return E(null==t?void 0:t.roundingMethod)(i)}(new Date(t.expireTime),new Date),a=o>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour"),n=h(a,{expirationPoints:t.points,expireDay:i}),n}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((n,t)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var i,o,a;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void t(!0);let r=e.data;this.playerElevateLevel=r.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(i=r.spendableWallet)||void 0===i?void 0:i.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const l=null===(o=e.data.spendableWallet)||void 0===o?void 0:o.total,s=null===(a=e.data.loyaltyWallet)||void 0===a?void 0:a.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:l,loyaltyWalletTotal:s});let h=this.calcuatePointsToBeExpired(l),d=this.calcuatePointsToBeExpired(s);(h||d)&&this.playerElevateLeveLoaded.emit({pointExpireString:h,xpExpireString:d}),n(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),t(!0)}))))}setLoyaltyProgress(e){!function(e,n){const t=e.querySelector("#total_level"),i=t.getBBox().width,o=n>1?1:n,a=o*i-17<0?0:o*i-17,r=e.querySelector("#current_level"),l=e.querySelector("#filter_current_level"),s=e.querySelector("#circle_current_level");t.setAttribute("viewbox",`0 0 ${a} 28`),r.setAttribute("width",`${a}`),s.setAttribute("cx",`${a<6.5?6.5:a}`),l.setAttribute("x",""+(a-8));const h=e.querySelector("#lock"),d=e.querySelector("#filter_heart_ball"),c=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),p=e.querySelector("#filter_lock"),g=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),m=e.querySelector("#lock_box"),w=e.querySelector("#heart_box"),x=i-10;h.setAttribute("cx",`${x}`),f.setAttribute("x1",`${x}`),f.setAttribute("x2",`${x}`),g.setAttribute("x1",""+(x-6)),g.setAttribute("x2",""+(x-6+11.2)),p.setAttribute("x",""+(x-6)),v.setAttribute("x",""+(x-6-2)),c.setAttribute("x",""+(x-6-2-2)),d.setAttribute("x",""+(x-6-2-2-4)),m.setAttribute("x",""+(x-6)),w.setAttribute("x",""+(x-6)),t.parentElement.style.opacity="1"}(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout((()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)}),80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then((e=>{if(console.log("elevate-init",e),this.initLevelProgressbar(),!this.levels)return;this.levels.sort(((e,n)=>e.firstEntryPoints>n.firstEntryPoints?1:-1));const n=this.playerElevateLevel.loyaltyPoints;let t=0;this.levels.forEach(((e,i)=>{n>e.firstEntryPoints&&(t=i)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:t})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return t(this)}static get watchers(){return{params:["onParamsChanged"]}}};C.style=':host {\n display: block;\n width: 360px;\n height: 230px;\n}\n\n.ElevateCardWrapper {\n contain: layout inline-size;\n width: 100%;\n height: fit-content;\n min-height: 218px;\n}\n\n.Outer {\n container-type: inline-size;\n font-size: 12px;\n background-size: cover;\n background-repeat: no-repeat;\n line-height: initial;\n width: 100%;\n height: 100%;\n}\n\n.Dark {\n color: var(--emfe-w-color-gray150, #efefef);\n}\n\n.Light {\n color: var(--emfe-w-color-black, #0e0e0e);\n}\n\n@container (min-width: 381px) {\n .Outer {\n background-size: cover;\n }\n .Outer .OuterCover {\n min-height: 190px;\n }\n}\n@container (min-width: 260px) {\n .Outer {\n background-size: contain;\n }\n}\n.OuterCover {\n width: 100%;\n height: 100%;\n content: "";\n background-repeat: no-repeat;\n background-size: cover;\n border-radius: 15px;\n}\n\n.Inner {\n display: flex;\n flex-direction: column;\n min-height: 158px;\n}\n.Inner .Content {\n padding: 15px;\n flex-wrap: wrap;\n gap: 8px;\n}\n.Inner .Row {\n display: flex;\n flex-direction: row;\n}\n.Inner .CardCell {\n display: flex;\n}\n.Inner .LevelProgress svg {\n transition: opacity 0.4s;\n}\n.Inner .LevelInfo {\n display: flex;\n flex-direction: column;\n}\n.Inner .LevelInfo .ElevateLevel .LevelName {\n height: 28px;\n border-radius: 5px;\n line-height: 28px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level0-bg0, #E2792C) 0%, var(--emfe-w-elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);\n}\n.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level1-bg0, #BEBFED) 0%, var(--emfe-w-elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);\n}\n.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level2-bg0, #FCC410) 0%, var(--emfe-w-elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);\n}\n.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level3-bg0, #B1A2DB) 0%, var(--emfe-w-elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {\n box-shadow: -2px -2px 7px 0px var(--emfe-w-elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emfe-w-elevate-color-level4-bg0, #B1A2DB) 0%, var(--emfe-w-elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);\n}\n.Inner .LevelInfo .ElevateLevel {\n display: flex;\n}\n.Inner .LevelInfo {\n flex: 1;\n flex-grow: 1;\n min-width: 150px;\n}\n.Inner .PlayerImg {\n width: 29%;\n margin: auto;\n max-width: 100px;\n min-width: 30px;\n order: 0;\n}\n.Inner .PlayerAvatar {\n max-width: 100px;\n flex-basis: 100px;\n height: auto;\n margin: auto;\n padding-top: 10px;\n}\n.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {\n width: 100%;\n height: 100%;\n}\n.Inner .PlayerAvatar .Avatar {\n border-radius: 50%;\n background-size: contain;\n background-repeat: no-repeat;\n}\n.Inner .ElevateLevel .ExpirationDate {\n max-width: 138px;\n min-width: 118px;\n}\n.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {\n text-transform: capitalize;\n width: 100%;\n}\n.Inner .PlayerName {\n font-size: 16px;\n}\n.Inner .Row .PointsInfo {\n display: table;\n font-weight: 600;\n}\n.Inner .Row .Redeem {\n justify-content: flex-end;\n margin-left: auto;\n}\n.Inner .Row .Redeem:hover {\n color: var(--emfe-w-elevate-color-redeem-hover, #00ABA4);\n cursor: pointer;\n}\n.Inner .Row .RedeemButton:hover span {\n color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);\n font-weight: bold;\n}\n.Inner .Row .RedeemButton {\n width: 95px;\n height: 35px;\n display: flex;\n align-items: center;\n border-radius: 10px;\n background: var(--emfe-w-elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);\n box-shadow: 0px 4px 4px 0px #00000040;\n}\n.Inner .Row .RedeemButton span {\n color: var(--emfe-w-color-white, #fff);\n line-height: 18px;\n font-size: 15px;\n text-align: center;\n width: 100%;\n}\n.Inner .Row .Points {\n font-size: large;\n vertical-align: middle;\n}\n.Inner .Row .Points .XP {\n font-size: x-small;\n}\n.Inner .Row .ExpirationPoints {\n font-size: small;\n text-align: right;\n font-weight: bold;\n color: var(--emfe-w-color-red, #9e595f);\n}';const P=class{constructor(n){e(this,n),this.theme="Dark",this.language="en",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelTips(){var e;let n=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&n){const e=(n.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return h("tipsForNextLevel",{pointsToReach:e,levelName:n.name})}return""}render(){const e=o("../static/card-ground.svg"),t=o("../static/card-ground-over.svg");return n("div",{class:`ElevateCardWrapper ${this.theme}`},n("div",{class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},n("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:d,translationUrl:this.translationUrl}),n("player-elevate-card-data",{params:this.paramProxy}),n("div",{class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},n("div",{class:"Content Row"},this.playerElevateLevel&&n(a,null,n("div",{class:"PlayerImg"},n(c,{onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),n("div",{class:`LevelInfo ${this.playerElevateLevel.name}`},n(v,{hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),n(p,{loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),this.pointExpireString&&n("div",{class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),n(g,null),n("div",{class:"NextLevelTip"},this.getNextLevelTips())))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};P.style=":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}";export{u as gamification_dropdown,y as general_styling_wrapper,C as player_elevate_card_data,P as player_elevate_loyaltycard}
@@ -1 +0,0 @@
1
- let t,e,n,l=!1,o=!1,s=!1,r=!1,i=!1;const c="undefined"!=typeof window?window:{},f=c.document||{head:{}},a={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},u=t=>Promise.resolve(t),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),d=(t,e,n)=>{n&&n.map((([n,l,o])=>{const s=m(t,n),r=h(e,o),i=p(n);a.ael(s,l,r,i),(e.o=e.o||[]).push((()=>a.rel(s,l,r,i)))}))},h=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){ut(t)}},m=(t,e)=>8&e?c:t,p=t=>0!=(2&t),y=new WeakMap,b=t=>"sc-"+t.$,w={},g=t=>"object"==(t=typeof t)||"function"===t,v=(t,e,...n)=>{let l=null,o=null,s=!1,r=!1,i=[];const c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!g(l))&&(l+=""),s&&r?i[i.length-1].h+=l:i.push(s?j(null,l):l),r=s)};if(c(n),e){e.name&&(o=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,i,k);const f=j(t,null);return f.m=e,i.length>0&&(f.p=i),f.g=o,f},j=(t,e)=>({t:0,v:t,h:e,j:null,p:null,m:null,g:null}),S={},k={forEach:(t,e)=>t.map(O).forEach(e),map:(t,e)=>t.map(O).map(e).map(M)},O=t=>({vattrs:t.m,vchildren:t.p,vkey:t.S,vname:t.g,vtag:t.v,vtext:t.h}),M=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),v(t.vtag,e,...t.vchildren||[])}const e=j(t.vtag,t.vtext);return e.m=t.vattrs,e.p=t.vchildren,e.S=t.vkey,e.g=t.vname,e},R=(t,e,n,l,o,s)=>{if(n!==l){let r=at(t,e),i=e.toLowerCase();if("class"===e){const e=t.classList,o=x(n),s=x(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(r||"o"!==e[0]||"n"!==e[1]){const i=g(l);if((r||i&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{let o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||o)&&!i&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):at(c,i)?i.slice(2):i[2]+e.slice(3),n&&a.rel(t,e,n,!1),l&&a.ael(t,e,l,!1)}},C=/\s/,x=t=>t?t.split(C):[],T=(t,e,n,l)=>{const o=11===e.j.nodeType&&e.j.host?e.j.host:e.j,s=t&&t.m||w,r=e.m||w;for(l in s)l in r||R(o,l,s[l],void 0,n,e.t);for(l in r)R(o,l,s[l],r[l],n,e.t)},E=(o,i,c,a)=>{let u,$,d,h=i.p[c],m=0;if(l||(s=!0,"slot"===h.v&&(t&&a.classList.add(t+"-s"),h.t|=h.p?2:1)),null!==h.h)u=h.j=f.createTextNode(h.h);else if(1&h.t)u=h.j=f.createTextNode("");else{if(r||(r="svg"===h.v),u=h.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.v),r&&"foreignObject"===h.v&&(r=!1),T(null,h,r),null!=t&&u["s-si"]!==t&&u.classList.add(u["s-si"]=t),h.p)for(m=0;m<h.p.length;++m)$=E(o,h,m,u),$&&u.appendChild($);"svg"===h.v?r=!1:"foreignObject"===u.tagName&&(r=!0)}return u["s-hn"]=n,3&h.t&&(u["s-sr"]=!0,u["s-cr"]=e,u["s-sn"]=h.g||"",d=o&&o.p&&o.p[c],d&&d.v===h.v&&o.j&&L(o.j,!1)),u},L=(t,e)=>{a.t|=1;const l=t.childNodes;for(let t=l.length-1;t>=0;t--){const o=l[t];o["s-hn"]!==n&&o["s-ol"]&&(A(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),e&&L(o,e)}a.t&=-2},N=(t,e,l,o,s,r)=>{let i,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=E(null,l,s,t),i&&(o[s].j=i,c.insertBefore(i,W(e))))},P=(t,e,n,l,s)=>{for(;e<=n;++e)(l=t[e])&&(o=!0,(s=l.j)["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},U=(t,e)=>t.v===e.v&&("slot"!==t.v||t.g===e.g),W=t=>t&&t["s-ol"]||t,A=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,F=(t,e)=>{const n=e.j=t.j,l=t.p,o=e.p,s=e.v,i=e.h;let c;null===i?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||T(t,e,r),null!==l&&null!==o?((t,e,n,l)=>{let o,s=0,r=0,i=e.length-1,c=e[0],f=e[i],a=l.length-1,u=l[0],$=l[a];for(;s<=i&&r<=a;)null==c?c=e[++s]:null==f?f=e[--i]:null==u?u=l[++r]:null==$?$=l[--a]:U(c,u)?(F(c,u),c=e[++s],u=l[++r]):U(f,$)?(F(f,$),f=e[--i],$=l[--a]):U(c,$)?("slot"!==c.v&&"slot"!==$.v||L(c.j.parentNode,!1),F(c,$),t.insertBefore(c.j,f.j.nextSibling),c=e[++s],$=l[--a]):U(f,u)?("slot"!==c.v&&"slot"!==$.v||L(f.j.parentNode,!1),F(f,u),t.insertBefore(f.j,c.j),f=e[--i],u=l[++r]):(o=E(e&&e[r],n,r,t),u=l[++r],o&&A(c.j).insertBefore(o,W(c.j)));s>i?N(t,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&P(e,s,i)})(n,l,e,o):null!==o?(null!==t.h&&(n.textContent=""),N(n,null,e,o,0,o.length-1)):null!==l&&P(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:t.h!==i&&(n.data=i)},q=t=>{let e,n,l,o,s,r,i=t.childNodes;for(n=0,l=i.length;n<l;n++)if(e=i[n],1===e.nodeType){if(e["s-sr"])for(s=e["s-sn"],e.hidden=!1,o=0;o<l;o++)if(r=i[o].nodeType,i[o]["s-hn"]!==e["s-hn"]||""!==s){if(1===r&&s===i[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===r||3===r&&""!==i[o].textContent.trim()){e.hidden=!0;break}q(e)}},D=[],H=t=>{let e,n,l,s,r,i,c=0,f=t.childNodes,a=f.length;for(;c<a;c++){if(e=f[c],e["s-sr"]&&(n=e["s-cr"])&&n.parentNode)for(l=n.parentNode.childNodes,s=e["s-sn"],i=l.length-1;i>=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(V(n,s)?(r=D.find((t=>t.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.O=e:D.push({O:e,k:n}),n["s-sr"]&&D.map((t=>{V(t.k,n["s-sn"])&&(r=D.find((t=>t.k===n)),r&&!t.O&&(t.O=r.O))}))):D.some((t=>t.k===n))||D.push({k:n}));1===e.nodeType&&H(e)}},V=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,_=t=>it(t).M,z=(t,e,n)=>{const l=_(t);return{emit:t=>B(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},B=(t,e,n)=>{const l=a.ce(e,n);return t.dispatchEvent(l),l},G=(t,e)=>{e&&!t.R&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.R=e)))},I=(t,e)=>{if(t.t|=16,!(4&t.t))return G(t,t.C),vt((()=>J(t,e)));t.t|=512},J=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>Z(n,t,e))),t.u=null),l=Z(n,"componentWillLoad")),tt(l,(()=>K(t,n,e)))},K=async(t,e,n)=>{const l=t.M,o=l["s-rc"];n&&(t=>{const e=t.T,n=t.M,l=e.t,o=((t,e)=>{let n=b(e),l=ht.get(n);if(t=11===t.nodeType?t:f,l)if("string"==typeof l){let e,o=y.get(t=t.head||t);o||y.set(t,o=new Set),o.has(n)||(e=f.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);Q(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>X(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},Q=(r,i)=>{try{i=i.render&&i.render(),r.t&=-17,r.t|=2,((r,i)=>{const c=r.M,u=r.T,$=r.L||j(null,null),d=(t=>t&&t.v===S)(i)?i:v(null,null,i);if(n=c.tagName,u.N&&(d.m=d.m||{},u.N.map((([t,e])=>d.m[e]=c[t]))),d.v=null,d.t|=4,r.L=d,d.j=$.j=c.shadowRoot||c,t=c["s-sc"],e=c["s-cr"],l=0!=(1&u.t),o=!1,F($,d),a.t|=1,s){let t,e,n,l,o,s;H(d.j);let r=0;for(;r<D.length;r++)t=D[r],e=t.k,e["s-ol"]||(n=f.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(r=0;r<D.length;r++)if(t=D[r],e=t.k,t.O){for(l=t.O.parentNode,o=t.O.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===e["s-sn"]&&l===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&l!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),l.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}o&&q(d.j),a.t&=-2,D.length=0})(r,i)}catch(t){ut(t,r.M)}return null},X=t=>{const e=t.M,n=t.C;Z(t.i,"componentDidRender"),64&t.t||(t.t|=64,et(e),t.P(e),n||Y()),t.R&&(t.R(),t.R=void 0),512&t.t&&gt((()=>I(t,!1))),t.t&=-517},Y=()=>{et(f.documentElement),gt((()=>B(c,"appload",{detail:{namespace:"gamification-dropdown"}})))},Z=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){ut(t)}},tt=(t,e)=>t&&t.then?t.then(e):e(),et=t=>t.classList.add("hydrated"),nt=(t,e,n)=>{if(e.U){t.watchers&&(e.W=t.watchers);const l=Object.entries(e.U),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>it(this).A.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=it(t),s=o.M,r=o.A.get(e),i=o.t,c=o.i;if(n=((t,e)=>null==t||g(t)?t:1&e?t+"":t)(n,l.U[e][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.A.set(e,n),c)){if(l.W&&128&i){const t=l.W[e];t&&t.map((t=>{try{c[t](n,r,e)}catch(t){ut(t,s)}}))}2==(18&i)&&I(o,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(t,e,l){a.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(o.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const o=l[1]||t;return n.set(o,t),512&l[0]&&e.N.push([t,o]),o}))}}return t},lt=(t,e={})=>{const n=[],l=e.exclude||[],o=c.customElements,s=f.head,r=s.querySelector("meta[charset]"),i=f.createElement("style"),u=[];let h,m=!0;Object.assign(a,e),a.l=new URL(e.resourcesUrl||"./",f.baseURI).href,t.map((t=>{t[1].map((e=>{const s={t:e[0],$:e[1],U:e[2],F:e[3]};s.U=e[2],s.F=e[3],s.N=[],s.W={};const r=s.$,i=class extends HTMLElement{constructor(t){super(t),ft(t=this,s),1&s.t&&t.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?u.push(this):a.jmp((()=>(t=>{if(0==(1&a.t)){const e=it(t),n=e.T,l=()=>{};if(1&e.t)d(t,e,n.F);else{e.t|=1,12&n.t&&(t=>{const e=t["s-cr"]=f.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(e,e.C=n);break}}n.U&&Object.entries(n.U).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,o)=>{if(0==(32&e.t)){{if(e.t|=32,(o=dt(n)).then){const t=()=>{};o=await o,t()}o.isProxied||(n.W=o.watchers,nt(o,n,2),o.isProxied=!0);const t=()=>{};e.t|=8;try{new o(e)}catch(t){ut(t)}e.t&=-9,e.t|=128,t()}if(o.style){let t=o.style;const e=b(n);if(!ht.has(e)){const l=()=>{};((t,e,n)=>{let l=ht.get(t);$&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ht.set(t,l)})(e,t,!!(1&n.t)),l()}}}const s=e.C,r=()=>I(e,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(()=>{if(0==(1&a.t)){const t=it(this);t.o&&(t.o.map((t=>t())),t.o=void 0)}})()))}componentOnReady(){return it(this).q}};s.D=t[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,nt(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),m=!1,u.length?u.map((t=>t.connectedCallback())):a.jmp((()=>h=setTimeout(Y,30)))},ot=t=>{const e=new URL(t,a.l);return e.origin!==c.location.origin?e.href:e.pathname},st=(t,e)=>e,rt=new WeakMap,it=t=>rt.get(t),ct=(t,e)=>rt.set(e.i=t,e),ft=(t,e)=>{const n={t:0,M:t,T:e,A:new Map};return n.q=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],d(t,n,e.F),rt.set(t,n)},at=(t,e)=>e in t,ut=(t,e)=>(0,console.error)(t,e),$t=new Map,dt=t=>{const e=t.$.replace(/-/g,"_"),n=t.D,l=$t.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>($t.set(n,t),t[e])),ut)},ht=new Map,mt=[],pt=[],yt=(t,e)=>n=>{t.push(n),i||(i=!0,e&&4&a.t?gt(wt):a.raf(wt))},bt=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){ut(t)}t.length=0},wt=()=>{bt(mt),bt(pt),(i=mt.length>0)&&a.raf(wt)},gt=t=>u().then(t),vt=yt(pt,!0);export{st as F,ot as a,lt as b,z as c,_ as g,v as h,u as p,ct as r}