import{h}from"../ema.core.js";var RouteLink=function(){function t(){}return t.prototype.componentDidLoad=function(){this.postRender()},t.prototype.componentDidUpdate=function(){this.routeLinkChange.emit({url:this.url,action:this.action,actionParams:this.actionParams}),this.postRender()},t.prototype.postRender=function(){this.registerRouteLink.emit({url:this.url,action:this.action,actionParams:this.actionParams})},t.prototype.render=function(){return h("div",null,h("a",{href:""+this.url},h("slot",null)))},Object.defineProperty(t,"is",{get:function(){return"ema-route-link"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){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"}}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"events",{get:function(){return[{name:"registerRouteLink",method:"registerRouteLink",bubbles:!0,cancelable:!0,composed:!0},{name:"routeLinkChange",method:"routeLinkChange",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),t}();export{RouteLink as EmaRouteLink};