"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _vmInfoCollection = _interopRequireDefault(require("../../../vm-info-collection"));
var _react = _interopRequireDefault(require("react"));
var _api = require("../../api");
require("./index.less");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var Rules = function Rules(_ref) {
  var id = _ref.id;
  var carRouteList = _api.BasicService.getCarRouteList(id);
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
    className: "cc-restaurant-rules"
  }, (carRouteList || []).map(function (item) {
    var data = [{
      key: 'name',
      label: '路线名称',
      value: item.name,
      width: '100%'
    }, {
      key: 'carCode',
      label: '车牌号',
      value: item.carCode
    }, {
      key: 'periodNames',
      label: '班次',
      value: item.periodNames
    }];
    return /*#__PURE__*/_react["default"].createElement("div", {
      key: item.id,
      className: "cc-restaurant-rules-item"
    }, /*#__PURE__*/_react["default"].createElement(_vmInfoCollection["default"], {
      data: data,
      gap: 8,
      horizontal: true,
      width: "50%"
    }));
  })));
};
var _default = exports["default"] = Rules;
//# sourceMappingURL=Rules.js.map
