@firestitch/2fa 12.9.4 → 12.9.6

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 (91) 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 +8 -8
  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/fs-2f-manage.module.d.ts +33 -33
  27. package/app/modules/manage/services/index.d.ts +1 -1
  28. package/app/modules/manage/services/two-factor-manage.service.d.ts +52 -52
  29. package/app/modules/resend/components/resend/index.d.ts +1 -1
  30. package/app/modules/resend/components/resend/resend.component.d.ts +14 -14
  31. package/app/modules/resend/resend.module.d.ts +9 -9
  32. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +38 -37
  33. package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +20 -20
  34. package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +22 -22
  35. package/app/modules/verification/directives/2fa-verification-resend.directive.d.ts +11 -11
  36. package/app/modules/verification/directives/index.d.ts +1 -1
  37. package/app/modules/verification/fs-2fa-verification.module.d.ts +25 -25
  38. package/app/modules/verification-methods/components/verification-methods/index.d.ts +1 -1
  39. package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +26 -26
  40. package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -14
  41. package/app/modules/verification-methods/index.d.ts +1 -1
  42. package/bundles/firestitch-2fa.umd.js +1434 -1431
  43. package/bundles/firestitch-2fa.umd.js.map +1 -1
  44. package/esm2015/app/enums/index.js +1 -1
  45. package/esm2015/app/enums/verification-method-type.enum.js +6 -6
  46. package/esm2015/app/interfaces/index.js +1 -1
  47. package/esm2015/app/interfaces/verification-method.interface.js +1 -1
  48. package/esm2015/app/modules/code-input/code-input.module.js +25 -25
  49. package/esm2015/app/modules/code-input/components/code-input/code-input.component.js +35 -35
  50. package/esm2015/app/modules/code-input/components/code-input/index.js +1 -1
  51. package/esm2015/app/modules/code-input/index.js +1 -1
  52. package/esm2015/app/modules/defaulted/components/defaulted/defaulted.component.js +15 -15
  53. package/esm2015/app/modules/defaulted/components/defaulted/index.js +1 -1
  54. package/esm2015/app/modules/defaulted/defaulted.module.js +17 -17
  55. package/esm2015/app/modules/manage/components/2fa-manage/2fa-manage.component.js +103 -103
  56. package/esm2015/app/modules/manage/components/2fa-manage/index.js +1 -1
  57. package/esm2015/app/modules/manage/components/app/app.component.js +83 -83
  58. package/esm2015/app/modules/manage/components/app/index.js +1 -1
  59. package/esm2015/app/modules/manage/components/email/email.component.js +82 -82
  60. package/esm2015/app/modules/manage/components/email/index.js +1 -1
  61. package/esm2015/app/modules/manage/components/emails/emails.component.js +49 -49
  62. package/esm2015/app/modules/manage/components/emails/index.js +1 -1
  63. package/esm2015/app/modules/manage/components/manage-methods/index.js +1 -1
  64. package/esm2015/app/modules/manage/components/manage-methods/manage-methods.component.js +127 -127
  65. package/esm2015/app/modules/manage/components/number/index.js +1 -1
  66. package/esm2015/app/modules/manage/components/number/number.component.js +86 -86
  67. package/esm2015/app/modules/manage/components/numbers/index.js +1 -1
  68. package/esm2015/app/modules/manage/components/numbers/numbers.component.js +50 -50
  69. package/esm2015/app/modules/manage/fs-2f-manage.module.js +117 -117
  70. package/esm2015/app/modules/manage/services/index.js +1 -1
  71. package/esm2015/app/modules/manage/services/two-factor-manage.service.js +160 -160
  72. package/esm2015/app/modules/resend/components/resend/index.js +1 -1
  73. package/esm2015/app/modules/resend/components/resend/resend.component.js +39 -39
  74. package/esm2015/app/modules/resend/resend.module.js +29 -29
  75. package/esm2015/app/modules/verification/components/2fa-verification/2fa-verification.component.js +128 -124
  76. package/esm2015/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.js +60 -60
  77. package/esm2015/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.js +62 -62
  78. package/esm2015/app/modules/verification/directives/2fa-verification-resend.directive.js +31 -31
  79. package/esm2015/app/modules/verification/directives/index.js +1 -1
  80. package/esm2015/app/modules/verification/fs-2fa-verification.module.js +96 -96
  81. package/esm2015/app/modules/verification-methods/components/verification-methods/index.js +1 -1
  82. package/esm2015/app/modules/verification-methods/components/verification-methods/verification-methods.component.js +121 -121
  83. package/esm2015/app/modules/verification-methods/fs-2f-verification-methods.module.js +47 -47
  84. package/esm2015/app/modules/verification-methods/index.js +1 -1
  85. package/esm2015/firestitch-2fa.js +4 -4
  86. package/esm2015/public_api.js +8 -8
  87. package/fesm2015/firestitch-2fa.js +1283 -1280
  88. package/fesm2015/firestitch-2fa.js.map +1 -1
  89. package/firestitch-2fa.d.ts +5 -5
  90. package/package.json +1 -1
  91. package/public_api.d.ts +9 -9
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/icon'), require('@angular/material/radio'), require('@angular/material/button'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@firestitch/form'), require('@firestitch/skeleton'), require('@firestitch/radiogroup'), require('@firestitch/dialog'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('angular-code-input'), require('@firestitch/message'), require('@angular/material/progress-spinner'), require('@firestitch/phone'), require('@firestitch/list'), require('@firestitch/label'), require('@firestitch/country'), require('ng-qrcode'), require('@firestitch/prompt')) :
3
- typeof define === 'function' && define.amd ? define('@firestitch/2fa', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/icon', '@angular/material/radio', '@angular/material/button', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@firestitch/form', '@firestitch/skeleton', '@firestitch/radiogroup', '@firestitch/dialog', 'rxjs', 'rxjs/operators', '@angular/material/dialog', 'angular-code-input', '@firestitch/message', '@angular/material/progress-spinner', '@firestitch/phone', '@firestitch/list', '@firestitch/label', '@firestitch/country', 'ng-qrcode', '@firestitch/prompt'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch["2fa"] = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.icon, global.ng.material.radio, global.ng.material.button, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.i9, global.i11$1, global.i3$1, global.i3, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.i1$1, global.i2, global.ng.material.progressSpinner, global.i6$2, global.i2$1, global.i3$2, global.i4$2, global.i4$1, global.i1$3));
5
- })(this, (function (exports, i0, i8, i9$1, i4, i5, i6, i5$1, i11, i6$1, i9, i11$1, i3$1, i3, rxjs, operators, i1, i1$1, i2, i1$2, i6$2, i2$1, i3$2, i4$2, i4$1, i1$3) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@angular/common'), require('@angular/material/icon'), require('@angular/material/radio'), require('@angular/material/button'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@firestitch/form'), require('@firestitch/skeleton'), require('@firestitch/radiogroup'), require('@firestitch/dialog'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('angular-code-input'), require('@firestitch/message'), require('@firestitch/phone'), require('@angular/material/progress-spinner'), require('@firestitch/list'), require('@firestitch/label'), require('@firestitch/country'), require('ng-qrcode'), require('@firestitch/prompt')) :
3
+ typeof define === 'function' && define.amd ? define('@firestitch/2fa', ['exports', '@angular/core', '@angular/forms', '@angular/common', '@angular/material/icon', '@angular/material/radio', '@angular/material/button', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@firestitch/form', '@firestitch/skeleton', '@firestitch/radiogroup', '@firestitch/dialog', 'rxjs', 'rxjs/operators', '@angular/material/dialog', 'angular-code-input', '@firestitch/message', '@firestitch/phone', '@angular/material/progress-spinner', '@firestitch/list', '@firestitch/label', '@firestitch/country', 'ng-qrcode', '@firestitch/prompt'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch["2fa"] = {}), global.ng.core, global.ng.forms, global.ng.common, global.ng.material.icon, global.ng.material.radio, global.ng.material.button, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.i9, global.i11$1, global.i3$1, global.i3, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.i1$1, global.i2, global.i8$1, global.ng.material.progressSpinner, global.i2$1, global.i3$2, global.i4$2, global.i4$1, global.i1$3));
5
+ })(this, (function (exports, i0, i8, i9$1, i4, i5, i6, i5$1, i11, i6$1, i9, i11$1, i3$1, i3, rxjs, operators, i1, i1$1, i2, i8$1, i1$2, i2$1, i3$2, i4$2, i4$1, i1$3) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -38,1486 +38,1489 @@
38
38
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
39
39
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
40
40
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
41
+ var i8__namespace$1 = /*#__PURE__*/_interopNamespace(i8$1);
41
42
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
42
- var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
43
43
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
44
44
  var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
45
45
  var i4__namespace$2 = /*#__PURE__*/_interopNamespace(i4$2);
46
46
  var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
47
47
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
48
48
 
49
- exports.VerificationMethodType = void 0;
50
- (function (VerificationMethodType) {
51
- VerificationMethodType["Sms"] = "sms";
52
- VerificationMethodType["Email"] = "email";
53
- VerificationMethodType["App"] = "app";
49
+ exports.VerificationMethodType = void 0;
50
+ (function (VerificationMethodType) {
51
+ VerificationMethodType["Sms"] = "sms";
52
+ VerificationMethodType["Email"] = "email";
53
+ VerificationMethodType["App"] = "app";
54
54
  })(exports.VerificationMethodType || (exports.VerificationMethodType = {}));
55
55
 
56
- var Fs2faVerificationMethodsComponent = /** @class */ (function () {
57
- function Fs2faVerificationMethodsComponent(_dialogData, _dialogRef) {
58
- var _this = this;
59
- this._dialogData = _dialogData;
60
- this._dialogRef = _dialogRef;
61
- this.verificationMethodType = exports.VerificationMethodType;
62
- this.setVerificationMethod = function () {
63
- return _this._selectVerificationMethod(_this.verificationMethod)
64
- .pipe(operators.tap(function (method) {
65
- _this._dialogRef.close(method);
66
- }));
67
- };
68
- this._selectVerificationMethod = _dialogData.selectVerificationMethod;
69
- this._setActiveMethod();
70
- this._initMethods(_dialogData.verificationMethods);
71
- }
72
- Fs2faVerificationMethodsComponent.prototype.compareWith = function (o1, o2) {
73
- return o1 && o2 && o1.id === o2.id;
74
- };
75
- Fs2faVerificationMethodsComponent.prototype._setActiveMethod = function () {
76
- var _a;
77
- this.verificationMethod = (_a = this._dialogData) === null || _a === void 0 ? void 0 : _a.verificationMethod;
78
- };
79
- Fs2faVerificationMethodsComponent.prototype._initMethods = function (verificationMethods) {
80
- this.verificationMethods = verificationMethods
81
- .reduce(function (acc, method) {
82
- if (!acc[method.type]) {
83
- acc[method.type] = [];
84
- }
85
- acc[method.type].push(method);
86
- return acc;
87
- }, {});
88
- };
89
- return Fs2faVerificationMethodsComponent;
90
- }());
91
- 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 });
92
- 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 });
93
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, decorators: [{
94
- type: i0.Component,
95
- args: [{
96
- templateUrl: './2fa-verification-methods.component.html',
97
- styleUrls: [
98
- './2fa-verification-methods.component.scss',
99
- ],
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 }];
56
+ var Fs2faVerificationMethodsComponent = /** @class */ (function () {
57
+ function Fs2faVerificationMethodsComponent(_dialogData, _dialogRef) {
58
+ var _this = this;
59
+ this._dialogData = _dialogData;
60
+ this._dialogRef = _dialogRef;
61
+ this.verificationMethodType = exports.VerificationMethodType;
62
+ this.setVerificationMethod = function () {
63
+ return _this._selectVerificationMethod(_this.verificationMethod)
64
+ .pipe(operators.tap(function (method) {
65
+ _this._dialogRef.close(method);
66
+ }));
67
+ };
68
+ this._selectVerificationMethod = _dialogData.selectVerificationMethod;
69
+ this._setActiveMethod();
70
+ this._initMethods(_dialogData.verificationMethods);
71
+ }
72
+ Fs2faVerificationMethodsComponent.prototype.compareWith = function (o1, o2) {
73
+ return o1 && o2 && o1.id === o2.id;
74
+ };
75
+ Fs2faVerificationMethodsComponent.prototype._setActiveMethod = function () {
76
+ var _a;
77
+ this.verificationMethod = (_a = this._dialogData) === null || _a === void 0 ? void 0 : _a.verificationMethod;
78
+ };
79
+ Fs2faVerificationMethodsComponent.prototype._initMethods = function (verificationMethods) {
80
+ this.verificationMethods = verificationMethods
81
+ .reduce(function (acc, method) {
82
+ if (!acc[method.type]) {
83
+ acc[method.type] = [];
84
+ }
85
+ acc[method.type].push(method);
86
+ return acc;
87
+ }, {});
88
+ };
89
+ return Fs2faVerificationMethodsComponent;
90
+ }());
91
+ 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 });
92
+ 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 });
93
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsComponent, decorators: [{
94
+ type: i0.Component,
95
+ args: [{
96
+ templateUrl: './2fa-verification-methods.component.html',
97
+ styleUrls: [
98
+ './2fa-verification-methods.component.scss',
99
+ ],
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.angularCodeInputComponent.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: "angularCodeInputComponent", first: true, predicate: i1$1.CodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<code-input\n [initialFocusField]=\"0\"\n [codeLength]=\"6\"\n [code]=\"code\"\n [isPrevFocusableAfterClearing]=\"false\"\n (codeCompleted)=\"codeCompleted.emit($event)\"\n (codeChanged)=\"codeChanged.emit($event)\">\n</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.CodeInputComponent, selector: "code-input", inputs: ["isNonDigitsCode", "codeLength", "inputType", "initialFocusField", "isCharsCode", "isCodeHidden", "isPrevFocusableAfterClearing", "isFocusingOnLastByClickIfFilled", "code", "disabled", "autocapitalize"], outputs: ["codeChanged", "codeCompleted"] }], 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: { angularCodeInputComponent: [{
130
- type: i0.ViewChild,
131
- args: [i1$1.CodeInputComponent]
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.angularCodeInputComponent.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: "angularCodeInputComponent", first: true, predicate: i1$1.CodeInputComponent, descendants: true }], ngImport: i0__namespace, template: "<code-input\n [initialFocusField]=\"0\"\n [codeLength]=\"6\"\n [code]=\"code\"\n [isPrevFocusableAfterClearing]=\"false\"\n (codeCompleted)=\"codeCompleted.emit($event)\"\n (codeChanged)=\"codeChanged.emit($event)\">\n</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.CodeInputComponent, selector: "code-input", inputs: ["isNonDigitsCode", "codeLength", "inputType", "initialFocusField", "isCharsCode", "isCodeHidden", "isPrevFocusableAfterClearing", "isFocusingOnLastByClickIfFilled", "code", "disabled", "autocapitalize"], outputs: ["codeChanged", "codeCompleted"] }], 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: { angularCodeInputComponent: [{
130
+ type: i0.ViewChild,
131
+ args: [i1$1.CodeInputComponent]
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.verified = new i0.EventEmitter();
203
- this.codeChanged = new i0.EventEmitter();
204
- this.codeCompleted = new i0.EventEmitter();
205
- this.trustDeviceChange = new i0.EventEmitter();
206
- this.code = '';
207
- this.VerificationMethodType = exports.VerificationMethodType;
208
- this._destroy$ = new rxjs.Subject();
209
- }
210
- Object.defineProperty(Fs2faVerificationComponent.prototype, "recipient", {
211
- get: function () {
212
- if (this.verificationMethod.type === exports.VerificationMethodType.Email) {
213
- return this.verificationMethod.email;
214
- }
215
- if (this.verificationMethod.type === exports.VerificationMethodType.Sms) {
216
- return this.verificationMethod.phoneNumber;
217
- }
218
- },
219
- enumerable: false,
220
- configurable: true
221
- });
222
- Fs2faVerificationComponent.prototype.ngOnInit = function () {
223
- var _this = this;
224
- this.codeChanged
225
- .pipe(operators.takeUntil(this._destroy$))
226
- .subscribe(function (code) {
227
- _this.code = code;
228
- });
229
- };
230
- Fs2faVerificationComponent.prototype.ngOnDestroy = function () {
231
- this._destroy$.next();
232
- this._destroy$.complete();
233
- };
234
- Fs2faVerificationComponent.prototype.ngAfterViewInit = function () {
235
- this.verificationCodeComponent.focus();
236
- };
237
- Fs2faVerificationComponent.prototype.resendCode = function () {
238
- var _this = this;
239
- return this.resend()
240
- .pipe(operators.tap(function () {
241
- _this.code = '';
242
- _this._message.success('Resent Code');
243
- }), operators.finalize(function () {
244
- _this.verificationCodeComponent.focus();
245
- }));
246
- };
247
- Fs2faVerificationComponent.prototype.showVerificationMethods = function () {
248
- var _this = this;
249
- this.getVerificationMethods()
250
- .subscribe(function (verificationMethods) {
251
- _this._dialog.open(Fs2faVerificationMethodsComponent, {
252
- data: {
253
- verificationMethod: _this.verificationMethod,
254
- verificationMethods: verificationMethods,
255
- selectVerificationMethod: _this.selectVerificationMethod,
256
- }
257
- })
258
- .afterClosed()
259
- .pipe(operators.filter(function (verificationMethod) { return !!verificationMethod; }))
260
- .subscribe(function (verificationMethod) {
261
- _this.verificationMethod = verificationMethod;
262
- _this.code = '';
263
- _this._cdRef.markForCheck();
264
- setTimeout(function () {
265
- _this.verificationCodeComponent.focus();
266
- });
267
- });
268
- });
269
- };
270
- return Fs2faVerificationComponent;
271
- }());
272
- 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 });
273
- 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", 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]=\"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.</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])" }], viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
274
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationComponent, decorators: [{
275
- type: i0.Component,
276
- args: [{
277
- selector: 'fs-2fa-verification',
278
- templateUrl: './2fa-verification.component.html',
279
- styleUrls: ['./2fa-verification.component.scss'],
280
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
281
- viewProviders: [{ provide: i8.ControlContainer, useExisting: i8.NgForm }],
282
- }]
283
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.FsDialog }, { type: i2__namespace.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
284
- type: i0.ViewChild,
285
- args: [Fs2faVerificationCodeComponent]
286
- }], verificationMethod: [{
287
- type: i0.Input
288
- }], resend: [{
289
- type: i0.Input
290
- }], showTrustedDevice: [{
291
- type: i0.Input
292
- }], trustDevice: [{
293
- type: i0.Input
294
- }], trustDays: [{
295
- type: i0.Input
296
- }], getVerificationMethods: [{
297
- type: i0.Input
298
- }], selectVerificationMethod: [{
299
- type: i0.Input
300
- }], verified: [{
301
- type: i0.Output
302
- }], codeChanged: [{
303
- type: i0.Output
304
- }], codeCompleted: [{
305
- type: i0.Output
306
- }], trustDeviceChange: [{
307
- 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 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.</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
308
311
  }] } });
