webpackJsonp([5],{

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GatePassPageModule", function() { return GatePassPageModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_ionic_angular__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__gate_pass_page__ = __webpack_require__(2222);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__component_common_module__ = __webpack_require__(989);
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 GatePassPageModule = /** @class */ (function () {
    function GatePassPageModule() {
    }
    GatePassPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_2__angular_core__["NgModule"])({
            declarations: [__WEBPACK_IMPORTED_MODULE_1__gate_pass_page__["a" /* GatePassPage */]],
            imports: [__WEBPACK_IMPORTED_MODULE_0_ionic_angular__["j" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_1__gate_pass_page__["a" /* GatePassPage */]), __WEBPACK_IMPORTED_MODULE_4__component_common_module__["a" /* StoreComponentsModule */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__["j" /* CoreModule */]],
            providers: [],
            exports: [__WEBPACK_IMPORTED_MODULE_1__gate_pass_page__["a" /* GatePassPage */]]
        })
    ], GatePassPageModule);
    return GatePassPageModule;
}());

//# sourceMappingURL=gate-pass-page.module.js.map

/***/ }),

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

"use strict";
/* unused harmony export TableSettingsModel */
/* unused harmony export Column */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ButtonConfig; });
var TableSettingsModel = /** @class */ (function () {
    function TableSettingsModel(obj) {
        if (obj && obj.columns) {
            this.columns = this.getColumns(obj.columns);
        }
        this.actions = obj && obj.actions;
        this.pager = obj && obj.pager;
    }
    TableSettingsModel.prototype.getColumns = function (columns) {
        var converted = {};
        var timeColumn = {
            'data_type': 'time',
            'display_name': 'Time',
            'editable': false,
            'key': 'added_datetime'
        };
        converted['added_datetime'] = new Column(timeColumn);
        columns.forEach(function (column) {
            // todo: change field name to formal names
            var key = column.key;
            converted[key] = new Column(column);
        });
        return converted;
    };
    return TableSettingsModel;
}());

var Column = /** @class */ (function () {
    function Column(obj) {
        this.type = 'text';
        this.title = obj && obj.display_name;
        this.filter = false;
        this.editable = obj && obj.editable;
        if (obj && obj.editor) {
            this.editor = obj.editor;
        }
        if (obj && (obj.data_type === 'date')) {
            this.type = 'custom';
            this.editable = false;
        }
        else if (obj && (obj.data_type === 'time')) {
            this.type = 'custom';
            this.editable = false;
        }
    }
    return Column;
}());

var ButtonConfig = /** @class */ (function () {
    function ButtonConfig(obj) {
        this.visibility = obj && obj.visibility;
        this.waiting_time = obj && obj.waiting_time;
        this.action_type = obj && obj.action_type;
        this.button_name = obj && obj.button_name;
        this.display_name = obj && obj.display_name;
        this.next_view_ref = obj && obj.next_view_ref;
    }
    return ButtonConfig;
}());

