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\">\r\n  <div class=\"dynamicForm\" *ngIf=\"!isTable\">\r\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\r\n        <app-question \r\n            [form]=\"form\" \r\n            [isMovilView]=\"gridMobile\"\r\n            [question]=\"question\" \r\n            [isTable]=\"isTable\"\r\n            [group]=\"group\"\r\n            [index]=\"index\"\r\n            [requerido]=\"question.required\" \r\n            (onFile)=\"saveFile($event)\" \r\n            (onChangeRadio)=\"onChangeRadio($event)\" \r\n            (onDeleteFile)=\"deleteFile($event)\" \r\n            (onAddNewTable)=\"onAddNewTable($event)\"\r\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\r\n        >\r\n        </app-question>\r\n    </div>\r\n  </div>\r\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\">\r\n  <div class=\"dynamicForm\" *ngIf=\"!isTable\">\r\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\r\n        <app-question \r\n            [form]=\"form\" \r\n            [isMovilView]=\"gridMobile\"\r\n            [question]=\"question\" \r\n            [isTable]=\"isTable\"\r\n            [group]=\"group\"\r\n            [index]=\"index\"\r\n            [requerido]=\"question.required\" \r\n            (onFile)=\"saveFile($event)\" \r\n            (onChangeRadio)=\"onChangeRadio($event)\" \r\n            (onDeleteFile)=\"deleteFile($event)\" \r\n            (onAddNewTable)=\"onAddNewTable($event)\"\r\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\r\n        >\r\n        </app-question>\r\n    </div>\r\n  </div>\r\n</ng-container>", styles: [""] }]
        }], ctorParameters: function () { return [{ type: i1.QuestionControlService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3VpL3NyYy9saWIvdWkvZHluYW1pYy1mb3JtL2R5bmFtaWMtZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL3VpL2R5bmFtaWMtZm9ybS9keW5hbWljLWZvcm0uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUN0RyxPQUFPLEVBQUUsaUNBQWl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