valtech-components 4.0.209 → 4.0.210

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.
Files changed (29) hide show
  1. package/esm2022/lib/components/molecules/load-more/load-more.component.mjs +11 -7
  2. package/esm2022/lib/components/molecules/reaction-bar/reaction-bar.component.mjs +326 -0
  3. package/esm2022/lib/components/molecules/reaction-bar/types.mjs +2 -0
  4. package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +12 -9
  5. package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +79 -5
  6. package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.i18n.mjs +5 -1
  7. package/esm2022/lib/components/organisms/toolbar/toolbar.component.mjs +3 -3
  8. package/esm2022/lib/components/templates/page-wrapper/page-wrapper.component.mjs +108 -135
  9. package/esm2022/lib/services/auth/org-switch.service.mjs +11 -1
  10. package/esm2022/lib/services/reactions/config.mjs +22 -0
  11. package/esm2022/lib/services/reactions/index.mjs +3 -0
  12. package/esm2022/lib/services/reactions/reactions.service.mjs +89 -0
  13. package/esm2022/lib/services/reactions/types.mjs +2 -0
  14. package/esm2022/lib/version.mjs +2 -2
  15. package/esm2022/public-api.mjs +5 -1
  16. package/fesm2022/valtech-components.mjs +648 -156
  17. package/fesm2022/valtech-components.mjs.map +1 -1
  18. package/lib/components/molecules/reaction-bar/reaction-bar.component.d.ts +44 -0
  19. package/lib/components/molecules/reaction-bar/types.d.ts +55 -0
  20. package/lib/components/organisms/organization-view/organization-view.component.d.ts +1 -0
  21. package/lib/components/organisms/switch-org-modal/switch-org-modal.component.d.ts +5 -1
  22. package/lib/services/auth/org-switch.service.d.ts +9 -0
  23. package/lib/services/reactions/config.d.ts +20 -0
  24. package/lib/services/reactions/index.d.ts +3 -0
  25. package/lib/services/reactions/reactions.service.d.ts +42 -0
  26. package/lib/services/reactions/types.d.ts +48 -0
  27. package/lib/version.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/public-api.d.ts +3 -0
@@ -3,7 +3,7 @@ import { inject, InjectionToken, makeEnvironmentProviders, APP_INITIALIZER, Erro
3
3
  import { BehaviorSubject, throwError, Subject, map, distinctUntilChanged, filter as filter$1, take as take$1, firstValueFrom, of, from, EMPTY, Observable, interval, debounceTime, switchMap as switchMap$1, catchError as catchError$1, takeUntil, isObservable, forkJoin, race, timer, shareReplay as shareReplay$1 } from 'rxjs';
4
4
  import { catchError, switchMap, finalize, filter, take, timeout, map as map$1, tap, shareReplay, distinctUntilChanged as distinctUntilChanged$1, retry, debounceTime as debounceTime$1, takeUntil as takeUntil$1 } from 'rxjs/operators';
5
5
  import * as i1$3 from '@angular/common/http';
6
- import { provideHttpClient, withInterceptors, HttpClient, HttpErrorResponse } from '@angular/common/http';
6
+ import { provideHttpClient, withInterceptors, HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
7
7
  import * as i1$1 from '@angular/fire/firestore';
8
8
  import { provideFirestore, getFirestore, connectFirestoreEmulator, enableMultiTabIndexedDbPersistence, doc, getDoc, collection, query as query$1, getDocs, getCountFromServer, limit, docData, collectionData, serverTimestamp, addDoc, setDoc, updateDoc, deleteDoc, writeBatch, arrayUnion, arrayRemove, increment, where, orderBy, startAfter, startAt, endBefore, endAt, Timestamp, onSnapshot, Firestore } from '@angular/fire/firestore';
9
9
  import * as i1$5 from '@angular/common';
@@ -56,7 +56,7 @@ import { BrowserMultiFormatReader } from '@zxing/browser';
56
56
  * Current version of valtech-components.
57
57
  * This is automatically updated during the publish process.
58
58
  */
59
- const VERSION = '4.0.209';
59
+ const VERSION = '4.0.210';
60
60
 
61
61
  // Control de estado de refresco (singleton a nivel de módulo)
62
62
  let isRefreshing = false;
@@ -21166,16 +21166,18 @@ class LoadMoreComponent {
21166
21166
  [shape]="shape()"
21167
21167
  [size]="size()"
21168
21168
  [disabled]="loading()"
21169
+ class="lm-btn"
21169
21170
  (click)="onButtonClick()"
21170
21171
  >
21171
21172
  @if (loading()) {
21172
- <ion-spinner name="crescent" slot="start" />
21173
+ <ion-spinner name="crescent" />
21174
+ } @else {
21175
+ {{ label() }}
21173
21176
  }
21174
- {{ label() }}
21175
21177
  </ion-button>
21176
21178
  </div>
21177
21179
  }
21178
- `, isInline: true, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"], dependencies: [{ kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }] }); }
21180
+ `, isInline: true, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}.lm-btn{min-width:120px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"], dependencies: [{ kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }] }); }
21179
21181
  }
21180
21182
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LoadMoreComponent, decorators: [{
21181
21183
  type: Component,
@@ -21192,16 +21194,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
21192
21194
  [shape]="shape()"
21193
21195
  [size]="size()"
21194
21196
  [disabled]="loading()"
21197
+ class="lm-btn"
21195
21198
  (click)="onButtonClick()"
21196
21199
  >
21197
21200
  @if (loading()) {
21198
- <ion-spinner name="crescent" slot="start" />
21201
+ <ion-spinner name="crescent" />
21202
+ } @else {
21203
+ {{ label() }}
21199
21204
  }
21200
- {{ label() }}
21201
21205
  </ion-button>
21202
21206
  </div>
21203
21207
  }
21204
- `, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"] }]
21208
+ `, styles: [":host{display:block}.lm-wrap{display:flex;justify-content:center;padding:16px 0 8px}.lm-btn{min-width:120px}ion-button ion-spinner{--color: currentColor;width:1rem;height:1rem}\n"] }]
21205
21209
  }], ctorParameters: () => [], propDecorators: { loadMore: [{
21206
21210
  type: Output
21207
21211
  }] } });
