@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.
Files changed (53) hide show
  1. package/dist/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
  2. package/dist/casino-engagement-suite-modal-container/p-ac43a734.js +2 -0
  3. package/dist/casino-engagement-suite-modal-container/p-e1255160.js +1 -0
  4. package/dist/casino-engagement-suite-modal-container/p-f56ae83a.entry.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +16 -10
  7. package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +173 -183
  8. package/dist/cjs/index-00ddb955.js +1279 -0
  9. package/dist/cjs/loader.cjs.js +6 -12
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.css +15 -15
  12. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +234 -259
  13. package/dist/collection/components/casino-engagement-suite-modal-container/index.js +1 -0
  14. package/dist/collection/utils/locale.utils.js +26 -26
  15. package/dist/collection/utils/utils.js +2 -2
  16. package/dist/esm/app-globals-0f993ce5.js +3 -0
  17. package/dist/esm/casino-engagement-suite-modal-container.js +13 -10
  18. package/dist/esm/casino-engagement-suite-modal_2.entry.js +173 -183
  19. package/dist/esm/index-896654aa.js +1251 -0
  20. package/dist/esm/loader.js +6 -12
  21. package/dist/stencil.config.dev.js +17 -0
  22. package/dist/stencil.config.js +14 -19
  23. 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
  24. 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
  25. package/dist/types/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.d.ts +40 -40
  26. package/dist/types/components/casino-engagement-suite-modal-container/index.d.ts +1 -0
  27. package/dist/types/components.d.ts +16 -1
  28. package/dist/types/models/index.d.ts +8 -8
  29. package/dist/types/stencil-public-runtime.d.ts +142 -33
  30. package/loader/cdn.js +1 -3
  31. package/loader/index.cjs.js +1 -3
  32. package/loader/index.d.ts +13 -1
  33. package/loader/index.es2017.js +1 -3
  34. package/loader/index.js +1 -3
  35. package/loader/package.json +1 -0
  36. package/package.json +12 -2
  37. package/dist/casino-engagement-suite-modal-container/p-b206f149.entry.js +0 -1
  38. package/dist/casino-engagement-suite-modal-container/p-b944b831.js +0 -1
  39. package/dist/cjs/index-2394967b.js +0 -1253
  40. package/dist/components/casino-engagement-suite-modal-container.d.ts +0 -11
  41. package/dist/components/casino-engagement-suite-modal-container.js +0 -181
  42. package/dist/components/casino-engagement-suite-modal.js +0 -6
  43. package/dist/components/casino-engagement-suite-modal2.js +0 -91
  44. package/dist/components/index.d.ts +0 -26
  45. package/dist/components/index.js +0 -1
  46. package/dist/esm/index-89c6c4a4.js +0 -1226
  47. package/dist/esm/polyfills/core-js.js +0 -11
  48. package/dist/esm/polyfills/css-shim.js +0 -1
  49. package/dist/esm/polyfills/dom.js +0 -79
  50. package/dist/esm/polyfills/es5-html-element.js +0 -1
  51. package/dist/esm/polyfills/index.js +0 -34
  52. package/dist/esm/polyfills/system.js +0 -6
  53. 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 { Component, h, Prop, State, Listen, Element, Event } from '@stencil/core';
