// #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 { ContentAlignable } from '../../../Behaviors/ContentAlignable';
import { Orientable } from '../../../Behaviors/Orientable';
import { Themeable } from '../../../Behaviors/Themeable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { PersonaPresence } from '../../../Types/PersonaPresence';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { AvatarElement } from '../Avatar/AvatarElement';
import { personaElementTemplate } from './PersonaElementTemplate';
import { personaElementCosmopolitanStyle } from './Themes/PersonaElement.Cosmopolitan';
import { personaElementJoyStyle } from './Themes/PersonaElement.Joy';
import { personaElementMemphisStyle } from './Themes/PersonaElement.Memphis';
// #endregion
/**
 * Persona - A visual representation of an individual user or character, typically displayed as an avatar along with additional information such as name, role, or status.
 * Personas are commonly used to provide context and personalization in user interfaces.
 *
 * @element mosaik-persona
 *
 * @csspart avatar - The avatar part of persona.
 * @csspart presence - The presence part of persona.
 * @csspart primaryText - The text part of persona.
 * @csspart quaternaryText - The text part of persona.
 * @csspart root - The root part of persona.
 * @csspart secondaryText - The text part of persona.
 * @csspart tertiaryText - The text part of persona.
 *
 * @cssprop {String} --persona-background-color - The background color CSS custom property.
 * @cssprop {String} --persona-border-color - The border color CSS custom property.
 * @cssprop {String} --persona-border-radius - The border radius CSS custom property.
 * @cssprop {String} --persona-border-style - The border style CSS custom property.
 * @cssprop {String} --persona-border-width - The border width CSS custom property.
 * @cssprop {String} --persona-font-family - The font family CSS custom property.
 * @cssprop {String} --persona-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --persona-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --persona-font-size - The font size CSS custom property.
 * @cssprop {String} --persona-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --persona-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --persona-font-weight - The font weight CSS custom property.
 * @cssprop {String} --persona-foreground-color - The foreground color CSS custom property.
 * @cssprop {String} --persona-gap - The gap CSS custom property.
 * @cssprop {String} --persona-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --persona-padding-left - The padding left CSS custom property.
 * @cssprop {String} --persona-padding-right - The padding right CSS custom property.
 * @cssprop {String} --persona-padding-top - The padding top CSS custom property.
 * @cssprop {String} --persona-shadow - The shadow CSS custom property.
 * @cssprop {String} --persona-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --persona-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --persona-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --persona-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --persona-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --persona-transition-duration - The transition duration CSS custom property.
 * @cssprop {String} --persona-transition-mode - The transition mode CSS custom property.
 * @cssprop {String} --persona-transition-property - The transition property CSS custom property.
 * @cssprop {String} --persona-translate - The translate CSS custom property.
 *
 * @dependency mosaik-avatar - The Avatar element.
 * @dependency mosaik-dot - The Dot element.
 * @dependency mosaik-stack - The Stack element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * ```html
 * <!-- Basic persona (set text properties via JavaScript) -->
 * <mosaik-persona></mosaik-persona>
 *
 * <!-- Persona with online presence indicator -->
 * <mosaik-persona presence="online"></mosaik-persona>
 *
 * <!-- Horizontal persona layout with busy status -->
 * <mosaik-persona orientation="horizontal" presence="busy"></mosaik-persona>
 * ```
 *
 * @public
 */
let PersonaElement = class PersonaElement extends Themeable(Orientable(ContentAlignable(AvatarElement))) {
    // #region Fields
    _primaryText;
    _secondaryText;
    _tertiaryText;
    _quaternaryText;
    _presence;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._primaryText = '';
        this._secondaryText = '';
        this._tertiaryText = '';
        this._quaternaryText = '';
        this._presence = PersonaPresence.None;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @override
     * @readonly
     */
    static get is() {
        return 'mosaik-persona';
    }
    /**
     * The first line of text in the Persona, larger than the rest of the lines.
     *
     * @public
     */
    get primaryText() {
        return this._primaryText;
    }
    set primaryText(value) {
        if (this._primaryText !== value) {
            this._primaryText = value;
            this.requestUpdate('primaryText');
        }
    }
    /**
     * The second line of text in the Persona.
     *
     * @public
     */
    get secondaryText() {
        return this._secondaryText;
    }
    set secondaryText(value) {
        if (this._secondaryText !== value) {
            this._secondaryText = value;
            this.requestUpdate('secondaryText');
        }
    }
    /**
     * The third line of text in the Persona.
     *
     * @public
     */
    get tertiaryText() {
        return this._tertiaryText;
    }
    set tertiaryText(value) {
        if (this._tertiaryText !== value) {
            this._tertiaryText = value;
            this.requestUpdate('tertiaryText');
        }
    }
    /**
     * The fourth line of text in the Persona.
     *
     * @public
     */
    get quaternaryText() {
        return this._quaternaryText;
    }
    set quaternaryText(value) {
        if (this._quaternaryText !== value) {
            this._quaternaryText = value;
            this.requestUpdate('quaternaryText');
        }
    }
    /**
     * The presence Badge to display.
     *
     * @public
     */
    get presence() {
        return this._presence;
    }
    set presence(value) {
        if (this._presence !== value) {
            this._presence = value;
            this.requestUpdate('presence');
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PersonaElement.prototype, "primaryText", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PersonaElement.prototype, "secondaryText", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PersonaElement.prototype, "tertiaryText", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PersonaElement.prototype, "quaternaryText", null);
__decorate([
    Attribute({ type: PersonaPresence }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], PersonaElement.prototype, "presence", null);
PersonaElement = __decorate([
    Component({
        selector: 'mosaik-persona',
        template: personaElementTemplate,
        themes: {
            joy: personaElementJoyStyle,
            memphis: personaElementMemphisStyle,
            cosmopolitan: personaElementCosmopolitanStyle
        },
        imports: [
            AvatarElement,
            StackElement,
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], PersonaElement);
export { PersonaElement };
//# sourceMappingURL=PersonaElement.js.map