import { Component } from '@angular/core';
import { QuestionControlService } from '../../common/core/question/services/question-control.service';
import { QuestionCreationAbstractDirective } from '../definitions/dynamic-form';
import * as i0 from "@angular/core";
import * as i1 from "../../common/core/question/services/question-control.service";
import * as i2 from "../dynamic-form-question/dynamic-form-question.component";
import * as i3 from "@angular/common";
export class DynamicFormComponent extends QuestionCreationAbstractDirective {
    constructor(qcs) {
        super(qcs);
        this.qcs = qcs;
    }
}
DynamicFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DynamicFormComponent, deps: [{ token: i1.QuestionControlService }], target: i0.ɵɵFactoryTarget.Component });
DynamicFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DynamicFormComponent, selector: "app-dynamic-form", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"questions\">\n  <div class=\"dynamicForm\" *ngIf=\"!isTable\">\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\n        <app-question \n            [form]=\"form\" \n            [isMovilView]=\"gridMobile\"\n            [question]=\"question\" \n            [isTable]=\"isTable\"\n            [group]=\"group\"\n            [index]=\"index\"\n            [requerido]=\"question.required\" \n            (onFile)=\"saveFile($event)\" \n            (onChangeRadio)=\"onChangeRadio($event)\" \n            (onDeleteFile)=\"deleteFile($event)\" \n            (onAddNewTable)=\"onAddNewTable($event)\"\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\n        >\n        </app-question>\n    </div>\n  </div>\n</ng-container>", styles: [""], components: [{ type: i2.DynamicFormQuestionComponent, selector: "app-question", outputs: ["onAddNewTable"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DynamicFormComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-dynamic-form', template: "<ng-container *ngIf=\"questions\">\n  <div class=\"dynamicForm\" *ngIf=\"!isTable\">\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\n        <app-question \n            [form]=\"form\" \n            [isMovilView]=\"gridMobile\"\n            [question]=\"question\" \n            [isTable]=\"isTable\"\n            [group]=\"group\"\n            [index]=\"index\"\n            [requerido]=\"question.required\" \n            (onFile)=\"saveFile($event)\" \n            (onChangeRadio)=\"onChangeRadio($event)\" \n            (onDeleteFile)=\"deleteFile($event)\" \n            (onAddNewTable)=\"onAddNewTable($event)\"\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\n        >\n        </app-question>\n    </div>\n  </div>\n</ng-container>", styles: [""] }]
        }], ctorParameters: function () { return [{ type: i1.QuestionControlService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpL3NyYy9saWIvdWkvZHluYW1pYy1mb3JtL2R5bmFtaWMtZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL3VpL2R5bmFtaWMtZm9ybS9keW5hbWljLWZvcm0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUN0RyxPQUFPLEVBQUUsaUNBQWlDLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQzs7Ozs7QUFPaEYsTUFBTSxPQUFPLG9CQUFxQixTQUFRLGlDQUFpQztJQUV6RSxZQUFxQixHQUEy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