309
312
 
310
- var CodeInputModule = /** @class */ (function () {
311
- function CodeInputModule() {
312
- }
313
- return CodeInputModule;
314
- }());
315
- CodeInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
316
- CodeInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, declarations: [CodeInputComponent], imports: [i1$1.CodeInputModule], exports: [CodeInputComponent] });
317
- CodeInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, imports: [[
318
- i1$1.CodeInputModule,
319
- ]] });
320
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, decorators: [{
321
- type: i0.NgModule,
322
- args: [{
323
- imports: [
324
- i1$1.CodeInputModule,
325
- ],
326
- declarations: [
327
- CodeInputComponent,
328
- ],
329
- exports: [
330
- CodeInputComponent,
331
- ],
332
- }]
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: [i1$1.CodeInputModule], exports: [CodeInputComponent] });
320
+ CodeInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, imports: [[
321
+ i1$1.CodeInputModule,
322
+ ]] });
323
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CodeInputModule, decorators: [{
324
+ type: i0.NgModule,
325
+ args: [{
326
+ imports: [
327
+ i1$1.CodeInputModule,
328
+ ],
329
+ declarations: [
330
+ CodeInputComponent,
331
+ ],
332
+ exports: [
333
+ CodeInputComponent,
334
+ ],
335
+ }]
333
336
  }] });
334
337
 
335
- var ResendComponent = /** @class */ (function () {
336
- function ResendComponent(_cdRef) {
337
- this._cdRef = _cdRef;
338
- this.resendInProgress = false;
339
- this._destroy$ = new rxjs.Subject();
340
- }
341
- ResendComponent.prototype.resendClick = function () {
342
- var _this = this;
343
- this.resendInProgress = true;
344
- this.resend()
345
- .pipe(operators.finalize(function () {
346
- _this.resendInProgress = false;
347
- _this._cdRef.markForCheck();
348
- }), operators.takeUntil(this._destroy$))
349
- .subscribe();
350
- };
351
- ResendComponent.prototype.ngOnDestroy = function () {
352
- this._destroy$.next();
353
- this._destroy$.complete();
354
- };
355
- return ResendComponent;
356
- }());
357
- 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 });
358
- 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 });
359
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, decorators: [{
360
- type: i0.Component,
361
- args: [{
362
- selector: 'app-resend',
363
- templateUrl: './resend.component.html',
364
- styleUrls: ['./resend.component.scss'],
365
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
366
- }]
367
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { resend: [{
368
- type: i0.Input
338
+ var ResendComponent = /** @class */ (function () {
339
+ function ResendComponent(_cdRef) {
340
+ this._cdRef = _cdRef;
341
+ this.resendInProgress = false;
342
+ this._destroy$ = new rxjs.Subject();
343
+ }
344
+ ResendComponent.prototype.resendClick = function () {
345
+ var _this = this;
346
+ this.resendInProgress = true;
347
+ this.resend()
348
+ .pipe(operators.finalize(function () {
349
+ _this.resendInProgress = false;
350
+ _this._cdRef.markForCheck();
351
+ }), operators.takeUntil(this._destroy$))
352
+ .subscribe();
353
+ };
354
+ ResendComponent.prototype.ngOnDestroy = function () {
355
+ this._destroy$.next();
356
+ this._destroy$.complete();
357
+ };
358
+ return ResendComponent;
359
+ }());
360
+ 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 });
361
+ 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 });
362
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendComponent, decorators: [{
363
+ type: i0.Component,
364
+ args: [{
365
+ selector: 'app-resend',
366
+ templateUrl: './resend.component.html',
367
+ styleUrls: ['./resend.component.scss'],
368
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
369
+ }]
370
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { resend: [{
371
+ type: i0.Input
369
372
  }] } });
370
373
 
371
- var ResendModule = /** @class */ (function () {
372
- function ResendModule() {
373
- }
374
- return ResendModule;
375
- }());
376
- ResendModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
377
- ResendModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, declarations: [ResendComponent], imports: [i9$1.CommonModule,
378
- i1$2.MatProgressSpinnerModule], exports: [ResendComponent] });
379
- ResendModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, imports: [[
380
- i9$1.CommonModule,
381
- i1$2.MatProgressSpinnerModule,
382
- ]] });
383
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, decorators: [{
384
- type: i0.NgModule,
385
- args: [{
386
- imports: [
387
- i9$1.CommonModule,
388
- i1$2.MatProgressSpinnerModule,
389
- ],
390
- declarations: [
391
- ResendComponent,
392
- ],
393
- exports: [
394
- ResendComponent,
395
- ],
396
- }]
374
+ var ResendModule = /** @class */ (function () {
375
+ function ResendModule() {
376
+ }
377
+ return ResendModule;
378
+ }());
379
+ ResendModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
380
+ ResendModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, declarations: [ResendComponent], imports: [i9$1.CommonModule,
381
+ i1$2.MatProgressSpinnerModule], exports: [ResendComponent] });
382
+ ResendModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, imports: [[
383
+ i9$1.CommonModule,
384
+ i1$2.MatProgressSpinnerModule,
385
+ ]] });
386
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ResendModule, decorators: [{
387
+ type: i0.NgModule,
388
+ args: [{
389
+ imports: [
390
+ i9$1.CommonModule,
391
+ i1$2.MatProgressSpinnerModule,
392
+ ],
393
+ declarations: [
394
+ ResendComponent,
395
+ ],
396
+ exports: [
397
+ ResendComponent,
398
+ ],
399
+ }]
397
400
  }] });
398
401
 
399
- var Fs2faVerificationResendDirective = /** @class */ (function () {
400
- function Fs2faVerificationResendDirective(_button) {
401
- this._button = _button;
402
- }
403
- Fs2faVerificationResendDirective.prototype.click = function () {
404
- var _this = this;
405
- this._button.disabled = true;
406
- this.verification.resendCode()
407
- .pipe(operators.finalize(function () { return _this._button.disabled = false; }))
408
- .subscribe();
409
- };
410
- return Fs2faVerificationResendDirective;
411
- }());
412
- 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 });
413
- 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 });
414
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, decorators: [{
415
- type: i0.Directive,
416
- args: [{
417
- selector: '[fs2faVerificationResend]',
418
- }]
419
- }], ctorParameters: function () { return [{ type: i6__namespace.MatButton }]; }, propDecorators: { verification: [{
420
- type: i0.Input,
421
- args: ['fs2faVerificationResend']
422
- }], click: [{
423
- type: i0.HostListener,
424
- args: ['click']
402
+ var Fs2faVerificationResendDirective = /** @class */ (function () {
403
+ function Fs2faVerificationResendDirective(_button) {
404
+ this._button = _button;
405
+ }
406
+ Fs2faVerificationResendDirective.prototype.click = function () {
407
+ var _this = this;
408
+ this._button.disabled = true;
409
+ this.verification.resendCode()
410
+ .pipe(operators.finalize(function () { return _this._button.disabled = false; }))
411
+ .subscribe();
412
+ };
413
+ return Fs2faVerificationResendDirective;
414
+ }());
415
+ 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 });
416
+ 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 });
417
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationResendDirective, decorators: [{
418
+ type: i0.Directive,
419
+ args: [{
420
+ selector: '[fs2faVerificationResend]',
421
+ }]
422
+ }], ctorParameters: function () { return [{ type: i6__namespace.MatButton }]; }, propDecorators: { verification: [{
423
+ type: i0.Input,
424
+ args: ['fs2faVerificationResend']
425
+ }], click: [{
426
+ type: i0.HostListener,
427
+ args: ['click']
425
428
  }] } });
426
429
 
