import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@seniorsistemas/angular-components/text-area-ia";
import * as i3 from "../../../components/field-label/field-label.component";
export class TextAreaIAFieldComponent {
    field;
    formControl;
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextAreaIAFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TextAreaIAFieldComponent, selector: "ng-component", inputs: { field: "field", formControl: "formControl" }, ngImport: i0, template: "@if (textAreaIA.textArea()?.renderTextArea) {\n    <s-field-label\n        [field]=\"field\"\n        [fieldContainerRef]=\"textAreaIA.textArea()?.textAreaElement?.nativeElement\"\n    ></s-field-label>\n}\n\n<s-text-area-ia\n    #textAreaIA\n    [rows]=\"field.rows ?? 5\"\n    [formControl]=\"formControl\"\n    [id]=\"field.name\"\n    [readonly]=\"field.readonly ? field.readonly() : false\"\n    [prompt]=\"field.prompt ?? ''\"\n    [placeholder]=\"field.placeholder ?? ''\"\n    [label]=\"field.label\"\n    [speechRecognition]=\"field.speechRecognition\"\n    [keepContext]=\"field.keepContext\"\n    [speechRecognitionPlaceholder]=\"field.speechRecognitionPlaceholder\"\n    [maxLength]=\"field.maxLength\"\n></s-text-area-ia>\n", styles: [".footer-content{display:flex;flex-grow:0}.textarea-ia{display:flex;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.TextAreaIAComponent, selector: "s-text-area-ia", inputs: ["id", "label", "placeholder", "prompt", "readonly", "rows", "cols", "speechRecognition", "keepContext", "speechRecognitionPlaceholder", "maxLength"] }, { kind: "component", type: i3.FieldLabelComponent, selector: "s-field-label", inputs: ["field", "fieldContainerRef"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextAreaIAFieldComponent, decorators: [{
            type: Component,
            args: [{ template: "@if (textAreaIA.textArea()?.renderTextArea) {\n    <s-field-label\n        [field]=\"field\"\n        [fieldContainerRef]=\"textAreaIA.textArea()?.textAreaElement?.nativeElement\"\n    ></s-field-label>\n}\n\n<s-text-area-ia\n    #textAreaIA\n    [rows]=\"field.rows ?? 5\"\n    [formControl]=\"formControl\"\n    [id]=\"field.name\"\n    [readonly]=\"field.readonly ? field.readonly() : false\"\n    [prompt]=\"field.prompt ?? ''\"\n    [placeholder]=\"field.placeholder ?? ''\"\n    [label]=\"field.label\"\n    [speechRecognition]=\"field.speechRecognition\"\n    [keepContext]=\"field.keepContext\"\n    [speechRecognitionPlaceholder]=\"field.speechRecognitionPlaceholder\"\n    [maxLength]=\"field.maxLength\"\n></s-text-area-ia>\n", styles: [".footer-content{display:flex;flex-grow:0}.textarea-ia{display:flex;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}\n"] }]
        }], propDecorators: { field: [{
                type: Input,
                args: [{ required: true }]
            }], formControl: [{
                type: Input,
                args: [{ required: true }]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC1hcmVhLWlhLWZpZWxkLmNvbXBvbmV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