@firestitch/2fa 12.11.4 → 12.11.5

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 (95) hide show
  1. package/app/enums/index.d.ts +1 -1
  2. package/app/enums/verification-method-type.enum.d.ts +5 -5
  3. package/app/interfaces/index.d.ts +1 -1
  4. package/app/interfaces/verification-method.interface.d.ts +11 -11
  5. package/app/modules/code-input/code-input.module.d.ts +9 -9
  6. package/app/modules/code-input/components/code-input/code-input.component.d.ts +13 -13
  7. package/app/modules/code-input/components/code-input/index.d.ts +1 -1
  8. package/app/modules/code-input/index.d.ts +1 -1
  9. package/app/modules/defaulted/components/defaulted/defaulted.component.d.ts +5 -5
  10. package/app/modules/defaulted/components/defaulted/index.d.ts +1 -1
  11. package/app/modules/defaulted/defaulted.module.d.ts +7 -7
  12. package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +30 -30
  13. package/app/modules/manage/components/2fa-manage/index.d.ts +1 -1
  14. package/app/modules/manage/components/app/app.component.d.ts +32 -32
  15. package/app/modules/manage/components/app/index.d.ts +1 -1
  16. package/app/modules/manage/components/email/email.component.d.ts +27 -27
  17. package/app/modules/manage/components/email/index.d.ts +1 -1
  18. package/app/modules/manage/components/emails/emails.component.d.ts +19 -19
  19. package/app/modules/manage/components/emails/index.d.ts +1 -1
  20. package/app/modules/manage/components/manage-methods/index.d.ts +1 -1
  21. package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +35 -35
  22. package/app/modules/manage/components/number/index.d.ts +1 -1
  23. package/app/modules/manage/components/number/number.component.d.ts +28 -28
  24. package/app/modules/manage/components/numbers/index.d.ts +1 -1
  25. package/app/modules/manage/components/numbers/numbers.component.d.ts +20 -20
  26. package/app/modules/manage/components/qr-code/index.d.ts +1 -1
  27. package/app/modules/manage/components/qr-code/qr-code.component.d.ts +11 -11
  28. package/app/modules/manage/fs-2f-manage.module.d.ts +33 -33
  29. package/app/modules/manage/services/index.d.ts +1 -1
  30. package/app/modules/manage/services/two-factor-manage.service.d.ts +52 -52
  31. package/app/modules/resend/components/resend/index.d.ts +1 -1
  32. package/app/modules/resend/components/resend/resend.component.d.ts +14 -14
  33. package/app/modules/resend/resend.module.d.ts +9 -9
  34. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +38 -38
  35. package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +20 -20
  36. package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +22 -22
  37. package/app/modules/verification/directives/2fa-verification-resend.directive.d.ts +11 -11
  38. package/app/modules/verification/directives/index.d.ts +1 -1
  39. package/app/modules/verification/fs-2fa-verification.module.d.ts +25 -25
  40. package/app/modules/verification-methods/components/verification-methods/index.d.ts +1 -1
  41. package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +26 -26
  42. package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -14
  43. package/app/modules/verification-methods/index.d.ts +1 -1
  44. package/bundles/firestitch-2fa.umd.js +1465 -1464
  45. package/bundles/firestitch-2fa.umd.js.map +1 -1
  46. package/esm2015/app/enums/index.js +1 -1
  47. package/esm2015/app/enums/verification-method-type.enum.js +6 -6
  48. package/esm2015/app/interfaces/index.js +1 -1
  49. package/esm2015/app/interfaces/verification-method.interface.js +1 -1
  50. package/esm2015/app/modules/code-input/code-input.module.js +29 -29
  51. package/esm2015/app/modules/code-input/components/code-input/code-input.component.js +36 -36
  52. package/esm2015/app/modules/code-input/components/code-input/index.js +1 -1
  53. package/esm2015/app/modules/code-input/index.js +1 -1
  54. package/esm2015/app/modules/defaulted/components/defaulted/defaulted.component.js +15 -15
  55. package/esm2015/app/modules/defaulted/components/defaulted/index.js +1 -1
  56. package/esm2015/app/modules/defaulted/defaulted.module.js +17 -17
  57. package/esm2015/app/modules/manage/components/2fa-manage/2fa-manage.component.js +103 -103
  58. package/esm2015/app/modules/manage/components/2fa-manage/index.js +1 -1
  59. package/esm2015/app/modules/manage/components/app/app.component.js +87 -87
  60. package/esm2015/app/modules/manage/components/app/index.js +1 -1
  61. package/esm2015/app/modules/manage/components/email/email.component.js +82 -82
  62. package/esm2015/app/modules/manage/components/email/index.js +1 -1
  63. package/esm2015/app/modules/manage/components/emails/emails.component.js +49 -49
  64. package/esm2015/app/modules/manage/components/emails/index.js +1 -1
  65. package/esm2015/app/modules/manage/components/manage-methods/index.js +1 -1
  66. package/esm2015/app/modules/manage/components/manage-methods/manage-methods.component.js +127 -127
  67. package/esm2015/app/modules/manage/components/number/index.js +1 -1
  68. package/esm2015/app/modules/manage/components/number/number.component.js +85 -85
  69. package/esm2015/app/modules/manage/components/numbers/index.js +1 -1
  70. package/esm2015/app/modules/manage/components/numbers/numbers.component.js +50 -50
  71. package/esm2015/app/modules/manage/components/qr-code/index.js +1 -1
  72. package/esm2015/app/modules/manage/components/qr-code/qr-code.component.js +37 -36
  73. package/esm2015/app/modules/manage/fs-2f-manage.module.js +116 -116
  74. package/esm2015/app/modules/manage/services/index.js +1 -1
  75. package/esm2015/app/modules/manage/services/two-factor-manage.service.js +160 -160
  76. package/esm2015/app/modules/resend/components/resend/index.js +1 -1
  77. package/esm2015/app/modules/resend/components/resend/resend.component.js +39 -39
  78. package/esm2015/app/modules/resend/resend.module.js +29 -29
  79. package/esm2015/app/modules/verification/components/2fa-verification/2fa-verification.component.js +128 -128
  80. package/esm2015/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.js +60 -60
  81. package/esm2015/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.js +60 -60
  82. package/esm2015/app/modules/verification/directives/2fa-verification-resend.directive.js +31 -31
  83. package/esm2015/app/modules/verification/directives/index.js +1 -1
  84. package/esm2015/app/modules/verification/fs-2fa-verification.module.js +96 -96
  85. package/esm2015/app/modules/verification-methods/components/verification-methods/index.js +1 -1
  86. package/esm2015/app/modules/verification-methods/components/verification-methods/verification-methods.component.js +120 -120
  87. package/esm2015/app/modules/verification-methods/fs-2f-verification-methods.module.js +47 -47
  88. package/esm2015/app/modules/verification-methods/index.js +1 -1
  89. package/esm2015/firestitch-2fa.js +4 -4
  90. package/esm2015/public_api.js +8 -8
  91. package/fesm2015/firestitch-2fa.js +1314 -1313
  92. package/fesm2015/firestitch-2fa.js.map +1 -1
  93. package/firestitch-2fa.d.ts +5 -5
  94. package/package.json +1 -1
  95. package/public_api.d.ts +9 -9
@@ -48,1518 +48,1519 @@
48
48
  var QRCode__default = /*#__PURE__*/_interopDefaultLegacy(QRCode);
49
49
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
50
50
 
51
- exports.VerificationMethodType = void 0;
52
- (function (VerificationMethodType) {
53
- VerificationMethodType["Sms"] = "sms";
54
- VerificationMethodType["Email"] = "email";
55
- VerificationMethodType["App"] = "app";
51
+ exports.VerificationMethodType = void 0;
52
+ (function (VerificationMethodType) {
53
+ VerificationMethodType["Sms"] = "sms";
54
+ VerificationMethodType["Email"] = "email";
55
+ VerificationMethodType["App"] = "app";
56
56
  })(exports.VerificationMethodType || (exports.VerificationMethodType = {}));
57
57
 
58
- var Fs2faVerificationMethodsComponent = /** @class */ (function () {
59
- function Fs2faVerificationMethodsComponent(_dialogData, _dialogRef) {
60
- var _this = this;
61
- this._dialogData = _dialogData;
62
- this._dialogRef = _dialogRef;
63
- this.verificationMethodType = exports.VerificationMethodType;
64
- this.setVerificationMethod = function () {
65
- return _this._selectVerificationMethod(_this.verificationMethod)
66
- .pipe(operators.tap(function (method) {
67
- _this._dialogRef.close(method);
68
- }));
69
- };
70
- this._selectVerificationMethod = _dialogData.selectVerificationMethod;
71
- this._setActiveMethod();
72
- this._initMethods(_dialogData.verificationMethods);
73
- }
74
- Fs2faVerificationMethodsComponent.prototype.compareWith = function (o1, o2) {
75
- return o1 && o2 && o1.id === o2.id;
76
- };
77
- Fs2faVerificationMethodsComponent.prototype._setActiveMethod = function () {
78
- var _a;
79
- this.verificationMethod = (_a = this._dialogData) === null || _a === void 0 ? void 0 : _a.verificationMethod;
80
- };
81
- Fs2faVerificationMethodsComponent.prototype._initMethods = function (verificationMethods) {
82
- this.verificationMethods = verificationMethods
83
- .reduce(function (acc, method) {
84
- if (!acc[method.type]) {
85
- acc[method.type] = [];
86
- }
87
- acc[method.type].push(method);
88
- return acc;
89
- }, {});
90
- };
91
- return Fs2faVerificationMethodsComponent;
92
- }());
93
- Fs2faVerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
94
- Fs2faVerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationMethodsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Verification Methods\n </h1>\n <form fsForm [submit]=\"setVerificationMethod\" [dirtySubmitButton]=\"false\">\n <mat-dialog-content>\n <ng-container>\n <fs-radio-group [(ngModel)]=\"verificationMethod\" name=\"method\" [compareWith]=\"compareWith\">\n <ng-container *ngFor=\"let methodMap of verificationMethods | 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 textsms\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Text Message</div>\n <div class=\"method-subtitle\">\n Send verification code to a 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 Send verification code to an email address\n </div>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"verificationMethodType.App\">\n <div class=\"method-header\">\n <div class=\"method-icon\">\n <mat-icon>\n phone_iphone\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Authenticator App</div>\n <div class=\"method-subtitle\">\n Send verification code to your authenticator app\n </div>\n </div>\n </div>\n </ng-container> \n </ng-container>\n\n <mat-radio-button class=\"method-item\" *ngFor=\"let method of methodMap.value\" [value]=\"method\">\n <ng-container [ngSwitch]=\"methodMap.key\">\n <ng-container *ngSwitchCase=\"verificationMethodType.Sms\">\n {{ method.phoneNumber }}\n </ng-container>\n <ng-container *ngSwitchCase=\"verificationMethodType.Email\">\n {{ method.email }}\n </ng-container>\n <ng-container *ngSwitchCase=\"verificationMethodType.App\">\n Authenticator App\n </ng-container> \n </ng-container>\n </mat-radio-button>\n </div>\n </ng-container>\n </fs-radio-group>\n </ng-container>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div class=\"actions\">\n <button mat-button type=\"submit\" color=\"primary\">Next</button>\n <button mat-button type=\"button\" [mat-dialog-close]=\"null\">Cancel</button>\n </div>\n </mat-dialog-actions>\n </form>\n</fs-dialog>\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: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3__namespace$1.FsRadioGroupComponent, selector: "fs-radio-group", inputs: ["orientation", "label", "name", "disabled", "radioPosition", "compareWith", "required"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5__namespace.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i9__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i9__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "keyvalue": i9__namespace$1.KeyValuePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
95
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, decorators: [{
96
- type: i0.Component,
97
- args: [{
98
- templateUrl: './2fa-verification-methods.component.html',
99
- styleUrls: ['./2fa-verification-methods.component.scss'],
100
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
101
- }]
102
- }], ctorParameters: function () {
103
- return [{ type: undefined, decorators: [{
104
- type: i0.Inject,
105
- args: [i1.MAT_DIALOG_DATA]
106
- }] }, { type: i1__namespace.MatDialogRef }];
58
+ var Fs2faVerificationMethodsComponent = /** @class */ (function () {
59
+ function Fs2faVerificationMethodsComponent(_dialogData, _dialogRef) {
60
+ var _this = this;
61
+ this._dialogData = _dialogData;
62
+ this._dialogRef = _dialogRef;
63
+ this.verificationMethodType = exports.VerificationMethodType;
64
+ this.setVerificationMethod = function () {
65
+ return _this._selectVerificationMethod(_this.verificationMethod)
66
+ .pipe(operators.tap(function (method) {
67
+ _this._dialogRef.close(method);
68
+ }));
69
+ };
70
+ this._selectVerificationMethod = _dialogData.selectVerificationMethod;
71
+ this._setActiveMethod();
72
+ this._initMethods(_dialogData.verificationMethods);
73
+ }
74
+ Fs2faVerificationMethodsComponent.prototype.compareWith = function (o1, o2) {
75
+ return o1 && o2 && o1.id === o2.id;
76
+ };
77
+ Fs2faVerificationMethodsComponent.prototype._setActiveMethod = function () {
78
+ var _a;
79
+ this.verificationMethod = (_a = this._dialogData) === null || _a === void 0 ? void 0 : _a.verificationMethod;
80
+ };
81
+ Fs2faVerificationMethodsComponent.prototype._initMethods = function (verificationMethods) {
82
+ this.verificationMethods = verificationMethods
83
+ .reduce(function (acc, method) {
84
+ if (!acc[method.type]) {
85
+ acc[method.type] = [];
86
+ }
87
+ acc[method.type].push(method);
88
+ return acc;
89
+ }, {});
90
+ };
91
+ return Fs2faVerificationMethodsComponent;
92
+ }());
93
+ Fs2faVerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
94
+ Fs2faVerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationMethodsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Verification Methods\n </h1>\n <form fsForm [submit]=\"setVerificationMethod\" [dirtySubmitButton]=\"false\">\n <mat-dialog-content>\n <ng-container>\n <fs-radio-group [(ngModel)]=\"verificationMethod\" name=\"method\" [compareWith]=\"compareWith\">\n <ng-container *ngFor=\"let methodMap of verificationMethods | 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 textsms\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Text Message</div>\n <div class=\"method-subtitle\">\n Send verification code to a 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 Send verification code to an email address\n </div>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"verificationMethodType.App\">\n <div class=\"method-header\">\n <div class=\"method-icon\">\n <mat-icon>\n phone_iphone\n </mat-icon>\n </div>\n <div class=\"method-name\">\n <div class=\"method-title\">Authenticator App</div>\n <div class=\"method-subtitle\">\n Send verification code to your authenticator app\n </div>\n </div>\n </div>\n </ng-container> \n </ng-container>\n\n <mat-radio-button class=\"method-item\" *ngFor=\"let method of methodMap.value\" [value]=\"method\">\n <ng-container [ngSwitch]=\"methodMap.key\">\n <ng-container *ngSwitchCase=\"verificationMethodType.Sms\">\n {{ method.phoneNumber }}\n </ng-container>\n <ng-container *ngSwitchCase=\"verificationMethodType.Email\">\n {{ method.email }}\n </ng-container>\n <ng-container *ngSwitchCase=\"verificationMethodType.App\">\n Authenticator App\n </ng-container> \n </ng-container>\n </mat-radio-button>\n </div>\n </ng-container>\n </fs-radio-group>\n </ng-container>\n </mat-dialog-content>\n <mat-dialog-actions>\n <div class=\"actions\">\n <button mat-button type=\"submit\" color=\"primary\">Next</button>\n <button mat-button type=\"button\" [mat-dialog-close]=\"null\">Cancel</button>\n </div>\n </mat-dialog-actions>\n </form>\n</fs-dialog>\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: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3__namespace$1.FsRadioGroupComponent, selector: "fs-radio-group", inputs: ["orientation", "label", "name", "disabled", "radioPosition", "compareWith", "required"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i5__namespace.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i9__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9__namespace$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i9__namespace$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "keyvalue": i9__namespace$1.KeyValuePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
95
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, decorators: [{
96
+ type: i0.Component,
97
+ args: [{
98
+ templateUrl: './2fa-verification-methods.component.html',
99
+ styleUrls: ['./2fa-verification-methods.component.scss'],
100
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
101
+ }]
102
+ }], ctorParameters: function () {
103
+ return [{ type: undefined, decorators: [{
104
+ type: i0.Inject,
105
+ args: [i1.MAT_DIALOG_DATA]
106
+ }] }, { type: i1__namespace.MatDialogRef }];
107
107
  } });
108
108
 
109
- var CodeInputComponent = /** @class */ (function () {
110
- function CodeInputComponent() {
111
- this.codeCompleted = new i0.EventEmitter();
112
- this.codeChanged = new i0.EventEmitter();
113
- }
114
- CodeInputComponent.prototype.focus = function () {
115
- this.codeInput.focusOnField(0);
116
- };
117
- return CodeInputComponent;
118
- }());
119
- CodeInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
120
- CodeInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CodeInputComponent, selector: "app-code-input", inputs: { codeLength: "codeLength", code: "code" }, outputs: { codeCompleted: "codeCompleted", codeChanged: "codeChanged" }, viewQueries: [{ propertyName: "codeInput", first: true, predicate: i1$1.FsCodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-code-input\n [codeLength]=\"6\"\n [ngModel]=\"code\"\n name=\"code\"\n [isPrevFocusableAfterClearing]=\"false\"\n (completed)=\"codeCompleted.emit($event)\"\n (ngModelChange)=\"codeChanged.emit($event)\">\n</fs-code-input>\n", styles: ["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"], components: [{ type: i1__namespace$1.FsCodeInputComponent, selector: "fs-code-input", inputs: ["disabled", "codeLength", "inputType", "inputMode", "isCharsCode", "isCodeHidden", "autocapitalize", "initialFocusField", "isPrevFocusableAfterClearing", "isFocusingOnLastByClickIfFilled"], outputs: ["changed", "completed"] }], directives: [{ type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
121
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputComponent, decorators: [{
122
- type: i0.Component,
123
- args: [{
124
- selector: 'app-code-input',
125
- templateUrl: './code-input.component.html',
126
- styleUrls: ['./code-input.component.scss'],
127
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
128
- }]
129
- }], propDecorators: { codeInput: [{
130
- type: i0.ViewChild,
131
- args: [i1$1.FsCodeInputComponent]
132
- }], codeLength: [{
133
- type: i0.Input
134
- }], code: [{
135
- type: i0.Input
136
- }], codeCompleted: [{
137
- type: i0.Output
138
- }], codeChanged: [{
139
- type: i0.Output
109
+ var CodeInputComponent = /** @class */ (function () {
110
+ function CodeInputComponent() {
111
+ this.codeCompleted = new i0.EventEmitter();
112
+ this.codeChanged = new i0.EventEmitter();
113
+ }
114
+ CodeInputComponent.prototype.focus = function () {
115
+ this.codeInput.focusOnField(0);
116
+ };
117
+ return CodeInputComponent;
118
+ }());
119
+ CodeInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
120
+ CodeInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CodeInputComponent, selector: "app-code-input", inputs: { codeLength: "codeLength", code: "code" }, outputs: { codeCompleted: "codeCompleted", codeChanged: "codeChanged" }, viewQueries: [{ propertyName: "codeInput", first: true, predicate: i1$1.FsCodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-code-input\n [codeLength]=\"6\"\n [ngModel]=\"code\"\n name=\"code\"\n [isPrevFocusableAfterClearing]=\"false\"\n (completed)=\"codeCompleted.emit($event)\"\n (ngModelChange)=\"codeChanged.emit($event)\">\n</fs-code-input>\n", styles: ["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"], components: [{ type: i1__namespace$1.FsCodeInputComponent, selector: "fs-code-input", inputs: ["disabled", "codeLength", "inputType", "inputMode", "isCharsCode", "isCodeHidden", "autocapitalize", "initialFocusField", "isPrevFocusableAfterClearing", "isFocusingOnLastByClickIfFilled"], outputs: ["changed", "completed"] }], directives: [{ type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
121
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputComponent, decorators: [{
122
+ type: i0.Component,
123
+ args: [{
124
+ selector: 'app-code-input',
125
+ templateUrl: './code-input.component.html',
126
+ styleUrls: ['./code-input.component.scss'],
127
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
128
+ }]
129
+ }], propDecorators: { codeInput: [{
130
+ type: i0.ViewChild,
131
+ args: [i1$1.FsCodeInputComponent]
132
+ }], codeLength: [{
133
+ type: i0.Input
134
+ }], code: [{
135
+ type: i0.Input
136
+ }], codeCompleted: [{
137
+ type: i0.Output
138
+ }], codeChanged: [{
139
+ type: i0.Output
140
140
  }] } });
141
141
 
142
- var Fs2faVerificationCodeComponent = /** @class */ (function () {
143
- function Fs2faVerificationCodeComponent(_form) {
144
- this._form = _form;
145
- this.codeChanged = new i0.EventEmitter();
146
- this.codeCompleted = new i0.EventEmitter();
147
- this.VerificationMethodType = exports.VerificationMethodType;
148
- }
149
- Fs2faVerificationCodeComponent.prototype.codeChange = function (code) {
150
- this.code = code;
151
- this.codeChanged.emit(this.code);
152
- this._form.dirty();
153
- };
154
- Fs2faVerificationCodeComponent.prototype.focus = function () {
155
- this.codeInputComponent.focus();
156
- };
157
- return Fs2faVerificationCodeComponent;
158
- }());
159
- Fs2faVerificationCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationCodeComponent, deps: [{ token: i9__namespace.FsFormDirective }], target: i0__namespace.ɵɵFactoryTarget.Component });
160
- Fs2faVerificationCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: { type: "type", recipient: "recipient", code: "code" }, outputs: { codeChanged: "codeChanged", codeCompleted: "codeCompleted" }, viewQueries: [{ propertyName: "codeInputComponent", first: true, predicate: CodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeCompleted.emit()\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"], components: [{ type: CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], viewProviders: [
161
- {
162
- provide: i8.ControlContainer,
163
- useExisting: i8.NgForm,
164
- },
165
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
166
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationCodeComponent, decorators: [{
167
- type: i0.Component,
168
- args: [{
169
- selector: 'fs-2fa-verification-code',
170
- templateUrl: './2fa-verification-code.component.html',
171
- styleUrls: ['./2fa-verification-code.component.scss'],
172
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
173
- viewProviders: [
174
- {
175
- provide: i8.ControlContainer,
176
- useExisting: i8.NgForm,
177
- },
178
- ],
179
- }]
180
- }], ctorParameters: function () { return [{ type: i9__namespace.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
181
- type: i0.ViewChild,
182
- args: [CodeInputComponent]
183
- }], type: [{
184
- type: i0.Input
185
- }], recipient: [{
186
- type: i0.Input
187
- }], code: [{
188
- type: i0.Input
189
- }], codeChanged: [{
190
- type: i0.Output
191
- }], codeCompleted: [{
192
- type: i0.Output
142
+ var Fs2faVerificationCodeComponent = /** @class */ (function () {
143
+ function Fs2faVerificationCodeComponent(_form) {
144
+ this._form = _form;
145
+ this.codeChanged = new i0.EventEmitter();
146
+ this.codeCompleted = new i0.EventEmitter();
147
+ this.VerificationMethodType = exports.VerificationMethodType;
148
+ }
149
+ Fs2faVerificationCodeComponent.prototype.codeChange = function (code) {
150
+ this.code = code;
151
+ this.codeChanged.emit(this.code);
152
+ this._form.dirty();
153
+ };
154
+ Fs2faVerificationCodeComponent.prototype.focus = function () {
155
+ this.codeInputComponent.focus();
156
+ };
157
+ return Fs2faVerificationCodeComponent;
158
+ }());
159
+ Fs2faVerificationCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationCodeComponent, deps: [{ token: i9__namespace.FsFormDirective }], target: i0__namespace.ɵɵFactoryTarget.Component });
160
+ Fs2faVerificationCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: { type: "type", recipient: "recipient", code: "code" }, outputs: { codeChanged: "codeChanged", codeCompleted: "codeCompleted" }, viewQueries: [{ propertyName: "codeInputComponent", first: true, predicate: CodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeCompleted.emit()\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"], components: [{ type: CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], viewProviders: [
161
+ {
162
+ provide: i8.ControlContainer,
163
+ useExisting: i8.NgForm,
164
+ },
165
+ ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
166
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationCodeComponent, decorators: [{
167
+ type: i0.Component,
168
+ args: [{
169
+ selector: 'fs-2fa-verification-code',
170
+ templateUrl: './2fa-verification-code.component.html',
171
+ styleUrls: ['./2fa-verification-code.component.scss'],
172
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
173
+ viewProviders: [
174
+ {
175
+ provide: i8.ControlContainer,
176
+ useExisting: i8.NgForm,
177
+ },
178
+ ],
179
+ }]
180
+ }], ctorParameters: function () { return [{ type: i9__namespace.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
181
+ type: i0.ViewChild,
182
+ args: [CodeInputComponent]
183
+ }], type: [{
184
+ type: i0.Input
185
+ }], recipient: [{
186
+ type: i0.Input
187
+ }], code: [{
188
+ type: i0.Input
189
+ }], codeChanged: [{
190
+ type: i0.Output
191
+ }], codeCompleted: [{
192
+ type: i0.Output
193
193
  }] } });
194
194
 
195
- var Fs2faVerificationComponent = /** @class */ (function () {
196
- function Fs2faVerificationComponent(_cdRef, _dialog, _message) {
197
- this._cdRef = _cdRef;
198
- this._dialog = _dialog;
199
- this._message = _message;
200
- this.showTrustedDevice = true;
201
- this.trustDevice = true;
202
- this.formatRecipient = false;
203
- this.verified = new i0.EventEmitter();
204
- this.codeChanged = new i0.EventEmitter();
205
- this.codeCompleted = new i0.EventEmitter();
206
- this.trustDeviceChange = new i0.EventEmitter();
207
- this.code = '';
208
- this.VerificationMethodType = exports.VerificationMethodType;
209
- this._destroy$ = new rxjs.Subject();
210
- }
211
- Object.defineProperty(Fs2faVerificationComponent.prototype, "recipient", {
212
- get: function () {
213
- if (this.verificationMethod.type === exports.VerificationMethodType.Email) {
214
- return this.verificationMethod.email;
215
- }
216
- if (this.verificationMethod.type === exports.VerificationMethodType.Sms) {
217
- return this.verificationMethod.phoneNumber;
218
- }
219
- },
220
- enumerable: false,
221
- configurable: true
222
- });
223
- Fs2faVerificationComponent.prototype.ngOnInit = function () {
224
- var _this = this;
225
- this.codeChanged
226
- .pipe(operators.takeUntil(this._destroy$))
227
- .subscribe(function (code) {
228
- _this.code = code;
229
- });
230
- };
231
- Fs2faVerificationComponent.prototype.ngOnDestroy = function () {
232
- this._destroy$.next();
233
- this._destroy$.complete();
234
- };
235
- Fs2faVerificationComponent.prototype.ngAfterViewInit = function () {
236
- this.verificationCodeComponent.focus();
237
- };
238
- Fs2faVerificationComponent.prototype.resendCode = function () {
239
- var _this = this;
240
- return this.resend()
241
- .pipe(operators.tap(function () {
242
- _this.code = '';
243
- _this._message.success('Resent Code');
244
- }), operators.finalize(function () {
245
- _this.verificationCodeComponent.focus();
246
- }));
247
- };
248
- Fs2faVerificationComponent.prototype.showVerificationMethods = function () {
249
- var _this = this;
250
- this.getVerificationMethods()
251
- .subscribe(function (verificationMethods) {
252
- _this._dialog.open(Fs2faVerificationMethodsComponent, {
253
- data: {
254
- verificationMethod: _this.verificationMethod,
255
- verificationMethods: verificationMethods,
256
- selectVerificationMethod: _this.selectVerificationMethod,
257
- }
258
- })
259
- .afterClosed()
260
- .pipe(operators.filter(function (verificationMethod) { return !!verificationMethod; }))
261
- .subscribe(function (verificationMethod) {
262
- _this.verificationMethod = verificationMethod;
263
- _this.code = '';
264
- _this._cdRef.markForCheck();
265
- setTimeout(function () {
266
- _this.verificationCodeComponent.focus();
267
- });
268
- });
269
- });
270
- };
271
- return Fs2faVerificationComponent;
272
- }());
273
- Fs2faVerificationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.FsDialog }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
274
- Fs2faVerificationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: { verificationMethod: "verificationMethod", resend: "resend", showTrustedDevice: "showTrustedDevice", trustDevice: "trustDevice", trustDays: "trustDays", formatRecipient: "formatRecipient", getVerificationMethods: "getVerificationMethods", selectVerificationMethod: "selectVerificationMethod" }, outputs: { verified: "verified", codeChanged: "codeChanged", codeCompleted: "codeCompleted", trustDeviceChange: "trustDeviceChange" }, viewQueries: [{ propertyName: "verificationCodeComponent", first: true, predicate: Fs2faVerificationCodeComponent, descendants: true }], ngImport: i0__namespace, template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeCompleted.emit()\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n Trust device\n <div class=\"small\">\n Bypass 2-Step Verification on this browser <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> unless you clear cookies.\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center;margin-bottom:1.25em}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"], components: [{ type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "code"], outputs: ["codeChanged", "codeCompleted"] }, { type: i6__namespace$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"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
275
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationComponent, decorators: [{
276
- type: i0.Component,
277
- args: [{
278
- selector: 'fs-2fa-verification',
279
- templateUrl: './2fa-verification.component.html',
280
- styleUrls: ['./2fa-verification.component.scss'],
281
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
282
- viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }],
283
- }]
284
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.FsDialog }, { type: i2__namespace.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
285
- type: i0.ViewChild,
286
- args: [Fs2faVerificationCodeComponent]
287
- }], verificationMethod: [{
288
- type: i0.Input
289
- }], resend: [{
290
- type: i0.Input
291
- }], showTrustedDevice: [{
292
- type: i0.Input
293
- }], trustDevice: [{
294
- type: i0.Input
295
- }], trustDays: [{
296
- type: i0.Input
297
- }], formatRecipient: [{
298
- type: i0.Input
299
- }], getVerificationMethods: [{
300
- type: i0.Input
301
- }], selectVerificationMethod: [{
302
- type: i0.Input
303
- }], verified: [{
304
- type: i0.Output
305
- }], codeChanged: [{
306
- type: i0.Output
307
- }], codeCompleted: [{
308
- type: i0.Output
309
- }], trustDeviceChange: [{
310
- type: i0.Output
195
+ var Fs2faVerificationComponent = /** @class */ (function () {
196
+ function Fs2faVerificationComponent(_cdRef, _dialog, _message) {
197
+ this._cdRef = _cdRef;
198
+ this._dialog = _dialog;
199
+ this._message = _message;
200
+ this.showTrustedDevice = true;
201
+ this.trustDevice = true;
202
+ this.formatRecipient = false;
203
+ this.verified = new i0.EventEmitter();
204
+ this.codeChanged = new i0.EventEmitter();
205
+ this.codeCompleted = new i0.EventEmitter();
206
+ this.trustDeviceChange = new i0.EventEmitter();
207
+ this.code = '';
208
+ this.VerificationMethodType = exports.VerificationMethodType;
209
+ this._destroy$ = new rxjs.Subject();
210
+ }
211
+ Object.defineProperty(Fs2faVerificationComponent.prototype, "recipient", {
212
+ get: function () {
213
+ if (this.verificationMethod.type === exports.VerificationMethodType.Email) {
214
+ return this.verificationMethod.email;
215
+ }
216
+ if (this.verificationMethod.type === exports.VerificationMethodType.Sms) {
217
+ return this.verificationMethod.phoneNumber;
218
+ }
219
+ },
220
+ enumerable: false,
221
+ configurable: true
222
+ });
223
+ Fs2faVerificationComponent.prototype.ngOnInit = function () {
224
+ var _this = this;
225
+ this.codeChanged
226
+ .pipe(operators.takeUntil(this._destroy$))
227
+ .subscribe(function (code) {
228
+ _this.code = code;
229
+ });
230
+ };
231
+ Fs2faVerificationComponent.prototype.ngOnDestroy = function () {
232
+ this._destroy$.next();
233
+ this._destroy$.complete();
234
+ };
235
+ Fs2faVerificationComponent.prototype.ngAfterViewInit = function () {
236
+ this.verificationCodeComponent.focus();
237
+ };
238
+ Fs2faVerificationComponent.prototype.resendCode = function () {
239
+ var _this = this;
240
+ return this.resend()
241
+ .pipe(operators.tap(function () {
242
+ _this.code = '';
243
+ _this._message.success('Resent Code');
244
+ }), operators.finalize(function () {
245
+ _this.verificationCodeComponent.focus();
246
+ }));
247
+ };
248
+ Fs2faVerificationComponent.prototype.showVerificationMethods = function () {
249
+ var _this = this;
250
+ this.getVerificationMethods()
251
+ .subscribe(function (verificationMethods) {
252
+ _this._dialog.open(Fs2faVerificationMethodsComponent, {
253
+ data: {
254
+ verificationMethod: _this.verificationMethod,
255
+ verificationMethods: verificationMethods,
256
+ selectVerificationMethod: _this.selectVerificationMethod,
257
+ }
258
+ })
259
+ .afterClosed()
260
+ .pipe(operators.filter(function (verificationMethod) { return !!verificationMethod; }))
261
+ .subscribe(function (verificationMethod) {
262
+ _this.verificationMethod = verificationMethod;
263
+ _this.code = '';
264
+ _this._cdRef.markForCheck();
265
+ setTimeout(function () {
266
+ _this.verificationCodeComponent.focus();
267
+ });
268
+ });
269
+ });
270
+ };
271
+ return Fs2faVerificationComponent;
272
+ }());
273
+ Fs2faVerificationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.FsDialog }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
274
+ Fs2faVerificationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: { verificationMethod: "verificationMethod", resend: "resend", showTrustedDevice: "showTrustedDevice", trustDevice: "trustDevice", trustDays: "trustDays", formatRecipient: "formatRecipient", getVerificationMethods: "getVerificationMethods", selectVerificationMethod: "selectVerificationMethod" }, outputs: { verified: "verified", codeChanged: "codeChanged", codeCompleted: "codeCompleted", trustDeviceChange: "trustDeviceChange" }, viewQueries: [{ propertyName: "verificationCodeComponent", first: true, predicate: Fs2faVerificationCodeComponent, descendants: true }], ngImport: i0__namespace, template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeCompleted.emit()\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n <div class=\"small\">\n Bypass verification \n <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> \n <ng-container *ngIf=\"!trustDays\">for future signins</ng-container> \n unless cookies are cleared\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"], components: [{ type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "code"], outputs: ["codeChanged", "codeCompleted"] }, { type: i6__namespace$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"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
275
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationComponent, decorators: [{
276
+ type: i0.Component,
277
+ args: [{
278
+ selector: 'fs-2fa-verification',
279
+ templateUrl: './2fa-verification.component.html',
280
+ styleUrls: ['./2fa-verification.component.scss'],
281
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
282
+ viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }],
283
+ }]
284
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.FsDialog }, { type: i2__namespace.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
285
+ type: i0.ViewChild,
286
+ args: [Fs2faVerificationCodeComponent]
287
+ }], verificationMethod: [{
288
+ type: i0.Input
289
+ }], resend: [{
290
+ type: i0.Input
291
+ }], showTrustedDevice: [{
292
+ type: i0.Input
293
+ }], trustDevice: [{
294
+ type: i0.Input
295
+ }], trustDays: [{
296
+ type: i0.Input
297
+ }], formatRecipient: [{
298
+ type: i0.Input
299
+ }], getVerificationMethods: [{
300
+ type: i0.Input
301
+ }], selectVerificationMethod: [{
302
+ type: i0.Input
303
+ }], verified: [{
304
+ type: i0.Output
305
+ }], codeChanged: [{
306
+ type: i0.Output
307
+ }], codeCompleted: [{
308
+ type: i0.Output
309
+ }], trustDeviceChange: [{
310
+ type: i0.Output
311
311
  }] } });
312
312
 
313
- var CodeInputModule = /** @class */ (function () {
314
- function CodeInputModule() {
315
- }
316
- return CodeInputModule;
317
- }());
318
- CodeInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
319
- CodeInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, declarations: [CodeInputComponent], imports: [i8.FormsModule,
320
- i1$1.FsCodeInputModule], exports: [CodeInputComponent] });
321
- CodeInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, imports: [[
322
- i8.FormsModule,
323
- i1$1.FsCodeInputModule,
324
- ]] });
325
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, decorators: [{
326
- type: i0.NgModule,
327
- args: [{
328
- imports: [
329
- i8.FormsModule,
330
- i1$1.FsCodeInputModule,
331
- ],
332
- declarations: [
333
- CodeInputComponent,
334
- ],
335
- exports: [
336
- CodeInputComponent,
337
- ],
338
- }]
313
+ var CodeInputModule = /** @class */ (function () {
314
+ function CodeInputModule() {
315
+ }
316
+ return CodeInputModule;
317
+ }());
318
+ CodeInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
319
+ CodeInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, declarations: [CodeInputComponent], imports: [i8.FormsModule,
320
+ i1$1.FsCodeInputModule], exports: [CodeInputComponent] });
321
+ CodeInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, imports: [[
322
+ i8.FormsModule,
323
+ i1$1.FsCodeInputModule,
324
+ ]] });
325
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, decorators: [{
326
+ type: i0.NgModule,
327
+ args: [{
328
+ imports: [
329
+ i8.FormsModule,
330
+ i1$1.FsCodeInputModule,
331
+ ],
332
+ declarations: [
333
+ CodeInputComponent,
334
+ ],
335
+ exports: [
336
+ CodeInputComponent,
337
+ ],
338
+ }]
339
339
  }] });