@@ -34632,10 +34636,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
34632
34636
  * ```
34633
34637
  */
34634
34638
  class OrgSwitchService {
34639
+ /** Notify subscribers that the active org's data was updated. */
34640
+ notifyOrgDataUpdated(org) {
34641
+ this._orgDataUpdated.next(org);
34642
+ }
34635
34643
  constructor(auth) {
34636
34644
  this.auth = auth;
34637
34645
  this._switching = signal(false);
34638
34646
  this._orgChanged = new Subject();
34647
+ this._orgDataUpdated = new Subject();
34639
34648
  /**
34640
34649
  * `true` while a switch is in flight. UI should disable interactions
34641
34650
  * with org-scoped data and show a loading indicator.
@@ -34649,6 +34658,11 @@ class OrgSwitchService {
34649
34658
  * see the updated Firebase user / activeOrg claim.
34650
34659
  */
34651
34660
  this.orgChanged$ = this._orgChanged.asObservable();
34661
+ /**
34662
+ * Fires when org data (name, logoUrl, etc.) changes without a full org switch.
34663
+ * Subscribe in the app shell to keep the header org avatar up to date.
34664
+ */
34665
+ this.orgDataUpdated$ = this._orgDataUpdated.asObservable();
34652
34666
  }
34653
34667
  /**
34654
34668
  * Switch the user's active organization.
@@ -37155,7 +37169,7 @@ class ToolbarComponent {
37155
37169
  <!-- experimental -->
37156
37170
  <ng-content select="[toolbar-bottom]"></ng-content>
37157
37171
  </ion-toolbar>
37158
- `, isInline: true, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: UserAvatarComponent, selector: "val-user-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: IonMenuButton, selector: "ion-menu-button", inputs: ["autoHide", "color", "disabled", "menu", "mode", "type"] }, { kind: "component", type: LanguageSelectorComponent, selector: "val-language-selector", inputs: ["props"], outputs: ["languageChange"] }, { kind: "component", type: FontSizeSelectorComponent, selector: "val-font-size-selector", inputs: ["props"] }] }); }
37172
+ `, isInline: true, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}:host val-user-avatar+val-user-avatar{margin-left:6px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: IonText, selector: "ion-text", inputs: ["color", "mode"] }, { kind: "component", type: IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: ImageComponent, selector: "val-image", inputs: ["props"] }, { kind: "component", type: UserAvatarComponent, selector: "val-user-avatar", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: IonMenuButton, selector: "ion-menu-button", inputs: ["autoHide", "color", "disabled", "menu", "mode", "type"] }, { kind: "component", type: LanguageSelectorComponent, selector: "val-language-selector", inputs: ["props"], outputs: ["languageChange"] }, { kind: "component", type: FontSizeSelectorComponent, selector: "val-font-size-selector", inputs: ["props"] }] }); }
37159
37173
  }
37160
37174
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
37161
37175
  type: Component,
@@ -37280,7 +37294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
37280
37294
  <!-- experimental -->
37281
37295
  <ng-content select="[toolbar-bottom]"></ng-content>
37282
37296
  </ion-toolbar>
37283
- `, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}\n"] }]
37297
+ `, styles: ["@charset \"UTF-8\";:root{--val-container-sm: 540px;--val-container-md: 720px;--val-container-lg: 880px;--val-container-xl: 1100px;--val-container-padding: 16px;--ion-color-primary: #7026df;--ion-color-primary-rgb: 112, 38, 223;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #6321c4;--ion-color-primary-tint: #7e3ce2;--ion-color-secondary: #e2ccff;--ion-color-secondary-rgb: 226, 204, 255;--ion-color-secondary-contrast: #000000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #c7b4e0;--ion-color-secondary-tint: #e5d1ff;--ion-color-texti: #354c69;--ion-color-texti-rgb: 53, 76, 105;--ion-color-texti-contrast: #ffffff;--ion-color-texti-contrast-rgb: 255, 255, 255;--ion-color-texti-shade: #2f435c;--ion-color-texti-tint: #495e78;--ion-color-darki: #090f1b;--ion-color-darki-rgb: 9, 15, 27;--ion-color-darki-contrast: #ffffff;--ion-color-darki-contrast-rgb: 255, 255, 255;--ion-color-darki-shade: #080d18;--ion-color-darki-tint: #222732;--ion-color-medium: #9e9e9e;--ion-color-medium-rgb: 158, 158, 158;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #8b8b8b;--ion-color-medium-tint: #a8a8a8;--swiper-pagination-color: var(--ion-color-primary);--swiper-navigation-color: var(--ion-color-primary);--swiper-pagination-bullet-inactive-color: var(--ion-color-medium)}body.dark,html.ion-palette-dark,body[data-theme=dark]{--ion-color-texti: #8fc1ff;--ion-color-texti-rgb: 143, 193, 255;--ion-color-texti-contrast: #000000;--ion-color-texti-contrast-rgb: 0, 0, 0;--ion-color-texti-shade: #7eaae0;--ion-color-texti-tint: #9ac7ff;--ion-color-darki: #ffffff;--ion-color-darki-rgb: 255, 255, 255;--ion-color-darki-contrast: #000000;--ion-color-darki-contrast-rgb: 0, 0, 0;--ion-color-darki-shade: #e0e0e0;--ion-color-darki-tint: #ffffff;--ion-color-primary: #8f49f8;--ion-color-primary-rgb: 143, 73, 248;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #7e40da;--ion-color-primary-tint: #9a5bf9}.ion-color-texti{--ion-color-base: var(--ion-color-texti);--ion-color-base-rgb: var(--ion-color-texti-rgb);--ion-color-contrast: var(--ion-color-texti-contrast);--ion-color-contrast-rgb: var(--ion-color-texti-contrast-rgb);--ion-color-shade: var(--ion-color-texti-shade);--ion-color-tint: var(--ion-color-texti-tint)}.ion-color-darki{--ion-color-base: var(--ion-color-darki);--ion-color-base-rgb: var(--ion-color-darki-rgb);--ion-color-contrast: var(--ion-color-darki-contrast);--ion-color-contrast-rgb: var(--ion-color-darki-contrast-rgb);--ion-color-shade: var(--ion-color-darki-shade);--ion-color-tint: var(--ion-color-darki-tint)}ion-button{font-family:var(--ion-default-font),Arial,sans-serif}.left-buttons{margin-left:-1rem}.background{background:var(--ion-background-color)}:host ion-title{--color: var(--ion-text-color)}:host ion-button{--color: var(--ion-text-color)}:host ion-icon{color:var(--ion-text-color)}:host val-user-avatar+val-user-avatar{margin-left:6px}\n"] }]
37284
37298
  }], ctorParameters: () => [{ type: IconService }], propDecorators: { props: [{
37285
37299
  type: Input
37286
37300
  }], onClick: [{
@@ -53887,6 +53901,8 @@ const SWITCH_ORG_MODAL_I18N = {
53887
53901
  es: {
53888
53902
  title: 'Cambiar de cuenta',
53889
53903
  subtitle: 'Selecciona la organización a la que quieres cambiar.',
53904
+ activeOrgLabel: 'Organización activa',
53905
+ manage: 'Administrar',
53890
53906
  searchPlaceholder: 'Buscar organización...',
53891
53907
  noResults: 'No se encontraron organizaciones.',
53892
53908
  current: 'Actual',
@@ -53898,6 +53914,8 @@ const SWITCH_ORG_MODAL_I18N = {
53898
53914
  en: {
53899
53915
  title: 'Switch account',
53900
53916
  subtitle: 'Select the organization you want to switch to.',
53917
+ activeOrgLabel: 'Active organization',
53918
+ manage: 'Manage',
53901
53919
  searchPlaceholder: 'Search organization...',
53902
53920
  noResults: 'No organizations found.',
53903
53921
  current: 'Active',
@@ -53959,9 +53977,11 @@ class SwitchOrgModalComponent {
53959
53977
  const u = this.auth.user();
53960
53978
  return u?.activeOrgId ?? u?.activeOrg ?? '';
53961
53979
  });
53980
+ this.activeOrg = computed(() => this.orgs().find(o => o.id === this.activeOrgId()) ?? null);
53962
53981
  this.filteredOrgs = computed(() => {
53963
53982
  const q = this.query().trim().toLowerCase();
53964
- const list = this.orgs();
53983
+ const activeId = this.activeOrgId();
53984
+ const list = this.orgs().filter(o => o.id !== activeId);
53965
53985
  if (!q)
53966
53986
  return list;
53967
53987
  return list.filter(o => o.name.toLowerCase().includes(q));
@@ -54039,6 +54059,10 @@ class SwitchOrgModalComponent {
54039
54059
  this.dismiss();
54040
54060
  this.onProfileClick?.();
54041
54061
  }
54062
+ onManage() {
54063
+ this.dismiss();
54064
+ this.onManageOrg?.();
54065
+ }
54042
54066
  onCreateNew() {
54043
54067
  this.dismiss();
54044
54068
  this.onCreateOrg?.();
@@ -54050,7 +54074,7 @@ class SwitchOrgModalComponent {
54050
54074
  return this.i18n.t(key, this.i18nNamespace);
54051
54075
  }
54052
54076
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
54053
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SwitchOrgModalComponent, isStandalone: true, selector: "val-switch-org-modal", inputs: { _modalRef: "_modalRef", onSuccess: "onSuccess", onProfileClick: "onProfileClick", onCreateOrg: "onCreateOrg", i18nNamespace: "i18nNamespace" }, ngImport: i0, template: `
54077
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SwitchOrgModalComponent, isStandalone: true, selector: "val-switch-org-modal", inputs: { _modalRef: "_modalRef", onSuccess: "onSuccess", onProfileClick: "onProfileClick", onCreateOrg: "onCreateOrg", onManageOrg: "onManageOrg", i18nNamespace: "i18nNamespace" }, ngImport: i0, template: `
54054
54078
  <ion-header>
54055
54079
  <ion-toolbar>
54056
54080
  <ion-buttons slot="end">
@@ -54098,6 +54122,39 @@ class SwitchOrgModalComponent {
54098
54122
  />
54099
54123
  </div>
54100
54124
 
54125
+ @if (activeOrg(); as org) {
54126
+ <div class="active-org-card">
54127
+ <div class="org-row__icon">
54128
+ @if (org.logoUrl && !failedLogos().has(org.id)) {
54129
+ <img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
54130
+ } @else {
54131
+ <ion-icon name="business-outline" />
54132
+ }
54133
+ </div>
54134
+ <div class="org-row__body">
54135
+ <span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
54136
+ <span class="org-row__name">{{ org.name }}</span>
54137
+ @if (org.type) {
54138
+ <span class="org-row__type">{{ org.type }}</span>
54139
+ }
54140
+ </div>
54141
+ @if (onManageOrg) {
54142
+ <val-button
54143
+ [props]="{
54144
+ text: t('manage'),
54145
+ color: 'dark',
54146
+ fill: 'solid',
54147
+ shape: 'round',
54148
+ size: 'small',
54149
+ type: 'button',
54150
+ state: 'ENABLED',
54151
+ }"
54152
+ (click)="onManage()"
54153
+ />
54154
+ }
54155
+ </div>
54156
+ }
54157
+
54101
54158
  <div class="switch-section">
54102
54159
  <val-searchbar
54103
54160
  [props]="{
@@ -54165,7 +54222,7 @@ class SwitchOrgModalComponent {
54165
54222
  </div>
54166
54223
  }
54167
54224
  </ion-content>
54168
- `, isInline: true, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "component", type: LoadMoreComponent, selector: "val-load-more", inputs: ["props"], outputs: ["loadMore"] }, { kind: "component", type: SearchbarComponent, selector: "val-searchbar", inputs: ["preset", "props"], outputs: ["filterEvent", "focusEvent", "blurEvent"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }] }); }
54225
+ `, isInline: true, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;line-height:1.3;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;line-height:1.3;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active-org-card{display:flex;align-items:center;gap:12px;padding:14px;margin-top:16px;border:1.5px solid rgba(var(--ion-color-dark-rgb),.5);border-radius:14px;background:var(--ion-card-background, var(--ion-background-color))}.active-org-card__label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:rgba(var(--ion-color-dark-rgb),.5);margin-bottom:2px}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"], dependencies: [{ kind: "component", type: IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "component", type: IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { kind: "component", type: IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSpinner, selector: "ion-spinner", inputs: ["color", "duration", "name", "paused"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: DisplayComponent, selector: "val-display", inputs: ["props"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "component", type: LoadMoreComponent, selector: "val-load-more", inputs: ["props"], outputs: ["loadMore"] }, { kind: "component", type: SearchbarComponent, selector: "val-searchbar", inputs: ["preset", "props"], outputs: ["filterEvent", "focusEvent", "blurEvent"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }] }); }
54169
54226
  }
54170
54227
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SwitchOrgModalComponent, decorators: [{
54171
54228
  type: Component,
@@ -54231,6 +54288,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
54231
54288
  />
54232
54289
  </div>
54233
54290
 
54291
+ @if (activeOrg(); as org) {
54292
+ <div class="active-org-card">
54293
+ <div class="org-row__icon">
54294
+ @if (org.logoUrl && !failedLogos().has(org.id)) {
54295
+ <img [src]="org.logoUrl" [alt]="org.name" (error)="onLogoError(org.id)" />
54296
+ } @else {
54297
+ <ion-icon name="business-outline" />
54298
+ }
54299
+ </div>
54300
+ <div class="org-row__body">
54301
+ <span class="active-org-card__label">{{ t('activeOrgLabel') }}</span>
54302
+ <span class="org-row__name">{{ org.name }}</span>
54303
+ @if (org.type) {
54304
+ <span class="org-row__type">{{ org.type }}</span>
54305
+ }
54306
+ </div>
54307
+ @if (onManageOrg) {
54308
+ <val-button
54309
+ [props]="{
54310
+ text: t('manage'),
54311
+ color: 'dark',
54312
+ fill: 'solid',
54313
+ shape: 'round',
54314
+ size: 'small',
54315
+ type: 'button',
54316
+ state: 'ENABLED',
54317
+ }"
54318
+ (click)="onManage()"
54319
+ />
54320
+ }
54321
+ </div>
54322
+ }
54323
+
54234
54324
  <div class="switch-section">
54235
54325
  <val-searchbar
54236
54326
  [props]="{
@@ -54298,7 +54388,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
54298
54388
  </div>
54299
54389
  }
54300
54390
  </ion-content>
54301
- `, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"] }]
54391
+ `, styles: [".switch-section{margin-top:16px;display:flex;flex-direction:column;gap:12px}.switch-state{display:flex;justify-content:center;padding:24px 0}.orgs-list{display:flex;flex-direction:column;gap:8px}.org-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid rgba(var(--ion-color-dark-rgb),.14);border-radius:12px;background:var(--ion-card-background, var(--ion-background-color));cursor:pointer;text-align:left;transition:border-color .15s ease,opacity .15s ease}.org-row:not(:disabled):active{opacity:.7}.org-row:disabled{cursor:default}.org-row--active{border-color:var(--ion-color-dark)}.org-row__icon{width:36px;height:36px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--ion-color-dark);background:rgba(var(--ion-color-dark-rgb),.08)}.org-row__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.org-row__name{font-weight:600;font-size:.95rem;line-height:1.3;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-row__type{font-size:.8rem;line-height:1.3;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__end{display:flex;align-items:center;gap:6px;flex-shrink:0}.org-row__current{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:rgba(var(--ion-color-dark-rgb),.7)}.org-row__check{font-size:1.1rem;color:var(--ion-color-dark)}.org-row__spinner{width:18px;height:18px;color:var(--ion-color-dark)}.org-row__icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-strip{display:flex;align-items:center;gap:12px;padding:12px 0 4px;margin-bottom:8px;border-bottom:1px solid rgba(var(--ion-color-dark-rgb),.1)}.user-strip__avatar{width:44px;height:44px;border-radius:50%;flex-shrink:0;overflow:hidden;background:rgba(var(--ion-color-dark-rgb),.1);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;color:var(--ion-color-dark)}.user-strip__avatar img{width:100%;height:100%;object-fit:cover}.user-strip__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.user-strip__name{font-weight:600;font-size:.9rem;color:var(--ion-color-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip__email{font-size:.78rem;color:rgba(var(--ion-color-dark-rgb),.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active-org-card{display:flex;align-items:center;gap:12px;padding:14px;margin-top:16px;border:1.5px solid rgba(var(--ion-color-dark-rgb),.5);border-radius:14px;background:var(--ion-card-background, var(--ion-background-color))}.active-org-card__label{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:rgba(var(--ion-color-dark-rgb),.5);margin-bottom:2px}.new-org-cta{margin-top:16px;padding-top:16px;border-top:1px solid rgba(var(--ion-color-dark-rgb),.1)}\n"] }]
54302
54392
  }], ctorParameters: () => [], propDecorators: { _modalRef: [{
54303
54393
  type: Input
54304
54394
  }], onSuccess: [{
@@ -54307,6 +54397,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
54307
54397
  type: Input
54308
54398
  }], onCreateOrg: [{
54309
54399
  type: Input
54400
+ }], onManageOrg: [{
54401
+ type: Input
54310
54402
  }], i18nNamespace: [{
54311
54403
  type: Input
54312
54404
  }] } });
@@ -54562,6 +54654,7 @@ class OrganizationViewComponent {
54562
54654
  this.nav = inject(NavigationService);
54563
54655
  this.i18n = inject(I18nService);
54564
54656
  this.auth = inject(AuthService);
54657
+ this.orgSwitch = inject(OrgSwitchService);
54565
54658
  this.orgService = inject(OrgService);
54566
54659
  this.toast = inject(ToastService);
54567
54660
  this.errors = inject(ValtechErrorService);
@@ -54815,6 +54908,7 @@ class OrganizationViewComponent {
54815
54908
  org: this.org(),
54816
54909
  onSuccess: (updated) => {
54817
54910
  this.org.set(updated);
54911
+ this.orgSwitch.notifyOrgDataUpdated(updated);
54818
54912
  this.resolvedConfig().onOrgEdited?.();
54819
54913
  },
54820
54914
  },
@@ -55400,7 +55494,7 @@ class OrganizationViewComponent {
55400
55494
 
55401
55495
  @if (resolvedConfig().showTransferOwnership && isOwner()) {
55402
55496
  <!-- Transfer ownership: solo owner (gating RBAC interno) -->
55403
- <section class="settings-section" data-testid="org-transfer-section">
55497
+ <section class="settings-section settings-section--danger" data-testid="org-transfer-section">
55404
55498
  <div class="section-title-danger">
55405
55499
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55406
55500
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
@@ -55434,7 +55528,7 @@ class OrganizationViewComponent {
55434
55528
 
55435
55529
  @if (resolvedConfig().showLeave) {
55436
55530
  <!-- Leave org -->
55437
- <section class="settings-section">
55531
+ <section class="settings-section settings-section--danger">
55438
55532
  <div class="section-title-danger">
55439
55533
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55440
55534
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
@@ -55457,7 +55551,7 @@ class OrganizationViewComponent {
55457
55551
 
55458
55552
  @if (resolvedConfig().showDeleteOrg && isOwner()) {
55459
55553
  <!-- Delete org: solo owner, acción más destructiva -->
55460
- <section class="settings-section" data-testid="org-delete-section">
55554
+ <section class="settings-section settings-section--danger" data-testid="org-delete-section">
55461
55555
  <div class="section-title-danger">
55462
55556
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55463
55557
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
@@ -55506,7 +55600,7 @@ class OrganizationViewComponent {
55506
55600
  (created)="onOrgCreated($event)"
55507
55601
  />
55508
55602
  </div>
55509
- `, isInline: true, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}\n"], dependencies: [{ kind: "component", type: CreateOrgModalComponent, selector: "val-create-org-modal", inputs: ["i18nNamespace", "isOpen"], outputs: ["dismissed", "created"] }, { kind: "component", type: CtaCardComponent, selector: "val-cta-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "directive", type: HasPermissionDirective, selector: "[valHasPermission]", inputs: ["valHasPermission"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: SkeletonLayoutComponent, selector: "val-skeleton-layout", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: MemberCardComponent, selector: "val-member-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: PermissionsModalComponent, selector: "val-permissions-modal", inputs: ["isOpen", "config"], outputs: ["dismissed"] }, { kind: "component", type: SectionHeaderComponent, selector: "val-section-header", inputs: ["props"], outputs: ["actionClick"] }] }); }
55603
+ `, isInline: true, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}.settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 4%,transparent);border-radius:14px;padding:16px;margin:0 -4px}:host-context(body.dark) .settings-section--danger,:host-context(html.ion-palette-dark) .settings-section--danger,:host-context([data-theme=\"dark\"]) .settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 8%,transparent)}\n"], dependencies: [{ kind: "component", type: CreateOrgModalComponent, selector: "val-create-org-modal", inputs: ["i18nNamespace", "isOpen"], outputs: ["dismissed", "created"] }, { kind: "component", type: CtaCardComponent, selector: "val-cta-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: EmptyStateComponent, selector: "val-empty-state", inputs: ["props"] }, { kind: "directive", type: HasPermissionDirective, selector: "[valHasPermission]", inputs: ["valHasPermission"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: SkeletonLayoutComponent, selector: "val-skeleton-layout", inputs: ["props"] }, { kind: "component", type: TitleComponent, selector: "val-title", inputs: ["props"] }, { kind: "component", type: TextComponent, selector: "val-text", inputs: ["props"] }, { kind: "component", type: ButtonComponent, selector: "val-button", inputs: ["preset", "props"], outputs: ["onClick"] }, { kind: "component", type: MemberCardComponent, selector: "val-member-card", inputs: ["props"], outputs: ["onAction"] }, { kind: "component", type: PermissionsModalComponent, selector: "val-permissions-modal", inputs: ["isOpen", "config"], outputs: ["dismissed"] }, { kind: "component", type: SectionHeaderComponent, selector: "val-section-header", inputs: ["props"], outputs: ["actionClick"] }] }); }
55510
55604
  }
55511
55605
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OrganizationViewComponent, decorators: [{
55512
55606
  type: Component,
@@ -55727,7 +55821,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
55727
55821
 
55728
55822
  @if (resolvedConfig().showTransferOwnership && isOwner()) {
55729
55823
  <!-- Transfer ownership: solo owner (gating RBAC interno) -->
55730
- <section class="settings-section" data-testid="org-transfer-section">
55824
+ <section class="settings-section settings-section--danger" data-testid="org-transfer-section">
55731
55825
  <div class="section-title-danger">
55732
55826
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55733
55827
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('transferTitle') }" />
@@ -55761,7 +55855,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
55761
55855
 
55762
55856
  @if (resolvedConfig().showLeave) {
55763
55857
  <!-- Leave org -->
55764
- <section class="settings-section">
55858
+ <section class="settings-section settings-section--danger">
55765
55859
  <div class="section-title-danger">
55766
55860
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55767
55861
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('leaveTitle') }" />
@@ -55784,7 +55878,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
55784
55878
 
55785
55879
  @if (resolvedConfig().showDeleteOrg && isOwner()) {
55786
55880
  <!-- Delete org: solo owner, acción más destructiva -->
55787
- <section class="settings-section" data-testid="org-delete-section">
55881
+ <section class="settings-section settings-section--danger" data-testid="org-delete-section">
55788
55882
  <div class="section-title-danger">
55789
55883
  <ion-icon name="warning-outline" class="danger-icon" aria-hidden="true"></ion-icon>
55790
55884
  <val-title [props]="{ size: 'medium', color: 'dark', bold: true, content: tt('deleteTitle') }" />
@@ -55833,7 +55927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
55833
55927
  (created)="onOrgCreated($event)"
55834
55928
  />
55835
55929
  </div>
55836
- `, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}\n"] }]
55930
+ `, styles: [".page{padding:16px 0;max-width:720px;margin:0 auto}.org-more-info-link{background:none;border:none;padding:4px 0;margin-top:4px;font-size:13px;font-weight:600;color:var(--ion-color-primary, #7026df);cursor:pointer;text-align:left}.page-header{margin-bottom:16px}.settings-section{padding:16px 0}.settings-section+.settings-section{border-top:1px solid var(--val-border-color, rgba(0, 0, 0, .08))}.section-header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.section-body{display:flex;flex-direction:column;gap:10px}.row-actions{margin-top:12px}.row-actions--gap{display:flex;gap:8px}.invite-cta{display:flex;flex-direction:column;gap:16px}.invite-cta__text{display:flex;flex-direction:column;gap:4px}.invite-cta__actions{display:flex;gap:12px;flex-wrap:wrap}.org-info-card{border-radius:14px;background:var(--ion-color-light, #f4f5f8);overflow:hidden}.org-info-logo{display:flex;justify-content:center;padding:8px 0 16px}.org-logo-img{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--ion-color-light)}:host-context(body.dark) .org-info-card,:host-context(html.ion-palette-dark) .org-info-card,:host-context([data-theme=\"dark\"]) .org-info-card{background:#ffffff0d}.org-info-field{padding:12px 16px;display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--val-border-color, rgba(0, 0, 0, .06))}.org-info-field:last-child{border-bottom:none}.org-info-label{font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ion-color-medium)}.org-info-value{font-size:.95rem;font-weight:500;color:var(--ion-color-dark)}.org-info-value--muted{color:var(--ion-color-medium);font-weight:400}.plan-badge{display:inline-block;font-size:.78rem;font-weight:700;padding:3px 10px;border-radius:20px;width:fit-content}.plan-badge--free{background:var(--ion-color-light-shade, #d7d8da);color:var(--ion-color-dark)}.plan-badge--pro{background:var(--ion-color-primary);color:#fff}.plan-badge--enterprise{background:#f5c542;color:#222}.members-list{display:flex;flex-direction:column;gap:8px}.members-show-more{background:none;border:none;color:var(--ion-color-primary);font-size:14px;font-weight:500;cursor:pointer;padding:8px 0}.rbac-debug{opacity:.7}.rbac-debug__body{display:flex;flex-direction:column;gap:6px;font-family:monospace;font-size:.78rem}.rbac-debug__row{display:flex;gap:8px;align-items:flex-start}.rbac-debug__label{color:var(--ion-color-medium);min-width:72px;flex-shrink:0}.rbac-debug__value{color:var(--ion-color-dark);word-break:break-all}.rbac-debug__value--perms{color:var(--ion-color-medium)}.section-title-danger{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section-title-danger val-title{display:block;margin:0}.danger-icon{display:block;font-size:1.125rem;color:var(--ion-color-warning-shade, #d4a017);flex-shrink:0}.settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 4%,transparent);border-radius:14px;padding:16px;margin:0 -4px}:host-context(body.dark) .settings-section--danger,:host-context(html.ion-palette-dark) .settings-section--danger,:host-context([data-theme=\"dark\"]) .settings-section--danger{background:color-mix(in srgb,var(--ion-color-danger) 8%,transparent)}\n"] }]
55837
55931
  }], ctorParameters: () => [], propDecorators: { config: [{
55838
55932
  type: Input
55839
55933
  }] } });
@@ -61188,72 +61282,60 @@ class PageWrapperComponent {
61188
61282
  }
61189
61283
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
61190
61284
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PageWrapperComponent, isStandalone: true, selector: "val-page-wrapper", inputs: { props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onHeaderClick: "onHeaderClick" }, ngImport: i0, template: `
61191
- @if (hasSideMenu()) {
61192
- <ion-split-pane contentId="val-pw-main" [when]="'md'">
61193
- <ion-menu contentId="val-pw-main" type="overlay">
61194
- <ion-content>
61195
- <ion-list lines="none" class="pw-menu-list">
61196
- @for (item of menuItems(); track item.route) {
61197
- <ion-menu-toggle [autoHide]="false">
61198
- <ion-item
61199
- [routerLink]="item.route"
61200
- routerLinkActive="pw-menu-active"
61201
- [routerLinkActiveOptions]="{ exact: item.exact ?? false }"
61202
- lines="none"
61203
- >
61204
- @if (item.icon) {
61205
- <ion-icon [name]="item.icon" slot="start" />
61206
- }
61207
- <ion-label>{{ item.label }}</ion-label>
61208
- </ion-item>
61209
- </ion-menu-toggle>
61210
- }
61211
- </ion-list>
61212
- </ion-content>
61213
- </ion-menu>
61214
- <div class="ion-page" id="val-pw-main">
61215
- <ng-container *ngTemplateOutlet="pageContent" />
61216
- </div>
61217
- </ion-split-pane>
61218
- } @else {
61219
- <div class="ion-page">
61220
- <ng-container *ngTemplateOutlet="pageContent" />
61285
+ <div class="ion-page" [class.pw-has-menu]="hasSideMenu()">
61286
+ @if (hasSideMenu()) {
61287
+ <nav class="pw-sidenav" aria-label="Menú lateral">
61288
+ <ion-list lines="none" class="pw-menu-list">
61289
+ @for (item of menuItems(); track item.route) {
61290
+ <ion-item
61291
+ [routerLink]="item.route"
61292
+ routerLinkActive="pw-menu-active"
61293
+ [routerLinkActiveOptions]="{ exact: item.exact ?? false }"
61294
+ lines="none"
61295
+ >
61296
+ @if (item.icon) {
61297
+ <ion-icon [name]="item.icon" slot="start" />
61298
+ }
61299
+ <ion-label>{{ item.label }}</ion-label>
61300
+ </ion-item>
61301
+ }
61302
+ </ion-list>
61303
+ </nav>
61304
+ }
61305
+ <div class="pw-content">
61306
+ <val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
61307
+ <ion-content
61308
+ [id]="contentId()"
61309
+ [fullscreen]="true"
61310
+ [ngStyle]="{
61311
+ '--background': background(),
61312
+ }"
61313
+ >
61314
+ <!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
61315
+ página activa registró un handler vía PageRefreshService.
61316
+ ion-refresher con slot="fixed" DEBE ser hijo directo de
61317
+ ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
61318
+ @if (pageRefresh.hasHandler()) {
61319
+ <ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
61320
+ <ion-refresher-content
61321
+ pullingIcon="chevron-down-circle-outline"
61322
+ refreshingSpinner="circular"
61323
+ ></ion-refresher-content>
61324
+ </ion-refresher>
61325
+ }
61326
+ <val-network-banner />
61327
+ <val-container [props]="{ size: contentMaxWidth() }">
61328
+ <main>
61329
+ <router-outlet></router-outlet>
61330
+ </main>
61331
+ </val-container>
61332
+ @if (propsFooter()) {
61333
+ <val-company-footer [props]="propsFooter()" />
61334
+ }
61335
+ </ion-content>
61221
61336
  </div>
