@everymatrix/bonus-elevate-shop 1.47.2 → 1.48.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/bonus-elevate-shop/bonus-elevate-shop.esm.js +1 -1
- package/dist/bonus-elevate-shop/p-135a1cfb.entry.js +1 -0
- package/dist/bonus-elevate-shop/p-2c8cdf05.entry.js +1 -0
- package/dist/bonus-elevate-shop/p-67465a46.js +2 -0
- package/dist/bonus-elevate-shop/p-cfc8ddec.js +1 -0
- package/dist/bonus-elevate-shop/p-eaad379c.entry.js +5431 -0
- package/dist/cjs/bonus-elevate-shop.cjs.js +2 -2
- package/dist/cjs/bonus-elevate-shop_17.cjs.entry.js +37263 -0
- package/dist/cjs/{index-950597be.js → index-69a0dfb7.js} +35 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{player-elevate-card-items-5a947e18.js → player-elevate-card-items-0d4d7d6e.js} +131 -104
- package/dist/cjs/player-elevate-card.cjs.entry.js +2 -2
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +9 -4
- package/dist/collection/collection-manifest.json +23 -0
- package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.css +28 -0
- package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.js +133 -6
- package/dist/collection/renders/renderGifts.js +2 -5
- package/dist/collection/utils/translation.js +2 -0
- package/dist/esm/bonus-elevate-shop.js +3 -3
- package/dist/esm/bonus-elevate-shop_17.entry.js +37243 -0
- package/dist/esm/{index-a343bbd8.js → index-73211e60.js} +35 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{player-elevate-card-items-f8f33075.js → player-elevate-card-items-f80657b8.js} +117 -105
- package/dist/esm/player-elevate-card.entry.js +2 -2
- package/dist/esm/player-elevate-loyaltycard.entry.js +9 -4
- package/dist/types/components/bonus-elevate-shop/bonus-elevate-shop.d.ts +23 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/utils/translation.d.ts +2 -0
- package/package.json +4 -2
- package/dist/bonus-elevate-shop/p-248310cb.js +0 -2
- package/dist/bonus-elevate-shop/p-55bd3db5.js +0 -1
- package/dist/bonus-elevate-shop/p-60765cf8.entry.js +0 -1
- package/dist/bonus-elevate-shop/p-87af6879.entry.js +0 -1
- package/dist/bonus-elevate-shop/p-d6e4c7cf.entry.js +0 -1
- package/dist/cjs/bonus-elevate-shop_4.cjs.entry.js +0 -824
- package/dist/esm/bonus-elevate-shop_4.entry.js +0 -817
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'bonus-elevate-shop';
|
|
24
|
-
const BUILD = /* bonus-elevate-shop */ { 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:
|
|
24
|
+
const BUILD = /* bonus-elevate-shop */ { 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: true, cmpWillUpdate: false, connectedCallback: true, 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: true, hostListenerTargetDocument: true, 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: true, propNumber: true, 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: false, 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.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'bonus-elevate-
|
|
74
|
+
case 'bonus-elevate-shop_17.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./bonus-elevate-
|
|
77
|
+
'./bonus-elevate-shop_17.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
case 'player-elevate-card.cjs':
|
|
79
79
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
80
80
|
/* webpackMode: "lazy" */
|
|
@@ -372,6 +372,12 @@ var convertToPrivate = (node) => {
|
|
|
372
372
|
};
|
|
373
373
|
var parsePropertyValue = (propValue, propType) => {
|
|
374
374
|
if (propValue != null && !isComplexType(propValue)) {
|
|
375
|
+
if (propType & 4 /* Boolean */) {
|
|
376
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
377
|
+
}
|
|
378
|
+
if (propType & 2 /* Number */) {
|
|
379
|
+
return parseFloat(propValue);
|
|
380
|
+
}
|
|
375
381
|
if (propType & 1 /* String */) {
|
|
376
382
|
return String(propValue);
|
|
377
383
|
}
|
|
@@ -508,7 +514,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
508
514
|
}
|
|
509
515
|
}
|
|
510
516
|
}
|
|
511
|
-
} else if (memberName === "key") ; else if (
|
|
517
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
518
|
+
if (newValue) {
|
|
519
|
+
newValue(elm);
|
|
520
|
+
}
|
|
521
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
512
522
|
if (memberName[2] === "-") {
|
|
513
523
|
memberName = memberName.slice(3);
|
|
514
524
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -711,6 +721,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
711
721
|
const vnode = vnodes[index];
|
|
712
722
|
if (vnode) {
|
|
713
723
|
const elm = vnode.$elm$;
|
|
724
|
+
nullifyVNodeRefs(vnode);
|
|
714
725
|
if (elm) {
|
|
715
726
|
{
|
|
716
727
|
checkSlotFallbackVisibility = true;
|
|
@@ -963,6 +974,12 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
963
974
|
}
|
|
964
975
|
return slotName === "";
|
|
965
976
|
};
|
|
977
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
978
|
+
{
|
|
979
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
980
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
981
|
+
}
|
|
982
|
+
};
|
|
966
983
|
var insertBefore = (parent, newNode, reference) => {
|
|
967
984
|
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
968
985
|
return inserted;
|
|
@@ -1106,6 +1123,9 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1106
1123
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1107
1124
|
}
|
|
1108
1125
|
}
|
|
1126
|
+
{
|
|
1127
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1128
|
+
}
|
|
1109
1129
|
endSchedule();
|
|
1110
1130
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1111
1131
|
};
|
|
@@ -1374,6 +1394,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1374
1394
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1375
1395
|
}
|
|
1376
1396
|
endNewInstance();
|
|
1397
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1377
1398
|
} else {
|
|
1378
1399
|
Cstr = elm.constructor;
|
|
1379
1400
|
const cmpTag = elm.localName;
|
|
@@ -1401,6 +1422,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1401
1422
|
}
|
|
1402
1423
|
};
|
|
1403
1424
|
var fireConnectedCallback = (instance) => {
|
|
1425
|
+
{
|
|
1426
|
+
safeCall(instance, "connectedCallback");
|
|
1427
|
+
}
|
|
1404
1428
|
};
|
|
1405
1429
|
|
|
1406
1430
|
// src/runtime/connected-callback.ts
|
|
@@ -1440,8 +1464,10 @@ var connectedCallback = (elm) => {
|
|
|
1440
1464
|
}
|
|
1441
1465
|
} else {
|
|
1442
1466
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1443
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1444
|
-
hostRef.$
|
|
1467
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1468
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1469
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1470
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1445
1471
|
}
|
|
1446
1472
|
}
|
|
1447
1473
|
endConnected();
|
|
@@ -1628,7 +1654,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1628
1654
|
}
|
|
1629
1655
|
};
|
|
1630
1656
|
var getHostListenerTarget = (elm, flags) => {
|
|
1657
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1631
1658
|
if (flags & 8 /* TargetWindow */) return win;
|
|
1659
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
1632
1660
|
return elm;
|
|
1633
1661
|
};
|
|
1634
1662
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1640,6 +1668,7 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1640
1668
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1641
1669
|
|
|
1642
1670
|
exports.Fragment = Fragment;
|
|
1671
|
+
exports.Host = Host;
|
|
1643
1672
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1644
1673
|
exports.createEvent = createEvent;
|
|
1645
1674
|
exports.getAssetPath = getAssetPath;
|
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-69a0dfb7.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([["bonus-elevate-
|
|
11
|
+
return index.bootstrapLazy([["bonus-elevate-shop_17.cjs",[[1,"bonus-elevate-shop",{"session":[513],"endpoint":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"limit":[1538],"navItemAccount":[514,"nav-item-account"],"pageLimitOptions":[1537,"page-limit-options"],"locale":[32],"gifts":[32],"total":[32],"offset":[32],"shopListId":[32],"isLoading":[32],"pageLimitSelectOptions":[32]},[[16,"sendInputValue","onPageLimitChangedHandler"],[0,"reloadPageByType","reloadPageByTypeHandler"]],{"endpoint":["updateGifts"],"language":["updateGifts"],"session":["updateGifts"]}],[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-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"]]],[1,"general-input",{"type":[513],"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"validation":[16],"options":[520],"language":[513],"autofilled":[516],"tooltip":[513],"defaultValue":[520,"default-value"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[520,"client-styling"],"dateFormat":[513,"date-format"],"translationUrl":[513,"translation-url"],"emitOnClick":[516,"emit-on-click"]}],[1,"toggle-checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"options":[16],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"showFields":[32]},[[4,"click","handleClickOutside"]]],[1,"checkbox-group-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32],"selectedValues":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"selectedValues":["setValue"],"emitValue":["emitValueHandler"]}],[1,"checkbox-input",{"name":[513],"displayName":[513,"display-name"],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"date-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"dateFormat":[513,"date-format"],"emitOnClick":[516,"emit-on-click"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"email-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"number-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"password-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32],"passwordComplexity":[32],"showPopup":[32],"value":[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"value":["valueChanged"],"emitValue":["emitValueHandler"]}],[1,"radio-input",{"name":[513],"displayName":[513,"display-name"],"optionsGroup":[16],"validation":[16],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"select-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"action":[513],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"options":[16],"validation":[16],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"errorMessage":[32],"isValid":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"tel-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"showLabels":[516,"show-labels"],"action":[513],"validation":[16],"defaultValue":[520,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"emitValue":[516,"emit-value"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[1,"text-input",{"name":[513],"displayName":[513,"display-name"],"placeholder":[513],"validation":[16],"defaultValue":[513,"default-value"],"autofilled":[516],"tooltip":[513],"language":[513],"checkValidity":[516,"check-validity"],"emitValue":[516,"emit-value"],"isDuplicateInput":[516,"is-duplicate-input"],"clientStyling":[513,"client-styling"],"isValid":[32],"errorMessage":[32],"limitStylingAppends":[32],"showTooltip":[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{"isValid":["validityChanged"],"emitValue":["emitValueHandler"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card.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-loyaltycard.cjs",[[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/{player-elevate-card-items-5a947e18.js → player-elevate-card-items-0d4d7d6e.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-69a0dfb7.js');
|
|
4
4
|
|
|
5
5
|
function _typeof(o) {
|
|
6
6
|
"@babel/helpers - typeof";
|
|
@@ -12,23 +12,49 @@ function _typeof(o) {
|
|
|
12
12
|
}, _typeof(o);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
function toInteger(dirtyNumber) {
|
|
16
|
-
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
17
|
-
return NaN;
|
|
18
|
-
}
|
|
19
|
-
var number = Number(dirtyNumber);
|
|
20
|
-
if (isNaN(number)) {
|
|
21
|
-
return number;
|
|
22
|
-
}
|
|
23
|
-
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
15
|
function requiredArgs(required, args) {
|
|
27
16
|
if (args.length < required) {
|
|
28
17
|
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
29
18
|
}
|
|
30
19
|
}
|
|
31
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @name isDate
|
|
23
|
+
* @category Common Helpers
|
|
24
|
+
* @summary Is the given value a date?
|
|
25
|
+
*
|
|
26
|
+
* @description
|
|
27
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
28
|
+
*
|
|
29
|
+
* @param {*} value - the value to check
|
|
30
|
+
* @returns {boolean} true if the given value is a date
|
|
31
|
+
* @throws {TypeError} 1 arguments required
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // For a valid date:
|
|
35
|
+
* const result = isDate(new Date())
|
|
36
|
+
* //=> true
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* // For an invalid date:
|
|
40
|
+
* const result = isDate(new Date(NaN))
|
|
41
|
+
* //=> true
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* // For some value:
|
|
45
|
+
* const result = isDate('2014-02-31')
|
|
46
|
+
* //=> false
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* // For an object:
|
|
50
|
+
* const result = isDate({})
|
|
51
|
+
* //=> false
|
|
52
|
+
*/
|
|
53
|
+
function isDate(value) {
|
|
54
|
+
requiredArgs(1, arguments);
|
|
55
|
+
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
56
|
+
}
|
|
57
|
+
|
|
32
58
|
/**
|
|
33
59
|
* @name toDate
|
|
34
60
|
* @category Common Helpers
|
|
@@ -80,90 +106,6 @@ function toDate(argument) {
|
|
|
80
106
|
}
|
|
81
107
|
}
|
|
82
108
|
|
|
83
|
-
/**
|
|
84
|
-
* @name addMilliseconds
|
|
85
|
-
* @category Millisecond Helpers
|
|
86
|
-
* @summary Add the specified number of milliseconds to the given date.
|
|
87
|
-
*
|
|
88
|
-
* @description
|
|
89
|
-
* Add the specified number of milliseconds to the given date.
|
|
90
|
-
*
|
|
91
|
-
* @param {Date|Number} date - the date to be changed
|
|
92
|
-
* @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
93
|
-
* @returns {Date} the new date with the milliseconds added
|
|
94
|
-
* @throws {TypeError} 2 arguments required
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
98
|
-
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
99
|
-
* //=> Thu Jul 10 2014 12:45:30.750
|
|
100
|
-
*/
|
|
101
|
-
function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
102
|
-
requiredArgs(2, arguments);
|
|
103
|
-
var timestamp = toDate(dirtyDate).getTime();
|
|
104
|
-
var amount = toInteger(dirtyAmount);
|
|
105
|
-
return new Date(timestamp + amount);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
var defaultOptions = {};
|
|
109
|
-
function getDefaultOptions() {
|
|
110
|
-
return defaultOptions;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
115
|
-
* They usually appear for dates that denote time before the timezones were introduced
|
|
116
|
-
* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
|
|
117
|
-
* and GMT+01:00:00 after that date)
|
|
118
|
-
*
|
|
119
|
-
* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
|
|
120
|
-
* which would lead to incorrect calculations.
|
|
121
|
-
*
|
|
122
|
-
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
123
|
-
*/
|
|
124
|
-
function getTimezoneOffsetInMilliseconds(date) {
|
|
125
|
-
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
126
|
-
utcDate.setUTCFullYear(date.getFullYear());
|
|
127
|
-
return date.getTime() - utcDate.getTime();
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @name isDate
|
|
132
|
-
* @category Common Helpers
|
|
133
|
-
* @summary Is the given value a date?
|
|
134
|
-
*
|
|
135
|
-
* @description
|
|
136
|
-
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
137
|
-
*
|
|
138
|
-
* @param {*} value - the value to check
|
|
139
|
-
* @returns {boolean} true if the given value is a date
|
|
140
|
-
* @throws {TypeError} 1 arguments required
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* // For a valid date:
|
|
144
|
-
* const result = isDate(new Date())
|
|
145
|
-
* //=> true
|
|
146
|
-
*
|
|
147
|
-
* @example
|
|
148
|
-
* // For an invalid date:
|
|
149
|
-
* const result = isDate(new Date(NaN))
|
|
150
|
-
* //=> true
|
|
151
|
-
*
|
|
152
|
-
* @example
|
|
153
|
-
* // For some value:
|
|
154
|
-
* const result = isDate('2014-02-31')
|
|
155
|
-
* //=> false
|
|
156
|
-
*
|
|
157
|
-
* @example
|
|
158
|
-
* // For an object:
|
|
159
|
-
* const result = isDate({})
|
|
160
|
-
* //=> false
|
|
161
|
-
*/
|
|
162
|
-
function isDate(value) {
|
|
163
|
-
requiredArgs(1, arguments);
|
|
164
|
-
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
165
|
-
}
|
|
166
|
-
|
|
167
109
|
/**
|
|
168
110
|
* @name isValid
|
|
169
111
|
* @category Common Helpers
|
|
@@ -204,6 +146,42 @@ function isValid(dirtyDate) {
|
|
|
204
146
|
return !isNaN(Number(date));
|
|
205
147
|
}
|
|
206
148
|
|
|
149
|
+
function toInteger(dirtyNumber) {
|
|
150
|
+
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
151
|
+
return NaN;
|
|
152
|
+
}
|
|
153
|
+
var number = Number(dirtyNumber);
|
|
154
|
+
if (isNaN(number)) {
|
|
155
|
+
return number;
|
|
156
|
+
}
|
|
157
|
+
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @name addMilliseconds
|
|
162
|
+
* @category Millisecond Helpers
|
|
163
|
+
* @summary Add the specified number of milliseconds to the given date.
|
|
164
|
+
*
|
|
165
|
+
* @description
|
|
166
|
+
* Add the specified number of milliseconds to the given date.
|
|
167
|
+
*
|
|
168
|
+
* @param {Date|Number} date - the date to be changed
|
|
169
|
+
* @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
|
|
170
|
+
* @returns {Date} the new date with the milliseconds added
|
|
171
|
+
* @throws {TypeError} 2 arguments required
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
175
|
+
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
176
|
+
* //=> Thu Jul 10 2014 12:45:30.750
|
|
177
|
+
*/
|
|
178
|
+
function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
179
|
+
requiredArgs(2, arguments);
|
|
180
|
+
var timestamp = toDate(dirtyDate).getTime();
|
|
181
|
+
var amount = toInteger(dirtyAmount);
|
|
182
|
+
return new Date(timestamp + amount);
|
|
183
|
+
}
|
|
184
|
+
|
|
207
185
|
/**
|
|
208
186
|
* @name subMilliseconds
|
|
209
187
|
* @category Millisecond Helpers
|
|
@@ -294,6 +272,11 @@ function getUTCISOWeek(dirtyDate) {
|
|
|
294
272
|
return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
|
|
295
273
|
}
|
|
296
274
|
|
|
275
|
+
var defaultOptions = {};
|
|
276
|
+
function getDefaultOptions() {
|
|
277
|
+
return defaultOptions;
|
|
278
|
+
}
|
|
279
|
+
|
|
297
280
|
function startOfUTCWeek(dirtyDate, options) {
|
|
298
281
|
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
299
282
|
requiredArgs(1, arguments);
|
|
@@ -1302,6 +1285,23 @@ var longFormatters = {
|
|
|
1302
1285
|
};
|
|
1303
1286
|
const longFormatters$1 = longFormatters;
|
|
1304
1287
|
|
|
1288
|
+
/**
|
|
1289
|
+
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
1290
|
+
* They usually appear for dates that denote time before the timezones were introduced
|
|
1291
|
+
* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
|
|
1292
|
+
* and GMT+01:00:00 after that date)
|
|
1293
|
+
*
|
|
1294
|
+
* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
|
|
1295
|
+
* which would lead to incorrect calculations.
|
|
1296
|
+
*
|
|
1297
|
+
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
1298
|
+
*/
|
|
1299
|
+
function getTimezoneOffsetInMilliseconds(date) {
|
|
1300
|
+
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
1301
|
+
utcDate.setUTCFullYear(date.getFullYear());
|
|
1302
|
+
return date.getTime() - utcDate.getTime();
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
1305
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
1306
1306
|
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
|
1307
1307
|
function isProtectedDayOfYearToken(token) {
|
|
@@ -2199,7 +2199,7 @@ function cleanEscapedString(input) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
|
|
2201
2201
|
const DEFAULT_LANGUAGE = 'en';
|
|
2202
|
-
const SUPPORTED_LANGUAGES = ['
|
|
2202
|
+
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr'];
|
|
2203
2203
|
const TRANSLATIONS = {
|
|
2204
2204
|
en: {
|
|
2205
2205
|
redeem: 'Redeem',
|
|
@@ -2208,7 +2208,7 @@ const TRANSLATIONS = {
|
|
|
2208
2208
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2209
2209
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2210
2210
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2211
|
-
tipsForNextLevel: '
|
|
2211
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2212
2212
|
spendablePoints: 'Spendable Points:',
|
|
2213
2213
|
details: 'Details',
|
|
2214
2214
|
earningRules: 'Earning Rules',
|
|
@@ -2223,7 +2223,7 @@ const TRANSLATIONS = {
|
|
|
2223
2223
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2224
2224
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2225
2225
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2226
|
-
tipsForNextLevel: '
|
|
2226
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2227
2227
|
spendablePoints: 'Spendable Points:',
|
|
2228
2228
|
details: '明细',
|
|
2229
2229
|
earningRules: 'Earning Rules',
|
|
@@ -2238,7 +2238,7 @@ const TRANSLATIONS = {
|
|
|
2238
2238
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2239
2239
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2240
2240
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2241
|
-
tipsForNextLevel: '
|
|
2241
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2242
2242
|
spendablePoints: 'Spendable Points:',
|
|
2243
2243
|
details: 'Details',
|
|
2244
2244
|
earningRules: 'Earning Rules',
|
|
@@ -2253,7 +2253,7 @@ const TRANSLATIONS = {
|
|
|
2253
2253
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2254
2254
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2255
2255
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2256
|
-
tipsForNextLevel: '
|
|
2256
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2257
2257
|
spendablePoints: 'Spendable Points:',
|
|
2258
2258
|
details: 'Details',
|
|
2259
2259
|
earningRules: 'Earning Rules',
|
|
@@ -2268,7 +2268,7 @@ const TRANSLATIONS = {
|
|
|
2268
2268
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2269
2269
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2270
2270
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2271
|
-
tipsForNextLevel: '
|
|
2271
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2272
2272
|
spendablePoints: 'Spendable Points:',
|
|
2273
2273
|
details: 'Details',
|
|
2274
2274
|
earningRules: 'Earning Rules',
|
|
@@ -2280,7 +2280,19 @@ const TRANSLATIONS = {
|
|
|
2280
2280
|
redeem: 'Redeem'
|
|
2281
2281
|
},
|
|
2282
2282
|
tr: {
|
|
2283
|
-
redeem: 'Redeem'
|
|
2283
|
+
redeem: 'Redeem',
|
|
2284
|
+
expireOn: 'Expire on ',
|
|
2285
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2286
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2287
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2288
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2289
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2290
|
+
spendablePoints: 'Spendable Points:',
|
|
2291
|
+
details: 'Details',
|
|
2292
|
+
earningRules: 'Earning Rules',
|
|
2293
|
+
xp: 'XP',
|
|
2294
|
+
sp: 'Coins',
|
|
2295
|
+
termAndConditions: 'Term & Conditions',
|
|
2284
2296
|
},
|
|
2285
2297
|
ru: {
|
|
2286
2298
|
redeem: 'Redeem'
|
|
@@ -2435,7 +2447,7 @@ const TipsInfo = `<svg width="126" height="92" viewBox="0 0 126 92" fill="none"
|
|
|
2435
2447
|
`;
|
|
2436
2448
|
|
|
2437
2449
|
const PlayerLoyaltyProcess = () => (index.h("span", { class: "LevelProgress", id: 'LevelProgress', innerHTML: LoyaltyProgress }));
|
|
2438
|
-
const PlayerPoints = ({ loyaltyPoints, spendablePoints, pointExpireString, language, }) => (index.h("div", { class: "PointsInfo" }, loyaltyPoints &&
|
|
2450
|
+
const PlayerPoints = ({ loyaltyPoints, spendablePoints, pointExpireString, language, }) => (index.h("div", { class: "PointsInfo" }, (loyaltyPoints || loyaltyPoints == 0) &&
|
|
2439
2451
|
index.h("div", { class: 'Points' }, loyaltyPoints, " ", index.h("sub", { class: "XP" }, translate('xp', language))), spendablePoints &&
|
|
2440
2452
|
index.h("div", { class: 'Points' }, spendablePoints, " ", index.h("sub", { class: "XP" }, translate('sp', language))), pointExpireString && (index.h("div", { class: 'ExpirationPoints' }, pointExpireString, " "))));
|
|
2441
2453
|
const PlayerElevateCardRedeem = ({ language, onRedeemClick }) => (index.h("div", { class: "CardCell Redeem" }, index.h("div", { class: "RedeemButton", onClick: () => {
|
|
@@ -2458,8 +2470,23 @@ exports.PlayerLoyaltyProcess = PlayerLoyaltyProcess;
|
|
|
2458
2470
|
exports.PlayerNameDiv = PlayerNameDiv;
|
|
2459
2471
|
exports.PlayerPoints = PlayerPoints;
|
|
2460
2472
|
exports.TRANSLATIONS = TRANSLATIONS;
|
|
2473
|
+
exports._typeof = _typeof;
|
|
2474
|
+
exports.defaultLocale = defaultLocale;
|
|
2475
|
+
exports.format = format;
|
|
2476
|
+
exports.getDefaultOptions = getDefaultOptions;
|
|
2461
2477
|
exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds;
|
|
2478
|
+
exports.getUTCISOWeek = getUTCISOWeek;
|
|
2479
|
+
exports.getUTCWeek = getUTCWeek;
|
|
2480
|
+
exports.getUTCWeekYear = getUTCWeekYear;
|
|
2481
|
+
exports.isProtectedDayOfYearToken = isProtectedDayOfYearToken;
|
|
2482
|
+
exports.isProtectedWeekYearToken = isProtectedWeekYearToken;
|
|
2483
|
+
exports.longFormatters = longFormatters$1;
|
|
2462
2484
|
exports.requiredArgs = requiredArgs;
|
|
2485
|
+
exports.startOfUTCISOWeek = startOfUTCISOWeek;
|
|
2486
|
+
exports.startOfUTCWeek = startOfUTCWeek;
|
|
2487
|
+
exports.subMilliseconds = subMilliseconds;
|
|
2488
|
+
exports.throwProtectedError = throwProtectedError;
|
|
2463
2489
|
exports.toDate = toDate;
|
|
2490
|
+
exports.toInteger = toInteger;
|
|
2464
2491
|
exports.translate = translate;
|
|
2465
2492
|
exports.translateWithParams = translateWithParams;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-69a0dfb7.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-0d4d7d6e.js');
|
|
7
7
|
|
|
8
8
|
const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emfe-w-color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
|
|
9
9
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-69a0dfb7.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-0d4d7d6e.js');
|
|
7
7
|
|
|
8
|
-
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
|
|
8
|
+
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(--emfe-w-color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emfe-w-elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emfe-w-elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emfe-w-color-black, #000);opacity:0.8;font-weight:bold}";
|
|
9
9
|
const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
10
10
|
|
|
11
11
|
const PlayerElevateLoyaltycard = class {
|
|
@@ -52,6 +52,10 @@ const PlayerElevateLoyaltycard = class {
|
|
|
52
52
|
language: this.language,
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
getNextLevelPoints() {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
return ((_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel) ? (_b = this.playerElevateLevel) === null || _b === void 0 ? void 0 : _b.nextLevel.entryPoints : -1;
|
|
58
|
+
}
|
|
55
59
|
getNextLevelTips() {
|
|
56
60
|
var _a;
|
|
57
61
|
//need xx to reach Diamond
|
|
@@ -61,6 +65,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
61
65
|
return playerElevateCardItems.translateWithParams('tipsForNextLevel', {
|
|
62
66
|
pointsToReach,
|
|
63
67
|
levelName: nextLevel.name,
|
|
68
|
+
lang: this.language
|
|
64
69
|
});
|
|
65
70
|
}
|
|
66
71
|
return '';
|
|
@@ -68,7 +73,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
68
73
|
render() {
|
|
69
74
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
70
75
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
71
|
-
return (index.h("div", { key: '
|
|
76
|
+
return (index.h("div", { key: '2b0944f8317a94621e1bc65bbbb3726654b8963b', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'c6d4dbba143435b4485d7fde91ab0a48a2f6688b', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'e47a4efe925eb35d4449c6ff33a0afef9d284e55', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: playerElevateCardItems.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: 'a560991893305894ddd41756cd7b3c32d0ef9e03', params: this.paramProxy }), index.h("div", { key: 'ceb8b71386f84f54518a3694535aa16c2c3d3951', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '1df9647c3de42e74adee0f8895511442118ae381', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '569bcd5fc3c578d2e6cc7442d28444e29688660c' }, index.h("div", { key: 'aa40032bff99c5462b906e4427232ca2d4019017', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: '7a2d535b0c2029c90b9f1c123f9feebafca6bdde', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: '90999da8fc2a3102eac235fcbc8afbec2a2bbdf8', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '67e8bf370b1b77e776fb6d955ae63928fd1338d8', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h("div", { key: '1e0fefc6a23f4aeeef5e19828399fe1229a3fc81', class: 'PointsRange' }, index.h(playerElevateCardItems.PlayerPoints, { key: 'dd176e624cde3b6f517101d7702a15465305174d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), index.h(playerElevateCardItems.PlayerPoints, { key: '6cddb64c92545803d08fbbc513cc951b2691a42e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), this.pointExpireString && (index.h("div", { key: '6ead0fa321a73f2f4ae69e1c424037b739c85994', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '53c623e1852fd47fddec758159c4bf6e82be1aaa' }), index.h("div", { key: '99894852a3f1751e80010fff0c1a841562963f6e', class: "NextLevelTip" }, this.getNextLevelTips())))))))));
|
|
72
77
|
}
|
|
73
78
|
static get watchers() { return {
|
|
74
79
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -8,6 +8,29 @@
|
|
|
8
8
|
"typescriptVersion": "5.5.3"
|
|
9
9
|
},
|
|
10
10
|
"collections": [
|
|
11
|
+
{
|
|
12
|
+
"name": "@everymatrix/bonus-pagination-nav",
|
|
13
|
+
"tags": [
|
|
14
|
+
"bonus-pagination-nav"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "@everymatrix/general-input",
|
|
19
|
+
"tags": [
|
|
20
|
+
"checkbox-group-input",
|
|
21
|
+
"checkbox-input",
|
|
22
|
+
"date-input",
|
|
23
|
+
"email-input",
|
|
24
|
+
"general-input",
|
|
25
|
+
"number-input",
|
|
26
|
+
"password-input",
|
|
27
|
+
"radio-input",
|
|
28
|
+
"select-input",
|
|
29
|
+
"tel-input",
|
|
30
|
+
"text-input",
|
|
31
|
+
"toggle-checkbox-input"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
11
34
|
{
|
|
12
35
|
"name": "@everymatrix/general-styling-wrapper",
|
|
13
36
|
"tags": [
|