// #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 { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { chatMessageReactionElementTemplate } from './ChatMessageReactionElementTemplate';
import { chatMessageReactionElementJoyStyle } from './Themes/ChatMessageReactionElement.Joy';
import { chatMessageReactionElementRetroStyle } from './Themes/ChatMessageReactionElement.Retro';
import { chatMessageReactionElementCosmopolitanStyle } from './Themes/ChatMessageReactionElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
import { ButtonElement } from '../../Buttons/Button/ButtonElement';
import { Disableable } from '../../../Behaviors/Disableable';
// #endregion
/**
 * Chat Message Reaction - Represents a single reaction to a chat message.
 *
 * @public
 */
let ChatMessageReactionElement = class ChatMessageReactionElement extends Themeable(Disableable(CustomElement)) {
    // #region Fields
    _emoji;
    _count;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._emoji = '';
        this._count = 1;
    }
    // #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-message-reaction';
    }
    /**
     * Gets or sets the `emoji` property.
     *
     * @public
     */
    get emoji() {
        return this._emoji;
    }
    set emoji(value) {
        if (this._emoji !== value) {
            this._emoji = value;
            this.requestUpdate('emoji');
        }
    }
    /**
     * Gets or sets the `count` property.
     *
     * @public
     */
    get count() {
        return this._count;
    }
    set count(value) {
        if (this._count !== value) {
            this._count = value;
            this.requestUpdate('count');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatMessageReactionElement.prototype, "emoji", null);
__decorate([
    Property({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], ChatMessageReactionElement.prototype, "count", null);
ChatMessageReactionElement = __decorate([
    Component({
        selector: 'mosaik-chat-message-reaction',
        template: chatMessageReactionElementTemplate,
        themes: {
            joy: chatMessageReactionElementJoyStyle,
            retro: chatMessageReactionElementRetroStyle,
            cosmopolitan: chatMessageReactionElementCosmopolitanStyle
        },
        host: {
            role: 'button',
            slot: 'reaction'
        },
        imports: [
            ButtonElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatMessageReactionElement);
export { ChatMessageReactionElement };
//# sourceMappingURL=ChatMessageReactionElement.js.map