340
340
 
341
- var ResendComponent = /** @class */ (function () {
342
- function ResendComponent(_cdRef) {
343
- this._cdRef = _cdRef;
344
- this.resendInProgress = false;
345
- this._destroy$ = new rxjs.Subject();
346
- }
347
- ResendComponent.prototype.resendClick = function () {
348
- var _this = this;
349
- this.resendInProgress = true;
350
- this.resend()
351
- .pipe(operators.finalize(function () {
352
- _this.resendInProgress = false;
353
- _this._cdRef.markForCheck();
354
- }), operators.takeUntil(this._destroy$))
355
- .subscribe();
356
- };
357
- ResendComponent.prototype.ngOnDestroy = function () {
358
- this._destroy$.next();
359
- this._destroy$.complete();
360
- };
361
- return ResendComponent;
362
- }());
363
- ResendComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
364
- ResendComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResendComponent, selector: "app-resend", inputs: { resend: "resend" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!resendInProgress else sending\">\n Didn't receive a code? <a (click)=\"resendClick()\">Resend</a>\n</ng-container>\n<ng-template #sending>\n <div class=\"sending\">\n <mat-spinner [diameter]=\"12\"></mat-spinner> Sending\n </div>\n</ng-template>\n\n", styles: ["small{color:inherit}.sending{display:inline-flex;align-items:center}.sending mat-spinner{margin-right:2px}\n"], components: [{ type: i1__namespace$2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
365
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, decorators: [{
366
- type: i0.Component,
367
- args: [{
368
- selector: 'app-resend',
369
- templateUrl: './resend.component.html',
370
- styleUrls: ['./resend.component.scss'],
371
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
372
- }]
373
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { resend: [{
374
- type: i0.Input
341
+ var ResendComponent = /** @class */ (function () {
342
+ function ResendComponent(_cdRef) {
343
+ this._cdRef = _cdRef;
344
+ this.resendInProgress = false;
345
+ this._destroy$ = new rxjs.Subject();
346
+ }
347
+ ResendComponent.prototype.resendClick = function () {
348
+ var _this = this;
349
+ this.resendInProgress = true;
350
+ this.resend()
351
+ .pipe(operators.finalize(function () {
352
+ _this.resendInProgress = false;
353
+ _this._cdRef.markForCheck();
354
+ }), operators.takeUntil(this._destroy$))
355
+ .subscribe();
356
+ };
357
+ ResendComponent.prototype.ngOnDestroy = function () {
358
+ this._destroy$.next();
359
+ this._destroy$.complete();
360
+ };
361
+ return ResendComponent;
362
+ }());
363
+ ResendComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
364
+ ResendComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResendComponent, selector: "app-resend", inputs: { resend: "resend" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"!resendInProgress else sending\">\n Didn't receive a code? <a (click)=\"resendClick()\">Resend</a>\n</ng-container>\n<ng-template #sending>\n <div class=\"sending\">\n <mat-spinner [diameter]=\"12\"></mat-spinner> Sending\n </div>\n</ng-template>\n\n", styles: ["small{color:inherit}.sending{display:inline-flex;align-items:center}.sending mat-spinner{margin-right:2px}\n"], components: [{ type: i1__namespace$2.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
365
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, decorators: [{
366
+ type: i0.Component,
367
+ args: [{
368
+ selector: 'app-resend',
369
+ templateUrl: './resend.component.html',
370
+ styleUrls: ['./resend.component.scss'],
371
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
372
+ }]
373
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { resend: [{
374
+ type: i0.Input
375
375
  }] } });
376
376
 
377
- var ResendModule = /** @class */ (function () {
378
- function ResendModule() {
379
- }
380
- return ResendModule;
381
- }());
382
- ResendModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
383
- ResendModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, declarations: [ResendComponent], imports: [i9$1.CommonModule,
384
- i1$2.MatProgressSpinnerModule], exports: [ResendComponent] });
385
- ResendModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, imports: [[
386
- i9$1.CommonModule,
387
- i1$2.MatProgressSpinnerModule,
388
- ]] });
389
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, decorators: [{
390
- type: i0.NgModule,
391
- args: [{
392
- imports: [
393
- i9$1.CommonModule,
394
- i1$2.MatProgressSpinnerModule,
395
- ],
396
- declarations: [
397
- ResendComponent,
398
- ],
399
- exports: [
400
- ResendComponent,
401
- ],
402
- }]
377
+ var ResendModule = /** @class */ (function () {
378
+ function ResendModule() {
379
+ }
380
+ return ResendModule;
381
+ }());
382
+ ResendModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
383
+ ResendModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, declarations: [ResendComponent], imports: [i9$1.CommonModule,
384
+ i1$2.MatProgressSpinnerModule], exports: [ResendComponent] });
385
+ ResendModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, imports: [[
386
+ i9$1.CommonModule,
387
+ i1$2.MatProgressSpinnerModule,
388
+ ]] });
389
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, decorators: [{
390
+ type: i0.NgModule,
391
+ args: [{
392
+ imports: [
393
+ i9$1.CommonModule,
394
+ i1$2.MatProgressSpinnerModule,
395
+ ],
396
+ declarations: [
397
+ ResendComponent,
398
+ ],
399
+ exports: [
400
+ ResendComponent,
401
+ ],
402
+ }]
403
403
  }] });
404
404
 
405
- var Fs2faVerificationResendDirective = /** @class */ (function () {
406
- function Fs2faVerificationResendDirective(_button) {
407
- this._button = _button;
408
- }
409
- Fs2faVerificationResendDirective.prototype.click = function () {
410
- var _this = this;
411
- this._button.disabled = true;
412
- this.verification.resendCode()
413
- .pipe(operators.finalize(function () { return _this._button.disabled = false; }))
414
- .subscribe();
415
- };
416
- return Fs2faVerificationResendDirective;
417
- }());
418
- Fs2faVerificationResendDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, deps: [{ token: i6__namespace.MatButton }], target: i0__namespace.ɵɵFactoryTarget.Directive });
419
- Fs2faVerificationResendDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationResendDirective, selector: "[fs2faVerificationResend]", inputs: { verification: ["fs2faVerificationResend", "verification"] }, host: { listeners: { "click": "click()" } }, ngImport: i0__namespace });
420
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, decorators: [{
421
- type: i0.Directive,
422
- args: [{
423
- selector: '[fs2faVerificationResend]',
424
- }]
425
- }], ctorParameters: function () { return [{ type: i6__namespace.MatButton }]; }, propDecorators: { verification: [{
426
- type: i0.Input,
427
- args: ['fs2faVerificationResend']
428
- }], click: [{
429
- type: i0.HostListener,
430
- args: ['click']
405
+ var Fs2faVerificationResendDirective = /** @class */ (function () {
406
+ function Fs2faVerificationResendDirective(_button) {
407
+ this._button = _button;
408
+ }
409
+ Fs2faVerificationResendDirective.prototype.click = function () {
410
+ var _this = this;
411
+ this._button.disabled = true;
412
+ this.verification.resendCode()
413
+ .pipe(operators.finalize(function () { return _this._button.disabled = false; }))
414
+ .subscribe();
415
+ };
416
+ return Fs2faVerificationResendDirective;
417
+ }());
418
+ Fs2faVerificationResendDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, deps: [{ token: i6__namespace.MatButton }], target: i0__namespace.ɵɵFactoryTarget.Directive });
419
+ Fs2faVerificationResendDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faVerificationResendDirective, selector: "[fs2faVerificationResend]", inputs: { verification: ["fs2faVerificationResend", "verification"] }, host: { listeners: { "click": "click()" } }, ngImport: i0__namespace });
420
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, decorators: [{
421
+ type: i0.Directive,
422
+ args: [{
423
+ selector: '[fs2faVerificationResend]',
424
+ }]
425
+ }], ctorParameters: function () { return [{ type: i6__namespace.MatButton }]; }, propDecorators: { verification: [{
426
+ type: i0.Input,
427
+ args: ['fs2faVerificationResend']
428
+ }], click: [{
429
+ type: i0.HostListener,
430
+ args: ['click']
431
431
  }] } });
432
432
 
