// #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 { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { IconElement } from '../../Media/Icon/IconElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { StateElement } from '../Abstracts/StateElement';
import { successStateElementTemplate } from './SuccessStateElementTemplate';
import { successStateElementJoyStyle } from './Themes/SuccessStateElement.Joy';
import { successStateElementRetroStyle } from './Themes/SuccessStateElement.Retro';
import { successStateElementCosmopolitanStyle } from './Themes/SuccessStateElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Success State - A UI component that represents a success state, typically used to display a success message or indicator.
 *
 * @description
 * The Success State component is designed to visually represent a successful operation or state in the user interface.
 * It usually includes an icon, header, and content section to convey a positive outcome or confirmation. This component
 * is often used in forms, notifications, or status indicators to inform users of successful actions.
 *
 * @name SuccessState
 * @element mosaik-success-state
 * @category States
 *
 * @slot - The default slot, used for displaying the success state content.
 * @slot actions - The actions slot, used for displaying action buttons or links related to the success state.
 *
 * @csspart icon - The icon part of the success state component.
 * @csspart header - The header part of the success state component.
 * @csspart content - The content part of the success state component.
 *
 * @cssprop {String} --success-state-header-font-family - The font family for the header text.
 * @cssprop {String} --success-state-header-font-size - The font size for the header text.
 * @cssprop {String} --success-state-header-font-line-height - The line height for the header text.
 * @cssprop {String} --success-state-header-font-weight - The font weight for the header text.
 * @cssprop {String} --success-state-header-font-letter-spacing - The letter spacing for the header text.
 * @cssprop {String} --success-state-header-font-text-decoration - The text decoration for the header text.
 * @cssprop {String} --success-state-header-font-text-transform - The text transform for the header text.
 *
 * @dependency {IconElement} mosaik-icon - The Icon component, used for displaying the success icon.
 * @dependency {TextElement} mosaik-text - The Text component, used for displaying the header and content text.
 * @dependency {StackElement} mosaik-stack - The Stack component, used for layout management of the icon, header, and content.
 *
 * @example
 * ```html
 * <mosaik-success-state></mosaik-success-state>
 * ```
 *
 * @public
 */
let SuccessStateElement = class SuccessStateElement extends Themeable(StateElement) {
    // #region Fields
    _icon;
    _header;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `SuccessStateElement` class.
     *
     * @public
     */
    constructor() {
        super();
        this._icon = '';
        this._header = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-success-state';
    }
    /**
     * Gets or sets the success icon property of the state.
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
        }
    }
    /**
     * Gets or sets the success header property of the state.
     *
     * @public
     */
    get header() {
        return this._header;
    }
    set header(value) {
        if (this._header !== value) {
            this._header = value;
        }
    }
};
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], SuccessStateElement.prototype, "icon", null);
__decorate([
    Property({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], SuccessStateElement.prototype, "header", null);
SuccessStateElement = __decorate([
    Component({
        selector: 'mosaik-success-state',
        template: successStateElementTemplate,
        themes: {
            joy: successStateElementJoyStyle,
            retro: successStateElementRetroStyle,
            cosmopolitan: successStateElementCosmopolitanStyle
        },
        imports: [
            IconElement,
            TextElement,
            StackElement
        ]
    }),
    __metadata("design:paramtypes", [])
], SuccessStateElement);
export { SuccessStateElement };
//# sourceMappingURL=SuccessStateElement.js.map