import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { set } from '@ember/object';
import Slotted from 'block-slots';
export default Component.extend(Slotted, {
tagName: '',
dom: service('dom'),
init: function () {
this._super(...arguments);
this.guid = this.dom.guid(this);
},
didInsertElement: function () {
this.menu.addSubmenu(this.guid);
didDestroyElement: function () {
this.menu.removeSubmenu(this.guid);
willRender: function () {
set(this, 'hasConfirmation', this._isRegistered('confirmation'));
});