@everymatrix/player-elevate-card 1.99.49 → 1.99.51
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_6.cjs.entry.js → general-styling-wrapper_7.cjs.entry.js} +209 -23
- package/dist/cjs/{index-81135df8.js → index-9d42a12b.js} +27 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/player-elevate-card.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +4 -4
- package/dist/collection/components/player-elevate-optcard/player-elevate-optcard.css +83 -0
- package/dist/collection/components/player-elevate-optcard/player-elevate-optcard.js +206 -0
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +2 -2
- package/dist/collection/utils/locale.utils.js +96 -16
- package/dist/esm/{general-styling-wrapper_6.entry.js → general-styling-wrapper_7.entry.js} +209 -24
- package/dist/esm/{index-5e93d535.js → index-6f9b9c55.js} +27 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/player-elevate-card.js +3 -3
- package/dist/player-elevate-card/general-styling-wrapper_7.entry.js +1 -0
- package/dist/player-elevate-card/index-6f9b9c55.js +2 -0
- package/dist/player-elevate-card/player-elevate-card.esm.js +1 -1
- package/dist/types/components/player-elevate-optcard/player-elevate-optcard.d.ts +23 -0
- package/dist/types/components.d.ts +23 -0
- package/dist/types/models/player-elevate.d.ts +1 -0
- package/package.json +1 -1
- package/dist/player-elevate-card/general-styling-wrapper_6.entry.js +0 -1
- package/dist/player-elevate-card/index-5e93d535.js +0 -2
package/dist/cjs/{general-styling-wrapper_6.cjs.entry.js → general-styling-wrapper_7.cjs.entry.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9d42a12b.js');
|
|
6
6
|
|
|
7
7
|
const mergeTranslations = (url, target) => {
|
|
8
8
|
return new Promise((resolve) => {
|
|
@@ -339,7 +339,12 @@ const TRANSLATIONS = {
|
|
|
339
339
|
termAndConditions: 'Term & Conditions',
|
|
340
340
|
rakebackTitle: 'Available Rakeback',
|
|
341
341
|
loading: 'Loading',
|
|
342
|
-
minutesCanClaim: 'Next Claim is available in ${minutes} minutes'
|
|
342
|
+
minutesCanClaim: 'Next Claim is available in ${minutes} minutes',
|
|
343
|
+
optIn: 'OPT IN',
|
|
344
|
+
optOut: 'OPT OUT',
|
|
345
|
+
loyaltyDescription: 'By joining the Loyalty Program, you agree to the following:',
|
|
346
|
+
termsAndConditions: 'Terms & Conditions',
|
|
347
|
+
loyaltyProgramDescription: ' By joining the Loyalty Program, you agree th the following: Particioation is free and available to eligible registerd players.By opting in,you agree to particioate in the Loyalty Program and earn Loyalty Points based on eligible gameplay and activities.'
|
|
343
348
|
},
|
|
344
349
|
'zh-hk': {
|
|
345
350
|
redeem: '兑奖',
|
|
@@ -360,7 +365,12 @@ const TRANSLATIONS = {
|
|
|
360
365
|
termAndConditions: 'Term & Conditions',
|
|
361
366
|
rakebackTitle: '可用的返利',
|
|
362
367
|
loading: '加載中',
|
|
363
|
-
minutesCanClaim: '下次可領取時間為${minutes}分鐘後'
|
|
368
|
+
minutesCanClaim: '下次可領取時間為${minutes}分鐘後',
|
|
369
|
+
optIn: '立即加入',
|
|
370
|
+
optOut: '退出',
|
|
371
|
+
loyaltyDescription: '加入忠誠計劃即表示您同意以下內容:',
|
|
372
|
+
termsAndConditions: '條款及細則',
|
|
373
|
+
loyaltyProgramDescription: '加入忠誠計劃即表示您同意以下內容。參與免費並向符合資格的已註冊玩家開放。加入後,您將根據符合資格的遊戲及活動獲得忠誠積分。'
|
|
364
374
|
},
|
|
365
375
|
de: {
|
|
366
376
|
redeem: 'Redeem',
|
|
@@ -381,7 +391,12 @@ const TRANSLATIONS = {
|
|
|
381
391
|
termAndConditions: 'Term & Conditions',
|
|
382
392
|
rakebackTitle: 'Verfügbarer Rakeback',
|
|
383
393
|
loading: 'Laden',
|
|
384
|
-
minutesCanClaim: 'Nächster Anspruch ist in ${minutes} Minuten verfügbar'
|
|
394
|
+
minutesCanClaim: 'Nächster Anspruch ist in ${minutes} Minuten verfügbar',
|
|
395
|
+
optIn: 'TEILNEHMEN',
|
|
396
|
+
optOut: 'ABMELDEN',
|
|
397
|
+
loyaltyDescription: 'Mit Ihrer Teilnahme am Treueprogramm stimmen Sie Folgendem zu:',
|
|
398
|
+
termsAndConditions: 'Geschäftsbedingungen',
|
|
399
|
+
loyaltyProgramDescription: 'Die Teilnahme ist kostenlos und steht berechtigten registrierten Spielern zur Verfügung. Mit Ihrer Anmeldung stimmen Sie der Teilnahme am Treueprogramm und dem Sammeln von Treuepunkten durch qualifizierte Spiele und Aktivitäten zu.',
|
|
385
400
|
},
|
|
386
401
|
it: {
|
|
387
402
|
redeem: 'Redeem',
|
|
@@ -402,7 +417,12 @@ const TRANSLATIONS = {
|
|
|
402
417
|
termAndConditions: 'Term & Conditions',
|
|
403
418
|
rakebackTitle: 'Rakeback Disponibile',
|
|
404
419
|
loading: 'Caricamento',
|
|
405
|
-
minutesCanClaim: 'La prossima richiesta sarà disponibile tra ${minutes} minuti'
|
|
420
|
+
minutesCanClaim: 'La prossima richiesta sarà disponibile tra ${minutes} minuti',
|
|
421
|
+
optIn: 'ADERISCI',
|
|
422
|
+
optOut: 'DISATTIVA',
|
|
423
|
+
loyaltyDescription: 'Iscrivendoti al Programma Fedeltà accetti quanto segue:',
|
|
424
|
+
termsAndConditions: 'Termini e Condizioni',
|
|
425
|
+
loyaltyProgramDescription: 'La partecipazione è gratuita ed è disponibile per i giocatori registrati idonei. Aderendo, accetti di partecipare al Programma Fedeltà e di guadagnare Punti Fedeltà in base al gioco e alle attività idonee.',
|
|
406
426
|
},
|
|
407
427
|
fr: {
|
|
408
428
|
redeem: 'Redeem',
|
|
@@ -423,7 +443,12 @@ const TRANSLATIONS = {
|
|
|
423
443
|
termAndConditions: 'Term & Conditions',
|
|
424
444
|
rakebackTitle: 'Rakeback Disponible',
|
|
425
445
|
loading: 'Chargement',
|
|
426
|
-
minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes'
|
|
446
|
+
minutesCanClaim: 'La prochaine réclamation sera disponible dans ${minutes} minutes',
|
|
447
|
+
optIn: 'ADHÉRER',
|
|
448
|
+
optOut: 'SE RETIRER',
|
|
449
|
+
loyaltyDescription: 'En rejoignant le programme de fidélité, vous acceptez ce qui suit :',
|
|
450
|
+
termsAndConditions: 'Conditions générales',
|
|
451
|
+
loyaltyProgramDescription: 'La participation est gratuite et réservée aux joueurs inscrits éligibles. En adhérant, vous acceptez de participer au programme de fidélité et de gagner des points de fidélité grâce aux jeux et activités éligibles.',
|
|
427
452
|
},
|
|
428
453
|
es: {
|
|
429
454
|
claim: "Reclamar",
|
|
@@ -450,7 +475,12 @@ const TRANSLATIONS = {
|
|
|
450
475
|
xp: "XP",
|
|
451
476
|
sp: "Monedas",
|
|
452
477
|
termAndConditions: "Términos y condiciones",
|
|
453
|
-
loading: "Cargando"
|
|
478
|
+
loading: "Cargando",
|
|
479
|
+
optIn: 'UNIRSE',
|
|
480
|
+
optOut: 'SALIR',
|
|
481
|
+
loyaltyDescription: 'Al unirte al Programa de Fidelidad, aceptas lo siguiente:',
|
|
482
|
+
termsAndConditions: 'Términos y condiciones',
|
|
483
|
+
loyaltyProgramDescription: 'La participación es gratuita y está disponible para jugadores registrados elegibles. Al participar, aceptas formar parte del Programa de Fidelidad y obtener puntos de fidelidad mediante actividades y juegos elegibles.',
|
|
454
484
|
},
|
|
455
485
|
tr: {
|
|
456
486
|
redeem: 'Kullan',
|
|
@@ -477,7 +507,12 @@ const TRANSLATIONS = {
|
|
|
477
507
|
termAndConditions: 'Şartlar ve Koşullar',
|
|
478
508
|
rakebackTitle: 'Mevcut Rakeback',
|
|
479
509
|
loading: 'Yükleniyor',
|
|
480
|
-
minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir'
|
|
510
|
+
minutesCanClaim: 'Sonraki talep ${minutes} dakika içinde kullanılabilir',
|
|
511
|
+
optIn: 'KATIL',
|
|
512
|
+
optOut: 'AYRIL',
|
|
513
|
+
loyaltyDescription: 'Sadakat Programına katılarak aşağıdakileri kabul etmiş olursunuz:',
|
|
514
|
+
termsAndConditions: 'Şartlar ve Koşullar',
|
|
515
|
+
loyaltyProgramDescription: 'Katılım ücretsizdir ve uygun kayıtlı oyunculara açıktır. Programa katılarak, Sadakat Programına katılmayı ve uygun oyunlar ile etkinliklerden Sadakat Puanları kazanmayı kabul etmiş olursunuz.',
|
|
481
516
|
},
|
|
482
517
|
az: {
|
|
483
518
|
claim: "iddia",
|
|
@@ -504,21 +539,36 @@ const TRANSLATIONS = {
|
|
|
504
539
|
xp: "XP",
|
|
505
540
|
sp: "sikkələr",
|
|
506
541
|
termAndConditions: "Qaydalar və Şərtlər",
|
|
507
|
-
loading: "Yüklənir"
|
|
542
|
+
loading: "Yüklənir",
|
|
543
|
+
optIn: 'QOŞUL',
|
|
544
|
+
optOut: 'ÇIX',
|
|
545
|
+
loyaltyDescription: 'Sadiqlik Proqramına qoşulmaqla aşağıdakıları qəbul etmiş olursunuz:',
|
|
546
|
+
termsAndConditions: 'Şərtlər və Qaydalar',
|
|
547
|
+
loyaltyProgramDescription: 'İştirak ödənişsizdir və uyğun qeydiyyatdan keçmiş oyunçular üçün nəzərdə tutulub. Qoşulmaqla siz Sadiqlik Proqramında iştirak etməyə və uyğun oyunlar və fəaliyyətlər üzrə Sadiqlik xalları qazanmağa razılıq verirsiniz.',
|
|
508
548
|
},
|
|
509
549
|
ru: {
|
|
510
550
|
redeem: 'Redeem',
|
|
511
551
|
claim: 'Требовать',
|
|
512
552
|
rakebackTitle: 'Доступный Рейкбек',
|
|
513
553
|
loading: 'Загрузка',
|
|
514
|
-
minutesCanClaim: 'Следующее требование будет доступно через ${minutes} минут'
|
|
554
|
+
minutesCanClaim: 'Следующее требование будет доступно через ${minutes} минут',
|
|
555
|
+
optIn: 'ПРИСОЕДИНИТЬСЯ',
|
|
556
|
+
optOut: 'ВЫЙТИ',
|
|
557
|
+
loyaltyDescription: 'Присоединяясь к Программе лояльности, вы соглашаетесь со следующим:',
|
|
558
|
+
termsAndConditions: 'Условия использования',
|
|
559
|
+
loyaltyProgramDescription: 'Участие бесплатно и доступно зарегистрированным игрокам, соответствующим требованиям. Присоединяясь, вы соглашаетесь участвовать в Программе лояльности и получать бонусные баллы за соответствующие игры и активности.',
|
|
515
560
|
},
|
|
516
561
|
ro: {
|
|
517
562
|
redeem: 'Redeem',
|
|
518
563
|
claim: 'Revendicare',
|
|
519
564
|
rakebackTitle: 'Rakeback Disponibil',
|
|
520
565
|
loading: 'Se încarcă',
|
|
521
|
-
minutesCanClaim: 'Următoarea revendicare va fi disponibilă în ${minutes} minute'
|
|
566
|
+
minutesCanClaim: 'Următoarea revendicare va fi disponibilă în ${minutes} minute',
|
|
567
|
+
optIn: 'ÎNSCRIE-TE',
|
|
568
|
+
optOut: 'RENUNȚĂ',
|
|
569
|
+
loyaltyDescription: 'Prin înscrierea în Programul de Loialitate, sunteți de acord cu următoarele:',
|
|
570
|
+
termsAndConditions: 'Termeni și condiții',
|
|
571
|
+
loyaltyProgramDescription: 'Participarea este gratuită și disponibilă pentru jucătorii eligibili înregistrați. Prin înscriere, sunteți de acord să participați la Programul de Loialitate și să câștigați puncte de loialitate din jocurile și activitățile eligibile.',
|
|
522
572
|
},
|
|
523
573
|
hr: {
|
|
524
574
|
redeem: 'Otkupiti',
|
|
@@ -535,42 +585,72 @@ const TRANSLATIONS = {
|
|
|
535
585
|
xp: 'XP',
|
|
536
586
|
rakebackTitle: 'Dostupan Rakeback',
|
|
537
587
|
loading: 'Učitavanje',
|
|
538
|
-
minutesCanClaim: 'Sljedeći zahtjev bit će dostupan za ${minutes} minuta'
|
|
588
|
+
minutesCanClaim: 'Sljedeći zahtjev bit će dostupan za ${minutes} minuta',
|
|
589
|
+
optIn: 'PRIDRUŽI SE',
|
|
590
|
+
optOut: 'ODJAVI SE',
|
|
591
|
+
loyaltyDescription: 'Pridruživanjem Programu vjernosti prihvaćate sljedeće:',
|
|
592
|
+
termsAndConditions: 'Uvjeti i odredbe',
|
|
593
|
+
loyaltyProgramDescription: 'Sudjelovanje je besplatno i dostupno registriranim igračima koji ispunjavaju uvjete. Pristupanjem prihvaćate sudjelovanje u Programu vjernosti i prikupljanje bodova kroz kvalificirane igre i aktivnosti.',
|
|
539
594
|
},
|
|
540
595
|
hu: {
|
|
541
596
|
redeem: 'Redeem',
|
|
542
597
|
claim: 'Igény',
|
|
543
598
|
rakebackTitle: 'Elérhető Rakeback',
|
|
544
599
|
loading: 'Betöltés',
|
|
545
|
-
minutesCanClaim: 'A következő igény ${minutes} perc múlva lesz elérhető'
|
|
600
|
+
minutesCanClaim: 'A következő igény ${minutes} perc múlva lesz elérhető',
|
|
601
|
+
optIn: 'CSATLAKOZÁS',
|
|
602
|
+
optOut: 'KILÉPÉS',
|
|
603
|
+
loyaltyDescription: 'A Hűségprogramhoz való csatlakozással elfogadja az alábbiakat:',
|
|
604
|
+
termsAndConditions: 'Felhasználási feltételek',
|
|
605
|
+
loyaltyProgramDescription: 'A részvétel ingyenes és az arra jogosult regisztrált játékosok számára érhető el. A csatlakozással elfogadja a Hűségprogramban való részvételt és a hűségpontok gyűjtését a jogosult játékok és tevékenységek alapján.',
|
|
546
606
|
},
|
|
547
607
|
pl: {
|
|
548
608
|
redeem: 'Redeem',
|
|
549
609
|
claim: 'Roszczenie',
|
|
550
610
|
rakebackTitle: 'Dostępny Rakeback',
|
|
551
611
|
loading: 'Ładowanie',
|
|
552
|
-
minutesCanClaim: 'Następne roszczenie będzie dostępne za ${minutes} minut'
|
|
612
|
+
minutesCanClaim: 'Następne roszczenie będzie dostępne za ${minutes} minut',
|
|
613
|
+
optIn: 'DOŁĄCZ',
|
|
614
|
+
optOut: 'ZREZYGNUJ',
|
|
615
|
+
loyaltyDescription: 'Dołączając do Programu Lojalnościowego, akceptujesz poniższe warunki:',
|
|
616
|
+
termsAndConditions: 'Regulamin',
|
|
617
|
+
loyaltyProgramDescription: 'Udział jest bezpłatny i dostępny dla uprawnionych zarejestrowanych graczy. Dołączając, zgadzasz się uczestniczyć w Programie Lojalnościowym i zdobywać punkty lojalnościowe za kwalifikujące się gry i aktywności.',
|
|
553
618
|
},
|
|
554
619
|
pt: {
|
|
555
620
|
redeem: 'Redeem',
|
|
556
621
|
claim: 'Reivindicar',
|
|
557
622
|
rakebackTitle: 'Rakeback Disponível',
|
|
558
623
|
loading: 'Carregando',
|
|
559
|
-
minutesCanClaim: 'Próxima reivindicação disponível em ${minutes} minutos'
|
|
624
|
+
minutesCanClaim: 'Próxima reivindicação disponível em ${minutes} minutos',
|
|
625
|
+
optIn: 'ADERIR',
|
|
626
|
+
optOut: 'CANCELAR ADESÃO',
|
|
627
|
+
loyaltyDescription: 'Ao aderir ao Programa de Fidelidade, concorda com o seguinte:',
|
|
628
|
+
termsAndConditions: 'Termos e Condições',
|
|
629
|
+
loyaltyProgramDescription: 'A participação é gratuita e está disponível para jogadores registados elegíveis. Ao aderir, concorda em participar no Programa de Fidelidade e ganhar Pontos de Fidelidade através de jogos e atividades elegíveis.',
|
|
560
630
|
},
|
|
561
631
|
sl: {
|
|
562
632
|
redeem: 'Redeem',
|
|
563
633
|
claim: 'Zahtevek',
|
|
564
634
|
rakebackTitle: 'Razpoložljiv Rakeback',
|
|
565
635
|
loading: 'Nalaganje',
|
|
566
|
-
minutesCanClaim: 'Naslednji zahtevek bo na voljo čez ${minutes} minut'
|
|
636
|
+
minutesCanClaim: 'Naslednji zahtevek bo na voljo čez ${minutes} minut',
|
|
637
|
+
optIn: 'PRIDRUŽI SE',
|
|
638
|
+
optOut: 'IZSTOPI',
|
|
639
|
+
loyaltyDescription: 'S pridružitvijo programu zvestobe se strinjate z naslednjim:',
|
|
640
|
+
termsAndConditions: 'Pogoji in določila',
|
|
641
|
+
loyaltyProgramDescription: 'Sodelovanje je brezplačno in na voljo upravičenim registriranim igralcem. S pridružitvijo se strinjate s sodelovanjem v programu zvestobe in pridobivanjem točk zvestobe za upravičene igre in aktivnosti.',
|
|
567
642
|
},
|
|
568
643
|
sr: {
|
|
569
644
|
redeem: 'Redeem',
|
|
570
645
|
claim: 'Zahtev',
|
|
571
646
|
rakebackTitle: 'Dostupan Rakeback',
|
|
572
647
|
loading: 'Učitavanje',
|
|
573
|
-
minutesCanClaim: 'Sledeći zahtev biće dostupan za ${minutes} minuta'
|
|
648
|
+
minutesCanClaim: 'Sledeći zahtev biće dostupan za ${minutes} minuta',
|
|
649
|
+
optIn: 'PRIDRUŽI SE',
|
|
650
|
+
optOut: 'NAPUSTI',
|
|
651
|
+
loyaltyDescription: 'Pridruživanjem Programu lojalnosti prihvatate sledeće uslove:',
|
|
652
|
+
termsAndConditions: 'Uslovi i odredbe',
|
|
653
|
+
loyaltyProgramDescription: 'Učešće je besplatno i dostupno registrovanim igračima koji ispunjavaju uslove. Pridruživanjem prihvatate učešće u Programu lojalnosti i prikupljanje bodova kroz odgovarajuće igre i aktivnosti.',
|
|
574
654
|
}
|
|
575
655
|
};
|
|
576
656
|
const translate = (key, customLang) => {
|
|
@@ -588,6 +668,27 @@ const translateWithParams = (key, params) => {
|
|
|
588
668
|
});
|
|
589
669
|
return templateString;
|
|
590
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
|
+
};
|
|
591
692
|
|
|
592
693
|
function _typeof(o) {
|
|
593
694
|
"@babel/helpers - typeof";
|
|
@@ -3281,7 +3382,7 @@ const PlayerElevateCardData = class {
|
|
|
3281
3382
|
})
|
|
3282
3383
|
.then((res) => res.json())
|
|
3283
3384
|
.then((res) => {
|
|
3284
|
-
var _a, _b, _c, _d, _e;
|
|
3385
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3285
3386
|
if (!res.success) {
|
|
3286
3387
|
console.error('Exception when fetch user elevateinfo, ', res.errorCode, res.errorMessage);
|
|
3287
3388
|
reject(true);
|
|
@@ -3292,9 +3393,9 @@ const PlayerElevateCardData = class {
|
|
|
3292
3393
|
this.playerElevateLevel = playerElevateInfo.level;
|
|
3293
3394
|
this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name;
|
|
3294
3395
|
this.playerElevateLevel.spendablePoints = ((_c = playerElevateInfo.spendableWallet) === null || _c === void 0 ? void 0 : _c.total.points) || 0;
|
|
3295
|
-
this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
|
3296
|
-
const spendableTotal = (
|
|
3297
|
-
const loyaltyWalletTotal = (
|
|
3396
|
+
this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel, optIn: (_d = res.data) === null || _d === void 0 ? void 0 : _d.optIn });
|
|
3397
|
+
const spendableTotal = (_e = res.data.spendableWallet) === null || _e === void 0 ? void 0 : _e.total;
|
|
3398
|
+
const loyaltyWalletTotal = (_f = res.data.loyaltyWallet) === null || _f === void 0 ? void 0 : _f.total;
|
|
3298
3399
|
this.playerElevateLeveLoaded.emit({
|
|
3299
3400
|
elevateLevelWalletTotal: spendableTotal,
|
|
3300
3401
|
loyaltyWalletTotal
|
|
@@ -3453,6 +3554,90 @@ const PlayerElevateLoyaltycard = class {
|
|
|
3453
3554
|
};
|
|
3454
3555
|
PlayerElevateLoyaltycard.style = PlayerElevateLoyaltycardStyle0;
|
|
3455
3556
|
|
|
3557
|
+
const playerElevateOptcardCss = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:30px;cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptInButton.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}";
|
|
3558
|
+
const PlayerElevateOptcardStyle0 = playerElevateOptcardCss;
|
|
3559
|
+
|
|
3560
|
+
const PlayerElevateOptcard = class {
|
|
3561
|
+
constructor(hostRef) {
|
|
3562
|
+
index.registerInstance(this, hostRef);
|
|
3563
|
+
this.endpoint = undefined;
|
|
3564
|
+
this.session = undefined;
|
|
3565
|
+
this.language = 'en';
|
|
3566
|
+
this.translationUrl = '';
|
|
3567
|
+
this.enableOptIn = false;
|
|
3568
|
+
this.optIn = undefined;
|
|
3569
|
+
this.optInLoaded = false;
|
|
3570
|
+
this.terms = {
|
|
3571
|
+
url: '',
|
|
3572
|
+
complianceUrl: '',
|
|
3573
|
+
complianceDescription: '',
|
|
3574
|
+
};
|
|
3575
|
+
}
|
|
3576
|
+
handleMessage(event) {
|
|
3577
|
+
var _a, _b;
|
|
3578
|
+
if (!this.enableOptIn && this.optInLoaded) {
|
|
3579
|
+
return;
|
|
3580
|
+
}
|
|
3581
|
+
if (event.origin !== window.location.origin) {
|
|
3582
|
+
return;
|
|
3583
|
+
}
|
|
3584
|
+
switch ((_a = event.data) === null || _a === void 0 ? void 0 : _a.type) {
|
|
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;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
playerElevateLeveLoadedHandler(event) {
|
|
3601
|
+
if (!event.detail) {
|
|
3602
|
+
return;
|
|
3603
|
+
}
|
|
3604
|
+
if (typeof event.detail.optIn === 'boolean') {
|
|
3605
|
+
this.optIn = event.detail.optIn;
|
|
3606
|
+
this.optInLoaded = true;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
onOptInClick() {
|
|
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);
|
|
3615
|
+
}
|
|
3616
|
+
async componentWillLoad() {
|
|
3617
|
+
if (this.translationUrl) {
|
|
3618
|
+
await getTranslations(this.translationUrl);
|
|
3619
|
+
}
|
|
3620
|
+
this.paramProxy = {
|
|
3621
|
+
endpoint: this.endpoint,
|
|
3622
|
+
session: this.session,
|
|
3623
|
+
language: this.language,
|
|
3624
|
+
};
|
|
3625
|
+
}
|
|
3626
|
+
render() {
|
|
3627
|
+
return (index.h("div", { key: '944ae8e1b73edcf3a843d9e77cc5fe285dfaae3c', class: "OptCard" }, index.h("general-styling-wrapper", { key: '1497bab54773831154ae823d82d496cd59ef7dea', targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '6ea240921feedd23a5227915a7e29ce995ac1051', params: this.paramProxy }), this.optInLoaded && (index.h("button", { key: 'a913db8f024924c954f919ecbbd732d0c3e987f4', class: {
|
|
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" }))))));
|
|
3637
|
+
}
|
|
3638
|
+
};
|
|
3639
|
+
PlayerElevateOptcard.style = PlayerElevateOptcardStyle0;
|
|
3640
|
+
|
|
3456
3641
|
const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";
|
|
3457
3642
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
3458
3643
|
|
|
@@ -3510,9 +3695,9 @@ const PlayerElevatePointcard = class {
|
|
|
3510
3695
|
render() {
|
|
3511
3696
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
3512
3697
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
3513
|
-
return (index.h("div", { key: '
|
|
3698
|
+
return (index.h("div", { key: '4d7edcc0727485b4b8020202ea18146ce796e2a8', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'd67cda87e8b1ea9e7abad8aa2cdb96e83580b462', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'a83fb1754e72ca884886933f886a6a78fad7f2bf', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl, mbSource: this.mbSource }), index.h("player-elevate-card-data", { key: '919b5a1d45ed72ca28e8cb7d3eb9af4f841a6c4c', params: this.paramProxy }), index.h("div", { key: 'a4299d7935ca51b294b152a1ec15a7538db19328', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '53d98242cd7df1726e185315d5195a5b8f37e14e', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '7c7be727b84f8305bf39426cd60b60a29b7b4f51' }, index.h("div", { key: '0d969c57190edca18d81928c72603c35baff08fe', class: "PlayerImg" }, index.h(PlayerAvatar, { key: 'cc75cf63c30a9370d65d53505c5aed37b5d810c3', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: 'bf0f0f6085ef18b7733ca19bffb358ebced0f5aa', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: '56801b6fb1ad3315d8d57474731c105a179ad9d0', class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : translate('spendablePoints', this.language)), index.h("div", { key: 'f9fa902c2d8868b252737fd6c8f398730f82b3ca', class: 'PointsTxt SPPoints' }, index.h(PlayerPoints, { key: '9b4ae8d8c6577a24eae39488e4826bbb98b77e49', spendablePoints: this.playerElevateLevel.spendablePoints <= 0 ? 0 : this.playerElevateLevel.spendablePoints, language: this.language }), index.h("a", { key: '6a2ab331532d559c359fc8a3712d4c4ac5d9e063', class: "TC", onClick: () => {
|
|
3514
3699
|
this.onDetailsClick();
|
|
3515
|
-
} }, translate('termAndConditions', this.language))), this.pointExpireString && (index.h("div", { key: '
|
|
3700
|
+
} }, translate('termAndConditions', this.language))), this.pointExpireString && (index.h("div", { key: 'd84bf3ab3253c497304e1b7b6cfd65ca0e898d7a', class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
3516
3701
|
}
|
|
3517
3702
|
static get watchers() { return {
|
|
3518
3703
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -3681,5 +3866,6 @@ exports.general_styling_wrapper = GeneralStylingWrapper;
|
|
|
3681
3866
|
exports.player_elevate_card = PlayerElevateCard;
|
|
3682
3867
|
exports.player_elevate_card_data = PlayerElevateCardData;
|
|
3683
3868
|
exports.player_elevate_loyaltycard = PlayerElevateLoyaltycard;
|
|
3869
|
+
exports.player_elevate_optcard = PlayerElevateOptcard;
|
|
3684
3870
|
exports.player_elevate_pointcard = PlayerElevatePointcard;
|
|
3685
3871
|
exports.player_rakeback_card = PlayerRakebackCard;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'player-elevate-card';
|
|
24
|
-
const BUILD = /* player-elevate-card */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg:
|
|
24
|
+
const BUILD = /* player-elevate-card */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'general-styling-
|
|
74
|
+
case 'general-styling-wrapper_7.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./general-styling-
|
|
77
|
+
'./general-styling-wrapper_7.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -175,6 +175,8 @@ var getAssetPath = (path) => {
|
|
|
175
175
|
|
|
176
176
|
// src/utils/constants.ts
|
|
177
177
|
var EMPTY_OBJ = {};
|
|
178
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
179
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
178
180
|
|
|
179
181
|
// src/utils/helpers.ts
|
|
180
182
|
var isDef = (v) => v != null;
|
|
@@ -611,9 +613,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
611
613
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
612
614
|
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
613
615
|
} else {
|
|
614
|
-
|
|
616
|
+
if (!isSvgMode) {
|
|
617
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
618
|
+
}
|
|
619
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
620
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
615
621
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
616
|
-
);
|
|
622
|
+
) ;
|
|
623
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
624
|
+
isSvgMode = false;
|
|
625
|
+
}
|
|
617
626
|
{
|
|
618
627
|
updateElement(null, newVNode2, isSvgMode);
|
|
619
628
|
}
|
|
@@ -628,6 +637,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
628
637
|
}
|
|
629
638
|
}
|
|
630
639
|
}
|
|
640
|
+
{
|
|
641
|
+
if (newVNode2.$tag$ === "svg") {
|
|
642
|
+
isSvgMode = false;
|
|
643
|
+
} else if (elm.tagName === "foreignObject") {
|
|
644
|
+
isSvgMode = true;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
631
647
|
}
|
|
632
648
|
elm["s-hn"] = hostTagName;
|
|
633
649
|
{
|
|
@@ -821,6 +837,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
821
837
|
const text = newVNode2.$text$;
|
|
822
838
|
let defaultHolder;
|
|
823
839
|
if (text === null) {
|
|
840
|
+
{
|
|
841
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
842
|
+
}
|
|
824
843
|
{
|
|
825
844
|
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
826
845
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
@@ -836,6 +855,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
836
855
|
} else if (oldChildren !== null) {
|
|
837
856
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
838
857
|
}
|
|
858
|
+
if (isSvgMode && tag === "svg") {
|
|
859
|
+
isSvgMode = false;
|
|
860
|
+
}
|
|
839
861
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
840
862
|
defaultHolder.parentNode.textContent = text;
|
|
841
863
|
} else if (oldVNode.$text$ !== text) {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9d42a12b.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["general-styling-
|
|
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],"translationUrl":[513,"translation-url"],"enableOptIn":[4,"enable-opt-in"],"optIn":[32],"optInLoaded":[32],"terms":[32]},[[8,"message","handleMessage"],[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]]],[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;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9d42a12b.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["general-styling-
|
|
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],"translationUrl":[513,"translation-url"],"enableOptIn":[4,"enable-opt-in"],"optIn":[32],"optInLoaded":[32],"terms":[32]},[[8,"message","handleMessage"],[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]]],[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;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"components/player-elevate-card/player-elevate-card.js",
|
|
4
4
|
"components/player-elevate-card-data/player-elevate-card-data.js",
|
|
5
5
|
"components/player-elevate-loyaltycard/player-elevate-loyaltycard.js",
|
|
6
|
+
"components/player-elevate-optcard/player-elevate-optcard.js",
|
|
6
7
|
"components/player-elevate-pointcard/player-elevate-pointcard.js",
|
|
7
8
|
"components/player-rakeback-card/player-rakeback-card.js"
|
|
8
9
|
],
|
|
@@ -78,7 +78,7 @@ export class PlayerElevateCardData {
|
|
|
78
78
|
})
|
|
79
79
|
.then((res) => res.json())
|
|
80
80
|
.then((res) => {
|
|
81
|
-
var _a, _b, _c, _d, _e;
|
|
81
|
+
var _a, _b, _c, _d, _e, _f;
|
|
82
82
|
if (!res.success) {
|
|
83
83
|
console.error('Exception when fetch user elevateinfo, ', res.errorCode, res.errorMessage);
|
|
84
84
|
reject(true);
|
|
@@ -89,9 +89,9 @@ export class PlayerElevateCardData {
|
|
|
89
89
|
this.playerElevateLevel = playerElevateInfo.level;
|
|
90
90
|
this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name;
|
|
91
91
|
this.playerElevateLevel.spendablePoints = ((_c = playerElevateInfo.spendableWallet) === null || _c === void 0 ? void 0 : _c.total.points) || 0;
|
|
92
|
-
this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
|
93
|
-
const spendableTotal = (
|
|
94
|
-
const loyaltyWalletTotal = (
|
|
92
|
+
this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel, optIn: (_d = res.data) === null || _d === void 0 ? void 0 : _d.optIn });
|
|
93
|
+
const spendableTotal = (_e = res.data.spendableWallet) === null || _e === void 0 ? void 0 : _e.total;
|
|
94
|
+
const loyaltyWalletTotal = (_f = res.data.loyaltyWallet) === null || _f === void 0 ? void 0 : _f.total;
|
|
95
95
|
this.playerElevateLeveLoaded.emit({
|
|
96
96
|
elevateLevelWalletTotal: spendableTotal,
|
|
97
97
|
loyaltyWalletTotal
|