427
- var Fs2faVerificationModule = /** @class */ (function () {
428
- function Fs2faVerificationModule() {
429
- }
430
- return Fs2faVerificationModule;
431
- }());
432
- Fs2faVerificationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
433
- Fs2faVerificationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, declarations: [Fs2faVerificationComponent,
434
- Fs2faVerificationCodeComponent,
435
- Fs2faVerificationMethodsComponent,
436
- Fs2faVerificationResendDirective], imports: [i9$1.CommonModule,
437
- i8.FormsModule,
438
- i5$1.MatFormFieldModule,
439
- i11.MatInputModule,
440
- i6.MatButtonModule,
441
- i4.MatIconModule,
442
- i5.MatRadioModule,
443
- i6$1.MatCheckboxModule,
444
- i9.FsFormModule,
445
- i3$1.FsRadioGroupModule,
446
- i3.FsDialogModule,
447
- i11$1.FsSkeletonModule,
448
- i6$2.FsPhoneModule,
449
- i11$1.FsSkeletonModule,
450
- ResendModule,
451
- CodeInputModule], exports: [Fs2faVerificationComponent,
452
- Fs2faVerificationResendDirective] });
453
- Fs2faVerificationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, providers: [], imports: [[
454
- i9$1.CommonModule,
455
- i8.FormsModule,
456
- i5$1.MatFormFieldModule,
457
- i11.MatInputModule,
458
- i6.MatButtonModule,
459
- i4.MatIconModule,
460
- i5.MatRadioModule,
461
- i6$1.MatCheckboxModule,
462
- i9.FsFormModule,
463
- i3$1.FsRadioGroupModule,
464
- i3.FsDialogModule,
465
- i11$1.FsSkeletonModule,
466
- i6$2.FsPhoneModule,
467
- i11$1.FsSkeletonModule,
468
- ResendModule,
469
- CodeInputModule,
470
- ]] });
471
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, decorators: [{
472
- type: i0.NgModule,
473
- args: [{
474
- imports: [
475
- i9$1.CommonModule,
476
- i8.FormsModule,
477
- i5$1.MatFormFieldModule,
478
- i11.MatInputModule,
479
- i6.MatButtonModule,
480
- i4.MatIconModule,
481
- i5.MatRadioModule,
482
- i6$1.MatCheckboxModule,
483
- i9.FsFormModule,
484
- i3$1.FsRadioGroupModule,
485
- i3.FsDialogModule,
486
- i11$1.FsSkeletonModule,
487
- i6$2.FsPhoneModule,
488
- i11$1.FsSkeletonModule,
489
- ResendModule,
490
- CodeInputModule,
491
- ],
492
- declarations: [
493
- Fs2faVerificationComponent,
494
- Fs2faVerificationCodeComponent,
495
- Fs2faVerificationMethodsComponent,
496
- Fs2faVerificationResendDirective,
497
- ],
498
- exports: [
499
- Fs2faVerificationComponent,
500
- Fs2faVerificationResendDirective,
501
- ],
502
- providers: [],
503
- }]
430
+ var Fs2faVerificationModule = /** @class */ (function () {
431
+ function Fs2faVerificationModule() {
432
+ }
433
+ return Fs2faVerificationModule;
434
+ }());
435
+ Fs2faVerificationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
436
+ Fs2faVerificationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, declarations: [Fs2faVerificationComponent,
437
+ Fs2faVerificationCodeComponent,
438
+ Fs2faVerificationMethodsComponent,
439
+ Fs2faVerificationResendDirective], imports: [i9$1.CommonModule,
440
+ i8.FormsModule,
441
+ i5$1.MatFormFieldModule,
442
+ i11.MatInputModule,
443
+ i6.MatButtonModule,
444
+ i4.MatIconModule,
445
+ i5.MatRadioModule,
446
+ i6$1.MatCheckboxModule,
447
+ i9.FsFormModule,
448
+ i3$1.FsRadioGroupModule,
449
+ i3.FsDialogModule,
450
+ i11$1.FsSkeletonModule,
451
+ i8$1.FsPhoneModule,
452
+ i11$1.FsSkeletonModule,
453
+ ResendModule,
454
+ CodeInputModule], exports: [Fs2faVerificationComponent,
455
+ Fs2faVerificationResendDirective] });
456
+ Fs2faVerificationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, providers: [], imports: [[
457
+ i9$1.CommonModule,
458
+ i8.FormsModule,
459
+ i5$1.MatFormFieldModule,
460
+ i11.MatInputModule,
461
+ i6.MatButtonModule,
462
+ i4.MatIconModule,
463
+ i5.MatRadioModule,
464
+ i6$1.MatCheckboxModule,
465
+ i9.FsFormModule,
466
+ i3$1.FsRadioGroupModule,
467
+ i3.FsDialogModule,
468
+ i11$1.FsSkeletonModule,
469
+ i8$1.FsPhoneModule,
470
+ i11$1.FsSkeletonModule,
471
+ ResendModule,
472
+ CodeInputModule,
473
+ ]] });
474
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationModule, decorators: [{
475
+ type: i0.NgModule,
476
+ args: [{
477
+ imports: [
478
+ i9$1.CommonModule,
479
+ i8.FormsModule,
480
+ i5$1.MatFormFieldModule,
481
+ i11.MatInputModule,
482
+ i6.MatButtonModule,
483
+ i4.MatIconModule,
484
+ i5.MatRadioModule,
485
+ i6$1.MatCheckboxModule,
486
+ i9.FsFormModule,
487
+ i3$1.FsRadioGroupModule,
488
+ i3.FsDialogModule,
489
+ i11$1.FsSkeletonModule,
490
+ i8$1.FsPhoneModule,
491
+ i11$1.FsSkeletonModule,
492
+ ResendModule,
493
+ CodeInputModule,
494
+ ],
495
+ declarations: [
496
+ Fs2faVerificationComponent,
497
+ Fs2faVerificationCodeComponent,
498
+ Fs2faVerificationMethodsComponent,
499
+ Fs2faVerificationResendDirective,
500
+ ],
501
+ exports: [
502
+ Fs2faVerificationComponent,
503
+ Fs2faVerificationResendDirective,
504
+ ],
505
+ providers: [],
506
+ }]
504
507
  }] });
505
508
 
