webpackJsonp([17],{

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrReworkPageModule", function() { return TrReworkPageModule; });
/* 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__tr_rework__ = __webpack_require__(1865);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_components_module__ = __webpack_require__(114);
/* 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 TrReworkPageModule = /** @class */ (function () {
    function TrReworkPageModule() {
    }
    TrReworkPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__tr_rework__["a" /* TrReworkPage */],
            ],
            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__tr_rework__["a" /* TrReworkPage */]),
            ],
        })
    ], TrReworkPageModule);
    return TrReworkPageModule;
}());

//# sourceMappingURL=tr-rework.module.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TrReworkPage; });
/* 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__tr_rework_template__ = __webpack_require__(1866);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_tr_rework_service__ = __webpack_require__(58);
/* 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 __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





/**
 * Generated class for the TrReworkPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */
var TrReworkPage = /** @class */ (function () {
    function TrReworkPage(navCtrl, navParams, rwkSrv, navMngr) {
        this.navCtrl = navCtrl;
        this.navParams = navParams;
        this.rwkSrv = rwkSrv;
        this.navMngr = navMngr;
        this.selected_items = [];
        this.btn_click_capture = [];
        this.view_disabled = true;
        this.tools = {
            line: true,
            menu: true,
            shift: true,
            user: true,
        };
        this.page_conf = this.navParams.get('conf');
        if (this.page_conf) {
            this.rework_list = this.rwkSrv.getCrntList();
            if (this.rework_list) {
                if (this.rework_list.length > 0) {
                    this.rework_list.forEach(function (dt) {
                        dt.status = false;
                    });
                }
            }
            this.bsns_topics = this.page_conf.business_data;
            this.footer_view = this.page_conf.footer_view;
        }
    }
    // row item selecting //
    TrReworkPage.prototype.rowItemSelect = function (index, item) {
        if (!this.page_conf.select_multiple) {
            if (this.selected_items.length > 0) {
                if (this.selected_items[0]['gId'] === item['gId']) {
                    this.selected_items = [];
                }
                else {
                    this.selected_items = [];
                    this.selected_items.push(item);
                }
            }
            else {
                this.selected_items.push(item);
            }
            // check and false other items status //
            this.rework_list.forEach(function (dt) {
                if (item.gId !== dt.gId) {
                    dt.status = false;
                }
            });
            if (this.selected_items.length === 1) {
                this.view_disabled = false;
            }
            else {
                this.view_disabled = true;
            }
        }
        else {
            if (this.btn_click_capture.indexOf(index) > -1) {
                this.btn_click_capture.splice(this.btn_click_capture.indexOf(index), 1);
                this.selected_items.splice(this.selected_items.indexOf(index), 1);
            }
            else {
                this.btn_click_capture.push(index);
                this.selected_items.push(item);
            }
            if (this.btn_click_capture.length >= 1 && this.btn_click_capture.length !== 0) {
                this.view_disabled = false;
            }
            else {
                this.view_disabled = true;
            }
        }
    };
    // navogation handle in footer //
    TrReworkPage.prototype.navigationClick = function (type) {
        if (type === 'cancel') {
            this.rework_list.forEach(function (dt) {
                dt.status = false;
            });
            this.navMngr.exitToRoot(null);
        }
        else if (type === 'ok') {
            // if (this.isSelected()) {
            if (this.page_conf.next_view !== 'page_order_end') {
            }
            else {
                this.navMngr.exitToRoot(null);
            }
            // }
        }
    };
    TrReworkPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* IonicPage */])(),
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'page-tr-rework',
            template: __WEBPACK_IMPORTED_MODULE_2__tr_rework_template__["a" /* TR_REWORK_TEMPLATE */],
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["o" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["p" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_3__providers_tr_rework_service__["a" /* TrReworkService */],
            __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__["m" /* NavigationManager */]])
    ], TrReworkPage);
    return TrReworkPage;
}());

