1"use strict"; 2(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_item_item_module_ts"],{ 3 4/***/ 6090: 5/*!*************************************!*\ 6 !*** ./src/app/models/item/item.ts ***! 7 \*************************************/ 8/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 9 10__webpack_require__.r(__webpack_exports__); 11/* harmony export */ __webpack_require__.d(__webpack_exports__, { 12/* harmony export */ "Item": () => (/* binding */ Item) 13/* harmony export */ }); 14class Item { 15 constructor(ITM_NAM, ITM_STA, ITM_TYP, ITM_QTY, ITM_AMT, MEA_ID, INV_ID) { 16 this.ITM_ID = 0; 17 this.ITM_NAM = ITM_NAM; 18 this.ITM_STA = ITM_STA; 19 this.ITM_TYP = ITM_TYP; 20 this.ITM_QTY = ITM_QTY; 21 this.ITM_AMT = ITM_AMT; 22 this.MEA_ID = MEA_ID; 23 this.INV_ID = INV_ID; 24 this.INV_NAM = ""; 25 this.INV_NAM1 = ""; 26 this.INV_NAM2 = ""; 27 this.INV_STA = 0; 28 this.CAT_NAM = ""; 29 this.ACC_LNM = ""; 30 this.ITM_DSC = ""; 31 this.ITM_DSE = ""; 32 this.ITM_DSS = ""; 33 this.ITM_CLR = ""; 34 } 35} 36 37 38/***/ }), 39 40/***/ 3368: 41/*!*************************************!*\ 42 !*** ./src/app/models/meal/meal.ts ***! 43 \*************************************/ 44/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 45 46__webpack_require__.r(__webpack_exports__); 47/* harmony export */ __webpack_require__.d(__webpack_exports__, { 48/* harmony export */ "Meal": () => (/* binding */ Meal) 49/* harmony export */ }); 50class Meal { 51 constructor(MEA_NAM, MEA_TYP, MEA_CAT) { 52 this.MEA_ID = 0; 53 this.MEA_NAM = MEA_NAM; 54 this.MEA_STA = 0; 55 this.MEA_TYP = MEA_TYP; 56 this.MEA_QTY = 0; 57 this.MEA_AMT = 0; 58 this.ORD_ID = 0; 59 this.LNE_ID = 0; 60 this.MEA_DAT1 = ""; 61 this.LDT_NAM = ""; 62 this.LNE_NAM = ""; 63 this.LNE_STA = 0; 64 this.LNE_TYP = ""; 65 this.MEA_CAT = MEA_CAT; 66 this.MEA_TST = ""; 67 this.LNE_TST = ""; 68 this.ITEMS = []; 69 } 70 addItem(ITEM) { 71 this.ITEMS.push(ITEM); 72 this.MEA_AMT += ITEM.ITM_QTY * ITEM.ITM_AMT; 73 } 74} 75 76 77/***/ }), 78 79/***/ 5621: 80/*!***************************************************!*\ 81 !*** ./src/app/pages/item/item-routing.module.ts ***! 82 \***************************************************/ 83/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 84 85__webpack_require__.r(__webpack_exports__); 86/* harmony export */ __webpack_require__.d(__webpack_exports__, { 87/* harmony export */ "ItemPageRoutingModule": () => (/* binding */ ItemPageRoutingModule) 88/* harmony export */ }); 89/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929); 90/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184); 91/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816); 92/* harmony import */ var _item_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./item.page */ 513); 93 94 95 96 97const routes = [ 98 { 99 path: '', 100 component: _item_page__WEBPACK_IMPORTED_MODULE_0__.ItemPage 101 } 102]; 103let ItemPageRoutingModule = class ItemPageRoutingModule { 104}; 105ItemPageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([ 106 (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({ 107 imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)], 108 exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule], 109 }) 110], ItemPageRoutingModule); 111 112 113 114/***/ }), 115 116/***/ 5269: 117/*!*******************************************!*\ 118 !*** ./src/app/pages/item/item.module.ts ***! 119 \*******************************************/ 120/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 121 122__webpack_require__.r(__webpack_exports__); 123/* harmony export */ __webpack_require__.d(__webpack_exports__, { 124/* harmony export */ "ItemPageModule": () => (/* binding */ ItemPageModule) 125/* harmony export */ }); 126/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 4929); 127/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 3184); 128/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 6362); 129/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 587); 130/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 3819); 131/* harmony import */ var _item_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./item-routing.module */ 5621); 132/* harmony import */ var _item_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./item.page */ 513); 133 134 135 136 137 138 139 140let ItemPageModule = class ItemPageModule { 141}; 142ItemPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([ 143 (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({ 144 imports: [ 145 _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, 146 _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, 147 _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule, 148 _item_routing_module__WEBPACK_IMPORTED_MODULE_0__.ItemPageRoutingModule 149 ], 150 declarations: [_item_page__WEBPACK_IMPORTED_MODULE_1__.ItemPage] 151 }) 152], ItemPageModule); 153 154 155 156/***/ }), 157 158/***/ 513: 159/*!*****************************************!*\ 160 !*** ./src/app/pages/item/item.page.ts ***! 161 \*****************************************/ 162/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 163 164__webpack_require__.r(__webpack_exports__); 165/* harmony export */ __webpack_require__.d(__webpack_exports__, { 166/* harmony export */ "ItemPage": () => (/* binding */ ItemPage) 167/* harmony export */ }); 168/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tslib */ 4929); 169/* harmony import */ var _item_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./item.page.html?ngResource */ 3697); 170/* harmony import */ var _item_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./item.page.scss?ngResource */ 7771); 171/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 3184); 172/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 2816); 173/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ionic/angular */ 3819); 174/* harmony import */ var _services_category_category_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/category/category.service */ 249); 175/* harmony import */ var _services_account_account_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/account/account.service */ 4602); 176/* harmony import */ var _services_order_order_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../services/order/order.service */ 4081); 177/* harmony import */ var _models_meal_meal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/meal/meal */ 3368); 178/* harmony import */ var _models_item_item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/item/item */ 6090); 179 180 181 182 183 184 185 186 187 188 189 190let ItemPage = class ItemPage { 191 constructor(activatedRoute, router, navCtrl, alertCtrl, toastCtrl, categoryservice, accountservice, orderservice) { 192 this.activatedRoute = activatedRoute; 193 this.router = router; 194 this.navCtrl = navCtrl; 195 this.alertCtrl = alertCtrl; 196 this.toastCtrl = toastCtrl; 197 this.categoryservice = categoryservice; 198 this.accountservice = accountservice; 199 this.orderservice = orderservice; 200 this.orderType = ''; 201 this.name = ''; 202 this.instructions = ''; 203 this.price = 0; 204 } 205 ngOnInit() { 206 this.activatedRoute.queryParams.subscribe(params => { 207 if (this.router.getCurrentNavigation().extras.state) { 208 this.meal = this.router.getCurrentNavigation().extras.state.meal; 209 this.orderType = this.router.getCurrentNavigation().extras.state.type; 210 } 211 }); 212 if (this.meal) { 213 this.orderType = this.meal.MEA_CAT; 214 this.name = this.meal.MEA_NAM; 215 this.instructions = this.meal.MEA_TYP; 216 } 217 else { 218 if (this.orderType == 'deli') { 219 this.orderType = 'sandwich'; 220 } 221 else if (this.orderType == 'bar') { 222 this.orderType = 'beer'; 223 } 224 if (this.accountservice.account.ACC_STA > 0 && (this.orderservice.order.MEALS.length == 0 || (this.orderservice.order.MEALS.length == 1 && (this.orderservice.order.MEALS[0].MEA_CAT == 'sandwich' || this.orderservice.order.MEALS[0].MEA_CAT == 'salad' || this.orderservice.order.MEALS[0].MEA_CAT == 'pizza') && this.orderType == 'beer'))) { 225 this.name = this.accountservice.account.ACC_FNM; 226 } 227 else { 228 this.updateName(); 229 } 230 } 231 } 232 ionViewDidEnter() { 233 this.categoryservice.selectCategorys('create').then((categorys) => { 234 for (let category of categorys) { 235 for (let inventory of category.INVENTORY) {
236 inventory.select = { STD: false, LGT: false, HVY: false }; 237 inventory.quantity = 0; 238 if (this.meal) { 239 for (let mealItem of this.meal.ITEMS) { 240 if (mealItem.INV_ID == inventory.INV_ID) { 241 if (mealItem.ITM_TYP == 'Standard') { 242 inventory.select.STD = true; 243 } 244 else if (mealItem.ITM_TYP == 'Light') { 245 inventory.select.LGT = true; 246 } 247 else if (mealItem.ITM_TYP == 'Heavy') { 248 inventory.select.HVY = true; 249 } 250 else if (mealItem.ITM_QTY > 0) { 251 inventory.quantity = mealItem.ITM_QTY; 252 } 253 } 254 } 255 } 256 } 257 } 258 this.categorys = categorys; 259 this.updateCategory(); 260 this.updatePrice(); 261 }); 262 } 263 displayAccount() { 264 if (this.accountservice.account.ACC_STA != 1) { 265 this.alertLogin(); 266 } 267 else { 268 this.alertLogout(); 269 } 270 } 271 alertLogin() { 272 let alert = this.alertCtrl.create({ 273 header: 'LOGIN', 274 inputs: [ 275 { name: 'email', placeholder: 'Email' }, 276 { name: 'password', placeholder: 'Password', type: 'password' } 277 ], 278 buttons: [ 279 { text: 'Login', handler: data => { if (data.email.length == 0 || data.password.length == 0) 280 return false; this.accountLogin(data.email, data.password); } }, 281 { text: 'Cancel', handler: () => { } } 282 ] 283 }); 284 alert.then((alert) => { alert.present(); }); 285 } 286 accountLogin(email, password) { 287 this.accountservice.account.ACC_NAM = email; 288 this.accountservice.account.ACC_PWD = password; 289 this.accountservice.login().then((message) => { 290 if (message == 'SUCCESS') { 291 this.toastCtrl.create({ message: 'Login Successful', duration: 3000, position: 'bottom' }).then((toast) => { toast.present(); }); 292 } 293 else { 294 this.accountservice.account.ACC_NAM = ""; 295 this.accountservice.account.ACC_PWD = ""; 296 this.toastCtrl.create({ message: message, duration: 3000, position: 'bottom' }).then((toast) => { toast.present(); }); 297 } 298 }); 299 } 300 alertLogout() { 301 let alert = this.alertCtrl.create({ 302 header: 'LOGOUT', 303 buttons: [ 304 { text: 'Logout', handler: () => { this.accountLogout(); } }, 305 { text: 'Cancel', handler: () => { } } 306 ] 307 }); 308 alert.then((alert) => { alert.present(); }); 309 } 310 accountLogout() { 311 this.accountservice.logout(); 312 } 313 updateName() { 314 let alert = this.alertCtrl.create({ 315 header: 'NAME', 316 backdropDismiss: false, 317 inputs: [ 318 { name: 'name', placeholder: 'Who is this meal for?' } 319 ], 320 buttons: [ 321 { text: 'Continue', handler: data => { if (data.name.length == 0) 322 return false; this.name = data.name; } } 323 ] 324 }); 325 alert.then((alert) => { alert.present(); }); 326 } 327 updateCategory() { 328 if (this.orderType === 'sandwich' && this.categorys[2].CAT_NAM != 'MEAT') { 329 this.categorys.splice(7, 0, this.categorys[2]); 330 this.categorys.splice(2, 1); 331 } 332 else if (this.orderType === 'salad' && this.categorys[2].CAT_NAM != 'DRESSING') { 333 this.categorys.splice(2, 0, this.categorys[6]);
334 this.categorys.splice(7, 1); 335 } 336 } 337 updatePrice() { 338 let temp = 0; 339 for (let category of this.categorys) { 340 if (this.selectSection(category.CAT_NAM)) { 341 for (let inventory of category.INVENTORY) { 342 if (inventory.select.STD) { 343 temp += inventory.INV_AMTSTD; 344 } 345 else if (inventory.select.LGT) { 346 temp += inventory.INV_AMTLGT; 347 } 348 else if (inventory.select.HVY) { 349 temp += inventory.INV_AMTHVY; 350 } 351 else if (inventory.quantity > 0) { 352 temp += inventory.INV_AMTSTD * inventory.quantity; 353 } 354 } 355 } 356 } 357 this.price = temp; 358 } 359 updateItemSelect(category, inventory, selector) { 360 let select = inventory.select; 361 if (!select[selector]) { 362 this.updatePrice(); 363 return; 364 } 365 if (category.CAT_NAM === 'PIZZA $16' || category.CAT_NAM === 'SALAD $5' || category.CAT_NAM === 'BREAD $5' || category.CAT_NAM === 'BEER' || category.CAT_NAM === 'WHITE' || category.CAT_NAM === 'RED' || category.CAT_NAM === 'COCKTAILS') { 366 for (let itemB of category.INVENTORY) { 367 if (itemB.INV_NAM == inventory.INV_NAM) 368 this.updateRadio(itemB.select, selector); 369 else 370 this.deleteRadio(itemB.select); 371 } 372 } 373 else if (category.CAT_NAM === 'LIQUOR') { 374 for (let itemB of category.INVENTORY) { 375 if (itemB.INV_NAM == inventory.INV_NAM) 376 this.updateRadio(itemB.select, selector); 377 else if ((itemB.INV_AMTLGT != 0 && inventory.INV_AMTLGT != 0) || (itemB.INV_AMTLGT == 0 && inventory.INV_AMTLGT == 0)) { 378 this.deleteRadio(itemB.select); 379 } 380 } 381 } 382 else { 383 this.updateRadio(select, selector); 384 } 385 this.updatePrice(); 386 } 387 updateRadio(select, selector) { 388 for (let i of Object.keys(select)) { 389 if (select[selector] == true && i !== selector) { 390 select[i] = false; 391 } 392 } 393 } 394 deleteRadio(select) { 395 for (let key of Object.keys(select)) 396 select[key] = false; 397 } 398 updateItemQuantity(category, inventory, amt) { 399 for (let itemB of category.INVENTORY) { 400 if (itemB.INV_NAM == inventory.INV_NAM && inventory.quantity + amt >= 0) 401 inventory.quantity += amt; 402 } 403 this.updatePrice(); 404 } 405 selectArea(name) { 406 if (name == 'deli') { 407 return this.orderType == 'sandwich' || this.orderType == 'salad' || this.orderType == 'pizza'; 408 } 409 else if (name = 'bar') { 410 return this.orderType == 'beer' || this.orderType == 'white' || this.orderType == 'red' || this.orderType == 'liquor' || this.orderType == 'cocktails'; 411 } 412 } 413 selectSection(name) { 414 if (this.orderType == 'sandwich') { 415 return name == 'BREAD $5' || name == 'MEAT' || name == 'CHEESE' || name == 'VEGGIES' || name == 'SAUCE' || name == 'DRESSING' || name == 'DRINKS $2.50' || name == 'CHIPS $2.50' || name == 'SIDES $1.50'; 416 } 417 else if (this.orderType == 'salad') { 418 return name == 'SALAD $5' || name == 'MEAT' || name == 'CHEESE' || name == 'VEGGIES' || name == 'SAUCE' || name == 'DRESSING' || name == 'DRINKS $2.50' || name == 'CHIPS $2.50' || name == 'SIDES $1.50'; 419 } 420 else if (this.orderType == 'pizza') { 421 return name == 'PIZZA $16'; 422 } 423 else if (this.orderType == 'beer') { 424 return name == 'BEER'; 425 } 426 else if (this.orderType == 'white') { 427 return name == 'WHITE'; 428 } 429 else if (this.orderType == 'red') { 430 return name == 'RED'; 431 } 432 else if (this.orderType == 'liquor') { 433 return name == 'LIQUOR'; 434 } 435 else if (this.orderType == 'cocktails') { 436 return name == 'COCKTAILS'; 437 } 438 } 439 selectItem(category, type, number, quantity, name, name1, name2) { 440 if (category == "MEAT" || category == "CHEESE") { 441 return quantity + " " + name1; 442 } 443 if ((category == "VEGGIES" || category == "SAUCE") && (type == "Light" || type == "Heavy")) { 444 return quantity + " " + name; 445 } 446 else if ((category == "DRINKS $2.50" || category == "CHIPS $2.50" || category == "SIDES $1.50") && (number > 1)) { 447 return number + " " + name; 448 } 449 else if (category == "BEER" || category == "WHITE" || category == "RED" || category == "LIQUOR") { 450 return quantity + " " + name1 + " " + name2 + " " + name; 451 } 452 else if (category == "COCKTAILS") { 453 return name + " " + name1; 454 } 455 else { 456 return name1; 457 } 458 } 459 selectValid() { 460 return this.name === '' || this.price <= 0; 461 } 462 insertItem() { 463 let meal = new _models_meal_meal__WEBPACK_IMPORTED_MODULE_5__.Meal(this.name, this.instructions, this.orderType); 464 if (!this.selectValid()) { 465 for (let category of this.categorys) { 466 if (this.selectSection(category.CAT_NAM)) { 467 for (let inventory of category.INVENTORY) { 468 if (inventory.select.STD || inventory.select.LGT || inventory.select.HVY || inventory.quantity > 0) { 469 if (inventory.select.STD) { 470 let mealitem = new _models_item_item__WEBPACK_IMPORTED_MODULE_6__.Item('ITM', 0, 'Standard', 1, inventory.INV_AMTSTD, 0, inventory.INV_ID); 471 mealitem.CAT_NAM = category.CAT_NAM; 472 mealitem.ITM_DSE = this.selectItem(category.CAT_NAM, 'Standard', 1, inventory.INV_QTYSTD, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 473 mealitem.ITM_DSS = this.selectItem(category.CAT_NAM, 'Standard', 1, inventory.INV_QTYSTD, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 474 meal.addItem(mealitem); 475 } 476 else if (inventory.select.LGT) { 477 let mealitem = new _models_item_item__WEBPACK_IMPORTED_MODULE_6__.Item('ITM', 0, 'Light', 1, inventory.INV_AMTLGT, 0, inventory.INV_ID); 478 mealitem.CAT_NAM = category.CAT_NAM; 479 mealitem.ITM_DSE = this.selectItem(category.CAT_NAM, 'Light', 1, inventory.INV_QTYLGT, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 480 mealitem.ITM_DSS = this.selectItem(category.CAT_NAM, 'Light', 1, inventory.INV_QTYLGT, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 481 meal.addItem(mealitem); 482 } 483 else if (inventory.select.HVY) { 484 let mealitem = new _models_item_item__WEBPACK_IMPORTED_MODULE_6__.Item('ITM', 0, 'Heavy', 1, inventory.INV_AMTHVY, 0, inventory.INV_ID); 485 mealitem.CAT_NAM = category.CAT_NAM; 486 mealitem.ITM_DSE = this.selectItem(category.CAT_NAM, 'Heavy', 1, inventory.INV_QTYHVY, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 487 mealitem.ITM_DSS = this.selectItem(category.CAT_NAM, 'Heavy', 1, inventory.INV_QTYHVY, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 488 meal.addItem(mealitem); 489 } 490 else if (inventory.quantity > 0) { 491 let mealitem = new _models_item_item__WEBPACK_IMPORTED_MODULE_6__.Item('ITM', 0, 'Quantity', inventory.quantity, inventory.INV_AMTSTD, 0, inventory.INV_ID); 492 mealitem.CAT_NAM = category.CAT_NAM; 493 mealitem.ITM_DSE = this.selectItem(category.CAT_NAM, 'Quantity', inventory.quantity, inventory.INV_QTYSTD, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 494 mealitem.ITM_DSS = this.selectItem(category.CAT_NAM, 'Quantity', inventory.quantity, inventory.INV_QTYSTD, inventory.INV_NAM, inventory.INV_NAM1, inventory.INV_NAM2); 495 meal.addItem(mealitem); 496 } 497 } 498 } 499 } 500 } 501 } 502 this.orderservice.order.addMeal(meal); 503 this.navCtrl.pop();
504 } 505}; 506ItemPage.ctorParameters = () => [ 507 { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__.ActivatedRoute }, 508 { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__.Router }, 509 { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.NavController }, 510 { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.AlertController }, 511 { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_8__.ToastController }, 512 { type: _services_category_category_service__WEBPACK_IMPORTED_MODULE_2__.CategoryService }, 513 { type: _services_account_account_service__WEBPACK_IMPORTED_MODULE_3__.AccountService }, 514 { type: _services_order_order_service__WEBPACK_IMPORTED_MODULE_4__.OrderService } 515]; 516ItemPage = (0,tslib__WEBPACK_IMPORTED_MODULE_9__.__decorate)([ 517 (0,_angular_core__WEBPACK_IMPORTED_MODULE_10__.Component)({ 518 selector: 'app-item', 519 template: _item_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__, 520 styles: [_item_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__] 521 }) 522], ItemPage); 523 524 525 526/***/ }), 527 528/***/ 7771: 529/*!******************************************************!*\ 530 !*** ./src/app/pages/item/item.page.scss?ngResource ***! 531 \******************************************************/ 532/***/ ((module) => { 533 534module.exports = "ion-toolbar {\n --background: #5e88bf;\n --color: white;\n --min-height: 70px;\n}\n\nion-grid {\n max-width: 600px;\n}\n\nion-segment {\n --background: #5e88bf;\n}\n\nion-segment-button {\n --color: white;\n --color-hover: black;\n --color-checked: black;\n}\n\nion-checkbox {\n --border-color: lightgrey;\n --background-checked: #5e88bf;\n}\n\nion-icon {\n --color: #5e88bf;\n}\n\nion-footer ion-button {\n --background: #5e88bf;\n --color: white;\n}\n\n.toolbar-text {\n font-size: xx-large;\n font-weight: bold;\n color: white;\n}\n\n.section-area {\n min-height: 50px;\n background-color: #5e88bf;\n color: white;\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.section-text {\n font-size: small;\n padding: 1px;\n}\n\n.item-area {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n border-bottom-color: lightgray;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIml0ZW0ucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQUE7RUFDQSxjQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxxQkFBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtFQUNBLG9CQUFBO0VBQ0Esc0JBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsNkJBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBR0U7RUFDRSxxQkFBQTtFQUNBLGNBQUE7QUFBSjs7QUFJQTtFQUNFLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0FBREY7O0FBSUE7RUFDRSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EseUJBQUE7QUFERjs7QUFJQTtFQUNFLGdCQUFBO0VBQ0EsWUFBQTtBQURGOztBQUlBO0VBQ0UsMEJBQUE7RUFDQSx3QkFBQTtFQUNBLDhCQUFBO0FBREYiLCJmaWxlIjoiaXRlbS5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tdG9vbGJhciB7XHJcbiAgLS1iYWNrZ3JvdW5kOiAjNWU4OGJmO1xyXG4gIC0tY29sb3I6IHdoaXRlO1xyXG4gIC0tbWluLWhlaWdodDogNzBweDtcclxufVxyXG5cclxuaW9uLWdyaWQge1xyXG4gIG1heC13aWR0aDogNjAwcHg7XHJcbn1cclxuXHJcbmlvbi1zZWdtZW50IHtcclxuICAtLWJhY2tncm91bmQ6ICM1ZTg4YmY7XHJcbn1cclxuXHJcbmlvbi1zZWdtZW50LWJ1dHRvbiB7XHJcbiAgLS1jb2xvcjogd2hpdGU7XHJcbiAgLS1jb2xvci1ob3ZlcjogYmxhY2s7XHJcbiAgLS1jb2xvci1jaGVja2VkOiBibGFjaztcclxufVxyXG5cclxuaW9uLWNoZWNrYm94IHtcclxuICAtLWJvcmRlci1jb2xvcjogbGlnaHRncmV5O1xyXG4gIC0tYmFja2dyb3VuZC1jaGVja2VkOiAjNWU4OGJmO1xyXG59XHJcblxyXG5pb24taWNvbiB7XHJcbiAgLS1jb2xvcjogIzVlODhiZjtcclxufVxyXG5cclxuaW9uLWZvb3RlciB7XHJcbiAgaW9uLWJ1dHRvbiB7XHJcbiAgICAtLWJhY2tncm91bmQ6ICM1ZTg4YmY7XHJcbiAgICAtLWNvbG9yOiB3aGl0ZTtcclxuICB9XHJcbn1cclxuXHJcbi50b29sYmFyLXRleHQge1xyXG4gIGZvbnQtc2l6ZTogeHgtbGFyZ2U7XHJcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG59XHJcblxyXG4uc2VjdGlvbi1hcmVhIHtcclxuICBtaW4taGVpZ2h0OiA1MHB4O1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICM1ZTg4YmY7XHJcbiAgY29sb3I6IHdoaXRlO1xyXG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xyXG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XHJcbn1cclxuXHJcbi5zZWN0aW9uLXRleHQge1xyXG4gIGZvbnQtc2l6ZTogc21hbGw7XHJcbiAgcGFkZGluZzogMXB4O1xyXG59XHJcblxyXG4uaXRlbS1hcmVhIHtcclxuICBib3JkZXItYm90dG9tLXN0eWxlOiBzb2xpZDtcclxuICBib3JkZXItYm90dG9tLXdpZHR
534oOiAxcHg7XHJcbiAgYm9yZGVyLWJvdHRvbS1jb2xvcjogbGlnaHRncmF5O1xyXG59XHJcbiJdfQ== */"; 535 536/***/ }), 537 538/***/ 3697: 539/*!******************************************************!*\ 540 !*** ./src/app/pages/item/item.page.html?ngResource ***! 541 \******************************************************/ 542/***/ ((module) => { 543 544module.exports = "<ion-header>\r\n <ion-toolbar>\r\n <ion-grid>\r\n <ion-row class=\"ion-align-items-center\">\r\n <ion-col size=\"4\" offset=\"4\" class=\"ion-text-center toolbar-text\">\r\n <ion-label>TRU</ion-label>\r\n </ion-col>\r\n <ion-col size=\"4\" class=\"ion-text-end\" (click)='displayAccount()'>\r\n <ion-icon name='person'></ion-icon>\r\n <ion-label *ngIf='accountservice.account.ACC_STA == 1'> {{ accountservice.account.ACC_FNM }}</ion-label>\r\n </ion-col>\r\n </ion-row>\r\n </ion-grid>\r\n </ion-toolbar>\r\n</ion-header>\r\n\r\n<ion-content>\r\n <ion-grid>\r\n <ng-container *ngIf=\"selectArea('deli')\">\r\n <ion-row>\r\n <ion-col>\r\n <ion-segment [(ngModel)]=\"orderType\" (click)=\"updateCategory()\">\r\n <ion-segment-button value=\"sandwich\">\r\n <ion-label>Sandwich</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"salad\">\r\n <ion-label>Salad</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"pizza\">\r\n <ion-label>Pizza</ion-label>\r\n </ion-segment-button>\r\n </ion-segment>\r\n </ion-col>\r\n </ion-row>\r\n <ng-container *ngFor=\"let section of categorys\">\r\n <ng-container *ngIf=\"selectSection(section.CAT_NAM)\">\r\n <ion-row class=\"ion-align-items-center section-area\">\r\n <ion-col size=\"6\">\r\n <ion-label>{{ section.CAT_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYSTD'>\r\n <div>{{ section.CAT_QTYSTD }}</div>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYSTD'>\r\n <div>{{ section.CAT_AMTSTD }}</div>\r\n </ion-col>\r\n </ion-row>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYLGT'>\r\n <div>{{ section.CAT_QTYLGT }}</div>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYLGT'>\r\n <div>{{ section.CAT_AMTLGT }}</div>\r\n </ion-col>\r\n </ion-row>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYHVY'>\r\n <div>{{ section.CAT_QTYHVY }}</div>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col class=\"section-text\" *ngIf='section.CAT_QTYHVY'>\r\n <div>{{ section.CAT_AMTHVY }}</div>\r\n </ion-col>\r\n </ion-row>\r\n </ion-col>\r\n </ion-row>\r\n <ng-container *ngFor=\"let item of section.INVENTORY; let i = index\">\r\n <ion-row *ngIf=\"item.INV_TYP != 'Quantity'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"6\">\r\n <ion-label>{{ item.INV_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\" *ngIf=\"section.CAT_TYP === 'Standard' || section.CAT_TYP === 'StandardLight' || section.CAT_TYP === 'StandardLightHeavy'\">\r\n <ion-checkbox [(ngModel)]=\"item.select.STD\" (ionChange)=\"updateItemSelect(section, item, 'STD')\"></ion-checkbox>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\" *ngIf=\"section.CAT_TYP === 'StandardLight' || section.CAT_TYP === 'StandardLightHeavy'\">\r\n <ion-checkbox [(ngModel)]=\"item.select.LGT\" (ionChange)=\"updateItemSelect(section, item, 'LGT')\"></ion-checkbox>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\" *ngIf=\"section.CAT_TYP === 'StandardLightHeavy'\">\r\n <ion-checkbox [(ngModel)]=\"item.select.HVY\" (ionChange)=\"updateItemSelect(section, item, 'HVY')\"></ion-checkbox>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row *ngIf=\"item.INV_TYP == 'Quantity'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"6\">\r\n <ion-label>{{ item.INV_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n <ion-button fill=\"clear\" size=\"small\" (click)=\"updateItemQuantity(section, item, -1)\">\r\n <ion-icon name=\"remove-circle\" size=\"large\"></ion-icon>\r\n </ion-button>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n {{ item.quantity }}\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center\">\r\n <ion-button fill=\"clear\" size=\"small\" (click)=\"updateItemQuantity(section, item, 1)\">\r\n <ion-icon name=\"add-circle\" size=\"large\"></ion-icon>\r\n </ion-button>\r\n </ion-col>\r\n </ion-row>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ion-row>\r\n <ion-col>\r\n <ion-item>\r\n <ion-icon name=\"pencil\" slot=\"start\"></ion-icon>\r\n <ion-textarea maxlength=\"100\" placeholder=\"Have any special instructions?\" [(ngModel)]=\"instructions\"></ion-textarea>\r\n </ion-item>\r\n </ion-col>\r\n </ion-row>\r\n </ng-container>\r\n <ng-container *ngIf=\"selectArea('bar')\" [ngSwitch]=\"orderType\">\r\n <ion-row>\r\n <ion-col>\r\n <ion-segment [(ngModel)]=\"orderType\">\r\n <ion-segment-button value=\"beer\">\r\n <ion-label>Beer</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"white\">\r\n <ion-label>White</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"red\">\r\n <ion-label>Red</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"liquor\">\r\n <ion-label>Liquor</ion-label>\r\n </ion-segment-button>\r\n <ion-segment-button value=\"cocktails\">\r\n <ion-label>Cocktails</ion-label>\r\n </ion-segment-button>\r\n </ion-segment>\r\n </ion-col>\r\n </ion-row>\r\n <ng-container *ngFor=\"let section of categorys\">\r\n <ng-container *ngIf=\"selectSection(section.CAT_NAM)\">\r\n <ion-row class=\"ion-align-items-center section-area\">\r\n <ion-col size=\"7\">\r\n <ion-label>{{ section.CAT_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-center section-text\" *ngIf='section.CAT_QTYLGT'>\r\n {{ section.CAT_QTYLGT }}\r\n </ion-col>\r\n <ion-col size=\"2\" offset=\"1\" class=\"ion-text-center section-text\" *ngIf='section.CAT_QTYHVY'>\r\n {{ section.CAT_QTYHVY }}\r\n </ion-col>\r\n </ion-row>\r\n <ng-container *ngFor=\"let item of section.INVENTORY; let i = index\">\r\n <ion-row *ngIf=\"section.CAT_NAM == 'BEER'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"7\">\r\n <ion-label>{{ item.INV_NAM1 }} {{ item.INV_NAM2 }} {{ item.INV_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\">\r\n <ion-label>${{ item.INV_AMTHVY }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.HVY\" (ionChange)=\"updateItemSelect(section, item, 'HVY')\"></ion-checkbox>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-end\">\r\n <ion-label>${{ item.INV_AMTLGT }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.LGT\" (ionChange)=\"updateItemSelect(section, item, 'LGT')\"></ion-checkbox>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row *ngIf=\"section.CAT_NAM == 'WHITE' || section.CAT_NAM == 'RED'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"7\">\r\n <ion-label>{{ item.INV_NAM1 }} {{ item.INV_NAM2 }} {{ item.INV_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\">\r\n <ion-label>${{ item.INV_AMTLGT }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.LGT\" (ionChange)=\"updateItemSelect(section, item, 'LGT')\"></ion-checkbox>\r\n </ion-col>\r\n <ion-col size=\"2\" class=\"ion-text-end\">\r\n <ion-label>${{ item.INV_AMTHVY }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.HVY\" (ionChange)=\"updateItemSelect(section, item, 'HVY')\"></ion-checkbox>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row *ngIf=\"section.CAT_NAM == 'LIQUOR'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"7\">\r\n <ion-label>{{ item.INV_NAM }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\" *ngIf=\"item.INV_AMTLGT != 0\">\r\n <ion-label>${{ item.INV_AMTLGT }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\" *ngIf=\"item.INV_AMTLGT == 0\">\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.LGT\" (ionChange)=\"updateItemSelect(section, item, 'LGT')\"></ion-checkbox>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row *ngIf=\"section.CAT_NAM == 'COCKTAILS'\" class=\"ion-align-items-center\" [class.item-area]=\"i != section.INVENTORY.length-1\">\r\n <ion-col size=\"7\">\r\n <ion-label>{{ item.INV_NAM }} {{ item.INV_NAM1 }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\" *ngIf=\"item.INV_AMTLGT != 0\">\r\n <ion-label>${{ item.INV_AMTLGT }}</ion-label>\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-end\" *ngIf=\"item.INV_AMTLGT == 0\">\r\n </ion-col>\r\n <ion-col size=\"1\" class=\"ion-text-center\">\r\n <ion-checkbox [(ngModel)]=\"item.select.LGT\" (ionChange)=\"updateItemSelect(section, item, 'LGT')\"></ion-checkbox>\r\n </ion-col>\r\n </ion-row>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </ion-grid>\r\n</ion-content>\r\n\r\n<ion-footer>\r\n <ion-grid>\r\n <ion-row>\r\n <ion-col>\r\n <ion-button expand=\"block\" [disabled]=\"selectValid()\" (click)=\"insertItem()\">ADD TO MY ORDER ${{ this.price.toFixed(2) }}</ion-button>\r\n </ion-col>\r\n </ion-row>\r\n </ion-grid>\r\n</ion-footer>\r\n"; 545 546/***/ }) 547 548}]); 549//# sourceMappingURL=src_app_pages_item_item_module_ts.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.