const t=window.webcomponents.h;class e{componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}postRender(){this.change.emit({data:this.getData(),el:this.el})}setData(t,e=!1){this.data||(this.data={}),e?Object.keys(t).forEach(e=>{this.data[e]=t[e]}):this.data=t}getData(){return this.data}render(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),t("div",null,"ema-router-menu")}static get is(){return"ema-router-menu"}static get properties(){return{data:{state:!0},dataJson:{type:String,attr:"data-json"},el:{elementRef:!0},getData:{method:!0},setData:{method:!0},state:{state:!0}}}static get events(){return[{name:"change",method:"change",bubbles:!0,cancelable:!0,composed:!0}]}}export{e as EmaRouterMenu};