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 { html, LitElement, ifDefined, customElement, property } from '../../../../../../external/lit/index.js';
let UmbLogViewerLevelTagElement = class UmbLogViewerLevelTagElement extends LitElement {
    constructor() {
        super(...arguments);
        this.levelMap = {
            Verbose: { look: 'secondary' },
            Debug: {
                look: 'primary',
                style: 'background-color: var(--umb-log-viewer-debug-color)',
            },
            Information: { look: 'primary', color: 'positive' },
            Warning: { look: 'primary', color: 'warning' },
            Error: { look: 'primary', color: 'danger' },
            Fatal: {
                look: 'primary',
                style: 'background-color: var(--umb-log-viewer-fatal-color)',
            },
        };
    }
    render() {
        return html `<uui-tag
			look=${ifDefined(this.level ? this.levelMap[this.level]?.look : undefined)}
			color=${ifDefined(this.level ? this.levelMap[this.level]?.color : undefined)}
			style="${ifDefined(this.level ? this.levelMap[this.level]?.style : undefined)}"
			>${this.level}<slot></slot
		></uui-tag>`;
    }
};
__decorate([
    property()
], UmbLogViewerLevelTagElement.prototype, "level", void 0);
UmbLogViewerLevelTagElement = __decorate([
    customElement('umb-log-viewer-level-tag')
], UmbLogViewerLevelTagElement);
export { UmbLogViewerLevelTagElement };