506
- var AppComponent = /** @class */ (function () {
507
- function AppComponent(_data, _dialogRef, _cdRef, _message) {
508
- var _this = this;
509
- this._data = _data;
510
- this._dialogRef = _dialogRef;
511
- this._cdRef = _cdRef;
512
- this._message = _message;
513
- this.mode = 'qr-code';
514
- this.trustDevice = true;
515
- this.verify = function () {
516
- return _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
517
- .pipe(operators.tap(function () {
518
- _this._message.success('Created app authenticator verification method');
519
- _this._dialogRef.close(true);
520
- }));
521
- };
522
- }
523
- AppComponent.prototype.ngOnInit = function () {
524
- this.twoFactorManageService = this._data.twoFactorManageService;
525
- this.accountId = this._data.accountId;
526
- this.default = !this.twoFactorManageService.hasVerificationMethods;
527
- };
528
- AppComponent.prototype.appTypeGoogle = function () {
529
- this.appTypeSelect('google');
530
- };
531
- AppComponent.prototype.appTypeAuthy = function () {
532
- this.appTypeSelect('authy');
533
- };
534
- AppComponent.prototype.appTypeSelect = function (appType) {
535
- var _this = this;
536
- this.appType = appType;
537
- this.twoFactorManageService.verificationMethodCreate$({
538
- type: exports.VerificationMethodType.App,
539
- default: this.default,
540
- })
541
- .subscribe(function (response) {
542
- _this.qrCodeUrl = response.qrCodeUrl;
543
- _this._cdRef.markForCheck();
544
- });
545
- };
546
- AppComponent.prototype.codeCompleted = function () {
547
- this.form.triggerSubmit();
548
- };
549
- AppComponent.prototype.codeChanged = function (code) {
550
- this.code = code;
551
- this.form.dirty();
552
- };
553
- AppComponent.prototype.next = function () {
554
- this.mode = 'code-input';
555
- };
556
- return AppComponent;
557
- }());
558
- 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 });
559
- 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 <qr-code \n *fsSkeleton=\"qrCodeUrl\"\n [value]=\"qrCodeUrl\"\n size=\"200\"\n errorCorrectionLevel=\"H\"\n [margin]=\"0\">\n </qr-code> \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=\"trustDevice\" [(ngModel)]=\"trustDevice\" [disableRipple]=\"true\">\n Trust this device\n </mat-checkbox>\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: i4__namespace$1.QrCodeComponent, selector: "qr-code", inputs: ["value", "size", "darkColor", "lightColor", "errorCorrectionLevel", "centerImageSrc", "centerImageSize", "margin"] }, { 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 });
560
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, decorators: [{
561
- type: i0.Component,
562
- args: [{
563
- templateUrl: './app.component.html',
564
- styleUrls: ['./app.component.scss'],
565
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
566
- }]
567
- }], ctorParameters: function () {
568
- return [{ type: undefined, decorators: [{
569
- type: i0.Inject,
570
- args: [i1.MAT_DIALOG_DATA]
571
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
572
- }, propDecorators: { form: [{
573
- type: i0.ViewChild,
574
- args: [i9.FsFormDirective]
509
+ var AppComponent = /** @class */ (function () {
510
+ function AppComponent(_data, _dialogRef, _cdRef, _message) {
511
+ var _this = this;
512
+ this._data = _data;
513
+ this._dialogRef = _dialogRef;
514
+ this._cdRef = _cdRef;
515
+ this._message = _message;
516
+ this.mode = 'qr-code';
517
+ this.trustDevice = true;
518
+ this.verify = function () {
519
+ return _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
520
+ .pipe(operators.tap(function () {
521
+ _this._message.success('Created app authenticator verification method');
522
+ _this._dialogRef.close(true);
523
+ }));
524
+ };
525
+ }
526
+ AppComponent.prototype.ngOnInit = function () {
527
+ this.twoFactorManageService = this._data.twoFactorManageService;
528
+ this.accountId = this._data.accountId;
529
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
530
+ };
531
+ AppComponent.prototype.appTypeGoogle = function () {
532
+ this.appTypeSelect('google');
533
+ };
534
+ AppComponent.prototype.appTypeAuthy = function () {
535
+ this.appTypeSelect('authy');
536
+ };
537
+ AppComponent.prototype.appTypeSelect = function (appType) {
538
+ var _this = this;
539
+ this.appType = appType;
540
+ this.twoFactorManageService.verificationMethodCreate$({
541
+ type: exports.VerificationMethodType.App,
542
+ default: this.default,
543
+ })
544
+ .subscribe(function (response) {
545
+ _this.qrCodeUrl = response.qrCodeUrl;
546
+ _this._cdRef.markForCheck();
547
+ });
548
+ };
549
+ AppComponent.prototype.codeCompleted = function () {
550
+ this.form.triggerSubmit();
551
+ };
552
+ AppComponent.prototype.codeChanged = function (code) {
553
+ this.code = code;
554
+ this.form.dirty();
555
+ };
556
+ AppComponent.prototype.next = function () {
557
+ this.mode = 'code-input';
558
+ };
559
+ return AppComponent;
560
+ }());
561
+ 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 });
562
+ 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 <qr-code \n *fsSkeleton=\"qrCodeUrl\"\n [value]=\"qrCodeUrl\"\n size=\"200\"\n errorCorrectionLevel=\"H\"\n [margin]=\"0\">\n </qr-code> \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=\"trustDevice\" [(ngModel)]=\"trustDevice\" [disableRipple]=\"true\">\n Trust this device\n </mat-checkbox>\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: i4__namespace$1.QrCodeComponent, selector: "qr-code", inputs: ["value", "size", "darkColor", "lightColor", "errorCorrectionLevel", "centerImageSrc", "centerImageSize", "margin"] }, { 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 });
563
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppComponent, decorators: [{
564
+ type: i0.Component,
565
+ args: [{
566
+ templateUrl: './app.component.html',
567
+ styleUrls: ['./app.component.scss'],
568
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
569
+ }]
570
+ }], ctorParameters: function () {
571
+ return [{ type: undefined, decorators: [{
572
+ type: i0.Inject,
573
+ args: [i1.MAT_DIALOG_DATA]
574
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
575
+ }, propDecorators: { form: [{
576
+ type: i0.ViewChild,
577
+ args: [i9.FsFormDirective]
575
578
  }] } });
576
579
 
577
- var EmailComponent = /** @class */ (function () {
578
- function EmailComponent(_data, _dialogRef, _cdRef, _message) {
579
- var _this = this;
580
- this._data = _data;
581
- this._dialogRef = _dialogRef;
582
- this._cdRef = _cdRef;
583
- this._message = _message;
584
- this.verificationMethod = null;
585
- this.trustDevice = true;
586
- this.resend = function () {
587
- return _this.twoFactorManageService.verificationMethodResend()
588
- .pipe(operators.tap(function () {
589
- _this._message.success('Resent verification code');
590
- }));
591
- };
592
- this.submit = function () {
593
- return rxjs.of(true)
594
- .pipe(operators.switchMap(function () {
595
- return _this.verificationMethod ?
596
- _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
597
- .pipe(operators.tap(function (verificationMethod) {
598
- _this._message.success('Created email verification method');
599
- _this._dialogRef.close(verificationMethod);
600
- })) :
601
- _this.twoFactorManageService.verificationMethodCreate$({
602
- type: exports.VerificationMethodType.Email,
603
- email: _this.email,
604
- default: _this.default,
605
- })
606
- .pipe(operators.tap(function (verificationMethod) {
607
- _this.verificationMethod = verificationMethod;
608
- _this.form.clear();
609
- _this._cdRef.markForCheck();
610
- }));
611
- }));
612
- };
613
- this.twoFactorManageService = _data.twoFactorManageService;
614
- this.default = !this.twoFactorManageService.hasVerificationMethods;
615
- }
616
- EmailComponent.prototype.codeCompleted = function () {
617
- if (!this.form.submitting) {
618
- this.form.triggerSubmit();
619
- }
620
- };
621
- EmailComponent.prototype.codeChanged = function (code) {
622
- this.code = code;
623
- };
624
- return EmailComponent;
625
- }());
626
- 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 });
627
- 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", "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 });
628
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, decorators: [{
629
- type: i0.Component,
630
- args: [{
631
- templateUrl: './email.component.html',
632
- styleUrls: ['./email.component.scss'],
633
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
634
- }]
635
- }], ctorParameters: function () {
636
- return [{ type: undefined, decorators: [{
637
- type: i0.Inject,
638
- args: [i1.MAT_DIALOG_DATA]
639
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
640
- }, propDecorators: { form: [{
641
- type: i0.ViewChild,
642
- args: [i9.FsFormDirective, { static: false }]
580
+ var EmailComponent = /** @class */ (function () {
581
+ function EmailComponent(_data, _dialogRef, _cdRef, _message) {
582
+ var _this = this;
583
+ this._data = _data;
584
+ this._dialogRef = _dialogRef;
585
+ this._cdRef = _cdRef;
586
+ this._message = _message;
587
+ this.verificationMethod = null;
588
+ this.trustDevice = true;
589
+ this.resend = function () {
590
+ return _this.twoFactorManageService.verificationMethodResend()
591
+ .pipe(operators.tap(function () {
592
+ _this._message.success('Resent verification code');
593
+ }));
594
+ };
595
+ this.submit = function () {
596
+ return rxjs.of(true)
597
+ .pipe(operators.switchMap(function () {
598
+ return _this.verificationMethod ?
599
+ _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
600
+ .pipe(operators.tap(function (verificationMethod) {
601
+ _this._message.success('Created email verification method');
602
+ _this._dialogRef.close(verificationMethod);
603
+ })) :
604
+ _this.twoFactorManageService.verificationMethodCreate$({
605
+ type: exports.VerificationMethodType.Email,
606
+ email: _this.email,
607
+ default: _this.default,
608
+ })
609
+ .pipe(operators.tap(function (verificationMethod) {
610
+ _this.verificationMethod = verificationMethod;
611
+ _this.form.clear();
612
+ _this._cdRef.markForCheck();
613
+ }));
614
+ }));
615
+ };
616
+ this.twoFactorManageService = _data.twoFactorManageService;
617
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
618
+ }
619
+ EmailComponent.prototype.codeCompleted = function () {
620
+ if (!this.form.submitting) {
621
+ this.form.triggerSubmit();
622
+ }
623
+ };
624
+ EmailComponent.prototype.codeChanged = function (code) {
625
+ this.code = code;
626
+ };
627
+ return EmailComponent;
628
+ }());
629
+ 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 });
630
+ 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 });
631
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailComponent, decorators: [{
632
+ type: i0.Component,
633
+ args: [{
634
+ templateUrl: './email.component.html',
635
+ styleUrls: ['./email.component.scss'],
636
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
637
+ }]
638
+ }], ctorParameters: function () {
639
+ return [{ type: undefined, decorators: [{
640
+ type: i0.Inject,
641
+ args: [i1.MAT_DIALOG_DATA]
642
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
643
+ }, propDecorators: { form: [{
644
+ type: i0.ViewChild,
645
+ args: [i9.FsFormDirective, { static: false }]
643
646
  }] } });
644
647
 
645
- var NumberComponent = /** @class */ (function () {
646
- function NumberComponent(_data, _dialogRef, _cdRef, _message) {
647
- var _this = this;
648
- this._data = _data;
649
- this._dialogRef = _dialogRef;
650
- this._cdRef = _cdRef;
651
- this._message = _message;
652
- this.trustDevice = true;
653
- this.verificationMethod = null;
654
- this.resend = function () {
655
- return _this.twoFactorManageService.verificationMethodResend()
656
- .pipe(operators.tap(function () {
657
- _this._message.success('Resent verification code');
658
- }));
659
- };
660
- this.submit = function () {
661
- return rxjs.of(true)
662
- .pipe(operators.switchMap(function () {
663
- return _this.verificationMethod ?
664
- _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
665
- .pipe(operators.tap(function (verificationMethod) {
666
- _this._message.success('Created text message verification method');
667
- _this._dialogRef.close(verificationMethod);
668
- })) :
669
- _this.twoFactorManageService.verificationMethodCreate$({
670
- type: exports.VerificationMethodType.Sms,
671
- phoneNumber: _this.phone.number,
672
- phoneCode: _this.phone.countryCode,
673
- phoneCountry: _this.phone.isoCode,
674
- default: _this.default,
675
- })
676
- .pipe(operators.tap(function (verificationMethod) {
677
- _this.verificationMethod = verificationMethod;
678
- _this.form.clear();
679
- _this._cdRef.markForCheck();
680
- }));
681
- }));
682
- };
683
- this.twoFactorManageService = _data.twoFactorManageService;
684
- this.defaultCountry = _data.defaultCountry;
685
- this.default = !this.twoFactorManageService.hasVerificationMethods;
686
- }
687
- NumberComponent.prototype.codeCompleted = function () {
688
- if (!this.form.submitting) {
689
- this.form.triggerSubmit();
690
- }
691
- };
692
- NumberComponent.prototype.codeChanged = function (code) {
693
- this.code = code;
694
- };
695
- return NumberComponent;
696
- }());
697
- 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 });
698
- 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 [(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", "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$2.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 });
699
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, decorators: [{
700
- type: i0.Component,
701
- args: [{
702
- templateUrl: './number.component.html',
703
- styleUrls: ['./number.component.scss'],
704
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
705
- }]
706
- }], ctorParameters: function () {
707
- return [{ type: undefined, decorators: [{
708
- type: i0.Inject,
709
- args: [i1.MAT_DIALOG_DATA]
710
- }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
711
- }, propDecorators: { form: [{
712
- type: i0.ViewChild,
713
- args: [i9.FsFormDirective, { static: false }]
648
+ var NumberComponent = /** @class */ (function () {
649
+ function NumberComponent(_data, _dialogRef, _cdRef, _message) {
650
+ var _this = this;
651
+ this._data = _data;
652
+ this._dialogRef = _dialogRef;
653
+ this._cdRef = _cdRef;
654
+ this._message = _message;
655
+ this.trustDevice = true;
656
+ this.verificationMethod = null;
657
+ this.resend = function () {
658
+ return _this.twoFactorManageService.verificationMethodResend()
659
+ .pipe(operators.tap(function () {
660
+ _this._message.success('Resent verification code');
661
+ }));
662
+ };
663
+ this.submit = function () {
664
+ return rxjs.of(true)
665
+ .pipe(operators.switchMap(function () {
666
+ return _this.verificationMethod ?
667
+ _this.twoFactorManageService.verificationMethodVerify$(_this.code, _this.trustDevice)
668
+ .pipe(operators.tap(function (verificationMethod) {
669
+ _this._message.success('Created text message verification method');
670
+ _this._dialogRef.close(verificationMethod);
671
+ })) :
672
+ _this.twoFactorManageService.verificationMethodCreate$({
673
+ type: exports.VerificationMethodType.Sms,
674
+ phoneNumber: _this.phone.number,
675
+ phoneCode: _this.phone.countryCode,
676
+ phoneCountry: _this.phone.isoCode,
677
+ default: _this.default,
678
+ })
679
+ .pipe(operators.tap(function (verificationMethod) {
680
+ _this.verificationMethod = verificationMethod;
681
+ _this.form.clear();
682
+ _this._cdRef.markForCheck();
683
+ }));
684
+ }));
685
+ };
686
+ this.twoFactorManageService = _data.twoFactorManageService;
687
+ this.defaultCountry = _data.defaultCountry;
688
+ this.default = !this.twoFactorManageService.hasVerificationMethods;
689
+ }
690
+ NumberComponent.prototype.codeCompleted = function () {
691
+ if (!this.form.submitting) {
692
+ this.form.triggerSubmit();
693
+ }
694
+ };
695
+ NumberComponent.prototype.codeChanged = function (code) {
696
+ this.code = code;
697
+ };
698
+ return NumberComponent;
699
+ }());
700
+ 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 });
701
+ 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 });
702
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberComponent, decorators: [{
703
+ type: i0.Component,
704
+ args: [{
705
+ templateUrl: './number.component.html',
706
+ styleUrls: ['./number.component.scss'],
707
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
708
+ }]
709
+ }], ctorParameters: function () {
710
+ return [{ type: undefined, decorators: [{
711
+ type: i0.Inject,
712
+ args: [i1.MAT_DIALOG_DATA]
713
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.FsMessage }];
714
+ }, propDecorators: { form: [{
715
+ type: i0.ViewChild,
716
+ args: [i9.FsFormDirective, { static: false }]
714
717
  }] } });
715
718
 
716
- var TwoFactorManageService = /** @class */ (function () {
717
- function TwoFactorManageService(_dialog) {
718
- this._dialog = _dialog;
719
- this._destroy$ = new rxjs.Subject();
720
- this._verificationMethods$ = new rxjs.BehaviorSubject([]);
721
- }
722
- Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods$", {
723
- get: function () {
724
- return this._verificationMethods$
725
- .pipe(operators.takeUntil(this._destroy$));
726
- },
727
- enumerable: false,
728
- configurable: true
729
- });
730
- Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods", {
731
- get: function () {
732
- return this._verificationMethods$.getValue();
733
- },
734
- enumerable: false,
735
- configurable: true
736
- });
737
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethods", {
738
- get: function () {
739
- return !!this._verificationMethods$.getValue().length;
740
- },
741
- enumerable: false,
742
- configurable: true
743
- });
744
- Object.defineProperty(TwoFactorManageService.prototype, "emailVerificationMethods", {
745
- get: function () {
746
- return this.getVerificationMethods(exports.VerificationMethodType.Email);
747
- },
748
- enumerable: false,
749
- configurable: true
750
- });
751
- Object.defineProperty(TwoFactorManageService.prototype, "smsVerificationMethods", {
752
- get: function () {
753
- return this.getVerificationMethods(exports.VerificationMethodType.Sms);
754
- },
755
- enumerable: false,
756
- configurable: true
757
- });
758
- Object.defineProperty(TwoFactorManageService.prototype, "appVerificationMethods", {
759
- get: function () {
760
- return this.getVerificationMethods(exports.VerificationMethodType.App);
761
- },
762
- enumerable: false,
763
- configurable: true
764
- });
765
- TwoFactorManageService.prototype.getVerificationMethods = function (type) {
766
- return this.verificationMethods
767
- .filter(function (verificationMethod) {
768
- return verificationMethod.type === type;
769
- });
770
- };
771
- TwoFactorManageService.prototype.hasVerificationMethod = function (type) {
772
- return this.verificationMethods
773
- .some(function (verificationMethod) {
774
- return verificationMethod.type === type;
775
- });
776
- };
777
- TwoFactorManageService.prototype.registerVerificationMethodDefault = function (value) {
778
- this._verificationMethodDefault = value;
779
- };
780
- TwoFactorManageService.prototype.registerVerificationMethodResend = function (value) {
781
- this._verificationMethodResend = value;
782
- };
783
- TwoFactorManageService.prototype.registerVerificationMethodsFetch = function (value) {
784
- this._verificationMethodsFetch = value;
785
- };
786
- TwoFactorManageService.prototype.registerVerificationMethodDelete = function (value) {
787
- this._verificationMethodDelete = value;
788
- };
789
- TwoFactorManageService.prototype.registerVerificationMethodCreate = function (value) {
790
- this._verificationMethodCreate = value;
791
- };
792
- TwoFactorManageService.prototype.registerVerificationMethodVerify = function (value) {
793
- this._verificationMethodVerify = value;
794
- };
795
- TwoFactorManageService.prototype.registerAccountVerify = function (value) {
796
- this._accountVerify = value;
797
- };
798
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodResend", {
799
- get: function () {
800
- return !!this._verificationMethodResend;
801
- },
802
- enumerable: false,
803
- configurable: true
804
- });
805
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDefault", {
806
- get: function () {
807
- return !!this._verificationMethodDefault;
808
- },
809
- enumerable: false,
810
- configurable: true
811
- });
812
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodsFetch", {
813
- get: function () {
814
- return !!this._verificationMethodsFetch;
815
- },
816
- enumerable: false,
817
- configurable: true
818
- });
819
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDelete", {
820
- get: function () {
821
- return !!this._verificationMethodDelete;
822
- },
823
- enumerable: false,
824
- configurable: true
825
- });
826
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodCreate", {
827
- get: function () {
828
- return !!this._verificationMethodCreate;
829
- },
830
- enumerable: false,
831
- configurable: true
832
- });
833
- Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodVerify", {
834
- get: function () {
835
- return !!this._verificationMethodVerify;
836
- },
837
- enumerable: false,
838
- configurable: true
839
- });
840
- TwoFactorManageService.prototype.verificationMethodDelete$ = function (verificationMethod) {
841
- var _this = this;
842
- return this._verificationMethodDelete(verificationMethod)
843
- .pipe(operators.tap(function () {
844
- _this.verificationMethodsFetch();
845
- }));
846
- };
847
- TwoFactorManageService.prototype.verificationMethodVerify$ = function (code, trustDevice) {
848
- var _this = this;
849
- return this._verificationMethodVerify(code, trustDevice)
850
- .pipe(operators.tap(function () {
851
- _this.verificationMethodsFetch();
852
- }));
853
- };
854
- TwoFactorManageService.prototype.verificationMethodCreate$ = function (verificationMethod) {
855
- return this._verificationMethodCreate(verificationMethod);
856
- };
857
- TwoFactorManageService.prototype.verificationMethodDefault$ = function (verificationMethod) {
858
- return this._verificationMethodDefault(verificationMethod);
859
- };
860
- TwoFactorManageService.prototype.verificationMethodResend = function () {
861
- return this._verificationMethodResend();
862
- };
863
- TwoFactorManageService.prototype.verificationMethodsFetch = function (query) {
864
- this.verificationMethodsFetch$(query)
865
- .subscribe();
866
- };
867
- TwoFactorManageService.prototype.verificationMethodsFetch$ = function (query) {
868
- var _this = this;
869
- return this._verificationMethodsFetch(query)
870
- .pipe(operators.tap(function (verificationMethods) {
871
- _this._verificationMethods$.next(verificationMethods);
872
- }));
873
- };
874
- TwoFactorManageService.prototype.accountVerify$ = function () {
875
- return this._accountVerify ? this._accountVerify() : rxjs.of(true);
876
- };
877
- TwoFactorManageService.prototype.ngOnDestroy = function () {
878
- this._destroy$.next();
879
- this._destroy$.complete();
880
- };
881
- TwoFactorManageService.prototype.addSms$ = function (defaultCountry) {
882
- var _this = this;
883
- return this.accountVerify$()
884
- .pipe(operators.switchMap(function () { return _this._dialog.open(NumberComponent, {
885
- data: {
886
- defaultCountry: defaultCountry,
887
- twoFactorManageService: _this,
888
- },
889
- })
890
- .afterClosed(); }), operators.tap(function () {
891
- _this.verificationMethodsFetch();
892
- }), operators.takeUntil(this._destroy$));
893
- };
894
- TwoFactorManageService.prototype.addEmail$ = function () {
895
- var _this = this;
896
- return this.accountVerify$()
897
- .pipe(operators.switchMap(function () { return _this._dialog.open(EmailComponent, {
898
- data: { twoFactorManageService: _this },
899
- })
900
- .afterClosed(); }), operators.tap(function () {
901
- _this.verificationMethodsFetch();
902
- }), operators.takeUntil(this._destroy$));
903
- };
904
- TwoFactorManageService.prototype.addApp$ = function () {
905
- var _this = this;
906
- return this.accountVerify$()
907
- .pipe(operators.switchMap(function () { return _this._dialog.open(AppComponent, {
908
- data: { twoFactorManageService: _this },
909
- })
910
- .afterClosed(); }), operators.tap(function () {
911
- _this.verificationMethodsFetch();
912
- }), operators.takeUntil(this._destroy$));
913
- };
914
- return TwoFactorManageService;
915
- }());
916
- 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 });
917
- TwoFactorManageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService });
918
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, decorators: [{
919
- type: i0.Injectable
719
+ var TwoFactorManageService = /** @class */ (function () {
720
+ function TwoFactorManageService(_dialog) {
721
+ this._dialog = _dialog;
722
+ this._destroy$ = new rxjs.Subject();
723
+ this._verificationMethods$ = new rxjs.BehaviorSubject([]);
724
+ }
725
+ Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods$", {
726
+ get: function () {
727
+ return this._verificationMethods$
728
+ .pipe(operators.takeUntil(this._destroy$));
729
+ },
730
+ enumerable: false,
731
+ configurable: true
732
+ });
733
+ Object.defineProperty(TwoFactorManageService.prototype, "verificationMethods", {
734
+ get: function () {
735
+ return this._verificationMethods$.getValue();
736
+ },
737
+ enumerable: false,
738
+ configurable: true
739
+ });
740
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethods", {
741
+ get: function () {
742
+ return !!this._verificationMethods$.getValue().length;
743
+ },
744
+ enumerable: false,
745
+ configurable: true
746
+ });
747
+ Object.defineProperty(TwoFactorManageService.prototype, "emailVerificationMethods", {
748
+ get: function () {
749
+ return this.getVerificationMethods(exports.VerificationMethodType.Email);
750
+ },
751
+ enumerable: false,
752
+ configurable: true
753
+ });
754
+ Object.defineProperty(TwoFactorManageService.prototype, "smsVerificationMethods", {
755
+ get: function () {
756
+ return this.getVerificationMethods(exports.VerificationMethodType.Sms);
757
+ },
758
+ enumerable: false,
759
+ configurable: true
760
+ });
761
+ Object.defineProperty(TwoFactorManageService.prototype, "appVerificationMethods", {
762
+ get: function () {
763
+ return this.getVerificationMethods(exports.VerificationMethodType.App);
764
+ },
765
+ enumerable: false,
766
+ configurable: true
767
+ });
768
+ TwoFactorManageService.prototype.getVerificationMethods = function (type) {
769
+ return this.verificationMethods
770
+ .filter(function (verificationMethod) {
771
+ return verificationMethod.type === type;
772
+ });
773
+ };
774
+ TwoFactorManageService.prototype.hasVerificationMethod = function (type) {
775
+ return this.verificationMethods
776
+ .some(function (verificationMethod) {
777
+ return verificationMethod.type === type;
778
+ });
779
+ };
780
+ TwoFactorManageService.prototype.registerVerificationMethodDefault = function (value) {
781
+ this._verificationMethodDefault = value;
782
+ };
783
+ TwoFactorManageService.prototype.registerVerificationMethodResend = function (value) {
784
+ this._verificationMethodResend = value;
785
+ };
786
+ TwoFactorManageService.prototype.registerVerificationMethodsFetch = function (value) {
787
+ this._verificationMethodsFetch = value;
788
+ };
789
+ TwoFactorManageService.prototype.registerVerificationMethodDelete = function (value) {
790
+ this._verificationMethodDelete = value;
791
+ };
792
+ TwoFactorManageService.prototype.registerVerificationMethodCreate = function (value) {
793
+ this._verificationMethodCreate = value;
794
+ };
795
+ TwoFactorManageService.prototype.registerVerificationMethodVerify = function (value) {
796
+ this._verificationMethodVerify = value;
797
+ };
798
+ TwoFactorManageService.prototype.registerAccountVerify = function (value) {
799
+ this._accountVerify = value;
800
+ };
801
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodResend", {
802
+ get: function () {
803
+ return !!this._verificationMethodResend;
804
+ },
805
+ enumerable: false,
806
+ configurable: true
807
+ });
808
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDefault", {
809
+ get: function () {
810
+ return !!this._verificationMethodDefault;
811
+ },
812
+ enumerable: false,
813
+ configurable: true
814
+ });
815
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodsFetch", {
816
+ get: function () {
817
+ return !!this._verificationMethodsFetch;
818
+ },
819
+ enumerable: false,
820
+ configurable: true
821
+ });
822
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodDelete", {
823
+ get: function () {
824
+ return !!this._verificationMethodDelete;
825
+ },
826
+ enumerable: false,
827
+ configurable: true
828
+ });
829
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodCreate", {
830
+ get: function () {
831
+ return !!this._verificationMethodCreate;
832
+ },
833
+ enumerable: false,
834
+ configurable: true
835
+ });
836
+ Object.defineProperty(TwoFactorManageService.prototype, "hasVerificationMethodVerify", {
837
+ get: function () {
838
+ return !!this._verificationMethodVerify;
839
+ },
840
+ enumerable: false,
841
+ configurable: true
842
+ });
843
+ TwoFactorManageService.prototype.verificationMethodDelete$ = function (verificationMethod) {
844
+ var _this = this;
845
+ return this._verificationMethodDelete(verificationMethod)
846
+ .pipe(operators.tap(function () {
847
+ _this.verificationMethodsFetch();
848
+ }));
849
+ };
850
+ TwoFactorManageService.prototype.verificationMethodVerify$ = function (code, trustDevice) {
851
+ var _this = this;
852
+ return this._verificationMethodVerify(code, trustDevice)
853
+ .pipe(operators.tap(function () {
854
+ _this.verificationMethodsFetch();
855
+ }));
856
+ };
857
+ TwoFactorManageService.prototype.verificationMethodCreate$ = function (verificationMethod) {
858
+ return this._verificationMethodCreate(verificationMethod);
859
+ };
860
+ TwoFactorManageService.prototype.verificationMethodDefault$ = function (verificationMethod) {
861
+ return this._verificationMethodDefault(verificationMethod);
862
+ };
863
+ TwoFactorManageService.prototype.verificationMethodResend = function () {
864
+ return this._verificationMethodResend();
865
+ };
866
+ TwoFactorManageService.prototype.verificationMethodsFetch = function (query) {
867
+ this.verificationMethodsFetch$(query)
868
+ .subscribe();
869
+ };
870
+ TwoFactorManageService.prototype.verificationMethodsFetch$ = function (query) {
871
+ var _this = this;
872
+ return this._verificationMethodsFetch(query)
873
+ .pipe(operators.tap(function (verificationMethods) {
874
+ _this._verificationMethods$.next(verificationMethods);
875
+ }));
876
+ };
877
+ TwoFactorManageService.prototype.accountVerify$ = function () {
878
+ return this._accountVerify ? this._accountVerify() : rxjs.of(true);
879
+ };
880
+ TwoFactorManageService.prototype.ngOnDestroy = function () {
881
+ this._destroy$.next();
882
+ this._destroy$.complete();
883
+ };
884
+ TwoFactorManageService.prototype.addSms$ = function (defaultCountry) {
885
+ var _this = this;
886
+ return this.accountVerify$()
887
+ .pipe(operators.switchMap(function () { return _this._dialog.open(NumberComponent, {
888
+ data: {
889
+ defaultCountry: defaultCountry,
890
+ twoFactorManageService: _this,
891
+ },
892
+ })
893
+ .afterClosed(); }), operators.tap(function () {
894
+ _this.verificationMethodsFetch();
895
+ }), operators.takeUntil(this._destroy$));
896
+ };
897
+ TwoFactorManageService.prototype.addEmail$ = function () {
898
+ var _this = this;
899
+ return this.accountVerify$()
900
+ .pipe(operators.switchMap(function () { return _this._dialog.open(EmailComponent, {
901
+ data: { twoFactorManageService: _this },
902
+ })
903
+ .afterClosed(); }), operators.tap(function () {
904
+ _this.verificationMethodsFetch();
905
+ }), operators.takeUntil(this._destroy$));
906
+ };
907
+ TwoFactorManageService.prototype.addApp$ = function () {
908
+ var _this = this;
909
+ return this.accountVerify$()
910
+ .pipe(operators.switchMap(function () { return _this._dialog.open(AppComponent, {
911
+ data: { twoFactorManageService: _this },
912
+ })
913
+ .afterClosed(); }), operators.tap(function () {
914
+ _this.verificationMethodsFetch();
915
+ }), operators.takeUntil(this._destroy$));
916
+ };
917
+ return TwoFactorManageService;
918
+ }());
919
+ 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 });
920
+ TwoFactorManageService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService });
921
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TwoFactorManageService, decorators: [{
922
+ type: i0.Injectable
920
923
  }], ctorParameters: function () { return [{ type: i1__namespace.MatDialog }]; } });
