@xsmusices/ui 2.0.0-rc.1 → 2.0.0

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.
package/MIGRATION.md CHANGED
@@ -3,9 +3,10 @@
3
3
  Guía de actualización para consumidores de `@xsmusices/ui` desde la línea
4
4
  `1.44.x` a la major `2.0.0`.
5
5
 
6
- > Alcance exacto: esta guía cubre los cambios que contiene `2.0.0-rc.1`
7
- > (incluye la retirada de `xs-send-scraper`; ver sección propia). Si vienes
8
- > de una `rc.0`, el único cambio adicional respecto a ella es esa retirada.
6
+ > Alcance exacto: esta guía cubre los cambios de la `2.0.0` estable
7
+ > (idéntica funcionalmente a `2.0.0-rc.1`, que incluía la retirada de
8
+ > `xs-send-scraper`; ver sección propia). Si vienes de una `rc.0`, el único
9
+ > cambio adicional respecto a ella es esa retirada.
9
10
 
10
11
  ## Por qué una major
11
12
 
@@ -1 +1 @@
1
- {"version":3,"file":"xsmusices-ui-xs-map.xsstory-B0huSX4Q.mjs","sources":["../../../projects/xs-ui/src/lib/components/ui/map/xs-map.xsstory.ts"],"sourcesContent":["import { StoryMeta } from '../../../story.types';\nimport { XSMapComponent } from './xs-map.component';\nimport { XSMapInfoBlockComponent } from './info-block/xs-map-info-block.component';\n\nexport const story: StoryMeta = {\n id: 'map',\n name: 'Map',\n type: 'component',\n subtype: 'UI',\n status: 'active',\n usage: ['admin', 'app', 'monitor'],\n updated: '2026-02-17T11:00:00.000Z',\n created: '2026-01-15T08:15:50.647Z',\n description:\n 'Componente de mapa basado en Leaflet con soporte para Google Maps tiles, clusters de marcadores y soporte para modo oscuro.\\n\\nMultilenguaje: Sí — este componente dispone de traducciones por componente para textos del Info Block (ver carpeta i18n).',\n component: XSMapComponent,\n selector: 'xs-map',\n inputs: [\n {\n key: 'center',\n label: 'Centro (Lat, Lng)',\n type: 'json',\n default: [40.417244274063485, -3.7021285218467663],\n },\n {\n key: 'zoom',\n label: 'Zoom',\n type: 'number',\n default: 13,\n },\n {\n key: 'items',\n label: 'Marcadores',\n type: 'json',\n default: [\n {\n id: '1',\n lat: 40.417244274063485,\n lng: -3.7021285218467663,\n title: 'Puerta del Sol',\n image: 'https://via.placeholder.com/150',\n data: { type: 'landmark' },\n },\n ],\n },\n {\n key: 'draggable',\n label: 'Marcadores Arrastrables',\n type: 'boolean',\n default: false,\n },\n {\n key: 'isDarkMode',\n label: 'Modo Oscuro',\n type: 'boolean',\n default: true,\n },\n {\n key: 'style',\n label: 'Estilo (CSS)',\n type: 'text',\n default: 'height: 400px;',\n },\n {\n key: 'isSingle',\n label: 'Modo Single (Perfiles)',\n type: 'boolean',\n default: false,\n },\n {\n key: 'tileUrl',\n label: 'Tiles personalizados (URL Leaflet)',\n type: 'text',\n default: '',\n },\n ],\n examples: [\n {\n name: 'Madrid Centro',\n description:\n 'Vista básica con un marcador en la Puerta del Sol. Usa tiles de OpenStreetMap (sin clave) porque el proveedor por defecto (CARTO dark) exige API key.',\n inputs: {\n center: [40.41701, -3.70344],\n zoom: 16,\n tileUrl: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',\n items: [\n {\n id: 'sol',\n lat: 40.41701,\n lng: -3.70344,\n title: 'Puerta del Sol',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=SOL',\n },\n ],\n },\n },\n {\n name: 'Clustering de Discotecas',\n description:\n 'Muchos marcadores en una misma zona que se agrupan automáticamente.',\n inputs: {\n center: [40.41, -3.7],\n zoom: 12,\n items: [\n {\n id: '1',\n lat: 40.41,\n lng: -3.7,\n title: 'Club 1',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=C1',\n },\n { id: '2', lat: 40.412, lng: -3.702, title: 'Club 2' },\n { id: '3', lat: 40.415, lng: -3.701, title: 'Club 3' },\n { id: '4', lat: 40.408, lng: -3.698, title: 'Club 4' },\n { id: '5', lat: 40.418, lng: -3.705, title: 'Club 5' },\n { id: '6', lat: 40.411, lng: -3.708, title: 'Club 6' },\n { id: '7', lat: 40.414, lng: -3.703, title: 'Club 7' },\n { id: '8', lat: 40.405, lng: -3.695, title: 'Club 8' },\n { id: '9', lat: 40.42, lng: -3.71, title: 'Club 9' },\n {\n id: '10',\n lat: 40.413,\n lng: -3.697,\n title: 'Club 10',\n },\n ],\n },\n },\n {\n name: 'Localizador Draggable',\n description:\n 'Útil para formularios donde el usuario puede mover el pin para precisar una ubicación.',\n inputs: {\n center: [41.3851, 2.1734],\n zoom: 14,\n draggable: true,\n items: [\n {\n id: 'bcn',\n lat: 41.3851,\n lng: 2.1734,\n title: 'Barcelona (Mueveme)',\n },\n ],\n },\n },\n {\n name: 'Interactivo con Info Block',\n description:\n 'Mapa que utiliza el contenido proyectado para mostrar el XSMapInfoBlockComponent.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 15,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n address: {\n street: 'Calle de Atocha, 125',\n town: 'Madrid',\n country: { name: 'España', code: 'es' },\n },\n eventsFuture: 3,\n },\n },\n ],\n projectedInputs: {\n item: null, // Se llenará desde el marcador seleccionado\n type: 'site',\n },\n },\n projectedComponent: XSMapInfoBlockComponent,\n template: `\n <xs-map [center]=\"[40.416, -3.703]\" [zoom]=\"15\" [items]=\"[...]\">\n <xs-map-info-block [item]=\"...\" type=\"site\">\n </xs-map-info-block>\n </xs-map>\n `,\n },\n {\n name: 'Clusters en múltiples regiones',\n description:\n 'Visualización de múltiples focos de marcadores que se agrupan por cercanía.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 6,\n items: [\n { id: 'm1', lat: 40.41, lng: -3.7, title: 'Madrid 1' },\n {\n id: 'm2',\n lat: 40.42,\n lng: -3.71,\n title: 'Madrid 2',\n },\n {\n id: 'm3',\n lat: 40.415,\n lng: -3.69,\n title: 'Madrid 3',\n },\n { id: 'b1', lat: 41.38, lng: 2.17, title: 'BCN 1' },\n { id: 'b2', lat: 41.39, lng: 2.18, title: 'BCN 2' },\n { id: 'b3', lat: 41.4, lng: 2.16, title: 'BCN 3' },\n {\n id: 'v1',\n lat: 39.46,\n lng: -0.37,\n title: 'Valencia 1',\n },\n {\n id: 'v2',\n lat: 39.47,\n lng: -0.38,\n title: 'Valencia 2',\n },\n {\n id: 's1',\n lat: 37.38,\n lng: -5.98,\n title: 'Sevilla 1',\n },\n ],\n },\n },\n {\n name: 'Modo Claro (Fuerza Light Map)',\n description:\n 'Ejemplo de mapa con fondo claro forzado mediante el input isDarkMode.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 13,\n isDarkMode: false,\n items: [\n {\n id: 'light',\n lat: 40.4167,\n lng: -3.70325,\n title: 'Modo Claro',\n },\n ],\n },\n },\n {\n name: 'Modo Single (Perfiles)',\n description:\n 'Desactiva pop-ups e interacciones para mapas en perfiles de artistas/locales.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 16,\n isSingle: true,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n },\n },\n ],\n },\n },\n ],\n multilanguage: true,\n notes: [],\n coverage: {\n statements: 74,\n branches: 53,\n functions: 69,\n lines: 75,\n },\n};\n"],"names":[],"mappings":";;AAIO,MAAM,KAAK,GAAc;AAC9B,IAAA,EAAE,EAAE,KAAK;AACT,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC;AAClC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,WAAW,EACT,0PAA0P;AAC5P,IAAA,SAAS,EAAE,cAAc;AACzB,IAAA,QAAQ,EAAE,QAAQ;AA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,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;;;;;"}
1
+ {"version":3,"file":"xsmusices-ui-xs-map.xsstory-B0huSX4Q.mjs","sources":["../../../projects/xs-ui/src/lib/components/ui/map/xs-map.xsstory.ts"],"sourcesContent":["import { StoryMeta } from '../../../story.types';\nimport { XSMapComponent } from './xs-map.component';\nimport { XSMapInfoBlockComponent } from './info-block/xs-map-info-block.component';\n\nexport const story: StoryMeta = {\n id: 'map',\n name: 'Map',\n type: 'component',\n subtype: 'UI',\n status: 'active',\n usage: ['admin', 'app', 'monitor'],\n updated: '2026-02-17T11:00:00.000Z',\n created: '2026-01-15T08:15:50.647Z',\n description:\n 'Componente de mapa basado en Leaflet con soporte para Google Maps tiles, clusters de marcadores y soporte para modo oscuro.\\n\\nMultilenguaje: Sí — este componente dispone de traducciones por componente para textos del Info Block (ver carpeta i18n).',\n component: XSMapComponent,\n selector: 'xs-map',\n inputs: [\n {\n key: 'center',\n label: 'Centro (Lat, Lng)',\n type: 'json',\n default: [40.417244274063485, -3.7021285218467663],\n },\n {\n key: 'zoom',\n label: 'Zoom',\n type: 'number',\n default: 13,\n },\n {\n key: 'items',\n label: 'Marcadores',\n type: 'json',\n default: [\n {\n id: '1',\n lat: 40.417244274063485,\n lng: -3.7021285218467663,\n title: 'Puerta del Sol',\n image: 'https://via.placeholder.com/150',\n data: { type: 'landmark' },\n },\n ],\n },\n {\n key: 'draggable',\n label: 'Marcadores Arrastrables',\n type: 'boolean',\n default: false,\n },\n {\n key: 'isDarkMode',\n label: 'Modo Oscuro',\n type: 'boolean',\n default: true,\n },\n {\n key: 'style',\n label: 'Estilo (CSS)',\n type: 'text',\n default: 'height: 400px;',\n },\n {\n key: 'isSingle',\n label: 'Modo Single (Perfiles)',\n type: 'boolean',\n default: false,\n },\n {\n key: 'tileUrl',\n label: 'Tiles personalizados (URL Leaflet)',\n type: 'text',\n default: '',\n },\n ],\n examples: [\n {\n name: 'Madrid Centro',\n description:\n 'Vista básica con un marcador en la Puerta del Sol. Usa tiles de OpenStreetMap (sin clave) porque el proveedor por defecto (CARTO dark) exige API key.',\n inputs: {\n center: [40.41701, -3.70344],\n zoom: 16,\n tileUrl:\n 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',\n items: [\n {\n id: 'sol',\n lat: 40.41701,\n lng: -3.70344,\n title: 'Puerta del Sol',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=SOL',\n },\n ],\n },\n },\n {\n name: 'Clustering de Discotecas',\n description:\n 'Muchos marcadores en una misma zona que se agrupan automáticamente.',\n inputs: {\n center: [40.41, -3.7],\n zoom: 12,\n items: [\n {\n id: '1',\n lat: 40.41,\n lng: -3.7,\n title: 'Club 1',\n image:\n 'https://dummyimage.com/100x100/18181b/ffffff&text=C1',\n },\n { id: '2', lat: 40.412, lng: -3.702, title: 'Club 2' },\n { id: '3', lat: 40.415, lng: -3.701, title: 'Club 3' },\n { id: '4', lat: 40.408, lng: -3.698, title: 'Club 4' },\n { id: '5', lat: 40.418, lng: -3.705, title: 'Club 5' },\n { id: '6', lat: 40.411, lng: -3.708, title: 'Club 6' },\n { id: '7', lat: 40.414, lng: -3.703, title: 'Club 7' },\n { id: '8', lat: 40.405, lng: -3.695, title: 'Club 8' },\n { id: '9', lat: 40.42, lng: -3.71, title: 'Club 9' },\n {\n id: '10',\n lat: 40.413,\n lng: -3.697,\n title: 'Club 10',\n },\n ],\n },\n },\n {\n name: 'Localizador Draggable',\n description:\n 'Útil para formularios donde el usuario puede mover el pin para precisar una ubicación.',\n inputs: {\n center: [41.3851, 2.1734],\n zoom: 14,\n draggable: true,\n items: [\n {\n id: 'bcn',\n lat: 41.3851,\n lng: 2.1734,\n title: 'Barcelona (Mueveme)',\n },\n ],\n },\n },\n {\n name: 'Interactivo con Info Block',\n description:\n 'Mapa que utiliza el contenido proyectado para mostrar el XSMapInfoBlockComponent.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 15,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n address: {\n street: 'Calle de Atocha, 125',\n town: 'Madrid',\n country: { name: 'España', code: 'es' },\n },\n eventsFuture: 3,\n },\n },\n ],\n projectedInputs: {\n item: null, // Se llenará desde el marcador seleccionado\n type: 'site',\n },\n },\n projectedComponent: XSMapInfoBlockComponent,\n template: `\n <xs-map [center]=\"[40.416, -3.703]\" [zoom]=\"15\" [items]=\"[...]\">\n <xs-map-info-block [item]=\"...\" type=\"site\">\n </xs-map-info-block>\n </xs-map>\n `,\n },\n {\n name: 'Clusters en múltiples regiones',\n description:\n 'Visualización de múltiples focos de marcadores que se agrupan por cercanía.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 6,\n items: [\n { id: 'm1', lat: 40.41, lng: -3.7, title: 'Madrid 1' },\n {\n id: 'm2',\n lat: 40.42,\n lng: -3.71,\n title: 'Madrid 2',\n },\n {\n id: 'm3',\n lat: 40.415,\n lng: -3.69,\n title: 'Madrid 3',\n },\n { id: 'b1', lat: 41.38, lng: 2.17, title: 'BCN 1' },\n { id: 'b2', lat: 41.39, lng: 2.18, title: 'BCN 2' },\n { id: 'b3', lat: 41.4, lng: 2.16, title: 'BCN 3' },\n {\n id: 'v1',\n lat: 39.46,\n lng: -0.37,\n title: 'Valencia 1',\n },\n {\n id: 'v2',\n lat: 39.47,\n lng: -0.38,\n title: 'Valencia 2',\n },\n {\n id: 's1',\n lat: 37.38,\n lng: -5.98,\n title: 'Sevilla 1',\n },\n ],\n },\n },\n {\n name: 'Modo Claro (Fuerza Light Map)',\n description:\n 'Ejemplo de mapa con fondo claro forzado mediante el input isDarkMode.',\n inputs: {\n center: [40.4167, -3.70325],\n zoom: 13,\n isDarkMode: false,\n items: [\n {\n id: 'light',\n lat: 40.4167,\n lng: -3.70325,\n title: 'Modo Claro',\n },\n ],\n },\n },\n {\n name: 'Modo Single (Perfiles)',\n description:\n 'Desactiva pop-ups e interacciones para mapas en perfiles de artistas/locales.',\n inputs: {\n center: [40.416, -3.703],\n zoom: 16,\n isSingle: true,\n items: [\n {\n id: 'info',\n lat: 40.416,\n lng: -3.703,\n title: 'Teatro Kapital',\n data: {\n name: 'Teatro Kapital',\n site: { name: 'Teatro Kapital' },\n },\n },\n ],\n },\n },\n ],\n multilanguage: true,\n notes: [],\n coverage: {\n statements: 74,\n branches: 53,\n functions: 69,\n lines: 75,\n },\n};\n"],"names":[],"mappings":";;AAIO,MAAM,KAAK,GAAc;AAC9B,IAAA,EAAE,EAAE,KAAK;AACT,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC;AAClC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,WAAW,EACT,0PAA0P;AAC5P,IAAA,SAAS,EAAE,cAAc;AACzB,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,MAAM,EAAE;AACN,QAAA;AACE,YAAA,GAAG,EAAE,QAAQ;AACb,YAAA,KAAK,EAAE,mBAAmB;AAC1B,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,CAAC,kBAAkB,CAAC;AACnD,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,MAAM;AACX,YAAA,KAAK,EAAE,MAAM;AACb,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,OAAO,EAAE,EAAE;AACZ,SAAA;AACD,QAAA;AACE,YAAA,GAAG,EAAE,OAAO;AACZ,YAAA,KAAK,EAAE,YAAY;AACnB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE;AACP,gBAAA;AACE,oBAAA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;AACpB,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA;AACE,YAAA,IAAI,EAAE,wBAAwB;AAC9B,YAAA,WAAW,EACT,+EAA+E;AACjF,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC;AACxB,gBAAA,IAAI,EAAE,EAAE;AACR,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,EAAE,EAAE,MAAM;AACV,wBAAA,GAAG,EAAE,MAAM;wBACX,GAAG,EAAE,CAAC,KAAK;AACX,wBAAA,KAAK,EAAE,gBAAgB;AACvB,wBAAA,IAAI,EAAE;AACJ,4BAAA,IAAI,EAAE,gBAAgB;AACtB,4BAAA,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;AACjC,yBAAA;AACF,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,QAAQ,EAAE;AACR,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,SAAS,EAAE,EAAE;AACb,QAAA,KAAK,EAAE,EAAE;AACV,KAAA;;;;;"}
@@ -8638,7 +8638,9 @@ class XSModalImageSearchComponent {
8638
8638
  }
