EdelElements.loadBundle("jov877pb",["exports","./chunk-83018f36.js"],function(t,e){var n,o=window.EdelElements.h;!function(t){t.left="left",t.right="right"}(n||(n={}));var i=function(){function t(){this.hasHover=!0,this.full=!1,this.slim=!1,this.disabled=!1,this.icon=null,this.label=null,this.showImage=!1,this.plain=!1,this.iconPosition=n.left,this.type=e.ButtonType.default,this.autofocus=!1,this.submit=!1,this.noPointerEvents=!1}return t.prototype.render=function(){var t=this;return this.submit?o("button",{class:this.getClass(),onClick:function(e){return t.handleClick(e)},type:"submit"},this.getIcon(this.icon),this.getLabel(this.label),this.getImage(this.showImage)):o("a",{class:this.getClass(),onClick:function(e){return t.handleClick(e)}},this.getIcon(this.icon),this.getLabel(this.label),this.getImage(this.showImage))},t.prototype.componentDidLoad=function(){this.autofocus&&this.hostElement.focus()},t.prototype.getLabel=function(t){return null==t?null:o("span",{class:"button-label"},t)},t.prototype.getIcon=function(t){return null==t?null:o("span",{class:"button-icon"},o("i",{class:"fas fa-"+t}))},t.prototype.getImage=function(t){return null==t?null:o("span",{class:"button-image"},o("slot",null))},t.prototype.getClass=function(){var t="button";return this.hasHover||(t+=" button--has-no-hover"),this.full&&(t+=" button--full"),this.slim&&(t+=" button--slim"),this.disabled&&(t+=" button--disabled"),this.plain&&(t+=" button--plain"),this.disabled||(t=t+" button--"+this.type),this.iconPosition===n.right&&null!=this.icon&&(t+=" button--reversed"),this.noPointerEvents&&(t+=" no-pointer-events"),t},t.prototype.handleClick=function(t){this.disabled||this.emit.emit(t)},t.prototype.handleKeyDown=function(t){13===t.which&&this.type===e.ButtonType.primary&&this.handleClick()},Object.defineProperty(t,"is",{get:function(){return"edel-button"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{autofocus:{type:Boolean,attr:"autofocus",watchCallbacks:["componentDidLoad"]},disabled:{type:Boolean,attr:"disabled"},full:{type:Boolean,attr:"full"},hasHover:{type:Boolean,attr:"has-hover"},hostElement:{elementRef:!0},icon:{type:String,attr:"icon"},iconPosition:{type:String,attr:"icon-position"},label:{type:String,attr:"label"},noPointerEvents:{type:Boolean,attr:"no-pointer-events"},plain:{type:Boolean,attr:"plain"},showImage:{type:Boolean,attr:"show-image"},slim:{type:Boolean,attr:"slim"},submit:{type:Boolean,attr:"submit"},type:{type:String,attr:"type"}}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"events",{get:function(){return[{name:"emit",method:"emit",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(t,"listeners",{get:function(){return[{name:"keydown",method:"handleKeyDown"}]},enumerable:!0,configurable:!0}),t}();t.EdelButton=i,Object.defineProperty(t,"__esModule",{value:!0})});