import { ConfigState, SessionState, GetAppConfiguration, RestService, DynamicLayoutComponent, ChangePassword, GetProfile, UpdateProfile, ProfileState, SetTenant, CoreModule } from '@abp/ng.core';
import { ToasterService, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared';
import { Component, Optional, Inject, Injectable, ɵɵdefineInjectable, ɵɵinject, NgModule, InjectionToken, Input } from '@angular/core';
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
import { validatePassword, comparePasswords, NgxValidateCoreModule } from '@ngx-validate/core';
import { TableModule } from 'primeng/table';
import { RouterModule } from '@angular/router';
import { __assign, __read, __decorate, __metadata } from 'tslib';
import { Validators, FormBuilder } from '@angular/forms';
import { Navigate } from '@ngxs/router-plugin';
import { Store, Select } from '@ngxs/store';
import { OAuthService } from 'angular-oauth2-oidc';
import { from, throwError, Observable } from 'rxjs';
import { switchMap, tap, catchError, finalize, take, withLatestFrom } from 'rxjs/operators';
import snq from 'snq';
import { HttpHeaders } from '@angular/common/http';
import { trigger, transition, useAnimation } from '@angular/animations';
/**
* @fileoverview added by tsickle
* Generated from: lib/components/login/login.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var maxLength = Validators.maxLength, minLength = Validators.minLength, required = Validators.required;
var LoginComponent = /** @class */ (function () {
function LoginComponent(fb, oauthService, store, toasterService, options) {
this.fb = fb;
this.oauthService = oauthService;
this.store = store;
this.toasterService = toasterService;
this.options = options;
this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);
this.oauthService.loadDiscoveryDocument();
this.form = this.fb.group({
username: ['', [required, maxLength(255)]],
password: ['', [required, maxLength(32)]],
remember: [false],
});
}
/**
* @return {?}
*/
LoginComponent.prototype.onSubmit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
// this.oauthService.setStorage(this.form.value.remember ? localStorage : sessionStorage);
this.inProgress = true;
/** @type {?} */
var tenant = this.store.selectSnapshot(SessionState.getTenant);
from(this.oauthService.fetchTokenUsingPasswordFlow(this.form.get('username').value, this.form.get('password').value, new HttpHeaders(__assign({}, (tenant && tenant.id && { __tenant: tenant.id })))))
.pipe(switchMap((/**
* @return {?}
*/
function () { return _this.store.dispatch(new GetAppConfiguration()); })), tap((/**
* @return {?}
*/
function () {
/** @type {?} */
var redirectUrl = snq((/**
* @return {?}
*/
function () { return window.history.state; })).redirectUrl || (_this.options || {}).redirectUrl || '/';
_this.store.dispatch(new Navigate([redirectUrl]));
})), catchError((/**
* @param {?} err
* @return {?}
*/
function (err) {
_this.toasterService.error(snq((/**
* @return {?}
*/
function () { return err.error.error_description; })) ||
snq((/**
* @return {?}
*/
function () { return err.error.error.message; }), 'AbpAccount::DefaultErrorMessage'), 'Error', { life: 7000 });
return throwError(err);
})), finalize((/**
* @return {?}
*/
function () { return (_this.inProgress = false); })))
.subscribe();
};
LoginComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-login',
template: "\r\n \r\n {{ 'AbpAccount::Login' | abpLocalization }}
\r\n \r\n {{ 'AbpAccount::AreYouANewUser' | abpLocalization }}\r\n {{ 'AbpAccount::Register' | abpLocalization }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n"
}] }
];
/** @nocollapse */
LoginComponent.ctorParameters = function () { return [
{ type: FormBuilder },
{ type: OAuthService },
{ type: Store },
{ type: ToasterService },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: ['ACCOUNT_OPTIONS',] }] }
]; };
return LoginComponent;
}());
if (false) {
/** @type {?} */
LoginComponent.prototype.form;
/** @type {?} */
LoginComponent.prototype.inProgress;
/**
* @type {?}
* @private
*/
LoginComponent.prototype.fb;
/**
* @type {?}
* @private
*/
LoginComponent.prototype.oauthService;
/**
* @type {?}
* @private
*/
LoginComponent.prototype.store;
/**
* @type {?}
* @private
*/
LoginComponent.prototype.toasterService;
/**
* @type {?}
* @private
*/
LoginComponent.prototype.options;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/components/manage-profile/manage-profile.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ManageProfileComponent = /** @class */ (function () {
function ManageProfileComponent() {
this.selectedTab = 0;
}
ManageProfileComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-manage-profile',
template: "
\r\n\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ 'AbpIdentity::ChangePassword' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {{ 'AbpIdentity::PersonalSettings' | abpLocalization }}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n",
animations: [trigger('fadeIn', [transition(':enter', useAnimation(fadeIn))])]
}] }
];
return ManageProfileComponent;
}());
if (false) {
/** @type {?} */
ManageProfileComponent.prototype.selectedTab;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/services/account.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AccountService = /** @class */ (function () {
function AccountService(rest) {
this.rest = rest;
}
/**
* @param {?} tenantName
* @return {?}
*/
AccountService.prototype.findTenant = /**
* @param {?} tenantName
* @return {?}
*/
function (tenantName) {
/** @type {?} */
var request = {
method: 'GET',
url: "/api/abp/multi-tenancy/tenants/by-name/" + tenantName,
};
return this.rest.request(request);
};
/**
* @param {?} body
* @return {?}
*/
AccountService.prototype.register = /**
* @param {?} body
* @return {?}
*/
function (body) {
/** @type {?} */
var request = {
method: 'POST',
url: '/api/account/register',
body: body,
};
return this.rest.request(request, { skipHandleError: true });
};
AccountService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root',
},] }
];
/** @nocollapse */
AccountService.ctorParameters = function () { return [
{ type: RestService }
]; };
/** @nocollapse */ AccountService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(ɵɵinject(RestService)); }, token: AccountService, providedIn: "root" });
return AccountService;
}());
if (false) {
/**
* @type {?}
* @private
*/
AccountService.prototype.rest;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/components/register/register.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var maxLength$1 = Validators.maxLength, minLength$1 = Validators.minLength, required$1 = Validators.required, email = Validators.email;
var RegisterComponent = /** @class */ (function () {
function RegisterComponent(fb, accountService, oauthService, store, toasterService) {
this.fb = fb;
this.accountService = accountService;
this.oauthService = oauthService;
this.store = store;
this.toasterService = toasterService;
this.oauthService.configure(this.store.selectSnapshot(ConfigState.getOne('environment')).oAuthConfig);
this.oauthService.loadDiscoveryDocument();
}
/**
* @return {?}
*/
RegisterComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
/** @type {?} */
var passwordRules = this.store.selectSnapshot(ConfigState.getSettings('Identity.Password'));
/** @type {?} */
var passwordRulesArr = (/** @type {?} */ ([]));
/** @type {?} */
var requiredLength = 1;
if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('number');
}
if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('small');
}
if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('capital');
}
if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {
passwordRulesArr.push('special');
}
if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {
requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];
}
this.form = this.fb.group({
username: ['', [required$1, maxLength$1(255)]],
password: ['', [required$1, validatePassword(passwordRulesArr), minLength$1(requiredLength), maxLength$1(32)]],
email: ['', [required$1, email]],
});
};
/**
* @return {?}
*/
RegisterComponent.prototype.onSubmit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
this.inProgress = true;
/** @type {?} */
var newUser = (/** @type {?} */ ({
userName: this.form.get('username').value,
password: this.form.get('password').value,
emailAddress: this.form.get('email').value,
appName: 'Angular',
}));
this.accountService
.register(newUser)
.pipe(switchMap((/**
* @return {?}
*/
function () { return from(_this.oauthService.fetchTokenUsingPasswordFlow(newUser.userName, newUser.password)); })), switchMap((/**
* @return {?}
*/
function () { return _this.store.dispatch(new GetAppConfiguration()); })), tap((/**
* @return {?}
*/
function () { return _this.store.dispatch(new Navigate(['/'])); })), take(1), catchError((/**
* @param {?} err
* @return {?}
*/
function (err) {
_this.toasterService.error(snq((/**
* @return {?}
*/
function () { return err.error.error_description; })) ||
snq((/**
* @return {?}
*/
function () { return err.error.error.message; }), 'AbpAccount::DefaultErrorMessage'), 'Error', { life: 7000 });
return throwError(err);
})), finalize((/**
* @return {?}
*/
function () { return (_this.inProgress = false); })))
.subscribe();
};
RegisterComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-register',
template: "\r\n \r\n {{ 'AbpAccount::Register' | abpLocalization }}
\r\n \r\n {{ 'AbpAccount::AlreadyRegistered' | abpLocalization }}\r\n {{ 'AbpAccount::Login' | abpLocalization }}\r\n \r\n \r\n \r\n\r\n"
}] }
];
/** @nocollapse */
RegisterComponent.ctorParameters = function () { return [
{ type: FormBuilder },
{ type: AccountService },
{ type: OAuthService },
{ type: Store },
{ type: ToasterService }
]; };
return RegisterComponent;
}());
if (false) {
/** @type {?} */
RegisterComponent.prototype.form;
/** @type {?} */
RegisterComponent.prototype.inProgress;
/**
* @type {?}
* @private
*/
RegisterComponent.prototype.fb;
/**
* @type {?}
* @private
*/
RegisterComponent.prototype.accountService;
/**
* @type {?}
* @private
*/
RegisterComponent.prototype.oauthService;
/**
* @type {?}
* @private
*/
RegisterComponent.prototype.store;
/**
* @type {?}
* @private
*/
RegisterComponent.prototype.toasterService;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/account-routing.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var routes = [
{ path: '', pathMatch: 'full', redirectTo: 'login' },
{
path: '',
component: DynamicLayoutComponent,
children: [
{ path: 'login', component: LoginComponent },
{ path: 'register', component: RegisterComponent },
{
path: 'manage-profile',
component: ManageProfileComponent,
},
],
},
];
var AccountRoutingModule = /** @class */ (function () {
function AccountRoutingModule() {
}
AccountRoutingModule.decorators = [
{ type: NgModule, args: [{
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
},] }
];
return AccountRoutingModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: lib/components/change-password/change-password.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var minLength$2 = Validators.minLength, required$2 = Validators.required, maxLength$2 = Validators.maxLength;
/** @type {?} */
var PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword'];
var ChangePasswordComponent = /** @class */ (function () {
function ChangePasswordComponent(fb, store, toasterService) {
this.fb = fb;
this.store = store;
this.toasterService = toasterService;
this.mapErrorsFn = (/**
* @param {?} errors
* @param {?} groupErrors
* @param {?} control
* @return {?}
*/
function (errors, groupErrors, control) {
if (PASSWORD_FIELDS.indexOf(control.name) < 0)
return errors;
return errors.concat(groupErrors.filter((/**
* @param {?} __0
* @return {?}
*/
function (_a) {
var key = _a.key;
return key === 'passwordMismatch';
})));
});
}
/**
* @return {?}
*/
ChangePasswordComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
/** @type {?} */
var passwordRules = this.store.selectSnapshot(ConfigState.getSettings('Identity.Password'));
/** @type {?} */
var passwordRulesArr = (/** @type {?} */ ([]));
/** @type {?} */
var requiredLength = 1;
if ((passwordRules['Abp.Identity.Password.RequireDigit'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('number');
}
if ((passwordRules['Abp.Identity.Password.RequireLowercase'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('small');
}
if ((passwordRules['Abp.Identity.Password.RequireUppercase'] || '').toLowerCase() === 'true') {
passwordRulesArr.push('capital');
}
if (+(passwordRules['Abp.Identity.Password.RequiredUniqueChars'] || 0) > 0) {
passwordRulesArr.push('special');
}
if (Number.isInteger(+passwordRules['Abp.Identity.Password.RequiredLength'])) {
requiredLength = +passwordRules['Abp.Identity.Password.RequiredLength'];
}
this.form = this.fb.group({
password: ['', required$2],
newPassword: [
'',
{
validators: [required$2, validatePassword(passwordRulesArr), minLength$2(requiredLength), maxLength$2(32)],
},
],
repeatNewPassword: [
'',
{ validators: [required$2, validatePassword(passwordRulesArr), minLength$2(requiredLength), maxLength$2(32)] },
],
}, {
validators: [comparePasswords(PASSWORD_FIELDS)],
});
};
/**
* @return {?}
*/
ChangePasswordComponent.prototype.onSubmit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
this.inProgress = true;
this.store
.dispatch(new ChangePassword({
currentPassword: this.form.get('password').value,
newPassword: this.form.get('newPassword').value,
}))
.pipe(finalize((/**
* @return {?}
*/
function () { return (_this.inProgress = false); })))
.subscribe({
next: (/**
* @return {?}
*/
function () {
_this.form.reset();
_this.toasterService.success('AbpAccount::PasswordChangedMessage', 'Success', { life: 5000 });
}),
error: (/**
* @param {?} err
* @return {?}
*/
function (err) {
_this.toasterService.error(snq((/**
* @return {?}
*/
function () { return err.error.error.message; }), 'AbpAccount::DefaultErrorMessage'), 'Error', {
life: 7000,
});
}),
});
};
ChangePasswordComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-change-password-form',
template: "\r\n"
}] }
];
/** @nocollapse */
ChangePasswordComponent.ctorParameters = function () { return [
{ type: FormBuilder },
{ type: Store },
{ type: ToasterService }
]; };
return ChangePasswordComponent;
}());
if (false) {
/** @type {?} */
ChangePasswordComponent.prototype.form;
/** @type {?} */
ChangePasswordComponent.prototype.inProgress;
/** @type {?} */
ChangePasswordComponent.prototype.mapErrorsFn;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.fb;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.store;
/**
* @type {?}
* @private
*/
ChangePasswordComponent.prototype.toasterService;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/components/personal-settings/personal-settings.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var maxLength$3 = Validators.maxLength, required$3 = Validators.required, email$1 = Validators.email;
var PersonalSettingsComponent = /** @class */ (function () {
function PersonalSettingsComponent(fb, store, toasterService) {
this.fb = fb;
this.store = store;
this.toasterService = toasterService;
}
/**
* @return {?}
*/
PersonalSettingsComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.buildForm();
};
/**
* @return {?}
*/
PersonalSettingsComponent.prototype.buildForm = /**
* @return {?}
*/
function () {
var _this = this;
this.store
.dispatch(new GetProfile())
.pipe(withLatestFrom(this.profile$), take(1))
.subscribe((/**
* @param {?} __0
* @return {?}
*/
function (_a) {
var _b = __read(_a, 2), profile = _b[1];
_this.form = _this.fb.group({
userName: [profile.userName, [required$3, maxLength$3(256)]],
email: [profile.email, [required$3, email$1, maxLength$3(256)]],
name: [profile.name || '', [maxLength$3(64)]],
surname: [profile.surname || '', [maxLength$3(64)]],
phoneNumber: [profile.phoneNumber || '', [maxLength$3(16)]],
});
}));
};
/**
* @return {?}
*/
PersonalSettingsComponent.prototype.submit = /**
* @return {?}
*/
function () {
var _this = this;
if (this.form.invalid)
return;
this.inProgress = true;
this.store
.dispatch(new UpdateProfile(this.form.value))
.pipe(finalize((/**
* @return {?}
*/
function () { return (_this.inProgress = false); })))
.subscribe((/**
* @return {?}
*/
function () {
_this.toasterService.success('AbpAccount::PersonalSettingsSaved', 'Success', { life: 5000 });
}));
};
PersonalSettingsComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-personal-settings-form',
template: "\r\n"
}] }
];
/** @nocollapse */
PersonalSettingsComponent.ctorParameters = function () { return [
{ type: FormBuilder },
{ type: Store },
{ type: ToasterService }
]; };
__decorate([
Select(ProfileState.getProfile),
__metadata("design:type", Observable)
], PersonalSettingsComponent.prototype, "profile$", void 0);
return PersonalSettingsComponent;
}());
if (false) {
/** @type {?} */
PersonalSettingsComponent.prototype.profile$;
/** @type {?} */
PersonalSettingsComponent.prototype.form;
/** @type {?} */
PersonalSettingsComponent.prototype.inProgress;
/**
* @type {?}
* @private
*/
PersonalSettingsComponent.prototype.fb;
/**
* @type {?}
* @private
*/
PersonalSettingsComponent.prototype.store;
/**
* @type {?}
* @private
*/
PersonalSettingsComponent.prototype.toasterService;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/components/tenant-box/tenant-box.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var TenantBoxComponent = /** @class */ (function () {
function TenantBoxComponent(store, toasterService, accountService) {
this.store = store;
this.toasterService = toasterService;
this.accountService = accountService;
this.tenant = (/** @type {?} */ ({}));
}
/**
* @return {?}
*/
TenantBoxComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.tenant = this.store.selectSnapshot(SessionState.getTenant) || ((/** @type {?} */ ({})));
this.tenantName = this.tenant.name || '';
};
/**
* @return {?}
*/
TenantBoxComponent.prototype.onSwitch = /**
* @return {?}
*/
function () {
this.isModalVisible = true;
};
/**
* @return {?}
*/
TenantBoxComponent.prototype.save = /**
* @return {?}
*/
function () {
var _this = this;
if (this.tenant.name && !this.inProgress) {
this.inProgress = true;
this.accountService
.findTenant(this.tenant.name)
.pipe(finalize((/**
* @return {?}
*/
function () { return (_this.inProgress = false); })), take(1), catchError((/**
* @param {?} err
* @return {?}
*/
function (err) {
_this.toasterService.error(snq((/**
* @return {?}
*/
function () { return err.error.error_description; }), 'AbpUi::DefaultErrorMessage'), 'AbpUi::Error');
return throwError(err);
})))
.subscribe((/**
* @param {?} __0
* @return {?}
*/
function (_a) {
var success = _a.success, tenantId = _a.tenantId;
if (success) {
_this.tenant = {
id: tenantId,
name: _this.tenant.name,
};
_this.tenantName = _this.tenant.name;
_this.isModalVisible = false;
}
else {
_this.toasterService.error('AbpUiMultiTenancy::GivenTenantIsNotAvailable', 'AbpUi::Error', {
messageLocalizationParams: [_this.tenant.name],
});
_this.tenant = (/** @type {?} */ ({}));
}
_this.store.dispatch(new SetTenant(success ? _this.tenant : null));
}));
}
else {
this.store.dispatch(new SetTenant(null));
this.tenantName = null;
this.isModalVisible = false;
}
};
TenantBoxComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-tenant-box',
template: "\r\n
\r\n
\r\n
\r\n {{\r\n 'AbpUiMultiTenancy::Tenant' | abpLocalization\r\n }}
\r\n
\r\n \r\n {{ tenantName || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n \r\n Switch Tenant
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ 'AbpTenantManagement::Save' | abpLocalization }}\r\n \r\n \r\n\r\n"
}] }
];
/** @nocollapse */
TenantBoxComponent.ctorParameters = function () { return [
{ type: Store },
{ type: ToasterService },
{ type: AccountService }
]; };
return TenantBoxComponent;
}());
if (false) {
/** @type {?} */
TenantBoxComponent.prototype.tenant;
/** @type {?} */
TenantBoxComponent.prototype.tenantName;
/** @type {?} */
TenantBoxComponent.prototype.isModalVisible;
/** @type {?} */
TenantBoxComponent.prototype.inProgress;
/**
* @type {?}
* @private
*/
TenantBoxComponent.prototype.store;
/**
* @type {?}
* @private
*/
TenantBoxComponent.prototype.toasterService;
/**
* @type {?}
* @private
*/
TenantBoxComponent.prototype.accountService;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/tokens/options.token.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} options
* @return {?}
*/
function optionsFactory(options) {
return __assign({ redirectUrl: '/' }, options);
}
/** @type {?} */
var ACCOUNT_OPTIONS = new InjectionToken('ACCOUNT_OPTIONS');
/**
* @fileoverview added by tsickle
* Generated from: lib/components/auth-wrapper/auth-wrapper.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AuthWrapperComponent = /** @class */ (function () {
function AuthWrapperComponent() {
}
AuthWrapperComponent.decorators = [
{ type: Component, args: [{
selector: 'abp-auth-wrapper',
template: "\r\n"
}] }
];
AuthWrapperComponent.propDecorators = {
mainContentRef: [{ type: Input }],
cancelContentRef: [{ type: Input }]
};
return AuthWrapperComponent;
}());
if (false) {
/** @type {?} */
AuthWrapperComponent.prototype.mainContentRef;
/** @type {?} */
AuthWrapperComponent.prototype.cancelContentRef;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/account.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AccountModule = /** @class */ (function () {
function AccountModule() {
}
AccountModule.decorators = [
{ type: NgModule, args: [{
declarations: [
AuthWrapperComponent,
LoginComponent,
RegisterComponent,
TenantBoxComponent,
ChangePasswordComponent,
ManageProfileComponent,
PersonalSettingsComponent,
],
imports: [CoreModule, AccountRoutingModule, ThemeSharedModule, TableModule, NgbDropdownModule, NgxValidateCoreModule],
exports: [],
},] }
];
return AccountModule;
}());
/**
*
* @deprecated since version 0.9
* @param {?=} options
* @return {?}
*/
function AccountProviders(options) {
if (options === void 0) { options = (/** @type {?} */ ({})); }
return [
{ provide: ACCOUNT_OPTIONS, useValue: options },
{
provide: 'ACCOUNT_OPTIONS',
useFactory: optionsFactory,
deps: [ACCOUNT_OPTIONS],
},
];
}
/**
* @fileoverview added by tsickle
* Generated from: lib/components/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: lib/constants/routes.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
*
* @deprecated since version 0.9
* @type {?}
*/
var ACCOUNT_ROUTES = {
routes: (/** @type {?} */ ([
{
name: 'Account',
path: 'account',
invisible: true,
layout: "application" /* application */,
children: [{ path: 'login', name: 'Login', order: 1 }, { path: 'register', name: 'Register', order: 2 }],
},
])),
};
/**
* @fileoverview added by tsickle
* Generated from: lib/tokens/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: lib/models/options.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function Options() { }
if (false) {
/** @type {?|undefined} */
Options.prototype.redirectUrl;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/models/user.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function RegisterRequest() { }
if (false) {
/** @type {?} */
RegisterRequest.prototype.userName;
/** @type {?} */
RegisterRequest.prototype.emailAddress;
/** @type {?} */
RegisterRequest.prototype.password;
/** @type {?|undefined} */
RegisterRequest.prototype.appName;
}
/**
* @record
*/
function RegisterResponse() { }
if (false) {
/** @type {?} */
RegisterResponse.prototype.tenantId;
/** @type {?} */
RegisterResponse.prototype.userName;
/** @type {?} */
RegisterResponse.prototype.name;
/** @type {?} */
RegisterResponse.prototype.surname;
/** @type {?} */
RegisterResponse.prototype.email;
/** @type {?} */
RegisterResponse.prototype.emailConfirmed;
/** @type {?} */
RegisterResponse.prototype.phoneNumber;
/** @type {?} */
RegisterResponse.prototype.phoneNumberConfirmed;
/** @type {?} */
RegisterResponse.prototype.twoFactorEnabled;
/** @type {?} */
RegisterResponse.prototype.lockoutEnabled;
/** @type {?} */
RegisterResponse.prototype.lockoutEnd;
/** @type {?} */
RegisterResponse.prototype.concurrencyStamp;
/** @type {?} */
RegisterResponse.prototype.isDeleted;
/** @type {?} */
RegisterResponse.prototype.deleterId;
/** @type {?} */
RegisterResponse.prototype.deletionTime;
/** @type {?} */
RegisterResponse.prototype.lastModificationTime;
/** @type {?} */
RegisterResponse.prototype.lastModifierId;
/** @type {?} */
RegisterResponse.prototype.creationTime;
/** @type {?} */
RegisterResponse.prototype.creatorId;
/** @type {?} */
RegisterResponse.prototype.id;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/models/tenant.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function TenantIdResponse() { }
if (false) {
/** @type {?} */
TenantIdResponse.prototype.success;
/** @type {?} */
TenantIdResponse.prototype.tenantId;
}
/**
* @fileoverview added by tsickle
* Generated from: lib/models/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: public-api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: abp-ng.account.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { ACCOUNT_OPTIONS, ACCOUNT_ROUTES, AccountModule, AccountProviders, ChangePasswordComponent, LoginComponent, ManageProfileComponent, PersonalSettingsComponent, RegisterComponent, optionsFactory, AuthWrapperComponent as ɵa, LoginComponent as ɵb, RegisterComponent as ɵd, AccountService as ɵe, TenantBoxComponent as ɵf, ChangePasswordComponent as ɵg, ManageProfileComponent as ɵh, PersonalSettingsComponent as ɵi, AccountRoutingModule as ɵj, optionsFactory as ɵk, ACCOUNT_OPTIONS as ɵl };
//# sourceMappingURL=abp-ng.account.js.map