webpackJsonp([10],{

/***/ 1507:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClassTwoPageModule", function() { return ClassTwoPageModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__class_two__ = __webpack_require__(1841);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_components_module__ = __webpack_require__(991);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(6);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};





var ClassTwoPageModule = /** @class */ (function () {
    function ClassTwoPageModule() {
    }
    ClassTwoPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__class_two__["a" /* ClassTwoPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__["j" /* CoreModule */],
                __WEBPACK_IMPORTED_MODULE_3__components_components_module__["a" /* ComponentsModule */],
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__class_two__["a" /* ClassTwoPage */]),
            ],
        })
    ], ClassTwoPageModule);
    return ClassTwoPageModule;
}());

//# sourceMappingURL=class-two.module.js.map

/***/ }),

/***/ 1643:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Issue; });
/**
 * Created by Paramee Gunethilake on 6/13/2018.
 */
var Issue = /** @class */ (function () {
    function Issue(obj) {
        this.category_id = obj && obj.category_id;
        this.group_id = obj && obj.category_id;
        this.name = obj && obj.name;
        this.id = obj && obj.id;
        this._id = obj && obj._id;
        this.status = false;
    }
    return Issue;
}());

//# sourceMappingURL=issue.model.js.map

/***/ }),

/***/ 1841:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ClassTwoPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ngx_logger__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__class_two_template__ = __webpack_require__(1842);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_navigation_manager__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__class_two_selected__ = __webpack_require__(997);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__issue_model__ = __webpack_require__(1643);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__models_btnModel__ = __webpack_require__(56);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__providers_shared_data_service_shared_data_service__ = __webpack_require__(46);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_masterdata_service_masterdata_service__ = __webpack_require__(207);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__providers_dateFormate_dateFormates__ = __webpack_require__(209);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};











