"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get SliderWrapper () {
        return SliderWrapper;
    },
    get StyledProgress () {
        return StyledProgress;
    },
    get StyledSlider () {
        return StyledSlider;
    },
    get StyledTrack () {
        return StyledTrack;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
const _TextFieldSlidertokens = require("../../TextFieldSlider.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const SliderWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Slider.styles__SliderWrapper",
    componentId: "sc-a8edb0b0-0"
})([
    `position:relative;display:grid;`
]);
const StyledSlider = _styledcomponents.default.input.withConfig({
    displayName: "Slider.styles__StyledSlider",
    componentId: "sc-a8edb0b0-1"
})([
    `appearance:none;outline:none;background:none;border:none;height:var(`,
    `);width:100%;z-index:2;margin:0;cursor:pointer;opacity:`,
    `;transition:box-shadow 0.2s ease-in;::-webkit-slider-thumb{-webkit-appearance:none;border:none;border-radius:50%;cursor:grab;width:var(`,
    `);height:var(`,
    `);background:var(`,
    `);color:var(`,
    `);box-shadow:var(`,
    `);}::-moz-range-thumb{border:none;border-radius:50%;cursor:grab;width:var(`,
    `);height:var(`,
    `);background:var(`,
    `);color:var(`,
    `);box-shadow:var(`,
    `);}::-webkit-slider-thumb:hover,::-webkit-slider-thumb:active,&:focus-visible::-webkit-slider-thumb{border-radius:50%;box-shadow:var(`,
    `);}::-webkit-slider-thumb:active{cursor:grabbing;}::-moz-range-thumb:hover,::-moz-range-thumb:active,&:focus-visible::-moz-range-thumb{border-radius:50%;box-shadow:var(`,
    `);}::-moz-range-thumb:active{cursor:grabbing;}`
], _TextFieldSlidertokens.tokens.sliderTrackHeight, ({ hasPointer })=>hasPointer ? '1' : '0', _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderThumbBackground, _TextFieldSlidertokens.tokens.sliderThumbBackground, _TextFieldSlidertokens.tokens.sliderThumbBorderBoxShadow, _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderThumbBackground, _TextFieldSlidertokens.tokens.sliderThumbBackground, _TextFieldSlidertokens.tokens.sliderThumbBorderBoxShadow, _TextFieldSlidertokens.tokens.sliderThumbBorderBoxShadowFocus, _TextFieldSlidertokens.tokens.sliderThumbBorderBoxShadowFocus);
const StyledTrack = _styledcomponents.default.div.withConfig({
    displayName: "Slider.styles__StyledTrack",
    componentId: "sc-a8edb0b0-2"
})([
    `position:absolute;top:50%;left:calc(var(`,
    `) / 2);right:calc(var(`,
    `) / 2);transform:translateY(-50%);height:var(`,
    `);border-radius:0.5rem;background-color:var(`,
    `);`
], _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderThumbSize, _TextFieldSlidertokens.tokens.sliderTrackHeight, _TextFieldSlidertokens.tokens.sliderTrackBackground);
const StyledProgress = _styledcomponents.default.div.withConfig({
    displayName: "Slider.styles__StyledProgress",
    componentId: "sc-a8edb0b0-3"
})([
    `position:absolute;top:50%;left:calc(var(`,
    `) / 2);transform:translateY(-50%);width:`,
    `;height:var(`,
    `);border-radius:0.5rem;background:var(`,
    `);`
], _TextFieldSlidertokens.tokens.sliderThumbSize, ({ value, max, min })=>`calc((${value} - ${min}) / (${max} - ${min}) * 100% - var(${_TextFieldSlidertokens.tokens.sliderThumbSize}) / 2)`, _TextFieldSlidertokens.tokens.sliderTrackHeight, _TextFieldSlidertokens.tokens.sliderProgressBackground);
