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,mIAAmI,8mBAA8mB,yJAAyJ,2BAA2B,ycAAyc,aAAa,gHAAgH,2HAA2H,uMAAuM,SAAS,2CAA2C,iDAAiD,4CAA4C,WAAW,yVAAyV","sources":["./src/app/pages/notifications-inbox/notifications-inbox-routing.module.ts","./src/app/pages/notifications-inbox/notifications-inbox.module.ts","./src/app/pages/notifications-inbox/notifications-inbox.page.ts","./src/app/pages/notifications-inbox/notifications-inbox.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { NotificationsInboxPage } from './notifications-inbox.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: NotificationsInboxPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class NotificationsInboxPageRoutingModule {}\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 { NotificationsInboxPageRoutingModule } from './notifications-inbox-routing.module';\n\nimport { NotificationsInboxPage } from './notifications-inbox.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n NotificationsInboxPageRoutingModule,\n SharedModule\n ],\n declarations: [NotificationsInboxPage]\n})\nexport class NotificationsInboxPageModule {}\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-inbox',\n templateUrl: './notifications-inbox.page.html',\n styleUrls: ['./notifications-inbox.page.scss'],\n})\nexport class NotificationsInboxPage implements OnInit {\n notifications: any = {};\n notificationCheckIsRunning: boolean = false;\n displayNmoreText: string = \"\";\n runningMessage: string = \"Checking for new notifications ...\"; \n public pageName = 'Notifications';\n\n constructor(\n public modalController: ModalController, \n public settings: SettingsService, \n private update: UpdateService\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(1,'ionViewWillEnter NotificationsInboxPage');\n this.update.pageIsReady('NotificationsInboxPage').then((ready) => {\n this.settings.log(0,'NotificationsInboxPage authenticated=' + this.settings.userAuthenticated);\n // track GA page views\n this.settings.trackPageView('Notifications List 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,'Inbox notificationCheck.registerListener VALUE CHANGED isRunning=' + isRunning);\n t.notificationCheckIsRunning = isRunning;\n t.displayNotifications();\n });\n }); \n }\n\n displayNotifications() {\n this.displayNmoreText = \"\";\n this.settings.log(1,'Inbox Page displayNotifications this.notificationCheckIsRunning=' + this.notificationCheckIsRunning);\n this.notifications = this.settings.getInboxNotifications();\n }\n\n async readMorePopup(id) {\n this.settings.log(1,\"Inbox 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,'Inbox 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}\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   Messages Inbox\\n

\\n \\n
\\n
\\n
\\n
\\n 0\\\"> \\n \\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 current messages. Check the archive for older messages.\\n

\\n
\\n
\\n
\\n\";"],"names":[],"sourceRoot":"webpack:///"}