// #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 { Appearanceable } from '../../../Behaviors/Appearanceable';
import { ContentAlignable } from '../../../Behaviors/ContentAlignable';
import { Orientable } from '../../../Behaviors/Orientable';
import { Stickable } from '../../../Behaviors/Stickable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Variantable } from '../../../Behaviors/Variantable';
import { addInheritanceConsumerController } from '../../../Controllers/InheritanceConsumerController';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { StickyElement } from '../../Primitives/Sticky/StickyElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { IconElement } from '../Icon/IconElement';
import { CHAT_INHERITANCE_CONTEXT } from './ChatInheritanceContext';
import { chatMarkerElementTemplate } from './ChatMarkerElementTemplate';
import { chatMarkerElementCosmopolitanStyle } from './Themes/ChatMarkerElement.Cosmopolitan';
import { chatMarkerElementJoyStyle } from './Themes/ChatMarkerElement.Joy';
import { chatMarkerElementMemphisStyle } from './Themes/ChatMarkerElement.Memphis';
// #endregion
/**
 * Chat Marker - Represents a marker within a chat message.
 *
 * @slot  - The default slot.
 *
 * @csspart icon - The icon part.
 * @csspart root - The root part.
 * @csspart text - The text part.
 *
 * @cssprop {String} --chat-marker-background-color - The marker background color CSS custom property.
 * @cssprop {String} --chat-marker-border-color - The marker border color CSS custom property.
 * @cssprop {String} --chat-marker-border-radius - The marker border radius CSS custom property.
 * @cssprop {String} --chat-marker-border-style - The marker border style CSS custom property.
 * @cssprop {String} --chat-marker-border-width - The marker border width CSS custom property.
 * @cssprop {String} --chat-marker-font-family - The marker font family CSS custom property.
 * @cssprop {String} --chat-marker-font-letter-spacing - The marker font letter spacing CSS custom property.
 * @cssprop {String} --chat-marker-font-line-height - The marker font line height CSS custom property.
 * @cssprop {String} --chat-marker-font-size - The marker font size CSS custom property.
 * @cssprop {String} --chat-marker-font-text-decoration - The marker font text decoration CSS custom property.
 * @cssprop {String} --chat-marker-font-text-transform - The marker font text transform CSS custom property.
 * @cssprop {String} --chat-marker-font-weight - The marker font weight CSS custom property.
 * @cssprop {String} --chat-marker-foreground-color - The marker foreground color CSS custom property.
 * @cssprop {String} --chat-marker-gap - The marker gap CSS custom property.
 * @cssprop {String} --chat-marker-padding-bottom - The marker padding bottom CSS custom property.
 * @cssprop {String} --chat-marker-padding-left - The marker padding left CSS custom property.
 * @cssprop {String} --chat-marker-padding-right - The marker padding right CSS custom property.
 * @cssprop {String} --chat-marker-padding-top - The marker padding top CSS custom property.
 * @cssprop {String} --chat-marker-shadow - The marker shadow CSS custom property.
 * @cssprop {String} --chat-marker-shadow-blur - The marker shadow blur CSS custom property.
 * @cssprop {String} --chat-marker-shadow-color - The marker shadow color CSS custom property.
 * @cssprop {String} --chat-marker-shadow-offset-x - The marker shadow offset x CSS custom property.
 * @cssprop {String} --chat-marker-shadow-offset-y - The marker shadow offset y CSS custom property.
 * @cssprop {String} --chat-marker-shadow-spread - The marker shadow spread CSS custom property.
 * @cssprop {String} --chat-marker-transition-duration - The marker transition duration CSS custom property.
 * @cssprop {String} --chat-marker-transition-mode - The marker transition mode CSS custom property.
 * @cssprop {String} --chat-marker-transition-property - The marker transition property CSS custom property.
 * @cssprop {String} --chat-marker-translate - The marker translate CSS custom property.
 *
 * @dependency mosaik-icon - The Icon element.
 * @dependency mosaik-sticky - The Sticky element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic chat marker:
 * ```html
 * <mosaik-chat-marker></mosaik-chat-marker>
 * ```
 *
 * @example
 * Chat marker with a variant:
 * ```html
 * <mosaik-chat-marker variant="primary"></mosaik-chat-marker>
 * ```
 *
 * @public
 */
let ChatMarkerElement = class ChatMarkerElement extends Themeable(Variantable(Orientable(ContentAlignable(Stickable(TextFormattable(Appearanceable(CustomElement))))))) {
    // #region Fields
    _inheritance = addInheritanceConsumerController(this, {
        context: CHAT_INHERITANCE_CONTEXT
    });
    _text;
    _icon;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._icon = '';
    }
    // #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-marker';
    }
    /**
     * 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 `icon` property.
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
            this.requestUpdate('icon');
        }
    }
    /**
     * Gets or sets the `variant` property.
     * Inherits from parent `ChatElement` if not explicitly set.
     *
     * @override
     * @public
     */
    get variant() {
        return this._inheritance.get('variant', super.variant);
    }
    set variant(value) {
        this._inheritance.markExplicit('variant');
        super.variant = value;
    }
    /**
     * Gets or sets the `appearance` property.
     * Inherits from parent `ChatElement` if not explicitly set.
     *
     * @override
     * @public
     */
    get appearance() {
        return this._inheritance.get('appearance', super.appearance);
    }
    set appearance(value) {
        this._inheritance.markExplicit('appearance');
        super.appearance = value;
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatMarkerElement.prototype, "text", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], ChatMarkerElement.prototype, "icon", null);
ChatMarkerElement = __decorate([
    Component({
        selector: 'mosaik-chat-marker',
        template: chatMarkerElementTemplate,
        themes: {
            joy: chatMarkerElementJoyStyle,
            memphis: chatMarkerElementMemphisStyle,
            cosmopolitan: chatMarkerElementCosmopolitanStyle
        },
        host: {
            role: 'listitem',
            slot: 'message'
        },
        imports: [
            TextElement,
            StackElement,
            IconElement,
            StickyElement
        ]
    }),
    __metadata("design:paramtypes", [])
], ChatMarkerElement);
export { ChatMarkerElement };
//# sourceMappingURL=ChatMarkerElement.js.map