@everymatrix/casino-challenges-overlay 0.22.29 → 0.22.31

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.
@@ -1 +1 @@
1
- export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-8a765607.js";import"./index-58f943ea.js";
1
+ export{C as CasinoChallengesOverlay}from"./casino-challenges-overlay-97159a90.js";import"./index-58f943ea.js";
@@ -3,11 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-98384ab0.js');
6
- const casinoChallengesOverlay = require('./casino-challenges-overlay-c00e3b15.js');
6
+ const casinoChallengesOverlay = require('./casino-challenges-overlay-ae870ca3.js');
7
7
 
8
8
  const DEFAULT_LANGUAGE$3 = 'en';
9
9
  const TRANSLATIONS$3 = {
10
10
  en: {
11
+ level: 'Level',
11
12
  levels: 'Levels',
12
13
  seeAll: 'See All',
13
14
  games: 'Games',
@@ -2638,7 +2639,7 @@ const CasinoChallengeDetailsLevels = class {
2638
2639
  }
2639
2640
  render() {
2640
2641
  var _a, _b;
2641
- return (index.h(index.Host, { key: '6fb977a939b727af9277cd332ff105be64cb7f00' }, index.h("div", { key: '99dbdaadc719c8b4b6fd52586bd76ee19a9ae5c3', class: { Mobile: this.isMobile, 'levels-tab tab': true, visible: this.open }, ref: (el) => (this.scrollContainerRef = el) }, (_b = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses) === null || _b === void 0 ? void 0 : _b.map((level, index$1) => {
2642
+ return (index.h(index.Host, { key: '38d0f55c09671b1e45d72d1f563325b0c8d726ac' }, index.h("div", { key: 'd18394482ac2ec1a2fc52d08dd5660f5ecef7ad2', class: { Mobile: this.isMobile, 'levels-tab tab': true, visible: this.open }, ref: (el) => (this.scrollContainerRef = el) }, (_b = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses) === null || _b === void 0 ? void 0 : _b.map((level, index$1) => {
2642
2643
  var _a, _b, _c, _d, _e, _f, _g, _h;
2643
2644
  const activeChallenge = [0, 1, 2, 3].includes((_a = this === null || this === void 0 ? void 0 : this.challenge) === null || _a === void 0 ? void 0 : _a.Status) && !this.isChallengePaused;
2644
2645
  const isGrayed = ((_b = this.challenge) === null || _b === void 0 ? void 0 : _b.Status) === EChallengeProgressStatus$2.Forfeited ||
@@ -2659,7 +2660,7 @@ const CasinoChallengeDetailsLevels = class {
2659
2660
  completed: activeChallenge && level.ProgressStatus === EChallengeProgressLevelStatus$2.Completed
2660
2661
  }, ref: isActiveMatch ? (el) => (this.activeEntityRef = el) : undefined, key: level.LevelId }, index.h("div", { class: {
2661
2662
  level__title: true
2662
- } }, index.h("span", null, "Level ", index$1 + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language, true)), level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && (index.h("div", { class: "level__progress" }, index.h("casino-challenge-level-progress-bar", { height: "8px", value: level.ProgressPercentage, active: activeChallenge }))), index.h("casino-challenge-expandable-paragraph", { "max-height": "42", active: level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && activeChallenge, style: { width: '100%' } }, index.h("div", { class: {
2663
+ } }, index.h("span", null, translate$3('level', this.language), " ", index$1 + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language, true)), level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && (index.h("div", { class: "level__progress" }, index.h("casino-challenge-level-progress-bar", { height: "8px", value: level.ProgressPercentage, active: activeChallenge }))), index.h("casino-challenge-expandable-paragraph", { "max-height": "42", active: level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && activeChallenge, style: { width: '100%' } }, index.h("div", { class: {
2663
2664
  level__bonus: true
2664
2665
  } }, index.h("span", { class: "level__icon" }, index.h("img", { class: {
2665
2666
  grayed: isGrayed
@@ -2860,15 +2861,16 @@ const CasinoChallengeDetailsRules = class {
2860
2861
  return `${(_a = range.Min) !== null && _a !== void 0 ? _a : fallbackMin} - ${(_b = range.Max) !== null && _b !== void 0 ? _b : this.maxSelections}`;
2861
2862
  }
2862
2863
  render() {
2863
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
2864
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
2864
2865
  const contributionType = this.getContributionType((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.ContributedBy);
2865
2866
  const contributionRule = this.getContributionRule((_b = this.challenge) === null || _b === void 0 ? void 0 : _b.IsContributeToOne);
2866
2867
  const isSportsbook = ((_c = this.challenge) === null || _c === void 0 ? void 0 : _c.ContributedFrom) === EContributedFrom$1.Sportsbook;
2867
2868
  const challengeStatusIsAllowedToOptOut = !(((_d = this.challenge) === null || _d === void 0 ? void 0 : _d.Status) === EChallengeProgressStatus$2.Started ||
2868
- ((_e = this.challenge) === null || _e === void 0 ? void 0 : _e.Status) === EChallengeProgressStatus$2.Awaiting);
2869
+ ((_e = this.challenge) === null || _e === void 0 ? void 0 : _e.Status) === EChallengeProgressStatus$2.Awaiting ||
2870
+ ((_f = this.challenge) === null || _f === void 0 ? void 0 : _f.Status) === EChallengeProgressStatus$2.Expired);
2869
2871
  const showOptOutBlock = this.challenge && challengeStatusIsAllowedToOptOut && !this.isOptedOut;
2870
- return (index.h(index.Host, { key: 'c4dce2f118ce8a523d2703e424668d28de9b9bf6' }, index.h("div", { key: '5dd54a92df2a03dbbd9a6583319320cc1982533b', class: { Mobile: this.isMobile, 'rules-tab tab': true, visible: this.open } }, ((_g = (_f = this.challenge) === null || _f === void 0 ? void 0 : _f.ChallengePresentation) === null || _g === void 0 ? void 0 : _g.Description) && (index.h("div", { key: '4619713bb49ea183f8cf55af051dec08a2e056ad', class: "rule" }, (_j = (_h = this.challenge) === null || _h === void 0 ? void 0 : _h.ChallengePresentation) === null || _j === void 0 ? void 0 : _j.Description)), (((_l = (_k = this.challenge) === null || _k === void 0 ? void 0 : _k.ChallengePresentation) === null || _l === void 0 ? void 0 : _l.RulesDescription) || ((_o = (_m = this.challenge) === null || _m === void 0 ? void 0 : _m.ChallengePresentation) === null || _o === void 0 ? void 0 : _o.Url)) && (index.h("div", { key: '6cec965970c1a80131b094f903b8d2f346eac5cb' }, index.h("div", { key: 'dc1103122815b53279eb25e9a386d99f1c86d351', class: "contribution" }, index.h("span", { key: 'c1e33c5f7b639084b061270ca3a30ca58e697995', class: "contribution__label" }, translate$3('terms', this.language))), ((_q = (_p = this.challenge) === null || _p === void 0 ? void 0 : _p.ChallengePresentation) === null || _q === void 0 ? void 0 : _q.RulesDescription) && (index.h("span", { key: '13d2f91062d5874d3e46593dd95b27676e2e58f9', class: "contribution__value" }, (_s = (_r = this.challenge) === null || _r === void 0 ? void 0 : _r.ChallengePresentation) === null || _s === void 0 ? void 0 : _s.RulesDescription)), ((_u = (_t = this.challenge) === null || _t === void 0 ? void 0 : _t.ChallengePresentation) === null || _u === void 0 ? void 0 : _u.RulesDescription) &&
2871
- ((_w = (_v = this.challenge) === null || _v === void 0 ? void 0 : _v.ChallengePresentation) === null || _w === void 0 ? void 0 : _w.Url) && index.h("br", { key: '25773b8d2db9be49850e12d2118be8cfe3b988ec' }), ((_y = (_x = this.challenge) === null || _x === void 0 ? void 0 : _x.ChallengePresentation) === null || _y === void 0 ? void 0 : _y.Url) && (index.h("a", { key: '2e37b83aef992fe18dcc30e34b287f6eeb293a6e', class: "link", href: (_0 = (_z = this.challenge) === null || _z === void 0 ? void 0 : _z.ChallengePresentation) === null || _0 === void 0 ? void 0 : _0.Url, target: "_blank" }, translate$3('readFullTerms', this.language), index.h("img", { key: 'be96d5dfa751d50f0a9623482bcf32628cb1eafc', class: "icon", src: termAndConditionSvg$1 }))))), showOptOutBlock && (index.h("div", { key: '7af3705fab2ca7b0d1f2cf476cbda3f043e86f0e' }, index.h("span", { key: '4df7f8bae982b637c0536b713a158e488b1172c2', class: "contribution__value" }, translate$3('optOutLeavingText', this.language)), index.h("button", { key: 'e6763046ea7aeb0f12545a49d40ac7ddaa2f96f8', class: "opt-out-button", onClick: this.handleOpenOptOutModal }, translate$3('optOutLeavingActionText', this.language), index.h("img", { key: '7fa72591eff78c3f3973563718e4d0be3404c1c7', class: "icon", src: optOutSvg$1 })))), !isSportsbook && contributionType && (index.h("div", { key: '892f2e3905c7350c3479592c67e4368ec86d162e' }, index.h("div", { key: 'a3d8ed0446fd0dc2bdbf715d724ef412162a6bb1', class: "contribution" }, index.h("span", { key: 'cd9a75a70f1a63755dbfb3d4be066b1ac113379f', class: "contribution__label" }, translate$3('contributionType', this.language))), index.h("span", { key: '9ae3b22059bc68ed8fdc0932fa25829e832215b3', class: "contribution__value" }, contributionType))), !isSportsbook && contributionRule && (index.h("div", { key: '868b1c6cd76d90143bc8e9fb9165d057eedf87a2' }, index.h("div", { key: '90cc0030d6b9be50fcb3e37f71dc9ae1e4c95d96', class: "contribution" }, index.h("span", { key: 'b7c26cd5f1d3ebda6a09c570af6ead14376c6923', class: "contribution__label" }, translate$3('contributionTo', this.language))), index.h("span", { key: '20ba13ac30a8d0b2c7b646c82b8380606f51f4e3', class: "contribution__value" }, contributionRule))), isSportsbook && this.renderSportsbookRules())));
2872
+ return (index.h(index.Host, { key: '999dc6255c4f961131ec75ef02a6e96bccb69e5c' }, index.h("div", { key: 'fd6e0582802c7712d005059ec429557926227b90', class: { Mobile: this.isMobile, 'rules-tab tab': true, visible: this.open } }, ((_h = (_g = this.challenge) === null || _g === void 0 ? void 0 : _g.ChallengePresentation) === null || _h === void 0 ? void 0 : _h.Description) && (index.h("div", { key: '65ebd8166dbfd7478da75d2578498c34977882d9', class: "rule" }, (_k = (_j = this.challenge) === null || _j === void 0 ? void 0 : _j.ChallengePresentation) === null || _k === void 0 ? void 0 : _k.Description)), (((_m = (_l = this.challenge) === null || _l === void 0 ? void 0 : _l.ChallengePresentation) === null || _m === void 0 ? void 0 : _m.RulesDescription) || ((_p = (_o = this.challenge) === null || _o === void 0 ? void 0 : _o.ChallengePresentation) === null || _p === void 0 ? void 0 : _p.Url)) && (index.h("div", { key: 'a3aca038f5841561c291aa51b42cb1f62ec03b93' }, index.h("div", { key: 'e9ead5a1c6297460cf0748ebe5d63fb25cf0098e', class: "contribution" }, index.h("span", { key: '1a19a8535929be02070c05fe1451ac81658dc72a', class: "contribution__label" }, translate$3('terms', this.language))), ((_r = (_q = this.challenge) === null || _q === void 0 ? void 0 : _q.ChallengePresentation) === null || _r === void 0 ? void 0 : _r.RulesDescription) && (index.h("span", { key: '2e92b57ed1eefcfc7befae426d01406d6d6f73bf', class: "contribution__value" }, (_t = (_s = this.challenge) === null || _s === void 0 ? void 0 : _s.ChallengePresentation) === null || _t === void 0 ? void 0 : _t.RulesDescription)), ((_v = (_u = this.challenge) === null || _u === void 0 ? void 0 : _u.ChallengePresentation) === null || _v === void 0 ? void 0 : _v.RulesDescription) &&
2873
+ ((_x = (_w = this.challenge) === null || _w === void 0 ? void 0 : _w.ChallengePresentation) === null || _x === void 0 ? void 0 : _x.Url) && index.h("br", { key: '0367fbdedc6dcc9a8511af9570e5ea96f212e3c2' }), ((_z = (_y = this.challenge) === null || _y === void 0 ? void 0 : _y.ChallengePresentation) === null || _z === void 0 ? void 0 : _z.Url) && (index.h("a", { key: 'e23882b0aa1ed9e6a10d002d910bdd3283123f66', class: "link", href: (_1 = (_0 = this.challenge) === null || _0 === void 0 ? void 0 : _0.ChallengePresentation) === null || _1 === void 0 ? void 0 : _1.Url, target: "_blank" }, translate$3('readFullTerms', this.language), index.h("img", { key: '6b63c9ec6e15409cd10955f722e78005b0ed1a68', class: "icon", src: termAndConditionSvg$1 }))))), showOptOutBlock && (index.h("div", { key: 'c5e0ea8674bdb2e55cfff1dbbda1e055ddecc415' }, index.h("span", { key: 'c41478c3a0f552e2e6cd306ade61b7b14e3cc755', class: "contribution__value" }, translate$3('optOutLeavingText', this.language)), index.h("button", { key: '05c58b4be1c252410dd1657ac6de3b93ad0c8ed7', class: "opt-out-button", onClick: this.handleOpenOptOutModal }, translate$3('optOutLeavingActionText', this.language), index.h("img", { key: 'a9c6ee80398b27616661a739f8b7544ff8a7eb1d', class: "icon", src: optOutSvg$1 })))), !isSportsbook && contributionType && (index.h("div", { key: 'dbe7d00f854991603c8bd85f7b3b5dfb3ffdb358' }, index.h("div", { key: 'd15492372af6650fa525b97c6ecab55de630808d', class: "contribution" }, index.h("span", { key: 'c787dd700d182bec7071b58adca2d94af8abe0d8', class: "contribution__label" }, translate$3('contributionType', this.language))), index.h("span", { key: 'b54db077b10ce9945087274fb7e32952a0809abe', class: "contribution__value" }, contributionType))), !isSportsbook && contributionRule && (index.h("div", { key: '098703502cb74608fcbafcf08c34d21d20549324' }, index.h("div", { key: '7a095076bcc9dc5471efc0e7a82d53e1544b344f', class: "contribution" }, index.h("span", { key: '314dddbea5c85f3085c3eb8dcf1f22c369f47285', class: "contribution__label" }, translate$3('contributionTo', this.language))), index.h("span", { key: '8107dbe7bc6ff330ab2690329869c640a7c9a208', class: "contribution__value" }, contributionRule))), isSportsbook && this.renderSportsbookRules())));
2872
2874
  }
2873
2875
  };
2874
2876
  CasinoChallengeDetailsRules.style = CasinoChallengeDetailsRulesStyle0;
@@ -3137,16 +3139,16 @@ const CasinoChallengeDrawerHistoryItem = class {
3137
3139
  this.toggle = undefined;
3138
3140
  }
3139
3141
  renderLevel(level) {
3140
- return (index.h("div", { class: "level-container" }, index.h("div", { class: "row" }, index.h("span", { class: "col-1" }, `${translate$2('level', this.language)} ${level.OrderNumber + 1}`), index.h("span", { class: `col-1 ${level.Status === EHistoryItemLevelStatus.Forfeited ? 'errored' : ''}` }, HistoryItemLevelStatusDictionary[level.Status]), index.h("span", { class: "col-2" }, format(new Date(level.Time), 'dd/MM/yy HH:mm'))), (level === null || level === void 0 ? void 0 : level.CustomRewardMessage) && (index.h("p", { class: {
3142
+ return (index.h("div", { class: "level-container" }, index.h("div", { class: "row" }, index.h("span", { class: "col-1" }, `${translate$2('level', this.language)} ${level.OrderNumber + 1}`), index.h("span", { class: `col-1 ${level.Status === EHistoryItemLevelStatus.Forfeited ? 'errored' : ''}` }, translate$2(HistoryItemLevelStatusDictionary[level.Status].toLowerCase(), this.language)), index.h("span", { class: "col-2" }, format(new Date(level.Time), 'dd/MM/yy HH:mm'))), (level === null || level === void 0 ? void 0 : level.CustomRewardMessage) && (index.h("p", { class: {
3141
3143
  reward: true,
3142
3144
  grayed: level.Status !== EHistoryItemLevelStatus.Completed
3143
3145
  } }, index.h("img", { src: giftSvg }), level.CustomRewardMessage))));
3144
3146
  }
3145
3147
  render() {
3146
- return (index.h(index.Host, { key: '3c2f60d4327d6443ca1532f0a16e38759b1920a0' }, index.h("div", { key: '3d15e6158e3a73ef152b2a9e6d6e1fcf667660a3', class: {
3148
+ return (index.h(index.Host, { key: 'e0a9787fe6ca7f813371ed8d313c88ee0f414403' }, index.h("div", { key: '95cc16f9f9079f92e23193355c3b66b172e36049', class: {
3147
3149
  Mobile: this.isMobile,
3148
3150
  item: true
3149
- }, ref: this.itemRef }, index.h("div", { key: '9168effe013361bd306bf1492ff969835756580d', class: "header", onClick: () => this.toggle(this.index) }, index.h("div", { key: '33352fda7db60cea64dbb24ff192d27e4fa24d25' }, index.h("img", { key: '99e5e51289998b491053e0a8766ba0aad43c080e', class: "banner", src: this.historyItem.BannerUrl }), index.h("span", { key: '1dec9ee7ee974905932e4f0da87e22d67944b231' }, this.historyItem.Name)), index.h("div", { key: '312f60f7dfc7cebdc04235caad2e8a012081771b', class: "arrow" }, index.h("img", { key: 'd51d098309ca5ad9919d0ed2eee4999522f8575f', src: this.isOpen ? arrowUpSvg : arrowDownSvg }))), index.h("div", { key: '0b11a490354c07fad1ba52f32d167843846f5039', class: { open: this.isOpen, content: true } }, this.historyItem.TermsAndConditionsUrl && (index.h("a", { key: 'ae6594e99b8e6ce8317cdd35cf7c5efe239dff2b', class: "terms", href: this.historyItem.TermsAndConditionsUrl, target: "_blank" }, translate$2('terms', this.language), index.h("img", { key: '2e038f21be58716ee39d82c309e04880fb93014b', class: "icon", src: termAndConditionSvg }))), index.h("div", { key: '69764d2b8512ab92fcebe4c009ccee12d2420d57', class: "row list-header" }, index.h("span", { key: '4b79c7f4b6eb250b55355c97397d3ea290f625f7', class: "col-1" }, translate$2('level', this.language)), index.h("span", { key: 'f2255accb2edc572e554d729012404de19075e14', class: "col-1" }, translate$2('status', this.language)), index.h("span", { key: '337106504f623e789cb77353b77ad2869a7d28f7', class: "col-2" }, translate$2('time', this.language))), this.historyItem.Levels.map((level) => this.renderLevel(level))))));
3151
+ }, ref: this.itemRef }, index.h("div", { key: '291a11ae81b58d63f5929ef05bbff14beb49e3ad', class: "header", onClick: () => this.toggle(this.index) }, index.h("div", { key: '0446ba59379bfc1e52d3d047d79cba0c8131c266' }, index.h("img", { key: '996a0b1220a369f1938a0718fc53ad11c99ed90b', class: "banner", src: this.historyItem.BannerUrl }), index.h("span", { key: 'b6156328db55a18fa03841c3a1e30e86e2c6cfc1' }, this.historyItem.Name)), index.h("div", { key: '8c6eb3ed86c4d1e76409c3d77965345552c1ec1d', class: "arrow" }, index.h("img", { key: '92088c8b52a720acd1ba6a2a381d7ed1daba35ab', src: this.isOpen ? arrowUpSvg : arrowDownSvg }))), index.h("div", { key: '32c777a82327bf1baa6291680524173051453ad1', class: { open: this.isOpen, content: true } }, this.historyItem.TermsAndConditionsUrl && (index.h("a", { key: '3076334cd66fc1807622653512b7efd8d8452161', class: "terms", href: this.historyItem.TermsAndConditionsUrl, target: "_blank" }, translate$2('terms', this.language), index.h("img", { key: 'e627075d67ff1541b70eaf7c106cb1c58d1f6f92', class: "icon", src: termAndConditionSvg }))), index.h("div", { key: 'd0f6546aef8b70b455658d2eda20ca65379255fd', class: "row list-header" }, index.h("span", { key: 'ebd7cf3409c7962b9484d6dd6113505063ed8dc5', class: "col-1" }, translate$2('level', this.language)), index.h("span", { key: '6813ef88b6615d02c8b6fa0b7d1870a3eb814189', class: "col-1" }, translate$2('status', this.language)), index.h("span", { key: '7a516c198c5579c942f57af8a883736022f58813', class: "col-2" }, translate$2('time', this.language))), this.historyItem.Levels.map((level) => this.renderLevel(level))))));
3150
3152
  }
3151
3153
  };
3152
3154
  CasinoChallengeDrawerHistoryItem.style = CasinoChallengeDrawerHistoryItemStyle0;
@@ -3780,8 +3782,8 @@ const CasinoChallengesOverlayDrawer = class {
3780
3782
  setTimeout(() => (this.notification = null), 10000);
3781
3783
  };
3782
3784
  this.renderNotification = () => {
3783
- var _a, _b, _c;
3784
- return (index.h("div", { class: `notification ${((_a = this.notification) === null || _a === void 0 ? void 0 : _a.errored) ? 'errored' : ''}` }, index.h("div", { class: "row" }, index.h("img", { src: ((_b = this.notification) === null || _b === void 0 ? void 0 : _b.errored) ? errorSvg : checkSvg$1, class: "notification__icon", alt: "" }), index.h("p", { class: "notification__message" }, (_c = this.notification) === null || _c === void 0 ? void 0 : _c.message))));
3785
+ var _a, _b, _c, _d, _e, _f;
3786
+ return (index.h("div", { class: `notification ${((_a = this.notification) === null || _a === void 0 ? void 0 : _a.errored) ? 'errored' : ''}` }, index.h("div", { class: "row" }, index.h("img", { src: ((_b = this.notification) === null || _b === void 0 ? void 0 : _b.errored) ? errorSvg : checkSvg$1, class: "notification__icon", alt: "" }), index.h("p", { class: "notification__message" }, (_e = translate$2((_d = (_c = this.notification) === null || _c === void 0 ? void 0 : _c.message) !== null && _d !== void 0 ? _d : '', this.language)) !== null && _e !== void 0 ? _e : (_f = this.notification) === null || _f === void 0 ? void 0 : _f.message))));
3785
3787
  };
3786
3788
  this.renderHeader = (isMobile) => {
3787
3789
  return (index.h("div", null, index.h("h1", { class: "challenges__drawer__title" }, index.h("span", null, translate$2('title', this.language)), index.h("button", { class: "challenges__drawer__close", onClick: this.onCloseClick }, index.h("img", { src: crossSvg$1, alt: "" }))), this.enabledWidgetTabs.length > 0 && (index.h("casino-challenges-overlay-tabs", { onTabClick: this.handleTabClick, activeTabIndex: this.activeTabIndex, activeTabHasNotification: false, pendingTabHasNotification: false, language: this.language, "is-mobile": isMobile, enabledWidgetTabs: this.enabledWidgetTabs }))));
@@ -4677,7 +4679,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
4677
4679
  }, ref: isActiveMatch ? (el) => (this.activeEntityRef = el) : undefined, key: level.LevelId }, index.h("div", { class: {
4678
4680
  level__title: true,
4679
4681
  grayed: isGrayed
4680
- } }, index.h("span", null, "Level ", index$1 + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language)), index.h("div", { class: {
4682
+ } }, index.h("span", null, translate$3('level', this.language), " ", index$1 + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language)), index.h("div", { class: {
4681
4683
  level__bonus: true
4682
4684
  } }, index.h("span", { class: "level__icon" }, index.h("img", { class: {
4683
4685
  grayed: isGrayed
@@ -4760,7 +4762,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
4760
4762
  var _a, _b;
4761
4763
  const fullScreen = (this.swipping && this.progress > 0) || ((_a = this.detailsSubPageInfo) === null || _a === void 0 ? void 0 : _a.open);
4762
4764
  const footerIsVisible = !this.isMobile || (this.isMobile && fullScreen);
4763
- return (index.h("div", { key: '0beed74aabeaa6b3ac22919bcdf405fec48e20f7', class: {
4765
+ return (index.h("div", { key: '4f93fbbfc5748b9ddd3d394636735aa20996eff9', class: {
4764
4766
  Mobile: this.isMobile,
4765
4767
  swipped: (this.isMobile && this.swipping && this.progress > 0) || !this.isMobile,
4766
4768
  moved: this.progress > 0,
@@ -1053,10 +1053,13 @@ const CasinoChallengesOverlay = class {
1053
1053
  return this.completedLevelId ? 100 : this.progress;
1054
1054
  }
1055
1055
  syncDisplayedProgress() {
1056
+ var _a, _b;
1056
1057
  const target = this.getTargetProgress();
1057
1058
  const hasActiveProgress = this.inProgressCount > 0;
1058
1059
  const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
1059
1060
  this.hadActiveProgress = hasActiveProgress;
1061
+ const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
1062
+ this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
1060
1063
  const previousTarget = this.progressTarget;
1061
1064
  this.progressTarget = target;
1062
1065
  if (this.hasPendingLevelComplete) {
@@ -1070,9 +1073,9 @@ const CasinoChallengesOverlay = class {
1070
1073
  return;
1071
1074
  if (target === previousTarget && !activeProgressToggled)
1072
1075
  return;
1073
- // Only increases are animated: decreases (level reset, active challenge switch) and the
1074
- // full ring shown without active progress are applied instantly
1075
- if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
1076
+ // Only increases of the same challenge are animated: decreases (level reset), a switch of the active
1077
+ // challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
1078
+ if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
1076
1079
  this.progressAnimation.jumpToProgress(target);
1077
1080
  return;
1078
1081
  }
@@ -1175,17 +1178,17 @@ const CasinoChallengesOverlay = class {
1175
1178
  const activeProgressId = hasActiveProgress
1176
1179
  ? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
1177
1180
  : (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
1178
- return (index.h("div", { key: '174f49a7b806a895a532b0e1e53bf359f9abc3d4', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '4237b797ad185055025f41d899920f40b53eabcc', class: "container", onClick: this.handleClick }, index.h("div", { key: 'e57760df4c6f158465683ebfa7e45ab2afd11da0', class: "circle", ref: (el) => (this.circleElement = el), style: {
1181
+ return (index.h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, index.h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
1179
1182
  '--progress': `${progressPoint.angle}deg`
1180
- } }, index.h("img", { key: '5423655e18a029c1493607d6d67211ffba795c59', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
1183
+ } }, index.h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
1181
1184
  // Turns the wobble and spin around the coin drawn in the image, not the image centre
1182
- style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), index.h("div", { key: '0b65ba49f12e2cfb5196c7b24814f71c447701db', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (index.h("div", { key: 'd08d38321d23c55aaba7f6a4f3990fc3fc318e50', class: "dot", style: {
1185
+ style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), index.h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (index.h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
1183
1186
  left: `${progressPoint.x}px`,
1184
1187
  top: `${progressPoint.y}px`
1185
- } }))), hasActiveProgress && (index.h("div", { key: '7ca2960301bfb5f59ce3afac2a260cf26e48ccc3', class: {
1188
+ } }))), hasActiveProgress && (index.h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
1186
1189
  badge: true,
1187
1190
  new: this.isNew
1188
- } }, this.renderBadgeContent())), index.h("div", { key: 'f96408dcee5e1abea640a6c67c65a9dbb899f638', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), index.h("casino-challenges-overlay-modal", { key: 'a45405d907326da9b1b3ccd55085ed287ddfca4e', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (index.h("casino-challenges-overlay-drawer", { key: '43c2c0f90c5bf3b4c78aa2b66ce2e100eec05ead', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
1191
+ } }, this.renderBadgeContent())), index.h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), index.h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (index.h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
1189
1192
  }
1190
1193
  static get watchers() { return {
1191
1194
  "clientStyling": ["handleClientStylingChange"],
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoChallengesOverlay = require('./casino-challenges-overlay-c00e3b15.js');
5
+ const casinoChallengesOverlay = require('./casino-challenges-overlay-ae870ca3.js');
6
6
  require('./index-98384ab0.js');
7
7
 
8
8
 
@@ -369,10 +369,13 @@ export class CasinoChallengesOverlay {
369
369
  return this.completedLevelId ? 100 : this.progress;
370
370
  }
371
371
  syncDisplayedProgress() {
372
+ var _a, _b;
372
373
  const target = this.getTargetProgress();
373
374
  const hasActiveProgress = this.inProgressCount > 0;
374
375
  const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
375
376
  this.hadActiveProgress = hasActiveProgress;
377
+ const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
378
+ this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
376
379
  const previousTarget = this.progressTarget;
377
380
  this.progressTarget = target;
378
381
  if (this.hasPendingLevelComplete) {
@@ -386,9 +389,9 @@ export class CasinoChallengesOverlay {
386
389
  return;
387
390
  if (target === previousTarget && !activeProgressToggled)
388
391
  return;
389
- // Only increases are animated: decreases (level reset, active challenge switch) and the
390
- // full ring shown without active progress are applied instantly
391
- if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
392
+ // Only increases of the same challenge are animated: decreases (level reset), a switch of the active
393
+ // challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
394
+ if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
392
395
  this.progressAnimation.jumpToProgress(target);
393
396
  return;
394
397
  }
@@ -491,17 +494,17 @@ export class CasinoChallengesOverlay {
491
494
  const activeProgressId = hasActiveProgress
492
495
  ? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
493
496
  : (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
494
- return (h("div", { key: '174f49a7b806a895a532b0e1e53bf359f9abc3d4', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4237b797ad185055025f41d899920f40b53eabcc', class: "container", onClick: this.handleClick }, h("div", { key: 'e57760df4c6f158465683ebfa7e45ab2afd11da0', class: "circle", ref: (el) => (this.circleElement = el), style: {
497
+ return (h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
495
498
  '--progress': `${progressPoint.angle}deg`
496
- } }, h("img", { key: '5423655e18a029c1493607d6d67211ffba795c59', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIcon,
499
+ } }, h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIcon,
497
500
  // Turns the wobble and spin around the coin drawn in the image, not the image centre
498
- style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: '0b65ba49f12e2cfb5196c7b24814f71c447701db', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: 'd08d38321d23c55aaba7f6a4f3990fc3fc318e50', class: "dot", style: {
501
+ style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
499
502
  left: `${progressPoint.x}px`,
500
503
  top: `${progressPoint.y}px`
501
- } }))), hasActiveProgress && (h("div", { key: '7ca2960301bfb5f59ce3afac2a260cf26e48ccc3', class: {
504
+ } }))), hasActiveProgress && (h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
502
505
  badge: true,
503
506
  new: this.isNew
504
- } }, this.renderBadgeContent())), h("div", { key: 'f96408dcee5e1abea640a6c67c65a9dbb899f638', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: 'a45405d907326da9b1b3ccd55085ed287ddfca4e', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '43c2c0f90c5bf3b4c78aa2b66ce2e100eec05ead', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
507
+ } }, this.renderBadgeContent())), h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
505
508
  }
506
509
  static get is() { return "casino-challenges-overlay"; }
507
510
  static get encapsulation() { return "shadow"; }
@@ -1,10 +1,11 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-58f943ea.js';
2
- import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-8a765607.js';
3
- export { C as casino_challenges_overlay } from './casino-challenges-overlay-8a765607.js';
2
+ import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './casino-challenges-overlay-97159a90.js';
3
+ export { C as casino_challenges_overlay } from './casino-challenges-overlay-97159a90.js';
4
4
 
5
5
  const DEFAULT_LANGUAGE$3 = 'en';
6
6
  const TRANSLATIONS$3 = {
7
7
  en: {
8
+ level: 'Level',
8
9
  levels: 'Levels',
9
10
  seeAll: 'See All',
10
11
  games: 'Games',
@@ -2635,7 +2636,7 @@ const CasinoChallengeDetailsLevels = class {
2635
2636
  }
2636
2637
  render() {
2637
2638
  var _a, _b;
2638
- return (h(Host, { key: '6fb977a939b727af9277cd332ff105be64cb7f00' }, h("div", { key: '99dbdaadc719c8b4b6fd52586bd76ee19a9ae5c3', class: { Mobile: this.isMobile, 'levels-tab tab': true, visible: this.open }, ref: (el) => (this.scrollContainerRef = el) }, (_b = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses) === null || _b === void 0 ? void 0 : _b.map((level, index) => {
2639
+ return (h(Host, { key: '38d0f55c09671b1e45d72d1f563325b0c8d726ac' }, h("div", { key: 'd18394482ac2ec1a2fc52d08dd5660f5ecef7ad2', class: { Mobile: this.isMobile, 'levels-tab tab': true, visible: this.open }, ref: (el) => (this.scrollContainerRef = el) }, (_b = (_a = this.challenge) === null || _a === void 0 ? void 0 : _a.LevelProgresses) === null || _b === void 0 ? void 0 : _b.map((level, index) => {
2639
2640
  var _a, _b, _c, _d, _e, _f, _g, _h;
2640
2641
  const activeChallenge = [0, 1, 2, 3].includes((_a = this === null || this === void 0 ? void 0 : this.challenge) === null || _a === void 0 ? void 0 : _a.Status) && !this.isChallengePaused;
2641
2642
  const isGrayed = ((_b = this.challenge) === null || _b === void 0 ? void 0 : _b.Status) === EChallengeProgressStatus$2.Forfeited ||
@@ -2656,7 +2657,7 @@ const CasinoChallengeDetailsLevels = class {
2656
2657
  completed: activeChallenge && level.ProgressStatus === EChallengeProgressLevelStatus$2.Completed
2657
2658
  }, ref: isActiveMatch ? (el) => (this.activeEntityRef = el) : undefined, key: level.LevelId }, h("div", { class: {
2658
2659
  level__title: true
2659
- } }, h("span", null, "Level ", index + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language, true)), level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && (h("div", { class: "level__progress" }, h("casino-challenge-level-progress-bar", { height: "8px", value: level.ProgressPercentage, active: activeChallenge }))), h("casino-challenge-expandable-paragraph", { "max-height": "42", active: level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && activeChallenge, style: { width: '100%' } }, h("div", { class: {
2660
+ } }, h("span", null, translate$3('level', this.language), " ", index + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language, true)), level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && (h("div", { class: "level__progress" }, h("casino-challenge-level-progress-bar", { height: "8px", value: level.ProgressPercentage, active: activeChallenge }))), h("casino-challenge-expandable-paragraph", { "max-height": "42", active: level.ProgressStatus === EChallengeProgressLevelStatus$2.InProgress && activeChallenge, style: { width: '100%' } }, h("div", { class: {
2660
2661
  level__bonus: true
2661
2662
  } }, h("span", { class: "level__icon" }, h("img", { class: {
2662
2663
  grayed: isGrayed
@@ -2857,15 +2858,16 @@ const CasinoChallengeDetailsRules = class {
2857
2858
  return `${(_a = range.Min) !== null && _a !== void 0 ? _a : fallbackMin} - ${(_b = range.Max) !== null && _b !== void 0 ? _b : this.maxSelections}`;
2858
2859
  }
2859
2860
  render() {
2860
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
2861
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
2861
2862
  const contributionType = this.getContributionType((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.ContributedBy);
2862
2863
  const contributionRule = this.getContributionRule((_b = this.challenge) === null || _b === void 0 ? void 0 : _b.IsContributeToOne);
2863
2864
  const isSportsbook = ((_c = this.challenge) === null || _c === void 0 ? void 0 : _c.ContributedFrom) === EContributedFrom$1.Sportsbook;
2864
2865
  const challengeStatusIsAllowedToOptOut = !(((_d = this.challenge) === null || _d === void 0 ? void 0 : _d.Status) === EChallengeProgressStatus$2.Started ||
2865
- ((_e = this.challenge) === null || _e === void 0 ? void 0 : _e.Status) === EChallengeProgressStatus$2.Awaiting);
2866
+ ((_e = this.challenge) === null || _e === void 0 ? void 0 : _e.Status) === EChallengeProgressStatus$2.Awaiting ||
2867
+ ((_f = this.challenge) === null || _f === void 0 ? void 0 : _f.Status) === EChallengeProgressStatus$2.Expired);
2866
2868
  const showOptOutBlock = this.challenge && challengeStatusIsAllowedToOptOut && !this.isOptedOut;
2867
- return (h(Host, { key: 'c4dce2f118ce8a523d2703e424668d28de9b9bf6' }, h("div", { key: '5dd54a92df2a03dbbd9a6583319320cc1982533b', class: { Mobile: this.isMobile, 'rules-tab tab': true, visible: this.open } }, ((_g = (_f = this.challenge) === null || _f === void 0 ? void 0 : _f.ChallengePresentation) === null || _g === void 0 ? void 0 : _g.Description) && (h("div", { key: '4619713bb49ea183f8cf55af051dec08a2e056ad', class: "rule" }, (_j = (_h = this.challenge) === null || _h === void 0 ? void 0 : _h.ChallengePresentation) === null || _j === void 0 ? void 0 : _j.Description)), (((_l = (_k = this.challenge) === null || _k === void 0 ? void 0 : _k.ChallengePresentation) === null || _l === void 0 ? void 0 : _l.RulesDescription) || ((_o = (_m = this.challenge) === null || _m === void 0 ? void 0 : _m.ChallengePresentation) === null || _o === void 0 ? void 0 : _o.Url)) && (h("div", { key: '6cec965970c1a80131b094f903b8d2f346eac5cb' }, h("div", { key: 'dc1103122815b53279eb25e9a386d99f1c86d351', class: "contribution" }, h("span", { key: 'c1e33c5f7b639084b061270ca3a30ca58e697995', class: "contribution__label" }, translate$3('terms', this.language))), ((_q = (_p = this.challenge) === null || _p === void 0 ? void 0 : _p.ChallengePresentation) === null || _q === void 0 ? void 0 : _q.RulesDescription) && (h("span", { key: '13d2f91062d5874d3e46593dd95b27676e2e58f9', class: "contribution__value" }, (_s = (_r = this.challenge) === null || _r === void 0 ? void 0 : _r.ChallengePresentation) === null || _s === void 0 ? void 0 : _s.RulesDescription)), ((_u = (_t = this.challenge) === null || _t === void 0 ? void 0 : _t.ChallengePresentation) === null || _u === void 0 ? void 0 : _u.RulesDescription) &&
2868
- ((_w = (_v = this.challenge) === null || _v === void 0 ? void 0 : _v.ChallengePresentation) === null || _w === void 0 ? void 0 : _w.Url) && h("br", { key: '25773b8d2db9be49850e12d2118be8cfe3b988ec' }), ((_y = (_x = this.challenge) === null || _x === void 0 ? void 0 : _x.ChallengePresentation) === null || _y === void 0 ? void 0 : _y.Url) && (h("a", { key: '2e37b83aef992fe18dcc30e34b287f6eeb293a6e', class: "link", href: (_0 = (_z = this.challenge) === null || _z === void 0 ? void 0 : _z.ChallengePresentation) === null || _0 === void 0 ? void 0 : _0.Url, target: "_blank" }, translate$3('readFullTerms', this.language), h("img", { key: 'be96d5dfa751d50f0a9623482bcf32628cb1eafc', class: "icon", src: termAndConditionSvg$1 }))))), showOptOutBlock && (h("div", { key: '7af3705fab2ca7b0d1f2cf476cbda3f043e86f0e' }, h("span", { key: '4df7f8bae982b637c0536b713a158e488b1172c2', class: "contribution__value" }, translate$3('optOutLeavingText', this.language)), h("button", { key: 'e6763046ea7aeb0f12545a49d40ac7ddaa2f96f8', class: "opt-out-button", onClick: this.handleOpenOptOutModal }, translate$3('optOutLeavingActionText', this.language), h("img", { key: '7fa72591eff78c3f3973563718e4d0be3404c1c7', class: "icon", src: optOutSvg$1 })))), !isSportsbook && contributionType && (h("div", { key: '892f2e3905c7350c3479592c67e4368ec86d162e' }, h("div", { key: 'a3d8ed0446fd0dc2bdbf715d724ef412162a6bb1', class: "contribution" }, h("span", { key: 'cd9a75a70f1a63755dbfb3d4be066b1ac113379f', class: "contribution__label" }, translate$3('contributionType', this.language))), h("span", { key: '9ae3b22059bc68ed8fdc0932fa25829e832215b3', class: "contribution__value" }, contributionType))), !isSportsbook && contributionRule && (h("div", { key: '868b1c6cd76d90143bc8e9fb9165d057eedf87a2' }, h("div", { key: '90cc0030d6b9be50fcb3e37f71dc9ae1e4c95d96', class: "contribution" }, h("span", { key: 'b7c26cd5f1d3ebda6a09c570af6ead14376c6923', class: "contribution__label" }, translate$3('contributionTo', this.language))), h("span", { key: '20ba13ac30a8d0b2c7b646c82b8380606f51f4e3', class: "contribution__value" }, contributionRule))), isSportsbook && this.renderSportsbookRules())));
2869
+ return (h(Host, { key: '999dc6255c4f961131ec75ef02a6e96bccb69e5c' }, h("div", { key: 'fd6e0582802c7712d005059ec429557926227b90', class: { Mobile: this.isMobile, 'rules-tab tab': true, visible: this.open } }, ((_h = (_g = this.challenge) === null || _g === void 0 ? void 0 : _g.ChallengePresentation) === null || _h === void 0 ? void 0 : _h.Description) && (h("div", { key: '65ebd8166dbfd7478da75d2578498c34977882d9', class: "rule" }, (_k = (_j = this.challenge) === null || _j === void 0 ? void 0 : _j.ChallengePresentation) === null || _k === void 0 ? void 0 : _k.Description)), (((_m = (_l = this.challenge) === null || _l === void 0 ? void 0 : _l.ChallengePresentation) === null || _m === void 0 ? void 0 : _m.RulesDescription) || ((_p = (_o = this.challenge) === null || _o === void 0 ? void 0 : _o.ChallengePresentation) === null || _p === void 0 ? void 0 : _p.Url)) && (h("div", { key: 'a3aca038f5841561c291aa51b42cb1f62ec03b93' }, h("div", { key: 'e9ead5a1c6297460cf0748ebe5d63fb25cf0098e', class: "contribution" }, h("span", { key: '1a19a8535929be02070c05fe1451ac81658dc72a', class: "contribution__label" }, translate$3('terms', this.language))), ((_r = (_q = this.challenge) === null || _q === void 0 ? void 0 : _q.ChallengePresentation) === null || _r === void 0 ? void 0 : _r.RulesDescription) && (h("span", { key: '2e92b57ed1eefcfc7befae426d01406d6d6f73bf', class: "contribution__value" }, (_t = (_s = this.challenge) === null || _s === void 0 ? void 0 : _s.ChallengePresentation) === null || _t === void 0 ? void 0 : _t.RulesDescription)), ((_v = (_u = this.challenge) === null || _u === void 0 ? void 0 : _u.ChallengePresentation) === null || _v === void 0 ? void 0 : _v.RulesDescription) &&
2870
+ ((_x = (_w = this.challenge) === null || _w === void 0 ? void 0 : _w.ChallengePresentation) === null || _x === void 0 ? void 0 : _x.Url) && h("br", { key: '0367fbdedc6dcc9a8511af9570e5ea96f212e3c2' }), ((_z = (_y = this.challenge) === null || _y === void 0 ? void 0 : _y.ChallengePresentation) === null || _z === void 0 ? void 0 : _z.Url) && (h("a", { key: 'e23882b0aa1ed9e6a10d002d910bdd3283123f66', class: "link", href: (_1 = (_0 = this.challenge) === null || _0 === void 0 ? void 0 : _0.ChallengePresentation) === null || _1 === void 0 ? void 0 : _1.Url, target: "_blank" }, translate$3('readFullTerms', this.language), h("img", { key: '6b63c9ec6e15409cd10955f722e78005b0ed1a68', class: "icon", src: termAndConditionSvg$1 }))))), showOptOutBlock && (h("div", { key: 'c5e0ea8674bdb2e55cfff1dbbda1e055ddecc415' }, h("span", { key: 'c41478c3a0f552e2e6cd306ade61b7b14e3cc755', class: "contribution__value" }, translate$3('optOutLeavingText', this.language)), h("button", { key: '05c58b4be1c252410dd1657ac6de3b93ad0c8ed7', class: "opt-out-button", onClick: this.handleOpenOptOutModal }, translate$3('optOutLeavingActionText', this.language), h("img", { key: 'a9c6ee80398b27616661a739f8b7544ff8a7eb1d', class: "icon", src: optOutSvg$1 })))), !isSportsbook && contributionType && (h("div", { key: 'dbe7d00f854991603c8bd85f7b3b5dfb3ffdb358' }, h("div", { key: 'd15492372af6650fa525b97c6ecab55de630808d', class: "contribution" }, h("span", { key: 'c787dd700d182bec7071b58adca2d94af8abe0d8', class: "contribution__label" }, translate$3('contributionType', this.language))), h("span", { key: 'b54db077b10ce9945087274fb7e32952a0809abe', class: "contribution__value" }, contributionType))), !isSportsbook && contributionRule && (h("div", { key: '098703502cb74608fcbafcf08c34d21d20549324' }, h("div", { key: '7a095076bcc9dc5471efc0e7a82d53e1544b344f', class: "contribution" }, h("span", { key: '314dddbea5c85f3085c3eb8dcf1f22c369f47285', class: "contribution__label" }, translate$3('contributionTo', this.language))), h("span", { key: '8107dbe7bc6ff330ab2690329869c640a7c9a208', class: "contribution__value" }, contributionRule))), isSportsbook && this.renderSportsbookRules())));
2869
2871
  }
2870
2872
  };
2871
2873
  CasinoChallengeDetailsRules.style = CasinoChallengeDetailsRulesStyle0;
@@ -3134,16 +3136,16 @@ const CasinoChallengeDrawerHistoryItem = class {
3134
3136
  this.toggle = undefined;
3135
3137
  }
3136
3138
  renderLevel(level) {
3137
- return (h("div", { class: "level-container" }, h("div", { class: "row" }, h("span", { class: "col-1" }, `${translate$2('level', this.language)} ${level.OrderNumber + 1}`), h("span", { class: `col-1 ${level.Status === EHistoryItemLevelStatus.Forfeited ? 'errored' : ''}` }, HistoryItemLevelStatusDictionary[level.Status]), h("span", { class: "col-2" }, format(new Date(level.Time), 'dd/MM/yy HH:mm'))), (level === null || level === void 0 ? void 0 : level.CustomRewardMessage) && (h("p", { class: {
3139
+ return (h("div", { class: "level-container" }, h("div", { class: "row" }, h("span", { class: "col-1" }, `${translate$2('level', this.language)} ${level.OrderNumber + 1}`), h("span", { class: `col-1 ${level.Status === EHistoryItemLevelStatus.Forfeited ? 'errored' : ''}` }, translate$2(HistoryItemLevelStatusDictionary[level.Status].toLowerCase(), this.language)), h("span", { class: "col-2" }, format(new Date(level.Time), 'dd/MM/yy HH:mm'))), (level === null || level === void 0 ? void 0 : level.CustomRewardMessage) && (h("p", { class: {
3138
3140
  reward: true,
3139
3141
  grayed: level.Status !== EHistoryItemLevelStatus.Completed
3140
3142
  } }, h("img", { src: giftSvg }), level.CustomRewardMessage))));
3141
3143
  }
3142
3144
  render() {
3143
- return (h(Host, { key: '3c2f60d4327d6443ca1532f0a16e38759b1920a0' }, h("div", { key: '3d15e6158e3a73ef152b2a9e6d6e1fcf667660a3', class: {
3145
+ return (h(Host, { key: 'e0a9787fe6ca7f813371ed8d313c88ee0f414403' }, h("div", { key: '95cc16f9f9079f92e23193355c3b66b172e36049', class: {
3144
3146
  Mobile: this.isMobile,
3145
3147
  item: true
3146
- }, ref: this.itemRef }, h("div", { key: '9168effe013361bd306bf1492ff969835756580d', class: "header", onClick: () => this.toggle(this.index) }, h("div", { key: '33352fda7db60cea64dbb24ff192d27e4fa24d25' }, h("img", { key: '99e5e51289998b491053e0a8766ba0aad43c080e', class: "banner", src: this.historyItem.BannerUrl }), h("span", { key: '1dec9ee7ee974905932e4f0da87e22d67944b231' }, this.historyItem.Name)), h("div", { key: '312f60f7dfc7cebdc04235caad2e8a012081771b', class: "arrow" }, h("img", { key: 'd51d098309ca5ad9919d0ed2eee4999522f8575f', src: this.isOpen ? arrowUpSvg : arrowDownSvg }))), h("div", { key: '0b11a490354c07fad1ba52f32d167843846f5039', class: { open: this.isOpen, content: true } }, this.historyItem.TermsAndConditionsUrl && (h("a", { key: 'ae6594e99b8e6ce8317cdd35cf7c5efe239dff2b', class: "terms", href: this.historyItem.TermsAndConditionsUrl, target: "_blank" }, translate$2('terms', this.language), h("img", { key: '2e038f21be58716ee39d82c309e04880fb93014b', class: "icon", src: termAndConditionSvg }))), h("div", { key: '69764d2b8512ab92fcebe4c009ccee12d2420d57', class: "row list-header" }, h("span", { key: '4b79c7f4b6eb250b55355c97397d3ea290f625f7', class: "col-1" }, translate$2('level', this.language)), h("span", { key: 'f2255accb2edc572e554d729012404de19075e14', class: "col-1" }, translate$2('status', this.language)), h("span", { key: '337106504f623e789cb77353b77ad2869a7d28f7', class: "col-2" }, translate$2('time', this.language))), this.historyItem.Levels.map((level) => this.renderLevel(level))))));
3148
+ }, ref: this.itemRef }, h("div", { key: '291a11ae81b58d63f5929ef05bbff14beb49e3ad', class: "header", onClick: () => this.toggle(this.index) }, h("div", { key: '0446ba59379bfc1e52d3d047d79cba0c8131c266' }, h("img", { key: '996a0b1220a369f1938a0718fc53ad11c99ed90b', class: "banner", src: this.historyItem.BannerUrl }), h("span", { key: 'b6156328db55a18fa03841c3a1e30e86e2c6cfc1' }, this.historyItem.Name)), h("div", { key: '8c6eb3ed86c4d1e76409c3d77965345552c1ec1d', class: "arrow" }, h("img", { key: '92088c8b52a720acd1ba6a2a381d7ed1daba35ab', src: this.isOpen ? arrowUpSvg : arrowDownSvg }))), h("div", { key: '32c777a82327bf1baa6291680524173051453ad1', class: { open: this.isOpen, content: true } }, this.historyItem.TermsAndConditionsUrl && (h("a", { key: '3076334cd66fc1807622653512b7efd8d8452161', class: "terms", href: this.historyItem.TermsAndConditionsUrl, target: "_blank" }, translate$2('terms', this.language), h("img", { key: 'e627075d67ff1541b70eaf7c106cb1c58d1f6f92', class: "icon", src: termAndConditionSvg }))), h("div", { key: 'd0f6546aef8b70b455658d2eda20ca65379255fd', class: "row list-header" }, h("span", { key: 'ebd7cf3409c7962b9484d6dd6113505063ed8dc5', class: "col-1" }, translate$2('level', this.language)), h("span", { key: '6813ef88b6615d02c8b6fa0b7d1870a3eb814189', class: "col-1" }, translate$2('status', this.language)), h("span", { key: '7a516c198c5579c942f57af8a883736022f58813', class: "col-2" }, translate$2('time', this.language))), this.historyItem.Levels.map((level) => this.renderLevel(level))))));
3147
3149
  }
3148
3150
  };
3149
3151
  CasinoChallengeDrawerHistoryItem.style = CasinoChallengeDrawerHistoryItemStyle0;
@@ -3777,8 +3779,8 @@ const CasinoChallengesOverlayDrawer = class {
3777
3779
  setTimeout(() => (this.notification = null), 10000);
3778
3780
  };
3779
3781
  this.renderNotification = () => {
3780
- var _a, _b, _c;
3781
- return (h("div", { class: `notification ${((_a = this.notification) === null || _a === void 0 ? void 0 : _a.errored) ? 'errored' : ''}` }, h("div", { class: "row" }, h("img", { src: ((_b = this.notification) === null || _b === void 0 ? void 0 : _b.errored) ? errorSvg : checkSvg$1, class: "notification__icon", alt: "" }), h("p", { class: "notification__message" }, (_c = this.notification) === null || _c === void 0 ? void 0 : _c.message))));
3782
+ var _a, _b, _c, _d, _e, _f;
3783
+ return (h("div", { class: `notification ${((_a = this.notification) === null || _a === void 0 ? void 0 : _a.errored) ? 'errored' : ''}` }, h("div", { class: "row" }, h("img", { src: ((_b = this.notification) === null || _b === void 0 ? void 0 : _b.errored) ? errorSvg : checkSvg$1, class: "notification__icon", alt: "" }), h("p", { class: "notification__message" }, (_e = translate$2((_d = (_c = this.notification) === null || _c === void 0 ? void 0 : _c.message) !== null && _d !== void 0 ? _d : '', this.language)) !== null && _e !== void 0 ? _e : (_f = this.notification) === null || _f === void 0 ? void 0 : _f.message))));
3782
3784
  };
3783
3785
  this.renderHeader = (isMobile) => {
3784
3786
  return (h("div", null, h("h1", { class: "challenges__drawer__title" }, h("span", null, translate$2('title', this.language)), h("button", { class: "challenges__drawer__close", onClick: this.onCloseClick }, h("img", { src: crossSvg$1, alt: "" }))), this.enabledWidgetTabs.length > 0 && (h("casino-challenges-overlay-tabs", { onTabClick: this.handleTabClick, activeTabIndex: this.activeTabIndex, activeTabHasNotification: false, pendingTabHasNotification: false, language: this.language, "is-mobile": isMobile, enabledWidgetTabs: this.enabledWidgetTabs }))));
@@ -4674,7 +4676,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
4674
4676
  }, ref: isActiveMatch ? (el) => (this.activeEntityRef = el) : undefined, key: level.LevelId }, h("div", { class: {
4675
4677
  level__title: true,
4676
4678
  grayed: isGrayed
4677
- } }, h("span", null, "Level ", index + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language)), h("div", { class: {
4679
+ } }, h("span", null, translate$3('level', this.language), " ", index + 1), getLevelStatus((_g = this.challenge) === null || _g === void 0 ? void 0 : _g.Status, level, activeChallenge, this.language)), h("div", { class: {
4678
4680
  level__bonus: true
4679
4681
  } }, h("span", { class: "level__icon" }, h("img", { class: {
4680
4682
  grayed: isGrayed
@@ -4757,7 +4759,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
4757
4759
  var _a, _b;
4758
4760
  const fullScreen = (this.swipping && this.progress > 0) || ((_a = this.detailsSubPageInfo) === null || _a === void 0 ? void 0 : _a.open);
4759
4761
  const footerIsVisible = !this.isMobile || (this.isMobile && fullScreen);
4760
- return (h("div", { key: '0beed74aabeaa6b3ac22919bcdf405fec48e20f7', class: {
4762
+ return (h("div", { key: '4f93fbbfc5748b9ddd3d394636735aa20996eff9', class: {
4761
4763
  Mobile: this.isMobile,
4762
4764
  swipped: (this.isMobile && this.swipping && this.progress > 0) || !this.isMobile,
4763
4765
  moved: this.progress > 0,
@@ -1051,10 +1051,13 @@ const CasinoChallengesOverlay = class {
1051
1051
  return this.completedLevelId ? 100 : this.progress;
1052
1052
  }
1053
1053
  syncDisplayedProgress() {
1054
+ var _a, _b;
1054
1055
  const target = this.getTargetProgress();
1055
1056
  const hasActiveProgress = this.inProgressCount > 0;
1056
1057
  const activeProgressToggled = hasActiveProgress !== this.hadActiveProgress;
1057
1058
  this.hadActiveProgress = hasActiveProgress;
1059
+ const activeChallengeChanged = ((_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id) !== this.lastActiveChallengeId;
1060
+ this.lastActiveChallengeId = (_b = this.activeChallenge) === null || _b === void 0 ? void 0 : _b.Id;
1058
1061
  const previousTarget = this.progressTarget;
1059
1062
  this.progressTarget = target;
1060
1063
  if (this.hasPendingLevelComplete) {
@@ -1068,9 +1071,9 @@ const CasinoChallengesOverlay = class {
1068
1071
  return;
1069
1072
  if (target === previousTarget && !activeProgressToggled)
1070
1073
  return;
1071
- // Only increases are animated: decreases (level reset, active challenge switch) and the
1072
- // full ring shown without active progress are applied instantly
1073
- if (activeProgressToggled || prefersReducedMotion() || target <= this.displayedProgress) {
1074
+ // Only increases of the same challenge are animated: decreases (level reset), a switch of the active
1075
+ // challenge (pause, resume, a new one) and the full ring shown without active progress are applied instantly
1076
+ if (activeProgressToggled || activeChallengeChanged || prefersReducedMotion() || target <= this.displayedProgress) {
1074
1077
  this.progressAnimation.jumpToProgress(target);
1075
1078
  return;
1076
1079
  }
@@ -1173,17 +1176,17 @@ const CasinoChallengesOverlay = class {
1173
1176
  const activeProgressId = hasActiveProgress
1174
1177
  ? (_a = this.activeChallenge) === null || _a === void 0 ? void 0 : _a.Id
1175
1178
  : (_c = (_b = this.challenges) === null || _b === void 0 ? void 0 : _b.find(this.isActiveChallenge)) === null || _c === void 0 ? void 0 : _c.Id;
1176
- return (h("div", { key: '174f49a7b806a895a532b0e1e53bf359f9abc3d4', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4237b797ad185055025f41d899920f40b53eabcc', class: "container", onClick: this.handleClick }, h("div", { key: 'e57760df4c6f158465683ebfa7e45ab2afd11da0', class: "circle", ref: (el) => (this.circleElement = el), style: {
1179
+ return (h("div", { key: 'cabb94d3d10af63a5b4685c47b7a343ea86ec373', ref: (el) => (this.stylingContainer = el) }, h("div", { key: '4f5803bb89086be665d8bdf68556c289ca05fd67', class: "container", onClick: this.handleClick }, h("div", { key: 'f31663ebc569b2f3f4c0363e29334436a2106c00', class: "circle", ref: (el) => (this.circleElement = el), style: {
1177
1180
  '--progress': `${progressPoint.angle}deg`
1178
- } }, h("img", { key: '5423655e18a029c1493607d6d67211ffba795c59', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
1181
+ } }, h("img", { key: 'c18775ea5fb483de231d66d3652c77af72f25748', class: "circle__img", ref: (el) => (this.coinElement = el), src: bgIconSvg,
1179
1182
  // Turns the wobble and spin around the coin drawn in the image, not the image centre
1180
- style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: '0b65ba49f12e2cfb5196c7b24814f71c447701db', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: 'd08d38321d23c55aaba7f6a4f3990fc3fc318e50', class: "dot", style: {
1183
+ style: { transformOrigin: `${COIN_CENTER.x}px ${COIN_CENTER.y}px` } }), h("div", { key: 'aa42b6f5dc8c8eaa50d4d78c63c17da61eb77167', class: "circle__content" }, this.renderCapsuleContent(hasActiveProgress)), showDot && (h("div", { key: '8db43f72a6b00a65c662328c571d614877339539', class: "dot", style: {
1181
1184
  left: `${progressPoint.x}px`,
1182
1185
  top: `${progressPoint.y}px`
1183
- } }))), hasActiveProgress && (h("div", { key: '7ca2960301bfb5f59ce3afac2a260cf26e48ccc3', class: {
1186
+ } }))), hasActiveProgress && (h("div", { key: '4d2bc478f0b8861be3e19c6a33311356ea657b1d', class: {
1184
1187
  badge: true,
1185
1188
  new: this.isNew
1186
- } }, this.renderBadgeContent())), h("div", { key: 'f96408dcee5e1abea640a6c67c65a9dbb899f638', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: 'a45405d907326da9b1b3ccd55085ed287ddfca4e', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '43c2c0f90c5bf3b4c78aa2b66ce2e100eec05ead', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
1189
+ } }, this.renderBadgeContent())), h("div", { key: 'e10faffe11a5c7d5a3afa6e214000688f4b3b1e1', class: "effects-layer", ref: (el) => (this.effectsLayerElement = el) })), h("casino-challenges-overlay-modal", { key: '760778e71341930b1a259a726adec2b604596523', isOpen: this.showModal, handleClick: this.closeModal, reward: this.modalReward, addition: this.modalAddition, isFreeSpinsGranted: this.modalIsFreeSpinsGranted, bonusProgramGames: this.modalBonusProgramGames, errored: this.modalErrored, orderNumber: this.modalOrderNumber, levelsCount: this.modalLevelsCount, translationUrl: this.translationUrl, language: this.language, mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl }), this.extendedIngameWidget && (h("casino-challenges-overlay-drawer", { key: '920e75a4a353ebdbea314353e310fca5b4269f92', mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isOpen: this.showDrawer, handleClose: this.closeDrawer, challenges: this.challenges, initialProgressId: activeProgressId, enabledWidgetTabs: this.enabledWidgetTabs }))));
1187
1190
  }
1188
1191
  static get watchers() { return {
1189
1192
  "clientStyling": ["handleClientStylingChange"],
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { C as CasinoChallengesOverlay } from './casino-challenges-overlay-8a765607.js';
1
+ export { C as CasinoChallengesOverlay } from './casino-challenges-overlay-97159a90.js';
2
2
  import './index-58f943ea.js';
@@ -74,6 +74,7 @@ export declare class CasinoChallengesOverlay {
74
74
  private statusTimeoutId;
75
75
  private progressTarget;
76
76
  private hadActiveProgress;
77
+ private lastActiveChallengeId;
77
78
  /** Set by the update that completed a level; the next render starts the level complete animation */
78
79
  private hasPendingLevelComplete;
79
80
  private circleElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-challenges-overlay",
3
- "version": "0.22.29",
3
+ "version": "0.22.31",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",