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AC,CAAC,EAAC,uBAAuB,GAAG,CAAC,CAAC,OAAO,GAAG,uBAAuB,GAAG,CAAC,CAAC,iBAAiB,GAAG,oBAAoB,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC;YACrJ,IAAI,CAAC,CAAC,OAAO,IAAI,QAAQ,IAAI,CAAC,CAAC,iBAAiB,EAAE;gBAChD,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;aACrB;iBAAM;gBACL,CAAC,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC,UAAkB,EAAC,EAAE;oBAC5C,IAAI,UAAU,EAAE;wBACd,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;qBACtB;yBAAM;wBACL,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;qBAChC;gBACH,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAC,EAAE;YAChB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAC,+BAA+B,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACL,CAAC;CAyBF;;YA/DQ,8EAAe;YACf,0EAAa;;AAQT,UAAU;IAPtB,wDAAS,CAAC;QACT,QAAQ,EAAE,YAAY;QACtB,6IAAiC;;KAElC,CAAC;IACF,kGAAkG;IAClG,kCAAkC;GACrB,UAAU,CAsDtB;AAtDsB;;;;;;;;;;;;;;;ACXvB,iEAAe,0MAA0M","sources":["./src/app/pages/splash/splash-routing.module.ts","./src/app/pages/splash/splash.module.ts","./src/app/pages/splash/splash.page.ts","./src/app/pages/splash/splash.page.html"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { SplashPage } from './splash.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: SplashPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class SplashPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { SplashPageRoutingModule } from './splash-routing.module';\n\nimport { SplashPage } from './splash.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n SplashPageRoutingModule\n ],\n declarations: [SplashPage]\n})\nexport class SplashPageModule {}\n","import { Component, OnInit } from '@angular/core';\n\nimport { SettingsService } from 'src/app/services/settings.service';\nimport { UpdateService } from 'src/app/services/update.service';\n@Component({\n selector: 'app-splash',\n templateUrl: './splash.page.html',\n styleUrls: ['./splash.page.scss'],\n})\n// custom splash screen. We use it because \"default splash screen\" doesn't seem to work in browser\n// may be we will not use it later\nexport class SplashPage implements OnInit {\n\n constructor(\n public settings: SettingsService,\n private update: UpdateService \n ) { \n this.settings.log(1,'SplashPage constructor');\n }\n\n ngOnInit() {\n let t = this;\n let s = this.settings; \n this.settings.log(1,'ngOnInit SplashPage');\n this.update.pageIsReady('SplashPage').then((result) => {\n this.settings.log(1,'SplashPage s.appType=' + s.appType + ' s.userAuthenticated=' + s.userAuthenticated + ' s.userAuthorised=' + s.userAuthorised());\n if (s.appType == 'public' || s.userAuthenticated) {\n s.openPage('/home');\n } else {\n s.userAuthorised().then((authorised:boolean)=>{\n if (authorised) {\n s.openPage('/login');\n } else {\n s.openPage('/authorise-email');\n }\n });\n } \n }).catch((error)=>{\n this.settings.log(1,\"SplashPage pageIsReady error \" + error.message);\n }); \n }\n\n /*\n ionViewWillEnter() {\n let t = this;\n let s = this.settings; \n this.settings.log(1,'ionViewWillEnter SplashPage');\n this.update.pageIsReady('SplashPage').then((result) => {\n this.settings.log(1,'SplashPage s.appType=' + s.appType + ' s.userAuthenticated=' + s.userAuthenticated + ' s.userAuthorised=' + s.userAuthorised());\n if (s.appType == 'public' || s.userAuthenticated) {\n s.openPage('/home');\n } else {\n s.userAuthorised().then((authorised:boolean)=>{\n if (authorised) {\n s.openPage('/login');\n } else {\n s.openPage('/authorise-email');\n }\n });\n } \n }).catch((error)=>{\n this.settings.log(1,\"SplashPage pageIsReady error \" + error.message);\n }); \n }\n\t */\n}\n","export default \"\\n \\n \\n \\n \\n \\n\\n\";"],"names":[],"sourceRoot":"webpack:///"}