2
- import '@everymatrix/casino-engagement-suite-modal';
3
- import { translate } from '../../utils/locale.utils';
4
- import { formatBalance } from '../../utils/utils';
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
- constructor() {
7
- /**
8
- * Client custom styling via string
9
- */
10
- this.clientStyling = '';
11
- /**
12
- * Client custom styling via url
13
- */
14
- this.clientStylingUrl = '';
15
- /**
16
- * Language of the widget
17
- */
18
- this.language = 'en';
19
- this.device = 'Mobile';
20
- this.limitStylingAppends = false;
21
- this.openModals = [];
22
- this.rewardMessage = '';
23
- this.hasError = false;
24
- this.confirmationData = null;
25
- this.winAmount = { amount: 0, currency: '' };
26
- this.handleCloseClick = (e) => {
27
- const type = e.currentTarget.getAttribute('data-type');
28
- this.closeModal.emit(type);
29
- };
30
- this.handleChallengeAttendance = () => {
31
- window.postMessage({
32
- type: 'ChallengeJoinRequest',
33
- data: this.confirmationData,
34
- });
35
- };
36
- this.setClientStyling = () => {
37
- let sheet = document.createElement('style');
38
- sheet.innerHTML = this.clientStyling;
39
- this.host.prepend(sheet);
40
- };
41
- this.setClientStylingURL = () => {
42
- let url = new URL(this.clientStylingUrl);
43
- let cssFile = document.createElement('style');
44
- fetch(url.href)
45
- .then((res) => res.text())
46
- .then((data) => {
47
- cssFile.innerHTML = data;
48
- setTimeout(() => { this.host.prepend(cssFile); }, 1);
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
- this.openModals = [...this.openModals, modalType];
71
- this.rewardMessage = rewardMessage;
72
- this.hasError = hasError;
73
- if (confirmationData) {
74
- this.confirmationData = confirmationData;
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
- closeModalHandler(event) {
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
- render() {
90
- const { ProgressToActivate } = this.confirmationData || {};
91
- return (h("div", { class: `ModalContainer ${this.device}` },
92
- h("casino-engagement-suite-modal", { 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 },
93
- h("div", { slot: "body" },
94
- h("div", null,
95
- translate('won', this.language),
96
- " ",
97
- h("span", { class: 'ModalReward' }, this.rewardMessage)),
98
- this.hasError && (h("div", { class: "SupportInfo" }, translate('supportInfo', this.language)))),
99
- h("div", { slot: "footer" },
100
- h("button", { class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'REWARD_MODAL' }, translate('continue', this.language)))),
101
- h("casino-engagement-suite-modal", { 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 },
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
- h("button", { class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": 'TARGET_MODAL' },
121
- h("div", { class: 'GradientText' }, ProgressToActivate ?
122
- translate('joinReject', this.language) :
123
- translate('unJoinReject', this.language))))),
124
- h("casino-engagement-suite-modal", { 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 },
125
- h("div", { slot: "body" },
126
- h("span", null, translate('contactSupport', this.language))),
127
- h("div", { slot: "footer" },
128
- h("button", { class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'SUPPORT_MODAL' }, translate('okContinue', this.language))))));
129
- }
130
- static get is() { return "casino-engagement-suite-modal-container"; }
131
- static get encapsulation() { return "shadow"; }
132
- static get originalStyleUrls() { return {
133
- "$": ["casino-engagement-suite-modal-container.scss"]
134
- }; }
135
- static get styleUrls() { return {
136
- "$": ["casino-engagement-suite-modal-container.css"]
137
- }; }
138
- static get properties() { return {
139
- "clientStyling": {
140
- "type": "string",
141
- "mutable": false,
142
- "complexType": {
143
- "original": "string",
144
- "resolved": "string",
145
- "references": {}
146
- },
147
- "required": false,
148
- "optional": false,
149
- "docs": {
150
- "tags": [],
151
- "text": "Client custom styling via string"
152
- },
153
- "attribute": "client-styling",
154
- "reflect": true,
155
- "defaultValue": "''"
156
- },
157
- "clientStylingUrl": {
158
- "type": "string",
159
- "mutable": false,
160
- "complexType": {
161
- "original": "string",
162
- "resolved": "string",
163
- "references": {}
164
- },
165
- "required": false,
166
- "optional": false,
167
- "docs": {
168
- "tags": [],
169
- "text": "Client custom styling via url"
170
- },
171
- "attribute": "client-styling-url",
172
- "reflect": true,
173
- "defaultValue": "''"
174
- },
175
- "language": {
176
- "type": "string",
177
- "mutable": false,
178
- "complexType": {
179
- "original": "string",
180
- "resolved": "string",
181
- "references": {}
182
- },
183
- "required": false,
184
- "optional": false,
185
- "docs": {
186
- "tags": [],
187
- "text": "Language of the widget"
188
- },
189
- "attribute": "language",
190
- "reflect": false,
191
- "defaultValue": "'en'"
192
- },
193
- "isJoiningToChallenge": {
194
- "type": "boolean",
195
- "mutable": true,
196
- "complexType": {
197
- "original": "boolean",
198
- "resolved": "boolean",
199
- "references": {}
200
- },
201
- "required": false,
202
- "optional": false,
203
- "docs": {
204
- "tags": [],
205
- "text": "Is joining to challenge"
206
- },
207
- "attribute": "is-joining-to-challenge",
208
- "reflect": false
209
- },
210
- "device": {
211
- "type": "string",
212
- "mutable": false,
213
- "complexType": {
214
- "original": "\"Mobile\" | \"Tablet\" | \"Desktop\"",
215
- "resolved": "\"Desktop\" | \"Mobile\" | \"Tablet\"",
216
- "references": {}
217
- },
218
- "required": false,
219
- "optional": false,
220
- "docs": {
221
- "tags": [],
222
- "text": ""
223
- },
224
- "attribute": "device",
225
- "reflect": false,
226
- "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
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
- 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
- }
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
- const lang = customLang;
31
- return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
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
- return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
3
- .format(amount)}`;
2
+ return `${currency} ${new Intl.NumberFormat('en', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
3
+ .format(amount)}`;
4
4
  }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-89c6c4a4.js';
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 v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
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
  });