var ClassTwoPage = /** @class */ (function () {
    function ClassTwoPage(logger, navParams, navigationProvider, toastCtrl, modalCtrl, sharedDataService, appMsDtPrv, _crntDate) {
        this.logger = logger;
        this.navParams = navParams;
        this.navigationProvider = navigationProvider;
        this.toastCtrl = toastCtrl;
        this.modalCtrl = modalCtrl;
        this.sharedDataService = sharedDataService;
        this.appMsDtPrv = appMsDtPrv;
        this._crntDate = _crntDate;
        this.classTwo_all_list = [];
        this.classTwo_selected_list = [];
        this.groups_map_main = {};
        this.groups_map = {};
        this.all_ops_group_list = [];
        this.sub_header = true;
        this.viewType = 'qc';
        this.tools = {
            line: true,
            menu: true,
            shift: true,
            user: true,
        };
        this.currentPageConfig = this.navParams.get('conf');
        this.appMsDtPrv.setMsDtList(this.currentPageConfig.masterDataList);
        this.sub_header = this.currentPageConfig['order_heading'];
        if (this.currentPageConfig['view']) {
            this.viewType = this.currentPageConfig['view'];
        }
        if (this.currentPageConfig['sidebar_view']) {
            this.sidebarView = this.currentPageConfig['sidebar_view'];
        }
        if (!this.sub_header) {
            this.grid_class = 'main-grid_none_header';
        }
        this.data_set = this.navParams.get('data');
        this.previous_data = this.data_set['data'];
        this.data_store_dum = new __WEBPACK_IMPORTED_MODULE_7__models_btnModel__["a" /* ClassificationModel */](this.data_set['model']);
    }
    ClassTwoPage.prototype.ionViewDidEnter = function () {
        this.setupViewModel();
    };
    ClassTwoPage.prototype.setupViewModel = function () {
        var _this = this;
        this.logger.debug('class -two called  2');
        // load page header and footer
        this.currentPageheader = this.currentPageConfig['title'];
        this.currentPagebuttons = this.currentPageConfig['view_controles'];
        // check whether next page available
        if (this.currentPageConfig['next_view_ref'] !== 'EXIT') {
            this.nextPage = this.currentPageConfig['next_view_ref'];
        }
        else {
            this.nextPage = 'page_order_end';
        }
        // generate page body data
        this.classTwo_all_list = [];
        try {
            var response = null;
            // return this.cacheSvc.get(CC_MOD_KEY, Crnt_M_D, url).then(respn => {
            var respn = this.appMsDtPrv.getCrntMsDtList(this.currentPageConfig['view_data'], this.data_store_dum.list_key);
            if (respn) {
                this.groups_map = [];
                this.logger.trace('response for grading list', respn, this.currentPageConfig['view_data']);
                var resdata = respn['data'];
                var listName = respn['listname'];
                response = resdata;
                if (this.data_store_dum.child_input_categories.length === 0) {
                    this.data_store_dum.setChildMasterCategories(response);
                    this.data_store_dum.setChildInputCategories(response);
                }
                this.data_store_dum.setListKey(listName);
                // previous data available
                if (this.previous_data instanceof Array) {
                    // previous data available
                    this.logger.debug(this.previous_data[0].result);
                    this.logger.debug(this.previous_data[0].result, 'previous_data');
                    var groups_list_1 = [];
                    this.all_ops_group_list = [];
                    this.previous_data[0].result.forEach(function (prevItem, prevIndex) {
                        var single_op_grops_list = [];
                        if (prevItem.data.group_id.length > 0) {
                            prevItem.data.group_id.forEach(function (groupItem, groupIndex) {
                                single_op_grops_list.push(groupItem);
                                if (groups_list_1.includes(groupItem) === false) {
                                    groups_list_1.push(groupItem);
                                }
                            });
                        }
                        else {
                            single_op_grops_list.push('all');
                            if (groups_list_1.includes('all') === false) {
                                groups_list_1.push('all');
                            }
                        }
                        var single_op_data = {};
                        single_op_data = Object.assign({}, prevItem.data);
                        single_op_data['op_name'] = prevItem.data.name;
                        single_op_data['groups'] = single_op_grops_list;
                        // single_op_data['category_id'] = prevItem.data.category_id;
                        _this.all_ops_group_list.push(single_op_data);
                        groups_list_1.forEach(function (groupItem, groupIndex) {
                            _this.groups_map[groupItem] = [];
                        });
                    });
                    this.logger.info(this.all_ops_group_list);
                    this.all_ops_group_list.forEach(function (grpItem, grpIndex) {
                        grpItem.groups.forEach(function (singleGrp, singleItem) {
                            _this.logger.info(singleGrp);
                            _this.groups_map_main[grpItem.op_name] = {};
                            _this.groups_map_main[grpItem.op_name][singleGrp] = [];
                        });
                    });
                    // get issues accordingto ops group id
                    if (!this.currentPageConfig.add_issue) {
                        this.loadingItems(groups_list_1, response);
                    }
                    else {
                    }
                }
                else {
                    var response_1 = null;
                    // return this.cacheSvc.get(CC_MOD_KEY, Crnt_M_D, url).then(res => {
                    var res = this.appMsDtPrv.getCrntMsDtList(this.currentPageConfig['view_data'], this.data_store_dum.list_key);
                    if (res) {
                        this.logger.trace('response for grading list', res, this.currentPageConfig['view_data']);
                        var respndata = res['data'];
                        var listName_1 = respn['listname'];
                        this.data_store_dum.setListKey(listName_1);
                        response_1 = respndata;
                        var class_one_data = response_1;
                        var groups_list_2 = [];
                        this.all_ops_group_list = [];
                        class_one_data.forEach(function (prevItem, prevIndex) {
                            var single_op_grops_list = [];
                            if (prevItem.data.group_id.length > 0) {
                                prevItem.data.group_id.forEach(function (groupItem, groupIndex) {
                                    single_op_grops_list.push(groupItem);
                                    if (groups_list_2.includes(groupItem) === false) {
                                        groups_list_2.push(groupItem);
                                    }
                                });
                            }
                            else {
                                single_op_grops_list.push('all');
                                if (groups_list_2.includes('all') === false) {
                                    groups_list_2.push('all');
                                }
                            }
                            var single_op_data = {};
                            single_op_data = Object.assign({}, prevItem.data);
                            single_op_data['op_name'] = prevItem.data.name;
                            single_op_data['groups'] = single_op_grops_list;
                            // single_op_data['category_id'] = prevItem.data.category_id;
                            _this.all_ops_group_list.push(single_op_data);
                            groups_list_2.forEach(function (groupItem, groupIndex) {
                                _this.groups_map[groupItem] = [];
                            });
                        });
                        this.logger.info(this.all_ops_group_list);
                        this.all_ops_group_list.forEach(function (grpItem, grpIndex) {
                            grpItem.groups.forEach(function (singleGrp, singleItem) {
                                _this.logger.info(singleGrp);
                                _this.groups_map_main[grpItem.op_name] = {};
                                _this.groups_map_main[grpItem.op_name][singleGrp] = [];
                            });
                        });
                        // get issues accordingto ops group id
                        if (!this.currentPageConfig.add_issue) {
                            this.loadingItems(groups_list_2, res);
                        }
                    }
                    else {
                        this.logger.trace('<<<< grading list not listenForStateChanges >>>>>');
                        // this.appMsDtPrv.setAvailableCntxtMstData();
                        // this.getStyleSizes(dataType);
                    }
                    return response_1;
                    // });
                }
                if (this.data_store_dum['child_input_categories'].length === 0) {
                }
                else if (this.data_store_dum['child_input_categories'].length > 0) {
                    this.data_store_dum['child_input_categories'].forEach(function (issueItem, issueIndex) {
                        if (issueItem.group_id.length > 0) {
                            issueItem.group_id.forEach(function (grpitem, grpIdx) {
                                if (_this.groups_map.hasOwnProperty(grpitem)) {
                                    var issue = new __WEBPACK_IMPORTED_MODULE_6__issue_model__["a" /* Issue */](issueItem);
                                    _this.groups_map[grpitem].push(issue);
                                }
                                if (!_this.groups_map.hasOwnProperty('all')) {
                                    var issue = new __WEBPACK_IMPORTED_MODULE_6__issue_model__["a" /* Issue */](issueItem);
                                    _this.groups_map['all'] = [];
                                    _this.groups_map['all'].push(issue);
                                }
                                else if (_this.groups_map.hasOwnProperty('all')) {
                                    var issue = new __WEBPACK_IMPORTED_MODULE_6__issue_model__["a" /* Issue */](issueItem);
                                    _this.groups_map['all'].push(issue);
                                }
                            });
                        }
                        else {
                            if (!_this.groups_map.hasOwnProperty('all')) {
                                var issue = new __WEBPACK_IMPORTED_MODULE_6__issue_model__["a" /* Issue */](issueItem);
                                _this.groups_map['all'] = [];
                                _this.groups_map['all'].push(issue);
                            }
                            else {
                                if (_this.groups_map.hasOwnProperty('all')) {
                                    var issue = new __WEBPACK_IMPORTED_MODULE_6__issue_model__["a" /* Issue */](issueItem);
                                    _this.groups_map['all'].push(issue);
                                }
                            }
                        }
                    });
                }
                this.all_ops_group_list.forEach(function (grpItem, grpIndex) {
                    grpItem.groups.forEach(function (singleGrp, singleItem) {
                        if (_this.groups_map[singleGrp].length > 0) {
                            _this.groups_map_main[grpItem.op_name][singleGrp] = _this.groups_map[singleGrp];
                        }
                        else if (_this.groups_map['all']) {
                            _this.groups_map_main[grpItem.op_name][singleGrp] = _this.groups_map['all'];
                        }
                    });
                });
                this.logger.info(this.all_ops_group_list);
                this.logger.info('>>>>>>>>> this.groups_map_main >>>>>>', this.groups_map_main);
                this.all_ops_group_list.forEach(function (opGrpItem, opGrpIndex) {
                    var tempGroup = {};
                    tempGroup = Object.assign({}, opGrpItem);
                    tempGroup['operation'] = opGrpItem.op_name;
                    tempGroup['category_id'] = opGrpItem.category_id;
                    tempGroup['status'] = true;
                    var tempGroupList = [];
                    opGrpItem.groups.forEach(function (isuGrpItem, isuGrpIndex) {
                        var tempIssue = new Object();
                        tempIssue['issue_category'] = isuGrpItem;
                        tempIssue['issues'] = [];
                        var arr = _this.groups_map_main[opGrpItem.op_name][isuGrpItem];
                        arr.forEach(function (item) {
                            tempIssue['issues'].push(Object.assign({}, item)); // to resolve reference issue
                        });
                        tempGroupList.push(tempIssue);
                    });
                    tempGroup['data'] = tempGroupList;
                    _this.classTwo_all_list.push(tempGroup);
                });
                var firstOne = this.classTwo_all_list[0];
                this.issue_loading = firstOne.data[0].issues.length;
                this.classTwo_all_list.forEach(function (itemX1, indexX1) {
                    var currentOperation = itemX1.operation;
                    //  itemX1.operation
                    itemX1.data.forEach(function (itemX2, indexX2) {
                        itemX2.issues.forEach(function (itemX3, indexX3) {
                            itemX3['operation'] = currentOperation;
                            if (_this.data_store_dum['child_selected_categories'].length > 0) {
                                _this.data_store_dum['child_selected_categories'].forEach(function (d) {
                                    if (d['data']['id']) {
                                        if (currentOperation === d['operation'] && itemX3['id'] === d['data']['id']) {
                                            itemX3['status'] = true;
                                        }
                                    }
                                    else {
                                        if (currentOperation === d['operation'] && itemX3['_id'] === d['data']['_id']) {
                                            itemX3['status'] = true;
                                        }
                                    }
                                });
                            }
                        });
                    });
                });
                this.logger.info(this.groups_map_main);
            }
            else {
                this.logger.trace('<<<< grading list not listenForStateChanges >>>>>');
                // this.appMsDtPrv.setAvailableCntxtMstData();
                // this.getStyleSizes(dataType);
            }
            return response;
            // });
        }
        catch (e) {
            this.logger.error(e);
        }
    };
    ClassTwoPage.prototype.addCurrentIssues = function () {
        var _this = this;
        var modelData = {
            'model': this.data_store_dum,
            'btnConf': this.data_set['btnConf'],
            pgConf: this.currentPageConfig
        };
        var modal = this.modalCtrl.create(__WEBPACK_IMPORTED_MODULE_5__class_two_selected__["a" /* ClassTwoSelected */], modelData, { cssClass: 'class-two-selected' });
        modal.onDidDismiss(function (dataRes) {
            _this.logger.log(dataRes);
            _this.setupViewModel();
        });
        modal.present();
    };
    ClassTwoPage.prototype.isSelected = function () {
        if (this.data_store_dum['child_selected_categories'].length > 0) {
            return true;
        }
        else {
            this.popupMessage();
        }
    };
    // popup message //
    ClassTwoPage.prototype.popupMessage = function () {
        var toast = this.toastCtrl.create({
            message: 'Please Select Item(s) to Proceed',
            duration: 3000,
            position: 'middle',
            showCloseButton: true,
            closeButtonText: 'OK'
        });
        toast.present();
    };
    ClassTwoPage.prototype.navigationClick = function (type) {
        var _this = this;
        this.classTwo_selected_list = [];
        this.data_store_dum.setChildSelectedCategories([]);
        var count = 0;
        this.classTwo_all_list.forEach((function (itemx, idx) {
            itemx.data.forEach(function (item, id) {
                var ops_status = true;
                item.issues.forEach(function (issueItem, issueIndex) {
                    if (issueItem.status === true && itemx.status === true) {
                        ops_status = false;
                        var temp = {};
                        temp['operation'] = itemx.operation;
                        temp['category_id'] = itemx.category_id;
                        delete issueItem['status'];
                        temp['data'] = issueItem;
                        temp['size'] = _this.data_store_dum.recent_grade;
                        // temp['bsns_cntxt'] = this.businessCtx.getCurrentContext().ctx;
                        temp['bsns_cntxt'] = _this.previous_data[0].ctx;
                        temp['date'] = _this._crntDate.dashFormate();
                        temp['_id'] = itemx._id;
                        temp['id'] = itemx.id;
                        var tempissue = Object.assign({}, issueItem);
                        var tempops = Object.assign({}, itemx);
                        delete tempissue['id'];
                        delete tempissue['group_id'];
                        delete tempissue['operation'];
                        delete tempops['id'];
                        delete tempops['groups'];
                        delete tempops['data'];
                        delete tempops['group_id'];
                        delete tempops['status'];
                        delete tempops['_id'];
                        delete tempops['op_name'];
                        delete tempops['operation'];
                        temp['event_ac'] = {
                            size: _this.data_store_dum.select_item,
                            operation: tempops,
                            issues: tempissue
                        };
                        issueItem['status'] = true;
                        _this.data_store_dum['child_selected_categories'].push(temp);
                    }
                });
                if (!ops_status) {
                    count++;
                }
            });
        }));
        if (this.classTwo_all_list.length !== count) {
            this.popupMessage();
            return;
        }
        var finalSelectedList = [];
        var finalMap = {};
        finalMap['id'] = this.previous_data[0].id;
        finalMap['ctx'] = this.previous_data[0].ctx;
        finalMap['round'] = this.previous_data[0].round;
        finalMap['sname'] = this.previous_data[0].sname;
        finalMap['result'] = this.data_store_dum['child_selected_categories'];
        finalSelectedList.push(finalMap);
        if (type === 'cancel') {
            this.navigationProvider.exitToRoot(null);
        }
        else if (type === 'ok') {
            if (this.isSelected()) {
                if (this.nextPage !== 'page_order_end') {
                    var data = {};
                    data['type'] = 'push';
                    data['next_page'] = this.nextPage;
                    data['result'] = finalSelectedList;
                    data['result_type'] = this.data_store_dum['data_type'];
                    this.navigationProvider.nextView(this.nextPage, {
                        data: finalSelectedList,
                        model: this.data_store_dum, btnConf: this.data_set['btnConf']
                    });
                }
                else {
                    var data = {};
                    data['type'] = 'remove_all';
                    data['next_page'] = this.nextPage;
                    data['result'] = finalSelectedList;
                    data['result_type'] = this.data_store_dum.name;
                    this.data_store_dum.recentCatList(data['result']);
                    if (!this.data_set['btnConf']['ref_type']) {
                        this.data_store_dum.updateGrades(this.data_store_dum['recent_grade']);
                        this.data_store_dum.increment();
                        this.data_store_dum.recentCatList(data['result']);
                    }
                    this.sharedDataService.updateSharedDataService(this.data_set['btnConf'], this.data_store_dum.value, new __WEBPACK_IMPORTED_MODULE_7__models_btnModel__["a" /* ClassificationModel */](this.data_store_dum));
                    this.navigationProvider.exitToRoot(null);
                }
            }
        }
    };
    /*
     cat2 items are listenForStateChanges according to selected cat1 items group id
     */
    ClassTwoPage.prototype.loadingItems = function (grpId, res) {
        var _this = this;
        this.logger.trace('select items groupp id----', grpId, res);
        var input_list_selected = [];
        res.forEach(function (data) {
            if (data.group_id) {
                data.group_id.forEach(function (grp) {
                    // this.logger.trace('Looping data', data, grp, grpId);
                    if (grpId.lastIndexOf(grp) > -1) {
                        var inpDt_1 = false;
                        input_list_selected.forEach(function (inpdt) {
                            if (inpdt.id === data.id) {
                                inpDt_1 = true;
                            }
                        });
                        if (!inpDt_1) {
                            input_list_selected.push(data);
                            _this.logger.trace('--- select group ---', grp);
                        }
                    }
                });
            }
        });
        this.data_store_dum.setChildInputCategories(input_list_selected);
    };
    ClassTwoPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* IonicPage */])(),
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'page-class-two',
            template: __WEBPACK_IMPORTED_MODULE_3__class_two_template__["a" /* CLASS_TWO_HTML */]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["p" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist_providers_navigation_manager__["a" /* NavigationManager */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["x" /* ToastController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["m" /* ModalController */], __WEBPACK_IMPORTED_MODULE_8__providers_shared_data_service_shared_data_service__["a" /* SharedDataProvider */],
            __WEBPACK_IMPORTED_MODULE_9__providers_masterdata_service_masterdata_service__["a" /* AppMasterDataCntrl */], __WEBPACK_IMPORTED_MODULE_10__providers_dateFormate_dateFormates__["a" /* DateFormatting */]])
    ], ClassTwoPage);
    return ClassTwoPage;
}());