921
924
 
922
- var DefaultedComponent = /** @class */ (function () {
923
- function DefaultedComponent() {
924
- }
925
- return DefaultedComponent;
926
- }());
927
- DefaultedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
928
- 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 });
929
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, decorators: [{
930
- type: i0.Component,
931
- args: [{
932
- selector: 'app-defaulted',
933
- templateUrl: './defaulted.component.html',
934
- styleUrls: ['./defaulted.component.scss'],
935
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
936
- }]
925
+ var DefaultedComponent = /** @class */ (function () {
926
+ function DefaultedComponent() {
927
+ }
928
+ return DefaultedComponent;
929
+ }());
930
+ DefaultedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
931
+ 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 });
932
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefaultedComponent, decorators: [{
933
+ type: i0.Component,
934
+ args: [{
935
+ selector: 'app-defaulted',
936
+ templateUrl: './defaulted.component.html',
937
+ styleUrls: ['./defaulted.component.scss'],
938
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
939
+ }]
937
940
  }] });
938
941
 
939
- var VerificationMethodsComponent = /** @class */ (function () {
940
- function VerificationMethodsComponent(_prompt) {
941
- this._prompt = _prompt;
942
- this.deleted = new i0.EventEmitter();
943
- this.VerificationMethodType = exports.VerificationMethodType;
944
- }
945
- VerificationMethodsComponent.prototype.ngOnInit = function () {
946
- var _this = this;
947
- var _a, _b, _c, _d;
948
- if (!this.verificationMethodDefault && ((_a = this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.hasVerificationMethodDefault)) {
949
- this.verificationMethodDefault = function (verificationMethod) {
950
- return _this.twoFactorManageService.verificationMethodDefault$(verificationMethod);
951
- };
952
- }
953
- if (!this.verificationMethodDelete && ((_b = this.twoFactorManageService) === null || _b === void 0 ? void 0 : _b.hasVerificationMethodDelete)) {
954
- this.verificationMethodDelete = function (verificationMethod) {
955
- return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod);
956
- };
957
- }
958
- if (!this.verificationMethodsFetch && ((_c = this.twoFactorManageService) === null || _c === void 0 ? void 0 : _c.hasVerificationMethodsFetch)) {
959
- this.verificationMethodsFetch = function (query) {
960
- return _this.twoFactorManageService.verificationMethodsFetch$(query);
961
- };
962
- }
963
- if (!this.accountVerify && ((_d = this.twoFactorManageService) === null || _d === void 0 ? void 0 : _d.hasVerificationMethodVerify)) {
964
- this.accountVerify = function () {
965
- var _a;
966
- return (_a = _this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.accountVerify$();
967
- };
968
- }
969
- this.listConfig = {
970
- paging: false,
971
- rowActions: [
972
- {
973
- click: function (verificationMethod) {
974
- _this.accountVerify()
975
- .pipe(operators.switchMap(function () { return _this.verificationMethodDefault(verificationMethod); }))
976
- .subscribe(function () {
977
- _this.list.reload();
978
- });
979
- },
980
- show: function () {
981
- return !!_this.verificationMethodDefault;
982
- },
983
- label: 'Set as Default',
984
- },
985
- {
986
- click: function (verificationMethod) {
987
- _this._prompt.confirm({
988
- title: 'Confirm',
989
- template: 'Would you like to delete this verification method?',
990
- })
991
- .pipe(operators.switchMap(function () { return _this.accountVerify(); }), operators.switchMap(function () { return _this.verificationMethodDelete(verificationMethod); }))
992
- .subscribe(function () {
993
- _this.deleted.emit();
994
- _this.list.reload();
995
- });
996
- },
997
- show: function () {
998
- return !!_this.verificationMethodDelete;
999
- },
1000
- label: 'Delete',
1001
- },
1002
- ],
1003
- fetch: function (query) {
1004
- query = Object.assign(Object.assign({}, query), { type: _this.type });
1005
- return _this.verificationMethodsFetch(query)
1006
- .pipe(operators.map(function (verificationMethods) { return ({
1007
- data: verificationMethods.filter(function (verificationMethod) {
1008
- return !_this.type || verificationMethod.type === _this.type;
1009
- }),
1010
- }); }));
1011
- },
1012
- };
1013
- };
1014
- VerificationMethodsComponent.prototype.reload = function () {
1015
- this.list.reload();
1016
- };
1017
- return VerificationMethodsComponent;
1018
- }());
1019
- 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 });
1020
- 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$2.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": i6__namespace$2.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1021
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
1022
- type: i0.Component,
1023
- args: [{
1024
- selector: 'fs-2fa-verification-methods',
1025
- templateUrl: './verification-methods.component.html',
1026
- styleUrls: ['./verification-methods.component.scss'],
1027
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1028
- }]
1029
- }], ctorParameters: function () { return [{ type: i1__namespace$3.FsPrompt }]; }, propDecorators: { list: [{
1030
- type: i0.ViewChild,
1031
- args: [i2$1.FsListComponent]
1032
- }], type: [{
1033
- type: i0.Input
1034
- }], accountVerify: [{
1035
- type: i0.Input
1036
- }], verificationMethodsFetch: [{
1037
- type: i0.Input
1038
- }], verificationMethodDelete: [{
1039
- type: i0.Input
1040
- }], verificationMethodDefault: [{
1041
- type: i0.Input
1042
- }], twoFactorManageService: [{
1043
- type: i0.Input
1044
- }], deleted: [{
1045
- type: i0.Output
942
+ var VerificationMethodsComponent = /** @class */ (function () {
943
+ function VerificationMethodsComponent(_prompt) {
944
+ this._prompt = _prompt;
945
+ this.deleted = new i0.EventEmitter();
946
+ this.VerificationMethodType = exports.VerificationMethodType;
947
+ }
948
+ VerificationMethodsComponent.prototype.ngOnInit = function () {
949
+ var _this = this;
950
+ var _a, _b, _c, _d;
951
+ if (!this.verificationMethodDefault && ((_a = this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.hasVerificationMethodDefault)) {
952
+ this.verificationMethodDefault = function (verificationMethod) {
953
+ return _this.twoFactorManageService.verificationMethodDefault$(verificationMethod);
954
+ };
955
+ }
956
+ if (!this.verificationMethodDelete && ((_b = this.twoFactorManageService) === null || _b === void 0 ? void 0 : _b.hasVerificationMethodDelete)) {
957
+ this.verificationMethodDelete = function (verificationMethod) {
958
+ return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod);
959
+ };
960
+ }
961
+ if (!this.verificationMethodsFetch && ((_c = this.twoFactorManageService) === null || _c === void 0 ? void 0 : _c.hasVerificationMethodsFetch)) {
962
+ this.verificationMethodsFetch = function (query) {
963
+ return _this.twoFactorManageService.verificationMethodsFetch$(query);
964
+ };
965
+ }
966
+ if (!this.accountVerify && ((_d = this.twoFactorManageService) === null || _d === void 0 ? void 0 : _d.hasVerificationMethodVerify)) {
967
+ this.accountVerify = function () {
968
+ var _a;
969
+ return (_a = _this.twoFactorManageService) === null || _a === void 0 ? void 0 : _a.accountVerify$();
970
+ };
971
+ }
972
+ this.listConfig = {
973
+ paging: false,
974
+ rowActions: [
975
+ {
976
+ click: function (verificationMethod) {
977
+ _this.accountVerify()
978
+ .pipe(operators.switchMap(function () { return _this.verificationMethodDefault(verificationMethod); }))
979
+ .subscribe(function () {
980
+ _this.list.reload();
981
+ });
982
+ },
983
+ show: function (data) {
984
+ return !!_this.verificationMethodDefault && !data.default;
985
+ },
986
+ label: 'Set as Default',
987
+ },
988
+ {
989
+ click: function (verificationMethod) {
990
+ _this._prompt.confirm({
991
+ title: 'Confirm',
992
+ template: 'Would you like to delete this verification method?',
993
+ })
994
+ .pipe(operators.switchMap(function () { return _this.accountVerify(); }), operators.switchMap(function () { return _this.verificationMethodDelete(verificationMethod); }))
995
+ .subscribe(function () {
996
+ _this.deleted.emit();
997
+ _this.list.reload();
998
+ });
999
+ },
1000
+ show: function () {
1001
+ return !!_this.verificationMethodDelete;
1002
+ },
1003
+ label: 'Delete',
1004
+ },
1005
+ ],
1006
+ fetch: function (query) {
1007
+ query = Object.assign(Object.assign({}, query), { type: _this.type });
1008
+ return _this.verificationMethodsFetch(query)
1009
+ .pipe(operators.map(function (verificationMethods) { return ({
1010
+ data: verificationMethods.filter(function (verificationMethod) {
1011
+ return !_this.type || verificationMethod.type === _this.type;
1012
+ }),
1013
+ }); }));
1014
+ },
1015
+ };
1016
+ };
1017
+ VerificationMethodsComponent.prototype.reload = function () {
1018
+ this.list.reload();
1019
+ };
1020
+ return VerificationMethodsComponent;
1021
+ }());
1022
+ 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 });
1023
+ 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$2.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 });
1024
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
1025
+ type: i0.Component,
1026
+ args: [{
1027
+ selector: 'fs-2fa-verification-methods',
1028
+ templateUrl: './verification-methods.component.html',
1029
+ styleUrls: ['./verification-methods.component.scss'],
1030
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1031
+ }]
1032
+ }], ctorParameters: function () { return [{ type: i1__namespace$3.FsPrompt }]; }, propDecorators: { list: [{
1033
+ type: i0.ViewChild,
1034
+ args: [i2$1.FsListComponent]
1035
+ }], type: [{
1036
+ type: i0.Input
1037
+ }], accountVerify: [{
1038
+ type: i0.Input
1039
+ }], verificationMethodsFetch: [{
1040
+ type: i0.Input
1041
+ }], verificationMethodDelete: [{
1042
+ type: i0.Input
1043
+ }], verificationMethodDefault: [{
1044
+ type: i0.Input
1045
+ }], twoFactorManageService: [{
1046
+ type: i0.Input
1047
+ }], deleted: [{
1048
+ type: i0.Output
1046
1049
  }] } });
