var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from 'react';
import { makeStyles } from '@material-ui/core';
import RangeSlider from 'react-range-slider-input';
const useStyles = makeStyles((theme) => ({
    root: {},
    rangeSlider: {
        '& .range-slider__thumb': {
            width: theme.spacing(2.25),
            height: (props) => `calc(${props.margin}px + ${props.threads}px )`,
            borderRadius: theme.spacing(0.5),
            background: "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23333' viewBox='0 0 24 24'%3E%3Cpath d='M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z' /%3E%3C/svg%3E\") #fff",
            backgroundRepeat: 'no-repeat',
            backgroundPosition: 'center'
        },
        '& .range-slider__range': {
            background: 'transparent',
            border: '4px solid #fff',
            boxSizing: 'border-box',
            boxShadow: '0 0 0 9999px rgba(194, 194, 194, 0.75)',
            zIndex: 0
        },
        height: (props) => `calc(${props.margin}px + ${props.threads}px )`,
        background: 'whitesmoke',
        overflow: 'hidden'
    }
}));
export const DynamicRangeSlider = (props) => {
    const { children } = props, otherProps = __rest(props, ["children"]);
    const classes = useStyles(props);
    return React.createElement(RangeSlider, Object.assign({ className: classes.rangeSlider }, otherProps));
};
//# sourceMappingURL=DynamicRangeSlider.js.map