import { Component, input } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { FieldLabelComponent } from '../../../components/field-label/field-label.component';
import { ProfilePicturePickerModule } from '@seniorsistemas/angular-components/profile-picture-picker';
import * as i0 from "@angular/core";
import * as i1 from "@seniorsistemas/angular-components/profile-picture-picker";
import * as i2 from "@angular/forms";
export class ProfilePictureFieldComponent {
    field = input.required();
    formControl = input.required();
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfilePictureFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.14", type: ProfilePictureFieldComponent, isStandalone: true, selector: "ng-component", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, formControl: { classPropertyName: "formControl", publicName: "formControl", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@let _field = field();\n<s-field-label [field]=\"_field\"></s-field-label>\n\n<s-profile-picture-picker\n    [formControl]=\"formControl()\"\n    [simpleTitle]=\"_field.simpleTitle\"\n    [actionTitle]=\"_field.actionTitle\"\n    [subtitle]=\"_field.subtitle\"\n    [aspectRatio]=\"_field.aspectRatio\"\n    [cropperLabelsConfig]=\"_field.cropperLabelsConfig\"\n    [removeButtonLabel]=\"_field.removeButtonLabel\"\n    [changeButtonLabel]=\"_field.changeButtonLabel\"\n    [confirmationTexts]=\"_field.confirmationTexts\"\n    [maxFileSize]=\"_field.maxFileSize\"\n    [accept]=\"_field.accept\"\n    [supportedExtensions]=\"_field.supportedExtensions ?? []\"\n    (changedImage)=\"_field.onChangeImage ? _field.onChangeImage($event) : null\"\n    (removedImage)=\"_field.onRemovedImage ? _field.onRemovedImage() : null\"\n    (invalidFile)=\"_field.onInvalidFile ? _field.onInvalidFile($event) : null\"\n>\n</s-profile-picture-picker>\n\n", dependencies: [{ kind: "component", type: FieldLabelComponent, selector: "s-field-label", inputs: ["field", "fieldContainerRef"] }, { kind: "ngmodule", type: ProfilePicturePickerModule }, { kind: "component", type: i1.ProfilePicturePickerComponent, selector: "s-profile-picture-picker", inputs: ["simpleTitle", "actionTitle", "subtitle", "aspectRatio", "cropperLabelsConfig", "removeButtonLabel", "changeButtonLabel", "confirmationTexts", "maxFileSize", "accept", "supportedExtensions", "image"], outputs: ["changedImage", "imageChange", "removedImage", "invalidFile"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ProfilePictureFieldComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [FieldLabelComponent, ProfilePicturePickerModule, ReactiveFormsModule], template: "@let _field = field();\n<s-field-label [field]=\"_field\"></s-field-label>\n\n<s-profile-picture-picker\n    [formControl]=\"formControl()\"\n    [simpleTitle]=\"_field.simpleTitle\"\n    [actionTitle]=\"_field.actionTitle\"\n    [subtitle]=\"_field.subtitle\"\n    [aspectRatio]=\"_field.aspectRatio\"\n    [cropperLabelsConfig]=\"_field.cropperLabelsConfig\"\n    [removeButtonLabel]=\"_field.removeButtonLabel\"\n    [changeButtonLabel]=\"_field.changeButtonLabel\"\n    [confirmationTexts]=\"_field.confirmationTexts\"\n    [maxFileSize]=\"_field.maxFileSize\"\n    [accept]=\"_field.accept\"\n    [supportedExtensions]=\"_field.supportedExtensions ?? []\"\n    (changedImage)=\"_field.onChangeImage ? _field.onChangeImage($event) : null\"\n    (removedImage)=\"_field.onRemovedImage ? _field.onRemovedImage() : null\"\n    (invalidFile)=\"_field.onInvalidFile ? _field.onInvalidFile($event) : null\"\n>\n</s-profile-picture-picker>\n\n" }]
        }] });
//# sourceMappingURL=data:application/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