import{h}from"../ema.core.js";var RouterMenu=function(){function t(){}return t.prototype.componentDidLoad=function(){this.postRender()},t.prototype.componentDidUpdate=function(){this.postRender()},t.prototype.postRender=function(){this.change.emit({data:this.getData(),el:this.el})},t.prototype.setData=function(t,e){var n=this;void 0===e&&(e=!1),this.data||(this.data={}),e?Object.keys(t).forEach(function(e){n.data[e]=t[e]}):this.data=t},t.prototype.getData=function(){return this.data},t.prototype.render=function(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),h("div",null,"ema-router-menu")},Object.defineProperty(t,"is",{get:function(){return"ema-router-menu"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{data:{state:!0},dataJson:{type:String,attr:"data-json"},el:{elementRef:!0},getData:{method:!0},setData:{method:!0},state:{state:!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"events",{get:function(){return[{name:"change",method:"change",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),t}();export{RouterMenu as EmaRouterMenu};