61222
- }
61223
-
61224
- <ng-template #pageContent>
61225
- <val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
61226
- <ion-content
61227
- [id]="contentId()"
61228
- [fullscreen]="true"
61229
- [ngStyle]="{
61230
- '--background': background(),
61231
- }"
61232
- >
61233
- <!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
61234
- página activa registró un handler vía PageRefreshService.
61235
- ion-refresher con slot="fixed" DEBE ser hijo directo de
61236
- ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
61237
- @if (pageRefresh.hasHandler()) {
61238
- <ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
61239
- <ion-refresher-content
61240
- pullingIcon="chevron-down-circle-outline"
61241
- refreshingSpinner="circular"
61242
- ></ion-refresher-content>
61243
- </ion-refresher>
61244
- }
61245
- <val-network-banner />
61246
- <val-container [props]="{ size: contentMaxWidth() }">
61247
- <main>
61248
- <router-outlet></router-outlet>
61249
- </main>
61250
- </val-container>
61251
- @if (propsFooter()) {
61252
- <val-company-footer [props]="propsFooter()" />
61253
- }
61254
- </ion-content>
61255
- </ng-template>
61256
- `, isInline: true, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: var(--ion-color-primary-tint, rgba(var(--ion-color-primary-rgb), .12));--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: HeaderComponent, selector: "val-header", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: CompanyFooterComponent, selector: "val-company-footer", inputs: ["props"] }, { kind: "component", type: ContainerComponent, selector: "val-container", inputs: ["props"] }, { kind: "component", type: IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "mode", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: NetworkBannerComponent, selector: "val-network-banner" }] }); }
61337
+ </div>
61338
+ `, isInline: true, styles: [".ion-page.pw-has-menu{flex-direction:row}.pw-sidenav{width:0;overflow:hidden;flex-shrink:0;border-right:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-background-color);transition:width .25s ease}@media (min-width: 768px){.pw-sidenav{width:220px}}.pw-content{display:flex;flex-direction:column;flex:1;min-width:0;position:relative}main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: rgba(var(--ion-color-primary-rgb, 0, 0, 0), .1);--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: HeaderComponent, selector: "val-header", inputs: ["props"], outputs: ["onClick"] }, { kind: "component", type: CompanyFooterComponent, selector: "val-company-footer", inputs: ["props"] }, { kind: "component", type: ContainerComponent, selector: "val-container", inputs: ["props"] }, { kind: "component", type: IonRefresher, selector: "ion-refresher", inputs: ["closeDuration", "disabled", "mode", "pullFactor", "pullMax", "pullMin", "snapbackDuration"] }, { kind: "component", type: IonRefresherContent, selector: "ion-refresher-content", inputs: ["pullingIcon", "pullingText", "refreshingSpinner", "refreshingText"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: IonContent, selector: "ion-content", inputs: ["color", "fixedSlotPlacement", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: NetworkBannerComponent, selector: "val-network-banner" }] }); }
61257
61339
  }
