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AAM,GAAG,EAAE,CAAC;gBAC5B,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,CAAC,CAAC;gBAC9B,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;gBAC3B,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;gBAG7B,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAE,CAAC,CAAC;gBACxD,IAAI,CAAC,UAAU,EAAE,CAAC;gBAClB,IAAI,CAAC,MAAM,GAAG,WAAW,CAAC;gBAC1B,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,KAAK,CAAC;aAEpC;QAGD,CAAC;KAAA;IAID,QAAQ;QACR,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,UAAU;QACV,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAChC,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC7B,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3B,CAAC;CAIA;;YAnEQ,qFAAiB;YAFjB,mDAAM;YACN,8EAAkB;;AAWd,QAAQ;IALpB,wDAAS,CAAC;QACT,QAAQ,EAAE,UAAU;QACpB,iEAA+B;;KAEhC,CAAC;GACW,QAAQ,CAyDpB;AAzDoB","sources":["./src/app/cart/cart-routing.module.ts","./src/app/cart/cart.module.ts","./src/app/cart/cart.page.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { CanDeactivateGuard } from '../_guard/canDe-app-guard.service';\n\nimport { CartPage } from './cart.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: CartPage,\n canDeactivate:[CanDeactivateGuard]\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class CartPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { CartPageRoutingModule } from './cart-routing.module';\n\nimport { CartPage } from './cart.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n CartPageRoutingModule\n ],\n declarations: [CartPage]\n})\nexport class CartPageModule {}\n","import { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { CanDeactivateGuard } from '../_guard/canDe-app-guard.service';\nimport { AppserviceService } from '../_service/appservice/appservice.service';\n\n\n\n\n@Component({\n selector: 'app-cart',\n templateUrl: './cart.page.html',\n styleUrls: ['./cart.page.scss'],\n})\nexport class CartPage implements OnInit {\n\nchkBtn: string = \"Check Out\";\nvalcpgn: boolean;\n\n constructor( public appService: AppserviceService,\n public router: Router, public deactGuard: CanDeactivateGuard\n ) { }\n\n\n\n\nngOnInit() {\n}\n\n\n\n\n\nasync ordered(){\nthis.appService.hiddenButton = true;\nif(this.appService.cartCt > 0){\nthis.cartLock();\nthis.chkBtn = \"Processing\"; \n\nthis.appService.inCart = [];\nthis.appService.cartTotal = 0;\nthis.appService.cartCt = 0;\nthis.appService.didOrder = 1;\n\n\nawait new Promise(resolve => setTimeout(resolve, 400 )); \nthis.cartUnLock(); \nthis.chkBtn = \"Check Out\"; \nthis.appService.hiddenButton = false;\n\n}\n\n\n} \n\n\n\ncartLock(){ \nthis.deactGuard.cartLock = true; \nthis.appService.viewTabs = false;\n}\n\ncartUnLock(){\nthis.deactGuard.cartLock = false; \nthis.appService.viewTabs = true;\nthis.appService.didOrder = 1; \nthis.appService.cartCt = 0; \n}\n\n\n\n}\n"],"names":[],"sourceRoot":"webpack:///"}