@everymatrix/player-elevate-points-history-jojogroup 1.80.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +6293 -0
- package/dist/cjs/index-7eb04064.js +1637 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/locale.utils-6b4c0dbd.js +230 -0
- package/dist/cjs/player-elevate-card-items-30bf53bc.js +2334 -0
- package/dist/cjs/player-elevate-card.cjs.entry.js +76 -0
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +89 -0
- package/dist/cjs/player-elevate-points-history-jojogroup.cjs.js +25 -0
- package/dist/cjs/player-rakeback-card.cjs.entry.js +163 -0
- package/dist/collection/collection-manifest.json +41 -0
- package/dist/collection/components/player-elevate-points-history-jojogroup/index.js +1 -0
- package/dist/collection/components/player-elevate-points-history-jojogroup/player-elevate-points-history-jojogroup.css +185 -0
- package/dist/collection/components/player-elevate-points-history-jojogroup/player-elevate-points-history-jojogroup.js +479 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/renders/renderTabs.js +9 -0
- package/dist/collection/renders/renderTopBar.js +4 -0
- package/dist/collection/renders/renderWallets.js +43 -0
- package/dist/collection/static/back.svg +3 -0
- package/dist/collection/static/menu.svg +5 -0
- package/dist/collection/utils/business.js +17 -0
- package/dist/collection/utils/fetch.js +17 -0
- package/dist/collection/utils/translation.js +62 -0
- package/dist/collection/utils/types.js +7 -0
- package/dist/collection/utils/util.js +16 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/bonus-pagination-limits_6.entry.js +6284 -0
- package/dist/esm/index-028fbb06.js +1607 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/locale.utils-34e6f004.js +226 -0
- package/dist/esm/player-elevate-card-items-fa32ea6b.js +2323 -0
- package/dist/esm/player-elevate-card.entry.js +72 -0
- package/dist/esm/player-elevate-loyaltycard.entry.js +85 -0
- package/dist/esm/player-elevate-points-history-jojogroup.js +20 -0
- package/dist/esm/player-rakeback-card.entry.js +159 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/app-globals-0f993ce5.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/bonus-pagination-limits_6.entry.js +9 -0
- package/dist/player-elevate-points-history-jojogroup/index-028fbb06.js +2 -0
- package/dist/player-elevate-points-history-jojogroup/index.esm.js +0 -0
- package/dist/player-elevate-points-history-jojogroup/locale.utils-34e6f004.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/player-elevate-card-items-fa32ea6b.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/player-elevate-card.entry.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/player-elevate-loyaltycard.entry.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/player-elevate-points-history-jojogroup.esm.js +1 -0
- package/dist/player-elevate-points-history-jojogroup/player-rakeback-card.entry.js +1 -0
- package/dist/static/button-default.svg +42 -0
- package/dist/static/button-disabled.svg +4 -0
- package/dist/static/button-hover.svg +4 -0
- package/dist/static/button-level.svg +27 -0
- package/dist/static/button-pressed.svg +18 -0
- package/dist/static/button-redeem.svg +36 -0
- package/dist/static/card-ground-over.png +0 -0
- package/dist/static/card-ground-over.svg +903 -0
- package/dist/static/card-ground.png +0 -0
- package/dist/static/card-ground.svg +34 -0
- package/dist/static/info.svg +4 -0
- package/dist/static/level-badge.png +0 -0
- package/dist/static/level-percent.svg +80 -0
- package/dist/static/tips-info.svg +21 -0
- package/dist/static/user.svg +3 -0
- package/dist/stencil.config.dev.js +18 -0
- package/dist/stencil.config.js +20 -0
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/packages/stencil/player-elevate-points-history-jojogroup/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/packages/stencil/player-elevate-points-history-jojogroup/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/packages/stencil/player-elevate-points-history-jojogroup/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/packages/stencil/player-elevate-points-history-jojogroup/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history-jojogroup/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/player-elevate-points-history-jojogroup/index.d.ts +1 -0
- package/dist/types/components/player-elevate-points-history-jojogroup/player-elevate-points-history-jojogroup.d.ts +80 -0
- package/dist/types/components.d.ts +165 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/renders/renderTabs.d.ts +3 -0
- package/dist/types/renders/renderTopBar.d.ts +3 -0
- package/dist/types/renders/renderWallets.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/business.d.ts +2 -0
- package/dist/types/utils/fetch.d.ts +2 -0
- package/dist/types/utils/translation.d.ts +63 -0
- package/dist/types/utils/types.d.ts +50 -0
- package/dist/types/utils/util.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7eb04064.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-30bf53bc.js');
|
|
7
|
+
const locale_utils = require('./locale.utils-6b4c0dbd.js');
|
|
8
|
+
|
|
9
|
+
const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
|
|
10
|
+
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
11
|
+
|
|
12
|
+
const PlayerElevateCard = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.endpoint = undefined;
|
|
16
|
+
this.theme = 'Dark';
|
|
17
|
+
this.session = undefined;
|
|
18
|
+
this.playerAvatarUrl = undefined;
|
|
19
|
+
this.language = 'en';
|
|
20
|
+
this.playerName = undefined;
|
|
21
|
+
this.dateFormat = 'yyyy-MM-dd';
|
|
22
|
+
this.mbSource = undefined;
|
|
23
|
+
this.clientStyling = '';
|
|
24
|
+
this.clientStylingUrl = '';
|
|
25
|
+
this.translationUrl = '';
|
|
26
|
+
this.pointExpireString = undefined;
|
|
27
|
+
this.playerLevelFlag = 0;
|
|
28
|
+
this.playerElevateLevel = undefined;
|
|
29
|
+
this.elevateWalletTotal = undefined;
|
|
30
|
+
}
|
|
31
|
+
onSessionOrEndpointChange() {
|
|
32
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
33
|
+
}
|
|
34
|
+
playerElevateLeveLoadedHandler(event) {
|
|
35
|
+
if (!event.detail) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (event.detail['elevateLevelWalletTotal']) {
|
|
39
|
+
this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
|
|
40
|
+
}
|
|
41
|
+
if (event.detail['elevateLevel']) {
|
|
42
|
+
this.playerElevateLevel = event.detail['elevateLevel'];
|
|
43
|
+
}
|
|
44
|
+
if (event.detail['pointExpireString']) {
|
|
45
|
+
this.pointExpireString = event.detail.xpExpireString;
|
|
46
|
+
}
|
|
47
|
+
if (event.detail.calculatedLevelFlag) {
|
|
48
|
+
this.playerLevelFlag = event.detail.calculatedLevelFlag;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
onRedeemClick() {
|
|
52
|
+
window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
|
|
53
|
+
}
|
|
54
|
+
componentWillLoad() {
|
|
55
|
+
this.paramProxy = {
|
|
56
|
+
endpoint: this.endpoint,
|
|
57
|
+
session: this.session,
|
|
58
|
+
language: this.language,
|
|
59
|
+
calculateLevelFlag: true,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
64
|
+
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
65
|
+
return (index.h("div", { key: 'e976417483a756b8f67d70feb09afb544efb3802', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '5de2dbc7d093bbcbe7b415122effa691c058ddb6', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '1a5b13640d37efab6dacee24e27f9f2bdc83cd0c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: 'e80389984932f77408c772ad9cb130de99e88504', params: this.paramProxy }), index.h("div", { key: 'fec6145e06a300bc044fec2f96e61dfe86f44d6c', class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (index.h(index.Fragment, { key: '90b1f057c5d1d5ae286a75c3d30182c16593bbe6' }, index.h("div", { key: 'cf5a0cc332fc6beafe079a2b500ebbc1f8d21b91', class: 'Content Row' }, index.h("div", { key: 'f3348ba8eb7bcb08085ab49ce2059c7fd86f862f', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '8fa96d942ee70d43ea0231b87f5d5de0b72198df', playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), index.h(playerElevateCardItems.PlayerPoints, { key: 'f774e833169326404d44dd8c2361bd89f0e5a9e6', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (index.h("div", { key: 'c85b28e71be4e13df275f2ae74f5b0c9538b3cda', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h("div", { key: '63ef752d5e25c3a65e5af7977b9e9f4846b8ba45', class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, index.h(playerElevateCardItems.PlayerNameDiv, { key: '7cc0d416fe0aadc1b7406b95b31d23ad2ca45ba4', playerName: this.playerName }), index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '38d7c5aed410c9bf55e9640a98f6f74fc2d38291', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '2e1305ff3bea4cb2f432f1187c40bb36a1464627' }), index.h(playerElevateCardItems.PlayerElevateCardRedeem, { key: '427405f246bec7a028b5164fc70292b769ea609b', onRedeemClick: this.onRedeemClick, language: this.language })))))))));
|
|
66
|
+
}
|
|
67
|
+
static get assetsDirs() { return ["../static"]; }
|
|
68
|
+
static get watchers() { return {
|
|
69
|
+
"session": ["onSessionOrEndpointChange"],
|
|
70
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
71
|
+
"language": ["onSessionOrEndpointChange"]
|
|
72
|
+
}; }
|
|
73
|
+
};
|
|
74
|
+
PlayerElevateCard.style = PlayerElevateCardStyle0;
|
|
75
|
+
|
|
76
|
+
exports.player_elevate_card = PlayerElevateCard;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7eb04064.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-30bf53bc.js');
|
|
7
|
+
const locale_utils = require('./locale.utils-6b4c0dbd.js');
|
|
8
|
+
|
|
9
|
+
const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:0px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}";
|
|
10
|
+
const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
11
|
+
|
|
12
|
+
const PlayerElevateLoyaltycard = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.endpoint = undefined;
|
|
16
|
+
this.theme = 'Dark';
|
|
17
|
+
this.session = undefined;
|
|
18
|
+
this.playerAvatarUrl = undefined;
|
|
19
|
+
this.language = 'en';
|
|
20
|
+
this.playerName = undefined;
|
|
21
|
+
this.dateFormat = 'yyyy-MM-dd';
|
|
22
|
+
this.mbSource = undefined;
|
|
23
|
+
this.clientStyling = '';
|
|
24
|
+
this.clientStylingUrl = '';
|
|
25
|
+
this.translationUrl = '';
|
|
26
|
+
this.pointExpireString = undefined;
|
|
27
|
+
this.playerElevateLevel = undefined;
|
|
28
|
+
this.elevateWalletTotal = undefined;
|
|
29
|
+
}
|
|
30
|
+
onSessionOrEndpointChange() {
|
|
31
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
32
|
+
}
|
|
33
|
+
playerElevateLeveLoadedHandler(event) {
|
|
34
|
+
if (!event.detail) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (event.detail['elevateLevelWalletTotal']) {
|
|
38
|
+
this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
|
|
39
|
+
}
|
|
40
|
+
if (event.detail['elevateLevel']) {
|
|
41
|
+
this.playerElevateLevel = event.detail['elevateLevel'];
|
|
42
|
+
}
|
|
43
|
+
if (event.detail['pointExpireString']) {
|
|
44
|
+
this.pointExpireString = event.detail.xpExpireString;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
onRedeemClick() {
|
|
48
|
+
window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
|
|
49
|
+
}
|
|
50
|
+
componentWillLoad() {
|
|
51
|
+
this.paramProxy = {
|
|
52
|
+
endpoint: this.endpoint,
|
|
53
|
+
session: this.session,
|
|
54
|
+
language: this.language,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
getNextLevelPoints() {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
return ((_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel) ? (_b = this.playerElevateLevel) === null || _b === void 0 ? void 0 : _b.nextLevel.entryPoints : -1;
|
|
60
|
+
}
|
|
61
|
+
getNextLevelTips() {
|
|
62
|
+
var _a;
|
|
63
|
+
//need xx to reach Diamond
|
|
64
|
+
let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
|
|
65
|
+
if (this.playerElevateLevel && nextLevel) {
|
|
66
|
+
const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
|
|
67
|
+
return locale_utils.translateWithParams('tipsForNextLevel', {
|
|
68
|
+
pointsToReach,
|
|
69
|
+
levelName: nextLevel.name,
|
|
70
|
+
lang: this.language
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
return '';
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
77
|
+
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
78
|
+
return (index.h("div", { key: 'aa8f0d13a1e1d26ea7307d05fc50cda507172949', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '485075740ced316bf89f69359bdc8642dbb2af8f', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '3648821972ac115a1c33705463cdc2cdb427a95b', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: '7b36c46a869bd4b014d1f04dbb718445b23ec964', params: this.paramProxy }), index.h("div", { key: 'f4e5aa453459f693e07c166028aec9b0b696c907', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'd5f1894120cba3e7cf3c54b838a025f469bc445e', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '112ee04598b23dda6911f043101c0c1631454d7f' }, index.h("div", { key: '7af4b6e937bbe73cc00aae0f27f8c93da47bb626', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '1b5037bfa196063f56cccd947c988a3aca0781b0', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '7b714e446f4e01edd4f4aefcc035d070b7d6a47b', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: '37ad8ce5dae374685e74f6772d28e79d251932e3', class: 'CardCell ElevateLevel' }, index.h("span", { key: '2d9dcf4b08fcecc927d3e8bdca74c75ff4336480', class: "LevelName", title: this.playerElevateLevel.name }, this.playerElevateLevel.name)), index.h("div", { key: 'cc89cbaa70d9583b9626da15e98f9fd61d82f81f', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: '32de4cac05a4fd5610af857b25e096a7cb9ba34d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: '298f492c8991384547c31396fc930b5c21f41501', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: 'aca4f5642c41db1c4b7fa04411331a5c25c655dd' }), index.h("div", { key: 'd841c5df319de105376c6eee24bc685757916aae', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '774279829f3f52ee5696550a855a833b39df8c81', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), this.playerElevateLevel.expireTime &&
|
|
79
|
+
index.h(playerElevateCardItems.LoyaltyLevelExpireDay, { key: '3a4319e502e85b26cb220942492b161ad842be82', expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat, language: this.language })))))))));
|
|
80
|
+
}
|
|
81
|
+
static get watchers() { return {
|
|
82
|
+
"session": ["onSessionOrEndpointChange"],
|
|
83
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
84
|
+
"language": ["onSessionOrEndpointChange"]
|
|
85
|
+
}; }
|
|
86
|
+
};
|
|
87
|
+
PlayerElevateLoyaltycard.style = PlayerElevateLoyaltycardStyle0;
|
|
88
|
+
|
|
89
|
+
exports.player_elevate_loyaltycard = PlayerElevateLoyaltycard;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7eb04064.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
|
+
*/
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-elevate-points-history-jojogroup.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
22
|
+
return index.bootstrapLazy([["bonus-pagination-limits_6.cjs",[[1,"player-elevate-points-history-jojogroup",{"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"],"currencyPrecision":[1538,"currency-precision"],"enableRakeback":[1540,"enable-rakeback"],"language":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"locale":[32],"type":[32],"pageSetting":[32],"pointsWallets":[32],"validWallets":[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],"mbSource":[513,"mb-source"],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[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"],"navItemAccount":[1538,"nav-item-account"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32],"showAsEllipsisMid":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]],["player-elevate-card.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-loyaltycard.cjs",[[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card.cjs",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]]], options);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-7eb04064.js');
|
|
6
|
+
const locale_utils = require('./locale.utils-6b4c0dbd.js');
|
|
7
|
+
|
|
8
|
+
const playerRakebackCardCss = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}";
|
|
9
|
+
const PlayerRakebackCardStyle0 = playerRakebackCardCss;
|
|
10
|
+
|
|
11
|
+
const PlayerRakebackCard = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
/**
|
|
15
|
+
* Truncate number to specified decimal places (without rounding)
|
|
16
|
+
* @param num Number to be processed
|
|
17
|
+
* @param digits Number of decimal places to keep
|
|
18
|
+
*/
|
|
19
|
+
this.truncateNumber = (num, digits = 2) => {
|
|
20
|
+
const str = num.toString();
|
|
21
|
+
const [integer, decimal = ''] = str.split('.');
|
|
22
|
+
return digits > 0 ? `${integer}.${decimal ? decimal.slice(0, digits) : '00'}` : `${integer}`;
|
|
23
|
+
};
|
|
24
|
+
this.sendRakebackClaimedEvent = () => {
|
|
25
|
+
if (!this.endpoint || !this.session || !this.rakebackInfo.claimable || this.isLoading) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
window.postMessage({ type: 'RakebackClaimTrigger', points: this.rakebackInfo.points }, window.location.href);
|
|
29
|
+
};
|
|
30
|
+
this.endpoint = undefined;
|
|
31
|
+
this.theme = 'Dark';
|
|
32
|
+
this.session = undefined;
|
|
33
|
+
this.language = 'en';
|
|
34
|
+
this.mbSource = undefined;
|
|
35
|
+
this.clientStyling = '';
|
|
36
|
+
this.clientStylingUrl = '';
|
|
37
|
+
this.translationUrl = '';
|
|
38
|
+
this.show = true;
|
|
39
|
+
this.rakebackInfo = {
|
|
40
|
+
hasRakebackWallet: false,
|
|
41
|
+
points: 0.0,
|
|
42
|
+
currency: 'TRY',
|
|
43
|
+
claimable: false,
|
|
44
|
+
minutesCanClaim: 0,
|
|
45
|
+
showCanClaim: false
|
|
46
|
+
};
|
|
47
|
+
this.isLoading = false;
|
|
48
|
+
this.coolingOffPeriod = false;
|
|
49
|
+
this.showTheWidget = false;
|
|
50
|
+
}
|
|
51
|
+
async onSessionOrEndpointChange() {
|
|
52
|
+
await this.loadRakebackInfo();
|
|
53
|
+
}
|
|
54
|
+
async onShowOrHasRakebackWalletChange() {
|
|
55
|
+
this.showTheWidget = this.show && this.rakebackInfo.hasRakebackWallet;
|
|
56
|
+
}
|
|
57
|
+
handleMessage(event) {
|
|
58
|
+
const { type } = event === null || event === void 0 ? void 0 : event.data;
|
|
59
|
+
if (type === 'RakebackClaimConfirmed') {
|
|
60
|
+
this.claimRakeback();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
async loadRakebackInfo() {
|
|
64
|
+
if (!this.endpoint || !this.session) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.isLoading = true;
|
|
68
|
+
try {
|
|
69
|
+
const url = new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`);
|
|
70
|
+
const response = await fetch(url.href, {
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: {
|
|
73
|
+
'X-Sessionid': this.session,
|
|
74
|
+
'Content-Type': 'application/json'
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
if (!response.ok) {
|
|
78
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
79
|
+
}
|
|
80
|
+
const data = await response.json();
|
|
81
|
+
if (!data.success) {
|
|
82
|
+
throw new Error(data.errorMessage || 'Failed to load rakeback info');
|
|
83
|
+
}
|
|
84
|
+
const { rakebackWallet } = data === null || data === void 0 ? void 0 : data.data;
|
|
85
|
+
if (!rakebackWallet) {
|
|
86
|
+
window.postMessage({ type: 'RakebackWalletMissing' }, window.location.href);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const { total, claimable, currency, minutesCanClaim } = rakebackWallet || {};
|
|
90
|
+
this.rakebackInfo = {
|
|
91
|
+
hasRakebackWallet: true,
|
|
92
|
+
points: (total === null || total === void 0 ? void 0 : total.points) ? this.truncateNumber(total.points, 2) : `0.00`,
|
|
93
|
+
currency: currency || '',
|
|
94
|
+
claimable: claimable || false,
|
|
95
|
+
showCanClaim: Boolean(minutesCanClaim && minutesCanClaim > 0),
|
|
96
|
+
minutesCanClaim: minutesCanClaim
|
|
97
|
+
? minutesCanClaim <= 1 && minutesCanClaim > 0
|
|
98
|
+
? 1
|
|
99
|
+
: this.truncateNumber(minutesCanClaim, 0)
|
|
100
|
+
: 0
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
catch (err) {
|
|
104
|
+
console.error('Error loading rakeback info:', err);
|
|
105
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
106
|
+
}
|
|
107
|
+
finally {
|
|
108
|
+
this.isLoading = false;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async claimRakeback() {
|
|
112
|
+
this.isLoading = true;
|
|
113
|
+
try {
|
|
114
|
+
const url = new URL(`${this.endpoint}/v1/elevate/rakeback/claim`);
|
|
115
|
+
const response = await fetch(url.href, {
|
|
116
|
+
method: 'PUT',
|
|
117
|
+
headers: {
|
|
118
|
+
'X-Sessionid': this.session,
|
|
119
|
+
'Content-Type': 'application/json'
|
|
120
|
+
},
|
|
121
|
+
body: JSON.stringify({})
|
|
122
|
+
});
|
|
123
|
+
if (!response.ok) {
|
|
124
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
125
|
+
}
|
|
126
|
+
const data = await response.json();
|
|
127
|
+
if (!data.success) {
|
|
128
|
+
throw new Error(data.errorMessage || 'Failed to claim rakeback');
|
|
129
|
+
}
|
|
130
|
+
// Refresh rakeback information
|
|
131
|
+
await this.loadRakebackInfo();
|
|
132
|
+
// Send event notification for successful redemption
|
|
133
|
+
window.postMessage({ type: 'RakebackClaimed', points: this.rakebackInfo.points }, window.location.href);
|
|
134
|
+
}
|
|
135
|
+
catch (err) {
|
|
136
|
+
console.error('Error claiming rakeback:', err);
|
|
137
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
138
|
+
}
|
|
139
|
+
finally {
|
|
140
|
+
this.isLoading = false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
async componentWillLoad() {
|
|
144
|
+
await this.loadRakebackInfo();
|
|
145
|
+
await this.onShowOrHasRakebackWalletChange();
|
|
146
|
+
}
|
|
147
|
+
render() {
|
|
148
|
+
return this.showTheWidget ? (index.h("div", { class: "RakebackCard" }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("div", { class: "RakebackCardContent" }, index.h("div", { class: "RakebackTitle" }, locale_utils.translate('rakebackTitle', this.language)), index.h("div", { class: "RakebackDetails" }, index.h("div", { class: "RakebackInfo" }, index.h("div", { class: "RakebackNumContainer" }, index.h("span", { class: "RakebackNum" }, this.rakebackInfo.points), index.h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), index.h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, locale_utils.translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (index.h("div", { class: "RakebackCoolOff" }, locale_utils.translateWithParams('minutesCanClaim', {
|
|
149
|
+
lang: this.language,
|
|
150
|
+
minutes: this.rakebackInfo.minutesCanClaim
|
|
151
|
+
})))))) : null;
|
|
152
|
+
}
|
|
153
|
+
static get watchers() { return {
|
|
154
|
+
"session": ["onSessionOrEndpointChange"],
|
|
155
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
156
|
+
"language": ["onSessionOrEndpointChange"],
|
|
157
|
+
"show": ["onShowOrHasRakebackWalletChange"],
|
|
158
|
+
"rakebackInfo": ["onShowOrHasRakebackWalletChange"]
|
|
159
|
+
}; }
|
|
160
|
+
};
|
|
161
|
+
PlayerRakebackCard.style = PlayerRakebackCardStyle0;
|
|
162
|
+
|
|
163
|
+
exports.player_rakeback_card = PlayerRakebackCard;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"components/player-elevate-points-history-jojogroup/player-elevate-points-history-jojogroup.js"
|
|
4
|
+
],
|
|
5
|
+
"compiler": {
|
|
6
|
+
"name": "@stencil/core",
|
|
7
|
+
"version": "4.19.2",
|
|
8
|
+
"typescriptVersion": "5.4.5"
|
|
9
|
+
},
|
|
10
|
+
"collections": [
|
|
11
|
+
{
|
|
12
|
+
"name": "@everymatrix/bonus-pagination-limits",
|
|
13
|
+
"tags": [
|
|
14
|
+
"bonus-pagination-limits"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "@everymatrix/bonus-pagination-nav",
|
|
19
|
+
"tags": [
|
|
20
|
+
"bonus-pagination-nav"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "@everymatrix/general-styling-wrapper",
|
|
25
|
+
"tags": [
|
|
26
|
+
"general-styling-wrapper"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "@everymatrix/player-elevate-card",
|
|
31
|
+
"tags": [
|
|
32
|
+
"player-elevate-card",
|
|
33
|
+
"player-elevate-card-data",
|
|
34
|
+
"player-elevate-loyaltycard",
|
|
35
|
+
"player-elevate-pointcard",
|
|
36
|
+
"player-rakeback-card"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"bundles": []
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlayerElevatePointsHistory } from './player-elevate-points-history-jojogroup';
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
main {
|
|
6
|
+
max-width: 420px;
|
|
7
|
+
}
|
|
8
|
+
main player-elevate-pointcard {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 220px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.PlayerElevatePointsDetaisContainer {
|
|
14
|
+
background: #FFFFFF;
|
|
15
|
+
padding: 20px 10px 0;
|
|
16
|
+
margin-top: -100px;
|
|
17
|
+
position: relative;
|
|
18
|
+
min-height: 360px;
|
|
19
|
+
}
|
|
20
|
+
.PlayerElevatePointsDetaisContainer .ReloadMsg {
|
|
21
|
+
padding: 20px;
|
|
22
|
+
}
|
|
23
|
+
.PlayerElevatePointsDetaisContainer .ReloadMsg a.Reload {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.TitleContainer {
|
|
28
|
+
font-size: 20px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: 25px;
|
|
31
|
+
letter-spacing: 0em;
|
|
32
|
+
text-align: left;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.TopBarContainer {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
}
|
|
42
|
+
.TopBarContainer .TitleContainer {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.TopBarContainer .Title {
|
|
46
|
+
background: #303030;
|
|
47
|
+
padding: 5px 16px;
|
|
48
|
+
color: #FFFFFF;
|
|
49
|
+
box-shadow: 0px 4px 13px 0px rgba(0, 0, 0, 0.2509803922);
|
|
50
|
+
border-radius: 8px;
|
|
51
|
+
width: fit-content;
|
|
52
|
+
margin-left: 7px;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.PaginationContainer {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.MonthStat {
|
|
64
|
+
margin-top: 25px;
|
|
65
|
+
display: none;
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
font-weight: 500;
|
|
68
|
+
line-height: 19px;
|
|
69
|
+
letter-spacing: 0px;
|
|
70
|
+
text-align: left;
|
|
71
|
+
color: #242424;
|
|
72
|
+
}
|
|
73
|
+
.MonthStat .Amount {
|
|
74
|
+
color: #53B65A;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.BackImageContainer {
|
|
78
|
+
width: 35px;
|
|
79
|
+
height: 35px;
|
|
80
|
+
flex: 0 0 35px;
|
|
81
|
+
border-radius: 6px;
|
|
82
|
+
text-align: center;
|
|
83
|
+
line-height: 35px;
|
|
84
|
+
box-shadow: 0px 4px 40px 0px rgba(138, 149, 158, 0.2);
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.Records {
|
|
89
|
+
margin-top: 16px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.MenuImage, .BackImage {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Row {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
}
|
|
102
|
+
.Row:nth-child(n+2) {
|
|
103
|
+
margin-top: 3px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Tabs.Row {
|
|
107
|
+
justify-content: space-around;
|
|
108
|
+
margin-top: 20px;
|
|
109
|
+
}
|
|
110
|
+
.Tabs.Row .TabText {
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
margin: 10px 15px;
|
|
113
|
+
color: #9C9C9C;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
.Tabs.Row .TabText.active {
|
|
117
|
+
color: #242424;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
}
|
|
120
|
+
.Tabs.Row .TabBorderBottom {
|
|
121
|
+
height: 5px;
|
|
122
|
+
border-radius: 4px;
|
|
123
|
+
background: transparent;
|
|
124
|
+
}
|
|
125
|
+
.Tabs.Row .TabBorderBottom.active {
|
|
126
|
+
background: #242424;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.RecordContainer {
|
|
130
|
+
margin: 5px 0;
|
|
131
|
+
padding: 10px;
|
|
132
|
+
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1019607843);
|
|
133
|
+
border-radius: 5px;
|
|
134
|
+
}
|
|
135
|
+
.RecordContainer .Title {
|
|
136
|
+
color: #242424;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
line-height: 19px;
|
|
140
|
+
letter-spacing: 0px;
|
|
141
|
+
text-align: left;
|
|
142
|
+
}
|
|
143
|
+
.RecordContainer .HistoryPoints {
|
|
144
|
+
text-transform: lowercase;
|
|
145
|
+
}
|
|
146
|
+
.RecordContainer .Amount {
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
font-weight: 600;
|
|
149
|
+
line-height: 19px;
|
|
150
|
+
letter-spacing: 0px;
|
|
151
|
+
text-align: left;
|
|
152
|
+
}
|
|
153
|
+
.RecordContainer .Amount.Positive {
|
|
154
|
+
color: #53B65A;
|
|
155
|
+
}
|
|
156
|
+
.RecordContainer .Amount.Negative {
|
|
157
|
+
color: #B41E2D;
|
|
158
|
+
}
|
|
159
|
+
.RecordContainer .DateTime {
|
|
160
|
+
color: #9C9C9C;
|
|
161
|
+
font-size: 16px;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
line-height: 19px;
|
|
164
|
+
letter-spacing: 0px;
|
|
165
|
+
text-align: left;
|
|
166
|
+
}
|
|
167
|
+
.RecordContainer .Tag {
|
|
168
|
+
font-size: 12px;
|
|
169
|
+
font-weight: 500;
|
|
170
|
+
line-height: 14px;
|
|
171
|
+
letter-spacing: 0em;
|
|
172
|
+
text-align: center;
|
|
173
|
+
color: #767171;
|
|
174
|
+
padding: 8px 30px;
|
|
175
|
+
border-radius: 8px;
|
|
176
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.NoContent {
|
|
180
|
+
font-size: 16px;
|
|
181
|
+
color: var(--emw--color-black-100, #afafaf);
|
|
182
|
+
text-align: center;
|
|
183
|
+
height: 120px;
|
|
184
|
+
line-height: 120px;
|
|
185
|
+
}
|