433
- var Fs2faVerificationModule = /** @class */ (function () {
434
- function Fs2faVerificationModule() {
435
- }
436
- return Fs2faVerificationModule;
437
- }());
438
- Fs2faVerificationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
439
- Fs2faVerificationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, declarations: [Fs2faVerificationComponent,
440
- Fs2faVerificationCodeComponent,
441
- Fs2faVerificationMethodsComponent,
442
- Fs2faVerificationResendDirective], imports: [i9$1.CommonModule,
443
- i8.FormsModule,
444
- i5$1.MatFormFieldModule,
445
- i11.MatInputModule,
446
- i6.MatButtonModule,
447
- i4.MatIconModule,
448
- i5.MatRadioModule,
449
- i6$1.MatCheckboxModule,
450
- i9.FsFormModule,
451
- i3$1.FsRadioGroupModule,
452
- i3.FsDialogModule,
453
- i11$1.FsSkeletonModule,
454
- i8$1.FsPhoneModule,
455
- i11$1.FsSkeletonModule,
456
- ResendModule,
457
- CodeInputModule], exports: [Fs2faVerificationComponent,
458
- Fs2faVerificationResendDirective] });
459
- Fs2faVerificationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, providers: [], imports: [[
460
- i9$1.CommonModule,
461
- i8.FormsModule,
462
- i5$1.MatFormFieldModule,
463
- i11.MatInputModule,
464
- i6.MatButtonModule,
465
- i4.MatIconModule,
466
- i5.MatRadioModule,
467
- i6$1.MatCheckboxModule,
468
- i9.FsFormModule,
469
- i3$1.FsRadioGroupModule,
470
- i3.FsDialogModule,
471
- i11$1.FsSkeletonModule,
472
- i8$1.FsPhoneModule,
473
- i11$1.FsSkeletonModule,
474
- ResendModule,
475
- CodeInputModule,
476
- ]] });
477
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, decorators: [{
478
- type: i0.NgModule,
479
- args: [{
480
- imports: [
481
- i9$1.CommonModule,
482
- i8.FormsModule,
483
- i5$1.MatFormFieldModule,
484
- i11.MatInputModule,
485
- i6.MatButtonModule,
486
- i4.MatIconModule,
487
- i5.MatRadioModule,
488
- i6$1.MatCheckboxModule,
489
- i9.FsFormModule,
490
- i3$1.FsRadioGroupModule,
491
- i3.FsDialogModule,
492
- i11$1.FsSkeletonModule,
493
- i8$1.FsPhoneModule,
494
- i11$1.FsSkeletonModule,
495
- ResendModule,
496
- CodeInputModule,
497
- ],
498
- declarations: [
499
- Fs2faVerificationComponent,
500
- Fs2faVerificationCodeComponent,
501
- Fs2faVerificationMethodsComponent,
502
- Fs2faVerificationResendDirective,
503
- ],
504
- exports: [
505
- Fs2faVerificationComponent,
506
- Fs2faVerificationResendDirective,
507
- ],
508
- providers: [],
509
- }]
433
+ var Fs2faVerificationModule = /** @class */ (function () {
434
+ function Fs2faVerificationModule() {
435
+ }
436
+ return Fs2faVerificationModule;
437
+ }());
438
+ Fs2faVerificationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
439
+ Fs2faVerificationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, declarations: [Fs2faVerificationComponent,
440
+ Fs2faVerificationCodeComponent,
441
+ Fs2faVerificationMethodsComponent,
442
+ Fs2faVerificationResendDirective], imports: [i9$1.CommonModule,
443
+ i8.FormsModule,
444
+ i5$1.MatFormFieldModule,
445
+ i11.MatInputModule,
446
+ i6.MatButtonModule,
447
+ i4.MatIconModule,
448
+ i5.MatRadioModule,
449
+ i6$1.MatCheckboxModule,
450
+ i9.FsFormModule,
451
+ i3$1.FsRadioGroupModule,
452
+ i3.FsDialogModule,
453
+ i11$1.FsSkeletonModule,
454
+ i8$1.FsPhoneModule,
455
+ i11$1.FsSkeletonModule,
456
+ ResendModule,
457
+ CodeInputModule], exports: [Fs2faVerificationComponent,
458
+ Fs2faVerificationResendDirective] });
459
+ Fs2faVerificationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, providers: [], imports: [[
460
+ i9$1.CommonModule,
461
+ i8.FormsModule,
462
+ i5$1.MatFormFieldModule,
463
+ i11.MatInputModule,
464
+ i6.MatButtonModule,
465
+ i4.MatIconModule,
466
+ i5.MatRadioModule,
467
+ i6$1.MatCheckboxModule,
468
+ i9.FsFormModule,
469
+ i3$1.FsRadioGroupModule,
470
+ i3.FsDialogModule,
471
+ i11$1.FsSkeletonModule,
472
+ i8$1.FsPhoneModule,
473
+ i11$1.FsSkeletonModule,
474
+ ResendModule,
475
+ CodeInputModule,
476
+ ]] });
477
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, decorators: [{
478
+ type: i0.NgModule,
479
+ args: [{
480
+ imports: [
481
+ i9$1.CommonModule,
482
+ i8.FormsModule,
483
+ i5$1.MatFormFieldModule,
484
+ i11.MatInputModule,
485
+ i6.MatButtonModule,
486
+ i4.MatIconModule,
487
+ i5.MatRadioModule,
488
+ i6$1.MatCheckboxModule,
489
+ i9.FsFormModule,
490
+ i3$1.FsRadioGroupModule,
491
+ i3.FsDialogModule,
492
+ i11$1.FsSkeletonModule,
493
+ i8$1.FsPhoneModule,
494
+ i11$1.FsSkeletonModule,
495
+ ResendModule,
496
+ CodeInputModule,
497
+ ],
498
+ declarations: [
499
+ Fs2faVerificationComponent,
500
+ Fs2faVerificationCodeComponent,
501
+ Fs2faVerificationMethodsComponent,
502
+ Fs2faVerificationResendDirective,
503
+ ],
504
+ exports: [
505
+ Fs2faVerificationComponent,
506
+ Fs2faVerificationResendDirective,
507
+ ],
508
+ providers: [],
509
+ }]
510
510
  }] });
511
511
 
