@rxap/authentication 12.3.0 → 13.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/_theming.scss +1 -1
  2. package/components/README.md +3 -0
  3. package/components/package.json +5 -5
  4. package/components/public_api.d.ts +0 -1
  5. package/esm2020/components/lib/authentication-container/authentication-container.component.mjs +38 -0
  6. package/esm2020/components/lib/authentication-container/authentication-container.component.module.mjs +30 -0
  7. package/esm2020/components/lib/authentication.module.mjs +29 -0
  8. package/esm2020/components/lib/fade-animation.mjs +14 -0
  9. package/esm2020/components/lib/loading/loading.component.mjs +38 -0
  10. package/esm2020/components/lib/loading/loading.component.module.mjs +26 -0
  11. package/esm2020/components/lib/login/login.component.mjs +84 -0
  12. package/esm2020/components/lib/login/login.component.module.mjs +70 -0
  13. package/esm2020/components/lib/login/login.form.mjs +115 -0
  14. package/esm2020/components/lib/reset-password/reset-password.component.mjs +39 -0
  15. package/esm2020/components/lib/reset-password/reset-password.component.module.mjs +66 -0
  16. package/esm2020/components/lib/reset-password/reset-password.form.mjs +115 -0
  17. package/esm2020/components/lib/routes.mjs +32 -0
  18. package/esm2020/components/public_api.mjs +13 -0
  19. package/esm2020/components/rxap-authentication-components.mjs +5 -0
  20. package/esm2020/index.mjs +8 -0
  21. package/esm2020/lib/authentication-routing.service.mjs +46 -0
  22. package/esm2020/lib/authentication.guard.mjs +110 -0
  23. package/esm2020/lib/authentication.service.mjs +72 -0
  24. package/esm2020/lib/register.service.mjs +18 -0
  25. package/esm2020/lib/sign-out.directive.mjs +48 -0
  26. package/esm2020/lib/tokens.mjs +3 -0
  27. package/esm2020/lib/user.service.mjs +16 -0
  28. package/esm2020/rxap-authentication.mjs +5 -0
  29. package/fesm2015/rxap-authentication-components.mjs +629 -0
  30. package/fesm2015/rxap-authentication-components.mjs.map +1 -0
  31. package/fesm2015/{rxap-authentication.js → rxap-authentication.mjs} +53 -59
  32. package/fesm2015/rxap-authentication.mjs.map +1 -0
  33. package/{fesm2015/rxap-authentication-components.js → fesm2020/rxap-authentication-components.mjs} +83 -112
  34. package/fesm2020/rxap-authentication-components.mjs.map +1 -0
  35. package/fesm2020/rxap-authentication.mjs +298 -0
  36. package/fesm2020/rxap-authentication.mjs.map +1 -0
  37. package/lib/authentication.service.d.ts +1 -10
  38. package/package.json +50 -28
  39. package/bundles/rxap-authentication-components.umd.js +0 -1029
  40. package/bundles/rxap-authentication-components.umd.js.map +0 -1
  41. package/bundles/rxap-authentication.umd.js +0 -705
  42. package/bundles/rxap-authentication.umd.js.map +0 -1
  43. package/esm2015/components/lib/authentication-container/authentication-container.component.js +0 -44
  44. package/esm2015/components/lib/authentication-container/authentication-container.component.js.map +0 -1
  45. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js +0 -30
  46. package/esm2015/components/lib/authentication-container/authentication-container.component.module.js.map +0 -1
  47. package/esm2015/components/lib/authentication.module.js +0 -29
  48. package/esm2015/components/lib/authentication.module.js.map +0 -1
  49. package/esm2015/components/lib/fade-animation.js +0 -14
  50. package/esm2015/components/lib/fade-animation.js.map +0 -1
  51. package/esm2015/components/lib/loading/loading.component.js +0 -45
  52. package/esm2015/components/lib/loading/loading.component.js.map +0 -1
  53. package/esm2015/components/lib/loading/loading.component.module.js +0 -26
  54. package/esm2015/components/lib/loading/loading.component.module.js.map +0 -1
  55. package/esm2015/components/lib/login/login.component.js +0 -94
  56. package/esm2015/components/lib/login/login.component.js.map +0 -1
  57. package/esm2015/components/lib/login/login.component.module.js +0 -70
  58. package/esm2015/components/lib/login/login.component.module.js.map +0 -1
  59. package/esm2015/components/lib/login/login.form.js +0 -115
  60. package/esm2015/components/lib/login/login.form.js.map +0 -1
  61. package/esm2015/components/lib/reset-password/reset-password.component.js +0 -46
  62. package/esm2015/components/lib/reset-password/reset-password.component.js.map +0 -1
  63. package/esm2015/components/lib/reset-password/reset-password.component.module.js +0 -66
  64. package/esm2015/components/lib/reset-password/reset-password.component.module.js.map +0 -1
  65. package/esm2015/components/lib/reset-password/reset-password.form.js +0 -115
  66. package/esm2015/components/lib/reset-password/reset-password.form.js.map +0 -1
  67. package/esm2015/components/lib/routes.js +0 -32
  68. package/esm2015/components/lib/routes.js.map +0 -1
  69. package/esm2015/components/public_api.js +0 -14
  70. package/esm2015/components/public_api.js.map +0 -1
  71. package/esm2015/components/rxap-authentication-components.js +0 -5
  72. package/esm2015/components/rxap-authentication-components.js.map +0 -1
  73. package/esm2015/index.js +0 -8
  74. package/esm2015/index.js.map +0 -1
  75. package/esm2015/lib/authentication-routing.service.js +0 -46
  76. package/esm2015/lib/authentication-routing.service.js.map +0 -1
  77. package/esm2015/lib/authentication.guard.js +0 -113
  78. package/esm2015/lib/authentication.guard.js.map +0 -1
  79. package/esm2015/lib/authentication.service.js +0 -87
  80. package/esm2015/lib/authentication.service.js.map +0 -1
  81. package/esm2015/lib/register.service.js +0 -18
  82. package/esm2015/lib/register.service.js.map +0 -1
  83. package/esm2015/lib/sign-out.directive.js +0 -51
  84. package/esm2015/lib/sign-out.directive.js.map +0 -1
  85. package/esm2015/lib/tokens.js +0 -3
  86. package/esm2015/lib/tokens.js.map +0 -1
  87. package/esm2015/lib/user.service.js +0 -16
  88. package/esm2015/lib/user.service.js.map +0 -1
  89. package/esm2015/rxap-authentication.js +0 -5
  90. package/esm2015/rxap-authentication.js.map +0 -1
  91. package/fesm2015/rxap-authentication-components.js.map +0 -1
  92. package/fesm2015/rxap-authentication.js.map +0 -1
