webpackJsonp([14],{

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppSwitchingPageModule", function() { return AppSwitchingPageModule; });
/* 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__app_switching_page__ = __webpack_require__(1604);
/* 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__(1001);
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 AppSwitchingPageModule = /** @class */ (function () {
    function AppSwitchingPageModule() {
    }
    AppSwitchingPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            declarations: [__WEBPACK_IMPORTED_MODULE_2__app_switching_page__["a" /* AppSwitchingPage */]],
            imports: [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__app_switching_page__["a" /* AppSwitchingPage */]), __WEBPACK_IMPORTED_MODULE_4__component_common_module__["a" /* StoreComponentsModule */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__["j" /* CoreModule */]],
            exports: [__WEBPACK_IMPORTED_MODULE_2__app_switching_page__["a" /* AppSwitchingPage */]]
        })
    ], AppSwitchingPageModule);
    return AppSwitchingPageModule;
}());

//# sourceMappingURL=app-switching-page.module.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppSwitchingPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_switching_page_template__ = __webpack_require__(1605);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ngx_logger__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ministore_utils__ = __webpack_require__(37);
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 AppSwitchingPage = /** @class */ (function () {
    function AppSwitchingPage(logger, navManager, navParams, appPro) {
        this.logger = logger;
        this.navManager = navManager;
        this.navParams = navParams;
        this.appPro = appPro;
    }
    AppSwitchingPage.prototype.configurePage = function (value) {
        if (value) {
            this.title = value.title;
            this.app_configs = value.app_configs;
        }
    };
    AppSwitchingPage.prototype.goToApp = function (app_type) {
        try {
            var conf = void 0;
            if (app_type === 'IN') {
                conf = this.conf_in;
            }
            else if (app_type === 'OUT') {
                conf = this.conf_out;
            }
            if (conf) {
                var views = conf['views'];
                this.appPro.setData(views);
                var veiw_name = __WEBPACK_IMPORTED_MODULE_5__ministore_utils__["a" /* MUtils */].getLandingPageName(views);
                this.navManager.nextView(veiw_name, '');
            }
        }
        catch (e) {
            this.logger.debug(e);
        }
    };
    AppSwitchingPage.prototype.ionViewDidLoad = function () {
        this.configurePage(this.navParams.data.conf);
        this.conf_in = this.app_configs.find(function (c) { return c.app_type === 'IN'; });
        this.conf_out = this.app_configs.find(function (c) { return c.app_type === 'OUT'; });
    };
    AppSwitchingPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["i" /* IonicPage */])(),
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'app-switching-page',
            template: __WEBPACK_IMPORTED_MODULE_1__app_switching_page_template__["a" /* APP_SWITCHING_PAGE */]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_4_ngx_logger__["b" /* NGXLogger */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__["m" /* NavigationManager */],
            __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["p" /* NavParams */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist__["c" /* AppMasterProvider */]])
    ], AppSwitchingPage);
    return AppSwitchingPage;
}());

//# sourceMappingURL=app-switching-page.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return APP_SWITCHING_PAGE; });
var APP_SWITCHING_PAGE = "\n<ion-header>\n    <common-main-header [title]=\"title\"></common-main-header>\n</ion-header>\n<ion-content class=\"main-content\">\n        <ion-grid class=\"main-grid\">\n            <ion-row class=\"app-select-row \">\n                <ion-col col-sm-12 col-md-12 col-lg-6 text-sm-center text-md-center text-lg-right padding class=\"app-select-col\">\n                    <button ion-button class=\"select-btn btn-in\" (click)=\"goToApp('IN')\">\n                        <ion-icon class=\"direct-btn icon-in\" name=\"ios-log-in-outline\"></ion-icon>\n                        <span class=\"app-name\" *ngIf=\"conf_in\">{{conf_in.app_name}}</span>\n                    </button>\n                </ion-col>\n                <ion-col col-sm-12 col-md-12 col-lg-6 text-sm-center text-md-center text-lg-left padding class=\"app-select-col\">\n                    <button ion-button class=\"select-btn btn-out\" (click)=\"goToApp('OUT')\">\n                        <ion-icon class=\"direct-btn icon-out\" name=\"ios-log-out-outline\"></ion-icon>\n                        <span class=\"app-name\" *ngIf=\"conf_out\">{{conf_out.app_name}}</span>\n                    </button>\n                </ion-col>\n            </ion-row>\n        </ion-grid>\n</ion-content>\n";
//# sourceMappingURL=app-switching-page-template.js.map

/***/ })

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