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, customElement, html } from '../../../../external/lit/index.js';
import { UmbModalBaseElement } from '../../modal/index.js';
import { UmbTextStyles } from '../../style/index.js';
let UmbContextDebuggerModalElement = class UmbContextDebuggerModalElement extends UmbModalBaseElement {
    #close() {
        this.modalContext?.reject();
    }
    render() {
        return html `
			<umb-body-layout headline="Debug: Contexts">
				<div id="main">${this.data?.content}</div>
				<div slot="actions">
					<uui-button @click=${this.#close} label=${this.localize.term('general_close')}></uui-button>
				</div>
			</umb-body-layout>
		`;
    }
    static { this.styles = [
        UmbTextStyles,
        css `
			summary {
				cursor: pointer;
			}

			details > details {
				margin-left: 1rem;
			}

			ul {
				margin-top: 0;
			}
		`,
    ]; }
};
UmbContextDebuggerModalElement = __decorate([
    customElement('umb-context-debugger-modal')
], UmbContextDebuggerModalElement);
export default UmbContextDebuggerModalElement;
