/**
 * al-fieldset
 *
 * @author Rob Parker <robert.parker@alertlogic.com>
 *
 * @copyright Alert Logic, Inc 2021
 *
 */
import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../al-tip/al-tip.component";
import * as i3 from "../al-hint/al-hint.component";
function AlFieldsetComponent_al2_tip_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "al2-tip", 5);
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("tip", ctx_r0.tip);
} }
function AlFieldsetComponent_al2_hint_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "al2-hint", 6);
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("hint", ctx_r1.hint);
} }
var _c0 = function (a0) { return { "ald-form-group--spaced": a0 }; };
var _c1 = function (a0) { return [a0]; };
var _c2 = ["*"];
var AlFieldsetComponent = /** @class */ (function () {
    function AlFieldsetComponent() {
        this.verticalSpace = true;
    }
    AlFieldsetComponent.prototype.ngOnInit = function () {
    };
    /** @nocollapse */ AlFieldsetComponent.ɵfac = function AlFieldsetComponent_Factory(t) { return new (t || AlFieldsetComponent)(); };
    /** @nocollapse */ AlFieldsetComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlFieldsetComponent, selectors: [["al2-fieldset"]], inputs: { legend: "legend", legendLarge: "legendLarge", verticalSpace: "verticalSpace", hint: "hint", tip: "tip" }, ngContentSelectors: _c2, decls: 7, vars: 10, consts: [[1, "ald-fieldset", "ald-form-group", 3, "ngClass"], [1, "ald-form-group__header", 3, "ngClass"], [1, "ald-legend", 3, "ngClass"], [3, "tip", 4, "ngIf"], [3, "hint", 4, "ngIf"], [3, "tip"], [3, "hint"]], template: function AlFieldsetComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵelementStart(0, "fieldset", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "legend", 2);
            i0.ɵɵtext(3);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(4, AlFieldsetComponent_al2_tip_4_Template, 1, 1, "al2-tip", 3);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(5, AlFieldsetComponent_al2_hint_5_Template, 1, 1, "al2-hint", 4);
            i0.ɵɵprojection(6);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0, ctx.verticalSpace));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1, ctx.tip ? "ald-form-group__header--multicol" : ""));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngClass", ctx.legendLarge ? "ald-legend--large" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵtextInterpolate(ctx.legend);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.tip);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.hint);
        } }, directives: [i1.NgClass, i1.NgIf, i2.AlTipComponent, i3.AlHintComponent], encapsulation: 2 });
    return AlFieldsetComponent;
}());
export { AlFieldsetComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AlFieldsetComponent, [{
        type: Component,
        args: [{
                selector: 'al2-fieldset',
                templateUrl: './al-fieldset.component.html'
            }]
    }], function () { return []; }, { legend: [{
            type: Input
        }], legendLarge: [{
            type: Input
        }], verticalSpace: [{
            type: Input
        }], hint: [{
            type: Input
        }], tip: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWwtZmllbGRzZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFsL25nLWdlbmVyaWMtY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbIm5ldy1jb21wb25lbnRzL2FsLWZpZWxkc2V0L2FsLWZpZWxkc2V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