@everymatrix/gamification-dropdown 1.56.3 → 1.58.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/{gamification-dropdown-b61f6455.js → gamification-dropdown-bacd4b01.js} +1 -1
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +7 -6
- package/dist/cjs/{index-9f57df89.js → index-43105bc3.js} +8 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale.utils-dc4c7c34.js +224 -0
- package/dist/cjs/{player-elevate-card-items-a64a5a53.js → player-elevate-card-items-432f3d1b.js} +6 -167
- package/dist/cjs/player-elevate-card.cjs.entry.js +4 -3
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +5 -4
- package/dist/cjs/player-rakeback-card.cjs.entry.js +162 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.stories.js +46 -0
- package/dist/esm/{gamification-dropdown-9a68cf16.js → gamification-dropdown-8eb8a896.js} +1 -1
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +4 -3
- package/dist/esm/{index-da41a34a.js → index-71b1bdfa.js} +8 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale.utils-71f870a8.js +220 -0
- package/dist/esm/{player-elevate-card-items-6cc8ac45.js → player-elevate-card-items-66be34fb.js} +3 -161
- package/dist/esm/player-elevate-card.entry.js +3 -2
- package/dist/esm/player-elevate-pointcard.entry.js +3 -2
- package/dist/esm/player-rakeback-card.entry.js +158 -0
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-3070ff30.entry.js +1 -0
- package/dist/gamification-dropdown/p-39a3034e.entry.js +1 -0
- package/dist/gamification-dropdown/{p-fcccda48.js → p-8c3440cc.js} +1 -1
- package/dist/gamification-dropdown/p-a48fd792.entry.js +1 -0
- package/dist/gamification-dropdown/p-c3e53f66.js +1 -0
- package/dist/gamification-dropdown/p-cec5fb75.entry.js +1 -0
- package/dist/gamification-dropdown/{p-e2b2faba.js → p-f8b970c5.js} +1 -1
- package/dist/gamification-dropdown/p-fecbcc98.js +1 -0
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/storybook/preview.d.ts +70 -0
- package/dist/types/components/gamification-dropdown/gamification-dropdown.stories.d.ts +5 -0
- package/package.json +1 -1
- package/dist/gamification-dropdown/p-9a95eec2.entry.js +0 -1
- package/dist/gamification-dropdown/p-a653bfbd.entry.js +0 -1
- package/dist/gamification-dropdown/p-c36d41e2.js +0 -1
- package/dist/gamification-dropdown/p-d55c742c.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{Users/maria.bumbar/Desktop → builds/emfe-widgets}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-43105bc3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"]}],[
|
|
22
|
+
return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"]}],[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.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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-pointcard.cjs",[[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"]}]]],["player-rakeback-card.cjs",[[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);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const gamificationDropdown = require('./gamification-dropdown-
|
|
6
|
-
const index = require('./index-
|
|
7
|
-
const
|
|
5
|
+
const gamificationDropdown = require('./gamification-dropdown-bacd4b01.js');
|
|
6
|
+
const index = require('./index-43105bc3.js');
|
|
7
|
+
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
8
|
+
const playerElevateCardItems = require('./player-elevate-card-items-432f3d1b.js');
|
|
8
9
|
|
|
9
10
|
const mergeTranslations = (url, target) => {
|
|
10
11
|
return new Promise((resolve) => {
|
|
@@ -425,7 +426,7 @@ const PlayerElevateCardData = class {
|
|
|
425
426
|
expiredTranslationKey = minutesToExpired > 1 ? 'pointsToBeExpiredMinutes' : 'pointsToBeExpiredMinute';
|
|
426
427
|
}
|
|
427
428
|
}
|
|
428
|
-
pointExpireInfoAsString =
|
|
429
|
+
pointExpireInfoAsString = locale_utils.translateWithParams(expiredTranslationKey, {
|
|
429
430
|
expirationPoints: aboutToExpire.points,
|
|
430
431
|
expireDay: Math.max(daysToExpried, hoursToExpired, minutesToExpired),
|
|
431
432
|
});
|
|
@@ -592,7 +593,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
592
593
|
let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
|
|
593
594
|
if (this.playerElevateLevel && nextLevel) {
|
|
594
595
|
const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
|
|
595
|
-
return
|
|
596
|
+
return locale_utils.translateWithParams('tipsForNextLevel', {
|
|
596
597
|
pointsToReach,
|
|
597
598
|
levelName: nextLevel.name,
|
|
598
599
|
lang: this.language
|
|
@@ -603,7 +604,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
603
604
|
render() {
|
|
604
605
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
605
606
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
606
|
-
return (index.h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations:
|
|
607
|
+
return (index.h("div", { key: '39295a651da66747a20554699bba5f96b8ad5c35', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '78c34fe054fc2459f8af3354116cd21a68ce01be', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'b53e4b59d4ee55a2f567efa09afab3d72969e6e4', params: this.paramProxy }), index.h("div", { key: '1f3e504440bab2df3a181058fad7149c85c48c14', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: 'a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '5c104f5ba1a018219c6ed5f6e50af99b035a0344' }, index.h("div", { key: 'bd94591e6ab9298ab7c769fa48efaf314dc1a63b', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '928849ce86d8c7a483eba7850efc83f8149bae43', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '37192c9b8502eb3c7d93914369df2d784c17e9f7', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '2684a177f4bb1053c4587fd4158666fb35ca23f4', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '173a37c63868f2d900c12af3ffc2d9a4a57550e4', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: 'a7111154f7dc547e0b05c70d24508bdd75c5d882', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: 'ad31574e7db81a7ecb7a06b28b1d4968cbcab93e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '88ddfdb326edfb1de9519da6b3d0e5b514725e27' }), index.h("div", { key: 'b9c79555a8001bd2c754d7573df04016da235c84', class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && (index.h("div", { key: '02da725060c9db4a8c1c2e8bad3426894d7f8f2c', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
607
608
|
}
|
|
608
609
|
static get watchers() { return {
|
|
609
610
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'gamification-dropdown';
|
|
24
|
-
const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean:
|
|
24
|
+
const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -83,6 +83,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
83
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
84
84
|
/* webpackMode: "lazy" */
|
|
85
85
|
'./player-elevate-pointcard.cjs.entry.js')); }).then(processMod, consoleError);
|
|
86
|
+
case 'player-rakeback-card.cjs':
|
|
87
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
88
|
+
/* webpackMode: "lazy" */
|
|
89
|
+
'./player-rakeback-card.cjs.entry.js')); }).then(processMod, consoleError);
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -374,6 +378,9 @@ var convertToPrivate = (node) => {
|
|
|
374
378
|
};
|
|
375
379
|
var parsePropertyValue = (propValue, propType) => {
|
|
376
380
|
if (propValue != null && !isComplexType(propValue)) {
|
|
381
|
+
if (propType & 4 /* Boolean */) {
|
|
382
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
383
|
+
}
|
|
377
384
|
if (propType & 1 /* String */) {
|
|
378
385
|
return String(propValue);
|
|
379
386
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const gamificationDropdown = require('./gamification-dropdown-
|
|
6
|
-
require('./index-
|
|
5
|
+
const gamificationDropdown = require('./gamification-dropdown-bacd4b01.js');
|
|
6
|
+
require('./index-43105bc3.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-43105bc3.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"]}],[
|
|
11
|
+
return index.bootstrapLazy([["gamification-dropdown_4.cjs",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"]}],[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.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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-pointcard.cjs",[[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"]}]]],["player-rakeback-card.cjs",[[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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
+
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
|
|
5
|
+
const TRANSLATIONS = {
|
|
6
|
+
en: {
|
|
7
|
+
redeem: 'Redeem',
|
|
8
|
+
claim: 'Claim',
|
|
9
|
+
expireOn: 'Expire on ',
|
|
10
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
11
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
12
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
13
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
14
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
15
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
16
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
17
|
+
spendablePoints: 'Spendable Points:',
|
|
18
|
+
details: 'Details',
|
|
19
|
+
earningRules: 'Earning Rules',
|
|
20
|
+
xp: 'XP',
|
|
21
|
+
sp: 'Coins',
|
|
22
|
+
termAndConditions: 'Term & Conditions',
|
|
23
|
+
rakebackTitle: 'Available Rakeback',
|
|
24
|
+
loading: 'Loading',
|
|
25
|
+
minutesCanClaim: 'Next Claim is available in ${minutes} minutes'
|
|
26
|
+
},
|
|
27
|
+
'zh-hk': {
|
|
28
|
+
redeem: '兑奖',
|
|
29
|
+
claim: '返佣',
|
|
30
|
+
expireOn: 'Expire on ',
|
|
31
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
32
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
33
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
34
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
35
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
36
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
37
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
38
|
+
spendablePoints: 'Spendable Points:',
|
|
39
|
+
details: '明细',
|
|
40
|
+
earningRules: 'Earning Rules',
|
|
41
|
+
xp: 'XP',
|
|
42
|
+
sp: 'Coins',
|
|
43
|
+
termAndConditions: 'Term & Conditions',
|
|
44
|
+
rakebackTitle: '可用的返利',
|
|
45
|
+
loading: '加載中',
|
|
46
|
+
minutesCanClaim: '下次可領取時間為${minutes}分鐘後'
|
|
47
|
+
},
|
|
48
|
+
de: {
|
|
49
|
+
redeem: 'Redeem',
|
|
50
|
+
claim: 'Anspruch',
|
|
51
|
+
expireOn: 'Expire on ',
|
|
52
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
53
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
54
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
55
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
56
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
57
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
58
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
59
|
+
spendablePoints: 'Spendable Points:',
|
|
60
|
+
details: 'Details',
|
|
61
|
+
earningRules: 'Earning Rules',
|
|
62
|
+
xp: 'XP',
|
|
63
|
+
sp: 'Coins',
|
|
64
|
+
termAndConditions: 'Term & Conditions',
|
|
65
|
+
rakebackTitle: 'Verfügbarer Rakeback',
|
|
66
|
+
loading: 'Laden',
|
|
67
|
+
minutesCanClaim: 'Nächster Anspruch ist in ${minutes} Minuten verfügbar'
|
|
68
|
+
},
|
|
69
|
+
it: {
|
|
70
|
+
redeem: 'Redeem',
|
|
71
|
+
claim: 'Richiesta',
|
|
72
|
+
expireOn: 'Expire on ',
|
|
73
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
74
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
75
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
76
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
77
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
78
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
79
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
80
|
+
spendablePoints: 'Spendable Points:',
|
|
81
|
+
details: 'Details',
|
|
82
|
+
earningRules: 'Earning Rules',
|
|
83
|
+
xp: 'XP',
|
|
84
|
+
sp: 'Coins',
|
|
85
|
+
termAndConditions: 'Term & Conditions',
|
|
86
|
+
rakebackTitle: 'Rakeback Disponibile',
|
|
87
|
+
loading: 'Caricamento',
|
|
88
|
+
minutesCanClaim: 'La prossima richiesta sarà disponibile tra ${minutes} minuti'
|
|
89
|
+
},
|
|
90
|
+
fr: {
|
|
91
|
+
redeem: 'Redeem',
|
|
92
|
+
claim: 'Réclamer',
|
|
93
|
+
expireOn: 'Expire on ',
|
|
94
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
95
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
96
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
97
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
98
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
99
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
100
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
101
|
+
spendablePoints: 'Spendable Points:',
|
|
102
|
+
details: 'Details',
|
|
103
|
+
earningRules: 'Earning Rules',
|
|
104
|
+
xp: 'XP',
|
|
105
|
+
sp: 'Coins',
|
|
106
|
+
termAndConditions: 'Term & Conditions',
|
|
107
|
+
rakebackTitle: 'Rakeback Disponible',
|
|
108
|
+
loading: 'Chargement',
|
|
109
|
+
minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes'
|
|
110
|
+
},
|
|
111
|
+
es: {
|
|
112
|
+
redeem: 'Redeem',
|
|
113
|
+
claim: 'Reclamar',
|
|
114
|
+
rakebackTitle: 'Rakeback Disponible',
|
|
115
|
+
loading: 'Cargando',
|
|
116
|
+
minutesCanClaim: 'La próxima reclamación estará disponible en ${minutes} minutos'
|
|
117
|
+
},
|
|
118
|
+
tr: {
|
|
119
|
+
redeem: 'Redeem',
|
|
120
|
+
claim: 'Talep',
|
|
121
|
+
expireOn: 'Expire on ',
|
|
122
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
123
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
124
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
125
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
126
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
127
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
128
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
129
|
+
spendablePoints: 'Spendable Points:',
|
|
130
|
+
details: 'Details',
|
|
131
|
+
earningRules: 'Earning Rules',
|
|
132
|
+
xp: 'XP',
|
|
133
|
+
sp: 'Coins',
|
|
134
|
+
termAndConditions: 'Term & Conditions',
|
|
135
|
+
rakebackTitle: 'Mevcut Rakeback',
|
|
136
|
+
loading: 'Yükleniyor',
|
|
137
|
+
minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir'
|
|
138
|
+
},
|
|
139
|
+
ru: {
|
|
140
|
+
redeem: 'Redeem',
|
|
141
|
+
claim: 'Требовать',
|
|
142
|
+
rakebackTitle: 'Доступный Рейкбек',
|
|
143
|
+
loading: 'Загрузка',
|
|
144
|
+
minutesCanClaim: 'Следующее требование будет доступно через ${minutes} минут'
|
|
145
|
+
},
|
|
146
|
+
ro: {
|
|
147
|
+
redeem: 'Redeem',
|
|
148
|
+
claim: 'Revendicare',
|
|
149
|
+
rakebackTitle: 'Rakeback Disponibil',
|
|
150
|
+
loading: 'Se încarcă',
|
|
151
|
+
minutesCanClaim: 'Următoarea revendicare va fi disponibilă în ${minutes} minute'
|
|
152
|
+
},
|
|
153
|
+
hr: {
|
|
154
|
+
redeem: 'Otkupiti',
|
|
155
|
+
claim: 'Zahtjev',
|
|
156
|
+
expireOn: 'Istječe',
|
|
157
|
+
pointsToBeExpired: '${expirationPoints} bodova ističe za ${expireDay} dana',
|
|
158
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
159
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
160
|
+
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
161
|
+
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
162
|
+
tipsForNextLevel: 'Trebate ${pointsToReach} da dosegnete razinu ${levelName}',
|
|
163
|
+
spendablePoints: 'Bodovi za potrošit:',
|
|
164
|
+
details: 'Detalji',
|
|
165
|
+
xp: 'XP',
|
|
166
|
+
rakebackTitle: 'Dostupan Rakeback',
|
|
167
|
+
loading: 'Učitavanje',
|
|
168
|
+
minutesCanClaim: 'Sljedeći zahtjev bit će dostupan za ${minutes} minuta'
|
|
169
|
+
},
|
|
170
|
+
hu: {
|
|
171
|
+
redeem: 'Redeem',
|
|
172
|
+
claim: 'Igény',
|
|
173
|
+
rakebackTitle: 'Elérhető Rakeback',
|
|
174
|
+
loading: 'Betöltés',
|
|
175
|
+
minutesCanClaim: 'A következő igény ${minutes} perc múlva lesz elérhető'
|
|
176
|
+
},
|
|
177
|
+
pl: {
|
|
178
|
+
redeem: 'Redeem',
|
|
179
|
+
claim: 'Roszczenie',
|
|
180
|
+
rakebackTitle: 'Dostępny Rakeback',
|
|
181
|
+
loading: 'Ładowanie',
|
|
182
|
+
minutesCanClaim: 'Następne roszczenie będzie dostępne za ${minutes} minut'
|
|
183
|
+
},
|
|
184
|
+
pt: {
|
|
185
|
+
redeem: 'Redeem',
|
|
186
|
+
claim: 'Reivindicar',
|
|
187
|
+
rakebackTitle: 'Rakeback Disponível',
|
|
188
|
+
loading: 'Carregando',
|
|
189
|
+
minutesCanClaim: 'Próxima reivindicação disponível em ${minutes} minutos'
|
|
190
|
+
},
|
|
191
|
+
sl: {
|
|
192
|
+
redeem: 'Redeem',
|
|
193
|
+
claim: 'Zahtevek',
|
|
194
|
+
rakebackTitle: 'Razpoložljiv Rakeback',
|
|
195
|
+
loading: 'Nalaganje',
|
|
196
|
+
minutesCanClaim: 'Naslednji zahtevek bo na voljo čez ${minutes} minut'
|
|
197
|
+
},
|
|
198
|
+
sr: {
|
|
199
|
+
redeem: 'Redeem',
|
|
200
|
+
claim: 'Zahtev',
|
|
201
|
+
rakebackTitle: 'Dostupan Rakeback',
|
|
202
|
+
loading: 'Učitavanje',
|
|
203
|
+
minutesCanClaim: 'Sledeći zahtev biće dostupan za ${minutes} minuta'
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
const translate = (key, customLang) => {
|
|
207
|
+
const lang = customLang;
|
|
208
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
209
|
+
};
|
|
210
|
+
const translateWithParams = (key, params) => {
|
|
211
|
+
const lang = params['lang'];
|
|
212
|
+
let templateString = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
213
|
+
if (!params) {
|
|
214
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
215
|
+
}
|
|
216
|
+
Object.keys(params).forEach((paramName) => {
|
|
217
|
+
templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
|
|
218
|
+
});
|
|
219
|
+
return templateString;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
exports.TRANSLATIONS = TRANSLATIONS;
|
|
223
|
+
exports.translate = translate;
|
|
224
|
+
exports.translateWithParams = translateWithParams;
|