(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-reset-password-reset-password-module"],{
/***/ "./src/app/models/reset-password.ts":
/*!******************************************!*\
!*** ./src/app/models/reset-password.ts ***!
\******************************************/
/*! exports provided: ResetPassword, ResetPasswordPut */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPassword", function() { return ResetPassword; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordPut", function() { return ResetPasswordPut; });
var ResetPassword = /** @class */ (function () {
function ResetPassword(resetPass) {
if (resetPass) {
this.password = resetPass.password;
this.passwordConfirm = resetPass.passwordConfirm;
}
}
return ResetPassword;
}());
var ResetPasswordPut = /** @class */ (function () {
function ResetPasswordPut(reset) {
if (reset) {
this.new_password = reset.new_password;
this.jwt = reset.jwt;
}
}
return ResetPasswordPut;
}());
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.html":
/*!***************************************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.html ***!
\***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "
"
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.scss":
/*!***************************************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.scss ***!
\***************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".svg-Group-1-dims {\n width: 56.14px;\n height: 69.38px; }\n\n.svg-Group-2-dims {\n width: 67.58px;\n height: 67.12px; }\n\n.svg-Group-3-dims {\n width: 87.39px;\n height: 70.11px; }\n\n.svg-Group-34-dims {\n width: 101.57px;\n height: 109.85px; }\n\n.svg-Group-4-dims {\n width: 98.56px;\n height: 109px; }\n\n.svg-Group-5-dims {\n width: 66.47px;\n height: 60.9px; }\n\n.svg-Group-6-dims {\n width: 82.45px;\n height: 65.73px; }\n\n.svg-Group_15501-dims {\n width: 99.99px;\n height: 100px; }\n\n.svg-app-store-dims {\n width: 322.9px;\n height: 45.03px; }\n\n.svg-feature-1-dims {\n width: 64.5px;\n height: 80px; }\n\n.svg-feature-2-dims {\n width: 78.5px;\n height: 80px; }\n\n.svg-feature-3-dims {\n width: 80px;\n height: 80px; }\n\n.svg-feature-4-dims {\n width: 73.92px;\n height: 80px; }\n\n.svg-icon-back-dims {\n width: 12.27px;\n height: 20.89px; }\n\n.svg-icon-checked-dims {\n width: 32px;\n height: 32px; }\n\n.svg-icon-clear-dims {\n width: 17.67px;\n height: 17.67px; }\n\n.svg-icon-close-dims {\n width: 20.43px;\n height: 20.71px; }\n\n.svg-icon-menu-dims {\n width: 24px;\n height: 19px; }\n\n.svg-icon-next-dims {\n width: 28.16px;\n height: 47.93px; }\n\n.svg-icon-prev-dims {\n width: 28.16px;\n height: 47.93px; }\n\n.svg-icon-success-dims {\n width: 94.29px;\n height: 94.29px; }\n\n.svg-onedna-cancer-dims {\n width: 145.33px;\n height: 55px; }\n\n.svg-onedna-promotion-dims {\n width: 104px;\n height: 104px; }\n\n.svg-onedna-web-logo-dims {\n width: 1436px;\n height: 200px; }\n\n.svg-onedna-web-mobile-logo-dims {\n width: 672px;\n height: 136px; }\n\n.svg-onedna-wellness-dims {\n width: 145.75px;\n height: 55px; }\n\n.svg-pdf-file-dims {\n width: 48.79px;\n height: 63.54px; }\n\n.svg-tab-onedna-dims {\n width: 74px;\n height: 77px; }\n\n.svg-tab-wellness-cancer-dims {\n width: 83.87px;\n height: 97.16px; }\n\n.svg-icon-percent-dims {\n width: 45px;\n height: 32.5px; }\n\n.svg-icon-percent-zh-dims {\n width: 45px;\n height: 32.5px; }\n\n.success {\n padding-top: 10%;\n padding-bottom: 20%; }\n\n.center-block {\n margin-bottom: 1.625rem; }\n\n.title {\n color: #153438;\n font-size: 1.75rem;\n margin-bottom: 2.75rem; }\n\n.description {\n display: block;\n color: #101010;\n font-size: 1rem;\n max-width: 600px;\n margin: 0.625rem auto;\n text-align: center; }\n\n@media only screen and (max-width: 768px) {\n .success {\n padding-top: 30%; }\n .title {\n margin-bottom: 2.5625rem; }\n .description {\n line-height: 1.5rem;\n margin: 1.75rem auto;\n max-width: 285px; } }\n"
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.ts":
/*!*************************************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.ts ***!
\*************************************************************************************************************/
/*! exports provided: ResetPasswordSuccessComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordSuccessComponent", function() { return ResetPasswordSuccessComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/constants */ "./src/app/constants/index.ts");
/* harmony import */ var _services_data_shared_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../services/data-shared.service */ "./src/app/services/data-shared.service.ts");
/* harmony import */ var src_app_services_mixpanel_manager_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/mixpanel-manager.service */ "./src/app/services/mixpanel-manager.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ResetPasswordSuccessComponent = /** @class */ (function () {
function ResetPasswordSuccessComponent(dataShared, mixpanelManagerService) {
this.dataShared = dataShared;
this.mixpanelManagerService = mixpanelManagerService;
this.eventName = 'Page Loaded - Web';
this.pageName = 'Reset PW: Success - Web';
this.signInLink = '';
}
ResetPasswordSuccessComponent.prototype.ngOnInit = function () {
this.signInLink = "/" + this.dataShared.currentLang + src_app_constants__WEBPACK_IMPORTED_MODULE_1__["SIGN_IN"];
this.mixpanelTrackPageLoaded();
};
ResetPasswordSuccessComponent.prototype.mixpanelTrackPageLoaded = function () {
var peopleProperties = {
'Last Reset Password date': new Date().toISOString()
};
this.mixpanelManagerService.run('setPeoplePropertyIncrement', 'Number of Reset Password attempts');
this.mixpanelManagerService.run('setUserProperties', peopleProperties);
this.mixpanelManagerService.run('trackingPageLoaded', this.eventName, this.pageName);
};
ResetPasswordSuccessComponent.prototype.mixpanelTrackClick = function () {
this.mixpanelManagerService.run('trackingTabClicked', 'Reset PW: Back To Sign In - Web');
};
ResetPasswordSuccessComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-reset-password-success',
template: __webpack_require__(/*! ./reset-password-success.component.html */ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.html"),
styles: [__webpack_require__(/*! ./reset-password-success.component.scss */ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.scss")]
}),
__metadata("design:paramtypes", [_services_data_shared_service__WEBPACK_IMPORTED_MODULE_2__["DataSharedService"],
src_app_services_mixpanel_manager_service__WEBPACK_IMPORTED_MODULE_3__["MixpanelManagerService"]])
], ResetPasswordSuccessComponent);
return ResetPasswordSuccessComponent;
}());
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password/reset-password.component.html":
/*!***********************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password/reset-password.component.html ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n\n
\n \n \n
{{ 'resetPwd.title' | translate }}
\n
{{ 'resetPwd.description' | translate }}
\n
\n
"
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password/reset-password.component.scss":
/*!***********************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password/reset-password.component.scss ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".svg-Group-1-dims {\n width: 56.14px;\n height: 69.38px; }\n\n.svg-Group-2-dims {\n width: 67.58px;\n height: 67.12px; }\n\n.svg-Group-3-dims {\n width: 87.39px;\n height: 70.11px; }\n\n.svg-Group-34-dims {\n width: 101.57px;\n height: 109.85px; }\n\n.svg-Group-4-dims {\n width: 98.56px;\n height: 109px; }\n\n.svg-Group-5-dims {\n width: 66.47px;\n height: 60.9px; }\n\n.svg-Group-6-dims {\n width: 82.45px;\n height: 65.73px; }\n\n.svg-Group_15501-dims {\n width: 99.99px;\n height: 100px; }\n\n.svg-app-store-dims {\n width: 322.9px;\n height: 45.03px; }\n\n.svg-feature-1-dims {\n width: 64.5px;\n height: 80px; }\n\n.svg-feature-2-dims {\n width: 78.5px;\n height: 80px; }\n\n.svg-feature-3-dims {\n width: 80px;\n height: 80px; }\n\n.svg-feature-4-dims {\n width: 73.92px;\n height: 80px; }\n\n.svg-icon-back-dims {\n width: 12.27px;\n height: 20.89px; }\n\n.svg-icon-checked-dims {\n width: 32px;\n height: 32px; }\n\n.svg-icon-clear-dims {\n width: 17.67px;\n height: 17.67px; }\n\n.svg-icon-close-dims {\n width: 20.43px;\n height: 20.71px; }\n\n.svg-icon-menu-dims {\n width: 24px;\n height: 19px; }\n\n.svg-icon-next-dims {\n width: 28.16px;\n height: 47.93px; }\n\n.svg-icon-prev-dims {\n width: 28.16px;\n height: 47.93px; }\n\n.svg-icon-success-dims {\n width: 94.29px;\n height: 94.29px; }\n\n.svg-onedna-cancer-dims {\n width: 145.33px;\n height: 55px; }\n\n.svg-onedna-promotion-dims {\n width: 104px;\n height: 104px; }\n\n.svg-onedna-web-logo-dims {\n width: 1436px;\n height: 200px; }\n\n.svg-onedna-web-mobile-logo-dims {\n width: 672px;\n height: 136px; }\n\n.svg-onedna-wellness-dims {\n width: 145.75px;\n height: 55px; }\n\n.svg-pdf-file-dims {\n width: 48.79px;\n height: 63.54px; }\n\n.svg-tab-onedna-dims {\n width: 74px;\n height: 77px; }\n\n.svg-tab-wellness-cancer-dims {\n width: 83.87px;\n height: 97.16px; }\n\n.svg-icon-percent-dims {\n width: 45px;\n height: 32.5px; }\n\n.svg-icon-percent-zh-dims {\n width: 45px;\n height: 32.5px; }\n\n.sign-in {\n width: 36.5%;\n margin: 0 auto;\n padding: 9.375rem 0 13.4375rem;\n text-align: center; }\n\n.title {\n font-size: 1.75rem;\n font-weight: 600;\n text-transform: none;\n margin-bottom: 2.125rem; }\n\n.logo {\n height: 1.3125rem; }\n\n.description {\n font-size: 1.125rem;\n line-height: 1.375rem;\n margin-bottom: 2.125rem; }\n\n.submit-btn {\n margin-top: 1.5625rem;\n min-width: 16.793125rem;\n padding-left: 3.8rem;\n padding-right: 3.8rem; }\n\n.forget {\n display: block;\n color: #1B6FE2;\n font-size: 1.125rem;\n margin-top: 2.3125rem; }\n\n@media only screen and (min-width: 768px) and (max-width: 991px) {\n .sign-in {\n width: 60%;\n padding-bottom: 9.375rem; } }\n\n@media only screen and (max-width: 767px) {\n .sign-in {\n width: 92%;\n padding-top: 6.375rem;\n padding-bottom: 6.25rem; }\n .title {\n font-size: 1.5625rem;\n margin-bottom: 1.25rem; }\n .logo {\n height: 1.0625rem; }\n .description {\n font-size: 0.9375rem; }\n .submit-btn {\n padding-left: 4.375rem;\n padding-right: 4.375rem; }\n .forget {\n font-size: 1rem;\n margin-top: 2.625rem;\n margin-bottom: 3.9375rem; } }\n"
/***/ }),
/***/ "./src/app/modules/reset-password/container/reset-password/reset-password.component.ts":
/*!*********************************************************************************************!*\
!*** ./src/app/modules/reset-password/container/reset-password/reset-password.component.ts ***!
\*********************************************************************************************/
/*! exports provided: ResetPasswordComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordComponent", function() { return ResetPasswordComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _services_data_shared_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../services/data-shared.service */ "./src/app/services/data-shared.service.ts");
/* harmony import */ var _constants_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../constants/index */ "./src/app/constants/index.ts");
/* harmony import */ var _models_reset_password__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../models/reset-password */ "./src/app/models/reset-password.ts");
/* harmony import */ var _services_reset_password_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../services/reset-password.service */ "./src/app/services/reset-password.service.ts");
/* harmony import */ var _services_change_language_url_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../services/change-language-url.service */ "./src/app/services/change-language-url.service.ts");
/* harmony import */ var _services_loading_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../services/loading.service */ "./src/app/services/loading.service.ts");
/* harmony import */ var src_app_services_mixpanel_manager_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/services/mixpanel-manager.service */ "./src/app/services/mixpanel-manager.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ResetPasswordComponent = /** @class */ (function () {
function ResetPasswordComponent(formBuilder, router, dataService, activatedRoute, resetPasswordService, changeLanguageUrlService, loadingService, mixpanelManagerService) {
var _this = this;
this.formBuilder = formBuilder;
this.router = router;
this.dataService = dataService;
this.activatedRoute = activatedRoute;
this.resetPasswordService = resetPasswordService;
this.changeLanguageUrlService = changeLanguageUrlService;
this.loadingService = loadingService;
this.mixpanelManagerService = mixpanelManagerService;
this.eventName = 'Page Loaded - Web';
this.pageName = 'Reset Password Page - Web';
this.invalidMatch = false;
this.invalidShortPass = false;
this.invalidForm = false;
this.activatedRoute.queryParams.subscribe(function (params) {
_this.jwt = params['jwt'];
});
this.createForm();
}
ResetPasswordComponent.prototype.ngOnInit = function () {
if (!this.jwt) {
this.router.navigateByUrl("/" + this.dataService.currentLang + _constants_index__WEBPACK_IMPORTED_MODULE_4__["FORGET_PASSWORD_URI"]);
}
this.mixpanelManagerService.run('trackingPageLoaded', this.eventName, this.pageName);
};
ResetPasswordComponent.prototype.createForm = function () {
this.resetForm = this.formBuilder.group({
password: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required,
])],
passwordConfirm: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required,
])]
});
};
ResetPasswordComponent.prototype.handleCheckValid = function () {
this.invalidShortPass = false;
this.invalidMatch = false;
this.invalidForm = false;
};
ResetPasswordComponent.prototype.checkValidPassword = function (formValue) {
if (formValue.password.length < 8 || formValue.passwordConfirm.length < 8) {
this.invalidShortPass = true;
this.invalidForm = true;
return;
}
if (formValue.password !== formValue.passwordConfirm) {
this.invalidMatch = true;
this.invalidForm = true;
}
};
ResetPasswordComponent.prototype.handleReset = function () {
var _this = this;
var formValue = new _models_reset_password__WEBPACK_IMPORTED_MODULE_5__["ResetPassword"](this.resetForm.value);
this.checkValidPassword(formValue);
this.mixpanelTrackSubmitBtnClicked();
if (this.invalidForm) {
return;
}
this.loadingService.enableLoading();
var dataPut = new _models_reset_password__WEBPACK_IMPORTED_MODULE_5__["ResetPasswordPut"](null);
dataPut.new_password = formValue.password;
dataPut.jwt = this.jwt;
this.resetPasswordService.resetPassword(dataPut).subscribe(function (data) {
_this.loadingService.disableLoading();
_this.router.navigateByUrl(_this.changeLanguageUrlService.changeLanguageUrl("" + _constants_index__WEBPACK_IMPORTED_MODULE_4__["RESET_PASSWORD_SUCCESS"]));
}, function (error) {
_this.loadingService.disableLoading();
});
};
ResetPasswordComponent.prototype.mixpanelTrackSubmitBtnClicked = function () {
this.mixpanelManagerService.run('trackingTabClicked', 'Reset PW - Web');
};
ResetPasswordComponent = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-reset-password',
template: __webpack_require__(/*! ./reset-password.component.html */ "./src/app/modules/reset-password/container/reset-password/reset-password.component.html"),
styles: [__webpack_require__(/*! ./reset-password.component.scss */ "./src/app/modules/reset-password/container/reset-password/reset-password.component.scss")]
}),
__metadata("design:paramtypes", [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"],
_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
_services_data_shared_service__WEBPACK_IMPORTED_MODULE_3__["DataSharedService"],
_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"],
_services_reset_password_service__WEBPACK_IMPORTED_MODULE_6__["ResetPasswordService"],
_services_change_language_url_service__WEBPACK_IMPORTED_MODULE_7__["ChangeLanguageUrlService"],
_services_loading_service__WEBPACK_IMPORTED_MODULE_8__["LoadingService"],
src_app_services_mixpanel_manager_service__WEBPACK_IMPORTED_MODULE_9__["MixpanelManagerService"]])
], ResetPasswordComponent);
return ResetPasswordComponent;
}());
/***/ }),
/***/ "./src/app/modules/reset-password/reset-password-routing.module.ts":
/*!*************************************************************************!*\
!*** ./src/app/modules/reset-password/reset-password-routing.module.ts ***!
\*************************************************************************/
/*! exports provided: ResetPasswordRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordRoutingModule", function() { return ResetPasswordRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _container_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./container/reset-password/reset-password.component */ "./src/app/modules/reset-password/container/reset-password/reset-password.component.ts");
/* harmony import */ var _container_reset_password_success_reset_password_success_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./container/reset-password-success/reset-password-success.component */ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.ts");
var __decorate = (undefined && undefined.__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 routes = [
{
path: '',
component: _container_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_2__["ResetPasswordComponent"],
},
{
path: 'success',
component: _container_reset_password_success_reset_password_success_component__WEBPACK_IMPORTED_MODULE_3__["ResetPasswordSuccessComponent"],
}
];
var ResetPasswordRoutingModule = /** @class */ (function () {
function ResetPasswordRoutingModule() {
}
ResetPasswordRoutingModule = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
imports: [
_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)
],
exports: [
_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]
]
})
], ResetPasswordRoutingModule);
return ResetPasswordRoutingModule;
}());
/***/ }),
/***/ "./src/app/modules/reset-password/reset-password.module.ts":
/*!*****************************************************************!*\
!*** ./src/app/modules/reset-password/reset-password.module.ts ***!
\*****************************************************************/
/*! exports provided: ResetPasswordModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordModule", function() { return ResetPasswordModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared.module */ "./src/app/modules/shared.module.ts");
/* harmony import */ var _reset_password_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reset-password-routing.module */ "./src/app/modules/reset-password/reset-password-routing.module.ts");
/* harmony import */ var _container_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./container/reset-password/reset-password.component */ "./src/app/modules/reset-password/container/reset-password/reset-password.component.ts");
/* harmony import */ var _container_reset_password_success_reset_password_success_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./container/reset-password-success/reset-password-success.component */ "./src/app/modules/reset-password/container/reset-password-success/reset-password-success.component.ts");
var __decorate = (undefined && undefined.__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 ResetPasswordModule = /** @class */ (function () {
function ResetPasswordModule() {
}
ResetPasswordModule = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
_reset_password_routing_module__WEBPACK_IMPORTED_MODULE_3__["ResetPasswordRoutingModule"]
],
declarations: [
_container_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_4__["ResetPasswordComponent"],
_container_reset_password_success_reset_password_success_component__WEBPACK_IMPORTED_MODULE_5__["ResetPasswordSuccessComponent"]
]
})
], ResetPasswordModule);
return ResetPasswordModule;
}());
/***/ }),
/***/ "./src/app/services/reset-password.service.ts":
/*!****************************************************!*\
!*** ./src/app/services/reset-password.service.ts ***!
\****************************************************/
/*! exports provided: ResetPasswordService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordService", function() { return ResetPasswordService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api.service */ "./src/app/services/api.service.ts");
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ResetPasswordService = /** @class */ (function () {
function ResetPasswordService(apiService) {
this.apiService = apiService;
}
ResetPasswordService.prototype.resetPassword = function (account) {
return this.apiService.put('password-with-reset', account);
};
ResetPasswordService = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
providedIn: 'root'
}),
__metadata("design:paramtypes", [_api_service__WEBPACK_IMPORTED_MODULE_1__["ApiService"]])
], ResetPasswordService);
return ResetPasswordService;
}());
/***/ })
}]);
//# sourceMappingURL=modules-reset-password-reset-password-module.js.map