61258
61340
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PageWrapperComponent, decorators: [{
61259
61341
  type: Component,
@@ -61269,81 +61351,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
61269
61351
  RouterLink,
61270
61352
  RouterLinkActive,
61271
61353
  IonContent,
61272
- IonSplitPane,
61273
- IonMenu,
61274
- IonMenuToggle,
61275
61354
  IonList,
61276
61355
  IonItem,
61277
61356
  IonLabel,
61278
61357
  IonIcon,
61279
61358
  NetworkBannerComponent,
61280
61359
  ], template: `
61281
- @if (hasSideMenu()) {
61282
- <ion-split-pane contentId="val-pw-main" [when]="'md'">
61283
- <ion-menu contentId="val-pw-main" type="overlay">
61284
- <ion-content>
61285
- <ion-list lines="none" class="pw-menu-list">
61286
- @for (item of menuItems(); track item.route) {
61287
- <ion-menu-toggle [autoHide]="false">
61288
- <ion-item
61289
- [routerLink]="item.route"
61290
- routerLinkActive="pw-menu-active"
61291
- [routerLinkActiveOptions]="{ exact: item.exact ?? false }"
61292
- lines="none"
61293
- >
61294
- @if (item.icon) {
61295
- <ion-icon [name]="item.icon" slot="start" />
61296
- }
61297
- <ion-label>{{ item.label }}</ion-label>
61298
- </ion-item>
61299
- </ion-menu-toggle>
61300
- }
61301
- </ion-list>
61302
- </ion-content>
61303
- </ion-menu>
61304
- <div class="ion-page" id="val-pw-main">
61305
- <ng-container *ngTemplateOutlet="pageContent" />
61306
- </div>
61307
- </ion-split-pane>
61308
- } @else {
61309
- <div class="ion-page">
61310
- <ng-container *ngTemplateOutlet="pageContent" />
61360
+ <div class="ion-page" [class.pw-has-menu]="hasSideMenu()">
61361
+ @if (hasSideMenu()) {
61362
+ <nav class="pw-sidenav" aria-label="Menú lateral">
61363
+ <ion-list lines="none" class="pw-menu-list">
61364
+ @for (item of menuItems(); track item.route) {
61365
+ <ion-item
61366
+ [routerLink]="item.route"
61367
+ routerLinkActive="pw-menu-active"
61368
+ [routerLinkActiveOptions]="{ exact: item.exact ?? false }"
61369
+ lines="none"
61370
+ >
61371
+ @if (item.icon) {
61372
+ <ion-icon [name]="item.icon" slot="start" />
61373
+ }
61374
+ <ion-label>{{ item.label }}</ion-label>
61375
+ </ion-item>
61376
+ }
61377
+ </ion-list>
61378
+ </nav>
61379
+ }
61380
+ <div class="pw-content">
61381
+ <val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
61382
+ <ion-content
61383
+ [id]="contentId()"
61384
+ [fullscreen]="true"
61385
+ [ngStyle]="{
61386
+ '--background': background(),
61387
+ }"
61388
+ >
61389
+ <!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
61390
+ página activa registró un handler vía PageRefreshService.
61391
+ ion-refresher con slot="fixed" DEBE ser hijo directo de
61392
+ ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
61393
+ @if (pageRefresh.hasHandler()) {
61394
+ <ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
61395
+ <ion-refresher-content
61396
+ pullingIcon="chevron-down-circle-outline"
61397
+ refreshingSpinner="circular"
61398
+ ></ion-refresher-content>
61399
+ </ion-refresher>
61400
+ }
61401
+ <val-network-banner />
61402
+ <val-container [props]="{ size: contentMaxWidth() }">
61403
+ <main>
61404
+ <router-outlet></router-outlet>
61405
+ </main>
61406
+ </val-container>
61407
+ @if (propsFooter()) {
61408
+ <val-company-footer [props]="propsFooter()" />
61409
+ }
61410
+ </ion-content>
61311
61411
  </div>
61312
- }
61313
-
61314
- <ng-template #pageContent>
61315
- <val-header [props]="headerProps()" (onClick)="onHeaderClickHandler($event)" />
61316
- <ion-content
61317
- [id]="contentId()"
61318
- [fullscreen]="true"
61319
- [ngStyle]="{
61320
- '--background': background(),
61321
- }"
61322
- >
61323
- <!-- Pull-to-refresh estándar del factory. Se renderiza sólo cuando la
61324
- página activa registró un handler vía PageRefreshService.
61325
- ion-refresher con slot="fixed" DEBE ser hijo directo de
61326
- ion-content — por eso va aquí crudo, no envuelto en val-refresher. -->
61327
- @if (pageRefresh.hasHandler()) {
61328
- <ion-refresher slot="fixed" (ionRefresh)="onPageRefresh($event)">
61329
- <ion-refresher-content
61330
- pullingIcon="chevron-down-circle-outline"
61331
- refreshingSpinner="circular"
61332
- ></ion-refresher-content>
61333
- </ion-refresher>
61334
- }
61335
- <val-network-banner />
61336
- <val-container [props]="{ size: contentMaxWidth() }">
61337
- <main>
61338
- <router-outlet></router-outlet>
61339
- </main>
61340
- </val-container>
61341
- @if (propsFooter()) {
61342
- <val-company-footer [props]="propsFooter()" />
61343
- }
61344
- </ion-content>
61345
- </ng-template>
61346
- `, styles: ["main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: var(--ion-color-primary-tint, rgba(var(--ion-color-primary-rgb), .12));--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"] }]
61412
+ </div>
61413
+ `, styles: [".ion-page.pw-has-menu{flex-direction:row}.pw-sidenav{width:0;overflow:hidden;flex-shrink:0;border-right:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-background-color);transition:width .25s ease}@media (min-width: 768px){.pw-sidenav{width:220px}}.pw-content{display:flex;flex-direction:column;flex:1;min-width:0;position:relative}main{min-height:60vh;padding-bottom:calc(var(--val-bottom-nav-height, 0px) + env(safe-area-inset-bottom,0px) + 16px)}.pw-menu-list{padding-top:12px}.pw-menu-list ion-item{--border-radius: 10px;--padding-start: 12px;--padding-end: 12px;margin:2px 8px;font-size:.9375rem}.pw-menu-list ion-item.pw-menu-active{--background: rgba(var(--ion-color-primary-rgb, 0, 0, 0), .1);--color: var(--ion-color-primary);font-weight:600}.pw-menu-list ion-item.pw-menu-active ion-icon{color:var(--ion-color-primary)}\n"] }]
61347
61414
  }], propDecorators: { onHeaderClick: [{
61348
61415
  type: Output
61349
61416
  }] } });
@@ -66952,6 +67019,431 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
66952
67019
  type: Output
66953
67020
  }] } });
66954
67021
 
67022
+ /**
67023
+ * Token de inyeccion para la configuracion del servicio de Reactions.
67024
+ */
67025
+ const VALTECH_REACTIONS_CONFIG = new InjectionToken('ValtechReactionsConfig');
67026
+ /**
67027
+ * Provee el servicio de reactions a la aplicacion Angular.
67028
+ *
67029
+ * @param config - Configuracion de reactions
67030
+ * @returns EnvironmentProviders para usar en bootstrapApplication
67031
+ *
67032
+ * @example
67033
+ * bootstrapApplication(AppComponent, {
67034
+ * providers: [
67035
+ * provideValtechReactions({ apiUrl: environment.apiUrl, appId: 'my-app' }),
67036
+ * ],
67037
+ * });
67038
+ */
67039
+ function provideValtechReactions(config) {
67040
+ return makeEnvironmentProviders([{ provide: VALTECH_REACTIONS_CONFIG, useValue: config }]);
67041
+ }
67042
+
67043
+ /**
67044
+ * Servicio para gestionar reacciones emoji configurables por contexto.
67045
+ *
67046
+ * Requiere provideValtechReactions() en el bootstrap de la app.
67047
+ *
67048
+ * @example
67049
+ * const svc = inject(ReactionsService);
67050
+ * svc.react({ entityRef: { entityType: 'post', entityId: '1' }, token: 'heart', appId: 'app' })
67051
+ * .subscribe(res => console.log(res.counts));
67052
+ */
67053
+ class ReactionsService {
67054
+ constructor() {
67055
+ this.http = inject(HttpClient);
67056
+ this.config = inject(VALTECH_REACTIONS_CONFIG, { optional: true });
67057
+ if (!this.config && isDevMode()) {
67058
+ console.warn('[valtech-components] ReactionsService: provideValtechReactions() no esta en main.ts. ' +
67059
+ 'Las reacciones no funcionaran.');
67060
+ }
67061
+ }
67062
+ get apiUrl() {
67063
+ return this.config?.apiUrl ?? '';
67064
+ }
67065
+ get baseUrl() {
67066
+ return `${this.apiUrl}/v2/reactions`;
67067
+ }
67068
+ /**
67069
+ * Toggle reaccion — retorna estado nuevo + conteos actualizados.
67070
+ */
67071
+ react(req) {
67072
+ if (!this.config)
67073
+ return EMPTY;
67074
+ return this.http.post(this.baseUrl, req);
67075
+ }
67076
+ /**
67077
+ * Conteos + reacciones del usuario para una entidad.
67078
+ */
67079
+ getCounts(appId, entityType, entityId) {
67080
+ if (!this.config)
67081
+ return EMPTY;
67082
+ const params = new HttpParams()
67083
+ .set('appId', appId)
67084
+ .set('entityType', entityType)
67085
+ .set('entityId', entityId);
67086
+ return this.http.get(`${this.baseUrl}/counts`, { params });
67087
+ }
67088
+ /**
67089
+ * Solo mis tokens activos para una entidad.
67090
+ */
67091
+ getMyReactions(appId, entityType, entityId) {
67092
+ if (!this.config)
67093
+ return EMPTY;
67094
+ const params = new HttpParams()
67095
+ .set('appId', appId)
67096
+ .set('entityType', entityType)
67097
+ .set('entityId', entityId);
67098
+ return this.http
67099
+ .get(`${this.baseUrl}/mine`, { params })
67100
+ .pipe(map(res => res.tokens));
67101
+ }
67102
+ /**
67103
+ * Obtener un set de reacciones por ID.
67104
+ */
67105
+ getSet(setId) {
67106
+ if (!this.config)
67107
+ return EMPTY;
67108
+ return this.http.get(`${this.baseUrl}/sets/${setId}`);
67109
+ }
67110
+ /**
67111
+ * Listar todos los sets disponibles para una app.
67112
+ */
67113
+ listSets(appId) {
67114
+ if (!this.config)
67115
+ return EMPTY;
67116
+ const params = new HttpParams().set('appId', appId);
67117
+ return this.http.get(`${this.baseUrl}/sets`, { params });
67118
+ }
67119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
67120
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, providedIn: 'root' }); }
67121
+ }
67122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionsService, decorators: [{
67123
+ type: Injectable,
67124
+ args: [{ providedIn: 'root' }]
67125
+ }], ctorParameters: () => [] });
67126
+
67127
+ const REACTION_BAR_I18N = {
67128
+ es: {
67129
+ loading: 'Cargando reacciones...',
67130
+ addReaction: 'Agregar reaccion',
67131
+ close: 'Cerrar',
67132
+ errorLoading: 'Error al cargar reacciones.',
67133
+ },
67134
+ en: {
67135
+ loading: 'Loading reactions...',
67136
+ addReaction: 'Add reaction',
67137
+ close: 'Close',
67138
+ errorLoading: 'Failed to load reactions.',
67139
+ },
67140
+ };
67141
+ /**
67142
+ * Barra de reacciones emoji configurables por contexto.
67143
+ *
67144
+ * Muestra un set de emojis y permite al usuario reaccionar a una entidad.
67145
+ * Soporta conteos, multiples reacciones y modo picker (popup).
67146
+ *
67147
+ * @example
67148
+ * html
67149
+ * <val-reaction-bar
67150
+ * [props]="{
67151
+ * entityRef: { entityType: 'post', entityId: 'p1' },
67152
+ * reactionSet: mySet,
67153
+ * showCounts: true
67154
+ * }"
67155
+ * (reactionChange)="onReaction($event)"
67156
+ * />
67157
+ */
67158
+ class ReactionBarComponent {
67159
+ constructor() {
67160
+ this.reactionChange = new EventEmitter();
67161
+ this.reactionsService = inject(ReactionsService);
67162
+ this.i18n = inject(I18nService);
67163
+ this.reactionSet = signal(null);
67164
+ this.myReactions = signal([]);
67165
+ this.counts = signal({});
67166
+ this.isLoading = signal(true);
67167
+ this.pickerOpen = signal(false);
67168
+ this.enrichedReactions = computed(() => {
67169
+ const set = this.reactionSet();
67170
+ if (!set)
67171
+ return [];
67172
+ const my = this.myReactions();
67173
+ const c = this.counts();
67174
+ return [...set.reactions]
67175
+ .sort((a, b) => a.order - b.order)
67176
+ .map(r => ({
67177
+ ...r,
67178
+ count: c[r.token] ?? 0,
67179
+ active: my.includes(r.token),
67180
+ }));
67181
+ });
67182
+ this.i18n.registerDefaults('ReactionBar', REACTION_BAR_I18N);
67183
+ }
67184
+ ngOnInit() {
67185
+ if (this.props.initialCounts) {
67186
+ this.counts.set(this.props.initialCounts);
67187
+ }
67188
+ if (this.props.initialMyReactions) {
67189
+ this.myReactions.set(this.props.initialMyReactions);
67190
+ }
67191
+ if (this.props.reactionSet) {
67192
+ this.reactionSet.set(this.props.reactionSet);
67193
+ this.isLoading.set(false);
67194
+ if (!this.props.skipInitialLoad && !this.props.initialCounts) {
67195
+ void this.loadCounts();
67196
+ }
67197
+ return;
67198
+ }
67199
+ if (this.props.reactionSetId) {
67200
+ void this.loadSetAndCounts(this.props.reactionSetId);
67201
+ return;
67202
+ }
67203
+ this.isLoading.set(false);
67204
+ }
67205
+ async loadSetAndCounts(setId) {
67206
+ this.isLoading.set(true);
67207
+ try {
67208
+ const set = await firstValueFrom(this.reactionsService.getSet(setId));
67209
+ this.reactionSet.set(set);
67210
+ if (!this.props.skipInitialLoad && !this.props.initialCounts) {
67211
+ await this.loadCounts();
67212
+ }
67213
+ }
67214
+ catch (err) {
67215
+ console.error('[ReactionBarComponent] Error loading reaction set:', err);
67216
+ }
67217
+ finally {
67218
+ this.isLoading.set(false);
67219
+ }
67220
+ }
67221
+ async loadCounts() {
67222
+ const appId = this.props.appId ?? '';
67223
+ const { entityType, entityId } = this.props.entityRef;
67224
+ try {
67225
+ const res = await firstValueFrom(this.reactionsService.getCounts(appId, entityType, entityId));
67226
+ this.counts.set(res.counts);
67227
+ if (!this.props.initialMyReactions) {
67228
+ this.myReactions.set(res.myReactions);
67229
+ }
67230
+ }
67231
+ catch (err) {
67232
+ console.error('[ReactionBarComponent] Error loading counts:', err);
67233
+ }
67234
+ }
67235
+ onReact(token) {
67236
+ if (this.props.readonly)
67237
+ return;
67238
+ void this.handleReact(token);
67239
+ }
67240
+ onReactAndClosePicker(token) {
67241
+ this.pickerOpen.set(false);
67242
+ this.onReact(token);
67243
+ }
67244
+ togglePicker() {
67245
+ this.pickerOpen.update(v => !v);
67246
+ }
67247
+ async handleReact(token) {
67248
+ const appId = this.props.appId ?? '';
67249
+ const { entityType, entityId } = this.props.entityRef;
67250
+ const maxReactions = this.props.maxReactions ?? 1;
67251
+ const currentMy = this.myReactions();
67252
+ const isActive = currentMy.includes(token);
67253
+ let newMyReactions;
67254
+ if (isActive) {
67255
+ newMyReactions = currentMy.filter(t => t !== token);
67256
+ }
67257
+ else if (maxReactions === 1) {
67258
+ newMyReactions = [token];
67259
+ }
67260
+ else if (maxReactions === 0 || currentMy.length < maxReactions) {
67261
+ newMyReactions = [...currentMy, token];
67262
+ }
67263
+ else {
67264
+ newMyReactions = currentMy;
67265
+ }
67266
+ const prevCounts = this.counts();
67267
+ const optimisticCounts = { ...prevCounts };
67268
+ if (isActive) {
67269
+ optimisticCounts[token] = Math.max(0, (optimisticCounts[token] ?? 1) - 1);
67270
+ }
67271
+ else {
67272
+ optimisticCounts[token] = (optimisticCounts[token] ?? 0) + 1;
67273
+ if (maxReactions === 1 && currentMy.length > 0) {
67274
+ const removed = currentMy[0];
67275
+ optimisticCounts[removed] = Math.max(0, (optimisticCounts[removed] ?? 1) - 1);
67276
+ }
67277
+ }
67278
+ this.myReactions.set(newMyReactions);
67279
+ this.counts.set(optimisticCounts);
67280
+ try {
67281
+ const res = await firstValueFrom(this.reactionsService.react({ entityRef: { entityType, entityId }, token, appId }));
67282
+ this.counts.set(res.counts);
67283
+ if (!res.active) {
67284
+ this.myReactions.set(this.myReactions().filter(t => t !== token));
67285
+ }
67286
+ else if (!this.myReactions().includes(token)) {
67287
+ this.myReactions.update(arr => [...arr, token]);
67288
+ }
67289
+ this.reactionChange.emit({
67290
+ token,
67291
+ active: res.active,
67292
+ entityRef: { entityType, entityId },
67293
+ counts: res.counts,
67294
+ });
67295
+ }
67296
+ catch (err) {
67297
+ console.error('[ReactionBarComponent] Error reacting:', err);
67298
+ this.myReactions.set(currentMy);
67299
+ this.counts.set(prevCounts);
67300
+ }
67301
+ }
67302
+ t(key) {
67303
+ return this.i18n.t(key, 'ReactionBar') || key;
67304
+ }
67305
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
67306
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ReactionBarComponent, isStandalone: true, selector: "val-reaction-bar", inputs: { props: "props" }, outputs: { reactionChange: "reactionChange" }, ngImport: i0, template: `
67307
+ <div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
67308
+ @if (isLoading()) {
67309
+ <div class="reaction-skeleton" aria-hidden="true">
67310
+ <span class="skeleton-circle"></span>
67311
+ <span class="skeleton-circle"></span>
67312
+ <span class="skeleton-circle"></span>
67313
+ </div>
67314
+ } @else {
67315
+ @for (r of enrichedReactions(); track r.token) {
67316
+ <button
67317
+ type="button"
67318
+ class="reaction-btn"
67319
+ [class.active]="r.active"
67320
+ [disabled]="props.readonly"
67321
+ [attr.aria-label]="r.label"
67322
+ [attr.aria-pressed]="r.active"
67323
+ (click)="onReact(r.token)"
67324
+ >
67325
+ <span class="emoji">{{ r.emoji }}</span>
67326
+ @if (props.showCounts && r.count > 0) {
67327
+ <span class="count">{{ r.count }}</span>
67328
+ }
67329
+ </button>
67330
+ }
67331
+ @if (props.layout === 'picker' && !pickerOpen()) {
67332
+ <button
67333
+ type="button"
67334
+ class="reaction-btn reaction-btn--add"
67335
+ [disabled]="props.readonly"
67336
+ [attr.aria-label]="t('addReaction')"
67337
+ (click)="togglePicker()"
67338
+ >
67339
+ <span class="emoji">+</span>
67340
+ </button>
67341
+ }
67342
+ @if (props.layout === 'picker' && pickerOpen()) {
67343
+ <div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
67344
+ @for (r of enrichedReactions(); track r.token) {
67345
+ <button
67346
+ type="button"
67347
+ class="reaction-btn"
67348
+ [class.active]="r.active"
67349
+ [attr.aria-label]="r.label"
67350
+ [attr.aria-pressed]="r.active"
67351
+ (click)="onReactAndClosePicker(r.token)"
67352
+ >
67353
+ <span class="emoji">{{ r.emoji }}</span>
67354
+ @if (props.showCounts && r.count > 0) {
67355
+ <span class="count">{{ r.count }}</span>
67356
+ }
67357
+ </button>
67358
+ }
67359
+ <button
67360
+ type="button"
67361
+ class="reaction-btn reaction-btn--close"
67362
+ [attr.aria-label]="t('close')"
67363
+ (click)="togglePicker()"
67364
+ >
67365
+ <span class="emoji">x</span>
67366
+ </button>
67367
+ </div>
67368
+ }
67369
+ }
67370
+ </div>
67371
+ `, isInline: true, styles: [":host{display:block}.reaction-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative}.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:16px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));cursor:pointer;transition:all .15s ease;font-size:1rem;font-family:inherit;line-height:1}.reaction-btn:hover:not(:disabled){background:var(--ion-color-light, #f4f5f8)}.reaction-btn.active{background:var(--ion-color-primary-tint, rgba(76, 141, 255, .1));border-color:var(--ion-color-primary, #3880ff)}.reaction-btn:disabled{opacity:.6;cursor:default}.reaction-btn--add{border-style:dashed}.reaction-btn--close{border-color:var(--ion-color-medium, #92949c)}.emoji{font-size:1.1em;line-height:1}.count{font-size:.75rem;font-weight:600;color:var(--ion-color-medium, #92949c)}.active .count{color:var(--ion-color-primary, #3880ff)}.reaction-skeleton{display:flex;gap:4px;align-items:center}.skeleton-circle{display:inline-block;width:36px;height:28px;border-radius:16px;background:var(--ion-color-light, #f4f5f8);animation:skeleton-pulse 1.4s ease-in-out infinite}.skeleton-circle:nth-child(2){animation-delay:.2s}.skeleton-circle:nth-child(3){animation-delay:.4s}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.picker-popover{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;border-radius:20px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));box-shadow:0 4px 12px #0000001f;position:absolute;bottom:calc(100% + 8px);left:0;z-index:100}:host(.sm) .reaction-btn{padding:2px 6px;font-size:.875rem}:host(.lg) .reaction-btn{padding:6px 12px;font-size:1.2rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67372
+ }
67373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ReactionBarComponent, decorators: [{
67374
+ type: Component,
67375
+ args: [{ selector: 'val-reaction-bar', standalone: true, imports: [CommonModule], template: `
67376
+ <div class="reaction-bar" [class.layout-picker]="props.layout === 'picker'" [attr.aria-label]="t('addReaction')">
67377
+ @if (isLoading()) {
67378
+ <div class="reaction-skeleton" aria-hidden="true">
67379
+ <span class="skeleton-circle"></span>
67380
+ <span class="skeleton-circle"></span>
67381
+ <span class="skeleton-circle"></span>
67382
+ </div>
67383
+ } @else {
67384
+ @for (r of enrichedReactions(); track r.token) {
67385
+ <button
67386
+ type="button"
67387
+ class="reaction-btn"
67388
+ [class.active]="r.active"
67389
+ [disabled]="props.readonly"
67390
+ [attr.aria-label]="r.label"
67391
+ [attr.aria-pressed]="r.active"
67392
+ (click)="onReact(r.token)"
67393
+ >
67394
+ <span class="emoji">{{ r.emoji }}</span>
67395
+ @if (props.showCounts && r.count > 0) {
67396
+ <span class="count">{{ r.count }}</span>
67397
+ }
67398
+ </button>
67399
+ }
67400
+ @if (props.layout === 'picker' && !pickerOpen()) {
67401
+ <button
67402
+ type="button"
67403
+ class="reaction-btn reaction-btn--add"
67404
+ [disabled]="props.readonly"
67405
+ [attr.aria-label]="t('addReaction')"
67406
+ (click)="togglePicker()"
67407
+ >
67408
+ <span class="emoji">+</span>
67409
+ </button>
67410
+ }
67411
+ @if (props.layout === 'picker' && pickerOpen()) {
67412
+ <div class="picker-popover" role="dialog" [attr.aria-label]="t('addReaction')">
67413
+ @for (r of enrichedReactions(); track r.token) {
67414
+ <button
67415
+ type="button"
67416
+ class="reaction-btn"
67417
+ [class.active]="r.active"
67418
+ [attr.aria-label]="r.label"
67419
+ [attr.aria-pressed]="r.active"
67420
+ (click)="onReactAndClosePicker(r.token)"
67421
+ >
67422
+ <span class="emoji">{{ r.emoji }}</span>
67423
+ @if (props.showCounts && r.count > 0) {
67424
+ <span class="count">{{ r.count }}</span>
67425
+ }
67426
+ </button>
67427
+ }
67428
+ <button
67429
+ type="button"
67430
+ class="reaction-btn reaction-btn--close"
67431
+ [attr.aria-label]="t('close')"
67432
+ (click)="togglePicker()"
67433
+ >
67434
+ <span class="emoji">x</span>
67435
+ </button>
67436
+ </div>
67437
+ }
67438
+ }
67439
+ </div>
67440
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.reaction-bar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;position:relative}.reaction-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:16px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));cursor:pointer;transition:all .15s ease;font-size:1rem;font-family:inherit;line-height:1}.reaction-btn:hover:not(:disabled){background:var(--ion-color-light, #f4f5f8)}.reaction-btn.active{background:var(--ion-color-primary-tint, rgba(76, 141, 255, .1));border-color:var(--ion-color-primary, #3880ff)}.reaction-btn:disabled{opacity:.6;cursor:default}.reaction-btn--add{border-style:dashed}.reaction-btn--close{border-color:var(--ion-color-medium, #92949c)}.emoji{font-size:1.1em;line-height:1}.count{font-size:.75rem;font-weight:600;color:var(--ion-color-medium, #92949c)}.active .count{color:var(--ion-color-primary, #3880ff)}.reaction-skeleton{display:flex;gap:4px;align-items:center}.skeleton-circle{display:inline-block;width:36px;height:28px;border-radius:16px;background:var(--ion-color-light, #f4f5f8);animation:skeleton-pulse 1.4s ease-in-out infinite}.skeleton-circle:nth-child(2){animation-delay:.2s}.skeleton-circle:nth-child(3){animation-delay:.4s}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.picker-popover{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:6px 8px;border-radius:20px;border:1px solid var(--ion-border-color, rgba(0, 0, 0, .1));background:var(--ion-card-background, var(--ion-background-color, #fff));box-shadow:0 4px 12px #0000001f;position:absolute;bottom:calc(100% + 8px);left:0;z-index:100}:host(.sm) .reaction-btn{padding:2px 6px;font-size:.875rem}:host(.lg) .reaction-btn{padding:6px 12px;font-size:1.2rem}\n"] }]
67441
+ }], ctorParameters: () => [], propDecorators: { props: [{
67442
+ type: Input
67443
+ }], reactionChange: [{
67444
+ type: Output
67445
+ }] } });
67446
+
66955
67447
  const DEFAULT_SPLASH_SCREEN_CONFIG = {
66956
67448
  fadeOutDuration: 300,
66957
67449
  };