@@ -0,0 +1,629 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Inject, INJECTOR, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import * as i11 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import { __decorate, __metadata, __awaiter } from 'tslib';
6
+ import * as i8 from '@rxap/forms';
7
+ import { UseFormControl, RxapFormControl, RxapForm, RXAP_FORM_DEFINITION_BUILDER, RxapFormBuilder, RXAP_FORM_DEFINITION, RXAP_FORM_SUBMIT_METHOD, RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, RxapFormsModule, ControlValidator, ControlSetValue } from '@rxap/forms';
8
+ import * as i7 from '@angular/forms';
9
+ import { Validators, ReactiveFormsModule } from '@angular/forms';
10
+ import * as i1 from '@rxap/config';
11
+ import { ConfigService } from '@rxap/config';
12
+ import * as i1$1 from '@angular/router';
13
+ import { Router, RouterModule, ActivatedRoute } from '@angular/router';
14
+ import * as i2 from '@rxap/authentication';
15
+ import { RxapAuthenticationService, RxapAuthenticationGuard } from '@rxap/authentication';
16
+ import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
17
+ import { trigger, state, style, transition, animate } from '@angular/animations';
18
+ import * as i14 from '@angular/material/snack-bar';
19
+ import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
20
+ import { ToggleSubject } from '@rxap/utilities/rxjs';
21
+ import * as i1$2 from '@angular/material/icon';
22
+ import { MatIconModule } from '@angular/material/icon';
23
+ import * as i2$1 from '@angular/material/form-field';
24
+ import * as i3 from '@angular/material/button';
25
+ import { MatButtonModule } from '@angular/material/button';
26
+ import * as i4 from '@angular/material/checkbox';
27
+ import { MatCheckboxModule } from '@angular/material/checkbox';
28
+ import * as i5 from '@angular/material/progress-spinner';
29
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
30
+ import * as i6 from '@angular/material/progress-bar';
31
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
32
+ import * as i9 from '@angular/flex-layout/flex';
33
+ import * as i10 from '@angular/material/input';
34
+ import { MatInputModule } from '@angular/material/input';
35
+ import * as i12 from '@angular/material/tooltip';
36
+ import { MatTooltipModule } from '@angular/material/tooltip';
37
+ import { FlexLayoutModule } from '@angular/flex-layout';
38
+ import { MatCardModule } from '@angular/material/card';
39
+ import { MatToolbarModule } from '@angular/material/toolbar';
40
+ import { take, map, switchMap, tap, filter } from 'rxjs/operators';
41
+
42
+ let LoginForm = class LoginForm {
43
+ constructor(config) {
44
+ this.config = config;
45
+ this.loading = true;
46
+ this.loginFailed = false;
47
+ }
48
+ rxapOnInit() {
49
+ const email = this.config.get('authentication.default.email');
50
+ if (email) {
51
+ this.email.setValue(email);
52
+ }
53
+ const password = this.config.get('authentication.default.password');
54
+ if (password) {
55
+ this.password.setValue(password);
56
+ }
57
+ }
58
+ };
59
+ LoginForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginForm, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
60
+ LoginForm.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginForm });
61
+ __decorate([
62
+ UseFormControl({
63
+ validators: [Validators.required, Validators.email],
64
+ }),
65
+ __metadata("design:type", RxapFormControl)
66
+ ], LoginForm.prototype, "email", void 0);
67
+ __decorate([
68
+ UseFormControl({
69
+ validators: [Validators.required],
70
+ }),
71
+ __metadata("design:type", RxapFormControl)
72
+ ], LoginForm.prototype, "password", void 0);
73
+ __decorate([
74
+ UseFormControl({
75
+ state: true,
76
+ }),
77
+ __metadata("design:type", RxapFormControl)
78
+ ], LoginForm.prototype, "remember", void 0);
79
+ LoginForm = __decorate([
80
+ RxapForm({
81
+ id: 'rxap-login',
82
+ providers: [
83
+ {
84
+ provide: ConfigService,
85
+ useExisting: ConfigService,
86
+ },
87
+ ],
88
+ }),
89
+ __metadata("design:paramtypes", [ConfigService])
90
+ ], LoginForm);
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginForm, decorators: [{
92
+ type: Injectable
93
+ }], ctorParameters: function () { return [{ type: i1.ConfigService }]; }, propDecorators: { email: [], password: [], remember: [] } });
94
+ class LoginFormSubmitMethod {
95
+ constructor(authentication) {
96
+ this.authentication = authentication;
97
+ }
98
+ call(value) {
99
+ return this.authentication.signInWithEmailAndPassword(value.email, value.password, value.remember);
100
+ }
101
+ }
102
+ LoginFormSubmitMethod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitMethod, deps: [{ token: i2.RxapAuthenticationService }], target: i0.ɵɵFactoryTarget.Injectable });
103
+ LoginFormSubmitMethod.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitMethod });
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitMethod, decorators: [{
105
+ type: Injectable
106
+ }], ctorParameters: function () { return [{ type: i2.RxapAuthenticationService }]; } });
107
+ class LoginFormSubmitSuccessful {
108
+ constructor(router) {
109
+ this.router = router;
110
+ }
111
+ call() {
112
+ return this.router.navigate(['/']);
113
+ }
114
+ }
115
+ LoginFormSubmitSuccessful.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitSuccessful, deps: [{ token: Router }], target: i0.ɵɵFactoryTarget.Injectable });
116
+ LoginFormSubmitSuccessful.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitSuccessful });
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginFormSubmitSuccessful, decorators: [{
118
+ type: Injectable
119
+ }], ctorParameters: function () {
120
+ return [{ type: i1$1.Router, decorators: [{
121
+ type: Inject,
122
+ args: [Router]
123
+ }] }];
124
+ } });
125
+ const LoginFormProviders = [
126
+ LoginForm,
127
+ {
128
+ provide: RXAP_FORM_DEFINITION_BUILDER,
129
+ useFactory: (injector) => new RxapFormBuilder(LoginForm, injector),
130
+ deps: [INJECTOR],
131
+ },
132
+ {
133
+ provide: RXAP_FORM_DEFINITION,
134
+ useFactory: (builder) => builder.build(),
135
+ deps: [RXAP_FORM_DEFINITION_BUILDER],
136
+ },
137
+ {
138
+ provide: RXAP_FORM_SUBMIT_METHOD,
139
+ useClass: LoginFormSubmitMethod,
140
+ },
141
+ {
142
+ provide: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD,
143
+ useClass: LoginFormSubmitSuccessful,
144
+ },
145
+ ];
146
+
147
+ // the fade-in/fade-out animation.
148
+ const fadeAnimation = trigger('fadeAnimation', [
149
+ // the "in" style determines the "resting" state of the element when it is visible.
150
+ state('in', style({ opacity: 1 })),
151
+ // fade in when created. this could also be written as transition('void => *')
152
+ transition(':enter', [
153
+ style({ opacity: 0 }),
154
+ animate(300)
155
+ ]),
156
+ // fade out when destroyed. this could also be written as transition('void => *')
157
+ transition(':leave', animate(300, style({ opacity: 0 })))
158
+ ]);
159
+
160
+ class LoginComponent {
161
+ constructor(authentication, snackBar) {
162
+ this.authentication = authentication;
163
+ this.snackBar = snackBar;
164
+ this.requestingPasswordReset$ = new ToggleSubject();
165
+ }
166
+ requestPasswordReset(email) {
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ this.requestingPasswordReset$.enable();
169
+ try {
170
+ const result = yield this.authentication.requestPasswordReset(email);
171
+ if (!result) {
172
+ this.snackBar.open('The password reset request result is falsy', undefined, {
173
+ duration: 5000,
174
+ panelClass: 'error'
175
+ });
176
+ }
177
+ else {
178
+ this.snackBar.open('The password reset request was successful', undefined, {
179
+ duration: 3000
180
+ });
181
+ }
182
+ }
183
+ catch (e) {
184
+ this.snackBar.open(e.message, undefined, {
185
+ duration: 3000,
186
+ panelClass: 'error'
187
+ });
188
+ }
189
+ finally {
190
+ this.requestingPasswordReset$.disable();
191
+ }
192
+ });
193
+ }
194
+ }
195
+ LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponent, deps: [{ token: RxapAuthenticationService }, { token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
196
+ LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: LoginComponent, selector: "rxap-login", providers: [
197
+ LoginFormProviders,
198
+ {
199
+ provide: ErrorStateMatcher,
200
+ useClass: ShowOnDirtyErrorStateMatcher
201
+ }
202
+ ], ngImport: i0, template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" [@fadeAnimation]=\"'in'\"\n novalidate>\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon matPrefix inline>email</mat-icon>\n <mat-label i18n=\"user login email input label|The user email input label\">Email</mat-label>\n <input matInput\n i18n-placeholder\n placeholder=\"Enter your email address\"\n type=\"email\"\n fxFlex=\"nogrow\"\n formControlName=\"email\">\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'required'\" i18n=\"user login email input error required\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'email'\" i18n=\"user login email input error format\">\n Please enter a valid email address\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls\" fxLayout=\"row wrap\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"16px\">\n\n <mat-checkbox class=\"remember-input\" fxFlex=\"nogrow\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div fxFlex=\"nogrow\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\"\n [matTooltipDisabled]=\"form.control.controls.email.valid\">\n <button color=\"accent\"\n type=\"button\"\n mat-button\n i18n\n (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls.email.hasError('email')\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"space-between center\">\n <mat-progress-spinner *ngIf=\"requestingPasswordReset$ | async\" mode=\"indeterminate\" [diameter]=\"15\"></mat-progress-spinner>\n <span fxFlex=\"nogrow\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"], components: [{ type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i5.MatProgressSpinner, selector: "mat-progress-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8.FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i9.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i2$1.MatPrefix, selector: "[matPrefix]" }, { type: i2$1.MatLabel, selector: "mat-label" }, { type: i10.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i8.FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { type: i2$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.MatSuffix, selector: "[matSuffix]" }, { type: i12.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8.FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { type: i8.FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { type: i8.FormSubmittingDirective, selector: "[rxapFormSubmitting]" }], pipes: { "async": i11.AsyncPipe }, animations: [
203
+ fadeAnimation
204
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponent, decorators: [{
206
+ type: Component,
207
+ args: [{ selector: 'rxap-login', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
208
+ LoginFormProviders,
209
+ {
210
+ provide: ErrorStateMatcher,
211
+ useClass: ShowOnDirtyErrorStateMatcher
212
+ }
213
+ ], animations: [
214
+ fadeAnimation
215
+ ], template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" [@fadeAnimation]=\"'in'\"\n novalidate>\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">account_circle</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"email-input\">\n <mat-icon matPrefix inline>email</mat-icon>\n <mat-label i18n=\"user login email input label|The user email input label\">Email</mat-label>\n <input matInput\n i18n-placeholder\n placeholder=\"Enter your email address\"\n type=\"email\"\n fxFlex=\"nogrow\"\n formControlName=\"email\">\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'required'\" i18n=\"user login email input error required\">\n Email is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'email'; if: 'email'\" i18n=\"user login email input error format\">\n Please enter a valid email address\n </mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div class=\"sub-controls\" fxLayout=\"row wrap\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"16px\">\n\n <mat-checkbox class=\"remember-input\" fxFlex=\"nogrow\" formControlName=\"remember\">Remember me</mat-checkbox>\n\n <div fxFlex=\"nogrow\"\n matTooltip=\"Please enter a valid email address\"\n matTooltipPosition=\"above\"\n [matTooltipDisabled]=\"form.control.controls.email.valid\">\n <button color=\"accent\"\n type=\"button\"\n mat-button\n i18n\n (click)=\"requestPasswordReset(form.value.email)\"\n [disabled]=\"!form.value.email || form.control.controls.email.hasError('email')\">\n <span fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"space-between center\">\n <mat-progress-spinner *ngIf=\"requestingPasswordReset$ | async\" mode=\"indeterminate\" [diameter]=\"15\"></mat-progress-spinner>\n <span fxFlex=\"nogrow\">Password forgotten</span>\n </span>\n </button>\n </div>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Login</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .email-input,.inner .content .password-input{width:100%}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .sub-controls>*{margin-bottom:8px}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"] }]
216
+ }], ctorParameters: function () {
217
+ return [{ type: i2.RxapAuthenticationService, decorators: [{
218
+ type: Inject,
219
+ args: [RxapAuthenticationService]
220
+ }] }, { type: i14.MatSnackBar, decorators: [{
221
+ type: Inject,
222
+ args: [MatSnackBar]
223
+ }] }];
224
+ } });
225
+
226
+ class LoginComponentModule {
227
+ }
228
+ LoginComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
229
+ LoginComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponentModule, declarations: [LoginComponent], imports: [CommonModule,
230
+ FlexLayoutModule,
231
+ MatButtonModule,
232
+ MatCardModule,
233
+ MatSnackBarModule,
234
+ MatProgressSpinnerModule,
235
+ MatInputModule,
236
+ ReactiveFormsModule,
237
+ RxapFormsModule,
238
+ MatCheckboxModule,
239
+ MatIconModule,
240
+ MatTooltipModule,
241
+ MatProgressBarModule], exports: [LoginComponent] });
242
+ LoginComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponentModule, imports: [[
243
+ CommonModule,
244
+ FlexLayoutModule,
245
+ MatButtonModule,
246
+ MatCardModule,
247
+ MatSnackBarModule,
248
+ MatProgressSpinnerModule,
249
+ MatInputModule,
250
+ ReactiveFormsModule,
251
+ RxapFormsModule,
252
+ MatCheckboxModule,
253
+ MatIconModule,
254
+ MatTooltipModule,
255
+ MatProgressBarModule
256
+ ]] });
257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoginComponentModule, decorators: [{
258
+ type: NgModule,
259
+ args: [{
260
+ declarations: [LoginComponent],
261
+ imports: [
262
+ CommonModule,
263
+ FlexLayoutModule,
264
+ MatButtonModule,
265
+ MatCardModule,
266
+ MatSnackBarModule,
267
+ MatProgressSpinnerModule,
268
+ MatInputModule,
269
+ ReactiveFormsModule,
270
+ RxapFormsModule,
271
+ MatCheckboxModule,
272
+ MatIconModule,
273
+ MatTooltipModule,
274
+ MatProgressBarModule
275
+ ],
276
+ exports: [LoginComponent]
277
+ }]
278
+ }] });
279
+
280
+ class AuthenticationContainerComponent {
281
+ prepareRoute(outlet) {
282
+ return outlet.isActivated ? outlet.activatedRoute : 'true';
283
+ }
284
+ }
285
+ AuthenticationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
286
+ AuthenticationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: AuthenticationContainerComponent, selector: "rxap-authentication-container", host: { classAttribute: "rxap-authentication-container" }, ngImport: i0, template: "<div class=\"container\" [@routeAnimations]=\"prepareRoute(outlet)\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;overflow-x:hidden}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}\n"], directives: [{ type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], animations: [
287
+ trigger('routeAnimations', [
288
+ transition(':enter', [
289
+ style({ opacity: 0 }),
290
+ animate('512ms', style({ opacity: 1 }))
291
+ ]),
292
+ transition(':leave', [
293
+ style({ opacity: 1 }),
294
+ animate('512ms', style({ opacity: 0 }))
295
+ ])
296
+ ])
297
+ ] });
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponent, decorators: [{
299
+ type: Component,
300
+ args: [{ selector: 'rxap-authentication-container', host: { class: 'rxap-authentication-container' }, animations: [
301
+ trigger('routeAnimations', [
302
+ transition(':enter', [
303
+ style({ opacity: 0 }),
304
+ animate('512ms', style({ opacity: 1 }))
305
+ ]),
306
+ transition(':leave', [
307
+ style({ opacity: 1 }),
308
+ animate('512ms', style({ opacity: 0 }))
309
+ ])
310
+ ])
311
+ ], template: "<div class=\"container\" [@routeAnimations]=\"prepareRoute(outlet)\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n <ng-content></ng-content>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;overflow-x:hidden}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}\n"] }]
312
+ }] });
313
+
314
+ class AuthenticationContainerComponentModule {
315
+ }
316
+ AuthenticationContainerComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
317
+ AuthenticationContainerComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponentModule, declarations: [AuthenticationContainerComponent], imports: [FlexLayoutModule,
318
+ MatToolbarModule,
319
+ RouterModule], exports: [AuthenticationContainerComponent] });
320
+ AuthenticationContainerComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponentModule, imports: [[
321
+ FlexLayoutModule,
322
+ MatToolbarModule,
323
+ RouterModule
324
+ ]] });
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: AuthenticationContainerComponentModule, decorators: [{
326
+ type: NgModule,
327
+ args: [{
328
+ declarations: [AuthenticationContainerComponent],
329
+ exports: [AuthenticationContainerComponent],
330
+ imports: [
331
+ FlexLayoutModule,
332
+ MatToolbarModule,
333
+ RouterModule
334
+ ]
335
+ }]
336
+ }] });
337
+
338
+ const RXAP_RESET_PASSWORD_FORM = 'rxap-reset-password';
339
+ class ResetPasswordFormSubmitMethod {
340
+ constructor(route, authentication, snackBar, router) {
341
+ this.route = route;
342
+ this.authentication = authentication;
343
+ this.snackBar = snackBar;
344
+ this.router = router;
345
+ }
346
+ call(value) {
347
+ return this.route.params
348
+ .pipe(take(1), map((params) => params.token), switchMap((token) => this.authentication.sendPasswordReset(value.password, token)), tap((result) => {
349
+ if (result) {
350
+ this.snackBar.open('Password reset was successful.', undefined, {
351
+ duration: 3500,
352
+ });
353
+ return this.router.navigate(['/']);
354
+ }
355
+ return Promise.resolve();
356
+ }))
357
+ .toPromise();
358
+ }
359
+ }
360
+ ResetPasswordFormSubmitMethod.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordFormSubmitMethod, deps: [{ token: ActivatedRoute }, { token: RxapAuthenticationService }, { token: MatSnackBar }, { token: Router }], target: i0.ɵɵFactoryTarget.Injectable });
361
+ ResetPasswordFormSubmitMethod.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordFormSubmitMethod });
362
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordFormSubmitMethod, decorators: [{
363
+ type: Injectable
364
+ }], ctorParameters: function () {
365
+ return [{ type: i1$1.ActivatedRoute, decorators: [{
366
+ type: Inject,
367
+ args: [ActivatedRoute]
368
+ }] }, { type: i2.RxapAuthenticationService, decorators: [{
369
+ type: Inject,
370
+ args: [RxapAuthenticationService]
371
+ }] }, { type: i14.MatSnackBar, decorators: [{
372
+ type: Inject,
373
+ args: [MatSnackBar]
374
+ }] }, { type: i1$1.Router, decorators: [{
375
+ type: Inject,
376
+ args: [Router]
377
+ }] }];
378
+ } });
379
+ let ResetPasswordForm = class ResetPasswordForm {
380
+ passwordEqual() {
381
+ if (this.password.value !== this.passwordRepeat.value) {
382
+ return { equal: 'passwords are not equal' };
383
+ }
384
+ return null;
385
+ }
386
+ resetRepeat() {
387
+ this.passwordRepeat.reset();
388
+ }
389
+ };
390
+ ResetPasswordForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordForm, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
391
+ ResetPasswordForm.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordForm });
392
+ __decorate([
393
+ UseFormControl({
394
+ validators: [Validators.required],
395
+ }),
396
+ __metadata("design:type", RxapFormControl)
397
+ ], ResetPasswordForm.prototype, "password", void 0);
398
+ __decorate([
399
+ UseFormControl({
400
+ validators: [Validators.required],
401
+ }),
402
+ __metadata("design:type", RxapFormControl)
403
+ ], ResetPasswordForm.prototype, "passwordRepeat", void 0);
404
+ __decorate([
405
+ ControlValidator('passwordRepeat'),
406
+ __metadata("design:type", Function),
407
+ __metadata("design:paramtypes", []),
408
+ __metadata("design:returntype", void 0)
409
+ ], ResetPasswordForm.prototype, "passwordEqual", null);
410
+ __decorate([
411
+ ControlSetValue('password'),
412
+ __metadata("design:type", Function),
413
+ __metadata("design:paramtypes", []),
414
+ __metadata("design:returntype", void 0)
415
+ ], ResetPasswordForm.prototype, "resetRepeat", null);
416
+ ResetPasswordForm = __decorate([
417
+ RxapForm({
418
+ id: RXAP_RESET_PASSWORD_FORM,
419
+ })
420
+ ], ResetPasswordForm);
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordForm, decorators: [{
422
+ type: Injectable
423
+ }], propDecorators: { password: [], passwordRepeat: [], passwordEqual: [], resetRepeat: [] } });
424
+ const ResetPasswordFormProviders = [
425
+ ResetPasswordForm,
426
+ {
427
+ provide: RXAP_FORM_DEFINITION_BUILDER,
428
+ useFactory: (injector) => new RxapFormBuilder(ResetPasswordForm, injector),
429
+ deps: [INJECTOR],
430
+ },
431
+ {
432
+ provide: RXAP_FORM_DEFINITION,
433
+ useFactory: (builder) => builder.build(),
434
+ deps: [RXAP_FORM_DEFINITION_BUILDER],
435
+ },
436
+ {
437
+ provide: RXAP_FORM_SUBMIT_METHOD,
438
+ useClass: ResetPasswordFormSubmitMethod,
439
+ },
440
+ ];
441
+
442
+ class ResetPasswordComponent {
443
+ }
444
+ ResetPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
445
+ ResetPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: ResetPasswordComponent, selector: "rxap-reset-password", providers: [
446
+ ResetPasswordFormProviders,
447
+ {
448
+ provide: ErrorStateMatcher,
449
+ useClass: ShowOnDirtyErrorStateMatcher
450
+ }
451
+ ], ngImport: i0, template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" novalidate\n [@fadeAnimation]=\"'in'\">\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">New password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Repeat password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password again\"\n fxFlex=\"nogrow\"\n #passwordRepeatInput\n formControlName=\"passwordRepeat\">\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'equal'\" i18n=\"user login password input error submit\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'password'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'text'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'text'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Reset password</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"], components: [{ type: i1$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], directives: [{ type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8.FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: ["initial", "rxapForm", "submitMethod"], outputs: ["ngSubmit", "rxapSubmit", "invalidSubmit", "submitSuccessful"], exportAs: ["rxapForm"] }, { type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i9.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i2$1.MatPrefix, selector: "[matPrefix]" }, { type: i2$1.MatLabel, selector: "mat-label" }, { type: i10.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i8.FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: ["rxapFormControlErrorFrom", "rxapFormControlErrorIf"] }, { type: i2$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.MatSuffix, selector: "[matSuffix]" }, { type: i8.FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]" }, { type: i8.FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { type: i8.FormSubmittingDirective, selector: "[rxapFormSubmitting]" }], animations: [
452
+ fadeAnimation
453
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponent, decorators: [{
455
+ type: Component,
456
+ args: [{ selector: 'rxap-reset-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
457
+ ResetPasswordFormProviders,
458
+ {
459
+ provide: ErrorStateMatcher,
460
+ useClass: ShowOnDirtyErrorStateMatcher
461
+ }
462
+ ], animations: [
463
+ fadeAnimation
464
+ ], template: "<form rxapForm class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" #form=\"rxapForm\" fxLayoutGap=\"32px\" novalidate\n [@fadeAnimation]=\"'in'\">\n\n <div class=\"header\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFlex=\"nogrow\">\n\n <mat-icon fxFlex=\"nogrow\" color=\"primary\" class=\"avatar-icon\">vpn_key</mat-icon>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">New password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password\"\n fxFlex=\"nogrow\"\n #passwordInput\n formControlName=\"password\">\n <mat-error *rxapFormControlError=\"let error from 'password'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'password'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'test'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\" matSuffix *ngIf=\"passwordInput.type === 'text'\" mat-icon-button type=\"button\" (click)=\"passwordInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n <mat-form-field class=\"password-input\">\n <mat-icon matPrefix inline>vpn_key</mat-icon>\n <mat-label i18n=\"user login password input label|The user password input label\">Repeat password</mat-label>\n <input matInput\n type=\"password\"\n i18n-placeholder\n placeholder=\"Enter your new password again\"\n fxFlex=\"nogrow\"\n #passwordRepeatInput\n formControlName=\"passwordRepeat\">\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'required'\" i18n=\"user login password input error required\">\n Password is <strong>required</strong>\n </mat-error>\n <mat-error *rxapFormControlError=\"let error from 'passwordRepeat'; if: 'equal'\" i18n=\"user login password input error submit\">\n Entered password are <strong>not equal</strong>\n </mat-error>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'password'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'text'\">\n <mat-icon>visibility</mat-icon>\n </button>\n <button tabIndex=\"-1\"\n matSuffix\n *ngIf=\"passwordRepeatInput.type === 'text'\"\n mat-icon-button\n type=\"button\"\n (click)=\"passwordRepeatInput.type = 'password'\">\n <mat-icon>visibility_off</mat-icon>\n </button>\n </mat-form-field>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button mat-raised-button color=\"primary\" type=\"submit\" rxapFormControlMarkDirty>Reset password</button>\n </div>\n\n </div>\n\n </div>\n\n <div *rxapFormSubmitFailed=\"let error\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-error>{{ error.message }}</mat-error>\n </div>\n\n <mat-progress-bar *rxapFormSubmitting mode=\"indeterminate\" class=\"loading-bar\"></mat-progress-bar>\n\n</form>\n", styles: [".inner{padding:48px;position:relative;margin:16px 0}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}.inner .content{width:304px;max-width:calc(100vw - 112px)}.inner .content .password-input{width:100%}.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:256px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}\n"] }]
465
+ }] });
466
+
467
+ class ResetPasswordComponentModule {
468
+ }
469
+ ResetPasswordComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
470
+ ResetPasswordComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponentModule, declarations: [ResetPasswordComponent], imports: [MatCardModule,
471
+ FlexLayoutModule,
472
+ MatButtonModule,
473
+ CommonModule,
474
+ MatProgressSpinnerModule,
475
+ MatInputModule,
476
+ RxapFormsModule,
477
+ MatIconModule,
478
+ ReactiveFormsModule,
479
+ MatProgressBarModule,
480
+ MatSnackBarModule], exports: [ResetPasswordComponent] });
481
+ ResetPasswordComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponentModule, imports: [[
482
+ MatCardModule,
483
+ FlexLayoutModule,
484
+ MatButtonModule,
485
+ CommonModule,
486
+ MatProgressSpinnerModule,
487
+ MatInputModule,
488
+ RxapFormsModule,
489
+ MatIconModule,
490
+ ReactiveFormsModule,
491
+ MatProgressBarModule,
492
+ MatSnackBarModule,
493
+ ]] });
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ResetPasswordComponentModule, decorators: [{
495
+ type: NgModule,
496
+ args: [{
497
+ declarations: [
498
+ ResetPasswordComponent
499
+ ],
500
+ imports: [
501
+ MatCardModule,
502
+ FlexLayoutModule,
503
+ MatButtonModule,
504
+ CommonModule,
505
+ MatProgressSpinnerModule,
506
+ MatInputModule,
507
+ RxapFormsModule,
508
+ MatIconModule,
509
+ ReactiveFormsModule,
510
+ MatProgressBarModule,
511
+ MatSnackBarModule,
512
+ ],
513
+ exports: [
514
+ ResetPasswordComponent
515
+ ]
516
+ }]
517
+ }] });
518
+
519
+ class LoadingComponent {
520
+ constructor(authentication, router) {
521
+ this.authentication = authentication;
522
+ this.router = router;
523
+ }
524
+ ngOnInit() {
525
+ // TODO : remove the concept of isAuthenticated$
526
+ if (this.authentication.isAuthenticated$) {
527
+ this.subscription = this.authentication.isAuthenticated$
528
+ .pipe(filter((isAuthenticated) => isAuthenticated !== null), tap(() => this.router.navigate(['/', 'authentication', 'login'])))
529
+ .subscribe();
530
+ }
531
+ }
532
+ ngOnDestroy() {
533
+ var _a;
534
+ (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
535
+ }
536
+ }
537
+ LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponent, deps: [{ token: RxapAuthenticationService }, { token: Router }], target: i0.ɵɵFactoryTarget.Component });
538
+ LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: LoadingComponent, selector: "rxap-auth-loading", host: { classAttribute: "rxap-auth-loading" }, ngImport: i0, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"], components: [{ type: i6.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
539
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponent, decorators: [{
540
+ type: Component,
541
+ args: [{ selector: 'rxap-auth-loading', host: { class: 'rxap-auth-loading' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [".loading-bar{position:absolute;bottom:65vh;left:0;right:0;top:auto}\n"] }]
542
+ }], ctorParameters: function () {
543
+ return [{ type: i2.RxapAuthenticationService, decorators: [{
544
+ type: Inject,
545
+ args: [RxapAuthenticationService]
546
+ }] }, { type: i1$1.Router, decorators: [{
547
+ type: Inject,
548
+ args: [Router]
549
+ }] }];
550
+ } });
551
+
552
+ class LoadingComponentModule {
553
+ }
554
+ LoadingComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
555
+ LoadingComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponentModule, declarations: [LoadingComponent], imports: [MatProgressBarModule], exports: [LoadingComponent] });
556
+ LoadingComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponentModule, imports: [[
557
+ MatProgressBarModule
558
+ ]] });
559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LoadingComponentModule, decorators: [{
560
+ type: NgModule,
561
+ args: [{
562
+ declarations: [
563
+ LoadingComponent
564
+ ],
565
+ imports: [
566
+ MatProgressBarModule
567
+ ],
568
+ exports: [
569
+ LoadingComponent
570
+ ]
571
+ }]
572
+ }] });
573
+
574
+ class RxapAuthenticationModule {
575
+ }
576
+ RxapAuthenticationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapAuthenticationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
577
+ RxapAuthenticationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapAuthenticationModule, exports: [LoginComponentModule,
578
+ AuthenticationContainerComponentModule,
579
+ ResetPasswordComponentModule,
580
+ LoadingComponentModule] });
581
+ RxapAuthenticationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapAuthenticationModule, imports: [LoginComponentModule,
582
+ AuthenticationContainerComponentModule,
583
+ ResetPasswordComponentModule,
584
+ LoadingComponentModule] });
585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: RxapAuthenticationModule, decorators: [{
586
+ type: NgModule,
587
+ args: [{
588
+ exports: [
589
+ LoginComponentModule,
590
+ AuthenticationContainerComponentModule,
591
+ ResetPasswordComponentModule,
592
+ LoadingComponentModule
593
+ ]
594
+ }]
595
+ }] });
596
+
597
+ const AuthenticationRoutes = [
598
+ {
599
+ path: 'authentication',
600
+ component: AuthenticationContainerComponent,
601
+ children: [
602
+ {
603
+ canActivate: [RxapAuthenticationGuard],
604
+ path: 'login',
605
+ component: LoginComponent
606
+ },
607
+ {
608
+ canActivate: [RxapAuthenticationGuard],
609
+ path: 'reset-password/:token',
610
+ component: ResetPasswordComponent
611
+ },
612
+ {
613
+ path: 'loading',
614
+ component: LoadingComponent
615
+ },
616
+ {
617
+ path: '**',
618
+ redirectTo: 'login'
619
+ }
620
+ ]
621
+ }
622
+ ];
623
+
624
+ /**
625
+ * Generated bundle index. Do not edit.
626
+ */
627
+
628
+ export { AuthenticationContainerComponent, AuthenticationContainerComponentModule, AuthenticationRoutes, LoadingComponent, LoadingComponentModule, LoginComponent, LoginComponentModule, LoginForm, LoginFormProviders, LoginFormSubmitMethod, LoginFormSubmitSuccessful, ResetPasswordComponent, ResetPasswordComponentModule, RxapAuthenticationModule };
629
+ //# sourceMappingURL=rxap-authentication-components.mjs.map