1047
1050
 
1048
- var NumbersComponent = /** @class */ (function () {
1049
- function NumbersComponent(_data, _dialogRef, _message) {
1050
- this._data = _data;
1051
- this._dialogRef = _dialogRef;
1052
- this._message = _message;
1053
- this.VerificationMethodType = exports.VerificationMethodType;
1054
- this.twoFactorManageService = _data.twoFactorManageService;
1055
- this.defaultCountry = _data.defaultCountry;
1056
- }
1057
- NumbersComponent.prototype.add = function () {
1058
- var _this = this;
1059
- this.twoFactorManageService.addSms$(this.defaultCountry)
1060
- .subscribe(function () {
1061
- _this.verificationMethods.reload();
1062
- });
1063
- };
1064
- NumbersComponent.prototype.deleted = function () {
1065
- this._message.success('Deleted text message verification method');
1066
- if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms)) {
1067
- this._dialogRef.close();
1068
- }
1069
- };
1070
- return NumbersComponent;
1071
- }());
1072
- 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 });
1073
- 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 });
1074
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, decorators: [{
1075
- type: i0.Component,
1076
- args: [{
1077
- templateUrl: './numbers.component.html',
1078
- styleUrls: ['./numbers.component.scss'],
1079
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1080
- }]
1081
- }], ctorParameters: function () {
1082
- return [{ type: undefined, decorators: [{
1083
- type: i0.Inject,
1084
- args: [i1.MAT_DIALOG_DATA]
1085
- }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1086
- }, propDecorators: { verificationMethods: [{
1087
- type: i0.ViewChild,
1088
- args: [VerificationMethodsComponent]
1051
+ var NumbersComponent = /** @class */ (function () {
1052
+ function NumbersComponent(_data, _dialogRef, _message) {
1053
+ this._data = _data;
1054
+ this._dialogRef = _dialogRef;
1055
+ this._message = _message;
1056
+ this.VerificationMethodType = exports.VerificationMethodType;
1057
+ this.twoFactorManageService = _data.twoFactorManageService;
1058
+ this.defaultCountry = _data.defaultCountry;
1059
+ }
1060
+ NumbersComponent.prototype.add = function () {
1061
+ var _this = this;
1062
+ this.twoFactorManageService.addSms$(this.defaultCountry)
1063
+ .subscribe(function () {
1064
+ _this.verificationMethods.reload();
1065
+ });
1066
+ };
1067
+ NumbersComponent.prototype.deleted = function () {
1068
+ this._message.success('Deleted text message verification method');
1069
+ if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms)) {
1070
+ this._dialogRef.close();
1071
+ }
1072
+ };
1073
+ return NumbersComponent;
1074
+ }());
1075
+ 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 });
1076
+ 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 });
1077
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, decorators: [{
1078
+ type: i0.Component,
1079
+ args: [{
1080
+ templateUrl: './numbers.component.html',
1081
+ styleUrls: ['./numbers.component.scss'],
1082
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1083
+ }]
1084
+ }], ctorParameters: function () {
1085
+ return [{ type: undefined, decorators: [{
1086
+ type: i0.Inject,
1087
+ args: [i1.MAT_DIALOG_DATA]
1088
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1089
+ }, propDecorators: { verificationMethods: [{
1090
+ type: i0.ViewChild,
1091
+ args: [VerificationMethodsComponent]
1089
1092
  }] } });
1090
1093
 
1091
- var EmailsComponent = /** @class */ (function () {
1092
- function EmailsComponent(_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
- }
1099
- EmailsComponent.prototype.add = function () {
1100
- var _this = this;
1101
- this.twoFactorManageService.addEmail$()
1102
- .subscribe(function () {
1103
- _this.verificationMethods.reload();
1104
- });
1105
- };
1106
- EmailsComponent.prototype.deleted = function () {
1107
- this._message.success('Deleted email verification method');
1108
- if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email)) {
1109
- this._dialogRef.close();
1110
- }
1111
- };
1112
- return EmailsComponent;
1113
- }());
1114
- 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 });
1115
- 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 });
1116
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, decorators: [{
1117
- type: i0.Component,
1118
- args: [{
1119
- templateUrl: './emails.component.html',
1120
- styleUrls: ['./emails.component.scss'],
1121
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1122
- }]
1123
- }], ctorParameters: function () {
1124
- return [{ type: undefined, decorators: [{
1125
- type: i0.Inject,
1126
- args: [i1.MAT_DIALOG_DATA]
1127
- }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1128
- }, propDecorators: { verificationMethods: [{
1129
- type: i0.ViewChild,
1130
- args: [VerificationMethodsComponent]
1094
+ var EmailsComponent = /** @class */ (function () {
1095
+ function EmailsComponent(_data, _dialogRef, _message) {
1096
+ this._data = _data;
1097
+ this._dialogRef = _dialogRef;
1098
+ this._message = _message;
1099
+ this.VerificationMethodType = exports.VerificationMethodType;
1100
+ this.twoFactorManageService = _data.twoFactorManageService;
1101
+ }
1102
+ EmailsComponent.prototype.add = function () {
1103
+ var _this = this;
1104
+ this.twoFactorManageService.addEmail$()
1105
+ .subscribe(function () {
1106
+ _this.verificationMethods.reload();
1107
+ });
1108
+ };
1109
+ EmailsComponent.prototype.deleted = function () {
1110
+ this._message.success('Deleted email verification method');
1111
+ if (!this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email)) {
1112
+ this._dialogRef.close();
1113
+ }
1114
+ };
1115
+ return EmailsComponent;
1116
+ }());
1117
+ 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 });
1118
+ 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 });
1119
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, decorators: [{
1120
+ type: i0.Component,
1121
+ args: [{
1122
+ templateUrl: './emails.component.html',
1123
+ styleUrls: ['./emails.component.scss'],
1124
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1125
+ }]
1126
+ }], ctorParameters: function () {
1127
+ return [{ type: undefined, decorators: [{
1128
+ type: i0.Inject,
1129
+ args: [i1.MAT_DIALOG_DATA]
1130
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace.FsMessage }];
1131
+ }, propDecorators: { verificationMethods: [{
1132
+ type: i0.ViewChild,
1133
+ args: [VerificationMethodsComponent]
1131
1134
  }] } });
1132
1135
 
1133
- var ManageMethodsComponent = /** @class */ (function () {
1134
- function ManageMethodsComponent(_data, _cdRef, _dialog, _message) {
1135
- this._data = _data;
1136
- this._cdRef = _cdRef;
1137
- this._dialog = _dialog;
1138
- this._message = _message;
1139
- this.verificationMethodTypes = {};
1140
- this.VerificationMethodType = exports.VerificationMethodType;
1141
- this._destroy$ = new rxjs.Subject();
1142
- }
1143
- ManageMethodsComponent.prototype.ngOnInit = function () {
1144
- var _this = this;
1145
- this._defaultCountry = this._data.defaultCountry;
1146
- this.twoFactorManageService = this._data.twoFactorManageService;
1147
- this.verificationMethodTypes = this._data.verificationMethodTypes
1148
- .reduce(function (verificationMethodTypes, verificationMethodType) {
1149
- verificationMethodTypes[verificationMethodType] = true;
1150
- return verificationMethodTypes;
1151
- }, {});
1152
- this.twoFactorManageService.verificationMethods$
1153
- .subscribe(function (verificationMethods) {
1154
- _this.verificationMethods = verificationMethods;
1155
- _this._cdRef.markForCheck();
1156
- });
1157
- };
1158
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultSms", {
1159
- get: function () {
1160
- return this.twoFactorManageService.smsVerificationMethods
1161
- .some(function (verificationMethod) {
1162
- return verificationMethod.default;
1163
- });
1164
- },
1165
- enumerable: false,
1166
- configurable: true
1167
- });
1168
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultApp", {
1169
- get: function () {
1170
- return this.twoFactorManageService.appVerificationMethods
1171
- .some(function (verificationMethod) {
1172
- return verificationMethod.default;
1173
- });
1174
- },
1175
- enumerable: false,
1176
- configurable: true
1177
- });
1178
- Object.defineProperty(ManageMethodsComponent.prototype, "defaultEmail", {
1179
- get: function () {
1180
- return this.twoFactorManageService.emailVerificationMethods
1181
- .some(function (verificationMethod) {
1182
- return verificationMethod.default;
1183
- });
1184
- },
1185
- enumerable: false,
1186
- configurable: true
1187
- });
1188
- Object.defineProperty(ManageMethodsComponent.prototype, "textHasVerificationMethod", {
1189
- get: function () {
1190
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms);
1191
- },
1192
- enumerable: false,
1193
- configurable: true
1194
- });
1195
- Object.defineProperty(ManageMethodsComponent.prototype, "appHasVerificationMethod", {
1196
- get: function () {
1197
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.App);
1198
- },
1199
- enumerable: false,
1200
- configurable: true
1201
- });
1202
- Object.defineProperty(ManageMethodsComponent.prototype, "emailHasVerificationMethod", {
1203
- get: function () {
1204
- return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email);
1205
- },
1206
- enumerable: false,
1207
- configurable: true
1208
- });
1209
- ManageMethodsComponent.prototype.textMessageManage = function () {
1210
- this._dialog.open(NumbersComponent, {
1211
- data: {
1212
- twoFactorManageService: this.twoFactorManageService,
1213
- defaultCountry: this._defaultCountry,
1214
- },
1215
- });
1216
- };
1217
- ManageMethodsComponent.prototype.textMessageAdd = function () {
1218
- this.twoFactorManageService.addSms$(this._defaultCountry)
1219
- .subscribe();
1220
- };
1221
- ManageMethodsComponent.prototype.emailMessageManage = function () {
1222
- this._dialog.open(EmailsComponent, {
1223
- data: {
1224
- twoFactorManageService: this.twoFactorManageService,
1225
- },
1226
- });
1227
- };
1228
- ManageMethodsComponent.prototype.emailMessageAdd = function () {
1229
- this.twoFactorManageService.addEmail$()
1230
- .subscribe();
1231
- };
1232
- ManageMethodsComponent.prototype.appRemove = function () {
1233
- var _this = this;
1234
- var verificationMethod = this.verificationMethods
1235
- .find(function (_verificationMethod) {
1236
- return _verificationMethod.type === exports.VerificationMethodType.App;
1237
- });
1238
- if (verificationMethod) {
1239
- this.twoFactorManageService.accountVerify$()
1240
- .pipe(operators.switchMap(function () { return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod); }))
1241
- .subscribe(function () {
1242
- _this._message.success('Removed App Authenticator verification method');
1243
- _this._cdRef.markForCheck();
1244
- });
1245
- }
1246
- };
1247
- ManageMethodsComponent.prototype.appAdd = function () {
1248
- this.twoFactorManageService.addApp$()
1249
- .subscribe();
1250
- };
1251
- ManageMethodsComponent.prototype.ngOnDestroy = function () {
1252
- this._destroy$.next();
1253
- this._destroy$.complete();
1254
- };
1255
- return ManageMethodsComponent;
1256
- }());
1257
- 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 });
1258
- 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": i6__namespace$2.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1259
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, decorators: [{
1260
- type: i0.Component,
1261
- args: [{
1262
- templateUrl: './manage-methods.component.html',
1263
- styleUrls: ['./manage-methods.component.scss'],
1264
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1265
- }]
1266
- }], ctorParameters: function () {
1267
- return [{ type: undefined, decorators: [{
1268
- type: i0.Inject,
1269
- args: [i1.MAT_DIALOG_DATA]
1270
- }] }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: i2__namespace.FsMessage }];
1136
+ var ManageMethodsComponent = /** @class */ (function () {
1137
+ function ManageMethodsComponent(_data, _cdRef, _dialog, _message) {
1138
+ this._data = _data;
1139
+ this._cdRef = _cdRef;
1140
+ this._dialog = _dialog;
1141
+ this._message = _message;
1142
+ this.verificationMethodTypes = {};
1143
+ this.VerificationMethodType = exports.VerificationMethodType;
1144
+ this._destroy$ = new rxjs.Subject();
1145
+ }
1146
+ ManageMethodsComponent.prototype.ngOnInit = function () {
1147
+ var _this = this;
1148
+ this._defaultCountry = this._data.defaultCountry;
1149
+ this.twoFactorManageService = this._data.twoFactorManageService;
1150
+ this.verificationMethodTypes = this._data.verificationMethodTypes
1151
+ .reduce(function (verificationMethodTypes, verificationMethodType) {
1152
+ verificationMethodTypes[verificationMethodType] = true;
1153
+ return verificationMethodTypes;
1154
+ }, {});
1155
+ this.twoFactorManageService.verificationMethods$
1156
+ .subscribe(function (verificationMethods) {
1157
+ _this.verificationMethods = verificationMethods;
1158
+ _this._cdRef.markForCheck();
1159
+ });
1160
+ };
1161
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultSms", {
1162
+ get: function () {
1163
+ return this.twoFactorManageService.smsVerificationMethods
1164
+ .some(function (verificationMethod) {
1165
+ return verificationMethod.default;
1166
+ });
1167
+ },
1168
+ enumerable: false,
1169
+ configurable: true
1170
+ });
1171
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultApp", {
1172
+ get: function () {
1173
+ return this.twoFactorManageService.appVerificationMethods
1174
+ .some(function (verificationMethod) {
1175
+ return verificationMethod.default;
1176
+ });
1177
+ },
1178
+ enumerable: false,
1179
+ configurable: true
1180
+ });
1181
+ Object.defineProperty(ManageMethodsComponent.prototype, "defaultEmail", {
1182
+ get: function () {
1183
+ return this.twoFactorManageService.emailVerificationMethods
1184
+ .some(function (verificationMethod) {
1185
+ return verificationMethod.default;
1186
+ });
1187
+ },
1188
+ enumerable: false,
1189
+ configurable: true
1190
+ });
1191
+ Object.defineProperty(ManageMethodsComponent.prototype, "textHasVerificationMethod", {
1192
+ get: function () {
1193
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Sms);
1194
+ },
1195
+ enumerable: false,
1196
+ configurable: true
1197
+ });
1198
+ Object.defineProperty(ManageMethodsComponent.prototype, "appHasVerificationMethod", {
1199
+ get: function () {
1200
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.App);
1201
+ },
1202
+ enumerable: false,
1203
+ configurable: true
1204
+ });
1205
+ Object.defineProperty(ManageMethodsComponent.prototype, "emailHasVerificationMethod", {
1206
+ get: function () {
1207
+ return this.twoFactorManageService.hasVerificationMethod(exports.VerificationMethodType.Email);
1208
+ },
1209
+ enumerable: false,
1210
+ configurable: true
1211
+ });
1212
+ ManageMethodsComponent.prototype.textMessageManage = function () {
1213
+ this._dialog.open(NumbersComponent, {
1214
+ data: {
1215
+ twoFactorManageService: this.twoFactorManageService,
1216
+ defaultCountry: this._defaultCountry,
1217
+ },
1218
+ });
1219
+ };
1220
+ ManageMethodsComponent.prototype.textMessageAdd = function () {
1221
+ this.twoFactorManageService.addSms$(this._defaultCountry)
1222
+ .subscribe();
1223
+ };
1224
+ ManageMethodsComponent.prototype.emailMessageManage = function () {
1225
+ this._dialog.open(EmailsComponent, {
1226
+ data: {
1227
+ twoFactorManageService: this.twoFactorManageService,
1228
+ },
1229
+ });
1230
+ };
1231
+ ManageMethodsComponent.prototype.emailMessageAdd = function () {
1232
+ this.twoFactorManageService.addEmail$()
1233
+ .subscribe();
1234
+ };
1235
+ ManageMethodsComponent.prototype.appRemove = function () {
1236
+ var _this = this;
1237
+ var verificationMethod = this.verificationMethods
1238
+ .find(function (_verificationMethod) {
1239
+ return _verificationMethod.type === exports.VerificationMethodType.App;
1240
+ });
1241
+ if (verificationMethod) {
1242
+ this.twoFactorManageService.accountVerify$()
1243
+ .pipe(operators.switchMap(function () { return _this.twoFactorManageService.verificationMethodDelete$(verificationMethod); }))
1244
+ .subscribe(function () {
1245
+ _this._message.success('Removed App Authenticator verification method');
1246
+ _this._cdRef.markForCheck();
1247
+ });
1248
+ }
1249
+ };
1250
+ ManageMethodsComponent.prototype.appAdd = function () {
1251
+ this.twoFactorManageService.addApp$()
1252
+ .subscribe();
1253
+ };
1254
+ ManageMethodsComponent.prototype.ngOnDestroy = function () {
1255
+ this._destroy$.next();
1256
+ this._destroy$.complete();
1257
+ };
1258
+ return ManageMethodsComponent;
1259
+ }());
1260
+ 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 });
1261
+ 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 });
1262
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ManageMethodsComponent, decorators: [{
1263
+ type: i0.Component,
1264
+ args: [{
1265
+ templateUrl: './manage-methods.component.html',
1266
+ styleUrls: ['./manage-methods.component.scss'],
1267
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1268
+ }]
1269
+ }], ctorParameters: function () {
1270
+ return [{ type: undefined, decorators: [{
1271
+ type: i0.Inject,
1272
+ args: [i1.MAT_DIALOG_DATA]
1273
+ }] }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: i2__namespace.FsMessage }];
1271
1274
  } });
