import { __decorate, __extends } from "tslib";
import Component from 'vue-class-component';
import { ModulVue } from '../../../utils/vue/vue';
import { BaseOption } from '../option';
import WithRender from './option-title.html?style=./option-title.scss';
var MOptionTitle = /** @class */ (function (_super) {
    __extends(MOptionTitle, _super);
    function MOptionTitle() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MOptionTitle.prototype.mounted = function () {
        var rootNode = this.getParent(function (p) { return p instanceof BaseOption; });
        if (rootNode === undefined) {
            console.error('m-option-item need to be inside m-option');
        }
    };
    MOptionTitle = __decorate([
        WithRender,
        Component
    ], MOptionTitle);
    return MOptionTitle;
}(ModulVue));
export { MOptionTitle };
//# sourceMappingURL=option-title.js.map