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-separator.html?style=./option-separator.scss';
var MOptionSeparator = /** @class */ (function (_super) {
    __extends(MOptionSeparator, _super);
    function MOptionSeparator() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MOptionSeparator.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');
        }
    };
    MOptionSeparator = __decorate([
        WithRender,
        Component
    ], MOptionSeparator);
    return MOptionSeparator;
}(ModulVue));
export { MOptionSeparator };
//# sourceMappingURL=option-separator.js.map