valtech-components 4.0.594 → 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.594';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBDdXJyZW50IHZlcnNpb24gb2YgdmFsdGVjaC1jb21wb25lbnRzLlxuICogVGhpcyBpcyBhdXRvbWF0aWNhbGx5IHVwZGF0ZWQgZHVyaW5nIHRoZSBwdWJsaXNoIHByb2Nlc3MuXG4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gJzQuMC41OTQnO1xuIl19
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.594';
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() {
@@ -63814,7 +63814,7 @@ class ChessimalsAdventureComponent {
63814
63814
  }
63815
63815
  </div>
63816
63816
  </div>
63817
- `, isInline: true, styles: [":host{--cs-surface: #fffaf1;--cs-border: rgba(46, 58, 44, .18);--cs-text: #2e3a2c;--cs-muted: #51643d;--cs-primary: #2e6f3e;--cs-primary-rgb: 46, 111, 62;--cs-selected: #37f28a;--cs-magic: #f7d45a;display:block}@media (prefers-color-scheme: dark){:host{--cs-surface: #172116;--cs-border: rgba(242, 230, 213, .2);--cs-text: #f6f3e9;--cs-muted: #c8cfb1}}.adventure-hub{padding-bottom:40px}.adventure-hub__header{padding:20px 0 24px;text-align:center}.adventure-hub__eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted);margin:0 0 6px}.adventure-hub__title{font-size:1.75rem;font-weight:800;margin:0 0 6px;color:var(--cs-text)}.adventure-hub__subtitle{font-size:.9rem;color:var(--cs-muted);margin:0 0 12px}.adventure-hub__stars{display:inline-flex;align-items:center;gap:4px;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:20px;padding:4px 14px;font-weight:700;font-size:.95rem;color:var(--cs-magic)}.adventure-hub__stars ion-icon{color:var(--cs-magic);font-size:1rem}.adventure-hub__acts{display:flex;flex-direction:column;gap:16px}.adventure-act{border-radius:16px;border:1px solid var(--cs-border);background:var(--cs-surface);overflow:hidden}.adventure-act--locked{opacity:.5}.adventure-act--done{border-color:var(--cs-primary)}.adventure-act__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--cs-border)}.adventure-act__emoji{font-size:1.75rem;line-height:1;flex-shrink:0}.adventure-act__meta{flex:1;min-width:0}.adventure-act__name{font-size:1rem;font-weight:700;margin:0 0 2px;color:var(--cs-text)}.adventure-act__desc{font-size:.8rem;color:var(--cs-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adventure-act__lock{color:var(--cs-muted);font-size:1.25rem;flex-shrink:0}.adventure-act__progress{font-size:.8rem;font-weight:700;color:var(--cs-muted);flex-shrink:0}.adventure-act__nodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:8px;padding:12px}.adventure-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:12px;border:1.5px solid var(--cs-border);background:var(--cs-surface);cursor:pointer;text-align:center;transition:transform .12s ease,border-color .12s ease;min-width:0;overflow:hidden}.adventure-node:active{transform:scale(.97)}.adventure-node--available{border-color:var(--cs-primary);background:color-mix(in srgb,var(--cs-primary) 8%,var(--cs-surface))}.adventure-node--completed{border-color:var(--cs-selected);background:color-mix(in srgb,var(--cs-selected) 8%,var(--cs-surface))}.adventure-node--locked{opacity:.4;cursor:default}.adventure-node__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--cs-border);flex-shrink:0}.adventure-node--available .adventure-node__avatar{border-color:var(--cs-primary)}.adventure-node--completed .adventure-node__avatar{border-color:var(--cs-selected)}.adventure-node__icon{font-size:1.5rem;line-height:1}.adventure-node__label{font-size:.75rem;font-weight:600;color:var(--cs-text);line-height:1.2;word-break:break-word;max-width:100%}.adventure-node__stars{display:flex;gap:1px}.adventure-node__star{font-size:.7rem;color:var(--cs-muted)}.adventure-node__star--filled{color:var(--cs-magic)}.adventure-node__badge{position:absolute;top:-4px;right:-4px;font-size:.6rem;padding:2px 5px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonBadge, selector: "ion-badge", inputs: ["color", "mode"] }] }); }
63817
+ `, isInline: true, styles: [":host{--cs-surface: #fffaf1;--cs-border: rgba(46, 58, 44, .18);--cs-text: #2e3a2c;--cs-muted: #51643d;--cs-primary: #2e6f3e;--cs-primary-rgb: 46, 111, 62;--cs-selected: #37f28a;--cs-magic: #f7d45a;display:block;width:100%;max-width:100%;box-sizing:border-box}@media (prefers-color-scheme: dark){:host{--cs-surface: #172116;--cs-border: rgba(242, 230, 213, .2);--cs-text: #f6f3e9;--cs-muted: #c8cfb1}}.adventure-hub{padding-bottom:40px;width:100%;box-sizing:border-box}.adventure-hub__header{padding:20px 0 24px;text-align:center}.adventure-hub__eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted);margin:0 0 6px}.adventure-hub__title{font-size:1.75rem;font-weight:800;margin:0 0 6px;color:var(--cs-text)}.adventure-hub__subtitle{font-size:.9rem;color:var(--cs-muted);margin:0 0 12px}.adventure-hub__stars{display:inline-flex;align-items:center;gap:4px;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:20px;padding:4px 14px;font-weight:700;font-size:.95rem;color:var(--cs-magic)}.adventure-hub__stars ion-icon{color:var(--cs-magic);font-size:1rem}.adventure-hub__acts{display:flex;flex-direction:column;gap:16px;width:100%;min-width:0}.adventure-act{border-radius:16px;border:1px solid var(--cs-border);background:var(--cs-surface);overflow:hidden;width:100%;min-width:0;box-sizing:border-box}.adventure-act--locked{opacity:.5}.adventure-act--done{border-color:var(--cs-primary)}.adventure-act__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--cs-border)}.adventure-act__emoji{font-size:1.75rem;line-height:1;flex-shrink:0}.adventure-act__meta{flex:1;min-width:0}.adventure-act__name{font-size:1rem;font-weight:700;margin:0 0 2px;color:var(--cs-text)}.adventure-act__desc{font-size:.8rem;color:var(--cs-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adventure-act__lock{color:var(--cs-muted);font-size:1.25rem;flex-shrink:0}.adventure-act__progress{font-size:.8rem;font-weight:700;color:var(--cs-muted);flex-shrink:0}.adventure-act__nodes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.adventure-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:12px;border:1.5px solid var(--cs-border);background:var(--cs-surface);cursor:pointer;text-align:center;transition:transform .12s ease,border-color .12s ease;min-width:0;overflow:hidden}.adventure-node:active{transform:scale(.97)}.adventure-node--available{border-color:var(--cs-primary);background:color-mix(in srgb,var(--cs-primary) 8%,var(--cs-surface))}.adventure-node--completed{border-color:var(--cs-selected);background:color-mix(in srgb,var(--cs-selected) 8%,var(--cs-surface))}.adventure-node--locked{opacity:.4;cursor:default}.adventure-node__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--cs-border);flex-shrink:0}.adventure-node--available .adventure-node__avatar{border-color:var(--cs-primary)}.adventure-node--completed .adventure-node__avatar{border-color:var(--cs-selected)}.adventure-node__icon{font-size:1.5rem;line-height:1}.adventure-node__label{font-size:.75rem;font-weight:600;color:var(--cs-text);line-height:1.2;word-break:break-word;max-width:100%}.adventure-node__stars{display:flex;gap:1px}.adventure-node__star{font-size:.7rem;color:var(--cs-muted)}.adventure-node__star--filled{color:var(--cs-magic)}.adventure-node__badge{position:absolute;top:-4px;right:-4px;font-size:.6rem;padding:2px 5px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonBadge, selector: "ion-badge", inputs: ["color", "mode"] }] }); }
63818
63818
  }
63819
63819
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChessimalsAdventureComponent, decorators: [{
63820
63820
  type: Component,
@@ -63899,7 +63899,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
63899
63899
  }
63900
63900
  </div>
63901
63901
  </div>
63902
- `, styles: [":host{--cs-surface: #fffaf1;--cs-border: rgba(46, 58, 44, .18);--cs-text: #2e3a2c;--cs-muted: #51643d;--cs-primary: #2e6f3e;--cs-primary-rgb: 46, 111, 62;--cs-selected: #37f28a;--cs-magic: #f7d45a;display:block}@media (prefers-color-scheme: dark){:host{--cs-surface: #172116;--cs-border: rgba(242, 230, 213, .2);--cs-text: #f6f3e9;--cs-muted: #c8cfb1}}.adventure-hub{padding-bottom:40px}.adventure-hub__header{padding:20px 0 24px;text-align:center}.adventure-hub__eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted);margin:0 0 6px}.adventure-hub__title{font-size:1.75rem;font-weight:800;margin:0 0 6px;color:var(--cs-text)}.adventure-hub__subtitle{font-size:.9rem;color:var(--cs-muted);margin:0 0 12px}.adventure-hub__stars{display:inline-flex;align-items:center;gap:4px;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:20px;padding:4px 14px;font-weight:700;font-size:.95rem;color:var(--cs-magic)}.adventure-hub__stars ion-icon{color:var(--cs-magic);font-size:1rem}.adventure-hub__acts{display:flex;flex-direction:column;gap:16px}.adventure-act{border-radius:16px;border:1px solid var(--cs-border);background:var(--cs-surface);overflow:hidden}.adventure-act--locked{opacity:.5}.adventure-act--done{border-color:var(--cs-primary)}.adventure-act__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--cs-border)}.adventure-act__emoji{font-size:1.75rem;line-height:1;flex-shrink:0}.adventure-act__meta{flex:1;min-width:0}.adventure-act__name{font-size:1rem;font-weight:700;margin:0 0 2px;color:var(--cs-text)}.adventure-act__desc{font-size:.8rem;color:var(--cs-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adventure-act__lock{color:var(--cs-muted);font-size:1.25rem;flex-shrink:0}.adventure-act__progress{font-size:.8rem;font-weight:700;color:var(--cs-muted);flex-shrink:0}.adventure-act__nodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));gap:8px;padding:12px}.adventure-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:12px;border:1.5px solid var(--cs-border);background:var(--cs-surface);cursor:pointer;text-align:center;transition:transform .12s ease,border-color .12s ease;min-width:0;overflow:hidden}.adventure-node:active{transform:scale(.97)}.adventure-node--available{border-color:var(--cs-primary);background:color-mix(in srgb,var(--cs-primary) 8%,var(--cs-surface))}.adventure-node--completed{border-color:var(--cs-selected);background:color-mix(in srgb,var(--cs-selected) 8%,var(--cs-surface))}.adventure-node--locked{opacity:.4;cursor:default}.adventure-node__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--cs-border);flex-shrink:0}.adventure-node--available .adventure-node__avatar{border-color:var(--cs-primary)}.adventure-node--completed .adventure-node__avatar{border-color:var(--cs-selected)}.adventure-node__icon{font-size:1.5rem;line-height:1}.adventure-node__label{font-size:.75rem;font-weight:600;color:var(--cs-text);line-height:1.2;word-break:break-word;max-width:100%}.adventure-node__stars{display:flex;gap:1px}.adventure-node__star{font-size:.7rem;color:var(--cs-muted)}.adventure-node__star--filled{color:var(--cs-magic)}.adventure-node__badge{position:absolute;top:-4px;right:-4px;font-size:.6rem;padding:2px 5px}\n"] }]
63902
+ `, styles: [":host{--cs-surface: #fffaf1;--cs-border: rgba(46, 58, 44, .18);--cs-text: #2e3a2c;--cs-muted: #51643d;--cs-primary: #2e6f3e;--cs-primary-rgb: 46, 111, 62;--cs-selected: #37f28a;--cs-magic: #f7d45a;display:block;width:100%;max-width:100%;box-sizing:border-box}@media (prefers-color-scheme: dark){:host{--cs-surface: #172116;--cs-border: rgba(242, 230, 213, .2);--cs-text: #f6f3e9;--cs-muted: #c8cfb1}}.adventure-hub{padding-bottom:40px;width:100%;box-sizing:border-box}.adventure-hub__header{padding:20px 0 24px;text-align:center}.adventure-hub__eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted);margin:0 0 6px}.adventure-hub__title{font-size:1.75rem;font-weight:800;margin:0 0 6px;color:var(--cs-text)}.adventure-hub__subtitle{font-size:.9rem;color:var(--cs-muted);margin:0 0 12px}.adventure-hub__stars{display:inline-flex;align-items:center;gap:4px;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:20px;padding:4px 14px;font-weight:700;font-size:.95rem;color:var(--cs-magic)}.adventure-hub__stars ion-icon{color:var(--cs-magic);font-size:1rem}.adventure-hub__acts{display:flex;flex-direction:column;gap:16px;width:100%;min-width:0}.adventure-act{border-radius:16px;border:1px solid var(--cs-border);background:var(--cs-surface);overflow:hidden;width:100%;min-width:0;box-sizing:border-box}.adventure-act--locked{opacity:.5}.adventure-act--done{border-color:var(--cs-primary)}.adventure-act__head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--cs-border)}.adventure-act__emoji{font-size:1.75rem;line-height:1;flex-shrink:0}.adventure-act__meta{flex:1;min-width:0}.adventure-act__name{font-size:1rem;font-weight:700;margin:0 0 2px;color:var(--cs-text)}.adventure-act__desc{font-size:.8rem;color:var(--cs-muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adventure-act__lock{color:var(--cs-muted);font-size:1.25rem;flex-shrink:0}.adventure-act__progress{font-size:.8rem;font-weight:700;color:var(--cs-muted);flex-shrink:0}.adventure-act__nodes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.adventure-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:12px;border:1.5px solid var(--cs-border);background:var(--cs-surface);cursor:pointer;text-align:center;transition:transform .12s ease,border-color .12s ease;min-width:0;overflow:hidden}.adventure-node:active{transform:scale(.97)}.adventure-node--available{border-color:var(--cs-primary);background:color-mix(in srgb,var(--cs-primary) 8%,var(--cs-surface))}.adventure-node--completed{border-color:var(--cs-selected);background:color-mix(in srgb,var(--cs-selected) 8%,var(--cs-surface))}.adventure-node--locked{opacity:.4;cursor:default}.adventure-node__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--cs-border);flex-shrink:0}.adventure-node--available .adventure-node__avatar{border-color:var(--cs-primary)}.adventure-node--completed .adventure-node__avatar{border-color:var(--cs-selected)}.adventure-node__icon{font-size:1.5rem;line-height:1}.adventure-node__label{font-size:.75rem;font-weight:600;color:var(--cs-text);line-height:1.2;word-break:break-word;max-width:100%}.adventure-node__stars{display:flex;gap:1px}.adventure-node__star{font-size:.7rem;color:var(--cs-muted)}.adventure-node__star--filled{color:var(--cs-magic)}.adventure-node__badge{position:absolute;top:-4px;right:-4px;font-size:.6rem;padding:2px 5px}\n"] }]
63903
63903
  }], ctorParameters: () => [] });
63904
63904
 
63905
63905
  const ANIMALS$1 = ['eagle', 'bull', 'kangaroo', 'lion'];
@@ -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>