@everymatrix/casino-challenge-details 0.22.43 → 0.22.44
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/casino-challenge-details/casino-challenge-details-869c2105.js +7 -0
- package/dist/casino-challenge-details/casino-challenge-details_5.entry.js +1 -1
- package/dist/casino-challenge-details/index.esm.js +1 -1
- package/dist/cjs/{casino-challenge-details-46914e04.js → casino-challenge-details-55db1b59.js} +16 -3
- package/dist/cjs/casino-challenge-details_5.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-challenge-details/casino-challenge-details.js +13 -3
- package/dist/collection/utils/locale.utils.js +3 -0
- package/dist/esm/{casino-challenge-details-0ae391a0.js → casino-challenge-details-869c2105.js} +16 -3
- package/dist/esm/casino-challenge-details_5.entry.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/types/components/casino-challenge-details/casino-challenge-details.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-challenge-details/casino-challenge-details-0ae391a0.js +0 -7
|
@@ -506,6 +506,15 @@ export class CasinoChallengeDetails {
|
|
|
506
506
|
return translate('isNotContributeToOne', this.language);
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
|
+
this.getSportsbookContributionRule = (isContributeToOne) => {
|
|
510
|
+
if (this.challenge) {
|
|
511
|
+
if (isContributeToOne) {
|
|
512
|
+
return translate('isContributeToOneSportsbook', this.language);
|
|
513
|
+
}
|
|
514
|
+
else
|
|
515
|
+
return translate('isNotContributeToOneSportsbook', this.language);
|
|
516
|
+
}
|
|
517
|
+
};
|
|
509
518
|
this.getContributionType = (contributedBy) => {
|
|
510
519
|
switch (contributedBy) {
|
|
511
520
|
case EWalletTypes.BonusMoney:
|
|
@@ -592,11 +601,12 @@ export class CasinoChallengeDetails {
|
|
|
592
601
|
if (!((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.SportSettings)) {
|
|
593
602
|
return;
|
|
594
603
|
}
|
|
595
|
-
const { SportSettings, ContributedBy } = this.challenge;
|
|
604
|
+
const { SportSettings, ContributedBy, IsContributeToOne } = this.challenge;
|
|
596
605
|
const { MatchType, BetTypes } = SportSettings;
|
|
597
606
|
const contributionType = this.getSportsbookContributionType(ContributedBy);
|
|
598
607
|
const matchType = this.getSportsbookMatchType(MatchType);
|
|
599
|
-
|
|
608
|
+
const contributionRule = this.getSportsbookContributionRule(IsContributeToOne);
|
|
609
|
+
return (h("div", { class: "sportsbook-rules" }, h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('fundsUsed', this.language)), h("span", null, contributionType)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('progressScope', this.language)), h("span", null, contributionRule)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('eligibleMatchTypes', this.language)), h("span", null, matchType)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('eligibleBetTypes', this.language)), h("div", { class: "rule__inners" }, BetTypes.includes(EBetType.Single) && this.renderSingleBetType(), BetTypes.includes(EBetType.Multiple) && this.renderMultipleBetType(), BetTypes.includes(EBetType.System) && this.renderSystemBetType()))));
|
|
600
610
|
};
|
|
601
611
|
this.rulesTab = () => {
|
|
602
612
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
@@ -1005,7 +1015,7 @@ export class CasinoChallengeDetails {
|
|
|
1005
1015
|
return (h("casino-challenges-modal", { isOpen: this.isOptOutModalOpen, onClose: this.toggleOptOutModal(false), showBackdrop: true, showCloseButton: true }, h("div", { slot: "header" }, h("img", { class: "warning-icon", src: alertIcon, height: 21, width: 21 }), h("h2", { class: "modal-header-title" }, translate('optOutModalTitle', this.language))), h("div", { slot: "body" }, h("p", { class: "modal-body-description" }, translate('optOudModalDescription', this.language))), h("div", { class: "modal-footer", slot: "footer" }, h("button", { class: "modal-footer-button cancel", onClick: this.confirmOptOut }, translate('optOutModalConfirm', this.language)), h("button", { class: "modal-footer-button confirm", onClick: this.toggleOptOutModal(false) }, translate('optOutModalCancel', this.language)))));
|
|
1006
1016
|
}
|
|
1007
1017
|
render() {
|
|
1008
|
-
return (h("div", { key: '
|
|
1018
|
+
return (h("div", { key: '348fb03ffd0c4e9dbc96c64d7af8383816be0682', ref: (el) => (this.stylingContainer = el), class: "container-wrapper" }, h("div", { key: 'ee8a58b3c40afe10850d1efd29a649b1cadc391a', class: "container" }, this.pageHeader(), this.loading ? (h("div", { class: "lds-dual-ring" })) : (h("div", null, h("button", { class: "back-button", onClick: this.goBack }, h("img", { class: "back-button__icon", src: backIcon }), this.getBackButtonText()), this.forfeitedNofitication(), this.completedNotification(), this.expiredNotification(), this.optedOutNofitication(), this.renderToast(), h("div", { class: "details" }, this.cardGeneralInfo(), h("div", { class: "details__tabs-container" }, this.challengeTabs(), this.challengeTabContent()), this.footer()))), this.renderOptOutModal())));
|
|
1009
1019
|
}
|
|
1010
1020
|
static get is() { return "casino-challenge-details"; }
|
|
1011
1021
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,6 +58,9 @@ const TRANSLATIONS = {
|
|
|
58
58
|
contributionRule: 'Contribution Rule',
|
|
59
59
|
isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
|
|
60
60
|
isNotContributeToOne: 'Bets contribute to all started challenges',
|
|
61
|
+
isContributeToOneSportsbook: 'Your contribution counts toward one eligible challenge only',
|
|
62
|
+
isNotContributeToOneSportsbook: 'Your contribution can count toward all eligible challenges',
|
|
63
|
+
progressScope: 'Progress Scope',
|
|
61
64
|
bonusMoney: 'Bonus Money',
|
|
62
65
|
realMoney: 'Real Money',
|
|
63
66
|
mixedMoney: 'Real and Bonus Money contribution',
|
package/dist/esm/{casino-challenge-details-0ae391a0.js → casino-challenge-details-869c2105.js}
RENAMED
|
@@ -178,6 +178,9 @@ const TRANSLATIONS = {
|
|
|
178
178
|
contributionRule: 'Contribution Rule',
|
|
179
179
|
isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
|
|
180
180
|
isNotContributeToOne: 'Bets contribute to all started challenges',
|
|
181
|
+
isContributeToOneSportsbook: 'Your contribution counts toward one eligible challenge only',
|
|
182
|
+
isNotContributeToOneSportsbook: 'Your contribution can count toward all eligible challenges',
|
|
183
|
+
progressScope: 'Progress Scope',
|
|
181
184
|
bonusMoney: 'Bonus Money',
|
|
182
185
|
realMoney: 'Real Money',
|
|
183
186
|
mixedMoney: 'Real and Bonus Money contribution',
|
|
@@ -4154,6 +4157,15 @@ const CasinoChallengeDetails = class {
|
|
|
4154
4157
|
return translate('isNotContributeToOne', this.language);
|
|
4155
4158
|
}
|
|
4156
4159
|
};
|
|
4160
|
+
this.getSportsbookContributionRule = (isContributeToOne) => {
|
|
4161
|
+
if (this.challenge) {
|
|
4162
|
+
if (isContributeToOne) {
|
|
4163
|
+
return translate('isContributeToOneSportsbook', this.language);
|
|
4164
|
+
}
|
|
4165
|
+
else
|
|
4166
|
+
return translate('isNotContributeToOneSportsbook', this.language);
|
|
4167
|
+
}
|
|
4168
|
+
};
|
|
4157
4169
|
this.getContributionType = (contributedBy) => {
|
|
4158
4170
|
switch (contributedBy) {
|
|
4159
4171
|
case EWalletTypes.BonusMoney:
|
|
@@ -4238,11 +4250,12 @@ const CasinoChallengeDetails = class {
|
|
|
4238
4250
|
if (!((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.SportSettings)) {
|
|
4239
4251
|
return;
|
|
4240
4252
|
}
|
|
4241
|
-
const { SportSettings, ContributedBy } = this.challenge;
|
|
4253
|
+
const { SportSettings, ContributedBy, IsContributeToOne } = this.challenge;
|
|
4242
4254
|
const { MatchType, BetTypes } = SportSettings;
|
|
4243
4255
|
const contributionType = this.getSportsbookContributionType(ContributedBy);
|
|
4244
4256
|
const matchType = this.getSportsbookMatchType(MatchType);
|
|
4245
|
-
|
|
4257
|
+
const contributionRule = this.getSportsbookContributionRule(IsContributeToOne);
|
|
4258
|
+
return (h("div", { class: "sportsbook-rules" }, h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('fundsUsed', this.language)), h("span", null, contributionType)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('progressScope', this.language)), h("span", null, contributionRule)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('eligibleMatchTypes', this.language)), h("span", null, matchType)), h("p", { class: "rule" }, h("h3", { class: "rule__title" }, translate('eligibleBetTypes', this.language)), h("div", { class: "rule__inners" }, BetTypes.includes(EBetType.Single) && this.renderSingleBetType(), BetTypes.includes(EBetType.Multiple) && this.renderMultipleBetType(), BetTypes.includes(EBetType.System) && this.renderSystemBetType()))));
|
|
4246
4259
|
};
|
|
4247
4260
|
this.rulesTab = () => {
|
|
4248
4261
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
@@ -4651,7 +4664,7 @@ const CasinoChallengeDetails = class {
|
|
|
4651
4664
|
return (h("casino-challenges-modal", { isOpen: this.isOptOutModalOpen, onClose: this.toggleOptOutModal(false), showBackdrop: true, showCloseButton: true }, h("div", { slot: "header" }, h("img", { class: "warning-icon", src: alertSvg, height: 21, width: 21 }), h("h2", { class: "modal-header-title" }, translate('optOutModalTitle', this.language))), h("div", { slot: "body" }, h("p", { class: "modal-body-description" }, translate('optOudModalDescription', this.language))), h("div", { class: "modal-footer", slot: "footer" }, h("button", { class: "modal-footer-button cancel", onClick: this.confirmOptOut }, translate('optOutModalConfirm', this.language)), h("button", { class: "modal-footer-button confirm", onClick: this.toggleOptOutModal(false) }, translate('optOutModalCancel', this.language)))));
|
|
4652
4665
|
}
|
|
4653
4666
|
render() {
|
|
4654
|
-
return (h("div", { key: '
|
|
4667
|
+
return (h("div", { key: '348fb03ffd0c4e9dbc96c64d7af8383816be0682', ref: (el) => (this.stylingContainer = el), class: "container-wrapper" }, h("div", { key: 'ee8a58b3c40afe10850d1efd29a649b1cadc391a', class: "container" }, this.pageHeader(), this.loading ? (h("div", { class: "lds-dual-ring" })) : (h("div", null, h("button", { class: "back-button", onClick: this.goBack }, h("img", { class: "back-button__icon", src: backArrowSvg }), this.getBackButtonText()), this.forfeitedNofitication(), this.completedNotification(), this.expiredNotification(), this.optedOutNofitication(), this.renderToast(), h("div", { class: "details" }, this.cardGeneralInfo(), h("div", { class: "details__tabs-container" }, this.challengeTabs(), this.challengeTabContent()), this.footer()))), this.renderOptOutModal())));
|
|
4655
4668
|
}
|
|
4656
4669
|
static get watchers() { return {
|
|
4657
4670
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EChallengeProgressLevelStatus, a as EChallengeStatus, b as EChallengeProgressStatus, t as translate, s as setClientStyling, c as setClientStylingURL, d as setStreamStyling } from './casino-challenge-details-
|
|
2
|
-
export { C as casino_challenge_details } from './casino-challenge-details-
|
|
1
|
+
import { E as EChallengeProgressLevelStatus, a as EChallengeStatus, b as EChallengeProgressStatus, t as translate, s as setClientStyling, c as setClientStylingURL, d as setStreamStyling } from './casino-challenge-details-869c2105.js';
|
|
2
|
+
export { C as casino_challenge_details } from './casino-challenge-details-869c2105.js';
|
|
3
3
|
import { r as registerInstance, h, g as getElement, H as Host, c as createEvent } from './index-a44346bc.js';
|
|
4
4
|
|
|
5
5
|
const activeChevronSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMC40MTA4MjYgMC45MTEwN0MwLjczNjI2MyAwLjU4NTYzMyAxLjI2MzkgMC41ODU2MzMgMS41ODkzNCAwLjkxMTA3TDYuMDAwMDggNS4zMjE4MUwxMC40MTA4IDAuOTExMDdDMTAuNzM2MyAwLjU4NTYzMyAxMS4yNjM5IDAuNTg1NjMzIDExLjU4OTMgMC45MTEwN0MxMS45MTQ4IDEuMjM2NTEgMTEuOTE0OCAxLjc2NDE0IDExLjU4OTMgMi4wODk1OEw2LjU4OTM0IDcuMDg5NThDNi4yNjM5IDcuNDE1MDIgNS43MzYyNiA3LjQxNTAyIDUuNDEwODMgNy4wODk1OEwwLjQxMDgyNiAyLjA4OTU4QzAuMDg1Mzg4OCAxLjc2NDE0IDAuMDg1Mzg4OCAxLjIzNjUxIDAuNDEwODI2IDAuOTExMDdaIiBmaWxsPSIjMDBCNzRGIi8+Cjwvc3ZnPgo=';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengeDetails } from './casino-challenge-details-
|
|
1
|
+
export { C as CasinoChallengeDetails } from './casino-challenge-details-869c2105.js';
|
|
2
2
|
import './index-a44346bc.js';
|
|
@@ -142,6 +142,7 @@ export declare class CasinoChallengeDetails {
|
|
|
142
142
|
private renderEventRule;
|
|
143
143
|
private eventsTab;
|
|
144
144
|
private getContributionRule;
|
|
145
|
+
private getSportsbookContributionRule;
|
|
145
146
|
private getContributionType;
|
|
146
147
|
private getSportsbookContributionType;
|
|
147
148
|
private getSportsbookMatchType;
|