import{h}from"../edel-elements.core.js";var EdelIconComponent=function(){function e(){this.color=void 0,this.name=null,this.size=null,this.faStyle=null}return e.prototype.render=function(){return h("i",{class:this.getFaStyle(this.faStyle)+" fa-"+this.name+" "+this.getSize(this.size)})},e.prototype.componentDidLoad=function(){this.color&&(this.hostElement.style.color=this.color)},e.prototype.getSize=function(e){return null!=e?"fa-"+e:""},e.prototype.getFaStyle=function(e){return e||"fas"},Object.defineProperty(e,"is",{get:function(){return"edel-icon"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{color:{type:String,attr:"color",watchCallbacks:["componentDidLoad"]},faStyle:{type:String,attr:"fa-style"},hostElement:{elementRef:!0},name:{type:String,attr:"name"},size:{type:String,attr:"size"}}},enumerable:!0,configurable:!0}),e}();export{EdelIconComponent as EdelIcon};