import { r as registerInstance, h, H as Host, g as getElement } from './index-ClISz4NF.js';
import { F as FormGroupClass, a as FormGroupSizes, b as FormGroupOrientation } from './constants-Du0ZtfYe.js';
import { g as govHost } from './template-CoD1xawt.js';
import { v as validateProp } from './props-CJZgTDla.js';
import './utils-CQvUntGY.js';
import './sizes-BcQO4NH2.js';
import './gov.log-BtqD9K8d.js';

const GovFormGroup = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        /**
         * Gap's size.
         */
        this.gap = undefined;
        /**
         * Elements orientation
         */
        this.orientation = 'vertical';
        this.h = govHost(this.host);
    }
    validateGap(newValue) {
        if (newValue) {
            validateProp(FormGroupSizes, newValue, FormGroupClass.root);
        }
    }
    validateOrientation(newValue) {
        if (newValue) {
            validateProp(FormGroupOrientation, newValue, FormGroupClass.root);
        }
    }
    componentWillLoad() {
        this.validateGap(this.gap);
        this.validateOrientation(this.orientation);
    }
    render() {
        return (h(Host, { key: '54934f365448807adf7408b7feb96fff4244491c', gap: this.gap, class: this.h.classes(FormGroupClass.root) }, h("slot", { key: '184ae9ea447967ebce23c4dd40e2e14667f74960' })));
    }
    get host() { return getElement(this); }
    static get watchers() { return {
        "gap": ["validateGap"],
        "orientation": ["validateOrientation"]
    }; }
};

export { GovFormGroup as gov_form_group };
//# sourceMappingURL=gov-form-group.entry.js.map

//# sourceMappingURL=gov-form-group.entry.js.map