// #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 { Stickable } from '../../../Behaviors/Stickable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { DividerElement } from '../../Primitives/Divider/DividerElement';
import { StickyElement } from '../../Primitives/Sticky/StickyElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { chatMessageDividerElementTemplate } from './ChatMessageDividerElementTemplate';
import { chatMessageDividerElementJoyStyle } from './Themes/ChatMessageDividerElement.Joy';
import { chatMessageDividerElementMemphisStyle } from './Themes/ChatMessageDividerElement.Memphis';
import { chatMessageDividerElementCosmopolitanStyle } from './Themes/ChatMessageDividerElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Chat Message Divider - Represents a visual divider between chat messages.
 *
 * @slot  - The default slot.
 *
 * @csspart divider - The divider part.
 * @csspart root - The root part.
 * @csspart sticky - The sticky part.
 * @csspart text - The text part.
 *
 * @cssprop {String} --chat-message-divider-font-family - The message divider font family CSS custom property.
 * @cssprop {String} --chat-message-divider-font-letter-spacing - The message divider font letter spacing CSS custom property.
 * @cssprop {String} --chat-message-divider-font-line-height - The message divider font line height CSS custom property.
 * @cssprop {String} --chat-message-divider-font-size - The message divider font size CSS custom property.
 * @cssprop {String} --chat-message-divider-font-text-decoration - The message divider font text decoration CSS custom property.
 * @cssprop {String} --chat-message-divider-font-text-transform - The message divider font text transform CSS custom property.
 * @cssprop {String} --chat-message-divider-font-weight - The message divider font weight CSS custom property.
 * @cssprop {String} --chat-message-divider-foreground-color - The message divider foreground color CSS custom property.
 * @cssprop {String} --chat-message-divider-gap - The message divider gap CSS custom property.
 * @cssprop {String} --chat-message-divider-padding-bottom - The message divider padding bottom CSS custom property.
 * @cssprop {String} --chat-message-divider-padding-left - The message divider padding left CSS custom property.
 * @cssprop {String} --chat-message-divider-padding-right - The message divider padding right CSS custom property.
 * @cssprop {String} --chat-message-divider-padding-top - The message divider padding top CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow - The message divider shadow CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow-blur - The message divider shadow blur CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow-color - The message divider shadow color CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow-offset-x - The message divider shadow offset x CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow-offset-y - The message divider shadow offset y CSS custom property.
 * @cssprop {String} --chat-message-divider-shadow-spread - The message divider shadow spread CSS custom property.
 * @cssprop {String} --chat-message-divider-transition-duration - The message divider transition duration CSS custom property.
 * @cssprop {String} --chat-message-divider-transition-mode - The message divider transition mode CSS custom property.
 * @cssprop {String} --chat-message-divider-transition-property - The message divider transition property CSS custom property.
 * @cssprop {String} --chat-message-divider-translate - The message divider translate CSS custom property.
 *
 * @dependency mosaik-divider - The Divider element.
 * @dependency mosaik-sticky - The Sticky element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic chat message divider:
 * ```html
 * <mosaik-chat-message-divider></mosaik-chat-message-divider>
 * ```
 *
 * @public
 */
let ChatMessageDividerElement = class ChatMessageDividerElement extends Themeable(Stickable(CustomElement)) {
    // #region Fields
    _text;
    _thickness;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._thickness = 1;
    }
    // #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-message-divider';
    }
    /**
     * Gets or sets the `text` property.
     *
     * @public
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
    /**
     * Gets or sets the `thickness` property.
     *
     * @public
     */
    get thickness() {
        return this._thickness;
    }
    set thickness(value) {
        if (this._thickness !== value) {
            this._thickness = value;
            this.requestUpdate('thickness');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatMessageDividerElement.prototype, "text", null);
__decorate([
    Property({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], ChatMessageDividerElement.prototype, "thickness", null);
ChatMessageDividerElement = __decorate([
    Component({
        selector: 'mosaik-chat-message-divider',
        template: chatMessageDividerElementTemplate,
        themes: {
            joy: chatMessageDividerElementJoyStyle,
            memphis: chatMessageDividerElementMemphisStyle,
            cosmopolitan: chatMessageDividerElementCosmopolitanStyle
        },
        host: {
            role: 'listitem',
            slot: 'message'
        },
        imports: [
            TextElement,
            DividerElement,
            StackElement,
            StickyElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatMessageDividerElement);
export { ChatMessageDividerElement };
//# sourceMappingURL=ChatMessageDividerElement.js.map