@everymatrix/casino-header-controller 1.87.26 → 1.87.27
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/components/CasinoHamburgerMenu-0z6hyw4y.js +817 -0
- package/components/CasinoHamburgerMenu-DuaZNcLz.js +818 -0
- package/components/CasinoHamburgerMenu-WB7i3_iz.cjs +1 -0
- package/components/CasinoHeaderController-C8DT2cVk.cjs +33 -0
- package/components/CasinoHeaderController-Db8giU-E.js +7774 -0
- package/components/CasinoHeaderController-Do8wUidR.js +7823 -0
- package/components/{CasinoSlider-Ds-P1ggH.js → CasinoSlider-BtMwjTr9.js} +97 -97
- package/components/CasinoSlider-DMc6CrV3.cjs +1 -0
- package/components/{CasinoSlider-BOtMd_ds.js → CasinoSlider-fH4HQvtL.js} +99 -99
- package/components/PlayerAccountBalanceModal-CEJcH9Cr.js +1386 -0
- package/components/PlayerAccountBalanceModal-X5IfhAU4.cjs +7 -0
- package/components/PlayerAccountBalanceModal-lcokbjFZ.js +1415 -0
- package/components/{PlayerDeposit-Dv-1Bd7h.js → PlayerDeposit-0WxB1mbL.js} +53 -53
- package/components/PlayerDeposit-Bzc_rwpv.cjs +1 -0
- package/components/{PlayerDeposit-BUzvurYm.js → PlayerDeposit-CVfrvkyO.js} +53 -53
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +7 -7
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-B6nNHmA4.js → app-globals-0f993ce5-Cgk0KVAu.js} +2 -2
- package/stencil/gamification-dropdown-Bror5k2q.cjs +1 -0
- package/stencil/{gamification-dropdown-B-fo-8oo.js → gamification-dropdown-Crg-YDth.js} +2 -2
- package/stencil/{gamification-dropdown-Binemw-N.js → gamification-dropdown-DgiKrpLV.js} +2 -2
- package/stencil/gamification-dropdown-f2984ee4-BMoEV6k7.js +179 -0
- package/stencil/{gamification-dropdown-92e6c856-BSjmk1S2.js → gamification-dropdown-f2984ee4-DHVTr8ZG.js} +77 -68
- package/stencil/gamification-dropdown-f2984ee4-Dn0wCW-j.cjs +1 -0
- package/stencil/{gamification-dropdown_4-D2rH2QOV.js → gamification-dropdown_4-91E9LYZ7.js} +11 -11
- package/stencil/{gamification-dropdown_4-Dk7EgyxD.cjs → gamification-dropdown_4-C3zsyE_m.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-DVsz3R30.js → gamification-dropdown_4-EZ437fKd.js} +11 -11
- package/stencil/{index-1ef3a64c-Bx1m17XN.js → index-1ef3a64c-DQzOv3qV.js} +1 -1
- package/stencil/{index-1ef3a64c-C47cYPkT.cjs → index-1ef3a64c-DTHZ2yCZ.cjs} +1 -1
- package/stencil/{index-1ef3a64c-Bry_KvsO.js → index-1ef3a64c-Df_g4Fi-.js} +1 -1
- package/stencil/{index-71b1bdfa-vrO1smeH.js → index-71b1bdfa-BcS2siXd.js} +4 -4
- package/stencil/{index-71b1bdfa-D1cyc3Pz.cjs → index-71b1bdfa-CzLMxSAA.cjs} +1 -1
- package/stencil/{index-71b1bdfa-DbR6QNgJ.js → index-71b1bdfa-DzRPLnAJ.js} +4 -4
- package/stencil/{locale-CIZHVMDe.js → locale-Dq9tsc1e.js} +2 -2
- package/stencil/{player-elevate-card-DrhQovfX.js → player-elevate-card-CfjXYnxk.js} +3 -3
- package/stencil/{player-elevate-card-NTRDT7TZ.cjs → player-elevate-card-DVTCzmU5.cjs} +1 -1
- package/stencil/{player-elevate-card-DN7UFFDg.js → player-elevate-card-WlZbXPxT.js} +3 -3
- package/stencil/{player-elevate-card-items-b4571def-DzRKWxZA.cjs → player-elevate-card-items-b4571def-BguVSqj-.cjs} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-BpCa2bU7.js → player-elevate-card-items-b4571def-D64puWBR.js} +2 -2
- package/stencil/{player-elevate-card-items-b4571def-KPQioyYe.js → player-elevate-card-items-b4571def-DwP_rzfI.js} +2 -2
- package/stencil/{player-elevate-pointcard-EAKvoz8l.js → player-elevate-pointcard-BbUTo49l.js} +3 -3
- package/stencil/{player-elevate-pointcard-BLgzFZcg.cjs → player-elevate-pointcard-D3Uhr8yw.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-LClvBVxv.js → player-elevate-pointcard-we5zexJh.js} +3 -3
- package/stencil/{player-rakeback-card-BSxU2PMK.cjs → player-rakeback-card-BntkMugV.cjs} +1 -1
- package/stencil/{player-rakeback-card-Bi_cwHs9.js → player-rakeback-card-D8_GaQ9C.js} +2 -2
- package/stencil/{player-rakeback-card-CJOm_Sgz.js → player-rakeback-card-DOsgRtwi.js} +2 -2
- package/stencil/{user-deposit-withdrawal-DTYylnXa.js → user-deposit-withdrawal-1m3oit8H.js} +321 -294
- package/stencil/user-deposit-withdrawal-BdsGsdPs.cjs +72 -0
- package/stencil/{user-deposit-withdrawal-BMkFnv_T.js → user-deposit-withdrawal-_xlSbJsV.js} +366 -338
- package/components/CasinoHamburgerMenu-CFma234b.js +0 -5441
- package/components/CasinoHamburgerMenu-fvf5EluO.cjs +0 -21
- package/components/CasinoHamburgerMenu-jm6p2zbt.js +0 -5403
- package/components/CasinoHeaderController-CVhEoX7T.js +0 -3179
- package/components/CasinoHeaderController-DREYRBYr.js +0 -3156
- package/components/CasinoHeaderController-eqjyu1T0.cjs +0 -13
- package/components/CasinoSlider-D4oZEnaE.cjs +0 -1
- package/components/PlayerAccountBalanceModal-D7fiFhUw.js +0 -1415
- package/components/PlayerAccountBalanceModal-ieK7z017.cjs +0 -7
- package/components/PlayerAccountBalanceModal-qtxu403d.js +0 -1386
- package/components/PlayerDeposit-Cw5oQd7g.cjs +0 -1
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +0 -1
- package/stencil/gamification-dropdown-92e6c856-1xDHN3iz.js +0 -133
- package/stencil/gamification-dropdown-92e6c856-BsizFWUL.cjs +0 -1
- package/stencil/gamification-dropdown-CZmTYMHK.cjs +0 -1
- package/stencil/user-deposit-withdrawal-BWwJVuYm.cjs +0 -72
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var p=e=>{try{l(t.next(e))}catch(r){o(r)}},c=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(p,c);l((t=t.apply(n,a)).next())});const g=require("./index-71b1bdfa-CzLMxSAA.cjs"),y=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var i=typeof document!="undefined"?document.currentScript:null,u=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("stencil/gamification-dropdown-Bror5k2q.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),g.promiseResolve(a)};u().then(n=>s(exports,null,function*(){return yield y.globalScripts$1(),g.bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{endpoint:[513],language:[513],session:[513],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],isOpen:[32],isLoading:[32],loyaltyPoints:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[1,"player-elevate-loyaltycard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{params:["onParamsChanged"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[1,"translation-url"],targetTranslations:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]],["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"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerLevelFlag:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard",[[1,"player-elevate-pointcard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],mbSource:[513,"mb-source"],playerName:[513,"player-name"],cardTitle:[513,"card-title"],buttonType:[513,"button-type"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32],elevateSPTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-rakeback-card",[[1,"player-rakeback-card",{endpoint:[513],theme:[513],session:[513],language:[513],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],show:[516],rakebackInfo:[32],isLoading:[32],coolingOffPeriod:[32],showTheWidget:[32]},[[8,"message","handleMessage"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}]]]],n)}));
|
|
@@ -14,8 +14,8 @@ var o = (n, a, l) => new Promise((s, i) => {
|
|
|
14
14
|
}, t = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(g, p);
|
|
15
15
|
t((l = l.apply(n, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as d, p as y } from "./index-71b1bdfa-
|
|
18
|
-
import {
|
|
17
|
+
import { b as d, p as y } from "./index-71b1bdfa-BcS2siXd.js";
|
|
18
|
+
import { a as c } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
19
|
var u = () => {
|
|
20
20
|
const n = import.meta.url, a = {};
|
|
21
21
|
return n !== "" && (a.resourcesUrl = new URL(".", n).href), y(a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as a, p as l } from "./index-71b1bdfa-
|
|
2
|
-
import {
|
|
1
|
+
import { b as a, p as l } from "./index-71b1bdfa-DzRPLnAJ.js";
|
|
2
|
+
import { a as t } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
3
3
|
var r = () => {
|
|
4
4
|
const e = import.meta.url, n = {};
|
|
5
5
|
return e !== "" && (n.resourcesUrl = new URL(".", e).href), l(n);
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var f = (e, t, i) => new Promise((n, s) => {
|
|
2
|
+
var o = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
a(i.next(r));
|
|
5
|
+
} catch (p) {
|
|
6
|
+
s(p);
|
|
7
|
+
}
|
|
8
|
+
}, l = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
a(i.throw(r));
|
|
11
|
+
} catch (p) {
|
|
12
|
+
s(p);
|
|
13
|
+
}
|
|
14
|
+
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(o, l);
|
|
15
|
+
a((i = i.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { r as w, h as c, g as m } from "./index-71b1bdfa-BcS2siXd.js";
|
|
18
|
+
const S = "en";
|
|
19
|
+
let d = {
|
|
20
|
+
en: {
|
|
21
|
+
gamificationNoPoints: "No points"
|
|
22
|
+
},
|
|
23
|
+
de: {
|
|
24
|
+
gamificationNoPoints: "No points"
|
|
25
|
+
},
|
|
26
|
+
ro: {
|
|
27
|
+
gamificationNoPoints: "No points"
|
|
28
|
+
},
|
|
29
|
+
fr: {
|
|
30
|
+
gamificationNoPoints: "No points"
|
|
31
|
+
},
|
|
32
|
+
ar: {
|
|
33
|
+
gamificationNoPoints: "No points"
|
|
34
|
+
},
|
|
35
|
+
hr: {
|
|
36
|
+
gamificationNoPoints: "No points"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const g = (e) => new Promise((t) => {
|
|
40
|
+
fetch(e).then((i) => i.json()).then((i) => {
|
|
41
|
+
Object.keys(i).forEach((n) => {
|
|
42
|
+
d[n] || (d[n] = {});
|
|
43
|
+
for (let s in i[n])
|
|
44
|
+
d[n][s] = i[n][s];
|
|
45
|
+
}), t(!0);
|
|
46
|
+
});
|
|
47
|
+
}), v = (e, t) => {
|
|
48
|
+
const i = t;
|
|
49
|
+
return d[i !== void 0 && i in d ? i : S][e];
|
|
50
|
+
}, h = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
51
|
+
function u(e, t) {
|
|
52
|
+
if (e) {
|
|
53
|
+
const i = document.createElement("style");
|
|
54
|
+
i.innerHTML = t, e.appendChild(i);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function y(e, t) {
|
|
58
|
+
if (!e || !t)
|
|
59
|
+
return;
|
|
60
|
+
const i = new URL(t);
|
|
61
|
+
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
62
|
+
const s = document.createElement("style");
|
|
63
|
+
s.innerHTML = n, e && e.appendChild(s);
|
|
64
|
+
}).catch((n) => {
|
|
65
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function C(e, t, i, n = !1) {
|
|
69
|
+
if (!window.emMessageBus)
|
|
70
|
+
return;
|
|
71
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
72
|
+
return i = b(e, t), i;
|
|
73
|
+
window[h] || (window[h] = {}), i = L(e, t);
|
|
74
|
+
const o = i.unsubscribe.bind(i), l = () => {
|
|
75
|
+
if (window[h][t]) {
|
|
76
|
+
const a = window[h][t];
|
|
77
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[h][t];
|
|
78
|
+
}
|
|
79
|
+
o();
|
|
80
|
+
};
|
|
81
|
+
return i.unsubscribe = l, i;
|
|
82
|
+
}
|
|
83
|
+
function b(e, t) {
|
|
84
|
+
const i = document.createElement("style");
|
|
85
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
86
|
+
e && (i.innerHTML = n, e.appendChild(i));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function L(e, t) {
|
|
90
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
91
|
+
var a;
|
|
92
|
+
if (!e)
|
|
93
|
+
return;
|
|
94
|
+
const n = e.getRootNode(), s = window[h];
|
|
95
|
+
let o = (a = s[t]) == null ? void 0 : a.sheet;
|
|
96
|
+
o ? s[t].refCount = s[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(i), s[t] = {
|
|
97
|
+
sheet: o,
|
|
98
|
+
refCount: 1
|
|
99
|
+
});
|
|
100
|
+
const l = n.adoptedStyleSheets || [];
|
|
101
|
+
l.includes(o) || (n.adoptedStyleSheets = [...l, o]);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const G = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}", D = G, P = class {
|
|
105
|
+
constructor(e) {
|
|
106
|
+
w(this, e), this.messageHandler = (t) => {
|
|
107
|
+
t.data && t.data.type === "UpdateGamificationXp" && (this.loyaltyPoints = t.data.points);
|
|
108
|
+
}, this.navigateToGamification = () => {
|
|
109
|
+
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
110
|
+
}, this.handleOutsideClick = (t) => {
|
|
111
|
+
t.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
|
|
112
|
+
}, this.handleDropdownClick = (t) => {
|
|
113
|
+
t.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
|
|
114
|
+
}, this.endpoint = void 0, this.language = "en", this.session = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.loyaltyPoints = void 0;
|
|
115
|
+
}
|
|
116
|
+
handleNewTranslations() {
|
|
117
|
+
this.isLoading = !0, g(this.translationUrl).then(() => {
|
|
118
|
+
this.isLoading = !1;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
handleClientStylingChange(e, t) {
|
|
122
|
+
e != t && u(this.stylingContainer, this.clientStyling);
|
|
123
|
+
}
|
|
124
|
+
handleClientStylingChangeURL(e, t) {
|
|
125
|
+
e != t && this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl);
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
return f(this, null, function* () {
|
|
129
|
+
if (this.translationUrl.length > 2 && (yield g(this.translationUrl)), this.endpoint && this.language)
|
|
130
|
+
return this.fetchPointsData();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
componentDidLoad() {
|
|
134
|
+
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ? C(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl)));
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe(), window.removeEventListener("message", this.messageHandler);
|
|
138
|
+
}
|
|
139
|
+
fetchPointsData() {
|
|
140
|
+
let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
|
|
141
|
+
e.searchParams.append("language", this.language);
|
|
142
|
+
const t = new Headers();
|
|
143
|
+
t.append("X-SessionId", this.session);
|
|
144
|
+
const i = {
|
|
145
|
+
method: "GET",
|
|
146
|
+
headers: t
|
|
147
|
+
};
|
|
148
|
+
return new Promise((n, s) => {
|
|
149
|
+
this.isLoading = !0, fetch(e.href, i).then((o) => o.json()).then((o) => {
|
|
150
|
+
var l, a;
|
|
151
|
+
this.loyaltyPoints = (a = (l = o == null ? void 0 : o.data) === null || l === void 0 ? void 0 : l.level) === null || a === void 0 ? void 0 : a.loyaltyPoints, n(!0);
|
|
152
|
+
}).catch((o) => {
|
|
153
|
+
console.error(o), s(o);
|
|
154
|
+
}).finally(() => {
|
|
155
|
+
this.isLoading = !1;
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
return this.isLoading ? null : c("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, c("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : v("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", c("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, c("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && c("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, c("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling, "mb-source": this.mbSource })));
|
|
161
|
+
}
|
|
162
|
+
get el() {
|
|
163
|
+
return m(this);
|
|
164
|
+
}
|
|
165
|
+
static get watchers() {
|
|
166
|
+
return {
|
|
167
|
+
translationUrl: ["handleNewTranslations"],
|
|
168
|
+
clientStyling: ["handleClientStylingChange"],
|
|
169
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
P.style = D;
|
|
174
|
+
export {
|
|
175
|
+
P as G,
|
|
176
|
+
u as a,
|
|
177
|
+
y as b,
|
|
178
|
+
C as s
|
|
179
|
+
};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
a(n.next(l));
|
|
5
|
-
} catch (d) {
|
|
6
|
-
o(d);
|
|
7
|
-
}
|
|
8
|
-
}, c = (l) => {
|
|
9
|
-
try {
|
|
10
|
-
a(n.throw(l));
|
|
11
|
-
} catch (d) {
|
|
12
|
-
o(d);
|
|
13
|
-
}
|
|
14
|
-
}, a = (l) => l.done ? e(l.value) : Promise.resolve(l.value).then(s, c);
|
|
15
|
-
a((n = n.apply(i, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { r as u, h as r, g as y } from "./index-71b1bdfa-vrO1smeH.js";
|
|
18
|
-
const w = "en";
|
|
1
|
+
import { r as g, h as r, g as u } from "./index-71b1bdfa-DzRPLnAJ.js";
|
|
2
|
+
const y = "en";
|
|
19
3
|
let h = {
|
|
20
4
|
en: {
|
|
21
5
|
gamificationNoPoints: "No points"
|
|
@@ -36,46 +20,73 @@ let h = {
|
|
|
36
20
|
gamificationNoPoints: "No points"
|
|
37
21
|
}
|
|
38
22
|
};
|
|
39
|
-
const
|
|
40
|
-
fetch(i).then((
|
|
41
|
-
Object.keys(
|
|
42
|
-
h[
|
|
43
|
-
for (let
|
|
44
|
-
h[
|
|
23
|
+
const d = (i) => new Promise((t) => {
|
|
24
|
+
fetch(i).then((e) => e.json()).then((e) => {
|
|
25
|
+
Object.keys(e).forEach((n) => {
|
|
26
|
+
h[n] || (h[n] = {});
|
|
27
|
+
for (let s in e[n])
|
|
28
|
+
h[n][s] = e[n][s];
|
|
45
29
|
}), t(!0);
|
|
46
30
|
});
|
|
47
|
-
}),
|
|
48
|
-
const
|
|
49
|
-
return h[
|
|
50
|
-
};
|
|
51
|
-
function
|
|
31
|
+
}), w = (i, t) => {
|
|
32
|
+
const e = t;
|
|
33
|
+
return h[e !== void 0 && e in h ? e : y][i];
|
|
34
|
+
}, c = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
35
|
+
function p(i, t) {
|
|
52
36
|
if (i) {
|
|
53
|
-
const
|
|
54
|
-
|
|
37
|
+
const e = document.createElement("style");
|
|
38
|
+
e.innerHTML = t, i.appendChild(e);
|
|
55
39
|
}
|
|
56
40
|
}
|
|
57
|
-
function
|
|
41
|
+
function f(i, t) {
|
|
58
42
|
if (!i || !t)
|
|
59
43
|
return;
|
|
60
|
-
const
|
|
61
|
-
fetch(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}).catch((
|
|
65
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
44
|
+
const e = new URL(t);
|
|
45
|
+
fetch(e.href).then((n) => n.text()).then((n) => {
|
|
46
|
+
const s = document.createElement("style");
|
|
47
|
+
s.innerHTML = n, i && i.appendChild(s);
|
|
48
|
+
}).catch((n) => {
|
|
49
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
66
50
|
});
|
|
67
51
|
}
|
|
68
|
-
function
|
|
69
|
-
if (window.emMessageBus)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
52
|
+
function m(i, t, e, n = !1) {
|
|
53
|
+
if (!window.emMessageBus)
|
|
54
|
+
return;
|
|
55
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
56
|
+
return e = S(i, t), e;
|
|
57
|
+
window[c] || (window[c] = {}), e = v(i, t);
|
|
58
|
+
const o = e.unsubscribe.bind(e), a = () => {
|
|
59
|
+
if (window[c][t]) {
|
|
60
|
+
const l = window[c][t];
|
|
61
|
+
l.refCount > 1 ? l.refCount = l.refCount - 1 : delete window[c][t];
|
|
62
|
+
}
|
|
63
|
+
o();
|
|
64
|
+
};
|
|
65
|
+
return e.unsubscribe = a, e;
|
|
66
|
+
}
|
|
67
|
+
function S(i, t) {
|
|
68
|
+
const e = document.createElement("style");
|
|
69
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
70
|
+
i && (e.innerHTML = n, i.appendChild(e));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function v(i, t) {
|
|
74
|
+
return window.emMessageBus.subscribe(t, (e) => {
|
|
75
|
+
if (!i)
|
|
76
|
+
return;
|
|
77
|
+
const n = i.getRootNode(), s = window[c];
|
|
78
|
+
let o = s[t]?.sheet;
|
|
79
|
+
o ? s[t].refCount = s[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(e), s[t] = {
|
|
80
|
+
sheet: o,
|
|
81
|
+
refCount: 1
|
|
73
82
|
});
|
|
74
|
-
|
|
83
|
+
const a = n.adoptedStyleSheets || [];
|
|
84
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
85
|
+
});
|
|
75
86
|
}
|
|
76
|
-
const C = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",
|
|
87
|
+
const C = ":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}", b = C, L = class {
|
|
77
88
|
constructor(i) {
|
|
78
|
-
|
|
89
|
+
g(this, i), this.messageHandler = (t) => {
|
|
79
90
|
t.data && t.data.type === "UpdateGamificationXp" && (this.loyaltyPoints = t.data.points);
|
|
80
91
|
}, this.navigateToGamification = () => {
|
|
81
92
|
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
@@ -86,24 +97,22 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
86
97
|
}, this.endpoint = void 0, this.language = "en", this.session = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.loyaltyPoints = void 0;
|
|
87
98
|
}
|
|
88
99
|
handleNewTranslations() {
|
|
89
|
-
this.isLoading = !0,
|
|
100
|
+
this.isLoading = !0, d(this.translationUrl).then(() => {
|
|
90
101
|
this.isLoading = !1;
|
|
91
102
|
});
|
|
92
103
|
}
|
|
93
104
|
handleClientStylingChange(i, t) {
|
|
94
|
-
i != t &&
|
|
105
|
+
i != t && p(this.stylingContainer, this.clientStyling);
|
|
95
106
|
}
|
|
96
107
|
handleClientStylingChangeURL(i, t) {
|
|
97
|
-
i != t && this.clientStylingUrl &&
|
|
108
|
+
i != t && this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl);
|
|
98
109
|
}
|
|
99
|
-
componentWillLoad() {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return this.fetchPointsData();
|
|
103
|
-
});
|
|
110
|
+
async componentWillLoad() {
|
|
111
|
+
if (this.translationUrl.length > 2 && await d(this.translationUrl), this.endpoint && this.language)
|
|
112
|
+
return this.fetchPointsData();
|
|
104
113
|
}
|
|
105
114
|
componentDidLoad() {
|
|
106
|
-
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ?
|
|
115
|
+
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ? m(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && p(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl)));
|
|
107
116
|
}
|
|
108
117
|
disconnectedCallback() {
|
|
109
118
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), window.removeEventListener("message", this.messageHandler);
|
|
@@ -113,26 +122,26 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
113
122
|
i.searchParams.append("language", this.language);
|
|
114
123
|
const t = new Headers();
|
|
115
124
|
t.append("X-SessionId", this.session);
|
|
116
|
-
const
|
|
125
|
+
const e = {
|
|
117
126
|
method: "GET",
|
|
118
127
|
headers: t
|
|
119
128
|
};
|
|
120
|
-
return new Promise((
|
|
121
|
-
this.isLoading = !0, fetch(i.href,
|
|
122
|
-
var
|
|
123
|
-
this.loyaltyPoints = (
|
|
124
|
-
}).catch((
|
|
125
|
-
console.error(
|
|
129
|
+
return new Promise((n, s) => {
|
|
130
|
+
this.isLoading = !0, fetch(i.href, e).then((o) => o.json()).then((o) => {
|
|
131
|
+
var a, l;
|
|
132
|
+
this.loyaltyPoints = (l = (a = o?.data) === null || a === void 0 ? void 0 : a.level) === null || l === void 0 ? void 0 : l.loyaltyPoints, n(!0);
|
|
133
|
+
}).catch((o) => {
|
|
134
|
+
console.error(o), s(o);
|
|
126
135
|
}).finally(() => {
|
|
127
136
|
this.isLoading = !1;
|
|
128
137
|
});
|
|
129
138
|
});
|
|
130
139
|
}
|
|
131
140
|
render() {
|
|
132
|
-
return this.isLoading ? null : r("div", { ref: (i) => this.stylingContainer = i, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (i) => this.handleDropdownClick(i), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) :
|
|
141
|
+
return this.isLoading ? null : r("div", { ref: (i) => this.stylingContainer = i, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (i) => this.handleDropdownClick(i), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : w("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", r("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, r("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)" })))), this.isOpen && r("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, r("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling, "mb-source": this.mbSource })));
|
|
133
142
|
}
|
|
134
143
|
get el() {
|
|
135
|
-
return
|
|
144
|
+
return u(this);
|
|
136
145
|
}
|
|
137
146
|
static get watchers() {
|
|
138
147
|
return {
|
|
@@ -142,10 +151,10 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
142
151
|
};
|
|
143
152
|
}
|
|
144
153
|
};
|
|
145
|
-
L.style =
|
|
154
|
+
L.style = b;
|
|
146
155
|
export {
|
|
147
156
|
L as G,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
p as a,
|
|
158
|
+
f as b,
|
|
159
|
+
m as s
|
|
151
160
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(e,t,i)=>new Promise((n,s)=>{var o=c=>{try{a(i.next(c))}catch(p){s(p)}},l=c=>{try{a(i.throw(c))}catch(p){s(p)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,l);a((i=i.apply(e,t)).next())});const r=require("./index-71b1bdfa-CzLMxSAA.cjs"),S="en";let d={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const y=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(n=>{d[n]||(d[n]={});for(let s in i[n])d[n][s]=i[n][s]}),t(!0)})}),v=(e,t)=>{const i=t;return d[i!==void 0&&i in d?i:S][e]},h="__WIDGET_GLOBAL_STYLE_CACHE__";function f(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function g(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then(n=>n.text()).then(n=>{const s=document.createElement("style");s.innerHTML=n,e&&e.appendChild(s)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function w(e,t,i,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return i=C(e,t),i;window[h]||(window[h]={}),i=b(e,t);const o=i.unsubscribe.bind(i),l=()=>{if(window[h][t]){const a=window[h][t];a.refCount>1?a.refCount=a.refCount-1:delete window[h][t]}o()};return i.unsubscribe=l,i}function C(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(i.innerHTML=n,e.appendChild(i))})}function b(e,t){return window.emMessageBus.subscribe(t,i=>{var a;if(!e)return;const n=e.getRootNode(),s=window[h];let o=(a=s[t])==null?void 0:a.sheet;o?s[t].refCount=s[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(i),s[t]={sheet:o,refCount:1});const l=n.adoptedStyleSheets||[];l.includes(o)||(n.adoptedStyleSheets=[...l,o])})}const L=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",D=L,m=class{constructor(e){r.registerInstance(this,e),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,y(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(e,t){e!=t&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return u(this,null,function*(){if(this.translationUrl.length>2&&(yield y(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?w(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const i={method:"GET",headers:t};return new Promise((n,s)=>{this.isLoading=!0,fetch(e.href,i).then(o=>o.json()).then(o=>{var l,a;this.loyaltyPoints=(a=(l=o==null?void 0:o.data)===null||l===void 0?void 0:l.level)===null||a===void 0?void 0:a.loyaltyPoints,n(!0)}).catch(o=>{console.error(o),s(o)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:r.h("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},r.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:e=>this.handleDropdownClick(e),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",r.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},r.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},r.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&r.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},r.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling,"mb-source":this.mbSource})))}get el(){return r.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};m.style=D;exports.GamificationDropdown=m;exports.setClientStyling=f;exports.setClientStylingURL=g;exports.setStreamStyling=w;
|
|
@@ -14,11 +14,11 @@ var E = (e, t, a) => new Promise((n, l) => {
|
|
|
14
14
|
}, o = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, s);
|
|
15
15
|
o((a = a.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { s as N, a as x, b
|
|
18
|
-
import { G as fe } from "./gamification-dropdown-
|
|
19
|
-
import { r as
|
|
20
|
-
import {
|
|
21
|
-
import { P as q, a as P, b as F, L as j, r as p, t as h, g as S } from "./player-elevate-card-items-b4571def-
|
|
17
|
+
import { s as N, a as x, b } from "./gamification-dropdown-f2984ee4-BMoEV6k7.js";
|
|
18
|
+
import { G as fe } from "./gamification-dropdown-f2984ee4-BMoEV6k7.js";
|
|
19
|
+
import { r as m, h as i, g as T, c as U, a as I, F as W } from "./index-71b1bdfa-BcS2siXd.js";
|
|
20
|
+
import { a as A, T as z } from "./locale-Dq9tsc1e.js";
|
|
21
|
+
import { P as q, a as P, b as F, L as j, r as p, t as h, g as S } from "./player-elevate-card-items-b4571def-D64puWBR.js";
|
|
22
22
|
const G = (e, t) => new Promise((a) => {
|
|
23
23
|
fetch(e).then((n) => n.json()).then((n) => {
|
|
24
24
|
Object.keys(n).forEach((l) => {
|
|
@@ -36,10 +36,10 @@ const G = (e, t) => new Promise((a) => {
|
|
|
36
36
|
});
|
|
37
37
|
}), H = ":host{display:block}", X = H, Y = class {
|
|
38
38
|
constructor(e) {
|
|
39
|
-
|
|
39
|
+
m(this, e), this.stylingAppends = !1, this.clientStyling = "", this.clientStylingUrl = "", this.mbSource = void 0, this.translationUrl = "", this.targetTranslations = void 0;
|
|
40
40
|
}
|
|
41
41
|
componentDidLoad() {
|
|
42
|
-
this.el && (window.emMessageBus != null ? N(this.el, `${this.mbSource}.Style
|
|
42
|
+
this.el && (window.emMessageBus != null ? N(this.el, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && x(this.el, this.clientStyling), this.clientStylingUrl && b(this.el, this.clientStylingUrl), this.stylingAppends = !0));
|
|
43
43
|
}
|
|
44
44
|
disconnectedCallback() {
|
|
45
45
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
@@ -48,10 +48,10 @@ const G = (e, t) => new Promise((a) => {
|
|
|
48
48
|
e != t && x(this.el, this.clientStyling);
|
|
49
49
|
}
|
|
50
50
|
handleClientStylingUrlChange(e, t) {
|
|
51
|
-
e != t && this.clientStylingUrl &&
|
|
51
|
+
e != t && this.clientStylingUrl && b(this.el, this.clientStylingUrl);
|
|
52
52
|
}
|
|
53
53
|
componentDidRender() {
|
|
54
|
-
this.stylingAppends || (this.clientStyling && x(this.el, this.clientStyling), this.clientStylingUrl &&
|
|
54
|
+
this.stylingAppends || (this.clientStyling && x(this.el, this.clientStyling), this.clientStylingUrl && b(this.el, this.clientStylingUrl), this.stylingAppends = !0);
|
|
55
55
|
}
|
|
56
56
|
componentWillLoad() {
|
|
57
57
|
return E(this, null, function* () {
|
|
@@ -318,7 +318,7 @@ const le = `:host {
|
|
|
318
318
|
color: var(--emw--color-red, #9e595f);
|
|
319
319
|
}`, re = le, ie = class {
|
|
320
320
|
constructor(e) {
|
|
321
|
-
|
|
321
|
+
m(this, e), this.playerElevateLeveLoaded = U(this, "playerElevateLeveLoaded"), this.params = void 0, this.playerElevateLevel = void 0, this.pointExpireString = void 0;
|
|
322
322
|
}
|
|
323
323
|
handleWindowResizs() {
|
|
324
324
|
this.initLevelProgressbar();
|
|
@@ -429,7 +429,7 @@ const le = `:host {
|
|
|
429
429
|
ie.style = re;
|
|
430
430
|
const oe = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:0px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}", se = oe, de = class {
|
|
431
431
|
constructor(e) {
|
|
432
|
-
|
|
432
|
+
m(this, e), this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.playerName = void 0, this.dateFormat = "yyyy-MM-dd", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0;
|
|
433
433
|
}
|
|
434
434
|
onSessionOrEndpointChange() {
|
|
435
435
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
package/stencil/{gamification-dropdown_4-Dk7EgyxD.cjs → gamification-dropdown_4-C3zsyE_m.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var L=(e,t,a)=>new Promise((n,l)=>{var i=c=>{try{o(a.next(c))}catch(h){l(h)}},d=c=>{try{o(a.throw(c))}catch(h){l(h)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,d);o((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./gamification-dropdown-
|
|
1
|
+
"use strict";var L=(e,t,a)=>new Promise((n,l)=>{var i=c=>{try{o(a.next(c))}catch(h){l(h)}},d=c=>{try{o(a.throw(c))}catch(h){l(h)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,d);o((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./gamification-dropdown-f2984ee4-Dn0wCW-j.cjs"),r=require("./index-71b1bdfa-CzLMxSAA.cjs"),x=require("./locale-m6IHPAzW.cjs"),s=require("./player-elevate-card-items-b4571def-BguVSqj-.cjs"),O=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]||{},Object.keys(n[l]).forEach(i=>{if(!t.en[i])return;const d=t.en[i];typeof n[l][i]=="object"?(t[l][i]=t[l][i]||Object.assign({},d),Object.keys(n[l][i]).forEach(o=>{t[l][i][o]=n[l][i][o]})):t[l][i]=n[l][i]||Object.assign({},d)})}),a(!0)}).catch(n=>{console.error("Failed to load translations:",n),a(!1)})}),M=":host{display:block}",R=M,I=class{constructor(e){r.registerInstance(this,e),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(window.emMessageBus!=null?p.setStreamStyling(this.el,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&p.setClientStyling(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0)}componentWillLoad(){return L(this,null,function*(){const e=[];if(this.translationUrl){const t=O(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return r.h("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},r.h("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return r.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};I.style=R;function w(e){s.requiredArgs(1,arguments);var t=s.toDate(e);return t.setHours(0,0,0,0),t}var $=864e5;function U(e,t){s.requiredArgs(2,arguments);var a=w(e),n=w(t),l=a.getTime()-s.getTimezoneOffsetInMilliseconds(a),i=n.getTime()-s.getTimezoneOffsetInMilliseconds(n);return Math.round((l-i)/$)}var N=6e4,q=36e5;function S(e,t){return s.requiredArgs(2,arguments),s.toDate(e).getTime()-s.toDate(t).getTime()}var E={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W="trunc";function P(e){return e?E[e]:E[W]}function z(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/q;return P(a==null?void 0:a.roundingMethod)(n)}function F(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/N;return P(a==null?void 0:a.roundingMethod)(n)}function j(e,t){s.requiredArgs(2,arguments);var a=s.toDate(e),n=s.toDate(t);return a.getTime()<n.getTime()}function G(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,i=a.getBBox().width,d=t>1?1:t,o=d*i-n<0?0:d*i-n,c=e.querySelector("#current_level"),h=e.querySelector("#filter_current_level"),g=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${o} 28`),c.setAttribute("width",`${o}`),g.setAttribute("cx",`${o<l?l:o}`),h.setAttribute("x",`${o-8}`);const y=e.querySelector("#lock"),u=e.querySelector("#filter_heart_ball"),f=e.querySelector("#filter_ball"),T=e.querySelector("#filter_heart"),A=e.querySelector("#filter_lock"),b=e.querySelector("#paint0_linear_ball"),m=e.querySelector("#paint1_linear_lock"),D=e.querySelector("#lock_box"),_=e.querySelector("#heart_box"),B=10,v=i-B;y.setAttribute("cx",`${v}`),m.setAttribute("x1",`${v}`),m.setAttribute("x2",`${v}`),b.setAttribute("x1",`${v-6}`),b.setAttribute("x2",`${v-6+11.2}`),A.setAttribute("x",`${v-6}`),T.setAttribute("x",`${v-6-2}`),f.setAttribute("x",`${v-6-2-2}`),u.setAttribute("x",`${v-6-2-2-4}`),D.setAttribute("x",`${v-6}`),_.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const H=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 360px;
|
|
4
4
|
height: 230px;
|
|
@@ -189,4 +189,4 @@
|
|
|
189
189
|
text-align: right;
|
|
190
190
|
font-weight: bold;
|
|
191
191
|
color: var(--emw--color-red, #9e595f);
|
|
192
|
-
}`,X=H,C=class{constructor(e){r.registerInstance(this,e),this.playerElevateLeveLoaded=r.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>
|
|
192
|
+
}`,X=H,C=class{constructor(e){r.registerInstance(this,e),this.playerElevateLeveLoaded=r.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>j(new Date(c.expireTime),new Date(h.expireTime))?-1:1);const n=e.aboutToExpire[0],l=U(new Date(n.expireTime),new Date);let i=0,d=0,o=l===0?`${t}Day`:t;return l<=0&&(i=z(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=i>1?`${t}Hours`:`${t}Hour`,i<=0&&(d=F(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=d>1?`${t}Minutes`:`${t}Minute`)),a=x.translateWithParams(o,{expirationPoints:n.points,expireDay:Math.max(l,i,d),lang:this.params.language}),a}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{var l,i,d,o,c;if(!n.success){console.error("Exception when fetch user elevateinfo, ",n.errorCode,n.errorMessage),a(!0);return}window.postMessage({type:"UpdateGamificationXp",points:(i=(l=n.data)===null||l===void 0?void 0:l.level)===null||i===void 0?void 0:i.loyaltyPoints},window.location.href);let h=n.data;this.playerElevateLevel=h.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=((d=h.spendableWallet)===null||d===void 0?void 0:d.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const g=(o=n.data.spendableWallet)===null||o===void 0?void 0:o.total,y=(c=n.data.loyaltyWallet)===null||c===void 0?void 0:c.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:g,loyaltyWalletTotal:y});let u=this.calcuatePointsToBeExpired(g,"coinsToBeExpired"),f=this.calcuatePointsToBeExpired(y,"pointsToBeExpired");(u||f)&&this.playerElevateLeveLoaded.emit({pointExpireString:u,xpExpireString:f}),t(this.playerElevateLevel)}).catch(n=>{console.log("error ",n),a(!0)}))}setLoyaltyProgress(e){G(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout(()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)},80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then(t=>{if(console.log("elevate-init",t),this.initLevelProgressbar(),!this.levels)return;this.levels.sort((l,i)=>l.firstEntryPoints>i.firstEntryPoints?1:-1);const a=this.playerElevateLevel.loyaltyPoints;let n=0;this.levels.forEach((l,i)=>{a>l.firstEntryPoints&&(n=i)}),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})})}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return r.getElement(this)}static get watchers(){return{params:["onParamsChanged"]}}};C.style=X;const Y=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:0px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}",J=Y,k=class{constructor(e){r.registerInstance(this,e),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.xpExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return!((e=this.playerElevateLevel)===null||e===void 0)&&e.nextLevel?(t=this.playerElevateLevel)===null||t===void 0?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=(e=this.playerElevateLevel)===null||e===void 0?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const a=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return x.translateWithParams("tipsForNextLevel",{pointsToReach:a,levelName:t.name,lang:this.language})}return""}render(){const e=r.getAssetPath("../static/card-ground.svg"),t=r.getAssetPath("../static/card-ground-over.svg");return r.h("div",{key:"9f673b8dccc848d11f0836c15f1f5da5e242e3b3",class:`ElevateCardWrapper ${this.theme}`},r.h("div",{key:"419c71a612c3cdfebaece1e90345c6324c68348e",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},r.h("general-styling-wrapper",{key:"04c1098bf16e683f30d211dfb9ebc0b319076258",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:x.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),r.h("player-elevate-card-data",{key:"a9c57ef6c5c3381c7e9bf2f041a190f3de3a0423",params:this.paramProxy}),r.h("div",{key:"402ceddce75abb2ee6b59db730418efc006e5c60",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},r.h("div",{key:"844cba8ae40b9dd55129f7b0d52a208ea72e72cf",class:"Content Row"},this.playerElevateLevel&&r.h(r.Fragment,{key:"d365971e66cbdc81d4b1758c045a76ad50a68729"},r.h("div",{key:"2e017a95d80098565d17807c6f8dae51a6b89090",class:"PlayerImg"},r.h(s.PlayerAvatar,{key:"5aaf4b8e2b8ea67fa0fed1a07dde9caf2551a3bd",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),r.h("div",{key:"6e332314f4c4a233dd353130266a4d0368b0de45",class:`LevelInfo ${this.playerElevateLevel.name}`},r.h("div",{key:"06311b5920ac4126536760049bf3664d92cc247f",class:"CardCell ElevateLevel"},r.h("span",{key:"4538afdef55cd520e2d213e6a97d209234deabe5",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),r.h("div",{key:"cb2764c587a2fe1719b2ff6e045866ee032d5a66",class:"PointsRange"},r.h(s.PlayerPoints,{key:"aa4336101e41f6d1dd281858711a56275526a33a",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),r.h(s.PlayerPoints,{key:"c377b14c0aec0c17e9fa818d105780f6c3089723",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),r.h(s.PlayerLoyaltyProcess,{key:"1e987ae286c44ff2a9a53012ad3ad901e4207f28"}),r.h("div",{key:"a09ecaa84862baa4f732f8ce5c2d90e61128fa16",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&r.h("div",{key:"fd62be9b41dc07b200e7d26cc33f917f0b955ba0",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&r.h(s.LoyaltyLevelExpireDay,{key:"aca096829b93012ee76f9839ada2b2e96b58d3db",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};k.style=J;exports.gamification_dropdown=p.GamificationDropdown;exports.general_styling_wrapper=I;exports.player_elevate_card_data=C;exports.player_elevate_loyaltycard=k;
|