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 { UMB_BLOCK_GRID_AREA_TYPE_WORKSPACE_CONTEXT } from './block-grid-area-type-workspace.context.js';
import { UmbTextStyles } from '../../../../../core/style/index.js';
import { customElement, css, html, state } from '../../../../../../external/lit/index.js';
import { UmbLitElement } from '../../../../../core/lit-element/index.js';
let UmbBlockGridAreaTypeWorkspaceEditorElement = class UmbBlockGridAreaTypeWorkspaceEditorElement extends UmbLitElement {
    #workspaceContext;
    constructor() {
        super();
        this.consumeContext(UMB_BLOCK_GRID_AREA_TYPE_WORKSPACE_CONTEXT, (instance) => {
            this.#workspaceContext = instance;
            this.observe(this.#workspaceContext?.name, (name) => {
                this._name = name;
            });
            this.#workspaceContext?.createPropertyDatasetContext(this);
        });
    }
    // TODO: Localization, make it so that the headline is about area configuration?
    render() {
        return html `
			<umb-workspace-editor headline=${this.localize.term('blockEditor_blockConfigurationOverlayTitle', [this._name])}>
			</umb-workspace-editor>
		`;
    }
    static { this.styles = [
        UmbTextStyles,
        css `
			:host {
				display: block;
				width: 100%;
				height: 100%;
			}
		`,
    ]; }
};
__decorate([
    state()
], UmbBlockGridAreaTypeWorkspaceEditorElement.prototype, "_name", void 0);
UmbBlockGridAreaTypeWorkspaceEditorElement = __decorate([
    customElement('umb-block-grid-area-type-workspace-editor')
], UmbBlockGridAreaTypeWorkspaceEditorElement);
export { UmbBlockGridAreaTypeWorkspaceEditorElement };
export default UmbBlockGridAreaTypeWorkspaceEditorElement;
