// #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 { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { commentElementTemplate } from './CommentElementTemplate';
import { commentElementJoyStyle } from './Themes/CommentElement.Joy';
import { commentElementRetroStyle } from './Themes/CommentElement.Retro';
import { commentElementCosmopolitanStyle } from './Themes/CommentElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Comment - A user interface component for displaying and interacting with comments.
 *
 * @element mosaik-comment
 *
 * @description
 * The Comment component is designed for displaying and managing user comments or messages within an application or web page. It provides a structured format for presenting comments, including the commenter's name, avatar, timestamp, and the comment content.
 *
 * @category Media
 *
 * @slot - The default slot.
 * @slot avatar - The avatar slot.
 * @slot author - The author slot.
 * @slot at - The at slot.
 * @slot content - The content slot.
 * @slot actions - The actions slot.
 *
 * @dependency {StackElement} mosaik-stack - The stack element.
 * @dependency {TextElement} mosaik-text - The text element.
 *
 * @example
 * ```html
 * <mosaik-comment
 *   author="John Doe"
 *   at="2 hours ago"
 *   content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">
 * </mosaik-comment>
 * ```
 *
 * @public
 */
let CommentElement = class CommentElement extends Themeable(TextFormattable(CustomElement)) {
    // #region Fields
    _author;
    _at;
    _content;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._author = '';
        this._at = '';
        this._content = '';
    }
    // #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-comment';
    }
    /**
     * Gets or sets the `author` property.
     *
     * @public
     */
    get author() {
        return this._author;
    }
    set author(value) {
        if (this._author !== value) {
            this._author = value;
            this.requestUpdate('author');
        }
    }
    /**
     * Gets or sets the `at` property.
     *
     * @public
     */
    get at() {
        return this._at;
    }
    set at(value) {
        if (this._at !== value) {
            this._at = value;
            this.requestUpdate('at');
        }
    }
    /**
     * Gets or sets the `content` property.
     *
     * @public
     */
    get content() {
        return this._content;
    }
    set content(value) {
        if (this._content !== value) {
            this._content = value;
            this.requestUpdate('content');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CommentElement.prototype, "author", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CommentElement.prototype, "at", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], CommentElement.prototype, "content", null);
CommentElement = __decorate([
    Component({
        selector: 'mosaik-comment',
        template: commentElementTemplate,
        themes: {
            joy: commentElementJoyStyle,
            retro: commentElementRetroStyle,
            cosmopolitan: commentElementCosmopolitanStyle
        },
        imports: [
            StackElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CommentElement);
export { CommentElement };
//# sourceMappingURL=CommentElement.js.map