@everymatrix/casino-engagement-suite-modal-container 1.0.69

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.
Files changed (46) hide show
  1. package/dist/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -0
  2. package/dist/casino-engagement-suite-modal-container/index.esm.js +0 -0
  3. package/dist/casino-engagement-suite-modal-container/p-aaab8749.entry.js +1 -0
  4. package/dist/casino-engagement-suite-modal-container/p-ac43a734.js +2 -0
  5. package/dist/casino-engagement-suite-modal-container/p-e1255160.js +1 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +25 -0
  8. package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +201 -0
  9. package/dist/cjs/index-00ddb955.js +1279 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +19 -0
  13. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.css +115 -0
  14. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +242 -0
  15. package/dist/collection/components/casino-engagement-suite-modal-container/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/models/index.js +1 -0
  18. package/dist/collection/utils/locale.utils.js +31 -0
  19. package/dist/collection/utils/utils.js +4 -0
  20. package/dist/esm/app-globals-0f993ce5.js +3 -0
  21. package/dist/esm/casino-engagement-suite-modal-container.js +20 -0
  22. package/dist/esm/casino-engagement-suite-modal_2.entry.js +196 -0
  23. package/dist/esm/index-896654aa.js +1251 -0
  24. package/dist/esm/index.js +1 -0
  25. package/dist/esm/loader.js +11 -0
  26. package/dist/index.cjs.js +1 -0
  27. package/dist/index.js +1 -0
  28. package/dist/stencil.config.dev.js +17 -0
  29. package/dist/stencil.config.js +17 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
  31. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
  32. package/dist/types/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.d.ts +44 -0
  33. package/dist/types/components/casino-engagement-suite-modal-container/index.d.ts +1 -0
  34. package/dist/types/components.d.ts +87 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/models/index.d.ts +10 -0
  37. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  38. package/dist/types/utils/locale.utils.d.ts +1 -0
  39. package/dist/types/utils/utils.d.ts +1 -0
  40. package/loader/cdn.js +1 -0
  41. package/loader/index.cjs.js +1 -0
  42. package/loader/index.d.ts +24 -0
  43. package/loader/index.es2017.js +1 -0
  44. package/loader/index.js +2 -0
  45. package/loader/package.json +11 -0
  46. package/package.json +29 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-00ddb955.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
