import { Component, Input } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class NameFormErrorComponent {
    constructor() {
        this.isSubmitted = false;
        this.control = null;
    }
}
NameFormErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NameFormErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
NameFormErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NameFormErrorComponent, selector: "epom-name-form-error", inputs: { isSubmitted: "isSubmitted", control: "control" }, ngImport: i0, template: "<section *ngIf=\"control?.errors && isSubmitted\" class=\"error-block\" [attr.data-qa]=\"'nameErrorMessage'\">\n  <div *ngIf=\"control?.errors['required']\">Field is required.</div>\n  <div *ngIf=\"control?.errors['maxlength']\">\n    Error: no more than {{ control?.errors['maxlength']?.requiredLength }} characters.\n  </div>\n</section>\n", styles: [".error-block{font-size:12px;line-height:18px;color:var(--error-default-color);margin-top:4px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NameFormErrorComponent, decorators: [{
            type: Component,
            args: [{ selector: 'epom-name-form-error', template: "<section *ngIf=\"control?.errors && isSubmitted\" class=\"error-block\" [attr.data-qa]=\"'nameErrorMessage'\">\n  <div *ngIf=\"control?.errors['required']\">Field is required.</div>\n  <div *ngIf=\"control?.errors['maxlength']\">\n    Error: no more than {{ control?.errors['maxlength']?.requiredLength }} characters.\n  </div>\n</section>\n", styles: [".error-block{font-size:12px;line-height:18px;color:var(--error-default-color);margin-top:4px}\n"] }]
        }], propDecorators: { isSubmitted: [{
                type: Input
            }], control: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF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