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iBAAiB,8BAA8B,WAAW,mIAAmI,4mBAA4mB,iPAAiP,6BAA6B,6WAA6W,aAAa,kHAAkH,gHAAgH,UAAU,2CAA2C,kDAAkD,4CAA4C,YAAY,6WAA6W","sources":["./src/app/pages/notifications-archive/notifications-archive-routing.module.ts","./src/app/pages/notifications-archive/notifications-archive.module.ts","./src/app/pages/notifications-archive/notifications-archive.page.ts","./src/app/pages/notifications-archive/notifications-archive.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { NotificationsArchivePage } from './notifications-archive.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: NotificationsArchivePage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class NotificationsArchivePageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { SharedModule } from '../../modules/shared/shared.module';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { NotificationsArchivePageRoutingModule } from './notifications-archive-routing.module';\n\nimport { NotificationsArchivePage } from './notifications-archive.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n NotificationsArchivePageRoutingModule,\n SharedModule\n ],\n declarations: [NotificationsArchivePage]\n})\nexport class NotificationsArchivePageModule {}\n","import { Component, HostListener, OnDestroy, OnInit } from '@angular/core';\nimport { NotificationModalPage } from '../notification-modal/notification-modal.page';\nimport { ModalController } from '@ionic/angular';\n\nimport { SettingsService } from 'src/app/services/settings.service';\nimport { UpdateService } from 'src/app/services/update.service';\n\n@Component({\n selector: 'app-notifications-archive',\n templateUrl: './notifications-archive.page.html',\n styleUrls: ['./notifications-archive.page.scss'],\n})\nexport class NotificationsArchivePage implements OnInit {\n notifications: any = {};\n notificationCheckIsRunning: boolean = false;\n displayNmoreText: string = \"\";\n runningMessage: string = \"Checking for new notifications ...\"; \n public pageName = 'Notifications Archive';\n\n constructor(\n public modalController: ModalController, \n public settings: SettingsService, \n private update: UpdateService\n ) { \n\n }\n\n ngOnInit() {\n }\n\n ionViewWillEnter() {\n // GR do we need code below?\n this.settings.platform.backButton.subscribeWithPriority(10, () => {\n this.settings.log(0,'back button clicked');\n if (!this.settings.userAuthenticated) {\n this.settings.openPage('/login');\n }\n }); \n this.settings.log(0,'ionViewWillEnter NotificationsArchivePage');\n this.update.pageIsReady('NotificationArchivePage').then((ready) => {\n this.settings.log(0,'NotificationsArchivePage authenticated=' + this.settings.userAuthenticated);\n // track GA page views\n this.settings.trackPageView('Notifications Archive Page'); \n\n this.notificationCheckIsRunning = this.settings.notificationCheck.isRunning;\n this.displayNotifications();\n let t = this;\n // register listener to the change of notificationCheck.isRunning value\n this.settings.notificationCheck.registerListener(function(isRunning: boolean) {\n t.settings.log(1,'Archive notificationCheck.registerListener VALUE CHANGED isRunning=' + isRunning);\n t.notificationCheckIsRunning = isRunning;\n t.displayNotifications();\n });\n }); \n }\n\n displayNotifications() {\n this.displayNmoreText = \"\";\n this.notifications = this.settings.getArchiveNotifications();\n this.settings.log(1,'Archive Page notifications=' + JSON.stringify(this.notifications));\n }\n\n async readMorePopup(id) {\n this.settings.log(1,\"Archive Page ReadMore clicked id=\" + id);\n const modal = await this.modalController.create({\n component: NotificationModalPage,\n //cssClass: 'my-custom-class',\n componentProps: {'data': this.settings.getNotificationById(id)}\n });\n\n modal.onDidDismiss().then((o) => {\n if (o.data !== null) {\n let linkurl = o.data;\n this.settings.log(1,'Archive Page modal closed data=' + o.data); \n if (linkurl) {\n // link has been passed\n this.settings.openLinkFromModalPage(linkurl);\n }\n this.displayNotifications(); \n }\n }); \n\n return await modal.present();\n } \n}\n","export default \"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n Archived Messages\\n \\n \\n \\n \\n \\n 0\\\"> \\n \\n \\n {{n?.title}}\\n {{this.settings.formatDateTime(\\\"D MMM\\\", n?.sent)}}\\n {{n?.message}}\\n \\n \\n \\n \\n \\n There are no messages in the archive. Choose messages to place in the archive from the messages inbox.\\n \\n \\n \\n\\n\";"],"names":[],"sourceRoot":"webpack:///"}
\\n There are no messages in the archive. Choose messages to place in the archive from the messages inbox.\\n