512
- var QrCodeComponent = /** @class */ (function () {
513
- function QrCodeComponent(_cdRef) {
514
- this._cdRef = _cdRef;
515
- }
516
- QrCodeComponent.prototype.ngOnInit = function () {
517
- var _this = this;
518
- QRCode__default["default"].toDataURL(this.value, {
519
- errorCorrectionLevel: 'H',
520
- width: 300,
521
- height: 300,
522
- })
523
- .then(function (url) {
524
- _this.image = url;
525
- _this._cdRef.markForCheck();
526
- })
527
- .catch(function (err) {
528
- console.error(err);
529
- });
530
- };
531
- return QrCodeComponent;
532
- }());
533
- QrCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QrCodeComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
534
- QrCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QrCodeComponent, selector: "app-qr-code", inputs: { value: "value" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"image\">\n <img [src]=\"image\">\n</ng-container>", styles: ["img{display:flex;margin:auto}\n"], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
535
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QrCodeComponent, decorators: [{
536
- type: i0.Component,
537
- args: [{
538
- selector: 'app-qr-code',
539
- templateUrl: './qr-code.component.html',
540
- styleUrls: ['./qr-code.component.scss'],
541
- }]
542
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { value: [{
543
- type: i0.Input
512
+ var QrCodeComponent = /** @class */ (function () {
513
+ function QrCodeComponent(_cdRef) {
514
+ this._cdRef = _cdRef;
515
+ }
516
+ QrCodeComponent.prototype.ngOnInit = function () {
517
+ var _this = this;
518
+ QRCode__default["default"].toDataURL(this.value, {
519
+ errorCorrectionLevel: 'H',
520
+ width: 300,
521
+ height: 300,
522
+ })
523
+ .then(function (url) {
524
+ _this.image = url;
525
+ _this._cdRef.markForCheck();
526
+ })
527
+ .catch(function (err) {
528
+ console.error(err);
529
+ });
530
+ };
531
+ return QrCodeComponent;
532
+ }());
533
+ QrCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QrCodeComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
534
+ QrCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QrCodeComponent, selector: "app-qr-code", inputs: { value: "value" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"image\">\n <img [src]=\"image\">\n</ng-container>", styles: ["img{display:flex;margin:auto}\n"], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
535
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QrCodeComponent, decorators: [{
536
+ type: i0.Component,
537
+ args: [{
538
+ selector: 'app-qr-code',
539
+ templateUrl: './qr-code.component.html',
540
+ styleUrls: ['./qr-code.component.scss'],
541
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
542
+ }]
543
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { value: [{
544
+ type: i0.Input
544
545
  }] } });
545
546
 
546
- var AppComponent = /** @class */ (function () {
547
- function AppComponent(_data, _dialogRef, _cdRef, _message) {
548
- var _this = this;
549
- this._data = _data;
550
- this._dialogRef = _dialogRef;
551
- this._cdRef = _cdRef;
552
- this._message = _message;
553
- this.mode = 'qr-code';
554
- this.verify = function () {
555
- return _this.twoFactorManageService.verificationMethodVerify$(_this.code, true)
556
- .pipe(operators.switchMap(function () {
557
- return _this.default && _this.twoFactorManageService.verificationMethodDefault$ ?
558
- _this.twoFactorManageService.verificationMethodDefault$(_this.verificationMethod) :
559
- rxjs.of(true);
560
- }), operators.tap(function () {
561
- _this._message.success('Created app authenticator verification method');
562
- _this._dialogRef.close(true);
563
- }));
564
- };
565
- }
566
- AppComponent.prototype.ngOnInit = function () {
567
- this.twoFactorManageService = this._data.twoFactorManageService;
568
- this.accountId = this._data.accountId;
569
- this.default = !this.twoFactorManageService.hasVerificationMethods;
570
- };
571
- AppComponent.prototype.appTypeGoogle = function () {
572
- this.appTypeSelect('google');
573
- };
574
- AppComponent.prototype.appTypeAuthy = function () {
575
- this.appTypeSelect('authy');
576
- };
577
- AppComponent.prototype.appTypeSelect = function (appType) {
578
- var _this = this;
579
- this.appType = appType;
580
- this.twoFactorManageService.verificationMethodCreate$({
581
- type: exports.VerificationMethodType.App,
582
- })
583
- .subscribe(function (verificationMethod) {
584
- _this.verificationMethod = verificationMethod;
585
- _this.qrCodeUrl = verificationMethod.qrCodeUrl;
586
- _this._cdRef.markForCheck();
587
- });
588
- };
589
- AppComponent.prototype.codeCompleted = function () {
590
- this.form.triggerSubmit();
591
- };
592
- AppComponent.prototype.codeChanged = function (code) {
593
- this.code = code;
594
- this.form.dirty();
595
- };
596
- AppComponent.prototype.next = function () {
597
- this.mode = 'code-input';
598
- };
599
- return AppComponent;
600
- }());
601
- AppComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
602
- AppComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"verify\">\n <fs-dialog>\n <h1 mat-dialog-title>Authenticator App Setup</h1>\n <mat-dialog-content>\n\n <div *ngIf=\"mode === 'qr-code'\" class=\"qr-code\">\n <ng-container *ngIf=\"appType\">\n <ol>\n <li>\n <ng-container *ngIf=\"appType === 'authy'\">\n Install the Authy Authenticator App from the <a href=\"https://apps.apple.com/us/app/authy/id494168017\" target=\"_blank\">App Store</a> or\n the <a href=\"https://play.google.com/store/apps/details?id=com.authy.authy\" target=\"_blank\">Google Play Store</a>.\n </ng-container>\n\n <ng-container *ngIf=\"appType === 'google'\">\n Install the Google Authenticator App from the <a href=\"https://apps.apple.com/us/app/google-authenticator/id388497605\" target=\"_blank\">App Store</a> or\n the <a href=\"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en_US&gl=US\" target=\"_blank\">Google Play Store</a>.\n </ng-container>\n </li>\n <ng-container *ngIf=\"appType === 'authy'\">\n <li>\n Open the Authy app and select <b>Add Account</b>.\n </li>\n <li>\n Select <b>Scan QR Code</b> and scan the QR code below.\n </li>\n </ng-container> \n <ng-container *ngIf=\"appType === 'google'\">\n <li>\n Open the Google Authentictor app and click the <b>Plus icon</b> in the lower right corner.\n </li>\n <li>\n Select <b>Scan a QR code</b> and scan the QR code below.\n </li>\n </ng-container>\n </ol>\n\n <ng-container *fsSkeleton=\"qrCodeUrl\">\n <app-qr-code\n [value]=\"qrCodeUrl\">\n </app-qr-code>\n </ng-container>\n </ng-container>\n\n <div class=\"app-types\" *ngIf=\"!appType\">\n <p>Select the Authenticator App you prefer</p>\n\n <div class=\"row\">\n <span>\n <a (click)=\"appTypeAuthy()\">\n <svg width=\"50\" height=\"50\" viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"xMidYMid\"><path d=\"M256 127.998C256 198.696 198.694 256 127.997 256 57.304 256 0 198.696 0 127.998 0 57.305 57.304 0 127.997 0 198.694 0 256 57.305 256 127.998z\" fill=\"#EC1C24\"/><path d=\"M117.024 100.89l30.691 30.68c4.43 4.436 11.623 4.436 16.064 0 4.431-4.435 4.441-11.622 0-16.058L133.086 84.82C111.125 62.854 75.631 62.5 53.204 83.704a9.536 9.536 0 0 0-.605.548c-.098.098-.178.202-.275.29-.1.096-.202.182-.297.278-.194.193-.371.396-.54.597-21.215 22.437-20.85 57.932 1.113 79.897L83.292 196c4.44 4.433 11.623 4.433 16.062 0 4.442-4.437 4.442-11.633.011-16.06l-30.693-30.691c-13.398-13.393-13.488-35.129-.278-48.637 13.506-13.21 35.23-13.114 48.63.279zm39.612-40.873c-4.435 4.437-4.435 11.623.012 16.059l30.681 30.693c13.39 13.392 13.477 35.125.268 48.636-13.51 13.2-35.227 13.112-48.623-.282l-30.692-30.689c-4.438-4.437-11.633-4.437-16.066 0-4.443 4.433-4.443 11.642 0 16.065l30.682 30.694c21.968 21.965 57.458 22.322 79.889 1.116.208-.184.404-.355.61-.549.094-.095.182-.192.273-.29.1-.095.197-.183.29-.289.197-.183.365-.384.54-.594 21.215-22.428 20.86-57.911-1.102-79.889l-30.692-30.682c-4.436-4.443-11.638-4.443-16.07.001z\" fill=\"#FFF\"/></svg>\n </a>\n Authy\n </span>\n \n <span>\n <a (click)=\"appTypeGoogle()\"> \n <svg width=\"50\" height=\"50\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m457.07 45.92c73.67-8.62 149.41.22 218.93 26.24 62.75 23.47 120.59 60.41 167.72 108.09-40.31 39.97-80.25 80.31-120.51 120.33-25.95-25.45-56.19-46.65-89.47-61.37-44.22-19.82-93.39-28.54-141.72-25.2-54.6 3.52-108.11 22.49-152.63 54.3-55.24 38.95-96.61 97.22-114.8 162.35-13.64 47.78-14.77 98.97-3.76 147.4 8.85 39.61 26.09 77.29 50.05 110.03 22.24 30.45 50.3 56.64 82.22 76.71 36.79 23.24 78.76 38.22 121.96 43.48 37.02 4.65 74.9 2.23 111.05-7 3.97-1.91 6.24 2.61 8.73 4.86 40.74 40.95 81.68 81.7 122.43 122.63-73.31 35.6-155.99 51.86-237.3 46.12-68.05-4.51-135.07-24.08-194.71-57.18-24.87-13.6-48.23-29.82-70.33-47.54-17.46-14.81-34.71-30.01-49.72-47.35-25.41-27.39-47.21-58.11-65.17-90.87-4-7.72-8.64-15.12-11.9-23.2-4.47-9.05-8.37-18.36-12.25-27.67-4.96-13.27-10.26-26.44-13.88-40.15-.43-1.81-1.53-3.33-2.52-4.85-8.3-28.66-12.95-58.33-15.44-88.04-2.62-37.36-1.33-75.05 4.78-112.03 12.18-75.48 43.41-147.74 89.86-208.44 30.12-39.5 66.53-74.21 107.46-102.35 62.44-43.11 135.53-70.69 210.92-79.3m49.18 50.48c-5.7.99-10.96 3.76-15.38 7.43-10.4 8.93-14.14 24.81-8.17 37.28 6.33 15.02 25.16 23.1 40.36 17 15.43-5.24 24.78-23.51 19.74-39.06-4.1-15.43-20.92-25.79-36.55-22.65m-267.96 111.99c-5.33.28-10.59 1.92-15.16 4.68-11.47 7.03-17.88 21.74-14.36 34.86 3.09 14.08 16.78 25.06 31.26 24.61 15.03.41 29.08-11.39 31.54-26.17 2.24-10.33-1.61-21.55-9.14-28.85-6.24-6.33-15.3-9.62-24.14-9.13m-115.96 272c-6.62 1.23-12.84 4.58-17.54 9.4-9.45 9.72-11.72 25.57-5.02 37.42 7.16 13.96 25.48 20.86 39.98 14.62 15.02-5.51 23.99-23.42 19.06-38.71-4.04-15.41-20.86-25.96-36.48-22.73m111.98 272.05c-11.49 1.95-21.48 10.72-24.84 21.88-3.87 11.63-.13 25.16 8.9 33.36 6.15 5.48 14.4 8.7 22.67 8.32 11.16-.25 21.98-6.87 27.12-16.8 4.93-8.83 5.15-20.02.71-29.1-5.82-12.78-20.81-20.33-34.56-17.66m272.06 112.03c-11.76 2.02-21.92 11.07-25.09 22.6-3.87 12.57 1.13 27.25 11.91 34.79 7.86 5.79 18.42 7.67 27.77 4.86 9.61-2.77 17.7-10.24 21.07-19.68 4.97-12.74.36-28.32-10.58-36.46-7.02-5.45-16.35-7.67-25.08-6.11z\" fill=\"#a0a0a0\"/>\n <g fill=\"#c1c1c1\">\n <path d=\"m506.25 96.4c15.63-3.14 32.45 7.22 36.55 22.65 5.04 15.55-4.31 33.82-19.74 39.06-15.2 6.1-34.03-1.98-40.36-17-5.97-12.47-2.23-28.35 8.17-37.28 4.42-3.67 9.68-6.44 15.38-7.43z\"/>\n <path d=\"m122.33 480.39c15.62-3.23 32.44 7.32 36.48 22.73 4.93 15.29-4.04 33.2-19.06 38.71-14.5 6.24-32.82-.66-39.98-14.62-6.7-11.85-4.43-27.7 5.02-37.42 4.7-4.82 10.92-8.17 17.54-9.4z\"/>\n </g>\n <path d=\"m843.72 180.25.11-.11c24.64 25.12 46.96 52.6 65.61 82.47 36.01 57.16 59.38 122.22 67.87 189.25 5.67 44.88 5.27 90.6-2.05 135.27-12.7 80.01-46.94 156.41-97.9 219.36-42.3 52.48-95.87 96.04-156.41 125.76l-.63-.26c-1.01-1.1-2.03-2.16-3.05-3.22-40.75-40.93-81.69-81.68-122.43-122.63-2.49-2.25-4.76-6.77-8.73-4.86-36.15 9.23-74.03 11.65-111.05 7-43.2-5.26-85.17-20.24-121.96-43.48-31.92-20.07-59.98-46.26-82.22-76.71-23.96-32.74-41.2-70.42-50.05-110.03-11.01-48.43-9.88-99.62 3.76-147.4 18.19-65.13 59.56-123.4 114.8-162.35 44.52-31.81 98.03-50.78 152.63-54.3 48.33-3.34 97.5 5.38 141.72 25.2 33.28 14.72 63.52 35.92 89.47 61.37 40.26-40.02 80.2-80.36 120.51-120.33m-351.75 183.97c-21.23 2.85-41.89 10.28-59.88 21.94-23.08 14.45-41.76 35.58-53.9 59.91-14.58 29.2-18.64 63.21-12.5 95.17 3.93 19.85 12.03 38.88 23.56 55.51 7.93 11.52 17.65 21.66 27.65 31.38 57.33 57.41 114.61 114.86 171.99 172.21 49.09-13.07 94.67-38.94 131.05-74.4 45.11-43.34 75.66-101.44 86.31-163.06.24-1.04.22-2.91 1.85-2.6 29.63.04 59.26-.01 88.9.05 19.04-.3 36.87-14.77 40.76-33.46.22-1.21 0-2.32-.67-3.35 1.22-5.71 2.08-11.58 1.38-17.43l-.24.4c-2.05-20.34-20.84-37.12-41.25-37.17-80.64-.07-161.28-.01-241.93-.07-6.44-22.08-18.5-42.33-34.03-59.23-25.8-27.5-62.26-45.01-100.02-46.82-9.68.02-19.44-.54-29.03 1.02m286.37 388.31c-12.64 2.06-23.37 12.59-25.7 25.18-1.48 8.14-.14 17.02 4.73 23.85 5.76 9.2 16.8 14.76 27.61 14.25 8.32.03 16.28-3.95 22.16-9.66 4.87-5.6 8.45-12.67 8.67-20.2.86-11.37-5.06-23.1-14.87-28.96-6.52-4.46-14.89-5.75-22.6-4.46z\" fill=\"#686868\"/>\n <path d=\"m238.29 208.39c8.84-.49 17.9 2.8 24.14 9.13 7.53 7.3 11.38 18.52 9.14 28.85-2.46 14.78-16.51 26.58-31.54 26.17-14.48.45-28.17-10.53-31.26-24.61-3.52-13.12 2.89-27.83 14.36-34.86 4.57-2.76 9.83-4.4 15.16-4.68z\" fill=\"#c3c3c3\"/>\n <path d=\"m491.97 364.22c9.59-1.56 19.35-1 29.03-1.02 37.76 1.81 74.22 19.32 100.02 46.82 15.53 16.9 27.59 37.15 34.03 59.23-47.67-.01-95.35-.01-143.03-.01-12.19-.11-24.23 5.42-32.21 14.61-6.01 6.85-9.74 15.65-10.44 24.74-1.19 14.17 5.36 28.7 16.69 37.28 7.62 5.91 17.28 9 26.92 8.8 126.69-.04 253.39-.06 380.08.03 4.76.04 9.59-.15 14.2-1.48 14.21-3.82 26.02-15.47 29.83-29.7.67 1.03.89 2.14.67 3.35-3.89 18.69-21.72 33.16-40.76 33.46-29.64-.06-59.27-.01-88.9-.05-1.63-.31-1.61 1.56-1.85 2.6-10.65 61.62-41.2 119.72-86.31 163.06-36.38 35.46-81.96 61.33-131.05 74.4-57.38-57.35-114.66-114.8-171.99-172.21-10-9.72-19.72-19.86-27.65-31.38-11.53-16.63-19.63-35.66-23.56-55.51-6.14-31.96-2.08-65.97 12.5-95.17 12.14-24.33 30.82-45.46 53.9-59.91 17.99-11.66 38.65-19.09 59.88-21.94z\" fill=\"#474747\"/>\n <g fill=\"#bfbfbf\">\n <path d=\"m479.81 483.85c7.98-9.19 20.02-14.72 32.21-14.61 47.68 0 95.36 0 143.03.01 80.65.06 161.29 0 241.93.07 20.41.05 39.2 16.83 41.25 37.17-.19.33-.58.97-.78 1.29-3.68-18.51-21.57-33.16-40.47-33.05-124.97.1-249.94.12-374.91.17-7.73.13-15.74-.8-23.15 1.96-9.06 2.84-16.73 9.1-22.27 16.7-3.34 4.55-4.39 10.24-7.28 15.03.7-9.09 4.43-17.89 10.44-24.74z\"/>\n <path d=\"m234.31 752.44c13.75-2.67 28.74 4.88 34.56 17.66 4.44 9.08 4.22 20.27-.71 29.1-5.14 9.93-15.96 16.55-27.12 16.8-8.27.38-16.52-2.84-22.67-8.32-9.03-8.2-12.77-21.73-8.9-33.36 3.36-11.16 13.35-19.93 24.84-21.88z\"/>\n </g>\n <path d=\"m498.92 476.86c7.41-2.76 15.42-1.83 23.15-1.96 124.97-.05 249.94-.07 374.91-.17 18.9-.11 36.79 14.54 40.47 33.05.2-.32.59-.96.78-1.29l.24-.4c.7 5.85-.16 11.72-1.38 17.43-3.81 14.23-15.62 25.88-29.83 29.7-4.61 1.33-9.44 1.52-14.2 1.48-126.69-.09-253.39-.07-380.08-.03-9.64.2-19.3-2.89-26.92-8.8-11.33-8.58-17.88-23.11-16.69-37.28 2.89-4.79 3.94-10.48 7.28-15.03 5.54-7.6 13.21-13.86 22.27-16.7z\" fill=\"#b0b0b0\"/>\n <path d=\"m59.49 636.08c.99 1.52 2.09 3.04 2.52 4.85 3.62 13.71 8.92 26.88 13.88 40.15 3.88 9.31 7.78 18.62 12.25 27.67 3.26 8.08 7.9 15.48 11.9 23.2 17.96 32.76 39.76 63.48 65.17 90.87 15.01 17.34 32.26 32.54 49.72 47.35 22.1 17.72 45.46 33.94 70.33 47.54 59.64 33.1 126.66 52.67 194.71 57.18 81.31 5.74 163.99-10.52 237.3-46.12 1.02 1.06 2.04 2.12 3.05 3.22l.03.61c-42.32 21.03-87.88 35.53-134.56 42.91-56.91 8.9-115.46 7.49-171.82-4.5-67.89-14.35-132.42-44.21-187.42-86.51-63.52-48.63-114.32-113.73-145.86-187.27-8.42-19.87-15.93-40.22-21.2-61.15z\" fill=\"#939393\"/>\n <path d=\"m778.34 752.53c7.71-1.29 16.08 0 22.6 4.46 9.81 5.86 15.73 17.59 14.87 28.96-.22 7.53-3.8 14.6-8.67 20.2-5.88 5.71-13.84 9.69-22.16 9.66-10.81.51-21.85-5.05-27.61-14.25-4.87-6.83-6.21-15.71-4.73-23.85 2.33-12.59 13.06-23.12 25.7-25.18z\" fill=\"#767676\"/>\n <path d=\"m506.37 864.47c8.73-1.56 18.06.66 25.08 6.11 10.94 8.14 15.55 23.72 10.58 36.46-3.37 9.44-11.46 16.91-21.07 19.68-9.35 2.81-19.91.93-27.77-4.86-10.78-7.54-15.78-22.22-11.91-34.79 3.17-11.53 13.33-20.58 25.09-22.6z\" fill=\"#bebebe\"/>\n </svg>\n </a>\n Google Authenticator\n </span>\n </div>\n </div>\n \n </div>\n\n <div *ngIf=\"mode === 'code-input'\" class=\"code-input\">\n <div>\n Enter the 6-digit code you see in the App.\n </div>\n\n <app-code-input\n [codeLength]=\"6\"\n (codeChanged)=\"codeChanged($event)\">\n </app-code-input>\n \n <div class=\"checkboxes\">\n <mat-checkbox name=\"default\" [(ngModel)]=\"default\" [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <ng-container *ngIf=\"appType\">\n <button\n *ngIf=\"mode === 'qr-code'\"\n type=\"button\"\n mat-button\n color=\"primary\"\n (click)=\"next()\">\n Next\n </button>\n <button\n *ngIf=\"mode === 'code-input'\"\n type=\"submit\"\n mat-button\n color=\"primary\"\n (click)=\"next()\">\n Verify\n </button> \n </ng-container>\n <button\n type=\"button\"\n mat-button\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["ul{margin:0;padding-left:24px}qr-code{display:flex;justify-content:center;margin:30px}app-code-input{margin-top:10px}.code-input{width:400px}.app-types{text-align:center;padding:0 40px}.app-types .row{display:flex;justify-content:center}.app-types .row span{display:flex;flex-direction:column;text-align:center;max-width:100px}.app-types .row span+span{margin-left:40px}.checkboxes{margin:8px 0}.checkboxes mat-checkbox{display:block}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: QrCodeComponent, selector: "app-qr-code", inputs: ["value"] }, { type: CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
603
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, decorators: [{
604
- type: i0.Component,
605
- args: [{
606
- templateUrl: './app.component.html',
607
- styleUrls: ['./app.component.scss'],
608
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
609
- }]
610
- }], ctorParameters: function () {
611
- return [{ type: undefined, decorators: [{
612
- type: i0.Inject,
613
- args: [i1.MAT_DIALOG_DATA]
614
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
615
- }, propDecorators: { form: [{
616
- type: i0.ViewChild,
617
- args: [i9.FsFormDirective]
547
+ var AppComponent = /** @class */ (function () {
548
+ function AppComponent(_data, _dialogRef, _cdRef, _message) {
549
+ var _this = this;
550
+ this._data = _data;
551
+ this._dialogRef = _dialogRef;
552
+ this._cdRef = _cdRef;
553
+ this._message = _message;
554
+ this.mode = 'qr-code';
555
+ this.verify = function () {
556
+ return _this.twoFactorManageService.verificationMethodVerify$(_this.code, true)
557
+ .pipe(operators.switchMap(function () {
558
+ return _this.default && _this.twoFactorManageService.verificationMethodDefault$ ?
559
+ _this.twoFactorManageService.verificationMethodDefault$(_this.verificationMethod) :
560
+ rxjs.of(true);
561
+ }), operators.tap(function () {
562
+ _this._message.success('Created app authenticator verification method');
563
+ _this._dialogRef.close(true);
564
+ }));
565
+ };
566
+ }
567
+ AppComponent.prototype.ngOnInit = function () {
568
+ this.twoFactorManageService = this._data.twoFactorManageService;
569
+ this.accountId = this._data.accountId;
570
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
571
+ };
572
+ AppComponent.prototype.appTypeGoogle = function () {
573
+ this.appTypeSelect('google');
574
+ };
575
+ AppComponent.prototype.appTypeAuthy = function () {
576
+ this.appTypeSelect('authy');
577
+ };
578
+ AppComponent.prototype.appTypeSelect = function (appType) {
579
+ var _this = this;
580
+ this.appType = appType;
581
+ this.twoFactorManageService.verificationMethodCreate$({
582
+ type: exports.VerificationMethodType.App,
583
+ })
584
+ .subscribe(function (verificationMethod) {
585
+ _this.verificationMethod = verificationMethod;
586
+ _this.qrCodeUrl = verificationMethod.qrCodeUrl;
587
+ _this._cdRef.markForCheck();
588
+ });
589
+ };
590
+ AppComponent.prototype.codeCompleted = function () {
591
+ this.form.triggerSubmit();
592
+ };
593
+ AppComponent.prototype.codeChanged = function (code) {
594
+ this.code = code;
595
+ this.form.dirty();
596
+ };
597
+ AppComponent.prototype.next = function () {
598
+ this.mode = 'code-input';
599
+ };
600
+ return AppComponent;
601
+ }());
602
+ AppComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
603
+ AppComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"verify\">\n <fs-dialog>\n <h1 mat-dialog-title>Authenticator App Setup</h1>\n <mat-dialog-content>\n\n <div *ngIf=\"mode === 'qr-code'\" class=\"qr-code\">\n <ng-container *ngIf=\"appType\">\n <ol>\n <li>\n <ng-container *ngIf=\"appType === 'authy'\">\n Install the Authy Authenticator App from the <a href=\"https://apps.apple.com/us/app/authy/id494168017\" target=\"_blank\">App Store</a> or\n the <a href=\"https://play.google.com/store/apps/details?id=com.authy.authy\" target=\"_blank\">Google Play Store</a>.\n </ng-container>\n\n <ng-container *ngIf=\"appType === 'google'\">\n Install the Google Authenticator App from the <a href=\"https://apps.apple.com/us/app/google-authenticator/id388497605\" target=\"_blank\">App Store</a> or\n the <a href=\"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en_US&gl=US\" target=\"_blank\">Google Play Store</a>.\n </ng-container>\n </li>\n <ng-container *ngIf=\"appType === 'authy'\">\n <li>\n Open the Authy app and select <b>Add Account</b>.\n </li>\n <li>\n Select <b>Scan QR Code</b> and scan the QR code below.\n </li>\n </ng-container> \n <ng-container *ngIf=\"appType === 'google'\">\n <li>\n Open the Google Authentictor app and click the <b>Plus icon</b> in the lower right corner.\n </li>\n <li>\n Select <b>Scan a QR code</b> and scan the QR code below.\n </li>\n </ng-container>\n </ol>\n\n <ng-container *fsSkeleton=\"qrCodeUrl\">\n <app-qr-code\n [value]=\"qrCodeUrl\">\n </app-qr-code>\n </ng-container>\n </ng-container>\n\n <div class=\"app-types\" *ngIf=\"!appType\">\n <p>Select the Authenticator App you prefer</p>\n\n <div class=\"row\">\n <span>\n <a (click)=\"appTypeAuthy()\">\n <svg width=\"50\" height=\"50\" viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"xMidYMid\"><path d=\"M256 127.998C256 198.696 198.694 256 127.997 256 57.304 256 0 198.696 0 127.998 0 57.305 57.304 0 127.997 0 198.694 0 256 57.305 256 127.998z\" fill=\"#EC1C24\"/><path d=\"M117.024 100.89l30.691 30.68c4.43 4.436 11.623 4.436 16.064 0 4.431-4.435 4.441-11.622 0-16.058L133.086 84.82C111.125 62.854 75.631 62.5 53.204 83.704a9.536 9.536 0 0 0-.605.548c-.098.098-.178.202-.275.29-.1.096-.202.182-.297.278-.194.193-.371.396-.54.597-21.215 22.437-20.85 57.932 1.113 79.897L83.292 196c4.44 4.433 11.623 4.433 16.062 0 4.442-4.437 4.442-11.633.011-16.06l-30.693-30.691c-13.398-13.393-13.488-35.129-.278-48.637 13.506-13.21 35.23-13.114 48.63.279zm39.612-40.873c-4.435 4.437-4.435 11.623.012 16.059l30.681 30.693c13.39 13.392 13.477 35.125.268 48.636-13.51 13.2-35.227 13.112-48.623-.282l-30.692-30.689c-4.438-4.437-11.633-4.437-16.066 0-4.443 4.433-4.443 11.642 0 16.065l30.682 30.694c21.968 21.965 57.458 22.322 79.889 1.116.208-.184.404-.355.61-.549.094-.095.182-.192.273-.29.1-.095.197-.183.29-.289.197-.183.365-.384.54-.594 21.215-22.428 20.86-57.911-1.102-79.889l-30.692-30.682c-4.436-4.443-11.638-4.443-16.07.001z\" fill=\"#FFF\"/></svg>\n </a>\n Authy\n </span>\n \n <span>\n <a (click)=\"appTypeGoogle()\"> \n <svg width=\"50\" height=\"50\" viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m457.07 45.92c73.67-8.62 149.41.22 218.93 26.24 62.75 23.47 120.59 60.41 167.72 108.09-40.31 39.97-80.25 80.31-120.51 120.33-25.95-25.45-56.19-46.65-89.47-61.37-44.22-19.82-93.39-28.54-141.72-25.2-54.6 3.52-108.11 22.49-152.63 54.3-55.24 38.95-96.61 97.22-114.8 162.35-13.64 47.78-14.77 98.97-3.76 147.4 8.85 39.61 26.09 77.29 50.05 110.03 22.24 30.45 50.3 56.64 82.22 76.71 36.79 23.24 78.76 38.22 121.96 43.48 37.02 4.65 74.9 2.23 111.05-7 3.97-1.91 6.24 2.61 8.73 4.86 40.74 40.95 81.68 81.7 122.43 122.63-73.31 35.6-155.99 51.86-237.3 46.12-68.05-4.51-135.07-24.08-194.71-57.18-24.87-13.6-48.23-29.82-70.33-47.54-17.46-14.81-34.71-30.01-49.72-47.35-25.41-27.39-47.21-58.11-65.17-90.87-4-7.72-8.64-15.12-11.9-23.2-4.47-9.05-8.37-18.36-12.25-27.67-4.96-13.27-10.26-26.44-13.88-40.15-.43-1.81-1.53-3.33-2.52-4.85-8.3-28.66-12.95-58.33-15.44-88.04-2.62-37.36-1.33-75.05 4.78-112.03 12.18-75.48 43.41-147.74 89.86-208.44 30.12-39.5 66.53-74.21 107.46-102.35 62.44-43.11 135.53-70.69 210.92-79.3m49.18 50.48c-5.7.99-10.96 3.76-15.38 7.43-10.4 8.93-14.14 24.81-8.17 37.28 6.33 15.02 25.16 23.1 40.36 17 15.43-5.24 24.78-23.51 19.74-39.06-4.1-15.43-20.92-25.79-36.55-22.65m-267.96 111.99c-5.33.28-10.59 1.92-15.16 4.68-11.47 7.03-17.88 21.74-14.36 34.86 3.09 14.08 16.78 25.06 31.26 24.61 15.03.41 29.08-11.39 31.54-26.17 2.24-10.33-1.61-21.55-9.14-28.85-6.24-6.33-15.3-9.62-24.14-9.13m-115.96 272c-6.62 1.23-12.84 4.58-17.54 9.4-9.45 9.72-11.72 25.57-5.02 37.42 7.16 13.96 25.48 20.86 39.98 14.62 15.02-5.51 23.99-23.42 19.06-38.71-4.04-15.41-20.86-25.96-36.48-22.73m111.98 272.05c-11.49 1.95-21.48 10.72-24.84 21.88-3.87 11.63-.13 25.16 8.9 33.36 6.15 5.48 14.4 8.7 22.67 8.32 11.16-.25 21.98-6.87 27.12-16.8 4.93-8.83 5.15-20.02.71-29.1-5.82-12.78-20.81-20.33-34.56-17.66m272.06 112.03c-11.76 2.02-21.92 11.07-25.09 22.6-3.87 12.57 1.13 27.25 11.91 34.79 7.86 5.79 18.42 7.67 27.77 4.86 9.61-2.77 17.7-10.24 21.07-19.68 4.97-12.74.36-28.32-10.58-36.46-7.02-5.45-16.35-7.67-25.08-6.11z\" fill=\"#a0a0a0\"/>\n <g fill=\"#c1c1c1\">\n <path d=\"m506.25 96.4c15.63-3.14 32.45 7.22 36.55 22.65 5.04 15.55-4.31 33.82-19.74 39.06-15.2 6.1-34.03-1.98-40.36-17-5.97-12.47-2.23-28.35 8.17-37.28 4.42-3.67 9.68-6.44 15.38-7.43z\"/>\n <path d=\"m122.33 480.39c15.62-3.23 32.44 7.32 36.48 22.73 4.93 15.29-4.04 33.2-19.06 38.71-14.5 6.24-32.82-.66-39.98-14.62-6.7-11.85-4.43-27.7 5.02-37.42 4.7-4.82 10.92-8.17 17.54-9.4z\"/>\n </g>\n <path d=\"m843.72 180.25.11-.11c24.64 25.12 46.96 52.6 65.61 82.47 36.01 57.16 59.38 122.22 67.87 189.25 5.67 44.88 5.27 90.6-2.05 135.27-12.7 80.01-46.94 156.41-97.9 219.36-42.3 52.48-95.87 96.04-156.41 125.76l-.63-.26c-1.01-1.1-2.03-2.16-3.05-3.22-40.75-40.93-81.69-81.68-122.43-122.63-2.49-2.25-4.76-6.77-8.73-4.86-36.15 9.23-74.03 11.65-111.05 7-43.2-5.26-85.17-20.24-121.96-43.48-31.92-20.07-59.98-46.26-82.22-76.71-23.96-32.74-41.2-70.42-50.05-110.03-11.01-48.43-9.88-99.62 3.76-147.4 18.19-65.13 59.56-123.4 114.8-162.35 44.52-31.81 98.03-50.78 152.63-54.3 48.33-3.34 97.5 5.38 141.72 25.2 33.28 14.72 63.52 35.92 89.47 61.37 40.26-40.02 80.2-80.36 120.51-120.33m-351.75 183.97c-21.23 2.85-41.89 10.28-59.88 21.94-23.08 14.45-41.76 35.58-53.9 59.91-14.58 29.2-18.64 63.21-12.5 95.17 3.93 19.85 12.03 38.88 23.56 55.51 7.93 11.52 17.65 21.66 27.65 31.38 57.33 57.41 114.61 114.86 171.99 172.21 49.09-13.07 94.67-38.94 131.05-74.4 45.11-43.34 75.66-101.44 86.31-163.06.24-1.04.22-2.91 1.85-2.6 29.63.04 59.26-.01 88.9.05 19.04-.3 36.87-14.77 40.76-33.46.22-1.21 0-2.32-.67-3.35 1.22-5.71 2.08-11.58 1.38-17.43l-.24.4c-2.05-20.34-20.84-37.12-41.25-37.17-80.64-.07-161.28-.01-241.93-.07-6.44-22.08-18.5-42.33-34.03-59.23-25.8-27.5-62.26-45.01-100.02-46.82-9.68.02-19.44-.54-29.03 1.02m286.37 388.31c-12.64 2.06-23.37 12.59-25.7 25.18-1.48 8.14-.14 17.02 4.73 23.85 5.76 9.2 16.8 14.76 27.61 14.25 8.32.03 16.28-3.95 22.16-9.66 4.87-5.6 8.45-12.67 8.67-20.2.86-11.37-5.06-23.1-14.87-28.96-6.52-4.46-14.89-5.75-22.6-4.46z\" fill=\"#686868\"/>\n <path d=\"m238.29 208.39c8.84-.49 17.9 2.8 24.14 9.13 7.53 7.3 11.38 18.52 9.14 28.85-2.46 14.78-16.51 26.58-31.54 26.17-14.48.45-28.17-10.53-31.26-24.61-3.52-13.12 2.89-27.83 14.36-34.86 4.57-2.76 9.83-4.4 15.16-4.68z\" fill=\"#c3c3c3\"/>\n <path d=\"m491.97 364.22c9.59-1.56 19.35-1 29.03-1.02 37.76 1.81 74.22 19.32 100.02 46.82 15.53 16.9 27.59 37.15 34.03 59.23-47.67-.01-95.35-.01-143.03-.01-12.19-.11-24.23 5.42-32.21 14.61-6.01 6.85-9.74 15.65-10.44 24.74-1.19 14.17 5.36 28.7 16.69 37.28 7.62 5.91 17.28 9 26.92 8.8 126.69-.04 253.39-.06 380.08.03 4.76.04 9.59-.15 14.2-1.48 14.21-3.82 26.02-15.47 29.83-29.7.67 1.03.89 2.14.67 3.35-3.89 18.69-21.72 33.16-40.76 33.46-29.64-.06-59.27-.01-88.9-.05-1.63-.31-1.61 1.56-1.85 2.6-10.65 61.62-41.2 119.72-86.31 163.06-36.38 35.46-81.96 61.33-131.05 74.4-57.38-57.35-114.66-114.8-171.99-172.21-10-9.72-19.72-19.86-27.65-31.38-11.53-16.63-19.63-35.66-23.56-55.51-6.14-31.96-2.08-65.97 12.5-95.17 12.14-24.33 30.82-45.46 53.9-59.91 17.99-11.66 38.65-19.09 59.88-21.94z\" fill=\"#474747\"/>\n <g fill=\"#bfbfbf\">\n <path d=\"m479.81 483.85c7.98-9.19 20.02-14.72 32.21-14.61 47.68 0 95.36 0 143.03.01 80.65.06 161.29 0 241.93.07 20.41.05 39.2 16.83 41.25 37.17-.19.33-.58.97-.78 1.29-3.68-18.51-21.57-33.16-40.47-33.05-124.97.1-249.94.12-374.91.17-7.73.13-15.74-.8-23.15 1.96-9.06 2.84-16.73 9.1-22.27 16.7-3.34 4.55-4.39 10.24-7.28 15.03.7-9.09 4.43-17.89 10.44-24.74z\"/>\n <path d=\"m234.31 752.44c13.75-2.67 28.74 4.88 34.56 17.66 4.44 9.08 4.22 20.27-.71 29.1-5.14 9.93-15.96 16.55-27.12 16.8-8.27.38-16.52-2.84-22.67-8.32-9.03-8.2-12.77-21.73-8.9-33.36 3.36-11.16 13.35-19.93 24.84-21.88z\"/>\n </g>\n <path d=\"m498.92 476.86c7.41-2.76 15.42-1.83 23.15-1.96 124.97-.05 249.94-.07 374.91-.17 18.9-.11 36.79 14.54 40.47 33.05.2-.32.59-.96.78-1.29l.24-.4c.7 5.85-.16 11.72-1.38 17.43-3.81 14.23-15.62 25.88-29.83 29.7-4.61 1.33-9.44 1.52-14.2 1.48-126.69-.09-253.39-.07-380.08-.03-9.64.2-19.3-2.89-26.92-8.8-11.33-8.58-17.88-23.11-16.69-37.28 2.89-4.79 3.94-10.48 7.28-15.03 5.54-7.6 13.21-13.86 22.27-16.7z\" fill=\"#b0b0b0\"/>\n <path d=\"m59.49 636.08c.99 1.52 2.09 3.04 2.52 4.85 3.62 13.71 8.92 26.88 13.88 40.15 3.88 9.31 7.78 18.62 12.25 27.67 3.26 8.08 7.9 15.48 11.9 23.2 17.96 32.76 39.76 63.48 65.17 90.87 15.01 17.34 32.26 32.54 49.72 47.35 22.1 17.72 45.46 33.94 70.33 47.54 59.64 33.1 126.66 52.67 194.71 57.18 81.31 5.74 163.99-10.52 237.3-46.12 1.02 1.06 2.04 2.12 3.05 3.22l.03.61c-42.32 21.03-87.88 35.53-134.56 42.91-56.91 8.9-115.46 7.49-171.82-4.5-67.89-14.35-132.42-44.21-187.42-86.51-63.52-48.63-114.32-113.73-145.86-187.27-8.42-19.87-15.93-40.22-21.2-61.15z\" fill=\"#939393\"/>\n <path d=\"m778.34 752.53c7.71-1.29 16.08 0 22.6 4.46 9.81 5.86 15.73 17.59 14.87 28.96-.22 7.53-3.8 14.6-8.67 20.2-5.88 5.71-13.84 9.69-22.16 9.66-10.81.51-21.85-5.05-27.61-14.25-4.87-6.83-6.21-15.71-4.73-23.85 2.33-12.59 13.06-23.12 25.7-25.18z\" fill=\"#767676\"/>\n <path d=\"m506.37 864.47c8.73-1.56 18.06.66 25.08 6.11 10.94 8.14 15.55 23.72 10.58 36.46-3.37 9.44-11.46 16.91-21.07 19.68-9.35 2.81-19.91.93-27.77-4.86-10.78-7.54-15.78-22.22-11.91-34.79 3.17-11.53 13.33-20.58 25.09-22.6z\" fill=\"#bebebe\"/>\n </svg>\n </a>\n Google Authenticator\n </span>\n </div>\n </div>\n \n </div>\n\n <div *ngIf=\"mode === 'code-input'\" class=\"code-input\">\n <div>\n Enter the 6-digit code you see in the App.\n </div>\n\n <app-code-input\n [codeLength]=\"6\"\n (codeChanged)=\"codeChanged($event)\">\n </app-code-input>\n \n <div class=\"checkboxes\">\n <mat-checkbox name=\"default\" [(ngModel)]=\"default\" [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </div>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <ng-container *ngIf=\"appType\">\n <button\n *ngIf=\"mode === 'qr-code'\"\n type=\"button\"\n mat-button\n color=\"primary\"\n (click)=\"next()\">\n Next\n </button>\n <button\n *ngIf=\"mode === 'code-input'\"\n type=\"submit\"\n mat-button\n color=\"primary\"\n (click)=\"next()\">\n Verify\n </button> \n </ng-container>\n <button\n type=\"button\"\n mat-button\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["ul{margin:0;padding-left:24px}qr-code{display:flex;justify-content:center;margin:30px}app-code-input{margin-top:10px}.code-input{width:400px}.app-types{text-align:center;padding:0 40px}.app-types .row{display:flex;justify-content:center}.app-types .row span{display:flex;flex-direction:column;text-align:center;max-width:100px}.app-types .row span+span{margin-left:40px}.checkboxes{margin:8px 0}.checkboxes mat-checkbox{display:block}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: QrCodeComponent, selector: "app-qr-code", inputs: ["value"] }, { type: CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
604
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, decorators: [{
605
+ type: i0.Component,
606
+ args: [{
607
+ templateUrl: './app.component.html',
608
+ styleUrls: ['./app.component.scss'],
609
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
610
+ }]
611
+ }], ctorParameters: function () {
612
+ return [{ type: undefined, decorators: [{
613
+ type: i0.Inject,
614
+ args: [i1.MAT_DIALOG_DATA]
615
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
616
+ }, propDecorators: { form: [{
617
+ type: i0.ViewChild,
618
+ args: [i9.FsFormDirective]
618
619
  }] } });
619
620
 
620
- var EmailComponent = /** @class */ (function () {
621
- function EmailComponent(_data, _dialogRef, _cdRef, _message) {
622
- var _this = this;
623
- this._data = _data;
624
- this._dialogRef = _dialogRef;
625
- this._cdRef = _cdRef;
626
- this._message = _message;
627
- this.verificationMethod = null;
628
- this.trustDevice = true;
629
- this.resend = function () {
630
- return _this.twoFactorManageService.verificationMethodResend()
631
- .pipe(operators.tap(function () {
632
- _this._message.success('Resent verification code');
633
- }));
634
- };
635
- this.submit = function () {
636
- return rxjs.of(true)
637
- .pipe(operators.switchMap(function () {
638
- return _this.verificationMethod ?
639
- _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
640
- .pipe(operators.tap(function (verificationMethod) {
641
- _this._message.success('Created email verification method');
642
- _this._dialogRef.close(verificationMethod);
643
- })) :
644
- _this.twoFactorManageService.verificationMethodCreate$({
645
- type: exports.VerificationMethodType.Email,
646
- email: _this.email,
647
- default: _this.default,
648
- })
649
- .pipe(operators.tap(function (verificationMethod) {
650
- _this.verificationMethod = verificationMethod;
651
- _this.form.clear();
652
- _this._cdRef.markForCheck();
653
- }));
654
- }));
655
- };
656
- this.twoFactorManageService = _data.twoFactorManageService;
657
- this.default = !this.twoFactorManageService.hasVerificationMethods;
658
- }
659
- EmailComponent.prototype.codeCompleted = function () {
660
- if (!this.form.submitting) {
661
- this.form.triggerSubmit();
662
- }
663
- };
664
- EmailComponent.prototype.codeChanged = function (code) {
665
- this.code = code;
666
- };
667
- return EmailComponent;
668
- }());
669
- EmailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
670
- EmailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"submit\">\n <fs-dialog>\n <h1 mat-dialog-title>\n Email Setup\n </h1>\n <mat-dialog-content>\n <ng-container *ngIf=\"verificationMethod; else notVerificationMethod\">\n <fs-2fa-verification\n [verificationMethod]=\"verificationMethod\"\n (codeChanged)=\"codeChanged($event)\"\n [resend]=\"resend\"\n [(trustDevice)]=\"trustDevice\">\n </fs-2fa-verification>\n </ng-container>\n\n <ng-template #notVerificationMethod>\n <p>The app will only use this email for verifying your account security. </p>\n <mat-form-field>\n <mat-label>Email</mat-label>\n <input\n matInput\n [required]=\"true\"\n [(ngModel)]=\"email\"\n [fsFormEmail]=\"true\"\n name=\"email\">\n </mat-form-field>\n <mat-checkbox \n name=\"default\"\n [(ngModel)]=\"default\"\n [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </ng-template>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"submit\">\n Next\n </button>\n <button\n mat-button\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [":host ::ng-deep mat-checkbox .mat-ripple{display:none}mat-form-field{width:100%}mat-dialog-content{width:400px}p{margin-top:0}app-code-input{margin-bottom:5px;display:block}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: ["verificationMethod", "resend", "showTrustedDevice", "trustDevice", "trustDays", "formatRecipient", "getVerificationMethods", "selectVerificationMethod"], outputs: ["verified", "codeChanged", "codeCompleted", "trustDeviceChange"] }, { type: i5__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.MatLabel, selector: "mat-label" }, { type: i11__namespace$1.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: i8__namespace.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: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i9__namespace.FsFormEmailDirective, selector: "[fsFormEmail]", inputs: ["fsFormEmail", "fsFormEmailMessage"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
671
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, decorators: [{
672
- type: i0.Component,
673
- args: [{
674
- templateUrl: './email.component.html',
675
- styleUrls: ['./email.component.scss'],
676
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
677
- }]
678
- }], ctorParameters: function () {
679
- return [{ type: undefined, decorators: [{
680
- type: i0.Inject,
681
- args: [i1.MAT_DIALOG_DATA]
682
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
683
- }, propDecorators: { form: [{
684
- type: i0.ViewChild,
685
- args: [i9.FsFormDirective, { static: false }]
621
+ var EmailComponent = /** @class */ (function () {
622
+ function EmailComponent(_data, _dialogRef, _cdRef, _message) {
623
+ var _this = this;
624
+ this._data = _data;
625
+ this._dialogRef = _dialogRef;
626
+ this._cdRef = _cdRef;
627
+ this._message = _message;
628
+ this.verificationMethod = null;
629
+ this.trustDevice = true;
630
+ this.resend = function () {
631
+ return _this.twoFactorManageService.verificationMethodResend()
632
+ .pipe(operators.tap(function () {
633
+ _this._message.success('Resent verification code');
634
+ }));
635
+ };
636
+ this.submit = function () {
637
+ return rxjs.of(true)
638
+ .pipe(operators.switchMap(function () {
639
+ return _this.verificationMethod ?
640
+ _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
641
+ .pipe(operators.tap(function (verificationMethod) {
642
+ _this._message.success('Created email verification method');
643
+ _this._dialogRef.close(verificationMethod);
644
+ })) :
645
+ _this.twoFactorManageService.verificationMethodCreate$({
646
+ type: exports.VerificationMethodType.Email,
647
+ email: _this.email,
648
+ default: _this.default,
649
+ })
650
+ .pipe(operators.tap(function (verificationMethod) {
651
+ _this.verificationMethod = verificationMethod;
652
+ _this.form.clear();
653
+ _this._cdRef.markForCheck();
654
+ }));
655
+ }));
656
+ };
657
+ this.twoFactorManageService = _data.twoFactorManageService;
658
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
659
+ }
660
+ EmailComponent.prototype.codeCompleted = function () {
661
+ if (!this.form.submitting) {
662
+ this.form.triggerSubmit();
663
+ }
664
+ };
665
+ EmailComponent.prototype.codeChanged = function (code) {
666
+ this.code = code;
667
+ };
668
+ return EmailComponent;
669
+ }());
670
+ EmailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
671
+ EmailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"submit\">\n <fs-dialog>\n <h1 mat-dialog-title>\n Email Setup\n </h1>\n <mat-dialog-content>\n <ng-container *ngIf=\"verificationMethod; else notVerificationMethod\">\n <fs-2fa-verification\n [verificationMethod]=\"verificationMethod\"\n (codeChanged)=\"codeChanged($event)\"\n [resend]=\"resend\"\n [(trustDevice)]=\"trustDevice\">\n </fs-2fa-verification>\n </ng-container>\n\n <ng-template #notVerificationMethod>\n <p>The app will only use this email for verifying your account security. </p>\n <mat-form-field>\n <mat-label>Email</mat-label>\n <input\n matInput\n [required]=\"true\"\n [(ngModel)]=\"email\"\n [fsFormEmail]=\"true\"\n name=\"email\">\n </mat-form-field>\n <mat-checkbox \n name=\"default\"\n [(ngModel)]=\"default\"\n [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </ng-template>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"submit\">\n Next\n </button>\n <button\n mat-button\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [":host ::ng-deep mat-checkbox .mat-ripple{display:none}mat-form-field{width:100%}mat-dialog-content{width:400px}p{margin-top:0}app-code-input{margin-bottom:5px;display:block}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: ["verificationMethod", "resend", "showTrustedDevice", "trustDevice", "trustDays", "formatRecipient", "getVerificationMethods", "selectVerificationMethod"], outputs: ["verified", "codeChanged", "codeCompleted", "trustDeviceChange"] }, { type: i5__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.MatLabel, selector: "mat-label" }, { type: i11__namespace$1.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: i8__namespace.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: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i9__namespace.FsFormEmailDirective, selector: "[fsFormEmail]", inputs: ["fsFormEmail", "fsFormEmailMessage"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
672
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, decorators: [{
673
+ type: i0.Component,
674
+ args: [{
675
+ templateUrl: './email.component.html',
676
+ styleUrls: ['./email.component.scss'],
677
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
678
+ }]
679
+ }], ctorParameters: function () {
680
+ return [{ type: undefined, decorators: [{
681
+ type: i0.Inject,
682
+ args: [i1.MAT_DIALOG_DATA]
683
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
684
+ }, propDecorators: { form: [{
685
+ type: i0.ViewChild,
686
+ args: [i9.FsFormDirective, { static: false }]
686
687
  }] } });
687
688
 
688
- var NumberComponent = /** @class */ (function () {
689
- function NumberComponent(_data, _dialogRef, _cdRef, _message) {
690
- var _this = this;
691
- this._data = _data;
692
- this._dialogRef = _dialogRef;
693
- this._cdRef = _cdRef;
694
- this._message = _message;
695
- this.trustDevice = true;
696
- this.verificationMethod = null;
697
- this.resend = function () {
698
- return _this.twoFactorManageService.verificationMethodResend()
699
- .pipe(operators.tap(function () {
700
- _this._message.success('Resent verification code');
701
- }));
702
- };
703
- this.submit = function () {
704
- return rxjs.of(true)
705
- .pipe(operators.switchMap(function () {
706
- return _this.verificationMethod ?
707
- _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
708
- .pipe(operators.tap(function (verificationMethod) {
709
- _this._message.success('Created text message verification method');
710
- _this._dialogRef.close(verificationMethod);
711
- })) :
712
- _this.twoFactorManageService.verificationMethodCreate$({
713
- type: exports.VerificationMethodType.Sms,
714
- phoneNumber: _this.phone.number,
715
- phoneCode: _this.phone.countryCode,
716
- phoneCountry: _this.phone.isoCode,
717
- default: _this.default,
718
- })
719
- .pipe(operators.tap(function (verificationMethod) {
720
- _this.verificationMethod = verificationMethod;
721
- _this.form.clear();
722
- _this._cdRef.markForCheck();
723
- }));
724
- }));
725
- };
726
- this.twoFactorManageService = _data.twoFactorManageService;
727
- this.defaultCountry = _data.defaultCountry;
728
- this.default = !this.twoFactorManageService.hasVerificationMethods;
729
- }
730
- NumberComponent.prototype.codeCompleted = function () {
731
- if (!this.form.submitting) {
732
- this.form.triggerSubmit();
733
- }
734
- };
735
- NumberComponent.prototype.codeChanged = function (code) {
736
- this.code = code;
737
- };
738
- return NumberComponent;
739
- }());
740
- NumberComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
741
- NumberComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumberComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"submit\" [autocomplete]=\"false\">\n <fs-dialog>\n <h1 mat-dialog-title>\n Text Message Setup\n </h1>\n <mat-dialog-content>\n <ng-container *ngIf=\"verificationMethod; else notVerificationMethod\">\n <fs-2fa-verification\n [verificationMethod]=\"verificationMethod\"\n (codeChanged)=\"codeChanged($event)\"\n [resend]=\"resend\"\n [formatRecipient]=\"true\"\n [(trustDevice)]=\"trustDevice\">\n </fs-2fa-verification>\n </ng-container>\n\n <ng-template #notVerificationMethod>\n <p>The app will only use this number for verifying your account security. Message and data rates may apply by your cell phone provider.</p>\n <mat-form-field>\n <mat-label>Phone number</mat-label>\n <fs-phone-field\n [(ngModel)]=\"phone\"\n [country]=\"defaultCountry\"\n name=\"phone\"\n [mode]=\"'object'\"\n autocomplete=\"off\"\n [required]=\"true\">\n </fs-phone-field>\n </mat-form-field>\n <mat-checkbox \n name=\"default\"\n [(ngModel)]=\"default\"\n [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </ng-template>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"submit\">\n Next\n </button>\n <button\n mat-button\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [":host ::ng-deep mat-checkbox .mat-ripple{display:none}app-code-input{margin-bottom:5px;display:block}mat-form-field{width:100%}mat-dialog-content{width:400px}p{margin-top:0}h1{display:flex;align-items:center}h1 mat-icon{margin-right:5px}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: ["verificationMethod", "resend", "showTrustedDevice", "trustDevice", "trustDays", "formatRecipient", "getVerificationMethods", "selectVerificationMethod"], outputs: ["verified", "codeChanged", "codeCompleted", "trustDeviceChange"] }, { type: i5__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i8__namespace$1.FsPhoneFieldComponent, selector: "fs-phone-field", inputs: ["allowNumberExt", "placeholder", "required", "disabled", "mode", "country", "name"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.MatLabel, selector: "mat-label" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
742
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, decorators: [{
743
- type: i0.Component,
744
- args: [{
745
- templateUrl: './number.component.html',
746
- styleUrls: ['./number.component.scss'],
747
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
748
- }]
749
- }], ctorParameters: function () {
750
- return [{ type: undefined, decorators: [{
751
- type: i0.Inject,
752
- args: [i1.MAT_DIALOG_DATA]
753
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
754
- }, propDecorators: { form: [{
755
- type: i0.ViewChild,
756
- args: [i9.FsFormDirective, { static: false }]
689
+ var NumberComponent = /** @class */ (function () {
690
+ function NumberComponent(_data, _dialogRef, _cdRef, _message) {
691
+ var _this = this;
692
+ this._data = _data;
693
+ this._dialogRef = _dialogRef;
694
+ this._cdRef = _cdRef;
695
+ this._message = _message;
696
+ this.trustDevice = true;
697
+ this.verificationMethod = null;
698
+ this.resend = function () {
699
+ return _this.twoFactorManageService.verificationMethodResend()
700
+ .pipe(operators.tap(function () {
701
+ _this._message.success('Resent verification code');
702
+ }));
703
+ };
704
+ this.submit = function () {
705
+ return rxjs.of(true)
706
+ .pipe(operators.switchMap(function () {
707
+ return _this.verificationMethod ?
708
+ _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
709
+ .pipe(operators.tap(function (verificationMethod) {
710
+ _this._message.success('Created text message verification method');
711
+ _this._dialogRef.close(verificationMethod);
712
+ })) :
713
+ _this.twoFactorManageService.verificationMethodCreate$({
714
+ type: exports.VerificationMethodType.Sms,
715
+ phoneNumber: _this.phone.number,
716
+ phoneCode: _this.phone.countryCode,
717
+ phoneCountry: _this.phone.isoCode,
718
+ default: _this.default,
719
+ })
720
+ .pipe(operators.tap(function (verificationMethod) {
721
+ _this.verificationMethod = verificationMethod;
722
+ _this.form.clear();
723
+ _this._cdRef.markForCheck();
724
+ }));
725
+ }));
726
+ };
727
+ this.twoFactorManageService = _data.twoFactorManageService;
728
+ this.defaultCountry = _data.defaultCountry;
729
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
730
+ }
731
+ NumberComponent.prototype.codeCompleted = function () {
732
+ if (!this.form.submitting) {
733
+ this.form.triggerSubmit();
734
+ }
735
+ };
736
+ NumberComponent.prototype.codeChanged = function (code) {
737
+ this.code = code;
738
+ };
739
+ return NumberComponent;
740
+ }());
741
+ NumberComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
742
+ NumberComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumberComponent, selector: "ng-component", viewQueries: [{ propertyName: "form", first: true, predicate: i9.FsFormDirective, descendants: true }], ngImport: i0__namespace, template: "<form fsForm [submit]=\"submit\" [autocomplete]=\"false\">\n <fs-dialog>\n <h1 mat-dialog-title>\n Text Message Setup\n </h1>\n <mat-dialog-content>\n <ng-container *ngIf=\"verificationMethod; else notVerificationMethod\">\n <fs-2fa-verification\n [verificationMethod]=\"verificationMethod\"\n (codeChanged)=\"codeChanged($event)\"\n [resend]=\"resend\"\n [formatRecipient]=\"true\"\n [(trustDevice)]=\"trustDevice\">\n </fs-2fa-verification>\n </ng-container>\n\n <ng-template #notVerificationMethod>\n <p>The app will only use this number for verifying your account security. Message and data rates may apply by your cell phone provider.</p>\n <mat-form-field>\n <mat-label>Phone number</mat-label>\n <fs-phone-field\n [(ngModel)]=\"phone\"\n [country]=\"defaultCountry\"\n name=\"phone\"\n [mode]=\"'object'\"\n autocomplete=\"off\"\n [required]=\"true\">\n </fs-phone-field>\n </mat-form-field>\n <mat-checkbox \n name=\"default\"\n [(ngModel)]=\"default\"\n [disableRipple]=\"true\">\n Make this the default 2-step verification method\n </mat-checkbox>\n </ng-template>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"submit\">\n Next\n </button>\n <button\n mat-button\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Cancel\n </button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [":host ::ng-deep mat-checkbox .mat-ripple{display:none}app-code-input{margin-bottom:5px;display:block}mat-form-field{width:100%}mat-dialog-content{width:400px}p{margin-top:0}h1{display:flex;align-items:center}h1 mat-icon{margin-right:5px}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: ["verificationMethod", "resend", "showTrustedDevice", "trustDevice", "trustDays", "formatRecipient", "getVerificationMethods", "selectVerificationMethod"], outputs: ["verified", "codeChanged", "codeCompleted", "trustDeviceChange"] }, { type: i5__namespace$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i8__namespace$1.FsPhoneFieldComponent, selector: "fs-phone-field", inputs: ["allowNumberExt", "placeholder", "required", "disabled", "mode", "country", "name"] }, { type: i6__namespace$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: i6__namespace.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: i8__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i8__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i8__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.MatLabel, selector: "mat-label" }, { type: i8__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i9__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i8__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9__namespace.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i9__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
743
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, decorators: [{
744
+ type: i0.Component,
745
+ args: [{
746
+ templateUrl: './number.component.html',
747
+ styleUrls: ['./number.component.scss'],
748
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
749
+ }]
750
+ }], ctorParameters: function () {
751
+ return [{ type: undefined, decorators: [{
752
+ type: i0.Inject,
753
+ args: [i1.MAT_DIALOG_DATA]
754
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
755
+ }, propDecorators: { form: [{
756
+ type: i0.ViewChild,
757
+ args: [i9.FsFormDirective, { static: false }]
757
758
  }] } });
758
759
 
759
- var TwoFactorManageService = /** @class */ (function () {
760
- function TwoFactorManageService(_dialog) {
761
- this._dialog = _dialog;
762
- this._destroy$ = new rxjs.Subject();
763
- this._verificationMethods$ = new rxjs.BehaviorSubject([]);
764
- }
765
- Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods$", {
766
- get: function () {
767
- return this._verificationMethods$
768
- .pipe(operators.takeUntil(this._destroy$));
769
- },
770
- enumerable: false,
771
- configurable: true
772
- });
773
- Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods", {
774
- get: function () {
775
- return this._verificationMethods$.getValue();
776
- },
777
- enumerable: false,
778
- configurable: true
779
- });
780
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethods", {
781
- get: function () {
782
- return !!this._verificationMethods$.getValue().length;
783
- },
784
- enumerable: false,
785
- configurable: true
786
- });
787
- Object.defineProperty(TwoFactorManageService.prototype, "emailVerificationMethods", {
788
- get: function () {
789
- return this.getVerificationMethods(exports.VerificationMethodType.Email);
790
- },
791
- enumerable: false,
792
- configurable: true
793
- });
794
- Object.defineProperty(TwoFactorManageService.prototype, "smsVerificationMethods", {
795
- get: function () {
796
- return this.getVerificationMethods(exports.VerificationMethodType.Sms);
797
- },
798
- enumerable: false,
799
- configurable: true
800
- });
801
- Object.defineProperty(TwoFactorManageService.prototype, "appVerificationMethods", {
802
- get: function () {
803
- return this.getVerificationMethods(exports.VerificationMethodType.App);
804
- },
805
- enumerable: false,
806
- configurable: true
807
- });
808
- TwoFactorManageService.prototype.getVerificationMethods = function (type) {
809
- return this.verificationMethods
810
- .filter(function (verificationMethod) {
811
- return verificationMethod.type === type;
812
- });
813
- };
814
- TwoFactorManageService.prototype.hasVerificationMethod = function (type) {
815
- return this.verificationMethods
816
- .some(function (verificationMethod) {
817
- return verificationMethod.type === type;
818
- });
819
- };
820
- TwoFactorManageService.prototype.registerVerificationMethodDefault = function (value) {
821
- this._verificationMethodDefault = value;
822
- };
823
- TwoFactorManageService.prototype.registerVerificationMethodResend = function (value) {
824
- this._verificationMethodResend = value;
825
- };
826
- TwoFactorManageService.prototype.registerVerificationMethodsFetch = function (value) {
827
- this._verificationMethodsFetch = value;
828
- };
829
- TwoFactorManageService.prototype.registerVerificationMethodDelete = function (value) {
830
- this._verificationMethodDelete = value;
831
- };
832
- TwoFactorManageService.prototype.registerVerificationMethodCreate = function (value) {
833
- this._verificationMethodCreate = value;
834
- };
835
- TwoFactorManageService.prototype.registerVerificationMethodVerify = function (value) {
836
- this._verificationMethodVerify = value;
837
- };
838
- TwoFactorManageService.prototype.registerAccountVerify = function (value) {
839
- this._accountVerify = value;
840
- };
841
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodResend", {
842
- get: function () {
843
- return !!this._verificationMethodResend;
844
- },
845
- enumerable: false,
846
- configurable: true
847
- });
848
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDefault", {
849
- get: function () {
850
- return !!this._verificationMethodDefault;
851
- },
852
- enumerable: false,
853
- configurable: true
854
- });
855
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodsFetch", {
856
- get: function () {
857
- return !!this._verificationMethodsFetch;
858
- },
859
- enumerable: false,
860
- configurable: true
861
- });
862
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDelete", {
863
- get: function () {
864
- return !!this._verificationMethodDelete;
865
- },
866
- enumerable: false,
867
- configurable: true
868
- });
869
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodCreate", {
870
- get: function () {
871
- return !!this._verificationMethodCreate;
872
- },
873
- enumerable: false,
874
- configurable: true
875
- });
876
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodVerify", {
877
- get: function () {
878
- return !!this._verificationMethodVerify;
879
- },
880
- enumerable: false,
881
- configurable: true
882
- });
883
- TwoFactorManageService.prototype.verificationMethodDelete$ = function (verificationMethod) {
884
- var _this = this;
885
- return this._verificationMethodDelete(verificationMethod)
886
- .pipe(operators.tap(function () {
887
- _this.verificationMethodsFetch();
888
- }));
889
- };
890
- TwoFactorManageService.prototype.verificationMethodVerify$ = function (code, trustDevice) {
891
- var _this = this;
892
- return this._verificationMethodVerify(code, trustDevice)
893
- .pipe(operators.tap(function () {
894
- _this.verificationMethodsFetch();
895
- }));
896
- };
897
- TwoFactorManageService.prototype.verificationMethodCreate$ = function (verificationMethod) {
898
- return this._verificationMethodCreate(verificationMethod);
899
- };
900
- TwoFactorManageService.prototype.verificationMethodDefault$ = function (verificationMethod) {
901
- return this._verificationMethodDefault(verificationMethod);
902
- };
903
- TwoFactorManageService.prototype.verificationMethodResend = function () {
904
- return this._verificationMethodResend();
905
- };
906
- TwoFactorManageService.prototype.verificationMethodsFetch = function (query) {
907
- this.verificationMethodsFetch$(query)
908
- .subscribe();
909
- };
910
- TwoFactorManageService.prototype.verificationMethodsFetch$ = function (query) {
911
- var _this = this;
912
- return this._verificationMethodsFetch(query)
913
- .pipe(operators.tap(function (verificationMethods) {
914
- _this._verificationMethods$.next(verificationMethods);
915
- }));
916
- };
917
- TwoFactorManageService.prototype.accountVerify$ = function () {
918
- return this._accountVerify ? this._accountVerify() : rxjs.of(true);
919
- };
920
- TwoFactorManageService.prototype.ngOnDestroy = function () {
921
- this._destroy$.next();
922
- this._destroy$.complete();
923
- };
924
- TwoFactorManageService.prototype.addSms$ = function (defaultCountry) {
925
- var _this = this;
926
- return this.accountVerify$()
927
- .pipe(operators.switchMap(function () { return _this._dialog.open(NumberComponent, {
928
- data: {
929
- defaultCountry: defaultCountry,
930
- twoFactorManageService: _this,
931
- },
932
- })
933
- .afterClosed(); }), operators.tap(function () {
934
- _this.verificationMethodsFetch();
935
- }), operators.takeUntil(this._destroy$));
936
- };
937
- TwoFactorManageService.prototype.addEmail$ = function () {
938
- var _this = this;
939
- return this.accountVerify$()
940
- .pipe(operators.switchMap(function () { return _this._dialog.open(EmailComponent, {
941
- data: { twoFactorManageService: _this },
942
- })
943
- .afterClosed(); }), operators.tap(function () {
944
- _this.verificationMethodsFetch();
945
- }), operators.takeUntil(this._destroy$));
946
- };
947
- TwoFactorManageService.prototype.addApp$ = function () {
948
- var _this = this;
949
- return this.accountVerify$()
950
- .pipe(operators.switchMap(function () { return _this._dialog.open(AppComponent, {
951
- data: { twoFactorManageService: _this },
952
- })
953
- .afterClosed(); }), operators.tap(function () {
954
- _this.verificationMethodsFetch();
955
- }), operators.takeUntil(this._destroy$));
956
- };
957
- return TwoFactorManageService;
958
- }());
959
- TwoFactorManageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
960
- TwoFactorManageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService });
961
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, decorators: [{
962
- type: i0.Injectable
760
+ var TwoFactorManageService = /** @class */ (function () {
761
+ function TwoFactorManageService(_dialog) {
762
+ this._dialog = _dialog;
763
+ this._destroy$ = new rxjs.Subject();
764
+ this._verificationMethods$ = new rxjs.BehaviorSubject([]);
765
+ }
766
+ Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods$", {
767
+ get: function () {
768
+ return this._verificationMethods$
769
+ .pipe(operators.takeUntil(this._destroy$));
770
+ },
771
+ enumerable: false,
772
+ configurable: true
773
+ });
774
+ Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods", {
775
+ get: function () {
776
+ return this._verificationMethods$.getValue();
777
+ },
778
+ enumerable: false,
779
+ configurable: true
780
+ });
781
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethods", {
782
+ get: function () {
783
+ return !!this._verificationMethods$.getValue().length;
784
+ },
785
+ enumerable: false,
786
+ configurable: true
787
+ });
788
+ Object.defineProperty(TwoFactorManageService.prototype, "emailVerificationMethods", {
789
+ get: function () {
790
+ return this.getVerificationMethods(exports.VerificationMethodType.Email);
791
+ },
792
+ enumerable: false,
793
+ configurable: true
794
+ });
795
+ Object.defineProperty(TwoFactorManageService.prototype, "smsVerificationMethods", {
796
+ get: function () {
797
+ return this.getVerificationMethods(exports.VerificationMethodType.Sms);
798
+ },
799
+ enumerable: false,
800
+ configurable: true
801
+ });
802
+ Object.defineProperty(TwoFactorManageService.prototype, "appVerificationMethods", {
803
+ get: function () {
804
+ return this.getVerificationMethods(exports.VerificationMethodType.App);
805
+ },
806
+ enumerable: false,
807
+ configurable: true
808
+ });
809
+ TwoFactorManageService.prototype.getVerificationMethods = function (type) {
810
+ return this.verificationMethods
811
+ .filter(function (verificationMethod) {
812
+ return verificationMethod.type === type;
813
+ });
814
+ };
815
+ TwoFactorManageService.prototype.hasVerificationMethod = function (type) {
816
+ return this.verificationMethods
817
+ .some(function (verificationMethod) {
818
+ return verificationMethod.type === type;
819
+ });
820
+ };
821
+ TwoFactorManageService.prototype.registerVerificationMethodDefault = function (value) {
822
+ this._verificationMethodDefault = value;
823
+ };
824
+ TwoFactorManageService.prototype.registerVerificationMethodResend = function (value) {
825
+ this._verificationMethodResend = value;
826
+ };
827
+ TwoFactorManageService.prototype.registerVerificationMethodsFetch = function (value) {
828
+ this._verificationMethodsFetch = value;
829
+ };
830
+ TwoFactorManageService.prototype.registerVerificationMethodDelete = function (value) {
831
+ this._verificationMethodDelete = value;
832
+ };
833
+ TwoFactorManageService.prototype.registerVerificationMethodCreate = function (value) {
834
+ this._verificationMethodCreate = value;
835
+ };
836
+ TwoFactorManageService.prototype.registerVerificationMethodVerify = function (value) {
837
+ this._verificationMethodVerify = value;
838
+ };
839
+ TwoFactorManageService.prototype.registerAccountVerify = function (value) {
840
+ this._accountVerify = value;
841
+ };
842
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodResend", {
843
+ get: function () {
844
+ return !!this._verificationMethodResend;
845
+ },
846
+ enumerable: false,
847
+ configurable: true
848
+ });
849
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDefault", {
850
+ get: function () {
851
+ return !!this._verificationMethodDefault;
852
+ },
853
+ enumerable: false,
854
+ configurable: true
855
+ });
856
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodsFetch", {
857
+ get: function () {
858
+ return !!this._verificationMethodsFetch;
859
+ },
860
+ enumerable: false,
861
+ configurable: true
862
+ });
863
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDelete", {
864
+ get: function () {
865
+ return !!this._verificationMethodDelete;
866
+ },
867
+ enumerable: false,
868
+ configurable: true
869
+ });
870
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodCreate", {
871
+ get: function () {
872
+ return !!this._verificationMethodCreate;
873
+ },
874
+ enumerable: false,
875
+ configurable: true
876
+ });
877
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodVerify", {
878
+ get: function () {
879
+ return !!this._verificationMethodVerify;
880
+ },
881
+ enumerable: false,
882
+ configurable: true
883
+ });
884
+ TwoFactorManageService.prototype.verificationMethodDelete$ = function (verificationMethod) {
885
+ var _this = this;
886
+ return this._verificationMethodDelete(verificationMethod)
887
+ .pipe(operators.tap(function () {
888
+ _this.verificationMethodsFetch();
889
+ }));
890
+ };
891
+ TwoFactorManageService.prototype.verificationMethodVerify$ = function (code, trustDevice) {
892
+ var _this = this;
893
+ return this._verificationMethodVerify(code, trustDevice)
894
+ .pipe(operators.tap(function () {
895
+ _this.verificationMethodsFetch();
896
+ }));
897
+ };
898
+ TwoFactorManageService.prototype.verificationMethodCreate$ = function (verificationMethod) {
899
+ return this._verificationMethodCreate(verificationMethod);
900
+ };
901
+ TwoFactorManageService.prototype.verificationMethodDefault$ = function (verificationMethod) {
902
+ return this._verificationMethodDefault(verificationMethod);
903
+ };
904
+ TwoFactorManageService.prototype.verificationMethodResend = function () {
905
+ return this._verificationMethodResend();
906
+ };
907
+ TwoFactorManageService.prototype.verificationMethodsFetch = function (query) {
908
+ this.verificationMethodsFetch$(query)
909
+ .subscribe();
910
+ };
911
+ TwoFactorManageService.prototype.verificationMethodsFetch$ = function (query) {
912
+ var _this = this;
913
+ return this._verificationMethodsFetch(query)
914
+ .pipe(operators.tap(function (verificationMethods) {
915
+ _this._verificationMethods$.next(verificationMethods);
916
+ }));
917
+ };
918
+ TwoFactorManageService.prototype.accountVerify$ = function () {
919
+ return this._accountVerify ? this._accountVerify() : rxjs.of(true);
920
+ };
921
+ TwoFactorManageService.prototype.ngOnDestroy = function () {
922
+ this._destroy$.next();
923
+ this._destroy$.complete();
924
+ };
925
+ TwoFactorManageService.prototype.addSms$ = function (defaultCountry) {
926
+ var _this = this;
927
+ return this.accountVerify$()
928
+ .pipe(operators.switchMap(function () { return _this._dialog.open(NumberComponent, {
929
+ data: {
930
+ defaultCountry: defaultCountry,
931
+ twoFactorManageService: _this,
932
+ },
933
+ })
934
+ .afterClosed(); }), operators.tap(function () {
935
+ _this.verificationMethodsFetch();
936
+ }), operators.takeUntil(this._destroy$));
937
+ };
938
+ TwoFactorManageService.prototype.addEmail$ = function () {
939
+ var _this = this;
940
+ return this.accountVerify$()
941
+ .pipe(operators.switchMap(function () { return _this._dialog.open(EmailComponent, {
942
+ data: { twoFactorManageService: _this },
943
+ })
944
+ .afterClosed(); }), operators.tap(function () {
945
+ _this.verificationMethodsFetch();
946
+ }), operators.takeUntil(this._destroy$));
947
+ };
948
+ TwoFactorManageService.prototype.addApp$ = function () {
949
+ var _this = this;
950
+ return this.accountVerify$()
951
+ .pipe(operators.switchMap(function () { return _this._dialog.open(AppComponent, {
952
+ data: { twoFactorManageService: _this },
953
+ })
954
+ .afterClosed(); }), operators.tap(function () {
955
+ _this.verificationMethodsFetch();
956
+ }), operators.takeUntil(this._destroy$));
957
+ };
958
+ return TwoFactorManageService;
959
+ }());
960
+ TwoFactorManageService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
961
+ TwoFactorManageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService });
962
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, decorators: [{
963
+ type: i0.Injectable
963
964
  }], ctorParameters: function () { return [{ type: i1__namespace.MatDialog }]; } });
