/*! Built with http://stenciljs.com */
const{h:t}=window.webcomponents;import{a as e}from"./chunk-38646f96.js";import{f as s}from"./chunk-d76c3657.js";class n{constructor(){this.app=e.instance}componentWillLoad(){this.data={title:"js-base"},this.app.fetchJson("assets/documentation.json").then(t=>{this.docData=t,console.log(t)})}componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}svgElementClickHandler(t){t.detail.id,t.detail.el}postRender(){this.docData&&s.fadeIn(this.el.querySelector(".jumbotron"),350,2300)}render(){return t("div",{class:"text-center"},t("ema-svg",{src:"../assets/images/splash.svg","data-json":JSON.stringify(this.data),class:"img-responsive"}),this.docData&&t("div",{class:"jumbotron pt-3 pb-3 hidden"},t("h5",null,"webcomponents"),t("ul",{class:"list-inline"},this.app.components.map(e=>t("li",{class:"list-inline-item"},t("stencil-route-link",{url:"/components/"+e.tag},"<"+e.tag+">")))),t("h5",null,"modules"),t("ul",{class:"list-inline"},this.docData.children.map(e=>{if(e.flags.isExported)return t("li",{class:"list-inline-item"},t("stencil-route-link",{url:"/documentation"},e.name))}))))}static get is(){return"ema-app-home"}static get properties(){return{data:{state:!0},docData:{state:!0},el:{elementRef:!0}}}static get listeners(){return[{name:"svgElementClick",method:"svgElementClickHandler"}]}static get style(){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:.82rem;padding:3.75px 5px}"}}export{n as EmaAppHome};