@everymatrix/casino-engagement-suite-challenges-details 1.35.0 → 1.36.1

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 (25) hide show
  1. package/dist/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.esm.js +1 -1
  2. package/dist/casino-engagement-suite-challenges-details/p-808a7dc5.js +1 -0
  3. package/dist/casino-engagement-suite-challenges-details/p-b3146c91.entry.js +1 -0
  4. package/dist/cjs/casino-engagement-suite-challenges-details.cjs.js +2 -2
  5. package/dist/cjs/casino-engagement-suite-challenges-details_2.cjs.entry.js +303 -0
  6. package/dist/cjs/{index-ec28d374.js → index-a0eb9215.js} +84 -3
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/collection/collection-manifest.json +8 -1
  9. package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.css +18 -3
  10. package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.js +119 -24
  11. package/dist/components/casino-engagement-suite-challenges-details.js +70 -19
  12. package/dist/components/casino-engagement-suite-progress-bar.js +6 -0
  13. package/dist/components/casino-engagement-suite-progress-bar2.js +94 -0
  14. package/dist/esm/casino-engagement-suite-challenges-details.js +2 -2
  15. package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +298 -0
  16. package/dist/esm/{index-13f457d0.js → index-c5abae48.js} +84 -3
  17. package/dist/esm/loader.js +2 -2
  18. package/dist/types/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.d.ts +18 -4
  19. package/dist/types/components.d.ts +17 -0
  20. package/dist/types/models/casino-challenges-details.d.ts +2 -0
  21. package/package.json +1 -1
  22. package/dist/casino-engagement-suite-challenges-details/p-27926b27.entry.js +0 -1
  23. package/dist/casino-engagement-suite-challenges-details/p-764c820d.js +0 -1
  24. package/dist/cjs/casino-engagement-suite-challenges-details.cjs.entry.js +0 -190
  25. package/dist/esm/casino-engagement-suite-challenges-details.entry.js +0 -186
