@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'bonus-elevate-shop';
|
|
2
|
-
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:
|
|
2
|
+
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 };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -49,10 +49,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
49
49
|
}
|
|
50
50
|
switch(bundleId) {
|
|
51
51
|
|
|
52
|
-
case 'bonus-elevate-
|
|
52
|
+
case 'bonus-elevate-shop_17':
|
|
53
53
|
return import(
|
|
54
54
|
/* webpackMode: "lazy" */
|
|
55
|
-
'./bonus-elevate-
|
|
55
|
+
'./bonus-elevate-shop_17.entry.js').then(processMod, consoleError);
|
|
56
56
|
case 'player-elevate-card':
|
|
57
57
|
return import(
|
|
58
58
|
/* webpackMode: "lazy" */
|
|
@@ -350,6 +350,12 @@ var convertToPrivate = (node) => {
|
|
|
350
350
|
};
|
|
351
351
|
var parsePropertyValue = (propValue, propType) => {
|
|
352
352
|
if (propValue != null && !isComplexType(propValue)) {
|
|
353
|
+
if (propType & 4 /* Boolean */) {
|
|
354
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
355
|
+
}
|
|
356
|
+
if (propType & 2 /* Number */) {
|
|
357
|
+
return parseFloat(propValue);
|
|
358
|
+
}
|
|
353
359
|
if (propType & 1 /* String */) {
|
|
354
360
|
return String(propValue);
|
|
355
361
|
}
|
|
@@ -486,7 +492,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
486
492
|
}
|
|
487
493
|
}
|
|
488
494
|
}
|
|
489
|
-
} else if (memberName === "key") ; else if (
|
|
495
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
496
|
+
if (newValue) {
|
|
497
|
+
newValue(elm);
|
|
498
|
+
}
|
|
499
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
490
500
|
if (memberName[2] === "-") {
|
|
491
501
|
memberName = memberName.slice(3);
|
|
492
502
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -689,6 +699,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
689
699
|
const vnode = vnodes[index];
|
|
690
700
|
if (vnode) {
|
|
691
701
|
const elm = vnode.$elm$;
|
|
702
|
+
nullifyVNodeRefs(vnode);
|
|
692
703
|
if (elm) {
|
|
693
704
|
{
|
|
694
705
|
checkSlotFallbackVisibility = true;
|
|
@@ -941,6 +952,12 @@ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
|
941
952
|
}
|
|
942
953
|
return slotName === "";
|
|
943
954
|
};
|
|
955
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
956
|
+
{
|
|
957
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
958
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
959
|
+
}
|
|
960
|
+
};
|
|
944
961
|
var insertBefore = (parent, newNode, reference) => {
|
|
945
962
|
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
946
963
|
return inserted;
|
|
@@ -1084,6 +1101,9 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1084
1101
|
maybePromise = safeCall(instance, "componentWillLoad");
|
|
1085
1102
|
}
|
|
1086
1103
|
}
|
|
1104
|
+
{
|
|
1105
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
1106
|
+
}
|
|
1087
1107
|
endSchedule();
|
|
1088
1108
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1089
1109
|
};
|
|
@@ -1352,6 +1372,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1352
1372
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1353
1373
|
}
|
|
1354
1374
|
endNewInstance();
|
|
1375
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1355
1376
|
} else {
|
|
1356
1377
|
Cstr = elm.constructor;
|
|
1357
1378
|
const cmpTag = elm.localName;
|
|
@@ -1379,6 +1400,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1379
1400
|
}
|
|
1380
1401
|
};
|
|
1381
1402
|
var fireConnectedCallback = (instance) => {
|
|
1403
|
+
{
|
|
1404
|
+
safeCall(instance, "connectedCallback");
|
|
1405
|
+
}
|
|
1382
1406
|
};
|
|
1383
1407
|
|
|
1384
1408
|
// src/runtime/connected-callback.ts
|
|
@@ -1418,8 +1442,10 @@ var connectedCallback = (elm) => {
|
|
|
1418
1442
|
}
|
|
1419
1443
|
} else {
|
|
1420
1444
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1421
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1422
|
-
hostRef.$
|
|
1445
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1446
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1447
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1448
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1423
1449
|
}
|
|
1424
1450
|
}
|
|
1425
1451
|
endConnected();
|
|
@@ -1606,7 +1632,9 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1606
1632
|
}
|
|
1607
1633
|
};
|
|
1608
1634
|
var getHostListenerTarget = (elm, flags) => {
|
|
1635
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1609
1636
|
if (flags & 8 /* TargetWindow */) return win;
|
|
1637
|
+
if (flags & 16 /* TargetBody */) return doc.body;
|
|
1610
1638
|
return elm;
|
|
1611
1639
|
};
|
|
1612
1640
|
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -1617,4 +1645,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1617
1645
|
// src/runtime/nonce.ts
|
|
1618
1646
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1619
1647
|
|
|
1620
|
-
export { Fragment as F, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
|
1648
|
+
export { Fragment as F, Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-73211e60.js';
|
|
2
|
+
export { s as setNonce } from './index-73211e60.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["bonus-elevate-
|
|
8
|
+
return bootstrapLazy([["bonus-elevate-shop_17",[[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",[[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"],"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);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
package/dist/esm/{player-elevate-card-items-f8f33075.js → player-elevate-card-items-f80657b8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, a as getAssetPath } from './index-
|
|
1
|
+
import { h, a as getAssetPath } from './index-73211e60.js';
|
|
2
2
|
|
|
3
3
|
function _typeof(o) {
|
|
4
4
|
"@babel/helpers - typeof";
|
|
@@ -10,23 +10,49 @@ function _typeof(o) {
|
|
|
10
10
|
}, _typeof(o);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function toInteger(dirtyNumber) {
|
|
14
|
-
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
15
|
-
return NaN;
|
|
16
|
-
}
|
|
17
|
-
var number = Number(dirtyNumber);
|
|
18
|
-
if (isNaN(number)) {
|
|
19
|
-
return number;
|
|
20
|
-
}
|
|
21
|
-
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
13
|
function requiredArgs(required, args) {
|
|
25
14
|
if (args.length < required) {
|
|
26
15
|
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
27
16
|
}
|
|
28
17
|
}
|
|
29
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @name isDate
|
|
21
|
+
* @category Common Helpers
|
|
22
|
+
* @summary Is the given value a date?
|
|
23
|
+
*
|
|
24
|
+
* @description
|
|
25
|
+
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
26
|
+
*
|
|
27
|
+
* @param {*} value - the value to check
|
|
28
|
+
* @returns {boolean} true if the given value is a date
|
|
29
|
+
* @throws {TypeError} 1 arguments required
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* // For a valid date:
|
|
33
|
+
* const result = isDate(new Date())
|
|
34
|
+
* //=> true
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* // For an invalid date:
|
|
38
|
+
* const result = isDate(new Date(NaN))
|
|
39
|
+
* //=> true
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* // For some value:
|
|
43
|
+
* const result = isDate('2014-02-31')
|
|
44
|
+
* //=> false
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // For an object:
|
|
48
|
+
* const result = isDate({})
|
|
49
|
+
* //=> false
|
|
50
|
+
*/
|
|
51
|
+
function isDate(value) {
|
|
52
|
+
requiredArgs(1, arguments);
|
|
53
|
+
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
54
|
+
}
|
|
55
|
+
|
|
30
56
|
/**
|
|
31
57
|
* @name toDate
|
|
32
58
|
* @category Common Helpers
|
|
@@ -78,90 +104,6 @@ function toDate(argument) {
|
|
|
78
104
|
}
|
|
79
105
|
}
|
|
80
106
|
|
|
81
|
-
/**
|
|
82
|
-
* @name addMilliseconds
|
|
83
|
-
* @category Millisecond Helpers
|
|
84
|
-
* @summary Add the specified number of milliseconds to the given date.
|
|
85
|
-
*
|
|
86
|
-
* @description
|
|
87
|
-
* Add the specified number of milliseconds to the given date.
|
|
88
|
-
*
|
|
89
|
-
* @param {Date|Number} date - the date to be changed
|
|
90
|
-
* @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`.
|
|
91
|
-
* @returns {Date} the new date with the milliseconds added
|
|
92
|
-
* @throws {TypeError} 2 arguments required
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
96
|
-
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
97
|
-
* //=> Thu Jul 10 2014 12:45:30.750
|
|
98
|
-
*/
|
|
99
|
-
function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
100
|
-
requiredArgs(2, arguments);
|
|
101
|
-
var timestamp = toDate(dirtyDate).getTime();
|
|
102
|
-
var amount = toInteger(dirtyAmount);
|
|
103
|
-
return new Date(timestamp + amount);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
var defaultOptions = {};
|
|
107
|
-
function getDefaultOptions() {
|
|
108
|
-
return defaultOptions;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
113
|
-
* They usually appear for dates that denote time before the timezones were introduced
|
|
114
|
-
* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
|
|
115
|
-
* and GMT+01:00:00 after that date)
|
|
116
|
-
*
|
|
117
|
-
* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
|
|
118
|
-
* which would lead to incorrect calculations.
|
|
119
|
-
*
|
|
120
|
-
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
121
|
-
*/
|
|
122
|
-
function getTimezoneOffsetInMilliseconds(date) {
|
|
123
|
-
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
124
|
-
utcDate.setUTCFullYear(date.getFullYear());
|
|
125
|
-
return date.getTime() - utcDate.getTime();
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @name isDate
|
|
130
|
-
* @category Common Helpers
|
|
131
|
-
* @summary Is the given value a date?
|
|
132
|
-
*
|
|
133
|
-
* @description
|
|
134
|
-
* Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
|
|
135
|
-
*
|
|
136
|
-
* @param {*} value - the value to check
|
|
137
|
-
* @returns {boolean} true if the given value is a date
|
|
138
|
-
* @throws {TypeError} 1 arguments required
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* // For a valid date:
|
|
142
|
-
* const result = isDate(new Date())
|
|
143
|
-
* //=> true
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* // For an invalid date:
|
|
147
|
-
* const result = isDate(new Date(NaN))
|
|
148
|
-
* //=> true
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* // For some value:
|
|
152
|
-
* const result = isDate('2014-02-31')
|
|
153
|
-
* //=> false
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* // For an object:
|
|
157
|
-
* const result = isDate({})
|
|
158
|
-
* //=> false
|
|
159
|
-
*/
|
|
160
|
-
function isDate(value) {
|
|
161
|
-
requiredArgs(1, arguments);
|
|
162
|
-
return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
107
|
/**
|
|
166
108
|
* @name isValid
|
|
167
109
|
* @category Common Helpers
|
|
@@ -202,6 +144,42 @@ function isValid(dirtyDate) {
|
|
|
202
144
|
return !isNaN(Number(date));
|
|
203
145
|
}
|
|
204
146
|
|
|
147
|
+
function toInteger(dirtyNumber) {
|
|
148
|
+
if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
|
|
149
|
+
return NaN;
|
|
150
|
+
}
|
|
151
|
+
var number = Number(dirtyNumber);
|
|
152
|
+
if (isNaN(number)) {
|
|
153
|
+
return number;
|
|
154
|
+
}
|
|
155
|
+
return number < 0 ? Math.ceil(number) : Math.floor(number);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @name addMilliseconds
|
|
160
|
+
* @category Millisecond Helpers
|
|
161
|
+
* @summary Add the specified number of milliseconds to the given date.
|
|
162
|
+
*
|
|
163
|
+
* @description
|
|
164
|
+
* Add the specified number of milliseconds to the given date.
|
|
165
|
+
*
|
|
166
|
+
* @param {Date|Number} date - the date to be changed
|
|
167
|
+
* @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`.
|
|
168
|
+
* @returns {Date} the new date with the milliseconds added
|
|
169
|
+
* @throws {TypeError} 2 arguments required
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* // Add 750 milliseconds to 10 July 2014 12:45:30.000:
|
|
173
|
+
* const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
|
|
174
|
+
* //=> Thu Jul 10 2014 12:45:30.750
|
|
175
|
+
*/
|
|
176
|
+
function addMilliseconds(dirtyDate, dirtyAmount) {
|
|
177
|
+
requiredArgs(2, arguments);
|
|
178
|
+
var timestamp = toDate(dirtyDate).getTime();
|
|
179
|
+
var amount = toInteger(dirtyAmount);
|
|
180
|
+
return new Date(timestamp + amount);
|
|
181
|
+
}
|
|
182
|
+
|
|
205
183
|
/**
|
|
206
184
|
* @name subMilliseconds
|
|
207
185
|
* @category Millisecond Helpers
|
|
@@ -292,6 +270,11 @@ function getUTCISOWeek(dirtyDate) {
|
|
|
292
270
|
return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
|
|
293
271
|
}
|
|
294
272
|
|
|
273
|
+
var defaultOptions = {};
|
|
274
|
+
function getDefaultOptions() {
|
|
275
|
+
return defaultOptions;
|
|
276
|
+
}
|
|
277
|
+
|
|
295
278
|
function startOfUTCWeek(dirtyDate, options) {
|
|
296
279
|
var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
|
|
297
280
|
requiredArgs(1, arguments);
|
|
@@ -1300,6 +1283,23 @@ var longFormatters = {
|
|
|
1300
1283
|
};
|
|
1301
1284
|
const longFormatters$1 = longFormatters;
|
|
1302
1285
|
|
|
1286
|
+
/**
|
|
1287
|
+
* Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
|
|
1288
|
+
* They usually appear for dates that denote time before the timezones were introduced
|
|
1289
|
+
* (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
|
|
1290
|
+
* and GMT+01:00:00 after that date)
|
|
1291
|
+
*
|
|
1292
|
+
* Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
|
|
1293
|
+
* which would lead to incorrect calculations.
|
|
1294
|
+
*
|
|
1295
|
+
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
1296
|
+
*/
|
|
1297
|
+
function getTimezoneOffsetInMilliseconds(date) {
|
|
1298
|
+
var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
|
|
1299
|
+
utcDate.setUTCFullYear(date.getFullYear());
|
|
1300
|
+
return date.getTime() - utcDate.getTime();
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
1303
|
var protectedDayOfYearTokens = ['D', 'DD'];
|
|
1304
1304
|
var protectedWeekYearTokens = ['YY', 'YYYY'];
|
|
1305
1305
|
function isProtectedDayOfYearToken(token) {
|
|
@@ -2197,7 +2197,7 @@ function cleanEscapedString(input) {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
2199
2199
|
const DEFAULT_LANGUAGE = 'en';
|
|
2200
|
-
const SUPPORTED_LANGUAGES = ['
|
|
2200
|
+
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr'];
|
|
2201
2201
|
const TRANSLATIONS = {
|
|
2202
2202
|
en: {
|
|
2203
2203
|
redeem: 'Redeem',
|
|
@@ -2206,7 +2206,7 @@ const TRANSLATIONS = {
|
|
|
2206
2206
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2207
2207
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2208
2208
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2209
|
-
tipsForNextLevel: '
|
|
2209
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2210
2210
|
spendablePoints: 'Spendable Points:',
|
|
2211
2211
|
details: 'Details',
|
|
2212
2212
|
earningRules: 'Earning Rules',
|
|
@@ -2221,7 +2221,7 @@ const TRANSLATIONS = {
|
|
|
2221
2221
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2222
2222
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2223
2223
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2224
|
-
tipsForNextLevel: '
|
|
2224
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2225
2225
|
spendablePoints: 'Spendable Points:',
|
|
2226
2226
|
details: '明细',
|
|
2227
2227
|
earningRules: 'Earning Rules',
|
|
@@ -2236,7 +2236,7 @@ const TRANSLATIONS = {
|
|
|
2236
2236
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2237
2237
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2238
2238
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2239
|
-
tipsForNextLevel: '
|
|
2239
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2240
2240
|
spendablePoints: 'Spendable Points:',
|
|
2241
2241
|
details: 'Details',
|
|
2242
2242
|
earningRules: 'Earning Rules',
|
|
@@ -2251,7 +2251,7 @@ const TRANSLATIONS = {
|
|
|
2251
2251
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2252
2252
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2253
2253
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2254
|
-
tipsForNextLevel: '
|
|
2254
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2255
2255
|
spendablePoints: 'Spendable Points:',
|
|
2256
2256
|
details: 'Details',
|
|
2257
2257
|
earningRules: 'Earning Rules',
|
|
@@ -2266,7 +2266,7 @@ const TRANSLATIONS = {
|
|
|
2266
2266
|
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2267
2267
|
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2268
2268
|
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2269
|
-
tipsForNextLevel: '
|
|
2269
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2270
2270
|
spendablePoints: 'Spendable Points:',
|
|
2271
2271
|
details: 'Details',
|
|
2272
2272
|
earningRules: 'Earning Rules',
|
|
@@ -2278,7 +2278,19 @@ const TRANSLATIONS = {
|
|
|
2278
2278
|
redeem: 'Redeem'
|
|
2279
2279
|
},
|
|
2280
2280
|
tr: {
|
|
2281
|
-
redeem: 'Redeem'
|
|
2281
|
+
redeem: 'Redeem',
|
|
2282
|
+
expireOn: 'Expire on ',
|
|
2283
|
+
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2284
|
+
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2285
|
+
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2286
|
+
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2287
|
+
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2288
|
+
spendablePoints: 'Spendable Points:',
|
|
2289
|
+
details: 'Details',
|
|
2290
|
+
earningRules: 'Earning Rules',
|
|
2291
|
+
xp: 'XP',
|
|
2292
|
+
sp: 'Coins',
|
|
2293
|
+
termAndConditions: 'Term & Conditions',
|
|
2282
2294
|
},
|
|
2283
2295
|
ru: {
|
|
2284
2296
|
redeem: 'Redeem'
|
|
@@ -2433,7 +2445,7 @@ const TipsInfo = `<svg width="126" height="92" viewBox="0 0 126 92" fill="none"
|
|
|
2433
2445
|
`;
|
|
2434
2446
|
|
|
2435
2447
|
const PlayerLoyaltyProcess = () => (h("span", { class: "LevelProgress", id: 'LevelProgress', innerHTML: LoyaltyProgress }));
|
|
2436
|
-
const PlayerPoints = ({ loyaltyPoints, spendablePoints, pointExpireString, language, }) => (h("div", { class: "PointsInfo" }, loyaltyPoints &&
|
|
2448
|
+
const PlayerPoints = ({ loyaltyPoints, spendablePoints, pointExpireString, language, }) => (h("div", { class: "PointsInfo" }, (loyaltyPoints || loyaltyPoints == 0) &&
|
|
2437
2449
|
h("div", { class: 'Points' }, loyaltyPoints, " ", h("sub", { class: "XP" }, translate('xp', language))), spendablePoints &&
|
|
2438
2450
|
h("div", { class: 'Points' }, spendablePoints, " ", h("sub", { class: "XP" }, translate('sp', language))), pointExpireString && (h("div", { class: 'ExpirationPoints' }, pointExpireString, " "))));
|
|
2439
2451
|
const PlayerElevateCardRedeem = ({ language, onRedeemClick }) => (h("div", { class: "CardCell Redeem" }, h("div", { class: "RedeemButton", onClick: () => {
|
|
@@ -2449,4 +2461,4 @@ const PlayerAvatar = (props) => {
|
|
|
2449
2461
|
return h("div", { class: "PlayerAvatar", style: { 'position': `${props.onlyBadge ? '' : 'relative'}` } }, !props.onlyBadge && h("img", { class: "Avatar", src: avatarSrc }), badge);
|
|
2450
2462
|
};
|
|
2451
2463
|
|
|
2452
|
-
export { PlayerAvatar as P, TRANSLATIONS as T,
|
|
2464
|
+
export { PlayerAvatar as P, TRANSLATIONS as T, _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, getUTCISOWeek as d, getDefaultOptions as e, subMilliseconds as f, getUTCWeekYear as g, getTimezoneOffsetInMilliseconds as h, defaultLocale as i, isProtectedWeekYearToken as j, throwProtectedError as k, longFormatters$1 as l, isProtectedDayOfYearToken as m, format as n, translateWithParams as o, translate as p, PlayerPoints as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, PlayerNameDiv as u, PlayerElevateLoyaltyLevel as v, PlayerLoyaltyProcess as w, PlayerElevateCardRedeem as x };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-
|
|
2
|
-
import { T as TRANSLATIONS, P as PlayerAvatar,
|
|
1
|
+
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-73211e60.js';
|
|
2
|
+
import { T as TRANSLATIONS, P as PlayerAvatar, q as PlayerPoints, u as PlayerNameDiv, v as PlayerElevateLoyaltyLevel, w as PlayerLoyaltyProcess, x as PlayerElevateCardRedeem } from './player-elevate-card-items-f80657b8.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
5
5
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { r as registerInstance, a as getAssetPath, h, F as Fragment } from './index-73211e60.js';
|
|
2
|
+
import { o as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, v as PlayerElevateLoyaltyLevel, q as PlayerPoints, w as PlayerLoyaltyProcess } from './player-elevate-card-items-f80657b8.js';
|
|
3
3
|
|
|
4
|
-
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
|
|
4
|
+
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}";
|
|
5
5
|
const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
6
6
|
|
|
7
7
|
const PlayerElevateLoyaltycard = class {
|
|
@@ -48,6 +48,10 @@ const PlayerElevateLoyaltycard = class {
|
|
|
48
48
|
language: this.language,
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
+
getNextLevelPoints() {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
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;
|
|
54
|
+
}
|
|
51
55
|
getNextLevelTips() {
|
|
52
56
|
var _a;
|
|
53
57
|
//need xx to reach Diamond
|
|
@@ -57,6 +61,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
57
61
|
return translateWithParams('tipsForNextLevel', {
|
|
58
62
|
pointsToReach,
|
|
59
63
|
levelName: nextLevel.name,
|
|
64
|
+
lang: this.language
|
|
60
65
|
});
|
|
61
66
|
}
|
|
62
67
|
return '';
|
|
@@ -64,7 +69,7 @@ const PlayerElevateLoyaltycard = class {
|
|
|
64
69
|
render() {
|
|
65
70
|
const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
|
|
66
71
|
const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
|
|
67
|
-
return (h("div", { key: '
|
|
72
|
+
return (h("div", { key: '2b0944f8317a94621e1bc65bbbb3726654b8963b', class: `ElevateCardWrapper ${this.theme}` }, h("div", { key: 'c6d4dbba143435b4485d7fde91ab0a48a2f6688b', class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { key: 'e47a4efe925eb35d4449c6ff33a0afef9d284e55', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { key: 'a560991893305894ddd41756cd7b3c32d0ef9e03', params: this.paramProxy }), h("div", { key: 'ceb8b71386f84f54518a3694535aa16c2c3d3951', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { key: '1df9647c3de42e74adee0f8895511442118ae381', class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, { key: '569bcd5fc3c578d2e6cc7442d28444e29688660c' }, h("div", { key: 'aa40032bff99c5462b906e4427232ca2d4019017', class: "PlayerImg" }, h(PlayerAvatar, { key: '7a2d535b0c2029c90b9f1c123f9feebafca6bdde', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { key: '90999da8fc2a3102eac235fcbc8afbec2a2bbdf8', class: `LevelInfo ${this.playerElevateLevel.name}` }, h(PlayerElevateLoyaltyLevel, { key: '67e8bf370b1b77e776fb6d955ae63928fd1338d8', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h("div", { key: '1e0fefc6a23f4aeeef5e19828399fe1229a3fc81', class: 'PointsRange' }, h(PlayerPoints, { key: 'dd176e624cde3b6f517101d7702a15465305174d', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), h(PlayerPoints, { key: '6cddb64c92545803d08fbbc513cc951b2691a42e', loyaltyPoints: this.getNextLevelPoints(), language: this.language })), this.pointExpireString && (h("div", { key: '6ead0fa321a73f2f4ae69e1c424037b739c85994', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), h(PlayerLoyaltyProcess, { key: '53c623e1852fd47fddec758159c4bf6e82be1aaa' }), h("div", { key: '99894852a3f1751e80010fff0c1a841562963f6e', class: "NextLevelTip" }, this.getNextLevelTips())))))))));
|
|
68
73
|
}
|
|
69
74
|
static get watchers() { return {
|
|
70
75
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -4,6 +4,9 @@ import { TLocale } from '../../utils/translation';
|
|
|
4
4
|
import "../../../../../../dist/packages/stencil/general-styling-wrapper/dist/types/index";
|
|
5
5
|
import "../../../../../../dist/packages/svelte/general-animation-loading/es2015/general-animation-loading";
|
|
6
6
|
import "../../../../../../dist/packages/stencil/player-elevate-card/dist/types/index";
|
|
7
|
+
import "../../../../../../dist/packages/stencil/bonus-pagination-nav/dist/types/index";
|
|
8
|
+
import "../../../../../../dist/packages/stencil/general-input/dist/types/index";
|
|
9
|
+
import { InputValueEvent } from "../../../../../../dist/packages/stencil/general-input/dist/types/index";
|
|
7
10
|
export declare class BonusElevateShop {
|
|
8
11
|
/**
|
|
9
12
|
* User Session
|
|
@@ -29,9 +32,25 @@ export declare class BonusElevateShop {
|
|
|
29
32
|
* translation via url
|
|
30
33
|
*/
|
|
31
34
|
translationUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
* The item account showed on per page
|
|
37
|
+
*/
|
|
38
|
+
limit: number;
|
|
39
|
+
/**
|
|
40
|
+
* The nav items count on pagination, default 5
|
|
41
|
+
*/
|
|
42
|
+
navItemAccount: number;
|
|
43
|
+
/**
|
|
44
|
+
* Customize page list options, default: 10,25,50
|
|
45
|
+
*/
|
|
46
|
+
pageLimitOptions: string;
|
|
32
47
|
locale: TLocale;
|
|
33
48
|
gifts: Gift[];
|
|
49
|
+
total: number;
|
|
50
|
+
offset: number;
|
|
51
|
+
shopListId: string;
|
|
34
52
|
isLoading: boolean;
|
|
53
|
+
pageLimitSelectOptions: any[];
|
|
35
54
|
redeemGiftButton: EventEmitter<Object>;
|
|
36
55
|
private bindedHandler;
|
|
37
56
|
updateGifts(): Promise<void>;
|
|
@@ -39,6 +58,10 @@ export declare class BonusElevateShop {
|
|
|
39
58
|
disconnectedCallback(): void;
|
|
40
59
|
redeemGift(id: string): Promise<void>;
|
|
41
60
|
loadGifts(renderer: any): any;
|
|
61
|
+
setLimit(): void;
|
|
62
|
+
onPageLimitChangedHandler(event: CustomEvent<InputValueEvent>): void;
|
|
63
|
+
reloadPageByTypeHandler(event: CustomEvent): void;
|
|
64
|
+
componentWillLoad(): void;
|
|
42
65
|
render(): any;
|
|
43
66
|
private handleMessage;
|
|
44
67
|
componentDidLoad(): Promise<void>;
|
|
@@ -23,6 +23,18 @@ export namespace Components {
|
|
|
23
23
|
* Language of the widget
|
|
24
24
|
*/
|
|
25
25
|
"language": string;
|
|
26
|
+
/**
|
|
27
|
+
* The item account showed on per page
|
|
28
|
+
*/
|
|
29
|
+
"limit": number;
|
|
30
|
+
/**
|
|
31
|
+
* The nav items count on pagination, default 5
|
|
32
|
+
*/
|
|
33
|
+
"navItemAccount": number;
|
|
34
|
+
/**
|
|
35
|
+
* Customize page list options, default: 10,25,50
|
|
36
|
+
*/
|
|
37
|
+
"pageLimitOptions": string;
|
|
26
38
|
/**
|
|
27
39
|
* User Session
|
|
28
40
|
*/
|
|
@@ -77,7 +89,19 @@ declare namespace LocalJSX {
|
|
|
77
89
|
* Language of the widget
|
|
78
90
|
*/
|
|
79
91
|
"language"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* The item account showed on per page
|
|
94
|
+
*/
|
|
95
|
+
"limit"?: number;
|
|
96
|
+
/**
|
|
97
|
+
* The nav items count on pagination, default 5
|
|
98
|
+
*/
|
|
99
|
+
"navItemAccount"?: number;
|
|
80
100
|
"onRedeemGiftButton"?: (event: BonusElevateShopCustomEvent<Object>) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Customize page list options, default: 10,25,50
|
|
103
|
+
*/
|
|
104
|
+
"pageLimitOptions"?: string;
|
|
81
105
|
/**
|
|
82
106
|
* User Session
|
|
83
107
|
*/
|