export class Iframe {
    constructor() {
        this.path = 'index.html';
        this.loaded = false;
        this.iframeUrl = '';
        this.queryParams = '';
    }
    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;
        }
        if (!this.loaded) {
            return (h("div", null,
                h("ema-iframe", { src: this.iframeUrl + this.path, fullscreen: true, "fullscreen-margin": "57px,0,0,0" })));
        }
    }
    static get is() { return "ema-app-iframe"; }
    static get properties() { return {
        "iframeUrl": {
            "type": String,
            "attr": "iframe-url"
        },
        "match": {
            "type": "Any",
            "attr": "match"
        },
        "queryParams": {
            "type": String,
            "attr": "query-params"
        }
    }; }
}
//# sourceMappingURL=app-iframe.js.map