export class Documentation {
    constructor() {
        this.baseUrl = 'assets/documentation/';
        this.path = 'index.html';
        this.loaded = false;
    }
    componentDidLoad() {
        this.loaded = true;
    }
    render() {
        // console.log(this.match); // fixme:
        if (this.match.params.class) {
            this.path = 'classes/' + this.match.params.class + '.html';
        }
        if (this.match.params.global) {
            this.path = 'index.html#' + this.match.params.global;
        }
        // console.log(this.baseUrl+this.path);
        if (!this.loaded) {
            return (h("div", null,
                h("ema-iframe", { src: this.baseUrl + this.path, fullscreen: true, "fullscreen-margin": "57px,0,0,0" })));
        }
    }
    static get is() { return "ema-app-documentation"; }
    static get properties() { return {
        "match": {
            "type": "Any",
            "attr": "match"
        }
    }; }
}
//# sourceMappingURL=app-documentation.js.map