aril 1.2.55 → 1.2.57

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.
@@ -14,7 +14,7 @@ import * as i7$4 from 'primeng/messages';
14
14
  import { MessagesModule } from 'primeng/messages';
15
15
  import * as i8$2 from 'primeng/toast';
16
16
  import { ToastModule } from 'primeng/toast';
17
- import { take, Observable, timeout, catchError, of, forkJoin, map, switchMap, tap, shareReplay, filter, Subject, BehaviorSubject, takeUntil, startWith, timer, mergeMap } from 'rxjs';
17
+ import { take, Observable, timeout, catchError, of, switchMap, map, forkJoin, tap, shareReplay, filter, Subject, BehaviorSubject, takeUntil, startWith, timer, mergeMap } from 'rxjs';
18
18
  import { __decorate } from 'tslib';
19
19
  import * as i1 from '@angular/common/http';
20
20
  import { HttpStatusCode } from '@angular/common/http';
@@ -215,15 +215,29 @@ const RECORD_ROUTES = [
215
215
  { prefix: '/crm/partner-management/detail/', type: 'BusinessPartner' },
216
216
  { prefix: '/billing/invoice-search/detail/', type: 'Invoice' },
217
217
  { prefix: '/wdm/meters/detail/', type: 'Meter' },
218
- { prefix: '/wdm/work-orders/detail/', type: 'WorkOrder' }
218
+ { prefix: '/wdm/work-orders/detail/', type: 'WorkOrder' },
219
+ { prefix: '/crm/contract-management/detail/', type: 'Contract' },
220
+ { prefix: '/billing/accrual-search/detail/', type: 'Accrual' },
221
+ { prefix: '/crm/point-of-usage-management/detail/', type: 'Premise' },
222
+ { prefix: '/crm/point-management/detail/', type: 'ConnectionPoint' },
223
+ { prefix: '/crm/address-management/detail/', type: 'Location' },
224
+ { prefix: '/wdm/service-point-groups/detail/', type: 'ServicePointGroup' }
219
225
  ];