964
965
 
965
- var DefaultedComponent = /** @class */ (function () {
966
- function DefaultedComponent() {
967
- }
968
- return DefaultedComponent;
969
- }());
970
- DefaultedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
971
- DefaultedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DefaultedComponent, selector: "app-defaulted", ngImport: i0__namespace, template: "<span>Default</span>", styles: ["span{font-size:75%;background-color:#02a7f0;padding:2px 4px;border-radius:4px;color:#fff}:host{display:flex}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
972
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, decorators: [{
973
- type: i0.Component,
974
- args: [{
975
- selector: 'app-defaulted',
976
- templateUrl: './defaulted.component.html',
977
- styleUrls: ['./defaulted.component.scss'],
978
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
979
- }]
966
+ var DefaultedComponent = /** @class */ (function () {
967
+ function DefaultedComponent() {
968
+ }
969
+ return DefaultedComponent;
970
+ }());
971
+ DefaultedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
972
+ DefaultedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DefaultedComponent, selector: "app-defaulted", ngImport: i0__namespace, template: "<span>Default</span>", styles: ["span{font-size:75%;background-color:#02a7f0;padding:2px 4px;border-radius:4px;color:#fff}:host{display:flex}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
973
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, decorators: [{
974
+ type: i0.Component,
975
+ args: [{
976
+ selector: 'app-defaulted',
977
+ templateUrl: './defaulted.component.html',
978
+ styleUrls: ['./defaulted.component.scss'],
979
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
980
+ }]
980
981
  }] });
981
982
 
982
- var VerificationMethodsComponent = /** @class */ (function () {
983
- function VerificationMethodsComponent(_prompt) {
984
- this._prompt = _prompt;
985
- this.deleted = new i0.EventEmitter();
986
- this.VerificationMethodType = exports.VerificationMethodType;
987
- }
988
- VerificationMethodsComponent.prototype.ngOnInit = function () {
989
- var _this = this;
990
- var _a, _b, _c, _d;
991
- if (!this.verificationMethodDefault && ((_a = this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.hasVerificationMethodDefault)) {
992
- this.verificationMethodDefault = function (verificationMethod) {
993
- return _this.twoFactorManageService.verificationMethodDefault$(verificationMethod);
994
- };
995
- }
996
- if (!this.verificationMethodDelete && ((_b = this.twoFactorManageService) === null || _b === void 0 ? void 0 : _b.hasVerificationMethodDelete)) {
997
- this.verificationMethodDelete = function (verificationMethod) {
998
- return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod);
999
- };
1000
- }
1001
- if (!this.verificationMethodsFetch && ((_c = this.twoFactorManageService) === null || _c === void 0 ? void 0 : _c.hasVerificationMethodsFetch)) {
1002
- this.verificationMethodsFetch = function (query) {
1003
- return _this.twoFactorManageService.verificationMethodsFetch$(query);
1004
- };
1005
- }
1006
- if (!this.accountVerify && ((_d = this.twoFactorManageService) === null || _d === void 0 ? void 0 : _d.hasVerificationMethodVerify)) {
1007
- this.accountVerify = function () {
1008
- var _a;
1009
- return (_a = _this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.accountVerify$();
1010
- };
1011
- }
1012
- this.listConfig = {
1013
- paging: false,
1014
- rowActions: [
1015
- {
1016
- click: function (verificationMethod) {
1017
- _this.accountVerify()
1018
- .pipe(operators.switchMap(function () { return _this.verificationMethodDefault(verificationMethod); }))
1019
- .subscribe(function () {
1020
- _this.list.reload();
1021
- });
1022
- },
1023
- show: function (data) {
1024
- return !!_this.verificationMethodDefault && !data.default;
1025
- },
1026
- label: 'Set as Default',
1027
- },
1028
- {
1029
- click: function (verificationMethod) {
1030
- _this._prompt.confirm({
1031
- title: 'Confirm',
1032
- template: 'Would you like to delete this verification method?',
1033
- })
1034
- .pipe(operators.switchMap(function () { return _this.accountVerify(); }), operators.switchMap(function () { return _this.verificationMethodDelete(verificationMethod); }))
1035
- .subscribe(function () {
1036
- _this.deleted.emit();
1037
- _this.list.reload();
1038
- });
1039
- },
1040
- show: function () {
1041
- return !!_this.verificationMethodDelete;
1042
- },
1043
- label: 'Delete',
1044
- },
1045
- ],
1046
- fetch: function (query) {
1047
- query = Object.assign(Object.assign({}, query), { type: _this.type });
1048
- return _this.verificationMethodsFetch(query)
1049
- .pipe(operators.map(function (verificationMethods) { return ({
1050
- data: verificationMethods.filter(function (verificationMethod) {
1051
- return !_this.type || verificationMethod.type === _this.type;
1052
- }),
1053
- }); }));
1054
- },
1055
- };
1056
- };
1057
- VerificationMethodsComponent.prototype.reload = function () {
1058
- this.list.reload();
1059
- };
1060
- return VerificationMethodsComponent;
1061
- }());
1062
- VerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, deps: [{ token: i1__namespace$3.FsPrompt }], target: i0__namespace.ɵɵFactoryTarget.Component });
1063
- VerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: { type: "type", accountVerify: "accountVerify", verificationMethodsFetch: "verificationMethodsFetch", verificationMethodDelete: "verificationMethodDelete", verificationMethodDefault: "verificationMethodDefault", twoFactorManageService: "twoFactorManageService" }, outputs: { deleted: "deleted" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column class=\"col-icon\" width=\"1%\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <mat-icon>textsms</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n <mat-icon>email</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n <mat-icon>phone_iphone</mat-icon>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column class=\"col-name\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <div class=\"row\">\n <fs-country [code]=\"row.phoneCountry\" [showName]=\"false\"></fs-country> \n <span>{{row.phoneNumber | fsPhone}}</span>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n {{row.email}}\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n App\n </ng-container>\n\n <app-defaulted *ngIf=\"row.default\"></app-defaulted>\n </div>\n </ng-template>\n </fs-list-column>\n</fs-list>", styles: [":host ::ng-deep .col-name .row{display:flex;align-items:center}:host ::ng-deep .col-name fs-country img{display:flex}fs-country{margin-right:5px}app-defaulted{margin-left:5px}\n"], components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4__namespace$1.FsCountryComponent, selector: "fs-country", inputs: ["code", "showIcon", "showName", "region", "width"] }, { type: DefaultedComponent, selector: "app-defaulted" }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1064
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
1065
- type: i0.Component,
1066
- args: [{
1067
- selector: 'fs-2fa-verification-methods',
1068
- templateUrl: './verification-methods.component.html',
1069
- styleUrls: ['./verification-methods.component.scss'],
1070
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1071
- }]
1072
- }], ctorParameters: function () { return [{ type: i1__namespace$3.FsPrompt }]; }, propDecorators: { list: [{
1073
- type: i0.ViewChild,
1074
- args: [i2$1.FsListComponent]
1075
- }], type: [{
1076
- type: i0.Input
1077
- }], accountVerify: [{
1078
- type: i0.Input
1079
- }], verificationMethodsFetch: [{
1080
- type: i0.Input
1081
- }], verificationMethodDelete: [{
1082
- type: i0.Input
1083
- }], verificationMethodDefault: [{
1084
- type: i0.Input
1085
- }], twoFactorManageService: [{
1086
- type: i0.Input
1087
- }], deleted: [{
1088
- type: i0.Output
983
+ var VerificationMethodsComponent = /** @class */ (function () {
984
+ function VerificationMethodsComponent(_prompt) {
985
+ this._prompt = _prompt;
986
+ this.deleted = new i0.EventEmitter();
987
+ this.VerificationMethodType = exports.VerificationMethodType;
988
+ }
989
+ VerificationMethodsComponent.prototype.ngOnInit = function () {
990
+ var _this = this;
991
+ var _a, _b, _c, _d;
992
+ if (!this.verificationMethodDefault && ((_a = this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.hasVerificationMethodDefault)) {
993
+ this.verificationMethodDefault = function (verificationMethod) {
994
+ return _this.twoFactorManageService.verificationMethodDefault$(verificationMethod);
995
+ };
996
+ }
997
+ if (!this.verificationMethodDelete && ((_b = this.twoFactorManageService) === null || _b === void 0 ? void 0 : _b.hasVerificationMethodDelete)) {
998
+ this.verificationMethodDelete = function (verificationMethod) {
999
+ return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod);
1000
+ };
1001
+ }
1002
+ if (!this.verificationMethodsFetch && ((_c = this.twoFactorManageService) === null || _c === void 0 ? void 0 : _c.hasVerificationMethodsFetch)) {
1003
+ this.verificationMethodsFetch = function (query) {
1004
+ return _this.twoFactorManageService.verificationMethodsFetch$(query);
1005
+ };
1006
+ }
1007
+ if (!this.accountVerify && ((_d = this.twoFactorManageService) === null || _d === void 0 ? void 0 : _d.hasVerificationMethodVerify)) {
1008
+ this.accountVerify = function () {
1009
+ var _a;
1010
+ return (_a = _this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.accountVerify$();
1011
+ };
1012
+ }
1013
+ this.listConfig = {
1014
+ paging: false,
1015
+ rowActions: [
1016
+ {
1017
+ click: function (verificationMethod) {
1018
+ _this.accountVerify()
1019
+ .pipe(operators.switchMap(function () { return _this.verificationMethodDefault(verificationMethod); }))
1020
+ .subscribe(function () {
1021
+ _this.list.reload();
1022
+ });
1023
+ },
1024
+ show: function (data) {
1025
+ return !!_this.verificationMethodDefault && !data.default;
1026
+ },
1027
+ label: 'Set as Default',
1028
+ },
1029
+ {
1030
+ click: function (verificationMethod) {
1031
+ _this._prompt.confirm({
1032
+ title: 'Confirm',
1033
+ template: 'Would you like to delete this verification method?',
1034
+ })
1035
+ .pipe(operators.switchMap(function () { return _this.accountVerify(); }), operators.switchMap(function () { return _this.verificationMethodDelete(verificationMethod); }))
1036
+ .subscribe(function () {
1037
+ _this.deleted.emit();
1038
+ _this.list.reload();
1039
+ });
1040
+ },
1041
+ show: function () {
1042
+ return !!_this.verificationMethodDelete;
1043
+ },
1044
+ label: 'Delete',
1045
+ },
1046
+ ],
1047
+ fetch: function (query) {
1048
+ query = Object.assign(Object.assign({}, query), { type: _this.type });
1049
+ return _this.verificationMethodsFetch(query)
1050
+ .pipe(operators.map(function (verificationMethods) { return ({
1051
+ data: verificationMethods.filter(function (verificationMethod) {
1052
+ return !_this.type || verificationMethod.type === _this.type;
1053
+ }),
1054
+ }); }));
1055
+ },
1056
+ };
1057
+ };
1058
+ VerificationMethodsComponent.prototype.reload = function () {
1059
+ this.list.reload();
1060
+ };
1061
+ return VerificationMethodsComponent;
1062
+ }());
1063
+ VerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, deps: [{ token: i1__namespace$3.FsPrompt }], target: i0__namespace.ɵɵFactoryTarget.Component });
1064
+ VerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: { type: "type", accountVerify: "accountVerify", verificationMethodsFetch: "verificationMethodsFetch", verificationMethodDelete: "verificationMethodDelete", verificationMethodDefault: "verificationMethodDefault", twoFactorManageService: "twoFactorManageService" }, outputs: { deleted: "deleted" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column class=\"col-icon\" width=\"1%\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <mat-icon>textsms</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n <mat-icon>email</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n <mat-icon>phone_iphone</mat-icon>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column class=\"col-name\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <div class=\"row\">\n <fs-country [code]=\"row.phoneCountry\" [showName]=\"false\"></fs-country> \n <span>{{row.phoneNumber | fsPhone}}</span>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n {{row.email}}\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n App\n </ng-container>\n\n <app-defaulted *ngIf=\"row.default\"></app-defaulted>\n </div>\n </ng-template>\n </fs-list-column>\n</fs-list>", styles: [":host ::ng-deep .col-name .row{display:flex;align-items:center}:host ::ng-deep .col-name fs-country img{display:flex}fs-country{margin-right:5px}app-defaulted{margin-left:5px}\n"], components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4__namespace$1.FsCountryComponent, selector: "fs-country", inputs: ["code", "showIcon", "showName", "region", "width"] }, { type: DefaultedComponent, selector: "app-defaulted" }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1065
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
1066
+ type: i0.Component,
1067
+ args: [{
1068
+ selector: 'fs-2fa-verification-methods',
1069
+ templateUrl: './verification-methods.component.html',
1070
+ styleUrls: ['./verification-methods.component.scss'],
1071
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1072
+ }]
1073
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.FsPrompt }]; }, propDecorators: { list: [{
1074
+ type: i0.ViewChild,
1075
+ args: [i2$1.FsListComponent]
1076
+ }], type: [{
1077
+ type: i0.Input
1078
+ }], accountVerify: [{
1079
+ type: i0.Input
1080
+ }], verificationMethodsFetch: [{
1081
+ type: i0.Input
1082
+ }], verificationMethodDelete: [{
1083
+ type: i0.Input
1084
+ }], verificationMethodDefault: [{
1085
+ type: i0.Input
1086
+ }], twoFactorManageService: [{
1087
+ type: i0.Input
1088
+ }], deleted: [{
1089
+ type: i0.Output
1089
1090
  }] } });
