var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { css, html } from "lit";
import { customElement, property } from "lit/decorators.js";
import "@openremote/or-log-viewer";
import { Page } from "@openremote/or-app";
export function pageLogsProvider(store, config) {
    return {
        name: "logs",
        routes: [
            "logs"
        ],
        pageCreator: () => {
            const page = new PageLogs(store);
            if (config)
                page.config = config;
            return page;
        }
    };
}
let PageLogs = class PageLogs extends Page {
    static get styles() {
        // language=CSS
        return css `
            :host {
                flex: 1;
                width: 100%;            
            }
            
            or-log-viewer {
                width: 100%;
            }
        `;
    }
    get name() {
        return "logs";
    }
    constructor(store) {
        super(store);
    }
    stateChanged(state) {
    }
    render() {
        var _a;
        return html `
            <or-log-viewer .config="${(_a = this.config) === null || _a === void 0 ? void 0 : _a.viewer}"></or-log-viewer>
        `;
    }
};
__decorate([
    property()
], PageLogs.prototype, "config", void 0);
PageLogs = __decorate([
    customElement("page-logs")
], PageLogs);
export { PageLogs };
//# sourceMappingURL=page-logs.js.map