/**
 * 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) {
    const 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) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("hint", ctx_r1.hint);
} }
const _c0 = function (a0) { return { "ald-form-group--spaced": a0 }; };
const _c1 = function (a0) { return [a0]; };
const _c2 = ["*"];
export class AlFieldsetComponent {
    constructor() {
        this.verticalSpace = true;
    }
    ngOnInit() {
    }
}
/** @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 });
/*@__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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWwtZmllbGRzZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFsL25nLWdlbmVyaWMtY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbIm5ldy1jb21wb25lbnRzL2FsLWZpZWxkc2V0L2FsLWZpZWxkc2V0LmNvbXBvbmVudC50cyIsIm5ldy1jb21wb25lbnRzL2FsLWZpZWxkc2V0L2FsLWZpZWxk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