// #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 { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { Property } from '../../../Decorators/PropertyDecorator';
import { StackElement } from '../../Layouts/Stack/StackElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { StateBaseElement } from '../Abstracts/StateBaseElement';
import { busyStateElementTemplate } from './BusyStateElementTemplate';
import { busyStateElementJoyStyle } from './Themes/BusyStateElement.Joy';
import { busyStateElementRetroStyle } from './Themes/BusyStateElement.Retro';
import { busyStateElementCosmopolitanStyle } from './Themes/BusyStateElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
import { ProgressRingElement } from '../../Ranges/ProgressRing/ProgressRingElement';
// #endregion
/**
 * BusyState - A loading state component that indicates ongoing processes or data retrieval operations.
 *
 * Displays animated loading indicators and optional status messages to inform users when content
 * is being loaded, processed, or retrieved. Provides visual feedback for asynchronous operations
 * to maintain user engagement and communicate system activity.
 *
 * @name BusyStateElement
 * @element mosaik-busy-state
 * @category States
 *
 * @slot - Default content area for additional loading state information
 * @slot actions - Action buttons or controls available during loading (e.g., cancel operation)
 *
 * @csspart icon - Loading indicator container for progress ring or spinner
 * @csspart header - Header text container for loading status messaging
 * @csspart content - Content text container for detailed loading information
 *
 * @cssprop --busy-state-foreground-color - Text color for busy state content
 * @cssprop --icon-foreground-color - Color for the loading indicator
 * @cssprop --busy-state-header-font-family - Font family for header text
 * @cssprop --busy-state-header-font-size - Font size for header text
 * @cssprop --busy-state-header-font-line-height - Line height for header text
 * @cssprop --busy-state-header-font-weight - Font weight for header text
 * @cssprop --busy-state-header-font-letter-spacing - Letter spacing for header text
 * @cssprop --busy-state-header-font-text-decoration - Text decoration for header text
 * @cssprop --busy-state-header-font-text-transform - Text transform for header text
 *
 * @dependency ProgressRingElement - For animated loading indicators and progress visualization
 * @dependency TextElement - For rendering header and content text
 * @dependency StackElement - For layout management and content arrangement
 *
 * @example
 * ```html
 * <!-- Simple loading state -->
 * <mosaik-busy-state>
 *   <mosaik-progress-ring slot="icon"></mosaik-progress-ring>
 *   <mosaik-text slot="header">Loading...</mosaik-text>
 * </mosaik-busy-state>
 *
 * <!-- Data loading with details -->
 * <mosaik-busy-state>
 *   <mosaik-progress-ring slot="icon"></mosaik-progress-ring>
 *   <mosaik-text slot="header">Loading your dashboard</mosaik-text>
 *   <mosaik-text slot="content">This may take a few moments</mosaik-text>
 * </mosaik-busy-state>
 *
 * <!-- Upload progress -->
 * <mosaik-busy-state>
 *   <mosaik-progress-ring slot="icon" value="65"></mosaik-progress-ring>
 *   <mosaik-text slot="header">Uploading files...</mosaik-text>
 *   <mosaik-text slot="content">65% complete</mosaik-text>
 *   <div slot="actions">
 *     <mosaik-button appearance="soft" onclick="cancelUpload()">Cancel</mosaik-button>
 *   </div>
 * </mosaik-busy-state>
 *
 * <!-- Search in progress -->
 * <mosaik-busy-state>
 *   <mosaik-progress-ring slot="icon"></mosaik-progress-ring>
 *   <mosaik-text slot="header">Searching...</mosaik-text>
 *   <mosaik-text slot="content">Finding the best results for you</mosaik-text>
 * </mosaik-busy-state>
 * ```
 *
 * @public
 */
let BusyStateElement = class BusyStateElement extends Themeable(StateBaseElement) {
    // #region Fields
    _header;
    _icon;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `BusyStateElement` class.
     *
     * @public
     */
    constructor() {
        super();
        this._icon = '';
        this._header = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-busy-state';
    }
    /**
     * Gets or sets the 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 header property of the state.
     *
     * @public
     * @attr
     */
    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])
], BusyStateElement.prototype, "icon", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BusyStateElement.prototype, "header", null);
BusyStateElement = __decorate([
    Component({
        selector: 'mosaik-busy-state',
        template: busyStateElementTemplate,
        themes: {
            joy: busyStateElementJoyStyle,
            retro: busyStateElementRetroStyle,
            cosmopolitan: busyStateElementCosmopolitanStyle
        },
        imports: [
            ProgressRingElement,
            TextElement,
            StackElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BusyStateElement);
export { BusyStateElement };
//# sourceMappingURL=BusyStateElement.js.map