import{h}from"../edel-elements.core.js";var EdelVersionComponent=function(){function e(){this.version=""}return e.prototype.render=function(){return h("span",{class:"is-number is-disabled"},this.version)},e.prototype.componentDidLoad=function(){var e=this;fetch(this.host+"/api/v1/versions").then(function(e){return e.json()}).then(function(n){return e.version=n.main})},Object.defineProperty(e,"is",{get:function(){return"edel-version"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{host:{type:String,attr:"host"},version:{state:!0}}},enumerable:!0,configurable:!0}),e}();export{EdelVersionComponent as EdelVersion};