"use strict";

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

var _react = _interopRequireDefault(require("react"));

var _bs = require("react-icons/bs");

var _ = require(".");

var _jsxRuntime = require("react/jsx-runtime");

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

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

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; }

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var timeRanges = [{
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "15 minutes",
  value: "15m"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "1 hour",
  value: "1h"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "2 hours",
  value: "2h"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "3 hours",
  value: "3h"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "6 hours",
  value: "6h"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "12 hours",
  value: "12h"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "1 day",
  value: "1d"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "2 days",
  value: "2d"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "3 days",
  value: "3d"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "1 week",
  value: "1w"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "2 weeks",
  value: "2w"
}, {
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_bs.BsClock, {}),
  description: "3 weeks",
  value: "3w"
}];
exports.timeRanges = timeRanges;

function TimeRange(_ref) {
  var rest = _extends({}, _ref);

  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.Dropdown, _objectSpread(_objectSpread({}, rest), {}, {
    items: timeRanges
  }));
}