// #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 '../../../../Controls/Behaviors/Themeable';
import { Disableable } from '../../../Behaviors/Disableable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../../Primitives/Text/TextElement';
import { bannerSubHeaderElementTemplate } from './BannerSubHeaderElementTemplate';
import { bannerSubHeaderElementJoyStyle } from './Themes/BannerSubHeaderElement.Joy';
import { bannerSubHeaderElementMemphisStyle } from './Themes/BannerSubHeaderElement.Memphis';
import { bannerSubHeaderElementCosmopolitanStyle } from './Themes/BannerSubHeaderElement.Cosmopolitan';
// #endregion
/**
 * Banner Sub Header - A component for displaying the sub-header text of a banner.
 *
 * @description
 * The `Banner Sub Header` component is used as part of a banner to display its secondary heading or sub-header.
 * It supports customization through slots, CSS parts, and properties to match the design and styling needs
 * of the application.
 *
 * @name Banner Sub Header
 * @element mosaik-banner-sub-header
 * @category Notifications
 *
 * @slot - Slot for the banner sub-header content.
 *
 * @csspart text - The text part of the banner sub-header.
 *
 * @cssprop {unknown} --banner-sub-header-font-family - The font family for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-size - The font size for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-line-height - The line height for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-weight - The font weight for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-letter-spacing - The letter spacing for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-text-decoration - The text decoration for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-font-text-transform - The text transformation for the banner sub-header text.
 * @cssprop {unknown} --banner-sub-header-background-color - The background color for the banner sub-header.
 * @cssprop {unknown} --banner-sub-header-border-color - The border color for the banner sub-header.
 * @cssprop {unknown} --banner-sub-header-foreground-color - The foreground color for the banner sub-header text.
 *
 * @dependency {TextElement} - The Text element.
 *
 * @example
 * ```html
 * <mosaik-banner-sub-header>
 *   <mosaik-text>This is the banner sub-header text</mosaik-text>
 * </mosaik-banner-sub-header>
 * ```
 *
 * @public
 */
let BannerSubHeaderElement = class BannerSubHeaderElement extends Themeable(Disableable(Variantable(TextFormattable(CustomElement)))) {
    // #region Fields
    _text;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-banner-sub-header';
    }
    /**
     * Gets or sets the `text` property.
     *
     * @public
     * @attr
     */
    get text() {
        return this._text;
    }
    set text(value) {
        if (this._text !== value) {
            this._text = value;
            this.requestUpdate('text');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], BannerSubHeaderElement.prototype, "text", null);
BannerSubHeaderElement = __decorate([
    Component({
        selector: 'mosaik-banner-sub-header',
        template: bannerSubHeaderElementTemplate,
        themes: {
            joy: bannerSubHeaderElementJoyStyle,
            memphis: bannerSubHeaderElementMemphisStyle,
            cosmopolitan: bannerSubHeaderElementCosmopolitanStyle
        },
        host: {
            slot: 'subHeader'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], BannerSubHeaderElement);
export { BannerSubHeaderElement };
//# sourceMappingURL=BannerSubHeaderElement.js.map