1090
1091
 
1091
- var NumbersComponent = /** @class */ (function () {
1092
- function NumbersComponent(_data, _dialogRef, _message) {
1093
- this._data = _data;
1094
- this._dialogRef = _dialogRef;
1095
- this._message = _message;
1096
- this.VerificationMethodType = exports.VerificationMethodType;
1097
- this.twoFactorManageService = _data.twoFactorManageService;
1098
- this.defaultCountry = _data.defaultCountry;
1099
- }
1100
- NumbersComponent.prototype.add = function () {
1101
- var _this = this;
1102
- this.twoFactorManageService.addSms$(this.defaultCountry)
1103
- .subscribe(function () {
1104
- _this.verificationMethods.reload();
1105
- });
1106
- };
1107
- NumbersComponent.prototype.deleted = function () {
1108
- this._message.success('Deleted text message verification method');
1109
- if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms)) {
1110
- this._dialogRef.close();
1111
- }
1112
- };
1113
- return NumbersComponent;
1114
- }());
1115
- NumbersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1116
- NumbersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumbersComponent, selector: "ng-component", viewQueries: [{ propertyName: "verificationMethods", first: true, predicate: VerificationMethodsComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n <mat-icon>textsms</mat-icon> Text Message Numbers\n </h1>\n <mat-dialog-content>\n <fs-2fa-verification-methods\n [type]=\"VerificationMethodType.Sms\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </fs-2fa-verification-methods> \n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Number\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: ["type", "accountVerify", "verificationMethodsFetch", "verificationMethodDelete", "verificationMethodDefault", "twoFactorManageService"], outputs: ["deleted"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1117
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, decorators: [{
1118
- type: i0.Component,
1119
- args: [{
1120
- templateUrl: './numbers.component.html',
1121
- styleUrls: ['./numbers.component.scss'],
1122
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1123
- }]
1124
- }], ctorParameters: function () {
1125
- return [{ type: undefined, decorators: [{
1126
- type: i0.Inject,
1127
- args: [i1.MAT_DIALOG_DATA]
1128
- }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1129
- }, propDecorators: { verificationMethods: [{
1130
- type: i0.ViewChild,
1131
- args: [VerificationMethodsComponent]
1092
+ var NumbersComponent = /** @class */ (function () {
1093
+ function NumbersComponent(_data, _dialogRef, _message) {
1094
+ this._data = _data;
1095
+ this._dialogRef = _dialogRef;
1096
+ this._message = _message;
1097
+ this.VerificationMethodType = exports.VerificationMethodType;
1098
+ this.twoFactorManageService = _data.twoFactorManageService;
1099
+ this.defaultCountry = _data.defaultCountry;
1100
+ }
1101
+ NumbersComponent.prototype.add = function () {
1102
+ var _this = this;
1103
+ this.twoFactorManageService.addSms$(this.defaultCountry)
1104
+ .subscribe(function () {
1105
+ _this.verificationMethods.reload();
1106
+ });
1107
+ };
1108
+ NumbersComponent.prototype.deleted = function () {
1109
+ this._message.success('Deleted text message verification method');
1110
+ if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms)) {
1111
+ this._dialogRef.close();
1112
+ }
1113
+ };
1114
+ return NumbersComponent;
1115
+ }());
1116
+ NumbersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1117
+ NumbersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumbersComponent, selector: "ng-component", viewQueries: [{ propertyName: "verificationMethods", first: true, predicate: VerificationMethodsComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n <mat-icon>textsms</mat-icon> Text Message Numbers\n </h1>\n <mat-dialog-content>\n <fs-2fa-verification-methods\n [type]=\"VerificationMethodType.Sms\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </fs-2fa-verification-methods> \n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Number\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: ["type", "accountVerify", "verificationMethodsFetch", "verificationMethodDelete", "verificationMethodDefault", "twoFactorManageService"], outputs: ["deleted"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1118
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, decorators: [{
1119
+ type: i0.Component,
1120
+ args: [{
1121
+ templateUrl: './numbers.component.html',
1122
+ styleUrls: ['./numbers.component.scss'],
1123
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1124
+ }]
1125
+ }], ctorParameters: function () {
1126
+ return [{ type: undefined, decorators: [{
1127
+ type: i0.Inject,
1128
+ args: [i1.MAT_DIALOG_DATA]
1129
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1130
+ }, propDecorators: { verificationMethods: [{
1131
+ type: i0.ViewChild,
1132
+ args: [VerificationMethodsComponent]
1132
1133
  }] } });
1133
1134
 
1134
- var EmailsComponent = /** @class */ (function () {
1135
- function EmailsComponent(_data, _dialogRef, _message) {
1136
- this._data = _data;
1137
- this._dialogRef = _dialogRef;
1138
- this._message = _message;
1139
- this.VerificationMethodType = exports.VerificationMethodType;
1140
- this.twoFactorManageService = _data.twoFactorManageService;
1141
- }
1142
- EmailsComponent.prototype.add = function () {
1143
- var _this = this;
1144
- this.twoFactorManageService.addEmail$()
1145
- .subscribe(function () {
1146
- _this.verificationMethods.reload();
1147
- });
1148
- };
1149
- EmailsComponent.prototype.deleted = function () {
1150
- this._message.success('Deleted email verification method');
1151
- if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email)) {
1152
- this._dialogRef.close();
1153
- }
1154
- };
1155
- return EmailsComponent;
1156
- }());
1157
- EmailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1158
- EmailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailsComponent, selector: "ng-component", viewQueries: [{ propertyName: "verificationMethods", first: true, predicate: VerificationMethodsComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n <mat-icon>email</mat-icon> Emails\n </h1>\n <mat-dialog-content>\n <fs-2fa-verification-methods\n [type]=\"VerificationMethodType.Email\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </fs-2fa-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Email\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: ["h1{display:flex;align-items:center}h1 mat-icon{margin-right:5px}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: ["type", "accountVerify", "verificationMethodsFetch", "verificationMethodDelete", "verificationMethodDefault", "twoFactorManageService"], outputs: ["deleted"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1159
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, decorators: [{
1160
- type: i0.Component,
1161
- args: [{
1162
- templateUrl: './emails.component.html',
1163
- styleUrls: ['./emails.component.scss'],
1164
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1165
- }]
1166
- }], ctorParameters: function () {
1167
- return [{ type: undefined, decorators: [{
1168
- type: i0.Inject,
1169
- args: [i1.MAT_DIALOG_DATA]
1170
- }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1171
- }, propDecorators: { verificationMethods: [{
1172
- type: i0.ViewChild,
1173
- args: [VerificationMethodsComponent]
1135
+ var EmailsComponent = /** @class */ (function () {
1136
+ function EmailsComponent(_data, _dialogRef, _message) {
1137
+ this._data = _data;
1138
+ this._dialogRef = _dialogRef;
1139
+ this._message = _message;
1140
+ this.VerificationMethodType = exports.VerificationMethodType;
1141
+ this.twoFactorManageService = _data.twoFactorManageService;
1142
+ }
1143
+ EmailsComponent.prototype.add = function () {
1144
+ var _this = this;
1145
+ this.twoFactorManageService.addEmail$()
1146
+ .subscribe(function () {
1147
+ _this.verificationMethods.reload();
1148
+ });
1149
+ };
1150
+ EmailsComponent.prototype.deleted = function () {
1151
+ this._message.success('Deleted email verification method');
1152
+ if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email)) {
1153
+ this._dialogRef.close();
1154
+ }
1155
+ };
1156
+ return EmailsComponent;
1157
+ }());
1158
+ EmailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1159
+ EmailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailsComponent, selector: "ng-component", viewQueries: [{ propertyName: "verificationMethods", first: true, predicate: VerificationMethodsComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n <mat-icon>email</mat-icon> Emails\n </h1>\n <mat-dialog-content>\n <fs-2fa-verification-methods\n [type]=\"VerificationMethodType.Email\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </fs-2fa-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Email\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: ["h1{display:flex;align-items:center}h1 mat-icon{margin-right:5px}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: ["type", "accountVerify", "verificationMethodsFetch", "verificationMethodDelete", "verificationMethodDefault", "twoFactorManageService"], outputs: ["deleted"] }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1160
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, decorators: [{
1161
+ type: i0.Component,
1162
+ args: [{
1163
+ templateUrl: './emails.component.html',
1164
+ styleUrls: ['./emails.component.scss'],
1165
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1166
+ }]
1167
+ }], ctorParameters: function () {
1168
+ return [{ type: undefined, decorators: [{
1169
+ type: i0.Inject,
1170
+ args: [i1.MAT_DIALOG_DATA]
1171
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1172
+ }, propDecorators: { verificationMethods: [{
1173
+ type: i0.ViewChild,
1174
+ args: [VerificationMethodsComponent]
1174
1175
  }] } });
1175
1176
 
1176
- var ManageMethodsComponent = /** @class */ (function () {
1177
- function ManageMethodsComponent(_data, _cdRef, _dialog, _message) {
1178
- this._data = _data;
1179
- this._cdRef = _cdRef;
1180
- this._dialog = _dialog;
1181
- this._message = _message;
1182
- this.verificationMethodTypes = {};
1183
- this.VerificationMethodType = exports.VerificationMethodType;
1184
- this._destroy$ = new rxjs.Subject();
1185
- }
1186
- ManageMethodsComponent.prototype.ngOnInit = function () {
1187
- var _this = this;
1188
- this._defaultCountry = this._data.defaultCountry;
1189
- this.twoFactorManageService = this._data.twoFactorManageService;
1190
- this.verificationMethodTypes = this._data.verificationMethodTypes
1191
- .reduce(function (verificationMethodTypes, verificationMethodType) {
1192
- verificationMethodTypes[verificationMethodType] = true;
1193
- return verificationMethodTypes;
1194
- }, {});
1195
- this.twoFactorManageService.verificationMethods$
1196
- .subscribe(function (verificationMethods) {
1197
- _this.verificationMethods = verificationMethods;
1198
- _this._cdRef.markForCheck();
1199
- });
1200
- };
1201
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultSms", {
1202
- get: function () {
1203
- return this.twoFactorManageService.smsVerificationMethods
1204
- .some(function (verificationMethod) {
1205
- return verificationMethod.default;
1206
- });
1207
- },
1208
- enumerable: false,
1209
- configurable: true
1210
- });
1211
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultApp", {
1212
- get: function () {
1213
- return this.twoFactorManageService.appVerificationMethods
1214
- .some(function (verificationMethod) {
1215
- return verificationMethod.default;
1216
- });
1217
- },
1218
- enumerable: false,
1219
- configurable: true
1220
- });
1221
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultEmail", {
1222
- get: function () {
1223
- return this.twoFactorManageService.emailVerificationMethods
1224
- .some(function (verificationMethod) {
1225
- return verificationMethod.default;
1226
- });
1227
- },
1228
- enumerable: false,
1229
- configurable: true
1230
- });
1231
- Object.defineProperty(ManageMethodsComponent.prototype, "textHasVerificationMethod", {
1232
- get: function () {
1233
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms);
1234
- },
1235
- enumerable: false,
1236
- configurable: true
1237
- });
1238
- Object.defineProperty(ManageMethodsComponent.prototype, "appHasVerificationMethod", {
1239
- get: function () {
1240
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.App);
1241
- },
1242
- enumerable: false,
1243
- configurable: true
1244
- });
1245
- Object.defineProperty(ManageMethodsComponent.prototype, "emailHasVerificationMethod", {
1246
- get: function () {
1247
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email);
1248
- },
1249
- enumerable: false,
1250
- configurable: true
1251
- });
1252
- ManageMethodsComponent.prototype.textMessageManage = function () {
1253
- this._dialog.open(NumbersComponent, {
1254
- data: {
1255
- twoFactorManageService: this.twoFactorManageService,
1256
- defaultCountry: this._defaultCountry,
1257
- },
1258
- });
1259
- };
1260
- ManageMethodsComponent.prototype.textMessageAdd = function () {
1261
- this.twoFactorManageService.addSms$(this._defaultCountry)
1262
- .subscribe();
1263
- };
1264
- ManageMethodsComponent.prototype.emailMessageManage = function () {
1265
- this._dialog.open(EmailsComponent, {
1266
- data: {
1267
- twoFactorManageService: this.twoFactorManageService,
1268
- },
1269
- });
1270
- };
1271
- ManageMethodsComponent.prototype.emailMessageAdd = function () {
1272
- this.twoFactorManageService.addEmail$()
1273
- .subscribe();
1274
- };
1275
- ManageMethodsComponent.prototype.appRemove = function () {
1276
- var _this = this;
1277
- var verificationMethod = this.verificationMethods
1278
- .find(function (_verificationMethod) {
1279
- return _verificationMethod.type === exports.VerificationMethodType.App;
1280
- });
1281
- if (verificationMethod) {
1282
- this.twoFactorManageService.accountVerify$()
1283
- .pipe(operators.switchMap(function () { return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod); }))
1284
- .subscribe(function () {
1285
- _this._message.success('Removed App Authenticator verification method');
1286
- _this._cdRef.markForCheck();
1287
- });
1288
- }
1289
- };
1290
- ManageMethodsComponent.prototype.appAdd = function () {
1291
- this.twoFactorManageService.addApp$()
1292
- .subscribe();
1293
- };
1294
- ManageMethodsComponent.prototype.ngOnDestroy = function () {
1295
- this._destroy$.next();
1296
- this._destroy$.complete();
1297
- };
1298
- return ManageMethodsComponent;
1299
- }());
1300
- ManageMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.MatDialog }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1301
- ManageMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ManageMethodsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>2-Step Verification</h1>\n <mat-dialog-content>\n <table>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.Sms]\">\n <td>\n <mat-icon>textsms</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Text Message</span>\n <span *ngIf=\"textHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultSms\"></app-defaulted>\n </div>\n <div class=\"small\">\n Verification codes are sent by text message\n <ng-container *ngIf=\"textHasVerificationMethod\">\n to <span class=\"items\">\n <span *ngFor=\"let item of twoFactorManageService.smsVerificationMethods\">{{item.phoneNumber | fsPhone}}</span>\n </span>\n </ng-container>\n </div>\n </td>\n <td>\n <button \n *ngIf=\"textHasVerificationMethod; else textMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"textMessageManage()\">\n Manage\n </button>\n <ng-template #textMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"textMessageAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.Email]\">\n <td>\n <mat-icon>email</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Email</span> \n <span *ngIf=\"emailHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultEmail\"></app-defaulted>\n </div>\n <div class=\"small\">\n Verification codes are sent by email\n <ng-container *ngIf=\"emailHasVerificationMethod\">\n to <span class=\"items\">\n <span *ngFor=\"let item of twoFactorManageService.emailVerificationMethods\">{{item.email}}</span>\n </span>\n </ng-container>\n </div>\n </td>\n <td>\n <button \n *ngIf=\"emailHasVerificationMethod; else emailMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"emailMessageManage()\">\n Manage\n </button>\n <ng-template #emailMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"emailMessageAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.App]\">\n <td>\n <mat-icon>phone_iphone</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Authenticator App</span>\n <span *ngIf=\"appHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultApp\"></app-defaulted>\n </div>\n <div class=\"small\">Verification code is generated by an authenticator app such as Authy or Google Authenticator</div>\n </td>\n <td>\n <button \n *ngIf=\"appHasVerificationMethod; else appMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"appRemove()\">\n Remove\n </button>\n <ng-template #appMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"appAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr> \n </table> \n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: ["mat-dialog-content{max-width:500px}.enabled{font-size:75%;background-color:#70b601;padding:2px 4px;border-radius:4px;color:#fff;margin-left:4px}.enabled:after{content:\"Enabled\"}table tr td:first-child,table tr td:last-child{width:1%}table tr td:first-child mat-icon,table tr td:last-child mat-icon{display:flex}table tr td{padding:6px;vertical-align:middle}table tr .type{display:flex;align-items:center}table tr .type app-defaulted{margin-left:4px}.items span+span:not(:last-child):before{content:\", \"}.items span+span:last-child:before{content:\" and \"}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: DefaultedComponent, selector: "app-defaulted" }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1302
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, decorators: [{
1303
- type: i0.Component,
1304
- args: [{
1305
- templateUrl: './manage-methods.component.html',
1306
- styleUrls: ['./manage-methods.component.scss'],
1307
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1308
- }]
1309
- }], ctorParameters: function () {
1310
- return [{ type: undefined, decorators: [{
1311
- type: i0.Inject,
1312
- args: [i1.MAT_DIALOG_DATA]
1313
- }] }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: i2__namespace.FsMessage }];
1177
+ var ManageMethodsComponent = /** @class */ (function () {
1178
+ function ManageMethodsComponent(_data, _cdRef, _dialog, _message) {
1179
+ this._data = _data;
1180
+ this._cdRef = _cdRef;
1181
+ this._dialog = _dialog;
1182
+ this._message = _message;
1183
+ this.verificationMethodTypes = {};
1184
+ this.VerificationMethodType = exports.VerificationMethodType;
1185
+ this._destroy$ = new rxjs.Subject();
1186
+ }
1187
+ ManageMethodsComponent.prototype.ngOnInit = function () {
1188
+ var _this = this;
1189
+ this._defaultCountry = this._data.defaultCountry;
1190
+ this.twoFactorManageService = this._data.twoFactorManageService;
1191
+ this.verificationMethodTypes = this._data.verificationMethodTypes
1192
+ .reduce(function (verificationMethodTypes, verificationMethodType) {
1193
+ verificationMethodTypes[verificationMethodType] = true;
1194
+ return verificationMethodTypes;
1195
+ }, {});
1196
+ this.twoFactorManageService.verificationMethods$
1197
+ .subscribe(function (verificationMethods) {
1198
+ _this.verificationMethods = verificationMethods;
1199
+ _this._cdRef.markForCheck();
1200
+ });
1201
+ };
1202
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultSms", {
1203
+ get: function () {
1204
+ return this.twoFactorManageService.smsVerificationMethods
1205
+ .some(function (verificationMethod) {
1206
+ return verificationMethod.default;
1207
+ });
1208
+ },
1209
+ enumerable: false,
1210
+ configurable: true
1211
+ });
1212
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultApp", {
1213
+ get: function () {
1214
+ return this.twoFactorManageService.appVerificationMethods
1215
+ .some(function (verificationMethod) {
1216
+ return verificationMethod.default;
1217
+ });
1218
+ },
1219
+ enumerable: false,
1220
+ configurable: true
1221
+ });
1222
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultEmail", {
1223
+ get: function () {
1224
+ return this.twoFactorManageService.emailVerificationMethods
1225
+ .some(function (verificationMethod) {
1226
+ return verificationMethod.default;
1227
+ });
1228
+ },
1229
+ enumerable: false,
1230
+ configurable: true
1231
+ });
1232
+ Object.defineProperty(ManageMethodsComponent.prototype, "textHasVerificationMethod", {
1233
+ get: function () {
1234
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms);
1235
+ },
1236
+ enumerable: false,
1237
+ configurable: true
1238
+ });
1239
+ Object.defineProperty(ManageMethodsComponent.prototype, "appHasVerificationMethod", {
1240
+ get: function () {
1241
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.App);
1242
+ },
1243
+ enumerable: false,
1244
+ configurable: true
1245
+ });
1246
+ Object.defineProperty(ManageMethodsComponent.prototype, "emailHasVerificationMethod", {
1247
+ get: function () {
1248
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email);
1249
+ },
1250
+ enumerable: false,
1251
+ configurable: true
1252
+ });
1253
+ ManageMethodsComponent.prototype.textMessageManage = function () {
1254
+ this._dialog.open(NumbersComponent, {
1255
+ data: {
1256
+ twoFactorManageService: this.twoFactorManageService,
1257
+ defaultCountry: this._defaultCountry,
1258
+ },
1259
+ });
1260
+ };
1261
+ ManageMethodsComponent.prototype.textMessageAdd = function () {
1262
+ this.twoFactorManageService.addSms$(this._defaultCountry)
1263
+ .subscribe();
1264
+ };
1265
+ ManageMethodsComponent.prototype.emailMessageManage = function () {
1266
+ this._dialog.open(EmailsComponent, {
1267
+ data: {
1268
+ twoFactorManageService: this.twoFactorManageService,
1269
+ },
1270
+ });
1271
+ };
1272
+ ManageMethodsComponent.prototype.emailMessageAdd = function () {
1273
+ this.twoFactorManageService.addEmail$()
1274
+ .subscribe();
1275
+ };
1276
+ ManageMethodsComponent.prototype.appRemove = function () {
1277
+ var _this = this;
1278
+ var verificationMethod = this.verificationMethods
1279
+ .find(function (_verificationMethod) {
1280
+ return _verificationMethod.type === exports.VerificationMethodType.App;
1281
+ });
1282
+ if (verificationMethod) {
1283
+ this.twoFactorManageService.accountVerify$()
1284
+ .pipe(operators.switchMap(function () { return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod); }))
1285
+ .subscribe(function () {
1286
+ _this._message.success('Removed App Authenticator verification method');
1287
+ _this._cdRef.markForCheck();
1288
+ });
1289
+ }
1290
+ };
1291
+ ManageMethodsComponent.prototype.appAdd = function () {
1292
+ this.twoFactorManageService.addApp$()
1293
+ .subscribe();
1294
+ };
1295
+ ManageMethodsComponent.prototype.ngOnDestroy = function () {
1296
+ this._destroy$.next();
1297
+ this._destroy$.complete();
1298
+ };
1299
+ return ManageMethodsComponent;
1300
+ }());
1301
+ ManageMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.MatDialog }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1302
+ ManageMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ManageMethodsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>2-Step Verification</h1>\n <mat-dialog-content>\n <table>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.Sms]\">\n <td>\n <mat-icon>textsms</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Text Message</span>\n <span *ngIf=\"textHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultSms\"></app-defaulted>\n </div>\n <div class=\"small\">\n Verification codes are sent by text message\n <ng-container *ngIf=\"textHasVerificationMethod\">\n to <span class=\"items\">\n <span *ngFor=\"let item of twoFactorManageService.smsVerificationMethods\">{{item.phoneNumber | fsPhone}}</span>\n </span>\n </ng-container>\n </div>\n </td>\n <td>\n <button \n *ngIf=\"textHasVerificationMethod; else textMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"textMessageManage()\">\n Manage\n </button>\n <ng-template #textMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"textMessageAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.Email]\">\n <td>\n <mat-icon>email</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Email</span> \n <span *ngIf=\"emailHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultEmail\"></app-defaulted>\n </div>\n <div class=\"small\">\n Verification codes are sent by email\n <ng-container *ngIf=\"emailHasVerificationMethod\">\n to <span class=\"items\">\n <span *ngFor=\"let item of twoFactorManageService.emailVerificationMethods\">{{item.email}}</span>\n </span>\n </ng-container>\n </div>\n </td>\n <td>\n <button \n *ngIf=\"emailHasVerificationMethod; else emailMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"emailMessageManage()\">\n Manage\n </button>\n <ng-template #emailMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"emailMessageAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr>\n <tr *ngIf=\"verificationMethodTypes[VerificationMethodType.App]\">\n <td>\n <mat-icon>phone_iphone</mat-icon>\n </td>\n <td>\n <div class=\"type\">\n <span>Authenticator App</span>\n <span *ngIf=\"appHasVerificationMethod\" class=\"enabled\"></span>\n <app-defaulted *ngIf=\"defaultApp\"></app-defaulted>\n </div>\n <div class=\"small\">Verification code is generated by an authenticator app such as Authy or Google Authenticator</div>\n </td>\n <td>\n <button \n *ngIf=\"appHasVerificationMethod; else appMessageManageButton\"\n mat-raised-button \n type=\"button\"\n (click)=\"appRemove()\">\n Remove\n </button>\n <ng-template #appMessageManageButton>\n <button \n mat-raised-button \n color=\"primary\"\n type=\"button\"\n (click)=\"appAdd()\">\n Turn On\n </button>\n </ng-template>\n </td>\n </tr> \n </table> \n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n color=\"primary\"\n type=\"button\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: ["mat-dialog-content{max-width:500px}.enabled{font-size:75%;background-color:#70b601;padding:2px 4px;border-radius:4px;color:#fff;margin-left:4px}.enabled:after{content:\"Enabled\"}table tr td:first-child,table tr td:last-child{width:1%}table tr td:first-child mat-icon,table tr td:last-child mat-icon{display:flex}table tr td{padding:6px;vertical-align:middle}table tr .type{display:flex;align-items:center}table tr .type app-defaulted{margin-left:4px}.items span+span:not(:last-child):before{content:\", \"}.items span+span:last-child:before{content:\" and \"}\n"], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: DefaultedComponent, selector: "app-defaulted" }, { type: i6__namespace.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: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsPhone": i8__namespace$1.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1303
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, decorators: [{
1304
+ type: i0.Component,
1305
+ args: [{
1306
+ templateUrl: './manage-methods.component.html',
1307
+ styleUrls: ['./manage-methods.component.scss'],
1308
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1309
+ }]
1310
+ }], ctorParameters: function () {
1311
+ return [{ type: undefined, decorators: [{
1312
+ type: i0.Inject,
1313
+ args: [i1.MAT_DIALOG_DATA]
1314
+ }] }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: i2__namespace.FsMessage }];
1314
1315
  } });
