import{h}from"../edel-elements.core.js";var SidemenuPosition;function isSidemenuPosition(e){return e===SidemenuPosition.left||e===SidemenuPosition.right}!function(e){e.default="left",e.left="left",e.right="right"}(SidemenuPosition||(SidemenuPosition={}));var EdelSidemenuComponent=function(){function e(){this.active=!1,this.position=SidemenuPosition.default}return e.prototype.render=function(){return h("slot",null)},e.prototype.hostData=function(){return{class:"sidemenu"}},e.prototype.componentDidLoad=function(){!1===isSidemenuPosition(this.position)&&(this.position=SidemenuPosition.default),this.shouldHaveClass("sidemenu--active",this.active),this.shouldHaveClass("sidemenu--left",this.position===SidemenuPosition.left),this.shouldHaveClass("sidemenu--right",this.position===SidemenuPosition.right)},e.prototype.shouldHaveClass=function(e,t){t?this.host.classList.add(e):this.host.classList.remove(e)},Object.defineProperty(e,"is",{get:function(){return"edel-sidemenu"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{active:{type:Boolean,attr:"active",watchCallbacks:["componentDidLoad"]},host:{elementRef:!0},position:{type:String,attr:"position",mutable:!0,watchCallbacks:["componentDidLoad"]}}},enumerable:!0,configurable:!0}),e}();export{EdelSidemenuComponent as EdelSidemenu};