1272
1275
 
1273
- var Fs2faManageComponent = /** @class */ (function () {
1274
- function Fs2faManageComponent(_cdRef, _dialog, _twoFactorManageService) {
1275
- this._cdRef = _cdRef;
1276
- this._dialog = _dialog;
1277
- this._twoFactorManageService = _twoFactorManageService;
1278
- this._destroy$ = new rxjs.Subject();
1279
- }
1280
- Fs2faManageComponent.prototype.ngOnInit = function () {
1281
- var _this = this;
1282
- this.verificationMethodTypes = this.verificationMethodTypes || [
1283
- exports.VerificationMethodType.Sms,
1284
- exports.VerificationMethodType.Email,
1285
- exports.VerificationMethodType.App
1286
- ];
1287
- this._twoFactorManageService.registerVerificationMethodsFetch(this.verificationMethodsFetch);
1288
- this._twoFactorManageService.registerVerificationMethodDelete(this.verificationMethodDelete);
1289
- this._twoFactorManageService.registerVerificationMethodCreate(this.verificationMethodCreate);
1290
- this._twoFactorManageService.registerVerificationMethodVerify(this.verificationMethodVerify);
1291
- this._twoFactorManageService.registerVerificationMethodResend(this.verificationMethodResend);
1292
- this._twoFactorManageService.registerVerificationMethodDefault(this.verificationMethodDefault);
1293
- this._twoFactorManageService.registerAccountVerify(this.accountVerify);
1294
- this._twoFactorManageService.verificationMethods$
1295
- .subscribe(function (verificationMethods) {
1296
- var types = {
1297
- sms: 'Text Message',
1298
- email: 'Email',
1299
- app: 'Authenticator App',
1300
- };
1301
- _this.statuses = Object.keys(verificationMethods.reduce(function (accum, verificationMethod) {
1302
- accum[verificationMethod.type] = true;
1303
- return accum;
1304
- }, {}))
1305
- .map(function (type) {
1306
- return types[type];
1307
- });
1308
- _this._cdRef.markForCheck();
1309
- });
1310
- this._twoFactorManageService.verificationMethodsFetch();
1311
- };
1312
- Fs2faManageComponent.prototype.manage = function () {
1313
- var _this = this;
1314
- var dialogRef = this._dialog.open(ManageMethodsComponent, {
1315
- autoFocus: false,
1316
- data: {
1317
- defaultCountry: this.defaultCountry,
1318
- twoFactorManageService: this._twoFactorManageService,
1319
- verificationMethodTypes: this.verificationMethodTypes,
1320
- },
1321
- });
1322
- dialogRef.afterClosed()
1323
- .pipe(operators.takeUntil(this._destroy$))
1324
- .subscribe(function () {
1325
- _this._cdRef.markForCheck();
1326
- });
1327
- };
1328
- Fs2faManageComponent.prototype.reload = function () {
1329
- this._twoFactorManageService.verificationMethodsFetch();
1330
- };
1331
- Fs2faManageComponent.prototype.ngOnDestroy = function () {
1332
- this._destroy$.next();
1333
- this._destroy$.complete();
1334
- };
1335
- return Fs2faManageComponent;
1336
- }());
1337
- 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 });
1338
- 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 });
1339
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, decorators: [{
1340
- type: i0.Component,
1341
- args: [{
1342
- selector: 'fs-2fa-manage',
1343
- templateUrl: './2fa-manage.component.html',
1344
- styleUrls: ['./2fa-manage.component.scss'],
1345
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1346
- providers: [TwoFactorManageService],
1347
- }]
1348
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: TwoFactorManageService }]; }, propDecorators: { accountVerify: [{
1349
- type: i0.Input
1350
- }], defaultCountry: [{
1351
- type: i0.Input
1352
- }], verificationMethodTypes: [{
1353
- type: i0.Input
1354
- }], verificationMethodsFetch: [{
1355
- type: i0.Input
1356
- }], verificationMethodDelete: [{
1357
- type: i0.Input
1358
- }], verificationMethodCreate: [{
1359
- type: i0.Input
1360
- }], verificationMethodDefault: [{
1361
- type: i0.Input
1362
- }], verificationMethodVerify: [{
1363
- type: i0.Input
1364
- }], verificationMethodResend: [{
1365
- type: i0.Input
1276
+ var Fs2faManageComponent = /** @class */ (function () {
1277
+ function Fs2faManageComponent(_cdRef, _dialog, _twoFactorManageService) {
1278
+ this._cdRef = _cdRef;
1279
+ this._dialog = _dialog;
1280
+ this._twoFactorManageService = _twoFactorManageService;
1281
+ this._destroy$ = new rxjs.Subject();
1282
+ }
1283
+ Fs2faManageComponent.prototype.ngOnInit = function () {
1284
+ var _this = this;
1285
+ this.verificationMethodTypes = this.verificationMethodTypes || [
1286
+ exports.VerificationMethodType.Sms,
1287
+ exports.VerificationMethodType.Email,
1288
+ exports.VerificationMethodType.App
1289
+ ];
1290
+ this._twoFactorManageService.registerVerificationMethodsFetch(this.verificationMethodsFetch);
1291
+ this._twoFactorManageService.registerVerificationMethodDelete(this.verificationMethodDelete);
1292
+ this._twoFactorManageService.registerVerificationMethodCreate(this.verificationMethodCreate);
1293
+ this._twoFactorManageService.registerVerificationMethodVerify(this.verificationMethodVerify);
1294
+ this._twoFactorManageService.registerVerificationMethodResend(this.verificationMethodResend);
1295
+ this._twoFactorManageService.registerVerificationMethodDefault(this.verificationMethodDefault);
1296
+ this._twoFactorManageService.registerAccountVerify(this.accountVerify);
1297
+ this._twoFactorManageService.verificationMethods$
1298
+ .subscribe(function (verificationMethods) {
1299
+ var types = {
1300
+ sms: 'Text Message',
1301
+ email: 'Email',
1302
+ app: 'Authenticator App',
1303
+ };
1304
+ _this.statuses = Object.keys(verificationMethods.reduce(function (accum, verificationMethod) {
1305
+ accum[verificationMethod.type] = true;
1306
+ return accum;
1307
+ }, {}))
1308
+ .map(function (type) {
1309
+ return types[type];
1310
+ });
1311
+ _this._cdRef.markForCheck();
1312
+ });
1313
+ this._twoFactorManageService.verificationMethodsFetch();
1314
+ };
1315
+ Fs2faManageComponent.prototype.manage = function () {
1316
+ var _this = this;
1317
+ var dialogRef = this._dialog.open(ManageMethodsComponent, {
1318
+ autoFocus: false,
1319
+ data: {
1320
+ defaultCountry: this.defaultCountry,
1321
+ twoFactorManageService: this._twoFactorManageService,
1322
+ verificationMethodTypes: this.verificationMethodTypes,
1323
+ },
1324
+ });
1325
+ dialogRef.afterClosed()
1326
+ .pipe(operators.takeUntil(this._destroy$))
1327
+ .subscribe(function () {
1328
+ _this._cdRef.markForCheck();
1329
+ });
1330
+ };
1331
+ Fs2faManageComponent.prototype.reload = function () {
1332
+ this._twoFactorManageService.verificationMethodsFetch();
1333
+ };
1334
+ Fs2faManageComponent.prototype.ngOnDestroy = function () {
1335
+ this._destroy$.next();
1336
+ this._destroy$.complete();
1337
+ };
1338
+ return Fs2faManageComponent;
1339
+ }());
1340
+ 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 });
1341
+ 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 });
1342
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageComponent, decorators: [{
1343
+ type: i0.Component,
1344
+ args: [{
1345
+ selector: 'fs-2fa-manage',
1346
+ templateUrl: './2fa-manage.component.html',
1347
+ styleUrls: ['./2fa-manage.component.scss'],
1348
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1349
+ providers: [TwoFactorManageService],
1350
+ }]
1351
+ }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MatDialog }, { type: TwoFactorManageService }]; }, propDecorators: { accountVerify: [{
1352
+ type: i0.Input
1353
+ }], defaultCountry: [{
1354
+ type: i0.Input
1355
+ }], verificationMethodTypes: [{
1356
+ type: i0.Input
1357
+ }], verificationMethodsFetch: [{
1358
+ type: i0.Input
1359
+ }], verificationMethodDelete: [{
1360
+ type: i0.Input
1361
+ }], verificationMethodCreate: [{
1362
+ type: i0.Input
1363
+ }], verificationMethodDefault: [{
1364
+ type: i0.Input
1365
+ }], verificationMethodVerify: [{
1366
+ type: i0.Input
1367
+ }], verificationMethodResend: [{
1368
+ type: i0.Input
1366
1369
  }] } });
