function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import dayjs from 'dayjs';

// 内库使用-start
import LocaleUtil from "./../../../utils/LocaleUtil";
import DateUtil from "./../../../utils/DateUtil";
// 内库使用-end

/* 测试使用-start
import { LocaleUtil, DateUtil } from 'seedsui-react'
测试使用-end */

// 默认日期区间
function getDefaultRanges() {
  var _ref;
  return _ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, LocaleUtil.locale('今日', 'SeedsUI_today'), [new Date(), new Date()]), LocaleUtil.locale('昨日', 'SeedsUI_yesterday'), [dayjs().subtract(1, 'day').toDate(), dayjs().subtract(1, 'day').toDate()]), LocaleUtil.locale('近{0}日', 'SeedsUI_last_days', ['7']), [dayjs().subtract(6, 'day').toDate(), new Date()]), LocaleUtil.locale('近{0}日', 'SeedsUI_last_days', ['30']), [dayjs().subtract(29, 'day').toDate(), new Date()]), LocaleUtil.locale('近{0}日', 'SeedsUI_last_days', ['90']), [dayjs().subtract(89, 'day').toDate(), new Date()]), LocaleUtil.locale('本周', 'SeedsUI_this_week'), [dayjs().day(1).toDate(), new Date()]), LocaleUtil.locale('本月', 'SeedsUI_this_month'), [dayjs().date(1).toDate(), new Date()]), LocaleUtil.locale('上月', 'SeedsUI_last_month'), [dayjs().date(1).subtract(1, 'month').toDate(), dayjs().date(1).subtract(1, 'day').toDate()]), LocaleUtil.locale('本季度', 'SeedsUI_this_quarter'), [DateUtil.startOrEnd(new Date(), 'quarter', 'start'), new Date()]), LocaleUtil.locale('今年', 'SeedsUI_this_year'), [DateUtil.startOrEnd(new Date(), 'year', 'start'), DateUtil.startOrEnd(new Date(), 'year', 'end')]), _defineProperty(_ref, LocaleUtil.locale('自定义', 'SeedsUI_custom'), 0);
}
export default getDefaultRanges;