// #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 { TextAlignment } from '../../../Types/TextAlignment';
import { CustomElement } from '../../Abstracts/CustomElement';
import { TextElement } from '../Text/TextElement';
import { jumbotronHeaderElementTemplate } from './JumbotronHeaderElementTemplate';
import { jumbotronHeaderElementJoyStyle } from './Themes/JumbotronHeaderElement.Joy';
import { jumbotronHeaderElementMemphisStyle } from './Themes/JumbotronHeaderElement.Memphis';
import { jumbotronHeaderElementCosmopolitanStyle } from './Themes/JumbotronHeaderElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
import { TextFormattable } from '../../../Behaviors/TextFormattable';
/**
 * JumbotronHeader - Primary heading text component for jumbotron hero sections.
 *
 * @description
 * The JumbotronHeader element renders the main heading within a jumbotron component with
 * prominent styling and formatting. Supports text alignment, custom text formatters, and
 * internationalization. Automatically assigned to the 'header' slot when used inside a
 * jumbotron. This component is styled to be visually striking and draw immediate attention
 * to key messages or page titles.
 *
 * @name JumbotronHeader
 * @element mosaik-jumbotron-header
 * @category Primitives
 *
 * @slot - Default slot for custom header content (overrides text attribute)
 *
 * @csspart text - The rendered text element
 *
 * @cssprop {String} --jumbotron-header-background-color - The header background color CSS custom property.
 * @cssprop {String} --jumbotron-header-border-color - The header border color CSS custom property.
 * @cssprop {String} --jumbotron-header-font-family - The header font family CSS custom property.
 * @cssprop {String} --jumbotron-header-font-letter-spacing - The header font letter spacing CSS custom property.
 * @cssprop {String} --jumbotron-header-font-line-height - The header font line height CSS custom property.
 * @cssprop {String} --jumbotron-header-font-size - The header font size CSS custom property.
 * @cssprop {String} --jumbotron-header-font-text-decoration - The header font text decoration CSS custom property.
 * @cssprop {String} --jumbotron-header-font-text-transform - The header font text transform CSS custom property.
 * @cssprop {String} --jumbotron-header-font-weight - The header font weight CSS custom property.
 * @cssprop {String} --jumbotron-header-foreground-color - The header foreground color CSS custom property.
 * @cssprop {String} --jumbotron-header-gap - The header gap CSS custom property.
 * @cssprop {String} --jumbotron-header-padding-bottom - The header padding bottom CSS custom property.
 * @cssprop {String} --jumbotron-header-padding-left - The header padding left CSS custom property.
 * @cssprop {String} --jumbotron-header-padding-right - The header padding right CSS custom property.
 * @cssprop {String} --jumbotron-header-padding-top - The header padding top CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow - The header shadow CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow-blur - The header shadow blur CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow-color - The header shadow color CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow-offset-x - The header shadow offset x CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow-offset-y - The header shadow offset y CSS custom property.
 * @cssprop {String} --jumbotron-header-shadow-spread - The header shadow spread CSS custom property.
 * @cssprop {String} --jumbotron-header-transition-duration - The header transition duration CSS custom property.
 * @cssprop {String} --jumbotron-header-transition-mode - The header transition mode CSS custom property.
 * @cssprop {String} --jumbotron-header-transition-property - The header transition property CSS custom property.
 * @cssprop {String} --jumbotron-header-translate - The header translate CSS custom property.
 *
 * @dependency mosaik-text - The Text element.
 *
 * @example
 * Basic header via text attribute:
 * ```html
 * <mosaik-jumbotron-header
 *   text="Welcome to Our Platform"
 *   alignment="center">
 * </mosaik-jumbotron-header>
 * ```
 *
 * @example
 * Custom slotted content:
 * ```html
 * <mosaik-jumbotron-header alignment="left">
 *   <h1>Custom <strong>Styled</strong> Header</h1>
 * </mosaik-jumbotron-header>
 * ```
 *
 * @public
 */
let JumbotronHeaderElement = class JumbotronHeaderElement extends Themeable(TextFormattable(CustomElement)) {
    // #region Fields
    _text;
    _alignment;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._text = '';
        this._alignment = TextAlignment.Left;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     *
     * @public
     * @static
     * @readonly
    */
    static get is() {
        return 'mosaik-jumbotron-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');
        }
    }
    /**
     * Gets or sets the `alignment` property.
     *
     * @public
     * @attr
     */
    get alignment() {
        return this._alignment;
    }
    set alignment(value) {
        if (this._alignment !== value) {
            this._alignment = value;
            this.requestUpdate('alignment');
        }
    }
};
__decorate([
    Attribute({ type: String }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], JumbotronHeaderElement.prototype, "text", null);
__decorate([
    Attribute({ type: TextAlignment }),
    __metadata("design:type", String),
    __metadata("design:paramtypes", [String])
], JumbotronHeaderElement.prototype, "alignment", null);
JumbotronHeaderElement = __decorate([
    Component({
        selector: 'mosaik-jumbotron-header',
        template: jumbotronHeaderElementTemplate,
        themes: {
            joy: jumbotronHeaderElementJoyStyle,
            memphis: jumbotronHeaderElementMemphisStyle,
            cosmopolitan: jumbotronHeaderElementCosmopolitanStyle
        },
        host: {
            slot: 'header'
        },
        imports: [
            TextElement
        ]
    }),
    __metadata("design:paramtypes", [])
], JumbotronHeaderElement);
export { JumbotronHeaderElement };
//# sourceMappingURL=JumbotronHeaderElement.js.map