//# sourceMappingURL=class-two.js.map

/***/ }),

/***/ 1842:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CLASS_TWO_HTML; });
/**
 * Created by Paramee Gunethilake on 5/3/2018.
 */
var CLASS_TWO_HTML = "\n\n<ion-header>\n       <common-main-header [title]=\"currentPageConfig.title\" [tools]=\"tools\"\n       [header_disabled]=\"currentPageConfig?.subject_disable\"></common-main-header>\n</ion-header>\n<ion-content class=\"main-container\">\n\n<ion-grid class=\"summary-grid\" *ngIf=\"currentPageConfig?.order_heading\">\n   <ion-row class=\"summary-row\">\n            <ion-col class=\"summary-col\" *ngIf=\"sub_header\">\n                <core-domain-header></core-domain-header>\n            </ion-col>\n        </ion-row>\n</ion-grid>\n\n <ion-grid [ngClass]=\"grid_class\" class=\"main-grid\" no-padding>\n  <ion-row no-padding class=\"main-contain-row\">\n\n<!-- QC operations====================================-->\n      <ion-col col-12 col-lg-4 col-md-4 *ngIf=\"viewType == 'qc'\">\n          <ion-grid class=\"class-one-grid\" no-padding>\n          <ion-row class=\"header-top\">\n          <!-- {{currentPageConfig?.list_main_header}} -->\n          Defective operations\n</ion-row>\n              <ion-row class=\"upper-margin\">\n                  <ion-list   *ngFor=\"let Singledata of classTwo_all_list\" style=\"width: 99% ; margin-bottom: 2%;margin-left: 1%\">\n                      <ion-item [ngClass]=\"{'item-slct':Singledata.status == true,\n                       'item-not-slct':Singledata.status == false}\" text-wrap>\n                        <ion-label *ngIf=\"Singledata.department\" >{{Singledata.department}}</ion-label>\n                            <ion-label *ngIf=\"Singledata.station\">{{Singledata.station}}</ion-label>\n                          <ion-label style=\"white-space: inherit;\">{{Singledata.operation}}</ion-label>\n\n                        <ion-checkbox [(ngModel)]=\"Singledata.status\"  >\n                          </ion-checkbox>\n                      </ion-item>\n </ion-list>\n              </ion-row>\n </ion-grid>\n</ion-col>\n  <!-- QC operations====================================-->\n\n<!--======================AQL Station -->\n <ion-col col-4 class=\"aql-oper-col\" *ngIf=\"viewType == 'aql' && sidebarView == 'station'\" >\n<ion-row class=\"header-top\">Departments</ion-row>\n<ion-row class=\"lhs-list-col\">\n<ion-list class=\"selection-list\">\n  <ion-item class=\"selection-item\" text-wrap>\n    <ion-label  class=\"selection-header departent\">Selected Department 1</ion-label>\n    <ion-checkbox>\n    </ion-checkbox>\n  </ion-item>\n</ion-list>\n</ion-row>\n</ion-col>\n<!--======================QAL station -->\n\n\n<!-- AQL Issue =========================-->\n<ion-col col-4 class=\"aql-oper-col\" *ngIf=\"viewType == 'aql' && sidebarView == 'issues'\">\n    <ion-row class=\"header-top\">Operations</ion-row>\n      <ion-row class=\"lhs-list-col\">\n        <ion-list class=\"selection-list\"  *ngFor=\"let Singledata of classTwo_all_list\">\n          <ion-item class=\"selection-item multi-select-itm\" [ngClass]=\"{'item-slct':Singledata.status == true,\n          'item-not-slct':Singledata.status == false}\" text-wrap>\n          <ion-label no-padding class=\"seltd-dpt-st\" *ngIf=\"Singledata.department\"><span class=\"dpt\">{{Singledata.department}}</span>\n            <span class=\"st\">{{Singledata.station}}</span></ion-label>\n            <ion-label  class=\"selection-header departent step2-selec\">{{Singledata.operation}}</ion-label>\n            <ion-checkbox [(ngModel)]=\"Singledata.status\">\n            </ion-checkbox>\n          </ion-item>\n        </ion-list>\n      </ion-row>\n</ion-col>\n<!-- AQL issue==============================-->\n\n\n      <ion-col col-12 col-lg-8 col-md-8  class=\"overflow-page\">\n          <div class=\"class-two-grid-div\">\n          <ion-grid class=\"class-two-grid\">\n           <ion-row class=\"add-btn-row\">\n<div class=\"hdr\" style=\" flex:1;\">Issue</div>\n  <button *ngIf=\"currentPageConfig?.add_issue\" class=\"add-button\" ion-button (click)=\"addCurrentIssues()\">\n  <ion-icon name=\"add\"></ion-icon></button>\n</ion-row>\n<ion-row *ngFor=\"let Singledata of classTwo_all_list\" style=\"width: 100%\">\n                      <span [hidden]=\"!Singledata.status\" style=\"width: 100%\">\n                      <ion-label *ngIf=\"Singledata.data[0].issues.length > 0\" class=\"class_one_label\" >{{Singledata.operation}}</ion-label>\n                      <ion-list *ngFor=\"let singleD of Singledata.data\" class=\"class-two-grid-list\">\n                               <ion-list *ngFor=\"let single of singleD.issues\">\n                              <ion-item style=\"width: 100%\" class=\"class-two-grid-list-item\" text-wrap>\n                                  <ion-label >\n                                  <span class=\"id_label\">{{single.category_id}}</span>\n                                  <span class=\"name_label\">{{single.name}}</span>\n                                  </ion-label>\n                                  <ion-checkbox [(ngModel)]=\"single.status\"  >\n                                  </ion-checkbox>\n                              </ion-item>\n                              </ion-list>\n                      </ion-list>\n                          </span>\n                  </ion-row>\n                   <ion-label *ngIf=\"issue_loading === 0\">\n                          <ion-row no-padding class=\"data-empty-time\">\n       <!-- <ion-col col-6><ion-icon name=\"md-alert\" class=\"ion-icon\" item-left></ion-icon><span class=\"space-rem\"></span>\n       Please Click {{currentPageConfig['list_name']}}</ion-col> -->\n\n       <div class=empt-msg>\n       <ion-icon name=\"md-alert\" class=\"ion-icon\" item-left></ion-icon><span class=\"space-rem\"></span>\n        Please Click <ion-icon name=\"add\" class=\"pls-ioc\"></ion-icon> button to add {{currentPageConfig['list_name']}}\n       </div>\n</ion-row>\n</ion-label>\n          </ion-grid>\n          </div>\n      </ion-col>\n    </ion-row>\n  </ion-grid>\n\n</ion-content>\n<ion-footer no-padding>\n  <ion-navbar no-paddin>\n    <ion-grid no-padding>\n      <ion-row justify-content-end no-padding>\n        <ion-col *ngFor=\"let button of currentPagebuttons \" col-5 col-lg-2 col-md-3 class=\"right-pdn\">\n          <button [ngClass]=\"button.button_type\" ion-button [hidden]=\"!button.display\"\n          (click)=\"navigationClick(button.button_type)\" class=\"page-button help-category-btn\">\n           {{button.button_name}}</button>\n        </ion-col>\n      </ion-row>\n    </ion-grid>\n\n  </ion-navbar>\n</ion-footer>\n\n\n";
//# sourceMappingURL=class-two-template.js.map

/***/ })

});
//# sourceMappingURL=10.js.map