// #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 { Themeable } from '../../../Behaviors/Themeable';
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 { ProgressRingElement } from '../../Ranges/ProgressRing/ProgressRingElement';
import { StateBaseElement } from '../Abstracts/StateBaseElement';
import { busyStateElementTemplate } from './BusyStateElementTemplate';
import { busyStateElementCosmopolitanStyle } from './Themes/BusyStateElement.Cosmopolitan';
import { busyStateElementJoyStyle } from './Themes/BusyStateElement.Joy';
import { busyStateElementMemphisStyle } from './Themes/BusyStateElement.Memphis';
// #endregion
/**
 * BusyState - A loading state component that indicates ongoing processes or data retrieval operations.
 *
 * @description
 * The BusyState component displays animated loading indicators and optional status messages to inform
 * users when content is being loaded, processed, or retrieved. It provides visual feedback for
 * asynchronous operations to maintain user engagement and communicate system activity. The component
 * supports progress indicators, customizable messaging, and optional action buttons such as cancel
 * operations. It's designed to maintain user confidence during wait times by clearly communicating
 * that the system is working on their request.
 *
 * @name BusyState
 * @element mosaik-busy-state
 * @category States
 *
 * @slot - Default content area for additional loading state information or custom elements
 * @slot actions - Action buttons or controls available during loading (e.g., cancel operation, dismiss)
 *
 * @csspart symbol - The loading indicator container for progress ring or spinner
 * @csspart header - The header text container for primary loading status messaging
 * @csspart content - The content text container for detailed loading information
 * @csspart innerStack - The internal stack container for action slot elements
 *
 * @cssprop {String} --busy-state-foreground-color - The text color for busy state content
 * @cssprop {String} --busy-state-gap - The spacing between symbol, text, and action elements
 * @cssprop {String} --busy-state-header-font-family - The font family for header text
 * @cssprop {String} --busy-state-header-font-size - The font size for header text
 * @cssprop {String} --busy-state-header-font-line-height - The line height for header text
 * @cssprop {String} --busy-state-header-font-weight - The font weight for header text
 * @cssprop {String} --busy-state-header-font-letter-spacing - The letter spacing for header text
 * @cssprop {String} --busy-state-header-font-text-decoration - The text decoration style for header text
 * @cssprop {String} --busy-state-header-font-text-transform - The text transformation style for header text
 * @cssprop {String} --busy-state-padding-top - The top padding inside the busy state container
 * @cssprop {String} --busy-state-padding-right - The right padding inside the busy state container
 * @cssprop {String} --busy-state-padding-bottom - The bottom padding inside the busy state container
 * @cssprop {String} --busy-state-padding-left - The left padding inside the busy state container
 *
 * @dependency {ProgressRingElement} - For animated loading indicators and progress visualization
 * @dependency {TextElement} - For rendering header and content text messages
 * @dependency {StackElement} - For layout management and content arrangement
 *
 * @example
 * Simple loading state:
 * ```html
 * <mosaik-busy-state header="Loading..."></mosaik-busy-state>
 * ```
 *
 * @example
 * Data loading with details:
 * ```html
 * <mosaik-busy-state header="Loading your dashboard" content="This may take a few moments"></mosaik-busy-state>
 * ```
 *
 * @example
 * Upload progress with cancel action:
 * ```html
 * <mosaik-busy-state header="Uploading files..." content="65% complete">
 *   <mosaik-button slot="actions" appearance="soft" onclick="cancelUpload()">Cancel</mosaik-button>
 * </mosaik-busy-state>
 * ```
 *
 * @example
 * Search in progress:
 * ```html
 * <mosaik-busy-state header="Searching..." content="Finding the best results for you"></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.
     * The icon SVG path data for the loading indicator.
     * The default value is an empty string.
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
        }
    }
    /**
     * Gets or sets the `header` property.
     * The primary loading status message displayed to users.
     * The default value is an empty string, which means no header is displayed.
     *
     * @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,
            memphis: busyStateElementMemphisStyle,
            cosmopolitan: busyStateElementCosmopolitanStyle
        },
        imports: [
            ProgressRingElement,
            TextElement,
            StackElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BusyStateElement);
export { BusyStateElement };
//# sourceMappingURL=BusyStateElement.js.map