@everymatrix/player-elevate-level-jojogroup 1.92.0 → 1.92.1
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/bonus-elevate-levels-jojogroup_7.cjs.entry.js +2 -2
- package/dist/cjs/{locale.utils-457021be.js → locale.utils-7e9b7d77.js} +58 -12
- package/dist/cjs/{player-elevate-card-items-dd738883.js → player-elevate-card-items-d1fd2cc5.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +2 -2
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +2 -2
- package/dist/cjs/player-rakeback-card.cjs.entry.js +1 -1
- package/dist/esm/bonus-elevate-levels-jojogroup_7.entry.js +2 -2
- package/dist/esm/{locale.utils-471ae737.js → locale.utils-10bf5b6c.js} +58 -12
- package/dist/esm/{player-elevate-card-items-20b4cc23.js → player-elevate-card-items-19d02d44.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +2 -2
- package/dist/esm/player-elevate-pointcard.entry.js +2 -2
- package/dist/esm/player-rakeback-card.entry.js +1 -1
- package/dist/player-elevate-level-jojogroup/bonus-elevate-levels-jojogroup_7.entry.js +1 -1
- package/dist/player-elevate-level-jojogroup/locale.utils-10bf5b6c.js +1 -0
- package/dist/player-elevate-level-jojogroup/{player-elevate-card-items-20b4cc23.js → player-elevate-card-items-19d02d44.js} +1 -1
- package/dist/player-elevate-level-jojogroup/player-elevate-card.entry.js +1 -1
- package/dist/player-elevate-level-jojogroup/player-elevate-pointcard.entry.js +1 -1
- package/dist/player-elevate-level-jojogroup/player-rakeback-card.entry.js +1 -1
- package/package.json +1 -1
- package/dist/player-elevate-level-jojogroup/locale.utils-471ae737.js +0 -1
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-92db62d0.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-29be38a3.js');
|
|
7
|
-
const locale_utils$1 = require('./locale.utils-
|
|
8
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
7
|
+
const locale_utils$1 = require('./locale.utils-7e9b7d77.js');
|
|
8
|
+
const playerElevateCardItems = require('./player-elevate-card-items-d1fd2cc5.js');
|
|
9
9
|
|
|
10
10
|
const bonusElevateLevelsJojogroupCss = ":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}";
|
|
11
11
|
const BonusElevateLevelsJojogroupStyle0 = bonusElevateLevelsJojogroupCss;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
-
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
|
|
5
4
|
const TRANSLATIONS = {
|
|
6
5
|
en: {
|
|
7
6
|
redeem: 'Redeem',
|
|
@@ -115,11 +114,31 @@ const TRANSLATIONS = {
|
|
|
115
114
|
minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes'
|
|
116
115
|
},
|
|
117
116
|
es: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
claim: "Reclamar",
|
|
118
|
+
rakebackTitle: "Reembolso de comisión actual",
|
|
119
|
+
minutesCanClaim: "La siguiente solicitud estará disponible en ${minutes} minutos",
|
|
120
|
+
redeem: "Canjear",
|
|
121
|
+
expireOn: "Fecha de vencimiento ",
|
|
122
|
+
coinsToBeExpired: "La validez de ${expirationPoints} monedas expirará en ${expireDay} días",
|
|
123
|
+
coinsToBeExpiredDay: "La validez de ${expirationPoints} monedas expirará en ${expireDay} días",
|
|
124
|
+
coinsToBeExpiredHours: "La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",
|
|
125
|
+
coinsToBeExpiredHour: "La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",
|
|
126
|
+
coinsToBeExpiredMinutes: "La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",
|
|
127
|
+
coinsToBeExpiredMinute: "La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",
|
|
128
|
+
pointsToBeExpired: "La validez de ${expirationPoints} puntos expirará en ${expireDay} días",
|
|
129
|
+
pointsToBeExpiredDay: "La validez de ${expirationPoints} puntos expirará en ${expireDay} días",
|
|
130
|
+
pointsToBeExpiredHours: "La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",
|
|
131
|
+
pointsToBeExpiredHour: "La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",
|
|
132
|
+
pointsToBeExpiredMinutes: "La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",
|
|
133
|
+
pointsToBeExpiredMinute: "La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",
|
|
134
|
+
tipsForNextLevel: "Se requieren ${pointsToReach} para alcanzar el nivel ${levelName}",
|
|
135
|
+
spendablePoints: "Puntos disponibles:",
|
|
136
|
+
details: "Detalles",
|
|
137
|
+
earningRules: "Reglas de obtención",
|
|
138
|
+
xp: "XP",
|
|
139
|
+
sp: "Monedas",
|
|
140
|
+
termAndConditions: "Términos y condiciones",
|
|
141
|
+
loading: "Cargando"
|
|
123
142
|
},
|
|
124
143
|
tr: {
|
|
125
144
|
redeem: 'Kullan',
|
|
@@ -148,6 +167,33 @@ const TRANSLATIONS = {
|
|
|
148
167
|
loading: 'Yükleniyor',
|
|
149
168
|
minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir'
|
|
150
169
|
},
|
|
170
|
+
az: {
|
|
171
|
+
claim: "iddia",
|
|
172
|
+
rakebackTitle: "Mövcud Rakeback",
|
|
173
|
+
minutesCanClaim: "Növbəti İddia ${minutes} dəqiqə ərzində əlçatandır",
|
|
174
|
+
redeem: "istifadə edin",
|
|
175
|
+
expireOn: "İstifadə müddəti ",
|
|
176
|
+
coinsToBeExpired: "${expirationPoints} sikkə ${expireDay} günə bitəcək",
|
|
177
|
+
coinsToBeExpiredDay: "${expirationPoints} sikkə ${expireDay} günə bitəcək",
|
|
178
|
+
coinsToBeExpiredHours: "${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",
|
|
179
|
+
coinsToBeExpiredHour: "${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",
|
|
180
|
+
coinsToBeExpiredMinutes: "${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",
|
|
181
|
+
coinsToBeExpiredMinute: "${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",
|
|
182
|
+
pointsToBeExpired: "${expirationPoints} balın müddəti ${expireDay} günə bitəcək",
|
|
183
|
+
pointsToBeExpiredDay: "${expirationPoints} balın müddəti ${expireDay} günə bitəcək",
|
|
184
|
+
pointsToBeExpiredHours: "${expirationPoints} bal ${expireDay} saat ərzində etibarsız olacaq",
|
|
185
|
+
pointsToBeExpiredHour: "${expirationPoints} balın müddəti ${expireDay} saat ərzində bitəcək",
|
|
186
|
+
pointsToBeExpiredMinutes: "${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",
|
|
187
|
+
pointsToBeExpiredMinute: "${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",
|
|
188
|
+
tipsForNextLevel: "${pointsToReach} ${levelName} səviyyəsinə çatmaq üçün tələb olunur",
|
|
189
|
+
spendablePoints: "Xərclənən xallar:",
|
|
190
|
+
details: "Detal",
|
|
191
|
+
earningRules: "Qalib Qaydalar",
|
|
192
|
+
xp: "XP",
|
|
193
|
+
sp: "sikkələr",
|
|
194
|
+
termAndConditions: "Qaydalar və Şərtlər",
|
|
195
|
+
loading: "Yüklənir"
|
|
196
|
+
},
|
|
151
197
|
ru: {
|
|
152
198
|
redeem: 'Redeem',
|
|
153
199
|
claim: 'Требовать',
|
|
@@ -216,14 +262,14 @@ const TRANSLATIONS = {
|
|
|
216
262
|
}
|
|
217
263
|
};
|
|
218
264
|
const translate = (key, customLang) => {
|
|
219
|
-
const lang = customLang;
|
|
220
|
-
return TRANSLATIONS[lang
|
|
265
|
+
const lang = customLang && TRANSLATIONS[customLang] ? customLang : DEFAULT_LANGUAGE;
|
|
266
|
+
return TRANSLATIONS[lang][key];
|
|
221
267
|
};
|
|
222
268
|
const translateWithParams = (key, params) => {
|
|
223
|
-
const lang = params['lang'];
|
|
224
|
-
let templateString = TRANSLATIONS[lang
|
|
225
|
-
if (!params) {
|
|
226
|
-
return
|
|
269
|
+
const lang = (params === null || params === void 0 ? void 0 : params['lang']) && TRANSLATIONS[params['lang']] ? params['lang'] : DEFAULT_LANGUAGE;
|
|
270
|
+
let templateString = TRANSLATIONS[lang][key];
|
|
271
|
+
if (!templateString || !params) {
|
|
272
|
+
return templateString;
|
|
227
273
|
}
|
|
228
274
|
Object.keys(params).forEach((paramName) => {
|
|
229
275
|
templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-92db62d0.js');
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
7
|
-
const locale_utils = require('./locale.utils-
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-d1fd2cc5.js');
|
|
7
|
+
const locale_utils = require('./locale.utils-7e9b7d77.js');
|
|
8
8
|
|
|
9
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
10
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-92db62d0.js');
|
|
6
|
-
const locale_utils = require('./locale.utils-
|
|
7
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
6
|
+
const locale_utils = require('./locale.utils-7e9b7d77.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-d1fd2cc5.js');
|
|
8
8
|
|
|
9
9
|
const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--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}";
|
|
10
10
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-92db62d0.js');
|
|
6
|
-
const locale_utils = require('./locale.utils-
|
|
6
|
+
const locale_utils = require('./locale.utils-7e9b7d77.js');
|
|
7
7
|
|
|
8
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
9
|
const PlayerRakebackCardStyle0 = playerRakebackCardCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent, g as getElement, a as getAssetPath, F as Fragment } from './index-31c95277.js';
|
|
2
2
|
import { t as translate, T as TRANSLATIONS } from './locale.utils-9f505f70.js';
|
|
3
|
-
import { t as translateWithParams, T as TRANSLATIONS$1 } from './locale.utils-
|
|
4
|
-
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, P as PlayerAvatar, a as PlayerPoints, b as PlayerLoyaltyProcess, L as LoyaltyLevelExpireDay } from './player-elevate-card-items-
|
|
3
|
+
import { t as translateWithParams, T as TRANSLATIONS$1 } from './locale.utils-10bf5b6c.js';
|
|
4
|
+
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, P as PlayerAvatar, a as PlayerPoints, b as PlayerLoyaltyProcess, L as LoyaltyLevelExpireDay } from './player-elevate-card-items-19d02d44.js';
|
|
5
5
|
|
|
6
6
|
const bonusElevateLevelsJojogroupCss = ":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}";
|
|
7
7
|
const BonusElevateLevelsJojogroupStyle0 = bonusElevateLevelsJojogroupCss;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
|
-
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
|
|
3
2
|
const TRANSLATIONS = {
|
|
4
3
|
en: {
|
|
5
4
|
redeem: 'Redeem',
|
|
@@ -113,11 +112,31 @@ const TRANSLATIONS = {
|
|
|
113
112
|
minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes'
|
|
114
113
|
},
|
|
115
114
|
es: {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
claim: "Reclamar",
|
|
116
|
+
rakebackTitle: "Reembolso de comisión actual",
|
|
117
|
+
minutesCanClaim: "La siguiente solicitud estará disponible en ${minutes} minutos",
|
|
118
|
+
redeem: "Canjear",
|
|
119
|
+
expireOn: "Fecha de vencimiento ",
|
|
120
|
+
coinsToBeExpired: "La validez de ${expirationPoints} monedas expirará en ${expireDay} días",
|
|
121
|
+
coinsToBeExpiredDay: "La validez de ${expirationPoints} monedas expirará en ${expireDay} días",
|
|
122
|
+
coinsToBeExpiredHours: "La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",
|
|
123
|
+
coinsToBeExpiredHour: "La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",
|
|
124
|
+
coinsToBeExpiredMinutes: "La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",
|
|
125
|
+
coinsToBeExpiredMinute: "La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",
|
|
126
|
+
pointsToBeExpired: "La validez de ${expirationPoints} puntos expirará en ${expireDay} días",
|
|
127
|
+
pointsToBeExpiredDay: "La validez de ${expirationPoints} puntos expirará en ${expireDay} días",
|
|
128
|
+
pointsToBeExpiredHours: "La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",
|
|
129
|
+
pointsToBeExpiredHour: "La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",
|
|
130
|
+
pointsToBeExpiredMinutes: "La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",
|
|
131
|
+
pointsToBeExpiredMinute: "La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",
|
|
132
|
+
tipsForNextLevel: "Se requieren ${pointsToReach} para alcanzar el nivel ${levelName}",
|
|
133
|
+
spendablePoints: "Puntos disponibles:",
|
|
134
|
+
details: "Detalles",
|
|
135
|
+
earningRules: "Reglas de obtención",
|
|
136
|
+
xp: "XP",
|
|
137
|
+
sp: "Monedas",
|
|
138
|
+
termAndConditions: "Términos y condiciones",
|
|
139
|
+
loading: "Cargando"
|
|
121
140
|
},
|
|
122
141
|
tr: {
|
|
123
142
|
redeem: 'Kullan',
|
|
@@ -146,6 +165,33 @@ const TRANSLATIONS = {
|
|
|
146
165
|
loading: 'Yükleniyor',
|
|
147
166
|
minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir'
|
|
148
167
|
},
|
|
168
|
+
az: {
|
|
169
|
+
claim: "iddia",
|
|
170
|
+
rakebackTitle: "Mövcud Rakeback",
|
|
171
|
+
minutesCanClaim: "Növbəti İddia ${minutes} dəqiqə ərzində əlçatandır",
|
|
172
|
+
redeem: "istifadə edin",
|
|
173
|
+
expireOn: "İstifadə müddəti ",
|
|
174
|
+
coinsToBeExpired: "${expirationPoints} sikkə ${expireDay} günə bitəcək",
|
|
175
|
+
coinsToBeExpiredDay: "${expirationPoints} sikkə ${expireDay} günə bitəcək",
|
|
176
|
+
coinsToBeExpiredHours: "${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",
|
|
177
|
+
coinsToBeExpiredHour: "${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",
|
|
178
|
+
coinsToBeExpiredMinutes: "${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",
|
|
179
|
+
coinsToBeExpiredMinute: "${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",
|
|
180
|
+
pointsToBeExpired: "${expirationPoints} balın müddəti ${expireDay} günə bitəcək",
|
|
181
|
+
pointsToBeExpiredDay: "${expirationPoints} balın müddəti ${expireDay} günə bitəcək",
|
|
182
|
+
pointsToBeExpiredHours: "${expirationPoints} bal ${expireDay} saat ərzində etibarsız olacaq",
|
|
183
|
+
pointsToBeExpiredHour: "${expirationPoints} balın müddəti ${expireDay} saat ərzində bitəcək",
|
|
184
|
+
pointsToBeExpiredMinutes: "${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",
|
|
185
|
+
pointsToBeExpiredMinute: "${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",
|
|
186
|
+
tipsForNextLevel: "${pointsToReach} ${levelName} səviyyəsinə çatmaq üçün tələb olunur",
|
|
187
|
+
spendablePoints: "Xərclənən xallar:",
|
|
188
|
+
details: "Detal",
|
|
189
|
+
earningRules: "Qalib Qaydalar",
|
|
190
|
+
xp: "XP",
|
|
191
|
+
sp: "sikkələr",
|
|
192
|
+
termAndConditions: "Qaydalar və Şərtlər",
|
|
193
|
+
loading: "Yüklənir"
|
|
194
|
+
},
|
|
149
195
|
ru: {
|
|
150
196
|
redeem: 'Redeem',
|
|
151
197
|
claim: 'Требовать',
|
|
@@ -214,14 +260,14 @@ const TRANSLATIONS = {
|
|
|
214
260
|
}
|
|
215
261
|
};
|
|
216
262
|
const translate = (key, customLang) => {
|
|
217
|
-
const lang = customLang;
|
|
218
|
-
return TRANSLATIONS[lang
|
|
263
|
+
const lang = customLang && TRANSLATIONS[customLang] ? customLang : DEFAULT_LANGUAGE;
|
|
264
|
+
return TRANSLATIONS[lang][key];
|
|
219
265
|
};
|
|
220
266
|
const translateWithParams = (key, params) => {
|
|
221
|
-
const lang = params['lang'];
|
|
222
|
-
let templateString = TRANSLATIONS[lang
|
|
223
|
-
if (!params) {
|
|
224
|
-
return
|
|
267
|
+
const lang = (params === null || params === void 0 ? void 0 : params['lang']) && TRANSLATIONS[params['lang']] ? params['lang'] : DEFAULT_LANGUAGE;
|
|
268
|
+
let templateString = TRANSLATIONS[lang][key];
|
|
269
|
+
if (!templateString || !params) {
|
|
270
|
+
return templateString;
|
|
225
271
|
}
|
|
226
272
|
Object.keys(params).forEach((paramName) => {
|
|
227
273
|
templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-31c95277.js';
|
|
2
|
-
import { P as PlayerAvatar, a as PlayerPoints, c as PlayerNameDiv, d as PlayerElevateLoyaltyLevel, b as PlayerLoyaltyProcess, e as PlayerElevateCardRedeem } from './player-elevate-card-items-
|
|
3
|
-
import { T as TRANSLATIONS } from './locale.utils-
|
|
2
|
+
import { P as PlayerAvatar, a as PlayerPoints, c as PlayerNameDiv, d as PlayerElevateLoyaltyLevel, b as PlayerLoyaltyProcess, e as PlayerElevateCardRedeem } from './player-elevate-card-items-19d02d44.js';
|
|
3
|
+
import { T as TRANSLATIONS } from './locale.utils-10bf5b6c.js';
|
|
4
4
|
|
|
5
5
|
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}";
|
|
6
6
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-31c95277.js';
|
|
2
|
-
import { T as TRANSLATIONS, a as translate } from './locale.utils-
|
|
3
|
-
import { P as PlayerAvatar, a as PlayerPoints } from './player-elevate-card-items-
|
|
2
|
+
import { T as TRANSLATIONS, a as translate } from './locale.utils-10bf5b6c.js';
|
|
3
|
+
import { P as PlayerAvatar, a as PlayerPoints } from './player-elevate-card-items-19d02d44.js';
|
|
4
4
|
|
|
5
5
|
const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--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}";
|
|
6
6
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-31c95277.js';
|
|
2
|
-
import { a as translate, t as translateWithParams, T as TRANSLATIONS } from './locale.utils-
|
|
2
|
+
import { a as translate, t as translateWithParams, T as TRANSLATIONS } from './locale.utils-10bf5b6c.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
5
5
|
const PlayerRakebackCardStyle0 = playerRakebackCardCss;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as n,c as i,g as a,a as l,F as o}from"./index-31c95277.js";import{t as r,T as s}from"./locale.utils-9f505f70.js";import{t as d,T as c}from"./locale.utils-471ae737.js";import{r as h,t as v,g as f,P as g,a as p,b,L as u}from"./player-elevate-card-items-20b4cc23.js";const y=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.endpoint=void 0,this.language="en",this.translationUrl="",this.selectedLevelId=void 0,this.showDefault=void 0,this.elevateLevelParamProxy=void 0,this.elevateLevels=[],this.errorMessage=void 0}elevateLevelsDataChangeHandler(e){e.detail&&(e.detail.elevateLevels&&(this.elevateLevels=[...e.detail.elevateLevels]),e.detail.clearError&&(this.errorMessage=null),e.detail.errorMessage&&e.detail.errorMessage.errorWhenLoadElevateLevels&&(this.errorMessage=r("loadElevateLevelErrorMessage",this.language)))}onSessionOrEndpointChange(){this.elevateLevelParamProxy=Object.assign(Object.assign({},this.elevateLevelParamProxy),{endpoint:this.endpoint,language:this.language})}onTCClick(){window.postMessage({type:"termAndConditionClicked"},window.location.href)}componentWillLoad(){this.elevateLevelParamProxy={endpoint:this.endpoint,language:this.language,selectedLevelId:this.selectedLevelId,showDefault:this.showDefault}}render(){var e;return t("div",{key:"3cdca540038915c73a99cca214d1d8091a928cb8",class:"ElevateLevelContent"},t("elevate-levels-data",{key:"1e1a73074ceb36ce5554b7796ca07c2efb4f73ce",scopeParams:this.elevateLevelParamProxy}),t("div",{key:"a1c66508053cac8549d23fabb291ff273079786c",class:"LevelContent"},(null===(e=this.elevateLevels)||void 0===e?void 0:e.length)?this.elevateLevels.map((e=>t("elevate-level-presentation",{elevateLevel:e}))):t("div",null,r("noLevelsSet",this.language))),this.errorMessage&&t("div",{key:"ed47949b39a95528d1a7f5acb9fe5ea1b596d6aa",class:"ErrorMessage"},this.errorMessage),t("general-styling-wrapper",{key:"c033776c424e2bc697f23a5a7abe34746fd6af7f",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:s,translationUrl:this.translationUrl,mbSource:this.mbSource}))}static get watchers(){return{endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};y.style=":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}";const w=class{constructor(t){e(this,t),this.elevateLevel=void 0}render(){return t(n,{key:"c02f0c4ca19226058b810f279273affa7b3398cc"},t("div",{key:"da5e3ce17167447ee462b1318f7d407f48781062",class:"Row Desc"},t("h3",{key:"6f811514d8f72b7484795e8a181c8e18446a52fe"},this.elevateLevel.presentation.displayName),t("p",{key:"fd0f78d172f027c79d542d630467e0f24099328f"},t("span",{key:"5eec8c85f146739d7e01b7112e1b1cf886c83310",class:"TxtDesc",innerHTML:this.elevateLevel.presentation.description}))))}};w.style=":host{display:block}.PriviliegeList{padding-inline-start:5px}.PriviliegeList li{display:flex}.PriviliegeList li .Img{width:80px}.PriviliegeList li .Img img{width:60px;margin:10px}.PriviliegeList li .Content h4{text-transform:capitalize;margin-block-start:10px}";var x,m,L,I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k={exports:{}};x=k,m=k.exports,L=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==I)return I;throw new Error("unable to locate global object")}(),x.exports=m=L.fetch,L.fetch&&(m.default=L.fetch.bind(L)),m.Headers=L.Headers,m.Request=L.Request,m.Response=L.Response;const C=k.exports,E=class{constructor(t){e(this,t),this.elevateLevelsDataChange=i(this,"elevateLevelsDataChange",7),this.scopeParams=void 0}async componentWillRender(){if(!this.scopeParams.endpoint)return;let e=new URL(`${this.scopeParams.endpoint}/v1/elevate/levels?language=${this.scopeParams.language}`);await C(e.href).then((e=>e.json())).then((e=>{const t=e.data.sort(((e,t)=>e.firstEntryPoints<t.firstEntryPoints?-1:1));let n=this.scopeParams.selectedLevelId;if(!n&&this.scopeParams.showDefault&&t.length>0&&(n=t[0].id),n){const e=t.filter((e=>e.id==n))[0];this.elevateLevelsDataChange.emit({currentLevel:e})}this.elevateLevelsDataChange.emit({clearError:!0}),this.elevateLevelsDataChange.emit({elevateLevels:t})})).catch((e=>{this.elevateLevelsDataChange.emit({errorMessage:{type:"errorWhenLoadElevateLevels",err:e}}),console.error(e)}))}};E.style=":host{display:block}";const P="__WIDGET_GLOBAL_STYLE_CACHE__";function S(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function _(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then((e=>e.text())).then((t=>{const n=document.createElement("style");n.innerHTML=t,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const R=class{constructor(t){e(this,t),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(null!=window.emMessageBus?function(e,t,n,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return function(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(n.innerHTML=t,e.appendChild(n))}))}(e,t);window[P]||(window[P]={});const a=(n=function(e,t){return window.emMessageBus.subscribe(t,(n=>{if(!e)return;const i=e.getRootNode(),a=window[P];let l=a[t]&&a[t].sheet;l?a[t].refCount=a[t].refCount+1:(l=new CSSStyleSheet,l.replaceSync(n),a[t]={sheet:l,refCount:1});const o=i.adoptedStyleSheets||[];o.includes(l)||(i.adoptedStyleSheets=[...o,l])}))}(e,t)).unsubscribe.bind(n);n.unsubscribe=()=>{if(window[P][t]){const e=window[P][t];e.refCount>1?e.refCount=e.refCount-1:delete window[P][t]}a()}}(this.el,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&S(this.el,this.clientStyling),this.clientStylingUrl&&_(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&S(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&_(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&S(this.el,this.clientStyling),this.clientStylingUrl&&_(this.el,this.clientStylingUrl),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const i=(t=this.translationUrl,n=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{n[e]=n[e]||{},Object.keys(t[e]).forEach((i=>{if(!n.en[i])return;const a=n.en[i];"object"==typeof t[e][i]?(n[e][i]=n[e][i]||Object.assign({},a),Object.keys(t[e][i]).forEach((a=>{n[e][i][a]=t[e][i][a]}))):n[e][i]=t[e][i]||Object.assign({},a)}))})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})));e.push(i)}var t,n;return await Promise.all(e)}render(){return t("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},t("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};function D(e){h(1,arguments);var t=v(e);return t.setHours(0,0,0,0),t}function T(e,t){return h(2,arguments),v(e).getTime()-v(t).getTime()}R.style=":host{display:block}";var O={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function j(e){return e?O[e]:O.trunc}const B=class{constructor(t){e(this,t),this.playerElevateLeveLoaded=i(this,"playerElevateLeveLoaded",7),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){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,n)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,t(!0)})).catch((e=>{n(e)}))))}calcuatePointsToBeExpired(e,t){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;e.aboutToExpire.sort(((e,t)=>function(e,t){h(2,arguments);var n=v(e),i=v(t);return n.getTime()<i.getTime()}(new Date(e.expireTime),new Date(t.expireTime))?-1:1));const i=e.aboutToExpire[0],a=function(e,t){h(2,arguments);var n=D(e),i=D(t),a=n.getTime()-f(n),l=i.getTime()-f(i);return Math.round((a-l)/864e5)}(new Date(i.expireTime),new Date);let l=0,o=0,r=0===a?`${t}Day`:t;return a<=0&&(l=function(e,t,n){h(2,arguments);var i=T(e,t)/36e5;return j(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=l>1?`${t}Hours`:`${t}Hour`,l<=0&&(o=function(e,t,n){h(2,arguments);var i=T(e,t)/6e4;return j(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=o>1?`${t}Minutes`:`${t}Minute`)),n=d(r,{expirationPoints:i.points,expireDay:Math.max(a,l,o),lang:this.params.language}),n}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((t,n)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var i,a,l,o,r;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void n(!0);window.postMessage({type:"UpdateGamificationXp",points:null===(a=null===(i=e.data)||void 0===i?void 0:i.level)||void 0===a?void 0:a.loyaltyPoints},window.location.href);let s=e.data;this.playerElevateLevel=s.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(l=s.spendableWallet)||void 0===l?void 0:l.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const d=null===(o=e.data.spendableWallet)||void 0===o?void 0:o.total,c=null===(r=e.data.loyaltyWallet)||void 0===r?void 0:r.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:d,loyaltyWalletTotal:c});let h=this.calcuatePointsToBeExpired(d,"coinsToBeExpired"),v=this.calcuatePointsToBeExpired(c,"pointsToBeExpired");(h||v)&&this.playerElevateLeveLoaded.emit({pointExpireString:h,xpExpireString:v}),t(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),n(!0)}))))}setLoyaltyProgress(e){!function(e,t){const n=e.querySelector("#total_level"),i=n.getBBox().width,a=t>1?1:t,l=a*i-17<0?0:a*i-17,o=e.querySelector("#current_level"),r=e.querySelector("#filter_current_level"),s=e.querySelector("#circle_current_level");n.setAttribute("viewbox",`0 0 ${l} 28`),o.setAttribute("width",`${l}`),s.setAttribute("cx",`${l<6.5?6.5:l}`),r.setAttribute("x",""+(l-8));const d=e.querySelector("#lock"),c=e.querySelector("#filter_heart_ball"),h=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),f=e.querySelector("#filter_lock"),g=e.querySelector("#paint0_linear_ball"),p=e.querySelector("#paint1_linear_lock"),b=e.querySelector("#lock_box"),u=e.querySelector("#heart_box"),y=i-10;d.setAttribute("cx",`${y}`),p.setAttribute("x1",`${y}`),p.setAttribute("x2",`${y}`),g.setAttribute("x1",""+(y-6)),g.setAttribute("x2",""+(y-6+11.2)),f.setAttribute("x",""+(y-6)),v.setAttribute("x",""+(y-6-2)),h.setAttribute("x",""+(y-6-2-2)),c.setAttribute("x",""+(y-6-2-2-4)),b.setAttribute("x",""+(y-6)),u.setAttribute("x",""+(y-6)),n.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 n=0;this.levels.forEach(((e,i)=>{t>e.firstEntryPoints&&(n=i)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return a(this)}static get watchers(){return{params:["onParamsChanged"]}}};B.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(--emw--color-gray150, #efefef);\n}\n\n.Light {\n color: var(--emw--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(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--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(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--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(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--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(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--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(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--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(--emw--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: var(--emw--border-radius-medium, 10px);\n background: var(--emw--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(--emw--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(--emw--color-red, #9e595f);\n}';const $=class{constructor(t){e(this,t),this.endpoint=void 0,this.session=void 0,this.playerAvatarUrl=void 0,this.language=void 0,this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.userLevelId=void 0}async setPlayerElevateLevelInfo(e){"playerElevateLeveLoaded"==e.type&&e.detail.elevateLevel&&(this.userLevelId=e.detail.elevateLevel.id)}render(){return t(n,{key:"d968e306fd4230df32374ef80d52e4cc5f03027f"},t("div",{key:"4066b6c63bb7feee4123e0592bc268223c020624",class:"PlayerElevateCard"},t("player-elevate-loyaltycard",{key:"4dca0ceba8e314fbba0d834d6ccc72175794ca2e",playerName:this.playerName,dateFormat:this.dateFormat,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,mbSource:this.mbSource,clientStyling:`${this.clientStyling} .Outer{height: 185px}`,endpoint:this.endpoint,language:this.language,session:this.session})),t("div",{key:"e2b9b044fb61ee4b5a901bdcc73ca8b3fec1166f",class:"ElevateLevelsInfo"},t("bonus-elevate-levels-jojogroup",{key:"c6ff66ef60dc5ac6a5f0932d7aa3e8809d529375",selectedLevelId:this.userLevelId,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,mbSource:this.mbSource,language:this.language,endpoint:this.endpoint})),t("general-styling-wrapper",{key:"c654d5598b683567e4ae321aae62e3553b36ee98",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,mbSource:this.mbSource}))}};$.style=":host{display:block}.PlayerElevateCard{height:160px;width:100%;overflow:hidden}.ElevateLevelsInfo{background-color:var(--emw--color-background, #e6e8ea)}";const z=class{constructor(t){e(this,t),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.mbSource=void 0,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.xpExpireString&&(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}}getNextLevelPoints(){var e,t;return(null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel)?null===(t=this.playerElevateLevel)||void 0===t?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const e=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return d("tipsForNextLevel",{pointsToReach:e,levelName:t.name,lang:this.language})}return""}render(){const e=l("../static/card-ground.svg"),n=l("../static/card-ground-over.svg");return t("div",{key:"9f673b8dccc848d11f0836c15f1f5da5e242e3b3",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"419c71a612c3cdfebaece1e90345c6324c68348e",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"04c1098bf16e683f30d211dfb9ebc0b319076258",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:c,translationUrl:this.translationUrl,mbSource:this.mbSource}),t("player-elevate-card-data",{key:"a9c57ef6c5c3381c7e9bf2f041a190f3de3a0423",params:this.paramProxy}),t("div",{key:"402ceddce75abb2ee6b59db730418efc006e5c60",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},t("div",{key:"844cba8ae40b9dd55129f7b0d52a208ea72e72cf",class:"Content Row"},this.playerElevateLevel&&t(o,{key:"d365971e66cbdc81d4b1758c045a76ad50a68729"},t("div",{key:"2e017a95d80098565d17807c6f8dae51a6b89090",class:"PlayerImg"},t(g,{key:"5aaf4b8e2b8ea67fa0fed1a07dde9caf2551a3bd",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"6e332314f4c4a233dd353130266a4d0368b0de45",class:`LevelInfo ${this.playerElevateLevel.name}`},t("div",{key:"06311b5920ac4126536760049bf3664d92cc247f",class:"CardCell ElevateLevel"},t("span",{key:"4538afdef55cd520e2d213e6a97d209234deabe5",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),t("div",{key:"cb2764c587a2fe1719b2ff6e045866ee032d5a66",class:"PointsRange"},t(p,{key:"c794dc4acd33555811187df5b2748b012af77cbf",loyaltyPoints:this.playerElevateLevel.loyaltyPoints<=0?0:this.playerElevateLevel.loyaltyPoints,language:this.language}),t(p,{key:"b88eb09ad61ea38214df4877976c6481626ae005",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),t(b,{key:"91fba9132a54ea109bd17a9844390947cf65b902"}),t("div",{key:"950323f3966e6db2c41e06fe6d7be123d09cc496",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&t("div",{key:"2ee3c2b317274fdef1cf1a9b2905d023b7485c22",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&t(u,{key:"db5824c90848a51566ff2a158ff6dc6a292009b2",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};z.style=":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}";export{y as bonus_elevate_levels_jojogroup,w as elevate_level_presentation,E as elevate_levels_data,R as general_styling_wrapper,B as player_elevate_card_data,$ as player_elevate_level_jojogroup,z as player_elevate_loyaltycard}
|
|
1
|
+
import{r as e,h as t,H as n,c as i,g as a,a as l,F as o}from"./index-31c95277.js";import{t as r,T as s}from"./locale.utils-9f505f70.js";import{t as d,T as c}from"./locale.utils-10bf5b6c.js";import{r as h,t as v,g as f,P as g,a as p,b,L as u}from"./player-elevate-card-items-19d02d44.js";const y=class{constructor(t){e(this,t),this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.endpoint=void 0,this.language="en",this.translationUrl="",this.selectedLevelId=void 0,this.showDefault=void 0,this.elevateLevelParamProxy=void 0,this.elevateLevels=[],this.errorMessage=void 0}elevateLevelsDataChangeHandler(e){e.detail&&(e.detail.elevateLevels&&(this.elevateLevels=[...e.detail.elevateLevels]),e.detail.clearError&&(this.errorMessage=null),e.detail.errorMessage&&e.detail.errorMessage.errorWhenLoadElevateLevels&&(this.errorMessage=r("loadElevateLevelErrorMessage",this.language)))}onSessionOrEndpointChange(){this.elevateLevelParamProxy=Object.assign(Object.assign({},this.elevateLevelParamProxy),{endpoint:this.endpoint,language:this.language})}onTCClick(){window.postMessage({type:"termAndConditionClicked"},window.location.href)}componentWillLoad(){this.elevateLevelParamProxy={endpoint:this.endpoint,language:this.language,selectedLevelId:this.selectedLevelId,showDefault:this.showDefault}}render(){var e;return t("div",{key:"3cdca540038915c73a99cca214d1d8091a928cb8",class:"ElevateLevelContent"},t("elevate-levels-data",{key:"1e1a73074ceb36ce5554b7796ca07c2efb4f73ce",scopeParams:this.elevateLevelParamProxy}),t("div",{key:"a1c66508053cac8549d23fabb291ff273079786c",class:"LevelContent"},(null===(e=this.elevateLevels)||void 0===e?void 0:e.length)?this.elevateLevels.map((e=>t("elevate-level-presentation",{elevateLevel:e}))):t("div",null,r("noLevelsSet",this.language))),this.errorMessage&&t("div",{key:"ed47949b39a95528d1a7f5acb9fe5ea1b596d6aa",class:"ErrorMessage"},this.errorMessage),t("general-styling-wrapper",{key:"c033776c424e2bc697f23a5a7abe34746fd6af7f",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:s,translationUrl:this.translationUrl,mbSource:this.mbSource}))}static get watchers(){return{endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};y.style=":host{display:block}.ElevateLevelContent{padding:20px;position:relative}.ElevateLevelContent .Privileges{padding-bottom:30px}.ElevateLevelContent .tc{position:absolute;right:10px;bottom:10px;text-align:right;display:none}";const w=class{constructor(t){e(this,t),this.elevateLevel=void 0}render(){return t(n,{key:"c02f0c4ca19226058b810f279273affa7b3398cc"},t("div",{key:"da5e3ce17167447ee462b1318f7d407f48781062",class:"Row Desc"},t("h3",{key:"6f811514d8f72b7484795e8a181c8e18446a52fe"},this.elevateLevel.presentation.displayName),t("p",{key:"fd0f78d172f027c79d542d630467e0f24099328f"},t("span",{key:"5eec8c85f146739d7e01b7112e1b1cf886c83310",class:"TxtDesc",innerHTML:this.elevateLevel.presentation.description}))))}};w.style=":host{display:block}.PriviliegeList{padding-inline-start:5px}.PriviliegeList li{display:flex}.PriviliegeList li .Img{width:80px}.PriviliegeList li .Img img{width:60px;margin:10px}.PriviliegeList li .Content h4{text-transform:capitalize;margin-block-start:10px}";var x,m,L,I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k={exports:{}};x=k,m=k.exports,L=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==I)return I;throw new Error("unable to locate global object")}(),x.exports=m=L.fetch,L.fetch&&(m.default=L.fetch.bind(L)),m.Headers=L.Headers,m.Request=L.Request,m.Response=L.Response;const C=k.exports,E=class{constructor(t){e(this,t),this.elevateLevelsDataChange=i(this,"elevateLevelsDataChange",7),this.scopeParams=void 0}async componentWillRender(){if(!this.scopeParams.endpoint)return;let e=new URL(`${this.scopeParams.endpoint}/v1/elevate/levels?language=${this.scopeParams.language}`);await C(e.href).then((e=>e.json())).then((e=>{const t=e.data.sort(((e,t)=>e.firstEntryPoints<t.firstEntryPoints?-1:1));let n=this.scopeParams.selectedLevelId;if(!n&&this.scopeParams.showDefault&&t.length>0&&(n=t[0].id),n){const e=t.filter((e=>e.id==n))[0];this.elevateLevelsDataChange.emit({currentLevel:e})}this.elevateLevelsDataChange.emit({clearError:!0}),this.elevateLevelsDataChange.emit({elevateLevels:t})})).catch((e=>{this.elevateLevelsDataChange.emit({errorMessage:{type:"errorWhenLoadElevateLevels",err:e}}),console.error(e)}))}};E.style=":host{display:block}";const P="__WIDGET_GLOBAL_STYLE_CACHE__";function S(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function _(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then((e=>e.text())).then((t=>{const n=document.createElement("style");n.innerHTML=t,e&&e.appendChild(n)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}const R=class{constructor(t){e(this,t),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(null!=window.emMessageBus?function(e,t,n,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return function(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(n.innerHTML=t,e.appendChild(n))}))}(e,t);window[P]||(window[P]={});const a=(n=function(e,t){return window.emMessageBus.subscribe(t,(n=>{if(!e)return;const i=e.getRootNode(),a=window[P];let l=a[t]&&a[t].sheet;l?a[t].refCount=a[t].refCount+1:(l=new CSSStyleSheet,l.replaceSync(n),a[t]={sheet:l,refCount:1});const o=i.adoptedStyleSheets||[];o.includes(l)||(i.adoptedStyleSheets=[...o,l])}))}(e,t)).unsubscribe.bind(n);n.unsubscribe=()=>{if(window[P][t]){const e=window[P][t];e.refCount>1?e.refCount=e.refCount-1:delete window[P][t]}a()}}(this.el,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&S(this.el,this.clientStyling),this.clientStylingUrl&&_(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&S(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&_(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&S(this.el,this.clientStyling),this.clientStylingUrl&&_(this.el,this.clientStylingUrl),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const i=(t=this.translationUrl,n=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{n[e]=n[e]||{},Object.keys(t[e]).forEach((i=>{if(!n.en[i])return;const a=n.en[i];"object"==typeof t[e][i]?(n[e][i]=n[e][i]||Object.assign({},a),Object.keys(t[e][i]).forEach((a=>{n[e][i][a]=t[e][i][a]}))):n[e][i]=t[e][i]||Object.assign({},a)}))})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})));e.push(i)}var t,n;return await Promise.all(e)}render(){return t("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},t("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return a(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};function D(e){h(1,arguments);var t=v(e);return t.setHours(0,0,0,0),t}function T(e,t){return h(2,arguments),v(e).getTime()-v(t).getTime()}R.style=":host{display:block}";var O={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function j(e){return e?O[e]:O.trunc}const B=class{constructor(t){e(this,t),this.playerElevateLeveLoaded=i(this,"playerElevateLeveLoaded",7),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){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,n)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,t(!0)})).catch((e=>{n(e)}))))}calcuatePointsToBeExpired(e,t){let n="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return n;e.aboutToExpire.sort(((e,t)=>function(e,t){h(2,arguments);var n=v(e),i=v(t);return n.getTime()<i.getTime()}(new Date(e.expireTime),new Date(t.expireTime))?-1:1));const i=e.aboutToExpire[0],a=function(e,t){h(2,arguments);var n=D(e),i=D(t),a=n.getTime()-f(n),l=i.getTime()-f(i);return Math.round((a-l)/864e5)}(new Date(i.expireTime),new Date);let l=0,o=0,r=0===a?`${t}Day`:t;return a<=0&&(l=function(e,t,n){h(2,arguments);var i=T(e,t)/36e5;return j(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=l>1?`${t}Hours`:`${t}Hour`,l<=0&&(o=function(e,t,n){h(2,arguments);var i=T(e,t)/6e4;return j(null==n?void 0:n.roundingMethod)(i)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=o>1?`${t}Minutes`:`${t}Minute`)),n=d(r,{expirationPoints:i.points,expireDay:Math.max(a,l,o),lang:this.params.language}),n}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((t,n)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var i,a,l,o,r;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void n(!0);window.postMessage({type:"UpdateGamificationXp",points:null===(a=null===(i=e.data)||void 0===i?void 0:i.level)||void 0===a?void 0:a.loyaltyPoints},window.location.href);let s=e.data;this.playerElevateLevel=s.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(l=s.spendableWallet)||void 0===l?void 0:l.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const d=null===(o=e.data.spendableWallet)||void 0===o?void 0:o.total,c=null===(r=e.data.loyaltyWallet)||void 0===r?void 0:r.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:d,loyaltyWalletTotal:c});let h=this.calcuatePointsToBeExpired(d,"coinsToBeExpired"),v=this.calcuatePointsToBeExpired(c,"pointsToBeExpired");(h||v)&&this.playerElevateLeveLoaded.emit({pointExpireString:h,xpExpireString:v}),t(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),n(!0)}))))}setLoyaltyProgress(e){!function(e,t){const n=e.querySelector("#total_level"),i=n.getBBox().width,a=t>1?1:t,l=a*i-17<0?0:a*i-17,o=e.querySelector("#current_level"),r=e.querySelector("#filter_current_level"),s=e.querySelector("#circle_current_level");n.setAttribute("viewbox",`0 0 ${l} 28`),o.setAttribute("width",`${l}`),s.setAttribute("cx",`${l<6.5?6.5:l}`),r.setAttribute("x",""+(l-8));const d=e.querySelector("#lock"),c=e.querySelector("#filter_heart_ball"),h=e.querySelector("#filter_ball"),v=e.querySelector("#filter_heart"),f=e.querySelector("#filter_lock"),g=e.querySelector("#paint0_linear_ball"),p=e.querySelector("#paint1_linear_lock"),b=e.querySelector("#lock_box"),u=e.querySelector("#heart_box"),y=i-10;d.setAttribute("cx",`${y}`),p.setAttribute("x1",`${y}`),p.setAttribute("x2",`${y}`),g.setAttribute("x1",""+(y-6)),g.setAttribute("x2",""+(y-6+11.2)),f.setAttribute("x",""+(y-6)),v.setAttribute("x",""+(y-6-2)),h.setAttribute("x",""+(y-6-2-2)),c.setAttribute("x",""+(y-6-2-2-4)),b.setAttribute("x",""+(y-6)),u.setAttribute("x",""+(y-6)),n.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 n=0;this.levels.forEach(((e,i)=>{t>e.firstEntryPoints&&(n=i)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return a(this)}static get watchers(){return{params:["onParamsChanged"]}}};B.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(--emw--color-gray150, #efefef);\n}\n\n.Light {\n color: var(--emw--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(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--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(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--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(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--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(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--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(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));\n background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--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(--emw--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: var(--emw--border-radius-medium, 10px);\n background: var(--emw--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(--emw--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(--emw--color-red, #9e595f);\n}';const $=class{constructor(t){e(this,t),this.endpoint=void 0,this.session=void 0,this.playerAvatarUrl=void 0,this.language=void 0,this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.userLevelId=void 0}async setPlayerElevateLevelInfo(e){"playerElevateLeveLoaded"==e.type&&e.detail.elevateLevel&&(this.userLevelId=e.detail.elevateLevel.id)}render(){return t(n,{key:"d968e306fd4230df32374ef80d52e4cc5f03027f"},t("div",{key:"4066b6c63bb7feee4123e0592bc268223c020624",class:"PlayerElevateCard"},t("player-elevate-loyaltycard",{key:"4dca0ceba8e314fbba0d834d6ccc72175794ca2e",playerName:this.playerName,dateFormat:this.dateFormat,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,mbSource:this.mbSource,clientStyling:`${this.clientStyling} .Outer{height: 185px}`,endpoint:this.endpoint,language:this.language,session:this.session})),t("div",{key:"e2b9b044fb61ee4b5a901bdcc73ca8b3fec1166f",class:"ElevateLevelsInfo"},t("bonus-elevate-levels-jojogroup",{key:"c6ff66ef60dc5ac6a5f0932d7aa3e8809d529375",selectedLevelId:this.userLevelId,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,mbSource:this.mbSource,language:this.language,endpoint:this.endpoint})),t("general-styling-wrapper",{key:"c654d5598b683567e4ae321aae62e3553b36ee98",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,mbSource:this.mbSource}))}};$.style=":host{display:block}.PlayerElevateCard{height:160px;width:100%;overflow:hidden}.ElevateLevelsInfo{background-color:var(--emw--color-background, #e6e8ea)}";const z=class{constructor(t){e(this,t),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.mbSource=void 0,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.xpExpireString&&(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}}getNextLevelPoints(){var e,t;return(null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel)?null===(t=this.playerElevateLevel)||void 0===t?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const e=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return d("tipsForNextLevel",{pointsToReach:e,levelName:t.name,lang:this.language})}return""}render(){const e=l("../static/card-ground.svg"),n=l("../static/card-ground-over.svg");return t("div",{key:"9f673b8dccc848d11f0836c15f1f5da5e242e3b3",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"419c71a612c3cdfebaece1e90345c6324c68348e",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"04c1098bf16e683f30d211dfb9ebc0b319076258",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:c,translationUrl:this.translationUrl,mbSource:this.mbSource}),t("player-elevate-card-data",{key:"a9c57ef6c5c3381c7e9bf2f041a190f3de3a0423",params:this.paramProxy}),t("div",{key:"402ceddce75abb2ee6b59db730418efc006e5c60",class:"OuterCover Inner",style:{backgroundImage:`url(${n}`}},t("div",{key:"844cba8ae40b9dd55129f7b0d52a208ea72e72cf",class:"Content Row"},this.playerElevateLevel&&t(o,{key:"d365971e66cbdc81d4b1758c045a76ad50a68729"},t("div",{key:"2e017a95d80098565d17807c6f8dae51a6b89090",class:"PlayerImg"},t(g,{key:"5aaf4b8e2b8ea67fa0fed1a07dde9caf2551a3bd",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"6e332314f4c4a233dd353130266a4d0368b0de45",class:`LevelInfo ${this.playerElevateLevel.name}`},t("div",{key:"06311b5920ac4126536760049bf3664d92cc247f",class:"CardCell ElevateLevel"},t("span",{key:"4538afdef55cd520e2d213e6a97d209234deabe5",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),t("div",{key:"cb2764c587a2fe1719b2ff6e045866ee032d5a66",class:"PointsRange"},t(p,{key:"c794dc4acd33555811187df5b2748b012af77cbf",loyaltyPoints:this.playerElevateLevel.loyaltyPoints<=0?0:this.playerElevateLevel.loyaltyPoints,language:this.language}),t(p,{key:"b88eb09ad61ea38214df4877976c6481626ae005",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),t(b,{key:"91fba9132a54ea109bd17a9844390947cf65b902"}),t("div",{key:"950323f3966e6db2c41e06fe6d7be123d09cc496",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&t("div",{key:"2ee3c2b317274fdef1cf1a9b2905d023b7485c22",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&t(u,{key:"db5824c90848a51566ff2a158ff6dc6a292009b2",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};z.style=":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}";export{y as bonus_elevate_levels_jojogroup,w as elevate_level_presentation,E as elevate_levels_data,R as general_styling_wrapper,B as player_elevate_card_data,$ as player_elevate_level_jojogroup,z as player_elevate_loyaltycard}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={en:{redeem:"Redeem",claim:"Claim",expireOn:"Expire on ",coinsToBeExpired:"${expirationPoints} coins to expire in ${expireDay} days",coinsToBeExpiredDay:"${expirationPoints} coins to expire in ${expireDay} day",coinsToBeExpiredHours:"${expirationPoints} coins to expire in ${expireDay} hours",coinsToBeExpiredHour:"${expirationPoints} coins to expire in ${expireDay} hour",coinsToBeExpiredMinutes:"${expirationPoints} coins to expire in ${expireDay} minutes",coinsToBeExpiredMinute:"${expirationPoints} coins to expire in ${expireDay} minute",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Available Rakeback",loading:"Loading",minutesCanClaim:"Next Claim is available in ${minutes} minutes"},"zh-hk":{redeem:"兑奖",claim:"返佣",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"明细",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"可用的返利",loading:"加載中",minutesCanClaim:"下次可領取時間為${minutes}分鐘後"},de:{redeem:"Redeem",claim:"Anspruch",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Verfügbarer Rakeback",loading:"Laden",minutesCanClaim:"Nächster Anspruch ist in ${minutes} Minuten verfügbar"},it:{redeem:"Redeem",claim:"Richiesta",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Rakeback Disponibile",loading:"Caricamento",minutesCanClaim:"La prossima richiesta sarà disponibile tra ${minutes} minuti"},fr:{redeem:"Redeem",claim:"Réclamer",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Rakeback Disponible",loading:"Chargement",minutesCanClaim:"La prochaine réclamation sera disponible dans ${minutes} minutes"},es:{claim:"Reclamar",rakebackTitle:"Reembolso de comisión actual",minutesCanClaim:"La siguiente solicitud estará disponible en ${minutes} minutos",redeem:"Canjear",expireOn:"Fecha de vencimiento ",coinsToBeExpired:"La validez de ${expirationPoints} monedas expirará en ${expireDay} días",coinsToBeExpiredDay:"La validez de ${expirationPoints} monedas expirará en ${expireDay} días",coinsToBeExpiredHours:"La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",coinsToBeExpiredHour:"La validez de ${expirationPoints} monedas expirará en ${expireDay} horas",coinsToBeExpiredMinutes:"La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",coinsToBeExpiredMinute:"La validez de ${expirationPoints} monedas expirará en ${expireDay} minutos",pointsToBeExpired:"La validez de ${expirationPoints} puntos expirará en ${expireDay} días",pointsToBeExpiredDay:"La validez de ${expirationPoints} puntos expirará en ${expireDay} días",pointsToBeExpiredHours:"La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",pointsToBeExpiredHour:"La validez de ${expirationPoints} puntos expirará en ${expireDay} horas",pointsToBeExpiredMinutes:"La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",pointsToBeExpiredMinute:"La validez de ${expirationPoints} puntos expirará en ${expireDay} minutos",tipsForNextLevel:"Se requieren ${pointsToReach} para alcanzar el nivel ${levelName}",spendablePoints:"Puntos disponibles:",details:"Detalles",earningRules:"Reglas de obtención",xp:"XP",sp:"Monedas",termAndConditions:"Términos y condiciones",loading:"Cargando"},tr:{redeem:"Kullan",claim:"Talep Et",expireOn:"Geçerlilik tarihi: ",coinsToBeExpired:"${expirationPoints} coin ${expireDay} gün içinde sona erecek",coinsToBeExpiredDay:"${expirationPoints} coin ${expireDay} gün içinde sona erecek",coinsToBeExpiredHours:"${expirationPoints} coin ${expireDay} saat içinde sona erecek",coinsToBeExpiredHour:"${expirationPoints} coin ${expireDay} saat içinde sona erecek",coinsToBeExpiredMinutes:"${expirationPoints} coin ${expireDay} dakika içinde sona erecek",coinsToBeExpiredMinute:"${expirationPoints} coin ${expireDay} dakika içinde sona erecek",pointsToBeExpired:"${expirationPoints} puan ${expireDay} gün içinde sona erecek",pointsToBeExpiredDay:"${expirationPoints} puan ${expireDay} gün içinde sona erecek",pointsToBeExpiredHours:"${expirationPoints} puan ${expireDay} saat içinde sona erecek",pointsToBeExpiredHour:"${expirationPoints} puan ${expireDay} saat içinde sona erecek",pointsToBeExpiredMinutes:"${expirationPoints} puan ${expireDay} dakika içinde sona erecek",pointsToBeExpiredMinute:"${expirationPoints} puan ${expireDay} dakika içinde sona erecek",tipsForNextLevel:"Sonraki seviye ${levelName}. Seviye atlamak için ${pointsToReach} XP",spendablePoints:"Kullanılabilir Puan:",details:"Detaylar",earningRules:"Kazanma Kuralları",xp:"XP",sp:"Coin",termAndConditions:"Şartlar ve Koşullar",rakebackTitle:"Mevcut Rakeback",loading:"Yükleniyor",minutesCanClaim:"Sonraki talep ${minutes} dakika içinde kullanılabilir"},az:{claim:"iddia",rakebackTitle:"Mövcud Rakeback",minutesCanClaim:"Növbəti İddia ${minutes} dəqiqə ərzində əlçatandır",redeem:"istifadə edin",expireOn:"İstifadə müddəti ",coinsToBeExpired:"${expirationPoints} sikkə ${expireDay} günə bitəcək",coinsToBeExpiredDay:"${expirationPoints} sikkə ${expireDay} günə bitəcək",coinsToBeExpiredHours:"${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",coinsToBeExpiredHour:"${expirationPoints} sikkə ${expireDay} saat ərzində bitəcək",coinsToBeExpiredMinutes:"${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",coinsToBeExpiredMinute:"${expirationPoints} sikkə ${expireDay} dəqiqə ərzində bitəcək",pointsToBeExpired:"${expirationPoints} balın müddəti ${expireDay} günə bitəcək",pointsToBeExpiredDay:"${expirationPoints} balın müddəti ${expireDay} günə bitəcək",pointsToBeExpiredHours:"${expirationPoints} bal ${expireDay} saat ərzində etibarsız olacaq",pointsToBeExpiredHour:"${expirationPoints} balın müddəti ${expireDay} saat ərzində bitəcək",pointsToBeExpiredMinutes:"${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",pointsToBeExpiredMinute:"${expirationPoints} balın müddəti ${expireDay} dəqiqə ərzində bitəcək",tipsForNextLevel:"${pointsToReach} ${levelName} səviyyəsinə çatmaq üçün tələb olunur",spendablePoints:"Xərclənən xallar:",details:"Detal",earningRules:"Qalib Qaydalar",xp:"XP",sp:"sikkələr",termAndConditions:"Qaydalar və Şərtlər",loading:"Yüklənir"},ru:{redeem:"Redeem",claim:"Требовать",rakebackTitle:"Доступный Рейкбек",loading:"Загрузка",minutesCanClaim:"Следующее требование будет доступно через ${minutes} минут"},ro:{redeem:"Redeem",claim:"Revendicare",rakebackTitle:"Rakeback Disponibil",loading:"Se încarcă",minutesCanClaim:"Următoarea revendicare va fi disponibilă în ${minutes} minute"},hr:{redeem:"Otkupiti",claim:"Zahtjev",expireOn:"Istječe",pointsToBeExpired:"${expirationPoints} bodova ističe za ${expireDay} dana",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Trebate ${pointsToReach} da dosegnete razinu ${levelName}",spendablePoints:"Bodovi za potrošit:",details:"Detalji",xp:"XP",rakebackTitle:"Dostupan Rakeback",loading:"Učitavanje",minutesCanClaim:"Sljedeći zahtjev bit će dostupan za ${minutes} minuta"},hu:{redeem:"Redeem",claim:"Igény",rakebackTitle:"Elérhető Rakeback",loading:"Betöltés",minutesCanClaim:"A következő igény ${minutes} perc múlva lesz elérhető"},pl:{redeem:"Redeem",claim:"Roszczenie",rakebackTitle:"Dostępny Rakeback",loading:"Ładowanie",minutesCanClaim:"Następne roszczenie będzie dostępne za ${minutes} minut"},pt:{redeem:"Redeem",claim:"Reivindicar",rakebackTitle:"Rakeback Disponível",loading:"Carregando",minutesCanClaim:"Próxima reivindicação disponível em ${minutes} minutos"},sl:{redeem:"Redeem",claim:"Zahtevek",rakebackTitle:"Razpoložljiv Rakeback",loading:"Nalaganje",minutesCanClaim:"Naslednji zahtevek bo na voljo čez ${minutes} minut"},sr:{redeem:"Redeem",claim:"Zahtev",rakebackTitle:"Dostupan Rakeback",loading:"Učitavanje",minutesCanClaim:"Sledeći zahtev biće dostupan za ${minutes} minuta"}},i=(i,n)=>e[n&&e[n]?n:"en"][i],n=(i,n)=>{let o=e[(null==n?void 0:n.lang)&&e[n.lang]?n.lang:"en"][i];return o&&n?(Object.keys(n).forEach((e=>{o=o.replace(new RegExp("\\${"+e+"}","gm"),n[e])})),o):o};export{e as T,i as a,n as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,a as i}from"./index-31c95277.js";import{a as n}from"./locale.utils-471ae737.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t){if(null===t||!0===t||!1===t)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function r(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function I(t){r(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||"object"===e(t)&&"[object Date]"===i?new Date(t.getTime()):"number"==typeof t||"[object Number]"===i?new Date(t):("string"!=typeof t&&"[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 M={};function u(){return M}function o(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function w(t){r(1,arguments);var i=I(t),n=i.getUTCDay(),e=(n<1?7:0)+n-1;return i.setUTCDate(i.getUTCDate()-e),i.setUTCHours(0,0,0,0),i}function g(t){r(1,arguments);var i=I(t),n=i.getUTCFullYear(),e=new Date(0);e.setUTCFullYear(n+1,0,4),e.setUTCHours(0,0,0,0);var a=w(e),M=new Date(0);M.setUTCFullYear(n,0,4),M.setUTCHours(0,0,0,0);var u=w(M);return i.getTime()>=a.getTime()?n+1:i.getTime()>=u.getTime()?n:n-1}function s(t,i){var n,e,M,o,w,g,s,C;r(1,arguments);var A=u(),c=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.weekStartsOn)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==M?M:A.weekStartsOn)&&void 0!==e?e:null===(s=A.locale)||void 0===s||null===(C=s.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==n?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=I(t),l=d.getUTCDay(),L=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-L),d.setUTCHours(0,0,0,0),d}function C(t,i){var n,e,M,o,w,g,C,A;r(1,arguments);var c=I(t),d=c.getUTCFullYear(),l=u(),L=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.firstWeekContainsDate)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==M?M:l.firstWeekContainsDate)&&void 0!==e?e:null===(C=l.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=new Date(0);j.setUTCFullYear(d+1,0,L),j.setUTCHours(0,0,0,0);var m=s(j,i),D=new Date(0);D.setUTCFullYear(d,0,L),D.setUTCHours(0,0,0,0);var y=s(D,i);return c.getTime()>=m.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function A(t,i){for(var n=t<0?"-":"",e=Math.abs(t).toString();e.length<i;)e="0"+e;return n+e}const c=function(t,i){var n=t.getUTCFullYear(),e=n>0?n:1-n;return A("yy"===i?e%100:e,i.length)},d=function(t,i){var n=t.getUTCMonth();return"M"===i?String(n+1):A(n+1,2)},l=function(t,i){return A(t.getUTCDate(),i.length)},L=function(t,i){return A(t.getUTCHours()%12||12,i.length)},j=function(t,i){return A(t.getUTCHours(),i.length)},m=function(t,i){return A(t.getUTCMinutes(),i.length)},D=function(t,i){return A(t.getUTCSeconds(),i.length)},y=function(t,i){var n=i.length,e=t.getUTCMilliseconds();return A(Math.floor(e*Math.pow(10,n-3)),i.length)};var N={G:function(t,i,n){var e=t.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})}},y:function(t,i,n){if("yo"===i){var e=t.getUTCFullYear();return n.ordinalNumber(e>0?e:1-e,{unit:"year"})}return c(t,i)},Y:function(t,i,n,e){var a=C(t,e),r=a>0?a:1-a;return"YY"===i?A(r%100,2):"Yo"===i?n.ordinalNumber(r,{unit:"year"}):A(r,i.length)},R:function(t,i){return A(g(t),i.length)},u:function(t,i){return A(t.getUTCFullYear(),i.length)},Q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"Q":return String(e);case"QQ":return A(e,2);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})}},q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"q":return String(e);case"qq":return A(e,2);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})}},M:function(t,i,n){var e=t.getUTCMonth();switch(i){case"M":case"MM":return d(t,i);case"Mo":return n.ordinalNumber(e+1,{unit:"month"});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})}},L:function(t,i,n){var e=t.getUTCMonth();switch(i){case"L":return String(e+1);case"LL":return A(e+1,2);case"Lo":return n.ordinalNumber(e+1,{unit:"month"});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})}},w:function(t,i,n,e){var M=function(t,i){r(1,arguments);var n=I(t),e=s(n,i).getTime()-function(t,i){var n,e,I,M,o,w,g,A;r(1,arguments);var c=u(),d=a(null!==(n=null!==(e=null!==(I=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(o=i.locale)||void 0===o||null===(w=o.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==I?I:c.firstWeekContainsDate)&&void 0!==e?e:null===(g=c.locale)||void 0===g||null===(A=g.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1),l=C(t,i),L=new Date(0);return L.setUTCFullYear(l,0,d),L.setUTCHours(0,0,0,0),s(L,i)}(n,i).getTime();return Math.round(e/6048e5)+1}(t,e);return"wo"===i?n.ordinalNumber(M,{unit:"week"}):A(M,i.length)},I:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=w(i).getTime()-function(t){r(1,arguments);var i=g(t),n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),w(n)}(i).getTime();return Math.round(n/6048e5)+1}(t);return"Io"===i?n.ordinalNumber(e,{unit:"week"}):A(e,i.length)},d:function(t,i,n){return"do"===i?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,i)},D:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var e=i.getTime();return Math.floor((n-e)/864e5)+1}(t);return"Do"===i?n.ordinalNumber(e,{unit:"dayOfYear"}):A(e,i.length)},E:function(t,i,n){var e=t.getUTCDay();switch(i){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},e:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"e":return String(r);case"ee":return A(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"c":return String(r);case"cc":return A(r,i.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,i,n){var e=t.getUTCDay(),a=0===e?7:e;switch(i){case"i":return String(a);case"ii":return A(a,i.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},a:function(t,i,n){var e=t.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},b:function(t,i,n){var e,a=t.getUTCHours();switch(e=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",i){case"b":case"bb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},B:function(t,i,n){var e,a=t.getUTCHours();switch(e=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",i){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},h:function(t,i,n){if("ho"===i){var e=t.getUTCHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return L(t,i)},H:function(t,i,n){return"Ho"===i?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j(t,i)},K:function(t,i,n){var e=t.getUTCHours()%12;return"Ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},k:function(t,i,n){var e=t.getUTCHours();return 0===e&&(e=24),"ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},m:function(t,i,n){return"mo"===i?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):m(t,i)},s:function(t,i,n){return"so"===i?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,i)},S:function(t,i){return y(t,i)},X:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(i){case"X":return h(a);case"XXXX":case"XX":return v(a);default:return v(a,":")}},x:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"x":return h(a);case"xxxx":case"xx":return v(a);default:return v(a,":")}},O:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},z:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},t:function(t,i,n,e){return A(Math.floor((e._originalDate||t).getTime()/1e3),i.length)},T:function(t,i,n,e){return A((e._originalDate||t).getTime(),i.length)}};function b(t,i){var n=t>0?"-":"+",e=Math.abs(t),a=Math.floor(e/60),r=e%60;if(0===r)return n+String(a);var I=i||"";return n+String(a)+I+A(r,2)}function h(t,i){return t%60==0?(t>0?"-":"+")+A(Math.abs(t)/60,2):v(t,i)}function v(t,i){var n=i||"",e=t>0?"-":"+",a=Math.abs(t);return e+A(Math.floor(a/60),2)+n+A(a%60,2)}const T=N;var z=function(t,i){switch(t){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"})}},f=function(t,i){switch(t){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"})}},Z={p:f,P:function(t,i){var n,e=t.match(/(P+)(p+)?/)||[],a=e[1],r=e[2];if(!r)return z(t,i);switch(a){case"P":n=i.dateTime({width:"short"});break;case"PP":n=i.dateTime({width:"medium"});break;case"PPP":n=i.dateTime({width:"long"});break;default:n=i.dateTime({width:"full"})}return n.replace("{{date}}",z(a,i)).replace("{{time}}",f(r,i))}};const x=Z;var S=["D","DD"],G=["YY","YYYY"];function W(t,i,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Q,p={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},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 k(t){return function(i,n){var e;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,r=null!=n&&n.width?String(n.width):a;e=t.formattingValues[r]||t.formattingValues[a]}else{var I=t.defaultWidth,M=null!=n&&n.width?String(n.width):t.defaultWidth;e=t.values[M]||t.values[I]}return e[t.argumentCallback?t.argumentCallback(i):i]}}function V(t){return function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.width,a=i.match(e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var r,I=a[0],M=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(M)?function(t){for(var i=0;i<t.length;i++)if(t[i].test(I))return i}(M):function(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(I))return i}(M);return r=t.valueCallback?t.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:i.slice(I.length)}}}const X={code:"en-US",formatDistance:function(t,i,n){var e,a=Y[t];return e="string"==typeof a?a:1===i?a.one:a.other.replace("{{count}}",i.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+e:e+" ago":e},formatLong:p,formatRelative:function(t){return E[t]},localize:{ordinalNumber:function(t){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:k({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:k({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:k({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:k({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:k({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:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Q.matchPattern);if(!n)return null;var e=n[0],a=t.match(Q.parsePattern);if(!a)return null;var r=Q.valueCallback?Q.valueCallback(a[0]):a[0];return{value:r=i.valueCallback?i.valueCallback(r):r,rest:t.slice(e.length)}}),era:V({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:V({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(t){return t+1}}),month:V({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:V({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:V({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 U=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J=/^'([^]*?)'?$/,R=/''/g,O=/[a-zA-Z]/;function H(t,i,n){var M,w,g,s,C,A,c,d,l,L,j,m,D,y,N,b,h,v;r(2,arguments);var z=String(i),f=u(),Z=null!==(M=null!==(w=null==n?void 0:n.locale)&&void 0!==w?w:f.locale)&&void 0!==M?M:X,Y=a(null!==(g=null!==(s=null!==(C=null!==(A=null==n?void 0:n.firstWeekContainsDate)&&void 0!==A?A:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==C?C:f.firstWeekContainsDate)&&void 0!==s?s:null===(l=f.locale)||void 0===l||null===(L=l.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==g?g:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=a(null!==(j=null!==(m=null!==(D=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(N=n.locale)||void 0===N||null===(b=N.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==D?D:f.weekStartsOn)&&void 0!==m?m:null===(h=f.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==j?j:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var Q=I(t);if(!function(t){if(r(1,arguments),!function(t){return r(1,arguments),t instanceof Date||"object"===e(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var i=I(t);return!isNaN(Number(i))}(Q))throw new RangeError("Invalid time value");var p=function(t,i){return r(2,arguments),function(t,i){r(2,arguments);var n=I(t).getTime(),e=a(i);return new Date(n+e)}(t,-a(i))}(Q,o(Q)),E={firstWeekContainsDate:Y,weekStartsOn:P,locale:Z,_originalDate:Q};return z.match(B).map((function(t){var i=t[0];return"p"===i||"P"===i?(0,x[i])(t,Z.formatLong):t})).join("").match(U).map((function(e){if("''"===e)return"'";var a,r,I=e[0];if("'"===I)return(r=(a=e).match(J))?r[1].replace(R,"'"):a;var M=T[I];if(M)return null!=n&&n.useAdditionalWeekYearTokens||-1===G.indexOf(e)||W(e,i,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!(-1!==S.indexOf(e))||W(e,i,String(t)),M(p,e,Z.localize,E);if(I.match(O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return e})).join("")}const F=()=>t("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpb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jIuNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOTQ2QUQ3Ii8+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0VGQUJFQiIvPgogICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),K=({loyaltyPoints:i,spendablePoints:e,pointExpireString:a,language:r})=>t("div",{class:"PointsInfo"},i&&i>=0&&t("div",{class:"Points"},i," ",t("sub",{class:"XP"},n("xp",r))),e&&t("div",{class:"Points"},e," ",t("sub",{class:"XP"},n("sp",r))),a&&t("div",{class:"ExpirationPoints"},a," ")),q=({language:i,onRedeemClick:e})=>t("div",{class:"CardCell Redeem"},t("div",{class:"RedeemButton",onClick:()=>{e()}},t("span",null,n("redeem",i)))),$=i=>t("div",{class:"CardCell PlayerName Txt"},i.playerName),_=e=>t("div",{class:"CardCell ElevateLevel"},t("span",{class:"LevelName",title:e.level},e.level),e.expireTime&&t("div",{class:"CardCell ExpirationDate Txt"},n("expireOn",e.language),t("span",{class:"ExpireTime"},H(new Date(e.expireTime),e.dateFormat||"yyyy-MM-dd")),!e.hideInfo&&t("span",{class:"fa Info",style:{background:`url(${i("../static/info.svg")})`}},t("span",{class:"InfoTips",innerHTML:"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0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),tt=i=>t("div",{class:"CardCell ElevateLevel Expire"},t("div",{class:"CardCell ExpirationDate Txt"},n("expireOn",i.language),t("span",{class:"ExpireTime"},H(new Date(i.expireTime),i.dateFormat||"yyyy-MM-dd")))),it=n=>{const e=n.loyaltyIconUrl?t("img",{class:"Badge",src:n.loyaltyIconUrl}):n.hideIfNull?"":t("div",{class:"Badge"}),a=n.playerAvatarUrl||i("../static/user.svg");return t("div",{class:"PlayerAvatar",style:{position:n.onlyBadge?"":"relative"}},!n.onlyBadge&&t("img",{class:"Avatar",src:a}),e)};export{tt as L,it as P,K as a,F as b,$ as c,_ as d,q as e,o as g,r,I as t}
|
|
1
|
+
import{h as t,a as i}from"./index-31c95277.js";import{a as n}from"./locale.utils-10bf5b6c.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function a(t){if(null===t||!0===t||!1===t)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function r(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function I(t){r(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||"object"===e(t)&&"[object Date]"===i?new Date(t.getTime()):"number"==typeof t||"[object Number]"===i?new Date(t):("string"!=typeof t&&"[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 M={};function u(){return M}function o(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function w(t){r(1,arguments);var i=I(t),n=i.getUTCDay(),e=(n<1?7:0)+n-1;return i.setUTCDate(i.getUTCDate()-e),i.setUTCHours(0,0,0,0),i}function g(t){r(1,arguments);var i=I(t),n=i.getUTCFullYear(),e=new Date(0);e.setUTCFullYear(n+1,0,4),e.setUTCHours(0,0,0,0);var a=w(e),M=new Date(0);M.setUTCFullYear(n,0,4),M.setUTCHours(0,0,0,0);var u=w(M);return i.getTime()>=a.getTime()?n+1:i.getTime()>=u.getTime()?n:n-1}function s(t,i){var n,e,M,o,w,g,s,C;r(1,arguments);var A=u(),c=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.weekStartsOn)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==M?M:A.weekStartsOn)&&void 0!==e?e:null===(s=A.locale)||void 0===s||null===(C=s.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==n?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=I(t),l=d.getUTCDay(),L=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-L),d.setUTCHours(0,0,0,0),d}function C(t,i){var n,e,M,o,w,g,C,A;r(1,arguments);var c=I(t),d=c.getUTCFullYear(),l=u(),L=a(null!==(n=null!==(e=null!==(M=null!==(o=null==i?void 0:i.firstWeekContainsDate)&&void 0!==o?o:null==i||null===(w=i.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==M?M:l.firstWeekContainsDate)&&void 0!==e?e:null===(C=l.locale)||void 0===C||null===(A=C.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=new Date(0);j.setUTCFullYear(d+1,0,L),j.setUTCHours(0,0,0,0);var m=s(j,i),D=new Date(0);D.setUTCFullYear(d,0,L),D.setUTCHours(0,0,0,0);var y=s(D,i);return c.getTime()>=m.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function A(t,i){for(var n=t<0?"-":"",e=Math.abs(t).toString();e.length<i;)e="0"+e;return n+e}const c=function(t,i){var n=t.getUTCFullYear(),e=n>0?n:1-n;return A("yy"===i?e%100:e,i.length)},d=function(t,i){var n=t.getUTCMonth();return"M"===i?String(n+1):A(n+1,2)},l=function(t,i){return A(t.getUTCDate(),i.length)},L=function(t,i){return A(t.getUTCHours()%12||12,i.length)},j=function(t,i){return A(t.getUTCHours(),i.length)},m=function(t,i){return A(t.getUTCMinutes(),i.length)},D=function(t,i){return A(t.getUTCSeconds(),i.length)},y=function(t,i){var n=i.length,e=t.getUTCMilliseconds();return A(Math.floor(e*Math.pow(10,n-3)),i.length)};var N={G:function(t,i,n){var e=t.getUTCFullYear()>0?1:0;switch(i){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})}},y:function(t,i,n){if("yo"===i){var e=t.getUTCFullYear();return n.ordinalNumber(e>0?e:1-e,{unit:"year"})}return c(t,i)},Y:function(t,i,n,e){var a=C(t,e),r=a>0?a:1-a;return"YY"===i?A(r%100,2):"Yo"===i?n.ordinalNumber(r,{unit:"year"}):A(r,i.length)},R:function(t,i){return A(g(t),i.length)},u:function(t,i){return A(t.getUTCFullYear(),i.length)},Q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"Q":return String(e);case"QQ":return A(e,2);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})}},q:function(t,i,n){var e=Math.ceil((t.getUTCMonth()+1)/3);switch(i){case"q":return String(e);case"qq":return A(e,2);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})}},M:function(t,i,n){var e=t.getUTCMonth();switch(i){case"M":case"MM":return d(t,i);case"Mo":return n.ordinalNumber(e+1,{unit:"month"});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})}},L:function(t,i,n){var e=t.getUTCMonth();switch(i){case"L":return String(e+1);case"LL":return A(e+1,2);case"Lo":return n.ordinalNumber(e+1,{unit:"month"});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})}},w:function(t,i,n,e){var M=function(t,i){r(1,arguments);var n=I(t),e=s(n,i).getTime()-function(t,i){var n,e,I,M,o,w,g,A;r(1,arguments);var c=u(),d=a(null!==(n=null!==(e=null!==(I=null!==(M=null==i?void 0:i.firstWeekContainsDate)&&void 0!==M?M:null==i||null===(o=i.locale)||void 0===o||null===(w=o.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==I?I:c.firstWeekContainsDate)&&void 0!==e?e:null===(g=c.locale)||void 0===g||null===(A=g.options)||void 0===A?void 0:A.firstWeekContainsDate)&&void 0!==n?n:1),l=C(t,i),L=new Date(0);return L.setUTCFullYear(l,0,d),L.setUTCHours(0,0,0,0),s(L,i)}(n,i).getTime();return Math.round(e/6048e5)+1}(t,e);return"wo"===i?n.ordinalNumber(M,{unit:"week"}):A(M,i.length)},I:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=w(i).getTime()-function(t){r(1,arguments);var i=g(t),n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),w(n)}(i).getTime();return Math.round(n/6048e5)+1}(t);return"Io"===i?n.ordinalNumber(e,{unit:"week"}):A(e,i.length)},d:function(t,i,n){return"do"===i?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):l(t,i)},D:function(t,i,n){var e=function(t){r(1,arguments);var i=I(t),n=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var e=i.getTime();return Math.floor((n-e)/864e5)+1}(t);return"Do"===i?n.ordinalNumber(e,{unit:"dayOfYear"}):A(e,i.length)},E:function(t,i,n){var e=t.getUTCDay();switch(i){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},e:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"e":return String(r);case"ee":return A(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,i,n,e){var a=t.getUTCDay(),r=(a-e.weekStartsOn+8)%7||7;switch(i){case"c":return String(r);case"cc":return A(r,i.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,i,n){var e=t.getUTCDay(),a=0===e?7:e;switch(i){case"i":return String(a);case"ii":return A(a,i.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(e,{width:"short",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})}},a:function(t,i,n){var e=t.getUTCHours()/12>=1?"pm":"am";switch(i){case"a":case"aa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},b:function(t,i,n){var e,a=t.getUTCHours();switch(e=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",i){case"b":case"bb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},B:function(t,i,n){var e,a=t.getUTCHours();switch(e=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",i){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},h:function(t,i,n){if("ho"===i){var e=t.getUTCHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return L(t,i)},H:function(t,i,n){return"Ho"===i?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):j(t,i)},K:function(t,i,n){var e=t.getUTCHours()%12;return"Ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},k:function(t,i,n){var e=t.getUTCHours();return 0===e&&(e=24),"ko"===i?n.ordinalNumber(e,{unit:"hour"}):A(e,i.length)},m:function(t,i,n){return"mo"===i?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):m(t,i)},s:function(t,i,n){return"so"===i?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,i)},S:function(t,i){return y(t,i)},X:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(i){case"X":return h(a);case"XXXX":case"XX":return v(a);default:return v(a,":")}},x:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"x":return h(a);case"xxxx":case"xx":return v(a);default:return v(a,":")}},O:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"O":case"OO":case"OOO":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},z:function(t,i,n,e){var a=(e._originalDate||t).getTimezoneOffset();switch(i){case"z":case"zz":case"zzz":return"GMT"+b(a,":");default:return"GMT"+v(a,":")}},t:function(t,i,n,e){return A(Math.floor((e._originalDate||t).getTime()/1e3),i.length)},T:function(t,i,n,e){return A((e._originalDate||t).getTime(),i.length)}};function b(t,i){var n=t>0?"-":"+",e=Math.abs(t),a=Math.floor(e/60),r=e%60;if(0===r)return n+String(a);var I=i||"";return n+String(a)+I+A(r,2)}function h(t,i){return t%60==0?(t>0?"-":"+")+A(Math.abs(t)/60,2):v(t,i)}function v(t,i){var n=i||"",e=t>0?"-":"+",a=Math.abs(t);return e+A(Math.floor(a/60),2)+n+A(a%60,2)}const T=N;var z=function(t,i){switch(t){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"})}},f=function(t,i){switch(t){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"})}},Z={p:f,P:function(t,i){var n,e=t.match(/(P+)(p+)?/)||[],a=e[1],r=e[2];if(!r)return z(t,i);switch(a){case"P":n=i.dateTime({width:"short"});break;case"PP":n=i.dateTime({width:"medium"});break;case"PPP":n=i.dateTime({width:"long"});break;default:n=i.dateTime({width:"full"})}return n.replace("{{date}}",z(a,i)).replace("{{time}}",f(r,i))}};const x=Z;var S=["D","DD"],G=["YY","YYYY"];function W(t,i,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function P(t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Q,p={date:P({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:P({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:P({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},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 k(t){return function(i,n){var e;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,r=null!=n&&n.width?String(n.width):a;e=t.formattingValues[r]||t.formattingValues[a]}else{var I=t.defaultWidth,M=null!=n&&n.width?String(n.width):t.defaultWidth;e=t.values[M]||t.values[I]}return e[t.argumentCallback?t.argumentCallback(i):i]}}function V(t){return function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.width,a=i.match(e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth]);if(!a)return null;var r,I=a[0],M=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(M)?function(t){for(var i=0;i<t.length;i++)if(t[i].test(I))return i}(M):function(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(I))return i}(M);return r=t.valueCallback?t.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:i.slice(I.length)}}}const X={code:"en-US",formatDistance:function(t,i,n){var e,a=Y[t];return e="string"==typeof a?a:1===i?a.one:a.other.replace("{{count}}",i.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+e:e+" ago":e},formatLong:p,formatRelative:function(t){return E[t]},localize:{ordinalNumber:function(t){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:k({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:k({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:k({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:k({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:k({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:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Q.matchPattern);if(!n)return null;var e=n[0],a=t.match(Q.parsePattern);if(!a)return null;var r=Q.valueCallback?Q.valueCallback(a[0]):a[0];return{value:r=i.valueCallback?i.valueCallback(r):r,rest:t.slice(e.length)}}),era:V({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:V({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(t){return t+1}}),month:V({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:V({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:V({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 U=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J=/^'([^]*?)'?$/,R=/''/g,O=/[a-zA-Z]/;function H(t,i,n){var M,w,g,s,C,A,c,d,l,L,j,m,D,y,N,b,h,v;r(2,arguments);var z=String(i),f=u(),Z=null!==(M=null!==(w=null==n?void 0:n.locale)&&void 0!==w?w:f.locale)&&void 0!==M?M:X,Y=a(null!==(g=null!==(s=null!==(C=null!==(A=null==n?void 0:n.firstWeekContainsDate)&&void 0!==A?A:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==C?C:f.firstWeekContainsDate)&&void 0!==s?s:null===(l=f.locale)||void 0===l||null===(L=l.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==g?g:1);if(!(Y>=1&&Y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=a(null!==(j=null!==(m=null!==(D=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(N=n.locale)||void 0===N||null===(b=N.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==D?D:f.weekStartsOn)&&void 0!==m?m:null===(h=f.locale)||void 0===h||null===(v=h.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==j?j:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw new RangeError("locale must contain localize property");if(!Z.formatLong)throw new RangeError("locale must contain formatLong property");var Q=I(t);if(!function(t){if(r(1,arguments),!function(t){return r(1,arguments),t instanceof Date||"object"===e(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var i=I(t);return!isNaN(Number(i))}(Q))throw new RangeError("Invalid time value");var p=function(t,i){return r(2,arguments),function(t,i){r(2,arguments);var n=I(t).getTime(),e=a(i);return new Date(n+e)}(t,-a(i))}(Q,o(Q)),E={firstWeekContainsDate:Y,weekStartsOn:P,locale:Z,_originalDate:Q};return z.match(B).map((function(t){var i=t[0];return"p"===i||"P"===i?(0,x[i])(t,Z.formatLong):t})).join("").match(U).map((function(e){if("''"===e)return"'";var a,r,I=e[0];if("'"===I)return(r=(a=e).match(J))?r[1].replace(R,"'"):a;var M=T[I];if(M)return null!=n&&n.useAdditionalWeekYearTokens||-1===G.indexOf(e)||W(e,i,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!(-1!==S.indexOf(e))||W(e,i,String(t)),M(p,e,Z.localize,E);if(I.match(O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return e})).join("")}const F=()=>t("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ0b3RhbF9sZXZlbCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLj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gICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyX2xvY2siIHgxPSIxMDAlIiB5MT0iMTguNDA1NiIgeDI9IjE2OS4wMDIiIHkyPSIxMC4yODQ1IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiM4MTRGRDYiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRDY3OUQ4Ii8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KPC9zdmc+Cg=="}),K=({loyaltyPoints:i,spendablePoints:e,pointExpireString:a,language:r})=>t("div",{class:"PointsInfo"},i&&i>=0&&t("div",{class:"Points"},i," ",t("sub",{class:"XP"},n("xp",r))),e&&t("div",{class:"Points"},e," ",t("sub",{class:"XP"},n("sp",r))),a&&t("div",{class:"ExpirationPoints"},a," ")),q=({language:i,onRedeemClick:e})=>t("div",{class:"CardCell Redeem"},t("div",{class:"RedeemButton",onClick:()=>{e()}},t("span",null,n("redeem",i)))),$=i=>t("div",{class:"CardCell PlayerName Txt"},i.playerName),_=e=>t("div",{class:"CardCell ElevateLevel"},t("span",{class:"LevelName",title:e.level},e.level),e.expireTime&&t("div",{class:"CardCell ExpirationDate Txt"},n("expireOn",e.language),t("span",{class:"ExpireTime"},H(new Date(e.expireTime),e.dateFormat||"yyyy-MM-dd")),!e.hideInfo&&t("span",{class:"fa Info",style:{background:`url(${i("../static/info.svg")})`}},t("span",{class:"InfoTips",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI2IiBoZWlnaHQ9IjkyIiB2aWV3Qm94PSIwIDAgMTI2IDkyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9kXzI0Ml80MjMxKSI+CjxyZWN0I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80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="})))),tt=i=>t("div",{class:"CardCell ElevateLevel Expire"},t("div",{class:"CardCell ExpirationDate Txt"},n("expireOn",i.language),t("span",{class:"ExpireTime"},H(new Date(i.expireTime),i.dateFormat||"yyyy-MM-dd")))),it=n=>{const e=n.loyaltyIconUrl?t("img",{class:"Badge",src:n.loyaltyIconUrl}):n.hideIfNull?"":t("div",{class:"Badge"}),a=n.playerAvatarUrl||i("../static/user.svg");return t("div",{class:"PlayerAvatar",style:{position:n.onlyBadge?"":"relative"}},!n.onlyBadge&&t("img",{class:"Avatar",src:a}),e)};export{tt as L,it as P,K as a,F as b,$ as c,_ as d,q as e,o as g,r,I as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,a as n,h as a,F as t}from"./index-31c95277.js";import{P as i,a as s,c as r,d,b as o,e as l}from"./player-elevate-card-items-
|
|
1
|
+
import{r as e,a as n,h as a,F as t}from"./index-31c95277.js";import{P as i,a as s,c as r,d,b as o,e as l}from"./player-elevate-card-items-19d02d44.js";import{T as c}from"./locale.utils-10bf5b6c.js";const f=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.mbSource=void 0,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"),f=n("../static/card-ground-over.svg");return a("div",{key:"e976417483a756b8f67d70feb09afb544efb3802",class:`ElevateCardWrapper ${this.theme}`},a("div",{key:"5de2dbc7d093bbcbe7b415122effa691c058ddb6",class:"Card Outer",style:{backgroundImage:`url(${e}`}},a("general-styling-wrapper",{key:"1a5b13640d37efab6dacee24e27f9f2bdc83cd0c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:c,translationUrl:this.translationUrl,mbSource:this.mbSource}),a("player-elevate-card-data",{key:"e80389984932f77408c772ad9cb130de99e88504",params:this.paramProxy}),a("div",{key:"fec6145e06a300bc044fec2f96e61dfe86f44d6c",class:"OuterCover Inner",style:{backgroundImage:`url(${f}`}},this.playerElevateLevel&&a(t,{key:"90b1f057c5d1d5ae286a75c3d30182c16593bbe6"},a("div",{key:"cf5a0cc332fc6beafe079a2b500ebbc1f8d21b91",class:"Content Row"},a("div",{key:"f3348ba8eb7bcb08085ab49ce2059c7fd86f862f",class:"PlayerImg"},a(i,{key:"8fa96d942ee70d43ea0231b87f5d5de0b72198df",playerAvatarUrl:this.playerAvatarUrl,loyaltyIconUrl:this.playerElevateLevel.presentation.asset}),a(s,{key:"5044713fcc4f0bf5921e80560d64169631bb481c",loyaltyPoints:this.playerElevateLevel.loyaltyPoints<=0?0:this.playerElevateLevel.loyaltyPoints,language:this.language})),this.pointExpireString&&a("div",{key:"cc495095b3526b9964073aa638d890e7eae0834e",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),a("div",{key:"d4962400b6837fc6ce475aef097d338031655439",class:`LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}`},a(r,{key:"88e1fb7f5728a7fe21b1e446901ba5ee39a22dcf",playerName:this.playerName}),a(d,{key:"8fd5e33ccd3cfa1ea514b3b6fb9ac2fba0b3ac5e",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),a(o,{key:"91a28e33c3e4eb53305a2bd255d209643f5c2715"}),a(l,{key:"72648cdae5ac1f1eb0088255912fafa0cb543f5f",onRedeemClick:this.onRedeemClick,language:this.language})))))))}static get assetsDirs(){return["../static"]}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};f.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(--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}";export{f as player_elevate_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,a,h as t,F as i}from"./index-31c95277.js";import{T as n,a as s}from"./locale.utils-
|
|
1
|
+
import{r as e,a,h as t,F as i}from"./index-31c95277.js";import{T as n,a as s}from"./locale.utils-10bf5b6c.js";import{P as r,a as o}from"./player-elevate-card-items-19d02d44.js";const d=class{constructor(a){e(this,a),this.isPointDetailCard="earningRule"===this.buttonType,this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.mbSource=void 0,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"),d=a("../static/card-ground-over.svg");return t("div",{key:"45aa5be359b46d5503a8310daa4db2029a8c59b8",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"0d1773bd9eb0913ede4eeedfc93f22967aa133d6",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"cfb35c5220633e39e25b11f0be5b6fc5cc73df5c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl,mbSource:this.mbSource}),t("player-elevate-card-data",{key:"25206c4deb6e51e3ea60259d4fee3452df8253d6",params:this.paramProxy}),t("div",{key:"c14ee3498a1a584b7f484fe2ef6a204c337d2b27",class:"OuterCover Inner",style:{backgroundImage:`url(${d}`}},t("div",{key:"dd7e0528034013d889f1f9bfbacf7928d2b4d1e9",class:"Content Row"},this.playerElevateLevel&&t(i,{key:"20b36f112f735446a6219b61e012e4568f199717"},t("div",{key:"3705136c1ee509484f43b7268b23cfbe273f727c",class:"PlayerImg"},t(r,{key:"b81cbcff0528acd3253a676e0a64141c6414fc2a",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"311b3ffcdf8a3ffe4b609fd0f1d9dee83424ca58",class:`LevelInfo ${this.playerElevateLevel.name}`},t("div",{key:"ba1744b3b9cee03a424093df96454ff68d04aec1",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:s("spendablePoints",this.language)),t("div",{key:"6b554d17a0f74684e23549365fb06f6079ba7239",class:"PointsTxt SPPoints"},t(o,{key:"a4c479500b38337c51a451aa3f482f195a2c827f",spendablePoints:this.playerElevateLevel.spendablePoints<=0?0:this.playerElevateLevel.spendablePoints,language:this.language}),t("a",{key:"896780fe3b4556d7eccbaac6eb5c1a715952bab0",class:"TC",onClick:()=>{this.onDetailsClick()}},s("termAndConditions",this.language))),this.pointExpireString&&t("div",{key:"e8556ee3033e9a1365fc8912321ae2b42f200bbe",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};d.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(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";export{d as player_elevate_pointcard}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as e}from"./index-31c95277.js";import{a as t,t as i,T as n}from"./locale.utils-
|
|
1
|
+
import{r as a,h as e}from"./index-31c95277.js";import{a as t,t as i,T as n}from"./locale.utils-10bf5b6c.js";const r=class{constructor(e){a(this,e),this.truncateNumber=(a,e=2)=>{const t=a.toString(),[i,n=""]=t.split(".");return e>0?`${i}.${n?n.slice(0,e):"00"}`:`${i}`},this.sendRakebackClaimedEvent=()=>{this.endpoint&&this.session&&this.rakebackInfo.claimable&&!this.isLoading&&window.postMessage({type:"RakebackClaimTrigger",points:this.rakebackInfo.points},window.location.href)},this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.language="en",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.show=!0,this.rakebackInfo={hasRakebackWallet:!1,points:0,currency:"TRY",claimable:!1,minutesCanClaim:0,showCanClaim:!1},this.isLoading=!1,this.coolingOffPeriod=!1,this.showTheWidget=!1}async onSessionOrEndpointChange(){await this.loadRakebackInfo()}async onShowOrHasRakebackWalletChange(){this.showTheWidget=this.show&&this.rakebackInfo.hasRakebackWallet}handleMessage(a){const{type:e}=null==a?void 0:a.data;"RakebackClaimConfirmed"===e&&this.claimRakeback()}async loadRakebackInfo(){if(this.endpoint&&this.session){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`),e=await fetch(a.href,{method:"GET",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to load rakeback info");const{rakebackWallet:i}=null==t?void 0:t.data;if(!i)return void window.postMessage({type:"RakebackWalletMissing"},window.location.href);const{total:n,claimable:r,currency:o,minutesCanClaim:s}=i||{};this.rakebackInfo={hasRakebackWallet:!0,points:(null==n?void 0:n.points)<=0?"0.00":this.truncateNumber(n.points,2),currency:o||"",claimable:r||!1,showCanClaim:Boolean(s&&s>0),minutesCanClaim:s?s<=1&&s>0?1:this.truncateNumber(s,0):0}}catch(a){console.error("Error loading rakeback info:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}}async claimRakeback(){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/rakeback/claim`),e=await fetch(a.href,{method:"PUT",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify({})});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(!t.success)throw new Error(t.errorMessage||"Failed to claim rakeback");await this.loadRakebackInfo(),window.postMessage({type:"RakebackClaimed",points:this.rakebackInfo.points},window.location.href)}catch(a){console.error("Error claiming rakeback:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}async componentWillLoad(){await this.loadRakebackInfo(),await this.onShowOrHasRakebackWalletChange()}render(){return this.showTheWidget?e("div",{class:"RakebackCard"},e("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:n,translationUrl:this.translationUrl,mbSource:this.mbSource}),e("div",{class:"RakebackCardContent"},e("div",{class:"RakebackTitle"},t("rakebackTitle",this.language)),e("div",{class:"RakebackDetails"},e("div",{class:"RakebackInfo"},e("div",{class:"RakebackNumContainer"},e("span",{class:"RakebackNum"},this.rakebackInfo.points),e("span",{class:"RakebackCurrency"},this.rakebackInfo.currency))),e("div",{class:"RakebackButton "+(this.isLoading||!this.rakebackInfo.claimable?"disabled":""),onClick:this.sendRakebackClaimedEvent},t("claim",this.language))),!this.rakebackInfo.claimable&&this.rakebackInfo.showCanClaim&&e("div",{class:"RakebackCoolOff"},i("minutesCanClaim",{lang:this.language,minutes:this.rakebackInfo.minutesCanClaim})))):null}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}}};r.style=":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}";export{r as player_rakeback_card}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e="en",i=["en","zh-hk","it","fr","tr","hr"],n={en:{redeem:"Redeem",claim:"Claim",expireOn:"Expire on ",coinsToBeExpired:"${expirationPoints} coins to expire in ${expireDay} days",coinsToBeExpiredDay:"${expirationPoints} coins to expire in ${expireDay} day",coinsToBeExpiredHours:"${expirationPoints} coins to expire in ${expireDay} hours",coinsToBeExpiredHour:"${expirationPoints} coins to expire in ${expireDay} hour",coinsToBeExpiredMinutes:"${expirationPoints} coins to expire in ${expireDay} minutes",coinsToBeExpiredMinute:"${expirationPoints} coins to expire in ${expireDay} minute",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Available Rakeback",loading:"Loading",minutesCanClaim:"Next Claim is available in ${minutes} minutes"},"zh-hk":{redeem:"兑奖",claim:"返佣",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"明细",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"可用的返利",loading:"加載中",minutesCanClaim:"下次可領取時間為${minutes}分鐘後"},de:{redeem:"Redeem",claim:"Anspruch",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Verfügbarer Rakeback",loading:"Laden",minutesCanClaim:"Nächster Anspruch ist in ${minutes} Minuten verfügbar"},it:{redeem:"Redeem",claim:"Richiesta",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Rakeback Disponibile",loading:"Caricamento",minutesCanClaim:"La prossima richiesta sarà disponibile tra ${minutes} minuti"},fr:{redeem:"Redeem",claim:"Réclamer",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",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Next level is ${levelName}. ${pointsToReach} XP to level up",spendablePoints:"Spendable Points:",details:"Details",earningRules:"Earning Rules",xp:"XP",sp:"Coins",termAndConditions:"Term & Conditions",rakebackTitle:"Rakeback Disponible",loading:"Chargement",minutesCanClaim:"La prochaine réclamation sera disponible dans ${minutes} minutes"},es:{redeem:"Redeem",claim:"Reclamar",rakebackTitle:"Rakeback Disponible",loading:"Cargando",minutesCanClaim:"La próxima reclamación estará disponible en ${minutes} minutos"},tr:{redeem:"Kullan",claim:"Talep Et",expireOn:"Geçerlilik tarihi: ",coinsToBeExpired:"${expirationPoints} coin ${expireDay} gün içinde sona erecek",coinsToBeExpiredDay:"${expirationPoints} coin ${expireDay} gün içinde sona erecek",coinsToBeExpiredHours:"${expirationPoints} coin ${expireDay} saat içinde sona erecek",coinsToBeExpiredHour:"${expirationPoints} coin ${expireDay} saat içinde sona erecek",coinsToBeExpiredMinutes:"${expirationPoints} coin ${expireDay} dakika içinde sona erecek",coinsToBeExpiredMinute:"${expirationPoints} coin ${expireDay} dakika içinde sona erecek",pointsToBeExpired:"${expirationPoints} puan ${expireDay} gün içinde sona erecek",pointsToBeExpiredDay:"${expirationPoints} puan ${expireDay} gün içinde sona erecek",pointsToBeExpiredHours:"${expirationPoints} puan ${expireDay} saat içinde sona erecek",pointsToBeExpiredHour:"${expirationPoints} puan ${expireDay} saat içinde sona erecek",pointsToBeExpiredMinutes:"${expirationPoints} puan ${expireDay} dakika içinde sona erecek",pointsToBeExpiredMinute:"${expirationPoints} puan ${expireDay} dakika içinde sona erecek",tipsForNextLevel:"Sonraki seviye ${levelName}. Seviye atlamak için ${pointsToReach} XP",spendablePoints:"Kullanılabilir Puan:",details:"Detaylar",earningRules:"Kazanma Kuralları",xp:"XP",sp:"Coin",termAndConditions:"Şartlar ve Koşullar",rakebackTitle:"Mevcut Rakeback",loading:"Yükleniyor",minutesCanClaim:"Sonraki talep ${minutes} dakika içinde kullanılabilir"},ru:{redeem:"Redeem",claim:"Требовать",rakebackTitle:"Доступный Рейкбек",loading:"Загрузка",minutesCanClaim:"Следующее требование будет доступно через ${minutes} минут"},ro:{redeem:"Redeem",claim:"Revendicare",rakebackTitle:"Rakeback Disponibil",loading:"Se încarcă",minutesCanClaim:"Următoarea revendicare va fi disponibilă în ${minutes} minute"},hr:{redeem:"Otkupiti",claim:"Zahtjev",expireOn:"Istječe",pointsToBeExpired:"${expirationPoints} bodova ističe za ${expireDay} dana",pointsToBeExpiredHours:"${expirationPoints} points to expire in ${expireDay} hours",pointsToBeExpiredHour:"${expirationPoints} points to expire in ${expireDay} hour",pointsToBeExpiredMinutes:"${expirationPoints} points to expire in ${expireDay} minutes",pointsToBeExpiredMinute:"${expirationPoints} points to expire in ${expireDay} minute",tipsForNextLevel:"Trebate ${pointsToReach} da dosegnete razinu ${levelName}",spendablePoints:"Bodovi za potrošit:",details:"Detalji",xp:"XP",rakebackTitle:"Dostupan Rakeback",loading:"Učitavanje",minutesCanClaim:"Sljedeći zahtjev bit će dostupan za ${minutes} minuta"},hu:{redeem:"Redeem",claim:"Igény",rakebackTitle:"Elérhető Rakeback",loading:"Betöltés",minutesCanClaim:"A következő igény ${minutes} perc múlva lesz elérhető"},pl:{redeem:"Redeem",claim:"Roszczenie",rakebackTitle:"Dostępny Rakeback",loading:"Ładowanie",minutesCanClaim:"Następne roszczenie będzie dostępne za ${minutes} minut"},pt:{redeem:"Redeem",claim:"Reivindicar",rakebackTitle:"Rakeback Disponível",loading:"Carregando",minutesCanClaim:"Próxima reivindicação disponível em ${minutes} minutos"},sl:{redeem:"Redeem",claim:"Zahtevek",rakebackTitle:"Razpoložljiv Rakeback",loading:"Nalaganje",minutesCanClaim:"Naslednji zahtevek bo na voljo čez ${minutes} minut"},sr:{redeem:"Redeem",claim:"Zahtev",rakebackTitle:"Dostupan Rakeback",loading:"Učitavanje",minutesCanClaim:"Sledeći zahtev biće dostupan za ${minutes} minuta"}},o=(o,t)=>{const a=t;return n[void 0!==a&&i.includes(a)?a:e][o]},t=(o,t)=>{const a=t.lang;let r=n[void 0!==a&&i.includes(a)?a:e][o];return t?(Object.keys(t).forEach((e=>{r=r.replace(new RegExp("\\${"+e+"}","gm"),t[e])})),r):n[void 0!==a&&i.includes(a)?a:e][o]};export{n as T,o as a,t}
|