import { Component, Input } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/icons";
import * as i3 from "@aztrix/helpers";
export class LoginValueFormErrorComponent {
    get errorTypes() {
        return Object.keys(this.form?.errors || {});
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoginValueFormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", 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: "17.3.12", 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
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4tdmFsdWUtZm9ybS1lcnJvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbG9naW4tdmFsdWUtZm9ybS1lcnJvci9sb2dpbi12YWx1ZS1mb3JtLWVycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9sb2dpbi12YWx1ZS1mb3JtLWVycm9yL2xvZ2luLXZhbHVlLWZvcm0tZXJyb3IuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7OztBQVEvQyxNQUFNLE9BQU8sNEJBQTRCO0lBSXZDLElBQUksVUFBVTtRQUNaLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE1BQU0sSUFBSSxFQUFFLENBQUMsQ0FBQztJQUM5QyxDQUFDOytHQU5VLDRCQUE0QjttR0FBNUIsNEJBQTRCLHlIQ1R6Qyx5VEFRQTs7NEZEQ2EsNEJBQTRCO2tCQUx4QyxTQUFTOytCQUNFLDJCQUEyQjs4QkFLNUIsSUFBSTtzQkFBWixLQUFLO2dCQUNHLFlBQVk7c0JBQXBCLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbXBvbmVudCwgSW5wdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtBYnN0cmFjdENvbnRyb2x9IGZyb20gJ0Bhbm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