import{r as registerInstance,h}from"./index-ecdfb761.js";var AsyncContent=function(){function t(t){registerInstance(this,t);this.content=""}t.prototype.componentWillLoad=function(){if(this.documentLocation!=null){return this.fetchNewContent(this.documentLocation)}};t.prototype.fetchNewContent=function(t){var n=this;return fetch(t).then((function(t){return t.text()})).then((function(t){n.content=t}))};t.prototype.render=function(){return h("div",{innerHTML:this.content})};Object.defineProperty(t,"watchers",{get:function(){return{documentLocation:["fetchNewContent"]}},enumerable:false,configurable:true});return t}();export{AsyncContent as stencil_async_content};