// #region Imports
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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { TitleLayoutElement } from '../../../Components/Layouts/Title/TitleLayoutElement';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { ToolbarElement } from '../../Grouping/Toolbar/ToolbarElement';
import { chatHeaderElementTemplate } from './ChatHeaderElementTemplate';
import { chatHeaderElementJoyStyle } from './Themes/ChatHeaderElement.Joy';
import { chatHeaderElementRetroStyle } from './Themes/ChatHeaderElement.Retro';
import { chatHeaderElementCosmopolitanStyle } from './Themes/ChatHeaderElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Chat Header - The Chat Header is used to display the title and subtitle of a chat. Typically, it can also include additional actions or buttons.
 *
 * @slot before - The content placed at the beginning of the chat header.
 * @slot after - The content placed at the end of the chat header.
 *
 * @public
 */
let ChatHeaderElement = class ChatHeaderElement extends Themeable(TextFormattable(CustomElement)) {
    // #region Fields
    _title;
    _subTitle;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._title = '';
        this._subTitle = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-chat-header';
    }
    /**
     * Gets or sets the `title` property.
     *
     * @public
     * @override
     */
    get title() {
        return this._title;
    }
    set title(value) {
        if (this._title !== value) {
            this._title = value;
            this.requestUpdate('title');
        }
    }
    /**
     * Gets or sets the `subTitle` property.
     *
     * @public
     */
    get subTitle() {
        return this._subTitle;
    }
    set subTitle(value) {
        if (this._subTitle !== value) {
            this._subTitle = value;
            this.requestUpdate('subTitle');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatHeaderElement.prototype, "title", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatHeaderElement.prototype, "subTitle", null);
ChatHeaderElement = __decorate([
    Component({
        selector: 'mosaik-chat-header',
        template: chatHeaderElementTemplate,
        themes: {
            joy: chatHeaderElementJoyStyle,
            retro: chatHeaderElementRetroStyle,
            cosmopolitan: chatHeaderElementCosmopolitanStyle
        },
        host: {
            slot: 'header'
        },
        imports: [
            TitleLayoutElement,
            ToolbarElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatHeaderElement);
export { ChatHeaderElement };
//# sourceMappingURL=ChatHeaderElement.js.map