226
+ // A record id in a path segment: a number or a uuid
227
+ const RECORD_ID_SEGMENT = /^(\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
220
228
  const RECORD_TYPE_LABEL_KEYS = {
221
229
  ServicePoint: 'home.recordTypeServicePoint',
222
230
  Account: 'home.recordTypeAccount',
223
231
  BusinessPartner: 'home.recordTypeBusinessPartner',
224
232
  Invoice: 'home.recordTypeInvoice',
225
233
  Meter: 'home.recordTypeMeter',
226
- WorkOrder: 'home.recordTypeWorkOrder'
234
+ WorkOrder: 'home.recordTypeWorkOrder',
235
+ Contract: 'home.recordTypeContract',
236
+ Accrual: 'home.recordTypeAccrual',
237
+ Premise: 'home.recordTypePremise',
238
+ ConnectionPoint: 'home.recordTypeConnectionPoint',
239
+ Location: 'home.recordTypeLocation',
240
+ ServicePointGroup: 'home.recordTypeServicePointGroup'
227
241
  };
228
242
  const RECORD_TYPE_ICONS = {
229
243
  ServicePoint: 'pi pi-bolt',
@@ -231,7 +245,13 @@ const RECORD_TYPE_ICONS = {
231
245
  BusinessPartner: 'pi pi-user',
232
246
  Invoice: 'pi pi-file',
233
247
  Meter: 'pi pi-compass',
234
- WorkOrder: 'pi pi-wrench'
248
+ WorkOrder: 'pi pi-wrench',
249
+ Contract: 'pi pi-file-edit',
250
+ Accrual: 'pi pi-calculator',
251
+ Premise: 'pi pi-home',
252
+ ConnectionPoint: 'pi pi-sitemap',
253
+ Location: 'pi pi-map-marker',
254
+ ServicePointGroup: 'pi pi-book'
235
255
  };
236
256
  // The record is described in the background: the user did not start these calls, so no error toast is shown
237
257
  const SILENT$2 = {
@@ -263,6 +283,27 @@ const WORK_ORDER_STATUS_TAGS = {
263
283
  SUCCESS: 'current',
264
284
  CANCEL: 'closed'
265
285
  };
286
+ const CONTRACT_STATUS_TAGS = {
287
+ Active: 'current',
288
+ Passive: 'closed',
289
+ MEASUREMENT_WAITING: 'waiting',
290
+ CONTRACT_FINISHING_MEASUREMENT_WAITING: 'waiting'
291
+ };
292
+ const ACCRUAL_STATUS_TAGS = {
293
+ AVAILABLE: 'waiting',
294
+ INVOICED: 'current',
295
+ CANCELLED: 'closed'
296
+ };
297
+ // Premise, connection point and service point group: in use, out of use or demolished
298
+ const ASSET_STATUS_TAGS = {
299
+ Active: 'current',
300
+ Assets: 'current',
301
+ Passive: 'closed',
302
+ Inactive: 'closed',
303
+ Devastated: 'closed',
304
+ Wracked: 'closed',
305
+ Downfallen: 'closed'
306
+ };
266
307
  /**
267
308
  * Describes a record the way the home page shows it: number, owner, a one line summary and the current status.
268
309
  * The record is read with the calls its own detail page uses, so authorization and masking stay the same.
@@ -285,6 +326,9 @@ class RecordSummaryService extends RestClient {
285
326
  getInvoice(id) {
286
327
  return new Observable();
287
328
  }
329
+ getAccrual(id) {
330
+ return new Observable();
331
+ }
288
332
  getWorkOrder(id) {
289
333
  return new Observable();
290
334
  }
@@ -301,6 +345,15 @@ class RecordSummaryService extends RestClient {
301
345
  const id = route ? this.recordId(path.slice(route.prefix.length).split('/')[0]) : null;
302
346
  return route && id ? { type: route.type, id } : null;
303
347
  }
348
+ // Every page that shows a record can be followed: a known record type, or any other page whose path carries a
349
+ // record id. A known record page whose id is not valid (a pasted "detail/abc") shows no record
350
+ isRecordPath(url) {
351
+ const path = url.split(/[?#]/)[0];
352
+ if (RECORD_ROUTES.some((item) => path.startsWith(item.prefix))) {
353
+ return this.match(url) !== null;
354
+ }
355
+ return path.split('/').some((segment) => RECORD_ID_SEGMENT.test(segment));
356
+ }
304
357
  // A pasted id can carry a bullet or a space around the number (TCOD-1399); anything else is not a record id
305
358
  recordId(segment) {
306
359
  let value = segment;
@@ -335,7 +388,93 @@ class RecordSummaryService extends RestClient {
335
388
  return this.describeMeter(route);
336
389
  case 'WorkOrder':
337
390
  return this.describeWorkOrder(route);
338
- }
391
+ case 'Contract':
392
+ return this.describeContract(route);
393
+ case 'Accrual':
394
+ return this.describeAccrual(route);
395
+ case 'Premise':
396
+ return this.describeAsset(route, ['PremiseType'], 'PremiseCombinedAddress', 'PremiseStatus');
397
+ case 'ConnectionPoint':
398
+ return this.describeAsset(route, ['BuildingName'], 'ConnectionPointType', 'ConnectionPointStatus');
399
+ case 'Location':
400
+ // The name of an address level ("100") says little alone, its level goes in front ("CSBM 100")
401
+ return this.describeAsset(route, ['LocationType', 'LocationName'], null, null);
402
+ case 'ServicePointGroup':
403
+ return this.describeAsset(route, ['ServicePointGroupName'], 'ServicePointGroupDistrict', 'ServicePointGroupStatus');
404
+ }
405
+ }
406
+ // Contract: the owner of its account, its subscriber group and type, and its status
407
+ describeContract(route) {
408
+ return this.attributesOf(route.id, true).pipe(switchMap((attributes) => {
409
+ const number = this.text(attributes, 'AssetNumber');
410
+ if (!number) {
411
+ return of(null);
412
+ }
413
+ const accountId = this.find(attributes, 'ContractAccountId')?.value;
414
+ const partner$ = accountId ?
415
+ this.attributesOf(String(accountId)).pipe(switchMap((account) => {
416
+ const partnerId = this.find(account, 'BusinessPartnerId')?.value;
417
+ return partnerId ? this.attributesOf(String(partnerId)) : of([]);
418
+ }))
419
+ : of([]);
420
+ return partner$.pipe(map((partner) => ({
421
+ ...route,
422
+ number,
423
+ name: this.partnerName(partner),
424
+ summary: this.join(' · ', this.text(attributes, 'SubscriberGroup'), this.text(attributes, 'ContractType')),
425
+ status: this.assetStatus(attributes, 'ContractStatus', CONTRACT_STATUS_TAGS)
426
+ })));
427
+ }));
428
+ }
429
+ // Accrual: its title, the month it starts in with its amount, and its status
430
+ describeAccrual(route) {
431
+ return this.getAccrual(route.id).pipe(switchMap((result) => {
432
+ if (this.isNotFound(result)) {
433
+ throw RECORD_GONE;
434
+ }
435
+ const accrual = result?.response;
436
+ if (!accrual) {
437
+ return of(null);
438
+ }
439
+ const lang = this.translation.getActiveLang();
440
+ const date = accrual.startDate?.longToDate();
441
+ const period = date ? new Intl.DateTimeFormat(lang, { month: 'long', year: 'numeric' }).format(date) : null;
442
+ const amount = accrual.totalAmount === null || accrual.totalAmount === undefined ?
443
+ null
444
+ : this.translation.translate('home.recordAmount', {
445
+ amount: new Intl.NumberFormat(lang, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(accrual.totalAmount)
446
+ });
447
+ return this.enumText('AccrualStatus', accrual.accrualStatus).pipe(map((statusText) => ({
448
+ ...route,
449
+ number: String(accrual.accrualId ?? route.id),
450
+ name: accrual.title ?? null,
451
+ summary: this.join(' · ', period, amount),
452
+ status: statusText ?
453
+ this.status(ACCRUAL_STATUS_TAGS[String(accrual.accrualStatus)] ?? 'waiting', statusText)
454
+ : null
455
+ })));
456
+ }));
457
+ }
458
+ // A master data record named by its attributes, with one attribute as its summary and one as its status
459
+ describeAsset(route, nameCodes, summaryCode, statusCode) {
460
+ return this.attributesOf(route.id, true).pipe(map((attributes) => {
461
+ const number = this.text(attributes, 'AssetNumber');
462
+ if (!number) {
463
+ return null;
464
+ }
465
+ return {
466
+ ...route,
467
+ number,
468
+ name: this.join(' ', ...nameCodes.map((code) => this.text(attributes, code))),
469
+ summary: summaryCode ? this.text(attributes, summaryCode) : null,
470
+ status: statusCode ? this.assetStatus(attributes, statusCode, ASSET_STATUS_TAGS) : null
471
+ };
472
+ }));
473
+ }
474
+ // The status of a master data record with its own text; a value that is not mapped waits for attention
475
+ assetStatus(attributes, code, tags) {
476
+ const statusText = this.text(attributes, code);
477
+ return statusText ? this.status(tags[String(this.find(attributes, code)?.value)] ?? 'waiting', statusText) : null;
339
478
  }
340
479
  describeServicePoint(route) {
341
480
  return forkJoin([this.attributesOf(route.id, true), this.activeContractOf(route.id)]).pipe(map(([attributes, contract]) => {
@@ -594,6 +733,9 @@ __decorate([
594
733
  __decorate([
595
734
  ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'invoices/overview/$', SILENT$2, Apps.BILLING)
596
735
  ], RecordSummaryService.prototype, "getInvoice", null);
736
+ __decorate([
737
+ ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'accruals/overview/$', SILENT$2, Apps.BILLING)
738
+ ], RecordSummaryService.prototype, "getAccrual", null);
597
739
  __decorate([
598
740
  ServiceCall(HTTPMethods.GETBYDYNAMICPATH, ProxyTypes.ClientSide, 'work-orders/get/$', SILENT$2, Apps.WDM)
599
741
  ], RecordSummaryService.prototype, "getWorkOrder", null);
@@ -606,13 +748,12 @@ __decorate([
606
748
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RecordSummaryService, decorators: [{
607
749
  type: Injectable,
608
750
  args: [{ providedIn: 'root' }]
609
- }], propDecorators: { getAsset: [], queryAssets: [], getInvoice: [], getWorkOrder: [], searchUnpaidSummary: [], loadSelectionGroup: [] } });
751
+ }], propDecorators: { getAsset: [], queryAssets: [], getInvoice: [], getAccrual: [], getWorkOrder: [], searchUnpaidSummary: [], loadSelectionGroup: [] } });
610
752
 
611
753
  // Placeholder the breadcrumb shows until the dynamic value of a page is loaded
612
754
  const BREADCRUMB_LOADING = '...';
613
755
  // Recently viewed records the summary brings; the home page slides over them, the full list is in its dialog
614
756
  const SUMMARY_RECORD_LIMIT = 25;
615
- const ID_SEGMENT = /^(\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/i;
616
757
  // The log is written and read in the background: the user did not start these calls, so no error toast is shown
617
758
  const SILENT$1 = {
618
759
  ignoredStatusCodes: [
@@ -640,6 +781,8 @@ class ScreenVisitService extends RestClient {
640
781
  this.currentUrl = signal('');
641
782
  this.currentRecordRoute = signal(null);
642
783
  this.currentRecord = signal(null);
784
+ // The open record page as its breadcrumb shows it, once the number is confirmed
785
+ this.currentRecordPage = signal(null);
643
786
  this.router = inject(Router);
644
787
  this.pubSubService = inject(PubSubService);
645
788
  this.recordSummaryService = inject(RecordSummaryService);
@@ -716,6 +859,7 @@ class ScreenVisitService extends RestClient {
716
859
  const route = this.recordSummaryService.match(url);
717
860
  this.currentRecordRoute.set(route);
718
861
  this.currentRecord.set(null);
862
+ this.currentRecordPage.set(null);
719
863
  this.currentRecord$ =
720
864
  route ?
721
865
  this.recordSummaryService.resolve(route).pipe(tap((record) => {
@@ -751,29 +895,32 @@ class ScreenVisitService extends RestClient {
751
895
  const route = this.currentRecordRoute();
752
896
  const value = this.recordNumberIn(label, last.value);
753
897
  const path = this.currentPath;
754
- // Pages of the known record types take the number from the record itself. Elsewhere the first publish
755
- // may still carry a number of an earlier page: it is skipped, the page confirms or replaces it next
756
- if (!route) {
757
- const knownPath = value ? this.recordNumberPaths.get(value) : undefined;
758
- const isUnconfirmed = this.awaitingConfirmation && !!knownPath && knownPath !== path && !path.startsWith(knownPath + '/');
759
- this.awaitingConfirmation = false;
760
- if (isUnconfirmed) {
761
- return;
762
- }
763
- if (value) {
764
- this.recordNumberPaths.set(value, path);
765
- }
898
+ // The first publish may still carry a number of an earlier page. Elsewhere it is skipped, the page confirms
899
+ // or replaces it next; pages of the known record types take the number from the record itself and only
900
+ // keep a confirmed breadcrumb number for the case the record can not be read
901
+ const knownPath = value ? this.recordNumberPaths.get(value) : undefined;
902
+ const isUnconfirmed = this.awaitingConfirmation && !!knownPath && knownPath !== path && !path.startsWith(knownPath + '/');
903
+ this.awaitingConfirmation = false;
904
+ if (isUnconfirmed && !route) {
905
+ return;
906
+ }
907
+ const number = isUnconfirmed ? undefined : value;
908
+ if (number) {
909
+ this.recordNumberPaths.set(number, path);
766
910
  }
767
911
  this.currentPathLogged = true;
768
912
  const url = data.path;
769
913
  const screenTitle = this.screenTitle(label, value);
914
+ if (number && this.recordSummaryService.isRecordPath(url)) {
915
+ this.currentRecordPage.set({ number, title: screenTitle });
916
+ }
770
917
  const screenKey = this.screenKey(path, route?.id ?? value);
771
918
  this.currentRecord$.pipe(take(1)).subscribe((record) => this.save({
772
919
  url,
773
920
  screenKey,
774
921
  screenTitle,
775
922
  recordType: route?.type ?? null,
776
- recordNumber: record?.number || value || null,
923
+ recordNumber: record?.number || number || null,
777
924
  recordName: record?.name ?? null,
778
925
  recordSummary: record?.summary ?? null
779
926
  }));
@@ -816,7 +963,7 @@ class ScreenVisitService extends RestClient {
816
963
  screenKey(path, recordSegment) {
817
964
  return path
818
965
  .split('/')
819
- .filter((segment) => segment !== recordSegment && !ID_SEGMENT.test(segment))
966
+ .filter((segment) => segment !== recordSegment && !RECORD_ID_SEGMENT.test(segment))
820
967
  .join('/');
821
968
  }
822
969
  pathOf(url) {
@@ -2634,8 +2781,11 @@ class AppTopbarComponent {
2634
2781
  this.screenVisitService = inject(ScreenVisitService);
2635
2782
  this.favoritePagesService = inject(FavoritePagesService);
2636
2783
  this.search = '';
2637
- // The follow (star) button is shown on the detail page of a record; a followed record is a favorite page
2784
+ // The follow (star) button is shown on the detail page of a record; a followed record is a favorite page.
2785
+ // A record type that is not described is followed by the number and the screen title its breadcrumb shows
2638
2786
  this.recordRoute = this.screenVisitService.currentRecordRoute;
2787
+ this.recordPage = this.screenVisitService.currentRecordPage;
2788
+ this.canFollow = computed(() => !!this.recordRoute() || !!this.recordPage());
2639
2789
  // Set from the click until the list is loaded again, so a second click can not add the record twice
2640
2790
  this.followPending = signal(false);
2641
2791
  // The button is released when the list arrives; if that reload fails it must not stay disabled.
@@ -2692,17 +2842,23 @@ class AppTopbarComponent {
2692
2842
  }
2693
2843
  onFollowRecordButtonClick() {
2694
2844
  const route = this.recordRoute();
2695
- if (!route || this.followPending()) {
2845
+ const page = this.recordPage();
2846
+ if ((!route && !page) || this.followPending()) {
2696
2847
  return;
2697
2848
  }
2698
2849
  this.followPending.set(true);
2699
2850
  const favorite = this.followedFavorite();
2700
- const number = this.screenVisitService.currentRecord()?.number ?? route.id;
2851
+ // The number of the record once read, else the one its breadcrumb shows; the id of the url is the last resort
2852
+ const number = this.screenVisitService.currentRecord()?.number || page?.number || route?.id;
2853
+ const typeKey = route ? RECORD_TYPE_LABEL_KEYS[route.type] : null;
2854
+ const typeText = typeKey ? this.translocoService.translate(typeKey) : page?.title;
2855
+ // A host that does not translate the type yet gets the number alone, not the translation key
2856
+ const label = [typeText !== typeKey ? typeText : null, number].filter((part) => !!part).join(' ');
2701
2857
  const change$ = favorite ?
2702
2858
  this.favoritePagesService.deleteFavoritePage(favorite.id)
2703
2859
  : this.favoritePagesService.saveFavoritePage({
2704
2860
  url: this.pathOf(this.screenVisitService.currentUrl()),
2705
- label: `${this.translocoService.translate(RECORD_TYPE_LABEL_KEYS[route.type])} ${number}`
2861
+ label
2706
2862
  });
2707
2863
  change$.subscribe((result) => {
2708
2864
  if (result?.error) {
@@ -2802,7 +2958,7 @@ class AppTopbarComponent {
2802
2958
  }
2803
2959
  }
2804
2960
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppTopbarComponent, deps: [{ token: i5.TranslocoService }, { token: i2$1.PubSubService }, { token: i1$1.KeycloakService }], target: i0.ɵɵFactoryTarget.Component }); }
2805
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: AppTopbarComponent, isStandalone: true, selector: "app-topbar", viewQueries: [{ propertyName: "menuButton", first: true, predicate: ["menubutton"], descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\r\n\t<div class=\"topbar-start\">\r\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\r\n\t\t\t<i class=\"pi pi-bars\"></i>\r\n\t\t</button>\r\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\r\n\t\t@if (environmentBadge) {\r\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\r\n\t\t@if (!searchOnPage()) {\r\n\t\t\t<span class=\"p-input-icon-left\">\r\n\t\t\t\t<i class=\"pi pi-search\"></i>\r\n\t\t\t\t<app-general-search></app-general-search>\r\n\t\t\t</span>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"topbar-end mr-2\">\r\n\t\t<ul class=\"topbar-menu\">\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-sitemap\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-history\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t@if (recordRoute()) {\r\n\t\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\r\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\r\n\t\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t\t[disabled]=\"followPending()\"\r\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\r\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\r\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\r\n\t\t\t\t</li>\r\n\t\t\t}\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-heart\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\r\n\t\t\t</li>\r\n\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\r\n\t\t\t\t\t{{ username[0] | uppercase }}\r\n\t\t\t\t</p-button>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<i\r\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\r\n\t\t\t\t\tpBadge\r\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\r\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-dropdown\r\n\t\t\t\t\t[options]=\"languages\"\r\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\r\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\r\n\t\t\t\t\toptionLabel=\"name\"\r\n\t\t\t\t\toptionValue=\"code\"\r\n\t\t\t\t\t[showClear]=\"false\"\r\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\r\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</p-dropdown>\r\n\t\t\t</li>\r\n\t\t</ul>\r\n\t</div>\r\n</div>\r\n\r\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\r\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i7$3.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "directive", type: i8$1.BadgeDirective, selector: "[pBadge]", inputs: ["badgeDisabled", "badgeSize", "size", "severity", "value", "badgeStyle", "badgeStyleClass"] }, { kind: "ngmodule", type: MenubarModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i10$1.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "autoShowPanelOnPrintableCharacterKeyDown", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }, { kind: "component", type: GeneralSearchComponent, selector: "app-general-search", inputs: ["variant"] }] }); }
2961
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: AppTopbarComponent, isStandalone: true, selector: "app-topbar", viewQueries: [{ propertyName: "menuButton", first: true, predicate: ["menubutton"], descendants: true }], ngImport: i0, template: "<div class=\"layout-topbar\">\n\t<div class=\"topbar-start\">\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\n\t\t\t<i class=\"pi pi-bars\"></i>\n\t\t</button>\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\n\t\t@if (environmentBadge) {\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\n\t\t@if (!searchOnPage()) {\n\t\t\t<span class=\"p-input-icon-left\">\n\t\t\t\t<i class=\"pi pi-search\"></i>\n\t\t\t\t<app-general-search></app-general-search>\n\t\t\t</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-end mr-2\">\n\t\t<ul class=\"topbar-menu\">\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-sitemap\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-history\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\n\t\t\t</li>\n\t\t\t@if (canFollow()) {\n\t\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\n\t\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t\t[disabled]=\"followPending()\"\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-heart\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\n\t\t\t</li>\n\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\n\t\t\t\t\t{{ username[0] | uppercase }}\n\t\t\t\t</p-button>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<i\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\n\t\t\t\t\tpBadge\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-dropdown\n\t\t\t\t\t[options]=\"languages\"\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\n\t\t\t\t\toptionLabel=\"name\"\n\t\t\t\t\toptionValue=\"code\"\n\t\t\t\t\t[showClear]=\"false\"\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</p-dropdown>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n</div>\n\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"], dependencies: [{ kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i4.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "style", "styleClass", "badgeClass", "ariaLabel", "autofocus"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "pipe", type: UpperCasePipe, name: "uppercase" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i7$3.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "ngmodule", type: BadgeModule }, { kind: "directive", type: i8$1.BadgeDirective, selector: "[pBadge]", inputs: ["badgeDisabled", "badgeSize", "size", "severity", "value", "badgeStyle", "badgeStyleClass"] }, { kind: "ngmodule", type: MenubarModule }, { kind: "directive", type: i9.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "ngmodule", type: DropdownModule }, { kind: "component", type: i10$1.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "autoShowPanelOnPrintableCharacterKeyDown", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "ngmodule", type: TranslocoModule }, { kind: "directive", type: i5.TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoLang", "translocoLoadingTpl"] }, { kind: "pipe", type: i5.TranslocoPipe, name: "transloco" }, { kind: "component", type: GeneralSearchComponent, selector: "app-general-search", inputs: ["variant"] }] }); }
2806
2962
  }
2807
2963
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AppTopbarComponent, decorators: [{
2808
2964
  type: Component,
@@ -2817,7 +2973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
2817
2973
  TooltipModule,
2818
2974
  TranslocoModule,
2819
2975
  GeneralSearchComponent
2820
- ], template: "<div class=\"layout-topbar\">\r\n\t<div class=\"topbar-start\">\r\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\r\n\t\t\t<i class=\"pi pi-bars\"></i>\r\n\t\t</button>\r\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\r\n\t\t@if (environmentBadge) {\r\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\r\n\t\t@if (!searchOnPage()) {\r\n\t\t\t<span class=\"p-input-icon-left\">\r\n\t\t\t\t<i class=\"pi pi-search\"></i>\r\n\t\t\t\t<app-general-search></app-general-search>\r\n\t\t\t</span>\r\n\t\t}\r\n\t</div>\r\n\r\n\t<div class=\"topbar-end mr-2\">\r\n\t\t<ul class=\"topbar-menu\">\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-sitemap\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-history\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\r\n\t\t\t</li>\r\n\t\t\t@if (recordRoute()) {\r\n\t\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t\t<p-button\r\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\r\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\r\n\t\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t\t[disabled]=\"followPending()\"\r\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\r\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\r\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\r\n\t\t\t\t</li>\r\n\t\t\t}\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button\r\n\t\t\t\t\ticon=\"pi pi-heart\"\r\n\t\t\t\t\tseverity=\"secondary\"\r\n\t\t\t\t\t[text]=\"true\"\r\n\t\t\t\t\t[rounded]=\"true\"\r\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\r\n\t\t\t</li>\r\n\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\r\n\t\t\t\t\t{{ username[0] | uppercase }}\r\n\t\t\t\t</p-button>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<i\r\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\r\n\t\t\t\t\tpBadge\r\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\r\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\r\n\t\t\t</li>\r\n\t\t\t<li class=\"topbar-menu-item\">\r\n\t\t\t\t<p-dropdown\r\n\t\t\t\t\t[options]=\"languages\"\r\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\r\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\r\n\t\t\t\t\toptionLabel=\"name\"\r\n\t\t\t\t\toptionValue=\"code\"\r\n\t\t\t\t\t[showClear]=\"false\"\r\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\r\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\r\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\r\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\r\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</ng-template>\r\n\t\t\t\t</p-dropdown>\r\n\t\t\t</li>\r\n\t\t</ul>\r\n\t</div>\r\n</div>\r\n\r\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\r\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"] }]
2976
+ ], template: "<div class=\"layout-topbar\">\n\t<div class=\"topbar-start\">\n\t\t<button #menubutton type=\"button\" class=\"topbar-menubutton p-link p-trigger\" (click)=\"onMenuButtonClick()\">\n\t\t\t<i class=\"pi pi-bars\"></i>\n\t\t</button>\n\t\t<img [src]=\"logoPath\" class=\"topbar-logo\" alt=\"logo\" (click)=\"onLogoClick()\" />\n\t\t@if (environmentBadge) {\n\t\t\t<span class=\"env-indicator\" [attr.data-co]=\"environmentBadge.code\">{{ environmentBadge.label }}</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-search\" *transloco=\"let t; read: ''\">\n\t\t@if (!searchOnPage()) {\n\t\t\t<span class=\"p-input-icon-left\">\n\t\t\t\t<i class=\"pi pi-search\"></i>\n\t\t\t\t<app-general-search></app-general-search>\n\t\t\t</span>\n\t\t}\n\t</div>\n\n\t<div class=\"topbar-end mr-2\">\n\t\t<ul class=\"topbar-menu\">\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-sitemap\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onSiteMapButtonClick()\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-history\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onHistoryButtonClick()\" />\n\t\t\t</li>\n\t\t\t@if (canFollow()) {\n\t\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\t[icon]=\"followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'\"\n\t\t\t\t\t\t[styleClass]=\"followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'\"\n\t\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t\t[disabled]=\"followPending()\"\n\t\t\t\t\t\t[pTooltip]=\"(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco\"\n\t\t\t\t\t\ttooltipPosition=\"bottom\"\n\t\t\t\t\t\t(click)=\"onFollowRecordButtonClick()\" />\n\t\t\t\t</li>\n\t\t\t}\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button\n\t\t\t\t\ticon=\"pi pi-heart\"\n\t\t\t\t\tseverity=\"secondary\"\n\t\t\t\t\t[text]=\"true\"\n\t\t\t\t\t[rounded]=\"true\"\n\t\t\t\t\t(click)=\"onFavoritePagesButtonClick()\" />\n\t\t\t</li>\n\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-button severity=\"secondary\" [text]=\"true\" [rounded]=\"true\" (click)=\"onProfileButtonClick()\">\n\t\t\t\t\t{{ username[0] | uppercase }}\n\t\t\t\t</p-button>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-divider layout=\"vertical\" styleClass=\"h-1rem border-500 m-0\" />\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<i\n\t\t\t\t\tclass=\"pi pi-bell notification-icon\"\n\t\t\t\t\tpBadge\n\t\t\t\t\t[value]=\"unreadCount > 0 ? unreadCount.toString() : '0'\"\n\t\t\t\t\t(click)=\"onNotificationsButtonClick()\"></i>\n\t\t\t</li>\n\t\t\t<li class=\"topbar-menu-item\">\n\t\t\t\t<p-dropdown\n\t\t\t\t\t[options]=\"languages\"\n\t\t\t\t\t[(ngModel)]=\"currentLang\"\n\t\t\t\t\t(onChange)=\"onLanguageChange()\"\n\t\t\t\t\toptionLabel=\"name\"\n\t\t\t\t\toptionValue=\"code\"\n\t\t\t\t\t[showClear]=\"false\"\n\t\t\t\t\tclass=\"custom-dropdown ml-3\">\n\t\t\t\t\t<ng-template pTemplate=\"selectedItem\">\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"currentFlagPath\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span class=\"language-text\">{{ currentLang | uppercase }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t\t<ng-template pTemplate=\"item\" let-item>\n\t\t\t\t\t\t<div class=\"flex align-items-center gap-2\">\n\t\t\t\t\t\t\t<img [src]=\"item.flag\" class=\"flag-icon\" alt=\"flag\" />\n\t\t\t\t\t\t\t<span>{{ item.name }}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</ng-template>\n\t\t\t\t</p-dropdown>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n</div>\n\n<!-- <app-breadcrumb class=\"topbar-breadcrumb\"></app-breadcrumb> -->\n", styles: [".layout-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:.5rem;padding:0 1rem;box-shadow:0 1px 2px #00000013}@media (max-width: 768px){.layout-topbar{padding:0 .5rem;gap:.25rem}}.topbar-start{display:flex}.topbar-logo{height:36px;width:auto;cursor:pointer}@media (max-width: 768px){.topbar-logo{display:none}}.env-indicator{align-self:center;display:inline-flex;align-items:center;margin-left:.85rem;padding:.6rem 1.6rem;border-radius:999px;color:#fff;font-weight:700;font-size:1.3rem;line-height:1;letter-spacing:.07em;white-space:nowrap;text-transform:uppercase;box-shadow:0 1px 2px #0000002e;text-shadow:0 1px 1px rgba(0,0,0,.18)}.env-indicator[data-co=depsas]{background:#fc5000}.env-indicator[data-co=dedas]{background:#00adba}@media (max-width: 768px){.env-indicator{display:none}}.topbar-search{flex:1;max-width:50rem;margin:0 1rem}@media (max-width: 1024px){.topbar-search{max-width:30rem}}@media (max-width: 768px){.topbar-search{max-width:20rem;margin:0 .5rem}}@media (max-width: 480px){.topbar-search{max-width:15rem;margin:0 .25rem}}.topbar-search .p-input-icon-left{width:100%}.topbar-end{flex-shrink:0}.topbar-menu{display:flex;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}@media (max-width: 768px){.topbar-menu{gap:.25rem}}@media (max-width: 480px){.topbar-menu{gap:.1rem}}.topbar-menu-item{display:flex;align-items:center}@media (max-width: 1024px){.desktop-only{display:none!important}}.mobile-only{display:none!important}@media (max-width: 1024px){.mobile-only{display:flex!important}}.custom-dropdown .p-dropdown{border-radius:50px;padding:.5rem 1rem;border:1px solid #c8c8c8;background-color:#f4f4f4}@media (max-width: 768px){.custom-dropdown .p-dropdown{padding:.4rem .8rem}}@media (max-width: 480px){.custom-dropdown .p-dropdown{padding:.3rem .6rem}}.custom-dropdown .p-dropdown-label{padding:0;line-height:1.5}.custom-dropdown .p-dropdown-trigger{border-radius:50px}.flag-icon{width:18px;height:18px;display:inline-block;vertical-align:middle}@media (max-width: 768px){.flag-icon{width:16px;height:16px}}@media (max-width: 480px){.language-text{display:none}}@media (max-width: 768px){.topbar-menubutton{padding:.4rem!important}}@media (max-width: 480px){.topbar-menubutton{padding:.3rem!important}}@media (max-width: 768px){.topbar-menu-item p-button{min-width:auto}.topbar-menu-item p-button .p-button-icon{margin:0}.topbar-menu-item p-button .p-button-label{font-size:.9rem}}@media (max-width: 480px){.topbar-menu-item p-button .p-button-label{font-size:.8rem}.topbar-menu-item p-divider{display:none}}.notification-icon{cursor:pointer;padding:.2rem;border-radius:50%;transition:background-color .2s}.notification-icon:hover{background-color:var(--surface-hover)}@media (max-width: 480px){.notification-icon{font-size:.9rem;padding:.4rem}}:host ::ng-deep .topbar-follow--on .p-button-icon{color:#b45309}\n"] }]
2821
2977
  }], ctorParameters: () => [{ type: i5.TranslocoService }, { type: i2$1.PubSubService }, { type: i1$1.KeycloakService }], propDecorators: { menuButton: [{
2822
2978
  type: ViewChild,
2823
2979
  args: ['menubutton']
@@ -4199,5 +4355,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
4199
4355
  * Generated bundle index. Do not edit.
4200
4356
  */
4201
4357
 
4202
- export { ActivityTypesEnum, AppLayoutComponent, AppMenuService, BreadcrumbService, DetailNotificationTypeEnum, Environment, FavoritePagesService, GeneralSearchComponent, LanguageCode, LayoutService, MFELayoutComponent, RECORD_TYPE_ICONS, RECORD_TYPE_LABEL_KEYS, RecentSearchService, RecordSummaryService, ScreenVisitService, SelectionGroupService, favoritePageEndpoints };
4358
+ export { ActivityTypesEnum, AppLayoutComponent, AppMenuService, BreadcrumbService, DetailNotificationTypeEnum, Environment, FavoritePagesService, GeneralSearchComponent, LanguageCode, LayoutService, MFELayoutComponent, RECORD_ID_SEGMENT, RECORD_TYPE_ICONS, RECORD_TYPE_LABEL_KEYS, RecentSearchService, RecordSummaryService, ScreenVisitService, SelectionGroupService, favoritePageEndpoints };
4203
4359
  //# sourceMappingURL=aril-theme-layout.mjs.map