valtech-components 4.0.595 → 4.0.596

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.595';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC41OTUnO1xuIl19
5
+ export const VERSION = '4.0.596';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC41OTYnO1xuIl19
@@ -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.595';
62
+ const VERSION = '4.0.596';
63
63
 
64
64
  // Control de estado de refresco (singleton a nivel de módulo)
65
65
  let isRefreshing = false;
@@ -62374,6 +62374,7 @@ const MINI_GAMES_I18N = {
62374
62374
  chessimalsAdventureHome: 'Modo Aventura',
62375
62375
  chessimalsAdventureHomeBody: 'Cuatro actos, dieciséis rivales. Gana estrellas.',
62376
62376
  chessimalsAdventureBoss: 'Jefe',
62377
+ chessimalsAdventureBackToMap: 'Volver al mapa',
62377
62378
  chessimalsAdventureRestDone: 'Descansaste. Ganaste 1 estrella.',
62378
62379
  chessimalsAdventureMysteryReveal: 'Rival desconocido. A ver que pasa.',
62379
62380
  chessimalsAdventureAct1Title: 'La Sabana',
@@ -63224,6 +63225,7 @@ const MINI_GAMES_I18N = {
63224
63225
  chessimalsAdventureHome: 'Adventure Mode',
63225
63226
  chessimalsAdventureHomeBody: 'Four acts, sixteen rivals. Earn stars.',
63226
63227
  chessimalsAdventureBoss: 'Boss',
63228
+ chessimalsAdventureBackToMap: 'Back to map',
63227
63229
  chessimalsAdventureRestDone: 'You rested. You earned 1 star.',
63228
63230
  chessimalsAdventureMysteryReveal: "Unknown rival. Let's see what happens.",
63229
63231
  chessimalsAdventureAct1Title: 'The Savanna',
@@ -63598,11 +63600,9 @@ class ChessimalsAdventureProgressService {
63598
63600
  };
63599
63601
  const totalStars = Object.values(completedNodes).reduce((s, n) => s + n.stars, 0);
63600
63602
  await setDoc(this.progressRef(uid), {
63601
- userId: uid,
63602
63603
  completedNodes,
63603
63604
  totalStars,
63604
63605
  updatedAt: new Date().toISOString(),
63605
- updatedAtServer: serverTimestamp(),
63606
63606
  }, { merge: true });
63607
63607
  }
63608
63608
  empty() {
@@ -72015,7 +72015,20 @@ class ChessimalsGameComponent {
72015
72015
  <p>{{ winBody() }}</p>
72016
72016
  @if (canControlCurrentGame() && (game().mode !== 'online' || rematchState() === 'none')) {
72017
72017
  <div class="chessimals-result__actions">
72018
- @if (game().mode !== 'online') {
72018
+ @if (adventureNodeId()) {
72019
+ <button class="chessimals-primary chessimals-action-button" type="button" (click)="backToHome()">
72020
+ {{ t('chessimalsAdventureBackToMap') }}
72021
+ </button>
72022
+ @if (game().winner !== 'white') {
72023
+ <button
72024
+ class="chessimals-secondary chessimals-action-button"
72025
+ type="button"
72026
+ (click)="restartGame()"
72027
+ >
72028
+ {{ t('playAgain') }}
72029
+ </button>
72030
+ }
72031
+ } @else if (game().mode !== 'online') {
72019
72032
  <button class="chessimals-primary chessimals-action-button" type="button" (click)="restartGame()">
72020
72033
  {{ t('playAgain') }}
72021
72034
  </button>
@@ -73463,7 +73476,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
73463
73476
  <p>{{ winBody() }}</p>
73464
73477
  @if (canControlCurrentGame() && (game().mode !== 'online' || rematchState() === 'none')) {
73465
73478
  <div class="chessimals-result__actions">
73466
- @if (game().mode !== 'online') {
73479
+ @if (adventureNodeId()) {
73480
+ <button class="chessimals-primary chessimals-action-button" type="button" (click)="backToHome()">
73481
+ {{ t('chessimalsAdventureBackToMap') }}
73482
+ </button>
73483
+ @if (game().winner !== 'white') {
73484
+ <button
73485
+ class="chessimals-secondary chessimals-action-button"
73486
+ type="button"
73487
+ (click)="restartGame()"
73488
+ >
73489
+ {{ t('playAgain') }}
73490
+ </button>
73491
+ }
73492
+ } @else if (game().mode !== 'online') {
73467
73493
  <button class="chessimals-primary chessimals-action-button" type="button" (click)="restartGame()">
73468
73494
  {{ t('playAgain') }}
73469
73495
  </button>