import { Component, Inject, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BaseGroupComponent } from '../../../core/base-group/base-group.component';
import { DYNAMIC_COMPONENT_CONFIG } from '@eui/core';
import { UxDynFormChildContainerComponentModule } from '../../core/form-child-container/form-child-container.component';
import { UxDynNativeElementProviderDirectiveModule } from '../../../directives/native-element-provider.directive';
import { UxControlFeedbackComponentModule, } from '@eui/components';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../../core/form-child-container/form-child-container.component";
import * as i3 from "@eui/components";
import * as i4 from "../../../directives/native-element-provider.directive";
function HiddenGroupContainerComponent_ng_container_0_ux_control_feedback_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ux-control-feedback", 3);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("typeClass", ctx_r1.dynFormGroup.errors.uxValidationError.type ? ctx_r1.dynFormGroup.errors.uxValidationError.type : "danger");
    i0.ɵɵproperty("dynFormGroup", ctx_r1.dynFormGroup);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.dynFormGroup.errors.uxValidationError.message, " ");
} }
function HiddenGroupContainerComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, HiddenGroupContainerComponent_ng_container_0_ux_control_feedback_1_Template, 2, 3, "ux-control-feedback", 2);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.dynFormGroup.errors && ctx_r0.dynFormGroup.errors.uxValidationError);
} }
export class HiddenGroupContainerComponent extends BaseGroupComponent {
    constructor(config) {
        super(config);
        this.inputs = this.context.inputs;
    }
    ngOnInit() {
    }
}
/** @nocollapse */ HiddenGroupContainerComponent.ɵfac = function HiddenGroupContainerComponent_Factory(t) { return new (t || HiddenGroupContainerComponent)(i0.ɵɵdirectiveInject(DYNAMIC_COMPONENT_CONFIG)); };
/** @nocollapse */ HiddenGroupContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HiddenGroupContainerComponent, selectors: [["ux-dyn-hidden-group-container"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 4, consts: [[4, "ngIf"], [3, "config", "frameId", "parent"], ["dynTargetedElement", "div", 3, "typeClass", "dynFormGroup", 4, "ngIf"], ["dynTargetedElement", "div", 3, "typeClass", "dynFormGroup"]], template: function HiddenGroupContainerComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, HiddenGroupContainerComponent_ng_container_0_Template, 2, 1, "ng-container", 0);
        i0.ɵɵelement(1, "ux-dyn-form-child-container", 1);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.inputs && ctx.inputs.errorFeedback && ctx.dynFormGroup && ctx.dynFormGroup.invalid && ctx.dynFormGroup.touched);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("config", ctx.childrenConfig)("frameId", ctx.frameId)("parent", ctx.dynFormGroup);
    } }, directives: [i1.NgIf, i2.FormChildContainerComponent, i3.UxControlFeedbackComponent, i4.NativeElementProviderDirective], styles: [""] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(HiddenGroupContainerComponent, [{
        type: Component,
        args: [{
                selector: 'ux-dyn-hidden-group-container',
                templateUrl: './hidden-group-container.component.html',
                styleUrls: ['./hidden-group-container.component.scss'],
            }]
    }], function () { return [{ type: undefined, decorators: [{
                type: Inject,
                args: [DYNAMIC_COMPONENT_CONFIG]
            }] }]; }, null); })();
export class UxDynHiddenGroupContainerComponentModule {
}
/** @nocollapse */ UxDynHiddenGroupContainerComponentModule.ɵmod = i0.ɵɵdefineNgModule({ type: UxDynHiddenGroupContainerComponentModule });
/** @nocollapse */ UxDynHiddenGroupContainerComponentModule.ɵinj = i0.ɵɵdefineInjector({ factory: function UxDynHiddenGroupContainerComponentModule_Factory(t) { return new (t || UxDynHiddenGroupContainerComponentModule)(); }, imports: [[
            CommonModule,
            UxDynFormChildContainerComponentModule,
            UxDynNativeElementProviderDirectiveModule,
            UxControlFeedbackComponentModule,
        ]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UxDynHiddenGroupContainerComponentModule, { declarations: [HiddenGroupContainerComponent], imports: [CommonModule,
        UxDynFormChildContainerComponentModule,
        UxDynNativeElementProviderDirectiveModule,
        UxControlFeedbackComponentModule], exports: [HiddenGroupContainerComponent] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UxDynHiddenGroupContainerComponentModule, [{
        type: NgModule,
        args: [{
                imports: [
                    CommonModule,
                    UxDynFormChildContainerComponentModule,
                    UxDynNativeElementProviderDirectiveModule,
                    UxControlFeedbackComponentModule,
                ],
                exports: [HiddenGroupContainerComponent],
                declarations: [HiddenGroupContainerComponent],
            }]
    }], null, null); })();
//# sourceMappingURL=data:application/json;base64, 