import * as i0 from '@angular/core';
import { Component, Input, NgModule } from '@angular/core';
import '@angular/forms';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import * as i2 from '@aztrix/icons';
import { IconsModule } from '@aztrix/icons';
import * as i3 from '@aztrix/helpers';
import { HelperPipesModule } from '@aztrix/helpers';

class LoginValueFormErrorComponent {
    get errorTypes() {
        return Object.keys(this.form?.errors || {});
    }
}
LoginValueFormErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
LoginValueFormErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: LoginValueFormErrorComponent, selector: "ax-login-value-form-error", inputs: { form: "form", propertyType: "propertyType" }, ngImport: i0, template: "<div class=\"c-property-edit__error\" *ngIf=\"errorTypes.length\">\n  <ax-icon class=\"icon\" name=\"alert-circle\"></ax-icon>\n  <span>{{\n    errorTypes[0]\n      | errorTranslationKey: propertyType\n      | translate: {propertyType: ('property.' + propertyType + '.label' | translate)}\n  }}</span>\n</div>\n", styles: [".icon{width:.75rem;height:.75rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "pipe", type: i3.ErrorTranslationKeyPipe, name: "errorTranslationKey" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-login-value-form-error', template: "<div class=\"c-property-edit__error\" *ngIf=\"errorTypes.length\">\n  <ax-icon class=\"icon\" name=\"alert-circle\"></ax-icon>\n  <span>{{\n    errorTypes[0]\n      | errorTranslationKey: propertyType\n      | translate: {propertyType: ('property.' + propertyType + '.label' | translate)}\n  }}</span>\n</div>\n", styles: [".icon{width:.75rem;height:.75rem}\n"] }]
        }], propDecorators: { form: [{
                type: Input
            }], propertyType: [{
                type: Input
            }] } });

class LoginValueFormErrorModule {
}
LoginValueFormErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
LoginValueFormErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorModule, declarations: [LoginValueFormErrorComponent], imports: [CommonModule, IconsModule, HelperPipesModule], exports: [LoginValueFormErrorComponent] });
LoginValueFormErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorModule, imports: [CommonModule, IconsModule, HelperPipesModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: LoginValueFormErrorModule, decorators: [{
            type: NgModule,
            args: [{
                    declarations: [LoginValueFormErrorComponent],
                    imports: [CommonModule, IconsModule, HelperPipesModule],
                    exports: [LoginValueFormErrorComponent],
                }]
        }] });

/**
 * Generated bundle index. Do not edit.
 */

export { LoginValueFormErrorComponent, LoginValueFormErrorModule };
//# sourceMappingURL=aztrix-components-login-value-form-error.mjs.map
//# sourceMappingURL=aztrix-components-login-value-form-error.mjs.map