1315
1316
 
1316
- var Fs2faManageComponent = /** @class */ (function () {
1317
- function Fs2faManageComponent(_cdRef, _dialog, _twoFactorManageService) {
1318
- this._cdRef = _cdRef;
1319
- this._dialog = _dialog;
1320
- this._twoFactorManageService = _twoFactorManageService;
1321
- this._destroy$ = new rxjs.Subject();
1322
- }
1323
- Fs2faManageComponent.prototype.ngOnInit = function () {
1324
- var _this = this;
1325
- this.verificationMethodTypes = this.verificationMethodTypes || [
1326
- exports.VerificationMethodType.Sms,
1327
- exports.VerificationMethodType.Email,
1328
- exports.VerificationMethodType.App
1329
- ];
1330
- this._twoFactorManageService.registerVerificationMethodsFetch(this.verificationMethodsFetch);
1331
- this._twoFactorManageService.registerVerificationMethodDelete(this.verificationMethodDelete);
1332
- this._twoFactorManageService.registerVerificationMethodCreate(this.verificationMethodCreate);
1333
- this._twoFactorManageService.registerVerificationMethodVerify(this.verificationMethodVerify);
1334
- this._twoFactorManageService.registerVerificationMethodResend(this.verificationMethodResend);
1335
- this._twoFactorManageService.registerVerificationMethodDefault(this.verificationMethodDefault);
1336
- this._twoFactorManageService.registerAccountVerify(this.accountVerify);
1337
- this._twoFactorManageService.verificationMethods$
1338
- .subscribe(function (verificationMethods) {
1339
- var types = {
1340
- sms: 'Text Message',
1341
- email: 'Email',
1342
- app: 'Authenticator App',
1343
- };
1344
- _this.statuses = Object.keys(verificationMethods.reduce(function (accum, verificationMethod) {
1345
- accum[verificationMethod.type] = true;
1346
- return accum;
1347
- }, {}))
1348
- .map(function (type) {
1349
- return types[type];
1350
- });
1351
- _this._cdRef.markForCheck();
1352
- });
1353
- this._twoFactorManageService.verificationMethodsFetch();
1354
- };
1355
- Fs2faManageComponent.prototype.manage = function () {
1356
- var _this = this;
1357
- var dialogRef = this._dialog.open(ManageMethodsComponent, {
1358
- autoFocus: false,
1359
- data: {
1360
- defaultCountry: this.defaultCountry,
1361
- twoFactorManageService: this._twoFactorManageService,
1362
- verificationMethodTypes: this.verificationMethodTypes,
1363
- },
1364
- });
1365
- dialogRef.afterClosed()
1366
- .pipe(operators.takeUntil(this._destroy$))
1367
- .subscribe(function () {
1368
- _this._cdRef.markForCheck();
1369
- });
1370
- };
1371
- Fs2faManageComponent.prototype.reload = function () {
1372
- this._twoFactorManageService.verificationMethodsFetch();
1373
- };
1374
- Fs2faManageComponent.prototype.ngOnDestroy = function () {
1375
- this._destroy$.next();
1376
- this._destroy$.complete();
1377
- };
1378
- return Fs2faManageComponent;
1379
- }());
1380
- Fs2faManageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.MatDialog }, { token: TwoFactorManageService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1381
- Fs2faManageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faManageComponent, selector: "fs-2fa-manage", inputs: { accountVerify: "accountVerify", defaultCountry: "defaultCountry", verificationMethodTypes: "verificationMethodTypes", verificationMethodsFetch: "verificationMethodsFetch", verificationMethodDelete: "verificationMethodDelete", verificationMethodCreate: "verificationMethodCreate", verificationMethodDefault: "verificationMethodDefault", verificationMethodVerify: "verificationMethodVerify", verificationMethodResend: "verificationMethodResend" }, providers: [TwoFactorManageService], ngImport: i0__namespace, template: "<fs-label-field>\n <fs-label>Status</fs-label>\n <ng-container *ngIf=\"statuses\">\n <ng-container *ngIf=\"statuses.length === 1\">\n {{statuses[0]}} verification is enabled\n </ng-container>\n\n <ng-container *ngIf=\"statuses.length > 1\">\n {{statuses.join(', ')}} verifications are enabled\n </ng-container>\n\n <ng-container *ngIf=\"statuses.length === 0\">\n No verification methods are enabled\n </ng-container>\n </ng-container>\n</fs-label-field>", styles: [""], components: [{ type: i3__namespace$2.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3__namespace$2.FsLabelComponent, selector: "fs-label" }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1382
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, decorators: [{
1383
- type: i0.Component,
1384
- args: [{
1385
- selector: 'fs-2fa-manage',
1386
- templateUrl: './2fa-manage.component.html',
1387
- styleUrls: ['./2fa-manage.component.scss'],
1388
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1389
- providers: [TwoFactorManageService],
1390
- }]
1391
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: TwoFactorManageService }]; }, propDecorators: { accountVerify: [{
1392
- type: i0.Input
1393
- }], defaultCountry: [{
1394
- type: i0.Input
1395
- }], verificationMethodTypes: [{
1396
- type: i0.Input
1397
- }], verificationMethodsFetch: [{
1398
- type: i0.Input
1399
- }], verificationMethodDelete: [{
1400
- type: i0.Input
1401
- }], verificationMethodCreate: [{
1402
- type: i0.Input
1403
- }], verificationMethodDefault: [{
1404
- type: i0.Input
1405
- }], verificationMethodVerify: [{
1406
- type: i0.Input
1407
- }], verificationMethodResend: [{
1408
- type: i0.Input
1317
+ var Fs2faManageComponent = /** @class */ (function () {
1318
+ function Fs2faManageComponent(_cdRef, _dialog, _twoFactorManageService) {
1319
+ this._cdRef = _cdRef;
1320
+ this._dialog = _dialog;
1321
+ this._twoFactorManageService = _twoFactorManageService;
1322
+ this._destroy$ = new rxjs.Subject();
1323
+ }
1324
+ Fs2faManageComponent.prototype.ngOnInit = function () {
1325
+ var _this = this;
1326
+ this.verificationMethodTypes = this.verificationMethodTypes || [
1327
+ exports.VerificationMethodType.Sms,
1328
+ exports.VerificationMethodType.Email,
1329
+ exports.VerificationMethodType.App
1330
+ ];
1331
+ this._twoFactorManageService.registerVerificationMethodsFetch(this.verificationMethodsFetch);
1332
+ this._twoFactorManageService.registerVerificationMethodDelete(this.verificationMethodDelete);
1333
+ this._twoFactorManageService.registerVerificationMethodCreate(this.verificationMethodCreate);
1334
+ this._twoFactorManageService.registerVerificationMethodVerify(this.verificationMethodVerify);
1335
+ this._twoFactorManageService.registerVerificationMethodResend(this.verificationMethodResend);
1336
+ this._twoFactorManageService.registerVerificationMethodDefault(this.verificationMethodDefault);
1337
+ this._twoFactorManageService.registerAccountVerify(this.accountVerify);
1338
+ this._twoFactorManageService.verificationMethods$
1339
+ .subscribe(function (verificationMethods) {
1340
+ var types = {
1341
+ sms: 'Text Message',
1342
+ email: 'Email',
1343
+ app: 'Authenticator App',
1344
+ };
1345
+ _this.statuses = Object.keys(verificationMethods.reduce(function (accum, verificationMethod) {
1346
+ accum[verificationMethod.type] = true;
1347
+ return accum;
1348
+ }, {}))
1349
+ .map(function (type) {
1350
+ return types[type];
1351
+ });
1352
+ _this._cdRef.markForCheck();
1353
+ });
1354
+ this._twoFactorManageService.verificationMethodsFetch();
1355
+ };
1356
+ Fs2faManageComponent.prototype.manage = function () {
1357
+ var _this = this;
1358
+ var dialogRef = this._dialog.open(ManageMethodsComponent, {
1359
+ autoFocus: false,
1360
+ data: {
1361
+ defaultCountry: this.defaultCountry,
1362
+ twoFactorManageService: this._twoFactorManageService,
1363
+ verificationMethodTypes: this.verificationMethodTypes,
1364
+ },
1365
+ });
1366
+ dialogRef.afterClosed()
1367
+ .pipe(operators.takeUntil(this._destroy$))
1368
+ .subscribe(function () {
1369
+ _this._cdRef.markForCheck();
1370
+ });
1371
+ };
1372
+ Fs2faManageComponent.prototype.reload = function () {
1373
+ this._twoFactorManageService.verificationMethodsFetch();
1374
+ };
1375
+ Fs2faManageComponent.prototype.ngOnDestroy = function () {
1376
+ this._destroy$.next();
1377
+ this._destroy$.complete();
1378
+ };
1379
+ return Fs2faManageComponent;
1380
+ }());
1381
+ Fs2faManageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.MatDialog }, { token: TwoFactorManageService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1382
+ Fs2faManageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: Fs2faManageComponent, selector: "fs-2fa-manage", inputs: { accountVerify: "accountVerify", defaultCountry: "defaultCountry", verificationMethodTypes: "verificationMethodTypes", verificationMethodsFetch: "verificationMethodsFetch", verificationMethodDelete: "verificationMethodDelete", verificationMethodCreate: "verificationMethodCreate", verificationMethodDefault: "verificationMethodDefault", verificationMethodVerify: "verificationMethodVerify", verificationMethodResend: "verificationMethodResend" }, providers: [TwoFactorManageService], ngImport: i0__namespace, template: "<fs-label-field>\n <fs-label>Status</fs-label>\n <ng-container *ngIf=\"statuses\">\n <ng-container *ngIf=\"statuses.length === 1\">\n {{statuses[0]}} verification is enabled\n </ng-container>\n\n <ng-container *ngIf=\"statuses.length > 1\">\n {{statuses.join(', ')}} verifications are enabled\n </ng-container>\n\n <ng-container *ngIf=\"statuses.length === 0\">\n No verification methods are enabled\n </ng-container>\n </ng-container>\n</fs-label-field>", styles: [""], components: [{ type: i3__namespace$2.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3__namespace$2.FsLabelComponent, selector: "fs-label" }], directives: [{ type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1383
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, decorators: [{
1384
+ type: i0.Component,
1385
+ args: [{
1386
+ selector: 'fs-2fa-manage',
1387
+ templateUrl: './2fa-manage.component.html',
1388
+ styleUrls: ['./2fa-manage.component.scss'],
1389
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1390
+ providers: [TwoFactorManageService],
1391
+ }]
1392
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: TwoFactorManageService }]; }, propDecorators: { accountVerify: [{
1393
+ type: i0.Input
1394
+ }], defaultCountry: [{
1395
+ type: i0.Input
1396
+ }], verificationMethodTypes: [{
1397
+ type: i0.Input
1398
+ }], verificationMethodsFetch: [{
1399
+ type: i0.Input
1400
+ }], verificationMethodDelete: [{
1401
+ type: i0.Input
1402
+ }], verificationMethodCreate: [{
1403
+ type: i0.Input
1404
+ }], verificationMethodDefault: [{
1405
+ type: i0.Input
1406
+ }], verificationMethodVerify: [{
1407
+ type: i0.Input
1408
+ }], verificationMethodResend: [{
1409
+ type: i0.Input
1409
1410
  }] } });
1410
1411
 
1411
- var DefautledModule = /** @class */ (function () {
1412
- function DefautledModule() {
1413
- }
1414
- return DefautledModule;
1415
- }());
1416
- DefautledModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1417
- DefautledModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, declarations: [DefaultedComponent], exports: [DefaultedComponent] });
1418
- DefautledModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule });
1419
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, decorators: [{
1420
- type: i0.NgModule,
1421
- args: [{
1422
- declarations: [
1423
- DefaultedComponent,
1424
- ],
1425
- exports: [DefaultedComponent],
1426
- }]
1412
+ var DefautledModule = /** @class */ (function () {
1413
+ function DefautledModule() {
1414
+ }
1415
+ return DefautledModule;
1416
+ }());
1417
+ DefautledModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1418
+ DefautledModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, declarations: [DefaultedComponent], exports: [DefaultedComponent] });
1419
+ DefautledModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule });
1420
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, decorators: [{
1421
+ type: i0.NgModule,
1422
+ args: [{
1423
+ declarations: [
1424
+ DefaultedComponent,
1425
+ ],
1426
+ exports: [DefaultedComponent],
1427
+ }]
1427
1428
  }] });
