// #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 { chatHeaderElementMemphisStyle } from './Themes/ChatHeaderElement.Memphis';
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 after - The content placed at the end of the chat header.
 * @slot before - The content placed at the beginning of the chat header.
 *
 * @csspart toolbar - The toolbar part.
 *
 * @cssprop {String} --chat-header-font-family - The header font family CSS custom property.
 * @cssprop {String} --chat-header-font-letter-spacing - The header font letter spacing CSS custom property.
 * @cssprop {String} --chat-header-font-line-height - The header font line height CSS custom property.
 * @cssprop {String} --chat-header-font-size - The header font size CSS custom property.
 * @cssprop {String} --chat-header-font-text-decoration - The header font text decoration CSS custom property.
 * @cssprop {String} --chat-header-font-text-transform - The header font text transform CSS custom property.
 * @cssprop {String} --chat-header-font-weight - The header font weight CSS custom property.
 * @cssprop {String} --chat-header-gap - The header gap CSS custom property.
 * @cssprop {String} --chat-header-height - The header height CSS custom property.
 * @cssprop {String} --chat-header-padding-bottom - The header padding bottom CSS custom property.
 * @cssprop {String} --chat-header-padding-left - The header padding left CSS custom property.
 * @cssprop {String} --chat-header-padding-right - The header padding right CSS custom property.
 * @cssprop {String} --chat-header-padding-top - The header padding top CSS custom property.
 * @cssprop {String} --chat-header-shadow - The header shadow CSS custom property.
 * @cssprop {String} --chat-header-shadow-blur - The header shadow blur CSS custom property.
 * @cssprop {String} --chat-header-shadow-color - The header shadow color CSS custom property.
 * @cssprop {String} --chat-header-shadow-offset-x - The header shadow offset x CSS custom property.
 * @cssprop {String} --chat-header-shadow-offset-y - The header shadow offset y CSS custom property.
 * @cssprop {String} --chat-header-shadow-spread - The header shadow spread CSS custom property.
 * @cssprop {String} --chat-header-transition-duration - The header transition duration CSS custom property.
 * @cssprop {String} --chat-header-transition-mode - The header transition mode CSS custom property.
 * @cssprop {String} --chat-header-transition-property - The header transition property CSS custom property.
 * @cssprop {String} --chat-header-translate - The header translate CSS custom property.
 *
 * @dependency mosaik-title-layout - The Title Layout element.
 * @dependency mosaik-toolbar - The Toolbar element.
 *
 * @example
 * Basic chat header:
 * ```html
 * <mosaik-chat-header></mosaik-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 `is` property.
     * The `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,
            memphis: chatHeaderElementMemphisStyle,
            cosmopolitan: chatHeaderElementCosmopolitanStyle
        },
        host: {
            slot: 'header'
        },
        imports: [
            TitleLayoutElement,
            ToolbarElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatHeaderElement);
export { ChatHeaderElement };
//# sourceMappingURL=ChatHeaderElement.js.map