(self["webpackChunk_edao_chart"] = self["webpackChunk_edao_chart"] || []).push([["mf-dep_src_umi_cache_mfsu_mf-va_dumi-theme-default_es_builtins_API_js_js"],{

/***/ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.less":
/*!****************************************************************************************************************************************!*\
  !*** ./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.less ***!
  \****************************************************************************************************************************************/
/***/ (function() {

// extracted by mini-css-extract-plugin
    if(false) { var cssReload; }
  

/***/ }),

/***/ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/API.js":
/*!************************************************************************************************************************************!*\
  !*** ./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/API.js ***!
  \************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/.pnpm/react@18.2.0/node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var dumi_theme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dumi/theme */ "./node_modules/.pnpm/@umijs+preset-dumi@1.1.47_4lhw5mpypdqkwh5z6al4n52e3y/node_modules/@umijs/preset-dumi/lib/theme/index.js");
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.js");



var LOCALE_TEXTS = {
  'zh-CN': {
    name: '属性名',
    description: '描述',
    type: '类型',
    default: '默认值',
    required: '(必选)'
  },
  'en-US': {
    name: 'Name',
    description: 'Description',
    type: 'Type',
    default: 'Default',
    required: '(required)'
  }
};
/* harmony default export */ __webpack_exports__["default"] = (function (_ref) {
  var identifier = _ref.identifier,
      expt = _ref.export;
  var data = (0,dumi_theme__WEBPACK_IMPORTED_MODULE_1__.useApiData)(identifier);

  var _useContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(dumi_theme__WEBPACK_IMPORTED_MODULE_1__.context),
      locale = _useContext.locale;

  var texts = /^zh|cn$/i.test(locale) ? LOCALE_TEXTS['zh-CN'] : LOCALE_TEXTS['en-US'];
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, data && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Table__WEBPACK_IMPORTED_MODULE_2__.default, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("thead", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("th", null, texts.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("th", null, texts.description), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("th", null, texts.type), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("th", null, texts.default))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tbody", null, data[expt].map(function (row) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", {
      key: row.identifier
    }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", null, row.identifier), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", null, row.description || '--'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", null, row.type)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("code", null, row.default || row.required && texts.required || '--')));
  }))));
});

/***/ }),

/***/ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.js":
/*!**************************************************************************************************************************************!*\
  !*** ./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.js ***!
  \**************************************************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/.pnpm/react@18.2.0/node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash.throttle */ "./node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js");
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Table_less__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table.less */ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/Table.less");
/* harmony import */ var _Table_less__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Table_less__WEBPACK_IMPORTED_MODULE_2__);
function _slicedToArray(arr, i) {
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}

function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}

function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;

  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }

  return arr2;
}

function _iterableToArrayLimit(arr, i) {
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];

  if (_i == null) return;
  var _arr = [];
  var _n = true;
  var _d = false;

  var _s, _e;

  try {
    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);

      if (i && _arr.length === i) break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null) _i["return"]();
    } finally {
      if (_d) throw _e;
    }
  }

  return _arr;
}

function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}





var Table = function Table(_ref) {
  var children = _ref.children;
  var container = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();

  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
      _useState2 = _slicedToArray(_useState, 2),
      leftFolded = _useState2[0],
      setLeftFolded = _useState2[1];

  var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
      _useState4 = _slicedToArray(_useState3, 2),
      rightFolded = _useState4[0],
      setRightFolded = _useState4[1]; // watch content scroll to render folded shadow


  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
    var elm = container.current;
    var handler = lodash_throttle__WEBPACK_IMPORTED_MODULE_1___default()(function () {
      setLeftFolded(elm.scrollLeft > 0);
      setRightFolded(elm.scrollLeft < elm.scrollWidth - elm.offsetWidth);
    }, 100);
    handler();
    elm.addEventListener('scroll', handler);
    window.addEventListener('resize', handler);
    return function () {
      elm.removeEventListener('scroll', handler);
      window.removeEventListener('resize', handler);
    };
  }, []);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
    className: "__dumi-default-table"
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
    className: "__dumi-default-table-content",
    ref: container,
    "data-left-folded": leftFolded || undefined,
    "data-right-folded": rightFolded || undefined
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("table", null, children)));
};

/* harmony default export */ __webpack_exports__["default"] = (Table);

/***/ }),

/***/ "./src/.umi/.cache/.mfsu/mf-va_dumi-theme-default_es_builtins_API.js.js":
/*!******************************************************************************!*\
  !*** ./src/.umi/.cache/.mfsu/mf-va_dumi-theme-default_es_builtins_API.js.js ***!
  \******************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Users_garron_Desktop_work_newedao_packages_chart_node_modules_pnpm_dumi_theme_default_1_1_23_fxpjzghtawalkovlqjmm2jjqea_node_modules_dumi_theme_default_es_builtins_API_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/API.js */ "./node_modules/.pnpm/dumi-theme-default@1.1.23_fxpjzghtawalkovlqjmm2jjqea/node_modules/dumi-theme-default/es/builtins/API.js");

/* harmony default export */ __webpack_exports__["default"] = (_Users_garron_Desktop_work_newedao_packages_chart_node_modules_pnpm_dumi_theme_default_1_1_23_fxpjzghtawalkovlqjmm2jjqea_node_modules_dumi_theme_default_es_builtins_API_js__WEBPACK_IMPORTED_MODULE_0__.default);


/***/ })

}]);