// #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 { Orientable } from '../../../Behaviors/Orientable';
import { Reversible } from '../../../Behaviors/Reversible';
import { Slottable } from '../../../Behaviors/Slottable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { CustomElement } from '../../Abstracts/CustomElement';
import { marqueeElementTemplate } from './MarqueeElementTemplate';
import { marqueeElementJoyStyle } from './Themes/MarqueeElement.Joy';
import { marqueeElementMemphisStyle } from './Themes/MarqueeElement.Memphis';
import { marqueeElementCosmopolitanStyle } from './Themes/MarqueeElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
import { CssTime } from '@breadstone/mosaik-themes';
// #endregion
/**
 * Marquee - A component for scrolling text or images horizontally or vertically.
 *
 * @element mosaik-marquee
 *
 * @description
 * The Marquee component enables scrolling of text or images across a web page. It can be configured to scroll content
 * either horizontally or vertically, providing a dynamic and attention-grabbing effect. Marquees are often used to
 * highlight important information or create visual interest.
 *
 * @category Primitives
 *
 * @example
 * ```html
 * <mosaik-marquee direction="horizontal">
 *   <div>Scrolling text or images</div>
 * </mosaik-marquee>
 * ```
 *
 * @public
 */
let MarqueeElement = class MarqueeElement extends Themeable(Reversible(Orientable(Slottable(CustomElement)))) {
    // #region Fields
    _speed;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._speed = '80000ms';
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-marquee';
    }
    /**
     * Gets or sets the `speed` property.
     *
     * @public
     * @attr
     */
    get speed() {
        return this._speed;
    }
    set speed(value) {
        if (this._speed !== value) {
            this._speed = value;
            this.requestUpdate('speed');
        }
    }
};
__decorate([
    Attribute({
        type: String,
        converter: {
            toAttribute: (value) => typeof value === 'number' ? `${value}ms` : value?.toString() ?? ''
        }
    }),
    __metadata("design:type", Object),
    __metadata("design:paramtypes", [Object])
], MarqueeElement.prototype, "speed", null);
MarqueeElement = __decorate([
    Component({
        selector: 'mosaik-marquee',
        template: marqueeElementTemplate,
        themes: {
            joy: marqueeElementJoyStyle,
            memphis: marqueeElementMemphisStyle,
            cosmopolitan: marqueeElementCosmopolitanStyle
        },
        imports: []
    }),
    __metadata("design:paramtypes", [])
], MarqueeElement);
export { MarqueeElement };
//# sourceMappingURL=MarqueeElement.js.map