@firestitch/2fa 12.0.0 → 12.0.3
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.
- package/app/components/2fa-verification/2fa-verification.component.d.ts +17 -0
- package/app/components/2fa-verification-code/2fa-verification-code.component.d.ts +11 -0
- package/app/components/2fa-verification-form/2fa-verification-form.component.d.ts +21 -0
- package/app/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +24 -0
- package/app/components/2fa-verification-otp/2fa-verification-otp.component.d.ts +12 -0
- package/app/enums/verification-method-type.enum.d.ts +6 -0
- package/app/fs-2fa.module.d.ts +23 -19
- package/app/interfaces/verification-method.interface.d.ts +11 -0
- package/app/interfaces/verification-provider.interface.d.ts +8 -0
- package/app/tokens/verification.token.d.ts +3 -0
- package/bundles/firestitch-2fa.umd.js +364 -203
- package/bundles/firestitch-2fa.umd.js.map +1 -1
- package/esm2015/app/components/2fa-verification/2fa-verification.component.js +49 -0
- package/esm2015/app/components/2fa-verification-code/2fa-verification-code.component.js +45 -0
- package/esm2015/app/components/2fa-verification-form/2fa-verification-form.component.js +69 -0
- package/esm2015/app/components/2fa-verification-methods/2fa-verification-methods.component.js +74 -0
- package/esm2015/app/components/2fa-verification-otp/2fa-verification-otp.component.js +33 -0
- package/esm2015/app/enums/verification-method-type.enum.js +8 -0
- package/esm2015/app/fs-2fa.module.js +90 -68
- package/esm2015/app/interfaces/verification-method.interface.js +2 -0
- package/esm2015/app/interfaces/verification-provider.interface.js +2 -0
- package/esm2015/app/tokens/verification.token.js +3 -0
- package/esm2015/firestitch-2fa.js +4 -4
- package/esm2015/public_api.js +9 -4
- package/fesm2015/firestitch-2fa.js +332 -179
- package/fesm2015/firestitch-2fa.js.map +1 -1
- package/firestitch-2fa.d.ts +5 -5
- package/package.json +1 -2
- package/public_api.d.ts +6 -7
- package/app/components/current-device/current-device.component.d.ts +0 -5
- package/app/components/trusted-devices/trusted-devices.component.d.ts +0 -26
- package/app/interfaces/trusted-device-account.d.ts +0 -6
- package/app/interfaces/trusted-device-device.d.ts +0 -10
- package/app/interfaces/trusted-device-ip.d.ts +0 -5
- package/app/interfaces/trusted-device.d.ts +0 -14
- package/esm2015/app/components/current-device/current-device.component.js +0 -18
- package/esm2015/app/components/trusted-devices/trusted-devices.component.js +0 -107
- package/esm2015/app/interfaces/trusted-device-account.js +0 -2
- package/esm2015/app/interfaces/trusted-device-device.js +0 -2
- package/esm2015/app/interfaces/trusted-device-ip.js +0 -2
- package/esm2015/app/interfaces/trusted-device.js +0 -2
|
@@ -1,191 +1,344 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, Input,
|
|
3
|
-
import * as i6 from '@angular/
|
|
2
|
+
import { InjectionToken, EventEmitter, Component, ChangeDetectionStrategy, Output, Input, Inject, NgModule } from '@angular/core';
|
|
3
|
+
import * as i6 from '@angular/forms';
|
|
4
|
+
import { ControlContainer, NgForm, FormsModule } from '@angular/forms';
|
|
5
|
+
import * as i8 from '@angular/common';
|
|
4
6
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import
|
|
6
|
-
import * as i1 from '@angular/material/icon';
|
|
7
|
+
import * as i2 from '@angular/material/icon';
|
|
7
8
|
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
10
|
-
import * as
|
|
11
|
-
import {
|
|
12
|
-
import * as i1$1 from '@
|
|
13
|
-
import {
|
|
14
|
-
import * as
|
|
15
|
-
import {
|
|
16
|
-
import * as
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
9
|
+
import * as i3$2 from '@angular/material/radio';
|
|
10
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
11
|
+
import * as i4 from '@angular/material/button';
|
|
12
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
+
import * as i1$1 from '@angular/material/form-field';
|
|
14
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
15
|
+
import * as i3 from '@angular/material/input';
|
|
16
|
+
import { MatInputModule } from '@angular/material/input';
|
|
17
|
+
import * as i3$1 from '@angular/material/checkbox';
|
|
18
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
19
|
+
import * as i5 from '@angular/material/progress-spinner';
|
|
20
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
21
|
+
import * as i1 from '@firestitch/form';
|
|
22
|
+
import { FsFormModule } from '@firestitch/form';
|
|
23
|
+
import * as i7 from '@firestitch/skeleton';
|
|
24
|
+
import { FsSkeletonModule } from '@firestitch/skeleton';
|
|
25
|
+
import * as i1$2 from '@firestitch/radiogroup';
|
|
26
|
+
import { FsRadioGroupModule } from '@firestitch/radiogroup';
|
|
27
|
+
import { Subject } from 'rxjs';
|
|
28
|
+
import { tap, takeUntil, map, shareReplay } from 'rxjs/operators';
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
const FS_2FA_VERIFICATION_PROVIDER = new InjectionToken('Provider for Verification service');
|
|
31
|
+
|
|
32
|
+
class Fs2FAVerificationOTPComponent {
|
|
33
|
+
constructor(form) {
|
|
34
|
+
this.form = form;
|
|
35
|
+
this.codeChange = new EventEmitter();
|
|
36
|
+
}
|
|
37
|
+
codeChanged(event) {
|
|
38
|
+
this.codeChange.emit(event);
|
|
39
|
+
this.form.dirty();
|
|
40
|
+
}
|
|
41
|
+
codeCompleted() {
|
|
42
|
+
this.form.triggerSubmit();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
Fs2FAVerificationOTPComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationOTPComponent, deps: [{ token: i1.FsFormDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
+
Fs2FAVerificationOTPComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2FAVerificationOTPComponent, selector: "fs-2fa-verification-otp", outputs: { codeChange: "codeChange" }, ngImport: i0, template: "<p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator\n app to verify it's you\n</p>\n\n<!--\n<code-input [initialFocusField]=\"0\"\n [codeLength]=\"6\"\n (codeChanged)=\"codeChanged($event)\"\n (codeCompleted)=\"codeCompleted()\">>\n</code-input>\n-->\n", styles: [":host{display:block}code-input{--item-spacing: 10px;--item-height: 20px;--item-border: none;--item-border-bottom: 2px solid #949494;--item-border-has-value: none;--item-border-bottom-has-value: 2px solid #949494;--item-border-focused: none;--item-border-bottom-focused: 2px solid #0061AF;--item-shadow-focused: none;--item-border-radius: 0px}code-input ::ng-deep span:first-child{padding-left:0!important}code-input ::ng-deep span:last-child{padding-right:0!important}code-input ::ng-deep input{font-size:20px!important;height:40px!important;padding:0!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationOTPComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: 'fs-2fa-verification-otp',
|
|
51
|
+
templateUrl: './2fa-verification-otp.component.html',
|
|
52
|
+
styleUrls: [
|
|
53
|
+
'./2fa-verification-otp.component.scss'
|
|
54
|
+
],
|
|
55
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
56
|
+
}]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.FsFormDirective }]; }, propDecorators: { codeChange: [{
|
|
58
|
+
type: Output
|
|
59
|
+
}] } });
|
|
60
|
+
|
|
61
|
+
class Fs2FAVerificationSMSComponent {
|
|
62
|
+
constructor() {
|
|
63
|
+
this.codeChange = new EventEmitter();
|
|
64
|
+
}
|
|
65
|
+
codeChanged() {
|
|
66
|
+
this.codeChange.emit(this.code);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
Fs2FAVerificationSMSComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationSMSComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
Fs2FAVerificationSMSComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2FAVerificationSMSComponent, selector: "fs-2fa-verification-code", inputs: { method: "method" }, outputs: { codeChange: "codeChange" }, ngImport: i0, template: "<p class=\"description\">\n <ng-container *ngIf=\"method.phoneCode && method.phoneNumber && method.type === 'sms'\">\n A text message with a verification code was just\n sent to <span style=\"white-space: nowrap;\">+{{ method.phoneCode }} {{ method.phoneNumber }}</span> to verify it's you.\n </ng-container>\n\n <ng-container *ngIf=\"method.type === 'email'\">\n A email with a verification code was just sent to {{ method.email }} to verify it's you.\n </ng-container>\n\n <ng-container *ngIf=\"false\">\n Enter the one time code generated by the app administrator to verify it's you.\n </ng-container>\n</p>\n\n<mat-form-field>\n <mat-label>Code</mat-label>\n <input type=\"text\"\n matInput\n name=\"code\"\n autocomplete=\"one-time-code\"\n [(ngModel)]=\"code\"\n (ngModelChange)=\"codeChanged()\"\n required\n placeholder=\"Enter the code\"\n inputmode=\"numeric\">\n</mat-form-field>\n", styles: [":host{display:block}mat-form-field{width:100%}\n"], components: [{ type: i1$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.MatLabel, selector: "mat-label" }, { type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i6.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: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.ɵf, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }], viewProviders: [
|
|
71
|
+
{
|
|
72
|
+
provide: ControlContainer,
|
|
73
|
+
useExisting: NgForm,
|
|
74
|
+
},
|
|
75
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationSMSComponent, decorators: [{
|
|
77
|
+
type: Component,
|
|
78
|
+
args: [{
|
|
79
|
+
selector: 'fs-2fa-verification-code',
|
|
80
|
+
templateUrl: './2fa-verification-code.component.html',
|
|
81
|
+
styleUrls: [
|
|
82
|
+
'./2fa-verification-code.component.scss',
|
|
83
|
+
],
|
|
84
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
85
|
+
viewProviders: [
|
|
86
|
+
{
|
|
87
|
+
provide: ControlContainer,
|
|
88
|
+
useExisting: NgForm,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
}]
|
|
92
|
+
}], propDecorators: { method: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], codeChange: [{
|
|
95
|
+
type: Output
|
|
96
|
+
}] } });
|
|
97
|
+
|
|
98
|
+
class Fs2FAVerificationFormComponent {
|
|
99
|
+
constructor(verificationProvider, _cdRef) {
|
|
100
|
+
this.verificationProvider = verificationProvider;
|
|
101
|
+
this._cdRef = _cdRef;
|
|
102
|
+
this.verified = new EventEmitter();
|
|
103
|
+
this.resendInProgress = false;
|
|
104
|
+
this.trustedDevice = false;
|
|
105
|
+
this._destroy$ = new Subject();
|
|
106
|
+
this.verify = () => {
|
|
107
|
+
return this.verificationProvider
|
|
108
|
+
.verify(this._code, this.trustedDevice)
|
|
109
|
+
.pipe(tap((response) => {
|
|
110
|
+
this.verified.emit(response);
|
|
111
|
+
}));
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
ngOnDestroy() {
|
|
115
|
+
this._destroy$.next();
|
|
116
|
+
this._destroy$.complete();
|
|
117
|
+
}
|
|
118
|
+
codeChanged(code) {
|
|
119
|
+
this._code = code;
|
|
120
|
+
}
|
|
121
|
+
resend() {
|
|
122
|
+
this.resendInProgress = true;
|
|
123
|
+
this.verificationProvider
|
|
124
|
+
.resend()
|
|
125
|
+
.pipe(takeUntil(this._destroy$))
|
|
126
|
+
.subscribe(() => {
|
|
127
|
+
this.resendInProgress = false;
|
|
128
|
+
this._cdRef.markForCheck();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
Fs2FAVerificationFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationFormComponent, deps: [{ token: FS_2FA_VERIFICATION_PROVIDER }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
+
Fs2FAVerificationFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2FAVerificationFormComponent, selector: "fs-2fa-verification-form", inputs: { method: "method" }, outputs: { verified: "verified" }, ngImport: i0, template: "<form fsForm [submit]=\"verify\">\n <h2>2-Step Verification</h2>\n\n <div class=\"code-container\">\n <ng-container *ngIf=\"method.type === 'authenticator' else code\">\n <fs-2fa-verification-otp class=\"otp\"></fs-2fa-verification-otp>\n </ng-container>\n\n <ng-template #code>\n <fs-2fa-verification-code\n [method]=\"method\"\n (codeChange)=\"codeChanged($event)\">\n </fs-2fa-verification-code>\n </ng-template>\n </div>\n\n <div class=\"additional\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustedDevice\">\n Trust this device\n </mat-checkbox>\n\n <span matSuffix>\n <button mat-button\n type=\"button\"\n color=\"primary\"\n (click)=\"resend()\"\n [disabled]=\"resendInProgress\"\n class=\"resend-code-btn\">\n <ng-container *ngIf=\"!resendInProgress else sending\">\n Resend Code\n </ng-container>\n <ng-template #sending>\n <mat-spinner [diameter]=\"12\"></mat-spinner> Sending\n </ng-template>\n </button>\n </span>\n </div>\n\n <div class=\"actions\">\n <button mat-raised-button\n color=\"primary\"\n type=\"submit\">\n Verify\n </button>\n\n <ng-content></ng-content>\n </div>\n</form>\n", styles: ["h2,.code-container{text-align:center}.code-container .otp{margin-bottom:15px}:host ::ng-deep .actions{margin:10px 0}:host ::ng-deep .actions a{width:100%;font-weight:400}:host ::ng-deep .actions button{width:100%}:host ::ng-deep .actions button[type=button]{font-weight:400;text-transform:none}.additional{display:flex;justify-content:space-between;align-items:baseline;margin-top:-5px}.additional .resend-code-btn{text-transform:none}.additional .resend-code-btn mat-spinner{display:inline-block;vertical-align:middle}\n"], components: [{ type: Fs2FAVerificationOTPComponent, selector: "fs-2fa-verification-otp", outputs: ["codeChange"] }, { type: Fs2FAVerificationSMSComponent, selector: "fs-2fa-verification-code", inputs: ["method"], outputs: ["codeChange"] }, { type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "id", "labelPosition", "name", "required", "checked", "disabled", "indeterminate", "aria-describedby", "value"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i4.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: i5.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "successDelay", "errorDelay", "submit", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.MatSuffix, selector: "[matSuffix]" }, { type: i1.ɵw, selector: "button[type=\"submit\"]", inputs: ["dirtySubmit", "name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationFormComponent, decorators: [{
|
|
135
|
+
type: Component,
|
|
136
|
+
args: [{
|
|
137
|
+
selector: 'fs-2fa-verification-form',
|
|
138
|
+
templateUrl: './2fa-verification-form.component.html',
|
|
139
|
+
styleUrls: [
|
|
140
|
+
'./2fa-verification-form.component.scss',
|
|
141
|
+
],
|
|
142
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
143
|
+
}]
|
|
144
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
145
|
+
type: Inject,
|
|
146
|
+
args: [FS_2FA_VERIFICATION_PROVIDER]
|
|
147
|
+
}] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { method: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], verified: [{
|
|
150
|
+
type: Output
|
|
151
|
+
}] } });
|
|
152
|
+
|
|
153
|
+
var FsVerificationMethodType;
|
|
154
|
+
(function (FsVerificationMethodType) {
|
|
155
|
+
FsVerificationMethodType["Sms"] = "sms";
|
|
156
|
+
FsVerificationMethodType["Email"] = "email";
|
|
157
|
+
FsVerificationMethodType["Authenticator"] = "authenticator";
|
|
158
|
+
FsVerificationMethodType["Code"] = "code";
|
|
159
|
+
})(FsVerificationMethodType || (FsVerificationMethodType = {}));
|
|
160
|
+
|
|
161
|
+
class Fs2FaVerificationMethodsComponent {
|
|
162
|
+
constructor(_verificationProvider) {
|
|
163
|
+
this._verificationProvider = _verificationProvider;
|
|
164
|
+
this.methodChange = new EventEmitter();
|
|
165
|
+
this.cancelled = new EventEmitter();
|
|
166
|
+
this.verificationMethodType = FsVerificationMethodType;
|
|
167
|
+
this.setVerificationMethod = () => {
|
|
168
|
+
return this._verificationProvider
|
|
169
|
+
.updateVerificationMethod(this.method.id)
|
|
170
|
+
.pipe(tap((method) => {
|
|
171
|
+
this.methodChange.emit(method);
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
this._initMethods();
|
|
175
|
+
}
|
|
176
|
+
ngOnInit() {
|
|
177
|
+
}
|
|
178
|
+
compareWith(o1, o2) {
|
|
179
|
+
return o1 && o2 && o1.id === o2.id;
|
|
180
|
+
}
|
|
181
|
+
cancel() {
|
|
182
|
+
this.cancelled.emit();
|
|
183
|
+
}
|
|
184
|
+
_initMethods() {
|
|
185
|
+
this.methods$ = this._verificationProvider
|
|
186
|
+
.methods()
|
|
187
|
+
.pipe(map((methods) => {
|
|
188
|
+
return methods
|
|
189
|
+
.reduce((acc, method) => {
|
|
190
|
+
if (!acc[method.type]) {
|
|
191
|
+
acc[method.type] = [];
|
|
192
|
+
}
|
|
193
|
+
acc[method.type].push(method);
|
|
194
|
+
return acc;
|
|
195
|
+
}, {});
|
|
196
|
+
}), shareReplay(1));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
Fs2FaVerificationMethodsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaVerificationMethodsComponent, deps: [{ token: FS_2FA_VERIFICATION_PROVIDER }], target: i0.ɵɵFactoryTarget.Component });
|
|
200
|
+
Fs2FaVerificationMethodsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2FaVerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: { method: "method" }, outputs: { methodChange: "methodChange", cancelled: "cancelled" }, ngImport: i0, template: "<h2>\n Verification Methods\n</h2>\n<form fsForm [submit]=\"setVerificationMethod\">\n <ng-container *fsSkeleton=\"methods$ | async as methods\">\n <fs-radio-group [(ngModel)]=\"method\" name=\"method\" [compareWith]=\"compareWith\">\n <ng-container *ngFor=\"let methodMap of methods | keyvalue\">\n <div class=\"method\">\n <ng-container [ngSwitch]=\"methodMap.key\">\n <ng-container *ngSwitchCase=\"verificationMethodType.Sms\">\n <div class=\"method-header\">\n <div class=\"method-icon\">\n <mat-icon>\n smartphone\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Text Message</div>\n <div class=\"method-subtitle\">\n Verification code send to one of following mobile number\n </div>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"verificationMethodType.Email\">\n <div class=\"method-header\">\n <div class=\"method-icon\">\n <mat-icon>\n mail\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Email</div>\n <div class=\"method-subtitle\">\n Verification code send to one of following email\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container [ngSwitch]=\"methodMap.key\">\n <ng-container *ngSwitchCase=\"verificationMethodType.Sms\">\n <mat-radio-button class=\"method-item\" *ngFor=\"let method of methodMap.value\" [value]=\"method\">\n + {{ method.phoneCode }} {{ method.phoneNumber }}\n </mat-radio-button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"verificationMethodType.Email\">\n <mat-radio-button class=\"method-item\" *ngFor=\"let method of methodMap.value\" [value]=\"method\">\n {{ method.email }}\n </mat-radio-button>\n </ng-container>\n </ng-container>\n </div>\n </ng-container>\n </fs-radio-group>\n </ng-container>\n\n <div class=\"actions\">\n <ng-container *ngIf=\"methods$ | async\">\n <button mat-button type=\"submit\" color=\"primary\">Next</button>\n </ng-container>\n <button mat-button type=\"button\" (click)=\"cancel()\">Cancel</button>\n </div>\n</form>\n", styles: [".method{display:block;margin-bottom:20px}.method .method-header{display:flex;align-items:flex-start}.method .method-header .method-name{margin-left:10px}.method .method-header .method-name .method-title{font-size:14px;font-weight:400}.method .method-header .method-name .method-subtitle{font-size:12px;color:#a3a3a3}.method .method-item{display:block;margin:10px 0 0 35px}\n"], components: [{ type: i1$2.FsRadioGroupComponent, selector: "fs-radio-group", inputs: ["orientation", "radioPosition", "compareWith", "required", "disabled", "label", "name"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i4.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"] }], directives: [{ type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "successDelay", "errorDelay", "submit", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i7.ɵa, selector: "[fsSkeleton]", inputs: ["fsSkeletonPattern", "fsSkeleton"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.ɵw, selector: "button[type=\"submit\"]", inputs: ["dirtySubmit", "name"] }], pipes: { "async": i8.AsyncPipe, "keyvalue": i8.KeyValuePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaVerificationMethodsComponent, decorators: [{
|
|
202
|
+
type: Component,
|
|
203
|
+
args: [{
|
|
204
|
+
selector: 'fs-2fa-verification-methods',
|
|
205
|
+
templateUrl: './2fa-verification-methods.component.html',
|
|
206
|
+
styleUrls: [
|
|
207
|
+
'./2fa-verification-methods.component.scss',
|
|
208
|
+
],
|
|
209
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
210
|
+
}]
|
|
211
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
212
|
+
type: Inject,
|
|
213
|
+
args: [FS_2FA_VERIFICATION_PROVIDER]
|
|
214
|
+
}] }]; }, propDecorators: { method: [{
|
|
215
|
+
type: Input
|
|
216
|
+
}], methodChange: [{
|
|
217
|
+
type: Output
|
|
218
|
+
}], cancelled: [{
|
|
219
|
+
type: Output
|
|
220
|
+
}] } });
|
|
37
221
|
|
|
38
|
-
class
|
|
39
|
-
constructor(
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
this.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
click: (data) => {
|
|
80
|
-
this.removeTrustedDevice(data)
|
|
81
|
-
.subscribe(() => {
|
|
82
|
-
this.reload();
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
remove: {
|
|
86
|
-
title: 'Confirm',
|
|
87
|
-
template: 'Are you sure you would like to delete this record?',
|
|
88
|
-
},
|
|
89
|
-
menu: true,
|
|
90
|
-
label: 'Delete',
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
fetch: (query) => {
|
|
94
|
-
return this.fetchTrustedDevices(query)
|
|
95
|
-
.pipe(map((response) => {
|
|
96
|
-
return {
|
|
97
|
-
data: response.data,
|
|
98
|
-
paging: response.paging,
|
|
99
|
-
};
|
|
100
|
-
}));
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
reload() {
|
|
105
|
-
this.listComponent.reload();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
FsTrustedDevicesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsTrustedDevicesComponent, deps: [{ token: i1$1.FsCountry }], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
-
FsTrustedDevicesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsTrustedDevicesComponent, selector: "fs-trusted-devices", inputs: { fetchTrustedDevices: "fetchTrustedDevices", removeTrustedDevice: "removeTrustedDevice", signOutTrustedDevice: "signOutTrustedDevice", showAccount: "showAccount" }, viewQueries: [{ propertyName: "listComponent", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column title=\"Account\" [show]=\"showAccount\">\n <ng-template fs-list-cell let-row=\"row\" class=\"col-account\">\n <div *ngIf=\"row.account\" class=\"row\">\n <fs-badge \n *ngIf=\"row.account.avatarUrl\"\n shape=\"circle\" \n image=\"{{ row.account.avatarUrl }}\">\n </fs-badge>\n <div>\n {{ row.account.name }}\n <div class=\"small\" *ngIf=\"row.account.email\">{{ row.account.email }}</div> \n </div>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Device\">\n <ng-template fs-list-cell let-row=\"row\" class=\"col-device\">\n <div class=\"device\" *ngIf=\"row.device\">\n <fs-current-device *ngIf=\"row.currentDevice\"></fs-current-device>\n <fs-device-os\n [type]=\"row.device.type\"\n [os]=\"row.device.osType\"\n [version]=\"row.device.osVersion\">\n </fs-device-os>\n </div> \n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Browser\">\n <ng-template fs-list-cell let-row=\"row\">\n <fs-device-browser\n *ngIf=\"row.device\"\n [type]=\"row.device.browserType\"\n [version]=\"row.device.browserVersion\"\n [showName]=\"true\"\n ></fs-device-browser>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Added\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.createDate | fsDateAgo }}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Location\">\n <ng-template fs-list-cell let-row=\"row\">\n <fs-country [code]=\"row.ip.country\"></fs-country>\n <div><small>{{row.ip.ip}}</small></div>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Last signed in\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.activityDate | fsDateAgo }}\n </ng-template>\n </fs-list-column>\n</fs-list>\n", styles: [":host ::ng-deep .col-account .row{display:flex;align-items:center}:host ::ng-deep .col-account .row fs-badge{margin-right:5px}:host ::ng-deep .col-device .device{position:relative;display:inline-block}:host ::ng-deep .col-device .device .current-device{right:8px;top:-8px;position:absolute}\n"], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["loaderLines", "config"], outputs: ["filtersReady"] }, { type: i3.FsBadgeComponent, selector: "fs-badge", inputs: ["text", "shape", "color", "tooltip", "size", "image", "icon", "iconSize", "iconColor", "backgroundSize"] }, { type: FsCurrentDeviceComponent, selector: "fs-current-device" }, { type: i5.FsDeviceOsComponent, selector: "fs-device-os", inputs: ["type", "os", "showName", "version"] }, { type: i5.FsDeviceBrowserComponent, selector: "fs-device-browser", inputs: ["type", "version", "showName"] }, { type: i1$1.FsCountryComponent, selector: "fs-country", inputs: ["showIcon", "showName", "width", "code"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "customize", "title", "name", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsDateAgo": i7.FsDateAgoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsTrustedDevicesComponent, decorators: [{
|
|
111
|
-
type: Component,
|
|
112
|
-
args: [{
|
|
113
|
-
selector: 'fs-trusted-devices',
|
|
114
|
-
templateUrl: './trusted-devices.component.html',
|
|
115
|
-
styleUrls: ['./trusted-devices.component.scss'],
|
|
116
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
117
|
-
}]
|
|
118
|
-
}], ctorParameters: function () { return [{ type: i1$1.FsCountry }]; }, propDecorators: { fetchTrustedDevices: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], removeTrustedDevice: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], signOutTrustedDevice: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], showAccount: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}], listComponent: [{
|
|
127
|
-
type: ViewChild,
|
|
128
|
-
args: [FsListComponent]
|
|
222
|
+
class Fs2FAVerificationComponent {
|
|
223
|
+
constructor() {
|
|
224
|
+
this.verified = new EventEmitter();
|
|
225
|
+
this.backToSignIn = new EventEmitter();
|
|
226
|
+
this._view = 'code';
|
|
227
|
+
}
|
|
228
|
+
get view() {
|
|
229
|
+
return this._view;
|
|
230
|
+
}
|
|
231
|
+
switchVerificationMethod(method) {
|
|
232
|
+
this._view = method;
|
|
233
|
+
}
|
|
234
|
+
setActiveMethod(method) {
|
|
235
|
+
this.method = method;
|
|
236
|
+
this.switchVerificationMethod('code');
|
|
237
|
+
}
|
|
238
|
+
cancel() {
|
|
239
|
+
this.switchVerificationMethod('code');
|
|
240
|
+
}
|
|
241
|
+
toSignIn() {
|
|
242
|
+
this.backToSignIn.emit();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
Fs2FAVerificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
+
Fs2FAVerificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2FAVerificationComponent, selector: "fs-2fa-verification", inputs: { method: "method" }, outputs: { verified: "verified", backToSignIn: "backToSignIn" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"view\">\n <ng-container *ngSwitchCase=\"'code'\">\n <fs-2fa-verification-form [method]=\"method\" (verified)=\"verified.emit($event)\">\n <button mat-button type=\"button\" (click)=\"switchVerificationMethod('methods')\">\n Try other ways to verify\n </button>\n\n <a mat-button (click)=\"toSignIn()\">\n Back to signin\n </a>\n </fs-2fa-verification-form>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'methods'\">\n <fs-2fa-verification-methods\n [method]=\"method\"\n (methodChange)=\"setActiveMethod($event)\"\n (cancelled)=\"cancel()\">\n </fs-2fa-verification-methods>\n </ng-container>\n</ng-container>\n", styles: [":host{display:block}\n"], components: [{ type: Fs2FAVerificationFormComponent, selector: "fs-2fa-verification-form", inputs: ["method"], outputs: ["verified"] }, { type: i4.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.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { type: Fs2FaVerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: ["method"], outputs: ["methodChange", "cancelled"] }], directives: [{ type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FAVerificationComponent, decorators: [{
|
|
248
|
+
type: Component,
|
|
249
|
+
args: [{
|
|
250
|
+
selector: 'fs-2fa-verification',
|
|
251
|
+
templateUrl: './2fa-verification.component.html',
|
|
252
|
+
styleUrls: [
|
|
253
|
+
'./2fa-verification.component.scss',
|
|
254
|
+
],
|
|
255
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
256
|
+
}]
|
|
257
|
+
}], ctorParameters: function () { return []; }, propDecorators: { method: [{
|
|
258
|
+
type: Input
|
|
259
|
+
}], verified: [{
|
|
260
|
+
type: Output
|
|
261
|
+
}], backToSignIn: [{
|
|
262
|
+
type: Output
|
|
129
263
|
}] } });
|
|
130
264
|
|
|
131
|
-
class Fs2FaModule {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
265
|
+
class Fs2FaModule {
|
|
266
|
+
}
|
|
267
|
+
Fs2FaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
268
|
+
Fs2FaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaModule, declarations: [Fs2FAVerificationComponent,
|
|
269
|
+
Fs2FAVerificationFormComponent,
|
|
270
|
+
Fs2FAVerificationSMSComponent,
|
|
271
|
+
Fs2FAVerificationOTPComponent,
|
|
272
|
+
Fs2FaVerificationMethodsComponent], imports: [CommonModule,
|
|
273
|
+
FormsModule,
|
|
274
|
+
MatFormFieldModule,
|
|
275
|
+
MatInputModule,
|
|
276
|
+
MatButtonModule,
|
|
277
|
+
FsFormModule,
|
|
278
|
+
// CodeInputModule,
|
|
279
|
+
MatCheckboxModule,
|
|
280
|
+
MatProgressSpinnerModule,
|
|
281
|
+
FsSkeletonModule,
|
|
282
|
+
FsSkeletonModule,
|
|
283
|
+
MatIconModule,
|
|
284
|
+
MatRadioModule,
|
|
285
|
+
FsRadioGroupModule], exports: [Fs2FAVerificationComponent] });
|
|
286
|
+
Fs2FaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaModule, providers: [], imports: [[
|
|
287
|
+
CommonModule,
|
|
288
|
+
FormsModule,
|
|
289
|
+
MatFormFieldModule,
|
|
290
|
+
MatInputModule,
|
|
291
|
+
MatButtonModule,
|
|
292
|
+
FsFormModule,
|
|
293
|
+
// CodeInputModule,
|
|
294
|
+
MatCheckboxModule,
|
|
295
|
+
MatProgressSpinnerModule,
|
|
296
|
+
FsSkeletonModule,
|
|
297
|
+
FsSkeletonModule,
|
|
298
|
+
MatIconModule,
|
|
299
|
+
MatRadioModule,
|
|
300
|
+
FsRadioGroupModule,
|
|
301
|
+
]] });
|
|
302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Fs2FaModule, decorators: [{
|
|
303
|
+
type: NgModule,
|
|
304
|
+
args: [{
|
|
305
|
+
imports: [
|
|
306
|
+
CommonModule,
|
|
307
|
+
FormsModule,
|
|
308
|
+
MatFormFieldModule,
|
|
309
|
+
MatInputModule,
|
|
310
|
+
MatButtonModule,
|
|
311
|
+
FsFormModule,
|
|
312
|
+
// CodeInputModule,
|
|
313
|
+
MatCheckboxModule,
|
|
314
|
+
MatProgressSpinnerModule,
|
|
315
|
+
FsSkeletonModule,
|
|
316
|
+
FsSkeletonModule,
|
|
317
|
+
MatIconModule,
|
|
318
|
+
MatRadioModule,
|
|
319
|
+
FsRadioGroupModule,
|
|
320
|
+
],
|
|
321
|
+
declarations: [
|
|
322
|
+
Fs2FAVerificationComponent,
|
|
323
|
+
Fs2FAVerificationFormComponent,
|
|
324
|
+
Fs2FAVerificationSMSComponent,
|
|
325
|
+
Fs2FAVerificationOTPComponent,
|
|
326
|
+
Fs2FaVerificationMethodsComponent,
|
|
327
|
+
],
|
|
328
|
+
exports: [
|
|
329
|
+
Fs2FAVerificationComponent,
|
|
330
|
+
],
|
|
331
|
+
providers: [],
|
|
332
|
+
}]
|
|
184
333
|
}] });
|
|
185
334
|
|
|
186
|
-
|
|
187
|
-
*
|
|
335
|
+
/*
|
|
336
|
+
* Public API Surface of fs-2fa
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Generated bundle index. Do not edit.
|
|
188
341
|
*/
|
|
189
342
|
|
|
190
|
-
export {
|
|
343
|
+
export { FS_2FA_VERIFICATION_PROVIDER, Fs2FAVerificationComponent, Fs2FaModule, FsVerificationMethodType };
|
|
191
344
|
//# sourceMappingURL=firestitch-2fa.js.map
|