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AAM,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,EAAC,EAAC,kBAAkB,EAAE,IAAI,EAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC;IACrC,CAAC;CAIA;;YAtKQ,mDAAM;YAIN,8EAAc;YACd,qFAAiB;YAHjB,4EAAgB;YAChB,8EAAkB;;;yBAU1B,oDAAS,SAAC,YAAY,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC;uBACvC,oDAAS,SAAC,UAAU,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC;;AAFzB,UAAU;IALtB,wDAAS,CAAC;QACT,QAAQ,EAAE,YAAY;QACtB,mEAAiC;;KAElC,CAAC;GACW,UAAU,CA0JtB;AA1JsB","sources":["./src/app/keepme/keepme-routing.module.ts","./src/app/keepme/keepme.module.ts","./src/app/keepme/keepme.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 { KeepmePage } from './keepme.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: KeepmePage,\n canActivate: [CanActivateGuard],\n canDeactivate:[CanDeactivateGuard]\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class KeepmePageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { KeepmePageRoutingModule } from './keepme-routing.module';\n\nimport { KeepmePage } from './keepme.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n KeepmePageRoutingModule\n ],\n declarations: [KeepmePage]\n})\nexport class KeepmePageModule {}\n","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { IonInput } from '@ionic/angular';\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-keepme',\n templateUrl: './keepme.page.html',\n styleUrls: ['./keepme.page.scss'],\n})\nexport class KeepmePage implements OnInit {\n@ViewChild('phoneInput', {static: false}) phoneInput: IonInput;\n@ViewChild('phoneVal', {static: false}) phoneVal: IonInput;\n\noptPhone: any = \"\";\ntrsfPhone: any;\n\nconstructor(public router: Router, public apiLink: ApiLinkService,\npublic appService: AppserviceService,\npublic canGuard: CanActivateGuard, public deactGuard: CanDeactivateGuard) { \n\n}\n\n\nngOnInit() {\n}\n\n\nionViewDidEnter(){\nthis.canGuard.permit = 0; \n//visible: by default hidden is false\nif(this.appService.codeId || !this.appService.appInfo.allowRetreat) this.appService.bkButtonHide = true;\n\n\nthis.appService.dblButton = false;\n\n if(this.appService.sentPhone){\n this.optPhone = this.appService.sentPhone;\n this.appService.cxPhNum = 0;\n this.phnChange(); \n\n }else this.appService.cxPhNum = 1; \n\n\n}\n\n\n\n\ncxNumber(){\nthis.optPhone = null;\nthis.trsfPhone = null; \nthis.appService.cxPhNum = 1; \nthis.appService.dblButton = false;\n}\n\n\n\n\nasync phnChange() { \nlet p = this.optPhone;\nif(this.appService.cxPhNum === 1) this.phoneVal.setFocus(); // omit from startup\n\nawait new Promise(resolve => setTimeout(resolve, 20 )); //NEEDED FOR IOS TO NOTICE BACKSPACE\nawait this.appService.phoneInput(p,this.appService.bsp,0).then(e=>{\n\nthis.optPhone = e.phn;\n\n if(e.v === 1){\n this.trsfPhone = e.phn;\n this.appService.cxPhNum = 0;\n } \n else this.phoneInput.setFocus(); // PREVENTS RUN AWAY CURSOR\n \n \n }); \n this.appService.bsp = 0;\n}\n\n\n\nasync backSpc(){\n this.appService.bsp = 1;\n}\n\n\n\n async optIN(){ \nlet addNew: boolean = false;\nlet gotVal: any = null;\n\nthis.appService.dblButton = true;\n\nlet rlink = this.appService.refLink;\nlet rcode = this.appService.refCode;\nlet rphone = this.optPhone;\nlet ent = this.appService.rootId;\nlet cpgn = this.appService.defcpgn;\n\n\nif(this.trsfPhone) rphone = this.trsfPhone; \n\n\n// not referred or invalid link\nif(rcode === \"0000\"){\nrcode = this.appService.appInfo.corpId; \n} \n\n// not referred or broken link\nif(rlink === null){\nrlink = rcode +\"c0n\" + this.optPhone.replace(/[^0-9]*/g, ''); \ncpgn = 0; \naddNew = true;\n} \n\n\nlet data = {\n refCode:rcode,\n phoneNum:rphone,\n refLink:rlink,\n ent:ent,\n cpgn:cpgn,\n contactId:cpgn //no contact list ref\n }; \n\n\nthis.appService.connTimer('',null,false);\nlet idSub = this.apiLink.optIN(data, addNew).subscribe(async p => {\nthis.appService.dataVal = 'Stop ConnTimer' \ngotVal = p; \n\nif(gotVal){\n this.appService.optConf = gotVal[0] +' \\n for mobile #: ' + rphone \n + '\\n to receive updates & announcements.'; // per refCode / reLink\n this.appService.optPhone = rphone;\n \n \n\nawait new Promise(resolve => setTimeout(resolve, 1000)); \nthis.backToWelcome();\nthis.appService.dblButton = false;\n}\n \n\n idSub.unsubscribe(); \n }, err=>{\n console.log(err);\n });\n \n \n}\n\n\n\n\nbackToWelcome(){\nthis.canGuard.permit = 1; \nthis.deactGuard.permit = 1\nthis.router.navigate(['/welcome'],{skipLocationChange: true}); \nthis.appService.bkButtonHide = false;\n}\n\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///"}