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 { UmbSectionSidebarContext } from './section-sidebar.context.js';
import { UMB_MARK_ATTRIBUTE_NAME } from '../../const/index.js';
import { css, html, customElement } from '../../../../external/lit/index.js';
import { UmbLitElement } from '../../lit-element/index.js';
let UmbSectionSidebarElement = class UmbSectionSidebarElement extends UmbLitElement {
    constructor() {
        super();
        new UmbSectionSidebarContext(this);
    }
    firstUpdated(_changedProperties) {
        super.firstUpdated(_changedProperties);
        this.setAttribute(UMB_MARK_ATTRIBUTE_NAME, 'section-sidebar');
    }
    render() {
        return html `
			<uui-scroll-container id="scroll-container">
				<slot></slot>
			</uui-scroll-container>
		`;
    }
    static { this.styles = [
        css `
			:host {
				flex: 0 0 var(--umb-section-sidebar-width);
				background-color: var(--uui-color-surface);
				height: 100%;
				border-right: 1px solid var(--uui-color-border);
				font-weight: 500;
				display: flex;
				flex-direction: column;
				z-index: 10;
				position: relative;
				box-sizing: border-box;
			}

			#scroll-container {
				height: 100%;
				overflow-y: auto;
			}
		`,
    ]; }
};
UmbSectionSidebarElement = __decorate([
    customElement('umb-section-sidebar')
], UmbSectionSidebarElement);
export { UmbSectionSidebarElement };