1428
1429
 
1429
- var Fs2faVerificationMethodsModule = /** @class */ (function () {
1430
- function Fs2faVerificationMethodsModule() {
1431
- }
1432
- return Fs2faVerificationMethodsModule;
1433
- }());
1434
- Fs2faVerificationMethodsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1435
- Fs2faVerificationMethodsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, declarations: [VerificationMethodsComponent], imports: [i9$1.CommonModule,
1436
- i8.FormsModule,
1437
- i4.MatIconModule,
1438
- i2$1.FsListModule,
1439
- i8$1.FsPhoneModule,
1440
- i4$1.FsCountryModule,
1441
- DefautledModule], exports: [VerificationMethodsComponent] });
1442
- Fs2faVerificationMethodsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, imports: [[
1443
- i9$1.CommonModule,
1444
- i8.FormsModule,
1445
- i4.MatIconModule,
1446
- i2$1.FsListModule,
1447
- i8$1.FsPhoneModule,
1448
- i4$1.FsCountryModule,
1449
- DefautledModule,
1450
- ]] });
1451
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, decorators: [{
1452
- type: i0.NgModule,
1453
- args: [{
1454
- imports: [
1455
- i9$1.CommonModule,
1456
- i8.FormsModule,
1457
- i4.MatIconModule,
1458
- i2$1.FsListModule,
1459
- i8$1.FsPhoneModule,
1460
- i4$1.FsCountryModule,
1461
- DefautledModule,
1462
- ],
1463
- declarations: [
1464
- VerificationMethodsComponent,
1465
- ],
1466
- exports: [VerificationMethodsComponent],
1467
- }]
1430
+ var Fs2faVerificationMethodsModule = /** @class */ (function () {
1431
+ function Fs2faVerificationMethodsModule() {
1432
+ }
1433
+ return Fs2faVerificationMethodsModule;
1434
+ }());
1435
+ Fs2faVerificationMethodsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1436
+ Fs2faVerificationMethodsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, declarations: [VerificationMethodsComponent], imports: [i9$1.CommonModule,
1437
+ i8.FormsModule,
1438
+ i4.MatIconModule,
1439
+ i2$1.FsListModule,
1440
+ i8$1.FsPhoneModule,
1441
+ i4$1.FsCountryModule,
1442
+ DefautledModule], exports: [VerificationMethodsComponent] });
1443
+ Fs2faVerificationMethodsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, imports: [[
1444
+ i9$1.CommonModule,
1445
+ i8.FormsModule,
1446
+ i4.MatIconModule,
1447
+ i2$1.FsListModule,
1448
+ i8$1.FsPhoneModule,
1449
+ i4$1.FsCountryModule,
1450
+ DefautledModule,
1451
+ ]] });
1452
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, decorators: [{
1453
+ type: i0.NgModule,
1454
+ args: [{
1455
+ imports: [
1456
+ i9$1.CommonModule,
1457
+ i8.FormsModule,
1458
+ i4.MatIconModule,
1459
+ i2$1.FsListModule,
1460
+ i8$1.FsPhoneModule,
1461
+ i4$1.FsCountryModule,
1462
+ DefautledModule,
1463
+ ],
1464
+ declarations: [
1465
+ VerificationMethodsComponent,
1466
+ ],
1467
+ exports: [VerificationMethodsComponent],
1468
+ }]
1468
1469
  }] });
1469
1470
 
1470
- var Fs2faManageModule = /** @class */ (function () {
1471
- function Fs2faManageModule() {
1472
- }
1473
- return Fs2faManageModule;
1474
- }());
1475
- Fs2faManageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1476
- Fs2faManageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, declarations: [Fs2faManageComponent,
1477
- ManageMethodsComponent,
1478
- NumbersComponent,
1479
- AppComponent,
1480
- EmailComponent,
1481
- NumberComponent,
1482
- EmailsComponent,
1483
- QrCodeComponent], imports: [i9$1.CommonModule,
1484
- i8.FormsModule,
1485
- i6.MatButtonModule,
1486
- i1.MatDialogModule,
1487
- i11.MatInputModule,
1488
- i4.MatIconModule,
1489
- i6$1.MatCheckboxModule,
1490
- i3.FsDialogModule,
1491
- i2$1.FsListModule,
1492
- i9.FsFormModule,
1493
- i3$2.FsLabelModule,
1494
- i8$1.FsPhoneModule,
1495
- i11$1.FsSkeletonModule,
1496
- i4$1.FsCountryModule,
1497
- CodeInputModule,
1498
- ResendModule,
1499
- DefautledModule,
1500
- Fs2faVerificationModule,
1501
- Fs2faVerificationMethodsModule], exports: [Fs2faManageComponent] });
1502
- Fs2faManageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, imports: [[
1503
- i9$1.CommonModule,
1504
- i8.FormsModule,
1505
- i6.MatButtonModule,
1506
- i1.MatDialogModule,
1507
- i11.MatInputModule,
1508
- i4.MatIconModule,
1509
- i6$1.MatCheckboxModule,
1510
- i3.FsDialogModule,
1511
- i2$1.FsListModule,
1512
- i9.FsFormModule,
1513
- i3$2.FsLabelModule,
1514
- i8$1.FsPhoneModule,
1515
- i11$1.FsSkeletonModule,
1516
- i4$1.FsCountryModule,
1517
- CodeInputModule,
1518
- ResendModule,
1519
- DefautledModule,
1520
- Fs2faVerificationModule,
1521
- Fs2faVerificationMethodsModule,
1522
- ]] });
1523
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, decorators: [{
1524
- type: i0.NgModule,
1525
- args: [{
1526
- imports: [
1527
- i9$1.CommonModule,
1528
- i8.FormsModule,
1529
- i6.MatButtonModule,
1530
- i1.MatDialogModule,
1531
- i11.MatInputModule,
1532
- i4.MatIconModule,
1533
- i6$1.MatCheckboxModule,
1534
- i3.FsDialogModule,
1535
- i2$1.FsListModule,
1536
- i9.FsFormModule,
1537
- i3$2.FsLabelModule,
1538
- i8$1.FsPhoneModule,
1539
- i11$1.FsSkeletonModule,
1540
- i4$1.FsCountryModule,
1541
- CodeInputModule,
1542
- ResendModule,
1543
- DefautledModule,
1544
- Fs2faVerificationModule,
1545
- Fs2faVerificationMethodsModule,
1546
- ],
1547
- declarations: [
1548
- Fs2faManageComponent,
1549
- ManageMethodsComponent,
1550
- NumbersComponent,
1551
- AppComponent,
1552
- EmailComponent,
1553
- NumberComponent,
1554
- EmailsComponent,
1555
- QrCodeComponent,
1556
- ],
1557
- exports: [Fs2faManageComponent],
1558
- }]
1471
+ var Fs2faManageModule = /** @class */ (function () {
1472
+ function Fs2faManageModule() {
1473
+ }
1474
+ return Fs2faManageModule;
1475
+ }());
1476
+ Fs2faManageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1477
+ Fs2faManageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, declarations: [Fs2faManageComponent,
1478
+ ManageMethodsComponent,
1479
+ NumbersComponent,
1480
+ AppComponent,
1481
+ EmailComponent,
1482
+ NumberComponent,
1483
+ EmailsComponent,
1484
+ QrCodeComponent], imports: [i9$1.CommonModule,
1485
+ i8.FormsModule,
1486
+ i6.MatButtonModule,
1487
+ i1.MatDialogModule,
1488
+ i11.MatInputModule,
1489
+ i4.MatIconModule,
1490
+ i6$1.MatCheckboxModule,
1491
+ i3.FsDialogModule,
1492
+ i2$1.FsListModule,
1493
+ i9.FsFormModule,
1494
+ i3$2.FsLabelModule,
1495
+ i8$1.FsPhoneModule,
1496
+ i11$1.FsSkeletonModule,
1497
+ i4$1.FsCountryModule,
1498
+ CodeInputModule,
1499
+ ResendModule,
1500
+ DefautledModule,
1501
+ Fs2faVerificationModule,
1502
+ Fs2faVerificationMethodsModule], exports: [Fs2faManageComponent] });
1503
+ Fs2faManageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, imports: [[
1504
+ i9$1.CommonModule,
1505
+ i8.FormsModule,
1506
+ i6.MatButtonModule,
1507
+ i1.MatDialogModule,
1508
+ i11.MatInputModule,
1509
+ i4.MatIconModule,
1510
+ i6$1.MatCheckboxModule,
1511
+ i3.FsDialogModule,
1512
+ i2$1.FsListModule,
1513
+ i9.FsFormModule,
1514
+ i3$2.FsLabelModule,
1515
+ i8$1.FsPhoneModule,
1516
+ i11$1.FsSkeletonModule,
1517
+ i4$1.FsCountryModule,
1518
+ CodeInputModule,
1519
+ ResendModule,
1520
+ DefautledModule,
1521
+ Fs2faVerificationModule,
1522
+ Fs2faVerificationMethodsModule,
1523
+ ]] });
1524
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, decorators: [{
1525
+ type: i0.NgModule,
1526
+ args: [{
1527
+ imports: [
1528
+ i9$1.CommonModule,
1529
+ i8.FormsModule,
1530
+ i6.MatButtonModule,
1531
+ i1.MatDialogModule,
1532
+ i11.MatInputModule,
1533
+ i4.MatIconModule,
1534
+ i6$1.MatCheckboxModule,
1535
+ i3.FsDialogModule,
1536
+ i2$1.FsListModule,
1537
+ i9.FsFormModule,
1538
+ i3$2.FsLabelModule,
1539
+ i8$1.FsPhoneModule,
1540
+ i11$1.FsSkeletonModule,
1541
+ i4$1.FsCountryModule,
1542
+ CodeInputModule,
1543
+ ResendModule,
1544
+ DefautledModule,
1545
+ Fs2faVerificationModule,
1546
+ Fs2faVerificationMethodsModule,
1547
+ ],
1548
+ declarations: [
1549
+ Fs2faManageComponent,
1550
+ ManageMethodsComponent,
1551
+ NumbersComponent,
1552
+ AppComponent,
1553
+ EmailComponent,
1554
+ NumberComponent,
1555
+ EmailsComponent,
1556
+ QrCodeComponent,
1557
+ ],
1558
+ exports: [Fs2faManageComponent],
1559
+ }]
1559
1560
  }] });
1560
1561
 
1561
- /**
1562
- * Generated bundle index. Do not edit.
1562
+ /**
1563
+ * Generated bundle index. Do not edit.
1563
1564
  */
1564
1565
 
1565
1566
  exports.Fs2faManageComponent = Fs2faManageComponent;