import{r as t,c as a,h as e,g as s}from"./p-3b76effa.js";class r{constructor(e){t(this,e),this.changed=a(this,"changed",7)}componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}postRender(){this.changed.emit({data:this.getData(),el:this.el})}async setData(t,a=!1){this.data||(this.data={}),a?Object.keys(t).forEach(a=>{this.data[a]=t[a]}):this.data=t}async getData(){return this.data}render(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),e("div",null,"ema-router-menu")}get el(){return s(this)}}export{r as ema_router_menu};