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C,SAAS,CAAC,sBAAsB,EAAC,IAAI,EAAC,IAAI,CAAC,CAAC;oBAC5D,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAM,CAAC,IAAE;wBAE5C,IAAG,CAAC,EAAC;yBACJ;wBAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACpB,CAAC,EAAC,CAAC;iBAEH;;oBAAM,OAAO,CAAC,IAAI,CAAC,CAAC;YAEtB,CAAC,EAAC,CAAC;YAIH,IAAG,OAAO,EAAE;gBACZ,IAAG,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,EAAC;oBAC7B,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,YAAY,CAAC;oBACnE,OAAO,CAAC,SAAS,CAAE,IAAI,EAAE,IAAI,EAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;iBACvD;gBACH,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAE,kBAAkB;gBAC7C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAC,EAAC,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;aAC7D;QAEH,CAAC;KAAA;IAUD,OAAO;QACL,MAAM,CAAC,IAAI,CAAC,qEAAqE,EAAE,SAAS,CAAC,CAAC;QAChG,kGAAkG;QACjG,2HAA2H;IAC5H,CAAC;CAIA;;YA/IQ,wDAAY;YAHZ,mDAAM;YACN,qFAAiB;YAFjB,4EAAgB;YAGhB,8EAAkB;;AAad,WAAW;IANvB,wDAAS,CAAC;QACX,QAAQ,EAAE,aAAa;QACvB,oEAAkC;;KAEjC,CAAC;GAEW,WAAW,CAmIvB;AAnIuB","sources":["./src/app/welcome/welcome-routing.module.ts","./src/app/welcome/welcome.module.ts","./src/app/welcome/welcome.page.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { CanActivateGuard } from '../_guard/canAc-app-guard.service';\nimport { WelcomePage } from './welcome.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: WelcomePage,\n canActivate: [CanActivateGuard]\n\n }\n]\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class WelcomePageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { WelcomePageRoutingModule } from './welcome-routing.module';\n\nimport { WelcomePage } from './welcome.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n WelcomePageRoutingModule\n ],\n declarations: [WelcomePage]\n})\nexport class WelcomePageModule {}\n","import { Component, OnInit } from '@angular/core';\nimport { CanActivateGuard } from '../_guard/canAc-app-guard.service';\nimport { Router } from '@angular/router';\nimport { AppserviceService } from '../_service/appservice/appservice.service';\nimport { CanDeactivateGuard } from '../_guard/canDe-app-guard.service';\nimport { AppComponent } from '../app.component';\n//import { IonContent, IonInput } from '@ionic/angular';\n\n\n\n\n@Component({\nselector: 'app-welcome',\ntemplateUrl: './welcome.page.html',\nstyleUrls: ['./welcome.page.scss'],\n})\n\nexport class WelcomePage implements OnInit { \n//@ViewChild(IonContent, {static: false}) theContent: IonContent;\n\n\n\nmsg: string = \"Welcome\";\nerrMsg: number;\nfirstUrl: any;\n \n\nconstructor(public appC: AppComponent,\npublic router: Router, public appService: AppserviceService,\npublic canGuard: CanActivateGuard, public deactGuard: CanDeactivateGuard) { \n\n \n}\n\n\nngOnInit() {\n}\n\nasync ionViewDidEnter(){\nthis.deactGuard.permit = 0; //deAct Welcome\nthis.canGuard.permit = 0; // canAct to Login\n\nif(!this.appService.screenFull){\nlet u = this.appService.urlstate;\nif(u.includes('profile')){ \n this.appService.urlstate = u.substring(0,u.indexOf(\"&profile=1\")); \n }\n\n if(u.includes('keepme')){\n this.appService.urlstate = u.substring(0,u.indexOf(\"&keepme=1\")); \n }\n\n if(u.includes('login')){\n this.appService.urlstate = u.substring(0,u.indexOf(\"&login=1\")); \n }\nhistory.pushState (null, null,this.appService.urlstate); \n}\n\n\nthis.appService.msg = null; \nthis.appService.errMsg = null; \n//console.log('Profile logged in?: ' + this.appService.isLoggedIn, + this.appService.codeId);\n\n //UNSUBSCRIBE\n if(this.appC.iSub){\n this.appC.iSub.unsubscribe(); \n this.appC.toSub.unsubscribe();\n this.appC.oSub.unsubscribe();\n this.appC.towSub.unsubscribe();\n this.appC.idle.stop(); \n console.log('Idle stop');\n }\n\n}\n\n\n\n\n\n\n\ngoLogin(){\nthis.appService.connTimer('',null,false);\n\nthis.appService.getAppStats(this.appService.rootId).then(e=>{\nif(e){\n \n if(!this.appService.screenFull){\n this.appService.urlstate = this.appService.urlstate + '&login=1';\n history.pushState (null, null,this.appService.urlstate); \n }\n this.canGuard.permit = 1; // canAct to Login \n this.router.navigate(['/login'],{skipLocationChange: true }); \n } \n });\n}\n\n\n\n\n\nasync goEnroll(){ \nlet proceed = await new Promise(async (resolve) => { \n\n if(this.appService.refCode === '0000' || !this.appService.refCode){ //// update to Corp ID\n \n this.appService.refCode = this.appService.appInfo.corpId; \n \n this.appService.connTimer('Updating referral ID',null,true);\n this.appService.userVerifyRefID().then(async e=>{\n\n if(e){ \n } resolve(true); \n }); \n\n } else resolve(true);\n \n });\n\n\n\n if(proceed) {\n if(!this.appService.screenFull){\n this.appService.urlstate = this.appService.urlstate + '&profile=1';\n history.pushState (null, null,this.appService.urlstate); \n } \n this.canGuard.permit = 1; // canAct to Login\n this.router.navigate(['/enroll'],{skipLocationChange: true }); \n } \n\n} \n\n\n\n\n\n\n\n\n\ngoTerms(){ // not as root \n window.open(\"https://www.termsfeed.com/live/e38c06aa-a3c5-41a6-91f9-0d3f9002b4ab\", '_system'); \n// history.pushState (null, null,this.appService.urlstate); // NEEDED FOR BACK ======> \"\" not \"/\"\n // this.router.navigate(['/policyterms'],{skipLocationChange: true }); // vistors be able to go BACK <-- Welcome page \n}\n\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///"}