/*! Built with http://stenciljs.com */
import{h}from"./webcomponents.core.js";import{a as AppService}from"./chunk-66b98f4a.js";import{f as DomUtil}from"./chunk-524d1b07.js";var Home=function(){function e(){this.app=AppService.instance}return e.prototype.iframeLoaded=function(e){console.log(e.detail)},e.prototype.componentWillLoad=function(){var e=this;this.data={title:"js-base"},this.app.fetchJson("assets/documentation.json").then(function(t){e.docData=t,console.log(t)})},e.prototype.componentDidLoad=function(){this.postRender()},e.prototype.componentDidUpdate=function(){this.postRender()},e.prototype.svgElementClickHandler=function(e){e.detail.id,e.detail.el},e.prototype.postRender=function(){this.docData&&DomUtil.fadeIn(this.el.querySelector(".jumbotron"),350,2300)},e.prototype.render=function(){return h("div",{class:"text-center"},h("ema-svg",{src:"../assets/images/splash.svg","data-json":JSON.stringify(this.data),class:"img-responsive"}),this.docData&&h("div",{class:"jumbotron pt-3 pb-3 hidden"},h("h5",null,"webcomponents"),h("ul",{class:"list-inline"},this.app.components.map(function(e){return h("li",{class:"list-inline-item"},h("stencil-route-link",{url:"/components/"+e.tag},"<"+e.tag+">"))})),h("h5",null,"modules"),h("ul",{class:"list-inline"},this.docData.children.map(function(e){if(e.flags.isExported)return h("li",{class:"list-inline-item"},h("stencil-route-link",{url:"/documentation"},e.name))}))))},Object.defineProperty(e,"is",{get:function(){return"ema-app-home"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{data:{state:!0},docData:{state:!0},el:{elementRef:!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"listeners",{get:function(){return[{name:"iframeLoaded",method:"iframeLoaded"},{name:"svgElementClick",method:"svgElementClickHandler"}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"ema-app-home .jumbotron{color:#868e96;border-top:1px solid #c5c9cd;border-bottom:1px solid #c5c9cd;padding-left:45px;padding-right:45px}ema-app-home .jumbotron li{font-size:.86rem;padding:3.75px 5px}"},enumerable:!0,configurable:!0}),e}();export{Home as EmaAppHome};