//# sourceMappingURL=scanned-report-model.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GatePassPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__gate_pass_page_template__ = __webpack_require__(2223);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ministore_utils__ = __webpack_require__(39);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__models_scanned_report_model__ = __webpack_require__(1603);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__providers_transaction_service__ = __webpack_require__(111);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__models_nc_smart_table_models__ = __webpack_require__(992);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__component_nc_smart_table_nc_smart_table__ = __webpack_require__(996);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__providers_store_domain_header_service__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__models_gatepass__ = __webpack_require__(1023);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__providers_ministore_data_provider__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__providers_master_data_service__ = __webpack_require__(55);
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 uniqid = __webpack_require__(157);
var GatePassPage = /** @class */ (function () {
    function GatePassPage(navParams, navManager, txService, appState, storeDomainSrvc, alertCtrl, dataProvide, masterdataService) {
        this.navParams = navParams;
        this.navManager = navManager;
        this.txService = txService;
        this.appState = appState;
        this.storeDomainSrvc = storeDomainSrvc;
        this.alertCtrl = alertCtrl;
        this.dataProvide = dataProvide;
        this.masterdataService = masterdataService;
        this.title = '';
        this.subTitle = '';
        this.gatePasses = [];
        this.tools = {};
        this.selectedWashingPlant = '';
        this.newInputName = {
            name: 'washing_plant',
            label: 'Washing plant'
        };
        this.mandatoryFields = [
            {
                name: 'shade',
                label: 'Shade'
            },
            {
                name: 'washing_plant',
                label: 'Washing plant'
            }
        ];
        this.tools = {
            line: false,
            menu: false,
            shift: false,
            user: false,
            apps: false
        };
    }
    GatePassPage.prototype.configurePage = function (data) {
        this.washingPlants = this.masterdataService.getWashingPlants();
        var tools = data.tools;
        if (tools) {
            this.tools = Object.assign(this.tools, tools);
        }
        this.title = data.title;
        this.dataSource = data.data_source;
        this.subTitle = data.sub_title;
        if (data.newInputName) {
            this.newInputName = data.newInputName;
        }
        if (data.mandatoryFields) {
            this.mandatoryFields = data.mandatoryFields;
        }
        this.navigationList = data.navigation_list;
        this.gatePassAddBtn = new __WEBPACK_IMPORTED_MODULE_5__models_scanned_report_model__["a" /* ButtonConfig */](__WEBPACK_IMPORTED_MODULE_3__ministore_utils__["a" /* MUtils */].getControllerConfig('gate_pass_add', data.view_controllers));
        var tableConf = __WEBPACK_IMPORTED_MODULE_3__ministore_utils__["a" /* MUtils */].getComponentConfig('nc-smart-table', data.component_descriptors);
        if (tableConf) {
            this.tableConfig = new __WEBPACK_IMPORTED_MODULE_7__models_nc_smart_table_models__["b" /* TableConfig */](tableConf);
            this.tableConfig.forceOnEditing = true;
        }
    };
    GatePassPage.prototype.startAGatePass = function () {
        this.txService.closeGatePass();
        this.currentGatePass = this.txService.startGatePass(this.mandatoryFields);
        this.setTableRows(this.currentGatePass);
        this.goToNextView(this.gatePassAddBtn.next_view_ref, {});
    };
    GatePassPage.prototype.saveGatePass = function () {
        var _this = this;
        if (this.currentGatePass && this.currentGatePass && this.currentGatePass.items.length > 0) {
            var valid = this.txService.currentGatePass.validateCurrentGatePass();
            var missingStr_1 = '';
            if (this.mandatoryFields) {
                this.mandatoryFields.forEach(function (mf) {
                    missingStr_1 = missingStr_1 === '' ? mf.label : missingStr_1 + ' , ' + mf.label;
                });
            }
            if (!valid) {
                var alert_1 = this.alertCtrl.create({
                    title: 'Warning !',
                    subTitle: 'Please enter ' + missingStr_1 + ' for all items in selected gate pass.'
                });
                alert_1.present();
                setTimeout(function () {
                    alert_1.dismiss();
                }, 3000);
                return;
            }
            this.txService.saveGatePass(this.txService.currentGatePass).then(function (data) {
                if (data && data.status === 'success') {
                    var alert_2 = _this.alertCtrl.create({
                        title: 'Successful',
                        subTitle: data.msg
                    });
                    alert_2.present();
                    setTimeout(function () {
                        alert_2.dismiss();
                    }, 2000);
                    _this.showTable = false;
                    _this.removeGatePass(_this.currentGatePass.id);
                    if (_this.gatePasses.length > 0) {
                        _this.selectPass(_this.gatePasses[0].id);
                    }
                    else {
                        _this.selectedWashingPlant = '';
                        _this.currentGatePass = void 0;
                    }
                }
                else if (data && data.status === 'error' && data.txFailed) {
                    var errorStr = '';
                    var failedItems = data.failedItems;
                    for (var i = 0; i < failedItems.length; i++) {
                        errorStr = errorStr + '<li>' + (i + 1) + ' ).  ' + failedItems[i] + '.</li>';
                    }
                    errorStr = '<ul>' + errorStr + '</ul>';
                    var alert_3 = _this.alertCtrl.create({
                        title: 'Transaction Failed !',
                        subTitle: 'Followings do not have enough quantities.',
                        message: errorStr,
                        buttons: [
                            {
                                text: 'Ok',
                                role: 'ok'
                            }
                        ], cssClass: 'gate-pass-error'
                    });
                    alert_3.present();
                    /*setTimeout(() => {
                        alert.dismiss();
                    }, 2000);*/
                }
                else if (data) {
                    var alert_4 = _this.alertCtrl.create({
                        title: 'Failed',
                        subTitle: data.msg
                    });
                    alert_4.present();
                    setTimeout(function () {
                        alert_4.dismiss();
                    }, 2000);
                }
                else {
                    var alert_5 = _this.alertCtrl.create({
                        title: 'Error',
                        subTitle: 'Sorry, Something went wrong during the transaction process.'
                    });
                    alert_5.present();
                    setTimeout(function () {
                        alert_5.dismiss();
                    }, 2000);
                }
                _this.txService.closeGatePass();
                _this.txService.closeTransaction();
            });
        }
    };
    GatePassPage.prototype.goToNextView = function (viewName, data) {
        if (viewName && viewName !== '') {
            this.navManager.nextView(viewName, data);
        }
    };
    GatePassPage.prototype.ionViewDidLoad = function () {
        this.showTable = false;
        var data = this.navParams.get('conf');
        this.configurePage(data);
        this.gatePasses = this.txService.gatePasses;
        this.currentGatePass = this.txService.currentGatePass;
        this.checkVisibility();
        this.setTableRows(this.currentGatePass);
    };
    GatePassPage.prototype.checkVisibility = function () {
        if (this.gatePasses && this.gatePasses.length > 0) {
            this.enableEmptyMsg = false;
        }
        else if ((!this.gatePasses) || this.gatePasses && this.gatePasses.length === 0) {
            this.enableEmptyMsg = true;
        }
    };
    GatePassPage.prototype.setTableRows = function (gatePass) {
        if (gatePass) {
            var table = [];
            for (var i = 0; i < gatePass.items.length; i++) {
                var item = gatePass.items[i];
                item['_id'] = i;
                item['gate_pass_id'] = i;
                var newItem = __WEBPACK_IMPORTED_MODULE_3__ministore_utils__["a" /* MUtils */].getDeepCopy(item.details);
                newItem['actual_qty'] = item.actual_qty;
                newItem['added_time'] = item.added_time;
                newItem['tx_id'] = item.tx_id;
                newItem['key'] = item.key;
                newItem['_id'] = i;
                table.push(newItem);
            }
            this.data = gatePass.items;
            this.tableConfig.rows = table;
            this.showTable = true;
        }
    };
    GatePassPage.prototype.removeGatePass = function (id) {
        this.txService.removeGatePass(function (gp) { return gp.id === id; });
        var index = this.gatePasses.findIndex(function (gp) { return gp.id === id; });
        if (index > -1) {
            this.gatePasses.splice(index, 1);
            this.checkVisibility();
        }
    };
    GatePassPage.prototype.selectPass = function (gatePassId) {
        // this.showTable = false;
        this.currentGatePass = this.txService.getGatePass(gatePassId);
        this.txService.setCurrentGatePass(gatePassId);
        if (this.currentGatePass && this.currentGatePass.items &&
            this.currentGatePass.items.length > 0) {
            if (this.currentGatePass.items[0].details[this.newInputName.name] &&
                this.currentGatePass.items[0].details[this.newInputName.name] !== '') {
                this.selectedWashingPlant = this.currentGatePass.items[0].details[this.newInputName.name];
            }
            else {
                this.selectedWashingPlant = '';
            }
        }
        this.setTableRows(this.currentGatePass);
        if (this.smartTable) {
            this.tableConfig.forceOnEditing = true;
            this.smartTable.refreshWithNewData(this.tableConfig.rows);
        }
    };
    GatePassPage.prototype.editRow = function (editData) {
        var _this = this;
        var row = editData.row;
        var columns = editData.editable_columns;
        if (columns && columns.length > 0) {
            var inputs_1 = [];
            columns.forEach(function (column) {
                inputs_1.push({
                    name: column.name,
                    placeholder: column.name,
                    type: 'text'
                });
            });
            var alert_6 = this.alertCtrl.create({
                title: 'Editor',
                inputs: inputs_1,
                buttons: [
                    {
                        text: 'Cancel',
                    },
                    {
                        text: 'Ok',
                        handler: function (data) {
                            _this.updateTable(row, data);
                        }
                    }
                ]
            });
            alert_6.present();
        }
    };
    GatePassPage.prototype.deleteItem = function (row) {
        var _this = this;
        var tx_id = row.tx_id;
        var key = row.key;
        var result = this.currentGatePass.deleteItem(tx_id, key);
        var index = this.gatePasses.findIndex(function (gp) { return gp.id === _this.currentGatePass.id; });
        if (index > -1) {
            var gp = new __WEBPACK_IMPORTED_MODULE_10__models_gatepass__["a" /* GatePass */](this.currentGatePass);
            this.gatePasses.splice(index, 1, gp);
        }
        this.txService.deleteItemInCurrentGatePass(tx_id, key, this.currentGatePass.id);
        if (result) {
            this.smartTable.deleteRow();
            var alert_7 = this.alertCtrl.create({
                title: 'Deleted',
                subTitle: 'Record deleted'
            });
            alert_7.present();
            setTimeout(function () {
                alert_7.dismiss();
            }, 2000);
        }
    };
    GatePassPage.prototype.updateTable = function (row, data) {
        var _this = this;
        var tx_id = row.tx_id;
        var id = Number(row._id);
        var oldQty = Number(row.actual_qty);
        var newQty = data.hasOwnProperty('actual_qty') ? Number(data.actual_qty) : oldQty;
        var index = this.data.findIndex(function (item) { return item._id === id; });
        var itemToSave = {};
        if (index > -1) {
            itemToSave = this.data[index];
            if (data.actual_qty) {
                itemToSave['actual_qty'] = newQty;
                delete data.actual_qty;
            }
            itemToSave['details'] = Object.assign(itemToSave['details'], data);
        }
        this.txService.editItemInGatePass(oldQty, newQty, itemToSave).then(function (result) {
            if (result && result.status === 'success') {
                var updated = Object.assign(row, data);
                _this.smartTable.editRow(updated);
                var alert_8 = _this.alertCtrl.create({
                    title: 'Successful',
                    subTitle: 'Record edited'
                });
                alert_8.present();
                setTimeout(function () {
                    alert_8.dismiss();
                }, 2000);
            }
            else {
            }
        });
    };
    GatePassPage.prototype.setWashingPlant = function (type) {
        var selectedWashingPlant = __WEBPACK_IMPORTED_MODULE_3__ministore_utils__["a" /* MUtils */].getDeepCopy(this.selectedWashingPlant);
        this.txService.addWashingPlant(type, selectedWashingPlant);
    };
    GatePassPage.prototype.addItemToCurrentGatePass = function () {
        if (this.currentGatePass) {
            this.txService.reopenGatePass(this.currentGatePass.id);
            this.goToNextView(this.gatePassAddBtn.next_view_ref, {});
        }
    };
    GatePassPage.prototype.deleteGatePass = function (id) {
        this.removeGatePass(id);
        if (this.currentGatePass.id === id) {
            this.currentGatePass = void 0;
            this.showTable = false;
        }
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["ViewChild"])('smartTable'),
        __metadata("design:type", __WEBPACK_IMPORTED_MODULE_8__component_nc_smart_table_nc_smart_table__["a" /* NcSmartTable */])
    ], GatePassPage.prototype, "smartTable", void 0);
    GatePassPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* IonicPage */])(),
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'gate-pass-page',
            template: __WEBPACK_IMPORTED_MODULE_2__gate_pass_page_template__["a" /* GATE_PASS_PAGE_TEMPLATE */]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["p" /* NavParams */], __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__["m" /* NavigationManager */],
            __WEBPACK_IMPORTED_MODULE_6__providers_transaction_service__["a" /* TransactionService */],
            __WEBPACK_IMPORTED_MODULE_4__ncinga_sp_nsp_app_core_dist__["e" /* ApplicationService */], __WEBPACK_IMPORTED_MODULE_9__providers_store_domain_header_service__["a" /* StoreDomainHeaderService */],
            __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["a" /* AlertController */], __WEBPACK_IMPORTED_MODULE_11__providers_ministore_data_provider__["a" /* MiniStoreDataProvider */],
            __WEBPACK_IMPORTED_MODULE_12__providers_master_data_service__["a" /* MasterDataService */]])
    ], GatePassPage);
    return GatePassPage;
}());

