// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { ButtonElement } from '../../Buttons/Button/ButtonElement';
import { chatMessageReactionElementTemplate } from './ChatMessageReactionElementTemplate';
import { chatMessageReactionElementCosmopolitanStyle } from './Themes/ChatMessageReactionElement.Cosmopolitan';
import { chatMessageReactionElementJoyStyle } from './Themes/ChatMessageReactionElement.Joy';
import { chatMessageReactionElementMemphisStyle } from './Themes/ChatMessageReactionElement.Memphis';
// #endregion
/**
 * Chat Message Reaction - Represents a single reaction to a chat message.
 *
 * @csspart count - The count part.
 * @csspart emoji - The emoji part.
 *
 * @cssprop {String} --chat-message-reaction-font-family - The message reaction font family CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-letter-spacing - The message reaction font letter spacing CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-line-height - The message reaction font line height CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-size - The message reaction font size CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-text-decoration - The message reaction font text decoration CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-text-transform - The message reaction font text transform CSS custom property.
 * @cssprop {String} --chat-message-reaction-font-weight - The message reaction font weight CSS custom property.
 * @cssprop {String} --chat-message-reaction-foreground-color - The message reaction foreground color CSS custom property.
 * @cssprop {String} --chat-message-reaction-gap - The message reaction gap CSS custom property.
 * @cssprop {String} --chat-message-reaction-padding-bottom - The message reaction padding bottom CSS custom property.
 * @cssprop {String} --chat-message-reaction-padding-left - The message reaction padding left CSS custom property.
 * @cssprop {String} --chat-message-reaction-padding-right - The message reaction padding right CSS custom property.
 * @cssprop {String} --chat-message-reaction-padding-top - The message reaction padding top CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow - The message reaction shadow CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow-blur - The message reaction shadow blur CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow-color - The message reaction shadow color CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow-offset-x - The message reaction shadow offset x CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow-offset-y - The message reaction shadow offset y CSS custom property.
 * @cssprop {String} --chat-message-reaction-shadow-spread - The message reaction shadow spread CSS custom property.
 * @cssprop {String} --chat-message-reaction-transition-duration - The message reaction transition duration CSS custom property.
 * @cssprop {String} --chat-message-reaction-transition-mode - The message reaction transition mode CSS custom property.
 * @cssprop {String} --chat-message-reaction-transition-property - The message reaction transition property CSS custom property.
 * @cssprop {String} --chat-message-reaction-translate - The message reaction translate CSS custom property.
 *
 * @dependency mosaik-button - The Button element.
 * @dependency mosaik-emoji - The Emoji element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic chat message reaction:
 * ```html
 * <mosaik-chat-message-reaction></mosaik-chat-message-reaction>
 * ```
 *
 * @example
 * Disabled reaction:
 * ```html
 * <mosaik-chat-message-reaction disabled></mosaik-chat-message-reaction>
 * ```
 *
 * @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 `is` property.
     * The `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,
            memphis: chatMessageReactionElementMemphisStyle,
            cosmopolitan: chatMessageReactionElementCosmopolitanStyle
        },
        host: {
            role: 'button',
            slot: 'reaction'
        },
        imports: [
            ButtonElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatMessageReactionElement);
export { ChatMessageReactionElement };
//# sourceMappingURL=ChatMessageReactionElement.js.map