webpackJsonp([40],{

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivationPageModule", function() { return ActivationPageModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__activation_page__ = __webpack_require__(1793);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__ = __webpack_require__(110);
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;
};
/**
 * Created by shadeeka on 4/26/18.
 */




var ActivationPageModule = /** @class */ (function () {
    function ActivationPageModule() {
    }
    ActivationPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_0__activation_page__["a" /* ActivationPage */]
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["j" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_0__activation_page__["a" /* ActivationPage */]),
                __WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__["b" /* TranslateModule */].forChild()
            ],
            exports: [
                __WEBPACK_IMPORTED_MODULE_0__activation_page__["a" /* ActivationPage */]
            ]
        })
    ], ActivationPageModule);
    return ActivationPageModule;
}());

//# sourceMappingURL=activation-page.module.js.map

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ActivationPage; });
/* 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__providers_activation_service_activation_service__ = __webpack_require__(112);
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);
};
/**
 * Created by shadeeka on 4/26/18.
 */




var ActivationPage = /** @class */ (function () {
    function ActivationPage(navCtrl, logger, actProvider) {
        this.navCtrl = navCtrl;
        this.logger = logger;
        this.actProvider = actProvider;
        this.errorMsg = 'no message';
        this.model = { token: '' };
        this.loginProgress = false;
    }
    ActivationPage.prototype.ionViewDidEnter = function () {
        this.error = false;
        this.loginProgress = true;
    };
    ActivationPage.prototype.onClickActivate = function () {
        var _this = this;
        this.error = false;
        this.loginProgress = true;
        this.actProvider.verifyToken(this.model.token).subscribe(function (res) {
            _this.actProvider.doActivate(_this.model.token).then(function () {
                _this.logger.debug('activation token saved success');
                _this.loginProgress = false;
                _this.navCtrl.setRoot('AppselectPage', { apps: res }, {
                    animate: true,
                    animation: 'slide',
                    direction: 'left'
                });
            }, function (e) {
                _this.logger.error('activation failed');
                _this.errorMsg = 'Error occurred while saving token into the device.';
                _this.error = true;
                _this.loginProgress = true;
            });
        }, function (e) {
            _this.logger.error('activation failed');
            _this.errorMsg = e['msg'];
            _this.error = true;
            _this.model.token = '';
            _this.loginProgress = true;
        });
    };
    ActivationPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'page-activation',template:/*ion-inline-start:"/disk1/jenkins/workspace/ncinga_spark_installation_apk/src/pages/activation/activation-page.html"*/'<ion-header>\n    <ion-navbar color="mheader">\n        <ion-title>Activation</ion-title>\n    </ion-navbar>\n</ion-header>\n<ion-content>\n    <ion-card class="st-activation-card">\n        <ion-card-content>\n            <div class="upper-section">\n                <ion-grid>\n                    <ion-row>\n                        <ion-col align-self-center>\n                            <div>\n                                <div class="activation-logo"></div>\n                                <div class="page-title">\n                                    <h4>Activate your app</h4>\n                                    <p>Please enter the product activation code</p>\n                                </div>\n                            </div>\n\n                        </ion-col>\n                    </ion-row>\n                </ion-grid>\n            </div>\n            <div class="lower-section">\n                <form #actForm="ngForm">\n                    <ion-item class="st-input-wrapper">\n                        <ion-input type="text" [(ngModel)]="model.token" spellcheck="false" autocapitalize="off" required\n                                   #token="ngModel" name="token" placeholder="Enter Token here" maxlength="15"></ion-input>\n                        <p [hidden]="token.valid || submitted == false" color="danger" class="error-msg" padding-left>\n                            Activation code is required\n                        </p>\n                    </ion-item>\n                    <button ion-button  [disabled]="!actForm.form.valid || !loginProgress" type="submit" color="calm" (click)="onClickActivate()">Continue\n                    </button>\n                </form>\n                <div *ngIf="error" class="net-error">\n                    <p>{{\'ACT_ERROR\'|translate:user}}</p>\n                    <p>{{errorMsg}}</p>\n                </div>\n            </div>\n        </ion-card-content>\n    </ion-card>\n</ion-content>'/*ion-inline-end:"/disk1/jenkins/workspace/ncinga_spark_installation_apk/src/pages/activation/activation-page.html"*/
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["o" /* NavController */],
            __WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */],
            __WEBPACK_IMPORTED_MODULE_3__providers_activation_service_activation_service__["a" /* ActivationService */]])
    ], ActivationPage);
    return ActivationPage;
}());

//# sourceMappingURL=activation-page.js.map

/***/ })

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