// #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 { StateBaseElement } from '../Abstracts/StateBaseElement';
import { successStateElementTemplate } from './SuccessStateElementTemplate';
import { successStateElementJoyStyle } from './Themes/SuccessStateElement.Joy';
import { successStateElementMemphisStyle } from './Themes/SuccessStateElement.Memphis';
import { successStateElementCosmopolitanStyle } from './Themes/SuccessStateElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * SuccessState - A celebration component that displays successful operations and positive outcomes to users.
 *
 * Provides positive reinforcement and confirmation messaging when tasks complete successfully,
 * operations finish, or goals are achieved. Helps build user confidence and satisfaction
 * through clear success indicators and optional next-step actions.
 *
 * @name SuccessStateElement
 * @element mosaik-success-state
 * @category States
 *
 * @slot - Default content area for additional success information or custom content
 * @slot actions - Action buttons for next steps or related operations after success
 *
 * @csspart icon - Icon container for success state visual indicators (checkmarks, thumbs up)
 * @csspart header - Header text container for primary success messaging
 * @csspart content - Content text container for detailed success information
 *
 * @cssprop --success-state-header-font-family - Font family for header text
 * @cssprop --success-state-header-font-size - Font size for header text
 * @cssprop --success-state-header-font-line-height - Line height for header text
 * @cssprop --success-state-header-font-weight - Font weight for header text
 * @cssprop --success-state-header-font-letter-spacing - Letter spacing for header text
 * @cssprop --success-state-header-font-text-decoration - Text decoration for header text
 * @cssprop --success-state-header-font-text-transform - Text transform for header text
 *
 * @dependency IconElement - For displaying success icons and positive indicators
 * @dependency TextElement - For rendering header and content text
 * @dependency StackElement - For layout management and content arrangement
 *
 * @example
 * ```html
 * <!-- Form submission success -->
 * <mosaik-success-state>
 *   <mosaik-icon slot="icon" data="check-circle"></mosaik-icon>
 *   <mosaik-text slot="header">Form Submitted Successfully!</mosaik-text>
 *   <mosaik-text slot="content">Your information has been saved and processed.</mosaik-text>
 *   <div slot="actions">
 *     <mosaik-button appearance="primary" onclick="goToDashboard()">Go to Dashboard</mosaik-button>
 *   </div>
 * </mosaik-success-state>
 *
 * <!-- Payment confirmation -->
 * <mosaik-success-state>
 *   <mosaik-icon slot="icon" data="credit-card-check"></mosaik-icon>
 *   <mosaik-text slot="header">Payment Successful</mosaik-text>
 *   <mosaik-text slot="content">Your order has been confirmed and is being processed.</mosaik-text>
 *   <div slot="actions">
 *     <mosaik-button appearance="primary">View Order Details</mosaik-button>
 *     <mosaik-button appearance="soft">Continue Shopping</mosaik-button>
 *   </div>
 * </mosaik-success-state>
 *
 * <!-- File upload complete -->
 * <mosaik-success-state>
 *   <mosaik-icon slot="icon" data="file-check"></mosaik-icon>
 *   <mosaik-text slot="header">Upload Complete</mosaik-text>
 *   <mosaik-text slot="content">All files have been successfully uploaded and are ready to use.</mosaik-text>
 *   <div slot="actions">
 *     <mosaik-button appearance="primary">View Files</mosaik-button>
 *   </div>
 * </mosaik-success-state>
 *
 * <!-- Account created -->
 * <mosaik-success-state>
 *   <mosaik-icon slot="icon" data="user-check"></mosaik-icon>
 *   <mosaik-text slot="header">Welcome aboard!</mosaik-text>
 *   <mosaik-text slot="content">Your account has been created successfully. Let's get started!</mosaik-text>
 *   <div slot="actions">
 *     <mosaik-button appearance="primary">Complete Profile</mosaik-button>
 *     <mosaik-button appearance="soft">Explore Features</mosaik-button>
 *   </div>
 * </mosaik-success-state>
 * ```
 *
 * @public
 */
let SuccessStateElement = class SuccessStateElement extends Themeable(StateBaseElement) {
    // #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,
            memphis: successStateElementMemphisStyle,
            cosmopolitan: successStateElementCosmopolitanStyle
        },
        imports: [
            IconElement,
            TextElement,
            StackElement
        ]
    }),
    __metadata("design:paramtypes", [])
], SuccessStateElement);
export { SuccessStateElement };
//# sourceMappingURL=SuccessStateElement.js.map