"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.suite = void 0;

var React = _interopRequireWildcard(require("react"));

var _index = require("./index");

var _examplesList = _interopRequireDefault(require("./examples-list"));

var _tests$AS_SIMPLE_SLID;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var suite = 'Slider Test Suite';
exports.suite = suite;

var _default = (_tests$AS_SIMPLE_SLID = {}, _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SIMPLE_SLIDER, function () {
  return React.createElement("div", {
    style: {
      width: '300px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [60]
    },
    range: [0, 100]
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SIMPLE_RANGE_SLIDER, function () {
  return React.createElement("div", {
    style: {
      width: '300px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [25, 60]
    },
    range: [0, 100]
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SIMPLE_RANGE_SLIDER_WITH_STEP, function () {
  return React.createElement("div", {
    style: {
      width: '300px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [20, 70]
    },
    step: 20,
    range: [0, 100]
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_RANGE_SLIDER_WITH_MANY_TICKS, function () {
  return React.createElement("div", {
    style: {
      width: '300px'
    }
  }, React.createElement(_index.StatefulSlider, {
    initialState: {
      value: [25, 70]
    },
    range: [0, 20, 40, 60, 80, 100]
  }));
}), _defineProperty(_tests$AS_SIMPLE_SLID, _examplesList.default.AS_SLIDER_WITH_OVERRIDES, function () {
  return React.createElement("div", {
    style: {
      width: '300px'
    }
  }, React.createElement(_index.StatefulSlider, {
    overrides: {
      Axis: {
        style: {
          background: 'green'
        }
      },
      AxisRange: {
        style: {
          background: 'red'
        }
      },
      Thumb: {
        style: {
          top: '-20px',
          ':after': {
            content: "url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><path fill=\"red\" d=\"M9.5 19c-0.084 0-0.167-0.021-0.243-0.063-0.094-0.052-2.326-1.301-4.592-3.347-1.341-1.21-2.411-2.448-3.183-3.68-0.984-1.571-1.482-3.139-1.482-4.66 0-2.895 2.355-5.25 5.25-5.25 0.98 0 2.021 0.367 2.931 1.034 0.532 0.39 0.985 0.86 1.319 1.359 0.334-0.499 0.787-0.969 1.319-1.359 0.91-0.667 1.951-1.034 2.931-1.034 2.895 0 5.25 2.355 5.25 5.25 0 1.521-0.499 3.089-1.482 4.66-0.771 1.232-1.842 2.47-3.182 3.68-2.266 2.046-4.498 3.295-4.592 3.347-0.076 0.042-0.159 0.063-0.243 0.063zM5.25 3c-2.343 0-4.25 1.907-4.25 4.25 0 3.040 2.35 5.802 4.321 7.585 1.76 1.592 3.544 2.708 4.179 3.087 0.635-0.379 2.419-1.495 4.179-3.087 1.971-1.782 4.321-4.545 4.321-7.585 0-2.343-1.907-4.25-4.25-4.25-1.703 0-3.357 1.401-3.776 2.658-0.068 0.204-0.259 0.342-0.474 0.342s-0.406-0.138-0.474-0.342c-0.419-1.257-2.073-2.658-3.776-2.658z\"/></svg>')"
          }
        }
      }
    },
    initialState: {
      value: [45]
    },
    range: [0, 20, 40, 60, 80, 100]
  }));
}), _tests$AS_SIMPLE_SLID);

exports.default = _default;