define(["require", "exports", "tslib", "react", "../../Utilities", "../../Utilities"], function (require, exports, tslib_1, React, Utilities_1, Utilities_2) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var getClassNames = Utilities_2.classNamesFunction({
        disableCaching: true
    });
    var LabelBase = /** @class */ (function (_super) {
        tslib_1.__extends(LabelBase, _super);
        function LabelBase() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        LabelBase.prototype.render = function () {
            var _a = this.props, _b = _a.as, RootType = _b === void 0 ? 'label' : _b, children = _a.children, className = _a.className, disabled = _a.disabled, styles = _a.styles, required = _a.required, theme = _a.theme;
            var classNames = getClassNames(styles, {
                className: className,
                disabled: disabled,
                required: required,
                theme: theme
            });
            return (React.createElement(RootType, tslib_1.__assign({}, Utilities_1.getNativeProps(this.props, Utilities_1.divProperties), { className: classNames.root }), children));
        };
        return LabelBase;
    }(React.Component));
    exports.LabelBase = LabelBase;
});
//# sourceMappingURL=Label.base.js.map