'use strict';

var index = require('./index-BEF5cZxd.js');
var constants = require('./constants-D6LZ31rS.js');
var template = require('./template-Cj6PcLmR.js');
var props = require('./props-CPENhBnM.js');
require('./utils-NnC78QR3.js');
require('./sizes-D5zsw2g5.js');
require('./gov.log-C5EH15b_.js');

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

exports.gov_form_group = GovFormGroup;
//# sourceMappingURL=gov-form-group.entry.cjs.js.map

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