1367
1370
 
1368
- var DefautledModule = /** @class */ (function () {
1369
- function DefautledModule() {
1370
- }
1371
- return DefautledModule;
1372
- }());
1373
- DefautledModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1374
- DefautledModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, declarations: [DefaultedComponent], exports: [DefaultedComponent] });
1375
- DefautledModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule });
1376
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, decorators: [{
1377
- type: i0.NgModule,
1378
- args: [{
1379
- declarations: [
1380
- DefaultedComponent,
1381
- ],
1382
- exports: [DefaultedComponent],
1383
- }]
1371
+ var DefautledModule = /** @class */ (function () {
1372
+ function DefautledModule() {
1373
+ }
1374
+ return DefautledModule;
1375
+ }());
1376
+ DefautledModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1377
+ DefautledModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, declarations: [DefaultedComponent], exports: [DefaultedComponent] });
1378
+ DefautledModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule });
1379
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, decorators: [{
1380
+ type: i0.NgModule,
1381
+ args: [{
1382
+ declarations: [
1383
+ DefaultedComponent,
1384
+ ],
1385
+ exports: [DefaultedComponent],
1386
+ }]
1384
1387
  }] });
1385
1388
 
1386
- var Fs2faVerificationMethodsModule = /** @class */ (function () {
1387
- function Fs2faVerificationMethodsModule() {
1388
- }
1389
- return Fs2faVerificationMethodsModule;
1390
- }());
1391
- Fs2faVerificationMethodsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1392
- Fs2faVerificationMethodsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, declarations: [VerificationMethodsComponent], imports: [i9$1.CommonModule,
1393
- i8.FormsModule,
1394
- i4.MatIconModule,
1395
- i2$1.FsListModule,
1396
- i6$2.FsPhoneModule,
1397
- i4$2.FsCountryModule,
1398
- DefautledModule], exports: [VerificationMethodsComponent] });
1399
- Fs2faVerificationMethodsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, imports: [[
1400
- i9$1.CommonModule,
1401
- i8.FormsModule,
1402
- i4.MatIconModule,
1403
- i2$1.FsListModule,
1404
- i6$2.FsPhoneModule,
1405
- i4$2.FsCountryModule,
1406
- DefautledModule,
1407
- ]] });
1408
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, decorators: [{
1409
- type: i0.NgModule,
1410
- args: [{
1411
- imports: [
1412
- i9$1.CommonModule,
1413
- i8.FormsModule,
1414
- i4.MatIconModule,
1415
- i2$1.FsListModule,
1416
- i6$2.FsPhoneModule,
1417
- i4$2.FsCountryModule,
1418
- DefautledModule,
1419
- ],
1420
- declarations: [
1421
- VerificationMethodsComponent,
1422
- ],
1423
- exports: [VerificationMethodsComponent],
1424
- }]
1389
+ var Fs2faVerificationMethodsModule = /** @class */ (function () {
1390
+ function Fs2faVerificationMethodsModule() {
1391
+ }
1392
+ return Fs2faVerificationMethodsModule;
1393
+ }());
1394
+ Fs2faVerificationMethodsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1395
+ Fs2faVerificationMethodsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, declarations: [VerificationMethodsComponent], imports: [i9$1.CommonModule,
1396
+ i8.FormsModule,
1397
+ i4.MatIconModule,
1398
+ i2$1.FsListModule,
1399
+ i8$1.FsPhoneModule,
1400
+ i4$2.FsCountryModule,
1401
+ DefautledModule], exports: [VerificationMethodsComponent] });
1402
+ Fs2faVerificationMethodsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, imports: [[
1403
+ i9$1.CommonModule,
1404
+ i8.FormsModule,
1405
+ i4.MatIconModule,
1406
+ i2$1.FsListModule,
1407
+ i8$1.FsPhoneModule,
1408
+ i4$2.FsCountryModule,
1409
+ DefautledModule,
1410
+ ]] });
1411
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, decorators: [{
1412
+ type: i0.NgModule,
1413
+ args: [{
1414
+ imports: [
1415
+ i9$1.CommonModule,
1416
+ i8.FormsModule,
1417
+ i4.MatIconModule,
1418
+ i2$1.FsListModule,
1419
+ i8$1.FsPhoneModule,
1420
+ i4$2.FsCountryModule,
1421
+ DefautledModule,
1422
+ ],
1423
+ declarations: [
1424
+ VerificationMethodsComponent,
1425
+ ],
1426
+ exports: [VerificationMethodsComponent],
1427
+ }]
1425
1428
  }] });
1426
1429
 
1427
- var Fs2faManageModule = /** @class */ (function () {
1428
- function Fs2faManageModule() {
1429
- }
1430
- return Fs2faManageModule;
1431
- }());
1432
- Fs2faManageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1433
- Fs2faManageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, declarations: [Fs2faManageComponent,
1434
- ManageMethodsComponent,
1435
- NumbersComponent,
1436
- AppComponent,
1437
- EmailComponent,
1438
- NumberComponent,
1439
- EmailsComponent], imports: [i9$1.CommonModule,
1440
- i8.FormsModule,
1441
- i6.MatButtonModule,
1442
- i1.MatDialogModule,
1443
- i11.MatInputModule,
1444
- i4.MatIconModule,
1445
- i6$1.MatCheckboxModule,
1446
- i3.FsDialogModule,
1447
- i2$1.FsListModule,
1448
- i9.FsFormModule,
1449
- i3$2.FsLabelModule,
1450
- i6$2.FsPhoneModule,
1451
- i11$1.FsSkeletonModule,
1452
- i4$2.FsCountryModule,
1453
- CodeInputModule,
1454
- i4$1.QrCodeModule,
1455
- ResendModule,
1456
- DefautledModule,
1457
- Fs2faVerificationModule,
1458
- Fs2faVerificationMethodsModule], exports: [Fs2faManageComponent] });
1459
- Fs2faManageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, imports: [[
1460
- i9$1.CommonModule,
1461
- i8.FormsModule,
1462
- i6.MatButtonModule,
1463
- i1.MatDialogModule,
1464
- i11.MatInputModule,
1465
- i4.MatIconModule,
1466
- i6$1.MatCheckboxModule,
1467
- i3.FsDialogModule,
1468
- i2$1.FsListModule,
1469
- i9.FsFormModule,
1470
- i3$2.FsLabelModule,
1471
- i6$2.FsPhoneModule,
1472
- i11$1.FsSkeletonModule,
1473
- i4$2.FsCountryModule,
1474
- CodeInputModule,
1475
- i4$1.QrCodeModule,
1476
- ResendModule,
1477
- DefautledModule,
1478
- Fs2faVerificationModule,
1479
- Fs2faVerificationMethodsModule,
1480
- ]] });
1481
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, decorators: [{
1482
- type: i0.NgModule,
1483
- args: [{
1484
- imports: [
1485
- i9$1.CommonModule,
1486
- i8.FormsModule,
1487
- i6.MatButtonModule,
1488
- i1.MatDialogModule,
1489
- i11.MatInputModule,
1490
- i4.MatIconModule,
1491
- i6$1.MatCheckboxModule,
1492
- i3.FsDialogModule,
1493
- i2$1.FsListModule,
1494
- i9.FsFormModule,
1495
- i3$2.FsLabelModule,
1496
- i6$2.FsPhoneModule,
1497
- i11$1.FsSkeletonModule,
1498
- i4$2.FsCountryModule,
1499
- CodeInputModule,
1500
- i4$1.QrCodeModule,
1501
- ResendModule,
1502
- DefautledModule,
1503
- Fs2faVerificationModule,
1504
- Fs2faVerificationMethodsModule,
1505
- ],
1506
- declarations: [
1507
- Fs2faManageComponent,
1508
- ManageMethodsComponent,
1509
- NumbersComponent,
1510
- AppComponent,
1511
- EmailComponent,
1512
- NumberComponent,
1513
- EmailsComponent,
1514
- ],
1515
- exports: [Fs2faManageComponent],
1516
- }]
1430
+ var Fs2faManageModule = /** @class */ (function () {
1431
+ function Fs2faManageModule() {
1432
+ }
1433
+ return Fs2faManageModule;
1434
+ }());
1435
+ Fs2faManageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1436
+ Fs2faManageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, declarations: [Fs2faManageComponent,
1437
+ ManageMethodsComponent,
1438
+ NumbersComponent,
1439
+ AppComponent,
1440
+ EmailComponent,
1441
+ NumberComponent,
1442
+ EmailsComponent], imports: [i9$1.CommonModule,
1443
+ i8.FormsModule,
1444
+ i6.MatButtonModule,
1445
+ i1.MatDialogModule,
1446
+ i11.MatInputModule,
1447
+ i4.MatIconModule,
1448
+ i6$1.MatCheckboxModule,
1449
+ i3.FsDialogModule,
1450
+ i2$1.FsListModule,
1451
+ i9.FsFormModule,
1452
+ i3$2.FsLabelModule,
1453
+ i8$1.FsPhoneModule,
1454
+ i11$1.FsSkeletonModule,
1455
+ i4$2.FsCountryModule,
1456
+ CodeInputModule,
1457
+ i4$1.QrCodeModule,
1458
+ ResendModule,
1459
+ DefautledModule,
1460
+ Fs2faVerificationModule,
1461
+ Fs2faVerificationMethodsModule], exports: [Fs2faManageComponent] });
1462
+ Fs2faManageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, imports: [[
1463
+ i9$1.CommonModule,
1464
+ i8.FormsModule,
1465
+ i6.MatButtonModule,
1466
+ i1.MatDialogModule,
1467
+ i11.MatInputModule,
1468
+ i4.MatIconModule,
1469
+ i6$1.MatCheckboxModule,
1470
+ i3.FsDialogModule,
1471
+ i2$1.FsListModule,
1472
+ i9.FsFormModule,
1473
+ i3$2.FsLabelModule,
1474
+ i8$1.FsPhoneModule,
1475
+ i11$1.FsSkeletonModule,
1476
+ i4$2.FsCountryModule,
1477
+ CodeInputModule,
1478
+ i4$1.QrCodeModule,
1479
+ ResendModule,
1480
+ DefautledModule,
1481
+ Fs2faVerificationModule,
1482
+ Fs2faVerificationMethodsModule,
1483
+ ]] });
1484
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, decorators: [{
1485
+ type: i0.NgModule,
1486
+ args: [{
1487
+ imports: [
1488
+ i9$1.CommonModule,
1489
+ i8.FormsModule,
1490
+ i6.MatButtonModule,
1491
+ i1.MatDialogModule,
1492
+ i11.MatInputModule,
1493
+ i4.MatIconModule,
1494
+ i6$1.MatCheckboxModule,
1495
+ i3.FsDialogModule,
1496
+ i2$1.FsListModule,
1497
+ i9.FsFormModule,
1498
+ i3$2.FsLabelModule,
1499
+ i8$1.FsPhoneModule,
1500
+ i11$1.FsSkeletonModule,
1501
+ i4$2.FsCountryModule,
1502
+ CodeInputModule,
1503
+ i4$1.QrCodeModule,
1504
+ ResendModule,
1505
+ DefautledModule,
1506
+ Fs2faVerificationModule,
1507
+ Fs2faVerificationMethodsModule,
1508
+ ],
1509
+ declarations: [
1510
+ Fs2faManageComponent,
1511
+ ManageMethodsComponent,
1512
+ NumbersComponent,
1513
+ AppComponent,
1514
+ EmailComponent,
1515
+ NumberComponent,
1516
+ EmailsComponent,
1517
+ ],
1518
+ exports: [Fs2faManageComponent],
1519
+ }]
1517
1520
  }] });
1518
1521
 
1519
- /**
1520
- * Generated bundle index. Do not edit.
1522
+ /**
1523
+ * Generated bundle index. Do not edit.
1521
1524
  */
1522
1525
 
1523
1526
  exports.Fs2faManageComponent = Fs2faManageComponent;