"use strict";

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); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
var _DetailList = _interopRequireDefault(require("../Basic/DetailList"));
var _Summary = _interopRequireDefault(require("../Basic/Summary"));
var _index = require("../../index");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
var List = function List(_ref) {
  var times = _ref.times;
  var _useContext = (0, _react.useContext)(_index.RestaurantContext),
    prefix = _useContext.prefix;
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(prefix, "-collection-summary")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u4EA7\u751F\u6C47\u603B"
  }), /*#__PURE__*/_react["default"].createElement(_Summary["default"], {
    startDay: times[0].format('YYYY-MM-DD'),
    endDay: times[1].format('YYYY-MM-DD')
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(prefix, "-collection-list")
  }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
    title: "\u6536\u8FD0\u8BB0\u5F55\u660E\u7EC6"
  }), /*#__PURE__*/_react["default"].createElement(_DetailList["default"], {
    startTime: times[0].format('YYYY-MM-DD 00:00:00'),
    endTime: times[1].format('YYYY-MM-DD 23:59:59')
  })));
};
var _default = exports["default"] = List;
//# sourceMappingURL=List.js.map
