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 || {});
    }
}
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
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9naW4tdmFsdWUtZm9ybS1lcnJvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbG9naW4tdmFsdWUtZm9ybS1lcnJvci9sb2dpbi12YWx1ZS1mb3JtLWVycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9sb2dpbi12YWx1ZS1mb3JtLWVycm9yL2xvZ2luLXZhbHVlLWZvcm0tZXJyb3IuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLGVBQWUsRUFBQyxNQUFNLGdCQUFnQixDQUFDOzs7OztBQU8vQyxNQUFNLE9BQU8sNEJBQTRCO0lBSXZDLElBQUksVUFBVTtRQUNaLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE1BQU0sSUFBSSxFQUFFLENBQUMsQ0FBQztJQUM5QyxDQUFDOzt5SEFOVSw0QkFBNEI7NkdBQTVCLDRCQUE0Qix5SENSekMseVRBUUE7MkZEQWEsNEJBQTRCO2tCQUx4QyxTQUFTOytCQUNFLDJCQUEyQjs4QkFLNUIsSUFBSTtzQkFBWixLQUFLO2dCQUNHLFlBQVk7c0JBQXBCLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbXBvbmVudCwgSW5wdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHtBYnN0cmFjdENvbnRyb2x9IGZyb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