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ACD,CAAC;KAAA;CAGA;;YA9HQ,qFAAiB;;;uBASvB,oDAAS,SAAC,UAAU,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC;;AAD3B,SAAS;IALrB,wDAAS,CAAC;QACX,QAAQ,EAAE,WAAW;QACrB,kEAAgC;;KAE/B,CAAC;GACW,SAAS,CAsHrB;AAtHqB","sources":["./src/app/lanes/lanes-routing.module.ts","./src/app/lanes/lanes.module.ts","./src/app/lanes/lanes.page.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { LanesPage } from './lanes.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: LanesPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class LanesPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { LanesPageRoutingModule } from './lanes-routing.module';\n\nimport { LanesPage } from './lanes.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n LanesPageRoutingModule\n ],\n declarations: [LanesPage]\n})\nexport class LanesPageModule {}\n","import { Component, OnInit, ViewChild } from '@angular/core';\nimport { AppserviceService } from '../_service/appservice/appservice.service';\nimport { IonDatetime } from '@ionic/angular';\n\n@Component({\nselector: 'app-lanes',\ntemplateUrl: './lanes.page.html',\nstyleUrls: ['./lanes.page.scss'],\n})\nexport class LanesPage implements OnInit {\n @ViewChild('datetime', {static: false}) datetime: IonDatetime;\n \n\nsDate: string;\nshowCal: boolean = false;\nitemAge: number = 30;\nsCt: number;\n\nconstructor(public appService: AppserviceService) { }\n\n\n\n\nngOnInit() {\n}\n\n/*\nionViewDidLeave(){\nthis.appService.getLanes();\n}\n*/\n\n\n\n\nasync laneEdit(lanes){\n let p: any = await this.appService.appConfirm(\"Default Lanes\",\"Options\",\n \"Save +Lane\",\"Delete\",\"Cancel\");\n\n if(p === 1){\n this.appService.laneMgr(lanes,'edit');\n } else if(p === 2) this.appService.laneMgr(lanes,'del');\n // else console.log(\"Cancel\");\n \n}\n\n\n\n\n\nasync dSelect(c: any, i: number){\nif(!c || c.length === 10)return; //ISO Confirms selection --> 10 equals null selected\n\nlet m = c.slice(c.indexOf('T'),c.indexOf('T')+9);\nlet nm\nnm = c.replace(m,\"T00:00:00\");\n\n\nlet d = new Date(nm).toISOString();\n\nif(this.sDate === 'frs'){\nthis.appService.userDefs[i].frs = d; //ISO Confirms selection\nthis.appService.userDefs[i].tos = \"\";\n\nthis.datetime.min = this.appService.sqlReadyDate(new Date(nm).toLocaleDateString());\nthis.datetime.value = \"\";\n\nawait new Promise(resolve => setTimeout(resolve, 100 ));\nthis.togCal('tos','');\nreturn;\n} \n\n\nthis.appService.userDefs[i].tos = d; //ISO Confirms selection\nthis.clrCal('','');\n}\n\n\n\n\n\n\n\n\n\n\nasync clrCal(v,i){\nthis.showCal = false;\nthis.datetime.min = \"2023-03-01\"; // will be this.appService.todaySQL [cant set null dynamically]\nthis.datetime.value = \"\"; // full clear to support new min\nthis.datetime.reset();\n\n\n\nif(v !== 'blur'){\nthis.sDate = \"\"; \n} \n\n\nif(v === 'blur'){\nif(!this.appService.userDefs[i].frs || ! this.appService.userDefs[i].tos){v = 's'} \nthis.sDate = \"\"; \n} \n\n\nif(!v.includes('s')) return; //frs || tos\nthis.appService.userDefs[i].frs = \"\";\nthis.appService.userDefs[i].tos = \"\";\n}\n\n\n\n\n\n\n\nasync togCal(x,i){\nif(x === 'frs') this.sCt = i; \n\n\nthis.sDate = x; \nif(!this.showCal){\nthis.showCal = true;\n} \n}\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///"}