const t=window.webcomponents.h;class e{componentDidLoad(){this.postRender()}componentDidUpdate(){this.routeLinkChange.emit({url:this.url,action:this.action,actionParams:this.actionParams}),this.postRender()}postRender(){this.registerRouteLink.emit({url:this.url,action:this.action,actionParams:this.actionParams})}render(){return t("div",null,t("a",{href:""+this.url},t("slot",null)))}static get is(){return"ema-route-link"}static get properties(){return{action:{type:String,attr:"action"},actionParams:{type:String,attr:"action-params"},data:{state:!0},dataJson:{type:String,attr:"data-json"},el:{elementRef:!0},state:{state:!0},url:{type:String,attr:"url"}}}static get events(){return[{name:"registerRouteLink",method:"registerRouteLink",bubbles:!0,cancelable:!0,composed:!0},{name:"routeLinkChange",method:"routeLinkChange",bubbles:!0,cancelable:!0,composed:!0}]}}export{e as EmaRouteLink};