/*! Built with http://stenciljs.com */
const{h:e}=window.webcomponents;import{a as t}from"./chunk-ff3214f8.js";import{g as s}from"./chunk-9ab47155.js";class a{constructor(){this.app=t.instance}iframeLoaded(e){console.log(e.detail)}componentWillLoad(){this.data={title:"js-base"},this.app.fetchJson("assets/documentation.json").then(e=>{this.docData=e,console.log(e)})}componentDidLoad(){this.postRender()}componentDidUpdate(){this.postRender()}svgElementClickHandler(e){e.detail.id,e.detail.el}postRender(){this.docData&&s.fadeIn(this.el.querySelector(".jumbotron"),350,2e3)}render(){return e("div",{class:"text-center"},e("ema-svg",{src:"../assets/images/splash.svg","data-json":JSON.stringify(this.data),class:"img-responsive"}),this.docData&&e("div",{class:"jumbotron pt-3 pb-3 hidden"},e("h5",null,"webcomponents"),e("ul",{class:"list-inline"},this.app.components.map(t=>e("li",{class:"list-inline-item"},e("stencil-route-link",{url:"/components/"+t.tag},"<"+t.tag+">")))),e("h5",null,"modules"),e("ul",{class:"list-inline"},this.docData.children.map(t=>{if(t.flags.isExported)return e("li",{class:"list-inline-item"},e("stencil-route-link",{url:"/documentation"},t.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:"iframeLoaded",method:"iframeLoaded"},{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:.86rem;padding:3.75px 5px}"}}export{a as EmaAppHome};