2018-04-04 16:08:30 +02:00
|
|
|
import { Component } from "@angular/core";
|
2022-07-26 14:48:11 +02:00
|
|
|
import { UntypedFormBuilder } from "@angular/forms";
|
2018-04-04 16:08:30 +02:00
|
|
|
import { Router } from "@angular/router";
|
|
|
|
|
2022-06-14 17:10:53 +02:00
|
|
|
import { RegisterComponent as BaseRegisterComponent } from "@bitwarden/angular/components/register.component";
|
2023-05-02 18:46:03 +02:00
|
|
|
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
2022-06-14 17:10:53 +02:00
|
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
2023-01-24 22:04:01 +01:00
|
|
|
import { AuditService } from "@bitwarden/common/abstractions/audit.service";
|
2023-02-06 22:53:37 +01:00
|
|
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
2023-06-06 22:34:53 +02:00
|
|
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
|
|
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
|
|
|
import { FormValidationErrorsService } from "@bitwarden/common/platform/abstractions/form-validation-errors.service";
|
|
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
|
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
|
|
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
|
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
2023-03-10 21:39:46 +01:00
|
|
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
2018-04-04 16:08:30 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "app-register",
|
2018-04-06 17:48:45 +02:00
|
|
|
templateUrl: "register.component.html",
|
2018-04-04 16:08:30 +02:00
|
|
|
})
|
|
|
|
export class RegisterComponent extends BaseRegisterComponent {
|
2022-08-02 00:26:50 +02:00
|
|
|
color: string;
|
|
|
|
text: string;
|
|
|
|
|
2018-04-04 16:08:30 +02:00
|
|
|
constructor(
|
2022-07-05 21:25:14 +02:00
|
|
|
formValidationErrorService: FormValidationErrorsService,
|
2022-07-26 14:48:11 +02:00
|
|
|
formBuilder: UntypedFormBuilder,
|
2018-04-04 16:08:30 +02:00
|
|
|
authService: AuthService,
|
|
|
|
router: Router,
|
|
|
|
i18nService: I18nService,
|
|
|
|
cryptoService: CryptoService,
|
2021-07-23 22:32:42 +02:00
|
|
|
apiService: ApiService,
|
|
|
|
stateService: StateService,
|
|
|
|
platformUtilsService: PlatformUtilsService,
|
2023-03-10 21:39:46 +01:00
|
|
|
passwordGenerationService: PasswordGenerationServiceAbstraction,
|
2021-10-21 11:10:46 +02:00
|
|
|
environmentService: EnvironmentService,
|
2023-01-24 22:04:01 +01:00
|
|
|
logService: LogService,
|
2023-05-02 18:46:03 +02:00
|
|
|
auditService: AuditService,
|
|
|
|
dialogService: DialogServiceAbstraction
|
2021-10-21 11:10:46 +02:00
|
|
|
) {
|
2018-11-14 14:36:46 +01:00
|
|
|
super(
|
2022-07-05 21:25:14 +02:00
|
|
|
formValidationErrorService,
|
|
|
|
formBuilder,
|
2018-11-14 14:36:46 +01:00
|
|
|
authService,
|
|
|
|
router,
|
|
|
|
i18nService,
|
|
|
|
cryptoService,
|
|
|
|
apiService,
|
|
|
|
stateService,
|
|
|
|
platformUtilsService,
|
2021-10-21 11:10:46 +02:00
|
|
|
passwordGenerationService,
|
|
|
|
environmentService,
|
2023-01-24 22:04:01 +01:00
|
|
|
logService,
|
2023-05-02 18:46:03 +02:00
|
|
|
auditService,
|
|
|
|
dialogService
|
2021-10-21 11:10:46 +02:00
|
|
|
);
|
2018-04-04 16:08:30 +02:00
|
|
|
}
|
|
|
|
}
|