@everymatrix/player-elevate-points-history 1.56.2 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +5 -4
- package/dist/cjs/index-ba216df9.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/locale.utils-dc4c7c34.js +224 -0
- package/dist/cjs/{player-elevate-card-items-00234afd.js → player-elevate-card-items-24c0f3f8.js} +5 -166
- package/dist/cjs/player-elevate-card.cjs.entry.js +3 -2
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +4 -3
- package/dist/cjs/player-elevate-points-history.cjs.js +1 -1
- package/dist/cjs/player-rakeback-card.cjs.entry.js +162 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.stories.js +62 -0
- package/dist/esm/bonus-pagination-limits_6.entry.js +2 -1
- package/dist/esm/index-f02f9189.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/locale.utils-71f870a8.js +220 -0
- package/dist/esm/{player-elevate-card-items-9e358981.js → player-elevate-card-items-b9e81d29.js} +2 -160
- package/dist/esm/player-elevate-card.entry.js +2 -1
- package/dist/esm/player-elevate-loyaltycard.entry.js +2 -1
- package/dist/esm/player-elevate-points-history.js +1 -1
- package/dist/esm/player-rakeback-card.entry.js +158 -0
- package/dist/player-elevate-points-history/p-19f453c3.entry.js +1 -0
- package/dist/player-elevate-points-history/p-23c8a06e.entry.js +1 -0
- package/dist/player-elevate-points-history/p-4fc54b9e.js +1 -0
- package/dist/player-elevate-points-history/p-84c4fe4f.entry.js +1 -0
- package/dist/player-elevate-points-history/p-a92e158d.entry.js +1 -0
- package/dist/player-elevate-points-history/p-c3e53f66.js +1 -0
- package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/main.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/preview.d.ts +70 -0
- package/dist/types/components/player-elevate-points-history/player-elevate-points-history.stories.d.ts +5 -0
- package/package.json +1 -1
- package/dist/player-elevate-points-history/p-2be8ce26.entry.js +0 -1
- package/dist/player-elevate-points-history/p-55a1fd32.js +0 -1
- package/dist/player-elevate-points-history/p-63db7560.entry.js +0 -1
- package/dist/player-elevate-points-history/p-77e54a25.entry.js +0 -1
package/dist/esm/{player-elevate-card-items-9e358981.js → player-elevate-card-items-b9e81d29.js}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, a as getAssetPath } from './index-f02f9189.js';
|
|
2
|
+
import { a as translate } from './locale.utils-71f870a8.js';
|
|
2
3
|
|
|
3
4
|
function _typeof(o) {
|
|
4
5
|
"@babel/helpers - typeof";
|
|
@@ -2196,165 +2197,6 @@ function cleanEscapedString(input) {
|
|
|
2196
2197
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2197
2198
|
}
|
|
2198
2199
|
|
|
2199
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
2200
|
-
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
|
|
2201
|
-
const TRANSLATIONS = {
|
|
2202
|
-
en: {
|
|
2203
|
-
redeem: 'Redeem',
|
|
2204
|
-
expireOn: 'Expire on ',
|
|
2205
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2206
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2207
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2208
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2209
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2210
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2211
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2212
|
-
spendablePoints: 'Spendable Points:',
|
|
2213
|
-
details: 'Details',
|
|
2214
|
-
earningRules: 'Earning Rules',
|
|
2215
|
-
xp: 'XP',
|
|
2216
|
-
sp: 'Coins',
|
|
2217
|
-
termAndConditions: 'Term & Conditions',
|
|
2218
|
-
},
|
|
2219
|
-
'zh-hk': {
|
|
2220
|
-
redeem: '兑奖',
|
|
2221
|
-
expireOn: 'Expire on ',
|
|
2222
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2223
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2224
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2225
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2226
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2227
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2228
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2229
|
-
spendablePoints: 'Spendable Points:',
|
|
2230
|
-
details: '明细',
|
|
2231
|
-
earningRules: 'Earning Rules',
|
|
2232
|
-
xp: 'XP',
|
|
2233
|
-
sp: 'Coins',
|
|
2234
|
-
termAndConditions: 'Term & Conditions',
|
|
2235
|
-
},
|
|
2236
|
-
de: {
|
|
2237
|
-
redeem: 'Redeem',
|
|
2238
|
-
expireOn: 'Expire on ',
|
|
2239
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2240
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2241
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2242
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2243
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2244
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2245
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2246
|
-
spendablePoints: 'Spendable Points:',
|
|
2247
|
-
details: 'Details',
|
|
2248
|
-
earningRules: 'Earning Rules',
|
|
2249
|
-
xp: 'XP',
|
|
2250
|
-
sp: 'Coins',
|
|
2251
|
-
termAndConditions: 'Term & Conditions',
|
|
2252
|
-
},
|
|
2253
|
-
it: {
|
|
2254
|
-
redeem: 'Redeem',
|
|
2255
|
-
expireOn: 'Expire on ',
|
|
2256
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2257
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2258
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2259
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2260
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2261
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2262
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2263
|
-
spendablePoints: 'Spendable Points:',
|
|
2264
|
-
details: 'Details',
|
|
2265
|
-
earningRules: 'Earning Rules',
|
|
2266
|
-
xp: 'XP',
|
|
2267
|
-
sp: 'Coins',
|
|
2268
|
-
termAndConditions: 'Term & Conditions',
|
|
2269
|
-
},
|
|
2270
|
-
fr: {
|
|
2271
|
-
redeem: 'Redeem',
|
|
2272
|
-
expireOn: 'Expire on ',
|
|
2273
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2274
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2275
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2276
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2277
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2278
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2279
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2280
|
-
spendablePoints: 'Spendable Points:',
|
|
2281
|
-
details: 'Details',
|
|
2282
|
-
earningRules: 'Earning Rules',
|
|
2283
|
-
xp: 'XP',
|
|
2284
|
-
sp: 'Coins',
|
|
2285
|
-
termAndConditions: 'Term & Conditions',
|
|
2286
|
-
},
|
|
2287
|
-
es: {
|
|
2288
|
-
redeem: 'Redeem'
|
|
2289
|
-
},
|
|
2290
|
-
tr: {
|
|
2291
|
-
redeem: 'Redeem',
|
|
2292
|
-
expireOn: 'Expire on ',
|
|
2293
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2294
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2295
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2296
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2297
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2298
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2299
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2300
|
-
spendablePoints: 'Spendable Points:',
|
|
2301
|
-
details: 'Details',
|
|
2302
|
-
earningRules: 'Earning Rules',
|
|
2303
|
-
xp: 'XP',
|
|
2304
|
-
sp: 'Coins',
|
|
2305
|
-
termAndConditions: 'Term & Conditions',
|
|
2306
|
-
},
|
|
2307
|
-
ru: {
|
|
2308
|
-
redeem: 'Redeem'
|
|
2309
|
-
},
|
|
2310
|
-
ro: {
|
|
2311
|
-
redeem: 'Redeem'
|
|
2312
|
-
},
|
|
2313
|
-
hr: {
|
|
2314
|
-
redeem: 'Otkupiti',
|
|
2315
|
-
expireOn: 'Istječe',
|
|
2316
|
-
pointsToBeExpired: '${expirationPoints} bodova ističe za ${expireDay} dana',
|
|
2317
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2318
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2319
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2320
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2321
|
-
tipsForNextLevel: 'Trebate ${pointsToReach} da dosegnete razinu ${levelName}',
|
|
2322
|
-
spendablePoints: 'Bodovi za potrošit:',
|
|
2323
|
-
details: 'Detalji',
|
|
2324
|
-
xp: 'XP',
|
|
2325
|
-
},
|
|
2326
|
-
hu: {
|
|
2327
|
-
redeem: 'Redeem'
|
|
2328
|
-
},
|
|
2329
|
-
pl: {
|
|
2330
|
-
redeem: 'Redeem'
|
|
2331
|
-
},
|
|
2332
|
-
pt: {
|
|
2333
|
-
redeem: 'Redeem'
|
|
2334
|
-
},
|
|
2335
|
-
sl: {
|
|
2336
|
-
redeem: 'Redeem'
|
|
2337
|
-
},
|
|
2338
|
-
sr: {
|
|
2339
|
-
redeem: 'Redeem'
|
|
2340
|
-
}
|
|
2341
|
-
};
|
|
2342
|
-
const translate = (key, customLang) => {
|
|
2343
|
-
const lang = customLang;
|
|
2344
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2345
|
-
};
|
|
2346
|
-
const translateWithParams = (key, params) => {
|
|
2347
|
-
const lang = params['lang'];
|
|
2348
|
-
let templateString = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2349
|
-
if (!params) {
|
|
2350
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2351
|
-
}
|
|
2352
|
-
Object.keys(params).forEach((paramName) => {
|
|
2353
|
-
templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
|
|
2354
|
-
});
|
|
2355
|
-
return templateString;
|
|
2356
|
-
};
|
|
2357
|
-
|
|
2358
2200
|
const levelPercentSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ0b3RhbF9sZXZlbCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KICAgIDxyZWN0IHk9IjEyIiAgeD0iMiIgaWQ9ImN1cnJlbnRfbGV2ZWwiIHdpZHRoPSI2NCIgaGVpZ2h0PSI1IiByeD0iMi41IiBmaWxsPSJ3aGl0ZSIvPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcl9jdXJyZW50X2xldmVsKSI+CiAgICAgICAgPGNpcmNsZSBpZD0iY2lyY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MCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMiIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo=';
|
|
@@ -2376,4 +2218,4 @@ const PlayerAvatar = (props) => {
|
|
|
2376
2218
|
return h("div", { class: "PlayerAvatar", style: { 'position': `${props.onlyBadge ? '' : 'relative'}` } }, !props.onlyBadge && h("img", { class: "Avatar", src: avatarSrc }), badge);
|
|
2377
2219
|
};
|
|
2378
2220
|
|
|
2379
|
-
export { PlayerAvatar as P,
|
|
2221
|
+
export { PlayerAvatar as P, PlayerPoints as a, PlayerNameDiv as b, PlayerElevateLoyaltyLevel as c, PlayerLoyaltyProcess as d, PlayerElevateCardRedeem as e, getTimezoneOffsetInMilliseconds as g, requiredArgs as r, toDate as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-f02f9189.js';
|
|
2
|
-
import {
|
|
2
|
+
import { P as PlayerAvatar, a as PlayerPoints, b as PlayerNameDiv, c as PlayerElevateLoyaltyLevel, d as PlayerLoyaltyProcess, e as PlayerElevateCardRedeem } from './player-elevate-card-items-b9e81d29.js';
|
|
3
|
+
import { T as TRANSLATIONS } from './locale.utils-71f870a8.js';
|
|
3
4
|
|
|
4
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}";
|
|
5
6
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-f02f9189.js';
|
|
2
|
-
import {
|
|
2
|
+
import { P as PlayerAvatar, c as PlayerElevateLoyaltyLevel, a as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-b9e81d29.js';
|
|
3
|
+
import { t as translateWithParams, T as TRANSLATIONS } from './locale.utils-71f870a8.js';
|
|
3
4
|
|
|
4
5
|
const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.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:5px}.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}";
|
|
5
6
|
const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["bonus-pagination-limits_6",[[1,"player-elevate-points-history",{"playerAvatarUrl":[513,"player-avatar-url"],"session":[513],"endpoint":[513],"limit":[1538],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"pageLimitOptions":[1537,"page-limit-options"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"locale":[32],"type":[32],"pageSetting":[32],"pointsWallets":[32]},[[0,"reloadPageByType","reloadPageByTypeHandler"]],{"type":["walletTypeChangedHandler"],"endpoint":["updateWallets"],"language":["updateWallets"],"session":["updateWallets"]}],[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"bonus-pagination-limits",{"language":[513],"translationUrl":[513,"translation-url"],"pageLimitOptions":[513,"page-limit-options"],"limit":[1538],"pageLimits":[32]}],[0,"bonus-pagination-nav",{"total":[1538],"limit":[1538],"offset":[1538],"tableId":[1537,"table-id"],"language":[1537],"translationUrl":[513,"translation-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"displayRangeOfTotal":[1540,"display-range-of-total"],"navItemAccount":[1538,"nav-item-account"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32],"showAsEllipsisMid":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-loyaltycard",[[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["bonus-pagination-limits_6",[[1,"player-elevate-points-history",{"playerAvatarUrl":[513,"player-avatar-url"],"session":[513],"endpoint":[513],"limit":[1538],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"pageLimitOptions":[1537,"page-limit-options"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"locale":[32],"type":[32],"pageSetting":[32],"pointsWallets":[32]},[[0,"reloadPageByType","reloadPageByTypeHandler"]],{"type":["walletTypeChangedHandler"],"endpoint":["updateWallets"],"language":["updateWallets"],"session":["updateWallets"]}],[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"bonus-pagination-limits",{"language":[513],"translationUrl":[513,"translation-url"],"pageLimitOptions":[513,"page-limit-options"],"limit":[1538],"pageLimits":[32]}],[0,"bonus-pagination-nav",{"total":[1538],"limit":[1538],"offset":[1538],"tableId":[1537,"table-id"],"language":[1537],"translationUrl":[513,"translation-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"displayPageNumbers":[1540,"display-page-numbers"],"displayRangeOfTotal":[1540,"display-range-of-total"],"navItemAccount":[1538,"nav-item-account"],"endPageIndex":[32],"pagesArray":[32],"currentPage":[32],"showAsEllipsisMid":[32]},[[8,"paginationReset","pageLimitChangedHandler"],[8,"pageLimitChanged","pageLimitChangedHandler"]]],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-loyaltycard",[[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-f02f9189.js';
|
|
2
|
+
import { a as translate, t as translateWithParams, T as TRANSLATIONS } from './locale.utils-71f870a8.js';
|
|
3
|
+
|
|
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
|
+
const PlayerRakebackCardStyle0 = playerRakebackCardCss;
|
|
6
|
+
|
|
7
|
+
const PlayerRakebackCard = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
/**
|
|
11
|
+
* Truncate number to specified decimal places (without rounding)
|
|
12
|
+
* @param num Number to be processed
|
|
13
|
+
* @param digits Number of decimal places to keep
|
|
14
|
+
*/
|
|
15
|
+
this.truncateNumber = (num, digits = 2) => {
|
|
16
|
+
const str = num.toString();
|
|
17
|
+
const [integer, decimal = ''] = str.split('.');
|
|
18
|
+
return digits > 0 ? `${integer}.${decimal ? decimal.slice(0, digits) : '00'}` : `${integer}`;
|
|
19
|
+
};
|
|
20
|
+
this.sendRakebackClaimedEvent = () => {
|
|
21
|
+
if (!this.endpoint || !this.session || !this.rakebackInfo.claimable || this.isLoading) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
window.postMessage({ type: 'RakebackClaimTrigger', points: this.rakebackInfo.points }, window.location.href);
|
|
25
|
+
};
|
|
26
|
+
this.endpoint = undefined;
|
|
27
|
+
this.theme = 'Dark';
|
|
28
|
+
this.session = undefined;
|
|
29
|
+
this.language = 'en';
|
|
30
|
+
this.clientStyling = '';
|
|
31
|
+
this.clientStylingUrl = '';
|
|
32
|
+
this.translationUrl = '';
|
|
33
|
+
this.show = true;
|
|
34
|
+
this.rakebackInfo = {
|
|
35
|
+
hasRakebackWallet: false,
|
|
36
|
+
points: 0.0,
|
|
37
|
+
currency: 'TRY',
|
|
38
|
+
claimable: false,
|
|
39
|
+
minutesCanClaim: 0,
|
|
40
|
+
showCanClaim: false
|
|
41
|
+
};
|
|
42
|
+
this.isLoading = false;
|
|
43
|
+
this.coolingOffPeriod = false;
|
|
44
|
+
this.showTheWidget = false;
|
|
45
|
+
}
|
|
46
|
+
async onSessionOrEndpointChange() {
|
|
47
|
+
await this.loadRakebackInfo();
|
|
48
|
+
}
|
|
49
|
+
async onShowOrHasRakebackWalletChange() {
|
|
50
|
+
this.showTheWidget = this.show && this.rakebackInfo.hasRakebackWallet;
|
|
51
|
+
}
|
|
52
|
+
handleMessage(event) {
|
|
53
|
+
const { type } = event === null || event === void 0 ? void 0 : event.data;
|
|
54
|
+
if (type === 'RakebackClaimConfirmed') {
|
|
55
|
+
this.claimRakeback();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async loadRakebackInfo() {
|
|
59
|
+
if (!this.endpoint || !this.session) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
this.isLoading = true;
|
|
63
|
+
try {
|
|
64
|
+
const url = new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`);
|
|
65
|
+
const response = await fetch(url.href, {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
headers: {
|
|
68
|
+
'X-Sessionid': this.session,
|
|
69
|
+
'Content-Type': 'application/json'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
if (!response.ok) {
|
|
73
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
74
|
+
}
|
|
75
|
+
const data = await response.json();
|
|
76
|
+
if (!data.success) {
|
|
77
|
+
throw new Error(data.errorMessage || 'Failed to load rakeback info');
|
|
78
|
+
}
|
|
79
|
+
const { rakebackWallet } = data === null || data === void 0 ? void 0 : data.data;
|
|
80
|
+
if (!rakebackWallet) {
|
|
81
|
+
window.postMessage({ type: 'RakebackWalletMissing' }, window.location.href);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const { total, claimable, currency, minutesCanClaim } = rakebackWallet || {};
|
|
85
|
+
this.rakebackInfo = {
|
|
86
|
+
hasRakebackWallet: true,
|
|
87
|
+
points: (total === null || total === void 0 ? void 0 : total.points) ? this.truncateNumber(total.points, 2) : `0.00`,
|
|
88
|
+
currency: currency || '',
|
|
89
|
+
claimable: claimable || false,
|
|
90
|
+
showCanClaim: Boolean(minutesCanClaim && minutesCanClaim > 0),
|
|
91
|
+
minutesCanClaim: minutesCanClaim
|
|
92
|
+
? minutesCanClaim <= 1 && minutesCanClaim > 0
|
|
93
|
+
? 1
|
|
94
|
+
: this.truncateNumber(minutesCanClaim, 0)
|
|
95
|
+
: 0
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
catch (err) {
|
|
99
|
+
console.error('Error loading rakeback info:', err);
|
|
100
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
101
|
+
}
|
|
102
|
+
finally {
|
|
103
|
+
this.isLoading = false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async claimRakeback() {
|
|
107
|
+
this.isLoading = true;
|
|
108
|
+
try {
|
|
109
|
+
const url = new URL(`${this.endpoint}/v1/elevate/rakeback/claim`);
|
|
110
|
+
const response = await fetch(url.href, {
|
|
111
|
+
method: 'PUT',
|
|
112
|
+
headers: {
|
|
113
|
+
'X-Sessionid': this.session,
|
|
114
|
+
'Content-Type': 'application/json'
|
|
115
|
+
},
|
|
116
|
+
body: JSON.stringify({})
|
|
117
|
+
});
|
|
118
|
+
if (!response.ok) {
|
|
119
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
120
|
+
}
|
|
121
|
+
const data = await response.json();
|
|
122
|
+
if (!data.success) {
|
|
123
|
+
throw new Error(data.errorMessage || 'Failed to claim rakeback');
|
|
124
|
+
}
|
|
125
|
+
// Refresh rakeback information
|
|
126
|
+
await this.loadRakebackInfo();
|
|
127
|
+
// Send event notification for successful redemption
|
|
128
|
+
window.postMessage({ type: 'RakebackClaimed', points: this.rakebackInfo.points }, window.location.href);
|
|
129
|
+
}
|
|
130
|
+
catch (err) {
|
|
131
|
+
console.error('Error claiming rakeback:', err);
|
|
132
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
this.isLoading = false;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
async componentWillLoad() {
|
|
139
|
+
await this.loadRakebackInfo();
|
|
140
|
+
await this.onShowOrHasRakebackWalletChange();
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
return this.showTheWidget ? (h("div", { class: "RakebackCard" }, h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("div", { class: "RakebackCardContent" }, h("div", { class: "RakebackTitle" }, translate('rakebackTitle', this.language)), h("div", { class: "RakebackDetails" }, h("div", { class: "RakebackInfo" }, h("div", { class: "RakebackNumContainer" }, h("span", { class: "RakebackNum" }, this.rakebackInfo.points), h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (h("div", { class: "RakebackCoolOff" }, translateWithParams('minutesCanClaim', {
|
|
144
|
+
lang: this.language,
|
|
145
|
+
minutes: this.rakebackInfo.minutesCanClaim
|
|
146
|
+
})))))) : null;
|
|
147
|
+
}
|
|
148
|
+
static get watchers() { return {
|
|
149
|
+
"session": ["onSessionOrEndpointChange"],
|
|
150
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
151
|
+
"language": ["onSessionOrEndpointChange"],
|
|
152
|
+
"show": ["onShowOrHasRakebackWalletChange"],
|
|
153
|
+
"rakebackInfo": ["onShowOrHasRakebackWalletChange"]
|
|
154
|
+
}; }
|
|
155
|
+
};
|
|
156
|
+
PlayerRakebackCard.style = PlayerRakebackCardStyle0;
|
|
157
|
+
|
|
158
|
+
export { PlayerRakebackCard as player_rakeback_card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i,g as n,a,F as s}from"./p-09fa4bcd.js";import{t as o,T as r,a as l}from"./p-c3e53f66.js";import{r as d,t as c,g as h,P as p,a as g}from"./p-4fc54b9e.js";const u=["pt-br","en","es-mx","hu","hr"],f={en:{pageLimitLabel:"Show"},hu:{pageLimitLabel:"Show"},hr:{pageLimitLabel:"Show"},"pt-br":{pageLimitLabel:"Show"},"es-mx":{pageLimitLabel:"Show"}},v=class{constructor(i){e(this,i),this.pageLimitChanged=t(this,"pageLimitChanged",7),this.language="en",this.translationUrl="",this.pageLimitOptions=void 0,this.limit=10,this.pageLimits=[10,25,50]}onPageLimitClicked(e){this.limit=e,this.pageLimitChanged.emit({limit:this.limit})}componentWillLoad(){if(this.pageLimitOptions)try{this.pageLimits=this.pageLimitOptions.split(",").map((e=>parseInt(e))),this.pageLimits.includes(this.limit)||(this.limit=this.pageLimits[0])}catch(e){console.error("Error when parse PageLimitOptions",e)}}renderStylingWrapper(){return i("general-styling-wrapper",{targetTranslations:f,translationUrl:this.translationUrl})}render(){return i("div",{key:"57f5e61ee287f72d0427a2e4f646e37c6b9358b9",class:"PaginationWrapper"},i("span",{key:"5f82b19fcf269086659b3faa475d9967b2af57fa",class:"NoOfItemsToDisplayMessage"},(()=>{const e=this.language;return f[void 0!==e&&u.includes(e)?e:"en"].pageLimitLabel})()),i("ul",{key:"559c2d5378a352691583567579a8e681d092ddd3",class:"PaginationArea"},this.pageLimits.map((e=>i("li",{class:(this.limit==e?"Active":"")+" PageSize Item",onClick:()=>{this.onPageLimitClicked(e)}},e)))),i("general-styling-wrapper",{key:"a8b9632e7421318e330f33b9c1cc9eb7121e35e9",targetTranslations:f,translationUrl:this.translationUrl}),this.renderStylingWrapper())}};v.style=":host{display:block}.NoOfItemsToDisplayMessage{display:inline-block;margin:0.1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--emw--color-primary, #191a19);line-height:1.8}.PaginationWrapper{display:flex;flex-direction:row}ul.PaginationArea{margin-block:5px;display:flex;flex-direction:row;padding:0px}ul.PaginationArea li.Item.Active:hover{color:var(--emw--color-primary, #eaefea);background-color:var(--emw--color-secondary, #191a19)}ul.PaginationArea li.Item.Active,ul.PaginationArea li.Item:hover{background-color:var(--emw--color-primary, rgba(169, 171, 169, 0.7));font-weight:bold;border-radius:0.3rem}ul.PaginationArea li.Item{padding-inline-start:0px;list-style:none;padding:5px 6px;margin:2px;cursor:pointer;display:inline-block}";const b=["pt-br","en","es-mx","hu","hr"],m={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},x=(e,t,i)=>{const n=t;let a=m[void 0!==n&&b.includes(n)?n:"en"][e];if(void 0!==i)for(const[e,t]of Object.entries(i.values)){const i=new RegExp(`{${e}}`,"g");a=a.replace(i,t)}return a},y=class{constructor(i){e(this,i),this.reloadPageEmitter=t(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(e){this.limit=e.detail.limit?e.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==e.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(e){"..."==e||0==e||parseInt(e.toString(),10)>this.endPageIndex+1||(this.currentPage=e,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return i("ul",{class:"PaginationArea"},this.pagesArray.map((e=>i("li",{class:"PageItem "+(this.currentPage==e?"Active":""),onClick:()=>{this.goTo(e)}},e))))}renderStylingWrapper(){return i("general-styling-wrapper",{targetTranslations:m,translationUrl:this.translationUrl})}generateNavItemsByType(e,t){if(this.endPageIndex<e)return Array.from({length:this.endPageIndex+1},((e,t)=>t+1));let i=[],n=Math.floor(e/2);const a=this.endPageIndex+1;return t?this.currentPage<n||this.currentPage>a-n+1?(i=Array.from({length:n},((e,t)=>t+1)),i.push("..."),i=i.concat(Array.from({length:n},((e,t)=>this.endPageIndex-1+t)))):this.currentPage==n?(i=Array.from({length:n+1},((e,t)=>t+1)),i.push("..."),i=i.concat(Array.from({length:n-1},((e,t)=>this.endPageIndex+t)))):this.currentPage==a-n+1?(i=Array.from({length:n-1},((e,t)=>t+1)),i.push("..."),i=i.concat(Array.from({length:n+1},((e,t)=>this.endPageIndex-2+t)))):(i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",a])):this.currentPage<n-1?(i=Array.from({length:e-1},((e,t)=>t+1)),i.push("...")):this.endPageIndex-this.currentPage<n+1?(i=Array.from({length:e-1},((e,t)=>this.endPageIndex-n+t)),i.unshift("...")):(i=Array.from({length:n+1},((e,t)=>this.currentPage+t-1)),i.push("..."),i.unshift("...")),i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return i("div",{key:"aa8d14788833b1b0e13ea20943935b03a3b043ac",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&i("span",{key:"a018261b6c598116829d878b8120aee7ae2576c4",class:"PageOfMessage"},x("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),i("div",{key:"64fc17d0b992b30a4b8d712e47442ee6a2d44b82",class:"PageNavigation"},this.arrowsActive&&i("div",{key:"f5f3b562fbdfb9e4b39ffd9755e5dba41e6231ba",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},x("firstPage",this.language)),this.secondaryArrowsActive&&i("span",{key:"39222e258f6c63502bfd3914c673d804edc96b53",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},x("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&i("span",{key:"d6f9a1394debdae49702713ccc59bea710ccd7ae",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},x("nextPage",this.language)),this.arrowsActive&&i("div",{key:"d2bb76f9d40fcfc3dbc6bb5fbfe6d237e77f0ee6",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",x("lastPage",this.language)," "),this.renderStylingWrapper()))}};y.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const w=class{constructor(t){e(this,t),this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.el.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const n=(t=this.translationUrl,i=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]=i[e]?i[e]:{};for(let n in t[e])i[e][n]=t[e][n]})),e(!0)}))})));e.push(n)}var t,i;return await Promise.all(e)}render(){return i("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},i("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return n(this)}};function P(e){d(1,arguments);var t=c(e);return t.setHours(0,0,0,0),t}function I(e,t){return d(2,arguments),c(e).getTime()-c(t).getTime()}w.style=":host{display:block}";var C={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function k(e){return e?C[e]:C.trunc}const L=class{constructor(i){e(this,i),this.playerElevateLeveLoaded=t(this,"playerElevateLeveLoaded",7),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}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,i)=>fetch(e.href,{method:"GET"}).then((e=>e.json())).then((e=>{this.levels=e.data,t(!0)})).catch((e=>{i(e)}))))}calcuatePointsToBeExpired(e){let t="";if(!e||!e.aboutToExpire||0==e.aboutToExpire.length||e.aboutToExpire[0].points<=0)return t;e.aboutToExpire.sort(((e,t)=>function(e,t){d(2,arguments);var i=c(e),n=c(t);return i.getTime()<n.getTime()}(new Date(e.expireTime),new Date(t.expireTime))?-1:1));const i=e.aboutToExpire[0],n=function(e,t){d(2,arguments);var i=P(e),n=P(t),a=i.getTime()-h(i),s=n.getTime()-h(n);return Math.round((a-s)/864e5)}(new Date(i.expireTime),new Date);let a=0,s=0,r=0===n?"pointsToBeExpiredDay":"pointsToBeExpired";return n<=0&&(a=function(e,t,i){d(2,arguments);var n=I(e,t)/36e5;return k(null==i?void 0:i.roundingMethod)(n)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=a>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour",a<=0&&(s=function(e,t,i){d(2,arguments);var n=I(e,t)/6e4;return k(null==i?void 0:i.roundingMethod)(n)}(new Date(i.expireTime),new Date,{roundingMethod:"floor"}),r=s>1?"pointsToBeExpiredMinutes":"pointsToBeExpiredMinute")),t=o(r,{expirationPoints:i.points,expireDay:Math.max(n,a,s)}),t}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise(((t,i)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then((e=>e.json())).then((e=>{var n,a,s;if(!e.success)return console.error("Exception when fetch user elevateinfo, ",e.errorCode,e.errorMessage),void i(!0);let o=e.data;this.playerElevateLevel=o.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=(null===(n=o.spendableWallet)||void 0===n?void 0:n.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const r=null===(a=e.data.spendableWallet)||void 0===a?void 0:a.total,l=null===(s=e.data.loyaltyWallet)||void 0===s?void 0:s.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:r,loyaltyWalletTotal:l});let d=this.calcuatePointsToBeExpired(r),c=this.calcuatePointsToBeExpired(l);(d||c)&&this.playerElevateLeveLoaded.emit({pointExpireString:d,xpExpireString:c}),t(this.playerElevateLevel)})).catch((e=>{console.log("error ",e),i(!0)}))))}setLoyaltyProgress(e){!function(e,t){const i=e.querySelector("#total_level"),n=i.getBBox().width,a=t>1?1:t,s=a*n-17<0?0:a*n-17,o=e.querySelector("#current_level"),r=e.querySelector("#filter_current_level"),l=e.querySelector("#circle_current_level");i.setAttribute("viewbox",`0 0 ${s} 28`),o.setAttribute("width",`${s}`),l.setAttribute("cx",`${s<6.5?6.5:s}`),r.setAttribute("x",""+(s-8));const d=e.querySelector("#lock"),c=e.querySelector("#filter_heart_ball"),h=e.querySelector("#filter_ball"),p=e.querySelector("#filter_heart"),g=e.querySelector("#filter_lock"),u=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),v=e.querySelector("#lock_box"),b=e.querySelector("#heart_box"),m=n-10;d.setAttribute("cx",`${m}`),f.setAttribute("x1",`${m}`),f.setAttribute("x2",`${m}`),u.setAttribute("x1",""+(m-6)),u.setAttribute("x2",""+(m-6+11.2)),g.setAttribute("x",""+(m-6)),p.setAttribute("x",""+(m-6-2)),h.setAttribute("x",""+(m-6-2-2)),c.setAttribute("x",""+(m-6-2-2-4)),v.setAttribute("x",""+(m-6)),b.setAttribute("x",""+(m-6)),i.parentElement.style.opacity="1"}(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout((()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)}),80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then((e=>{if(console.log("elevate-init",e),this.initLevelProgressbar(),!this.levels)return;this.levels.sort(((e,t)=>e.firstEntryPoints>t.firstEntryPoints?1:-1));const t=this.playerElevateLevel.loyaltyPoints;let i=0;this.levels.forEach(((e,n)=>{t>e.firstEntryPoints&&(i=n)})),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:i})}))}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return n(this)}static get watchers(){return{params:["onParamsChanged"]}}};L.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: 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 R=class{constructor(t){e(this,t),this.isPointDetailCard="earningRule"===this.buttonType,this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.cardTitle=void 0,this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0,this.elevateSPTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal,this.elevateSPTotal=e.detail.loyaltyWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const e=a("../static/card-ground.svg"),t=a("../static/card-ground-over.svg");return i("div",{key:"4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17",class:`ElevateCardWrapper ${this.theme}`},i("div",{key:"ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253",class:"PointsCard Outer ",style:{backgroundImage:`url(${e}`}},i("general-styling-wrapper",{key:"c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:r,translationUrl:this.translationUrl}),i("player-elevate-card-data",{key:"4371faac6967c5b3eced57f6251064ea4e1d6a65",params:this.paramProxy}),i("div",{key:"c78235a6fdc2aed90df898f007b5ee091cece8dc",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},i("div",{key:"025e779223c1c85c11998be8389a8ff836a31e6c",class:"Content Row"},this.playerElevateLevel&&i(s,{key:"68daa6047dc93d2596d8b2309a26f56960737617"},i("div",{key:"6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319",class:"PlayerImg"},i(p,{key:"aeaf35ad8055ad4f7312922c8600ea58d09be74f",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),i("div",{key:"bd51ce868b4d8a547f40ec55548bbf3cfa416534",class:`LevelInfo ${this.playerElevateLevel.name}`},i("div",{key:"5f4d77a5b43c8efee850b9813bc1c8e61d27d45d",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:l("spendablePoints")),i("div",{key:"bae5dc76d00c98aed803601c19fe3bf1aa4418d5",class:"PointsTxt SPPoints"},i(g,{key:"59d51bd37f44ed23108fc4356af41c01668354e3",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),i("a",{key:"3a923bea242ae5fa412f4448dca7277b3588621e",class:"TC",onClick:()=>{this.onDetailsClick()}},l("termAndConditions",this.language))),this.pointExpireString&&i("div",{key:"8803ae8d343885da58dfa04b9a4474ff473b5a74",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};var T;R.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}",function(e){e.spendable="spendable",e.loyalty="loyalty",e.history="history"}(T||(T={}));const B={en:{tabTitle:{[T.spendable]:"Coins",[T.loyalty]:"XP",[T.history]:"Shop Purchases"},barTitle:{[T.spendable]:"Coins History",[T.loyalty]:"Experience Points History",[T.history]:"Shop Purchases"},bonus:"Bonus",coins:"Coins",noContent:"No Content",redeem:"Redeem",reload:"Reload",reloadMsgWhenError:"Network Problem, please ",pointType:{registration:"Registration",cancelledRegistration:"Cancelled Registration",expiredRegistration:"Expired Registration",manual:"Manual",cancelledManual:"Cancelled Manual",expiredManual:"Expired Manual",wageringByRealMoney:"Real Money Wager",wageringByBonusMoney:"Bonus Money Wager",cancelledWageringByRealMoney:"Cancelled Real Money Wager",cancelledWageringByBonusMoney:"Cancelled Bonus Money Wager",expiredWageringByRealMoney:"Expired Real Money Wager",expiredWageringByBonusMoney:"Expired Bonus Money Wager",levelExpired:"Level Expiration",bonus:"Bonus Redeem",manualByTournament:"Reward from Tournaments",manualByPrizeEngine:"Reward from PrizeEngine",manualByMission:"Reward from Mission",cancelledManualByTournament:"Cancelled Reward from Tournaments",cancelledManualByMission:"Cancelled Reward from Mission",expiredManualByTournament:"Expired Reward from Tournaments",expiredManualByMission:"Expired Reward from Mission",cancelledManualByPrizeEngine:"Cancelled Reward from PrizeEngine",expiredManualByPrizeEngine:"Expired Reward from PrizeEngine",prizeEngine:"PrizeEngine Redeem",tournamentTicket:"Tournament Ticket Redeem",physicalItem:"Custom Reward Redeem",role:"Role Assignment Redeem"}}},E=e=>"/v1/elevate/"+(e==T.history?"redeemHistory":"pointsHistory"),M=({locale:e,wallet:t,walletType:n})=>n===T.history?i("div",{class:"RecordContainer"},t.payload&&i("div",{class:"Row"},i("div",{class:"Title"},t.payload.displayName),i("div",{class:`Amount ${D(t.points).class}`},i("span",{class:"HistoryPoints"},Math.abs(t.points)," ",e.coins))),i("div",{class:"Row"},i("div",{class:t.payload?"PointType":"Title"},e.pointType[t.pointType]||t.pointType),!t.payload&&i("div",{class:`Amount ${D(t.points).class}`},i("span",{class:"HistoryPoints"},Math.abs(t.points)," ",e.coins))),i("div",{class:"Row"},i("div",{class:"DateTime"},S(new Date(t.modified))))):i("div",{class:"RecordContainer"},i("div",{class:`Row ${t.pointType}`},i("div",{class:"Title"},e.pointType[t.pointType]||t.pointType),i("div",{class:`Amount ${D(t.points).class}`},i("span",{class:"Points"},D(t.points).symbol," ",t.points))),i("div",{class:"Row"},i("div",{class:"DateTime"},S(new Date(t.modified))))),A=(e,t,n)=>t&&i(s,null,i("div",{class:"Records"},t.map((t=>i(M,{locale:e,wallet:t,walletType:n.tableId})))),i("div",{class:"PaginationContainer"},i("bonus-pagination-nav",{offset:n.offset,limit:n.limit,displayPageNumbers:n.displayPageNumbers,tableId:n.tableId,secondaryArrowsActive:n.secondaryArrowsActive,total:n.total}))),D=e=>e>0?{class:"Positive",symbol:"+"}:{class:"Negative",symbol:""},$=e=>e.toString().padStart(2,"0"),S=e=>[e.getFullYear(),$(e.getMonth()+1),$(e.getDate())].join("-")+" "+[$(e.getHours()),$(e.getMinutes()),$(e.getSeconds())].join(":"),j=(e,t,n)=>i("div",{class:"TopBarContainer"},i("div",{class:"BackImageContainer"},i("span",{class:"BackImage",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDkgMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03Ljc1IDFMMS4yNSA3LjVMNy43NSAxNCIgc3Ryb2tlPSIjMjQyNDI0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo="})),i("div",{class:"TitleContainer"},i("div",{class:"Title",title:e.barTitle[t]},e.barTitle[t]),i("div",{class:"Limits"},i("bonus-pagination-limits",{pageLimitOptions:n.pageLimitOptions,limit:n.limit}))),i("div",null,i("span",{class:"MenuImage",innerHTML:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDMwIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjQiIGN5PSI0IiByPSI0IiBmaWxsPSJibGFjayIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjQiIHI9IjQiIGZpbGw9ImJsYWNrIi8+CjxjaXJjbGUgY3g9IjI2IiBjeT0iNCIgcj0iNCIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="})));function O(){}function N(e){return e()}function z(){return Object.create(null)}function W(e){e.forEach(N)}function _(e){return"function"==typeof e}function H(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function F(e,t,i){e.insertBefore(t,i||null)}function U(e){e.parentNode&&e.parentNode.removeChild(e)}function G(e){return document.createElement(e)}let J;function Z(e){J=e}const Y=[],X=[];let Q=[];const V=[],q=Promise.resolve();let K=!1;function ee(e){Q.push(e)}const te=new Set;let ie=0;function ne(){if(0!==ie)return;const e=J;do{try{for(;ie<Y.length;){const e=Y[ie];ie++,Z(e),ae(e.$$)}}catch(e){throw Y.length=0,ie=0,e}for(Z(null),Y.length=0,ie=0;X.length;)X.pop()();for(let e=0;e<Q.length;e+=1){const t=Q[e];te.has(t)||(te.add(t),t())}Q.length=0}while(Y.length);for(;V.length;)V.pop()();K=!1,te.clear(),Z(e)}function ae(e){if(null!==e.fragment){e.update(),W(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ee)}}const se=new Set;function oe(e,t,i,n,a,s,o=null,r=[-1]){const l=J;Z(e);const d=e.$$={fragment:null,ctx:[],props:s,update:O,not_equal:a,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:z(),dirty:r,skip_bound:!1,root:t.target||l.$$.root};o&&o(d.root);let c=!1;if(d.ctx=i?i(e,t.props||{},((t,i,...n)=>{const s=n.length?n[0]:i;return d.ctx&&a(d.ctx[t],d.ctx[t]=s)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](s),c&&function(e,t){-1===e.$$.dirty[0]&&(Y.push(e),K||(K=!0,q.then(ne)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],d.update(),c=!0,W(d.before_update),d.fragment=!!n&&n(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(U)}else d.fragment&&d.fragment.c();t.intro&&function(e){e&&e.i&&(se.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:a}=e.$$;n&&n.m(t,i),ee((()=>{const t=e.$$.on_mount.map(N).filter(_);e.$$.on_destroy?e.$$.on_destroy.push(...t):W(t),e.$$.on_mount=[]})),a.forEach(ee)}(e,t.target,t.anchor),ne()}Z(l)}let re;function le(e,t,i,n){const a=i[e]?.type;if(t="Boolean"===a&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(a){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(re=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=G("slot"),"default"!==e&&function(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}(t,"name",e)},m:function(e,i){F(e,t,i)},d:function(e){e&&U(t)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=le(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const t=le(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=le(e,i,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class de{$$=void 0;$$set=void 0;$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];Q.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),Q=t}(i.after_update),W(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=O}$on(e,t){if(!_(t))return O;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ce(e){!function(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!n.getElementById(t)){const e=G("style");e.id=t,e.textContent=i,function(e,t){!function(e,t){e.appendChild(t)}(e.head||e,t)}(n,e)}}(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function he(e){let t;return{c(){t=G("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,n){F(i,t,n),e[4](t)},p:O,i:O,o:O,d(i){i&&U(t),e[4](null)}}}function pe(e,t,i){let n,{clientstyling:a=""}=t,{clientstylingurl:s=""}=t,{mbsource:o}=t;return function(e){(function(){if(!J)throw new Error("Function called outside component initialization");return J})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,a=e.clientstyling),"clientstylingurl"in e&&i(2,s=e.clientstylingurl),"mbsource"in e&&i(3,o=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&a&&n&&function(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}(n,a),5&e.$$.dirty&&s&&n&&function(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,s),9&e.$$.dirty&&o&&n&&function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(n,`${o}.Style`)},[n,a,s,o,function(e){X[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class ge extends de{constructor(e){super(),oe(this,e,pe,he,H,{clientstyling:1,clientstylingurl:2,mbsource:3},ce)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),ne()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ne()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),ne()}}var ue;!function(e,t,i){let n=class extends re{constructor(){super(e,i,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};Object.keys(t).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){i=le(e,i,t),this.$$d[e]=i,this.$$c?.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c?.[e]}})})),e.element=n}(ge,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),customElements.define=(ue=customElements.define,function(...e){try{return ue.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",ge.element);const fe=class{constructor(i){e(this,i),this.paginationReset=t(this,"paginationReset",7),this.playerAvatarUrl=void 0,this.session=void 0,this.endpoint=void 0,this.limit=void 0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!1,this.pageLimitOptions="10,25,50",this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.locale=B.en,this.type=T.spendable,this.pageSetting=void 0,this.pointsWallets={}}switchTab(e){var t,i;this.type=e,!this.pointsWallets[e]&&(null===(t=this.pointsWallets[e])||void 0===t?void 0:t.isLoadFailed)&&this.paginationReset.emit({limit:(null===(i=this.pointsWallets[e])||void 0===i?void 0:i.pageSetting.limit)||this.limit,tableId:this.type})}getPageSettingByType(e){return this.pointsWallets[e]?this.pointsWallets[e].pageSetting:{limit:this.limit,total:0,offset:0,tableId:e,secondaryArrowsActive:this.secondaryArrowsActive,displayPageNumbers:this.displayPageNumbers,pageLimitOptions:this.pageLimitOptions||void 0}}loadWallets(e){return!this.pointsWallets[this.type]||this.pointsWallets[this.type].isLoading?i("general-animation-loading",null):0===this.pointsWallets[this.type].wallets.length?i("div",{class:"NoContent"},this.locale.noContent):e()}render(){var e,t;const n=this.getPageSettingByType(this.type);return i("main",{key:"a92c0b154fec4d3ce8b8e919b9af5ebd80f1d125"},i("general-styling-wrapper",{key:"5095ab265d71f9e74f6f049b7b0b212ae11bc4da",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:B,translationUrl:this.translationUrl}),i("player-elevate-pointcard",{key:"c471ddeccbe8e18e15935c9d106bf8c52c80a6fb",playerAvatarUrl:this.playerAvatarUrl,endpoint:this.endpoint,session:this.session,language:this.language,clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,translationUrl:this.translationUrl}),i("div",{key:"5fa700aaa6e0cffe6d3d9dd8366bf9a95bba3a14",class:"PlayerElevatePointsDetaisContainer"},[j(this.locale,this.type,n),(a=this.locale,s=this.type,o=e=>this.switchTab(e),i("div",{class:"Tabs Row"},Object.keys(T).map((e=>{const t=e===s?"active":"";return i("div",null,i("div",{class:`TabText ${t}`,onClick:()=>{o(e)}},a.tabTitle[e]),i("div",{class:`TabBorderBottom ${t}`}))})))),(null===(e=this.pointsWallets[this.type])||void 0===e?void 0:e.isLoadFailed)?i("div",{class:"ReloadMsg"},this.locale.reloadMsgWhenError,i("a",{class:"Reload",onClick:()=>{this.updateWallets()}},this.locale.reload)):this.loadWallets(A.bind(this,this.locale,(null===(t=this.pointsWallets[this.type])||void 0===t?void 0:t.wallets)||[],n))]));var a,s,o}walletTypeChangedHandler(){this.pointsWallets[this.type]||this.updateWallets()}async updateWallets(){if(!this.endpoint||!this.session||"undefined"===this.session)return;let e=this.pointsWallets[this.type]?this.pointsWallets[this.type].pageSetting:this.getPageSettingByType(this.type);try{const t=await(async(e,t,i,n,a)=>{const s={type:i,language:t,pagination:`offset=${a.offset},limit=${a.limit}`},o=((e,t={})=>e+"?"+Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&"))(e+E(s.type),s);return await(async(e,t={})=>{let i;i=await fetch(e,t),i=await i.text();try{i=JSON.parse(i)}catch(e){throw console.error(e),e}return i})(o,{headers:{"x-SessionId":n}})})(this.endpoint,this.language,this.type,this.session,e),i=t.data||[];t.success?(e.total=t.total,this.pointsWallets[this.type]=Object.assign(Object.assign({},this.pointsWallets[this.type]),{wallets:i,pageSetting:e}),this.pointsWallets=Object.assign({},this.pointsWallets)):(console.error(t),this.pointsWallets[this.type].isLoadFailed=!0)}catch(e){console.error(e),this.pointsWallets[this.type].isLoadFailed=!0}}reloadPageByTypeHandler(e){if(e.detail.tableId==this.type){if(this.limit!=e.detail.limit)this.pointsWallets={},this.limit=e.detail.limit;else{let t=this.pointsWallets[this.type].pageSetting||this.getPageSettingByType(this.type);t.offset=e.detail.offset,this.pointsWallets[this.type].pageSetting=t}this.updateWallets()}}setLimit(){try{const e=this.pageLimitOptions.split(",").map((e=>parseInt(e)));e.includes(this.limit)||(this.limit=e[0])}catch(e){console.error("Error when parse PageLimitOptions",e),this.limit=10}}async componentWillLoad(){this.setLimit(),this.updateWallets()}static get assetsDirs(){return["static"]}static get watchers(){return{type:["walletTypeChangedHandler"],endpoint:["updateWallets"],language:["updateWallets"],session:["updateWallets"]}}};fe.style=":host{display:block}main{max-width:420px}main player-elevate-pointcard{width:100%;height:220px}.PlayerElevatePointsDetaisContainer{background:#FFFFFF;padding:20px 10px 0;margin-top:-100px;position:relative;min-height:360px}.PlayerElevatePointsDetaisContainer .ReloadMsg{padding:20px}.PlayerElevatePointsDetaisContainer .ReloadMsg a.Reload{cursor:pointer}.TitleContainer{font-size:20px;font-weight:500;line-height:25px;letter-spacing:0em;text-align:left;display:flex;justify-content:space-between}.TopBarContainer{display:flex;align-items:center;justify-content:space-between}.TopBarContainer .TitleContainer{width:100%}.TopBarContainer .Title{background:#303030;padding:5px 16px;color:#FFFFFF;box-shadow:0px 4px 13px 0px rgba(0, 0, 0, 0.2509803922);border-radius:8px;width:fit-content;margin-left:7px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.PaginationContainer{display:flex;justify-content:center}.MonthStat{margin-top:25px;display:none;font-size:16px;font-weight:500;line-height:19px;letter-spacing:0px;text-align:left;color:#242424}.MonthStat .Amount{color:#53B65A}.BackImageContainer{width:35px;height:35px;flex:0 0 35px;border-radius:6px;text-align:center;line-height:35px;box-shadow:0px 4px 40px 0px rgba(138, 149, 158, 0.2);display:none}.Records{margin-top:16px}.MenuImage,.BackImage{cursor:pointer;display:none}.Row{display:flex;justify-content:space-between;align-items:center}.Row:nth-child(n+2){margin-top:3px}.Tabs.Row{justify-content:space-around;margin-top:20px}.Tabs.Row .TabText{font-size:16px;margin:10px 15px;color:#9C9C9C;cursor:pointer}.Tabs.Row .TabText.active{color:#242424;font-weight:600}.Tabs.Row .TabBorderBottom{height:5px;border-radius:4px;background:transparent}.Tabs.Row .TabBorderBottom.active{background:#242424}.RecordContainer{margin:5px 0;padding:10px;box-shadow:0px 0px 8px 0px rgba(0, 0, 0, 0.1019607843);border-radius:5px}.RecordContainer .Title{color:#242424;font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .HistoryPoints{text-transform:lowercase}.RecordContainer .Amount{font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Amount.Positive{color:#53B65A}.RecordContainer .Amount.Negative{color:#B41E2D}.RecordContainer .DateTime{color:#9C9C9C;font-size:16px;font-weight:400;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Tag{font-size:12px;font-weight:500;line-height:14px;letter-spacing:0em;text-align:center;color:#767171;padding:8px 30px;border-radius:8px;box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.2509803922)}.NoContent{font-size:16px;color:var(--emw--color-black-100, #afafaf);text-align:center;height:120px;line-height:120px}";export{v as bonus_pagination_limits,y as bonus_pagination_nav,w as general_styling_wrapper,L as player_elevate_card_data,R as player_elevate_pointcard,fe as player_elevate_points_history}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,a,h as t,F as i}from"./p-09fa4bcd.js";import{P as n,c as o,a as s,d as l}from"./p-4fc54b9e.js";import{t as d,T as r}from"./p-c3e53f66.js";const c=class{constructor(a){e(this,a),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.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.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,a;return(null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel)?null===(a=this.playerElevateLevel)||void 0===a?void 0:a.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let a=null===(e=this.playerElevateLevel)||void 0===e?void 0:e.nextLevel;if(this.playerElevateLevel&&a){const e=(a.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return d("tipsForNextLevel",{pointsToReach:e,levelName:a.name,lang:this.language})}return""}render(){const e=a("../static/card-ground.svg"),d=a("../static/card-ground-over.svg");return t("div",{key:"39295a651da66747a20554699bba5f96b8ad5c35",class:`ElevateCardWrapper ${this.theme}`},t("div",{key:"78c34fe054fc2459f8af3354116cd21a68ce01be",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},t("general-styling-wrapper",{key:"be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:r,translationUrl:this.translationUrl}),t("player-elevate-card-data",{key:"b53e4b59d4ee55a2f567efa09afab3d72969e6e4",params:this.paramProxy}),t("div",{key:"1f3e504440bab2df3a181058fad7149c85c48c14",class:"OuterCover Inner",style:{backgroundImage:`url(${d}`}},t("div",{key:"a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1",class:"Content Row"},this.playerElevateLevel&&t(i,{key:"5c104f5ba1a018219c6ed5f6e50af99b035a0344"},t("div",{key:"bd94591e6ab9298ab7c769fa48efaf314dc1a63b",class:"PlayerImg"},t(n,{key:"928849ce86d8c7a483eba7850efc83f8149bae43",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),t("div",{key:"37192c9b8502eb3c7d93914369df2d784c17e9f7",class:`LevelInfo ${this.playerElevateLevel.name}`},t(o,{key:"2684a177f4bb1053c4587fd4158666fb35ca23f4",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),t("div",{key:"173a37c63868f2d900c12af3ffc2d9a4a57550e4",class:"PointsRange"},t(s,{key:"a7111154f7dc547e0b05c70d24508bdd75c5d882",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),t(s,{key:"ad31574e7db81a7ecb7a06b28b1d4968cbcab93e",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),t(l,{key:"88ddfdb326edfb1de9519da6b3d0e5b514725e27"}),t("div",{key:"b9c79555a8001bd2c754d7573df04016da235c84",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&t("div",{key:"02da725060c9db4a8c1c2e8bad3426894d7f8f2c",class:"PointsInfo ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};c.style=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.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:5px}.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{c as player_elevate_loyaltycard}
|