@everymatrix/casino-engagement-suite-modal-container 1.44.0 → 1.45.2
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-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
- package/dist/casino-engagement-suite-modal-container/p-ac43a734.js +2 -0
- package/dist/casino-engagement-suite-modal-container/p-e1255160.js +1 -0
- package/dist/casino-engagement-suite-modal-container/p-f56ae83a.entry.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +16 -10
- package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +173 -183
- package/dist/cjs/index-00ddb955.js +1279 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.css +15 -15
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +234 -259
- package/dist/collection/components/casino-engagement-suite-modal-container/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +26 -26
- package/dist/collection/utils/utils.js +2 -2
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-modal-container.js +13 -10
- package/dist/esm/casino-engagement-suite-modal_2.entry.js +173 -183
- package/dist/esm/index-896654aa.js +1251 -0
- package/dist/esm/loader.js +6 -12
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.d.ts +40 -40
- package/dist/types/components/casino-engagement-suite-modal-container/index.d.ts +1 -0
- package/dist/types/components.d.ts +16 -1
- package/dist/types/models/index.d.ts +8 -8
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +12 -2
- package/dist/casino-engagement-suite-modal-container/p-b206f149.entry.js +0 -1
- package/dist/casino-engagement-suite-modal-container/p-b944b831.js +0 -1
- package/dist/cjs/index-2394967b.js +0 -1253
- package/dist/components/casino-engagement-suite-modal-container.d.ts +0 -11
- package/dist/components/casino-engagement-suite-modal-container.js +0 -181
- package/dist/components/casino-engagement-suite-modal.js +0 -6
- package/dist/components/casino-engagement-suite-modal2.js +0 -91
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-89c6c4a4.js +0 -1226
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-engagement-suite-modal-container/.stencil/packages/casino-engagement-suite-modal-container/stencil.config.d.ts +0 -2
|
@@ -1,267 +1,242 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { translate } from
|
|
4
|
-
import { formatBalance } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import "../../../../../casino-engagement-suite-modal/dist/types/index";
|
|
3
|
+
import { translate } from "../../utils/locale.utils";
|
|
4
|
+
import { formatBalance } from "../../utils/utils";
|
|
5
5
|
export class CasinoEngagementSuiteModalContainer {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
.catch((err) => {
|
|
51
|
-
console.log('Error ', err);
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
this.isModalOpen = (type) => {
|
|
55
|
-
return Boolean(this.openModals.find(el => el === type));
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
openModalHandler(event) {
|
|
59
|
-
const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
|
|
60
|
-
if (winAmount) {
|
|
61
|
-
// If jackpot win modal is already opened
|
|
62
|
-
// add won amount to the previous amount
|
|
63
|
-
if (this.isModalOpen('JACKPOT_REWARD_MODAL')) {
|
|
64
|
-
this.winAmount = { amount: this.winAmount.amount + winAmount.amount, currency: winAmount.currency };
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
this.winAmount = winAmount;
|
|
68
|
-
}
|
|
6
|
+
constructor() {
|
|
7
|
+
this.handleCloseClick = (e) => {
|
|
8
|
+
const type = e.currentTarget.getAttribute('data-type');
|
|
9
|
+
this.closeModal.emit(type);
|
|
10
|
+
};
|
|
11
|
+
this.handleChallengeAttendance = () => {
|
|
12
|
+
window.postMessage({
|
|
13
|
+
type: 'ChallengeJoinRequest',
|
|
14
|
+
data: this.confirmationData,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
this.setClientStyling = () => {
|
|
18
|
+
let sheet = document.createElement('style');
|
|
19
|
+
sheet.innerHTML = this.clientStyling;
|
|
20
|
+
this.host.prepend(sheet);
|
|
21
|
+
};
|
|
22
|
+
this.setClientStylingURL = () => {
|
|
23
|
+
let url = new URL(this.clientStylingUrl);
|
|
24
|
+
let cssFile = document.createElement('style');
|
|
25
|
+
fetch(url.href)
|
|
26
|
+
.then((res) => res.text())
|
|
27
|
+
.then((data) => {
|
|
28
|
+
cssFile.innerHTML = data;
|
|
29
|
+
setTimeout(() => { this.host.prepend(cssFile); }, 1);
|
|
30
|
+
})
|
|
31
|
+
.catch((err) => {
|
|
32
|
+
console.log('Error ', err);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
this.isModalOpen = (type) => {
|
|
36
|
+
return Boolean(this.openModals.find(el => el === type));
|
|
37
|
+
};
|
|
38
|
+
this.clientStyling = '';
|
|
39
|
+
this.clientStylingUrl = '';
|
|
40
|
+
this.language = 'en';
|
|
41
|
+
this.isJoiningToChallenge = undefined;
|
|
42
|
+
this.device = 'Mobile';
|
|
43
|
+
this.limitStylingAppends = false;
|
|
44
|
+
this.openModals = [];
|
|
45
|
+
this.rewardMessage = '';
|
|
46
|
+
this.hasError = false;
|
|
47
|
+
this.confirmationData = null;
|
|
48
|
+
this.winAmount = { amount: 0, currency: '' };
|
|
69
49
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
openModalHandler(event) {
|
|
51
|
+
const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
|
|
52
|
+
if (winAmount) {
|
|
53
|
+
// If jackpot win modal is already opened
|
|
54
|
+
// add won amount to the previous amount
|
|
55
|
+
if (this.isModalOpen('JACKPOT_REWARD_MODAL')) {
|
|
56
|
+
this.winAmount = { amount: this.winAmount.amount + winAmount.amount, currency: winAmount.currency };
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.winAmount = winAmount;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
this.openModals = [...this.openModals, modalType];
|
|
63
|
+
this.rewardMessage = rewardMessage;
|
|
64
|
+
this.hasError = hasError;
|
|
65
|
+
if (confirmationData) {
|
|
66
|
+
this.confirmationData = confirmationData;
|
|
67
|
+
}
|
|
75
68
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
this.openModals = this.openModals.filter(el => el !== event.detail);
|
|
79
|
-
}
|
|
80
|
-
componentDidRender() {
|
|
81
|
-
if (!this.limitStylingAppends && this.host) {
|
|
82
|
-
if (this.clientStyling)
|
|
83
|
-
this.setClientStyling();
|
|
84
|
-
if (this.clientStylingUrl)
|
|
85
|
-
this.setClientStylingURL();
|
|
86
|
-
this.limitStylingAppends = true;
|
|
69
|
+
closeModalHandler(event) {
|
|
70
|
+
this.openModals = this.openModals.filter(el => el !== event.detail);
|
|
87
71
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
h("div", { slot: "footer" },
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
h("div", { slot: "body" },
|
|
103
|
-
h("div", { class: "JackpotWinText" }, translate('jackpotWin', this.language)),
|
|
104
|
-
h("div", { class: "JackpotWinAmount" }, formatBalance(this.winAmount.amount, this.winAmount.currency))),
|
|
105
|
-
h("div", { slot: "footer" },
|
|
106
|
-
h("button", { class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'JACKPOT_REWARD_MODAL' }, translate('continue', this.language)),
|
|
107
|
-
h("div", { class: "JackpotWinInfoText" }, translate('jackpotWinInfo', this.language)))),
|
|
108
|
-
h("casino-engagement-suite-modal", { isOpen: this.isModalOpen("TARGET_MODAL"), header: ProgressToActivate ?
|
|
109
|
-
translate('joinHeader', this.language) :
|
|
110
|
-
translate('unJoinHeader', this.language), modalType: "TARGET_MODAL", device: this.device, isLoading: this.isJoiningToChallenge },
|
|
111
|
-
h("div", { slot: "body" },
|
|
112
|
-
h("div", { class: 'LeftAlign' }, translate('desc', this.language)),
|
|
113
|
-
h("div", { class: 'LeftAlignQuestion' }, ProgressToActivate ?
|
|
72
|
+
componentDidRender() {
|
|
73
|
+
if (!this.limitStylingAppends && this.host) {
|
|
74
|
+
if (this.clientStyling)
|
|
75
|
+
this.setClientStyling();
|
|
76
|
+
if (this.clientStylingUrl)
|
|
77
|
+
this.setClientStylingURL();
|
|
78
|
+
this.limitStylingAppends = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const { ProgressToActivate } = this.confirmationData || {};
|
|
83
|
+
return (h("div", { key: 'e9a8acb94d06f7c7f551de2fa61d601d3a0eeac8', class: `ModalContainer ${this.device}` }, h("casino-engagement-suite-modal", { key: '5d28d01520bb671c4c932b6e53d6b1075f9c3378', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("REWARD_MODAL"), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", modalType: "REWARD_MODAL", "show-animation": true, device: this.device }, h("div", { key: '6ef8750352a10fcbffbbe09c8bfba46b96c2098a', slot: "body" }, h("div", { key: 'c7b0c5c5202185a4001fbd23a60077e5b4484cfd' }, translate('won', this.language), " ", h("span", { key: 'a4635cada0b6b4bb54a73377fcd0165a12400c5f', class: 'ModalReward' }, this.rewardMessage)), this.hasError && (h("div", { key: 'e06df98ca254006caf79ff443da7e7c4dc7c8e46', class: "SupportInfo" }, translate('supportInfo', this.language)))), h("div", { key: '434d5bf025fe0222f8d73d94e26bfe465492eacb', slot: "footer" }, h("button", { key: '6927f9a1ee16c3b50abd62fe5bc736800b18d8f8', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'REWARD_MODAL' }, translate('continue', this.language)))), h("casino-engagement-suite-modal", { key: '802cb8c9e712f387f26ea4411f3bb0a1497fba80', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("JACKPOT_REWARD_MODAL"), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", "show-animation": true, modalType: "JACKPOT_REWARD_MODAL", device: this.device }, h("div", { key: '70fe768de685e857cdf3cc889ec9f7a841ed4c09', slot: "body" }, h("div", { key: 'bfafa6ea6d1d200d4c4c1a1e2a9d5bc43a0fbfa1', class: "JackpotWinText" }, translate('jackpotWin', this.language)), h("div", { key: '62d3c8a92e0d0e0b2178087f421701a00b23bd32', class: "JackpotWinAmount" }, formatBalance(this.winAmount.amount, this.winAmount.currency))), h("div", { key: 'a062a76ba5d7d5ccb9defc85697b69d59ef1af5a', slot: "footer" }, h("button", { key: '9fa028e9f0857539e66007b1ac5f5f005dd03267', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'JACKPOT_REWARD_MODAL' }, translate('continue', this.language)), h("div", { key: '483eb12b73245887e6ebc251e2e93db7e6d7dbc3', class: "JackpotWinInfoText" }, translate('jackpotWinInfo', this.language)))), h("casino-engagement-suite-modal", { key: '898dc39daf3ee36027a080364042e8653df9c390', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("TARGET_MODAL"), header: ProgressToActivate ?
|
|
84
|
+
translate('joinHeader', this.language) :
|
|
85
|
+
translate('unJoinHeader', this.language), modalType: "TARGET_MODAL", device: this.device, isLoading: this.isJoiningToChallenge }, h("div", { key: '08bcfbe6506982e393c92b0f776629dc336b751a', slot: "body" }, h("div", { key: '58e20c9775e690344804f505ef30c5a4d59940ce', class: 'LeftAlign' }, translate('desc', this.language)), h("div", { key: '8081f426a1c5556b3d95e875da12e9fb214937db', class: 'LeftAlignQuestion' }, ProgressToActivate ?
|
|
114
86
|
translate('joinQuestion', this.language) :
|
|
115
|
-
translate('unJoinQuestion', this.language))),
|
|
116
|
-
h("div", { slot: "footer", class: 'ManyActions' },
|
|
117
|
-
h("button", { class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ?
|
|
87
|
+
translate('unJoinQuestion', this.language))), h("div", { key: '44614b02fd105bbe4a698460696a7842c85e3c49', slot: "footer", class: 'ManyActions' }, h("button", { key: '21b8b45fd8e28625d2ece9124bca65fb5429eb12', class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ?
|
|
118
88
|
translate('joinConfirm', this.language) :
|
|
119
|
-
translate('unJoinConfirm', this.language)),
|
|
120
|
-
|
|
121
|
-
h("div", { class: '
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
89
|
+
translate('unJoinConfirm', this.language)), h("button", { key: 'e01e434afa2e1129c325042a37b1ac76be5a28c7', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": 'TARGET_MODAL' }, h("div", { key: '622d587b43206691f4f67b7f13c18f4187560b15', class: 'GradientText' }, ProgressToActivate ?
|
|
90
|
+
translate('joinReject', this.language) :
|
|
91
|
+
translate('unJoinReject', this.language))))), h("casino-engagement-suite-modal", { key: '8310ae114d8eefd5d91fb07c5d7cca34c70bffa3', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("SUPPORT_MODAL"), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, h("div", { key: 'f6cc0be359c4cdbe0c2a3dd3ff3dbfb0841e65fe', slot: "body" }, h("span", { key: 'd4229846b65de554ba68c2c4545e2ac1fcc4fabe' }, translate('contactSupport', this.language))), h("div", { key: '55a91614a32feca8f3ea613b2ea27bb0f37145e9', slot: "footer" }, h("button", { key: '9ea26fa1b55d7fe1201e460c11ec46e8ea673240', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'SUPPORT_MODAL' }, translate('okContinue', this.language))))));
|
|
92
|
+
}
|
|
93
|
+
static get is() { return "casino-engagement-suite-modal-container"; }
|
|
94
|
+
static get encapsulation() { return "shadow"; }
|
|
95
|
+
static get originalStyleUrls() {
|
|
96
|
+
return {
|
|
97
|
+
"$": ["casino-engagement-suite-modal-container.scss"]
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get styleUrls() {
|
|
101
|
+
return {
|
|
102
|
+
"$": ["casino-engagement-suite-modal-container.css"]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get properties() {
|
|
106
|
+
return {
|
|
107
|
+
"clientStyling": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": "Client custom styling via string"
|
|
120
|
+
},
|
|
121
|
+
"attribute": "client-styling",
|
|
122
|
+
"reflect": true,
|
|
123
|
+
"defaultValue": "''"
|
|
124
|
+
},
|
|
125
|
+
"clientStylingUrl": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Client custom styling via url"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "client-styling-url",
|
|
140
|
+
"reflect": true,
|
|
141
|
+
"defaultValue": "''"
|
|
142
|
+
},
|
|
143
|
+
"language": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "string",
|
|
148
|
+
"resolved": "string",
|
|
149
|
+
"references": {}
|
|
150
|
+
},
|
|
151
|
+
"required": false,
|
|
152
|
+
"optional": false,
|
|
153
|
+
"docs": {
|
|
154
|
+
"tags": [],
|
|
155
|
+
"text": "Language of the widget"
|
|
156
|
+
},
|
|
157
|
+
"attribute": "language",
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "'en'"
|
|
160
|
+
},
|
|
161
|
+
"isJoiningToChallenge": {
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"mutable": true,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "boolean",
|
|
166
|
+
"resolved": "boolean",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": "Is joining to challenge"
|
|
174
|
+
},
|
|
175
|
+
"attribute": "is-joining-to-challenge",
|
|
176
|
+
"reflect": false
|
|
177
|
+
},
|
|
178
|
+
"device": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "\"Mobile\" | \"Tablet\" | \"Desktop\"",
|
|
183
|
+
"resolved": "\"Desktop\" | \"Mobile\" | \"Tablet\"",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"attribute": "device",
|
|
193
|
+
"reflect": false,
|
|
194
|
+
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static get states() {
|
|
199
|
+
return {
|
|
200
|
+
"limitStylingAppends": {},
|
|
201
|
+
"openModals": {},
|
|
202
|
+
"rewardMessage": {},
|
|
203
|
+
"hasError": {},
|
|
204
|
+
"confirmationData": {},
|
|
205
|
+
"winAmount": {}
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
static get events() {
|
|
209
|
+
return [{
|
|
210
|
+
"method": "closeModal",
|
|
211
|
+
"name": "closeModal",
|
|
212
|
+
"bubbles": true,
|
|
213
|
+
"cancelable": true,
|
|
214
|
+
"composed": true,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": ""
|
|
218
|
+
},
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "any",
|
|
221
|
+
"resolved": "any",
|
|
222
|
+
"references": {}
|
|
223
|
+
}
|
|
224
|
+
}];
|
|
225
|
+
}
|
|
226
|
+
static get elementRef() { return "host"; }
|
|
227
|
+
static get listeners() {
|
|
228
|
+
return [{
|
|
229
|
+
"name": "openModal",
|
|
230
|
+
"method": "openModalHandler",
|
|
231
|
+
"target": "body",
|
|
232
|
+
"capture": false,
|
|
233
|
+
"passive": false
|
|
234
|
+
}, {
|
|
235
|
+
"name": "closeModal",
|
|
236
|
+
"method": "closeModalHandler",
|
|
237
|
+
"target": "body",
|
|
238
|
+
"capture": false,
|
|
239
|
+
"passive": false
|
|
240
|
+
}];
|
|
227
241
|
}
|
|
228
|
-
}; }
|
|
229
|
-
static get states() { return {
|
|
230
|
-
"limitStylingAppends": {},
|
|
231
|
-
"openModals": {},
|
|
232
|
-
"rewardMessage": {},
|
|
233
|
-
"hasError": {},
|
|
234
|
-
"confirmationData": {},
|
|
235
|
-
"winAmount": {}
|
|
236
|
-
}; }
|
|
237
|
-
static get events() { return [{
|
|
238
|
-
"method": "closeModal",
|
|
239
|
-
"name": "closeModal",
|
|
240
|
-
"bubbles": true,
|
|
241
|
-
"cancelable": true,
|
|
242
|
-
"composed": true,
|
|
243
|
-
"docs": {
|
|
244
|
-
"tags": [],
|
|
245
|
-
"text": ""
|
|
246
|
-
},
|
|
247
|
-
"complexType": {
|
|
248
|
-
"original": "any",
|
|
249
|
-
"resolved": "any",
|
|
250
|
-
"references": {}
|
|
251
|
-
}
|
|
252
|
-
}]; }
|
|
253
|
-
static get elementRef() { return "host"; }
|
|
254
|
-
static get listeners() { return [{
|
|
255
|
-
"name": "openModal",
|
|
256
|
-
"method": "openModalHandler",
|
|
257
|
-
"target": "body",
|
|
258
|
-
"capture": false,
|
|
259
|
-
"passive": false
|
|
260
|
-
}, {
|
|
261
|
-
"name": "closeModal",
|
|
262
|
-
"method": "closeModalHandler",
|
|
263
|
-
"target": "body",
|
|
264
|
-
"capture": false,
|
|
265
|
-
"passive": false
|
|
266
|
-
}]; }
|
|
267
242
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CasinoEngagementSuiteModalContainer } from './casino-engagement-suite-modal-container';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
const DEFAULT_LANGUAGE = 'en';
|
|
2
2
|
const SUPPORTED_LANGUAGES = ['en'];
|
|
3
3
|
const TRANSLATIONS = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
4
|
+
en: {
|
|
5
|
+
joinHeader: 'Choose another mission?',
|
|
6
|
+
desc: 'Any progress on the current mission will be kept and you can rejoin the mission at any time.',
|
|
7
|
+
joinQuestion: 'Would you still like to join another mission?',
|
|
8
|
+
joinConfirm: 'Yes, join another mission',
|
|
9
|
+
joinReject: 'No, stay at this mission',
|
|
10
|
+
unJoinHeader: 'Quit Mission?',
|
|
11
|
+
unJoinQuestion: 'Would you still like to quit the mission?',
|
|
12
|
+
unJoinConfirm: 'Yes, I want to quit this mission',
|
|
13
|
+
unJoinReject: 'No, stay at this mission',
|
|
14
|
+
join: 'Unjoin',
|
|
15
|
+
unJoin: 'Unjoin',
|
|
16
|
+
continue: 'Continue',
|
|
17
|
+
okContinue: 'Ok, continue',
|
|
18
|
+
won: 'You won',
|
|
19
|
+
supportInfo: 'However, some rewards cannot be issued. Please, contact support.',
|
|
20
|
+
noReward: 'Reward cannot be issued',
|
|
21
|
+
contactSupport: 'Please contact support.',
|
|
22
|
+
noMissions: 'No Missions yet',
|
|
23
|
+
tryOtherGames: 'Try winning Missions as rewards or launching other booster games',
|
|
24
|
+
tooltip: 'Mission where your real money bets contribute towards the level progress to achieve the level reward',
|
|
25
|
+
jackpotWin: 'Total Jackpot Win!',
|
|
26
|
+
jackpotWinInfo: 'Please refresh game page or place any bet to update game balance'
|
|
27
|
+
}
|
|
28
28
|
};
|
|
29
29
|
export const translate = (key, customLang) => {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
const lang = customLang;
|
|
31
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
32
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export function formatBalance(amount, currency) {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
3
|
+
.format(amount)}`;
|
|
4
4
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-896654aa.js';
|
|
2
|
+
export { s as setNonce } from './index-896654aa.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
2
4
|
|
|
3
5
|
/*
|
|
4
|
-
Stencil Client Patch Browser
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
5
7
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
13
15
|
};
|
|
14
16
|
|
|
15
|
-
patchBrowser().then(options => {
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
16
19
|
return bootstrapLazy([["casino-engagement-suite-modal_2",[[1,"casino-engagement-suite-modal-container",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"device":[1],"limitStylingAppends":[32],"openModals":[32],"rewardMessage":[32],"hasError":[32],"confirmationData":[32],"winAmount":[32]},[[16,"openModal","openModalHandler"],[16,"closeModal","closeModalHandler"]]],[1,"casino-engagement-suite-modal",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[4,"is-open"],"isLoading":[1028,"is-loading"],"header":[1],"contentIcon":[1,"content-icon"],"modalType":[1,"modal-type"],"device":[1],"showAnimation":[4,"show-animation"],"limitStylingAppends":[32]}]]]], options);
|
|
17
20
|
});
|