8639
8639
  constructor() {
8640
8640
  if (this.translateService?.currentLang$) {
8641
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
8641
+ this.translateService.currentLang$
8642
+ .pipe(takeUntilDestroyed(this.destroyRef))
8643
+ .subscribe(() => {
8642
8644
  this.langVersion.update((v) => v + 1);
8643
8645
  });
8644
8646
  }
@@ -13842,7 +13844,9 @@ class XSImportMediaHeaderComponent {
13842
13844
  }
13843
13845
  constructor() {
13844
13846
  if (this.translateService?.currentLang$) {
13845
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
13847
+ this.translateService.currentLang$
13848
+ .pipe(takeUntilDestroyed(this.destroyRef))
13849
+ .subscribe(() => {
13846
13850
  this.langVersion.update((v) => v + 1);
13847
13851
  });
13848
13852
  }
@@ -13865,7 +13869,9 @@ class XSImportMediaFlowComponent {
13865
13869
  langVersion = signal(0, ...(ngDevMode ? [{ debugName: "langVersion" }] : []));
13866
13870
  constructor() {
13867
13871
  if (this.translateService?.currentLang$) {
13868
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
13872
+ this.translateService.currentLang$
13873
+ .pipe(takeUntilDestroyed(this.destroyRef))
13874
+ .subscribe(() => {
13869
13875
  this.langVersion.update((v) => v + 1);
13870
13876
  });
13871
13877
  }
@@ -14282,7 +14288,9 @@ class XSChatListComponent {
14282
14288
  }
14283
14289
  constructor() {
14284
14290
  if (this.translateService?.currentLang$) {
14285
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
14291
+ this.translateService.currentLang$
14292
+ .pipe(takeUntilDestroyed(this.destroyRef))
14293
+ .subscribe(() => {
14286
14294
  this.langVersion.update((v) => v + 1);
14287
14295
  });
14288
14296
  }
@@ -14533,7 +14541,9 @@ class XSChatTextareaComponent {
14533
14541
  }
14534
14542
  constructor() {
14535
14543
  if (this.translateService?.currentLang$) {
14536
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
14544
+ this.translateService.currentLang$
14545
+ .pipe(takeUntilDestroyed(this.destroyRef))
14546
+ .subscribe(() => {
14537
14547
  this.langVersion.update((v) => v + 1);
14538
14548
  });
14539
14549
  }
@@ -15176,7 +15186,9 @@ class XSChatFloatingPanelComponent {
15176
15186
  }
15177
15187
  constructor() {
15178
15188
  if (this.translateService?.currentLang$) {
15179
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
15189
+ this.translateService.currentLang$
15190
+ .pipe(takeUntilDestroyed(this.destroyRef))
15191
+ .subscribe(() => {
15180
15192
  this.langVersion.update((v) => v + 1);
15181
15193
  });
15182
15194
  }
@@ -15795,7 +15807,9 @@ class XSNavbarComponent {
15795
15807
  'function') {
15796
15808
  this.translateService.registerTranslations({ es: es$6, en: en$6 });
15797
15809
  }
15798
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((lang) => this.langSignal.set(lang));
15810
+ this.translateService.currentLang$
15811
+ .pipe(takeUntilDestroyed(this.destroyRef))
15812
+ .subscribe((lang) => this.langSignal.set(lang));
15799
15813
  }
15800
15814
  t(key) {
15801
15815
  this.langSignal();
@@ -21223,7 +21237,9 @@ class XSProfileCommentsComponent {
21223
21237
  this.translateService.registerTranslations({ es, en });
21224
21238
  }
21225
21239
  this.loadTexts();
21226
- this.translateService.currentLang$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.loadTexts());
21240
+ this.translateService.currentLang$
21241
+ .pipe(takeUntilDestroyed(this.destroyRef))
21242
+ .subscribe(() => this.loadTexts());
21227
21243
  }
21228
21244
  loadTexts() {
21229
21245
  this.i18nTexts.set(this.translateService.getLanguage() === 'es' ? es : en);
@@ -21648,11 +21664,11 @@ class XSProfileTopsComponent {
21648
21664
  return { path, queryParams };
21649
21665
  }
21650
21666
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileTopsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21651
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileTopsComponent, isStandalone: true, selector: "xs-profile-tops", inputs: { itemType: { classPropertyName: "itemType", publicName: "itemType", isSignal: true, isRequired: true, transformFunction: null }, itemSubtype: { classPropertyName: "itemSubtype", publicName: "itemSubtype", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null }, positions: { classPropertyName: "positions", publicName: "positions", isSignal: true, isRequired: true, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rankingTab: "rankingTab", rankingClick: "rankingClick" }, host: { attributes: { "xs-profile-tops-host": "" } }, ngImport: i0, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 text-center sm:py-7\" aria-label=\"Ranking\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <div class=\"mx-auto my-3 h-px w-12 bg-white/10\"></div>\n <p class=\"text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"mt-3 inline-block text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21667
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: XSProfileTopsComponent, isStandalone: true, selector: "xs-profile-tops", inputs: { itemType: { classPropertyName: "itemType", publicName: "itemType", isSignal: true, isRequired: true, transformFunction: null }, itemSubtype: { classPropertyName: "itemSubtype", publicName: "itemSubtype", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: true, transformFunction: null }, positions: { classPropertyName: "positions", publicName: "positions", isSignal: true, isRequired: true, transformFunction: null }, admin: { classPropertyName: "admin", publicName: "admin", isSignal: true, isRequired: false, transformFunction: null }, links: { classPropertyName: "links", publicName: "links", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rankingTab: "rankingTab", rankingClick: "rankingClick" }, host: { attributes: { "xs-profile-tops-host": "" } }, ngImport: i0, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:py-7\" aria-label=\"Ranking\">\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors cursor-pointer\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n <p class=\"mt-3 text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors cursor-pointer\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21652
21668
  }
21653
21669
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: XSProfileTopsComponent, decorators: [{
21654
21670
  type: Component,
21655
- args: [{ selector: 'xs-profile-tops', host: { 'xs-profile-tops-host': '' }, imports: [CommonModule, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 text-center sm:py-7\" aria-label=\"Ranking\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <div class=\"mx-auto my-3 h-px w-12 bg-white/10\"></div>\n <p class=\"text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"mt-3 inline-block text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n" }]
21671
+ args: [{ selector: 'xs-profile-tops', host: { 'xs-profile-tops-host': '' }, imports: [CommonModule, RouterModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (loading()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:px-8\" aria-hidden=\"true\">\n <div class=\"flex items-center gap-6\">\n <div class=\"h-20 w-28 rounded-lg bg-zinc-800 animate-pulse\"></div>\n <div class=\"hidden w-px self-stretch bg-white/5 sm:block\"></div>\n <div class=\"min-w-0 flex-1\">\n <div class=\"h-4 w-40 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-2 h-3 w-56 rounded bg-zinc-800 animate-pulse\"></div>\n <div class=\"mt-4 h-7 w-72 rounded-lg bg-zinc-800 animate-pulse\"></div>\n </div>\n </div>\n </section>\n} @else if (!hasAnyPosition()) {\n <section class=\"rounded-xl bg-zinc-900/50 px-6 py-6 sm:py-7\" aria-label=\"Ranking\">\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-600\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-600 hover:text-zinc-300 transition-colors cursor-pointer\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n <p class=\"mt-3 text-sm text-zinc-500\">{{ texts().noPositionYet ?? 'Sin posici\u00F3n todav\u00EDa' }}</p>\n </section>\n} @else {\n <section\n class=\"relative overflow-hidden rounded-xl bg-zinc-900/50 px-6 py-5 sm:px-8 sm:py-6\"\n aria-label=\"Ranking\"\n >\n <span\n class=\"absolute inset-y-0 left-0 w-[3px] bg-gradient-to-b {{ accentClass() }}\"\n aria-hidden=\"true\"\n ></span>\n\n <div class=\"flex items-center justify-between gap-4\">\n <p class=\"text-[11px] font-black uppercase tracking-[0.28em] text-zinc-500\">\n {{ title() }}\n </p>\n <a\n [routerLink]=\"rankingLink().path\"\n [queryParams]=\"rankingLink().queryParams\"\n class=\"shrink-0 text-[11px] uppercase tracking-[0.14em] text-zinc-500 hover:text-white transition-colors cursor-pointer\"\n (click)=\"onRankingClick()\"\n >\n {{ texts().viewRanking ?? 'Ver ranking' }} \u2192\n </a>\n </div>\n\n <div\n class=\"mt-4 flex flex-col items-start gap-y-3 sm:mt-4 sm:flex-row sm:flex-nowrap sm:items-start sm:gap-x-8\"\n >\n @if (currentPosition() !== null) {\n <p\n class=\"shrink-0 text-7xl sm:text-8xl font-black leading-none tracking-tighter text-white\"\n >\n <span class=\"text-zinc-600\">#</span>{{ formattedPosition() }}\n </p>\n <span class=\"hidden w-px self-stretch bg-white/10 sm:block\" aria-hidden=\"true\"></span>\n }\n <div class=\"w-full min-w-0 sm:w-auto sm:flex-1\">\n <p class=\"text-sm font-black uppercase tracking-[0.24em] text-zinc-100\">\n @if (scope() === 'global') {\n {{ topWorldLabel() }}\n } @else {\n Top {{ texts().country }}\n }\n </p>\n <p class=\"mt-1 text-[11px] uppercase tracking-[0.2em] text-zinc-500\">\n @if (period() === 'total') {\n Ranking {{ texts().total }}\n } @else if (period() === 'annual') {\n Ranking {{ texts().annual ?? 'Anual' }} \u00B7 {{ currentYear }}\n } @else {\n Ranking {{ texts().monthly ?? 'Mensual' }} \u00B7 {{ texts().currentMonth }}\n {{ currentYear }}\n }\n </p>\n\n @if (currentPosition() === null) {\n <p class=\"mt-1.5 text-xs text-zinc-400\">\n {{ texts().noPositionHere ?? 'Sin posici\u00F3n en este tramo' }}\n </p>\n }\n\n <div\n class=\"flex flex-wrap items-center\"\n [class]=\"currentPosition() === null ? 'mt-3 gap-1.5' : 'mt-4 gap-2'\"\n >\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'global'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('global')\"\n >\n {{ topWorldLabel() }}\n </button>\n @if (hasCountry()) {\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n scope() === 'country'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setScope('country')\"\n >\n {{ texts().country }}\n </button>\n }\n </div>\n\n <div class=\"inline-flex items-center gap-0.5 rounded-lg bg-black/50 p-1\" role=\"tablist\">\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'total'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('total')\"\n >\n {{ texts().total }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'annual'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('annual')\"\n >\n {{ texts().annual ?? 'Anual' }}\n </button>\n <button\n type=\"button\"\n role=\"tab\"\n class=\"rounded-md px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.14em] transition-colors\"\n [class]=\"\n period() === 'monthly'\n ? 'bg-white/10 text-white'\n : 'text-zinc-500 hover:text-zinc-200'\n \"\n (click)=\"setPeriod('monthly')\"\n >\n {{ texts().monthly ?? 'Mensual' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </section>\n}\n" }]
21656
21672
  }], propDecorators: { itemType: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemType", required: true }] }], itemSubtype: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSubtype", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: true }] }], positions: [{ type: i0.Input, args: [{ isSignal: true, alias: "positions", required: true }] }], admin: [{ type: i0.Input, args: [{ isSignal: true, alias: "admin", required: false }] }], links: [{ type: i0.Input, args: [{ isSignal: true, alias: "links", required: false }] }], rankingTab: [{ type: i0.Output, args: ["rankingTab"] }], rankingClick: [{ type: i0.Output, args: ["rankingClick"] }] } });
21657
21673
 
21658
21674
  class XSStepperComponent {