// #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
/**
 * Slider2 - An advanced multi-thumb range slider for selecting value ranges or multiple points.
 *
 * @description
 * The Slider2 component provides sophisticated range selection capabilities with support for
 * multiple draggable thumb handles, making it ideal for min/max range filters, multi-point
 * selection, and advanced value control scenarios. Features customizable track appearance,
 * optional value indicators, configurable gaps between thumbs to prevent overlap, and flexible
 * orientation support. Built with a slot-based architecture allowing custom thumb configurations
 * and comprehensive theming. Essential for price ranges, time ranges, and any interface requiring
 * selection of value spans or multiple discrete points.
 *
 * @name Slider2
 * @element mosaik-slider2
 * @category Ranges
 *
 * @slot thumb - Slot for one or more Slider2Thumb elements representing draggable handles
 *
 * @csspart root - Root container for the slider component
 * @csspart labelStart - Label displaying the minimum value (when showValueIndicator is true)
 * @csspart labelEnd - Label displaying the maximum value (when showValueIndicator is true)
 * @csspart container - Main container element for track and thumbs
 * @csspart trackArea - Background track area for the slider
 * @csspart progressArea - Filled progress area between thumb positions
 * @csspart thumb - Individual thumb element part (default thumb if no slot content provided)
 *
 * @dependency {Slider2ThumbElement} - Draggable thumb handles for value selection
 *
 * @fires rangeValueChanged {RangeValueChangedEvent} - Fired when any thumb value changes
 *
 * @example
 * Basic range slider with min/max selection:
 * ```html
 * <mosaik-slider2 min="0" max="100" show-value-indicator="true">
 *   <mosaik-slider2-thumb slot="thumb" value="25"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="75"></mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Price range filter:
 * ```html
 * <div class="filter-group">
 *   <label>Price Range</label>
 *   <mosaik-slider2
 *     min="0"
 *     max="1000"
 *     step="10"
 *     gap="50"
 *     show-value-indicator="true"
 *     variant="primary">
 *     <mosaik-slider2-thumb slot="thumb" value="200"></mosaik-slider2-thumb>
 *     <mosaik-slider2-thumb slot="thumb" value="800"></mosaik-slider2-thumb>
 *   </mosaik-slider2>
 *   <div class="range-values">$200 - $800</div>
 * </div>
 * ```
 *
 * @example
 * Time range selector:
 * ```html
 * <mosaik-slider2
 *   min="0"
 *   max="24"
 *   step="0.5"
 *   gap="1"
 *   show-value-indicator="true">
 *   <mosaik-slider2-thumb slot="thumb" value="9"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="17"></mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Vertical range slider:
 * ```html
 * <mosaik-slider2
 *   min="0"
 *   max="100"
 *   orientation="vertical"
 *   thickness="6"
 *   variant="success">
 *   <mosaik-slider2-thumb slot="thumb" value="30"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="70"></mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Multi-point selector with three thumbs:
 * ```html
 * <mosaik-slider2
 *   min="0"
 *   max="100"
 *   step="5"
 *   gap="10"
 *   show-value-indicator="true"
 *   variant="info">
 *   <mosaik-slider2-thumb slot="thumb" value="20"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="50"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="80"></mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @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