@everymatrix/player-elevate-points-history 1.0.69

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 (84) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +1080 -0
  3. package/dist/cjs/index-c769d3e9.js +1651 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/player-elevate-card-items-e7f7d092.js +2364 -0
  7. package/dist/cjs/player-elevate-card.cjs.entry.js +74 -0
  8. package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +81 -0
  9. package/dist/cjs/player-elevate-points-history.cjs.js +25 -0
  10. package/dist/collection/collection-manifest.json +40 -0
  11. package/dist/collection/components/player-elevate-points-history/index.js +1 -0
  12. package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.css +182 -0
  13. package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +403 -0
  14. package/dist/collection/index.js +1 -0
  15. package/dist/collection/renders/renderTabs.js +9 -0
  16. package/dist/collection/renders/renderTopBar.js +4 -0
  17. package/dist/collection/renders/renderWallets.js +33 -0
  18. package/dist/collection/static/back.svg +3 -0
  19. package/dist/collection/static/menu.svg +5 -0
  20. package/dist/collection/utils/business.js +17 -0
  21. package/dist/collection/utils/fetch.js +17 -0
  22. package/dist/collection/utils/translation.js +36 -0
  23. package/dist/collection/utils/types.js +6 -0
  24. package/dist/collection/utils/util.js +16 -0
  25. package/dist/collection/utils/utils.js +3 -0
  26. package/dist/esm/app-globals-0f993ce5.js +3 -0
  27. package/dist/esm/bonus-pagination-limits_6.entry.js +1071 -0
  28. package/dist/esm/index-e7bde614.js +1621 -0
  29. package/dist/esm/index.js +1 -0
  30. package/dist/esm/loader.js +11 -0
  31. package/dist/esm/player-elevate-card-items-4cabbcc6.js +2351 -0
  32. package/dist/esm/player-elevate-card.entry.js +70 -0
  33. package/dist/esm/player-elevate-loyaltycard.entry.js +77 -0
  34. package/dist/esm/player-elevate-points-history.js +20 -0
  35. package/dist/index.cjs.js +1 -0
  36. package/dist/index.js +1 -0
  37. package/dist/player-elevate-points-history/index.esm.js +0 -0
  38. package/dist/player-elevate-points-history/p-0f3449ca.entry.js +1 -0
  39. package/dist/player-elevate-points-history/p-212a0bb7.entry.js +1 -0
  40. package/dist/player-elevate-points-history/p-409b8855.entry.js +1 -0
  41. package/dist/player-elevate-points-history/p-8a361039.js +1 -0
  42. package/dist/player-elevate-points-history/p-e1255160.js +1 -0
  43. package/dist/player-elevate-points-history/p-f547f5dc.js +2 -0
  44. package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -0
  45. package/dist/static/button-default.svg +42 -0
  46. package/dist/static/button-disabled.svg +4 -0
  47. package/dist/static/button-hover.svg +4 -0
  48. package/dist/static/button-level.svg +27 -0
  49. package/dist/static/button-pressed.svg +18 -0
  50. package/dist/static/button-redeem.svg +36 -0
  51. package/dist/static/card-ground-over.png +0 -0
  52. package/dist/static/card-ground-over.svg +903 -0
  53. package/dist/static/card-ground.png +0 -0
  54. package/dist/static/card-ground.svg +34 -0
  55. package/dist/static/info.svg +4 -0
  56. package/dist/static/level-badge.png +0 -0
  57. package/dist/static/level-percent.svg +80 -0
  58. package/dist/static/tips-info.svg +21 -0
  59. package/dist/static/user.svg +3 -0
  60. package/dist/stencil.config.dev.js +17 -0
  61. package/dist/stencil.config.js +17 -0
  62. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +2 -0
  63. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +2 -0
  64. package/dist/types/components/player-elevate-points-history/index.d.ts +1 -0
  65. package/dist/types/components/player-elevate-points-history/player-elevate-points-history.d.ts +68 -0
  66. package/dist/types/components.d.ts +141 -0
  67. package/dist/types/index.d.ts +1 -0
  68. package/dist/types/renders/renderTabs.d.ts +3 -0
  69. package/dist/types/renders/renderTopBar.d.ts +3 -0
  70. package/dist/types/renders/renderWallets.d.ts +3 -0
  71. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  72. package/dist/types/utils/business.d.ts +2 -0
  73. package/dist/types/utils/fetch.d.ts +2 -0
  74. package/dist/types/utils/translation.d.ts +36 -0
  75. package/dist/types/utils/types.d.ts +42 -0
  76. package/dist/types/utils/util.d.ts +1 -0
  77. package/dist/types/utils/utils.d.ts +1 -0
  78. package/loader/cdn.js +1 -0
  79. package/loader/index.cjs.js +1 -0
  80. package/loader/index.d.ts +24 -0
  81. package/loader/index.es2017.js +1 -0
  82. package/loader/index.js +2 -0
  83. package/loader/package.json +11 -0
  84. package/package.json +33 -0
