// #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 { commentElementMemphisStyle } from './Themes/CommentElement.Memphis';
import { commentElementCosmopolitanStyle } from './Themes/CommentElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Comment - A user interface component for displaying and interacting with comments.
 *
 * @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.
 *
 * @element mosaik-comment
 * @category Media
 *
 * @slot - The default slot.
 * @slot actions - The actions slot.
 * @slot at - The at slot.
 * @slot author - The author slot.
 * @slot avatar - The avatar slot.
 * @slot content - The content slot.
 *
 * @csspart actions - The actions part.
 * @csspart at - The at part.
 * @csspart author - The author part.
 * @csspart avatar - The avatar part.
 * @csspart content - The content part.
 * @csspart inner - The inner part.
 * @csspart innerStack - The innerStack part.
 * @csspart nested - The nested part.
 *
 * @cssprop {String} --comment-font-family - The font family CSS custom property.
 * @cssprop {String} --comment-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --comment-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --comment-font-size - The font size CSS custom property.
 * @cssprop {String} --comment-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --comment-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --comment-font-weight - The font weight CSS custom property.
 * @cssprop {String} --comment-foreground-color - The foreground color CSS custom property.
 * @cssprop {String} --comment-gap - The gap CSS custom property.
 * @cssprop {String} --comment-inner-gap - The inner gap CSS custom property.
 * @cssprop {String} --comment-nested-indent - The nested indent CSS custom property.
 * @cssprop {String} --comment-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --comment-padding-left - The padding left CSS custom property.
 * @cssprop {String} --comment-padding-right - The padding right CSS custom property.
 * @cssprop {String} --comment-padding-top - The padding top CSS custom property.
 * @cssprop {String} --comment-shadow - The shadow CSS custom property.
 * @cssprop {String} --comment-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --comment-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --comment-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --comment-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --comment-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --comment-transition-duration - The transition duration CSS custom property.
 * @cssprop {String} --comment-transition-mode - The transition mode CSS custom property.
 * @cssprop {String} --comment-transition-property - The transition property CSS custom property.
 * @cssprop {String} --comment-translate - The translate CSS custom property.
 *
 * @dependency {StackElement} mosaik-stack - The stack element.
 * @dependency {TextElement} mosaik-text - The text element.
 *
 * @example
 * Basic usage with slotted content:
 * ```html
 * <mosaik-comment>
 *   <span slot="author">John Doe</span>
 *   <span slot="at">2 hours ago</span>
 *   <span slot="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
 * </mosaik-comment>
 * ```
 *
 * @example
 * With avatar and actions:
 * ```html
 * <mosaik-comment>
 *   <mosaik-avatar slot="avatar"></mosaik-avatar>
 *   <span slot="author">Jane Smith</span>
 *   <span slot="at">Yesterday</span>
 *   <span slot="content">This is a reply to your comment.</span>
 * </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 `is` property.
     * The `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,
            memphis: commentElementMemphisStyle,
            cosmopolitan: commentElementCosmopolitanStyle
        },
        imports: [
            StackElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], CommentElement);
export { CommentElement };
//# sourceMappingURL=CommentElement.js.map