"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var dayObj = {
  '1': '一',
  '2': '二',
  '3': '三',
  '4': '四',
  '5': '五',
  '6': '六',
  '7': '日'
};
var Info = function Info(_ref) {
  var data = _ref.data;
  var baseInfo = [{
    key: 'divisionName',
    label: '行政区划',
    value: data === null || data === void 0 ? void 0 : data.divisionName
  }, {
    key: 'type',
    label: '垃圾类型',
    value: '餐厨垃圾'
  }, {
    key: 'restaurantNum',
    label: '商户数量',
    value: data === null || data === void 0 ? void 0 : data.restaurantNum
  }, {
    key: 'address',
    label: '地址',
    value: data === null || data === void 0 ? void 0 : data.address
  }, {
    key: 'setTypeStr',
    label: '服务时段',
    value: "".concat((data === null || data === void 0 ? void 0 : data.setTypeStr) || '').concat((data === null || data === void 0 ? void 0 : data.setTypeStr) ? data.setType === 'fix_day' ? "\uFF0C\u6BCF".concat(data.setValue, "\u5929\u751F\u6210\u4E00\u6B21\u6536\u8FD0\u4EFB\u52A1") : "\uFF0C\u6BCF\u4E2A\u661F\u671F".concat((data.setValue || '').split(',').map(function (day) {
      return dayObj[day];
    }).join('、'), "\u6536\u8FD0") : '')
  }];
  return /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
    data: baseInfo,
    gap: 8,
    horizontal: true,
    width: "100%"
  });
};
var _default = exports["default"] = Info;
//# sourceMappingURL=Info.js.map
