import * as i2 from '@acorex/components/button';
import { AXButtonModule } from '@acorex/components/button';
import { AXCheckBoxModule } from '@acorex/components/check-box';
import * as i1 from '@acorex/components/form';
import { AXFormModule } from '@acorex/components/form';
import * as i7 from '@acorex/components/label';
import { AXLabelModule } from '@acorex/components/label';
import { AXPasswordBoxModule } from '@acorex/components/password-box';
import * as i4 from '@acorex/components/text-box';
import { AXTextBoxModule } from '@acorex/components/text-box';
import * as i5 from '@acorex/core/translation';
import { AXTranslationModule } from '@acorex/core/translation';
import * as i1$2 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i0 from '@angular/core';
import { inject, Component } from '@angular/core';
import * as i1$1 from '@angular/router';
import { RouterModule } from '@angular/router';
import { A as AXM_AUTH_CONFIG_TOKEN, a as AXMAuthenticationTypes } from './acorex-modules-auth-acorex-modules-auth-D1GLmcE-.mjs';

const MODULES = [
    CommonModule,
    AXFormModule,
    AXTextBoxModule,
    AXPasswordBoxModule,
    AXButtonModule,
    AXLabelModule,
    AXCheckBoxModule,
    AXTranslationModule,
    RouterModule,
];
class AXPForgetPasswordComponent {
    constructor() {
        this.configs = inject(AXM_AUTH_CONFIG_TOKEN);
    }
    ngOnInit() {
        this.l2 = 'password';
        switch (this.configs.type) {
            case AXMAuthenticationTypes.EmailPassword:
                this.l1 = 'email';
                break;
            case AXMAuthenticationTypes.MobilePassword:
                this.l1 = 'mobile';
                break;
            case AXMAuthenticationTypes.UsernamePassword:
            default:
                this.l1 = 'username';
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPForgetPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: AXPForgetPasswordComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"ax-text-center ax-mb-4\" *translate=\"let t\">\n  <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">{{ '@auth:forgot.password' | translate | async }}</h1>\n  <p class=\"ax-text-base ax-text-neutral-600\">\n    {{ '@auth:forgot.hint' | translate | async }}\n  </p>\n</div>\n<div class=\"ax-w-80 lg:ax-w-96\" *translate=\"let t\">\n  <ax-form>\n    <div class=\"ax-flex ax-flex-col ax-gap-6\">\n      <ax-form-field>\n        <ax-label>{{ '@auth:username-email' | translate | async }}</ax-label>\n        <ax-text-box></ax-text-box>\n      </ax-form-field>\n    </div>\n    <ax-button color=\"primary\" class=\"ax-mt-6 ax-w-full\" [text]=\"'@auth:forgot.submit' | translate | async\"></ax-button>\n    <div class=\"ax-text-center ax-mt-6 ax-text-sm ax-font-normal\">\n      <span> {{ '@auth:forgot.remember' | translate | async }} </span>\n      <a [routerLink]=\"['/auth/login']\" class=\"ax-links ax-font-semibold\">{{\n        '@auth:signin.title' | translate | async\n      }}</a>\n    </div>\n  </ax-form>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i7.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i5.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.AXTranslatorPipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPForgetPasswordComponent, decorators: [{
            type: Component,
            args: [{ imports: [...MODULES], template: "<div class=\"ax-text-center ax-mb-4\" *translate=\"let t\">\n  <h1 class=\"ax-font-bold ax-text-xl ax-mb-2\">{{ '@auth:forgot.password' | translate | async }}</h1>\n  <p class=\"ax-text-base ax-text-neutral-600\">\n    {{ '@auth:forgot.hint' | translate | async }}\n  </p>\n</div>\n<div class=\"ax-w-80 lg:ax-w-96\" *translate=\"let t\">\n  <ax-form>\n    <div class=\"ax-flex ax-flex-col ax-gap-6\">\n      <ax-form-field>\n        <ax-label>{{ '@auth:username-email' | translate | async }}</ax-label>\n        <ax-text-box></ax-text-box>\n      </ax-form-field>\n    </div>\n    <ax-button color=\"primary\" class=\"ax-mt-6 ax-w-full\" [text]=\"'@auth:forgot.submit' | translate | async\"></ax-button>\n    <div class=\"ax-text-center ax-mt-6 ax-text-sm ax-font-normal\">\n      <span> {{ '@auth:forgot.remember' | translate | async }} </span>\n      <a [routerLink]=\"['/auth/login']\" class=\"ax-links ax-font-semibold\">{{\n        '@auth:signin.title' | translate | async\n      }}</a>\n    </div>\n  </ax-form>\n</div>\n" }]
        }] });

export { AXPForgetPasswordComponent };
//# sourceMappingURL=acorex-modules-auth-password.component-C-aos_5o.mjs.map