11
+ return index.bootstrapLazy([["casino-engagement-suite-modal_2.cjs",[[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);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,19 @@
1
+ {
2
+ "entries": [
3
+ "components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
+ },
10
+ "collections": [
11
+ {
12
+ "name": "@everymatrix/casino-engagement-suite-modal",
13
+ "tags": [
14
+ "casino-engagement-suite-modal"
15
+ ]
16
+ }
17
+ ],
18
+ "bundles": []
19
+ }
@@ -0,0 +1,115 @@
1
+ :host {
2
+ display: block;
3
+ font-family: inherit;
4
+ }
5
+
6
+ .ModalFooterButton, .ModalFooterButtonOutlined {
7
+ transition: all 0.5s ease-out;
8
+ background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
9
+ color: var(--emw--color-typography, #1E1638);
10
+ border-radius: 99px;
11
+ min-width: 160px;
12
+ height: 36px;
13
+ font-size: var(--emw--font-size-small-plus, 16px);
14
+ font-weight: var(--emw--font-weight-bold, 700);
15
+ position: relative;
16
+ font-family: "Montserrat", sans-serif;
17
+ padding: 0 16px;
18
+ box-sizing: border-box;
19
+ margin: auto;
20
+ border: none;
21
+ cursor: pointer;
22
+ }
23
+
24
+ .ModalFooterButtonOutlined {
25
+ background: linear-gradient(var(--emw--color-background, #1E1638) 0 0) padding-box, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;
26
+ border: 2px solid transparent;
27
+ }
28
+
29
+ .GradientText {
30
+ background-image: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);
31
+ color: transparent;
32
+ background-clip: text;
33
+ }
34
+
35
+ .ManyActions {
36
+ display: flex;
37
+ width: 100%;
38
+ flex-direction: column;
39
+ align-items: stretch;
40
+ }
41
+ .ManyActions .ModalFooterButton, .ManyActions .ModalFooterButtonOutlined {
42
+ width: 280px;
43
+ }
44
+ .ManyActions button:first-child {
45
+ margin-bottom: 16px;
46
+ }
47
+
48
+ .Disabled {
49
+ opacity: 0.5;
50
+ pointer-events: none;
51
+ cursor: auto;
52
+ }
53
+
54
+ .ModalReward {
55
+ font-weight: var(--emw--font-weight-semibold, 600);
56
+ color: var(--emw--color-typography, #FFFFFF);
57
+ word-break: break-word;
58
+ }
59
+
60
+ .JackpotWinText {
61
+ margin: 0;
62
+ font-weight: var(--emw--font-weight-bold, 600);
63
+ font-size: 16px;
64
+ line-height: 20px;
65
+ color: var(--emw--color-typography, #FFF);
66
+ }
67
+
68
+ .JackpotWinAmount {
69
+ margin-top: 8px;
70
+ box-shadow: -0.41px 0.41px 0px 0px rgba(0, 0, 0, 0.1490196078), -0.41px 0.41px 2px 0px rgba(0, 0, 0, 0.5019607843);
71
+ background: linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%);
72
+ -webkit-text-fill-color: transparent;
73
+ -webkit-background-clip: text;
74
+ font-weight: 900;
75
+ font-size: 16px;
76
+ line-height: 16px;
77
+ }
78
+
79
+ .SupportInfo {
80
+ margin-top: 20px;
81
+ }
82
+
83
+ .ModalContainer.Mobile .ModalFooterButton,
84
+ .ModalContainer.Mobile .ModalFooterButtonOutlined,
85
+ .ModalContainer.Mobile .ModalFooterButton,
86
+ .ModalContainer.Mobile .ModalFooterButtonOutlined {
87
+ font-size: var(--emw--font-size-small, 14px);
88
+ min-width: 140px;
89
+ height: 32px;
90
+ }
91
+ .ModalContainer.Mobile .ManyActions .ModalFooterButton, .ModalContainer.Mobile .ManyActions .ModalFooterButtonOutlined,
92
+ .ModalContainer.Mobile .ManyActions .ModalFooterButton,
93
+ .ModalContainer.Mobile .ManyActions .ModalFooterButtonOutlined {
94
+ width: 100%;
95
+ height: 32px;
96
+ }
97
+ .ModalContainer.Mobile .ManyActions button:first-child,
98
+ .ModalContainer.Mobile .ManyActions button:first-child {
99
+ margin-bottom: 8px;
100
+ }
101
+ .ModalContainer.Mobile .JackpotWinText,
102
+ .ModalContainer.Mobile .JackpotWinText {
103
+ font-size: 14px;
104
+ line-height: 16px;
105
+ }
106
+ .ModalContainer.Mobile .JackpotWinAmount,
107
+ .ModalContainer.Mobile .JackpotWinAmount {
108
+ font-size: 14px;
109
+ line-height: 14px;
110
+ }
111
+
112
+ .LeftAlign {
113
+ text-align: left;
114
+ line-height: 1.2;
115
+ }
@@ -0,0 +1,242 @@
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
+ export class CasinoEngagementSuiteModalContainer {
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: '' };
49
+ }
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
+ }
68
+ }
69
+ closeModalHandler(event) {
70
+ this.openModals = this.openModals.filter(el => el !== event.detail);
71
+ }
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: '136c2521b6ce142d9c0dddf9300526e156b937d6', class: `ModalContainer ${this.device}` }, h("casino-engagement-suite-modal", { key: '151a21ef6d3b0e5f3d82ebe45f0a22aa519821bb', 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: '00d4a4ea4d1a790d68a06156b4829b1b181c072f', slot: "body" }, h("div", { key: 'dff1a278e656acaec2aa5045a54dd12226f5ac61' }, translate('won', this.language), " ", h("span", { key: 'bf8eccf6e0221fab5fb319ca05a61917956dc2b0', class: 'ModalReward' }, this.rewardMessage)), this.hasError && (h("div", { key: 'b9ab84114f91fc3e2d80bc5871afd804abb3daab', class: "SupportInfo" }, translate('supportInfo', this.language)))), h("div", { key: 'e45e9a072f5cf1bb5d36d232896dffbeff110621', slot: "footer" }, h("button", { key: 'c76d8b69e2ceef4f93fd01319b79e09e638e4212', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'REWARD_MODAL' }, translate('continue', this.language)))), h("casino-engagement-suite-modal", { key: 'cd1500c95db9670004deaee3f374aff36dbdb156', 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: 'a6832af4eb48940d5c573ed906a7511082c1b59e', slot: "body" }, h("div", { key: 'ad484526c5fbfcd2aa8280f6050c573022b6c04e', class: "JackpotWinText" }, translate('jackpotWin', this.language)), h("div", { key: '3475b1d2824afd37f07cfbbe7db97b15f56f9772', class: "JackpotWinAmount" }, formatBalance(this.winAmount.amount, this.winAmount.currency))), h("div", { key: 'd5da13989c807d509a307fe21e5eb37d2f417926', slot: "footer" }, h("button", { key: '43b080260542d91712e8ae956e6e97e4d51ba4ac', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'JACKPOT_REWARD_MODAL' }, translate('continue', this.language)), h("div", { key: '145b2a136d92cdf575267d9350ea8c673cac6a21', class: "JackpotWinInfoText" }, translate('jackpotWinInfo', this.language)))), h("casino-engagement-suite-modal", { key: 'ef905b8a730bdae1f03711fecef7b32b15b8d98d', 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: 'cf234ba1fef13cade20db68b8a5c8973fe7a2285', slot: "body" }, h("div", { key: '1ed85c4005cf467491b96e4a1ecc76f635bae15d', class: 'LeftAlign' }, translate('desc', this.language)), h("div", { key: '1cbad96502b6fc3d730ae7301e062728e1030cd6', class: 'LeftAlignQuestion' }, ProgressToActivate ?
86
+ translate('joinQuestion', this.language) :
87
+ translate('unJoinQuestion', this.language))), h("div", { key: 'c288c8eddba30f36c4aa9d59c12c47c84033cecd', slot: "footer", class: 'ManyActions' }, h("button", { key: '184eddbe4d080628f87ab863b2f045d85a2122d5', class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ?
88
+ translate('joinConfirm', this.language) :
89
+ translate('unJoinConfirm', this.language)), h("button", { key: 'aa165d256092a64d907645cc62102156d4caf02b', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": 'TARGET_MODAL' }, h("div", { key: '5bb286abafdd1676ddb3080fc1e96adfd68af39f', class: 'GradientText' }, ProgressToActivate ?
90
+ translate('joinReject', this.language) :
91
+ translate('unJoinReject', this.language))))), h("casino-engagement-suite-modal", { key: '44ab65b8618af413b70e647ba6d497a581dbff91', 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: 'fe6cff805502a17e61d4c9bae8a434635f708e58', slot: "body" }, h("span", { key: 'aae084da0430fc62a484f16c1fe7dc1278955b5e' }, translate('contactSupport', this.language))), h("div", { key: 'ff10b11d061bfafe306491afe8461da76dfd991c', slot: "footer" }, h("button", { key: 'ae2a9345e70d5dd24c7c52aa15a3734464074f81', 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
+ }];
241
+ }
242
+ }
@@ -0,0 +1 @@
1
+ export { CasinoEngagementSuiteModalContainer } from './casino-engagement-suite-modal-container';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['en'];
3
+ const TRANSLATIONS = {
4
+ en: {
5
+ joinHeader: 'Choose another challenge?',
6
+ desc: 'Any progress on the current challenge will be kept and you can rejoin the challenge at any time.',
7
+ joinQuestion: 'Would you still like to join another challenge?',
8
+ joinConfirm: 'Yes, join another challenge',
9
+ joinReject: 'No, stay at current challenge',
10
+ unJoinHeader: 'Quit Challenge?',
11
+ unJoinQuestion: 'Would you still like to quit the challenge?',
12
+ unJoinConfirm: 'Yes, I want to quit challenge',
13
+ unJoinReject: 'No, stay at challenge',
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
+ noChallenges: 'No Challenges yet',
23
+ tryOtherGames: 'Try winning Challenges as rewards or launching other booster games',
24
+ tooltip: 'Competition where your real money bets contribute towards the level progress to achieve the level reward',
25
+ jackpotWin: 'Total Jackpot Win!'
26
+ }
27
+ };
28
+ export const translate = (key, customLang) => {
29
+ const lang = customLang;
30
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
31
+ };
@@ -0,0 +1,4 @@
1
+ export function formatBalance(amount, currency) {
2
+ return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
3
+ .format(amount)}`;
4
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -0,0 +1,20 @@
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';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
+ */
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);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
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);
20
+ });