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AmBhI,KAAK2H,aAAahH,UAAUsH,IAChFjI,KAAK0H,cAAgBO,GAAoBjI,KAAKuH,eAAeW,sBAAwBC,KAAWC,SAClGpI,KAAK0H,cAAe,EACpB1H,KAAKgH,WAAWqB,KAAKrI,KAAK0H,cAAY,EAG5C,CAEAY,eACEtI,KAAK0H,cAAgB1H,KAAK0H,aAC1B1H,KAAKgH,WAAWqB,KAAKrI,KAAK0H,aAC5B,CAEAhB,mBACE,QAAyB6B,IAArBvI,KAAKwI,YAA2B,OAEpCxI,KAAK2G,cAAe,EACpB,MAAM8B,EAAYzI,KAAKwH,iBAAiBkB,KAAK1I,KAAKwI,YAAa,CAACG,SAAU,MAAOC,QAAQ,IACzFH,EAAUI,OAAOlI,UAAU,IAAMX,KAAK2G,cAAe,GACrD8B,EAAUK,UAAUnI,UAAU,IAAMX,KAAK2G,cAAe,EAC1D,EAnDWU,SAA4B,mBAAApG,iBAA5BoG,GAA4BnG,MAAAC,KAAAD,MAAA6H,MAAA7H,MAAA8H,KAAA9H,MAAA+H,MAAA,EAA5B5B,EAA4B,UAAA6B,EAAAxD,IAAA,MAA5B2B,EAA4B1B,UAAA,iCAAAC,OAAA,CAAAwB,UAAA,YAAAD,UAAA,YAAAJ,aAAA,eAAAyB,YAAA,eAAAW,QAAA,CAAAnC,WAAA,cAAA7E,YAAA,EAAA0D,SAAA,CAAA3E,OAAAkI,mBAAAC,EAAAvD,MAAA,EAAAC,KAAA,EAAAC,OAAA,0hBAAAC,SAAA,SAAAC,EAAAC,GAAA,EAAAD,aD7BzChF,MAAA,EAAAoI,EAAA,6BAAiCpI,MAAA,yDCyBrBmF,KAAYkD,KAAEC,KAAYlD,MAAkBmD,OAAA,sEAI3CpC,CAA4B","names":["ToggleService","constructor","router","this","toggleState","toggleStateSource","ReplaySubject","toggleState$","asObservable","events","pipe","filter","event","NavigationStart","subscribe","next","toggle","take","state","set","t","i0","i1","_angular_core__WEBPACK_IMPORTED_MODULE_4__","Yz7","factory","ɵfac","providedIn","DefaultValuePipe","transform","value","replacementString","Infinity","Number","isNaN","_angular_core__WEBPACK_IMPORTED_MODULE_0__","Yjl","pure","standalone","PublicationStatus","OnGoing","Hiatus","Completed","Cancelled","Ended","PublicationStatusPipe","translocoService","translate","core","TimeAgoPipe","changeDetectorRef","ngZone","timer","split","removeTimer","d","Date","seconds","Math","round","abs","getTime","timeToUpdate","getSecondsUntilUpdate","runOutsideAngular","window","setTimeout","run","markForCheck","minutes","hours","days","months","years","ngOnDestroy","clearTimeout","min","hr","day","ctx_r3","size","t_r1","ctx_r5","LoadingComponent_ng_container_0_ng_container_1_ng_container_1_Template","LoadingComponent_ng_container_0_ng_container_1_ng_template_2_Template","ctx_r2","absolute","_r4","LoadingComponent_ng_container_0_ng_container_1_Template","ctx_r0","loading","LoadingComponent","message","Xpm","selectors","inputs","features","decls","vars","consts","template","rf","ctx","LoadingComponent_ng_container_0_Template","CommonModule","TranslocoDirective","changeDetection","_r5","ctx_r4","openExtrasDrawer","isExtrasOpen","_r8","ctx_r7","toggleService","filterActive","filterOpen","SideNavCompanionBarComponent_ng_container_0_button_8_Template","SideNavCompanionBarComponent_ng_container_0_button_9_Template","hasExtras","hasFilter","SideNavCompanionBarComponent","navService","utilityService","offcanvasService","EventEmitter","isFilterOpen","destroyRef","inject","DestroyRef","ngOnInit","sideNavCollapsed$","takeUntilDestroyed","sideNavCollapsed","getActiveBreakpoint","Breakpoint","Tablet","emit","toggleFilter","undefined","extraDrawer","drawerRef","open","position","scroll","closed","dismissed","i2","i3","i4","_angular_core__WEBPACK_IMPORTED_MODULE_1__","outputs","ngContentSelectors","_c1","SideNavCompanionBarComponent_ng_container_0_Template","i5","NgbTooltip","styles"],"sourceRoot":"webpack:///","sources":["./src/app/_services/toggle.service.ts","./src/app/pipe/default-value.pipe.ts","./src/app/_models/metadata/publication-status.ts","./src/app/pipe/publication-status.pipe.ts","./src/app/pipe/time-ago.pipe.ts","./src/app/shared/loading/loading.component.html","./src/app/shared/loading/loading.component.ts","./src/app/sidenav/_components/side-nav-companion-bar/side-nav-companion-bar.component.html","./src/app/sidenav/_components/side-nav-companion-bar/side-nav-companion-bar.component.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { NavigationStart, Router } from '@angular/router';\nimport { filter, ReplaySubject, take } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ToggleService {\n\n toggleState: boolean = false;\n\n\n private toggleStateSource: ReplaySubject = new ReplaySubject(1);\n public toggleState$ = this.toggleStateSource.asObservable();\n\n constructor(router: Router) {\n router.events\n .pipe(filter(event => event instanceof NavigationStart))\n .subscribe((event) => {\n this.toggleState = false;\n this.toggleStateSource.next(this.toggleState);\n });\n this.toggleStateSource.next(false);\n }\n\n toggle() {\n this.toggleState = !this.toggleState;\n this.toggleStateSource.pipe(take(1)).subscribe(state => {\n this.toggleState = !state;\n this.toggleStateSource.next(this.toggleState);\n });\n \n }\n\n set(state: boolean) {\n this.toggleState = state;\n this.toggleStateSource.next(state);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'defaultValue',\n pure: true,\n standalone: true\n})\nexport class DefaultValuePipe implements PipeTransform {\n\n transform(value: any, replacementString = '—'): string {\n if (value === null || value === undefined || value === '' || value === Infinity || Number.isNaN(value)) return replacementString;\n return value;\n }\n\n}\n","export enum PublicationStatus {\n OnGoing = 0,\n Hiatus = 1,\n Completed = 2,\n Cancelled = 3,\n Ended = 4\n}","import {Pipe, PipeTransform} from '@angular/core';\nimport { PublicationStatus } from '../_models/metadata/publication-status';\nimport {TranslocoService} from \"@ngneat/transloco\";\n\n@Pipe({\n name: 'publicationStatus',\n standalone: true\n})\nexport class PublicationStatusPipe implements PipeTransform {\n constructor(private translocoService: TranslocoService) {}\n\n transform(value: PublicationStatus): string {\n switch (value) {\n case PublicationStatus.OnGoing:\n return this.translocoService.translate('publication-status-pipe.ongoing');\n case PublicationStatus.Hiatus:\n return this.translocoService.translate('publication-status-pipe.hiatus');\n case PublicationStatus.Completed:\n return this.translocoService.translate('publication-status-pipe.completed');\n case PublicationStatus.Cancelled:\n return this.translocoService.translate('publication-status-pipe.cancelled');\n case PublicationStatus.Ended:\n return this.translocoService.translate('publication-status-pipe.ended');\n default:\n return '';\n }\n }\n\n}\n","import {ChangeDetectorRef, NgZone, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {TranslocoService} from \"@ngneat/transloco\";\n\n/**\n * MIT License\n\nCopyright (c) 2016 Andrew Poyntz\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nThis code was taken from https://github.com/AndrewPoyntz/time-ago-pipe/blob/master/time-ago.pipe.ts\nand modified\n */\n\n@Pipe({\n name: 'timeAgo',\n pure: false,\n standalone: true\n})\nexport class TimeAgoPipe implements PipeTransform, OnDestroy {\n\n\tprivate timer: number | null = null;\n\tconstructor(private readonly changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone,\n private translocoService: TranslocoService) {}\n\n\ttransform(value: string) {\n\n if (value === '' || value === null || value === undefined || value.split('T')[0] === '0001-01-01') {\n return this.translocoService.translate('time-ago-pipe.never');\n }\n\n\t\tthis.removeTimer();\n\t\tconst d = new Date(value);\n\t\tconst now = new Date();\n\t\tconst seconds = Math.round(Math.abs((now.getTime() - d.getTime()) / 1000));\n\t\tconst timeToUpdate = (Number.isNaN(seconds)) ? 1000 : this.getSecondsUntilUpdate(seconds) * 1000;\n\n \tthis.timer = this.ngZone.runOutsideAngular(() => {\n\t\t\tif (typeof window !== 'undefined') {\n\t\t\t\treturn window.setTimeout(() => {\n\t\t\t\t\tthis.ngZone.run(() => this.changeDetectorRef.markForCheck());\n\t\t\t\t}, timeToUpdate);\n\t\t\t}\n\t\t\treturn null;\n\t\t});\n\n\t\tconst minutes = Math.round(Math.abs(seconds / 60));\n\t\tconst hours = Math.round(Math.abs(minutes / 60));\n\t\tconst days = Math.round(Math.abs(hours / 24));\n\t\tconst months = Math.round(Math.abs(days/30.416));\n\t\tconst years = Math.round(Math.abs(days/365));\n\n\t\tif (Number.isNaN(seconds)){\n\t\t\treturn '';\n\t\t}\n\n\t\tif (seconds <= 45) {\n\t\t\t\treturn this.translocoService.translate('time-ago-pipe.just-now');\n }\n\t\tif (seconds <= 90) {\n return this.translocoService.translate('time-ago-pipe.min-ago');\n }\n\t\tif (minutes <= 45) {\n return this.translocoService.translate('time-ago-pipe.mins-ago', {value: minutes});\n }\n\t\tif (minutes <= 90) {\n return this.translocoService.translate('time-ago-pipe.hour-ago');\n }\n\t\tif (hours <= 22) {\n return this.translocoService.translate('time-ago-pipe.hours-ago', {value: hours});\n }\n\t\tif (hours <= 36) {\n return this.translocoService.translate('time-ago-pipe.day-ago');\n }\n\t\tif (days <= 25) {\n return this.translocoService.translate('time-ago-pipe.days-ago', {value: days});\n }\n\t\tif (days <= 45) {\n return this.translocoService.translate('time-ago-pipe.month-ago');\n }\n\t\tif (days <= 345) {\n return this.translocoService.translate('time-ago-pipe.months-ago', {value: months});\n }\n\t\tif (days <= 545) {\n return this.translocoService.translate('time-ago-pipe.year-ago');\n }\n return this.translocoService.translate('time-ago-pipe.years-ago', {value: years});\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.removeTimer();\n\t}\n\n\tprivate removeTimer() {\n\t\tif (this.timer) {\n\t\t\twindow.clearTimeout(this.timer);\n\t\t\tthis.timer = null;\n\t\t}\n\t}\n\n\tprivate getSecondsUntilUpdate(seconds:number) {\n\t\tconst min = 60;\n\t\tconst hr = min * 60;\n\t\tconst day = hr * 24;\n\t\tif (seconds < min) { // less than 1 min, update every 2 secs\n\t\t\treturn 2;\n\t\t} else if (seconds < hr) { // less than an hour, update every 30 secs\n\t\t\treturn 30;\n\t\t} else if (seconds < day) { // less then a day, update every 5 mins\n\t\t\treturn 300;\n\t\t} else { // update every hour\n\t\t\treturn 3600;\n\t\t}\n\t}\n\n}\n","\n \n \n
\n
\n {{t('loading')}}\n
\n
\n
\n\n \n
\n
\n {{t('loading')}}\n
\n
\n
\n
\n\n
\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport {CommonModule} from \"@angular/common\";\nimport {TranslocoDirective} from \"@ngneat/transloco\";\n\n@Component({\n selector: 'app-loading',\n standalone: true,\n imports: [CommonModule, TranslocoDirective],\n templateUrl: './loading.component.html',\n styleUrls: ['./loading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class LoadingComponent {\n\n @Input() loading: boolean = false;\n @Input() message: string = '';\n @Input() size: '' | 'spinner-border-sm' = '';\n /**\n * Uses absolute positioning to ensure it loads over content\n */\n @Input() absolute: boolean = false;\n\n constructor() { }\n}\n","\n
\n
\n \n \n
\n
\n \n
\n
\n \n \n
\n\n
\n
\n","import {\n Component,\n DestroyRef,\n EventEmitter,\n inject,\n Input,\n OnInit,\n Output,\n TemplateRef\n} from '@angular/core';\nimport {NgbOffcanvas, NgbTooltip} from '@ng-bootstrap/ng-bootstrap';\nimport { Breakpoint, UtilityService } from 'src/app/shared/_services/utility.service';\nimport { NavService } from 'src/app/_services/nav.service';\nimport { ToggleService } from 'src/app/_services/toggle.service';\nimport {takeUntilDestroyed} from \"@angular/core/rxjs-interop\";\nimport {CommonModule} from \"@angular/common\";\nimport {TranslocoDirective} from \"@ngneat/transloco\";\n\n/**\n * This should go on all pages which have the side nav present and is not Settings related.\n * Content inside [main] selector should not have any padding top or bottom, they are included in this component.\n */\n@Component({\n selector: 'app-side-nav-companion-bar',\n standalone: true,\n imports: [CommonModule, NgbTooltip, TranslocoDirective],\n templateUrl: './side-nav-companion-bar.component.html',\n styleUrls: ['./side-nav-companion-bar.component.scss']\n})\nexport class SideNavCompanionBarComponent implements OnInit {\n /**\n * If the page should show a filter\n */\n @Input() hasFilter: boolean = false;\n /**\n * If the page should show an extra section button\n */\n @Input() hasExtras: boolean = false;\n\n /**\n * This implies there is a filter in effect on the underlying page. Will show UI styles to imply this to the user.\n */\n @Input() filterActive: boolean = false;\n\n @Input() extraDrawer!: TemplateRef;\n\n\n @Output() filterOpen: EventEmitter = new EventEmitter();\n\n isFilterOpen = false;\n isExtrasOpen = false;\n\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(private navService: NavService, private utilityService: UtilityService, public toggleService: ToggleService,\n private offcanvasService: NgbOffcanvas) {\n }\n\n ngOnInit(): void {\n // If user opens side nav while filter is open on mobile, then collapse filter (as it doesn't render well) TODO: Change this when we have new drawer\n this.navService.sideNavCollapsed$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(sideNavCollapsed => {\n if (this.isFilterOpen && sideNavCollapsed && this.utilityService.getActiveBreakpoint() < Breakpoint.Tablet) {\n this.isFilterOpen = false;\n this.filterOpen.emit(this.isFilterOpen);\n }\n });\n }\n\n toggleFilter() {\n this.isFilterOpen = !this.isFilterOpen;\n this.filterOpen.emit(this.isFilterOpen);\n }\n\n openExtrasDrawer() {\n if (this.extraDrawer === undefined) return;\n\n this.isExtrasOpen = true;\n const drawerRef = this.offcanvasService.open(this.extraDrawer, {position: 'end', scroll: true});\n drawerRef.closed.subscribe(() => this.isExtrasOpen = false);\n drawerRef.dismissed.subscribe(() => this.isExtrasOpen = false);\n }\n\n}\n"],"x_google_ignoreList":[]}