// #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 { IconElement } from '../../Media/Icon/IconElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { StateBaseElement } from '../Abstracts/StateBaseElement';
import { emptyStateElementTemplate } from './EmptyStateElementTemplate';
import { emptyStateElementCosmopolitanStyle } from './Themes/EmptyStateElement.Cosmopolitan';
import { emptyStateElementJoyStyle } from './Themes/EmptyStateElement.Joy';
import { emptyStateElementMemphisStyle } from './Themes/EmptyStateElement.Memphis';
// #endregion
/**
 * EmptyState - A user-friendly placeholder component for displaying when no content or data is available.
 *
 * @description
 * The EmptyState component provides informative messaging and optional call-to-action elements when
 * lists, searches, or data sets return no results. It helps guide users with clear messaging and
 * actionable next steps to improve user experience during empty content scenarios. The component
 * features customizable icons, header and content text, and action buttons to direct users toward
 * productive alternatives. It's particularly useful for empty search results, first-time experiences,
 * cleared notifications, and any scenario where data absence needs clear communication.
 *
 * @name EmptyState
 * @element mosaik-empty-state
 * @category States
 *
 * @slot - Default content area for additional empty state information or custom elements
 * @slot actions - Action buttons or links for user guidance and next steps
 *
 * @csspart content - The content text container for detailed explanation
 * @csspart header - The header text container for primary messaging
 * @csspart icon - The icon container for visual empty state representation
 * @csspart innerStack - The internal stack container for action slot elements
 *
 * @cssprop {String} --empty-state-font-family - The state font family CSS custom property.
 * @cssprop {String} --empty-state-font-letter-spacing - The state font letter spacing CSS custom property.
 * @cssprop {String} --empty-state-font-line-height - The state font line height CSS custom property.
 * @cssprop {String} --empty-state-font-size - The state font size CSS custom property.
 * @cssprop {String} --empty-state-font-text-decoration - The state font text decoration CSS custom property.
 * @cssprop {String} --empty-state-font-text-transform - The state font text transform CSS custom property.
 * @cssprop {String} --empty-state-font-weight - The state font weight CSS custom property.
 * @cssprop {String} --empty-state-foreground-color - The text color for empty state content
 * @cssprop {String} --empty-state-gap - The spacing between icon, text, and action elements
 * @cssprop {String} --empty-state-header-font-family - The font family for header text
 * @cssprop {String} --empty-state-header-font-letter-spacing - The letter spacing for header text
 * @cssprop {String} --empty-state-header-font-line-height - The line height for header text
 * @cssprop {String} --empty-state-header-font-size - The font size for header text
 * @cssprop {String} --empty-state-header-font-text-decoration - The text decoration style for header text
 * @cssprop {String} --empty-state-header-font-text-transform - The text transformation style for header text
 * @cssprop {String} --empty-state-header-font-weight - The font weight for header text
 * @cssprop {String} --empty-state-padding-bottom - The bottom padding inside the empty state container
 * @cssprop {String} --empty-state-padding-left - The left padding inside the empty state container
 * @cssprop {String} --empty-state-padding-right - The right padding inside the empty state container
 * @cssprop {String} --empty-state-padding-top - The top padding inside the empty state container
 * @cssprop {String} --empty-state-shadow - The state shadow CSS custom property.
 * @cssprop {String} --empty-state-shadow-blur - The state shadow blur CSS custom property.
 * @cssprop {String} --empty-state-shadow-color - The state shadow color CSS custom property.
 * @cssprop {String} --empty-state-shadow-offset-x - The state shadow offset x CSS custom property.
 * @cssprop {String} --empty-state-shadow-offset-y - The state shadow offset y CSS custom property.
 * @cssprop {String} --empty-state-shadow-spread - The state shadow spread CSS custom property.
 * @cssprop {String} --empty-state-transition-duration - The state transition duration CSS custom property.
 * @cssprop {String} --empty-state-transition-mode - The state transition mode CSS custom property.
 * @cssprop {String} --empty-state-transition-property - The state transition property CSS custom property.
 * @cssprop {String} --empty-state-translate - The state translate CSS custom property.
 *
 * @dependency mosaik-icon - The Icon element.
 * @dependency mosaik-stack - The Stack element.
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * No search results:
 * ```html
 * <mosaik-empty-state header="No results found">
 *   <mosaik-button slot="actions" onclick="clearSearch()">Clear Search</mosaik-button>
 * </mosaik-empty-state>
 * ```
 *
 * @example
 * Empty inbox:
 * ```html
 * <mosaik-empty-state header="Inbox Zero!"></mosaik-empty-state>
 * ```
 *
 * @example
 * Empty cart with action:
 * ```html
 * <mosaik-empty-state header="Your cart is empty">
 *   <mosaik-button slot="actions" appearance="primary" onclick="browseProducts()">
 *     Browse Products
 *   </mosaik-button>
 * </mosaik-empty-state>
 * ```
 *
 * @example
 * State with icon and content set via JavaScript:
 * ```html
 * <mosaik-empty-state id="emptyState" header="Welcome to the app!"></mosaik-empty-state>
 * <script>
 *   const el = document.getElementById('emptyState');
 *   el.icon = 'star-outline';
 *   el.content = 'Get started by creating your first project';
 * </script>
 * ```
 *
 * @public
 */
let EmptyStateElement = class EmptyStateElement extends Themeable(StateBaseElement) {
    // #region Fields
    _header;
    _icon;
    // #endregion
    // #region Ctor
    /**
     * Constructs a new instance of the `EmptyStateElement` class.
     *
     * @public
     */
    constructor() {
        super();
        this._icon = '';
        this._header = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-empty-state';
    }
    /**
     * Gets or sets the `icon` property.
     * The icon SVG path data for the empty state visual indicator.
     * The default value is an empty string, which displays a default glasses icon.
     *
     * @public
     */
    get icon() {
        return this._icon;
    }
    set icon(value) {
        if (this._icon !== value) {
            this._icon = value;
        }
    }
    /**
     * Gets or sets the `header` property.
     * The primary message displayed to users in the empty state.
     * 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])
], EmptyStateElement.prototype, "icon", null);
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], EmptyStateElement.prototype, "header", null);
EmptyStateElement = __decorate([
    Component({
        selector: 'mosaik-empty-state',
        template: emptyStateElementTemplate,
        themes: {
            joy: emptyStateElementJoyStyle,
            memphis: emptyStateElementMemphisStyle,
            cosmopolitan: emptyStateElementCosmopolitanStyle
        },
        imports: [
            IconElement,
            TextElement,
            StackElement
        ]
    }),
    __metadata("design:paramtypes", [])
], EmptyStateElement);
export { EmptyStateElement };
//# sourceMappingURL=EmptyStateElement.js.map