//# sourceMappingURL=gate-pass-page.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GATE_PASS_PAGE_TEMPLATE; });
var GATE_PASS_PAGE_TEMPLATE = "\n<ion-header>\n<common-main-header [title]=\"title\" [tools]=\"tools\"></common-main-header>\n</ion-header>\n<ion-content class=\"offwhite-bg main-content\">\n   <ion-grid  class=\"main-grid top-margin-content\" no-padding *ngIf=\"!enableEmptyMsg\">\n   \t<ion-row class=\"grading-body\">\n   \t\t<ion-col col-12 col-lg-3 col-md-3 class=\"gt-pass-col\">\n   \t\t\t<ion-row class=\"sec-header\">\n   \t\t\t\t<div class=\"r-align-flx hdr-text\">{{subTitle}}</div>\n   \t\t\t\t<button ion-button color=\"dark\" (click)=\"startAGatePass()\"><img src=\"assets/imgs/add-gt-pass.png\"></button>\n   \t\t\t</ion-row>\n   \t\t\t<ion-row class=\"gt-pass-lst\" *ngIf=\"gatePasses && gatePasses.length > 0\">\n               <!-- list button -->\n   \t\t\t\t<button ion-button color=\"dark\" class=\"gt-pst-itm\"\n   \t\t\t\t[ngClass]=\"{'selected-btn' :(currentGatePass && currentGatePass.id === gItem.id)}\" *ngFor=\"let gItem of gatePasses\"\n   \t\t\t\t (click)=\"selectPass(gItem.id)\">\n                  <div class=\"gt-pass-btn\" >{{gItem.label}}</div>\n                  <button ion-button class=\"gt-pass-del\"\n                   (click)=\"deleteGatePass(gItem.id)\"><ion-icon name=\"trash\"></ion-icon></button>\n               </button>\n               <!-- list button -->\n   \t\t\t</ion-row>\n   \t\t\t<ion-row class=\"empty-time\" *ngIf=\"gatePasses && gatePasses.length === 0 || !gatePasses\">\n   \t\t\t\t<ion-label> Create Gate Pass</ion-label>\n   \t\t\t</ion-row>\n   \t\t</ion-col>\n   \t\t<ion-col col-12 col-lg-9 col-md-9 class=\"stock-col\">\n   \t\t\t<ion-row class=\"sec-header\">\n   \t\t\t\t<div class=\"r-align-flx hdr-text\"></div>\n   \t\t\t\t<div class=\"total-qty\">Total QTY <span *ngIf=\"currentGatePass\">{{currentGatePass.total}}</span></div>\n   \t\t\t\t<button ion-button color=\"dark\" (click)=\"addItemToCurrentGatePass()\"><img src=\"assets/imgs/add-row.png\"></button>\n   \t\t\t</ion-row>\n\n   \t\t\t<ion-row class=\"gt-pass-tbl\">\n                <nc-smart-table #smartTable *ngIf=\"showTable\" [config]=\"tableConfig\" (onRowEdit)=\"editRow($event)\"\n                 (onRowDelete)=\"deleteItem($event)\"></nc-smart-table>\n   \t\t\t</ion-row>\n\n   \t\t\t<ion-row class=\"footr-row\">\n   \t\t\t<ion-col col-3>\n\t\t\t\t<div class=\"r-align-flx\">\n\t\t\t\t<ion-item no-padding class=\"fltr-dd\">\n    <ion-label class=\"fltr-label\" style=\"margin: 0\">{{newInputName.label}}</ion-label>\n    <ion-select [(ngModel)]=\"selectedWashingPlant\" interface=\"popover\" placeholder=\"{{newInputName.label}}\" class=\"fltr-select\">\n      <ion-option value=\"{{plant.name}}\" *ngFor=\"let plant of washingPlants\" (ionSelect)=\"setWashingPlant(newInputName.name)\">\n      {{plant.name}}</ion-option>\n    </ion-select>\n  </ion-item></div>\n  </ion-col> <ion-col col-7></ion-col><ion-col col-2 class=\"btn-col\">\n   \t\t\t\t<button ion-button color=\"dark\" class=\"page-button help-category-btn right-pdn\" (click)=\"saveGatePass()\">Done</button>\n   \t\t\t</ion-col>\n   \t\t\t</ion-row>\n   \t\t</ion-col>\n   \t</ion-row>\n   </ion-grid>\n    <ion-grid class=\"main-grid empty-gt-pas\" *ngIf=\"enableEmptyMsg\">\n     <ion-row class=\"message\">\n        Create Gate Pass\n     </ion-row>\n      <ion-row class=\"icon\">\n        <img src=\"assets/imgs/gt-ps-lg.png\">\n       </ion-row>\n       <ion-row>\n        <button ion-button color=\"dark\" (click)=\"startAGatePass()\">Create Gate Pass</button>\n     </ion-row>\n   </ion-grid>\n      <nc-page-navigator *ngIf=\"navigationList\" [navigationList]=\"navigationList\"></nc-page-navigator>\n</ion-content>\n<!-- <ion-footer  no-padding>\n   <ion-navbar  no-padding>\n      <ion-grid  no-padding>\n         <ion-row justify-content-end class=\"right-pdn\">\n            <ion-col col-5 col-lg-2 col-md-3 class=\"right-pdn\">\n               <button ion-button\n               class=\"page-button help-category-btn right-pdn\">\n               Done\n               </button>\n            </ion-col>\n         </ion-row>\n      </ion-grid>\n   </ion-navbar>\n</ion-footer> -->\n";
//# sourceMappingURL=gate-pass-page-template.js.map

/***/ })

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