//# sourceMappingURL=tr-rework.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TR_REWORK_TEMPLATE; });
/**
 * Created by dilshan on 12/10/18.
 */
var TR_REWORK_TEMPLATE = "\n<ion-header>\n\t<common-main-header [title]=\"page_conf?.title\" [tools]=\"tools\"\n    [header_disabled]=\"page_conf?.subject_disable\" [shift_disabled]=\"page_conf?.shift_disabled\"></common-main-header>\n</ion-header>\n<ion-content class=\"main-container\">\n\t<ion-grid class=\"main-grid\">\n\t\t<ion-row class=\"main-content-row\">\n\t\t\t<ion-col col-9 class=\"overflow-rework\">\n\t\t\t\t<ion-grid *ngFor=\"let rowdata of rework_list; let indx=index;\">\n\t\t\t\t\t<ion-row class=\"main-data-row\">\n\t\t\t\t\t\t<div class=\"main-data-row-data-col rgt-align\">\n\t\t\t\t\t\t\t<ion-item class=\"main-data-row-data-col-item\" >\n\t\t\t\t\t\t\t\t<ion-checkbox (click)=\"rowItemSelect(indx, rowdata)\" [(ngModel)]=\"rowdata.status\"></ion-checkbox>\n\t\t\t\t\t\t\t\t<ion-label class=\"dress-info\">\n\t\t\t\t\t\t\t\t\t<div class=\"bottom-margin-sm\">\n\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"rowdata.timestamp\" class=\"date-formate\">\n\t\t\t\t\t\t\t\t\t\t{{rowdata.timestamp |  date: 'dd/MM/yyyy'}}\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"bottom-margin-sm lable-right sty-po-info width-hundrent-prc\">\n\t\t\t\t\t\t\t\t\t\t<span *ngFor=\"let ctx of bsns_topics; let ind=index;\"\n          class=\"main-data-row-data-col-item-lable-end secondary-data-col-row-class-one one-info\" item-right>\n          <ion-badge style=\"width: calc(min-content + 10px);\" *ngIf=\"ind===0 && rowdata.bsns\" class=\"grap-no\">\n          {{rowdata.bsns[ctx]}}</ion-badge>\n          <ion-badge *ngIf=\"ind===1 && rowdata.bsns\" class=\"cut-no\">{{rowdata.bsns[ctx]}}</ion-badge>\n          <ion-badge *ngIf=\"ind===2 && rowdata.bsns\" class=\"bund-no\">{{rowdata.bsns[ctx]}}</ion-badge>\n          <ion-badge style=\"background-color: transparent; color: black\" *ngIf=\"ind>2 && rowdata.bsns\">{{rowdata.bsns[ctx]}}</ion-badge>\n          </span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div  *ngIf=\"rowdata?.cat_data\"\n          class=\"lable-left secondary-data-col-row-class-two-name\">\n\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span *ngFor=\"let nm of rowdata?.cat_data\">{{nm?.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</ion-label>\n\t\t\t\t\t\t\t\t</ion-item>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</ion-row>\n\t\t\t\t\t</ion-grid>\n\t\t\t\t</ion-col>\n\t\t\t\t<ion-col col-3 class=\"left-border\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<tr-btn-collection [select_items]=\"selected_items\" [view_disabled]=\"view_disabled\"\n\t\t\t\t\t[page_btn_conf]=\"page_conf?.button_controles\"></tr-btn-collection>\n\t\t\t\t\t</div>\n\t\t\t\t</ion-col>\n\t\t\t</ion-row>\n\t\t</ion-grid>\n\t</ion-content>\n\t<ion-footer no-padding>\n\t\t<ion-grid no-padding>\n      <ion-row justify-content-end no-padding>\n        <ion-col *ngFor=\"let button of footer_view \" 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\t</ion-footer>\n";
//# sourceMappingURL=tr-rework.template.js.map

/***/ })

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