@@ -71373,5 +71865,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
71373
71865
  * Generated bundle index. Do not edit.
71374
71866
  */
71375
71867
 
71376
- export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentService, ContentTransformer, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, METRIC_CARD_DEFAULTS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MenuComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, ProcessLinksPipe, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, collections, connectPageRefresh, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, docs, errorLoggingInterceptor, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle };
71868
+ export { ACTION_CARD_DEFAULTS, AD_SIZE_MAP, API_TABLE_COLUMN_LABELS, APP_VERSION_PLATFORM_PLUGIN, APP_VERSION_REMOTE_PLUGIN, ARTICLE_CARD_DEFAULTS, ARTICLE_SPACING, ARTICLE_STRIP_DEFAULTS, AUTH_CTA_DEFAULTS, AVATAR_UPLOAD_DEFAULTS, AboutViewComponent, AccordionComponent, AccountViewComponent, ActionCardComponent, ActionHeaderComponent, ActionType, AdSlotComponent, AdsLoaderService, AdsService, AlertBoxComponent, AnalyticsErrorHandler, AnalyticsRouterTracker, AnalyticsService, AnimatedTerminalComponent, ApiKeyCreateModalComponent, ApiKeyService, ApiKeysModalComponent, ApiKeysViewComponent, AppConfigService, AppVersionService, ArticleBuilder, ArticleCardComponent, ArticleComponent, ArticleStripComponent, AttachmentUploaderComponent, AuthBackgroundComponent, AuthCtaComponent, AuthService, AuthStateService, AuthStorageService, AuthSyncService, AvatarComponent, AvatarUploadComponent, BOTTOM_NAV_DEFAULTS, BannerComponent, BlogPostBuilder, BottomNavComponent, BoxComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CALLOUT_LABELS, CHEV_KEYS, CIRCLE_KEYS, COMMON_COUNTRY_CODES, COMMON_CURRENCIES, CORNER_KEYS, CTA_CARD_DEFAULTS, CURRENCY_INFO, CardComponent, CardSection, CardType, CardsCarouselComponent, ChangeEmailModalComponent, ChangePasswordModalComponent, CheckInputComponent, CheckboxRadioInputComponent, ChipGroupComponent, CodeDisplayComponent, CommandDisplayComponent, CommentComponent, CommentInputComponent, CommentSectionComponent, CompanyFooterComponent, ComponentStates, ConfirmationDialogService, ContainerComponent, ContentLoaderComponent, ContentReactionComponent, ContentService, ContentTransformer, CookieBannerComponent, CookieSettingsComponent, CountdownComponent, CreateOrgModalComponent, CtaCardComponent, CurrencyInputComponent, DEFAULT_ADS_CONFIG, DEFAULT_APP_CONFIG_SERVICE_CONFIG, DEFAULT_APP_VERSION_SERVICE_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_BACK_HEADER, DEFAULT_BUTTON_PRESETS, DEFAULT_CANCEL_BUTTON, DEFAULT_CHECK_INTERVAL_MS, DEFAULT_CONFIRM_BUTTON, DEFAULT_COUNTDOWN_LABELS, DEFAULT_COUNTDOWN_LABELS_EN, DEFAULT_DEBUG_CONSOLE_CONFIG, DEFAULT_DONATION_CONFIG, DEFAULT_EMPTY_STATE, DEFAULT_EMULATOR_CONFIG, DEFAULT_FEEDBACK_CONFIG, DEFAULT_FEEDBACK_TYPE_OPTIONS, DEFAULT_HOME_HEADER, DEFAULT_INFINITE_LIST_METADATA, DEFAULT_LOGIN_LOGO, DEFAULT_MODAL_CANCEL_BUTTON, DEFAULT_MODAL_CONFIRM_BUTTON, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLATFORMS, DEFAULT_POST_UPDATE_GRACE_MS, DEFAULT_PRESETS, DEFAULT_REFRESHER_METADATA, DEFAULT_SKELETON_CONFIG, DEFAULT_SPLASH_SCREEN_CONFIG, DataTableComponent, DateInputComponent, DatePickerComponent, DateRangeInputComponent, DebugConsoleComponent, DeleteAccountModalComponent, DetailSkeletonComponent, DeviceService, DisplayComponent, DividerComponent, DocsApiTableComponent, DocsBreadcrumbComponent, DocsBuilder, DocsCalloutComponent, DocsCodeExampleComponent, DocsLayoutComponent, DocsNavLinksComponent, DocsNavigationService, DocsPageComponent, DocsSearchComponent, DocsSectionComponent, DocsShellComponent, DocsSidebarComponent, DocsTocComponent, DonationService, DownloadService, EditOrgModalComponent, EmptyStateComponent, EntityCardComponent, ExpandableTextComponent, FEATURES_LIST_DEFAULTS, FUN_MODAL_DEFAULTS, FabComponent, FaqComponent, FeaturesListComponent, FeedbackFormComponent, FeedbackService, FieldListComponent, FileInputComponent, FirebaseService, FirestoreCollectionFactory, FirestoreService, FontSizeOption, FontSizeSelectorComponent, FontSizeService, FooterComponent, FooterLinksComponent, FormComponent, FormFieldComponent, FormSkeletonComponent, FunHeaderComponent, FunModalComponent, GlassComponent, GlowCardComponent, GlowComponent, GridSkeletonComponent, HANDOFF_ROUTE_PARAM, HANDOFF_TOKEN_PARAM, HandoffService, HapticsService, HasPermissionDirective, HeaderComponent, HintComponent, HorizontalScrollComponent, HrefComponent, HtmlViewerModalComponent, I18nService, IMAGE_DEFAULTS, INITIAL_AUTH_STATE, INITIAL_MFA_STATE, INVITATION_CARD_DEFAULTS, IONIC_COLORS$5 as IONIC_COLORS, Icon, IconComponent, IconService, ImageComponent, ImageCropComponent, ImageService, InAppBrowserService, InfiniteListComponent, InfoComponent, InputI18nHelper, InputType, InvitationCardComponent, InviteMemberModalComponent, ItemListComponent, LANG_STORAGE_KEY$1 as LANG_STORAGE_KEY, LEGAL_CONTENT_CONFIG, LOGGED_IN_HINT_COOKIE, LOGIN_DEFAULTS, LandingSplitComponent, LandingStepsComponent, LanguageSelectorComponent, LanguageSelectorV2Component, LayeredCardComponent, LegalContentService, LegalLinkService, LinkComponent, LinkProcessorService, LinkedProvidersComponent, LinksAccordionComponent, LinksCakeComponent, ListSkeletonComponent, LoadMoreComponent, LoadingDirective, LocalStorageService, LocaleService, LoginAttemptModalComponent, LoginComponent, MEDIA_OBJECT_DEFAULTS, MEMBER_CARD_DEFAULTS, METRIC_CARD_DEFAULTS, MODAL_SIZES, MOTIF_KEYS, MOTION, MaintenancePageComponent, MarkdownArticleParserService, MediaObjectComponent, MemberCardComponent, MemberDetailModalComponent, MemberImportModalComponent, MenuComponent, MessagingService, MetaService, MetricCardComponent, MfaModalComponent, ModalService, ModalShellComponent, MultiSelectSearchComponent, NUM_KEYS, NavigationService, NetworkBannerComponent, NetworkStatusService, NewsBuilder, NoContentComponent, NotesBoxComponent, NotificationActionService, NotificationPreferencesViewComponent, NotificationsService, NotificationsViewComponent, NumberFromToComponent, NumberStepperComponent, OAUTH_PROVIDERS_INFO, OAuthCallbackComponent, OAuthService, OptionCardsComponent, OrgInfoSheetComponent, OrgService, OrgSwitchService, OrganizationViewComponent, PATTERN_MOTIFS, PATTERN_PALETTES, PATTERN_STYLE_CONFIGS, PLATFORM_CONFIGS, POST_UPDATE_TS_KEY, PageContentComponent, PageLinksComponent, PageRefreshService, PageTemplateComponent, PageWavesComponent, PageWrapperComponent, PaginationComponent, PaginationService, PasswordInputComponent, PatternComponent, PdfService, PermissionCatalogService, PermissionSelectorComponent, PermissionsModalComponent, PermissionsViewComponent, PhoneInputComponent, PillComponent, PinInputComponent, PlainCodeBoxComponent, PopoverSelectorComponent, PreferencesService, PreferencesViewComponent, PresetService, PriceTagComponent, ProcessLinksPipe, ProfileSkeletonComponent, ProfileViewComponent, ProgressBarComponent, ProgressRingComponent, ProgressStatusComponent, PrompterComponent, QR_PRESETS, QrCodeComponent, QrGeneratorService, QrScannerComponent, QueryBuilder, QuoteBoxComponent, REQUEST_STATUSES, RadioInputComponent, RangeInputComponent, RatingComponent, ReactionBarComponent, ReactionsService, RefresherComponent, RequestFirestoreService, RequestFormBuilderService, RequestFormComponent, RequestModalComponent, RequestService, RightsFooterComponent, RotatingTextComponent, SEARCH_HEADER_DEFAULTS, SETTINGS_SECTIONS_CATALOG, SHAPE_KEYS, SHARE_PROFILE_MODAL_DEFAULTS, SKELETON_LAYOUT_DEFAULT_ROWS, SKELETON_PRESETS, SOLID_KEYS, STATS_BAR_DEFAULTS, STROKE_KEYS, SearchHeaderComponent, SearchSelectorComponent, SearchbarComponent, SectionHeaderComponent, SecurityViewComponent, SegmentControlComponent, SelectSearchComponent, SessionListModalComponent, SessionService, SettingsHubComponent, ShareButtonsComponent, ShareProfileModalComponent, SimpleComponent, SkeletonComponent, SkeletonLayoutComponent, SkeletonService, SplashComponent, SplashScreenService, StatsBarComponent, StatsCardComponent, StepperComponent, StorageService, SwipeCarouselComponent, SwitchOrgModalComponent, TRI_KEYS, TabbedContentComponent, TableSkeletonComponent, TabsComponent, Terminal404Component, TestimonialCardComponent, TestimonialCarouselComponent, TextComponent, TextInputComponent, TextareaInputComponent, ThemeOption, ThemeService, TicketCardComponent, TicketCardImageService, TimelineComponent, TitleBlockComponent, TitleComponent, ToastService, ToggleInputComponent, TokenService, ToolbarActionType, ToolbarComponent, TransferOwnershipModalComponent, TranslatePipe, TypedCollection, UPDATE_BANNER_DEFAULT_CONTENT, UPDATE_BANNER_I18N_NAMESPACE, UpdateBannerComponent, UserAvatarComponent, UsernameInputComponent, VALTECH_ADS_CONFIG, VALTECH_APP_CONFIG, VALTECH_APP_VERSION, VALTECH_AUTH_CONFIG, VALTECH_COMPANY_LINKS, VALTECH_CONTENT_CONFIG, VALTECH_DEBUG_CONSOLE, VALTECH_DEFAULT_CONTENT, VALTECH_DONATION_CONFIG, VALTECH_FEEDBACK_CONFIG, VALTECH_FIREBASE_CONFIG, VALTECH_FOOTER_I18N, VALTECH_FOOTER_LOGO, VALTECH_LANGUAGE_SELECTOR, VALTECH_LEGAL_CONFIG, VALTECH_NETWORK_ERROR_KEY, VALTECH_REACTIONS_CONFIG, VALTECH_SETTINGS_MENU_LINKS, VALTECH_SITE_PATHS, VALTECH_SOCIAL_LINKS, VALTECH_SPLASH_SCREEN, VALTECH_WEB_BASE_URLS, VALTECH_WHATSAPP_CONFIG, VERSION, ValtechErrorService, VerifyViewComponent, WhatsappFabComponent, WhatsappService, WizardComponent, WizardFooterComponent, applyDefaultValueToControl, authGuard, authInterceptor, authPasswordValidator, beautifyLegalArticle, blogPost, buildCompanyFooterProps, buildFooterLinks, buildLegalLinkResolver, buildPath, buildSettingsCards, button, canSubmitRequestType, collections, connectPageRefresh, createErrorStateProps, createFirebaseConfig, createGlowCardProps, createInitialPaginationState, createNumberFromToField, createPageState, createPermissionLabeler, createRefreshableStream, createTitleProps, docs, errorLoggingInterceptor, extractPathParams, generatePatternTiles, generateRandomTile, getAppInfo, getAppVersion, getCollectionPath, getDocumentId, getTimeOfDayKey, goToTop, groupPermissionsByScope, guestGuard, hasEmulators, iconButton, interpretError, isAtEnd, isCollectionPath, isDocumentPath, isEmulatorMode, isIonicColor, isValidPath, joinPath, maxLength, mulberry32, news, parseMarkdownArticle, permissionGuard, permissionGuardFromRoute, provideLegalContent, provideSplashScreen, provideValtechAboutRoutes, provideValtechAccountRoutes, provideValtechAds, provideValtechApiKeysRoutes, provideValtechAppConfig, provideValtechAppVersion, provideValtechAppVersionHttp, provideValtechAuth, provideValtechAuthInterceptor, provideValtechContent, provideValtechDebugConsole, provideValtechDonations, provideValtechErrorHandling, provideValtechFeedback, provideValtechFirebase, provideValtechI18n, provideValtechLegal, provideValtechNotificationPreferencesRoutes, provideValtechNotificationsRoutes, provideValtechOrganizationRoutes, provideValtechPermissionsRoutes, provideValtechPreferencesRoutes, provideValtechPresets, provideValtechProfileRoutes, provideValtechReactions, provideValtechSecurityRoutes, provideValtechSettingsRoutes, provideValtechSite, provideValtechSkeleton, provideValtechWhatsapp, query, rbacGuard, renderPatternSvgInner, replaceSpecialChars, requestSubmitMode, resolveColor, resolveInputDefaultValue, resolveIonicColor, resolveWebBaseUrl, roleGuard, selectableRequestTypes, storagePaths, superAdminGuard, toArticle };
71377
71869
  //# sourceMappingURL=valtech-components.mjs.map