import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@seniorsistemas/angular-components/fieldset";
import * as i2 from "../../../dynamic-form.directive";
export class FieldsetComponent {
    id;
    config;
    group;
    errorMessages;
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldsetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FieldsetComponent, selector: "ng-component", inputs: { id: "id", config: "config", group: "group", errorMessages: "errorMessages" }, ngImport: i0, template: "<s-fieldset\n    [toggleable]=\"true\"\n    (onBeforeToggle)=\"config.beforeToggle ? config.beforeToggle($event) : 'null'\"\n    (onAfterToggle)=\"config.afterToggle ? config.afterToggle($event) : 'null'\"\n    [legend]=\"config.header ? config.header : ''\"\n>\n    @for (conf of config.configs; let i = $index; track i) {\n        <ng-container\n            *sDynamicForm=\"{ id: id, config: conf, group: group, errorMessages: errorMessages }\"\n        ></ng-container>\n    }\n</s-fieldset>\n", dependencies: [{ kind: "component", type: i1.FieldsetComponent, selector: "s-fieldset", inputs: ["legend", "toggleable", "icon", "destroyOnHide"], outputs: ["beforeToggle", "afterToggle"] }, { kind: "directive", type: i2.DynamicFormDirective, selector: "[sDynamicForm]", inputs: ["sDynamicForm"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FieldsetComponent, decorators: [{
            type: Component,
            args: [{ template: "<s-fieldset\n    [toggleable]=\"true\"\n    (onBeforeToggle)=\"config.beforeToggle ? config.beforeToggle($event) : 'null'\"\n    (onAfterToggle)=\"config.afterToggle ? config.afterToggle($event) : 'null'\"\n    [legend]=\"config.header ? config.header : ''\"\n>\n    @for (conf of config.configs; let i = $index; track i) {\n        <ng-container\n            *sDynamicForm=\"{ id: id, config: conf, group: group, errorMessages: errorMessages }\"\n        ></ng-container>\n    }\n</s-fieldset>\n" }]
        }], propDecorators: { id: [{
                type: Input
            }], config: [{
                type: Input,
                args: [{ required: true }]
            }], group: [{
                type: Input,
                args: [{ required: true }]
            }], errorMessages: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGRzZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL2R5bmFtaWMtZm9ybS9zcmMvbGliL2R5bmFtaWMtZm9ybS9jb21wb25lbnRzL3N0cnVjdHVyZS9maWVsZHNldC9maWVsZHNldC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvZHluYW1pYy1mb3JtL3NyYy9saWIvZHluYW1pYy1mb3JtL2NvbXBvbmVudHMvc3RydWN0dXJlL2ZpZWxkc2V0L2ZpZWxkc2V0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBU2pELE1BQU0sT0FBTyxpQkFBaUI7SUFFbkIsRUFBRSxDQUFVO0lBR1osTUFBTSxDQUFZO0lBR2xCLEtBQUssQ0FBb0I7SUFHekIsYUFBYSxDQUFNO3dHQVhqQixpQkFBaUI7NEZBQWpCLGlCQUFpQiw0SUNUOUIsa2ZBWUE7OzRGREhhLGlCQUFpQjtrQkFIN0IsU0FBUzs7OEJBS0MsRUFBRTtzQkFEUixLQUFLO2dCQUlDLE1BQU07c0JBRFosS0FBSzt1QkFBQyxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUU7Z0JBSWxCLEtBQUs7c0JBRFgsS0FBSzt1QkFBQyxFQUFFLFFBQVEsRUF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