// #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 { Disableable } from '../../../Behaviors/Disableable';
import { Focusable } from '../../../Behaviors/Focusable';
import { Valueable } from '../../../Behaviors/Valueable';
import { Variantable } from '../../../Behaviors/Variantable';
import { Attribute } from '../../../Decorators/AttributeDecorator';
import { Component } from '../../../Decorators/ComponentDecorator';
import { FocusRingElement } from '../../Primitives/FocusRing/FocusRingElement';
import { RangeBaseElement } from '../Abstracts/RangeBaseElement';
import { slider2ThumbElementTemplate } from './Slider2ThumbElementTemplate';
import { slider2ThumbElementJoyStyle } from './Themes/Slider2ThumbElement.Joy';
import { slider2ThumbElementMemphisStyle } from './Themes/Slider2ThumbElement.Memphis';
import { slider2ThumbElementCosmopolitanStyle } from './Themes/Slider2ThumbElement.Cosmopolitan';
import { Themeable } from '../../../Behaviors/Themeable';
// #endregion
/**
 * Slider2Thumb - A draggable thumb handle component for use within Slider2 range sliders.
 *
 * @description
 * The Slider2Thumb component represents an individual draggable handle within a Slider2 range
 * slider, enabling precise value selection through mouse, touch, and keyboard interaction. Each
 * thumb maintains its own value and state while coordinating with the parent Slider2 container
 * for constraints, styling, and behavior. Features include focus ring indicators for accessibility,
 * smooth dragging interactions, keyboard navigation support, and automatic constraint handling
 * to prevent overlap with other thumbs. Designed to be used exclusively within mosaik-slider2
 * elements via the thumb slot.
 *
 * @name Slider2Thumb
 * @element mosaik-slider2-thumb
 * @category Ranges
 *
 * @csspart focusRing - Focus indicator ring for keyboard navigation accessibility
 * @csspart input - Native HTML range input element providing slider functionality
 *
 * @cssprop {String} --slider2thumb-font-family - The font family CSS custom property.
 * @cssprop {String} --slider2thumb-font-letter-spacing - The font letter spacing CSS custom property.
 * @cssprop {String} --slider2thumb-font-line-height - The font line height CSS custom property.
 * @cssprop {String} --slider2thumb-font-size - The font size CSS custom property.
 * @cssprop {String} --slider2thumb-font-text-decoration - The font text decoration CSS custom property.
 * @cssprop {String} --slider2thumb-font-text-transform - The font text transform CSS custom property.
 * @cssprop {String} --slider2thumb-font-weight - The font weight CSS custom property.
 * @cssprop {String} --slider2thumb-gap - The gap CSS custom property.
 * @cssprop {String} --slider2thumb-padding-bottom - The padding bottom CSS custom property.
 * @cssprop {String} --slider2thumb-padding-left - The padding left CSS custom property.
 * @cssprop {String} --slider2thumb-padding-right - The padding right CSS custom property.
 * @cssprop {String} --slider2thumb-padding-top - The padding top CSS custom property.
 * @cssprop {String} --slider2thumb-shadow - The shadow CSS custom property.
 * @cssprop {String} --slider2thumb-shadow-blur - The shadow blur CSS custom property.
 * @cssprop {String} --slider2thumb-shadow-color - The shadow color CSS custom property.
 * @cssprop {String} --slider2thumb-shadow-offset-x - The shadow offset x CSS custom property.
 * @cssprop {String} --slider2thumb-shadow-offset-y - The shadow offset y CSS custom property.
 * @cssprop {String} --slider2thumb-shadow-spread - The shadow spread CSS custom property.
 * @cssprop {String} --slider2thumb-size - The size CSS custom property.
 * @cssprop {String} --slider2thumb-transition-duration - The transition duration CSS custom property.
 * @cssprop {String} --slider2thumb-transition-mode - The transition mode CSS custom property.
 * @cssprop {String} --slider2thumb-transition-property - The transition property CSS custom property.
 * @cssprop {String} --slider2thumb-translate - The translate CSS custom property.
 *
 * @fires rangeValueChanged {RangeValueChangedEvent} - Fired when the thumb value changes
 *
 * @dependency mosaik-focus-ring - The Focus Ring element.
 *
 * @example
 * Basic thumb within Slider2 (min/max range):
 * ```html
 * <mosaik-slider2 min="0" max="100">
 *   <mosaik-slider2-thumb slot="thumb" value="25"></mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb slot="thumb" value="75"></mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Thumbs with custom step and variant:
 * ```html
 * <mosaik-slider2 min="0" max="100" step="5" variant="primary">
 *   <mosaik-slider2-thumb
 *     slot="thumb"
 *     value="30"
 *     variant="primary">
 *   </mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb
 *     slot="thumb"
 *     value="70"
 *     variant="primary">
 *   </mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Disabled thumb within range slider:
 * ```html
 * <mosaik-slider2 min="0" max="100">
 *   <mosaik-slider2-thumb
 *     slot="thumb"
 *     value="40"
 *     disabled>
 *   </mosaik-slider2-thumb>
 *   <mosaik-slider2-thumb
 *     slot="thumb"
 *     value="60">
 *   </mosaik-slider2-thumb>
 * </mosaik-slider2>
 * ```
 *
 * @example
 * Multi-thumb configuration with three points:
 * ```html
 * <mosaik-slider2 min="0" max="100" step="1">
 *   <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 Slider2ThumbElement = class Slider2ThumbElement extends Themeable(Disableable(Valueable(Focusable(Variantable(RangeBaseElement))))) {
    // #region Fields
    _step;
    // #endregion
    // #region Ctor
    /**
     * @public
     */
    constructor() {
        super();
        this._step = 1;
    }
    // #endregion
    // #region Properties
    /**
     * Returns the `is` property.
     * The `is` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is() {
        return 'mosaik-slider2-thumb';
    }
    /**
     * 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');
        }
    }
};
__decorate([
    Attribute({ type: Number }),
    __metadata("design:type", Number),
    __metadata("design:paramtypes", [Number])
], Slider2ThumbElement.prototype, "step", null);
Slider2ThumbElement = __decorate([
    Component({
        selector: 'mosaik-slider2-thumb',
        template: slider2ThumbElementTemplate,
        themes: {
            joy: slider2ThumbElementJoyStyle,
            memphis: slider2ThumbElementMemphisStyle,
            cosmopolitan: slider2ThumbElementCosmopolitanStyle
        },
        host: {
            slot: 'thumb'
        },
        imports: [
            FocusRingElement
        ]
    }),
    __metadata("design:paramtypes", [])
], Slider2ThumbElement);
export { Slider2ThumbElement };
//# sourceMappingURL=Slider2ThumbElement.js.map