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,EAAC,CAAC,CAAC;gBAC7D,OAAO;aACN;YAED,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,gBAAgB,CAAC;YAG3C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,EAAC,EAAC,kBAAkB,EAAE,IAAI,EAAC,CAAC,CAAC;QAGhE,CAAC;KAAA;IAMD,EAAE;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAC1B,CAAC;IAID,OAAO;QACP,IAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;IAC5C,CAAC;IAKH,SAAS;QACT,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC7B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,eAAe,EAAE,CAAC;IACvB,CAAC;IAGD,WAAW;QACX,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;IAChC,CAAC;CAIA;;YAhPQ,4EAAgB;YAChB,8EAAkB;YAFlB,2DAAc;YAAE,mDAAM;YAItB,qFAAiB;YADjB,8EAAc;;AAQV,UAAU;IALtB,wDAAS,CAAC;QACT,QAAQ,EAAE,YAAY;QACtB,mEAAiC;;KAElC,CAAC;GACW,UAAU,CAsOtB;AAtOsB","sources":["./src/app/splash/splash-routing.module.ts","./src/app/splash/splash.module.ts","./src/app/splash/splash.page.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { CanActivateGuard } from '../_guard/canAc-app-guard.service';\nimport { CanDeactivateGuard } from '../_guard/canDe-app-guard.service';\n\nimport { SplashPage } from './splash.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: SplashPage,\n canActivate: [CanActivateGuard],\n canDeactivate:[CanDeactivateGuard]\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';\nimport { ActivatedRoute, Router} from '@angular/router';\nimport { CanActivateGuard } from '../_guard/canAc-app-guard.service';\nimport { CanDeactivateGuard } from '../_guard/canDe-app-guard.service';\nimport { ApiLinkService } from '../_service/api-link/api-link.service';\nimport { AppserviceService } from '../_service/appservice/appservice.service';\n\n@Component({\n selector: 'app-splash',\n templateUrl: './splash.page.html',\n styleUrls: ['./splash.page.scss'],\n})\nexport class SplashPage implements OnInit {\n \n\ntoAPI: any;\nsrpin: any = 9;\ntpin: any = 0;\n urlextReg: any;\n stop: boolean = false;\n\nconstructor(public canGuard: CanActivateGuard, public deactGuard: CanDeactivateGuard, \nprivate route: ActivatedRoute,public router: Router,\npublic appService: AppserviceService, public apiLink: ApiLinkService) {\n\n\n\n//console.log(\n this.appService.rootId = \"SR\"\n //); //cg \n this.route.queryParams.subscribe(async (params: any) => {\n if(params['view']) \n// console.log(\nthis.appService.didEnd = \"1\";//); \n\n\n //console.log(\n this.urlextReg = params['extReg'];\n //, ' is External ?'); \n console.log(this.appService.urlcode = params['code'], 'refCode from urlLink ?'); //1000c1n1\n //console.log(\n this.appService.urlstate = this.router.url\n //, ' RouterUrl'); \n //above params required for logout back to login\n //also browser refresh to current entity\n }); \n}\n\n\n\nngOnInit(){\n\n}\n\n \n\nasync ionViewDidEnter(){\n await new Promise(resolve => {setTimeout(resolve, 100)}); \nif(this.appService.stopItem){\n this.appService.dataVal = 'Stop ConnTimer';\n this.appService.msg = 'Connection stopped!';\n this.appService.errMsg = 1; // Allow API message as not leaving page \nreturn; \n} \n\n\nlet e = this.appService.rootId;\n if(!e){\n return\n } \n \n if(e.indexOf(\"?\") !== -1 ){\n this.appService.rootId = null;\n return;\n } \n\n \nthis.appService.connTimer(null,null,false);\nthis.appService.getAppStats(this.appService.rootId).then( (app)=>{\n\n \n if(!app) return; \n \n // console.log(app, ' App ID');\n\n let u = this.appService.urlcode;\n \n if(u){\n let c: any;\n\n if(u && u.indexOf(\"c\") === -1 ){\n this.appService.refCode = u; \n\n this.appService.codeId = u; \n this.appService.refLink = null; \n this.appService.cpgnId = null;\n this.appService.invNbr = null; \n\n }\n else{\n c = u.substring(0, u.indexOf(\"c\")); // 1000\n this.appService.refCode = c; \n\n this.appService.codeId = c; \n this.appService.refLink = u; \n let cpgn = u.substring(0, u.indexOf(\"n\")); // 1000c1\n this.appService.cpgnId = cpgn.split('c').pop();\n this.appService.invNbr = u.split('n').pop(); // 123 \n }\n\n // console.log(\"UrlCodes \" + this.appService.codeId + \" \" + this.appService.cpgnId + \" \" + this.appService.invNbr);\n \n } else {\n this.appService.refCode = this.appService.appInfo.corpId; // from app data \n \n }\n \n }).then(async ()=>{\n\n\n\n\n this.appService.userVerifyRefID().then( async v=>{\n\n if(v) {\n if(this.appService.appInfo.ext) this.appService.extReg = this.urlextReg;\n this.goWelcome(); \n } \n \n });\n \n });\n\n\n\n}\n\n\n\n\n\n\n\nasync goWelcome(){\nawait new Promise(async (resolve) => { //load after appC\nlet fs = false;\nif((screen.height - window.innerHeight) < 81 ){ //0 - 80 \n// height is status bars only && this.appService.platWidth < 810 \n//114 < 115 on iphone browser bar, on iphone7 = 20 < 21 as app\n//129 < 130 browser bar on s10, on galaxy s10 = 73 < 74 as app\n//168 < 169 browser bar on tablet on Tablet = 72 < 73 as app\nfs = true;\n}\nresolve(this.appService.screenFull = fs);\n//console.log(this.appService.screenInfo = fs + ' Fullscreen ? ' + screen.height + ' ' + window.innerHeight + ' ' + (screen.height - window.innerHeight));\n\n\n\n})\n\n\n\n\n\n//if(EVEYONE SEES WELCOME PAGE TO FOCUS ON THE SPLASH VIDEO)\nthis.deactGuard.permit = 1; //deAct Splash\nthis.canGuard.permit = 1; // canAct to Welcome\n\nhistory.pushState (null, null,this.appService.urlstate); // NEEDED FOR BACK ======> \"\" not \"/\"\n\nif(this.router.url.includes('profile')){\n this.router.navigate(['/enroll'],{skipLocationChange: true}); \n return;\n }\n\nif(this.router.url.includes('keepme')){\n this.router.navigate(['/keepme'],{skipLocationChange: true}); \n return;\n }\n/*\nif(this.router.url.includes('login')){\n this.router.navigate(['/login'],{skipLocationChange: true}); \n return;\n }\n*/\n\n if(this.router.url.includes('view')){\n this.router.navigate(['/queue'],{skipLocationChange: true}); \n return;\n }\n \n \n\n\n //KEEP INTERFACE CONSISTENT\n if(this.appService.appInfo.ext && this.appService.refCode !== '0000' && this.appService.extReg === '1'){\n history.pushState (null, null,this.router.url);\n this.router.navigate(['/enroll'],{skipLocationChange: true}); \n return; \n } \n \n this.appService.dataVal = \"Stop ConnTimer\";\n\n\n this.router.navigate(['/queue'],{skipLocationChange: true});\n\n \n}\n\n\n\n\n\ntp(){\nthis.tpin = this.tpin + 1; \n}\n\n\n\nhttpChx(){\nif(this.tpin === this.srpin) this.apiLink.API = this.toAPI;\nconsole.log(\"changed to: \" + this.apiLink.API)\n }\n \n\n\n\nreloadApp(){\nthis.tpin = 0; \nthis.appService.stopItem = false; \nthis.appService.progress = 1; \nwindow.location.href;\nthis.ionViewDidEnter();\n}\n\n\nstopLoading(){\nthis.appService.stopItem = true;\n}\n \n\n\n}\n\n"],"names":[],"sourceRoot":"webpack:///"}