@@ -129,6 +129,8 @@ button:focus {
129
129
  display: flex;
130
130
  flex-direction: row;
131
131
  align-items: center;
132
+ font-size: var(--emw--font-size-x-small, 12px);
133
+ line-height: 12px;
132
134
  color: var(--emw--color-primary-variant, #666178);
133
135
  cursor: pointer;
134
136
  }
@@ -160,6 +162,7 @@ button:focus {
160
162
  }
161
163
  .CollapseDetails .TC a {
162
164
  color: var(--emw--color-secondary, #59D1FF);
165
+ text-underline-offset: 3px;
163
166
  }
164
167
  .CollapseDetails .ChallengeGames {
165
168
  width: 100%;
@@ -201,8 +204,12 @@ button:focus {
201
204
  padding: 16px;
202
205
  border-radius: 8px;
203
206
  }
207
+ .ChallengeLevels .ChallengeLevelCard .ChallengeLevelTitle {
208
+ margin-bottom: 2px;
209
+ }
204
210
  .ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage {
205
211
  margin-top: 10px;
212
+ line-height: 15px;
206
213
  display: flex;
207
214
  flex-direction: row;
208
215
  align-items: center;
@@ -210,7 +217,6 @@ button:focus {
210
217
  }
211
218
  .ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage .CustomRewardMessage {
212
219
  font-weight: var(--emw--font-weight-semibold, 600);
213
- line-height: 15px;
214
220
  word-break: break-all;
215
221
  }
216
222
  .ChallengeLevels .InProgress {
@@ -233,6 +239,10 @@ button:focus {
233
239
  mask-composite: exclude;
234
240
  }
235
241
 
242
+ .ChallengeDetailsPopup.Tablet .ChallengeActions,
243
+ .ChallengeDetailsPopup.Desktop .ChallengeActions {
244
+ padding-top: 16px;
245
+ }
236
246
  .ChallengeDetailsPopup.Tablet .ChallengeIconButton,
237
247
  .ChallengeDetailsPopup.Desktop .ChallengeIconButton {
238
248
  width: 24px;
@@ -264,7 +274,12 @@ button:focus {
264
274
  .ChallengeDetailsPopup.Desktop .ChallengeCollapseButton {
265
275
  margin-bottom: 12px;
266
276
  }
267
- .ChallengeDetailsPopup.Tablet .ChallengeLevels .CustomRewardMessage,
268
- .ChallengeDetailsPopup.Desktop .ChallengeLevels .CustomRewardMessage {
277
+ .ChallengeDetailsPopup.Tablet .ChallengeLevels .ChallengeLevelTitle,
278
+ .ChallengeDetailsPopup.Desktop .ChallengeLevels .ChallengeLevelTitle {
279
+ margin-bottom: 4px;
280
+ }
281
+ .ChallengeDetailsPopup.Tablet .ChallengeLevels .ChallengeRewardMessage,
282
+ .ChallengeDetailsPopup.Desktop .ChallengeLevels .ChallengeRewardMessage {
283
+ margin-top: 12px;
269
284
  line-height: 17px;
270
285
  }
@@ -1,6 +1,7 @@
1
1
  import { Component, h, Prop, State, Element, Event, Watch } from '@stencil/core';
2
2
  import { translate } from '../../utils/locale.utils';
3
3
  import { ChallengeProgressStatus } from '../../models/casino-challenges-details';
4
+ import '@everymatrix/casino-engagement-suite-progress-bar';
4
5
  export class CasinoEngagementSuiteChallengesDetails {
5
6
  constructor() {
6
7
  /**
@@ -47,17 +48,54 @@ export class CasinoEngagementSuiteChallengesDetails {
47
48
  };
48
49
  this.handleCloseClick = () => {
49
50
  this.close.emit();
50
- clearInterval(this.interval);
51
- this.isExpiredChallenge = false;
52
- this.showDetails = false;
51
+ };
52
+ this.handleBackClick = () => {
53
+ this.back.emit();
54
+ };
55
+ this.onGameClick = (ev) => {
56
+ const gameSlug = ev.currentTarget.getAttribute('data-slug');
57
+ window.postMessage({ type: 'EngagementSuiteGameRedirect', Slug: gameSlug });
58
+ };
59
+ this.changeChallengeStatus = (e) => {
60
+ var _a, _b;
61
+ const id = +e.currentTarget.getAttribute('data-id');
62
+ if ((_a = this.inProgressChallenges) === null || _a === void 0 ? void 0 : _a.includes(id)) {
63
+ window.postMessage({
64
+ type: 'ShowConfirmationModal',
65
+ ProgressToDeactivate: id,
66
+ });
67
+ return;
68
+ }
69
+ if (((_b = this.inProgressChallenges) === null || _b === void 0 ? void 0 : _b.length) > 0) {
70
+ window.postMessage({
71
+ type: 'ShowConfirmationModal',
72
+ ProgressToActivate: id,
73
+ ProgressToDeactivate: this.inProgressChallenges[0],
74
+ });
75
+ return;
76
+ }
77
+ window.postMessage({
78
+ type: 'ChallengeJoinRequest',
79
+ data: {
80
+ ProgressToActivate: id,
81
+ },
82
+ });
83
+ };
84
+ this.toggle = () => {
85
+ this.showDetails = !this.showDetails;
53
86
  };
54
87
  }
55
- challengePropHandler() {
56
- this.updateTimer();
57
- this.startCountdown();
88
+ challengePropHandler(value) {
89
+ if (!this.interval && value) {
90
+ this.updateTimer();
91
+ this.startCountdown();
92
+ }
93
+ if (this.interval && !value) {
94
+ clearInterval(this.interval);
95
+ }
58
96
  }
59
97
  componentWillLoad() {
60
- this.challengePropHandler();
98
+ this.challengePropHandler(this.challenge);
61
99
  }
62
100
  componentDidRender() {
63
101
  if (!this.limitStylingAppends && this.host) {
@@ -68,9 +106,12 @@ export class CasinoEngagementSuiteChallengesDetails {
68
106
  this.limitStylingAppends = true;
69
107
  }
70
108
  }
109
+ disconnectedCallback() {
110
+ this.interval && clearInterval(this.interval);
111
+ }
71
112
  getActionsTemplate() {
72
113
  return (h("header", { class: "ChallengeActions" },
73
- h("button", { class: "ChallengeIconButton" },
114
+ h("button", { class: "ChallengeIconButton", onClick: this.handleBackClick },
74
115
  h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg", alt: "back" })),
75
116
  this.device !== 'Mobile' && h("div", { class: "ChallengePopupName" }, translate('challenges', this.language)),
76
117
  h("button", { class: "ChallengeIconButton", onClick: this.handleCloseClick },
@@ -81,8 +122,8 @@ export class CasinoEngagementSuiteChallengesDetails {
81
122
  const inProgressChallenge = this.challenge.Status === ChallengeProgressStatus.InProgress;
82
123
  return (h("div", { class: "ChallengeDetailsHeader" },
83
124
  h("span", { class: "ChallengeName" }, presentationName),
84
- h("button", { class: `ChallengeJoinButton ${inProgressChallenge ? 'Joined' : ''}
85
- ${this.isExpiredChallenge ? 'Disabled' : ''}` }, inProgressChallenge
125
+ h("button", { onClick: this.changeChallengeStatus, class: `ChallengeJoinButton ${inProgressChallenge ? 'Joined' : ''}
126
+ ${this.isExpiredChallenge || this.isJoiningToChallenge ? 'Disabled' : ''}`, "data-id": this.challenge.Id }, inProgressChallenge
86
127
  ? translate('unjoin', this.language)
87
128
  : translate('join', this.language))));
88
129
  }
@@ -98,11 +139,8 @@ export class CasinoEngagementSuiteChallengesDetails {
98
139
  description && h("span", { class: "ChallengeDescription" }, description),
99
140
  url && (h("div", { class: "TC" },
100
141
  h("a", { href: url, target: "_blank" }, translate('tc', this.language)))),
101
- (games === null || games === void 0 ? void 0 : games.length) && (h("div", { class: "ChallengeGames" }, games.map((game) => (h("div", { class: "Game" },
102
- h("img", { src: game.GameIcon, alt: game.GameName, onClick: () => this.onGameClick(game.GameSlug), class: `${game.GameSlug === this.gameSlug ? 'Disabled' : ''}` }))))))));
103
- }
104
- onGameClick(gameSlug) {
105
- window.postMessage({ type: 'GameClick', slug: gameSlug });
142
+ (games === null || games === void 0 ? void 0 : games.length) && (h("div", { class: "ChallengeGames" }, games.map((game) => (h("div", { class: "Game", key: game.CasinoGameId },
143
+ h("img", { src: game.GameIcon, alt: game.GameName, onClick: this.onGameClick, class: `${game.GameSlug === this.gameSlug ? 'Disabled' : ''}`, "data-slug": game.GameSlug }))))))));
106
144
  }
107
145
  startCountdown() {
108
146
  this.interval = setInterval(() => {
@@ -130,7 +168,7 @@ export class CasinoEngagementSuiteChallengesDetails {
130
168
  : `${days}d:${hours}h:${minutes}m`;
131
169
  }
132
170
  getLevelTarget(level) {
133
- let levelTarget = `${translate('place', this.language)} ${level.TargetTurnover}`;
171
+ let levelTarget = `${translate('place', this.language)} ${level.DisplayCurrencyTargetTurnover}`;
134
172
  if (level.LevelTargetType === 1) {
135
173
  levelTarget += ` ${translate('bet', this.language)}`;
136
174
  }
@@ -140,13 +178,19 @@ export class CasinoEngagementSuiteChallengesDetails {
140
178
  return (h("span", { class: "ChallengeLevelTarget" }, levelTarget));
141
179
  }
142
180
  getChallengeLevels() {
143
- return (h("div", { class: "ChallengeLevels" }, this.challenge.LevelProgresses.map((level, index) => (h("div", { class: `ChallengeLevelCard ${level.ProgressStatus === 1 ? 'InProgress' : ''}` },
144
- h("div", { class: "ChallengeLevelHeader" },
145
- h("span", null,
146
- "Level ",
147
- index + 1,
148
- ": "),
149
- this.getLevelTarget(level)),
181
+ const isChallengePaused = this.challenge.Status === ChallengeProgressStatus.Started
182
+ && this.challenge.LevelProgresses[0].ProgressPercentage > 0;
183
+ const getClass = (level) => {
184
+ return `ChallengeLevelCard ${(level.ProgressStatus === 1 && !this.isExpiredChallenge && !isChallengePaused) ? 'InProgress' : ''}`;
185
+ };
186
+ return (h("div", { class: "ChallengeLevels" }, this.challenge.LevelProgresses.map((level, index) => (h("div", { class: getClass(level) },
187
+ h("casino-engagement-suite-progress-bar", { class: this.device, value: level.ProgressPercentage, "hide-percent": level.ProgressPercentage === 0 || level.ProgressPercentage === 100, disabled: this.isExpiredChallenge || isChallengePaused },
188
+ h("span", { slot: "Title", class: "ChallengeLevelTitle" },
189
+ h("span", null,
190
+ "Level ",
191
+ index + 1,
192
+ ": "),
193
+ this.getLevelTarget(level))),
150
194
  h("div", { class: "ChallengeRewardMessage" },
151
195
  h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/reward.svg", alt: "win" }),
152
196
  h("span", null,
@@ -155,7 +199,7 @@ export class CasinoEngagementSuiteChallengesDetails {
155
199
  h("span", { class: "CustomRewardMessage" }, level.CustomRewardMessage)))))));
156
200
  }
157
201
  getToggleButton() {
158
- return (h("div", { class: "ChallengeCollapseButton", onClick: () => this.showDetails = !this.showDetails },
202
+ return (h("div", { class: "ChallengeCollapseButton", onClick: this.toggle },
159
203
  h("span", { class: `Toggle ${this.showDetails ? 'Closed' : 'Open'}` }),
160
204
  h("span", null, translate('details', this.language))));
161
205
  }
@@ -234,6 +278,25 @@ export class CasinoEngagementSuiteChallengesDetails {
234
278
  "text": "Selected challenge"
235
279
  }
236
280
  },
281
+ "inProgressChallenges": {
282
+ "type": "unknown",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "Array<number>",
286
+ "resolved": "number[]",
287
+ "references": {
288
+ "Array": {
289
+ "location": "global"
290
+ }
291
+ }
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": "Active challenges"
298
+ }
299
+ },
237
300
  "language": {
238
301
  "type": "string",
239
302
  "mutable": false,
@@ -287,6 +350,23 @@ export class CasinoEngagementSuiteChallengesDetails {
287
350
  "attribute": "device",
288
351
  "reflect": false,
289
352
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
353
+ },
354
+ "isJoiningToChallenge": {
355
+ "type": "boolean",
356
+ "mutable": true,
357
+ "complexType": {
358
+ "original": "boolean",
359
+ "resolved": "boolean",
360
+ "references": {}
361
+ },
362
+ "required": false,
363
+ "optional": false,
364
+ "docs": {
365
+ "tags": [],
366
+ "text": "Is joining to challenge"
367
+ },
368
+ "attribute": "is-joining-to-challenge",
369
+ "reflect": false
290
370
  }
291
371
  }; }
292
372
  static get states() { return {
@@ -310,6 +390,21 @@ export class CasinoEngagementSuiteChallengesDetails {
310
390
  "resolved": "void",
311
391
  "references": {}
312
392
  }
393
+ }, {
394
+ "method": "back",
395
+ "name": "back",
396
+ "bubbles": true,
397
+ "cancelable": true,
398
+ "composed": true,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": ""
402
+ },
403
+ "complexType": {
404
+ "original": "void",
405
+ "resolved": "void",
406
+ "references": {}
407
+ }
313
408
  }]; }
314
409
  static get elementRef() { return "host"; }
315
410
  static get watchers() { return [{
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './casino-engagement-suite-progress-bar2.js';
2
3
 
3
4
  const DEFAULT_LANGUAGE = 'en';
4
5
  const SUPPORTED_LANGUAGES = ['en'];
@@ -37,7 +38,7 @@ var ChallengeProgressStatus;
37
38
  ChallengeProgressStatus[ChallengeProgressStatus["Expired"] = 4] = "Expired";
38
39
  })(ChallengeProgressStatus || (ChallengeProgressStatus = {}));
39
40
 
40
- const casinoEngagementSuiteChallengesDetailsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&display=swap\"); :host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer}button:focus{outline:none}.ChallengeDetailsPopup{display:flex;height:100%;background-color:var(--emw--color-background, #1E1638);border-radius:8px;overflow:hidden;flex-direction:column;position:relative}.ChallengeActions{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.ChallengeActions .ChallengeIconButton{width:16px;height:16px;cursor:pointer}.ChallengeActions .ChallengePopupName{color:var(--emw--color-gray-100, #BBB9C3);font-size:16px;font-weight:500;line-height:16px}.ChallengeDetails{padding:0px 19px 10px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.ChallengeDetails::-webkit-scrollbar{display:none}.ChallengeDetailsHeader{display:flex;justify-content:space-between;gap:12px}.ChallengeDetailsHeader .ChallengeName{font-family:\"Montserrat\", sans-serif;font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-bold, 700);line-height:22px;color:var(--emfe-w-color-white, #FFF);word-break:break-all}.ChallengeJoinButton.Joined::before{content:\"\";position:absolute;inset:0;border-radius:var(--emw--button-border-radius, 4px);padding:1px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-mask:linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.ChallengeJoinButton{transition:all 0.5s ease-out;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:var(--emw--color-typography, #1E1638);border-radius:99px;min-width:88px;height:32px;font-size:14px;font-weight:700;position:relative;font-family:\"Montserrat\", sans-serif}.ChallengeJoinButton.Joined{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ChallengeJoinButton.Joined::before{border-radius:99px}.Disabled{opacity:0.5;pointer-events:none;cursor:auto}.ChallengeCountdown{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:12px;margin:12px 0 24px;color:var(--emw--color-gray-150, #BBB9C3)}.ChallengeCountdown.Expired{font-weight:var(--emw--font-weight-normal, 700);color:var(--emfe-w-color-white, #FFF)}.ChallengeCollapseButton{margin-bottom:14px;display:flex;flex-direction:row;align-items:center;color:var(--emw--color-primary-variant, #666178);cursor:pointer}.ChallengeCollapseButton .Toggle{width:16px;height:16px;display:block;margin-right:4px}.ChallengeCollapseButton .Closed{background:url(\"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg\") no-repeat center/contain}.ChallengeCollapseButton .Open{background:url(\"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg\") no-repeat center/contain}.CollapseDetails{display:none;font-size:var(--emw--font-size-small, 14px);line-height:17px;font-weight:var(--emw--font-weight-normal, 400)}.CollapseDetails .ChallengeDescription{color:var(--emfe-w-color-white, #FFF);margin-bottom:12px}.CollapseDetails .TC{margin:12px 0 16px}.CollapseDetails .TC a{color:var(--emw--color-secondary, #59D1FF)}.CollapseDetails .ChallengeGames{width:100%;overflow-y:auto;display:flex;gap:4px}.CollapseDetails .ChallengeGames::-webkit-scrollbar{height:2px;background:none}.CollapseDetails .ChallengeGames::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--emw--color-background, #666178)}.CollapseDetails .ChallengeGames .Game img{width:96px;height:50px;border-radius:2px;cursor:pointer}.ShowDetails{display:block}.ChallengeLevels{display:flex;flex-direction:column;gap:16px;margin-top:24px;color:var(--emw--color-primary, #8F8B9C);font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-normal, 400);line-height:12px}.ChallengeLevels .ChallengeLevelCard{border:1px solid var(--emw--button-border-color, #403956);padding:16px;border-radius:8px}.ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage{margin-top:10px;display:flex;flex-direction:row;align-items:center;gap:4px}.ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage .CustomRewardMessage{font-weight:var(--emw--font-weight-semibold, 600);line-height:15px;word-break:break-all}.ChallengeLevels .InProgress{position:relative;border:none}.ChallengeLevels .InProgress .ChallengeLevelTarget,.ChallengeLevels .InProgress .CustomRewardMessage{color:var(--emfe-w-color-white, #FFF)}.ChallengeLevels .InProgress::before{content:\"\";position:absolute;inset:0;border-radius:8px;padding:1px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.ChallengeDetailsPopup.Tablet .ChallengeIconButton,.ChallengeDetailsPopup.Desktop .ChallengeIconButton{width:24px;height:24px}.ChallengeDetailsPopup.Tablet .ChallengeDetails,.ChallengeDetailsPopup.Desktop .ChallengeDetails{padding:20px 24px}.ChallengeDetailsPopup.Tablet .ChallengeName,.ChallengeDetailsPopup.Desktop .ChallengeName{line-height:27px;font-size:22px}.ChallengeDetailsPopup.Tablet .ChallengeJoinButton,.ChallengeDetailsPopup.Desktop .ChallengeJoinButton{min-width:100px;height:36px;font-size:16px}.ChallengeDetailsPopup.Tablet .ChallengeCountdown,.ChallengeDetailsPopup.Tablet .ChallengeLevels,.ChallengeDetailsPopup.Desktop .ChallengeCountdown,.ChallengeDetailsPopup.Desktop .ChallengeLevels{font-size:var(--emw--font-size-small, 14px);line-height:14px}.ChallengeDetailsPopup.Tablet .ChallengeCollapseButton,.ChallengeDetailsPopup.Desktop .ChallengeCollapseButton{margin-bottom:12px}.ChallengeDetailsPopup.Tablet .ChallengeLevels .CustomRewardMessage,.ChallengeDetailsPopup.Desktop .ChallengeLevels .CustomRewardMessage{line-height:17px}";
41
+ const casinoEngagementSuiteChallengesDetailsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&display=swap\"); :host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer}button:focus{outline:none}.ChallengeDetailsPopup{display:flex;height:100%;background-color:var(--emw--color-background, #1E1638);border-radius:8px;overflow:hidden;flex-direction:column;position:relative}.ChallengeActions{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.ChallengeActions .ChallengeIconButton{width:16px;height:16px;cursor:pointer}.ChallengeActions .ChallengePopupName{color:var(--emw--color-gray-100, #BBB9C3);font-size:16px;font-weight:500;line-height:16px}.ChallengeDetails{padding:0px 19px 10px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}.ChallengeDetails::-webkit-scrollbar{display:none}.ChallengeDetailsHeader{display:flex;justify-content:space-between;gap:12px}.ChallengeDetailsHeader .ChallengeName{font-family:\"Montserrat\", sans-serif;font-size:var(--emw--font-size-medium, 18px);font-weight:var(--emw--font-weight-bold, 700);line-height:22px;color:var(--emfe-w-color-white, #FFF);word-break:break-all}.ChallengeJoinButton.Joined::before{content:\"\";position:absolute;inset:0;border-radius:var(--emw--button-border-radius, 4px);padding:1px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-mask:linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.ChallengeJoinButton{transition:all 0.5s ease-out;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:var(--emw--color-typography, #1E1638);border-radius:99px;min-width:88px;height:32px;font-size:14px;font-weight:700;position:relative;font-family:\"Montserrat\", sans-serif}.ChallengeJoinButton.Joined{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ChallengeJoinButton.Joined::before{border-radius:99px}.Disabled{opacity:0.5;pointer-events:none;cursor:auto}.ChallengeCountdown{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:12px;margin:12px 0 24px;color:var(--emw--color-gray-150, #BBB9C3)}.ChallengeCountdown.Expired{font-weight:var(--emw--font-weight-normal, 700);color:var(--emfe-w-color-white, #FFF)}.ChallengeCollapseButton{margin-bottom:14px;display:flex;flex-direction:row;align-items:center;font-size:var(--emw--font-size-x-small, 12px);line-height:12px;color:var(--emw--color-primary-variant, #666178);cursor:pointer}.ChallengeCollapseButton .Toggle{width:16px;height:16px;display:block;margin-right:4px}.ChallengeCollapseButton .Closed{background:url(\"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg\") no-repeat center/contain}.ChallengeCollapseButton .Open{background:url(\"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg\") no-repeat center/contain}.CollapseDetails{display:none;font-size:var(--emw--font-size-small, 14px);line-height:17px;font-weight:var(--emw--font-weight-normal, 400)}.CollapseDetails .ChallengeDescription{color:var(--emfe-w-color-white, #FFF);margin-bottom:12px}.CollapseDetails .TC{margin:12px 0 16px}.CollapseDetails .TC a{color:var(--emw--color-secondary, #59D1FF);text-underline-offset:3px}.CollapseDetails .ChallengeGames{width:100%;overflow-y:auto;display:flex;gap:4px}.CollapseDetails .ChallengeGames::-webkit-scrollbar{height:2px;background:none}.CollapseDetails .ChallengeGames::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--emw--color-background, #666178)}.CollapseDetails .ChallengeGames .Game img{width:96px;height:50px;border-radius:2px;cursor:pointer}.ShowDetails{display:block}.ChallengeLevels{display:flex;flex-direction:column;gap:16px;margin-top:24px;color:var(--emw--color-primary, #8F8B9C);font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-normal, 400);line-height:12px}.ChallengeLevels .ChallengeLevelCard{border:1px solid var(--emw--button-border-color, #403956);padding:16px;border-radius:8px}.ChallengeLevels .ChallengeLevelCard .ChallengeLevelTitle{margin-bottom:2px}.ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage{margin-top:10px;line-height:15px;display:flex;flex-direction:row;align-items:center;gap:4px}.ChallengeLevels .ChallengeLevelCard .ChallengeRewardMessage .CustomRewardMessage{font-weight:var(--emw--font-weight-semibold, 600);word-break:break-all}.ChallengeLevels .InProgress{position:relative;border:none}.ChallengeLevels .InProgress .ChallengeLevelTarget,.ChallengeLevels .InProgress .CustomRewardMessage{color:var(--emfe-w-color-white, #FFF)}.ChallengeLevels .InProgress::before{content:\"\";position:absolute;inset:0;border-radius:8px;padding:1px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.ChallengeDetailsPopup.Tablet .ChallengeActions,.ChallengeDetailsPopup.Desktop .ChallengeActions{padding-top:16px}.ChallengeDetailsPopup.Tablet .ChallengeIconButton,.ChallengeDetailsPopup.Desktop .ChallengeIconButton{width:24px;height:24px}.ChallengeDetailsPopup.Tablet .ChallengeDetails,.ChallengeDetailsPopup.Desktop .ChallengeDetails{padding:20px 24px}.ChallengeDetailsPopup.Tablet .ChallengeName,.ChallengeDetailsPopup.Desktop .ChallengeName{line-height:27px;font-size:22px}.ChallengeDetailsPopup.Tablet .ChallengeJoinButton,.ChallengeDetailsPopup.Desktop .ChallengeJoinButton{min-width:100px;height:36px;font-size:16px}.ChallengeDetailsPopup.Tablet .ChallengeCountdown,.ChallengeDetailsPopup.Tablet .ChallengeLevels,.ChallengeDetailsPopup.Desktop .ChallengeCountdown,.ChallengeDetailsPopup.Desktop .ChallengeLevels{font-size:var(--emw--font-size-small, 14px);line-height:14px}.ChallengeDetailsPopup.Tablet .ChallengeCollapseButton,.ChallengeDetailsPopup.Desktop .ChallengeCollapseButton{margin-bottom:12px}.ChallengeDetailsPopup.Tablet .ChallengeLevels .ChallengeLevelTitle,.ChallengeDetailsPopup.Desktop .ChallengeLevels .ChallengeLevelTitle{margin-bottom:4px}.ChallengeDetailsPopup.Tablet .ChallengeLevels .ChallengeRewardMessage,.ChallengeDetailsPopup.Desktop .ChallengeLevels .ChallengeRewardMessage{margin-top:12px;line-height:17px}";
41
42
 
42
43
  const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
43
44
  constructor() {
@@ -45,6 +46,7 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
45
46
  this.__registerHost();
46
47
  this.__attachShadow();
47
48
  this.close = createEvent(this, "close", 7);
49
+ this.back = createEvent(this, "back", 7);
48
50
  /**
49
51
  * Client custom styling via string
50
52
  */
@@ -89,17 +91,54 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
89
91
  };
90
92
  this.handleCloseClick = () => {
91
93
  this.close.emit();
92
- clearInterval(this.interval);
93
- this.isExpiredChallenge = false;
94
- this.showDetails = false;
94
+ };
95
+ this.handleBackClick = () => {
96
+ this.back.emit();
97
+ };
98
+ this.onGameClick = (ev) => {
99
+ const gameSlug = ev.currentTarget.getAttribute('data-slug');
100
+ window.postMessage({ type: 'EngagementSuiteGameRedirect', Slug: gameSlug });
101
+ };
102
+ this.changeChallengeStatus = (e) => {
103
+ var _a, _b;
104
+ const id = +e.currentTarget.getAttribute('data-id');
105
+ if ((_a = this.inProgressChallenges) === null || _a === void 0 ? void 0 : _a.includes(id)) {
106
+ window.postMessage({
107
+ type: 'ShowConfirmationModal',
108
+ ProgressToDeactivate: id,
109
+ });
110
+ return;
111
+ }
112
+ if (((_b = this.inProgressChallenges) === null || _b === void 0 ? void 0 : _b.length) > 0) {
113
+ window.postMessage({
114
+ type: 'ShowConfirmationModal',
115
+ ProgressToActivate: id,
116
+ ProgressToDeactivate: this.inProgressChallenges[0],
117
+ });
118
+ return;
119
+ }
120
+ window.postMessage({
121
+ type: 'ChallengeJoinRequest',
122
+ data: {
123
+ ProgressToActivate: id,
124
+ },
125
+ });
126
+ };
127
+ this.toggle = () => {
128
+ this.showDetails = !this.showDetails;
95
129
  };
96
130
  }
97
- challengePropHandler() {
98
- this.updateTimer();
99
- this.startCountdown();
131
+ challengePropHandler(value) {
132
+ if (!this.interval && value) {
133
+ this.updateTimer();
134
+ this.startCountdown();
135
+ }
136
+ if (this.interval && !value) {
137
+ clearInterval(this.interval);
138
+ }
100
139
  }
101
140
  componentWillLoad() {
102
- this.challengePropHandler();
141
+ this.challengePropHandler(this.challenge);
103
142
  }
104
143
  componentDidRender() {
105
144
  if (!this.limitStylingAppends && this.host) {
@@ -110,14 +149,17 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
110
149
  this.limitStylingAppends = true;
111
150
  }
112
151
  }
152
+ disconnectedCallback() {
153
+ this.interval && clearInterval(this.interval);
154
+ }
113
155
  getActionsTemplate() {
114
- return (h("header", { class: "ChallengeActions" }, h("button", { class: "ChallengeIconButton" }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg", alt: "back" })), this.device !== 'Mobile' && h("div", { class: "ChallengePopupName" }, translate('challenges', this.language)), h("button", { class: "ChallengeIconButton", onClick: this.handleCloseClick }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg", alt: "close" }))));
156
+ return (h("header", { class: "ChallengeActions" }, h("button", { class: "ChallengeIconButton", onClick: this.handleBackClick }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg", alt: "back" })), this.device !== 'Mobile' && h("div", { class: "ChallengePopupName" }, translate('challenges', this.language)), h("button", { class: "ChallengeIconButton", onClick: this.handleCloseClick }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg", alt: "close" }))));
115
157
  }
116
158
  getChallengeHeader() {
117
159
  const presentationName = this.challenge.ChallengePresentation.PresentationName;
118
160
  const inProgressChallenge = this.challenge.Status === ChallengeProgressStatus.InProgress;
119
- return (h("div", { class: "ChallengeDetailsHeader" }, h("span", { class: "ChallengeName" }, presentationName), h("button", { class: `ChallengeJoinButton ${inProgressChallenge ? 'Joined' : ''}
120
- ${this.isExpiredChallenge ? 'Disabled' : ''}` }, inProgressChallenge
161
+ return (h("div", { class: "ChallengeDetailsHeader" }, h("span", { class: "ChallengeName" }, presentationName), h("button", { onClick: this.changeChallengeStatus, class: `ChallengeJoinButton ${inProgressChallenge ? 'Joined' : ''}
162
+ ${this.isExpiredChallenge || this.isJoiningToChallenge ? 'Disabled' : ''}`, "data-id": this.challenge.Id }, inProgressChallenge
121
163
  ? translate('unjoin', this.language)
122
164
  : translate('join', this.language))));
123
165
  }
@@ -129,10 +171,7 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
129
171
  const description = this.challenge.ChallengePresentation.Description;
130
172
  const url = this.challenge.ChallengePresentation.Url;
131
173
  const games = this.challenge.Games;
132
- return (h("div", { class: `CollapseDetails ${this.showDetails ? 'ShowDetails' : ''}` }, description && h("span", { class: "ChallengeDescription" }, description), url && (h("div", { class: "TC" }, h("a", { href: url, target: "_blank" }, translate('tc', this.language)))), (games === null || games === void 0 ? void 0 : games.length) && (h("div", { class: "ChallengeGames" }, games.map((game) => (h("div", { class: "Game" }, h("img", { src: game.GameIcon, alt: game.GameName, onClick: () => this.onGameClick(game.GameSlug), class: `${game.GameSlug === this.gameSlug ? 'Disabled' : ''}` }))))))));
133
- }
134
- onGameClick(gameSlug) {
135
- window.postMessage({ type: 'GameClick', slug: gameSlug });
174
+ return (h("div", { class: `CollapseDetails ${this.showDetails ? 'ShowDetails' : ''}` }, description && h("span", { class: "ChallengeDescription" }, description), url && (h("div", { class: "TC" }, h("a", { href: url, target: "_blank" }, translate('tc', this.language)))), (games === null || games === void 0 ? void 0 : games.length) && (h("div", { class: "ChallengeGames" }, games.map((game) => (h("div", { class: "Game", key: game.CasinoGameId }, h("img", { src: game.GameIcon, alt: game.GameName, onClick: this.onGameClick, class: `${game.GameSlug === this.gameSlug ? 'Disabled' : ''}`, "data-slug": game.GameSlug }))))))));
136
175
  }
137
176
  startCountdown() {
138
177
  this.interval = setInterval(() => {
@@ -160,7 +199,7 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
160
199
  : `${days}d:${hours}h:${minutes}m`;
161
200
  }
162
201
  getLevelTarget(level) {
163
- let levelTarget = `${translate('place', this.language)} ${level.TargetTurnover}`;
202
+ let levelTarget = `${translate('place', this.language)} ${level.DisplayCurrencyTargetTurnover}`;
164
203
  if (level.LevelTargetType === 1) {
165
204
  levelTarget += ` ${translate('bet', this.language)}`;
166
205
  }
@@ -170,10 +209,15 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
170
209
  return (h("span", { class: "ChallengeLevelTarget" }, levelTarget));
171
210
  }
172
211
  getChallengeLevels() {
173
- return (h("div", { class: "ChallengeLevels" }, this.challenge.LevelProgresses.map((level, index) => (h("div", { class: `ChallengeLevelCard ${level.ProgressStatus === 1 ? 'InProgress' : ''}` }, h("div", { class: "ChallengeLevelHeader" }, h("span", null, "Level ", index + 1, ": "), this.getLevelTarget(level)), h("div", { class: "ChallengeRewardMessage" }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/reward.svg", alt: "win" }), h("span", null, translate('win', this.language), ": "), h("span", { class: "CustomRewardMessage" }, level.CustomRewardMessage)))))));
212
+ const isChallengePaused = this.challenge.Status === ChallengeProgressStatus.Started
213
+ && this.challenge.LevelProgresses[0].ProgressPercentage > 0;
214
+ const getClass = (level) => {
215
+ return `ChallengeLevelCard ${(level.ProgressStatus === 1 && !this.isExpiredChallenge && !isChallengePaused) ? 'InProgress' : ''}`;
216
+ };
217
+ return (h("div", { class: "ChallengeLevels" }, this.challenge.LevelProgresses.map((level, index) => (h("div", { class: getClass(level) }, h("casino-engagement-suite-progress-bar", { class: this.device, value: level.ProgressPercentage, "hide-percent": level.ProgressPercentage === 0 || level.ProgressPercentage === 100, disabled: this.isExpiredChallenge || isChallengePaused }, h("span", { slot: "Title", class: "ChallengeLevelTitle" }, h("span", null, "Level ", index + 1, ": "), this.getLevelTarget(level))), h("div", { class: "ChallengeRewardMessage" }, h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/reward.svg", alt: "win" }), h("span", null, translate('win', this.language), ": "), h("span", { class: "CustomRewardMessage" }, level.CustomRewardMessage)))))));
174
218
  }
175
219
  getToggleButton() {
176
- return (h("div", { class: "ChallengeCollapseButton", onClick: () => this.showDetails = !this.showDetails }, h("span", { class: `Toggle ${this.showDetails ? 'Closed' : 'Open'}` }), h("span", null, translate('details', this.language))));
220
+ return (h("div", { class: "ChallengeCollapseButton", onClick: this.toggle }, h("span", { class: `Toggle ${this.showDetails ? 'Closed' : 'Open'}` }), h("span", null, translate('details', this.language))));
177
221
  }
178
222
  render() {
179
223
  return h("div", { class: `ChallengeDetailsPopup ${this.device}` }, this.getActionsTemplate(), h("div", { class: "ChallengeDetails" }, this.getChallengeHeader(), this.getChallengeCountdown(), this.getToggleButton(), this.getChallengeDetails(), this.getChallengeLevels()));
@@ -187,9 +231,11 @@ const CasinoEngagementSuiteChallengesDetails$1 = /*@__PURE__*/ proxyCustomElemen
187
231
  "clientStyling": [513, "client-styling"],
188
232
  "clientStylingUrl": [513, "client-styling-url"],
189
233
  "challenge": [16],
234
+ "inProgressChallenges": [16],
190
235
  "language": [1],
191
236
  "gameSlug": [1, "game-slug"],
192
237
  "device": [1],
238
+ "isJoiningToChallenge": [1028, "is-joining-to-challenge"],
193
239
  "limitStylingAppends": [32],
194
240
  "timer": [32],
195
241
  "showDetails": [32],
@@ -199,13 +245,18 @@ function defineCustomElement$1() {
199
245
  if (typeof customElements === "undefined") {
200
246
  return;
201
247
  }
202
- const components = ["casino-engagement-suite-challenges-details"];
248
+ const components = ["casino-engagement-suite-challenges-details", "casino-engagement-suite-progress-bar"];
203
249
  components.forEach(tagName => { switch (tagName) {
204
250
  case "casino-engagement-suite-challenges-details":
205
251
  if (!customElements.get(tagName)) {
206
252
  customElements.define(tagName, CasinoEngagementSuiteChallengesDetails$1);
207
253
  }
208
254
  break;
255
+ case "casino-engagement-suite-progress-bar":
256
+ if (!customElements.get(tagName)) {
257
+ defineCustomElement$2();
258
+ }
259
+ break;
209
260
  } });
210
261
  }
211
262
 
@@ -0,0 +1,6 @@
1
+ import { C as CasinoEngagementSuiteProgressBar$1, d as defineCustomElement$1 } from './casino-engagement-suite-progress-bar2.js';
2
+
3
+ const CasinoEngagementSuiteProgressBar = CasinoEngagementSuiteProgressBar$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { CasinoEngagementSuiteProgressBar, defineCustomElement };
@@ -0,0 +1,94 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:14px;line-height:14px}.ProgressBarBackground{height:8px;background-color:var(--emw--color-background, #666178);border-radius:4px;position:relative}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);transition:width ease-out 0.3s}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:700;font-size:12px;line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-background, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
4
+
5
+ const CasinoEngagementSuiteProgressBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ /**
11
+ * Value for the widget
12
+ */
13
+ this.value = 0;
14
+ /**
15
+ * Shows disabled styles
16
+ */
17
+ this.disabled = false;
18
+ /**
19
+ * Hide percent value
20
+ */
21
+ this.hidePercent = false;
22
+ /**
23
+ * Client custom styling via string
24
+ */
25
+ this.clientStyling = '';
26
+ /**
27
+ * Client custom styling via url
28
+ */
29
+ this.clientStylingUrl = '';
30
+ this.limitStylingAppends = false;
31
+ this.setClientStyling = () => {
32
+ let sheet = document.createElement('style');
33
+ sheet.innerHTML = this.clientStyling;
34
+ this.host.prepend(sheet);
35
+ };
36
+ this.setClientStylingURL = () => {
37
+ let url = new URL(this.clientStylingUrl);
38
+ let cssFile = document.createElement('style');
39
+ fetch(url.href)
40
+ .then((res) => res.text())
41
+ .then((data) => {
42
+ cssFile.innerHTML = data;
43
+ setTimeout(() => { this.host.prepend(cssFile); }, 1);
44
+ })
45
+ .catch((err) => {
46
+ console.log('Error ', err);
47
+ });
48
+ };
49
+ }
50
+ componentDidRender() {
51
+ if (!this.limitStylingAppends && this.host) {
52
+ if (this.clientStyling)
53
+ this.setClientStyling();
54
+ if (this.clientStylingUrl)
55
+ this.setClientStylingURL();
56
+ this.limitStylingAppends = true;
57
+ }
58
+ }
59
+ getProgressBarClasses() {
60
+ return {
61
+ ProgressBar: true,
62
+ Completed: this.value === 100,
63
+ Disabled: this.disabled,
64
+ HidePercent: this.hidePercent
65
+ };
66
+ }
67
+ render() {
68
+ return h("div", { class: this.getProgressBarClasses(), part: "ProgressBar" }, h("div", { class: "ProgressBarInfo", part: "ProgressBarInfo" }, h("slot", { name: "Title" }, h("div", null)), h("slot", { name: "Percent" }, h("div", { class: "ProgressBarPercent", part: "ProgressBarPercent" }, this.value, "%"))), h("div", { class: "ProgressBarBackground", part: "ProgressBarBackground" }, h("div", { class: "ProgressBarLine", part: "ProgressBarLine", style: { width: this.value + '%' } })));
69
+ }
70
+ get host() { return this; }
71
+ static get style() { return casinoEngagementSuiteProgressBarCss; }
72
+ }, [1, "casino-engagement-suite-progress-bar", {
73
+ "value": [2],
74
+ "disabled": [4],
75
+ "hidePercent": [4, "hide-percent"],
76
+ "clientStyling": [513, "client-styling"],
77
+ "clientStylingUrl": [513, "client-styling-url"],
78
+ "limitStylingAppends": [32]
79
+ }]);
80
+ function defineCustomElement() {
81
+ if (typeof customElements === "undefined") {
82
+ return;
83
+ }
84
+ const components = ["casino-engagement-suite-progress-bar"];
85
+ components.forEach(tagName => { switch (tagName) {
86
+ case "casino-engagement-suite-progress-bar":
87
+ if (!customElements.get(tagName)) {
88
+ customElements.define(tagName, CasinoEngagementSuiteProgressBar);
89
+ }
90
+ break;
91
+ } });
92
+ }
93
+
94
+ export { CasinoEngagementSuiteProgressBar as C, defineCustomElement as d };
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-13f457d0.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c5abae48.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["casino-engagement-suite-challenges-details",[[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]}]]]], options);
16
+ return bootstrapLazy([["casino-engagement-suite-challenges-details_2",[[1,"casino-engagement-suite-challenges-details",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"inProgressChallenges":[16],"language":[1],"gameSlug":[1,"game-slug"],"device":[1],"isJoiningToChallenge":[1028,"is-joining-to-challenge"],"limitStylingAppends":[32],"timer":[32],"showDetails":[32],"isExpiredChallenge":[32]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
17
17
  });