valtech-components 4.0.496 → 4.0.497

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.
@@ -2,5 +2,5 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export const VERSION = '4.0.496';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC40OTYnO1xuIl19
5
+ export const VERSION = '4.0.497';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC40OTcnO1xuIl19
@@ -59,7 +59,7 @@ import fixWebmDuration from 'fix-webm-duration';
59
59
  * Current version of valtech-components.
60
60
  * This is automatically updated during the publish process.
61
61
  */
62
- const VERSION = '4.0.496';
62
+ const VERSION = '4.0.497';
63
63
 
64
64
  // Control de estado de refresco (singleton a nivel de módulo)
65
65
  let isRefreshing = false;
@@ -66357,6 +66357,27 @@ class ChessimalsGameComponent {
66357
66357
  this.movingPiece.set(undefined);
66358
66358
  this.clearReview();
66359
66359
  }
66360
+ returnChallengeToMenu() {
66361
+ const run = this.challengeRun();
66362
+ if (this.isResumableChallengeRun(run)) {
66363
+ this.activeStoredChallengeRun.set(run);
66364
+ }
66365
+ this.dismissChallengeIntro();
66366
+ this.resetFinishedLocalGameForNextVisit();
66367
+ this.onlineSubscription?.unsubscribe();
66368
+ this.onlineSubscription = undefined;
66369
+ this.openedOnlineGameId = undefined;
66370
+ this.openingOnlineGameId = undefined;
66371
+ this.resumeSplashVisible.set(false);
66372
+ this.clearBotTurn();
66373
+ this.onlineConnectionState.set('idle');
66374
+ this.screen.set('home');
66375
+ this.startChessimalsMenuMusicSoon();
66376
+ this.selectedPieceId.set(undefined);
66377
+ this.selectedAnimal.set(undefined);
66378
+ this.movingPiece.set(undefined);
66379
+ this.clearReview();
66380
+ }
66360
66381
  resetToGamesMenu() {
66361
66382
  this.confirmAction.set(undefined);
66362
66383
  this.resetToModeSetup();
@@ -66420,6 +66441,10 @@ class ChessimalsGameComponent {
66420
66441
  return;
66421
66442
  }
66422
66443
  if (action === 'mode') {
66444
+ if (this.isChallengeActive()) {
66445
+ this.returnChallengeToMenu();
66446
+ return;
66447
+ }
66423
66448
  this.resetToModeSetup();
66424
66449
  return;
66425
66450
  }