@@ -0,0 +1,70 @@
1
+ import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-e7bde614.js';
2
+ import { T as TRANSLATIONS, P as PlayerAvatar, c as PlayerPoints, d as PlayerNameDiv, e as PlayerElevateLoyaltyLevel, f as PlayerLoyaltyProcess, h as PlayerElevateCardRedeem } from './player-elevate-card-items-4cabbcc6.js';
3
+
4
+ const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emfe-w-color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
5
+ const PlayerElevateCardStyle0 = playerElevateCardCss;
6
+
7
+ const PlayerElevateCard = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.endpoint = undefined;
11
+ this.theme = 'Dark';
12
+ this.session = undefined;
13
+ this.playerAvatarUrl = undefined;
14
+ this.language = 'en';
15
+ this.playerName = undefined;
16
+ this.dateFormat = 'yyyy-MM-dd';
17
+ this.clientStyling = '';
18
+ this.clientStylingUrl = '';
19
+ this.translationUrl = '';
20
+ this.pointExpireString = undefined;
21
+ this.playerLevelFlag = 0;
22
+ this.playerElevateLevel = undefined;
23
+ this.elevateWalletTotal = undefined;
24
+ }
25
+ onSessionOrEndpointChange() {
26
+ this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
27
+ }
28
+ playerElevateLeveLoadedHandler(event) {
29
+ if (!event.detail) {
30
+ return;
31
+ }
32
+ if (event.detail['elevateLevelWalletTotal']) {
33
+ this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
34
+ }
35
+ if (event.detail['elevateLevel']) {
36
+ this.playerElevateLevel = event.detail['elevateLevel'];
37
+ }
38
+ if (event.detail['pointExpireString']) {
39
+ this.pointExpireString = event.detail.xpExpireString;
40
+ }
41
+ if (event.detail.calculatedLevelFlag) {
42
+ this.playerLevelFlag = event.detail.calculatedLevelFlag;
43
+ }
44
+ }
45
+ onRedeemClick() {
46
+ window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
47
+ }
48
+ componentWillLoad() {
49
+ this.paramProxy = {
50
+ endpoint: this.endpoint,
51
+ session: this.session,
52
+ language: this.language,
53
+ calculateLevelFlag: true,
54
+ };
55
+ }
56
+ render() {
57
+ const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
58
+ const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
59
+ return (h("div", { key: '278a328dd084ee73b2707b93a57bccae64a2c9c7', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: '68c885baf533447a7c77fd887bbec11e53768277', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: '4066253a70cdd5e712ca244a708e7c1600c83071', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: '64cda2a267c752056b3c7e3134cc324fa96bc261', params: this.paramProxy }), h("div", { key: 'c63ae83b401a35f5a78acd83dc3d7296c25141d7', class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (h(Fragment, { key: 'ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c' }, h("div", { key: 'fa1bf74f45e28318c95266cc42c54541bde92718', class: 'Content Row' }, h("div", { key: '7ede46f91bcc0d894b2b633627a4ca97d15fbe90', class: "PlayerImg" }, h(PlayerAvatar, { key: 'b6d0bac085e0178512b8a63ba8fccae7d4cc8399', playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), h(PlayerPoints, { key: '88c445dbcd7dbe426a8de18beea02aecc03e26f3', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (h("div", { key: '4d985e486ecb74a6c916b28e619de83cb3d77ac1', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), h("div", { key: '34e051ee1ff79b825fca57db958e1e5684a0aca1', class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, h(PlayerNameDiv, { key: 'fa1b1f16e0b25c6adfba4c215e4ed377e05699b2', playerName: this.playerName }), h(PlayerElevateLoyaltyLevel, { key: '6d18b1422db202363ebcd56cc56946e0e071937b', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h(PlayerLoyaltyProcess, { key: '7dae355c4a5a9e28c70dced0ac061608f1753020' }), h(PlayerElevateCardRedeem, { key: '7e5f830b612c962a828c58f20a88dc97d315c910', onRedeemClick: this.onRedeemClick, language: this.language })))))))));
60
+ }
61
+ static get assetsDirs() { return ["../static"]; }
62
+ static get watchers() { return {
63
+ "session": ["onSessionOrEndpointChange"],
64
+ "endpoint": ["onSessionOrEndpointChange"],
65
+ "language": ["onSessionOrEndpointChange"]
66
+ }; }
67
+ };
68
+ PlayerElevateCard.style = PlayerElevateCardStyle0;
69
+
70
+ export { PlayerElevateCard as player_elevate_card };
@@ -0,0 +1,77 @@
1
+ import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-e7bde614.js';
2
+ import { a as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, e as PlayerElevateLoyaltyLevel, c as PlayerPoints, f as PlayerLoyaltyProcess } from './player-elevate-card-items-4cabbcc6.js';
3
+
4
+ const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo{width:100%}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emfe-w-color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emfe-w-elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emfe-w-elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emfe-w-color-black, #000);opacity:0.8;font-weight:bold}";
5
+ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
6
+
7
+ const PlayerElevateLoyaltycard = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.endpoint = undefined;
11
+ this.theme = 'Dark';
12
+ this.session = undefined;
13
+ this.playerAvatarUrl = undefined;
14
+ this.language = 'en';
15
+ this.playerName = undefined;
16
+ this.dateFormat = 'yyyy-MM-dd';
17
+ this.clientStyling = '';
18
+ this.clientStylingUrl = '';
19
+ this.translationUrl = '';
20
+ this.pointExpireString = undefined;
21
+ this.playerElevateLevel = undefined;
22
+ this.elevateWalletTotal = undefined;
23
+ }
24
+ onSessionOrEndpointChange() {
25
+ this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
26
+ }
27
+ playerElevateLeveLoadedHandler(event) {
28
+ if (!event.detail) {
29
+ return;
30
+ }
31
+ if (event.detail['elevateLevelWalletTotal']) {
32
+ this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
33
+ }
34
+ if (event.detail['elevateLevel']) {
35
+ this.playerElevateLevel = event.detail['elevateLevel'];
36
+ }
37
+ if (event.detail['pointExpireString']) {
38
+ this.pointExpireString = event.detail.xpExpireString;
39
+ }
40
+ }
41
+ onRedeemClick() {
42
+ window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
43
+ }
44
+ componentWillLoad() {
45
+ this.paramProxy = {
46
+ endpoint: this.endpoint,
47
+ session: this.session,
48
+ language: this.language,
49
+ };
50
+ }
51
+ getNextLevelTips() {
52
+ var _a;
53
+ //need xx to reach Diamond
54
+ let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
55
+ if (this.playerElevateLevel && nextLevel) {
56
+ const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
57
+ return translateWithParams('tipsForNextLevel', {
58
+ pointsToReach,
59
+ levelName: nextLevel.name,
60
+ });
61
+ }
62
+ return '';
63
+ }
64
+ render() {
65
+ const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
66
+ const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
67
+ return (h("div", { key: 'd32d09786bf66e0abef026482e7ea04a53c051b1', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: 'dd2685eb840341b8823f24db9b72d0f6b7d340ae', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: '3e2a00d1697c89441a8254cb81c6dc72e5b9f534', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: '56221e6d50df3b09c4269000637818009807c994', params: this.paramProxy }), h("div", { key: 'f11201024b280d6beb2ce1978ebfa7f2c7c59678', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { key: '948a023268fad3945b5069686eb29312111042a2', class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, { key: 'de7c52faa07386949ce1ca728968534922e9d880' }, h("div", { key: '7c1a0c6ea5dbe7ee2375813b3819efa61e283232', class: "PlayerImg" }, h(PlayerAvatar, { key: '70ae13ee168c6de7bf4618f6ab8761462c8812b2', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { key: 'c11f916999b52e43e04ee472b0f54691012409a5', class: `LevelInfo ${this.playerElevateLevel.name}` }, h(PlayerElevateLoyaltyLevel, { key: '6aa61d117b24f9abbee9c5d33e882d6f023f205b', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h(PlayerPoints, { key: '7cc02e34d4682c25095dbf6a3077b314410d8093', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), this.pointExpireString && (h("div", { key: '793e388644891e15b32e003ac8914e57e758e86b', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), h(PlayerLoyaltyProcess, { key: 'a4f6c3b9f9cd5e8c6a025c26154702f9495bbe5b' }), h("div", { key: 'd91eda0f963ba9ffd481237f4b16bd4ef638d25e', class: "NextLevelTip" }, this.getNextLevelTips())))))))));
68
+ }
69
+ static get watchers() { return {
70
+ "session": ["onSessionOrEndpointChange"],
71
+ "endpoint": ["onSessionOrEndpointChange"],
72
+ "language": ["onSessionOrEndpointChange"]
73
+ }; }
74
+ };
75
+ PlayerElevateLoyaltycard.style = PlayerElevateLoyaltycardStyle0;
76
+
77
+ export { PlayerElevateLoyaltycard as player_elevate_loyaltycard };
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-e7bde614.js';
2
+ export { s as setNonce } from './index-e7bde614.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["bonus-pagination-limits_6",[[1,"player-elevate-points-history",{"playerAvatarUrl":[513,"player-avatar-url"],"session":[513],"endpoint":[513],"limit":[1538],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"pageLimitOptions":[1537,"page-limit-options"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"locale":[32],"type":[32],"pageSetting":[32],"pointsWallets":[32]},[[0,"reloadPageByType","reloadPageByTypeHandler"]],{"type":["walletTypeChangedHandler"],"endpoint":["updateWallets"],"language":["updateWallets"],"session":["updateWallets"]}],[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"bonus-pagination-limits",{"language":[513],"translationUrl":[513,"translation-url"],"pageLimitOptions":[513,"page-limit-options"],"limit":[1538],"pageLimits":[32]}],[0,"bonus-pagination-nav",{"total":[1538],"limit":[1538],"offset":[1538],"tableId":[1537,"table-id"],"language":[1537],"translationUrl":[513,"translation-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"displayRangeOfTotal":[1540,"display-range-of-total"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-loyaltycard",[[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]]], options);
20
+ });
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1 @@
1
+ import{r as e,a as n,h as a,F as t}from"./p-f547f5dc.js";import{T as i,P as s,c as r,d,e as c,f as o,h as l}from"./p-8a361039.js";const h=class{constructor(n){e(this,n),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerLevelFlag=0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0}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),e.detail.calculatedLevelFlag&&(this.playerLevelFlag=e.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 e=n("../static/card-ground.svg"),h=n("../static/card-ground-over.svg");return a("div",{key:"278a328dd084ee73b2707b93a57bccae64a2c9c7",class:`ElevateCardWrapper ${this.theme}`},a("div",{key:"68c885baf533447a7c77fd887bbec11e53768277",class:"Card Outer",style:{backgroundImage:`url(${e}`}},a("general-styling-wrapper",{key:"4066253a70cdd5e712ca244a708e7c1600c83071",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl}),a("player-elevate-card-data",{key:"64cda2a267c752056b3c7e3134cc324fa96bc261",params:this.paramProxy}),a("div",{key:"c63ae83b401a35f5a78acd83dc3d7296c25141d7",class:"OuterCover Inner",style:{backgroundImage:`url(${h}`}},this.playerElevateLevel&&a(t,{key:"ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c"},a("div",{key:"fa1bf74f45e28318c95266cc42c54541bde92718",class:"Content Row"},a("div",{key:"7ede46f91bcc0d894b2b633627a4ca97d15fbe90",class:"PlayerImg"},a(s,{key:"b6d0bac085e0178512b8a63ba8fccae7d4cc8399",playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),a(r,{key:"88c445dbcd7dbe426a8de18beea02aecc03e26f3",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&a("div",{key:"4d985e486ecb74a6c916b28e619de83cb3d77ac1",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),a("div",{key:"34e051ee1ff79b825fca57db958e1e5684a0aca1",class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},a(d,{key:"fa1b1f16e0b25c6adfba4c215e4ed377e05699b2",playerName:this.playerName}),a(c,{key:"6d18b1422db202363ebcd56cc56946e0e071937b",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),a(o,{key:"7dae355c4a5a9e28c70dced0ac061608f1753020"}),a(l,{key:"7e5f830b612c962a828c58f20a88dc97d315c910",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 .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}
@@ -0,0 +1 @@
1
+ import{r as e,a,h as t,F as i}from"./p-f547f5dc.js";import{a as n,T as o,P as l,e as r,c as s,f as d}from"./p-8a361039.js";const c=class{constructor(a){e(this,a),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0}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 a=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&a){const e=(a.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return n("tipsForNextLevel",{pointsToReach:e,levelName:a.name})}return""}render(){const e=a("../static/card-ground.svg"),n=a("../static/card-ground-over.svg");return t("div",{key:"d32d09786bf66e0abef026482e7ea04a53c051b1",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"dd2685eb840341b8823f24db9b72d0f6b7d340ae",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"3e2a00d1697c89441a8254cb81c6dc72e5b9f534",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:o,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"56221e6d50df3b09c4269000637818009807c994",params:this.paramProxy}),t("div",{key:"f11201024b280d6beb2ce1978ebfa7f2c7c59678",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},t("div",{key:"948a023268fad3945b5069686eb29312111042a2",class:"Content Row"},this.playerElevateLevel&&t(i,{key:"de7c52faa07386949ce1ca728968534922e9d880"},t("div",{key:"7c1a0c6ea5dbe7ee2375813b3819efa61e283232",class:"PlayerImg"},t(l,{key:"70ae13ee168c6de7bf4618f6ab8761462c8812b2",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"c11f916999b52e43e04ee472b0f54691012409a5",class:`LevelInfo ${this.playerElevateLevel.name}`},t(r,{key:"6aa61d117b24f9abbee9c5d33e882d6f023f205b",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t(s,{key:"7cc02e34d4682c25095dbf6a3077b314410d8093",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),this.pointExpireString&&t("div",{key:"793e388644891e15b32e003ac8914e57e758e86b",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),t(d,{key:"a4f6c3b9f9cd5e8c6a025c26154702f9495bbe5b"}),t("div",{key:"d91eda0f963ba9ffd481237f4b16bd4ef638d25e",class:"NextLevelTip"},this.getNextLevelTips())))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};c.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{c as player_elevate_loyaltycard}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,g as n,a,F as s}from"./p-f547f5dc.js";import{r,t as o,g as l,a as c,T as h,P as d,b as g,c as p}from"./p-8a361039.js";const f=["pt-br","en","es-mx","hu","hr"],u={en:{pageLimitLabel:"Show"},hu:{pageLimitLabel:"Show"},hr:{pageLimitLabel:"Show"},"pt-br":{pageLimitLabel:"Show"},"es-mx":{pageLimitLabel:"Show"}},v=class{constructor(i){e(this,i),this.pageLimitChanged=t(this,"pageLimitChanged",7),this.language="en",this.translationUrl="",this.pageLimitOptions=void 0,this.limit=10,this.pageLimits=[10,25,50]}onPageLimitClicked(e){this.limit=e,this.pageLimitChanged.emit({limit:this.limit})}componentWillLoad(){if(this.pageLimitOptions)try{this.pageLimits=this.pageLimitOptions.split(",").map((e=>parseInt(e))),this.pageLimits.includes(this.limit)||(this.limit=this.pageLimits[0])}catch(e){console.error("Error when parse PageLimitOptions",e)}}renderStylingWrapper(){return i("general-styling-wrapper",{targetTranslations:u,translationUrl:this.translationUrl})}render(){return i("div",{key:"57f5e61ee287f72d0427a2e4f646e37c6b9358b9",class:"PaginationWrapper"},i("span",{key:"5f82b19fcf269086659b3faa475d9967b2af57fa",class:"NoOfItemsToDisplayMessage"},(()=>{const e=this.language;return u[void 0!==e&&f.includes(e)?e:"en"].pageLimitLabel})()),i("ul",{key:"559c2d5378a352691583567579a8e681d092ddd3",class:"PaginationArea"},this.pageLimits.map((e=>i("li",{class:(this.limit==e?"Active":"")+" PageSize Item",onClick:()=>{this.onPageLimitClicked(e)}},e)))),i("general-styling-wrapper",{key:"a8b9632e7421318e330f33b9c1cc9eb7121e35e9",targetTranslations:u,translationUrl:this.translationUrl}),this.renderStylingWrapper())}};v.style=":host{display:block}.NoOfItemsToDisplayMessage{display:inline-block;margin:0.1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--emfe-w-color-primary, #191a19);line-height:1.8}.PaginationWrapper{display:flex;flex-direction:row}ul.PaginationArea{margin-block:5px;display:flex;flex-direction:row;padding:0px}ul.PaginationArea li.Item.Active:hover{color:var(--emfe-w-color-primary, #eaefea);background-color:var(--emfe-w-color-secondary, #191a19)}ul.PaginationArea li.Item.Active,ul.PaginationArea li.Item:hover{background-color:var(--emfe-w-color-primary, rgba(169, 171, 169, 0.7));font-weight:bold;border-radius:0.3rem}ul.PaginationArea li.Item{padding-inline-start:0px;list-style:none;padding:5px 6px;margin:2px;cursor:pointer;display:inline-block}";const b=["pt-br","en","es-mx","hu","hr"],m={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},x=(e,t,i)=>{const n=t;let a=m[void 0!==n&&b.includes(n)?n:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");a=a.replace(i,t)}return a},y=class{constructor(i){e(this,i),this.reloadPageEmitter=t(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1}pageLimitChangedHandler(e){this.limit=e.detail.limit?e.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==e.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(e){"..."==e||0==e||parseInt(e.toString(),10)>this.endPageIndex+1||(this.currentPage=e,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return i("ul",{class:"PaginationArea"},this.pagesArray.map((e=>i("li",{class:"PageItem "+(this.currentPage==e?"Active":""),onClick:()=>{this.goTo(e)}},e))))}renderStylingWrapper(){return i("general-styling-wrapper",{targetTranslations:m,translationUrl:this.translationUrl})}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=[],this.endPageIndex<5?this.pagesArray=Array.from({length:this.endPageIndex+1},((e,t)=>t+1)):1==this.currentPage||2==this.currentPage?(this.pagesArray=Array.from({length:4},((e,t)=>t+1)),this.pagesArray.push("...")):this.currentPage>=3&&this.endPageIndex-this.currentPage>=2?(this.pagesArray=Array.from({length:3},((e,t)=>this.currentPage+t-1)),this.pagesArray.push("..."),this.pagesArray.unshift("...")):this.endPageIndex-this.currentPage<3&&(this.pagesArray=Array.from({length:4},((e,t)=>this.endPageIndex-2+t)),this.pagesArray.unshift("..."))}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return i("div",{key:"a6817c12f1e1e9960f8e91cfd5c5e2fa1ea72f7f",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&i("span",{key:"8f7a16c5835147e2a83808f882a66a2463e3998e",class:"PageOfMessage"},x("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),i("div",{key:"ddc20a86777c2fde667ad8b75ab86f3bc72ccfdb",class:"PageNavigation"},this.arrowsActive&&i("div",{key:"ce2a45b8c0d6e32cfa3f1c5cc8b3c9ac58acc409",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},x("firstPage",this.language)),this.secondaryArrowsActive&&i("span",{key:"82dce028e4283dcac511b3b62823e87f2085f4b5",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},x("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&i("span",{key:"a6ed748ce3e2555ac3d9d4bae174ad5bad0fabec",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},x("nextPage",this.language)),this.arrowsActive&&i("div",{key:"60a81a86f11e2bb07ee93b61d6f367a11b0e2b6c",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",x("lastPage",this.language)," "),this.renderStylingWrapper()))}};y.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emfe-w-color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emfe-w-color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emfe-w-color-primary, #f5f1f1);background-color:var(--emfe-w-color-secondary, #8c8989);border-radius:0.3rem}";const w=class{constructor(t){e(this,t),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),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.el.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const n=(t=this.translationUrl,i=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]=i[e]?i[e]:{};for(let n in t[e])i[e][n]=t[e][n]})),e(!0)}))})));e.push(n)}var t,i;return await Promise.all(e)}render(){return i("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},i("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return n(this)}};function P(e){r(1,arguments);var t=o(e);return t.setHours(0,0,0,0),t}w.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)}};const C=class{constructor(i){e(this,i),this.playerElevateLeveLoaded=t(this,"playerElevateLeveLoaded",7),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}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(((t,i)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,t(!0)})).catch((e=>{i(e)}))))}calcuatePointsToBeExpired(e){let t="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return t;e.aboutToExpire.sort(((e,t)=>function(e,t){r(2,arguments);var i=o(e),n=o(t);return i.getTime()<n.getTime()}(new Date(e.expireTime),new Date(t.expireTime))?-1:1));const i=e.aboutToExpire[0],n=function(e,t){r(2,arguments);var i=P(e),n=P(t),a=i.getTime()-l(i),s=n.getTime()-l(n);return Math.round((a-s)/864e5)}(new Date(i.expireTime),new Date);let a=0,s=0===n?"pointsToBeExpiredDay":"pointsToBeExpired";return 0==n&&(a=function(e,t,i){r(2,arguments);var n,a=function(e,t){return r(2,arguments),o(e).getTime()-o(t).getTime()}(e,t)/36e5;return((n=null==i?void 0:i.roundingMethod)?I[n]:I.trunc)(a)}(new Date(i.expireTime),new Date),s=a>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour"),t=c(s,{expirationPoints:i.points,expireDay:n}),t}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((t,i)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var n,a,s;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void i(!0);let r=e.data;this.playerElevateLevel=r.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(n=r.spendableWallet)||void 0===n?void 0:n.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const o=null===(a=e.data.spendableWallet)||void 0===a?void 0:a.total,l=null===(s=e.data.loyaltyWallet)||void 0===s?void 0:s.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:o,loyaltyWalletTotal:l});let c=this.calcuatePointsToBeExpired(o),h=this.calcuatePointsToBeExpired(l);(c||h)&&this.playerElevateLeveLoaded.emit({pointExpireString:c,xpExpireString:h}),t(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),i(!0)}))))}setLoyaltyProgress(e){!function(e,t){const i=e.querySelector("#total_level"),n=i.getBBox().width,a=t>1?1:t,s=a*n-17<0?0:a*n-17,r=e.querySelector("#current_level"),o=e.querySelector("#filter_current_level"),l=e.querySelector("#circle_current_level");i.setAttribute("viewbox",`0 0 ${s} 28`),r.setAttribute("width",`${s}`),l.setAttribute("cx",`${s<6.5?6.5:s}`),o.setAttribute("x",""+(s-8));const c=e.querySelector("#lock"),h=e.querySelector("#filter_heart_ball"),d=e.querySelector("#filter_ball"),g=e.querySelector("#filter_heart"),p=e.querySelector("#filter_lock"),f=e.querySelector("#paint0_linear_ball"),u=e.querySelector("#paint1_linear_lock"),v=e.querySelector("#lock_box"),b=e.querySelector("#heart_box"),m=n-10;c.setAttribute("cx",`${m}`),u.setAttribute("x1",`${m}`),u.setAttribute("x2",`${m}`),f.setAttribute("x1",""+(m-6)),f.setAttribute("x2",""+(m-6+11.2)),p.setAttribute("x",""+(m-6)),g.setAttribute("x",""+(m-6-2)),d.setAttribute("x",""+(m-6-2-2)),h.setAttribute("x",""+(m-6-2-2-4)),v.setAttribute("x",""+(m-6)),b.setAttribute("x",""+(m-6)),i.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,t)=>e.firstEntryPoints>t.firstEntryPoints?1:-1));const t=this.playerElevateLevel.loyaltyPoints;let i=0;this.levels.forEach(((e,n)=>{t>e.firstEntryPoints&&(i=n)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:i})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return n(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 rgba(0, 0, 0, 0.2509803922);\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 k=class{constructor(t){e(this,t),this.isPointDetailCard="earningRule"===this.buttonType,this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.cardTitle=void 0,this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0,this.elevateSPTotal=void 0}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,this.elevateSPTotal=e.detail.loyaltyWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.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 e=a("../static/card-ground.svg"),t=a("../static/card-ground-over.svg");return i("div",{key:"13461fc9cf8b777337a539c15da4bb2781f5a837",class:`ElevateCardWrapper ${this.theme}`},i("div",{key:"526e72c0ada871f74ba4a07f0a125bc25840c09c",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},i("general-styling-wrapper",{key:"95e358ceb8fa3c247660f7ca15a4684b132874be",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:h,translationUrl:this.translationUrl}),i("player-elevate-card-data",{key:"24c765d743446ac597a9dcc9cd22515e7e39e6db",params:this.paramProxy}),i("div",{key:"309db4bbfc244a7fb97827774d9d4383109ca0d7",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},i("div",{key:"9d5614ded2f73b505e60900675a7d95b3cfbcbc6",class:"Content Row"},this.playerElevateLevel&&i(s,{key:"9a17e809083e61aad19f7ffef5d5ee5885ae8b4d"},i("div",{key:"47068df3c0070ee2785b0d0201b08766fe0d71e8",class:"PlayerImg"},i(d,{key:"40115f8b190d871c85f9531fbf0bafb8fbd739e2",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),i("div",{key:"278cd70c23ecb48655e90810af570ce5366d13d5",class:`LevelInfo ${this.playerElevateLevel.name}`},i("div",{key:"ce682ff881c5b12ed0b736ffcc67ad07b3713999",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:g("spendablePoints")),i("div",{key:"eeebc5c468cf6e3d566f708fd47a19956ad9defe",class:"PointsTxt SPPoints"},i(p,{key:"ad58990b7fa789cf2d5c524191447196e97c8a16",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),i("a",{key:"0dbdd6cd84e1cb43dac4485f4e3eec3130d6c65c",class:"TC",onClick:()=>{this.onDetailsClick()}},g("termAndConditions",this.language))),this.pointExpireString&&i("div",{key:"45c3267d390995fabe34974913adf97b112cf8c2",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};var L;k.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}",function(e){e.spendable="spendable",e.loyalty="loyalty",e.history="history"}(L||(L={}));const T={en:{tabTitle:{[L.spendable]:"Coins",[L.loyalty]:"XP",[L.history]:"Conversion History"},barTitle:{[L.spendable]:"Coins History",[L.loyalty]:"Experience Points History",[L.history]:"Conversion History"},bonus:"Bonus",noContent:"No Content",redeem:"Redeem",reload:"Reload",reloadMsgWhenError:"Network Problem, please ",pointType:{registration:"Registration",cancelledRegistration:"Cancelled Registration",expiredRegistration:"Expired Registration",manual:"Manual",cancelledManual:"Cancelled Manual",expiredManual:"Expired Manual",wageringByRealMoney:"Real Money Wager",wageringByBonusMoney:"Bonus Money Wager",cancelledWageringByRealMoney:"Cancelled Real Money Wager",cancelledWageringByBonusMoney:"Cancelled Bonus Money Wager",expiredWageringByRealMoney:"Expired Real Money Wager",expiredWageringByBonusMoney:"Expired Bonus Money Wager",levelExpired:"Level Expiration",bonus:"Bonus Redeem"}}},R=e=>"/v1/elevate/"+(e==L.history?"redeemHistory":"pointsHistory"),B=(e,t,n)=>t&&i(s,null,i("div",{class:"Records"},t.map((t=>i("div",{class:"RecordContainer"},i("div",{class:"Row"},i("div",{class:"Title"},e.pointType[t.pointType]||t.pointType),i("div",{class:`Amount ${E(t.points).class}`},E(t.points).symbol,t.points)),t.payload&&t.payload.displayName&&i("div",{class:"Row Desc",innerHTML:t.payload.displayName["*"]}),i("div",{class:"Row"},i("div",{class:"DateTime"},D(new Date(t.modified)))))))),i("div",{class:"PaginationContainer"},i("bonus-pagination-nav",{offset:n.offset,limit:n.limit,displayPageNumbers:n.displayPageNumbers,tableId:n.tableId,secondaryArrowsActive:n.secondaryArrowsActive,total:n.total}))),E=e=>e>0?{class:"Positive",symbol:"+"}:{class:"Negative",symbol:""},A=e=>e.toString().padStart(2,"0"),D=e=>[e.getFullYear(),A(e.getMonth()+1),A(e.getDate())].join("-")+" "+[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":"),M=(e,t,n)=>i("div",{class:"TopBarContainer"},i("div",{class:"BackImageContainer"},i("span",{class:"BackImage",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDkgMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03Ljc1IDFMMS4yNSA3LjVMNy43NSAxNCIgc3Ryb2tlPSIjMjQyNDI0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="})),i("div",{class:"TitleContainer"},i("div",{class:"Title",title:e.barTitle[t]},e.barTitle[t]),i("div",{class:"Limits"},i("bonus-pagination-limits",{pageLimitOptions:n.pageLimitOptions,limit:n.limit}))),i("div",null,i("span",{class:"MenuImage",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDMwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjQiIGN5PSI0IiByPSI0IiBmaWxsPSJibGFjayIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjQiIHI9IjQiIGZpbGw9ImJsYWNrIi8+CjxjaXJjbGUgY3g9IjI2IiBjeT0iNCIgcj0iNCIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="})));var O,j={};(function(e){var t=Object.defineProperty,i=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,l=(e,t)=>{for(var i in t||(t={}))s.call(t,i)&&o(e,i,t[i]);if(a)for(var i of a(t))r.call(t,i)&&o(e,i,t[i]);return e},c=(e,t)=>i(e,n(t)),h=(e,t,i)=>o(e,"symbol"!=typeof t?t+"":t,i);function d(){}function g(e){return e()}function p(){return Object.create(null)}function f(e){e.forEach(g)}function u(e){return"function"==typeof e}function v(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function b(e,t,i){e.insertBefore(t,i||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function x(e){return document.createElement(e)}let y;function w(e){y=e}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const P=[],I=[];let C=[];const k=[],L=Promise.resolve();let T=!1;function R(e){C.push(e)}const B=new Set;let E=0;function A(){if(0!==E)return;const e=y;do{try{for(;E<P.length;){const e=P[E];E++,w(e),D(e.$$)}}catch(e){throw P.length=0,E=0,e}for(w(null),P.length=0,E=0;I.length;)I.pop()();for(let e=0;e<C.length;e+=1){const t=C[e];B.has(t)||(B.add(t),t())}C.length=0}while(P.length);for(;k.length;)k.pop()();T=!1,B.clear(),w(e)}function D(e){if(null!==e.fragment){e.update(),f(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(R)}}const M=new Set;function O(e,t,i,n,a,s,r=null,o=[-1]){const l=y;w(e);const c=e.$$={fragment:null,ctx:[],props:s,update:d,not_equal:a,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:p(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};r&&r(c.root);let h=!1;if(c.ctx=i?i(e,t.props||{},((t,i,...n)=>{const s=n.length?n[0]:i;return c.ctx&&a(c.ctx[t],c.ctx[t]=s)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](s),h&&function(e,t){-1===e.$$.dirty[0]&&(P.push(e),T||(T=!0,L.then(A)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],c.update(),h=!0,f(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(m)}else c.fragment&&c.fragment.c();t.intro&&function(e){e&&e.i&&(M.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:a}=e.$$;n&&n.m(t,i),R((()=>{const t=e.$$.on_mount.map(g).filter(u);e.$$.on_destroy?e.$$.on_destroy.push(...t):f(t),e.$$.on_mount=[]})),a.forEach(R)}(e,t.target,t.anchor),A()}w(l)}let j;function S(e,t,i,n){var a;const s=null==(a=i[e])?void 0:a.type;if(t="Boolean"===s&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(s){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(e,t,i){super(),h(this,"$$ctor"),h(this,"$$s"),h(this,"$$c"),h(this,"$$cn",!1),h(this,"$$d",{}),h(this,"$$r",!1),h(this,"$$p_d",{}),h(this,"$$l",{}),h(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}connectedCallback(){return e=this,t=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=x("slot"),"default"!==e&&function(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}(t,"name",e)},m:function(e,i){b(e,t,i)},d:function(e){e&&m(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=S(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:c(l({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=S(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}},new Promise(((i,n)=>{var a=e=>{try{r(t.next(e))}catch(e){n(e)}},s=e=>{try{r(t.throw(e))}catch(e){n(e)}},r=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);r((t=t.apply(e,null)).next())}));var e,t}attributeChangedCallback(e,t,i){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=S(e,i,this.$$p_d,"toProp"),null==(n=this.$$c)||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class ${constructor(){h(this,"$$"),h(this,"$$set")}$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];C.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),C=t}(i.after_update),f(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=d}$on(e,t){if(!u(t))return d;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function N(e){!function(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!n.getElementById(t)){const e=x("style");e.id=t,e.textContent=i,function(e,t){!function(e,t){e.appendChild(t)}(e.head||e,t)}(n,e)}}(e,"svelte-g6m3er",".LoaderContainer.svelte-g6m3er.svelte-g6m3er{display:flex;justify-content:center}.lds-ellipsis.svelte-g6m3er.svelte-g6m3er{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(1){left:8px;animation:svelte-g6m3er-lds-ellipsis1 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(2){left:8px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(3){left:32px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(4){left:56px;animation:svelte-g6m3er-lds-ellipsis3 0.6s infinite}@keyframes svelte-g6m3er-lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svelte-g6m3er-lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes svelte-g6m3er-lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function W(e){let t;return{c(){t=x("div"),t.innerHTML='<section class="LoaderContainer svelte-g6m3er" part="LoaderContainer"><div class="lds-ellipsis svelte-g6m3er"><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div></div></section>'},m(i,n){b(i,t,n),e[3](t)},p:d,i:d,o:d,d(i){i&&m(t),e[3](null)}}}function _(e,t,i){let n,{clientstyling:a=""}=t,{clientstylingurl:s=""}=t;return e.$$set=e=>{"clientstyling"in e&&i(1,a=e.clientstyling),"clientstylingurl"in e&&i(2,s=e.clientstylingurl)},e.$$.update=()=>{3&e.$$.dirty&&a&&n&&(()=>{let e=document.createElement("style");e.innerHTML=a,n.appendChild(e)})(),5&e.$$.dirty&&s&&n&&(()=>{let e=new URL(s),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[n,a,s,function(e){I[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class z extends ${constructor(e){super(),O(this,e,_,W,v,{clientstyling:1,clientstylingurl:2},N)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),A()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),A()}}!function(e,t,i){let n=class extends j{constructor(){super(e,i,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};Object.keys(t).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){var n;i=S(e,i,t),this.$$d[e]=i,null==(n=this.$$c)||n.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){var t;return null==(t=this.$$c)?void 0:t[e]}})})),e.element=n}(z,{clientstyling:{},clientstylingurl:{}},[]),e.default=z})(j),"undefined"!=typeof window&&(customElements.define=(O=customElements.define,function(...e){try{return O.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>j)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)})));const S=class{constructor(i){e(this,i),this.paginationReset=t(this,"paginationReset",7),this.playerAvatarUrl=void 0,this.session=void 0,this.endpoint=void 0,this.limit=void 0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!1,this.pageLimitOptions="10,25,50",this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.locale=T.en,this.type=L.spendable,this.pageSetting=void 0,this.pointsWallets={}}switchTab(e){var t,i;this.type=e,!this.pointsWallets[e]&&(null===(t=this.pointsWallets[e])||void 0===t?void 0:t.isLoadFailed)&&this.paginationReset.emit({limit:(null===(i=this.pointsWallets[e])||void 0===i?void 0:i.pageSetting.limit)||this.limit,tableId:this.type})}getPageSettingByType(e){return this.pointsWallets[e]?this.pointsWallets[e].pageSetting:{limit:this.limit,total:0,offset:0,tableId:e,secondaryArrowsActive:this.secondaryArrowsActive,displayPageNumbers:this.displayPageNumbers,pageLimitOptions:this.pageLimitOptions||void 0}}loadWallets(e){return!this.pointsWallets[this.type]||this.pointsWallets[this.type].isLoading?i("general-animation-loading",null):0===this.pointsWallets[this.type].wallets.length?i("div",{class:"NoContent"},this.locale.noContent):e()}render(){var e,t;const n=this.getPageSettingByType(this.type);return i("main",{key:"a92c0b154fec4d3ce8b8e919b9af5ebd80f1d125"},i("general-styling-wrapper",{key:"5095ab265d71f9e74f6f049b7b0b212ae11bc4da",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:T,translationUrl:this.translationUrl}),i("player-elevate-pointcard",{key:"c471ddeccbe8e18e15935c9d106bf8c52c80a6fb",playerAvatarUrl:this.playerAvatarUrl,endpoint:this.endpoint,session:this.session,language:this.language,clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,translationUrl:this.translationUrl}),i("div",{key:"5fa700aaa6e0cffe6d3d9dd8366bf9a95bba3a14",class:"PlayerElevatePointsDetaisContainer"},[M(this.locale,this.type,n),(a=this.locale,s=this.type,r=e=>this.switchTab(e),i("div",{class:"Tabs Row"},Object.keys(L).map((e=>{const t=e===s?"active":"";return i("div",null,i("div",{class:`TabText ${t}`,onClick:()=>{r(e)}},a.tabTitle[e]),i("div",{class:`TabBorderBottom ${t}`}))})))),(null===(e=this.pointsWallets[this.type])||void 0===e?void 0:e.isLoadFailed)?i("div",{class:"ReloadMsg"},this.locale.reloadMsgWhenError,i("a",{class:"Reload",onClick:()=>{this.updateWallets()}},this.locale.reload)):this.loadWallets(B.bind(this,this.locale,(null===(t=this.pointsWallets[this.type])||void 0===t?void 0:t.wallets)||[],n))]));var a,s,r}walletTypeChangedHandler(){this.pointsWallets[this.type]||this.updateWallets()}async updateWallets(){let e=this.pointsWallets[this.type]?this.pointsWallets[this.type].pageSetting:this.getPageSettingByType(this.type);try{const t=await(async(e,t,i,n,a)=>{const s={type:i,language:t,pagination:`offset=${a.offset},limit=${a.limit}`},r=((e,t={})=>e+"?"+Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&"))(e+R(s.type),s);return await(async(e,t={})=>{let i;i=await fetch(e,t),i=await i.text();try{i=JSON.parse(i)}catch(e){throw console.error(e),e}return i})(r,{headers:{"x-SessionId":n}})})(this.endpoint,this.language,this.type,this.session,e),i=t.data||[];t.success?(e.total=t.total,this.pointsWallets[this.type]=Object.assign(Object.assign({},this.pointsWallets[this.type]),{wallets:i,pageSetting:e}),this.pointsWallets=Object.assign({},this.pointsWallets)):(console.error(t),this.pointsWallets[this.type].isLoadFailed=!0)}catch(e){console.error(e),this.pointsWallets[this.type].isLoadFailed=!0}}reloadPageByTypeHandler(e){if(e.detail.tableId==this.type){if(this.limit!=e.detail.limit)this.pointsWallets={},this.limit=e.detail.limit;else{let t=this.pointsWallets[this.type].pageSetting||this.getPageSettingByType(this.type);t.offset=e.detail.offset,this.pointsWallets[this.type].pageSetting=t}this.updateWallets()}}setLimit(){try{const e=this.pageLimitOptions.split(",").map((e=>parseInt(e)));e.includes(this.limit)||(this.limit=e[0])}catch(e){console.error("Error when parse PageLimitOptions",e),this.limit=10}}async componentWillLoad(){this.setLimit(),this.updateWallets()}static get assetsDirs(){return["static"]}static get watchers(){return{type:["walletTypeChangedHandler"],endpoint:["updateWallets"],language:["updateWallets"],session:["updateWallets"]}}};S.style=":host{display:block}main{max-width:420px}main player-elevate-pointcard{width:100%;height:220px}.PlayerElevatePointsDetaisContainer{background:#FFFFFF;padding:20px 10px 0;margin-top:-100px;position:relative;min-height:360px}.PlayerElevatePointsDetaisContainer .ReloadMsg{padding:20px}.PlayerElevatePointsDetaisContainer .ReloadMsg a.Reload{cursor:pointer}.TitleContainer{font-size:20px;font-weight:500;line-height:25px;letter-spacing:0em;text-align:left;display:flex;justify-content:space-between}.TopBarContainer{display:flex;align-items:center;justify-content:space-between}.TopBarContainer .TitleContainer{width:100%}.TopBarContainer .Title{background:#303030;padding:5px 16px;color:#FFFFFF;box-shadow:0px 4px 13px 0px rgba(0, 0, 0, 0.2509803922);border-radius:8px;width:fit-content;margin-left:7px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.PaginationContainer{display:flex;justify-content:center}.MonthStat{margin-top:25px;display:none;font-size:16px;font-weight:500;line-height:19px;letter-spacing:0px;text-align:left;color:#242424}.MonthStat .Amount{color:#53B65A}.BackImageContainer{width:35px;height:35px;flex:0 0 35px;border-radius:6px;text-align:center;line-height:35px;box-shadow:0px 4px 40px 0px rgba(138, 149, 158, 0.2);display:none}.Records{margin-top:16px}.MenuImage,.BackImage{cursor:pointer;display:none}.Row{display:flex;justify-content:space-between;align-items:center}.Row:nth-child(n+2){margin-top:3px}.Tabs.Row{justify-content:space-around;margin-top:20px}.Tabs.Row .TabText{font-size:16px;margin:10px 15px;color:#9C9C9C;cursor:pointer}.Tabs.Row .TabText.active{color:#242424;font-weight:600}.Tabs.Row .TabBorderBottom{height:5px;border-radius:4px;background:transparent}.Tabs.Row .TabBorderBottom.active{background:#242424}.RecordContainer{margin:5px 0;padding:10px;box-shadow:0px 0px 8px 0px rgba(0, 0, 0, 0.1019607843);border-radius:5px}.RecordContainer .Title{color:#242424;font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Amount{font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Amount.Positive{color:#53B65A}.RecordContainer .Amount.Negative{color:#B41E2D}.RecordContainer .DateTime{color:#9C9C9C;font-size:16px;font-weight:400;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Tag{font-size:12px;font-weight:500;line-height:14px;letter-spacing:0em;text-align:center;color:#767171;padding:8px 30px;border-radius:8px;box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.2509803922)}.NoContent{font-size:16px;color:var(--emfe-w-color-black-100, #afafaf);text-align:center;height:120px;line-height:120px}";export{v as bonus_pagination_limits,y as bonus_pagination_nav,w as general_styling_wrapper,C as player_elevate_card_data,k as player_elevate_pointcard,S as player_elevate_points_history}
@@ -0,0 +1 @@
1
+ import{h as e,a as i}from"./p-f547f5dc.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},t(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))}var o={};function I(){return o}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 s(e){r(1,arguments);var i=a(e),t=i.getUTCDay(),n=(t<1?7:0)+t-1;return i.setUTCDate(i.getUTCDate()-n),i.setUTCHours(0,0,0,0),i}function u(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=s(n),I=new Date(0);I.setUTCFullYear(t,0,4),I.setUTCHours(0,0,0,0);var M=s(I);return i.getTime()>=o.getTime()?t+1:i.getTime()>=M.getTime()?t:t-1}function w(e,i){var t,o,M,s,u,w,g,d;r(1,arguments);var C=I(),A=n(null!==(t=null!==(o=null!==(M=null!==(s=null==i?void 0:i.weekStartsOn)&&void 0!==s?s:null==i||null===(u=i.locale)||void 0===u||null===(w=u.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==M?M: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(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=a(e),l=c.getUTCDay(),L=(l<A?7:0)+l-A;return c.setUTCDate(c.getUTCDate()-L),c.setUTCHours(0,0,0,0),c}function g(e,i){var t,o,M,s,u,g,d,C;r(1,arguments);var A=a(e),c=A.getUTCFullYear(),l=I(),L=n(null!==(t=null!==(o=null!==(M=null!==(s=null==i?void 0:i.firstWeekContainsDate)&&void 0!==s?s:null==i||null===(u=i.locale)||void 0===u||null===(g=u.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==M?M:l.firstWeekContainsDate)&&void 0!==o?o:null===(d=l.locale)||void 0===d||null===(C=d.options)||void 0===C?void 0:C.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=w(m,i),y=new Date(0);y.setUTCFullYear(c,0,L),y.setUTCHours(0,0,0,0);var j=w(y,i);return A.getTime()>=D.getTime()?c+1:A.getTime()>=j.getTime()?c:c-1}function d(e,i){for(var t=e<0?"-":"",n=Math.abs(e).toString();n.length<i;)n="0"+n;return t+n}const C=function(e,i){var t=e.getUTCFullYear(),n=t>0?t:1-t;return d("yy"===i?n%100:n,i.length)},A=function(e,i){var t=e.getUTCMonth();return"M"===i?String(t+1):d(t+1,2)},c=function(e,i){return d(e.getUTCDate(),i.length)},l=function(e,i){return d(e.getUTCHours()%12||12,i.length)},L=function(e,i){return d(e.getUTCHours(),i.length)},m=function(e,i){return d(e.getUTCMinutes(),i.length)},D=function(e,i){return d(e.getUTCSeconds(),i.length)},y=function(e,i){var t=i.length,n=e.getUTCMilliseconds();return d(Math.floor(n*Math.pow(10,t-3)),i.length)};var j={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"});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 C(e,i)},Y:function(e,i,t,n){var r=g(e,n),a=r>0?r:1-r;return"YY"===i?d(a%100,2):"Yo"===i?t.ordinalNumber(a,{unit:"year"}):d(a,i.length)},R:function(e,i){return d(u(e),i.length)},u:function(e,i){return d(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 d(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"});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 d(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"});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 A(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"});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 d(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"});default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(e,i,t,o){var M=function(e,i){r(1,arguments);var t=a(e),o=w(t,i).getTime()-function(e,i){var t,a,o,M,s,u,d,C;r(1,arguments);var A=I(),c=n(null!==(t=null!==(a=null!==(o=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(s=i.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:A.firstWeekContainsDate)&&void 0!==a?a:null===(d=A.locale)||void 0===d||null===(C=d.options)||void 0===C?void 0:C.firstWeekContainsDate)&&void 0!==t?t:1),l=g(e,i),L=new Date(0);return L.setUTCFullYear(l,0,c),L.setUTCHours(0,0,0,0),w(L,i)}(t,i).getTime();return Math.round(o/6048e5)+1}(e,o);return"wo"===i?t.ordinalNumber(M,{unit:"week"}):d(M,i.length)},I:function(e,i,t){var n=function(e){r(1,arguments);var i=a(e),t=s(i).getTime()-function(e){r(1,arguments);var i=u(e),t=new Date(0);return t.setUTCFullYear(i,0,4),t.setUTCHours(0,0,0,0),s(t)}(i).getTime();return Math.round(t/6048e5)+1}(e);return"Io"===i?t.ordinalNumber(n,{unit:"week"}):d(n,i.length)},d:function(e,i,t){return"do"===i?t.ordinalNumber(e.getUTCDate(),{unit:"date"}):c(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"}):d(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"});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 d(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"});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 d(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"});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 d(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"});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"});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"});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"});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 l(e,i)},H:function(e,i,t){return"Ho"===i?t.ordinalNumber(e.getUTCHours(),{unit:"hour"}):L(e,i)},K:function(e,i,t){var n=e.getUTCHours()%12;return"Ko"===i?t.ordinalNumber(n,{unit:"hour"}):d(n,i.length)},k:function(e,i,t){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===i?t.ordinalNumber(n,{unit:"hour"}):d(n,i.length)},m:function(e,i,t){return"mo"===i?t.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m(e,i)},s:function(e,i,t){return"so"===i?t.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):D(e,i)},S:function(e,i){return y(e,i)},X:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(i){case"X":return h(r);case"XXXX":case"XX":return x(r);default:return x(r,":")}},x:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"x":return h(r);case"xxxx":case"xx":return x(r);default:return x(r,":")}},O:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+N(r,":");default:return"GMT"+x(r,":")}},z:function(e,i,t,n){var r=(n._originalDate||e).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+N(r,":");default:return"GMT"+x(r,":")}},t:function(e,i,t,n){return d(Math.floor((n._originalDate||e).getTime()/1e3),i.length)},T:function(e,i,t,n){return d((n._originalDate||e).getTime(),i.length)}};function N(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+d(a,2)}function h(e,i){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):x(e,i)}function x(e,i){var t=i||"",n=e>0?"-":"+",r=Math.abs(e);return n+d(Math.floor(r/60),2)+t+d(r%60,2)}const b=j;var p=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"});default:return i.date({width:"full"})}},v=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"});default:return i.time({width:"full"})}},T={p:v,P:function(e,i){var t,n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return p(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;default:t=i.dateTime({width:"full"})}return t.replace("{{date}}",p(r,i)).replace("{{time}}",v(a,i))}};const z=T;var f=["D","DD"],Z=["YY","YYYY"];function S(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 P={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 G(e){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.width?String(i.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var W,Y={date:G({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:G({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:G({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},E={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Q(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,I=null!=t&&t.width?String(t.width):e.defaultWidth;n=e.values[I]||e.values[o]}return n[e.argumentCallback?e.argumentCallback(i):i]}}function k(e){return function(i){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=i.match(n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth]);if(!r)return null;var a,o=r[0],I=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(I)?function(e){for(var i=0;i<e.length;i++)if(e[i].test(o))return i}(I):function(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i].test(o))return i}(I);return a=e.valueCallback?e.valueCallback(M):M,{value:a=t.valueCallback?t.valueCallback(a):a,rest:i.slice(o.length)}}}const R={code:"en-US",formatDistance:function(e,i,t){var n,r=P[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:Y,formatRelative:function(e){return E[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:Q({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Q({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:Q({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:Q({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:Q({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:(W={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(W.matchPattern);if(!t)return null;var n=t[0],r=e.match(W.parsePattern);if(!r)return null;var a=W.valueCallback?W.valueCallback(r[0]):r[0];return{value:a=i.valueCallback?i.valueCallback(a):a,rest:e.slice(n.length)}}),era:k({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:k({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:k({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:k({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:k({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}};var V=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,X=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B=/^'([^]*?)'?$/,U=/''/g,J=/[a-zA-Z]/;function O(e,i,o){var s,u,w,g,d,C,A,c,l,L,m,D,y,j,N,h,x,p;r(2,arguments);var v=String(i),T=I(),P=null!==(s=null!==(u=null==o?void 0:o.locale)&&void 0!==u?u:T.locale)&&void 0!==s?s:R,G=n(null!==(w=null!==(g=null!==(d=null!==(C=null==o?void 0:o.firstWeekContainsDate)&&void 0!==C?C:null==o||null===(A=o.locale)||void 0===A||null===(c=A.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==d?d:T.firstWeekContainsDate)&&void 0!==g?g:null===(l=T.locale)||void 0===l||null===(L=l.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==w?w:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=n(null!==(m=null!==(D=null!==(y=null!==(j=null==o?void 0:o.weekStartsOn)&&void 0!==j?j:null==o||null===(N=o.locale)||void 0===N||null===(h=N.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==y?y:T.weekStartsOn)&&void 0!==D?D:null===(x=T.locale)||void 0===x||null===(p=x.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==m?m:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var Y=a(e);if(!function(e){if(r(1,arguments),!function(e){return r(1,arguments),e instanceof Date||"object"===t(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var i=a(e);return!isNaN(Number(i))}(Y))throw new RangeError("Invalid time value");var E=function(e,i){return r(2,arguments),function(e,i){r(2,arguments);var t=a(e).getTime(),o=n(i);return new Date(t+o)}(e,-n(i))}(Y,M(Y)),Q={firstWeekContainsDate:G,weekStartsOn:W,locale:P,_originalDate:Y};return v.match(X).map((function(e){var i=e[0];return"p"===i||"P"===i?(0,z[i])(e,P.formatLong):e})).join("").match(V).map((function(t){if("''"===t)return"'";var n,r,a=t[0];if("'"===a)return(r=(n=t).match(B))?r[1].replace(U,"'"):n;var I=b[a];if(I)return null!=o&&o.useAdditionalWeekYearTokens||-1===Z.indexOf(t)||S(t,i,String(e)),null!=o&&o.useAdditionalDayOfYearTokens||!(-1!==f.indexOf(t))||S(t,i,String(e)),I(E,t,P.localize,Q);if(a.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return t})).join("")}const H="en",F=["ro","en"],$={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"}},K=(e,i)=>{const t=i;return $[void 0!==t&&F.includes(t)?t:H][e]},q=(e,i)=>{const t=i.lang;let n=$[void 0!==t&&F.includes(t)?t:H][e];return i?(Object.keys(i).forEach((e=>{n=n.replace(new RegExp("\\${"+e+"}","gm"),i[e])})),n):$[void 0!==t&&F.includes(t)?t:H][e]},_=()=>e("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ0b3RhbF9sZXZlbCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KICAgIDxyZWN0IHk9IjEyIiAgeD0iMiIgaWQ9ImN1cnJlbnRfbGV2ZWwiIHdpZHRoPSI2NCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIvPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcl9jdXJyZW50X2xldmVsKSI+CiAgICAgICAgPGNpcmNsZSBpZD0iY2lyY2xlX2N1cnJlbnRfbGV2ZWwiIGN4PSI3NC41IiBjeT0iMTQuNSIgcj0iNi41IiBmaWx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iAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),ee=({loyaltyPoints:i,spendablePoints:t,pointExpireString:n,language:r})=>e("div",{class:"PointsInfo"},i&&e("div",{class:"Points"},i," ",e("sub",{class:"XP"},K("xp",r))),t&&e("div",{class:"Points"},t," ",e("sub",{class:"XP"},K("sp",r))),n&&e("div",{class:"ExpirationPoints"},n," ")),ie=({language:i,onRedeemClick:t})=>e("div",{class:"CardCell Redeem"},e("div",{class:"RedeemButton",onClick:()=>{t()}},e("span",null,K("redeem",i)))),te=i=>e("div",{class:"CardCell PlayerName Txt"},i.playerName),ne=t=>e("div",{class:"CardCell ElevateLevel"},e("span",{class:"LevelName",title:t.level},t.level),t.expireTime&&e("div",{class:"CardCell ExpirationDate Txt"},K("expireOn",t.language),e("span",{class:"ExpireTime"},O(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+CjxwYXRoIGQ9Ik01MSA1NkgzN0w0My4yNDc0IDYzLjEzOTlDNDMuNjQ1OCA2My41OTU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erAvatar",style:{position:t.onlyBadge?"":"relative"}},!t.onlyBadge&&e("img",{class:"Avatar",src:r}),n)};export{re as P,$ as T,q as a,K as b,ee as c,te as d,ne as e,_ as f,M as g,ie as h,r,a as t}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",f="undefined"!=typeof window?window:{},u=f.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},d=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],v=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&a.o?w(b):a.raf(b))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{$(m),$(v),(p=m.length>0)&&a.raf(b)},w=t=>d().then(t),g=y(v,!0),S=t=>{const e=new URL(t,a.l);return e.origin!==f.location.origin?e.href:e.pathname},k={},j=t=>"object"==(t=typeof t)||"function"===t;function E(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>C,map:()=>M,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=t=>({isOk:!0,isErr:!1,value:t}),C=t=>({isOk:!1,isErr:!0,value:t});function M(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return C(t.value);throw"should never get here"}var R,x,P,T=t=>{if(t.isOk)return t.value;throw t.value},A=t=>{if(t.isErr)return t.value;throw t.value},F=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!j(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?L(null,o):o),i=r)};if(f(n),e){e.key&&(l=e.key),e.name&&(s=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,c,U);const u=L(t,null);return u.u=e,c.length>0&&(u.h=c),u.p=l,u.m=s,u},L=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),N={},U={forEach:(t,e)=>t.map(W).forEach(e),map:(t,e)=>t.map(W).map(e).map(D)},W=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),D=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),F(t.vtag,e,...t.vchildren||[])}const e=L(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},H=t=>n(t).$hostElement$,q=(t,e,n)=>{const o=H(t);return{emit:t=>G(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},G=(t,e,n)=>{const o=a.ce(e,n);return t.dispatchEvent(o),o},I=new WeakMap,V=t=>"sc-"+t.S,_=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=B(n),s=B(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if(i||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&r||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(J);e=e.replace(K,""),n&&a.rel(t,e,n,l),o&&a.ael(t,e,o,l)}}},z=/\s/,B=t=>t?t.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||k,s=e.u||k;for(const t of X(Object.keys(l)))t in s||_(o,t,l[t],void 0,n,e.o);for(const t of X(Object.keys(s)))_(o,t,l[t],s[t],n,e.o)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Y=!1,Z=!1,tt=!1,et=!1,nt=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,f=0;if(Y||(tt=!0,"slot"===s.v&&(R&&o.classList.add(R+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=u.createTextNode(s.i);else if(1&s.o)r=s.$=u.createTextNode("");else if(r=s.$=u.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,et),r.getRootNode().querySelector("body"),s.h)for(f=0;f<s.h.length;++f)i=nt(t,s,f,r),i&&r.appendChild(i);return r["s-hn"]=P,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=x,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&&ot(t.$,!1)),r},ot=(t,e)=>{a.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==P&&o["s-ol"]&&(pt(ct(o),o,it(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,tt=!0),e&&ot(o,e)}a.o&=-2},lt=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=nt(null,n,l,t),r&&(o[l].$=r,pt(i,r,it(e))))},st=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;t&&(Z=!0,t["s-ol"]?t["s-ol"].remove():ot(t,!0),t.remove())}}},rt=(t,e,n=!1)=>!(t.v!==e.v||("slot"===t.v?"k"in t&&n&&8!==t.$.nodeType||t.m!==e.m:!n&&t.p!==e.p)),it=t=>t&&t["s-ol"]||t,ct=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.i;let i;null===r?(("slot"!==e.v||Y)&&Q(t,e,et),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,f=0,u=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(rt(d,m,l))ft(d,m,l),d=e[++i],m=o[++c];else if(rt(h,v,l))ft(h,v,l),h=e[--a],v=o[--p];else if(rt(d,v,l))"slot"!==d.v&&"slot"!==v.v||ot(d.$.parentNode,!1),ft(d,v,l),pt(t,d.$,h.$.nextSibling),d=e[++i],v=o[--p];else if(rt(h,m,l))"slot"!==d.v&&"slot"!==v.v||ot(h.$.parentNode,!1),ft(h,m,l),pt(t,h.$,d.$),h=e[--a],m=o[++c];else{for(f=-1,u=i;u<=a;++u)if(e[u]&&null!==e[u].p&&e[u].p===m.p){f=u;break}f>=0?(r=e[f],r.v!==m.v?s=nt(e&&e[c],n,f,t):(ft(r,m,l),e[f]=void 0,s=r.$),m=o[++c]):(s=nt(e&&e[c],n,c,t),m=o[++c]),s&&pt(ct(d.$),s,it(d.$))}i>a?lt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&st(e,i,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),lt(o,null,e,s,0,s.length-1)):!n&&null!==l&&st(l,0,l.length-1)):(i=o["s-cr"])?i.parentNode.textContent=r:t.i!==r&&(o.data=r)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},at=[],dt=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(ht(e,t)){let n=at.find((t=>t.j===e));Z=!0,e["s-sn"]=e["s-sn"]||t,n?(n.j["s-sh"]=l["s-hn"],n.O=l):(e["s-sh"]=l["s-hn"],at.push({O:l,j:e})),e["s-sr"]&&at.map((t=>{ht(t.j,e["s-sn"])&&(n=at.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else at.some((t=>t.j===e))||at.push({j:e})}1===l.nodeType&&dt(l)}},ht=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,pt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),mt=(t,e)=>{e&&!t.C&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.C=e)))},vt=(t,e)=>{if(t.o|=16,!(4&t.o))return mt(t,t.M),g((()=>yt(t,e)));t.o|=512},yt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.R&&(t.R.map((([t,e])=>jt(n,t,e))),t.R=void 0),o=jt(n,"componentWillLoad")),o=$t(o,(()=>jt(n,"componentWillRender"))),$t(o,(()=>wt(t,n,e)))},$t=(t,e)=>bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,wt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=V(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,r=I.get(t=t.head||t);if(r||I.set(t,r=new Set),!r.has(o)){{s=u.createElement("style"),s.innerHTML=l;const o=null!=(n=a.T)?n:E(u);null!=o&&s.setAttribute("nonce",o),(!(1&e.o)||1&e.o&&"HEAD"!==t.nodeName)&&t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);gt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>St(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},gt=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,f=t.A||L(null,null),d=(t=>t&&t.v===N)(e)?e:F(null,null,e);if(P=i.tagName,c.F&&(d.u=d.u||{},c.F.map((([t,e])=>d.u[e]=i[t]))),n&&d.u)for(const t of Object.keys(d.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=i[t]);if(d.v=null,d.o|=4,t.A=d,d.$=f.$=i.shadowRoot||i,R=i["s-sc"],Y=!!(1&c.o),x=i["s-cr"],Z=!1,ft(f,d,n),a.o|=1,tt){dt(d.$);for(const t of at){const e=t.j;if(!e["s-ol"]){const t=u.createTextNode("");t["s-nr"]=e,pt(e.parentNode,e["s-ol"]=t,e)}}for(const t of at){const e=t.j,i=t.O;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),pt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}Z&&ut(d.$),a.o&=-2,at.length=0,x=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},St=t=>{const e=t.$hostElement$,n=t.M;jt(t.t,"componentDidRender"),64&t.o||(t.o|=64,Et(e),t.L(e),n||kt()),t.C&&(t.C(),t.C=void 0),512&t.o&&w((()=>vt(t,!1))),t.o&=-517},kt=()=>{Et(u.documentElement),w((()=>G(f,"appload",{detail:{namespace:"player-elevate-points-history"}})))},jt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.classList.add("hydrated"),Ot=(t,e,o)=>{var l,r;const i=t.prototype;if(e.N||e.U||t.watchers){t.watchers&&!e.U&&(e.U=t.watchers);const c=Object.entries(null!=(l=e.N)?l:{});if(c.map((([t,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,t,{get(){return((t,e)=>n(this).W.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.W.get(e),f=r.o,u=r.t;if(o=((t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.N[e][0]),(!(8&f)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.W.set(e,o),u)){if(l.U&&128&f){const t=l.U[e];t&&t.map((t=>{try{u[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&f)&&vt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.U)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.U)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.F)||l.push([t,s])),s}))]))}}return t},Ct=(t,o={})=>{var l;const d=[],p=o.exclude||[],m=f.customElements,v=u.head,y=v.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],N:o[2],D:o[3]};4&c.o&&(S=!0),c.N=o[2],c.D=o[3],c.F=[],c.U=null!=(l=o[4])?l:{};const f=c.S,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,P:n,W:new Map};o.H=new Promise((t=>o.L=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Rt(this,t,c.D)),w&&(clearTimeout(w),w=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.P,l=()=>{};if(1&e.o)Rt(t,e,o.D),(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=u.createComment("");e["s-cn"]=!0,pt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){mt(e,e.M=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.q){const t=(t=>{const e=t.S.replace(/-/g,"_"),n=t.q;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.S}#${e.G}" was not found`);o.isProxied||(n.U=o.watchers,Ot(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=V(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.M,c=()=>vt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const t=n(this);t.I&&(t.I.map((t=>t())),t.I=void 0),(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};c.q=t[0],p.includes(f)||m.get(f)||(d.push(f),m.define(f,Ot(v,c,1)))}))})),d.length>0&&(S&&($.textContent+=c),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(l=a.T)?l:E(u);null!=t&&$.setAttribute("nonce",t),v.insertBefore($,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(kt,30)))},Mt=(t,e)=>e,Rt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Pt(t,n),r=xt(e,l),i=Tt(n);a.ael(s,o,r,i),(e.I=e.I||[]).push((()=>a.rel(s,o,r,i)))}))},xt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.R=t.R||[]).push([e,n])}catch(t){s(t)}},Pt=(t,e)=>8&e?f:t,Tt=t=>({passive:!!(1&t),capture:!!(2&t)}),At=t=>a.T=t;export{Mt as F,S as a,Ct as b,q as c,H as g,F as h,d as p,o as r,At as s}
@@ -0,0 +1 @@
1
+ import{p as e,b as a}from"./p-f547f5dc.js";export{s as setNonce}from"./p-f547f5dc.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-409b8855",[[1,"player-elevate-points-history",{playerAvatarUrl:[513,"player-avatar-url"],session:[513],endpoint:[513],limit:[1538],secondaryArrowsActive:[1540,"secondary-arrows-active"],displayPageNumbers:[1540,"display-page-numbers"],pageLimitOptions:[1537,"page-limit-options"],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],locale:[32],type:[32],pageSetting:[32],pointsWallets:[32]},[[0,"reloadPageByType","reloadPageByTypeHandler"]],{type:["walletTypeChangedHandler"],endpoint:["updateWallets"],language:["updateWallets"],session:["updateWallets"]}],[1,"player-elevate-pointcard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],cardTitle:[513,"card-title"],buttonType:[513,"button-type"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32],elevateSPTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[0,"bonus-pagination-limits",{language:[513],translationUrl:[513,"translation-url"],pageLimitOptions:[513,"page-limit-options"],limit:[1538],pageLimits:[32]}],[0,"bonus-pagination-nav",{total:[1538],limit:[1538],offset:[1538],tableId:[1537,"table-id"],language:[1537],translationUrl:[513,"translation-url"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],displayPageNumbers:[1540,"display-page-numbers"],displayRangeOfTotal:[1540,"display-range-of-total"],endPageIndex:[32],pagesArray:[32],currentPage:[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"]],{params:["onParamsChanged"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]],["p-0f3449ca",[[1,"player-elevate-card",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerLevelFlag:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["p-212a0bb7",[[1,"player-elevate-loyaltycard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]]],e))));
@@ -0,0 +1,42 @@
1
+ <svg width="95" height="51" viewBox="0 0 95 51" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g filter="url(#filter0_bd_169_22604)">
3
+ <rect x="4" width="87" height="43" rx="14" fill="#26CC37" shape-rendering="crispEdges"/>
4
+ <rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint0_linear_169_22604)" stroke-opacity="0.6"
5
+ stroke-width="2" shape-rendering="crispEdges"/>
6
+ <rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint1_linear_169_22604)" stroke-width="2"
7
+ shape-rendering="crispEdges"/>
8
+ <rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint2_linear_169_22604)" stroke-width="2"
9
+ shape-rendering="crispEdges"/>
10
+ </g>
11
+ <defs>
12
+ <filter id="filter0_bd_169_22604" x="-36" y="-40" width="167" height="123" filterUnits="userSpaceOnUse"
13
+ color-interpolation-filters="sRGB">
14
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
15
+ <feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
16
+ <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_169_22604"/>
17
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
18
+ result="hardAlpha"/>
19
+ <feOffset dy="4"/>
20
+ <feGaussianBlur stdDeviation="2"/>
21
+ <feComposite in2="hardAlpha" operator="out"/>
22
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
23
+ <feBlend mode="normal" in2="effect1_backgroundBlur_169_22604" result="effect2_dropShadow_169_22604"/>
24
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_169_22604" result="shape"/>
25
+ </filter>
26
+ <linearGradient id="paint0_linear_169_22604" x1="107.683" y1="17.19" x2="78.0658" y2="19.0918"
27
+ gradientUnits="userSpaceOnUse">
28
+ <stop stop-color="white"/>
29
+ <stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
30
+ </linearGradient>
31
+ <linearGradient id="paint1_linear_169_22604" x1="4" y1="0" x2="24.9374" y2="22.5174"
32
+ gradientUnits="userSpaceOnUse">
33
+ <stop stop-color="white" stop-opacity="0.5"/>
34
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
35
+ </linearGradient>
36
+ <linearGradient id="paint2_linear_169_22604" x1="91" y1="43" x2="61.9374" y2="28.5031"
37
+ gradientUnits="userSpaceOnUse">
38
+ <stop stop-color="white" stop-opacity="0.5"/>
39
+ <stop offset="1" stop-color="white" stop-opacity="0"/>
40
+ </linearGradient>
41
+ </defs>
42
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="87" height="43" viewBox="0 0 87 43" fill="none"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <rect width="87" height="43" rx="14" fill="#474A52"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="87" height="43" viewBox="0 0 87 43" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="1" y="1" width="85" height="41" rx="13" fill="#26CC37"/>
3
+ <rect x="1" y="1" width="85" height="41" rx="13" stroke="white" stroke-width="2"/>
4
+ </svg>