// #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 { Appearanceable } from '../../../Behaviors/Appearanceable';
import { Disableable } from '../../../Behaviors/Disableable';
import { Orientable } from '../../../Behaviors/Orientable';
import { Slottable } from '../../../Behaviors/Slottable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { MultiRangeBaseElement } from '../Abstracts/MultiRangeBaseElement';
import { slider2ElementTemplate } from './Slider2ElementTemplate';
import { Slider2ThumbElement } from './Slider2ThumbElement';
import { slider2ElementJoyStyle } from './Themes/Slider2Element.Joy';
import { slider2ElementMemphisStyle } from './Themes/Slider2Element.Memphis';
import { slider2ElementCosmopolitanStyle } from './Themes/Slider2Element.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * The `{@link Slider2Element}` element.
 *
 * @public
 */
let Slider2Element = class Slider2Element extends Themeable(Orientable(Disableable(Variantable(Appearanceable(Slottable(MultiRangeBaseElement)))))) {
    // #region Fields
    _thickness;
    _step;
    _gap;
    _showValueIndicator;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._thickness = 4;
        this._step = 1;
        this._gap = 0;
        this._showValueIndicator = false;
    }
    // #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-slider2';
    }
    /**
     * Gets or sets the `thickness` property.
     *
     * @public
     * @attr
     */
    get thickness() {
        return this._thickness;
    }
    set thickness(value) {
        if (this._thickness !== value) {
            this._thickness = value;
            this.requestUpdate('thickness');
        }
    }
    /**
     * Gets or sets the `step` property.
     *
     * @public
     * @attr
     */
    get step() { return this._step; }
    set step(value) {
        if (this._step !== value) {
            this._step = value;
            this.requestUpdate('step');
        }
    }
    /**
     * Gets or sets the `gap` property.
     *
     * @public
     * @attr
     */
    get gap() { return this._gap; }
    set gap(value) {
        if (this._gap !== value) {
            this._gap = value;
            this.requestUpdate('gap');
        }
    }
    /**
     * Gets or sets the `showValueIndicator` property.
     *
     * @public
     * @attr
     */
    get showValueIndicator() {
        return this._showValueIndicator;
    }
    set showValueIndicator(value) {
        if (this._showValueIndicator !== value) {
            this._showValueIndicator = value;
            this.requestUpdate('showValueIndicator');
        }
    }
    // #endregion
    // #region Methods
    onApplyTemplate() {
        super.onApplyTemplate();
        const thumbs = this.getSlotAssignments('thumb');
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], Slider2Element.prototype, "thickness", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], Slider2Element.prototype, "step", null);
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], Slider2Element.prototype, "gap", null);
__decorate([
    Attribute({ type: Boolean, useDefault: true }),
    __metadata("design:type", Boolean),
    __metadata("design:paramtypes", [Boolean])
], Slider2Element.prototype, "showValueIndicator", null);
Slider2Element = __decorate([
    Component({
        selector: 'mosaik-slider2',
        template: slider2ElementTemplate,
        themes: {
            joy: slider2ElementJoyStyle,
            memphis: slider2ElementMemphisStyle,
            cosmopolitan: slider2ElementCosmopolitanStyle
        },
        imports: [
            Slider2ThumbElement
        ]
    }),
    __metadata("design:paramtypes", [])
], Slider2Element);
export { Slider2Element };
//# sourceMappingURL=Slider2Element.js.map