@everymatrix/player-elevate-card 1.99.53 → 1.99.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/general-styling-wrapper_7.cjs.entry.js +41 -73
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-elevate-card.cjs.js +1 -1
- package/dist/collection/components/player-elevate-optcard/player-elevate-optcard.js +96 -65
- package/dist/collection/utils/locale.utils.js +1 -1
- package/dist/esm/general-styling-wrapper_7.entry.js +41 -73
- package/dist/esm/loader.js +1 -1
- package/dist/esm/player-elevate-card.js +1 -1
- package/dist/player-elevate-card/general-styling-wrapper_7.entry.js +1 -1
- package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
- package/dist/types/components/player-elevate-optcard/player-elevate-optcard.d.ts +14 -12
- package/dist/types/components.d.ts +30 -2
- package/package.json +1 -1
|
@@ -344,7 +344,7 @@ const TRANSLATIONS = {
|
|
|
344
344
|
optOut: 'OPT OUT',
|
|
345
345
|
loyaltyDescription: 'By joining the Loyalty Program, you agree to the following:',
|
|
346
346
|
termsAndConditions: 'Terms & Conditions',
|
|
347
|
-
loyaltyProgramDescription: '
|
|
347
|
+
loyaltyProgramDescription: 'By joining the Loyalty Program, you agree to the following: Participation is free and available to eligible registered players. By opting in, you agree to participate in the Loyalty Program and earn Loyalty Points based on eligible gameplay and activities.'
|
|
348
348
|
},
|
|
349
349
|
'zh-hk': {
|
|
350
350
|
redeem: '兑奖',
|
|
@@ -668,27 +668,6 @@ const translateWithParams = (key, params) => {
|
|
|
668
668
|
});
|
|
669
669
|
return templateString;
|
|
670
670
|
};
|
|
671
|
-
const getTranslations = (url) => {
|
|
672
|
-
return new Promise((resolve) => {
|
|
673
|
-
fetch(url)
|
|
674
|
-
.then((res) => res.json())
|
|
675
|
-
.then((data) => {
|
|
676
|
-
Object.keys(data).forEach((item) => {
|
|
677
|
-
if (!TRANSLATIONS[item]) {
|
|
678
|
-
TRANSLATIONS[item] = {};
|
|
679
|
-
}
|
|
680
|
-
for (let key in data[item]) {
|
|
681
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
resolve(true);
|
|
685
|
-
})
|
|
686
|
-
.catch((err) => {
|
|
687
|
-
console.error('Failed to load translations:', err);
|
|
688
|
-
resolve(false);
|
|
689
|
-
});
|
|
690
|
-
});
|
|
691
|
-
};
|
|
692
671
|
|
|
693
672
|
function _typeof(o) {
|
|
694
673
|
"@babel/helpers - typeof";
|
|
@@ -3563,78 +3542,67 @@ const PlayerElevateOptcard = class {
|
|
|
3563
3542
|
this.endpoint = undefined;
|
|
3564
3543
|
this.session = undefined;
|
|
3565
3544
|
this.language = 'en';
|
|
3545
|
+
this.clientStyling = '';
|
|
3546
|
+
this.clientStylingUrl = '';
|
|
3547
|
+
this.mbSource = undefined;
|
|
3566
3548
|
this.translationUrl = '';
|
|
3567
|
-
this.enableOptIn = false;
|
|
3568
3549
|
this.optIn = undefined;
|
|
3569
|
-
this.
|
|
3570
|
-
this.
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3550
|
+
this.complianceUrl = '';
|
|
3551
|
+
this.description = '';
|
|
3552
|
+
}
|
|
3553
|
+
onSessionOrEndpointChange() {
|
|
3554
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
3555
|
+
this.loadTerms();
|
|
3575
3556
|
}
|
|
3576
3557
|
handleMessage(event) {
|
|
3577
|
-
var _a
|
|
3578
|
-
if (
|
|
3579
|
-
return;
|
|
3580
|
-
}
|
|
3581
|
-
if (event.origin !== window.location.origin) {
|
|
3558
|
+
var _a;
|
|
3559
|
+
if (event.origin !== window.location.origin)
|
|
3582
3560
|
return;
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
3586
|
-
this.optIn = true;
|
|
3587
|
-
this.optInLoaded = true;
|
|
3588
|
-
break;
|
|
3589
|
-
case 'BEE_OPT_IN_TERMS_LOADED':
|
|
3590
|
-
this.terms = event.data.terms;
|
|
3591
|
-
break;
|
|
3592
|
-
}
|
|
3593
|
-
switch ((_b = event.data) === null || _b === void 0 ? void 0 : _b.type) {
|
|
3594
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
3595
|
-
this.optIn = true;
|
|
3596
|
-
this.optInLoaded = true;
|
|
3597
|
-
break;
|
|
3561
|
+
if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.type) === 'userUpdateOptLoyaltySuccess') {
|
|
3562
|
+
this.optIn = true;
|
|
3598
3563
|
}
|
|
3599
3564
|
}
|
|
3600
3565
|
playerElevateLeveLoadedHandler(event) {
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
}
|
|
3604
|
-
if (typeof event.detail.optIn === 'boolean') {
|
|
3566
|
+
var _a;
|
|
3567
|
+
if (typeof ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.optIn) === 'boolean') {
|
|
3605
3568
|
this.optIn = event.detail.optIn;
|
|
3606
|
-
this.optInLoaded = true;
|
|
3607
3569
|
}
|
|
3608
3570
|
}
|
|
3609
|
-
|
|
3610
|
-
window.postMessage({ type: 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
3611
|
-
}
|
|
3612
|
-
// use when click OPTOut button
|
|
3613
|
-
onOptOutClick() {
|
|
3614
|
-
window.postMessage({ type: 'BEE_OPT_OUT_CLICKED' }, window.location.origin);
|
|
3571
|
+
onButtonClick() {
|
|
3572
|
+
window.postMessage({ type: this.optIn ? 'BEE_OPT_OUT_CLICKED' : 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
3615
3573
|
}
|
|
3616
|
-
async
|
|
3617
|
-
|
|
3618
|
-
|
|
3574
|
+
async loadTerms() {
|
|
3575
|
+
var _a, _b;
|
|
3576
|
+
if (!this.endpoint)
|
|
3577
|
+
return;
|
|
3578
|
+
try {
|
|
3579
|
+
const response = await fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`);
|
|
3580
|
+
const result = await response.json();
|
|
3581
|
+
if (result.success) {
|
|
3582
|
+
this.complianceUrl = ((_a = result.data) === null || _a === void 0 ? void 0 : _a.complianceUrl) || '';
|
|
3583
|
+
this.description = ((_b = result.data) === null || _b === void 0 ? void 0 : _b.complianceDesc) || '';
|
|
3584
|
+
}
|
|
3619
3585
|
}
|
|
3586
|
+
catch (error) {
|
|
3587
|
+
console.error('Failed to load opt-in terms', error);
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
componentWillLoad() {
|
|
3620
3591
|
this.paramProxy = {
|
|
3621
3592
|
endpoint: this.endpoint,
|
|
3622
3593
|
session: this.session,
|
|
3623
3594
|
language: this.language,
|
|
3624
3595
|
};
|
|
3596
|
+
this.loadTerms();
|
|
3625
3597
|
}
|
|
3626
3598
|
render() {
|
|
3627
|
-
return (index.h("div", { key: '
|
|
3628
|
-
OptInButton: true,
|
|
3629
|
-
OptOutButton: this.optIn === true,
|
|
3630
|
-
}, onClick: () => {
|
|
3631
|
-
this.optIn
|
|
3632
|
-
? this.onOptOutClick()
|
|
3633
|
-
: this.onOptInClick();
|
|
3634
|
-
} }, this.optIn
|
|
3635
|
-
? translate('optOut', this.language)
|
|
3636
|
-
: translate('optIn', this.language))), index.h("div", { key: 'dbe1cbfa411ece32fb5d3af477ad275636b9744e', class: "Description" }, translate('loyaltyProgramDescription', this.language)), this.terms.complianceUrl && (index.h("a", { key: 'd21a8b7e6ad9c98089110f076127eaf129d7dc44', href: this.terms.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), index.h("svg", { key: '691272b269cac356511ad26f97df7bd1eaddc4b8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: 'afede17d19a24cfd8654c46e88705d58040a95b5', d: "M14 3h7v7" }), index.h("path", { key: 'd81414346d306a9ed383dfda8c53e37ab60a780a', d: "M10 14L21 3" }), index.h("path", { key: '4f3c8cd7eacb5d2c067dd9563d03d0fa5643fc2e', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
3599
|
+
return (index.h("div", { key: '2a61bab32150215270af23f4a95b7ccf823cc6c9', class: "OptCard" }, index.h("general-styling-wrapper", { key: '5a82e13f9d58066adf518ff94f44ce64306bdfa1', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: 'db9465ee05877105128bf4640b60fdf0a001ef0b', params: this.paramProxy }), this.optIn !== undefined && (index.h("button", { key: '7683432936cca8181089024146e5d274c5a3ac92', class: { OptInButton: true, OptOutButton: this.optIn }, onClick: () => this.onButtonClick() }, translate(this.optIn ? 'optOut' : 'optIn', this.language))), this.description && index.h("div", { key: '1aa7343e9f43dd1a770820671cc994cf4a5a6cb3', class: "Description" }, this.description), this.complianceUrl && (index.h("a", { key: 'fa510c583facb9513ae135ce704c1720904196fd', href: this.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), index.h("svg", { key: '6414feecba959dc7fbfc57b55f8c953258b0a998', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { key: 'ec2716dfa2f465945193ba80d455df8c2ba7f6ca', d: "M14 3h7v7" }), index.h("path", { key: 'e9a1b86d1e9f22109303e3dc9915158f5786f411', d: "M10 14L21 3" }), index.h("path", { key: '5f34ff03f7a790ca4fc72811efa076b2c520c6fe', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
3637
3600
|
}
|
|
3601
|
+
static get watchers() { return {
|
|
3602
|
+
"session": ["onSessionOrEndpointChange"],
|
|
3603
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
3604
|
+
"language": ["onSessionOrEndpointChange"]
|
|
3605
|
+
}; }
|
|
3638
3606
|
};
|
|
3639
3607
|
PlayerElevateOptcard.style = PlayerElevateOptcardStyle0;
|
|
3640
3608
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["general-styling-wrapper_7.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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"]}],[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"]}],[1,"player-elevate-optcard",{"endpoint":[513],"session":[513],"language":[513],"
|
|
11
|
+
return index.bootstrapLazy([["general-styling-wrapper_7.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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"]}],[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"]}],[1,"player-elevate-optcard",{"endpoint":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[513,"translation-url"],"optIn":[32],"complianceUrl":[32],"description":[32]},[[8,"message","handleMessage"],[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[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"]}],[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"]}],[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,{"mbSource":["handleMbSourceChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["general-styling-wrapper_7.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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"]}],[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"]}],[1,"player-elevate-optcard",{"endpoint":[513],"session":[513],"language":[513],"
|
|
22
|
+
return index.bootstrapLazy([["general-styling-wrapper_7.cjs",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"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"]}],[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"]}],[1,"player-elevate-optcard",{"endpoint":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[513,"translation-url"],"optIn":[32],"complianceUrl":[32],"description":[32]},[[8,"message","handleMessage"],[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[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"]}],[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"]}],[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,{"mbSource":["handleMbSourceChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,81 +1,65 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { translate, TRANSLATIONS } from "../../utils/locale.utils";
|
|
3
3
|
export class PlayerElevateOptcard {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.endpoint = undefined;
|
|
6
6
|
this.session = undefined;
|
|
7
7
|
this.language = 'en';
|
|
8
|
+
this.clientStyling = '';
|
|
9
|
+
this.clientStylingUrl = '';
|
|
10
|
+
this.mbSource = undefined;
|
|
8
11
|
this.translationUrl = '';
|
|
9
|
-
this.enableOptIn = false;
|
|
10
12
|
this.optIn = undefined;
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
this.complianceUrl = '';
|
|
14
|
+
this.description = '';
|
|
15
|
+
}
|
|
16
|
+
onSessionOrEndpointChange() {
|
|
17
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
18
|
+
this.loadTerms();
|
|
17
19
|
}
|
|
18
20
|
handleMessage(event) {
|
|
19
|
-
var _a
|
|
20
|
-
if (
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (event.origin !== window.location.origin) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (event.origin !== window.location.origin)
|
|
24
23
|
return;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
28
|
-
this.optIn = true;
|
|
29
|
-
this.optInLoaded = true;
|
|
30
|
-
break;
|
|
31
|
-
case 'BEE_OPT_IN_TERMS_LOADED':
|
|
32
|
-
this.terms = event.data.terms;
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
switch ((_b = event.data) === null || _b === void 0 ? void 0 : _b.type) {
|
|
36
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
37
|
-
this.optIn = true;
|
|
38
|
-
this.optInLoaded = true;
|
|
39
|
-
break;
|
|
24
|
+
if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.type) === 'userUpdateOptLoyaltySuccess') {
|
|
25
|
+
this.optIn = true;
|
|
40
26
|
}
|
|
41
27
|
}
|
|
42
28
|
playerElevateLeveLoadedHandler(event) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
if (typeof event.detail.optIn === 'boolean') {
|
|
29
|
+
var _a;
|
|
30
|
+
if (typeof ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.optIn) === 'boolean') {
|
|
47
31
|
this.optIn = event.detail.optIn;
|
|
48
|
-
this.optInLoaded = true;
|
|
49
32
|
}
|
|
50
33
|
}
|
|
51
|
-
|
|
52
|
-
window.postMessage({ type: 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
53
|
-
}
|
|
54
|
-
// use when click OPTOut button
|
|
55
|
-
onOptOutClick() {
|
|
56
|
-
window.postMessage({ type: 'BEE_OPT_OUT_CLICKED' }, window.location.origin);
|
|
34
|
+
onButtonClick() {
|
|
35
|
+
window.postMessage({ type: this.optIn ? 'BEE_OPT_OUT_CLICKED' : 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
57
36
|
}
|
|
58
|
-
async
|
|
59
|
-
|
|
60
|
-
|
|
37
|
+
async loadTerms() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
if (!this.endpoint)
|
|
40
|
+
return;
|
|
41
|
+
try {
|
|
42
|
+
const response = await fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`);
|
|
43
|
+
const result = await response.json();
|
|
44
|
+
if (result.success) {
|
|
45
|
+
this.complianceUrl = ((_a = result.data) === null || _a === void 0 ? void 0 : _a.complianceUrl) || '';
|
|
46
|
+
this.description = ((_b = result.data) === null || _b === void 0 ? void 0 : _b.complianceDesc) || '';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
console.error('Failed to load opt-in terms', error);
|
|
61
51
|
}
|
|
52
|
+
}
|
|
53
|
+
componentWillLoad() {
|
|
62
54
|
this.paramProxy = {
|
|
63
55
|
endpoint: this.endpoint,
|
|
64
56
|
session: this.session,
|
|
65
57
|
language: this.language,
|
|
66
58
|
};
|
|
59
|
+
this.loadTerms();
|
|
67
60
|
}
|
|
68
61
|
render() {
|
|
69
|
-
return (h("div", { key: '
|
|
70
|
-
OptInButton: true,
|
|
71
|
-
OptOutButton: this.optIn === true,
|
|
72
|
-
}, onClick: () => {
|
|
73
|
-
this.optIn
|
|
74
|
-
? this.onOptOutClick()
|
|
75
|
-
: this.onOptInClick();
|
|
76
|
-
} }, this.optIn
|
|
77
|
-
? translate('optOut', this.language)
|
|
78
|
-
: translate('optIn', this.language))), h("div", { key: 'dbe1cbfa411ece32fb5d3af477ad275636b9744e', class: "Description" }, translate('loyaltyProgramDescription', this.language)), this.terms.complianceUrl && (h("a", { key: 'd21a8b7e6ad9c98089110f076127eaf129d7dc44', href: this.terms.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), h("svg", { key: '691272b269cac356511ad26f97df7bd1eaddc4b8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: 'afede17d19a24cfd8654c46e88705d58040a95b5', d: "M14 3h7v7" }), h("path", { key: 'd81414346d306a9ed383dfda8c53e37ab60a780a', d: "M10 14L21 3" }), h("path", { key: '4f3c8cd7eacb5d2c067dd9563d03d0fa5643fc2e', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
62
|
+
return (h("div", { key: '2a61bab32150215270af23f4a95b7ccf823cc6c9', class: "OptCard" }, h("general-styling-wrapper", { key: '5a82e13f9d58066adf518ff94f44ce64306bdfa1', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), h("player-elevate-card-data", { key: 'db9465ee05877105128bf4640b60fdf0a001ef0b', params: this.paramProxy }), this.optIn !== undefined && (h("button", { key: '7683432936cca8181089024146e5d274c5a3ac92', class: { OptInButton: true, OptOutButton: this.optIn }, onClick: () => this.onButtonClick() }, translate(this.optIn ? 'optOut' : 'optIn', this.language))), this.description && h("div", { key: '1aa7343e9f43dd1a770820671cc994cf4a5a6cb3', class: "Description" }, this.description), this.complianceUrl && (h("a", { key: 'fa510c583facb9513ae135ce704c1720904196fd', href: this.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), h("svg", { key: '6414feecba959dc7fbfc57b55f8c953258b0a998', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: 'ec2716dfa2f465945193ba80d455df8c2ba7f6ca', d: "M14 3h7v7" }), h("path", { key: 'e9a1b86d1e9f22109303e3dc9915158f5786f411', d: "M10 14L21 3" }), h("path", { key: '5f34ff03f7a790ca4fc72811efa076b2c520c6fe', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
79
63
|
}
|
|
80
64
|
static get is() { return "player-elevate-optcard"; }
|
|
81
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -143,7 +127,7 @@ export class PlayerElevateOptcard {
|
|
|
143
127
|
"reflect": true,
|
|
144
128
|
"defaultValue": "'en'"
|
|
145
129
|
},
|
|
146
|
-
"
|
|
130
|
+
"clientStyling": {
|
|
147
131
|
"type": "string",
|
|
148
132
|
"mutable": false,
|
|
149
133
|
"complexType": {
|
|
@@ -155,39 +139,86 @@ export class PlayerElevateOptcard {
|
|
|
155
139
|
"optional": false,
|
|
156
140
|
"docs": {
|
|
157
141
|
"tags": [],
|
|
158
|
-
"text": ""
|
|
142
|
+
"text": "Client custom styling via inline styles"
|
|
159
143
|
},
|
|
160
|
-
"attribute": "
|
|
144
|
+
"attribute": "client-styling",
|
|
161
145
|
"reflect": true,
|
|
162
146
|
"defaultValue": "''"
|
|
163
147
|
},
|
|
164
|
-
"
|
|
165
|
-
"type": "
|
|
148
|
+
"clientStylingUrl": {
|
|
149
|
+
"type": "string",
|
|
166
150
|
"mutable": false,
|
|
167
151
|
"complexType": {
|
|
168
|
-
"original": "
|
|
169
|
-
"resolved": "
|
|
152
|
+
"original": "string",
|
|
153
|
+
"resolved": "string",
|
|
170
154
|
"references": {}
|
|
171
155
|
},
|
|
172
156
|
"required": false,
|
|
173
157
|
"optional": false,
|
|
174
158
|
"docs": {
|
|
175
159
|
"tags": [],
|
|
176
|
-
"text": ""
|
|
160
|
+
"text": "Client custom styling via url"
|
|
161
|
+
},
|
|
162
|
+
"attribute": "client-styling-url",
|
|
163
|
+
"reflect": true,
|
|
164
|
+
"defaultValue": "''"
|
|
165
|
+
},
|
|
166
|
+
"mbSource": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Client custom styling via streamStyling"
|
|
179
|
+
},
|
|
180
|
+
"attribute": "mb-source",
|
|
181
|
+
"reflect": true
|
|
182
|
+
},
|
|
183
|
+
"translationUrl": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"mutable": false,
|
|
186
|
+
"complexType": {
|
|
187
|
+
"original": "string",
|
|
188
|
+
"resolved": "string",
|
|
189
|
+
"references": {}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": "Translation via url"
|
|
177
196
|
},
|
|
178
|
-
"attribute": "
|
|
179
|
-
"reflect":
|
|
180
|
-
"defaultValue": "
|
|
197
|
+
"attribute": "translation-url",
|
|
198
|
+
"reflect": true,
|
|
199
|
+
"defaultValue": "''"
|
|
181
200
|
}
|
|
182
201
|
};
|
|
183
202
|
}
|
|
184
203
|
static get states() {
|
|
185
204
|
return {
|
|
186
205
|
"optIn": {},
|
|
187
|
-
"
|
|
188
|
-
"
|
|
206
|
+
"complianceUrl": {},
|
|
207
|
+
"description": {}
|
|
189
208
|
};
|
|
190
209
|
}
|
|
210
|
+
static get watchers() {
|
|
211
|
+
return [{
|
|
212
|
+
"propName": "session",
|
|
213
|
+
"methodName": "onSessionOrEndpointChange"
|
|
214
|
+
}, {
|
|
215
|
+
"propName": "endpoint",
|
|
216
|
+
"methodName": "onSessionOrEndpointChange"
|
|
217
|
+
}, {
|
|
218
|
+
"propName": "language",
|
|
219
|
+
"methodName": "onSessionOrEndpointChange"
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
191
222
|
static get listeners() {
|
|
192
223
|
return [{
|
|
193
224
|
"name": "message",
|
|
@@ -30,7 +30,7 @@ export const TRANSLATIONS = {
|
|
|
30
30
|
optOut: 'OPT OUT',
|
|
31
31
|
loyaltyDescription: 'By joining the Loyalty Program, you agree to the following:',
|
|
32
32
|
termsAndConditions: 'Terms & Conditions',
|
|
33
|
-
loyaltyProgramDescription: '
|
|
33
|
+
loyaltyProgramDescription: 'By joining the Loyalty Program, you agree to the following: Participation is free and available to eligible registered players. By opting in, you agree to participate in the Loyalty Program and earn Loyalty Points based on eligible gameplay and activities.'
|
|
34
34
|
},
|
|
35
35
|
'zh-hk': {
|
|
36
36
|
redeem: '兑奖',
|
|
@@ -340,7 +340,7 @@ const TRANSLATIONS = {
|
|
|
340
340
|
optOut: 'OPT OUT',
|
|
341
341
|
loyaltyDescription: 'By joining the Loyalty Program, you agree to the following:',
|
|
342
342
|
termsAndConditions: 'Terms & Conditions',
|
|
343
|
-
loyaltyProgramDescription: '
|
|
343
|
+
loyaltyProgramDescription: 'By joining the Loyalty Program, you agree to the following: Participation is free and available to eligible registered players. By opting in, you agree to participate in the Loyalty Program and earn Loyalty Points based on eligible gameplay and activities.'
|
|
344
344
|
},
|
|
345
345
|
'zh-hk': {
|
|
346
346
|
redeem: '兑奖',
|
|
@@ -664,27 +664,6 @@ const translateWithParams = (key, params) => {
|
|
|
664
664
|
});
|
|
665
665
|
return templateString;
|
|
666
666
|
};
|
|
667
|
-
const getTranslations = (url) => {
|
|
668
|
-
return new Promise((resolve) => {
|
|
669
|
-
fetch(url)
|
|
670
|
-
.then((res) => res.json())
|
|
671
|
-
.then((data) => {
|
|
672
|
-
Object.keys(data).forEach((item) => {
|
|
673
|
-
if (!TRANSLATIONS[item]) {
|
|
674
|
-
TRANSLATIONS[item] = {};
|
|
675
|
-
}
|
|
676
|
-
for (let key in data[item]) {
|
|
677
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
resolve(true);
|
|
681
|
-
})
|
|
682
|
-
.catch((err) => {
|
|
683
|
-
console.error('Failed to load translations:', err);
|
|
684
|
-
resolve(false);
|
|
685
|
-
});
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
667
|
|
|
689
668
|
function _typeof(o) {
|
|
690
669
|
"@babel/helpers - typeof";
|
|
@@ -3559,78 +3538,67 @@ const PlayerElevateOptcard = class {
|
|
|
3559
3538
|
this.endpoint = undefined;
|
|
3560
3539
|
this.session = undefined;
|
|
3561
3540
|
this.language = 'en';
|
|
3541
|
+
this.clientStyling = '';
|
|
3542
|
+
this.clientStylingUrl = '';
|
|
3543
|
+
this.mbSource = undefined;
|
|
3562
3544
|
this.translationUrl = '';
|
|
3563
|
-
this.enableOptIn = false;
|
|
3564
3545
|
this.optIn = undefined;
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3546
|
+
this.complianceUrl = '';
|
|
3547
|
+
this.description = '';
|
|
3548
|
+
}
|
|
3549
|
+
onSessionOrEndpointChange() {
|
|
3550
|
+
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
3551
|
+
this.loadTerms();
|
|
3571
3552
|
}
|
|
3572
3553
|
handleMessage(event) {
|
|
3573
|
-
var _a
|
|
3574
|
-
if (
|
|
3575
|
-
return;
|
|
3576
|
-
}
|
|
3577
|
-
if (event.origin !== window.location.origin) {
|
|
3554
|
+
var _a;
|
|
3555
|
+
if (event.origin !== window.location.origin)
|
|
3578
3556
|
return;
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
3582
|
-
this.optIn = true;
|
|
3583
|
-
this.optInLoaded = true;
|
|
3584
|
-
break;
|
|
3585
|
-
case 'BEE_OPT_IN_TERMS_LOADED':
|
|
3586
|
-
this.terms = event.data.terms;
|
|
3587
|
-
break;
|
|
3588
|
-
}
|
|
3589
|
-
switch ((_b = event.data) === null || _b === void 0 ? void 0 : _b.type) {
|
|
3590
|
-
case 'userUpdateOptLoyaltySuccess':
|
|
3591
|
-
this.optIn = true;
|
|
3592
|
-
this.optInLoaded = true;
|
|
3593
|
-
break;
|
|
3557
|
+
if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.type) === 'userUpdateOptLoyaltySuccess') {
|
|
3558
|
+
this.optIn = true;
|
|
3594
3559
|
}
|
|
3595
3560
|
}
|
|
3596
3561
|
playerElevateLeveLoadedHandler(event) {
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
}
|
|
3600
|
-
if (typeof event.detail.optIn === 'boolean') {
|
|
3562
|
+
var _a;
|
|
3563
|
+
if (typeof ((_a = event.detail) === null || _a === void 0 ? void 0 : _a.optIn) === 'boolean') {
|
|
3601
3564
|
this.optIn = event.detail.optIn;
|
|
3602
|
-
this.optInLoaded = true;
|
|
3603
3565
|
}
|
|
3604
3566
|
}
|
|
3605
|
-
|
|
3606
|
-
window.postMessage({ type: 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
3607
|
-
}
|
|
3608
|
-
// use when click OPTOut button
|
|
3609
|
-
onOptOutClick() {
|
|
3610
|
-
window.postMessage({ type: 'BEE_OPT_OUT_CLICKED' }, window.location.origin);
|
|
3567
|
+
onButtonClick() {
|
|
3568
|
+
window.postMessage({ type: this.optIn ? 'BEE_OPT_OUT_CLICKED' : 'BEE_OPT_IN_CLICKED' }, window.location.origin);
|
|
3611
3569
|
}
|
|
3612
|
-
async
|
|
3613
|
-
|
|
3614
|
-
|
|
3570
|
+
async loadTerms() {
|
|
3571
|
+
var _a, _b;
|
|
3572
|
+
if (!this.endpoint)
|
|
3573
|
+
return;
|
|
3574
|
+
try {
|
|
3575
|
+
const response = await fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`);
|
|
3576
|
+
const result = await response.json();
|
|
3577
|
+
if (result.success) {
|
|
3578
|
+
this.complianceUrl = ((_a = result.data) === null || _a === void 0 ? void 0 : _a.complianceUrl) || '';
|
|
3579
|
+
this.description = ((_b = result.data) === null || _b === void 0 ? void 0 : _b.complianceDesc) || '';
|
|
3580
|
+
}
|
|
3615
3581
|
}
|
|
3582
|
+
catch (error) {
|
|
3583
|
+
console.error('Failed to load opt-in terms', error);
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
componentWillLoad() {
|
|
3616
3587
|
this.paramProxy = {
|
|
3617
3588
|
endpoint: this.endpoint,
|
|
3618
3589
|
session: this.session,
|
|
3619
3590
|
language: this.language,
|
|
3620
3591
|
};
|
|
3592
|
+
this.loadTerms();
|
|
3621
3593
|
}
|
|
3622
3594
|
render() {
|
|
3623
|
-
return (h("div", { key: '
|
|
3624
|
-
OptInButton: true,
|
|
3625
|
-
OptOutButton: this.optIn === true,
|
|
3626
|
-
}, onClick: () => {
|
|
3627
|
-
this.optIn
|
|
3628
|
-
? this.onOptOutClick()
|
|
3629
|
-
: this.onOptInClick();
|
|
3630
|
-
} }, this.optIn
|
|
3631
|
-
? translate('optOut', this.language)
|
|
3632
|
-
: translate('optIn', this.language))), h("div", { key: 'dbe1cbfa411ece32fb5d3af477ad275636b9744e', class: "Description" }, translate('loyaltyProgramDescription', this.language)), this.terms.complianceUrl && (h("a", { key: 'd21a8b7e6ad9c98089110f076127eaf129d7dc44', href: this.terms.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), h("svg", { key: '691272b269cac356511ad26f97df7bd1eaddc4b8', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: 'afede17d19a24cfd8654c46e88705d58040a95b5', d: "M14 3h7v7" }), h("path", { key: 'd81414346d306a9ed383dfda8c53e37ab60a780a', d: "M10 14L21 3" }), h("path", { key: '4f3c8cd7eacb5d2c067dd9563d03d0fa5643fc2e', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
3595
|
+
return (h("div", { key: '2a61bab32150215270af23f4a95b7ccf823cc6c9', class: "OptCard" }, h("general-styling-wrapper", { key: '5a82e13f9d58066adf518ff94f44ce64306bdfa1', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), h("player-elevate-card-data", { key: 'db9465ee05877105128bf4640b60fdf0a001ef0b', params: this.paramProxy }), this.optIn !== undefined && (h("button", { key: '7683432936cca8181089024146e5d274c5a3ac92', class: { OptInButton: true, OptOutButton: this.optIn }, onClick: () => this.onButtonClick() }, translate(this.optIn ? 'optOut' : 'optIn', this.language))), this.description && h("div", { key: '1aa7343e9f43dd1a770820671cc994cf4a5a6cb3', class: "Description" }, this.description), this.complianceUrl && (h("a", { key: 'fa510c583facb9513ae135ce704c1720904196fd', href: this.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, translate('termsAndConditions', this.language), h("svg", { key: '6414feecba959dc7fbfc57b55f8c953258b0a998', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: 'ec2716dfa2f465945193ba80d455df8c2ba7f6ca', d: "M14 3h7v7" }), h("path", { key: 'e9a1b86d1e9f22109303e3dc9915158f5786f411', d: "M10 14L21 3" }), h("path", { key: '5f34ff03f7a790ca4fc72811efa076b2c520c6fe', d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))))));
|
|
3633
3596
|
}
|
|
3597
|
+
static get watchers() { return {
|
|
3598
|
+
"session": ["onSessionOrEndpointChange"],
|
|
3599
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
3600
|
+
"language": ["onSessionOrEndpointChange"]
|
|
3601
|
+
}; }
|
|
3634
3602
|
};
|
|
3635
3603
|
PlayerElevateOptcard.style = PlayerElevateOptcardStyle0;
|
|
3636
3604
|
|