/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackJsonp_bos-platform"] = self["webpackJsonp_bos-platform"] || []).push([[7560],{

/***/ "./src/page/httpMonitor/dialog/HttpDialog.js":
/*!***************************************************!*\
  !*** ./src/page/httpMonitor/dialog/HttpDialog.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _HttpDialog = _interopRequireDefault(__webpack_require__(/*! ./HttpDialog.less */ \"./src/page/httpMonitor/dialog/HttpDialog.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useDialogDrag = _interopRequireDefault(__webpack_require__(/*! @/use/useDialogDrag */ \"./src/use/useDialogDrag.js\"));\nvar _elementFromPoint = __webpack_require__(/*! @/component/common/elementFromPoint */ \"./src/component/common/elementFromPoint.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar HttpDialog = function HttpDialog(_ref) {\n  var _ref$showTitle = _ref.showTitle,\n    showTitle = _ref$showTitle === void 0 ? true : _ref$showTitle,\n    title = _ref.title,\n    _ref$closeable = _ref.closeable,\n    closeable = _ref$closeable === void 0 ? true : _ref$closeable,\n    _ref$allowMinimize = _ref.allowMinimize,\n    allowMinimize = _ref$allowMinimize === void 0 ? true : _ref$allowMinimize,\n    _ref$allowFullScreen = _ref.allowFullScreen,\n    allowFullScreen = _ref$allowFullScreen === void 0 ? true : _ref$allowFullScreen,\n    children = _ref.children,\n    _ref$splitLine = _ref.splitLine,\n    splitLine = _ref$splitLine === void 0 ? true : _ref$splitLine,\n    onClose = _ref.onClose,\n    onBack = _ref.onBack,\n    showBackButton = _ref.showBackButton,\n    setSearchFocus = _ref.setSearchFocus,\n    showLogDetail = _ref.showLogDetail;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    minimize = _useState2[0],\n    setMinimize = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isFullScreen = _useState4[0],\n    setIsFullScreen = _useState4[1];\n  var dialogRef = (0, _react.useRef)();\n  var _useDrag = (0, _useDialogDrag[\"default\"])(),\n    _useDrag2 = _slicedToArray(_useDrag, 1),\n    setDialogRef = _useDrag2[0];\n  var titleRef = (0, _react.useRef)();\n  var headerRef = (0, _react.useRef)();\n  var dialogDefaultStyle = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    if (!isFullScreen) dialogDefaultStyle.current = dialogRef.current.style.cssText;\n    if (!headerRef.current || minimize) return;\n    headerRef.current.addEventListener('dblclick', handleFullScreen, true);\n    return function () {\n      headerRef.current && headerRef.current.removeEventListener('dblclick', handleFullScreen, true);\n    };\n  }, [minimize, isFullScreen, headerRef.current]);\n  (0, _react.useLayoutEffect)(function () {\n    if (minimize) {\n      dialogRef.current.style.cssText = '';\n    } else if (isFullScreen) {\n      dialogRef.current.style.cssText = 'position: fixed; width: 100%; height: 100%; top: 0; left: 0;';\n    } else {\n      dialogRef.current.style.cssText = dialogDefaultStyle.current;\n    }\n  }, [isFullScreen, minimize]);\n  (0, _react.useEffect)(function () {\n    var handleFocusOnSearch = function handleFocusOnSearch(e) {\n      if (window.getSelection().toString()) return;\n      e.currentTarget === dialogRef.current && setSearchFocus && setSearchFocus();\n    };\n    dialogRef.current.addEventListener('click', handleFocusOnSearch, false);\n    return function () {\n      var _dialogRef$current;\n      (_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 || _dialogRef$current.addEventListener('click', handleFocusOnSearch, false);\n    };\n  }, [setSearchFocus]);\n  var handleDragEnd = (0, _react.useCallback)(function (e) {\n    (0, _elementFromPoint.isParentElement)(dialogRef.current, e.target) && setSearchFocus && setSearchFocus();\n  }, [setSearchFocus]);\n  var renderNode = function renderNode(title) {\n    if (typeof title === 'function') {\n      return title();\n    } else {\n      return title;\n    }\n  };\n  var dialogTitle = function dialogTitle() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"].title,\n      ref: function ref(_ref2) {\n        return titleRef.current = _ref2;\n      }\n    }, showBackButton && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"].icon,\n      onClick: onBack,\n      title: (0, _intlApi.getLangMsg)('SysInfo.key0207')\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n      className: \"kdfont kdfont-qianfan hover-theme-fc\"\n    })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"].text,\n      title: title\n    }, title));\n  };\n  var handleMinimize = (0, _react.useCallback)(function () {\n    var minimize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n    setMinimize(minimize);\n  }, []);\n  var handleFullScreen = (0, _react.useCallback)(function () {\n    setIsFullScreen(!isFullScreen);\n  }, [isFullScreen]);\n  var renderMinimizeBtn = function renderMinimizeBtn() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"]['minimize-button'],\n      title: (0, _intlApi.getLangMsg)('SysInfo.key0208'),\n      onClick: function onClick() {\n        return handleMinimize(true);\n      }\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n      className: \"kdfont kdfont-jianshao3 hover-theme-fc\"\n    }));\n  };\n  var renderFullScreenBtn = function renderFullScreenBtn() {\n    var iconClassName = (0, _classnames[\"default\"])({\n      'kdfont kdfont-huakuang': !isFullScreen,\n      'kdfont kdfont kdfont-fuzhi3': isFullScreen,\n      'hover-theme-fc': true\n    });\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"]['fullscreen-button'],\n      title: isFullScreen ? (0, _intlApi.getLangMsg)('SysInfo.key0209') : (0, _intlApi.getLangMsg)('SysInfo.key0210'),\n      onClick: handleFullScreen\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n      className: iconClassName,\n      style: {\n        fontSize: '14px'\n      }\n    }));\n  };\n  var renderCloseBtn = function renderCloseBtn() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: (0, _classnames[\"default\"])(_HttpDialog[\"default\"]['close-button']),\n      title: (0, _intlApi.getLangMsg)('SysInfo.key0211'),\n      onClick: onClose\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n      className: \"kdfont kdfont-guanbi8 hover-theme-fc\"\n    }));\n  };\n  var renderSplitLine = function renderSplitLine() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpDialog[\"default\"]['split-line']\n    });\n  };\n  var event = minimize ? {\n    onClick: function onClick() {\n      return handleMinimize(false);\n    }\n  } : {};\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({\n    className: (0, _classnames[\"default\"])(_defineProperty({}, _HttpDialog[\"default\"].dialog, !minimize), _defineProperty({}, _HttpDialog[\"default\"].minimize, minimize), _defineProperty({}, _HttpDialog[\"default\"]['dialog-detail'], showLogDetail && !minimize))\n  }, event, {\n    ref: function ref(ele) {\n      !minimize && !isFullScreen && setDialogRef(ele, false, true, handleDragEnd);\n      dialogRef.current = ele;\n    }\n  }), !minimize && splitLine && renderSplitLine(), !minimize && children, minimize && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _HttpDialog[\"default\"].title,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0212')\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0212')), minimize && closeable && renderCloseBtn());\n};\nvar _default = exports[\"default\"] = HttpDialog;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/dialog/HttpDialog.js?");

/***/ }),

/***/ "./src/page/httpMonitor/hooks.js":
/*!***************************************!*\
  !*** ./src/page/httpMonitor/hooks.js ***!
  \***************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.useHeaderResize = exports.SCROLL_BAR_WIDTH = void 0;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = __webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\");\nvar _global = _interopRequireWildcard(__webpack_require__(/*! @/global */ \"./src/global/index.js\"));\nvar _const = __webpack_require__(/*! ./const */ \"./src/page/httpMonitor/const.js\");\nvar _resizeObserve = _interopRequireDefault(__webpack_require__(/*! @/util/resizeObserve */ \"./src/util/resizeObserve.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nvar SCROLL_BAR_WIDTH = exports.SCROLL_BAR_WIDTH = _global[\"default\"][_global.IS_IE] ? '17px' : '0'; //滚动条宽度\n\n// 表格body出现滚动条时，为表格头添加paddingRight，使表格头与表格体对齐\nvar useHeaderResize = exports.useHeaderResize = function useHeaderResize(bodyRef, _ref, sourceData) {\n  var needResize = _ref.needResize,\n    _ref$isHttpList = _ref.isHttpList,\n    isHttpList = _ref$isHttpList === void 0 ? false : _ref$isHttpList;\n  var resizeHandler;\n  (0, _react.useLayoutEffect)(function () {\n    if (!bodyRef.current || !needResize) return;\n    resizeHandler = (0, _resizeObserve[\"default\"])(bodyRef.current, function () {\n      if (!bodyRef.current) return;\n      var _bodyRef$current = bodyRef.current,\n        scrollHeight = _bodyRef$current.scrollHeight,\n        clientHeight = _bodyRef$current.clientHeight,\n        clientWidth = _bodyRef$current.clientWidth;\n      if (scrollHeight > clientHeight) {\n        bodyRef.current.parentElement.firstChild.style.paddingRight = SCROLL_BAR_WIDTH;\n        if (isHttpList) {\n          if (clientWidth <= _const.MIN_WIDTH) {\n            bodyRef.current.children.forEach(function (child) {\n              child.firstChild.style.paddingRight = SCROLL_BAR_WIDTH;\n            });\n          } else {\n            bodyRef.current.children.forEach(function (child) {\n              child.firstChild.style.paddingRight = '';\n            });\n          }\n        } else {\n          bodyRef.current.style.paddingRight = '';\n        }\n      } else {\n        if (isHttpList) {\n          bodyRef.current.children.forEach(function (child) {\n            child.firstChild.style.paddingRight = '';\n          });\n        } else {\n          bodyRef.current.style.paddingRight = '';\n        }\n        bodyRef.current.parentElement.firstChild.style.paddingRight = '';\n      }\n    });\n    return function () {\n      var _resizeHandler;\n      (_resizeHandler = resizeHandler) === null || _resizeHandler === void 0 || _resizeHandler.removeResizeObserve();\n    };\n  }, [bodyRef.current, needResize, isHttpList, sourceData]);\n};\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/hooks.js?");

/***/ }),

/***/ "./src/page/httpMonitor/page/HttpList.js":
/*!***********************************************!*\
  !*** ./src/page/httpMonitor/page/HttpList.js ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"../../node_modules/core-js/modules/es.string.trim.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _HttpList = _interopRequireDefault(__webpack_require__(/*! ./HttpList.less */ \"./src/page/httpMonitor/page/HttpList.less\"));\nvar _Table = _interopRequireDefault(__webpack_require__(/*! ../table/Table */ \"./src/page/httpMonitor/table/Table.js\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! ../table/Header */ \"./src/page/httpMonitor/table/Header.js\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! @/service/common/sysinfo/web/Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _util = __webpack_require__(/*! ../util */ \"./src/page/httpMonitor/util.js\");\nvar _const = __webpack_require__(/*! ../const */ \"./src/page/httpMonitor/const.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _hooks = __webpack_require__(/*! ../hooks */ \"./src/page/httpMonitor/hooks.js\");\nvar _dragService = __webpack_require__(/*! @/service/web/dragService.js */ \"./src/service/web/dragService.js\");\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar headers = [{\n  name: 'methods',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0213')\n}, {\n  name: 'status',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0214')\n}, {\n  name: 'startTime',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0215')\n}, {\n  name: 'time',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0216')\n}];\nvar HttpList = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {\n  var _ref$dataSource = _ref.dataSource,\n    dataSource = _ref$dataSource === void 0 ? {\n      sinceOpenData: (0, _immutable.List)(),\n      beforeData: (0, _immutable.List)(),\n      allData: (0, _immutable.List)()\n    } : _ref$dataSource,\n    headerClassName = _ref.headerClassName,\n    tableClassName = _ref.tableClassName,\n    contentClassName = _ref.contentClassName,\n    onClickItem = _ref.onClickItem,\n    onClickTableRow = _ref.onClickTableRow,\n    selectedId = _ref.selectedId,\n    onClean = _ref.onClean,\n    showDetail = _ref.showDetail;\n  var beforeData = dataSource.beforeData,\n    sinceOpenData = dataSource.sinceOpenData,\n    allData = dataSource.allData;\n  var _useState = (0, _react.useState)(allData),\n    _useState2 = _slicedToArray(_useState, 2),\n    visibleData = _useState2[0],\n    setVisibleData = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showSearchResult = _useState4[0],\n    setShowSearchResult = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    isSort = _useState6[0],\n    setIsSort = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    resetSort = _useState8[0],\n    setResetsort = _useState8[1];\n  var searchResultRef = (0, _react.useRef)((0, _immutable.List)());\n  var initSortStatus = (0, _react.useRef)();\n  var bodyRef = (0, _react.useRef)();\n  (0, _hooks.useHeaderResize)(bodyRef, {\n    needResize: true,\n    isHttpList: true\n  });\n  (0, _react.useEffect)(function () {\n    setVisibleData(allData);\n  }, [allData]);\n  var handleClickItem = (0, _react.useCallback)(function (e, dataSourceType, id) {\n    onClickTableRow && onClickTableRow(dataSourceType, id);\n  }, [onClickTableRow]);\n  var handleClickItemMethodName = (0, _react.useCallback)(function (e, data, type) {\n    onClickItem && onClickItem(data);\n  }, [onClickItem]);\n  var onSort = (0, _react.useCallback)(function (sortTarget, sortStatus) {\n    var initialData = showSearchResult ? searchResultRef.current : allData;\n    var data = (0, _util.sortData)(initialData, sortStatus, sortTarget);\n    initSortStatus.current = _defineProperty({}, sortTarget, sortStatus);\n    setVisibleData(data);\n    setResetsort(false);\n    setIsSort(true);\n  }, [showSearchResult, allData, searchResultRef.current]);\n  var handleSearch = (0, _react.useCallback)(function (value) {\n    if (!value) {\n      setVisibleData(allData);\n      setShowSearchResult(false);\n      return;\n    }\n    var dataList = allData.filter(function (item) {\n      var _item$get$toLowerCase;\n      return (item === null || item === void 0 || (_item$get$toLowerCase = item.get('methods').toLowerCase()) === null || _item$get$toLowerCase === void 0 ? void 0 : _item$get$toLowerCase.includes(value.trim().toLowerCase())) && value.trim();\n    });\n    searchResultRef.current = dataList;\n    setShowSearchResult(true);\n    setVisibleData(dataList);\n    setResetsort(true);\n  }, [allData]);\n  var handleClean = (0, _react.useCallback)(function () {\n    setVisibleData((0, _immutable.List)());\n    // cleanStatus()\n    onClean && onClean();\n  }, [onClean]);\n  var getHeaderItemClassName = function getHeaderItemClassName(header) {\n    if (header.name === 'methods') {\n      return _HttpList[\"default\"]['methods-header'];\n    } else {\n      return _HttpList[\"default\"][\"\".concat(header.name)];\n    }\n  };\n  var getRowClassName = function getRowClassName(index, selectedId, item) {\n    var traceId = item.traceId;\n    var regular = (index + 1) % 2 === 0;\n    return (0, _classnames[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _HttpList[\"default\"].row, true), _HttpList[\"default\"].regular, regular), _HttpList[\"default\"].selected, selectedId === traceId), _HttpList[\"default\"]['selected-hover'], selectedId === traceId), _HttpList[\"default\"]['singular-hover'], !regular && selectedId !== traceId), _HttpList[\"default\"]['regular-hover'], regular && selectedId !== traceId));\n  };\n  var getCellClassNameByName = function getCellClassNameByName(name, selectedId, item) {\n    var _item$status, _item$status2;\n    var isSelected = selectedId === item.traceId;\n    var extraClassName;\n    if (((_item$status = item.status) === null || _item$status === void 0 ? void 0 : _item$status.toString().indexOf('4')) === 0 || ((_item$status2 = item.status) === null || _item$status2 === void 0 ? void 0 : _item$status2.toString().indexOf('5')) === 0) {\n      extraClassName = _HttpList[\"default\"]['error-color'];\n    } else if (item.status === (0, _intlApi.getLangMsg)('SysInfo.key0217')) {\n      if (name === 'status' || name === 'time') {\n        extraClassName = _HttpList[\"default\"]['waiting-color'];\n      }\n    } else {\n      if (name === 'methods' && isSelected) {\n        extraClassName = _HttpList[\"default\"]['methods-selected'];\n      } else if (name === 'time') {\n        if (item[\"\".concat(name)] > _const.TIME_OUT_SERIOUS_WARN) {\n          extraClassName = _HttpList[\"default\"]['error-color'];\n        } else if (item[\"\".concat(name)] > _const.TIME_OUT_WARN) {\n          extraClassName = _HttpList[\"default\"]['warn-color'];\n        }\n      }\n    }\n    return (0, _classnames[\"default\"])(_HttpList[\"default\"][\"\".concat(name)], extraClassName);\n  };\n  var format = function format(type, value) {\n    if (type === 'startTime' || type === 'endTime') {\n      return (0, _util.formatDate)(value);\n    }\n    return value;\n  };\n  var initLeftStyle = function initLeftStyle() {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    if (widthArr.HttpList) {\n      return {\n        width: widthArr.HttpList\n      };\n    }\n  };\n  var _useState9 = (0, _react.useState)(initLeftStyle),\n    _useState10 = _slicedToArray(_useState9, 2),\n    mainStyle = _useState10[0],\n    setMainStyle = _useState10[1];\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _HttpList[\"default\"].main,\n    style: mainStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _HttpList[\"default\"].section\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearch,\n    ref: ref,\n    onlyShowInput: true,\n    className: _HttpList[\"default\"].searchClass,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0216')\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _HttpList[\"default\"]['clear-button'],\n    onClick: handleClean\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\"\n  }))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(contentClassName, _HttpList[\"default\"].content)\n  }, showSearchResult || isSort ? /*#__PURE__*/_react[\"default\"].createElement(_Table[\"default\"], {\n    dataSource: visibleData.toJS(),\n    type: \"allData\",\n    headers: headers,\n    headerClassName: headerClassName,\n    tableClassName: (0, _classnames[\"default\"])(tableClassName),\n    getCellClassNameByName: getCellClassNameByName,\n    getRowClassName: getRowClassName,\n    getHeaderItemClassName: getHeaderItemClassName,\n    onClickItem: handleClickItemMethodName,\n    onClickTableRow: handleClickItem,\n    needSort: false,\n    onSort: onSort,\n    resetSort: resetSort,\n    hideHeaders: false,\n    format: format,\n    initSort: true,\n    initSortStatus: initSortStatus.current\n  }) : /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(_Header[\"default\"], {\n    headers: headers,\n    className: headerClassName,\n    onSort: onSort,\n    resetSort: resetSort,\n    getHeaderItemClassName: getHeaderItemClassName\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    ref: bodyRef,\n    className: (0, _classnames[\"default\"])(_HttpList[\"default\"].body, _defineProperty({}, _HttpList[\"default\"]['half-body'], showDetail))\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Table[\"default\"], {\n    dataSource: sinceOpenData.toJS(),\n    type: \"sinceOpenData\",\n    headers: headers,\n    headerClassName: headerClassName,\n    tableClassName: (0, _classnames[\"default\"])(_HttpList[\"default\"].table, tableClassName),\n    onClickItem: handleClickItemMethodName,\n    getCellClassNameByName: getCellClassNameByName,\n    getRowClassName: getRowClassName,\n    onClickTableRow: handleClickItem,\n    getHeaderItemClassName: getHeaderItemClassName,\n    needSort: false,\n    onSort: onSort,\n    resetSort: resetSort,\n    hideHeaders: true,\n    key: \"sinceOpenData\",\n    format: format,\n    selectedId: selectedId,\n    needTableResize: false\n  }), beforeData.size > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _HttpList[\"default\"][\"break\"]\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _HttpList[\"default\"]['dashed-line']\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _HttpList[\"default\"].desc\n  }, \" \", (0, _intlApi.getLangMsg)({\n    key: 'SysInfo.key0219',\n    variables: {\n      MAX_LEN: _const.MAX_LEN\n    }\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _HttpList[\"default\"]['dashed-line']\n  })), /*#__PURE__*/_react[\"default\"].createElement(_Table[\"default\"], {\n    key: \"beforeData\",\n    dataSource: beforeData.toJS(),\n    type: \"beforeData\",\n    headers: headers,\n    headerClassName: headerClassName,\n    tableClassName: (0, _classnames[\"default\"])(_HttpList[\"default\"].table, tableClassName),\n    onClickItem: handleClickItemMethodName,\n    onClickTableRow: handleClickItem,\n    getCellClassNameByName: getCellClassNameByName,\n    getHeaderItemClassName: getHeaderItemClassName,\n    getRowClassName: getRowClassName,\n    needSort: false,\n    onSort: onSort,\n    resetSort: resetSort,\n    hideHeaders: true,\n    format: format,\n    selectedId: selectedId,\n    needTableResize: false\n  })))), /*#__PURE__*/_react[\"default\"].createElement(Line, {\n    setMainStyle: setMainStyle\n  }));\n});\nvar _default = exports[\"default\"] = HttpList;\nfunction Line(_ref2) {\n  var colKey = _ref2.colKey,\n    columnSizeChange = _ref2.columnSizeChange,\n    setMainStyle = _ref2.setMainStyle;\n  var lineRef = (0, _react.useRef)();\n  var onMove = function onMove(dragElement, x, y, width, height, dragState) {\n    dragState === 'finished' && rememberDragPosition(x);\n    setMainStyle({\n      width: x\n    });\n  };\n  var rememberDragPosition = function rememberDragPosition(width) {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    widthArr.NetWorkPanel = width;\n    console.log(widthArr);\n    _storage[\"default\"].set(_storage.SYS_INFO_TABLE_WIDTHS, JSON.stringify(widthArr));\n  };\n  (0, _react.useEffect)(function () {\n    (0, _dragService.dragElement)(lineRef.current, {\n      onMove: onMove,\n      cursor: 'ew-resize',\n      editOrigin: false,\n      direction: 'x',\n      savePosition: false,\n      placeHolder: true,\n      opacity: 0,\n      escDispose: true,\n      isLimit: false\n    });\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _HttpList[\"default\"].splitLine,\n    ref: lineRef,\n    draggable: true\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/HttpList.js?");

/***/ }),

/***/ "./src/page/httpMonitor/page/HttpMonitor.js":
/*!**************************************************!*\
  !*** ./src/page/httpMonitor/page/HttpMonitor.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.async-iterator.js */ \"../../node_modules/core-js/modules/es.symbol.async-iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-string-tag.js */ \"../../node_modules/core-js/modules/es.symbol.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.reverse.js */ \"../../node_modules/core-js/modules/es.array.reverse.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.json.to-string-tag.js */ \"../../node_modules/core-js/modules/es.json.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.math.to-string-tag.js */ \"../../node_modules/core-js/modules/es.math.to-string-tag.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _HttpDialog = _interopRequireDefault(__webpack_require__(/*! ../dialog/HttpDialog */ \"./src/page/httpMonitor/dialog/HttpDialog.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _HttpMonitor = _interopRequireDefault(__webpack_require__(/*! ./HttpMonitor.less */ \"./src/page/httpMonitor/page/HttpMonitor.less\"));\nvar _SystemUIProvider = __webpack_require__(/*! ../../SystemUIProvider */ \"./src/page/SystemUIProvider.js\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _HttpList = _interopRequireDefault(__webpack_require__(/*! ./HttpList */ \"./src/page/httpMonitor/page/HttpList.js\"));\nvar _ajaxMonitor = __webpack_require__(/*! @/api/ajaxMonitor */ \"./src/api/ajaxMonitor.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _RequestDetail = _interopRequireDefault(__webpack_require__(/*! ./RequestDetail */ \"./src/page/httpMonitor/page/RequestDetail.js\"));\nvar _LogDetail = _interopRequireDefault(__webpack_require__(/*! ./LogDetail */ \"./src/page/httpMonitor/page/LogDetail.js\"));\nvar _util = __webpack_require__(/*! ../util */ \"./src/page/httpMonitor/util.js\");\nvar _HttpMonitorDB = _interopRequireDefault(__webpack_require__(/*! @/db/HttpMonitorDB */ \"./src/db/HttpMonitorDB.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _regeneratorRuntime() { \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = \"function\" == typeof Symbol ? Symbol : {}, a = i.iterator || \"@@iterator\", c = i.asyncIterator || \"@@asyncIterator\", u = i.toStringTag || \"@@toStringTag\"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, \"\"); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, \"_invoke\", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: \"normal\", arg: t.call(e, r) }; } catch (t) { return { type: \"throw\", arg: t }; } } e.wrap = wrap; var h = \"suspendedStart\", l = \"suspendedYield\", f = \"executing\", s = \"completed\", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { [\"next\", \"throw\", \"return\"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if (\"throw\" !== c.type) { var u = c.arg, h = u.value; return h && \"object\" == _typeof(h) && n.call(h, \"__await\") ? e.resolve(h.__await).then(function (t) { invoke(\"next\", t, i, a); }, function (t) { invoke(\"throw\", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke(\"throw\", t, i, a); }); } a(c.arg); } var r; o(this, \"_invoke\", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error(\"Generator is already running\"); if (o === s) { if (\"throw\" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else \"return\" === n.method && n.abrupt(\"return\", n.arg); o = f; var p = tryCatch(e, r, n); if (\"normal\" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } \"throw\" === p.type && (o = s, n.method = \"throw\", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, \"throw\" === n && e.iterator[\"return\"] && (r.method = \"return\", r.arg = t, maybeInvokeDelegate(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), y; var i = tryCatch(o, e.iterator, r.arg); if (\"throw\" === i.type) return r.method = \"throw\", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, y) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = \"normal\", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: \"root\" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || \"\" === e) { var r = e[a]; if (r) return r.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + \" is not iterable\"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, \"constructor\", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, \"constructor\", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) { var e = \"function\" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || \"GeneratorFunction\" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, \"GeneratorFunction\")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, \"Generator\"), define(g, a, function () { return this; }), define(g, \"toString\", function () { return \"[object Generator]\"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if (\"throw\" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = \"throw\", a.arg = e, r.next = n, o && (r.method = \"next\", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if (\"root\" === i.tryLoc) return handle(\"end\"); if (i.tryLoc <= this.prev) { var c = n.call(i, \"catchLoc\"), u = n.call(i, \"finallyLoc\"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error(\"try statement without catch or finally\"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, \"finallyLoc\") && this.prev < o.finallyLoc) { var i = o; break; } } i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if (\"throw\" === t.type) throw t.arg; return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, \"catch\": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if (\"throw\" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error(\"illegal catch attempt\"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, \"next\" === this.method && (this.arg = t), y; } }, e; }\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar getUpdatedData = function getUpdatedData(state, data) {\n  var index = state.findIndex(function (item) {\n    return item.get('traceId') === data.traceId;\n  });\n  if (index !== -1) {\n    state = state.update(index, function (oldValue) {\n      return oldValue.merge(data);\n    });\n  } else {\n    state = state.unshift((0, _immutable.fromJS)(data));\n  }\n  return state;\n};\nvar getBeforeDataState = function getBeforeDataState(beforeData, sinceOpenData, data) {\n  var beforeDataItemIndex = beforeData.findIndex(function (item) {\n    return item.get('traceId') === data.traceId;\n  });\n  if (beforeDataItemIndex !== -1) {\n    beforeData = beforeData.update(beforeDataItemIndex, function (oldValue) {\n      return oldValue.merge(data);\n    });\n  } else {\n    sinceOpenData = getUpdatedData(sinceOpenData, data);\n  }\n  return {\n    sinceOpenData: sinceOpenData,\n    beforeData: beforeData\n  };\n};\nvar reducer = function reducer(prevState, action) {\n  // alldata 所有数据包括历史数据(beforedata)和打开后才出现的数据(sinceopendata)\n  var allData = prevState.allData,\n    sinceOpenData = prevState.sinceOpenData,\n    beforeData = prevState.beforeData;\n  var data = action.data;\n  switch (action.type) {\n    case 'initBeforeData':\n      {\n        return {\n          allData: data,\n          sinceOpenData: sinceOpenData,\n          beforeData: data\n        };\n      }\n    case \"updateBeforeData\":\n      {\n        var _getBeforeDataState = getBeforeDataState(beforeData, sinceOpenData, data);\n        sinceOpenData = _getBeforeDataState.sinceOpenData;\n        beforeData = _getBeforeDataState.beforeData;\n        return {\n          allData: allData,\n          sinceOpenData: sinceOpenData,\n          beforeData: beforeData\n        };\n      }\n    case \"updateSinceOpenData\":\n      var _getBeforeDataState2 = getBeforeDataState(beforeData, sinceOpenData, data);\n      sinceOpenData = _getBeforeDataState2.sinceOpenData;\n      beforeData = _getBeforeDataState2.beforeData;\n      allData = getUpdatedData(allData, data);\n      return {\n        allData: allData,\n        sinceOpenData: sinceOpenData,\n        beforeData: beforeData\n      };\n    case \"clearAll\":\n      {\n        return {\n          allData: (0, _immutable.List)(),\n          sinceOpenData: (0, _immutable.List)(),\n          beforeData: (0, _immutable.List)()\n        };\n      }\n    default:\n      return prevState;\n  }\n};\nvar HttpMonitor = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {\n  var initialState = {\n    beforeData: (0, _immutable.List)(),\n    allData: (0, _immutable.List)(),\n    sinceOpenData: (0, _immutable.List)()\n  };\n  var close = props.close;\n  // const { close } = useContext(SystemUIContext)\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showRightPanel = _useState2[0],\n    setShowRightPanel = _useState2[1];\n  var _useState3 = (0, _react.useState)({\n      dataSourceType: \"\",\n      traceId: \"\"\n    }),\n    _useState4 = _slicedToArray(_useState3, 2),\n    selectRow = _useState4[0],\n    setSelectRow = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    showLogDetail = _useState6[0],\n    setShowLogDetail = _useState6[1];\n  var _useState7 = (0, _react.useState)([]),\n    _useState8 = _slicedToArray(_useState7, 2),\n    logData = _useState8[0],\n    setLogData = _useState8[1]; // 日志详情数据\n  var _useReducer = (0, _react.useReducer)(reducer, initialState),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = _slicedToArray(_useState9, 2),\n    loadingLogData = _useState10[0],\n    setLoadingLogData = _useState10[1];\n  var httpListRef = (0, _react.useRef)();\n  var loadingTimer = (0, _react.useRef)();\n  var openTime = (0, _react.useRef)(); // 记录打开的时间\n  (0, _react.useEffect)(function () {\n    if (!selectRow.traceId && state.allData.size > 0) {\n      onClickTableRow('beforeData', state.allData.getIn([0, 'traceId']));\n    }\n  }, [selectRow.traceId, state.allData]);\n  (0, _react.useEffect)(function () {\n    // 获取历史数据\n    var getHistory = /*#__PURE__*/function () {\n      var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {\n        var history;\n        return _regeneratorRuntime().wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              _context.next = 2;\n              return _HttpMonitorDB[\"default\"].getInstance().getLatestRecords();\n            case 2:\n              history = _context.sent;\n              dispatch({\n                type: 'initBeforeData',\n                data: (0, _immutable.fromJS)(history)\n              });\n            case 4:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee);\n      }));\n      return function getHistory() {\n        return _ref.apply(this, arguments);\n      };\n    }();\n    getHistory();\n  }, []);\n  (0, _react.useEffect)(function () {\n    openTime.current = +new Date();\n    var removeAjaxListener = (0, _GlobalDataCacher.addDataChangeListener)(_symbolConst.KEY_AJAX_MONITOR, function (ajaxObj) {\n      // 历史请求列表已存在，则更新历史请求列表的数据状态\n      if (!ajaxObj) return;\n      var startTime = ajaxObj.startTime;\n      var type = startTime < openTime.current ? 'updateBeforeData' : 'updateSinceOpenData';\n      dispatch({\n        type: type,\n        data: ajaxObj\n      });\n    });\n    return function () {\n      removeAjaxListener();\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    document.addEventListener(\"keydown\", _util.keyDownExit);\n    return function () {\n      document.removeEventListener(\"keydown\", _util.keyDownExit);\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    return function () {\n      return (0, _ajaxMonitor.clearMonitorData)();\n    };\n  }, []);\n  var title = showLogDetail ? (0, _intlApi.getLangMsg)('SysInfo.key0237') : (0, _intlApi.getLangMsg)('SysInfo.key0238');\n  var handleBack = function handleBack() {\n    setShowLogDetail(false);\n  };\n  var getDataSource = function getDataSource() {\n    return _objectSpread({}, state);\n  };\n  var onCloseDetail = function onCloseDetail() {\n    setShowRightPanel(false);\n    setSelectRow({\n      dataSourceType: \"\",\n      traceId: \"\"\n    });\n  };\n  var onClean = function onClean() {\n    dispatch({\n      type: \"clearAll\"\n    });\n    setShowRightPanel(false);\n    (0, _GlobalDataCacher.setData)(_symbolConst.KEY_AJAX_MONITOR, undefined);\n  };\n  var getDataBySourceType = function getDataBySourceType(dataSourceType) {\n    var sinceOpenData = state.sinceOpenData,\n      beforeData = state.beforeData,\n      allData = state.allData;\n    var sourceData;\n    if (dataSourceType === \"sinceOpenData\") {\n      sourceData = sinceOpenData;\n    } else if (dataSourceType === \"beforeData\") {\n      sourceData = beforeData;\n    } else {\n      sourceData = allData;\n    }\n    return sourceData;\n  };\n  var onClickTableRow = function onClickTableRow(dataSourceType, traceId) {\n    setShowRightPanel(true);\n    setSelectRow({\n      dataSourceType: dataSourceType,\n      traceId: traceId\n    });\n    setShowLogDetail(false);\n    // setData(KEY_UI_ACTION, {\n    //     tableName: 'ctrl_type',\n    //     controlId: 'httpMonitor',\n    //     controlName: '数据监控',\n    //     controlType: 'httpMonitor',\n    //     clickType: 'methodName',\n    //     actionKey: 'httpDetail'\n    // })\n  };\n  var onClickItemMethodName = /*#__PURE__*/function () {\n    var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(data) {\n      var logData;\n      return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            clearTimeout(loadingTimer.current);\n            setShowLogDetail(true);\n            setShowRightPanel(true);\n            setLogData([]);\n            loadingTimer.current = setTimeout(function () {\n              setLoadingLogData(true);\n            }, 100);\n            _context2.next = 7;\n            return (0, _util.getLogDataByTraceId)(data.traceId);\n          case 7:\n            logData = _context2.sent;\n            clearTimeout(loadingTimer.current);\n            if (logData.status === 0) {\n              setLogData(logData);\n              setLoadingLogData(false);\n            }\n            // setData(KEY_UI_ACTION, {\n            //     tableName: 'ctrl_type',\n            //     controlId: 'httpMonitor',\n            //     controlName: '数据监控',\n            //     controlType: 'httpMonitor',\n            //     clickType: 'methodName',\n            //     actionKey: 'logDetail'\n            // })\n          case 10:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }));\n    return function onClickItemMethodName(_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  var renderAjaxListContent = function renderAjaxListContent() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpMonitor[\"default\"].body\n    }, /*#__PURE__*/_react[\"default\"].createElement(_HttpList[\"default\"], {\n      dataSource: getDataSource(),\n      headerClassName: headerClassName,\n      tableClassName: tableClassName,\n      contentClassName: contentClassName,\n      onClickTableRow: onClickTableRow,\n      onClickItem: onClickItemMethodName,\n      onClean: onClean,\n      ref: httpListRef,\n      selectedId: selectRow.traceId\n    }), !showLogDetail && !showRightPanel && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _HttpMonitor[\"default\"].noData\n    }, \"\\u8BF7\\u9009\\u62E9\\u5DE6\\u4FA7\\u6570\\u636E\"), !showLogDetail && showRightPanel && /*#__PURE__*/_react[\"default\"].createElement(_RequestDetail[\"default\"], {\n      onClose: onCloseDetail,\n      className: _HttpMonitor[\"default\"].detail,\n      sourceData: (0, _ajaxMonitor.getMonitorData)(selectRow.traceId),\n      traceId: selectRow.traceId\n    }), showLogDetail && showRightPanel && /*#__PURE__*/_react[\"default\"].createElement(_LogDetail[\"default\"], {\n      dataSource: (0, _immutable.fromJS)(formatLogData(logData.data)),\n      headerClassName: headerClassName,\n      tableClassName: tableClassName,\n      traceId: logData.traceId,\n      isLoading: loadingLogData\n    }));\n  };\n  var addCostTime = function addCostTime(arr, index) {\n    if (index === arr.length - 1) {\n      arr[index].constTime = '';\n    } else {\n      var curTime = arr[index].time;\n      var preTime = arr[index + 1].time;\n      curTime = (0, _util.transferTime)(curTime);\n      preTime = (0, _util.transferTime)(preTime);\n      var constTime = curTime - preTime;\n      arr[index].constTime = constTime;\n    }\n    return arr;\n  };\n  var formatLogData = function formatLogData(data) {\n    data === null || data === void 0 || data.forEach(function (item, index) {\n      var _item$id;\n      item.message = (0, _util.escapeCharacter)(item.message);\n      addCostTime(data, index);\n      item.id = (_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : Math.random().toString();\n      item.className = item.methodName || item.line ? item.className.concat(\"\\n\".concat(item.methodName, \"(\").concat(item.line, \")\")) : item.className;\n      delete item.methodName;\n      delete item.line;\n    });\n    return data;\n  };\n  var renderLogDetail = function renderLogDetail() {\n    return /*#__PURE__*/_react[\"default\"].createElement(_LogDetail[\"default\"], {\n      dataSource: (0, _immutable.fromJS)(formatLogData(logData.data)),\n      headerClassName: headerClassName,\n      tableClassName: tableClassName,\n      traceId: logData.traceId,\n      isLoading: loadingLogData\n    });\n  };\n  var headerClassName = _defineProperty({}, _HttpMonitor[\"default\"][\"half-header\"], true);\n  var tableClassName = _defineProperty({}, _HttpMonitor[\"default\"][\"half-table\"], true);\n  var contentClassName = (0, _classnames[\"default\"])(_defineProperty({}, _HttpMonitor[\"default\"][\"half-content\"], true));\n  var setSearchFocus = function setSearchFocus() {\n    var _httpListRef$current;\n    (_httpListRef$current = httpListRef.current) === null || _httpListRef$current === void 0 || _httpListRef$current.setFocus();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_HttpDialog[\"default\"], {\n    onClose: close,\n    title: title,\n    onBack: handleBack,\n    showBackButton: showLogDetail,\n    setSearchFocus: setSearchFocus,\n    showLogDetail: showLogDetail\n  }, renderAjaxListContent());\n});\nvar _default = exports[\"default\"] = HttpMonitor;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/HttpMonitor.js?");

/***/ }),

/***/ "./src/page/httpMonitor/page/LogDetail.js":
/*!************************************************!*\
  !*** ./src/page/httpMonitor/page/LogDetail.js ***!
  \************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Table = _interopRequireDefault(__webpack_require__(/*! ../table/Table */ \"./src/page/httpMonitor/table/Table.js\"));\nvar _DateRangeField = _interopRequireDefault(__webpack_require__(/*! ../../../component/web/baseField/DateRangeField */ \"./src/component/web/baseField/DateRangeField.jsx\"));\nvar _LogDetail = _interopRequireDefault(__webpack_require__(/*! ./LogDetail.less */ \"./src/page/httpMonitor/page/LogDetail.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _util = __webpack_require__(/*! ../util */ \"./src/page/httpMonitor/util.js\");\nvar _const = __webpack_require__(/*! ../const */ \"./src/page/httpMonitor/const.js\");\nvar _loadjs = _interopRequireDefault(__webpack_require__(/*! ../../../util/loadjs */ \"./src/util/loadjs.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _controlUtils = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n// 表格头部按这个顺序排列\nvar headers = [{\n  name: 'time',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0220')\n}, {\n  name: 'message',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0221')\n}, {\n  name: 'level',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0222')\n}, {\n  name: 'className',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0223')\n}, {\n  name: 'instanceId',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0224')\n}, {\n  name: 'appId',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0225')\n}, {\n  name: 'constTime',\n  desc: (0, _intlApi.getLangMsg)('SysInfo.key0226')\n}];\n// 导出得表头按这个顺序排列\nvar exportHeaders = [{\n  key: 'message',\n  header: 'message',\n  style: {\n    width: 50\n  }\n}, {\n  key: 'level',\n  header: 'level',\n  style: {\n    width: 10\n  }\n}, {\n  key: 'className',\n  header: 'className',\n  style: {\n    width: 20\n  }\n}, {\n  key: 'time',\n  header: 'time',\n  style: {\n    width: 25\n  }\n}, {\n  key: 'constTime',\n  header: 'constTime',\n  style: {\n    width: 10\n  }\n}, {\n  key: 'instanceId',\n  header: 'instanceId',\n  style: {\n    width: 20\n  }\n}, {\n  key: 'appId',\n  header: 'appId',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'accountId',\n  header: 'accountId',\n  style: {\n    width: 20\n  }\n}, {\n  key: 'appName',\n  header: 'appName',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'clusterName',\n  header: 'clusterName',\n  style: {\n    width: 20\n  }\n}, {\n  key: 'formId',\n  header: 'formId',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'formName',\n  header: 'formName',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'ip',\n  header: 'ip',\n  style: {\n    width: 18\n  }\n}, {\n  key: 'opKey',\n  header: 'opKey',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'opMethod',\n  header: 'opMethod',\n  style: {\n    width: 15\n  }\n}, {\n  key: 'orgId',\n  header: 'orgId',\n  style: {\n    width: 10\n  }\n}, {\n  key: 'tenantId',\n  header: 'tenantId',\n  style: {\n    width: 18\n  }\n}, {\n  key: 'traceId',\n  header: 'traceId',\n  style: {\n    width: 20\n  }\n}, {\n  key: 'userId',\n  header: 'userId',\n  style: {\n    width: 10\n  }\n}];\nvar LogDetail = function LogDetail(_ref) {\n  var _ref$dataSource = _ref.dataSource,\n    dataSource = _ref$dataSource === void 0 ? (0, _immutable.List)() : _ref$dataSource,\n    _ref$headerClassName = _ref.headerClassName,\n    headerClassName = _ref$headerClassName === void 0 ? {} : _ref$headerClassName,\n    _ref$tableClassName = _ref.tableClassName,\n    tableClassName = _ref$tableClassName === void 0 ? {} : _ref$tableClassName,\n    isLoading = _ref.isLoading;\n  var _useState = (0, _react.useState)(dataSource),\n    _useState2 = _slicedToArray(_useState, 2),\n    visibleData = _useState2[0],\n    setVisibleData = _useState2[1]; // 展示的数据，是排序和搜索之后的数据\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showSearchResult = _useState4[0],\n    setShowSearchResult = _useState4[1]; // 是否显示搜索结果\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    resetSort = _useState6[0],\n    setResetsort = _useState6[1]; // 搜索时重置排序状态\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = _slicedToArray(_useState7, 2),\n    searchContent = _useState8[0],\n    setSearchContent = _useState8[1];\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = _slicedToArray(_useState9, 2),\n    searchTimeRange = _useState10[0],\n    setSearchTimeRange = _useState10[1];\n  var searchResultRef = (0, _react.useRef)([]); // 所有的搜索结果\n  var lang = (0, _controlUtils.getLanguage)();\n  (0, _react.useEffect)(function () {\n    setVisibleData(dataSource);\n  }, [dataSource === null || dataSource === void 0 ? void 0 : dataSource.hashCode()]);\n  var onSort = (0, _react.useCallback)(function (sortTarget, sortStatus) {\n    var initialData = showSearchResult ? searchResultRef.current : dataSource;\n    var data = (0, _util.sortData)(initialData, sortStatus, sortTarget);\n    setVisibleData(data);\n    setResetsort(false);\n  }, [showSearchResult, dataSource === null || dataSource === void 0 ? void 0 : dataSource.hashCode(), searchResultRef.current]);\n  var handleContentChange = function handleContentChange(e) {\n    setSearchContent(e.target.value.toLowerCase());\n  };\n  var onDateTimeChange = function onDateTimeChange(value) {\n    setSearchTimeRange(value);\n  };\n  var handleSearch = function handleSearch() {\n    var data = filterData(dataSource, searchContent, searchTimeRange);\n    searchResultRef.current = data;\n    setShowSearchResult(true);\n    setVisibleData(data);\n    setResetsort(true);\n  };\n  var filterData = function filterData(data, content, time) {\n    return data.filter(function (item) {\n      if (content && time) {\n        return item.get('message').toLowerCase().includes(content) && (0, _util.isInTimeRange)(new Date(item.get('time')).getTime(), (0, _util.getTimeRange)(time));\n      } else if (content && !time) {\n        return item.get('message').toLowerCase().includes(content);\n      } else if (!content && time) {\n        return (0, _util.isInTimeRange)(new Date(item.get('time')).getTime(), (0, _util.getTimeRange)(time));\n      } else {\n        return item;\n      }\n    });\n  };\n  var getHeaderItemClassName = function getHeaderItemClassName(header) {\n    return _LogDetail[\"default\"][\"\".concat(header.name)];\n  };\n  var getRowClassName = function getRowClassName() {\n    return _LogDetail[\"default\"].row;\n  };\n  var getCellClassNameByName = function getCellClassNameByName(name, selectedId, item) {\n    var extraClassName;\n    if (name === 'constTime') {\n      if (item[\"\".concat(name)] > _const.LOG_TIME_OUT_SERIOUS_WARN) {\n        extraClassName = _LogDetail[\"default\"]['error-color'];\n      } else if (item[\"\".concat(name)] > _const.LOG_TIME_OUT_WARN) {\n        extraClassName = _LogDetail[\"default\"]['warn-color'];\n      }\n    }\n    return (0, _classnames[\"default\"])(_LogDetail[\"default\"][\"\".concat(name)], extraClassName);\n  };\n  var handleExport = function handleExport() {\n    exportToExcel(visibleData.toJS());\n  };\n  var format = function format(type, value) {\n    if (type === 'time') {\n      return (0, _util.getTime)(value);\n    }\n    return value;\n  };\n  var onKeyUp = function onKeyUp(e) {\n    var key = e.keyCode || e.which;\n    if (key === 13) {\n      handleSearch();\n    } else {\n      return false;\n    }\n  };\n  var exportToExcel = function exportToExcel(data) {\n    var url = \"\".concat(window.__kd_cdnPath__, \"/public/thirdjs/exceljs.min.js\");\n    (0, _loadjs[\"default\"])(url, function () {\n      (0, _util.download2Excel)(exportHeaders, data);\n    });\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['search-section']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['search-content-wrapper']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['search-content']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _LogDetail[\"default\"]['search-content-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0227')), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    className: (0, _classnames[\"default\"])(_LogDetail[\"default\"]['search-content-input']),\n    placeholder: (0, _intlApi.getLangMsg)('SysInfo.key0228'),\n    onChange: handleContentChange,\n    onKeyUp: onKeyUp\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['search-time']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _LogDetail[\"default\"]['search-time-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0229')), /*#__PURE__*/_react[\"default\"].createElement(_DateRangeField[\"default\"], {\n    localeCode: lang,\n    className: (0, _classnames[\"default\"])(_LogDetail[\"default\"]['search-time-input'], 'theme hover-theme-bdcolor1'),\n    value: searchTimeRange,\n    option: (0, _immutable.fromJS)({\n      emptytip: '',\n      fieldstyle: 2,\n      lDir: 'v',\n      mi: false,\n      regiontype: 2,\n      type: 'daterange',\n      vas: 'underline',\n      mask: 'YYYY-MM-DD HH:mm'\n    }),\n    type: \"daterange\",\n    mask: \"\",\n    displayFormat: \"\",\n    onChange: function onChange(e) {\n      return onDateTimeChange(e);\n    },\n    linkage: false,\n    clearIconStyle: {\n      marginRight: '8px'\n    },\n    showTime: true,\n    popupPanelStyle: {\n      zIndex: 100000\n    },\n    onKeyUp: onKeyUp\n  }))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['search-button']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])(_LogDetail[\"default\"]['search-button'], 'hover-theme-fc1'),\n    style: {\n      marginRight: 10\n    },\n    onClick: handleSearch\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0230')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])(_LogDetail[\"default\"]['search-button'], 'hover-theme-fc1'),\n    onClick: handleExport\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0231')))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LogDetail[\"default\"]['table-wrapper']\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Table[\"default\"], {\n    tableClassName: (0, _classnames[\"default\"])(tableClassName, _LogDetail[\"default\"].table),\n    headerClassName: headerClassName,\n    dataSource: visibleData === null || visibleData === void 0 ? void 0 : visibleData.toJS(),\n    keyWord: searchContent,\n    needSort: true,\n    onSort: onSort,\n    resetSort: resetSort,\n    headers: headers,\n    getCellClassNameByName: getCellClassNameByName,\n    getRowClassName: getRowClassName,\n    getHeaderItemClassName: getHeaderItemClassName,\n    format: format,\n    clickable: true,\n    isLoading: isLoading\n  })));\n};\nvar _default = exports[\"default\"] = LogDetail;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/LogDetail.js?");

/***/ }),

/***/ "./src/page/httpMonitor/page/RequestDetail.js":
/*!****************************************************!*\
  !*** ./src/page/httpMonitor/page/RequestDetail.js ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _RequestDetail = _interopRequireDefault(__webpack_require__(/*! ./RequestDetail.less */ \"./src/page/httpMonitor/page/RequestDetail.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _reactJsonTree = _interopRequireDefault(__webpack_require__(/*! react-json-tree */ \"../../node_modules/react-json-tree/lib/index.js\"));\nvar _clipboardUtil = __webpack_require__(/*! @/util/clipboardUtil */ \"./src/util/clipboardUtil.js\");\nvar _util = __webpack_require__(/*! ../util */ \"./src/page/httpMonitor/util.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar RequestDetail = function RequestDetail(_ref) {\n  var onClose = _ref.onClose,\n    className = _ref.className,\n    traceId = _ref.traceId,\n    sourceData = _ref.sourceData;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    viewResponse = _useState2[0],\n    setViewResponse = _useState2[1];\n  var onTabChange = function onTabChange(type) {\n    setViewResponse(type === 'response');\n  };\n  var getContentById = function getContentById(traceId) {\n    return viewResponse ? sourceData === null || sourceData === void 0 ? void 0 : sourceData.get('responseData') : sourceData === null || sourceData === void 0 ? void 0 : sourceData.get('args');\n  };\n  var content = getContentById(traceId);\n  var shouldExpandNode = function shouldExpandNode(level) {\n    return level <= 2;\n  };\n  var renderSendData = function renderSendData() {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _RequestDetail[\"default\"].content\n    }, \"traceId: \", traceId, \" \", /*#__PURE__*/_react[\"default\"].createElement(\"br\", null), _typeof(content) === 'object' ? JSON.stringify(content) : content);\n  };\n  var onCopy = function onCopy() {\n    if (!content) {\n      (0, _clipboardUtil.copy2Clipboard)(\"traceId: \".concat(traceId), onCopySuccess);\n      return;\n    }\n    var copyContent = JSON.stringify(content);\n    copyContent = viewResponse ? copyContent : \"traceId: \".concat(traceId, \"\\n\").concat(copyContent.toString());\n    (0, _clipboardUtil.copy2Clipboard)(copyContent, onCopySuccess);\n  };\n  var onCopySuccess = function onCopySuccess() {\n    (0, _util.showMonitorSuccessNotification)((0, _intlApi.getLangMsg)('SysInfo.key0081'));\n  };\n  var theme = {\n    scheme: 'monokai',\n    author: 'wimer hazenberg (http://www.monokai.nl)',\n    base00: '#0f1011',\n    // 背景色\n    base01: '#383830',\n    base02: '#49483e',\n    base03: '#ab6262',\n    // 序号\n    base04: '#a59f85',\n    base05: '#f8f8f2',\n    base06: '#f5f4f1',\n    base07: '#f9f8f5',\n    base08: '#f92672',\n    base09: '#fd971f',\n    base0A: '#f4bf75',\n    base0B: '#d72020',\n    // 字段值\n    base0C: '#a1efe4',\n    base0D: '#666666',\n    // 节点文字，图标\n    base0E: '#ae81ff',\n    base0F: '#cc6633',\n    tree: function tree(_ref2) {\n      var style = _ref2.style;\n      return {\n        style: _objectSpread(_objectSpread({}, style), {}, {\n          width: '100%',\n          height: '100%',\n          padding: '10px 20px',\n          margin: 0,\n          overflow: 'auto'\n        })\n      };\n    } // we use function here to override default styles, leaving only custom class\n    // label: () => ({ className: 'myTreeLabelClassName' }),\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_RequestDetail[\"default\"].detail, className)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _RequestDetail[\"default\"].tab\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _RequestDetail[\"default\"].left\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])(_RequestDetail[\"default\"].headers, _defineProperty({}, _RequestDetail[\"default\"].active, !viewResponse)),\n    onClick: function onClick() {\n      return onTabChange('send');\n    }\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0233')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: (0, _classnames[\"default\"])(_RequestDetail[\"default\"].response, _defineProperty({}, _RequestDetail[\"default\"].active, viewResponse)),\n    onClick: function onClick() {\n      return onTabChange('response');\n    }\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0234'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _RequestDetail[\"default\"].right\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _RequestDetail[\"default\"]['close-button'],\n    onClick: onClose\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-guanbi8\"\n  })))), viewResponse ? /*#__PURE__*/_react[\"default\"].createElement(_reactJsonTree[\"default\"], {\n    data: content || (0, _immutable.Map)(),\n    getItemString: function getItemString(type, data, itemType, itemString) {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, \" [\", data.size, \"]\");\n    },\n    shouldExpandNode: shouldExpandNode,\n    theme: theme,\n    invertTheme: false\n  }) : renderSendData());\n};\nvar _default = exports[\"default\"] = RequestDetail;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/RequestDetail.js?");

/***/ }),

/***/ "./src/page/httpMonitor/table/Header.js":
/*!**********************************************!*\
  !*** ./src/page/httpMonitor/table/Header.js ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! ./Header.less */ \"./src/page/httpMonitor/table/Header.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar Header = function Header(_ref) {\n  var _ref$headers = _ref.headers,\n    headers = _ref$headers === void 0 ? [] : _ref$headers,\n    _ref$className = _ref.className,\n    className = _ref$className === void 0 ? {} : _ref$className,\n    _ref$needSort = _ref.needSort,\n    needSort = _ref$needSort === void 0 ? true : _ref$needSort,\n    onSort = _ref.onSort,\n    resetSort = _ref.resetSort,\n    initSort = _ref.initSort,\n    initSortStatus = _ref.initSortStatus,\n    propsGetHeaderItemClassName = _ref.getHeaderItemClassName;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = _slicedToArray(_useState, 2),\n    sortStatus = _useState2[0],\n    setSortStatus = _useState2[1];\n  (0, _react.useEffect)(function () {\n    resetSort && setSortStatus({});\n  }, [resetSort]);\n  (0, _react.useEffect)(function () {\n    initSort && setSortStatus(initSortStatus || {});\n  }, []);\n  var shouldRenderSortButton = function shouldRenderSortButton(name) {\n    return sortStatus[\"\".concat(name)] !== 0 && sortStatus[\"\".concat(name)];\n  };\n  var getSortBottomClassName = function getSortBottomClassName(name) {\n    return (0, _classnames[\"default\"])(_defineProperty(_defineProperty({\n      'kdfont kdfont-bottom': true\n    }, _Header[\"default\"].bottom, true), _Header[\"default\"].active, sortStatus[\"\".concat(name)] === -1));\n  };\n  var getSortTopClassName = function getSortTopClassName(name) {\n    return (0, _classnames[\"default\"])(_defineProperty(_defineProperty({\n      'kdfont kdfont-top': true\n    }, _Header[\"default\"].top, true), _Header[\"default\"].active, sortStatus[\"\".concat(name)] === 1));\n  };\n  // -1降序 1升序 0还原\n  var getNextSortStatus = function getNextSortStatus(name) {\n    if (sortStatus[\"\".concat(name)] === 0) {\n      return -1;\n    } else if (sortStatus[\"\".concat(name)] === -1) {\n      return 1;\n    } else if (sortStatus[\"\".concat(name)] === 1) {\n      return 0;\n    } else {\n      return -1;\n    }\n  };\n  var getHeaderItemClassName = function getHeaderItemClassName(header, needSort) {\n    var propwClassName = propsGetHeaderItemClassName(header, needSort);\n    return (0, _classnames[\"default\"])(_Header[\"default\"].item, _defineProperty({}, _Header[\"default\"]['item-pointer'], needSort), propwClassName);\n  };\n  var handleSort = function handleSort(item) {\n    if (!needSort) return;\n    var nextSortState = getNextSortStatus(item.name);\n    onSort && onSort(item.name, nextSortState);\n    setSortStatus(_defineProperty({}, \"\".concat(item.name), nextSortState));\n  };\n  var renderButtons = function renderButtons(item) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Header[\"default\"].button\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: getSortTopClassName(item.name)\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: getSortBottomClassName(item.name)\n    }));\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_Header[\"default\"].header, className)\n  }, headers.map(function (item) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      \"data-name\": item.name,\n      className: getHeaderItemClassName(item, needSort),\n      onClick: function onClick() {\n        return handleSort(item);\n      }\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _Header[\"default\"].value\n    }, item.desc), needSort && shouldRenderSortButton(item.name) && renderButtons(item));\n  }));\n};\nvar _default = exports[\"default\"] = Header;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/Header.js?");

/***/ }),

/***/ "./src/page/httpMonitor/table/Table.js":
/*!*********************************************!*\
  !*** ./src/page/httpMonitor/table/Table.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! ./Header */ \"./src/page/httpMonitor/table/Header.js\"));\nvar _TableCell = _interopRequireDefault(__webpack_require__(/*! ./TableCell */ \"./src/page/httpMonitor/table/TableCell.js\"));\nvar _Table = _interopRequireDefault(__webpack_require__(/*! ./Table.less */ \"./src/page/httpMonitor/table/Table.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _hooks = __webpack_require__(/*! ../hooks */ \"./src/page/httpMonitor/hooks.js\");\nvar _LoadingGIF = _interopRequireDefault(__webpack_require__(/*! @/component/common/LoadingGIF */ \"./src/component/common/LoadingGIF.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar Table = function Table(_ref) {\n  var headers = _ref.headers,\n    dataSource = _ref.dataSource,\n    _ref$headerClassName = _ref.headerClassName,\n    headerClassName = _ref$headerClassName === void 0 ? {} : _ref$headerClassName,\n    _ref$tableClassName = _ref.tableClassName,\n    tableClassName = _ref$tableClassName === void 0 ? {} : _ref$tableClassName,\n    onClickItem = _ref.onClickItem,\n    onClickTableRow = _ref.onClickTableRow,\n    onSort = _ref.onSort,\n    resetSort = _ref.resetSort,\n    type = _ref.type,\n    hideHeaders = _ref.hideHeaders,\n    _ref$keyWord = _ref.keyWord,\n    keyWord = _ref$keyWord === void 0 ? '' : _ref$keyWord,\n    propsGetCellClassNameByName = _ref.getCellClassNameByName,\n    propsGetRowClassName = _ref.getRowClassName,\n    propsGetHeaderItemClassName = _ref.getHeaderItemClassName,\n    format = _ref.format,\n    _ref$clickable = _ref.clickable,\n    clickable = _ref$clickable === void 0 ? true : _ref$clickable,\n    _ref$initSort = _ref.initSort,\n    initSort = _ref$initSort === void 0 ? false : _ref$initSort,\n    initSortStatus = _ref.initSortStatus,\n    selectedIdProp = _ref.selectedId,\n    _ref$needTableResize = _ref.needTableResize,\n    needTableResize = _ref$needTableResize === void 0 ? true : _ref$needTableResize,\n    isLoading = _ref.isLoading;\n  var _useState = (0, _react.useState)(),\n    _useState2 = _slicedToArray(_useState, 2),\n    selectedId = _useState2[0],\n    setSelectedId = _useState2[1];\n  var bodyRef = (0, _react.useRef)();\n  (0, _hooks.useHeaderResize)(bodyRef, {\n    needResize: needTableResize\n  }, dataSource);\n  (0, _react.useEffect)(function () {\n    setSelectedId(selectedIdProp);\n  }, [selectedIdProp]);\n  var handleClickTableRow = function handleClickTableRow(e, data, dataSourceType) {\n    if (!clickable) return;\n    onClickTableRow === null || onClickTableRow === void 0 || onClickTableRow(e, dataSourceType, data.id);\n    setSelectedId(data.id);\n  };\n  var getRowClassName = function getRowClassName(index, selectedId, item) {\n    var id = item.id;\n    var propsClassNames = propsGetRowClassName(index, selectedId, item);\n    var regular = (index + 1) % 2 === 0;\n    return (0, _classnames[\"default\"])(propsClassNames, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _Table[\"default\"].row, true), _Table[\"default\"].regular, regular), _Table[\"default\"].selected, selectedId === id), _Table[\"default\"]['selected-hover'], selectedId === id), _Table[\"default\"]['singular-hover'], !regular && selectedId !== id), _Table[\"default\"]['regular-hover'], regular && selectedId !== id));\n  };\n  var getCellClassNameByName = function getCellClassNameByName(name, selectedId, item) {\n    var propsClassNames = propsGetCellClassNameByName(name, selectedId, item);\n    return (0, _classnames[\"default\"])(_Table[\"default\"][\"\".concat(name)], propsClassNames);\n  };\n  var getValue = function getValue(name, value) {\n    if (typeof format === 'function') {\n      var _format;\n      return (_format = format(name, value)) !== null && _format !== void 0 ? _format : '';\n    }\n    return value !== null && value !== void 0 ? value : '';\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames[\"default\"])(_Table[\"default\"].table, tableClassName)\n  }, !hideHeaders && /*#__PURE__*/_react[\"default\"].createElement(_Header[\"default\"], {\n    headers: headers,\n    className: headerClassName,\n    onSort: onSort,\n    resetSort: resetSort,\n    initSort: initSort,\n    initSortStatus: initSortStatus,\n    getHeaderItemClassName: propsGetHeaderItemClassName\n  }), isLoading ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Table[\"default\"].loading\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Table[\"default\"].gif\n  }, /*#__PURE__*/_react[\"default\"].createElement(_LoadingGIF[\"default\"], null)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Table[\"default\"].text\n  }, (0, _intlApi.getLangMsg)('pageLoading.key0001'))) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Table[\"default\"].body,\n    ref: bodyRef\n  }, dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: getRowClassName(index, selectedId, item),\n      onClick: function onClick(e) {\n        return handleClickTableRow(e, item, type);\n      }\n    }, headers === null || headers === void 0 ? void 0 : headers.map(function (header) {\n      return /*#__PURE__*/_react[\"default\"].createElement(_TableCell[\"default\"], {\n        name: header.name,\n        key: header.name,\n        type: header.name,\n        value: getValue(header.name, item[header.name]),\n        clickable: header.name === \"methods\",\n        id: item.id,\n        stopPropagation: header.name === \"methods\",\n        className: getCellClassNameByName(header.name, selectedId, item),\n        keyWord: keyWord,\n        onClick: function onClick(e) {\n          return onClickItem(e, item, type);\n        }\n      });\n    }));\n  })));\n};\nvar _default = exports[\"default\"] = Table;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/Table.js?");

/***/ }),

/***/ "./src/page/httpMonitor/table/TableCell.js":
/*!*************************************************!*\
  !*** ./src/page/httpMonitor/table/TableCell.js ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _TableCell = _interopRequireDefault(__webpack_require__(/*! ./TableCell.less */ \"./src/page/httpMonitor/table/TableCell.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar TableCell = function TableCell(_ref) {\n  var style = _ref.style,\n    name = _ref.name,\n    value = _ref.value,\n    onClick = _ref.onClick,\n    _ref$clickable = _ref.clickable,\n    clickable = _ref$clickable === void 0 ? false : _ref$clickable,\n    stopPropagation = _ref.stopPropagation,\n    className = _ref.className,\n    keyWord = _ref.keyWord,\n    type = _ref.type;\n  var handleClick = function handleClick(e) {\n    stopPropagation && e.stopPropagation();\n    clickable && onClick(e);\n  };\n  var formatStyle = function formatStyle(ele) {\n    if (type == \"message\" && keyWord && ele) {\n      // const reg = new RegExp(''+ keyWord +'')\n      // return value.replaceAll(reg, \"$1\")\n      // ele.innerHTML = ele.innerHTML.replaceAll(keyWord, `<span style=\"color: #FF991C\">${keyWord}</span>`)\n      // ele.innerHTML = ele.innerHTML.replaceAll(keyWord, \"<span style=\\\"color: #FF991C\\\">\\\"$1</span>\")\n      // ele.innerHTML = ele.innerHTML.replaceAll(keyWord, \"\\$1\")\n      // String strresult=str.replaceAll(strS,\"\\\"$1\\\":\\\"$2\\\"\");\n      // String strresult=str.replaceAll(strS,\"\\\"$1\\\":\\\"$2\\\"\");\n      // return value.replaceAll(keyWord, `<span style=\"color:\"yellow\">$1</span>`)\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    \"data-name\": name,\n    title: value,\n    style: style,\n    className: (0, _classnames[\"default\"])(_TableCell[\"default\"][\"table-cell\"], className)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleClick,\n    ref: function ref(_ref2) {\n      return formatStyle(_ref2);\n    }\n  }, value));\n};\nvar _default = exports[\"default\"] = TableCell;\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/TableCell.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/SysContext.js":
/*!**************************************************!*\
  !*** ./src/service/common/sysinfo/SysContext.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\nvar _react = __webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\");\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 14:48:28\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-10-22 14:49:22\n * @Description: Description\n */\n\nvar SysContext = /*#__PURE__*/(0, _react.createContext)(null);\nSysContext.displayName = 'SysContext';\nvar _default = exports[\"default\"] = SysContext;\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/SysContext.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/actionMapping.js":
/*!*****************************************************!*\
  !*** ./src/service/common/sysinfo/actionMapping.js ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = actionMapping;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.array.reverse.js */ \"../../node_modules/core-js/modules/es.array.reverse.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _const = __webpack_require__(/*! ./const */ \"./src/service/common/sysinfo/const.js\");\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _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); } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-27 09:44:49\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-01-13 14:45:09\n * @Description: reduce的action处理映射\n */\nfunction actionMapping(actionType) {\n  return mapInfo[actionType];\n}\nvar setToolbarChecked = function setToolbarChecked(payload) {\n  return function (state) {\n    var toolbarItem = state.toolbarItems.find(function (item) {\n      return item.id === payload;\n    });\n    if (toolbarItem) {\n      toolbarItem.checked = !toolbarItem.checked;\n    }\n    return state;\n  };\n};\n// 打开视图\nvar showView = function showView(payload) {\n  return function (state) {\n    var id = payload.id,\n      panelItems = payload.panelItems;\n    panelItems.forEach(function (item) {\n      if (_typeof(item) === 'object') {\n        // 移除重名panel\n        var _index = state.panels.findIndex(function (panel) {\n          return panel.id === item.id;\n        });\n        if (_index > -1) {\n          state.panels.splice(_index, 1);\n        }\n      }\n    });\n    panelItems.forEach(function (item) {\n      if (typeof item === 'string') {\n        var realPanel = state.panels.find(function (panel) {\n          return panel.id === item;\n        });\n        if (realPanel) {\n          realPanel.attachViewId = id;\n        }\n      } else {\n        item.attachViewId = id;\n      }\n    });\n    var index = state.views.findIndex(function (view) {\n      return view === id;\n    });\n    if (index > -1) {\n      state.views.splice(index, 1);\n    }\n    state.views.push(id);\n    if (Array.isArray(panelItems)) {\n      panelItems.forEach(function (item) {\n        _typeof(item) === 'object' && state.panels.push(item); // 视图和panel数据分离\n      });\n    }\n    return state;\n  };\n};\n// 视图带到最前\nvar bringFront = function bringFront(payload) {\n  return function (state) {\n    var viewId = payload;\n    if (state.views.length > 1) {\n      var viewIndex = state.views.findIndex(function (item) {\n        return item.id === viewId;\n      });\n      if (viewIndex > -1) {\n        var viewObject = state.views[viewIndex];\n        state.views.splice(viewIndex, 1);\n        if (viewObject) {\n          state.views.push(viewObject);\n        }\n      }\n    }\n    return state;\n  };\n};\n// 移动面板到另外一个视图\nvar movePanel = function movePanel(payload) {\n  return function (state) {\n    var viewId = payload.viewId,\n      panelId = payload.panelId,\n      targetPanelId = payload.targetPanelId;\n    var panel = state.panels.find(function (panel) {\n      return panel.id === panelId;\n    }); // 待移动的面板\n    if (panel) {\n      var targetIndex = state.panels.findIndex(function (panel) {\n        return panel.id === targetPanelId;\n      });\n      var currentIndx = state.panels.findIndex(function (panel) {\n        return panel.id === panelId;\n      });\n      var currentViewId = panel.attachViewId;\n      if (viewId === currentViewId) {\n        state.panels.splice(currentIndx, 1);\n        if (targetIndex > -1) {\n          var index = state.panels.findIndex(function (panel) {\n            return panel.id === targetPanelId;\n          });\n          state.panels.splice(index, 0, panel);\n        } else {\n          // 移动到最后\n          state.panels.push(panel);\n        }\n      } else {\n        panel.attachViewId = viewId;\n        if (targetIndex > -1 && targetIndex !== currentIndx) {\n          state.panels.splice(currentIndx, 1);\n          var _index2 = state.panels.findIndex(function (panel) {\n            return panel.id === targetPanelId;\n          });\n          state.panels.splice(_index2, 0, panel);\n        }\n      }\n    }\n    return state;\n  };\n};\nvar deleteView = function deleteView(payload) {\n  return function (state) {\n    var viewId = payload;\n    var index = state.views.findIndex(function (view) {\n      return view === viewId;\n    });\n    if (index > -1) {\n      state.views.splice(index, 1);\n      var indexArray = state.panels.reduce(function (array, panel) {\n        if (panel.attachViewId === viewId) {\n          array.push(state.panels.indexOf(panel));\n        }\n        return array;\n      }, []);\n      indexArray.reverse().forEach(function (index) {\n        state.panels.splice(index, 1);\n      });\n    }\n  };\n};\nvar addPanel = function addPanel(payload) {\n  return function (state) {\n    var id = payload.id,\n      panelItems = payload.panelItems;\n    var view = state.views.find(function (view) {\n      return view.id === id;\n    });\n    if (view) {\n      panelItems.forEach(function (panelItem) {\n        panelItem.attachViewId = id;\n        state.panels.push(panelItem);\n      });\n    }\n    return state;\n  };\n};\nvar deletePanel = function deletePanel(payload) {\n  return function (state) {\n    var panelId = payload;\n    var index = state.panels.findIndex(function (panelItem) {\n      return panelItem.id === panelId;\n    });\n    if (index > -1) {\n      state.panels.splice(index, 1);\n    }\n  };\n};\nvar hideMainView = function hideMainView(payload) {\n  return function (state) {\n    var isHiddenMainView = payload;\n    state.viewStatus.hiddenMainView = isHiddenMainView;\n  };\n};\nvar putCacher = function putCacher(payload) {\n  return function (state) {\n    var key = payload.key,\n      value = payload.value,\n      _payload$isMerge = payload.isMerge,\n      isMerge = _payload$isMerge === void 0 ? false : _payload$isMerge;\n    state.cacher[key] = value; // isMerge 以后看需求处理\n  };\n};\nvar mapInfo = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _const.ACTION_SET_TOOLBAR_CHECKED, setToolbarChecked), _const.ACTION_SHOW_VIEW, showView), _const.ACTION_BRING_FRONT, bringFront), _const.ACTION_ADD_PANEL, addPanel), _const.ACTION_MOVE_PANEL, movePanel), _const.ACTION_DELETE_VIEW, deleteView), _const.ACTION_DELETE_PANEL, deletePanel), _const.ACTION_HIDE_MAIN_VIEW, hideMainView), _const.ACTION_PUT_CACHER, putCacher);\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/actionMapping.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/const.js":
/*!*********************************************!*\
  !*** ./src/service/common/sysinfo/const.js ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.VIEW_PERFORMANCE_VIEW = exports.VIEW_PAGE_LIST_PANEL = exports.VIEW_NETWORK_VIEW = exports.VIEW_NETWORK_DETAIL_VIEW = exports.VIEW_LOOKUP_VIEW = exports.VIEW_HTTP_MONITOR_VIEW = exports.VIEW_DIRECTIVE_VIEW = exports.VIEW_CONTROL_VIEW = exports.MAIN_VIEW = exports.LOOKUP_VIEW = exports.LAYOUT_TOP = exports.LAYOUT_RIGHT_TOP = exports.LAYOUT_RIGHT_CENTER = exports.LAYOUT_RIGHT_BOTTOM = exports.LAYOUT_RIGHT = exports.LAYOUT_LEFT_TOP = exports.LAYOUT_LEFT_CENTER = exports.LAYOUT_LEFT_BOTTOM = exports.LAYOUT_LEFT = exports.LAYOUT_CENTER_TOP = exports.LAYOUT_CENTER_CENTER = exports.LAYOUT_CENTER_BOTTOM = exports.LAYOUT_BOTTOM = exports.ACTIOPN_SET_CONSOLE_LOG = exports.ACTION_SHOW_VIEW = exports.ACTION_SHOW_PANEL = exports.ACTION_SET_TOOLBAR_CHECKED = exports.ACTION_PUT_CACHER = exports.ACTION_MOVE_PANEL = exports.ACTION_HIDE_MAIN_VIEW = exports.ACTION_DELETE_VIEW = exports.ACTION_DELETE_PANEL = exports.ACTION_BRING_FRONT = exports.ACTION_ADD_PANEL = exports.ACTION_ACTIVE_VIEW = void 0;\nvar LAYOUT_LEFT_TOP = exports.LAYOUT_LEFT_TOP = 'left_top';\nvar LAYOUT_LEFT_CENTER = exports.LAYOUT_LEFT_CENTER = 'left_center';\nvar LAYOUT_LEFT_BOTTOM = exports.LAYOUT_LEFT_BOTTOM = 'left_bottom';\nvar LAYOUT_CENTER_TOP = exports.LAYOUT_CENTER_TOP = 'center_top';\nvar LAYOUT_CENTER_CENTER = exports.LAYOUT_CENTER_CENTER = 'center_center';\nvar LAYOUT_CENTER_BOTTOM = exports.LAYOUT_CENTER_BOTTOM = 'center_bottom';\nvar LAYOUT_RIGHT_TOP = exports.LAYOUT_RIGHT_TOP = 'right_top';\nvar LAYOUT_RIGHT_CENTER = exports.LAYOUT_RIGHT_CENTER = 'right_center';\nvar LAYOUT_RIGHT_BOTTOM = exports.LAYOUT_RIGHT_BOTTOM = 'right_bottom';\nvar LAYOUT_TOP = exports.LAYOUT_TOP = 'top';\nvar LAYOUT_BOTTOM = exports.LAYOUT_BOTTOM = 'bottom';\nvar LAYOUT_LEFT = exports.LAYOUT_LEFT = 'left';\nvar LAYOUT_RIGHT = exports.LAYOUT_RIGHT = 'right';\n\n// action const\n\nvar ACTION_SET_TOOLBAR_CHECKED = exports.ACTION_SET_TOOLBAR_CHECKED = 'setChecked';\nvar ACTION_SHOW_VIEW = exports.ACTION_SHOW_VIEW = 'show_view';\nvar ACTION_SHOW_PANEL = exports.ACTION_SHOW_PANEL = 'show_panel';\nvar ACTION_ADD_PANEL = exports.ACTION_ADD_PANEL = 'add_panel'; // 增加面板到已经存在的视图\nvar ACTION_ACTIVE_VIEW = exports.ACTION_ACTIVE_VIEW = 'active_view';\nvar ACTION_MOVE_PANEL = exports.ACTION_MOVE_PANEL = 'move_panel';\nvar ACTION_BRING_FRONT = exports.ACTION_BRING_FRONT = 'bring_front'; // 视图放置到最前\nvar ACTION_DELETE_VIEW = exports.ACTION_DELETE_VIEW = 'delete_view'; // 删除视图\nvar ACTION_DELETE_PANEL = exports.ACTION_DELETE_PANEL = 'delete_panel'; // 删除面板\nvar ACTION_HIDE_MAIN_VIEW = exports.ACTION_HIDE_MAIN_VIEW = 'hide_main_view'; // 隐藏主视图\nvar ACTIOPN_SET_CONSOLE_LOG = exports.ACTIOPN_SET_CONSOLE_LOG = 'set_console_log'; // 保存ConsolePanel的日志信息\nvar ACTION_PUT_CACHER = exports.ACTION_PUT_CACHER = 'put_cacher'; // 缓存数据到store\n\n// 固定视图面板id\n\nvar VIEW_PAGE_LIST_PANEL = exports.VIEW_PAGE_LIST_PANEL = 'page_list_panel_view';\nvar VIEW_LOOKUP_VIEW = exports.VIEW_LOOKUP_VIEW = 'lookup_VIEW'; // 只允许出现一个\nvar VIEW_CONTROL_VIEW = exports.VIEW_CONTROL_VIEW = 'console_view';\nvar VIEW_NETWORK_VIEW = exports.VIEW_NETWORK_VIEW = 'network_view';\nvar VIEW_DIRECTIVE_VIEW = exports.VIEW_DIRECTIVE_VIEW = 'directive_view';\nvar VIEW_NETWORK_DETAIL_VIEW = exports.VIEW_NETWORK_DETAIL_VIEW = 'network_detail_view'; // ajax请求详细面板\nvar VIEW_HTTP_MONITOR_VIEW = exports.VIEW_HTTP_MONITOR_VIEW = 'http_monitor_view';\nvar VIEW_PERFORMANCE_VIEW = exports.VIEW_PERFORMANCE_VIEW = 'performance_view'; // 性能监控面板\n\nvar MAIN_VIEW = exports.MAIN_VIEW = 'MainView'; // 主视图\n\nvar LOOKUP_VIEW = exports.LOOKUP_VIEW = 'LookUpView';\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/const.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/constent/controlDetailConst.js":
/*!*******************************************************************!*\
  !*** ./src/service/common/sysinfo/constent/controlDetailConst.js ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.defaultHeaders = void 0;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar rowStyle = {\n  whiteSpace: 'wrap'\n};\nvar leftCell = {\n  display: 'inline-block'\n};\nvar visiableDes = /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0155')), (0, _intlApi.getLangMsg)('SysInfo.key0156')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0157')), (0, _intlApi.getLangMsg)('SysInfo.key0158')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0159')), (0, _intlApi.getLangMsg)('SysInfo.key0160')));\nvar lockDes = /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0155')), (0, _intlApi.getLangMsg)('SysInfo.key0162')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, (0, _intlApi.getLangMsg)('SysInfo.key0157')), (0, _intlApi.getLangMsg)('SysInfo.key0161')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0159')), (0, _intlApi.getLangMsg)('SysInfo.key0160')));\nvar colWidthRule = /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0164')), (0, _intlApi.getLangMsg)('SysInfo.key0165')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \"  \", (0, _intlApi.getLangMsg)('SysInfo.key0168')), (0, _intlApi.getLangMsg)('SysInfo.key0166')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n  style: rowStyle\n}, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n  style: leftCell\n}, \"  \", (0, _intlApi.getLangMsg)('SysInfo.key0155')), (0, _intlApi.getLangMsg)('SysInfo.key0167')));\nvar defaultHeaders = exports.defaultHeaders = [{\n  code: 'name',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0001'),\n  width: 130,\n  color: '#3372c6'\n}, {\n  code: 'visiable',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0002'),\n  width: 100,\n  filter: [{\n    key: 'all',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0003')\n  }, {\n    key: 'hide',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0004')\n  }, {\n    key: 'show',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0005')\n  }]\n}, {\n  code: 'visiableDes',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0006'),\n  width: 165,\n  helpText: visiableDes\n}, {\n  code: 'lock',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0007'),\n  width: 100,\n  color: {\n    lock: '#FF991C',\n    tagVal: (0, _intlApi.getLangMsg)('SysInfo.key0008')\n  },\n  filter: [{\n    key: 'all',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0003')\n  }, {\n    key: 'lock',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0008')\n  }, {\n    key: 'unlock',\n    value: (0, _intlApi.getLangMsg)('SysInfo.key0009')\n  }]\n}, {\n  code: 'lockDes',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0010'),\n  width: 165,\n  helpText: lockDes\n}, {\n  code: 'colWidthRule',\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0011'),\n  width: 130,\n  helpText: colWidthRule\n}];\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/constent/controlDetailConst.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/reduce.js":
/*!**********************************************!*\
  !*** ./src/service/common/sysinfo/reduce.js ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = reduce;\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _immer = __webpack_require__(/*! immer */ \"../../node_modules/immer/dist/index.js\");\nvar _actionMapping = _interopRequireDefault(__webpack_require__(/*! ./actionMapping */ \"./src/service/common/sysinfo/actionMapping.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 10:19:37\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-01-17 09:38:31\n * @Description: 系统信息的数据处理函数\n */\n/** views: [\n      {\n        viewId: 'view1',\n        layout: 'left_top',\n        data: {}\n      }\n    ],\n    panels: [\n      {\n        type：'pageView'\n        panelId: 1,\n        attachViewid: 'view1',\n        position: 'first', // first|last,\n        data: {pageId}\n      },\n    viewStatus:{\n      hiddenMainView:false,\n      activeView:undefined,\n    }\n    ] */\n\n(0, _immer.enableES5)();\n// export default function reduce (state, { action, payload }) {\n//   const actionHandler = actionMapping(action)\n//   if (actionHandler) {\n//     return produce(state, draft => actionHandler(payload)(draft))\n//   }\n// }\nfunction reduce(state, batchActions) {\n  if (!Array.isArray(batchActions)) {\n    batchActions = [batchActions];\n  }\n  // 开发者点选后immer会冻结所持有的对象，导致修改对象属性异常\n  (0, _immer.setAutoFreeze)(false);\n  var newState = (0, _immer.produce)(state, function (draft) {\n    batchActions.forEach(function (singleAction) {\n      var action = singleAction.action,\n        payload = singleAction.payload;\n      var actionHandler = (0, _actionMapping[\"default\"])(action);\n      if (actionHandler) {\n        actionHandler(payload)(draft);\n      }\n    });\n  });\n  (0, _immer.setAutoFreeze)(true);\n  return newState;\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/reduce.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/sysConfig.js":
/*!*************************************************!*\
  !*** ./src/service/common/sysinfo/sysConfig.js ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.TREE_MAX_NODE_COUNT = exports.TIME_OUT_WARN = exports.TIME_OUT_SERIOUS_WARN = exports.MESSAGE_MAX_LENGTH = exports.MAX_INSTRUC_PARAMS_LENGTH = exports.MAX_INSTRUC_LENGTH = exports.CONSOLE_MESSAGE_CONNT = exports.CODE_MIRROR_LENGTH = void 0;\nvar TIME_OUT_WARN = exports.TIME_OUT_WARN = 1000; // 请求时间过长警告\nvar TIME_OUT_SERIOUS_WARN = exports.TIME_OUT_SERIOUS_WARN = 5000; // 请求时间过长严重警告\nvar MAX_INSTRUC_LENGTH = exports.MAX_INSTRUC_LENGTH = 10; // 最大指令数量\nvar MAX_INSTRUC_PARAMS_LENGTH = exports.MAX_INSTRUC_PARAMS_LENGTH = 10; // 最大指令数量\nvar MESSAGE_MAX_LENGTH = exports.MESSAGE_MAX_LENGTH = 1024; // showMessage指令最大内容长度\nvar TREE_MAX_NODE_COUNT = exports.TREE_MAX_NODE_COUNT = 100; // 树控件(addNodes，updateNodes)更新的最大节点数量\nvar CONSOLE_MESSAGE_CONNT = exports.CONSOLE_MESSAGE_CONNT = 1000; // 控制台最大输出条数\nvar CODE_MIRROR_LENGTH = exports.CODE_MIRROR_LENGTH = 5000; // 代码编辑器支持的最大长度\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/sysConfig.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/use/usePerformanceObserve.js":
/*!*****************************************************************!*\
  !*** ./src/service/common/sysinfo/use/usePerformanceObserve.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = usePerformanceObserve;\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = __webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\");\nvar cacher = []; // 缓存callback\nfunction usePerformanceObserve(_ref) {\n  var _ref$type = _ref.type,\n    type = _ref$type === void 0 ? 'measure' : _ref$type,\n    callback = _ref.callback;\n  (0, _react.useEffect)(function () {\n    var server, time;\n    if (window.PerformanceObserver) {\n      var entries = window.performance.getEntriesByType(type);\n      callback && callback(entries);\n      server = new window.PerformanceObserver(function (list) {\n        var entries = list.getEntries();\n        callback && callback(entries);\n      });\n      server.observe({\n        entryTypes: [type]\n      });\n    } else {\n      cacher.push(callback);\n      time = setInterval(function () {\n        var entries = window.performance.getEntriesByType(type);\n        if (entries.length > 0 && cacher.length > 0) {\n          cacher.forEach(function (cb) {\n            cb(entries);\n          });\n          window.performance.clearMeasures(); // 定时获取后立即清除\n        }\n      }, 5000);\n    }\n    return function () {\n      var _server;\n      (_server = server) === null || _server === void 0 || _server.disconnect();\n      window.clearInterval(time);\n      var index = cacher.findIndex(function (cb) {\n        return cb === callback;\n      });\n      if (index > -1) {\n        cacher.splice(index, 1);\n      }\n    };\n  }, []);\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/use/usePerformanceObserve.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/codeMirronEnhance.js":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/utils/codeMirronEnhance.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\nexports.formatEditor = formatEditor;\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\nvar _codemirror = _interopRequireDefault(__webpack_require__(/*! codemirror */ \"../../node_modules/codemirror/lib/codemirror.js\"));\n__webpack_require__(/*! codemirror/addon/fold/xml-fold */ \"../../node_modules/codemirror/addon/fold/xml-fold.js\");\n__webpack_require__(/*! codemirror/addon/selection/active-line */ \"../../node_modules/codemirror/addon/selection/active-line.js\");\n__webpack_require__(/*! codemirror/addon/fold/foldcode */ \"../../node_modules/codemirror/addon/fold/foldcode.js\");\n__webpack_require__(/*! codemirror/addon/fold/foldgutter */ \"../../node_modules/codemirror/addon/fold/foldgutter.js\");\n__webpack_require__(/*! codemirror/addon/fold/brace-fold */ \"../../node_modules/codemirror/addon/fold/brace-fold.js\");\n__webpack_require__(/*! codemirror/addon/fold/markdown-fold */ \"../../node_modules/codemirror/addon/fold/markdown-fold.js\");\n__webpack_require__(/*! codemirror/addon/search/search */ \"../../node_modules/codemirror/addon/search/search.js\");\n__webpack_require__(/*! codemirror/addon/search/searchcursor */ \"../../node_modules/codemirror/addon/search/searchcursor.js\");\n__webpack_require__(/*! codemirror/addon/dialog/dialog */ \"../../node_modules/codemirror/addon/dialog/dialog.js\");\n__webpack_require__(/*! codemirror/addon/edit/matchbrackets */ \"../../node_modules/codemirror/addon/edit/matchbrackets.js\");\n__webpack_require__(/*! codemirror/addon/edit/closebrackets */ \"../../node_modules/codemirror/addon/edit/closebrackets.js\");\n__webpack_require__(/*! codemirror/addon/wrap/hardwrap */ \"../../node_modules/codemirror/addon/wrap/hardwrap.js\");\n__webpack_require__(/*! codemirror/addon/hint/javascript-hint */ \"../../node_modules/codemirror/addon/hint/javascript-hint.js\");\n__webpack_require__(/*! codemirror/addon/hint/sql-hint */ \"../../node_modules/codemirror/addon/hint/sql-hint.js\");\n__webpack_require__(/*! codemirror/addon/hint/show-hint */ \"../../node_modules/codemirror/addon/hint/show-hint.js\");\n__webpack_require__(/*! codemirror/addon/hint/xml-hint */ \"../../node_modules/codemirror/addon/hint/xml-hint.js\");\n__webpack_require__(/*! codemirror/addon/hint/html-hint */ \"../../node_modules/codemirror/addon/hint/html-hint.js\");\n__webpack_require__(/*! codemirror/addon/comment/comment */ \"../../node_modules/codemirror/addon/comment/comment.js\");\n__webpack_require__(/*! codemirror/addon/hint/show-hint.css */ \"../../node_modules/codemirror/addon/hint/show-hint.css\");\n__webpack_require__(/*! codemirror/theme/blackboard.css */ \"../../node_modules/codemirror/theme/blackboard.css\");\n__webpack_require__(/*! codemirror/mode/xml/xml */ \"../../node_modules/codemirror/mode/xml/xml.js\");\n__webpack_require__(/*! codemirror/mode/javascript/javascript */ \"../../node_modules/codemirror/mode/javascript/javascript.js\");\n__webpack_require__(/*! codemirror/mode/css/css */ \"../../node_modules/codemirror/mode/css/css.js\");\n__webpack_require__(/*! codemirror/mode/htmlmixed/htmlmixed */ \"../../node_modules/codemirror/mode/htmlmixed/htmlmixed.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-01 13:40:19\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-01 15:32:10\n * @Description: coreMirror，提供格式化功能\n */\n\n// import 'codemirror/mode/markdown/markdown'\n// import 'codemirror/mode/clike/clike'\n// import 'codemirror/mode/sql/sql'\n\n_codemirror[\"default\"].defineExtension('autoFormatRange', function (from, to) {\n  var cm = this;\n  var outer = cm.getMode();\n  var text = cm.getRange(from, to).split('\\n');\n  var state = _codemirror[\"default\"].copyState(outer, cm.getTokenAt(from).state);\n  var tabSize = cm.getOption('tabSize');\n  var out = '';\n  var lines = 0;\n  var atSol = from.ch === 0;\n  function newline() {\n    out += '\\n';\n    atSol = true;\n    ++lines;\n  }\n  for (var i = 0; i < text.length; ++i) {\n    var stream = new _codemirror[\"default\"].StringStream(text[i], tabSize);\n    while (!stream.eol()) {\n      var inner = _codemirror[\"default\"].innerMode(outer, state);\n      var style = outer.token(stream, state);\n      var cur = stream.current();\n      stream.start = stream.pos;\n      if (!atSol || /\\S/.test(cur)) {\n        out += cur;\n        atSol = false;\n      }\n      if (!atSol && inner.mode.newlineAfterToken && inner.mode.newlineAfterToken(style, cur, stream.string.slice(stream.pos) || text[i + 1] || '', inner.state)) {\n        newline();\n      }\n    }\n    if (!stream.pos && outer.blankLine) outer.blankLine(state);\n    if (!atSol) newline();\n  }\n  cm.operation(function () {\n    cm.replaceRange(out, from, to);\n    for (var _cur = from.line + 1, end = from.line + lines; _cur <= end; ++_cur) {\n      cm.indentLine(_cur, 'smart');\n    }\n  });\n});\nfunction closeNotification(cm, newVal) {\n  if (cm.state.currentNotificationClose) {\n    cm.state.currentNotificationClose();\n  }\n  cm.state.currentNotificationClose = newVal;\n}\nfunction dialogDiv(cm, template, bottom) {\n  var wrap = cm.getWrapperElement();\n  var dialog = wrap.appendChild(document.createElement('div'));\n  if (bottom) {\n    dialog.className = 'CodeMirror-dialog CodeMirror-dialog-bottom';\n  } else {\n    dialog.className = 'CodeMirror-dialog CodeMirror-dialog-top';\n  }\n  if (typeof template === 'string') {\n    dialog.innerHTML = template;\n  } else {\n    // Assuming it's a detached DOM element.\n    dialog.appendChild(template);\n  }\n  _codemirror[\"default\"].addClass(wrap, 'dialog-opened');\n  return dialog;\n}\n\n// Applies automatic mode-aware indentation to the specified range\n_codemirror[\"default\"].defineExtension('autoIndentRange', function (from, to) {\n  var cmInstance = this;\n  this.operation(function () {\n    for (var i = from.line; i <= to.line; i++) {\n      cmInstance.indentLine(i, 'smart');\n    }\n  });\n});\n_codemirror[\"default\"].extendMode('css', {\n  commentStart: '/*',\n  commentEnd: '*/',\n  newlineAfterToken: function newlineAfterToken(type, content) {\n    return /^[;{}]$/.test(content);\n  }\n});\n_codemirror[\"default\"].extendMode('javascript', {\n  commentStart: '/*',\n  commentEnd: '*/',\n  // FIXME semicolons inside of for\n  newlineAfterToken: function newlineAfterToken(type, content, textAfter, state) {\n    if (this.jsonMode) {\n      return /^[\\[,{]$/.test(content) || /^}/.test(textAfter);\n    } else {\n      if (content === ';' && state.lexical && state.lexical.type === ')') return false;\n      return /^[;{}]$/.test(content) && !/^;/.test(textAfter);\n    }\n  }\n});\n_codemirror[\"default\"].extendMode('xml', {\n  commentStart: '<!--',\n  commentEnd: '-->',\n  newlineAfterToken: function newlineAfterToken(type, content, textAfter) {\n    return type === 'tag bracket' && />$/.test(content) || /^</.test(textAfter);\n  }\n});\nfunction formatEditor(editor) {\n  _codemirror[\"default\"].commands.selectAll(editor);\n  autoFormatSelection(editor);\n}\nfunction getSelectedRange(editor) {\n  return {\n    from: editor.getCursor(true),\n    to: editor.getCursor(false)\n  };\n}\nfunction autoFormatSelection(editor) {\n  var range = getSelectedRange(editor);\n  editor.autoFormatRange(range.from, range.to);\n}\nvar _default = exports[\"default\"] = _codemirror[\"default\"];\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/codeMirronEnhance.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/controlUtils.js":
/*!**********************************************************!*\
  !*** ./src/service/common/sysinfo/utils/controlUtils.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports._getVisible = _getVisible;\nexports.getCardLocked = getCardLocked;\nexports.getCardVisible = getCardVisible;\nexports.getControlData = getControlData;\nexports.getLanguage = exports.getGridInfo = exports.getControls = void 0;\nexports.getLocked = getLocked;\nexports.getPageInfo = exports.getPageIdAndCtrlKey = exports.getModel = void 0;\nexports.getVisible = getVisible;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _PageModel = _interopRequireDefault(__webpack_require__(/*! @/model/PageModel */ \"./src/model/PageModel.js\"));\nvar _componentutil = __webpack_require__(/*! @/util/componentutil.js */ \"./src/util/componentutil.js\");\nvar _ComponentModel = __webpack_require__(/*! @/model/ComponentModel */ \"./src/model/ComponentModel.js\");\nvar _pageUtils = __webpack_require__(/*! ./pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _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; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2023-01-29 15:30:22\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-02-01 14:48:52\n * @Description: 控件相关工具方法\n */\n/**\n * 获取控件内部详细信息,包括控件尺寸、可见性锁定性、控件内部警告信息（数据不一致、数据不正确等）\n * @param {*} pageId\n * @param {*} controlId\n * @param {*} controlType\n * @returns [{label,content}...]\n */\nfunction getControlData(pageId, controlId, controlType) {\n  if (!controlId) {\n    return [];\n  }\n  var state = (0, _global.getGlobalState)();\n  var existPage = (0, _appModelFunction.pageIsExist)(pageId)(state);\n  if (!existPage) {\n    return [{\n      label: (0, _intlApi.getLangMsg)('SysInfo.key0012'),\n      content: ''\n    }];\n  }\n  var out = [];\n  var eleInfo = getControlElementInfo(pageId, controlId, state);\n  out.push.apply(out, _toConsumableArray(eleInfo));\n  // 后续添加获取控件其他有用信息\n\n  return out;\n}\n// 获取控件html相关属性\nfunction getControlElementInfo(pageId, controlId, state) {\n  var out = [];\n  var ele = document.querySelector(\"[data-page-id='\".concat(pageId, \"_\").concat(controlId, \"']\"));\n  if (ele) {\n    var _ele$getBoundingClien = ele.getBoundingClientRect(),\n      left = _ele$getBoundingClien.left,\n      top = _ele$getBoundingClien.top,\n      width = _ele$getBoundingClien.width,\n      height = _ele$getBoundingClien.height;\n    out.push({\n      label: (0, _intlApi.getLangMsg)('SysInfo.key0013'),\n      content: \"left \".concat(left, \"\\uFF1Btop \").concat(top, \"\\uFF1Bwidth \").concat(width === null || width === void 0 ? void 0 : width.toFixed(0), \"\\uFF1Bheight \").concat(height === null || height === void 0 ? void 0 : height.toFixed(0), \"\\uFF1B\")\n    });\n  } else {\n    // 针对不规范控件，先找page，再定位id\n    var pageElement = document.getElementById(pageId);\n    if (pageElement) {\n      ele = pageElement.querySelector(\"#\".concat(controlId));\n      if (ele) {\n        var _ele$getBoundingClien2 = ele.getBoundingClientRect(),\n          _left = _ele$getBoundingClien2.left,\n          _top = _ele$getBoundingClien2.top,\n          _width = _ele$getBoundingClien2.width,\n          _height = _ele$getBoundingClien2.height;\n        out.push({\n          label: (0, _intlApi.getLangMsg)('SysInfo.key0013'),\n          content: \"left \".concat(_left, \"\\uFF1Btop \").concat(_top, \"\\uFF1Bwidth \").concat(_width === null || _width === void 0 ? void 0 : _width.toFixed(0), \"\\uFF1Bheight \").concat(_height === null || _height === void 0 ? void 0 : _height.toFixed(0), \"\\uFF1B\")\n        });\n      } else {\n        out.push({\n          label: (0, _intlApi.getLangMsg)('SysInfo.key0014')\n        });\n      }\n    } else {\n      out.push({\n        label: (0, _intlApi.getLangMsg)('SysInfo.key0014')\n      });\n    }\n  }\n  var pageModel = (0, _PageModel[\"default\"])(pageId);\n  var componentModel = pageModel.findComponentModel(controlId);\n  if (!componentModel) {\n    var meta = (0, _appModelFunction.getItemMeta)(pageId, controlId)((0, _global.getGlobalState)());\n    componentModel = (0, _ComponentModel.createComponentModel)(pageId, meta, (0, _global.getGlobalState)());\n  }\n  if (componentModel) {\n    var _componentModel, _componentModel2;\n    // todo：控件已经加载,显示控件相关信息\n    out.push.apply(out, _toConsumableArray(getVisible(componentModel, controlId, (_componentModel = componentModel) === null || _componentModel === void 0 || (_componentModel = _componentModel.metaObject) === null || _componentModel === void 0 ? void 0 : _componentModel.vi, ele)));\n    out.push.apply(out, _toConsumableArray(getLocked(componentModel, controlId, (_componentModel2 = componentModel) === null || _componentModel2 === void 0 || (_componentModel2 = _componentModel2.metaObject) === null || _componentModel2 === void 0 ? void 0 : _componentModel2.l, ele)));\n  }\n  return out;\n}\n\n// 获取字段/控件可见性\nfunction getVisible() {\n  var _getVisible2 = _getVisible.apply(void 0, arguments),\n    visible = _getVisible2.visible,\n    origin = _getVisible2.origin;\n  return [{\n    label: (0, _intlApi.getLangMsg)('SysInfo.key0015'),\n    content: \"\".concat(visible ? (0, _intlApi.getLangMsg)('SysInfo.key0016') : (0, _intlApi.getLangMsg)('SysInfo.key0017'))\n  }, {\n    label: (0, _intlApi.getLangMsg)('SysInfo.key0018'),\n    content: \"\".concat(origin)\n  }];\n}\nfunction _getVisible(model, controlkey, vi, ele) {\n  var visible;\n  var origin;\n  var parentVisible = ele ? ele.getAttribute('data-parent-visible') : '';\n  if (parentVisible && parentVisible === 'false' && parentVisible !== 'undefined') {\n    origin = (0, _intlApi.getLangMsg)('SysInfo.key0019');\n    visible = false;\n  } else {\n    origin = (0, _intlApi.getLangMsg)('SysInfo.key0020');\n    visible = (0, _componentutil.getMetaVisible)(model, vi);\n    if (!(0, _componentutil.getShowHideAciton)(model, controlkey)) {\n      origin = visible ? (0, _intlApi.getLangMsg)('SysInfo.key0021') : (0, _intlApi.getLangMsg)('SysInfo.key0022');\n      var fullPath = ['forms', model.pageId, 'data'].concat(controlkey).concat('visible');\n      var hideKeys = model.state.getIn(fullPath);\n      if ((hideKeys === null || hideKeys === void 0 ? void 0 : hideKeys.size) === 1 && hideKeys.includes('')) {\n        origin = visible ? (0, _intlApi.getLangMsg)('SysInfo.key0023') : 'setVisible';\n      }\n      visible = false;\n    }\n  }\n  return {\n    visible: visible,\n    origin: origin\n  };\n}\n\n// 获取卡片中字段/控件: 是否隐藏设置\nfunction getCardVisible(model, controlkey, vi, gridKey, viPosition, row) {\n  var _visible = (0, _componentutil.getMetaVisible)(model, vi);\n  if (_visible) {\n    _visible = (0, _componentutil.getCardShowHideAciton)(model, controlkey, gridKey, viPosition, row);\n  }\n  return _visible;\n}\nfunction getLocked() {\n  var _getLocked2 = _getLocked.apply(void 0, arguments),\n    lock = _getLocked2.lock,\n    origin = _getLocked2.origin;\n  return [{\n    label: (0, _intlApi.getLangMsg)('SysInfo.key0024'),\n    content: \"\".concat(lock ? (0, _intlApi.getLangMsg)('SysInfo.key0025') : (0, _intlApi.getLangMsg)('SysInfo.key0026'))\n  }, {\n    label: (0, _intlApi.getLangMsg)('SysInfo.key0027'),\n    content: \"\".concat(origin)\n  }];\n}\nfunction _getLocked(model, controlkey, lockValue, ele) {\n  var lock;\n  var origin;\n  var parentLocked = ele ? ele.getAttribute('data-parent-lock') : '';\n  if (parentLocked && parentLocked !== 'false' && parentLocked !== 'undefined') {\n    // 父容器是否锁定\n    origin = (0, _intlApi.getLangMsg)('SysInfo.key0019');\n    lock = true;\n  } else {\n    origin = (0, _intlApi.getLangMsg)('SysInfo.key0020');\n    lock = (0, _componentutil.getMetaLocked)(model, lockValue);\n    if ((0, _componentutil.getLockedAciton)(model, controlkey)) {\n      origin = !lock ? (0, _intlApi.getLangMsg)('SysInfo.key0022') : (0, _intlApi.getLangMsg)('SysInfo.key0021');\n      var fullPath = ['forms', model.pageId, 'data'].concat(controlkey).concat('lock');\n      var lockedKeys = model.state.getIn(fullPath);\n      if (lockedKeys.size === 1 && lockedKeys.includes('')) {\n        origin = !lock ? (0, _intlApi.getLangMsg)('SysInfo.key0028') : (0, _intlApi.getLangMsg)('SysInfo.key0029');\n      }\n      lock = true;\n    }\n  }\n  return {\n    lock: lock,\n    origin: origin\n  };\n}\n\n// 获取卡片中字段/控件:是否锁定\nfunction getCardLocked(model, controlkey, lockValue, gridKey, lPosition, row) {\n  var _lock = (0, _componentutil.getMetaLocked)(model, lockValue);\n  if (!_lock) {\n    _lock = (0, _componentutil.getCardLockedAciton)(model, controlkey, gridKey, lPosition, row);\n  }\n  return _lock;\n}\nfunction getAllControls(meta, out) {\n  if (_immutable.List.isList(meta)) {\n    meta.forEach(function (item) {\n      out.push(item);\n      getAllControls(item.get('items'), out);\n    });\n  }\n  return out;\n}\nvar getControls = exports.getControls = function getControls(pageId) {\n  var pageObject = (0, _pageUtils.getPageObject)(pageId);\n  var meta = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('meta');\n  return getAllControls(meta === null || meta === void 0 ? void 0 : meta.get('items'), []);\n};\nvar getPageInfo = exports.getPageInfo = function getPageInfo(pageId) {\n  var statusArr = [{\n    add: (0, _intlApi.getLangMsg)('SysInfo.key0030')\n  }, {\n    update: (0, _intlApi.getLangMsg)('SysInfo.key0031')\n  }, {\n    look: (0, _intlApi.getLangMsg)('SysInfo.key0032')\n  }, {\n    begin: (0, _intlApi.getLangMsg)('SysInfo.key0033')\n  }, {\n    commit: (0, _intlApi.getLangMsg)('SysInfo.key0034')\n  }, {\n    check: (0, _intlApi.getLangMsg)('SysInfo.key0035')\n  }];\n  var status = (0, _memoryCacher.getDynamicFormStatus)(pageId) || 0;\n  var pageObject = (0, _pageUtils.getPageObject)(pageId);\n  if (!pageObject) return;\n  var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n  var caption = config === null || config === void 0 ? void 0 : config.get('caption');\n  var formId = config === null || config === void 0 ? void 0 : config.get('formId');\n  var lang = getLanguage();\n  var name = caption === null || caption === void 0 ? void 0 : caption.get(lang);\n  var billFormId = config === null || config === void 0 ? void 0 : config.get('billFormId');\n  return {\n    status: statusArr[status],\n    formId: formId,\n    name: name,\n    billFormId: billFormId\n  };\n};\nvar getGridInfo = exports.getGridInfo = function getGridInfo(pageId, controlId) {\n  var _componentModel3, _componentModel4;\n  var state = (0, _global.getGlobalState)();\n  var ele = document.querySelector(\"[data-page-id='\".concat(pageId, \"_\").concat(controlId, \"']\"));\n  var pageModel = (0, _PageModel[\"default\"])(pageId);\n  var componentModel = pageModel.findComponentModel(controlId);\n  if (!componentModel) {\n    var _meta = (0, _appModelFunction.getItemMeta)(pageId, controlId)(state);\n    componentModel = (0, _ComponentModel.createComponentModel)(pageId, _meta, state);\n  }\n  if (!componentModel) return;\n  var tableVisible = _getVisible(componentModel, controlId, (_componentModel3 = componentModel) === null || _componentModel3 === void 0 || (_componentModel3 = _componentModel3.metaObject) === null || _componentModel3 === void 0 ? void 0 : _componentModel3.vi, ele).visible;\n  var tableLock = _getLocked(componentModel, controlId, (_componentModel4 = componentModel) === null || _componentModel4 === void 0 || (_componentModel4 = _componentModel4.metaObject) === null || _componentModel4 === void 0 ? void 0 : _componentModel4.l, ele).lock;\n  var meta = componentModel.meta;\n  var columns = meta.get('columns');\n  var colLock = state.getIn(['forms', pageId, 'data', controlId, 'colLock']); // 业务数据\n  var colVisb = state.getIn(['forms', pageId, 'data', controlId, 'colVisb']); // 业务数据\n\n  var newRows = columns.map(function (column) {\n    var _colLock$get, _colVisb$get;\n    var l = column.get('l');\n    var vi = column.get('vi');\n    var colId = column.get('entity');\n    var lang = getLanguage();\n    var name = column.getIn(['header', lang]) || column.getIn(['header', 'zh_CN']) || column.get('header');\n    var lockOrigin;\n    var visibleOrigin;\n    if (tableLock) {\n      lockOrigin = 'table';\n    }\n    if (!tableVisible) {\n      visibleOrigin = 'table';\n    }\n    var lockByMeta = (0, _componentutil.getMetaLocked)(componentModel, l);\n    var visibleByMeta = (0, _componentutil.getMetaVisible)(componentModel, vi);\n    if (lockByMeta) {\n      lockOrigin = lockOrigin ? lockOrigin + (0, _intlApi.getLangMsg)('SysInfo.key0036') : (0, _intlApi.getLangMsg)('SysInfo.key0037');\n    }\n    if (!visibleByMeta) {\n      visibleOrigin = visibleOrigin ? visibleOrigin + (0, _intlApi.getLangMsg)('SysInfo.key0036') : (0, _intlApi.getLangMsg)('SysInfo.key0037');\n    }\n    var lockByData = (colLock === null || colLock === void 0 || (_colLock$get = colLock.get(colId)) === null || _colLock$get === void 0 ? void 0 : _colLock$get.size) > 0;\n    var visibleByData = !(colVisb !== null && colVisb !== void 0 && (_colVisb$get = colVisb.get(colId)) !== null && _colVisb$get !== void 0 && _colVisb$get.size) > 0;\n    if (lockByData) {\n      lockOrigin = lockOrigin ? lockOrigin + (0, _intlApi.getLangMsg)('SysInfo.key0038') : (0, _intlApi.getLangMsg)('SysInfo.key0039');\n    }\n    if (!visibleByData) {\n      visibleOrigin = visibleOrigin ? visibleOrigin + (0, _intlApi.getLangMsg)('SysInfo.key0038') : (0, _intlApi.getLangMsg)('SysInfo.key0039');\n    }\n    var lock = tableLock || lockByMeta || lockByData;\n    var invisible = !tableVisible || !visibleByMeta || !visibleByData;\n    return {\n      lock: lock ? (0, _intlApi.getLangMsg)('SysInfo.key0025') : (0, _intlApi.getLangMsg)('SysInfo.key0026'),\n      visiable: invisible ? (0, _intlApi.getLangMsg)('SysInfo.key0017') : (0, _intlApi.getLangMsg)('SysInfo.key0016'),\n      visiableDes: visibleOrigin || '-',\n      lockDes: lockOrigin || '-',\n      name: name,\n      colWidthRule: lock ? (0, _intlApi.getLangMsg)('SysInfo.key0040') : (0, _intlApi.getLangMsg)('SysInfo.key0020')\n    };\n  }).filter(function (column) {\n    return column.name !== 'rk';\n  });\n  return {\n    rows: newRows.toJS(),\n    gridType: componentModel.meta.get('gridtype') || componentModel.meta.get('FieldType')\n  };\n};\nvar getModel = exports.getModel = function getModel(pageId, controlId) {\n  var state = (0, _global.getGlobalState)();\n  var pageModel = (0, _PageModel[\"default\"])(pageId);\n  var componentModel = pageModel.findComponentModel(controlId);\n  if (!componentModel) {\n    var meta = (0, _appModelFunction.getItemMeta)(pageId, controlId)(state);\n    componentModel = (0, _ComponentModel.createComponentModel)(pageId, meta, state);\n  }\n  return componentModel;\n};\nvar nonstandardIds = ['searchInput'];\nvar getPageIdAndCtrlKey = exports.getPageIdAndCtrlKey = function getPageIdAndCtrlKey(element, pageId) {\n  var _pageId = pageId;\n  var id = element.dataset.ctrlId || element.dataset.btnKey || element.id || element.dataset.formId;\n  if (nonstandardIds.includes(id)) id = '';\n  if (id) {\n    pageId = pageId.replace(\"_\".concat(id), '');\n  } else {\n    pageId = pageId.replace(/_.*/, '');\n    id = _pageId.replace(\"\".concat(pageId, \"_\"), '');\n  }\n  if (id.indexOf('homepagetab') !== -1) return {\n    id: 'homepagetabap',\n    pageId: pageId\n  };\n  return {\n    id: id,\n    pageId: pageId\n  };\n};\nvar getLanguage = exports.getLanguage = function getLanguage() {\n  var state = window.store.getState();\n  var rootPageId = (0, _appModelFunction.getRootPageId)()(state);\n  return (0, _appModelFunction.getUserLocale)(rootPageId)(state);\n};\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/controlUtils.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/converRGBAToHex.js":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/utils/converRGBAToHex.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = getHexColor;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-float.js */ \"../../node_modules/core-js/modules/es.parse-float.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-25 14:23:36\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-25 14:24:27\n * @Description: rgba转十六进制格式\n */\n/**\n *\n * @param {*} color  rgba格式字符串\n * @returns  16进制color字符串\n */\nfunction getHexColor(color) {\n  if ((color === null || color === void 0 ? void 0 : color.indexOf('rgba')) === -1) return color;\n  var value = color.replace(/rgba?\\(/, '').replace(/\\)/, '').replace(/[\\s+]/g, '').split(',');\n  var a = parseFloat(value[3] || 1);\n  var r = Math.floor(a * parseInt(value[0]) + (1 - a) * 255);\n  var g = Math.floor(a * parseInt(value[1]) + (1 - a) * 255);\n  var b = Math.floor(a * parseInt(value[2]) + (1 - a) * 255);\n  return '#' + ('0' + r.toString(16)).slice(-2) + ('0' + g.toString(16)).slice(-2) + ('0' + b.toString(16)).slice(-2);\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/converRGBAToHex.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/findKDControl.js":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/utils/findKDControl.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = findKDControl;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _pageUtils = __webpack_require__(/*! ../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _controlUtils = __webpack_require__(/*! ./controlUtils */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-08 13:43:23\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-09 09:58:27\n * @Description: 往上查找，直到找到kd控件或position为fixed或absolute为止\n */\n\nfunction findKDControl(ele) {\n  var parent = ele;\n  var floatElement;\n  var _loop = function _loop() {\n      if (isFloatElement(parent)) {\n        floatElement = parent;\n      }\n      if (parent.dataset.pageId) {\n        var _getPageIdAndCtrlKey = (0, _controlUtils.getPageIdAndCtrlKey)(parent, parent.dataset.pageId),\n          controlKey = _getPageIdAndCtrlKey.id,\n          pageId = _getPageIdAndCtrlKey.pageId;\n        var controls = (0, _controlUtils.getControls)(pageId);\n        var control = controls.find(function (ctrl) {\n          return ctrl.get('id') === controlKey;\n        }) || (controls === null || controls === void 0 ? void 0 : controls.length) === 1 && controls[0];\n        if (control) return {\n          v: parent\n        };\n      }\n      parent = parent.parentElement;\n    },\n    _ret;\n  while (parent) {\n    _ret = _loop();\n    if (_ret) return _ret.v;\n  }\n  return floatElement || parent;\n}\nfunction isFloatElement(ele) {\n  if (!(0, _pageUtils.isElement)(ele)) return false;\n  var position = window.getComputedStyle(ele).position;\n  return position === 'fixed' || position === 'absolute';\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/findKDControl.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/findViewWithPoint.js":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/utils/findViewWithPoint.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = findViewWithPoint;\nexports.findPanelWithPoint = findPanelWithPoint;\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-03 13:46:21\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-12-12 11:03:20\n * @Description: 基于client坐标找到view视图\n */\n\nfunction findViewWithPoint(clientX, clientY) {\n  var ele = document.elementFromPoint(clientX, clientY);\n  while (ele && !ele.dataset.view) {\n    ele = ele.parentElement;\n  }\n  if (ele && ele.dataset.view) {\n    return ele.dataset.view;\n  }\n}\nfunction findPanelWithPoint(clientX, clientY) {\n  var ele = document.elementFromPoint(clientX, clientY);\n  while (ele && !ele.dataset.panelId) {\n    ele = ele.parentElement;\n  }\n  if (ele && ele.dataset.panelId) {\n    return ele.dataset.panelId;\n  }\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/findViewWithPoint.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/getCurrentTimeString.js":
/*!******************************************************************!*\
  !*** ./src/service/common/sysinfo/utils/getCurrentTimeString.js ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = getCurrentTimeString;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-14 13:51:43\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-14 14:00:14\n * @Description: 获取当前时间 mm:ss\n */\n\nfunction getCurrentTimeString(isIncludeHour) {\n  var now = new Date();\n  if (isIncludeHour) {\n    return \"\".concat(now.getHours(), \":\").concat(now.getMinutes(), \":\").concat(now.getSeconds(), \".\").concat(now.getMilliseconds());\n  } else {\n    return \"\".concat(now.getMinutes(), \":\").concat(now.getSeconds());\n  }\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/getCurrentTimeString.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/getNewViewParam.js":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/utils/getNewViewParam.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = getNewViewParam;\n__webpack_require__(/*! core-js/modules/es.array.last-index-of.js */ \"../../node_modules/core-js/modules/es.array.last-index-of.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\nvar _uuid = __webpack_require__(/*! ./uuid */ \"./src/service/common/sysinfo/utils/uuid.js\");\nfunction getNewViewParam() {\n  var id = (0, _uuid.createViewId)();\n  var incViewId = parseInt(id.substr(id.lastIndexOf('_') + 1));\n  var left = incViewId % 10 * 5;\n  var top = incViewId % 10 * 5;\n  return {\n    id: id,\n    left: left,\n    top: top\n  };\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/getNewViewParam.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/jsonStringify.js":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/utils/jsonStringify.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = jsonStringify;\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _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); }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-21 10:57:16\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-21 10:59:22\n * @Description: 支持循环引用的对象\n */\n/**\n * 支持递归调用的json格式\n * @param {*} data\n * @param space 指定缩进用的空白字符串，用于美化输出（pretty-print）\n * @returns\n */\nfunction jsonStringify(data) {\n  var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n  var cache = [];\n  var str = JSON.stringify(data, function (key, value) {\n    if (_typeof(value) === 'object' && value !== null) {\n      if (cache.indexOf(value) !== -1) {\n        return;\n      }\n      cache.push(value);\n    }\n    return value;\n  }, space);\n  cache = null; // 垃圾回收\n  return str;\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/jsonStringify.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/pageUtils.js":
/*!*******************************************************!*\
  !*** ./src/service/common/sysinfo/utils/pageUtils.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.getAllPageObject = getAllPageObject;\nexports.getCaption = getCaption;\nexports.getPageObject = getPageObject;\nexports.isElement = void 0;\nexports.transformToTree = transformToTree;\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.reverse.js */ \"../../node_modules/core-js/modules/es.array.reverse.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _global = _interopRequireWildcard(__webpack_require__(/*! @/global */ \"./src/global/index.js\"));\nvar _controlUtils = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-24 17:08:25\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-16 10:49:43\n * @Description: page存取相关函数\n */ // import {} from '@/model/appModelFunction'\nfunction getAllPageObject() {\n  if (!_global[\"default\"][_global.STORE]) {\n    return [];\n  }\n  var state = (0, _global.getGlobalState)();\n  var forms = state.get('forms');\n  var pageList = [];\n  forms.mapEntries(function (_ref) {\n    var _ref2 = _slicedToArray(_ref, 2),\n      key = _ref2[0],\n      value = _ref2[1];\n    pageList.push({\n      pageId: key,\n      data: value\n    });\n  });\n  return pageList;\n}\nfunction transformToTree(allPage) {\n  if (!_global[\"default\"][_global.STORE]) {\n    return [];\n  }\n  var state = (0, _global.getGlobalState)();\n  var forms = state.get('forms');\n  var pageList = [];\n  var wait = [];\n  forms.mapEntries(function (_ref3) {\n    var _ref4 = _slicedToArray(_ref3, 2),\n      key = _ref4[0],\n      value = _ref4[1];\n    if (value.has('config')) {\n      var parentId = value.getIn(['config', 'parentPageId']);\n      var lang = (0, _controlUtils.getLanguage)();\n      var text = value.getIn(['config', 'caption', lang]) || key;\n      if (!parentId || !forms.has(parentId)) {\n        // 设计器的parentId有时候不为空，但不存在\n        pageList.unshift({\n          id: key,\n          parentId: parentId,\n          text: text,\n          level: 0\n        });\n      } else {\n        var parentIndex = pageList.findIndex(function (item) {\n          return item.id === parentId;\n        });\n        if (parentIndex > -1) {\n          var parentLevel = pageList[parentIndex].level;\n          pageList.splice(parentIndex + 1, 0, {\n            id: key,\n            parentId: parentId,\n            text: text,\n            level: parentLevel + 1\n          });\n        } else {\n          wait.push({\n            id: key,\n            parentId: parentId,\n            text: text\n          });\n        }\n      }\n    }\n  });\n  while (wait.length > 0) {\n    var deleteArray = [];\n    var _loop = function _loop(index) {\n      var parentIndex = pageList.findIndex(function (item) {\n        return item.id === wait[index].parentId;\n      });\n      if (parentIndex > -1) {\n        var parentLevel = pageList[parentIndex].level;\n        deleteArray.push(index);\n        var _wait$index = wait[index],\n          key = _wait$index.id,\n          parentId = _wait$index.parentId,\n          text = _wait$index.text;\n        pageList.splice(parentIndex + 1, 0, {\n          id: key,\n          parentId: parentId,\n          text: text,\n          level: parentLevel + 1\n        });\n      }\n    };\n    for (var index = 0; index <= wait.length - 1; index++) {\n      _loop(index);\n    }\n    deleteArray.reverse().forEach(function (index) {\n      wait.splice(index, 1);\n    });\n  }\n  return pageList;\n}\nfunction getPageObject(pageId) {\n  if (!_global[\"default\"][_global.STORE]) {\n    return [];\n  }\n  var state = (0, _global.getGlobalState)();\n  return state.getIn(['forms', pageId]);\n}\nfunction getCaption(config) {\n  var caption = config === null || config === void 0 ? void 0 : config.get('caption');\n  var lang = (0, _controlUtils.getLanguage)();\n  var name = caption === null || caption === void 0 ? void 0 : caption.get(lang);\n  // if (!name) {\n\n  // }\n  return name;\n}\nvar isElement = exports.isElement = function isElement(obj) {\n  return obj && _typeof(obj) === 'object' && obj.nodeType === 1 && typeof obj.nodeName === 'string';\n};\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/pageUtils.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/sysUtils.js":
/*!******************************************************!*\
  !*** ./src/service/common/sysinfo/utils/sysUtils.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.converSize = converSize;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\nfunction converSize(limit) {\n  if (isNaN(limit)) return;\n  var size = '';\n  if (limit < 1 * 1024) {\n    // 如果小于1KB转化成B\n    size = limit.toFixed(2) + 'B';\n  } else if (limit < 1 * 1024 * 1024) {\n    // 如果小于1MB转化成KB\n    size = (limit / 1024).toFixed(2) + 'KB';\n  } else if (limit < 1 * 1024 * 1024 * 1024) {\n    // 如果小于1GB转化成MB\n    size = (limit / (1024 * 1024)).toFixed(2) + 'MB';\n  } else if (limit > 1 * 1024 * 1024 * 1024) {\n    // 其他转化成GB\n    size = (limit / (1024 * 1024 * 1024)).toFixed(2) + 'GB';\n  } else {\n    size = limit;\n  }\n  var sizestr = size + '';\n  var len = sizestr.indexOf('\\.');\n  var dec = sizestr.substr(len + 1, 2);\n  if (dec === '00') {\n    // 当小数点后为00时 去掉小数部分\n    return sizestr.substring(0, len) + sizestr.substr(len + 3, 2);\n  }\n  return sizestr;\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/sysUtils.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/uuid.js":
/*!**************************************************!*\
  !*** ./src/service/common/sysinfo/utils/uuid.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.createPanelId = createPanelId;\nexports.createViewId = createViewId;\nvar viewId = 0;\nfunction createViewId() {\n  return \"__$$__view_\".concat(viewId++);\n}\nvar panelId = 0;\nfunction createPanelId() {\n  return \"__$$__panel_\".concat(panelId++);\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/uuid.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/utils/viewUtils.js":
/*!*******************************************************!*\
  !*** ./src/service/common/sysinfo/utils/viewUtils.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.viewIsOnlyOneChild = exports.getViews = exports.getPanelsWithViewId = exports.getPanels = exports.getPanel = exports.getAttachViewWithPanelId = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-04 10:42:51\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-21 10:03:50\n * @Description: view/panel相关工具类函数\n */\n\nvar getViews = exports.getViews = function getViews() {\n  return function (state) {\n    return state.views || [];\n  };\n};\nvar getPanels = exports.getPanels = function getPanels() {\n  return function (state) {\n    return state.panels || [];\n  };\n};\nvar getAttachViewWithPanelId = exports.getAttachViewWithPanelId = function getAttachViewWithPanelId(panelId) {\n  return function (state) {\n    var panel = state.panels.find(function (panel) {\n      return panel.id === panelId;\n    });\n    if (panel) {\n      return state.views.find(function (view) {\n        return view.id === panel.attachViewId;\n      });\n    }\n  };\n};\nvar getPanelsWithViewId = exports.getPanelsWithViewId = function getPanelsWithViewId(viewId) {\n  return function (state) {\n    return state.panels.filter(function (panel) {\n      return panel.attachViewId === viewId;\n    });\n  };\n};\nvar getPanel = exports.getPanel = function getPanel(panelId) {\n  return function (state) {\n    return state.panels.find(function (panel) {\n      return panel.id === panelId;\n    });\n  };\n};\n/**\n * panelId的父view只有一个子元素\n * @param {*} panelId\n */\nvar viewIsOnlyOneChild = exports.viewIsOnlyOneChild = function viewIsOnlyOneChild(panelId) {\n  return function (state) {\n    var viewId = getAttachViewWithPanelId(panelId)(state);\n    var panels = getPanelsWithViewId(viewId);\n    return panels.length === 1;\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/utils/viewUtils.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Details.js":
/*!***************************************************!*\
  !*** ./src/service/common/sysinfo/web/Details.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.Summary = Summary;\nexports[\"default\"] = Details;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Details = _interopRequireDefault(__webpack_require__(/*! ./Details.less */ \"./src/service/common/sysinfo/web/Details.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2023-06-06 09:51:48\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-06-07 13:41:24\n * @Description: 类details元素，解决ie兼容问题\n */\n\nfunction Details(_ref) {\n  var open = _ref.open,\n    onClick = _ref.onClick,\n    children = _ref.children,\n    renderSummary = _ref.renderSummary,\n    summaryStyle = _ref.summaryStyle;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Details[\"default\"].details,\n    open: open\n  }, /*#__PURE__*/_react[\"default\"].createElement(Summary, {\n    onClick: onClick,\n    summaryStyle: summaryStyle\n  }, renderSummary && renderSummary(open)), children);\n}\nfunction Summary(_ref2) {\n  var children = _ref2.children,\n    onClick = _ref2.onClick,\n    summaryStyle = _ref2.summaryStyle;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Details[\"default\"].summary,\n    onClick: onClick,\n    style: summaryStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: _Details[\"default\"].icon\n  }), children);\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Details.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/FooterView.js":
/*!******************************************************!*\
  !*** ./src/service/common/sysinfo/web/FooterView.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.LookupElement = LookupElement;\nexports[\"default\"] = FooterView;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.date.now.js */ \"../../node_modules/core-js/modules/es.date.now.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.number.parse-float.js */ \"../../node_modules/core-js/modules/es.number.parse-float.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.values.js */ \"../../node_modules/core-js/modules/es.object.values.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.split.js */ \"../../node_modules/core-js/modules/es.string.split.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"../../node_modules/core-js/modules/es.string.trim.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _findKDControl = _interopRequireDefault(__webpack_require__(/*! ../utils/findKDControl */ \"./src/service/common/sysinfo/utils/findKDControl.js\"));\nvar _pageUtils = __webpack_require__(/*! ../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _FooterView = _interopRequireDefault(__webpack_require__(/*! ./FooterView.less */ \"./src/service/common/sysinfo/web/FooterView.less\"));\nvar _const = __webpack_require__(/*! ../const */ \"./src/service/common/sysinfo/const.js\");\nvar _converRGBAToHex = _interopRequireDefault(__webpack_require__(/*! ../utils/converRGBAToHex */ \"./src/service/common/sysinfo/utils/converRGBAToHex.js\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _keyCode = __webpack_require__(/*! @/constant/keyCode */ \"./src/constant/keyCode.js\");\nvar _controlUtils = __webpack_require__(/*! ../utils/controlUtils */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nvar _xssFilters = _interopRequireDefault(__webpack_require__(/*! @/util/xssFilters.js */ \"./src/util/xssFilters.js\"));\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher.js */ \"./src/model/GlobalDataCacher.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _controlUtils2 = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 10:23:21\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-10 15:51:33\n * @Description: 底部状态栏视图\n */\nfunction FooterView(_ref) {\n  var views = _ref.views,\n    dispatch = _ref.dispatch;\n  var version = (0, _react.useMemo)(function () {\n    var node = document.body.querySelector('script');\n    var text = '';\n    while (node) {\n      var _version = parseVersionNode(node);\n      if (_version) {\n        text = _version;\n        break;\n      }\n      node = node.nextSibling;\n    }\n    if (!text) {\n      var _node = document.body.nextSibling; // 外网版本注释会放在body外面\n      text = parseVersionNode(_node);\n    }\n    return text;\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FooterView[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(ViewSelector, {\n    views: views,\n    dispatch: dispatch\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FooterView[\"default\"].version\n  }, version), /*#__PURE__*/_react[\"default\"].createElement(LookupElement, {\n    dispatch: dispatch\n  }));\n}\nfunction parseVersionNode(node) {\n  if (node && node.nodeType === 8) {\n    var nodeValue = node.nodeValue;\n    var index = nodeValue.indexOf(':');\n    if (index !== -1) {\n      var dateString = node.nodeValue.substr(index + 1);\n      // if (!Number.isNaN(Date.parse(dateString))) {\n      if (dateString.trim().split(/[-:\\s+]/).length >= 6) {\n        return node.nodeValue;\n      }\n      // }\n    }\n  }\n  return '';\n}\nvar width = '50%';\nvar height = '50%';\nvar SysViews = [{\n  id: _const.VIEW_PAGE_LIST_PANEL,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0041'),\n  panelType: 'PageListPanel',\n  docked: 'right_top',\n  width: width,\n  height: height\n}, {\n  id: _const.VIEW_CONTROL_VIEW,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0042'),\n  panelType: 'ConsolePanel',\n  docked: 'left_top',\n  width: width,\n  height: height\n}, {\n  id: _const.VIEW_NETWORK_VIEW,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0043'),\n  panelType: [['NetWorkPanel', (0, _intlApi.getLangMsg)('SysInfo.key0043')], ['ResourcePanel', (0, _intlApi.getLangMsg)('SysInfo.key0044')]],\n  docked: 'left_bottom',\n  width: width,\n  height: height\n}, {\n  id: _const.VIEW_DIRECTIVE_VIEW,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0045'),\n  panelType: 'DirectivePanel',\n  docked: 'right_bottom',\n  width: width,\n  height: height\n}, {\n  id: _const.VIEW_PERFORMANCE_VIEW,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0046'),\n  panelType: [['PerformancePanel', (0, _intlApi.getLangMsg)('SysInfo.key0047')], ['DirectivePerformancePanel', (0, _intlApi.getLangMsg)('SysInfo.key0048')]],\n  docked: 'right_bottom',\n  width: width,\n  height: height\n}, {\n  id: _const.VIEW_HTTP_MONITOR_VIEW,\n  name: (0, _intlApi.getLangMsg)('SysInfo.key0049'),\n  panelType: 'HttpMonitorPanel',\n  docked: 'right_bottom',\n  width: width,\n  height: height\n}];\n// 视图选择\nfunction ViewSelector(_ref2) {\n  var _comboViews$;\n  var views = _ref2.views,\n    dispatch = _ref2.dispatch;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    isExpand = _useState2[0],\n    setExpand = _useState2[1];\n  var ele$ = (0, _react.useRef)();\n  var time$ = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    var onMouseDown = function onMouseDown(event) {\n      var _ele$$current;\n      if (!((_ele$$current = ele$.current) !== null && _ele$$current !== void 0 && _ele$$current.contains(event.target))) {\n        time$.current = setTimeout(function () {\n          setExpand(false);\n        });\n      }\n    };\n    document.addEventListener('mousedown', onMouseDown, true);\n    return function () {\n      return document.removeEventListener('mouseup', onMouseDown, true);\n    };\n  }, []);\n  var onClick = function onClick(event) {\n    setExpand(false);\n    var id = event.target.dataset.id;\n    var sysView = SysViews.find(function (view) {\n      return view.id === id;\n    });\n    var existView = views.find(function (view) {\n      return view.id === id;\n    });\n    if (sysView && !existView) {\n      var panelItems = [{\n        type: sysView.panelType,\n        id: sysView.panelType,\n        name: sysView.name,\n        data: {}\n      }];\n      if (Array.isArray(sysView.panelType)) {\n        panelItems = sysView.panelType.map(function (_ref3) {\n          var _ref4 = _slicedToArray(_ref3, 2),\n            type = _ref4[0],\n            name = _ref4[1];\n          return {\n            type: type,\n            id: type,\n            name: name,\n            data: {}\n          };\n        });\n      }\n      dispatch({\n        action: _const.ACTION_SHOW_VIEW,\n        payload: {\n          id: id,\n          name: sysView.name,\n          layout: {\n            docked: sysView.docked,\n            width: sysView.width,\n            height: sysView.height\n          },\n          panelItems: panelItems // : [{ type: sysView.panelType, id: sysView.panelType, name: sysView.name, data: {} }]\n        }\n      });\n    } else {\n      dispatch({\n        action: _const.ACTION_BRING_FRONT,\n        payload: id\n      });\n    }\n  };\n  var comboViews = SysViews.concat(views.filter(function (view) {\n    return view.id.startsWith('__');\n  }));\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FooterView[\"default\"]['selector-title'],\n    onClick: function onClick() {\n      clearTimeout(time$.current);\n      setExpand(true);\n    }\n  }, (_comboViews$ = comboViews[0]) === null || _comboViews$ === void 0 ? void 0 : _comboViews$.name), isExpand && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    ref: ele$,\n    className: _FooterView[\"default\"].selector,\n    onClick: onClick\n  }, comboViews.map(function (view) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      \"data-id\": view.id,\n      key: view.id\n    }, view.name);\n  })));\n}\nfunction LookupElement(_ref5) {\n  var dispatch = _ref5.dispatch,\n    className = _ref5.className,\n    disableClick = _ref5.disableClick,\n    setMinView = _ref5.setMinView;\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isLookup = _useState4[0],\n    setLookup = _useState4[1];\n  var activeElement$ = (0, _react.useRef)();\n  var lookupEle$ = (0, _react.useRef)();\n  var maskDiv$ = (0, _react.useRef)();\n  var subMaskDiv$ = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    var observer;\n    if (isLookup) {\n      document.addEventListener('mousemove', onMouseMove, true);\n      document.addEventListener('mousedown', onMouseDown, true);\n      var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;\n      observer = new MutationObserver(function (mutations) {\n        mutations.forEach(function (mutation) {\n          if (mutation.type === 'attributes') {\n            var screenWidth = document.body.clientWidth;\n            var screenHeight = document.body.clientHeight;\n            var left = subMaskDiv$.current.offsetLeft;\n            var top = subMaskDiv$.current.offsetTop;\n            var _height = subMaskDiv$.current.offsetHeight;\n            var _width = subMaskDiv$.current.offsetWidth;\n            var overWidth = left + _width > screenWidth;\n            var overHeight = top + _height > screenHeight;\n            if (overHeight) {\n              var maskTop = maskDiv$.current.offsetTop;\n              if (maskTop > _height) {\n                top = maskTop - _height;\n              } else {\n                top = top - (_height - (screenHeight - top)) - 10;\n              }\n            }\n            if (overWidth) {\n              left = left - (_width - (screenWidth - left)) - 10;\n            }\n            if (overHeight || overWidth) {\n              subMaskDiv$.current.style.cssText = subMaskDiv$.current.style.cssText + \" z-index:9999;opacity:1;top:\".concat(top, \"px;left:\").concat(left, \"px;\");\n            }\n          }\n        });\n      });\n      observer.observe(subMaskDiv$.current, {\n        attributes: true\n      });\n    }\n    return function () {\n      document.removeEventListener('mousemove', onMouseMove, true);\n      document.removeEventListener('mousedown', onMouseDown, true);\n      observer && observer.disconnect();\n    };\n  }, [isLookup]);\n  (0, _react.useEffect)(function () {\n    var interval;\n    if (activeElement$.current) {\n      interval = setInterval(function () {\n        if (activeElement$.current !== document.activeElement) {\n          var kdEle = (0, _findKDControl[\"default\"])(document.activeElement);\n          if (kdEle) {\n            var _lookupEle$$current;\n            activeElement$.current = null;\n            clearInterval(interval);\n            maskDiv$.current.style.opacity = 0;\n            lookupEle$.current = kdEle;\n            setLookup(false);\n            dispatch([{\n              action: _const.ACTION_HIDE_MAIN_VIEW,\n              payload: false\n            }, {\n              action: _const.ACTION_SHOW_VIEW,\n              payload: {\n                id: _const.VIEW_LOOKUP_VIEW,\n                name: (0, _intlApi.getLangMsg)('SysInfo.key0058'),\n                layout: {\n                  docked: 'left_top',\n                  isMax: true\n                },\n                panelItems: [{\n                  type: 'CodeMirrorPanel',\n                  id: _const.VIEW_LOOKUP_VIEW,\n                  name: (0, _intlApi.getLangMsg)('SysInfo.key0058'),\n                  data: ((_lookupEle$$current = lookupEle$.current) === null || _lookupEle$$current === void 0 ? void 0 : _lookupEle$$current.outerHTML) || ''\n                }]\n              }\n            }]);\n          }\n        }\n      }, 200);\n    } else {\n      clearInterval(interval);\n    }\n    return function () {\n      return clearInterval(interval);\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    document.addEventListener('keydown', onKeyDown);\n    return function () {\n      document.removeEventListener('keydown', onKeyDown);\n    };\n  }, []);\n  var onKeyDown = function onKeyDown(e) {\n    if (e.keyCode === _keyCode.KEYS.ESC) {\n      maskDiv$.current.style.opacity = 0;\n      maskDiv$.current.style.zIndex = -9999;\n      subMaskDiv$.current.style.opacity = 0;\n      subMaskDiv$.current.style.zIndex = -9999;\n      e.stopPropagation();\n      e.preventDefault();\n      setLookup(false);\n      dispatch([{\n        action: _const.ACTION_HIDE_MAIN_VIEW,\n        payload: false\n      }]);\n    }\n  };\n  var onMouseMove = (0, _react.useCallback)(function (event) {\n    if (isLookup) {\n      maskDiv$.current.style.zIndex = -9999;\n      var ele = document.elementFromPoint(event.clientX, event.clientY);\n      maskDiv$.current.style.zIndex = 9999;\n      var kdEle = (0, _findKDControl[\"default\"])(ele);\n      if (kdEle && (0, _pageUtils.isElement)(kdEle)) {\n        lookupEle$.current = kdEle;\n        var _kdEle$getBoundingCli = kdEle.getBoundingClientRect(),\n          left = _kdEle$getBoundingCli.left,\n          top = _kdEle$getBoundingCli.top,\n          _width2 = _kdEle$getBoundingCli.width,\n          _height2 = _kdEle$getBoundingCli.height;\n        var _document$defaultView = document.defaultView.getComputedStyle(kdEle),\n          marginLeft = _document$defaultView.marginLeft,\n          marginRight = _document$defaultView.marginRight,\n          marginTop = _document$defaultView.marginTop,\n          marginBottom = _document$defaultView.marginBottom,\n          padding = _document$defaultView.padding;\n        marginLeft = Number.parseFloat(marginLeft) || 0;\n        marginRight = Number.parseFloat(marginRight) || 0;\n        marginTop = Number.parseFloat(marginTop) || 0;\n        marginBottom = Number.parseFloat(marginBottom) || 0;\n        maskDiv$.current.style.cssText = \" z-index:9999;opacity:0.5;top:\".concat(top - marginTop, \"px;left:\").concat(left - marginLeft, \"px;width:\").concat(_width2 + marginLeft + marginRight, \"px;height:\").concat(_height2 + marginTop + marginBottom, \"px;border-left:\").concat(marginLeft, \"px solid #FF854D;border-right:\").concat(marginRight, \"px solid #FF854D;border-top:\").concat(marginTop, \"px solid #FF854D;border-bottom:\").concat(marginBottom, \"px solid #FF854D;padding:\").concat(padding);\n        // console.log(` z-index:9999;opacity:0.5;top:${top - marginTop}px;left:${left - marginLeft}px;width:${width + marginLeft + marginRight}px;height:${height + marginTop + marginBottom}px;border-left:${marginLeft}px;border-right:${marginRight}px;border-top:${marginTop}px;border-bottom:${marginBottom}px;padding:${padding}`)\n        document.body.appendChild(maskDiv$.current);\n        var subMaskTop = top + _height2 + 3;\n        var subMaskLeft = left;\n        var screenWidth = document.body.clientWidth;\n        var screenHeight = document.body.clientHeight;\n        if (subMaskTop + 50 > screenHeight) {\n          subMaskTop = screenHeight - 50;\n        }\n        if (subMaskLeft < 0) {\n          subMaskLeft = 0;\n        } else if (subMaskLeft + 200 > screenWidth) {\n          subMaskLeft = screenWidth - 200;\n        }\n        subMaskDiv$.current.style.cssText = subMaskDiv$.current.style.cssText + \" z-index:9999;opacity:1;top:\".concat(subMaskTop, \"px;left:\").concat(subMaskLeft, \"px;\");\n        document.body.appendChild(subMaskDiv$.current);\n        subMaskDiv$.current.innerHTML = createSubMaskHtml(kdEle, {\n          left: left,\n          top: top,\n          width: _width2,\n          height: _height2\n        });\n      }\n    }\n  }, [isLookup]);\n  var onMouseDown = (0, _react.useCallback)(function (event) {\n    activeElement$.current = null;\n    if (isLookup) {\n      var _lookupEle$$current2, _lookupEle$$current3;\n      maskDiv$.current.style.opacity = 0;\n      maskDiv$.current.style.zIndex = -9999;\n      subMaskDiv$.current.style.opacity = 0;\n      subMaskDiv$.current.style.zIndex = -9999;\n      event.stopPropagation();\n      event.preventDefault();\n      setLookup(false);\n      var _pageId = (_lookupEle$$current2 = lookupEle$.current) === null || _lookupEle$$current2 === void 0 || (_lookupEle$$current2 = _lookupEle$$current2.dataset) === null || _lookupEle$$current2 === void 0 ? void 0 : _lookupEle$$current2.pageId;\n      var panelItems = [{\n        type: 'CodeMirrorPanel',\n        id: _const.VIEW_LOOKUP_VIEW,\n        name: (0, _intlApi.getLangMsg)('SysInfo.key0050'),\n        data: ((_lookupEle$$current3 = lookupEle$.current) === null || _lookupEle$$current3 === void 0 ? void 0 : _lookupEle$$current3.outerHTML) || ''\n      }, {\n        type: 'ElementPanel',\n        id: 'ElementPanel',\n        name: (0, _intlApi.getLangMsg)('SysInfo.key0051'),\n        data: lookupEle$.current\n      }];\n      if (_pageId) {\n        var _getPageIdAndCtrlKey = (0, _controlUtils.getPageIdAndCtrlKey)(lookupEle$.current, _pageId),\n          id = _getPageIdAndCtrlKey.id,\n          pageId = _getPageIdAndCtrlKey.pageId;\n        panelItems.push({\n          type: 'ControlDetailPanel',\n          id: 'ControlDetailPanel',\n          name: (0, _intlApi.getLangMsg)('SysInfo.key0052'),\n          data: {\n            pageId: pageId,\n            ctrlKey: id\n          }\n        });\n        var pageObject = (0, _pageUtils.getPageObject)(pageId);\n        if (pageObject) {\n          var config = pageObject.get('config');\n          var name = (0, _pageUtils.getCaption)(config);\n          var meta = pageObject.get('meta');\n          var pageDom = document.getElementById(pageId);\n          var domString = pageDom ? pageDom.outerHTML : '';\n          var data = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('data');\n          var pageData = data !== null && data !== void 0 && data.size ? data : '';\n          var immData = (0, _memoryCacher.getPageData)(pageId, []);\n          if (immData) {\n            immData = immData[\"delete\"]('__pagemodel__');\n          }\n          panelItems.unshift({\n            type: 'PageDetailPanel',\n            id: 'lookup-analyst',\n            formName: name,\n            name: (0, _intlApi.getLangMsg)('SysInfo.key0053'),\n            data: pageId\n          });\n          panelItems.unshift({\n            type: 'CodeMirrorPanel',\n            id: 'lookup-data',\n            formName: name,\n            name: (0, _intlApi.getLangMsg)('SysInfo.key0126'),\n            data: pageData\n          });\n          panelItems.unshift({\n            type: 'CodeMirrorPanel',\n            id: 'lookup-Element',\n            formName: name,\n            name: (0, _intlApi.getLangMsg)('SysInfo.key0054'),\n            data: domString\n          });\n          panelItems.unshift({\n            type: 'CodeMirrorPanel',\n            id: 'loopup-config',\n            formName: name,\n            name: (0, _intlApi.getLangMsg)('SysInfo.key0055'),\n            data: config\n          });\n          panelItems.unshift({\n            type: 'CodeMirrorPanel',\n            id: 'lookup-meta',\n            formName: name,\n            name: (0, _intlApi.getLangMsg)('SysInfo.key0056'),\n            data: meta\n          });\n          if (immData) {\n            var memoCacher = immData.toJS();\n            panelItems.unshift({\n              type: 'JsonPanel',\n              id: 'lookup-cacher',\n              formName: name,\n              name: (0, _intlApi.getLangMsg)('SysInfo.key0057'),\n              data: memoCacher\n            });\n          }\n        }\n      }\n      dispatch([{\n        action: _const.ACTION_HIDE_MAIN_VIEW,\n        payload: false\n      }, {\n        action: _const.ACTION_SHOW_VIEW,\n        payload: {\n          id: _const.LOOKUP_VIEW,\n          name: (0, _intlApi.getLangMsg)('SysInfo.key0058'),\n          layout: {\n            docked: 'left_top',\n            isMax: true\n          },\n          panelItems: panelItems\n        }\n      }]);\n      lookupEle$.current = null;\n    }\n  }, [isLookup]);\n  var onClick = function onClick(event) {\n    if (disableClick && disableClick()) return;\n    (0, _GlobalDataCacher.setData)(_symbolConst.KEY_UI_ACTION, {\n      startTime: Date.now(),\n      tableName: 'analysis_tool',\n      methodName: 'selectElement'\n    });\n    setMinView && setMinView(false);\n    activeElement$.current = document.activeElement;\n    setLookup(true);\n    dispatch({\n      action: _const.ACTION_HIDE_MAIN_VIEW,\n      payload: true\n    });\n  };\n  var onMasClick = function onMasClick(event) {\n    event.stopPropagation();\n  };\n  var loockUpClass = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _FooterView[\"default\"].active, isLookup), _FooterView[\"default\"].lookup, true), _defineProperty({}, className, !!className));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: loockUpClass\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    tabIndex: \"0\",\n    onClick: onClick,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0059'),\n    className: \"kdfont kdfont-xuanze4\"\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FooterView[\"default\"].mask,\n    ref: maskDiv$,\n    onClick: onMasClick,\n    onMouseMove: onMouseMove\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FooterView[\"default\"]['sub-mask'],\n    ref: subMaskDiv$,\n    onClick: onMasClick\n  }));\n}\nfunction createSubMaskHtml(kdEle, _ref6) {\n  var w = _ref6.width,\n    h = _ref6.height;\n  var width = w.toFixed(2);\n  var height = h.toFixed(2);\n  var rows = [];\n  var className = '';\n  if (kdEle.className) {\n    var text = kdEle.className.length > 120 ? kdEle.className.substr(0, 120) + '...' : kdEle.className;\n    className = \"<span style='color:#2626ac;'>div.\".concat(text, \"</span>\");\n  }\n  var tagName = kdEle.tagName.toLowerCase();\n  rows.push(createSubMaskRect(className, width, height));\n  var style = window.getComputedStyle(kdEle);\n  if (tagName === 'span') {\n    var color = (0, _converRGBAToHex[\"default\"])(style.color);\n    rows.push(createSubMaskRow('Color', color));\n  }\n  var backgroundColor = (0, _converRGBAToHex[\"default\"])(style.backgroundColor);\n  if (backgroundColor !== '#ffffff' && backgroundColor !== 'transparent') {\n    rows.push(createSubMaskRow('Background', backgroundColor));\n  }\n  var margin = style.margin;\n  if (margin !== '0px' && margin) {\n    rows.push(createSubMaskRow('Margin', margin));\n  } else {\n    var marginBottom = style.marginBottom,\n      marginLeft = style.marginLeft,\n      marginRight = style.marginRight,\n      marginTop = style.marginTop;\n    margin = createChained(marginTop, marginRight, marginBottom, marginLeft);\n    margin && rows.push(createSubMaskRow('Margin', margin));\n  }\n  var padding = style.padding;\n  if (padding !== '0px' && padding) {\n    rows.push(createSubMaskRow('Padding', padding));\n  } else {\n    var paddingBottom = style.paddingBottom,\n      paddingLeft = style.paddingLeft,\n      paddingRight = style.paddingRight,\n      paddingTop = style.paddingTop;\n    padding = createChained(paddingTop, paddingRight, paddingBottom, paddingLeft);\n    padding && rows.push(createSubMaskRow('Margin', padding));\n  }\n  if (!kdEle.dataset.pageId) return rows.join('');\n  rows.push(splitline((0, _intlApi.getLangMsg)('SysInfo.key0060')));\n  var _getPageIdAndCtrlKey2 = (0, _controlUtils.getPageIdAndCtrlKey)(kdEle, kdEle.dataset.pageId),\n    controlKey = _getPageIdAndCtrlKey2.id,\n    pageId = _getPageIdAndCtrlKey2.pageId;\n  var controls = (0, _controlUtils.getControls)(pageId);\n  var control = controls.find(function (ctrl) {\n    return ctrl.get('id') === controlKey;\n  }) || (controls === null || controls === void 0 ? void 0 : controls.length) === 1 && controls[0];\n  if (control) {\n    var type = control.get('type');\n    var lang = (0, _controlUtils2.getLanguage)();\n    var _name = control.getIn(['text', lang]);\n    var id = control.get('id');\n    var model = (0, _controlUtils.getModel)(pageId, id);\n    var gridtype = model.meta.get('gridtype') || model.meta.get('FieldType');\n    if (type === 'fieldcon' || type === 'cardfield') {\n      var fieldType = control.get('item').get('type');\n      _name = control.getIn(['caption', lang]);\n      type = \"\".concat(type, \"(\").concat(fieldType, \")\");\n    }\n    _name = _name || control.get('id');\n    rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0061'), (0, _xssFilters[\"default\"])(_name)));\n    rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0062'), id));\n    rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0063'), gridtype ? \"\".concat(type, \"(\").concat(gridtype, \")\") : type));\n  }\n  var pageInfo = (0, _controlUtils.getPageInfo)(pageId);\n  if (!pageInfo) return rows.join('');\n  rows.push(splitline((0, _intlApi.getLangMsg)('SysInfo.key0064')));\n  var status = pageInfo.status,\n    formId = pageInfo.formId,\n    name = pageInfo.name,\n    billFormId = pageInfo.billFormId;\n  rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0065'), Object.values(status)[0], Object.keys(status)[0]));\n  rows.push(createSubMaskRow('PageId', pageId));\n  rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0061'), (0, _xssFilters[\"default\"])(name)));\n  rows.push(createSubMaskRow((0, _intlApi.getLangMsg)('SysInfo.key0062'), billFormId ? \"\".concat(formId, \"(\").concat(billFormId, \")\") : formId));\n  return rows.join('');\n}\nfunction createChained(t, r, b, l) {\n  if (parseInt(t) || parseInt(r) || parseInt(b) || parseInt(l)) {\n    return \"\".concat(t, \" \").concat(r, \" \").concat(b, \" \").concat(l);\n  }\n}\nfunction createSubMaskRow(key, value, type) {\n  return \"<div class=\".concat(_FooterView[\"default\"]['sub-mask-row'], \">\\n  <div class=\").concat(_FooterView[\"default\"].first, \">\").concat(key, \"</div>\\n  <div class=\\\"\").concat(_FooterView[\"default\"].last + ' ' + _FooterView[\"default\"][type], \"\\\">\").concat(value, \"</div>\\n  </div>\\n  \");\n}\nfunction createSubMaskRect(key, width, height) {\n  return \"<div class=\".concat(_FooterView[\"default\"]['sub-mask-row'], \">\\n    <div class=\").concat(_FooterView[\"default\"].first, \">\").concat(key, \"</div>\\n    <div class=\\\"\").concat(_FooterView[\"default\"].last, \"\\\" style='width:auto'>\\n      <span class=\").concat(_FooterView[\"default\"].width, \">\").concat(width, \"</span>\\n      <span class=\\\"\").concat(_FooterView[\"default\"].icon + ' ' + 'kdfont kdfont-guanbi8', \"\\\"></span>\\n      <span class=\").concat(_FooterView[\"default\"].height, \">\").concat(height, \"</span>\\n     </div>\\n    </div>\\n    \");\n}\nfunction splitline(text) {\n  return \"<span class=\".concat(_FooterView[\"default\"].splitline, \">\\n  <span class=\").concat(_FooterView[\"default\"].desc, \">\").concat(text, \"</span>\\n  <span class=\").concat(_FooterView[\"default\"]['dashed-line'], \"></span>\\n</span>\\n  \");\n}\n// function htmlToElem (html) {\n//   const temp = document.createElement('template')\n//   html = html.trim() // 不返回空文本节点\n//   temp.innerHTML = html\n//   return temp.content.firstChild\n// }\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/FooterView.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/LayoutPanel.js":
/*!*******************************************************!*\
  !*** ./src/service/common/sysinfo/web/LayoutPanel.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _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); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _LayoutPanel = _interopRequireDefault(__webpack_require__(/*! ./LayoutPanel.less */ \"./src/service/common/sysinfo/web/LayoutPanel.less\"));\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _const = __webpack_require__(/*! ../const */ \"./src/service/common/sysinfo/const.js\");\nvar _DragBall = _interopRequireDefault(__webpack_require__(/*! ./panel/DragBall */ \"./src/service/common/sysinfo/web/panel/DragBall.js\"));\nvar _findViewWithPoint = _interopRequireWildcard(__webpack_require__(/*! ../utils/findViewWithPoint */ \"./src/service/common/sysinfo/utils/findViewWithPoint.js\"));\nvar _uuid = __webpack_require__(/*! ../utils/uuid */ \"./src/service/common/sysinfo/utils/uuid.js\");\nvar _viewUtils = __webpack_require__(/*! ../utils/viewUtils */ \"./src/service/common/sysinfo/utils/viewUtils.js\");\nvar _panelFactory = _interopRequireDefault(__webpack_require__(/*! ./panelFactory */ \"./src/service/common/sysinfo/web/panelFactory.js\"));\nvar _LazyRender = _interopRequireDefault(__webpack_require__(/*! ./LazyRender */ \"./src/service/common/sysinfo/web/LazyRender.js\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 09:51:46\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-07 10:10:11\n * @Description: 面板容器代理，每个面板一个代理，，负责给子面板定位到视图位置\n */\nfunction LayoutPanel(_ref) {\n  var panel = _ref.panel,\n    isVisible = _ref.isVisible;\n  var _panel$type = panel.type,\n    type = _panel$type === void 0 ? panel.id : _panel$type,\n    name = panel.name,\n    id = panel.id;\n  var ele$ = (0, _react.useRef)();\n\n  // useEffect(() => {\n  //   const viewElement = document.getElementById(attachViewId + '-container')\n  //   if (viewElement) {\n  //     setViewElement(viewElement)\n  //   }\n  // }, [attachViewId])\n\n  // const onDrop = useCallback((event, { parentEleRect }) => {\n  //   const targetPanelId = findPanelWithPoint(event.clientX, event.clientY)\n  //   if (panelId === targetPanelId) {\n  //     return\n  //   }\n  //   const targetViewId = findViewWithPoint(event.clientX, event.clientY) // 目标视图id\n  //   if (isDisableDrag(targetViewId)) {\n  //     return\n  //   }\n  //   const state = context.getState()\n  //   const sourceView = getAttachViewWithPanelId(panelId)(state)// 源面板id\n  //   const sourcePanels = getPanelsWithViewId(sourceView.id)(state) // 拖拽目标的视图面板数组\n  //   const isDeleteSourceView = sourcePanels.length <= 1\n  //   const delViewAction = {\n  //     action: ACTION_DELETE_VIEW,\n  //     payload: sourceView.id\n  //   }\n  //   if (targetViewId && targetViewId !== 'root') {\n  //     if (targetViewId !== attachViewId) {\n  //       const actions = [{\n  //         action: ACTION_MOVE_PANEL,\n  //         payload: {\n  //           viewId: targetViewId,\n  //           panelId,\n  //           targetPanelId\n\n  //         }\n  //       }]\n  //       if (isDeleteSourceView) {\n  //         actions.push(delViewAction)\n  //       }\n  //       dispatch(actions)\n  //     } else {\n  //       const actions = [{\n  //         action: ACTION_MOVE_PANEL,\n  //         payload: {\n  //           viewId: targetViewId,\n  //           panelId,\n  //           targetPanelId\n\n  //         }\n  //       }]\n\n  //       dispatch(actions)\n  //     }\n  //   } else {\n  //     const viewContainerEle = context.viewContainer.current\n  //     const { left, top, width } = viewContainerEle.getBoundingClientRect()\n  //     const viewHeaderHeight = 48\n  //     let offsetX = parentEleRect.left - left\n  //     let offsetY = parentEleRect.top - viewHeaderHeight - top\n\n  //     if (offsetX < 0) {\n  //       offsetX = 0\n  //     } else if (offsetX + 300 >= width) {\n  //       offsetX = width - 300\n  //     }\n  //     if (offsetY < 0) {\n  //       offsetY = 0\n  //     // } else if (offsetY + 300 >= height) {\n  //     //   offsetY = height - 300\n  //     }\n  //     const viewIsOneChild = sourcePanels.length === 1\n  //     const newViewId = viewIsOneChild ? sourceView.id : createViewId()\n  //     let newViewName = newViewId\n  //     newViewName = getPanel(panelId)(state).name || '未命名视图'\n  //     const actions = [{\n  //       action: ACTION_SHOW_VIEW,\n  //       payload: {\n  //         id: newViewId,\n  //         name: newViewName,\n  //         layout: { docked: 'left_top', left: offsetX, top: offsetY, width: parentEleRect.width, height: parentEleRect.height },\n  //         panelItems: [panelId],\n  //         sourceViewId: sourceView.id// 移入前依赖的viewid\n\n  //       }\n  //     }]\n  //     if (isDeleteSourceView && !viewIsOneChild) {\n  //       actions.push(delViewAction)\n  //     }\n  //     dispatch(actions)\n  //   }\n  // }, [attachViewId, panelId])\n  var Panel = (0, _react.useMemo)(function () {\n    return (0, _panelFactory[\"default\"])(type);\n  }, [id, isVisible, type]);\n  var children = /*#__PURE__*/_react[\"default\"].createElement(Panel, panel);\n  var root = (0, _classnames[\"default\"])(_defineProperty(_defineProperty({}, _LayoutPanel[\"default\"].root, true), _LayoutPanel[\"default\"].visible, isVisible));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: root,\n    ref: ele$,\n    \"data-panel-id\": id,\n    \"data-panel-name\": name\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LayoutPanel[\"default\"]['panel-container']\n  }, /*#__PURE__*/_react[\"default\"].createElement(_LazyRender[\"default\"], {\n    show: disableLazyLoad(id)\n  }, children)));\n}\n// 预制视图不允许拖拽或停靠\nfunction isDisableDrag(panelId) {\n  return [_const.VIEW_CONTROL_VIEW, _const.VIEW_NETWORK_VIEW].includes(panelId);\n}\n/**\n * 禁止功能面板懒加载，因为有些采集数据是不缓存，需要功能面板订阅处理\n * @param {*} panelType\n * @returns\n */\nfunction disableLazyLoad(panelType) {\n  return ['ConsolePanel'].includes(panelType);\n}\nvar _default = exports[\"default\"] = /*#__PURE__*/(0, _react.memo)(LayoutPanel);\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/LayoutPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/LazyRender.js":
/*!******************************************************!*\
  !*** ./src/service/common/sysinfo/web/LazyRender.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = LazyRender;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _resizeObserverPolyfill = _interopRequireDefault(__webpack_require__(/*! resize-observer-polyfill */ \"../../node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js\"));\nvar _LazyRender = _interopRequireDefault(__webpack_require__(/*! ./LazyRender.less */ \"./src/service/common/sysinfo/web/LazyRender.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2023-01-05 14:44:32\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-07 10:02:27\n * @Description: 延迟加载子元素（不可见不加载）\n */\nfunction LazyRender(_ref) {\n  var children = _ref.children,\n    _ref$show = _ref.show,\n    show = _ref$show === void 0 ? false : _ref$show;\n  var _useState = (0, _react.useState)(show),\n    _useState2 = _slicedToArray(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, visible && children, !visible && /*#__PURE__*/_react[\"default\"].createElement(Placeholder, {\n    onShow: setVisible\n  }));\n}\nfunction Placeholder(_ref2) {\n  var onShow = _ref2.onShow;\n  var ele$ = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    var observer = new _resizeObserverPolyfill[\"default\"](function (entries) {\n      var entry = entries[0];\n      var _entry$contentRect = entry.contentRect,\n        width = _entry$contentRect.width,\n        height = _entry$contentRect.height;\n      var hide = width === 0 && height === 0;\n      if (!hide) {\n        onShow(true);\n        observer.disconnect();\n      }\n    });\n    observer.observe(ele$.current);\n    return function () {\n      return observer.disconnect();\n    };\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    ref: ele$,\n    className: _LazyRender[\"default\"].placeholder\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/LazyRender.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Search.js":
/*!**************************************************!*\
  !*** ./src/service/common/sysinfo/web/Search.js ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Search;\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ./Search.less */ \"./src/service/common/sysinfo/web/Search.less\"));\nvar _classnames6 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction Search(props) {\n  var onlyShowInput = props.onlyShowInput;\n  var searchContainerRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showSearch = _useState2[0],\n    setShowSearch = _useState2[1];\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = _slicedToArray(_useState3, 2),\n    value = _useState4[0],\n    setValue = _useState4[1];\n  var searchInputRef = (0, _react.useRef)(null);\n  var searchIconRef = (0, _react.useRef)(null);\n  var searchContainer = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _Search[\"default\"].search, true), _Search[\"default\"].hide, !showSearch && !onlyShowInput), props.className, !!props.className));\n  var searchIcon = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty({\n    'kdfont kdfont-f': true\n  }, _Search[\"default\"].searchIcon, true), _Search[\"default\"].hide, showSearch));\n  var searchInput = (0, _classnames6[\"default\"])(_defineProperty({}, _Search[\"default\"].searchInput, true));\n  var magnifying = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _Search[\"default\"].magnifying, true), 'kdfont kdfont-f', !props.icon), props.icon, !!props.icon));\n  var clear = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _Search[\"default\"].clear, true), _Search[\"default\"].hide, !value), 'kdfont kdfont-guanbiyulan', true));\n  var handleChange = function handleChange(e) {\n    var _e$target$value;\n    var value = (_e$target$value = e.target.value) !== null && _e$target$value !== void 0 ? _e$target$value : '';\n    props.onChange && props.onChange(value);\n    setValue(value);\n  };\n  var handleClearClick = function handleClearClick(e) {\n    e.preventDefault();\n    props.onChange && props.onChange('');\n    setValue('');\n  };\n  var handleSearchClick = function handleSearchClick(e) {\n    setShowSearch(true);\n    setTimeout(function () {\n      searchInputRef.current.focus();\n    }, 0);\n  };\n  var handleclick = function handleclick(e) {\n    var targetEle = e.target;\n    var searchEle = searchContainerRef.current;\n    if (!searchEle || targetEle === searchIconRef.current || value) return;\n    if (!searchEle.contains(targetEle) && searchEle !== targetEle) {\n      setShowSearch(false);\n    }\n  };\n  (0, _react.useEffect)(function () {\n    document.addEventListener('click', handleclick);\n    return function () {\n      document.removeEventListener('click', handleclick);\n    };\n  }, [value]);\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: searchContainer,\n    ref: searchContainerRef\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: magnifying\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    type: \"text\",\n    className: searchInput,\n    ref: searchInputRef,\n    value: value,\n    placeholder: props.title || (0, _intlApi.getLangMsg)('SysInfo.key0066'),\n    onChange: handleChange\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: clear,\n    onClick: handleClearClick\n  })), !onlyShowInput && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: searchIcon,\n    onClick: handleSearchClick,\n    ref: searchIconRef\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Search.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/SysInfoMain.js":
/*!*******************************************************!*\
  !*** ./src/service/common/sysinfo/web/SysInfoMain.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = SysInfoMain;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.promise.js */ \"../../node_modules/core-js/modules/es.promise.js\");\n__webpack_require__(/*! core-js/modules/es.set.js */ \"../../node_modules/core-js/modules/es.set.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _reactDom = _interopRequireWildcard(__webpack_require__(/*! react-dom */ \"webpack/sharing/consume/default/react-dom/react-dom?418d\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _const = __webpack_require__(/*! ../const */ \"./src/service/common/sysinfo/const.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _reduce = _interopRequireDefault(__webpack_require__(/*! ../reduce */ \"./src/service/common/sysinfo/reduce.js\"));\nvar _SysInfoMain = _interopRequireDefault(__webpack_require__(/*! ./SysInfoMain.less */ \"./src/service/common/sysinfo/web/SysInfoMain.less\"));\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nvar _ViewContainer = _interopRequireDefault(__webpack_require__(/*! ./ViewContainer */ \"./src/service/common/sysinfo/web/ViewContainer.js\"));\nvar _Toolbar = _interopRequireDefault(__webpack_require__(/*! ./Toolbar */ \"./src/service/common/sysinfo/web/Toolbar.js\"));\nvar _FooterView = _interopRequireWildcard(__webpack_require__(/*! ./FooterView */ \"./src/service/common/sysinfo/web/FooterView.js\"));\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _dragService = __webpack_require__(/*! @/service/web/dragService.js */ \"./src/service/web/dragService.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction.js */ \"./src/model/appModelFunction.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _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; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-19 17:18:01\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-18 15:31:12\n * @Description: 系统信息看板入口页面\n */ // import storage, { SYS_INFO_AUTO_LOAD } from '@/util/storage'\nvar DEFAULT_MAIN_HEIGHT = 540;\nfunction SysInfoMain(_ref) {\n  var containerEle = _ref.containerEle,\n    onClose = _ref.onClose,\n    setOldOrderData = _ref.setOldOrderData;\n  return /*#__PURE__*/_reactDom[\"default\"].createPortal( /*#__PURE__*/_react[\"default\"].createElement(MemoMainPage, {\n    containerEle: containerEle,\n    onClose: onClose,\n    setOldOrderData: setOldOrderData\n  }), document.body);\n}\nvar positions = _storage[\"default\"].get(_storage.SYS_INFO_POSITION) && JSON.parse(_storage[\"default\"].get(_storage.SYS_INFO_POSITION));\n// 初始化系统数据\nfunction getInitState() {\n  var defaultData = {\n    toolbarItems: [{\n      id: 'nextAutoOpen',\n      title: (0, _intlApi.getLangMsg)('SysInfo.key0067'),\n      type: 'checkbox',\n      checked: _storage[\"default\"].get(_storage.SYS_INFO_AUTO_LOAD) === 'true'\n    }],\n    footer: {// 底部状态栏信息\n    },\n    views: [_const.MAIN_VIEW],\n    panels: [{\n      id: 'ConsolePanel',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0068'),\n      attachViewId: _const.MAIN_VIEW\n    }, {\n      id: 'PageListPanel',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0069'),\n      attachViewId: _const.MAIN_VIEW\n    }, {\n      id: 'DirectivePanel',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0070'),\n      attachViewId: _const.MAIN_VIEW\n    }, {\n      id: 'NetworkPanels',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0071'),\n      attachViewId: _const.MAIN_VIEW\n    }, {\n      id: 'HttpMonitorPanel',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0072'),\n      attachViewId: _const.MAIN_VIEW\n    }, {\n      id: 'PerformancePanel',\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0073'),\n      attachViewId: _const.MAIN_VIEW\n    }],\n    viewStatus: {\n      hiddenMainView: false\n    },\n    defaultSelectKey: _storage[\"default\"].get(_storage.SYS_INFO_SELECT) || 'HttpMonitorPanel',\n    cacher: {}\n  };\n  if ((positions === null || positions === void 0 ? void 0 : positions.length) > 0) {\n    var panels = [];\n    var data = _toConsumableArray(new Set(positions));\n    data.forEach(function (id) {\n      panels.push(defaultData.panels.find(function (panel) {\n        return panel.id === id;\n      }));\n    });\n    defaultData.panels = panels;\n  }\n  return defaultData;\n}\nvar initMainHeight = function initMainHeight() {\n  var storageHeight = Number(_storage[\"default\"].get(_storage.SYS_INFO_HEIGHT));\n  var screenHeight = document.documentElement.scrollHeight;\n  if (!storageHeight) return DEFAULT_MAIN_HEIGHT > screenHeight ? screenHeight * 0.8 : DEFAULT_MAIN_HEIGHT;\n  return storageHeight > screenHeight ? screenHeight * 0.8 : storageHeight;\n};\n// 主页面\nfunction MainPage(_ref2) {\n  var containerEle = _ref2.containerEle,\n    onClose = _ref2.onClose,\n    setOldOrderData = _ref2.setOldOrderData;\n  var _useReducer = (0, _react.useReducer)(_reduce[\"default\"], getInitState()),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1]; // state={toolbarItems,bottomViewObject,sysInfo}\n\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    isMini = _useState2[0],\n    setMinView = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = _slicedToArray(_useState3, 2),\n    isMax = _useState4[0],\n    setMaxView = _useState4[1];\n  var _useState5 = (0, _react.useState)(initMainHeight),\n    _useState6 = _slicedToArray(_useState5, 2),\n    height = _useState6[0],\n    setHeight = _useState6[1];\n  // const [isHidden, setHidden] = useState(false)\n  var root$ = (0, _react.useRef)();\n  var state$ = (0, _react.useRef)(state);\n  var miniView$ = (0, _react.useRef)();\n  state$.current = state;\n  var env$ = (0, _react.useRef)({\n    getState: function getState() {\n      return state$.current;\n    },\n    dispatch: dispatch\n  });\n  (0, _react.useEffect)(function () {\n    _GlobalDataCacher.GlobalObject.set(_symbolConst.KEY_RUN_ADMIN_TOOL, true);\n    (positions === null || positions === void 0 ? void 0 : positions.length) > 0 && setOldOrderData(_toConsumableArray(new Set(positions)));\n    return function () {\n      _GlobalDataCacher.GlobalObject.set(_symbolConst.KEY_RUN_ADMIN_TOOL, false);\n    };\n  }, []);\n  var close = function close() {\n    onClose();\n    (0, _reactDom.unmountComponentAtNode)(containerEle);\n  };\n  var setMiniWidthAnimal = function setMiniWidthAnimal(isMini) {\n    if (disableClick && disableClick()) {\n      return;\n    }\n    if (!root$.current.animate) {\n      setMinView(isMini);\n      return;\n    }\n    var miniViewRect = miniView$.current.getBoundingClientRect();\n    var minWidth = 172;\n    var minHeight = 44;\n    var minLeft = miniViewRect.left || 10;\n    var minBottom = document.body.clientHeight - miniViewRect.top - minHeight || 10;\n    var offsetY = minBottom + minHeight;\n    var rect, clientHeight;\n    if (root$.current.animate) {\n      if (isMini) {\n        var _animate$finished;\n        rect = root$.current.getBoundingClientRect();\n        clientHeight = document.body.clientHeight;\n        var animate = root$.current.animate([{\n          transformOrigin: 'left top',\n          transform: ' scale(1)'\n        }, {\n          transformOrigin: 'left top',\n          transform: \"translate(\".concat(minLeft - rect.left, \"px,\").concat(miniViewRect.top - rect.top, \"px) scale(\").concat(minWidth / rect.width, \", \").concat(minHeight / rect.height, \")\")\n        }], 300);\n        if (animate !== null && animate !== void 0 && (_animate$finished = animate.finished) !== null && _animate$finished !== void 0 && _animate$finished.then) {\n          animate.finished.then(function () {\n            setMinView(isMini);\n          });\n        } else {\n          setMinView(isMini);\n        }\n      } else {\n        Promise.resolve().then(function () {\n          setMinView(isMini);\n          rect = root$.current.getBoundingClientRect();\n          clientHeight = document.body.clientHeight;\n          root$.current.animate([{\n            transformOrigin: 'left top',\n            transform: \"translate(\".concat(minLeft - rect.left, \"px,\").concat(miniViewRect.top - rect.top, \"px) scale(\").concat(minWidth / rect.width, \",\").concat(minHeight / rect.height, \")\")\n          }, {\n            transformOrigin: 'left top',\n            transform: ' scale(1)'\n          }], 300);\n        });\n      }\n    } else {\n      // 兼容ie浏览器\n      setMinView(isMini);\n    }\n  };\n  var onToolbarItemClick = function onToolbarItemClick(event) {\n    var target = event.target;\n    var id = target.dataset.id;\n    if (!id) {\n      var tagName = target.tagName;\n      if (tagName === 'LABEL') {\n        id = target.htmlFor;\n      } else {\n        id = target.parentElement.htmlFor;\n      }\n      if (id) {\n        dispatch({\n          action: _const.ACTION_SET_TOOLBAR_CHECKED,\n          payload: id\n        });\n        if (id === 'nextAutoOpen') {\n          var item = state.toolbarItems.find(function (item) {\n            return item.id === 'nextAutoOpen';\n          });\n          _storage[\"default\"].set(_storage.SYS_INFO_AUTO_LOAD, !item.checked);\n        }\n      }\n    }\n  };\n  var className = (0, _classnames3[\"default\"])(_SysInfoMain[\"default\"].root, _defineProperty(_defineProperty({}, _SysInfoMain[\"default\"].mini, isMini), _SysInfoMain[\"default\"].max, !isMini && isMax));\n  var miniView = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _SysInfoMain[\"default\"]['mini-view'], true), _SysInfoMain[\"default\"].hide, !isMini));\n  var style = {\n    height: height\n  };\n  if (state.viewStatus.hiddenMainView) {\n    style.display = 'none';\n  }\n  var value = (0, _react.useMemo)(function () {\n    return Object.assign({}, env$.current, {\n      isMini: isMini\n    });\n  }, [isMini]); // 提供全局上下文最小化属性，用于每个panel优化，在最小化时，界面不渲染\n\n  var drag$ = (0, _react.useRef)({\n    isDrag: false\n  });\n  var disableClick = function disableClick() {\n    var _drag$$current = drag$.current,\n      endX = _drag$$current.endX,\n      endY = _drag$$current.endY,\n      startX = _drag$$current.startX,\n      startY = _drag$$current.startY;\n    if (Math.abs(endX - startX) > 2 || Math.abs(endY - startY) > 2) {\n      return true;\n    }\n  };\n  var handleClose = function handleClose(event) {\n    close();\n    event.stopPropagation();\n  };\n  var handleDragLine = function handleDragLine(value) {\n    if (isMax) return;\n    setHeight(value);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_SysContext[\"default\"].Provider, {\n    value: value\n  }, /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style,\n    className: className,\n    \"data-view\": \"root\",\n    ref: root$\n  }, /*#__PURE__*/_react[\"default\"].createElement(Line, {\n    onDrag: handleDragLine\n  }), /*#__PURE__*/_react[\"default\"].createElement(_Toolbar[\"default\"], {\n    toolbarItems: state.toolbarItems,\n    onClick: onToolbarItemClick,\n    isMax: isMax,\n    setMaxView: setMaxView,\n    setMinView: setMiniWidthAnimal,\n    setHidden: close,\n    dispatch: dispatch\n  }), /*#__PURE__*/_react[\"default\"].createElement(_ViewContainer[\"default\"], {\n    selectKey: state.defaultSelectKey,\n    views: state.views,\n    panels: state.panels,\n    dispatch: dispatch\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: miniView,\n    \"data-view\": \"root\",\n    ref: miniView$,\n    \"data-drag-element\": \"allIn\",\n    draggable: true\n  }, /*#__PURE__*/_react[\"default\"].createElement(_FooterView.LookupElement, {\n    dispatch: dispatch,\n    className: _SysInfoMain[\"default\"].lookupEle,\n    disableClick: disableClick,\n    setMinView: setMiniWidthAnimal\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysInfoMain[\"default\"].text,\n    onClick: function onClick() {\n      return setMiniWidthAnimal(false);\n    }\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0198')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    onClick: handleClose,\n    className: _SysInfoMain[\"default\"].close,\n    style: {\n      fontSize: 20\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-guanbi8 hover-theme-fc\"\n  })))));\n}\nvar MemoMainPage = /*#__PURE__*/(0, _react.memo)(MainPage);\nfunction Line(_ref3) {\n  var onDrag = _ref3.onDrag;\n  var lineRef = (0, _react.useRef)();\n  var onMove = function onMove(dragElement, x, y, width, height, dragState) {\n    var screenHeight = document.documentElement.scrollHeight;\n    var h = screenHeight - y;\n    if (h > screenHeight) h = screenHeight;\n    if (h < 64) h = 64;\n    dragState === 'finished' && rememberDragPosition(h);\n    onDrag && onDrag(h);\n  };\n  var rememberDragPosition = function rememberDragPosition(height) {\n    _storage[\"default\"].set(_storage.SYS_INFO_HEIGHT, height);\n  };\n  (0, _react.useEffect)(function () {\n    (0, _dragService.dragElement)(lineRef.current, {\n      onMove: onMove,\n      cursor: 'ns-resize',\n      editOrigin: false,\n      direction: 'y',\n      savePosition: false,\n      placeHolder: true,\n      opacity: 0,\n      escDispose: true,\n      isLimit: false\n    });\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysInfoMain[\"default\"].splitLine,\n    ref: lineRef,\n    draggable: true\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/SysInfoMain.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Toolbar.js":
/*!***************************************************!*\
  !*** ./src/service/common/sysinfo/web/Toolbar.js ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Toolbar;\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.split.js */ \"../../node_modules/core-js/modules/es.string.split.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"../../node_modules/core-js/modules/es.string.trim.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Toolbar = _interopRequireDefault(__webpack_require__(/*! ./Toolbar.less */ \"./src/service/common/sysinfo/web/Toolbar.less\"));\nvar _classnames4 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _FooterView = __webpack_require__(/*! ./FooterView */ \"./src/service/common/sysinfo/web/FooterView.js\");\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 10:12:40\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-28 17:55:00\n * @Description: Description\n */\nfunction Toolbar(_ref) {\n  var toolbarItems = _ref.toolbarItems,\n    onClick = _ref.onClick,\n    setMinView = _ref.setMinView,\n    isMax = _ref.isMax,\n    setMaxView = _ref.setMaxView,\n    setHidden = _ref.setHidden,\n    dispatch = _ref.dispatch;\n  var toolbarRef = (0, _react.useRef)();\n  var handleDoubleClick = function handleDoubleClick(e) {\n    if (e.target === toolbarRef.current) {\n      setMaxView(!isMax);\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Toolbar[\"default\"].toolbar,\n    onClick: onClick,\n    ref: toolbarRef,\n    onDoubleClick: handleDoubleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(_FooterView.LookupElement, {\n    dispatch: dispatch\n  }), /*#__PURE__*/_react[\"default\"].createElement(BrowserInfo, null), /*#__PURE__*/_react[\"default\"].createElement(ToolbarItem, _extends({\n    key: toolbarItems[0].id\n  }, toolbarItems[0], {\n    tips: (0, _intlApi.getLangMsg)('SysInfo.key0075')\n  })), /*#__PURE__*/_react[\"default\"].createElement(Version, {\n    isMax: isMax,\n    setMaxView: setMaxView,\n    tips: (0, _intlApi.getLangMsg)('SysInfo.key0076')\n  }), /*#__PURE__*/_react[\"default\"].createElement(MiniToolbarItem, {\n    setMinView: setMinView\n  }), /*#__PURE__*/_react[\"default\"].createElement(MaxToolbarItem, {\n    isMax: isMax,\n    setMaxView: setMaxView\n  }), /*#__PURE__*/_react[\"default\"].createElement(CloseToolbarItem, {\n    setHidden: setHidden\n  }));\n}\nfunction Version(props) {\n  var isMax = props.isMax,\n    setMaxView = props.setMaxView,\n    tips = props.tips;\n  var version = (0, _react.useMemo)(function () {\n    var node = document.body.querySelector('script');\n    var text = '';\n    while (node) {\n      var _version = parseVersionNode(node);\n      if (_version) {\n        text = _version;\n        break;\n      }\n      node = node.nextSibling;\n    }\n    if (!text) {\n      var _node = document.body.nextSibling;\n      text = parseVersionNode(_node);\n    }\n    return text;\n  }, []);\n  var className = (0, _classnames4[\"default\"])(_Toolbar[\"default\"]['toolbar-item']);\n  var handleClick = function handleClick() {\n    setMaxView(!isMax);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className,\n    title: tips,\n    onDoubleClick: handleClick,\n    style: {\n      margin: 'auto',\n      fontSize: 14,\n      cursor: 'auto'\n    }\n  }, version);\n}\nfunction BrowserInfo(props) {\n  var title = navigator.userAgent;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    showTip = _useState2[0],\n    setShowTip = _useState2[1];\n  var onVisibleChange = function onVisibleChange(val) {\n    setShowTip(val);\n  };\n  var className = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _Toolbar[\"default\"].active, showTip), _Toolbar[\"default\"]['toolbar-item'], true), _Toolbar[\"default\"]['toolbar-browser-Info'], true));\n\n  // #ffffffbf与var函数都不支持，这样可以保证在ie下背景色与前景色是默认的\n  return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Tooltip, {\n    placement: \"top\",\n    onVisibleChange: onVisibleChange,\n    tip: title,\n    trigger: \"click\",\n    popperStyle: {\n      marginTop: 4,\n      color: '#ffffffbf',\n      '--kd-c-tooltip-color-background': '#404040'\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-zhushi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0077')\n  })));\n}\nfunction MiniToolbarItem(_ref2) {\n  var setMinView = _ref2.setMinView;\n  var className = (0, _classnames4[\"default\"])(_Toolbar[\"default\"]['toolbar-item']);\n  var onClick = function onClick(event) {\n    setMinView(true);\n    event.stopPropagation();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames4[\"default\"])(className, [_Toolbar[\"default\"].hover]),\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jianshao3\"\n  }));\n}\nfunction MaxToolbarItem(_ref3) {\n  var _ref3$isMax = _ref3.isMax,\n    isMax = _ref3$isMax === void 0 ? false : _ref3$isMax,\n    setMaxView = _ref3.setMaxView;\n  var className = (0, _classnames4[\"default\"])(_Toolbar[\"default\"]['toolbar-item']);\n  var iconClassName = (0, _classnames4[\"default\"])('kdfont', {\n    'kdfont kdfont-huakuang': !isMax,\n    // 方框\n    'kdfont kdfont kdfont-fuzhi3': isMax\n  });\n  var onClick = function onClick(event) {\n    setMaxView(!isMax);\n    event.stopPropagation();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames4[\"default\"])(className, [_Toolbar[\"default\"].hover]),\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: iconClassName\n  }));\n}\nfunction CloseToolbarItem(_ref4) {\n  var setHidden = _ref4.setHidden;\n  var className = (0, _classnames4[\"default\"])(_Toolbar[\"default\"]['toolbar-item']);\n  var onClick = function onClick(event) {\n    setHidden(true);\n    event.stopPropagation();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames4[\"default\"])(className, [_Toolbar[\"default\"].hover]),\n    style: {\n      marginRight: 12\n    },\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-guanbi8\"\n  }));\n}\nfunction ToolbarItem(_ref5) {\n  var title = _ref5.title,\n    id = _ref5.id,\n    type = _ref5.type,\n    checked = _ref5.checked,\n    tips = _ref5.tips;\n  // type=text|checkbox\n  var className = (0, _classnames4[\"default\"])(_Toolbar[\"default\"]['toolbar-item'], _defineProperty({}, _Toolbar[\"default\"]['toolbar-checkbox'], type === 'checkbox'));\n  var checkboxBg = (0, _classnames4[\"default\"])(_defineProperty(_defineProperty({}, _Toolbar[\"default\"].checkboxBg, true), _Toolbar[\"default\"].hideCheckboxBg, checked));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className,\n    \"data-id\": id\n  }, type === 'checkbox' ? /*#__PURE__*/_react[\"default\"].createElement(\"label\", {\n    htmlFor: id,\n    title: tips\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: checkboxBg\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    checked: checked,\n    type: \"checkbox\"\n  }), title) : {\n    title: title\n  });\n}\nfunction parseVersionNode(node) {\n  if (node && node.nodeType === 8) {\n    var nodeValue = node.nodeValue;\n    var index = nodeValue.indexOf(':');\n    if (index !== -1) {\n      var dateString = node.nodeValue.substr(index + 1);\n      // if (!Number.isNaN(Date.parse(dateString))) {\n      if (dateString.trim().split(/[-:\\s+]/).length >= 6) {\n        return node.nodeValue;\n      }\n      // }\n    }\n  }\n  return '';\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Toolbar.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/ViewContainer.js":
/*!*********************************************************!*\
  !*** ./src/service/common/sysinfo/web/ViewContainer.js ***!
  \*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nvar Views = _interopRequireWildcard(__webpack_require__(/*! ./view/index */ \"./src/service/common/sysinfo/web/view/index.js\"));\nfunction _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); }\nfunction _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 && Object.prototype.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; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-21 09:53:21\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-17 11:18:18\n * @Description: 视图宿主容器，管理所有子视图\n */\n\n/**\n *\n * @param {views} 视图数组\n * @param {panels} 面板数组\n * @returns\n */\nfunction ViewContainer(_ref) {\n  var _ref$panels = _ref.panels,\n    panels = _ref$panels === void 0 ? [] : _ref$panels,\n    _ref$views = _ref.views,\n    views = _ref$views === void 0 ? [] : _ref$views,\n    dispatch = _ref.dispatch,\n    selectKey = _ref.selectKey;\n  var selectChange = function selectChange(selectId) {\n    _storage[\"default\"].set(_storage.SYS_INFO_SELECT, selectId);\n  };\n  return views.map(function (id) {\n    var View = Views[id];\n    var panel = panels.filter(function (_ref2) {\n      var attachViewId = _ref2.attachViewId;\n      return attachViewId === id;\n    });\n    if (id === 'MainView') {\n      return /*#__PURE__*/_react[\"default\"].createElement(View, {\n        key: id,\n        panels: panel,\n        dispatch: dispatch,\n        selectChange: selectChange,\n        selectKey: selectKey,\n        rememberSelect: true,\n        isMain: true\n      });\n    }\n    return /*#__PURE__*/_react[\"default\"].createElement(View, {\n      key: id,\n      panels: panel,\n      dispatch: dispatch\n    });\n  });\n}\nvar _default = exports[\"default\"] = /*#__PURE__*/(0, _react.memo)(ViewContainer);\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/ViewContainer.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/CodeMirrorPanel.js":
/*!*****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/CodeMirrorPanel.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = CodeMirrorPanel;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _codeMirronEnhance = _interopRequireWildcard(__webpack_require__(/*! ../../utils/codeMirronEnhance */ \"./src/service/common/sysinfo/utils/codeMirronEnhance.js\"));\nvar _jsonStringify = _interopRequireDefault(__webpack_require__(/*! ./../../utils/jsonStringify */ \"./src/service/common/sysinfo/utils/jsonStringify.js\"));\nvar _CodeMirrorPanel = _interopRequireDefault(__webpack_require__(/*! ./CodeMirrorPanel.less */ \"./src/service/common/sysinfo/web/panel/CodeMirrorPanel.less\"));\n__webpack_require__(/*! @/style/CodeMirror/codemirror.less */ \"./src/style/CodeMirror/codemirror.less\");\nvar _resizeObserve = _interopRequireDefault(__webpack_require__(/*! @/util/resizeObserve */ \"./src/util/resizeObserve.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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); } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-28 09:49:08\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-06-08 17:19:45\n * @Description: 提供通用文本视图（html、json)\n */\nfunction CodeMirrorPanel(_ref) {\n  var id = _ref.id,\n    _ref$data = _ref.data,\n    data = _ref$data === void 0 ? (0, _intlApi.getLangMsg)('SysInfo.key0078') : _ref$data,\n    name = _ref.name,\n    className = _ref.className,\n    mode = _ref.mode;\n  var ele$ = (0, _react.useRef)(null); // 代码编辑器宿主元素\n  var editor$ = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    // const value = typeof data === 'object' ? jsonStringify(data, 2) : data\n    mode = mode || _typeof(data) === 'object' ? 'application/json' : 'htmlmixed';\n    var options = {\n      value: '',\n      mode: mode,\n      lineNumbers: true,\n      foldGutter: true,\n      gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'],\n      theme: 'monokai',\n      readOnly: true,\n      lineWrapping: true,\n      extraKeys: {\n        'Ctrl-F': 'findPersistent',\n        'Cmd-F': 'findPersistent'\n      }\n    };\n    editor$.current = (0, _codeMirronEnhance[\"default\"])(ele$.current, options);\n    // formatEditor(editor$.current)\n  }, [mode]);\n  (0, _react.useEffect)(function () {\n    var _editor$$current;\n    var value = _typeof(data) === 'object' ? (0, _jsonStringify[\"default\"])(data, 2) : data;\n    (_editor$$current = editor$.current) === null || _editor$$current === void 0 || _editor$$current.setValue(value);\n    (0, _codeMirronEnhance.formatEditor)(editor$.current);\n  }, [data]);\n  (0, _react.useEffect)(function () {\n    var isHide;\n    var resizeObserve = (0, _resizeObserve[\"default\"])(ele$.current, function (_ref2) {\n      var hide = _ref2.hide,\n        width = _ref2.width,\n        height = _ref2.height;\n      if (isHide && !hide) {\n        editor$.current.refresh();\n      }\n      isHide = hide;\n    });\n    return function () {\n      return resizeObserve.removeResizeObserve();\n    };\n  }, []);\n  var rootClassName = (0, _classnames[\"default\"])(_CodeMirrorPanel[\"default\"].root, className);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    id: id,\n    className: rootClassName,\n    title: name\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _CodeMirrorPanel[\"default\"]['code-root'],\n    ref: ele$\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/CodeMirrorPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ConsolePanel.js":
/*!**************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ConsolePanel.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.MessageArea = MessageArea;\nexports[\"default\"] = ConsolePanel;\nexports.renderMsgItem = renderMsgItem;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ./../../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _const = __webpack_require__(/*! ./../../const */ \"./src/service/common/sysinfo/const.js\");\nvar _ConsolePanel = _interopRequireDefault(__webpack_require__(/*! ./ConsolePanel.less */ \"./src/service/common/sysinfo/web/panel/ConsolePanel.less\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _JsonNode = _interopRequireDefault(__webpack_require__(/*! ./JsonNode */ \"./src/service/common/sysinfo/web/panel/JsonNode.js\"));\nvar _sysConfig = __webpack_require__(/*! ../../sysConfig */ \"./src/service/common/sysinfo/sysConfig.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-09 15:48:27\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-17 16:28:14\n * @Description: 捕获控制台输出信息\n */\nfunction ConsolePanel(_ref) {\n  var id = _ref.id,\n    data = _ref.data,\n    name = _ref.name;\n  var _useReducer = (0, _react.useReducer)(function (x) {\n      return x + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var context = (0, _react.useContext)(_SysContext[\"default\"]);\n  var _useState = (0, _react.useState)('error'),\n    _useState2 = _slicedToArray(_useState, 2),\n    showMsgType = _useState2[0],\n    setShowMsgType = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    filterWord = _useState4[0],\n    setFilterWord = _useState4[1];\n  var msg$ = (0, _react.useRef)([]);\n  var time$ = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      msg$.current = [].concat(context.getState().cacher.ConsolePanel || []);\n      forceUpdate();\n    }, 0); // effect运行完，state才会更新，等副作用完成后取值\n    var nativeConsoleError = window.console.error;\n\n    // 如果影响测试就把这段加上\n    // if (process.env.NODE_ENV !== 'production') {\n    //   return\n    // }\n\n    window.console.error = function () {\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      nativeConsoleError.apply(this, args);\n      msg$.current.push({\n        type: 'error',\n        msg: args\n      });\n      refresh();\n    };\n    var nativeConsoleWarn = window.console.warn;\n    window.console.warn = function () {\n      for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n        args[_key2] = arguments[_key2];\n      }\n      nativeConsoleWarn.apply(this, args);\n      msg$.current.push({\n        type: 'warn',\n        msg: args\n      });\n      refresh();\n    };\n    var nativeConsoleInfo = window.console.log;\n    window.console.log = function () {\n      for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n        args[_key3] = arguments[_key3];\n      }\n      nativeConsoleInfo.apply(this, args);\n      var params = args;\n      if (arguments.length === 1) {\n        params = args[0];\n      }\n      msg$.current.push({\n        type: 'info',\n        msg: params\n      });\n      refresh();\n    };\n    return function () {\n      window.console.error = nativeConsoleError;\n      window.console.warn = nativeConsoleWarn;\n      window.console.log = nativeConsoleInfo;\n      context.dispatch({\n        action: _const.ACTION_PUT_CACHER,\n        payload: {\n          key: 'ConsolePanel',\n          value: msg$.current\n        }\n      });\n    };\n  }, []);\n  var handleSearchChange = function handleSearchChange(value) {\n    setFilterWord(value);\n  };\n  var updateMsg = function updateMsg(args) {\n    msg$.current.push({\n      type: 'info',\n      msg: args\n    });\n    refresh();\n  };\n  var refresh = function refresh() {\n    clearTimeout(time$.current);\n    time$.current = setTimeout(function () {\n      if (msg$.current.length > _sysConfig.CONSOLE_MESSAGE_CONNT) {\n        var _getCount = getCount(msg$.current),\n          error = _getCount.error,\n          info = _getCount.info,\n          warn = _getCount.warn;\n        var errorCount = error - _sysConfig.CONSOLE_MESSAGE_CONNT;\n        var warnCount = warn - _sysConfig.CONSOLE_MESSAGE_CONNT;\n        var infoCount = info - _sysConfig.CONSOLE_MESSAGE_CONNT;\n        msg$.current = msg$.current.reduce(function (newMsg, item) {\n          var type = item.type;\n          if (type === 'error') {\n            errorCount -= 1;\n            errorCount < 0 && newMsg.push(item);\n          } else if (type === 'warn') {\n            warnCount -= 1;\n            warnCount < 0 && newMsg.push(item);\n          } else if (type === 'info') {\n            infoCount -= 1;\n            infoCount < 0 && newMsg.push(item);\n          }\n          return newMsg;\n        }, []);\n      }\n      forceUpdate();\n    }, 500);\n  };\n  var onDelete = function onDelete() {\n    msg$.current.splice(0, msg$.current.length);\n    context.dispatch({\n      action: _const.ACTION_PUT_CACHER,\n      payload: {\n        key: 'ConsolePanel',\n        value: msg$.current.slice()\n      }\n    });\n    forceUpdate();\n  };\n  var filterMsg = (0, _react.useMemo)(function () {\n    return msg$.current.filter(function (msgItem) {\n      var msg = msgItem.msg;\n      var isEqual = true;\n      if (filterWord) {\n        if (typeof msg === 'string') {\n          isEqual = msg.indexOf(filterWord) !== -1;\n        } else if (Array.isArray(msg)) {\n          isEqual = msg.find(function (msg) {\n            msg = msg + '';\n            return msg.indexOf(filterWord) !== -1;\n          });\n        }\n      }\n      return msgItem.type === showMsgType && isEqual;\n    });\n  }, [showMsgType, msg$.current.length, filterWord]);\n  var msgCount = getCount(msg$.current);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(LabelArea, {\n    onSelectMsgType: setShowMsgType,\n    msgCount: msgCount,\n    onDelete: onDelete,\n    handleSearchChange: handleSearchChange\n  }), /*#__PURE__*/_react[\"default\"].createElement(MessageArea, {\n    showMsgType: showMsgType,\n    msgItems: filterMsg\n  }), /*#__PURE__*/_react[\"default\"].createElement(EvalArea, {\n    updateMsg: updateMsg\n  }));\n}\nfunction getCount(allMSgs) {\n  var infoCount = allMSgs.filter(function (msg) {\n    return msg.type === 'info';\n  }).length;\n  var warnCount = allMSgs.filter(function (msg) {\n    return msg.type === 'warn';\n  }).length;\n  var errorCount = allMSgs.filter(function (msg) {\n    return msg.type === 'error';\n  }).length;\n  return {\n    info: infoCount,\n    warn: warnCount,\n    error: errorCount\n  };\n}\nfunction LabelArea(_ref2) {\n  var onSelectMsgType = _ref2.onSelectMsgType,\n    onDelete = _ref2.onDelete,\n    msgCount = _ref2.msgCount,\n    handleSearchChange = _ref2.handleSearchChange;\n  var _useState5 = (0, _react.useState)('error'),\n    _useState6 = _slicedToArray(_useState5, 2),\n    msgType = _useState6[0],\n    setMsgType = _useState6[1];\n  var onClick = function onClick(event) {\n    var type = event.target.dataset.msgType || event.target.parentElement.dataset.msgType;\n    if (type) {\n      setMsgType(type);\n      onSelectMsgType && onSelectMsgType(type);\n    }\n    if (event.target.dataset[\"delete\"]) {\n      onDelete();\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"]['label-area'],\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: msgType === 'error' ? _ConsolePanel[\"default\"].active : '',\n    \"data-count\": msgCount.error,\n    \"data-msg-type\": \"error\"\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-qingkong\",\n    style: {\n      color: '#FB2323'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, msgCount.error > _sysConfig.CONSOLE_MESSAGE_CONNT ? _sysConfig.CONSOLE_MESSAGE_CONNT : msgCount.error)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: msgType === 'warn' ? _ConsolePanel[\"default\"].active : '',\n    \"data-count\": msgCount.warn,\n    \"data-msg-type\": \"warn\"\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinggao-mian\",\n    style: {\n      color: '#ff991c'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, msgCount.warn > _sysConfig.CONSOLE_MESSAGE_CONNT ? _sysConfig.CONSOLE_MESSAGE_CONNT : msgCount.warn)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: msgType === 'info' ? _ConsolePanel[\"default\"].active : '',\n    \"data-count\": msgCount.info,\n    \"data-msg-type\": \"info\"\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-huaban3\",\n    style: {\n      color: '#85b8ff'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, msgCount.info > _sysConfig.CONSOLE_MESSAGE_CONNT ? _sysConfig.CONSOLE_MESSAGE_CONNT : msgCount.info)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"].rightArea\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearchChange,\n    className: _ConsolePanel[\"default\"].search\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    \"data-delete\": true,\n    className: \"kdfont kdfont-jinzhi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0079')\n  })));\n}\nfunction MessageArea(_ref3) {\n  var msgItems = _ref3.msgItems;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"]['message-area']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"]['message-container']\n  }, msgItems.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(MessageItem, {\n      msgItem: item,\n      key: index\n    });\n  })));\n}\nfunction MessageItem(_ref4) {\n  var msgItem = _ref4.msgItem;\n  var type = msgItem.type,\n    msg = msgItem.msg;\n  var formatMsg = '';\n  if (['error', 'warn'].includes(type) && Array.isArray(msg)) {\n    formatMsg = formatMessage(msg).replace(/\\\\\"/g, '').split('\\\\n').filter(Boolean).map(function (item) {\n      return item.replace(/\"/g, '');\n    });\n  }\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-type\": type,\n    style: {\n      position: 'relative'\n    }\n  }, typeof msg === 'string' || typeof msg === 'number' || typeof msg === 'undefined' ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"]['msg-string']\n  }, msg) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: {\n      display: 'flex',\n      paddingLeft: type === 'info' ? 0 : 16\n    }\n  }, type === 'warn' ? /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinggao-mian\",\n    style: {\n      fontSize: 14,\n      color: '#ff991c',\n      paddingLeft: 16,\n      position: 'absolute',\n      left: 0,\n      top: 5\n    }\n  }) : type === 'error' ? /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-qingkong\",\n    style: {\n      fontSize: 14,\n      color: '#FB2323',\n      paddingLeft: 16,\n      position: 'absolute',\n      left: 0,\n      top: 5\n    }\n  }) : null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: {\n      width: '100%'\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(_JsonNode[\"default\"], {\n    object: formatMsg || msg,\n    summaryStyle: {\n      paddingLeft: '16px'\n    }\n  }))));\n}\nfunction renderMsgItem(msg, type) {\n  var formMessage = formatMessage(msg).replace(/\\\\\"/g, '');\n  var messageArray = formMessage.split('\\\\n');\n  var getIcon = function getIcon(index) {\n    if (index !== 0) return;\n    if (type === 'error') {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n        className: \"kdfont kdfont-qingkong\",\n        style: {\n          color: '#FB2323'\n        }\n      });\n    } else if (type === 'warn') {\n      return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n        className: \"kdfont kdfont-jinggao-mian\",\n        style: {\n          color: '#ff991c'\n        }\n      });\n    }\n  };\n  return messageArray.map(function (message, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: index,\n      className: _ConsolePanel[\"default\"]['message-detail']\n    }, getIcon(index), message);\n  });\n}\nfunction formatMessage(msg) {\n  var out = msg;\n  if (Array.isArray(msg)) {\n    msg = msg.map(function (item) {\n      if (item instanceof Error) {\n        return \"\".concat(item.message, \"\\n\").concat(item.stack);\n      } else {\n        return stringify(item);\n      }\n    });\n    if (msg.length <= 1) {\n      out = msg[0] || '';\n    } else {\n      var index = 1;\n      out = msg[0].replace(/%s/g, function () {\n        return msg[index++];\n      });\n      if (index === 1) {\n        out = msg.join('\\n');\n      }\n    }\n  }\n  return out;\n}\nfunction stringify(obj) {\n  try {\n    var str = JSON.stringify(obj);\n    return str;\n  } catch (error) {\n    if (Array.isArray(obj)) {\n      return obj.reduce(function (mem, value) {\n        mem.push(stringify(value));\n        return mem;\n      }, []).join('');\n    } else {\n      return obj.toString && obj.toString();\n    }\n  }\n}\nfunction EvalArea(_ref5) {\n  var updateMsg = _ref5.updateMsg;\n  var handleKeydown = function handleKeydown(e) {\n    var code = e.keyCode;\n    var val = e.target.value;\n    try {\n      if (code === 13) {\n        var args = window.eval(val);\n        updateMsg(args);\n        e.target.value = '';\n      }\n    } catch (error) {\n      console.error(error);\n      e.target.value = '';\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ConsolePanel[\"default\"]['eval-area']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-fangxiangyou\"\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    placeholder: (0, _intlApi.getLangMsg)('SysInfo.key0080'),\n    onKeyDown: handleKeydown\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ConsolePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ControlDetailPanel.js":
/*!********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ControlDetailPanel.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.ControlDetail = ControlDetail;\nexports.ControlDetailItem = ControlDetailItem;\nexports[\"default\"] = ControlDetailPanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.values.js */ \"../../node_modules/core-js/modules/es.object.values.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _controlUtils = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nvar _clipboardUtil = __webpack_require__(/*! @/util/clipboardUtil */ \"./src/util/clipboardUtil.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _GridAnalyse = _interopRequireDefault(__webpack_require__(/*! ./GridAnalyse */ \"./src/service/common/sysinfo/web/panel/GridAnalyse.jsx\"));\nvar _controlDetailConst = __webpack_require__(/*! ../../constent/controlDetailConst */ \"./src/service/common/sysinfo/constent/controlDetailConst.js\");\nvar _const = __webpack_require__(/*! @/constant/const */ \"./src/constant/const.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _ControlDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./ControlDetailPanel.less */ \"./src/service/common/sysinfo/web/panel/ControlDetailPanel.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction ControlDetailPanel(_ref) {\n  var data = _ref.data,\n    attachViewId = _ref.attachViewId;\n  var pageId = data.pageId,\n    controlKey = data.ctrlKey;\n  var controls = (0, _controlUtils.getControls)(pageId);\n  var control = controls.find(function (ctrl) {\n    return ctrl.get('id') === controlKey;\n  }) || (controls === null || controls === void 0 ? void 0 : controls.length) === 1 && controls[0];\n  if (!control) return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].noData\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0170'));\n  var lang = (0, _controlUtils.getLanguage)();\n  var controlName = control.getIn(['text', lang]);\n  var controlType = control.get('type');\n  if (controlType === 'fieldcon' || controlType === 'cardfield') {\n    var fieldType = control.get('item').get('type');\n    controlName = control.getIn(['caption', lang]);\n    controlType = \"\".concat(controlType, \"(\").concat(fieldType, \")\");\n  }\n  controlName = controlName || control.get('id');\n  var controlId = control.get('id');\n  var pageInfo = (0, _controlUtils.getPageInfo)(pageId);\n  if (!pageInfo) return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].noData\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0170'));\n  var status = pageInfo.status,\n    formId = pageInfo.formId,\n    formName = pageInfo.name,\n    billFormId = pageInfo.billFormId;\n  var gridType = (0, _react.useRef)();\n  var onCopySuccess = function onCopySuccess() {\n    var rootId = (0, _appModelFunction.getRootPageId)()((0, _global.getGlobalState)());\n    (0, _appModelFunction.setDataMessages)(rootId, {\n      content: (0, _intlApi.getLangMsg)('SysInfo.key0081'),\n      type: _const.AlertType.SUCCESS,\n      duration: 2000,\n      zIndex: 100000\n    });\n  };\n  var onCopy = function onCopy(e) {\n    var val = e.target.dataset.val;\n    (0, _clipboardUtil.copy2Clipboard)(val, onCopySuccess);\n  };\n  var createGrid = (0, _react.useMemo)(function () {\n    if (controlType === 'grid') {\n      var info = (0, _controlUtils.getGridInfo)(pageId, controlKey);\n      gridType.current = info.gridType;\n      return /*#__PURE__*/_react[\"default\"].createElement(_GridAnalyse[\"default\"], {\n        headers: _controlDetailConst.defaultHeaders,\n        rows: info.rows\n      });\n    } else {\n      gridType.current = '';\n    }\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null);\n  }, [controlKey, pageId]);\n  var contentSyle = attachViewId !== 'LookUpView' ? {\n    display: 'flex',\n    flexGrow: 1,\n    borderBottom: '1px solid #3b3c3d '\n  } : {\n    display: 'flex',\n    borderBottom: '1px solid #3b3c3d'\n  };\n  var detailData = (0, _react.useMemo)(function () {\n    return (0, _controlUtils.getControlData)(pageId, controlId, controlType);\n  }, [pageId, controlId, controlType]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: contentSyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].left\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"ul\", {\n    style: {\n      marginRight: 3\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].title\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0060')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0176')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0177')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0199')), attachViewId !== 'LookUpView' && detailData.map(function (data, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: index,\n      className: _ControlDetailPanel[\"default\"].label\n    }, data.label);\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"ul\", null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].title\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, controlName), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, controlId), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-val\": controlId,\n    className: _ControlDetailPanel[\"default\"].copy,\n    onClick: onCopy\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0178'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, gridType.current ? \"\".concat(controlType, \"(\").concat(gridType.current, \")\") : controlType), attachViewId !== 'LookUpView' && detailData.map(function (data, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ControlDetailPanel[\"default\"].content,\n      key: index\n    }, data.content);\n  }))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].right\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"ul\", {\n    style: {\n      marginRight: 3\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].title\n  }, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0064')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0179')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0180')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0176')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].label\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0177'))), /*#__PURE__*/_react[\"default\"].createElement(\"ul\", null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].title\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, Object.values(status)[0]), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, pageId), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-val\": pageId,\n    className: _ControlDetailPanel[\"default\"].copy,\n    onClick: onCopy\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0178'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, formName), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"].content\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, billFormId ? \"\".concat(formId, \"(\").concat(billFormId, \")\") : formId), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-val\": billFormId ? \"\".concat(formId, \"(\").concat(billFormId, \")\") : formId,\n    className: _ControlDetailPanel[\"default\"].copy,\n    onClick: onCopy\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0178')))))), createGrid);\n}\nfunction ControlDetail(_ref2) {\n  var controlId = _ref2.controlId,\n    controlType = _ref2.controlType,\n    pageId = _ref2.pageId;\n  // 实时获取控件数据\n  var detailData = (0, _controlUtils.getControlData)(pageId, controlId, controlType);\n  return detailData.map(function (data, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(ControlDetailItem, {\n      key: index,\n      label: data.label,\n      content: data.content\n    });\n  });\n}\nfunction ControlDetailItem(_ref3) {\n  var label = _ref3.label,\n    content = _ref3.content;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"]['detail-item']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"]['detail-item-key']\n  }, label), content !== undefined && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ControlDetailPanel[\"default\"]['detail-item-content']\n  }, content));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ControlDetailPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DirectivePanel.js":
/*!****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DirectivePanel.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = DirectivePanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _DirectivePanel = _interopRequireDefault(__webpack_require__(/*! ./DirectivePanel.less */ \"./src/service/common/sysinfo/web/panel/DirectivePanel.less\"));\nvar _classnames8 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ./../../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _parseDirective = _interopRequireDefault(__webpack_require__(/*! ./parseDirective */ \"./src/service/common/sysinfo/web/panel/parseDirective.js\"));\nvar _JsonPanel = _interopRequireDefault(__webpack_require__(/*! ./JsonPanel.js */ \"./src/service/common/sysinfo/web/panel/JsonPanel.js\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-07 09:58:38\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-06-16 11:16:07\n * @Description: 页面指令展示、分析面板\n */\nfunction DirectivePanel(_ref) {\n  var _pages$;\n  var id = _ref.id,\n    panel = _ref.panel,\n    data = _ref.data,\n    attachViewId = _ref.attachViewId;\n  var _useReducer = (0, _react.useReducer)(function (x) {\n      return x + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var _useState = (0, _react.useState)([]),\n    _useState2 = _slicedToArray(_useState, 2),\n    directiveList = _useState2[0],\n    setDirectiveL = _useState2[1];\n  var context = (0, _react.useContext)(_SysContext[\"default\"]);\n  var _useState3 = (0, _react.useState)(0),\n    _useState4 = _slicedToArray(_useState3, 2),\n    activeIndex = _useState4[0],\n    setActiveIndex = _useState4[1];\n  var parsePrompt$ = (0, _react.useRef)(true); // 以后可以配置按需分析指令\n  var lazyParse$ = (0, _react.useRef)([]); // 需要延时解析的指令数组\n  (0, _react.useEffect)(function () {\n    var time = setInterval(function () {\n      var isRefresh = false;\n      if (lazyParse$.current.length > 0) {\n        lazyParse$.current.forEach(function (data) {\n          if ((0, _parseDirective[\"default\"])(data).isParse) {\n            isRefresh = true;\n          }\n        });\n        lazyParse$.current = lazyParse$.current.filter(function (data) {\n          return !data.isParse;\n        });\n        if (isRefresh) {\n          forceUpdate();\n        }\n      }\n    }, 300);\n    return function () {\n      return window.clearInterval(time);\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    var _context$getState;\n    var cacherData = context === null || context === void 0 || (_context$getState = context.getState()) === null || _context$getState === void 0 || (_context$getState = _context$getState.cacher) === null || _context$getState === void 0 ? void 0 : _context$getState.DirectivePanel;\n    if (cacherData) {\n      setDirectiveL(cacherData);\n    }\n    var removeListener = (0, _GlobalDataCacher.addDataChangeListener)(_symbolConst.KEY_PAGE_DIRECTIVE, function (directiveData) {\n      if (parsePrompt$.current) {\n        var parseData = (0, _parseDirective[\"default\"])(directiveData);\n        if (!parseData.isParse) {\n          lazyParse$.current.push(parseData);\n        }\n        setDirectiveL(function (data) {\n          return [].concat(_toConsumableArray(data), [parseData]);\n        });\n      }\n    });\n    return function () {\n      return removeListener();\n    };\n  }, []);\n  var onClick = function onClick(event) {\n    var deleteIndex = event.target.dataset.deleteIndex;\n    if (deleteIndex !== undefined) {\n      setDirectiveL(function (data) {\n        return data.filter(function (_, index) {\n          return '' + index !== deleteIndex;\n        });\n      });\n      return;\n    }\n    if (event.target.dataset.itemIndex !== undefined) {\n      var index = parseInt(event.target.dataset.itemIndex);\n      setActiveIndex(index);\n      var directiveResult = directiveList[index];\n      if (!directiveResult.isParse) {\n        (0, _parseDirective[\"default\"])(directiveResult);\n      }\n      // setDetailData(directiveResult)\n    }\n  };\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    searchVal = _useState6[0],\n    setSearchVal = _useState6[1];\n  var handleSearchChange = (0, _react.useCallback)(function (val) {\n    setSearchVal(val);\n  });\n  var directiveL = (0, _react.useMemo)(function () {\n    if (!searchVal) return directiveList;\n    return directiveList.filter(function (_ref2) {\n      var pages = _ref2.pages;\n      return pages.find(function (_ref3) {\n        var _caption$toLocaleLowe, _searchVal$toLocaleLo;\n        var caption = _ref3.caption;\n        return (caption === null || caption === void 0 || (_caption$toLocaleLowe = caption.toLocaleLowerCase) === null || _caption$toLocaleLowe === void 0 ? void 0 : _caption$toLocaleLowe.call(caption).indexOf(searchVal === null || searchVal === void 0 || (_searchVal$toLocaleLo = searchVal.toLocaleLowerCase) === null || _searchVal$toLocaleLo === void 0 ? void 0 : _searchVal$toLocaleLo.call(searchVal))) !== -1;\n      });\n    });\n  }, [searchVal, directiveList]);\n  var clear = (0, _react.useCallback)(function () {\n    setDirectiveL(function () {\n      return [];\n    });\n  }, []);\n  function formatDate(str) {\n    return str.split(':').map(function (item) {\n      if (+item < 10) {\n        return '0' + +item;\n      }\n      return item;\n    }).join(':');\n  }\n  // const directiveListClone = useMemo(() => {\n  //   const list = _.cloneDeep(directiveList)\n  //   list.forEach((item) => {\n  //     delete item.isParse\n  //     delete item.time\n  //   })\n  //   return list\n  // }, [directiveList])\n\n  var _ref4 = directiveList[activeIndex] || {},\n    info = _ref4.info,\n    warn = _ref4.warn,\n    error = _ref4.error,\n    pages = _ref4.pages,\n    isParse = _ref4.isParse;\n  var json = pages ? {\n    data: pages === null || pages === void 0 || (_pages$ = pages[0]) === null || _pages$ === void 0 ? void 0 : _pages$.data\n  } : {};\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(SidePanel, {\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearchChange,\n    className: _DirectivePanel[\"default\"].searchClass,\n    onlyShowInput: true,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0082')\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].refresh,\n    onClick: clear,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0083')\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\"\n  }))), directiveL.map(function (directiveResult, index) {\n    var className = (0, _classnames8[\"default\"])(_DirectivePanel[\"default\"]['side-panel-item'], _defineProperty({}, _DirectivePanel[\"default\"].active, activeIndex === index));\n    var caption = directiveResult.pages.reduce(function (captionArr, item) {\n      captionArr.push(item.caption);\n      return captionArr;\n    }, []).join('▪');\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: className,\n      \"data-item-index\": index,\n      key: index\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].caption\n    }, caption, directiveResult.error.length > 0 && /*#__PURE__*/_react[\"default\"].createElement(ErrorIcon, null), directiveResult.warn.length > 0 && /*#__PURE__*/_react[\"default\"].createElement(WarnIcon, null), directiveResult.isParse === false && /*#__PURE__*/_react[\"default\"].createElement(NoParseIcon, null)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].time\n    }, formatDate(directiveResult.time)));\n  })), pages && /*#__PURE__*/_react[\"default\"].createElement(MessagePanel, {\n    info: info,\n    warn: warn,\n    error: error,\n    pages: pages,\n    isParse: isParse\n  }));\n}\nfunction MessagePanel(_ref5) {\n  var info = _ref5.info,\n    warn = _ref5.warn,\n    error = _ref5.error,\n    pages = _ref5.pages,\n    isParse = _ref5.isParse;\n  if (!isParse) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].noData\n    }, (0, _intlApi.getLangMsg)('SysInfo.key0169'));\n  }\n  if (pages.length === 0) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].noData\n    }, (0, _intlApi.getLangMsg)('SysInfo.key0170'));\n  }\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].jsonPanel\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].analyst\n  }, /*#__PURE__*/_react[\"default\"].createElement(Message, {\n    type: \"info\",\n    data: info\n  }), /*#__PURE__*/_react[\"default\"].createElement(Message, {\n    type: \"warn\",\n    data: warn\n  }), /*#__PURE__*/_react[\"default\"].createElement(Message, {\n    type: \"error\",\n    data: error\n  }), !(info !== null && info !== void 0 && info.length) > 0 && !(warn !== null && warn !== void 0 && warn.length) > 0 && !(error !== null && error !== void 0 && error.length) > 0 && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].noError\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-zhuangtai_wancheng\"\n  }), (0, _intlApi.getLangMsg)('SysInfo.key0171'))), pages.map(function (page) {\n    var _page$pageId;\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].detail,\n      key: page.pageId\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _DirectivePanel[\"default\"].title\n    }, \" \", \"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0075'), \"(\").concat(page.caption, \")\")), /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0075'), \":\").concat((_page$pageId = page.pageId) !== null && _page$pageId !== void 0 ? _page$pageId : '')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].json\n    }, /*#__PURE__*/_react[\"default\"].createElement(_JsonPanel[\"default\"], {\n      data: page.data\n    })));\n  }));\n}\nfunction Message(_ref6) {\n  var data = _ref6.data,\n    type = _ref6.type;\n  if (!(data !== null && data !== void 0 && data.length) > 0) return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null);\n  var text = \"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0086')).concat(data.length).concat((0, _intlApi.getLangMsg)('SysInfo.key0087')).concat({\n    info: (0, _intlApi.getLangMsg)('SysInfo.key0088'),\n    warn: (0, _intlApi.getLangMsg)('SysInfo.key0089'),\n    error: (0, _intlApi.getLangMsg)('SysInfo.key0090')\n  }[type]);\n  var _useState7 = (0, _react.useState)(true),\n    _useState8 = _slicedToArray(_useState7, 2),\n    flod = _useState8[0],\n    setFlod = _useState8[1];\n  var handleFoldClick = function handleFoldClick() {\n    setFlod(!flod);\n  };\n  var flodClass = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _DirectivePanel[\"default\"].flod, true), _DirectivePanel[\"default\"].unFlod, !flod), 'kdfont kdfont-shouqi7');\n  var contentClass = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty({}, _DirectivePanel[\"default\"].content, true), _DirectivePanel[\"default\"].hide, flod));\n  var container = (0, _classnames8[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _DirectivePanel[\"default\"].container, true), _DirectivePanel[\"default\"].info, type === 'info'), _DirectivePanel[\"default\"].warn, type === 'warn'), _DirectivePanel[\"default\"].error, type === 'error'));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: container,\n    onClick: flod && handleFoldClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"].header\n  }, type === 'info' && /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _DirectivePanel[\"default\"].icon, true), 'kdfont kdfont-huaban3'),\n    style: {\n      color: '#85b8ff'\n    }\n  }), type === 'warn' && /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _DirectivePanel[\"default\"].icon, true), 'kdfont kdfont-jinggao-mian'),\n    style: {\n      color: '#ff991c'\n    }\n  }), type === 'error' && /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _DirectivePanel[\"default\"].icon, true), 'kdfont kdfont-qingkong'),\n    style: {\n      color: '#FB2323'\n    }\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _DirectivePanel[\"default\"].text\n  }, text), /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: flodClass,\n    onClick: handleFoldClick\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: contentClass\n  }, data.map(function (text, i) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _DirectivePanel[\"default\"].msg,\n      key: i\n    }, i + 1 + '.' + text);\n  })));\n}\nfunction SidePanel(_ref7) {\n  var children = _ref7.children,\n    onClick = _ref7.onClick;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePanel[\"default\"]['side-panel'],\n    onClick: onClick\n  }, children);\n}\nfunction ErrorIcon() {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    style: {\n      color: 'red',\n      paddingLeft: 5,\n      fontSize: 12\n    },\n    className: \"kdfont kdfont-liebiaozhuangtailan\"\n  });\n}\nfunction WarnIcon() {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    style: {\n      color: '#e5aa3e',\n      paddingLeft: 5,\n      fontSize: 12\n    },\n    className: \"kdfont kdfont-liebiaozhuangtailan\"\n  });\n}\nfunction NoParseIcon() {\n  return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    style: {\n      color: 'darkgray',\n      paddingLeft: 5,\n      fontSize: 12\n    },\n    className: \"kdfont kdfont-tishixinxi_l\"\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DirectivePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.js":
/*!***************************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.js ***!
  \***************************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = DirectivePerformancePanel;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _usePerformanceObserve = _interopRequireDefault(__webpack_require__(/*! ./../../use/usePerformanceObserve */ \"./src/service/common/sysinfo/use/usePerformanceObserve.js\"));\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable */ \"./src/service/common/sysinfo/web/panel/SysTable.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _DirectivePerformancePanel = _interopRequireDefault(__webpack_require__(/*! ./DirectivePerformancePanel.less */ \"./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-23 15:13:46\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-14 10:45:46\n * @Description: 指令以及控件方法性能监控\n */\nfunction DirectivePerformancePanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var _useReducer = (0, _react.useReducer)(function (state) {\n      return state + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var _useState = (0, _react.useState)({}),\n    _useState2 = _slicedToArray(_useState, 2),\n    sortInfo = _useState2[0],\n    setSortInfo = _useState2[1];\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = _slicedToArray(_useState3, 2),\n    filterValue = _useState4[0],\n    setFielterValue = _useState4[1];\n  var items$ = (0, _react.useRef)([]);\n  var OnCallBack = function OnCallBack(entries) {\n    var oldLen = items.length;\n    var list = entries.filter(function (item) {\n      return item.name.startsWith('reduce-$$-') || item.name.startsWith('directives-$$-');\n    });\n    list.forEach(function (item) {\n      var _item$name$split = item.name.split('-$$-'),\n        _item$name$split2 = _slicedToArray(_item$name$split, 2),\n        name = _item$name$split2[0],\n        objectString = _item$name$split2[1];\n      var detail = JSON.parse(objectString);\n      if (name === 'reduce') {\n        items$.current.push({\n          duration: item.duration,\n          methodName: detail.methodName,\n          pageId: detail.pageId\n        });\n      } else {\n        items$.current.push({\n          duration: item.duration,\n          methodName: detail.args[0],\n          pageId: detail.pageId\n        });\n      }\n    });\n    if (list.length > 0 && items$.current.length !== oldLen) {\n      forceUpdate(); // 以后增加不可见不刷新\n    }\n  };\n  var clear = function clear(event) {\n    window.performance.getEntriesByType('measure').forEach(function (entry) {\n      var measureName = entry.name;\n      if (measureName.startsWith('reduce-$$-') || measureName.startsWith('directives-$$-')) {\n        window.performance.clearMeasures(measureName);\n      }\n    });\n    items$.current = [];\n    forceUpdate();\n  };\n  (0, _usePerformanceObserve[\"default\"])({\n    callback: OnCallBack\n  });\n  var getValue = function getValue(key, data) {\n    var value;\n    var formName = (0, _appModelFunction.getFormCaption)(data.pageId)((0, _global.getGlobalState)()) || data.pageId;\n    var methodName = data.methodName;\n    switch (key) {\n      case 'methodName':\n        value = methodName;\n        break;\n      case 'duration':\n        value = formName;\n        break;\n      case 'time':\n        value = data.duration;\n        break;\n      default:\n        break;\n    }\n    return value;\n  };\n  var headers = [{\n    code: 'duration',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0091'),\n    width: 160,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }, {\n    code: 'methodName',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0092'),\n    width: 400,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }, {\n    code: 'time',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0093'),\n    width: 103,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    },\n    align: 'right'\n  }];\n  var createRowData = function createRowData(data) {\n    var newData = [];\n    data.forEach(function (row, index) {\n      var duration = row.duration,\n        methodName = row.methodName,\n        pageId = row.pageId;\n      newData.push({\n        time: duration.toFixed(2),\n        methodName: methodName,\n        duration: (0, _appModelFunction.getFormCaption)(pageId)((0, _global.getGlobalState)()) || pageId\n      });\n    });\n    return newData;\n  };\n  var items = (0, _react.useMemo)(function () {\n    var data = items$.current.filter(function (item) {\n      var _item$methodName$toLo, _item$methodName, _filterValue$toLocale, _getFormCaption, _getFormCaption$toLoc, _filterValue$toLocale2;\n      return ((_item$methodName$toLo = (_item$methodName = item.methodName).toLocaleLowerCase) === null || _item$methodName$toLo === void 0 ? void 0 : _item$methodName$toLo.call(_item$methodName).includes(filterValue === null || filterValue === void 0 || (_filterValue$toLocale = filterValue.toLocaleLowerCase) === null || _filterValue$toLocale === void 0 ? void 0 : _filterValue$toLocale.call(filterValue))) || ((_getFormCaption = (0, _appModelFunction.getFormCaption)(item.pageId)((0, _global.getGlobalState)())) === null || _getFormCaption === void 0 || (_getFormCaption$toLoc = _getFormCaption.toLocaleLowerCase) === null || _getFormCaption$toLoc === void 0 || (_getFormCaption$toLoc = _getFormCaption$toLoc.call(_getFormCaption)) === null || _getFormCaption$toLoc === void 0 ? void 0 : _getFormCaption$toLoc.includes(filterValue === null || filterValue === void 0 || (_filterValue$toLocale2 = filterValue.toLocaleLowerCase) === null || _filterValue$toLocale2 === void 0 ? void 0 : _filterValue$toLocale2.call(filterValue)));\n    });\n    var target = sortInfo.target,\n      status = sortInfo.status;\n    if (status === 0) return createRowData(data);\n    var _data = (0, _lodash.cloneDeep)(data);\n    return createRowData(_data.sort(function (a, b) {\n      var aValue = getValue(target, a);\n      var bValue = getValue(target, b);\n      if (typeof aValue === 'number' || typeof bValue === 'number') {\n        return status === 1 ? aValue - bValue : bValue - aValue;\n      } else {\n        return status === 1 ? (aValue + '').localeCompare(bValue) : (bValue + '').localeCompare(aValue);\n      }\n    }));\n  }, [sortInfo.target, sortInfo.status, filterValue, items$.current.length]);\n  var onSort = (0, _react.useCallback)(function (target, status) {\n    setSortInfo({\n      target: target,\n      status: status\n    });\n  }, []);\n  var handleSearchChange = function handleSearchChange(val) {\n    setFielterValue(val);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePerformancePanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePerformancePanel[\"default\"].search\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0094'),\n    onChange: handleSearchChange,\n    className: _DirectivePerformancePanel[\"default\"].searchClass\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DirectivePerformancePanel[\"default\"].clear\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0095'),\n    onClick: clear\n  })), /*#__PURE__*/_react[\"default\"].createElement(_SysTable[\"default\"], {\n    headers: headers,\n    rows: items,\n    onSort: onSort,\n    id: \"DirectivePerformance\"\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DragBall.js":
/*!**********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DragBall.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = DragBall;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _DragBall = _interopRequireDefault(__webpack_require__(/*! ./DragBall.less */ \"./src/service/common/sysinfo/web/panel/DragBall.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-03 09:23:44\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-14 11:21:41\n * @Description: 拖拽球\n */\n\nfunction DragBall(_ref) {\n  var onDrop = _ref.onDrop,\n    attachViewId = _ref.attachViewId,\n    panelId = _ref.panelId;\n  var ele$ = (0, _react.useRef)();\n  var parent$ = (0, _react.useRef)();\n  var state$ = (0, _react.useRef)({});\n  (0, _react.useEffect)(function () {\n    parent$.current = ele$.current.parentElement;\n    document.addEventListener('mouseup', onMouseUp, true);\n    document.addEventListener('mouseleave', onMouseUp);\n    document.addEventListener('mousemove', onMove, true);\n    return function () {\n      document.removeEventListener('mouseup', onMouseUp, true);\n      document.removeEventListener('mouseleave', onMouseUp);\n      document.removeEventListener('mousemove', onMove, true);\n    };\n  }, []);\n  var onMouseDown = (0, _react.useCallback)(function (event) {\n    event.stopPropagation();\n    event.preventDefault();\n    state$.current = {};\n    var state = state$.current;\n    state.isDrag = true;\n    state.dragEle = parent$.current.cloneNode(true);\n    var _parent$$current$getB = parent$.current.getBoundingClientRect(),\n      left = _parent$$current$getB.left,\n      top = _parent$$current$getB.top,\n      width = _parent$$current$getB.width,\n      height = _parent$$current$getB.height;\n    state.originLeft = left;\n    state.originTop = top;\n    state.startX = event.clientX;\n    state.startY = event.clientY;\n    state.dragEle.style.cssText = \"position:fixed;z-index:9999;width:\".concat(width, \"px;height:\").concat(height, \"px;top:\").concat(top, \"px;left:\").concat(left, \"px;border:1px solid darkgray;\");\n    document.body.appendChild(state.dragEle);\n    parent$.current.style.opacity = '0.3';\n  }, []);\n  var onMouseUp = (0, _react.useCallback)(function (event) {\n    var state = state$.current;\n    if (state.isDrag) {\n      state.isDrag = false;\n      var panelEle = event.target.parentElement;\n      if (panelEle) {\n        var parentEleRect = panelEle.getBoundingClientRect();\n        document.body.removeChild(state.dragEle);\n        parent$.current.style.opacity = '1';\n        onDrop && onDrop(event, {\n          parentEleRect: parentEleRect,\n          dragViewId: attachViewId,\n          dragPanelId: panelId\n        });\n      } else {\n        document.body.removeChild(state.dragEle);\n        parent$.current.style.opacity = '1';\n      }\n    }\n  }, []);\n  var onMove = (0, _react.useCallback)(function (event) {\n    var state = state$.current;\n    if (state.isDrag) {\n      event.stopPropagation();\n      event.preventDefault();\n      var offsetX = event.clientX - state.startX;\n      var offsetY = event.clientY - state.startY;\n      state.dragEle.style.left = state.originLeft + offsetX + 'px';\n      state.dragEle.style.top = state.originTop + offsetY + 'px';\n    }\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _DragBall[\"default\"].root,\n    ref: ele$,\n    onMouseDown: onMouseDown\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DragBall.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ElementPanel.js":
/*!**************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ElementPanel.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.Summary = Summary;\nexports[\"default\"] = ElementPanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.entries.js */ \"../../node_modules/core-js/modules/es.object.entries.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"../../node_modules/core-js/modules/es.string.trim.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames7 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _global = _interopRequireWildcard(__webpack_require__(/*! @/global */ \"./src/global/index.js\"));\nvar _ElementSizeDiagram = _interopRequireDefault(__webpack_require__(/*! ./ElementSizeDiagram */ \"./src/service/common/sysinfo/web/panel/ElementSizeDiagram.js\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _pageUtils = __webpack_require__(/*! ../../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _ELementPanel = _interopRequireDefault(__webpack_require__(/*! ./ELementPanel.less */ \"./src/service/common/sysinfo/web/panel/ELementPanel.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-25 15:37:52\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-29 16:17:44\n * @Description: 元素详细信息面板\n */\nfunction ElementPanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var element = data;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"].root\n  }, (0, _pageUtils.isElement)(data) && /*#__PURE__*/_react[\"default\"].createElement(PropertyView, {\n    element: element\n  }));\n}\nfunction getElementProps(ele, accept) {\n  var props = {};\n  var style = window.getComputedStyle(ele);\n  for (var i = 0; i < style.length - 1; i++) {\n    var name = style[i];\n    var value = style[name];\n    if (!accept || accept && accept(value)) {\n      props[name] = style[name];\n    }\n  }\n  return props;\n}\nvar GroupLayout = ['align-content', 'align-items', 'align-self', 'block-size', 'bottom', 'box-sizing', 'display', 'flex-basis', 'flex-direction', 'flex-grow', 'flex-shrink', 'flex-wrap', 'float', 'height', 'justify-content', 'left', 'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'max-width', 'min-height', 'order', 'overflow-x', 'overflow-y', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'top', 'visibility', 'width', 'z-index', 'border-bottom-right-radius', 'border-top-left-radius', 'border-top-right-radius'];\nvar GroupText = ['direction', 'font-family', 'font-size', 'font-stretch', 'font-style', 'font-weight', 'line-height', 'tab-size', 'text-align', 'text-align-last', 'text-overflow', 'white-space', 'word-break', 'word-space', 'border-bottom-left-radius'];\nvar GroupAppearance = ['color', 'background-color', 'background-image', 'background-size', 'border-bottom-color', 'border-bottom-style', 'border-bottom-width', 'border-left-color', 'border-left-style', 'border-left-width', 'border-right-color', 'border-right-style', 'border-right-width', 'border-top-color', 'border-top-style', 'border-top-width', 'box-shadow', 'cursor', 'outline-color', 'outline-offset', 'outline-style', 'outline-width'];\nvar PropertyView = /*#__PURE__*/(0, _react.memo)(function (_ref2) {\n  var element = _ref2.element;\n  var _useState = (0, _react.useState)(true),\n    _useState2 = _slicedToArray(_useState, 2),\n    isGroup = _useState2[0],\n    setGroup = _useState2[1];\n  var _useState3 = (0, _react.useState)(true),\n    _useState4 = _slicedToArray(_useState3, 2),\n    showAll = _useState4[0],\n    setShowAll = _useState4[1];\n  var propsObject = getElementProps(element);\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    searchValue = _useState6[0],\n    setSearchVal = _useState6[1];\n  var defaultElementStyleValues = (0, _react.useMemo)(function () {\n    if (!_global[\"default\"][_global.IS_IE]) {\n      var defaultValues = {};\n      // const cloneElement = element.cloneNode()\n      var cloneElement = document.createElement(element.nodeName);\n      cloneElement.style.all = 'initial';\n      document.body.appendChild(cloneElement);\n      var _styles = window.getComputedStyle(cloneElement);\n      GroupLayout.slice().concat(GroupText).concat(GroupAppearance).forEach(function (key) {\n        defaultValues[key] = _styles[key];\n      });\n      document.body.removeChild(cloneElement);\n      return defaultValues;\n    }\n    return null;\n  }, [element]);\n  var handleSearchChange = function handleSearchChange(val) {\n    setSearchVal(val);\n  };\n  var Selector = /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"].selector\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"]['selector-title']\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearchChange,\n    className: _ELementPanel[\"default\"].searchClass,\n    onlyShowInput: true,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0096'),\n    icon: \"kdfont kdfont-guolv_xian\"\n  })), /*#__PURE__*/_react[\"default\"].createElement(Checkbox, {\n    checked: isGroup,\n    onClick: function onClick() {\n      return setGroup(!isGroup);\n    },\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0097')\n  }));\n  var ownerProps = element.style.cssText.split(';').map(function (kv) {\n    return kv.trim().split(':')[0];\n  }).filter(Boolean);\n  var entries = Object.entries(getCssVariablesObject()); // [[k:v],...]\n  var csskeys = [];\n  entries.forEach(function (kv) {\n    var _kv = _slicedToArray(kv, 2),\n      key = _kv[0],\n      value = _kv[1];\n    propsObject[key] = value;\n    csskeys.push(key);\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"].ElementSize\n  }, /*#__PURE__*/_react[\"default\"].createElement(_ElementSizeDiagram[\"default\"], {\n    element: element\n  })), Selector, !isGroup && /*#__PURE__*/_react[\"default\"].createElement(NoGroup, {\n    defauleValues: defaultElementStyleValues,\n    groupKeys: [].concat(GroupLayout, GroupText, GroupAppearance, csskeys),\n    showAll: showAll,\n    propsObject: propsObject,\n    ownerProps: ownerProps,\n    searchValue: searchValue\n  }), isGroup && /*#__PURE__*/_react[\"default\"].createElement(Group, {\n    defauleValues: defaultElementStyleValues,\n    name: \"Layout\",\n    groupKeys: GroupLayout,\n    showAll: showAll,\n    propsObject: propsObject,\n    ownerProps: ownerProps,\n    searchValue: searchValue\n  }), isGroup && /*#__PURE__*/_react[\"default\"].createElement(Group, {\n    defauleValues: defaultElementStyleValues,\n    name: \"Text\",\n    groupKeys: GroupText,\n    showAll: showAll,\n    propsObject: propsObject,\n    ownerProps: ownerProps,\n    searchValue: searchValue\n  }), isGroup && /*#__PURE__*/_react[\"default\"].createElement(Group, {\n    defauleValues: defaultElementStyleValues,\n    name: \"Appearance\",\n    groupKeys: GroupAppearance,\n    showAll: showAll,\n    propsObject: propsObject,\n    ownerProps: ownerProps,\n    searchValue: searchValue\n  }), isGroup && /*#__PURE__*/_react[\"default\"].createElement(CssVariablesGroup, {\n    searchValue: searchValue\n  }));\n  //   return <Group groupKeys={GroupLayout} propsObject={propsObject} />\n});\nvar Checkbox = function Checkbox(_ref3) {\n  var checked = _ref3.checked,\n    onClick = _ref3.onClick,\n    title = _ref3.title;\n  var checkboxBg = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _ELementPanel[\"default\"].checkboxBg, true), _ELementPanel[\"default\"].hideCheckboxBg, checked));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"label\", {\n    style: {\n      position: 'relative'\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: checkboxBg\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    type: \"checkbox\",\n    checked: checked,\n    onClick: onClick\n  }), title);\n};\nvar isElementDefaultValue = function isElementDefaultValue(key, value, defauleValues) {\n  if (defauleValues) {\n    var defauleValue = defauleValues[key];\n    if (key === 'block-size' || value === defauleValue || ['0px', 'auto'].includes(value) && ['0px', 'auto'].includes(defauleValue)) {\n      return true;\n    }\n  }\n};\nvar NoGroup = /*#__PURE__*/(0, _react.memo)(function (_ref4) {\n  var showAll = _ref4.showAll,\n    groupKeys = _ref4.groupKeys,\n    propsObject = _ref4.propsObject,\n    ownerProps = _ref4.ownerProps,\n    searchValue = _ref4.searchValue,\n    defauleValues = _ref4.defauleValues;\n  if (!showAll) {\n    groupKeys = groupKeys.filter(function (key) {\n      return ownerProps.find(function (ownerPropName) {\n        return key.startsWith(ownerPropName);\n      });\n    });\n  }\n  groupKeys = searchValue ? groupKeys.filter(function (key) {\n    return key.indexOf(searchValue) !== -1 || propsObject[key] && propsObject[key].indexOf(searchValue) !== -1;\n  }) : groupKeys;\n  var sortKeys = groupKeys.sort(function (a, b) {\n    if (a.includes('--') && !b.includes('--')) {\n      return 1;\n    }\n    if (!a.includes('--') && b.includes('--')) {\n      return -1;\n    }\n    if (a > b) {\n      return 1;\n    }\n    if (a < b) {\n      return -1;\n    }\n    return 0;\n  });\n  return sortKeys.map(function (key) {\n    var isColor = isColorValue(key, propsObject[key]);\n    var isDefauleValue = isElementDefaultValue(key, propsObject[key], defauleValues);\n    var className = (0, _classnames7[\"default\"])(_ELementPanel[\"default\"]['group-item'], _defineProperty({}, _ELementPanel[\"default\"]['default-value'], isDefauleValue));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: key,\n      className: className\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ELementPanel[\"default\"]['group-item-name']\n    }, key), /*#__PURE__*/_react[\"default\"].createElement(ValueRender, {\n      value: propsObject[key],\n      isColor: isColor\n    }));\n  });\n});\nfunction Summary(_ref5) {\n  var name = _ref5.name,\n    onClick = _ref5.onClick,\n    isPackUp = _ref5.isPackUp;\n  var summary = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _ELementPanel[\"default\"].summary, true), _ELementPanel[\"default\"].iconRotate, isPackUp));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: summary,\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: _ELementPanel[\"default\"].icon\n  }), name);\n}\nvar Group = /*#__PURE__*/(0, _react.memo)(function (_ref6) {\n  var name = _ref6.name,\n    showAll = _ref6.showAll,\n    groupKeys = _ref6.groupKeys,\n    propsObject = _ref6.propsObject,\n    ownerProps = _ref6.ownerProps,\n    searchValue = _ref6.searchValue,\n    defauleValues = _ref6.defauleValues;\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    isPackUp = _useState8[0],\n    setIsPackUp = _useState8[1];\n  var renderKeys = groupKeys;\n  if (!showAll) {\n    renderKeys = renderKeys.filter(function (key) {\n      return ownerProps.find(function (ownerPropName) {\n        return key.startsWith(ownerPropName);\n      });\n    });\n  }\n  renderKeys = searchValue ? groupKeys.filter(function (key) {\n    var _propsObject$key;\n    return key.indexOf(searchValue) !== -1 || propsObject[key] && ((_propsObject$key = propsObject[key]) === null || _propsObject$key === void 0 ? void 0 : _propsObject$key.indexOf(searchValue)) !== -1;\n  }) : groupKeys;\n  var handleClick = function handleClick() {\n    setIsPackUp(!isPackUp);\n  };\n  var group = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _ELementPanel[\"default\"].group, true), _ELementPanel[\"default\"].hide, isPackUp));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"].groupRoot\n  }, /*#__PURE__*/_react[\"default\"].createElement(Summary, {\n    name: name,\n    onClick: handleClick,\n    isPackUp: isPackUp\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: group\n  }, renderKeys.map(function (key) {\n    var isColor = isColorValue(key, propsObject[key]);\n    var isDefauleValue = isElementDefaultValue(key, propsObject[key], defauleValues);\n    var className = (0, _classnames7[\"default\"])(_ELementPanel[\"default\"]['group-item'], _defineProperty({}, _ELementPanel[\"default\"]['default-value'], isDefauleValue));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: key,\n      className: className\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ELementPanel[\"default\"]['group-item-name']\n    }, key), /*#__PURE__*/_react[\"default\"].createElement(ValueRender, {\n      value: propsObject[key],\n      isColor: isColor\n    }));\n  })));\n});\nvar ValueRender = function ValueRender(_ref7) {\n  var value = _ref7.value,\n    isColor = _ref7.isColor;\n  if (isColor) {\n    var colorValue = computeColor(value);\n    var isOpacity = colorValue === null || colorValue === void 0 ? void 0 : colorValue.startsWith('rgba(');\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ELementPanel[\"default\"]['group-item-value']\n    }, isOpacity ? /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ELementPanel[\"default\"].opacity\n    }) : /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _ELementPanel[\"default\"].color,\n      style: {\n        backgroundColor: colorValue\n      }\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _ELementPanel[\"default\"].value\n    }, value));\n  }\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"]['group-item-value']\n  }, value);\n};\nvar isColorValue = function isColorValue(key) {\n  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  if (key.startsWith('--') && key.includes('color') || String(value).startsWith('rgb') || String(value).startsWith('#')) {\n    return true;\n  }\n  return false;\n};\nvar computeColor = function computeColor(colorString) {\n  return colorString;\n};\nvar CssVariablesGroup = /*#__PURE__*/(0, _react.memo)(function (_ref8) {\n  var searchValue = _ref8.searchValue;\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = _slicedToArray(_useState9, 2),\n    isPackUp = _useState10[0],\n    setIsPackUp = _useState10[1];\n  var handleClick = function handleClick() {\n    setIsPackUp(!isPackUp);\n  };\n  var group = (0, _classnames7[\"default\"])(_defineProperty(_defineProperty({}, _ELementPanel[\"default\"].group, true), _ELementPanel[\"default\"].hide, isPackUp));\n  var properObject = getCssVariablesObject();\n  var entries = Object.entries(properObject); // [[k:v],...]\n  var filterEntries = searchValue ? entries.filter(function (kv) {\n    var _key$toLocaleLowerCas, _value$toLocaleLowerC;\n    var _kv2 = _slicedToArray(kv, 2),\n      key = _kv2[0],\n      value = _kv2[1];\n    return ((_key$toLocaleLowerCas = key.toLocaleLowerCase) === null || _key$toLocaleLowerCas === void 0 ? void 0 : _key$toLocaleLowerCas.call(key).includes(searchValue.trim())) || ((_value$toLocaleLowerC = value.toLocaleLowerCase) === null || _value$toLocaleLowerC === void 0 ? void 0 : _value$toLocaleLowerC.call(value).includes(searchValue.trim()));\n  }) : entries;\n  if (!(filterEntries !== null && filterEntries !== void 0 && filterEntries.length)) return /*#__PURE__*/_react[\"default\"].createElement(\"dev\", null);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ELementPanel[\"default\"].groupRoot\n  }, /*#__PURE__*/_react[\"default\"].createElement(Summary, {\n    name: \"CSS Variables\",\n    onClick: handleClick,\n    isPackUp: isPackUp\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: group\n  }, filterEntries.map(function (kv) {\n    var _kv3 = _slicedToArray(kv, 2),\n      key = _kv3[0],\n      value = _kv3[1];\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      key: key,\n      className: _ELementPanel[\"default\"]['group-item']\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _ELementPanel[\"default\"]['group-item-name']\n    }, key), /*#__PURE__*/_react[\"default\"].createElement(ValueRender, {\n      value: value,\n      isColor: isColorValue(key, value)\n    }));\n  })));\n});\nfunction getCssVariablesObject() {\n  var object = {};\n  var cssText = document.documentElement.style.cssText;\n  cssText.split(';').sort().forEach(function (kv) {\n    var _kv$split = kv.split(':'),\n      _kv$split2 = _slicedToArray(_kv$split, 2),\n      key = _kv$split2[0],\n      value = _kv$split2[1];\n    if (key && value) {\n      object[key.trim()] = value.trim();\n    }\n  });\n  return object;\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ElementPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ElementSizeDiagram.js":
/*!********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ElementSizeDiagram.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nfunction _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); }\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = ElementSizeDiagram;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.parse-float.js */ \"../../node_modules/core-js/modules/es.parse-float.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _ElementSizeDiagram = _interopRequireDefault(__webpack_require__(/*! ./ElementSizeDiagram.less */ \"./src/service/common/sysinfo/web/panel/ElementSizeDiagram.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-28 15:17:03\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-29 11:11:48\n * @Description: 元素大小尺寸示意图，参照chrome\n */\nvar COLOR_GRAY = 'gray';\nfunction ElementSizeDiagram(_ref) {\n  var element = _ref.element;\n  var style = window.getComputedStyle(element);\n  var position = style.position;\n  var left = style.left === '0px' ? '0' : style.left;\n  var top = style.top === '0px' ? '0' : style.top;\n  var right = style.right === '0px' ? '0' : style.right;\n  var bottom = style.bottom === '0px' ? '0' : style.bottom;\n  var marginLeft = style.marginLeft;\n  var marginTop = style.marginTop;\n  var marginRight = style.marginRight;\n  var marginBottom = style.marginBottom;\n  var borderLeft = getBorderString(style.borderLeft);\n  var borderTop = getBorderString(style.borderTop);\n  var borderRight = getBorderString(style.borderRight);\n  var borderBottom = getBorderString(style.borderBottom);\n  var paddingLeft = style.paddingLeft;\n  var paddingTop = style.paddingTop;\n  var paddingRight = style.paddingRight;\n  var paddingBottom = style.paddingBottom;\n  var width = style.width;\n  var height = style.height;\n  var positionName = \"position:\".concat(position);\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(Diagram, {\n    name: positionName,\n    backgroundColor: COLOR_GRAY,\n    left: left,\n    right: right,\n    top: top,\n    bottom: bottom\n  }, /*#__PURE__*/_react[\"default\"].createElement(Diagram, {\n    name: \"margin\",\n    backgroundColor: \"#975a40\",\n    left: marginLeft,\n    right: marginRight,\n    top: marginTop,\n    bottom: marginBottom\n  }, /*#__PURE__*/_react[\"default\"].createElement(Diagram, {\n    name: \"border\",\n    backgroundColor: \"#9f857a\",\n    left: borderLeft,\n    right: borderRight,\n    top: borderTop,\n    bottom: borderBottom\n  }, /*#__PURE__*/_react[\"default\"].createElement(Diagram, {\n    name: \"padding\",\n    backgroundColor: \"#a4b5ab\",\n    left: paddingLeft,\n    right: paddingRight,\n    top: paddingTop,\n    bottom: paddingBottom\n  }, /*#__PURE__*/_react[\"default\"].createElement(Size, {\n    backgroundColor: \"#42436c\",\n    size: {\n      width: getNumber(width) - getNumber(borderLeft) - getNumber(borderRight) - getNumber(paddingLeft) - getNumber(paddingRight) + 'px',\n      height: getNumber(height) - getNumber(borderTop) - getNumber(borderBottom) - getNumber(paddingTop) - getNumber(paddingBottom) + 'px'\n    }\n  }))))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: {\n      marginLeft: 30,\n      marginTop: 105\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \"w:\".concat(width, \",h:\").concat(height))));\n}\nfunction Diagram(_ref2) {\n  var name = _ref2.name,\n    left = _ref2.left,\n    top = _ref2.top,\n    right = _ref2.right,\n    bottom = _ref2.bottom,\n    backgroundColor = _ref2.backgroundColor,\n    children = _ref2.children;\n  var style = {\n    backgroundColor: backgroundColor,\n    border: '1px dotted'\n  };\n  left = replacePxString(left);\n  top = replacePxString(top);\n  right = replacePxString(right);\n  bottom = replacePxString(bottom);\n  var rootClassName = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _ElementSizeDiagram[\"default\"].root, true), _ElementSizeDiagram[\"default\"].firstRoot, backgroundColor === COLOR_GRAY));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: rootClassName,\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"]['name-top']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].name\n  }, isNaN(name) ? '-' : name), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].top\n  }, isNaN(top) ? '-' : top)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"]['left-right']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].left\n  }, isNaN(left) ? '-' : left), children, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].right\n  }, isNaN(right) ? '-' : right)), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].bottom\n  }, isNaN(bottom) ? '-' : bottom));\n}\nfunction getBorderString(value) {\n  if (value.startsWith('0px')) {\n    return '-';\n  }\n  return '' + parseInt(value);\n}\nfunction getNumber(value) {\n  return parseFloat(value) || 0;\n}\nfunction replacePxString(value) {\n  if (value === '0px') {\n    return '-';\n  }\n  return value.replace(/px$/, '');\n}\nfunction Size(_ref3) {\n  var backgroundColor = _ref3.backgroundColor,\n    size = _ref3.size;\n  var style = {\n    backgroundColor: backgroundColor\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ElementSizeDiagram[\"default\"].size,\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, replacePxString(size.width)), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    style: {\n      padding: '0 2px'\n    }\n  }, \"x\"), /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, replacePxString(size.height)));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ElementSizeDiagram.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/FormPerformancePanel.js":
/*!**********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/FormPerformancePanel.js ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = PerformancePanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.array.splice.js */ \"../../node_modules/core-js/modules/es.array.splice.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"../../node_modules/core-js/modules/es.number.to-fixed.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _usePerformanceObserve = _interopRequireDefault(__webpack_require__(/*! ../../use/usePerformanceObserve */ \"./src/service/common/sysinfo/use/usePerformanceObserve.js\"));\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable */ \"./src/service/common/sysinfo/web/panel/SysTable.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _FormPerformancePanel = _interopRequireDefault(__webpack_require__(/*! ./FormPerformancePanel.less */ \"./src/service/common/sysinfo/web/panel/FormPerformancePanel.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-16 11:23:04\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-14 10:45:13\n * @Description: 页面性能监控\n */\nfunction PerformancePanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = _slicedToArray(_useState, 2),\n    sortInfo = _useState2[0],\n    setSortInfo = _useState2[1];\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = _slicedToArray(_useState3, 2),\n    filterValue = _useState4[0],\n    setFielterValue = _useState4[1];\n  var _useReducer = (0, _react.useReducer)(function (state) {\n      return state + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var rows$ = (0, _react.useRef)([]);\n  var headers = [{\n    code: 'form',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0098'),\n    width: 220\n  }, {\n    code: 'request',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0099'),\n    width: 103,\n    align: 'right'\n  }, {\n    code: 'executeTime',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0100'),\n    width: 103,\n    align: 'right'\n  }, {\n    code: 'renderTime',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0101'),\n    width: 103,\n    align: 'right'\n  }];\n  var OnCallBack = function OnCallBack(entries) {\n    var filterEntries = entries.filter(function (item) {\n      return item.name.startsWith('bill-$$-') || item.name.startsWith('invokeControlService-$$-');\n    });\n    var rows = rows$.current;\n    filterEntries.forEach(function (entry) {\n      var _entry$name$split = entry.name.split('-$$-'),\n        _entry$name$split2 = _slicedToArray(_entry$name$split, 2),\n        entryName = _entry$name$split2[0],\n        objectString = _entry$name$split2[1];\n      var detail = JSON.parse(objectString);\n      if (entryName === 'bill') {\n        var duration = entry.duration;\n        var pageId = detail.pageId,\n          _name = detail.name,\n          _id = detail.id;\n        var row = rows.find(function (row) {\n          return row.id === _id;\n        });\n        if (!row) {\n          var caption = (0, _appModelFunction.getFormCaption)(pageId)((0, _global.getGlobalState)());\n          row = {\n            id: _id,\n            pageId: pageId,\n            items: [[(0, _intlApi.getLangMsg)('SysInfo.key0091'), caption], [_name, duration]]\n          };\n          rows.push(row);\n        } else {\n          row.items.push([_name, duration]);\n        }\n      } else {\n        var _duration = entry.duration;\n        var _id2 = detail.id,\n          _name2 = detail.name,\n          _pageId = detail.pageId,\n          methodName = detail.methodName,\n          controlKey = detail.controlKey,\n          controlName = detail.controlName,\n          args = detail.args;\n        var item = rows.find(function (item) {\n          return item.id === _id2;\n        });\n        if (!item) {\n          var pageName = (0, _appModelFunction.getFormCaption)(_pageId)((0, _global.getGlobalState)());\n          if (pageName) {\n            // release 取不到\n            var argsName = methodName === 'itemClick' && typeof args[0] === 'string' ? '.' + args[0] : '';\n            var _caption = \"\".concat(controlName || controlKey, \".\").concat(methodName).concat(argsName);\n            item = {\n              id: _id2,\n              pageId: _pageId,\n              methodName: methodName,\n              controlKey: controlKey,\n              controlName: controlName,\n              items: [[pageName, _caption], [_name2, _duration]]\n            };\n            rows.push(item);\n          }\n        } else {\n          item.items.push([_name2, _duration]);\n        }\n      }\n    });\n    rows.map(function (row) {\n      var items = row.items;\n      if (items[0][0] !== (0, _intlApi.getLangMsg)('SysInfo.key0091')) {\n        var text = \"(\".concat(items[0][0], \")\").concat(items[0][1]);\n        items[0] = [(0, _intlApi.getLangMsg)('SysInfo.key0091'), text];\n      }\n      if (!items[2] || items[2][0] !== (0, _intlApi.getLangMsg)('SysInfo.key0103')) {\n        items.splice(2, 0, [(0, _intlApi.getLangMsg)('SysInfo.key0103'), 0]);\n      }\n      return row;\n    });\n    filterEntries.length > 0 && forceUpdate(); // 以后增加不可见不刷新\n  };\n  (0, _usePerformanceObserve[\"default\"])({\n    callback: OnCallBack\n  });\n  var clear = function clear(event) {\n    window.performance.getEntriesByType('measure').forEach(function (entry) {\n      var measureName = entry.name;\n      if (measureName.startsWith('bill-$$-') || measureName.startsWith('invokeControlService-$$-')) {\n        window.performance.clearMeasures(measureName);\n      }\n    });\n    rows$.current = [];\n    forceUpdate();\n  };\n  var getValue = function getValue(key, data) {\n    var _items$;\n    var value;\n    var items = data.items;\n    var form = items[0][1];\n    var request = items[1][1];\n    var executeTime = items[2][1];\n    var renderTime = items === null || items === void 0 || (_items$ = items[3]) === null || _items$ === void 0 ? void 0 : _items$[1];\n    switch (key) {\n      case 'form':\n        value = form;\n        break;\n      case 'request':\n        value = request;\n        break;\n      case 'executeTime':\n        value = executeTime;\n        break;\n      case 'renderTime':\n        value = renderTime;\n        break;\n      default:\n        break;\n    }\n    return value;\n  };\n  var createRowData = function createRowData(data) {\n    var newData = [];\n    data.forEach(function (row, index) {\n      var newRow = {};\n      row.items.forEach(function (item, index) {\n        newRow[headers[index].code] = typeof item[1] === 'number' ? item[1].toFixed(2) : item[1];\n      });\n      row.items[0][1] && newData.push(newRow);\n    });\n    return newData;\n  };\n  var onSort = (0, _react.useCallback)(function (target, status) {\n    setSortInfo({\n      target: target,\n      status: status\n    });\n  }, []);\n  var handleSearchChange = function handleSearchChange(val) {\n    setFielterValue(val);\n  };\n  var rows = (0, _react.useMemo)(function () {\n    var data = filterValue === '' ? rows$.current : rows$.current.filter(function (row) {\n      var _row$items$0$join$toL, _row$items$0$join, _filterValue$toLocale;\n      return (_row$items$0$join$toL = (_row$items$0$join = row.items[0].join()).toLocaleLowerCase) === null || _row$items$0$join$toL === void 0 ? void 0 : _row$items$0$join$toL.call(_row$items$0$join).includes(filterValue === null || filterValue === void 0 || (_filterValue$toLocale = filterValue.toLocaleLowerCase) === null || _filterValue$toLocale === void 0 ? void 0 : _filterValue$toLocale.call(filterValue));\n    });\n    var target = sortInfo.target,\n      status = sortInfo.status;\n    if (status === 0) return createRowData(data);\n    var _data = (0, _lodash.cloneDeep)(data);\n    return createRowData(_data.sort(function (a, b) {\n      var aValue = getValue(target, a);\n      var bValue = getValue(target, b);\n      if (typeof aValue === 'number' || typeof bValue === 'number') {\n        return status === 1 ? aValue - bValue : bValue - aValue;\n      } else {\n        return status === 1 ? (aValue + '').localeCompare(bValue) : (bValue + '').localeCompare(aValue);\n      }\n    }));\n  }, [sortInfo.target, sortInfo.status, filterValue, rows$.current.length]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FormPerformancePanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FormPerformancePanel[\"default\"].search\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0104'),\n    onChange: handleSearchChange,\n    className: _FormPerformancePanel[\"default\"].searchClass\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _FormPerformancePanel[\"default\"].clear\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0105'),\n    onClick: clear\n  })), /*#__PURE__*/_react[\"default\"].createElement(_SysTable[\"default\"], {\n    headers: headers,\n    rows: rows,\n    onSort: onSort,\n    id: \"FormPerformance\"\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/FormPerformancePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/GridAnalyse.jsx":
/*!**************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/GridAnalyse.jsx ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = GridAnalyse;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _GridAnalyse = _interopRequireDefault(__webpack_require__(/*! ./GridAnalyse.less */ \"./src/service/common/sysinfo/web/panel/GridAnalyse.less\"));\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable */ \"./src/service/common/sysinfo/web/panel/SysTable.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction GridAnalyse(props) {\n  var headers = props.headers,\n    rows = props.rows;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = _slicedToArray(_useState, 2),\n    filter = _useState2[0],\n    setFilter = _useState2[1];\n  var filterChange = function filterChange(ctlKey, filterKey, value) {\n    setFilter(function (filter) {\n      var newFilter = _objectSpread(_objectSpread({}, filter), {}, _defineProperty({}, ctlKey, value));\n      return newFilter;\n    });\n  };\n  var createGrid = (0, _react.useMemo)(function () {\n    var _Object$keys;\n    var newRows = rows;\n    if (((_Object$keys = Object.keys(filter)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0) {\n      newRows = rows.filter(function (row) {\n        var flag = true;\n        for (var key in filter) {\n          if (filter[key] !== row[key] && filter[key] !== (0, _intlApi.getLangMsg)('SysInfo.key0106')) {\n            flag = false;\n          }\n        }\n        return flag;\n      });\n    }\n    return /*#__PURE__*/_react[\"default\"].createElement(_SysTable[\"default\"], {\n      headers: headers,\n      rows: newRows,\n      id: \"GridAnalyse\",\n      filterChange: filterChange\n    });\n  }, [rows, filter]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _GridAnalyse[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _GridAnalyse[\"default\"].title\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, (0, _intlApi.getLangMsg)('SysInfo.key0174'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _GridAnalyse[\"default\"].desc\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0175')), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _GridAnalyse[\"default\"].table\n  }, createGrid));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/GridAnalyse.jsx?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/HttpMonitorPanel.js":
/*!******************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/HttpMonitorPanel.js ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = HttpMonitorPanel;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher.js */ \"./src/model/GlobalDataCacher.js\");\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst.js */ \"./src/constant/symbolConst.js\");\nvar _HttpMonitor = _interopRequireDefault(__webpack_require__(/*! @/page/httpMonitor/page/HttpMonitor.js */ \"./src/page/httpMonitor/page/HttpMonitor.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction HttpMonitorPanel(props) {\n  var close = function close() {};\n  return /*#__PURE__*/_react[\"default\"].createElement(_HttpMonitor[\"default\"], {\n    close: close\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/HttpMonitorPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/JsonNode.js":
/*!**********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/JsonNode.js ***!
  \**********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = JsonNode;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.join.js */ \"../../node_modules/core-js/modules/es.array.join.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.replace.js */ \"../../node_modules/core-js/modules/es.string.replace.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _JsonNode = _interopRequireDefault(__webpack_require__(/*! ./JsonNode.less */ \"./src/service/common/sysinfo/web/panel/JsonNode.less\"));\nvar _Details = _interopRequireDefault(__webpack_require__(/*! ./../Details */ \"./src/service/common/sysinfo/web/Details.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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); }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-09 13:55:23\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-06-07 13:52:29\n * @Description: 渲染json对象控件\n */\n/**\n *\n * @param {*} open 当前节点是否展开\n * @param {*} openAll 全部节点打开或关闭\n * @param {*} search 高亮匹配字符串\n * @returns\n */\n\nvar GroupSepLength = 100; // 数组超过100就需要分段渲染\n\nfunction JsonNode(_ref) {\n  var object = _ref.object,\n    name = _ref.name,\n    open = _ref.open,\n    openAll = _ref.openAll,\n    bigArrayIndex = _ref.bigArrayIndex,\n    _ref$search = _ref.search,\n    search = _ref$search === void 0 ? '' : _ref$search,\n    summaryStyle = _ref.summaryStyle;\n  var _useState = (0, _react.useState)(openAll || open),\n    _useState2 = _slicedToArray(_useState, 2),\n    isOpen = _useState2[0],\n    setOpen = _useState2[1];\n  var detailIsCreate$ = (0, _react.useRef)(openAll || open);\n  (0, _react.useEffect)(function () {\n    openAll !== null && setOpen(openAll); // 全部展开或收起\n  }, [openAll]);\n  var onClick = function onClick(event) {\n    if (!detailIsCreate$.current) {\n      detailIsCreate$.current = true;\n    }\n    setOpen(function (open) {\n      return !open;\n    });\n    event.stopPropagation();\n  };\n  var renderSummary = function renderSummary(isOpen) {\n    var infoString = getJsonSummaryString(object, bigArrayIndex, isOpen);\n    var NameEle;\n    if (name && typeof name === 'string') {\n      if (bigArrayIndex !== undefined) {\n        var itemIndex = parseInt(name);\n        if (!isNaN(itemIndex) && itemIndex < GroupSepLength) {\n          name = bigArrayIndex * GroupSepLength + itemIndex;\n        }\n      }\n      name = search === '' ? name : replaceSearch('' + name, search);\n      NameEle = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: _JsonNode[\"default\"]['summary-name'],\n        dangerouslySetInnerHTML: {\n          __html: name + ':'\n        }\n      });\n    }\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _JsonNode[\"default\"]['summary-title']\n    }, NameEle, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: (0, _classnames2[\"default\"])(_JsonNode[\"default\"]['summary-info'], _defineProperty({}, _JsonNode[\"default\"].show, Array.isArray(object) || bigArrayIndex !== undefined)),\n      title: infoString\n    }, infoString));\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_Details[\"default\"], {\n    open: isOpen,\n    renderSummary: renderSummary,\n    onClick: onClick,\n    summaryStyle: summaryStyle\n  }, (isOpen || detailIsCreate$.current) && /*#__PURE__*/_react[\"default\"].createElement(JsonDetail, {\n    bigArrayIndex: bigArrayIndex,\n    object: object,\n    search: search,\n    openAll: openAll\n  }));\n}\nfunction JsonDetail(_ref2) {\n  var object = _ref2.object,\n    search = _ref2.search,\n    openAll = _ref2.openAll,\n    bigArrayIndex = _ref2.bigArrayIndex;\n  if (typeof object === 'string') {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _JsonNode[\"default\"].detail\n    }, object);\n  }\n  if (Array.isArray(object) && object.length > GroupSepLength) {\n    return /*#__PURE__*/_react[\"default\"].createElement(BigGroup, {\n      items: object,\n      search: search,\n      openAll: openAll\n    });\n  }\n  var keys = getObjectKeys(object);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _JsonNode[\"default\"].detail\n  }, keys.map(function (key, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(JsonItem, {\n      bigArrayIndex: bigArrayIndex,\n      key: index,\n      name: key + '',\n      value: object[key],\n      search: search,\n      openAll: openAll\n    });\n  }));\n}\n/**\n * 计算大数组的分组信息，用于分段渲染大数组，提升性能\n * @param {*} items\n * @param {*} size 每段渲染的数量\n * @returns  [[start1,end1],[...]]\n */\nfunction getBigGroupKeys(items) {\n  var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GroupSepLength;\n  var groups = Math.floor(items.length / size);\n  var index = 0;\n  var out = [];\n  while (index < groups) {\n    out.push([index * size, (index + 1) * size - 1]);\n    index += 1;\n  }\n  if (items.length % size !== 0) {\n    out.push([index * size, items.length]);\n  }\n  return out;\n}\n/**\n * 获取分段数组的值\n * @param {*} items\n * @param {*} key 包含开始和结束的索引\n * @returns\n */\nfunction getGroupItem(items, key) {\n  return items.slice(key[0], key[1] + 1);\n}\nfunction BigGroup(_ref3) {\n  var items = _ref3.items,\n    search = _ref3.search,\n    openAll = _ref3.openAll;\n  var keys = getBigGroupKeys(items);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _JsonNode[\"default\"].detail\n  }, keys.map(function (key, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(JsonNode, {\n      bigArrayIndex: index,\n      key: index,\n      object: getGroupItem(items, key),\n      name: index * GroupSepLength + '',\n      search: search,\n      openAll: openAll\n    });\n  }));\n}\n// 转义reg表达式中特殊字符\nfunction escapeRegExp(string) {\n  return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); // $&表示整个被匹配的字符串\n}\nfunction replaceSearch(str, search) {\n  if (search === '') {\n    return str;\n  }\n  try {\n    return str.replace(new RegExp(escapeRegExp(search), 'ig'), \"<mark>\".concat(search, \"</mark>\"));\n  } catch (error) {\n    return str;\n  }\n}\nfunction JsonItem(_ref4) {\n  var name = _ref4.name,\n    value = _ref4.value,\n    search = _ref4.search,\n    openAll = _ref4.openAll,\n    bigArrayIndex = _ref4.bigArrayIndex;\n  var ele;\n  if (_typeof(value) === 'object') {\n    if (value === null) {\n      ele = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n        className: _JsonNode[\"default\"].value\n      }, '' + value);\n    } else {\n      name = bigArrayIndex !== undefined ? bigArrayIndex * GroupSepLength + parseInt(name) : name;\n      return /*#__PURE__*/_react[\"default\"].createElement(JsonNode, {\n        object: value,\n        name: name + '',\n        search: search,\n        openAll: openAll\n      });\n    }\n  } else if (typeof value === 'function') {\n    ele = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _JsonNode[\"default\"].value\n    }, \"f()\");\n  } else if (typeof value === 'number') {\n    // const htmlValue = ('' + value).replace(new RegExp(search, 'ig'), `<mark>${search}</mark>`)\n    var htmlValue = replaceSearch('' + value, search);\n    ele = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: (0, _classnames2[\"default\"])(_JsonNode[\"default\"].value, _JsonNode[\"default\"].number),\n      title: value,\n      dangerouslySetInnerHTML: {\n        __html: htmlValue\n      }\n    });\n    // ele = <span className={classnames(styles.value, styles.number)}>{value}</span>\n  } else if (typeof value === 'boolean') {\n    ele = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: (0, _classnames2[\"default\"])(_JsonNode[\"default\"].value, _JsonNode[\"default\"].number)\n    }, '' + value);\n  } else {\n    // const htmlValue = ('\"' + value + '\"').replace(new RegExp(search, 'ig'), `<mark>${search}</mark>`)\n    var _htmlValue = replaceSearch('\"' + value + '\"', search);\n    // ele = <span className={styles.value} title={value}>{'\"' + value + '\"'}</span>\n    ele = /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _JsonNode[\"default\"].value,\n      title: value,\n      dangerouslySetInnerHTML: {\n        __html: _htmlValue\n      }\n    });\n  }\n  if (bigArrayIndex !== undefined && !isNaN(parseInt(name))) {\n    name = bigArrayIndex * GroupSepLength + parseInt(name);\n  }\n  name = replaceSearch('' + name, search);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _JsonNode[\"default\"].item\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _JsonNode[\"default\"].name,\n    dangerouslySetInnerHTML: {\n      __html: name + ':'\n    }\n  }), ele);\n}\nfunction getObjectKeys(object) {\n  var keys = [];\n  if (Array.isArray(object)) {\n    keys = object.reduce(function (mem, v) {\n      mem.push(mem.length);\n      return mem;\n    }, keys);\n  } else {\n    keys = Object.keys(object);\n  }\n  return keys;\n}\nfunction getJsonSummaryString(object, bigArrayIndex, isOpen) {\n  var maxLen = 9;\n  if (typeof object === 'string') {\n    return object;\n  }\n  if (isOpen && Object.prototype.toString.call(object) === '[object Object]') {\n    return '';\n  }\n  if (Array.isArray(object)) {\n    if (isOpen) {\n      return \"Array(\".concat(object.length, \")\");\n    }\n    if (object.length > GroupSepLength) {\n      return \"[1 ... \".concat(object.length, \"]\");\n    }\n    if (bigArrayIndex !== undefined) {\n      var lastIndex = object.length === GroupSepLength ? (bigArrayIndex + 1) * GroupSepLength - 1 : bigArrayIndex * GroupSepLength + object.length - 1;\n      return \"[\".concat(bigArrayIndex * GroupSepLength, \" ... \").concat(lastIndex, \"]\");\n    }\n    var subArray = object.slice(0, maxLen);\n    var subString = subArray.map(function (value) {\n      return formatObject(value);\n    }).join(',');\n    var lastString = '';\n    if (object.length > maxLen) {\n      lastString = '...' + formatObject(object[object.length - 1]);\n    }\n    return \"(\".concat(object.length, \") [\").concat(subString + lastString, \"]\");\n  } else {\n    var keys = object === null ? [] : Object.keys(object);\n    var subKeys = keys.slice(0, maxLen);\n    var str = subKeys.map(function (key) {\n      return \"\".concat(key, \"  :\").concat(formatObject(object[key]));\n    }).join(',');\n    if (str.length === 0) {\n      return '{}';\n    }\n    return \"{\".concat(str).concat(keys.length > maxLen ? ',...' : '', \"}\");\n  }\n}\nfunction formatObject(object) {\n  if (typeof object === 'function') {\n    return 'f';\n  } else if (_typeof(object) === 'object') {\n    if (Array.isArray(object)) {\n      return \"Array(\".concat(object.length, \")\");\n    } else {\n      return '{...}';\n    }\n  }\n  if (typeof object === 'string') {\n    return \"'\" + object + \"'\";\n  } else {\n    return object;\n  }\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/JsonNode.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/JsonPanel.js":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/JsonPanel.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports.Search = Search;\nexports[\"default\"] = JsonPanel;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _JsonPanel = _interopRequireDefault(__webpack_require__(/*! ./JsonPanel.less */ \"./src/service/common/sysinfo/web/panel/JsonPanel.less\"));\nvar _JsonNode = _interopRequireDefault(__webpack_require__(/*! ./JsonNode */ \"./src/service/common/sysinfo/web/panel/JsonNode.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-29 15:01:09\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-19 17:04:59\n * @Description: json对象视图，参考chrome控制台输出对象展现方式\n */\nfunction JsonPanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var ele$ = (0, _react.useRef)();\n  var markElements$ = (0, _react.useRef)([]);\n  var activeMarkIndex$ = (0, _react.useRef)(0);\n  var _useState = (0, _react.useState)(''),\n    _useState2 = _slicedToArray(_useState, 2),\n    search = _useState2[0],\n    setSearch = _useState2[1];\n  var _useState3 = (0, _react.useState)(null),\n    _useState4 = _slicedToArray(_useState3, 2),\n    openAll = _useState4[0],\n    setOpenALl = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = _slicedToArray(_useState5, 2),\n    showSearch = _useState6[0],\n    setShowSearch = _useState6[1];\n  var next = function next(direction) {\n    var markElements = markElements$.current;\n    if (markElements$.current.length < 1) {\n      return;\n    }\n    markElements[activeMarkIndex$.current].style.backgroundColor = 'yellow';\n    activeMarkIndex$.current += direction;\n    if (activeMarkIndex$.current > markElements.length - 1) {\n      activeMarkIndex$.current = 0;\n    } else if (activeMarkIndex$.current < 0) {\n      activeMarkIndex$.current = markElements.length - 1;\n    }\n    var activeEle = markElements[activeMarkIndex$.current];\n    activeEle.style.backgroundColor = '#c3c33b';\n    activeEle.scrollIntoViewIfNeeded && activeEle.scrollIntoViewIfNeeded(true);\n  };\n  (0, _react.useEffect)(function () {\n    ele$.current.focus();\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (search === '') {\n      markElements$.current = [];\n    } else {\n      markElements$.current = document.querySelectorAll('mark');\n      activeMarkIndex$.current = 0;\n      if (markElements$.current.length > 0) {\n        markElements$.current[0].style.backgroundColor = '#c3c33b';\n      }\n    }\n  }, [search]);\n  var onKeyDown = function onKeyDown(event) {\n    event.stopPropagation();\n    event.preventDefault();\n    if (event.ctrlKey && event.keyCode === 70) {\n      // ctrl+f\n      setShowSearch(true);\n    }\n    if (event.ctrlKey && event.keyCode === 79) {\n      // ctrl+'o'\n      setOpenALl(function (openAll) {\n        return !openAll;\n      }); // 全部展开/收起\n    }\n  };\n  var onShowSearch = function onShowSearch(value) {\n    setShowSearch(value);\n    !value && ele$.current.focus();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    tabIndex: \"-1\",\n    className: _JsonPanel[\"default\"].root,\n    onKeyDown: onKeyDown,\n    ref: ele$\n  }, /*#__PURE__*/_react[\"default\"].createElement(_JsonNode[\"default\"], {\n    object: data,\n    search: search,\n    open: true,\n    openAll: openAll\n  })), showSearch && /*#__PURE__*/_react[\"default\"].createElement(Search, {\n    search: search,\n    setSearch: setSearch,\n    setShowSearch: onShowSearch,\n    next: next\n  }));\n}\nfunction Search(_ref2) {\n  var search = _ref2.search,\n    setSearch = _ref2.setSearch,\n    setShowSearch = _ref2.setShowSearch,\n    next = _ref2.next;\n  var time$ = (0, _react.useRef)();\n  var onClick = function onClick(event) {\n    setShowSearch(false);\n  };\n  var onChange = function onChange(event) {\n    clearTimeout(time$.current);\n    var value = event.target.value;\n    time$.current = setTimeout(function () {\n      setSearch(value);\n    }, 300);\n  };\n  var onKeyDown = function onKeyDown(event) {\n    if (search !== '' && event.keyCode === 13) {\n      next(event.shiftKey ? -1 : 1);\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _JsonPanel[\"default\"].search\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"input\", {\n    defaultValue: search,\n    onChange: onChange,\n    onKeyDown: onKeyDown,\n    autoFocus: true\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"button\", {\n    onClick: onClick\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0181')));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/JsonPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/LookupPanel.js":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/LookupPanel.js ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = LookupPanel;\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _LookupPanel = _interopRequireDefault(__webpack_require__(/*! ./LookupPanel.less */ \"./src/service/common/sysinfo/web/panel/LookupPanel.less\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-08 14:16:39\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-08 14:46:19\n * @Description: 页面选择元素面板，提供点选元素操作\n */\n\nfunction LookupPanel(_ref) {\n  var id = _ref.id,\n    data = _ref.data,\n    name = _ref.name;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookupPanel[\"default\"].root\n  }, data === null || data === void 0 ? void 0 : data.outerHTML);\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/LookupPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.js":
/*!********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.js ***!
  \********************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = NetWorkDetailPanel;\nexports.getFullPath = getFullPath;\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.entries.js */ \"../../node_modules/core-js/modules/es.object.entries.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.starts-with.js */ \"../../node_modules/core-js/modules/es.string.starts-with.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim.js */ \"../../node_modules/core-js/modules/es.string.trim.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames8 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _NetWorkDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./NetWorkDetailPanel.less */ \"./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.less\"));\nvar _CodeMirrorPanel = _interopRequireDefault(__webpack_require__(/*! ./CodeMirrorPanel */ \"./src/service/common/sysinfo/web/panel/CodeMirrorPanel.js\"));\nvar _sysConfig = __webpack_require__(/*! ../../sysConfig */ \"./src/service/common/sysinfo/sysConfig.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-16 16:07:58\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-11-18 18:02:55\n * @Description: ajax请求详细信息面板\n */\nfunction NetWorkDetailPanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var _useState = (0, _react.useState)('header'),\n    _useState2 = _slicedToArray(_useState, 2),\n    select = _useState2[0],\n    setSelect = _useState2[1]; // header/preview/response\n  var onClick = (0, _react.useCallback)(function (event) {\n    var id = event.target.dataset.id;\n    if (id) {\n      setSelect(id);\n    }\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"].root,\n    onClick: onClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(Header, {\n    select: select\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"].container\n  }, /*#__PURE__*/_react[\"default\"].createElement(HeaderPanel, {\n    data: data,\n    isVisible: select === 'header'\n  }), /*#__PURE__*/_react[\"default\"].createElement(PreviewPanel, {\n    data: data,\n    isVisible: select === 'preview'\n  }), /*#__PURE__*/_react[\"default\"].createElement(ResponsePanel, {\n    data: data,\n    isVisible: select === 'response'\n  })));\n}\nvar Header = /*#__PURE__*/(0, _react.memo)(function (_ref2) {\n  var select = _ref2.select;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    \"data-id\": \"header\",\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _NetWorkDetailPanel[\"default\"].select, select === 'header'))\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0182')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    \"data-id\": \"preview\",\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _NetWorkDetailPanel[\"default\"].select, select === 'preview'))\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0183')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    \"data-id\": \"response\",\n    className: (0, _classnames8[\"default\"])(_defineProperty({}, _NetWorkDetailPanel[\"default\"].select, select === 'response'))\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0184')));\n});\nvar HeaderPanel = /*#__PURE__*/(0, _react.memo)(function (_ref3) {\n  var data = _ref3.data,\n    isVisible = _ref3.isVisible;\n  var className = (0, _classnames8[\"default\"])(_NetWorkDetailPanel[\"default\"].panel, _NetWorkDetailPanel[\"default\"]['header-panel'], _defineProperty({}, _NetWorkDetailPanel[\"default\"].hidden, !isVisible));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"details\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-detail'],\n    open: true\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"summary\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0185')), /*#__PURE__*/_react[\"default\"].createElement(Convention, {\n    data: createHeaderData(data)\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"details\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-detail']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"summary\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0186')), /*#__PURE__*/_react[\"default\"].createElement(Convention, {\n    data: createResponseData(data)\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"details\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-detail']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"summary\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0187')), /*#__PURE__*/_react[\"default\"].createElement(Convention, {\n    data: createRequestData(data)\n  })), data.request.method === 'POST' && /*#__PURE__*/_react[\"default\"].createElement(\"details\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-detail'],\n    open: true\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"summary\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-title']\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0188')), /*#__PURE__*/_react[\"default\"].createElement(Convention, {\n    data: createFormData(data)\n  })));\n});\nvar createHeaderData = function createHeaderData(data) {\n  return _defineProperty(_defineProperty(_defineProperty({}, (0, _intlApi.getLangMsg)('SysInfo.key0189'), getFullPath(data.url)), (0, _intlApi.getLangMsg)('SysInfo.key0190'), data.request.method), (0, _intlApi.getLangMsg)('SysInfo.key0191'), data.response.status);\n};\nvar createResponseData = function createResponseData(data) {\n  return data.response.headers || {};\n};\nvar createRequestData = function createRequestData(data) {\n  return data.request.headers || {};\n};\nfunction getFullPath() {\n  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n  url = url || '';\n  if (/^data:?/.test(url) || /^http(s)?/.test(url)) {\n    return url;\n  }\n  if (!url.trim()) {\n    return '';\n  }\n  if (url.startsWith('/')) {\n    url = url.substr(1, url.length);\n  }\n  if (url.startsWith('./')) {\n    url = url.substr(2, url.length);\n  }\n  return window.location.origin + window.location.pathname + url;\n}\nvar createFormData = function createFormData(data) {\n  var _data$request$formDat;\n  return (_data$request$formDat = data.request.formData) === null || _data$request$formDat === void 0 ? void 0 : _data$request$formDat.split('&').reduce(function (mem, kv) {\n    var split = kv.split('=');\n    if (split.length === 2) {\n      mem[split[0]] = decodeURIComponent(split[1]);\n    }\n    return mem;\n  }, {});\n};\nvar Convention = /*#__PURE__*/(0, _react.memo)(function (_ref5) {\n  var data = _ref5.data;\n  return Object.entries(data).map(function (_ref6) {\n    var _ref7 = _slicedToArray(_ref6, 2),\n      key = _ref7[0],\n      value = _ref7[1];\n    return /*#__PURE__*/_react[\"default\"].createElement(ConventionItem, {\n      key: key,\n      lable: key,\n      text: value\n    });\n  });\n});\nvar ConventionItem = function ConventionItem(_ref8) {\n  var lable = _ref8.lable,\n    text = _ref8.text;\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-item']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-label']\n  }, lable), /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, \":\"), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkDetailPanel[\"default\"]['header-content']\n  }, text + ''));\n};\nvar PreviewPanel = /*#__PURE__*/(0, _react.memo)(function (_ref9) {\n  var _data$response;\n  var data = _ref9.data,\n    isVisible = _ref9.isVisible;\n  var text = data === null || data === void 0 || (_data$response = data.response) === null || _data$response === void 0 ? void 0 : _data$response.text;\n  var nothing = (0, _classnames8[\"default\"])(_NetWorkDetailPanel[\"default\"].nothing, _defineProperty({}, _NetWorkDetailPanel[\"default\"].hidden, !isVisible));\n  if (typeof text === 'string' && text.length > _sysConfig.CODE_MIRROR_LENGTH) {\n    text = text.substr(0, _sysConfig.CODE_MIRROR_LENGTH);\n  }\n  return isVisible && (typeof text === 'string' ? /*#__PURE__*/_react[\"default\"].createElement(_CodeMirrorPanel[\"default\"], {\n    id: \"preview\",\n    name: \"preview\",\n    data: text,\n    mode: \"application/json\"\n  }) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: nothing\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0192')));\n});\nvar ResponsePanel = /*#__PURE__*/(0, _react.memo)(function (_ref10) {\n  var _data$response2;\n  var data = _ref10.data,\n    isVisible = _ref10.isVisible;\n  var className = (0, _classnames8[\"default\"])(_NetWorkDetailPanel[\"default\"].panel, _NetWorkDetailPanel[\"default\"].response, _defineProperty({}, _NetWorkDetailPanel[\"default\"].hidden, !isVisible));\n  var nothing = (0, _classnames8[\"default\"])(_NetWorkDetailPanel[\"default\"].nothing, _defineProperty({}, _NetWorkDetailPanel[\"default\"].hidden, !isVisible));\n  var text = data === null || data === void 0 || (_data$response2 = data.response) === null || _data$response2 === void 0 ? void 0 : _data$response2.text;\n  if (typeof text === 'string') {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: className\n    }, text);\n  } else {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: nothing\n    }, (0, _intlApi.getLangMsg)('SysInfo.key0193'));\n  }\n});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/NetWorkPanel.js":
/*!**************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/NetWorkPanel.js ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = NetWorkPanel;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.last-index-of.js */ \"../../node_modules/core-js/modules/es.array.last-index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _symbolConst = __webpack_require__(/*! @/constant/symbolConst */ \"./src/constant/symbolConst.js\");\nvar _GlobalDataCacher = __webpack_require__(/*! @/model/GlobalDataCacher */ \"./src/model/GlobalDataCacher.js\");\nvar _NetWorkPanel = _interopRequireDefault(__webpack_require__(/*! ./NetWorkPanel.less */ \"./src/service/common/sysinfo/web/panel/NetWorkPanel.less\"));\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ./../../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _NetWorkDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./NetWorkDetailPanel */ \"./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.js\"));\nvar _sysUtils = __webpack_require__(/*! ../../utils/sysUtils */ \"./src/service/common/sysinfo/utils/sysUtils.js\");\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _sysConfig = __webpack_require__(/*! ../../sysConfig */ \"./src/service/common/sysinfo/sysConfig.js\");\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable */ \"./src/service/common/sysinfo/web/panel/SysTable.jsx\"));\nvar _dragService = __webpack_require__(/*! @/service/web/dragService.js */ \"./src/service/web/dragService.js\");\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-11-15 16:35:11\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-27 10:16:42\n * @Description: 网络请求面板\n */\nfunction NetWorkPanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name;\n  var _useReducer = (0, _react.useReducer)(function (x) {\n      return x + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  var _useState = (0, _react.useState)(''),\n    _useState2 = _slicedToArray(_useState, 2),\n    filterValue = _useState2[0],\n    setFielterValue = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = _slicedToArray(_useState3, 2),\n    selectId = _useState4[0],\n    setSelectId = _useState4[1];\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = _slicedToArray(_useState5, 2),\n    detail = _useState6[0],\n    setDetail = _useState6[1];\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = _slicedToArray(_useState7, 2),\n    sortInfo = _useState8[0],\n    setSortInfo = _useState8[1];\n  var context = (0, _react.useContext)(_SysContext[\"default\"]);\n  var data$ = (0, _react.useRef)([]);\n  var lastLength$ = (0, _react.useRef)(0);\n  (0, _react.useEffect)(function () {\n    var hander = setInterval(function () {\n      var newData = _GlobalDataCacher.GlobalObject.get(_symbolConst.KEY_RESPONSE_TEXT);\n      if (newData) {\n        if (newData.length !== lastLength$.current) {\n          data$.current = newData;\n          lastLength$.current = newData.length;\n          if (!detail) {\n            setDetail(data$.current[0]);\n            setSelectId(0);\n          }\n          !context.isMini && forceUpdate();\n        }\n      }\n    }, 1000);\n    return function () {\n      clearInterval(hander);\n    };\n  }, [context.isMini]);\n  var getValue = function getValue(key, data) {\n    var value;\n    var _ref2 = data || {},\n      url = _ref2.url,\n      response = _ref2.response,\n      time = _ref2.time,\n      request = _ref2.request;\n    var _ref3 = response || {},\n      status = _ref3.status,\n      _ref3$headers = _ref3.headers,\n      headers = _ref3$headers === void 0 ? {} : _ref3$headers,\n      textLength = _ref3.textLength,\n      text = _ref3.text;\n    var _ref4 = request || {},\n      type = _ref4.type;\n    var elapsedTime = time !== null && time !== void 0 ? time : headers['server-time'];\n    switch (key) {\n      case 'url':\n        value = url.slice(url.lastIndexOf('/') + 1);\n        break;\n      case 'status':\n        value = status;\n        break;\n      case 'type':\n        value = type;\n        break;\n      case 'size':\n        value = textLength || (text === null || text === void 0 ? void 0 : text.size);\n        break;\n      case 'time':\n        value = elapsedTime;\n        break;\n      default:\n        break;\n    }\n    return value;\n  };\n  var createRowData = function createRowData(data) {\n    var newData = [];\n    data.forEach(function (item, index) {\n      var _item$time, _item$response, _item$response2, _item$response3, _item$response4, _item$response5, _item$response6, _item$request, _item$request2, _item$request3;\n      var time = (_item$time = item.time) !== null && _item$time !== void 0 ? _item$time : (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.headers['server-time'];\n      var textLength = (0, _sysUtils.converSize)(((_item$response2 = item.response) === null || _item$response2 === void 0 ? void 0 : _item$response2.textLength) || ((_item$response3 = item.response) === null || _item$response3 === void 0 || (_item$response3 = _item$response3.text) === null || _item$response3 === void 0 ? void 0 : _item$response3.size));\n      var url = item.url.slice(item.url.lastIndexOf('/') + 1);\n      var rowErrorInfo;\n      var timeErrorInfo;\n      if (parseInt(time) > _sysConfig.TIME_OUT_WARN && parseInt(time) < _sysConfig.TIME_OUT_SERIOUS_WARN) {\n        timeErrorInfo = 'warn';\n      } else if (parseInt(time) > _sysConfig.TIME_OUT_SERIOUS_WARN) {\n        timeErrorInfo = 'error';\n      }\n      if (((_item$response4 = item.response) === null || _item$response4 === void 0 ? void 0 : _item$response4.status) === 404 || ((_item$response5 = item.response) === null || _item$response5 === void 0 ? void 0 : _item$response5.status) === (0, _intlApi.getLangMsg)('SysInfo.key0107')) {\n        rowErrorInfo = 'error';\n      }\n      newData.push({\n        url: url,\n        status: (_item$response6 = item.response) === null || _item$response6 === void 0 ? void 0 : _item$response6.status,\n        type: (_item$request = item.request) === null || _item$request === void 0 ? void 0 : _item$request.type,\n        size: textLength,\n        time: time,\n        errorInfo: {\n          row: rowErrorInfo,\n          time: timeErrorInfo\n        },\n        id: ((_item$request2 = item.request) === null || _item$request2 === void 0 || (_item$request2 = _item$request2.headers) === null || _item$request2 === void 0 ? void 0 : _item$request2.traceId) || ((_item$request3 = item.request) === null || _item$request3 === void 0 || (_item$request3 = _item$request3.headers) === null || _item$request3 === void 0 ? void 0 : _item$request3.traceid)\n      });\n    });\n    return newData;\n  };\n  var headers = [{\n    code: 'url',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0108'),\n    width: 180\n  }, {\n    code: 'status',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0109'),\n    width: 50\n  }, {\n    code: 'type',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0110'),\n    width: 50\n  }, {\n    code: 'size',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0111'),\n    width: 70,\n    align: 'right'\n  }, {\n    code: 'time',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0112'),\n    width: 75,\n    align: 'right'\n  }];\n  var items = (0, _react.useMemo)(function () {\n    var data = filterValue === '' ? data$.current : data$.current.filter(function (item) {\n      return RegExp(filterValue, 'i').test(item.url);\n    });\n    var target = sortInfo.target,\n      status = sortInfo.status;\n    if (status === 0 || !target) return createRowData(data);\n    var _data = (0, _lodash.cloneDeep)(data);\n    return createRowData(_data.sort(function (a, b) {\n      var aValue = getValue(target, a);\n      var bValue = getValue(target, b);\n      if (typeof aValue === 'number' || typeof bValue === 'number') {\n        return status === 1 ? aValue - bValue : bValue - aValue;\n      } else {\n        return status === 1 ? (aValue + '').localeCompare(bValue) : (bValue + '').localeCompare(aValue);\n      }\n    }));\n  }, [sortInfo.target, sortInfo.status, filterValue, data$.current, lastLength$.current]);\n  var onSort = (0, _react.useCallback)(function (target, status) {\n    setSortInfo({\n      target: target,\n      status: status\n    });\n  }, [items.length]);\n  var handleSearchChange = function handleSearchChange(val) {\n    setFielterValue(val);\n  };\n  var clear = function clear() {\n    _GlobalDataCacher.GlobalObject.set(_symbolConst.KEY_RESPONSE_TEXT, []);\n    forceUpdate();\n  };\n  var handleRowClick = function handleRowClick(id) {\n    var item = data$.current.find(function (item) {\n      var _item$request4, _item$request5;\n      return items[id].id && (((_item$request4 = item.request) === null || _item$request4 === void 0 || (_item$request4 = _item$request4.headers) === null || _item$request4 === void 0 ? void 0 : _item$request4.traceId) === items[id].id || ((_item$request5 = item.request) === null || _item$request5 === void 0 || (_item$request5 = _item$request5.headers) === null || _item$request5 === void 0 ? void 0 : _item$request5.traceid) === items[id].id);\n    });\n    item ? setDetail(_objectSpread({}, item)) : setDetail();\n    setSelectId(id);\n  };\n  var initLeftStyle = function initLeftStyle() {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    if (widthArr.NetWorkPanel) {\n      return {\n        width: widthArr.NetWorkPanel\n      };\n    }\n  };\n  var _useState9 = (0, _react.useState)(initLeftStyle),\n    _useState10 = _slicedToArray(_useState9, 2),\n    leftStyle = _useState10[0],\n    setLeftStyle = _useState10[1];\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].leftContainer,\n    style: leftStyle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].search\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0113'),\n    onChange: handleSearchChange\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].clear\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0114'),\n    onClick: clear\n  })), /*#__PURE__*/_react[\"default\"].createElement(_SysTable[\"default\"], {\n    headers: headers,\n    rows: items,\n    onSort: onSort,\n    rowClick: handleRowClick,\n    selectId: selectId,\n    id: \"NetWork\"\n  }), /*#__PURE__*/_react[\"default\"].createElement(Line, {\n    setLeftStyle: setLeftStyle\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].rightContainer\n  }, detail ? /*#__PURE__*/_react[\"default\"].createElement(_NetWorkDetailPanel[\"default\"], {\n    data: detail\n  }) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].noData\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0170'))));\n}\nfunction Line(_ref5) {\n  var colKey = _ref5.colKey,\n    columnSizeChange = _ref5.columnSizeChange,\n    setLeftStyle = _ref5.setLeftStyle;\n  var lineRef = (0, _react.useRef)();\n  var onMove = function onMove(dragElement, x, y, width, height, dragState) {\n    dragState === 'finished' && rememberDragPosition(x);\n    setLeftStyle({\n      width: x\n    });\n  };\n  var rememberDragPosition = function rememberDragPosition(width) {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    widthArr.NetWorkPanel = width;\n    console.log(widthArr);\n    _storage[\"default\"].set(_storage.SYS_INFO_TABLE_WIDTHS, JSON.stringify(widthArr));\n  };\n  (0, _react.useEffect)(function () {\n    (0, _dragService.dragElement)(lineRef.current, {\n      onMove: onMove,\n      cursor: 'ew-resize',\n      editOrigin: false,\n      direction: 'x',\n      savePosition: false,\n      placeHolder: true,\n      opacity: 0,\n      escDispose: true,\n      isLimit: false\n    });\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _NetWorkPanel[\"default\"].splitLine,\n    ref: lineRef,\n    draggable: true\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/NetWorkPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/NetWorkPanels.js":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/NetWorkPanels.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = PerformancePanel;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _MainView = _interopRequireDefault(__webpack_require__(/*! ../view/MainView */ \"./src/service/common/sysinfo/web/view/MainView.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-16 11:23:04\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-14 10:45:13\n * @Description: 页面性能监控\n */\n\nfunction PerformancePanel() {\n  var panels = [{\n    id: 'NetWorkPanel',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0115')\n  }, {\n    id: 'ResourcePanel',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0116')\n  }];\n  return /*#__PURE__*/_react[\"default\"].createElement(_MainView[\"default\"], {\n    panels: panels\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/NetWorkPanels.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PageDetailPanel.js":
/*!*****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PageDetailPanel.js ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = PageDetailPanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _pageUtils = __webpack_require__(/*! ./../../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _controlUtils = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nvar _PageDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./PageDetailPanel.less */ \"./src/service/common/sysinfo/web/panel/PageDetailPanel.less\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _ControlDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./ControlDetailPanel */ \"./src/service/common/sysinfo/web/panel/ControlDetailPanel.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2023-01-11 17:41:02\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-17 16:56:45\n * @Description: 表单状态分析（表单以及控件的状态分析，比如可见性、锁定性等)\n */\nfunction PageDetailPanel(_ref) {\n  var _controls$;\n  var id = _ref.id,\n    data = _ref.data,\n    name = _ref.name;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = _slicedToArray(_useState, 2),\n    controlType = _useState2[0],\n    setControlType = _useState2[1];\n  var pageId = data;\n  var pageObject = (0, _react.useMemo)(function () {\n    return (0, _pageUtils.getPageObject)(pageId);\n  }, [pageId]);\n  // 由于需要按需实时计算，需要一直关注页面销毁的情况\n  var meta = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('meta');\n  var controls = getAllControls(meta === null || meta === void 0 ? void 0 : meta.get('items'), []);\n  var _useState3 = (0, _react.useState)(controls === null || controls === void 0 || (_controls$ = controls[0]) === null || _controls$ === void 0 ? void 0 : _controls$.get('id')),\n    _useState4 = _slicedToArray(_useState3, 2),\n    selectId = _useState4[0],\n    setSelectId = _useState4[1];\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    searchVal = _useState6[0],\n    setSearchVal = _useState6[1];\n  if (controls.length === 0) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _PageDetailPanel[\"default\"].noData\n    }, \"\\u6682\\u65E0\\u6570\\u636E\");\n  }\n  var handleSearchChange = (0, _react.useCallback)(function (val) {\n    setSearchVal(val);\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageDetailPanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageDetailPanel[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearchChange,\n    className: _PageDetailPanel[\"default\"].searchClass,\n    onlyShowInput: true,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0117')\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageDetailPanel[\"default\"].left\n  }, /*#__PURE__*/_react[\"default\"].createElement(ControlTree, {\n    controls: controls || [],\n    searchVal: searchVal,\n    setControlType: setControlType,\n    setSelectId: setSelectId,\n    seleceId: selectId\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageDetailPanel[\"default\"].right\n  }, /*#__PURE__*/_react[\"default\"].createElement(_ControlDetailPanel[\"default\"], {\n    data: {\n      pageId: pageId,\n      ctrlKey: selectId\n    }\n  })));\n}\nfunction getAllControls(meta, out) {\n  if (_immutable.List.isList(meta)) {\n    meta.forEach(function (item) {\n      out.push(item);\n      getAllControls(item.get('items'), out);\n    });\n  }\n  return out;\n}\nfunction ControlTree(_ref2) {\n  var controls = _ref2.controls,\n    seleceId = _ref2.seleceId,\n    setSelectId = _ref2.setSelectId,\n    setControlType = _ref2.setControlType,\n    searchVal = _ref2.searchVal;\n  var onClick = function onClick(event) {\n    var id = event.target.dataset.id;\n    var control = controls.find(function (ctrl) {\n      return ctrl.get('id') === id;\n    });\n    setSelectId(id);\n    if (control) {\n      setControlType(control.get('type'));\n    }\n  };\n  controls = (0, _react.useMemo)(function () {\n    if (!searchVal) return controls;\n    return controls.filter(function (control) {\n      var _id$toLocaleLowerCase, _searchVal$toLocaleLo, _title$toLocaleLowerC, _searchVal$toLocaleLo2;\n      var id = control.get('id');\n      var title = getControlTitle(control);\n      return (id === null || id === void 0 || (_id$toLocaleLowerCase = id.toLocaleLowerCase) === null || _id$toLocaleLowerCase === void 0 ? void 0 : _id$toLocaleLowerCase.call(id).indexOf(searchVal === null || searchVal === void 0 || (_searchVal$toLocaleLo = searchVal.toLocaleLowerCase) === null || _searchVal$toLocaleLo === void 0 ? void 0 : _searchVal$toLocaleLo.call(searchVal))) !== -1 || (title === null || title === void 0 || (_title$toLocaleLowerC = title.toLocaleLowerCase) === null || _title$toLocaleLowerC === void 0 ? void 0 : _title$toLocaleLowerC.call(title).indexOf(searchVal === null || searchVal === void 0 || (_searchVal$toLocaleLo2 = searchVal.toLocaleLowerCase) === null || _searchVal$toLocaleLo2 === void 0 ? void 0 : _searchVal$toLocaleLo2.call(searchVal))) !== -1;\n    });\n  }, [searchVal, controls]);\n  return controls.map(function (control) {\n    var id = control.get('id');\n    var type = control.get('type');\n    var title = getControlTitle(control);\n    var className = (0, _classnames2[\"default\"])(_PageDetailPanel[\"default\"].control, _defineProperty({}, _PageDetailPanel[\"default\"].select, seleceId === id));\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: className,\n      onClick: onClick,\n      key: id,\n      \"data-id\": id,\n      title: \"\".concat(title).concat((0, _intlApi.getLangMsg)('SysInfo.key0118'), \"/\").concat(id).concat((0, _intlApi.getLangMsg)('SysInfo.key0119'), \"/\").concat(type).concat((0, _intlApi.getLangMsg)('SysInfo.key0120'))\n    }, title);\n  });\n}\nfunction getControlTitle(control) {\n  var lang = (0, _controlUtils.getLanguage)();\n  //字段标题 - caption， flex控件等 - text\n  return control.getIn(['text', lang]) || control.getIn(['caption', lang]) || control.get('id');\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PageDetailPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PageListPanel.js":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PageListPanel.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _PageListPanel = _interopRequireDefault(__webpack_require__(/*! ./PageListPanel.less */ \"./src/service/common/sysinfo/web/panel/PageListPanel.less\"));\nvar _pageUtils = __webpack_require__(/*! ./../../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _uuid = __webpack_require__(/*! ./../../utils/uuid */ \"./src/service/common/sysinfo/utils/uuid.js\");\nvar _getCurrentTimeString = _interopRequireDefault(__webpack_require__(/*! ./../../utils/getCurrentTimeString */ \"./src/service/common/sysinfo/utils/getCurrentTimeString.js\"));\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ./../../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _const = __webpack_require__(/*! ./../../const */ \"./src/service/common/sysinfo/const.js\");\nvar _Tree = _interopRequireDefault(__webpack_require__(/*! ./Tree */ \"./src/service/common/sysinfo/web/panel/Tree.js\"));\nvar _PagePanel = _interopRequireDefault(__webpack_require__(/*! ./PagePanel */ \"./src/service/common/sysinfo/web/panel/PagePanel.js\"));\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-22 11:17:03\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-13 15:48:23\n * @Description: 页面清单信息面板\n */\nfunction PageListPanel(_ref) {\n  var _pageList$;\n  var id = _ref.id;\n  var _useState = (0, _react.useState)((0, _pageUtils.transformToTree)()),\n    _useState2 = _slicedToArray(_useState, 2),\n    pageList = _useState2[0],\n    setPageList = _useState2[1];\n  var _useState3 = (0, _react.useState)(pageList === null || pageList === void 0 || (_pageList$ = pageList[0]) === null || _pageList$ === void 0 ? void 0 : _pageList$.id),\n    _useState4 = _slicedToArray(_useState3, 2),\n    currentPageId = _useState4[0],\n    setCurrentPageId = _useState4[1];\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    searchVal = _useState6[0],\n    setSearchVal = _useState6[1];\n  var onClick = (0, _react.useCallback)(function (pageId, name) {\n    setCurrentPageId(pageId);\n  }, []);\n  var onRefresh = (0, _react.useCallback)(function () {\n    setPageList((0, _pageUtils.transformToTree)());\n  }, []);\n  (0, _react.useEffect)(function () {\n    var _pageList$2;\n    !currentPageId && setCurrentPageId(pageList === null || pageList === void 0 || (_pageList$2 = pageList[0]) === null || _pageList$2 === void 0 ? void 0 : _pageList$2.id);\n  }, [currentPageId, pageList]);\n  (0, _react.useEffect)(function () {\n    setTimeout(function () {\n      onRefresh();\n    }, 2000);\n  }, []);\n  var handleSearchChange = (0, _react.useCallback)(function (val) {\n    setSearchVal(val);\n  });\n  var treeData = (0, _react.useMemo)(function () {\n    return filterTreeDataBySearch(searchVal, pageList);\n  }, [searchVal, pageList]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    id: id,\n    className: (0, _classnames[\"default\"])(_PageListPanel[\"default\"].root)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageListPanel[\"default\"].left\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageListPanel[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    onChange: handleSearchChange,\n    className: _PageListPanel[\"default\"].searchClass,\n    onlyShowInput: true,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0121')\n  }), /*#__PURE__*/_react[\"default\"].createElement(Refresh, {\n    onClick: onRefresh\n  })), /*#__PURE__*/_react[\"default\"].createElement(_Tree[\"default\"], {\n    treeData: treeData,\n    className: _PageListPanel[\"default\"].treeClass,\n    onNodeClick: onClick,\n    selectId: currentPageId\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageListPanel[\"default\"].right\n  }, /*#__PURE__*/_react[\"default\"].createElement(_PagePanel[\"default\"], {\n    pageId: currentPageId\n  })));\n  // return <Tree treeData={pageList} onNodeClick={onClick} />\n}\nvar filterTreeDataBySearch = function filterTreeDataBySearch(text, treeData) {\n  if (!text && text !== 0) return treeData;\n  var showIds = [];\n  var searchNodes = treeData.filter(function (item, i) {\n    var _item$text, _item$text$toLocaleLo, _text$toLocaleLowerCa;\n    var isExist = ((_item$text = item.text) === null || _item$text === void 0 || (_item$text$toLocaleLo = _item$text.toLocaleLowerCase) === null || _item$text$toLocaleLo === void 0 ? void 0 : _item$text$toLocaleLo.call(_item$text).indexOf(text === null || text === void 0 || (_text$toLocaleLowerCa = text.toLocaleLowerCase) === null || _text$toLocaleLowerCa === void 0 ? void 0 : _text$toLocaleLowerCa.call(text))) !== -1;\n    if (isExist) {\n      showIds.push(item.id);\n    }\n    return isExist;\n  });\n  searchNodes.forEach(function (node) {\n    showIds = showIds.concat(getParentIds(node, treeData)());\n  });\n  return treeData.filter(function (_ref2) {\n    var id = _ref2.id;\n    return showIds.includes(id);\n  });\n};\nvar getBrotherIds = function getBrotherIds(node, treeData) {\n  var ids = [];\n  if (node.parentId) {\n    treeData.forEach(function (_ref3) {\n      var id = _ref3.id,\n        parentId = _ref3.parentId;\n      if (parentId === node.parentId) {\n        ids.push(id);\n      }\n    });\n  }\n  return ids;\n};\nvar getParentIds = function getParentIds(node, treeData) {\n  return function (state) {\n    var ids = [];\n    var parentId = node.parentId;\n    while (parentId) {\n      var _treeData$find;\n      ids.push(parentId);\n      parentId = (_treeData$find = treeData.find(function (node) {\n        return node.id === parentId;\n      })) === null || _treeData$find === void 0 ? void 0 : _treeData$find.parentId;\n    }\n    return ids;\n  };\n};\n\n// function PageListPanelForList ({ id, data }) {\n//   const [pageList, setPageList] = useState(getAllPageObject())\n//   const context = useContext(SysContext)\n//   const dispatch = context.dispatch\n//   useEffect(() => {\n//     const list = transformToTree()\n//   }, [])\n//   const onRefresh = (event) => {\n//     event.stopPropagation()\n//     setPageList(getAllPageObject())\n//   }\n//   const onClick = event => {\n//     const name = event.target.innerText || '页面详情'\n//     const pageId = event.target.dataset.pageId\n//     const id = createViewId()\n//     const incViewId = parseInt(id.substr(id.lastIndexOf('_') + 1))\n//     pageId && dispatch({\n//       action: ACTION_SHOW_VIEW,\n//       payload: {\n//         id,\n//         name,\n//         layout: { docked: 'left_top', left: (incViewId % 10 * 5), top: (incViewId % 10 * 5) },\n//         panelItems: [{ type: 'PagePanel', id: pageId, name, data: { pageId } }]\n//       }\n//     })// { viewId, layout, panelItems } = payload\n//   }\n//   return (\n//     <div id={id} className={classnames(panelStyles.root, styles.root)} onClick={onClick}>\n//       <Refresh onClick={onRefresh} />\n//       {\n//             pageList.map(pageInfo => {\n//               const pageId = pageInfo.pageId\n//               return <PageItem key={pageId} pageId={pageId} pageData={pageInfo.data} dispatch={dispatch} />\n//             })\n//         }\n//     </div>\n//   )\n// }\n\nfunction Refresh(_ref4) {\n  var onClick = _ref4.onClick;\n  var _useState7 = (0, _react.useState)(function () {\n      return (0, _getCurrentTimeString[\"default\"])();\n    }),\n    _useState8 = _slicedToArray(_useState7, 2),\n    time = _useState8[0],\n    setTime = _useState8[1];\n  var onRefresh = (0, _react.useCallback)(function (event) {\n    event.stopPropagation();\n    setTime((0, _getCurrentTimeString[\"default\"])());\n    onClick === null || onClick === void 0 || onClick(event);\n  }, [onClick]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PageListPanel[\"default\"].refresh,\n    onClick: onRefresh\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-shuaxin3\"\n  }));\n}\nvar _default = exports[\"default\"] = /*#__PURE__*/(0, _react.memo)(PageListPanel);\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PageListPanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PagePanel.js":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PagePanel.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = PagePanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _PagePanel = _interopRequireDefault(__webpack_require__(/*! ./PagePanel.less */ \"./src/service/common/sysinfo/web/panel/PagePanel.less\"));\nvar _pageUtils = __webpack_require__(/*! ./../../utils/pageUtils */ \"./src/service/common/sysinfo/utils/pageUtils.js\");\nvar _uuid = __webpack_require__(/*! ./../../utils/uuid */ \"./src/service/common/sysinfo/utils/uuid.js\");\nvar _SysContext = _interopRequireDefault(__webpack_require__(/*! ./../../SysContext */ \"./src/service/common/sysinfo/SysContext.js\"));\nvar _const = __webpack_require__(/*! ./../../const */ \"./src/service/common/sysinfo/const.js\");\nvar _memoryCacher = __webpack_require__(/*! @/model/memoryCacher */ \"./src/model/memoryCacher.js\");\nvar _getNewViewParam = _interopRequireDefault(__webpack_require__(/*! ./../../utils/getNewViewParam */ \"./src/service/common/sysinfo/utils/getNewViewParam.js\"));\nvar _panelFactory = _interopRequireDefault(__webpack_require__(/*! ../panelFactory */ \"./src/service/common/sysinfo/web/panelFactory.js\"));\nvar _classnames6 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _getCurrentTimeString = _interopRequireDefault(__webpack_require__(/*! ../../utils/getCurrentTimeString */ \"./src/service/common/sysinfo/utils/getCurrentTimeString.js\"));\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\"));\nvar _immutable = __webpack_require__(/*! immutable */ \"webpack/sharing/consume/default/immutable/immutable?f2ca\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-27 13:39:10\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-17 16:54:11\n * @Description: 单个页面面板，显示单个页面信息\n */\nfunction PagePanel(_ref) {\n  var pageId = _ref.pageId;\n  var context = (0, _react.useContext)(_SysContext[\"default\"]);\n  var dispatch = context.dispatch;\n  var error = '';\n  // if (!pageObject) {\n  //   error = '页面已经销毁'\n  // }\n  var showConfig = function showConfig() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key007'\n    }), \"]\");\n    return {\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: config,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n  var showMeta = function showMeta() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var meta = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('meta');\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key008'\n    }), \"]\");\n    return {\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: meta,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n  var showData = function showData() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var data = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('data');\n    var pageData = data !== null && data !== void 0 && data.size ? data : '';\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key009'\n    }), \"]\");\n    return {\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: pageData,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n  var showDomElement = function showDomElement() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var pageDom = document.getElementById(pageId);\n    var domString = pageDom ? pageDom.outerHTML : '';\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key010'\n    }), \"]\");\n    return {\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: domString,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n  var showMemoCacherElement = function showMemoCacherElement() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key011'\n    }), \"]\");\n    var immData = (0, _memoryCacher.getPageData)(pageId, []);\n    var memoCacher = immData && immData.toJS();\n    return {\n      type: 'JsonPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: memoCacher,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n  function getAllControls(meta, out) {\n    if (_immutable.List.isList(meta)) {\n      meta.forEach(function (item) {\n        out.push(item);\n        getAllControls(item.get('items'), out);\n      });\n    }\n    return out;\n  }\n  var showParsePage = function showParsePage() {\n    var pageObject = (0, _pageUtils.getPageObject)(pageId);\n    var config = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('config');\n    var name = (0, _pageUtils.getCaption)(config) + \"-[\".concat((0, _intlApi.getLangMsg)({\n      key: 'Service.key012'\n    }), \"]\");\n    var meta = pageObject === null || pageObject === void 0 ? void 0 : pageObject.get('meta');\n    var controls = getAllControls(meta === null || meta === void 0 ? void 0 : meta.get('items'), []);\n    var data = controls.length === 0 ? '' : pageId;\n    return {\n      type: 'PageDetailPanel',\n      id: (0, _uuid.createPanelId)(),\n      name: name,\n      data: data,\n      time: (0, _getCurrentTimeString[\"default\"])(true)\n    };\n  };\n\n  // const pageDom = document.getElementById(pageId)\n  // const domString = pageDom ? pageDom.outerHTML : `页面元素不存在:${pageId}`\n  var panels = (0, _react.useMemo)(function () {\n    return [{\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0122'),\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showConfig,\n      data: showConfig()\n    }, {\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0123'),\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showMeta,\n      data: showMeta()\n    }, {\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0124'),\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showDomElement,\n      data: showDomElement()\n    }, {\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0125'),\n      type: 'JsonPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showMemoCacherElement,\n      data: showMemoCacherElement()\n    }, {\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0126'),\n      type: 'CodeMirrorPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showData,\n      data: showData()\n    }, {\n      name: (0, _intlApi.getLangMsg)('SysInfo.key0127'),\n      type: 'PageDetailPanel',\n      id: (0, _uuid.createPanelId)(),\n      getPanelData: showParsePage,\n      data: showParsePage()\n    }];\n  }, [pageId]);\n  var _useState = (0, _react.useState)(panels[0].id),\n    _useState2 = _slicedToArray(_useState, 2),\n    activeKey = _useState2[0],\n    setActiveKey = _useState2[1];\n  (0, _react.useEffect)(function () {\n    setActiveKey(panels[0].id);\n  }, [pageId]);\n  var handleTabClick = function handleTabClick(event) {\n    var id = event.target.dataset.id;\n    setActiveKey(id);\n  };\n  if (!pageId) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _PagePanel[\"default\"].noData\n    }, (0, _intlApi.getLangMsg)('SysInfo.key0170'));\n  }\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PagePanel[\"default\"].root\n  }, error && /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, error), !error && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PagePanel[\"default\"]['button-container']\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[0].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[0].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0055')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[1].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[1].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0056')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[2].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[2].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0054')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[3].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[3].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0057')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[4].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[4].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0126')), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    onClick: handleTabClick,\n    className: activeKey === panels[5].id ? _PagePanel[\"default\"].active : '',\n    \"data-id\": panels[5].id\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0053'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PagePanel[\"default\"]['panel-container']\n  }, panels.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(Panel, {\n      key: item.id,\n      item: item,\n      activeKey: activeKey\n    });\n  })));\n}\nfunction Panel(_ref2) {\n  var item = _ref2.item,\n    activeKey = _ref2.activeKey;\n  var id = item.id,\n    type = item.type;\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = _slicedToArray(_useState3, 2),\n    data = _useState4[0],\n    setData = _useState4[1];\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = _slicedToArray(_useState5, 2),\n    time = _useState6[0],\n    setTime = _useState6[1];\n  var SubPanel = (0, _react.useMemo)(function () {\n    return (0, _panelFactory[\"default\"])(type);\n  }, [type]);\n  var timer = (0, _react.useRef)();\n  var handleClick = function handleClick() {\n    if (timer.current) return;\n    if (data.length < 5) {\n      var panelData = item.getPanelData();\n      setTime(panelData.time);\n      setData([].concat(_toConsumableArray(data), [panelData]));\n      timer.current = setTimeout(function () {\n        clearTimeout(timer.current);\n        timer.current = null;\n      }, 100);\n    }\n  };\n  var removeData = function removeData(key) {\n    var _newData;\n    var newData = data.filter(function (_ref3) {\n      var time = _ref3.time;\n      return key !== time;\n    });\n    setTime(newData === null || newData === void 0 || (_newData = newData[newData.length - 1]) === null || _newData === void 0 ? void 0 : _newData.time);\n    setData(_toConsumableArray(newData));\n  };\n  var handleTabClick = function handleTabClick(val) {\n    setTime(val);\n  };\n  (0, _react.useEffect)(function () {\n    if (activeKey === id && data.length < 1) {\n      var panelData = item.getPanelData();\n      setTime(panelData.time);\n      setData([].concat(_toConsumableArray(data), [panelData]));\n    }\n  }, [activeKey, id]);\n  var currentData = data.find(function (item) {\n    return item.time === time;\n  }) || data[0];\n  var panelRoot = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty({}, _PagePanel[\"default\"].panelRoot, true), _PagePanel[\"default\"].select, activeKey === id));\n  var noDataClass = (0, _classnames6[\"default\"])(_defineProperty({}, _PagePanel[\"default\"].noDataClass, true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: panelRoot\n  }, currentData !== null && currentData !== void 0 && currentData.data ? /*#__PURE__*/_react[\"default\"].createElement(_react[\"default\"].Fragment, null, /*#__PURE__*/_react[\"default\"].createElement(SubPanel, currentData), /*#__PURE__*/_react[\"default\"].createElement(Time, {\n    items: data,\n    handleTabClick: handleTabClick,\n    removeData: removeData,\n    handleClick: handleClick,\n    activeKey: time\n  })) : /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: noDataClass\n  }, (0, _intlApi.getLangMsg)('SysInfo.key0170')));\n}\nfunction Time(props) {\n  var addTimeCls = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _PagePanel[\"default\"].item, true), _PagePanel[\"default\"].disable, props.items.length >= 5), _PagePanel[\"default\"].addTime, true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _PagePanel[\"default\"].bar\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    onClick: props.handleClick,\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0130'),\n    className: addTimeCls,\n    style: {\n      width: 48\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-shubiaozhankai3\"\n  })), props.items.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(TimeItem, _extends({\n      key: item.time,\n      item: item\n    }, props));\n  }));\n}\nfunction TimeItem(props) {\n  var handleTabClick = props.handleTabClick,\n    activeKey = props.activeKey,\n    removeData = props.removeData;\n  var time = props.item.time;\n  var closeRef = (0, _react.useRef)();\n  var barItemsCls = (0, _classnames6[\"default\"])(_defineProperty(_defineProperty({}, _PagePanel[\"default\"].item, true), _PagePanel[\"default\"].active, activeKey === time));\n  var handleClick = function handleClick(e) {\n    if (e.target !== closeRef.current) {\n      handleTabClick(time);\n    }\n  };\n  var handleClose = function handleClose() {\n    removeData(time);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: barItemsCls,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _PagePanel[\"default\"].text\n  }, time), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    ref: closeRef,\n    className: (0, _classnames6[\"default\"])(_defineProperty({}, _PagePanel[\"default\"].close, true), 'kdfont kdfont-toubudaohang_guanbi'),\n    onClick: handleClose\n  }));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PagePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PerformancePanel.js":
/*!******************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PerformancePanel.js ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = PerformancePanel;\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _MainView = _interopRequireDefault(__webpack_require__(/*! ../view/MainView */ \"./src/service/common/sysinfo/web/view/MainView.js\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-16 11:23:04\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-14 10:45:13\n * @Description: 页面性能监控\n */\n\nfunction PerformancePanel() {\n  var panels = [{\n    id: 'FormPerformancePanel',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0145')\n  }, {\n    id: 'DirectivePerformancePanel',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0147')\n  }];\n  return /*#__PURE__*/_react[\"default\"].createElement(_MainView[\"default\"], {\n    panels: panels\n  });\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PerformancePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ResourcePanel.js":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ResourcePanel.js ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = ResourcePanel;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.last-index-of.js */ \"../../node_modules/core-js/modules/es.array.last-index-of.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.array.sort.js */ \"../../node_modules/core-js/modules/es.array.sort.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/es.string.search.js */ \"../../node_modules/core-js/modules/es.string.search.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _ResourcePanel = _interopRequireDefault(__webpack_require__(/*! ./ResourcePanel.less */ \"./src/service/common/sysinfo/web/panel/ResourcePanel.less\"));\nvar _sysUtils = __webpack_require__(/*! ../../utils/sysUtils */ \"./src/service/common/sysinfo/utils/sysUtils.js\");\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nvar _Search = _interopRequireDefault(__webpack_require__(/*! ../Search.js */ \"./src/service/common/sysinfo/web/Search.js\"));\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable */ \"./src/service/common/sysinfo/web/panel/SysTable.jsx\"));\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-16 11:21:39\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2022-12-21 10:33:18\n * @Description: 资源加载监控(js,css,ajax...)\n */\nfunction ResourcePanel(_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    data = _ref.data;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = _slicedToArray(_useState, 2),\n    filter = _useState2[0],\n    setFilter = _useState2[1];\n  var _useState3 = (0, _react.useState)({}),\n    _useState4 = _slicedToArray(_useState3, 2),\n    sortInfo = _useState4[0],\n    setSortInfo = _useState4[1];\n  var items$ = (0, _react.useRef)([]);\n  var _useReducer = (0, _react.useReducer)(function (state) {\n      return state + 1;\n    }, 0),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    forceUpdate = _useReducer2[1];\n  (0, _react.useEffect)(function () {\n    var _window;\n    (_window = window) === null || _window === void 0 || (_window = _window.performance) === null || _window === void 0 || _window.getEntriesByType('resource').forEach(function (_ref2) {\n      var name = _ref2.name,\n        initiatorType = _ref2.initiatorType,\n        startTime = _ref2.startTime,\n        duration = _ref2.duration,\n        decodedBodySize = _ref2.decodedBodySize,\n        transferSize = _ref2.transferSize;\n      items$.current.push({\n        name: name,\n        initiatorType: initiatorType,\n        startTime: startTime,\n        duration: duration,\n        decodedBodySize: decodedBodySize,\n        isCache: isCache(transferSize, decodedBodySize)\n      });\n    });\n    forceUpdate(); // 刷新静态资源列表\n    var userTimingObserver;\n    if (window.PerformanceObserver) {\n      userTimingObserver = new window.PerformanceObserver(function (list) {\n        list.getEntries().forEach(function (_ref3) {\n          var name = _ref3.name,\n            initiatorType = _ref3.initiatorType,\n            startTime = _ref3.startTime,\n            duration = _ref3.duration,\n            decodedBodySize = _ref3.decodedBodySize,\n            transferSize = _ref3.transferSize;\n          items$.current.push({\n            name: name,\n            initiatorType: initiatorType,\n            startTime: startTime,\n            duration: duration,\n            decodedBodySize: decodedBodySize,\n            isCache: isCache(transferSize, decodedBodySize)\n          });\n        });\n        forceUpdate();\n      });\n      userTimingObserver.observe({\n        entryTypes: ['resource']\n      });\n    }\n    return function () {\n      var _userTimingObserver;\n      (_userTimingObserver = userTimingObserver) === null || _userTimingObserver === void 0 || _userTimingObserver.disconnect();\n    };\n  }, []);\n  var getValue = function getValue(key, data) {\n    var value;\n    var name = data.name,\n      initiatorType = data.initiatorType,\n      startTime = data.startTime,\n      duration = data.duration,\n      decodedBodySize = data.decodedBodySize;\n    switch (key) {\n      case 'url':\n        value = name.slice(name.lastIndexOf('/') + 1);\n        break;\n      case 'startTime':\n        value = startTime;\n        break;\n      case 'time':\n        value = duration;\n        break;\n      case 'size':\n        value = decodedBodySize;\n        break;\n      case 'type':\n        value = initiatorType;\n        break;\n      default:\n        break;\n    }\n    return value;\n  };\n  var headers = [{\n    code: 'url',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0148'),\n    width: 300,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }, {\n    code: 'startTime',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0149'),\n    width: 100,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }, {\n    code: 'time',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0142'),\n    width: 85,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }, {\n    code: 'size',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0151'),\n    width: 130,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    },\n    align: 'right'\n  }, {\n    code: 'type',\n    name: (0, _intlApi.getLangMsg)('SysInfo.key0152'),\n    width: 100,\n    features: {\n      sortable: function sortable() {\n        return false;\n      }\n    }\n  }];\n  var createRowData = function createRowData(data) {\n    var newData = [];\n    data.forEach(function (row, index) {\n      var name = row.name,\n        initiatorType = row.initiatorType,\n        startTime = row.startTime,\n        duration = row.duration,\n        decodedBodySize = row.decodedBodySize,\n        isCache = row.isCache;\n      var url = decodeURIComponent(name).slice(decodeURIComponent(name).lastIndexOf('/') + 1);\n      newData.push({\n        url: url,\n        startTime: getStartTime(startTime),\n        time: formatTime(duration),\n        size: isCache ? '(memory cache)' : (0, _sysUtils.converSize)(decodedBodySize),\n        type: initiatorType,\n        tips: {\n          url: decodeURIComponent(name)\n        }\n      });\n    });\n    return newData;\n  };\n  var items = (0, _react.useMemo)(function () {\n    var data = filter === '' ? items$.current : items$.current.filter(function (item) {\n      var _item$name$toLocaleLo, _item$name, _filter$toLocaleLower;\n      return (_item$name$toLocaleLo = (_item$name = item.name).toLocaleLowerCase) === null || _item$name$toLocaleLo === void 0 ? void 0 : _item$name$toLocaleLo.call(_item$name).includes((_filter$toLocaleLower = filter.toLocaleLowerCase) === null || _filter$toLocaleLower === void 0 ? void 0 : _filter$toLocaleLower.call(filter));\n    });\n    var target = sortInfo.target,\n      status = sortInfo.status;\n    if (!status) return createRowData(data);\n    var _data = (0, _lodash.cloneDeep)(data);\n    return createRowData(_data.sort(function (a, b) {\n      var aValue = getValue(target, a);\n      var bValue = getValue(target, b);\n      if (typeof aValue === 'number' || typeof bValue === 'number') {\n        if (aValue === '(memory cache)') {\n          return status === 1 ? -1 : 1;\n        }\n        return status === 1 ? aValue - bValue : bValue - aValue;\n      } else {\n        return status === 1 ? (aValue + '').localeCompare(bValue) : (bValue + '').localeCompare(aValue);\n      }\n    }));\n  }, [sortInfo.target, sortInfo.status, filter, items$.current.length]);\n  var onSort = (0, _react.useCallback)(function (target, status) {\n    setSortInfo({\n      target: target,\n      status: status\n    });\n  }, [items.length]);\n  var handleSearchChange = function handleSearchChange(val) {\n    setFilter(val);\n  };\n  var clear = function clear() {\n    items$.current = [];\n    forceUpdate();\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ResourcePanel[\"default\"].root\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ResourcePanel[\"default\"].search\n  }, /*#__PURE__*/_react[\"default\"].createElement(_Search[\"default\"], {\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0153'),\n    onChange: handleSearchChange,\n    className: _ResourcePanel[\"default\"].searchContainer\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _ResourcePanel[\"default\"].clear\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-jinzhi\",\n    title: (0, _intlApi.getLangMsg)('SysInfo.key0154'),\n    onClick: clear\n  })), /*#__PURE__*/_react[\"default\"].createElement(_SysTable[\"default\"], {\n    headers: headers,\n    rows: items,\n    onSort: onSort,\n    id: \"Resource\"\n  }));\n}\nfunction formatTime(time) {\n  var str = time + '';\n  var pos = str.indexOf('.');\n  return pos === -1 ? time : str.substr(0, pos + 2);\n}\nfunction isCache(transferSize, encodedBodySize) {\n  // 直接从缓存读取或 304\n  return transferSize === 0 || transferSize !== 0 && encodedBodySize === 0;\n}\nfunction getStartTime(startTime) {\n  var timeOrigin = window.performance.timeOrigin || window.performance.timing.navigationStart;\n  var now = new Date(timeOrigin + parseInt(startTime));\n  return \"\".concat(now.getHours(), \":\").concat(now.getMinutes(), \":\").concat(now.getSeconds(), \".\").concat(now.getMilliseconds());\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ResourcePanel.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/SysTable.jsx":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/SysTable.jsx ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-properties.js */ \"../../node_modules/core-js/modules/es.object.define-properties.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptors.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.string.trim-start.js */ \"../../node_modules/core-js/modules/es.string.trim-start.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.keys.js */ \"../../node_modules/core-js/modules/es.object.keys.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.parse-int.js */ \"../../node_modules/core-js/modules/es.parse-int.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.constructor.js */ \"../../node_modules/core-js/modules/es.regexp.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.split.js */ \"../../node_modules/core-js/modules/es.string.split.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n__webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _dragService = __webpack_require__(/*! @/service/web/dragService.js */ \"./src/service/web/dragService.js\");\nvar _SysTable = _interopRequireDefault(__webpack_require__(/*! ./SysTable.less */ \"./src/service/common/sysinfo/web/panel/SysTable.less\"));\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nvar _kdesign = __webpack_require__(/*! @kdcloudjs/kdesign */ \"webpack/sharing/consume/default/@kdcloudjs/kdesign/@kdcloudjs/kdesign\");\nvar _lodash = __webpack_require__(/*! lodash */ \"../../node_modules/lodash/lodash.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar Table = function Table(_ref) {\n  var headers = _ref.headers,\n    rows = _ref.rows,\n    rowClick = _ref.rowClick,\n    selectId = _ref.selectId,\n    onSort = _ref.onSort,\n    id = _ref.id,\n    filterChange = _ref.filterChange;\n  var initColumnSize = function initColumnSize() {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    var defaultColumnSize = {};\n    headers.forEach(function (_ref2) {\n      var code = _ref2.code,\n        width = _ref2.width;\n      defaultColumnSize[code] = widthArr[\"\".concat(id, \"-\").concat(code)] || width;\n    });\n    defaultColumnSize.fillColumn = 0;\n    return defaultColumnSize;\n  };\n  var _useState = (0, _react.useState)(initColumnSize),\n    _useState2 = _slicedToArray(_useState, 2),\n    columnSize = _useState2[0],\n    setColumnSize = _useState2[1];\n  var rootEle = (0, _react.useRef)();\n  var handleRowClick = function handleRowClick(e) {\n    rowClick && rowClick(e.currentTarget.dataset.id);\n  };\n  var rememberDragPosition = function rememberDragPosition(widthObj) {\n    var widthStr = _storage[\"default\"].get(_storage.SYS_INFO_TABLE_WIDTHS);\n    var widthArr = widthStr && JSON.parse(widthStr) || {};\n    for (var key in widthObj) {\n      widthArr[\"\".concat(id, \"-\").concat(key)] = widthObj[key];\n    }\n    _storage[\"default\"].set(_storage.SYS_INFO_TABLE_WIDTHS, JSON.stringify(widthArr));\n  };\n  var isAllow = (0, _react.useRef)(true);\n  (0, _react.useEffect)(function () {\n    if (!isAllow.current) return;\n    isAllow.current = false;\n    var timer = setTimeout(function () {\n      setColumnSize(function (columnSize) {\n        rememberDragPosition(columnSize);\n        return columnSize;\n      });\n      clearTimeout(timer);\n      timer = null;\n      isAllow.current = true;\n    }, 1000);\n  }, [columnSize]);\n  var columnSizeChange = function columnSizeChange(colKey, changeWidth, cancelDrag) {\n    setColumnSize(function (columnSize) {\n      var width = columnSize[colKey] + changeWidth;\n      if (width < 50) {\n        setTimeout(function () {\n          cancelDrag();\n        }, 0);\n        return columnSize;\n      }\n      return _objectSpread(_objectSpread({}, columnSize), {}, _defineProperty({}, colKey, width));\n    });\n  };\n  var _useState3 = (0, _react.useState)({}),\n    _useState4 = _slicedToArray(_useState3, 2),\n    tBodyH = _useState4[0],\n    setTBodyH = _useState4[1];\n  (0, _react.useEffect)(function () {\n    if (rows.length * 24 > rootEle.current.offsetHeight) {\n      setTBodyH({\n        height: 'calc(100% - 25px)'\n      });\n    } else {\n      setTBodyH({\n        height: 'auto'\n      });\n    }\n  }, [rows.length]);\n  var style = Object.assign({\n    display: 'flex',\n    overflow: 'auto'\n  }, tBodyH);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysTable[\"default\"].root,\n    ref: rootEle\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"table\", {\n    className: _SysTable[\"default\"].table\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"colgroup\", null, headers.map(function (_ref3) {\n    var code = _ref3.code,\n      name = _ref3.name,\n      width = _ref3.width;\n    return /*#__PURE__*/_react[\"default\"].createElement(\"col\", {\n      key: code,\n      style: {\n        width: columnSize[code]\n      }\n    });\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"col\", {\n    key: \"fillColumn\",\n    style: {\n      width: 'auto'\n    }\n  })), /*#__PURE__*/_react[\"default\"].createElement(Thead, {\n    headers: headers,\n    columnSizeChange: columnSizeChange,\n    onSort: onSort,\n    filterChange: filterChange\n  })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    style: style\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"table\", {\n    className: _SysTable[\"default\"].table\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"colgroup\", null, headers.map(function (_ref4) {\n    var code = _ref4.code,\n      name = _ref4.name,\n      width = _ref4.width;\n    return /*#__PURE__*/_react[\"default\"].createElement(\"col\", {\n      key: code,\n      style: {\n        width: columnSize[code]\n      }\n    });\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"col\", {\n    key: \"fillColumn\",\n    style: {\n      width: 'auto'\n    }\n  })), /*#__PURE__*/_react[\"default\"].createElement(Tbody, {\n    headers: headers,\n    rows: rows,\n    handleRowClick: handleRowClick,\n    selectId: selectId\n  }))));\n};\nvar _default = exports[\"default\"] = Table;\nfunction Thead(_ref5) {\n  var headers = _ref5.headers,\n    columnSizeChange = _ref5.columnSizeChange,\n    onSort = _ref5.onSort,\n    filterChange = _ref5.filterChange;\n  var _useState5 = (0, _react.useState)({}),\n    _useState6 = _slicedToArray(_useState5, 2),\n    sortStatus = _useState6[0],\n    setSortStatus = _useState6[1];\n  var getSortBottomClassName = function getSortBottomClassName(name) {\n    return (0, _classnames[\"default\"])(_defineProperty(_defineProperty({\n      'kdfont kdfont-bottom': true\n    }, _SysTable[\"default\"].bottom, true), _SysTable[\"default\"].active, sortStatus[name] === -1));\n  };\n  var getSortTopClassName = function getSortTopClassName(name) {\n    return (0, _classnames[\"default\"])(_defineProperty(_defineProperty({\n      'kdfont kdfont-top': true\n    }, _SysTable[\"default\"].top, true), _SysTable[\"default\"].active, sortStatus[name] === 1));\n  };\n\n  // -1降序 1升序 0还原\n  var getNextSortStatus = function getNextSortStatus(name) {\n    if (sortStatus[name] === 0) {\n      return -1;\n    } else if (sortStatus[name] === -1) {\n      return 1;\n    } else if (sortStatus[name] === 1) {\n      return 0;\n    } else {\n      return -1;\n    }\n  };\n  var handleSort = function handleSort(colKey) {\n    var nextSortState = getNextSortStatus(colKey);\n    onSort && onSort(colKey, nextSortState);\n    setSortStatus(_defineProperty({}, colKey, nextSortState));\n  };\n  var renderButtons = function renderButtons(key) {\n    return /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: _SysTable[\"default\"].button,\n      onClick: function onClick() {\n        return handleSort(key);\n      }\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: getSortTopClassName(key)\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n      className: getSortBottomClassName(key)\n    }));\n  };\n  var shouldRenderSortButton = function shouldRenderSortButton(name) {\n    return sortStatus[name] !== 0 && sortStatus[name];\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"thead\", {\n    className: _SysTable[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"tr\", {\n    className: _SysTable[\"default\"].rowHeader\n  }, headers.map(function (_ref6) {\n    var code = _ref6.code,\n      name = _ref6.name,\n      align = _ref6.align,\n      helpText = _ref6.helpText,\n      filter = _ref6.filter;\n    var justifyContent = align === 'right' ? 'flex-end' : 'flex-start';\n    return /*#__PURE__*/_react[\"default\"].createElement(\"th\", {\n      key: code,\n      className: _SysTable[\"default\"].row\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _SysTable[\"default\"].cell,\n      style: {\n        justifyContent: justifyContent\n      }\n    }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n      className: _SysTable[\"default\"].content,\n      onClick: function onClick() {\n        return handleSort(code);\n      }\n    }, name), !!helpText && /*#__PURE__*/_react[\"default\"].createElement(BrowserInfo, {\n      title: helpText\n    }), !!onSort && shouldRenderSortButton(code) && renderButtons(code), !!filter && /*#__PURE__*/_react[\"default\"].createElement(Filter, {\n      filter: filter,\n      ctlKey: code,\n      filterChange: filterChange\n    }), /*#__PURE__*/_react[\"default\"].createElement(Line, {\n      colKey: code,\n      columnSizeChange: columnSizeChange\n    })));\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"th\", {\n    className: _SysTable[\"default\"].row\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysTable[\"default\"].cell\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysTable[\"default\"].content\n  }), /*#__PURE__*/_react[\"default\"].createElement(Line, {\n    colKey: \"fillColumn\",\n    columnSizeChange: columnSizeChange\n  })))));\n}\nfunction Tbody(_ref7) {\n  var rows = _ref7.rows,\n    headers = _ref7.headers,\n    handleRowClick = _ref7.handleRowClick,\n    selectId = _ref7.selectId;\n  var tbody = (0, _classnames[\"default\"])(_defineProperty(_defineProperty({}, _SysTable[\"default\"].allowSelectId, !!selectId || selectId === 0), _SysTable[\"default\"].tbody, true));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"tbody\", {\n    className: tbody\n  }, rows.map(function (row, index) {\n    var errorInfo = row.errorInfo || {};\n    return /*#__PURE__*/_react[\"default\"].createElement(\"tr\", {\n      key: index,\n      \"data-id\": index,\n      onClick: handleRowClick,\n      className: (0, _classnames[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _SysTable[\"default\"].row, true), _SysTable[\"default\"].error, errorInfo.row === 'error'), _SysTable[\"default\"].warn, errorInfo.row === 'warn'), _SysTable[\"default\"].select, parseInt(selectId) === index))\n    }, headers.map(function (_ref8) {\n      var _row$tips;\n      var code = _ref8.code,\n        align = _ref8.align,\n        color = _ref8.color;\n      var textAlign = align === 'right' ? 'end' : 'start';\n      return /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n        key: code,\n        title: row === null || row === void 0 || (_row$tips = row.tips) === null || _row$tips === void 0 ? void 0 : _row$tips[code],\n        className: (0, _classnames[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _SysTable[\"default\"].cell, true), _SysTable[\"default\"].error, errorInfo[code] === 'error'), _SysTable[\"default\"].warn, errorInfo[code] === 'warn')),\n        style: {\n          textAlign: textAlign,\n          color: row[code] === (color === null || color === void 0 ? void 0 : color.tagVal) && (color === null || color === void 0 ? void 0 : color[code]) || typeof color === 'string' && color\n        }\n      }, row[code]);\n    }), /*#__PURE__*/_react[\"default\"].createElement(\"td\", {\n      className: _SysTable[\"default\"].cell\n    }, \"  \"));\n  }));\n}\nfunction Line(_ref9) {\n  var colKey = _ref9.colKey,\n    columnSizeChange = _ref9.columnSizeChange;\n  var lineRef = (0, _react.useRef)();\n  var cloneEleSize = (0, _react.useRef)();\n  var onMove = function onMove(dragElement, x, y, width, height, dragState, cancelDrag) {\n    var changeWidth = x - cloneEleSize.current;\n    columnSizeChange(colKey, changeWidth, cancelDrag);\n    cloneEleSize.current = x;\n  };\n  var onStart = function onStart(cloneElement, originElement) {\n    var rect = cloneElement.getBoundingClientRect();\n    cloneEleSize.current = (rect === null || rect === void 0 ? void 0 : rect.x) || (rect === null || rect === void 0 ? void 0 : rect.left);\n  };\n  (0, _react.useEffect)(function () {\n    (0, _dragService.dragElement)(lineRef.current, {\n      onMove: onMove,\n      cursor: 'ew-resize',\n      editOrigin: false,\n      direction: 'x',\n      savePosition: false,\n      placeHolder: true,\n      opacity: 0,\n      escDispose: true,\n      isLimit: false,\n      onStart: onStart\n    });\n  }, []);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _SysTable[\"default\"].line,\n    ref: lineRef,\n    draggable: true\n  });\n}\nvar parseWarpContent = function parseWarpContent(content) {\n  var warpReg = new RegExp(/(\\\\r\\\\n)|(\\\\n)|(\\\\r)/g);\n  if ((0, _lodash.isString)(content) && warpReg.test(content)) {\n    return content.split(warpReg).filter(function (item) {\n      return !(0, _lodash.isEmpty)(item);\n    }).map(function (item, i) {\n      if (warpReg.test(item)) {\n        return /*#__PURE__*/_react[\"default\"].createElement(\"br\", {\n          key: \"br_\".concat(i)\n        });\n      }\n      return (0, _lodash.trimStart)(item);\n    });\n  }\n  return content;\n};\nfunction BrowserInfo(props) {\n  var className = (0, _classnames[\"default\"])(_defineProperty(_defineProperty({}, _SysTable[\"default\"]['toolbar-item'], true), _SysTable[\"default\"]['toolbar-browser-Info'], true));\n  return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Tooltip, {\n    popperClassName: _SysTable[\"default\"].tooltipRoot,\n    tip: parseWarpContent(props.title)\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-bangzhu\"\n  })));\n}\nfunction Filter(_ref10) {\n  var filter = _ref10.filter,\n    ctlKey = _ref10.ctlKey,\n    filterChange = _ref10.filterChange;\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = _slicedToArray(_useState7, 2),\n    visible = _useState8[0],\n    setVisible = _useState8[1];\n  var _useState9 = (0, _react.useState)(),\n    _useState10 = _slicedToArray(_useState9, 2),\n    selectedKey = _useState10[0],\n    setSelect = _useState10[1];\n  var handleItemClick = function handleItemClick(filterKey) {\n    var _filter$find;\n    setSelect(filterKey);\n    var value = (_filter$find = filter.find(function (_ref11) {\n      var key = _ref11.key;\n      return key === filterKey;\n    })) === null || _filter$find === void 0 ? void 0 : _filter$find.value;\n    filterChange && filterChange(ctlKey, filterKey, value);\n  };\n  var handleVisibleChange = function handleVisibleChange(flag) {\n    setVisible(flag);\n  };\n  var getMenu = (0, _react.useCallback)(function () {\n    return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Dropdown.Menu, {\n      onClick: handleItemClick,\n      onVisibleChange: handleVisibleChange\n    }, filter.map(function (_ref12) {\n      var key = _ref12.key,\n        value = _ref12.value;\n      return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Dropdown.Item, {\n        key: key\n      }, /*#__PURE__*/_react[\"default\"].createElement(\"a\", null, value));\n    }));\n  }, [filter]);\n  var filterIcon = (0, _classnames[\"default\"])(_defineProperty(_defineProperty(_defineProperty({}, _SysTable[\"default\"].filterIcon, true), _SysTable[\"default\"].btnHover, visible), _SysTable[\"default\"].select, selectedKey && selectedKey !== 'all'));\n  return /*#__PURE__*/_react[\"default\"].createElement(_kdesign.Dropdown, {\n    selectable: true,\n    selectedKey: selectedKey,\n    menu: getMenu(),\n    popperStyle: {\n      '--primary-text-color': '#D8D8D8',\n      '--kd-g-color-background': '#242527',\n      zIndex: 99999,\n      '--kd-g-color-text-primary': '#5797FF',\n      '--kd-c-dropdown-item-color-background-hover': '#242c3c',\n      '--kd-c-dropdown-menu-item-color-text': '#276FF5',\n      '--kd-c-dropdown-item-color-text-hover': '#538eef'\n    }\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: filterIcon\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-guolv_mian\"\n  })));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/SysTable.jsx?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/Tree.js":
/*!******************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/Tree.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = Tree;\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.find-index.js */ \"../../node_modules/core-js/modules/es.array.find-index.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _Tree = _interopRequireDefault(__webpack_require__(/*! ./Tree.less */ \"./src/service/common/sysinfo/web/panel/Tree.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _immer = __webpack_require__(/*! immer */ \"../../node_modules/immer/dist/index.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2023-04-11 17:06:49\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-04-19 14:36:11\n * @Description: 扁平树控件\n */\nfunction reduce(state, batchActions) {\n  if (!Array.isArray(batchActions)) {\n    batchActions = [batchActions];\n  }\n  return (0, _immer.produce)(state, function (draft) {\n    batchActions.forEach(function (singleAction) {\n      var action = singleAction.action,\n        payload = singleAction.payload;\n      switch (action) {\n        case 'open':\n          {\n            var nodeId = payload.nodeId,\n              isOpen = payload.isOpen;\n            draft.open[nodeId] = !isOpen;\n          }\n          break;\n        default:\n          break;\n      }\n    });\n  });\n}\n\n/**\n * [{id,parentId,text,level},...]\n * @param {*} onNodeClick (nodeId,text)=>{}\n * @param defaultOpen 默认是否所有节点展开\n * @returns\n */\nfunction Tree(_ref) {\n  var treeData = _ref.treeData,\n    onNodeClick = _ref.onNodeClick,\n    selectId = _ref.selectId,\n    _ref$option = _ref.option,\n    option = _ref$option === void 0 ? {\n      defaultOpen: true\n    } : _ref$option,\n    className = _ref.className;\n  var _useReducer = (0, _react.useReducer)(reduce, {\n      open: {},\n      parentIdPath: {},\n      activeNode: ''\n    }),\n    _useReducer2 = _slicedToArray(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1];\n  // const [selectId, setSelectId] = useState(defaultSelectId)\n  var onClick = function onClick(event) {\n    event.stopPropagation();\n    var target = event.target;\n    var nodeId = target.dataset.id;\n    var text = target.dataset.text;\n    var parentElement = target.parentElement;\n    var isOpen = target.dataset.open;\n    while (!nodeId && parentElement) {\n      nodeId = parentElement.dataset.id;\n      text = parentElement.dataset.text;\n      isOpen = parentElement.dataset.open;\n      parentElement = parentElement.parentElement;\n    }\n    if (!nodeId) {\n      return;\n    }\n    if (target.tagName === 'I') {\n      // 只能点击箭头图标展开收起\n      dispatch({\n        action: 'open',\n        payload: {\n          nodeId: nodeId,\n          isOpen: isOpen === 'true'\n        }\n      });\n    }\n    if (target.tagName !== 'I') {\n      onNodeClick && onNodeClick(nodeId, text);\n      // setSelectId(nodeId)\n    }\n  };\n  var filterHIdden = treeData.filter(function (node) {\n    return !nodeIsHidden(node, treeData, option.defaultOpen)(state);\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: (0, _classnames3[\"default\"])(_Tree[\"default\"].root, _defineProperty({}, className, !!className)),\n    onClick: onClick,\n    \"data-root\": true\n  }, filterHIdden.map(function (node) {\n    var index = treeData.findIndex(function (item) {\n      return item.id === node.id;\n    });\n    var nextNode = treeData[index + 1];\n    var isLeaf = nextNode ? nextNode.level <= node.level : true;\n    var isOpen = !isLeaf && nodeIsOpen(node, filterHIdden, option.defaultOpen)(state);\n    return /*#__PURE__*/_react[\"default\"].createElement(TreeNode, {\n      key: node.id,\n      id: node.id,\n      node: node,\n      isLeaf: isLeaf,\n      isOpen: isOpen,\n      selectId: selectId\n    });\n  }));\n}\nfunction TreeNode(_ref2) {\n  var node = _ref2.node,\n    isOpen = _ref2.isOpen,\n    isLeaf = _ref2.isLeaf,\n    selectId = _ref2.selectId,\n    id = _ref2.id;\n  var style = {\n    paddingLeft: node.level * 32 + 16\n  };\n  var className = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _Tree[\"default\"].node, true), _Tree[\"default\"].isSelect, selectId === id));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: className,\n    style: style,\n    \"data-id\": node.id,\n    \"data-text\": node.text,\n    \"data-is-leaf\": isLeaf,\n    \"data-open\": isOpen\n  }, !isLeaf && /*#__PURE__*/_react[\"default\"].createElement(TreeIcon, {\n    isOpen: isOpen\n  }), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _Tree[\"default\"].content\n  }, node.text));\n}\nfunction TreeIcon(_ref3) {\n  var isOpen = _ref3.isOpen;\n  var className = (0, _classnames3[\"default\"])(_Tree[\"default\"].icon, 'kdfont', {\n    'kdfont-right': !isOpen,\n    'kdfont-bottom': isOpen\n  });\n  return /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: className\n  });\n}\nvar getParentIds = function getParentIds(node, treeData) {\n  return function (state) {\n    var ids = [];\n    var parentId = node.parentId;\n    while (parentId) {\n      var _treeData$find;\n      ids.push(parentId);\n      parentId = (_treeData$find = treeData.find(function (node) {\n        return node.id === parentId;\n      })) === null || _treeData$find === void 0 ? void 0 : _treeData$find.parentId;\n    }\n    return ids;\n  };\n};\nvar nodeIsOpen = function nodeIsOpen(node, treeData, defaultOpen) {\n  return function (state) {\n    var isOpen = state.open[node.id]; // 手工展开/收起,树数据变化，还保留原先节点open状态\n    if (isOpen !== undefined) {\n      return isOpen;\n    }\n    return defaultOpen;\n  };\n};\nvar nodeIsHidden = function nodeIsHidden(node, treeData, defaultOpen) {\n  return function (state) {\n    if (!node.parentId) {\n      return false;\n    }\n    // 检查父节点是否都是展开\n    var isNoOpen = !!getParentIds(node, treeData)(state).find(function (parentId) {\n      var _state$open$parentId;\n      return !((_state$open$parentId = state.open[parentId]) !== null && _state$open$parentId !== void 0 ? _state$open$parentId : defaultOpen);\n    });\n    return isNoOpen;\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/Tree.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/index.js":
/*!*******************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/index.js ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"CodeMirrorPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _CodeMirrorPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ConsolePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _ConsolePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ControlDetailPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _ControlDetailPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"DirectivePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _DirectivePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"DirectivePerformancePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _DirectivePerformancePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ElementPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _ElementPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"FormPerformancePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _FormPerformancePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"HttpMonitorPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _HttpMonitorPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"JsonPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _JsonPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"LookupPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _LookupPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"NetWorkDetailPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _NetWorkDetailPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"NetWorkPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _NetWorkPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"NetworkPanels\", ({\n  enumerable: true,\n  get: function get() {\n    return _NetWorkPanels[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"PageDetailPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _PageDetailPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"PageListPanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _PageListPanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"PagePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _PagePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"PerformancePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _PerformancePanel[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"ResourcePanel\", ({\n  enumerable: true,\n  get: function get() {\n    return _ResourcePanel[\"default\"];\n  }\n}));\nvar _PageListPanel = _interopRequireDefault(__webpack_require__(/*! ./PageListPanel */ \"./src/service/common/sysinfo/web/panel/PageListPanel.js\"));\nvar _PagePanel = _interopRequireDefault(__webpack_require__(/*! ./PagePanel */ \"./src/service/common/sysinfo/web/panel/PagePanel.js\"));\nvar _CodeMirrorPanel = _interopRequireDefault(__webpack_require__(/*! ./CodeMirrorPanel */ \"./src/service/common/sysinfo/web/panel/CodeMirrorPanel.js\"));\nvar _LookupPanel = _interopRequireDefault(__webpack_require__(/*! ./LookupPanel */ \"./src/service/common/sysinfo/web/panel/LookupPanel.js\"));\nvar _ConsolePanel = _interopRequireDefault(__webpack_require__(/*! ./ConsolePanel */ \"./src/service/common/sysinfo/web/panel/ConsolePanel.js\"));\nvar _NetWorkPanel = _interopRequireDefault(__webpack_require__(/*! ./NetWorkPanel */ \"./src/service/common/sysinfo/web/panel/NetWorkPanel.js\"));\nvar _NetWorkDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./NetWorkDetailPanel */ \"./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.js\"));\nvar _ElementPanel = _interopRequireDefault(__webpack_require__(/*! ./ElementPanel */ \"./src/service/common/sysinfo/web/panel/ElementPanel.js\"));\nvar _JsonPanel = _interopRequireDefault(__webpack_require__(/*! ./JsonPanel */ \"./src/service/common/sysinfo/web/panel/JsonPanel.js\"));\nvar _DirectivePanel = _interopRequireDefault(__webpack_require__(/*! ./DirectivePanel */ \"./src/service/common/sysinfo/web/panel/DirectivePanel.js\"));\nvar _PerformancePanel = _interopRequireDefault(__webpack_require__(/*! ./PerformancePanel */ \"./src/service/common/sysinfo/web/panel/PerformancePanel.js\"));\nvar _FormPerformancePanel = _interopRequireDefault(__webpack_require__(/*! ./FormPerformancePanel */ \"./src/service/common/sysinfo/web/panel/FormPerformancePanel.js\"));\nvar _ResourcePanel = _interopRequireDefault(__webpack_require__(/*! ./ResourcePanel */ \"./src/service/common/sysinfo/web/panel/ResourcePanel.js\"));\nvar _DirectivePerformancePanel = _interopRequireDefault(__webpack_require__(/*! ./DirectivePerformancePanel */ \"./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.js\"));\nvar _PageDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./PageDetailPanel */ \"./src/service/common/sysinfo/web/panel/PageDetailPanel.js\"));\nvar _HttpMonitorPanel = _interopRequireDefault(__webpack_require__(/*! ./HttpMonitorPanel */ \"./src/service/common/sysinfo/web/panel/HttpMonitorPanel.js\"));\nvar _NetWorkPanels = _interopRequireDefault(__webpack_require__(/*! ./NetWorkPanels */ \"./src/service/common/sysinfo/web/panel/NetWorkPanels.js\"));\nvar _ControlDetailPanel = _interopRequireDefault(__webpack_require__(/*! ./ControlDetailPanel */ \"./src/service/common/sysinfo/web/panel/ControlDetailPanel.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/index.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/parseDirective.js":
/*!****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/parseDirective.js ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = parseDirective;\n__webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n__webpack_require__(/*! core-js/modules/es.array.filter.js */ \"../../node_modules/core-js/modules/es.array.filter.js\");\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.reduce.js */ \"../../node_modules/core-js/modules/es.array.reduce.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.object.values.js */ \"../../node_modules/core-js/modules/es.object.values.js\");\n__webpack_require__(/*! core-js/modules/es.string.includes.js */ \"../../node_modules/core-js/modules/es.string.includes.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _global = __webpack_require__(/*! @/global */ \"./src/global/index.js\");\nvar _appModelFunction = __webpack_require__(/*! @/model/appModelFunction */ \"./src/model/appModelFunction.js\");\nvar _sysConfig = __webpack_require__(/*! ../../sysConfig */ \"./src/service/common/sysinfo/sysConfig.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nvar _controlUtils = __webpack_require__(/*! @/service/common/sysinfo/utils/controlUtils.js */ \"./src/service/common/sysinfo/utils/controlUtils.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _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); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _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; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-12-07 14:41:33\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-06-16 14:49:47\n * @Description: 分析后台发送的指令\n */ /**\n *\n * @param {*} directiveResult  指令对象，里面包含原始数据以及分析结构（性能考虑，直接封装在一个对象里面）\n */\nfunction parseDirective(directiveResult) {\n  var state = (0, _global.getGlobalState)();\n  if (directiveResult.pages.find(function (page) {\n    return !(0, _appModelFunction.getFormMeta)(page.pageId)(state);\n  })) {\n    return directiveResult; //页面没有加载（meta不存在）先不解析\n  }\n  directiveResult.isParse = true;\n  // 开始分析指令\n  directiveResult.pages.forEach(function (page) {\n    var _data$;\n    var pageId = page.pageId,\n      caption = page.caption,\n      _page$data = page.data,\n      data = _page$data === void 0 ? [] : _page$data;\n    if (caption === undefined) {\n      page.caption = (0, _appModelFunction.getFormCaption)(pageId)(state);\n    }\n    if (!(0, _appModelFunction.pageIsExist)(pageId)(state) && ((_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.actionName) !== 'showForm') {\n      //新建页面还没有加到store里面\n      directiveResult.error.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(caption || pageId, \") \").concat((0, _intlApi.getLangMsg)('SysInfo.key0129')));\n    }\n    if (data.length > _sysConfig.MAX_INSTRUC_LENGTH) {\n      directiveResult.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(caption, \")\").concat((0, _intlApi.getLangMsg)('SysInfo.key0132'), \"(\").concat(data.length, \")\\uFF0C\").concat((0, _intlApi.getLangMsg)('SysInfo.key0133')).concat(_sysConfig.MAX_INSTRUC_LENGTH));\n    }\n    // TODO：常规指令分析\n    var result = parsePageDirective(pageId, caption, data);\n    if (result.error.length > 0) {\n      var _directiveResult$erro;\n      (_directiveResult$erro = directiveResult.error).push.apply(_directiveResult$erro, _toConsumableArray(result.error));\n    }\n    if (result.warn.length > 0) {\n      var _directiveResult$warn;\n      (_directiveResult$warn = directiveResult.warn).push.apply(_directiveResult$warn, _toConsumableArray(result.warn));\n    }\n    if (result.info.length > 0) {\n      var _directiveResult$info;\n      (_directiveResult$info = directiveResult.info).push.apply(_directiveResult$info, _toConsumableArray(directiveResult.info));\n    }\n  });\n  return directiveResult;\n}\nfunction parsePageDirective(pageId, caption, data) {\n  var result = {\n    info: [],\n    warn: [],\n    error: [],\n    cacher: {\n      actions: []\n    } // 缓存中间计算结果\n  };\n  data.forEach(function (directiveItem) {\n    var actionName = directiveItem.actionName,\n      params = directiveItem.params,\n      controlKey = directiveItem.controlKey,\n      controlType = directiveItem.controlType;\n    result.cacher.actions.push(actionName);\n    if (Array.isArray(params) && params.length > _sysConfig.MAX_INSTRUC_PARAMS_LENGTH) {\n      result.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(caption, \")\").concat(actionName).concat((0, _intlApi.getLangMsg)('SysInfo.key0134'), \"(\").concat(params.length, \")\"));\n    }\n    if (actionName === 'showMessage') {\n      params === null || params === void 0 || params.forEach(function (param) {\n        var msg = param.detail || '';\n        if (msg.length > _sysConfig.MESSAGE_MAX_LENGTH) {\n          result.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(caption, \")\").concat(actionName).concat((0, _intlApi.getLangMsg)('SysInfo.key0135'), \"(\").concat(msg.length, \")\"));\n        }\n      });\n    } else if (actionName === 'addNodes' || actionName === 'updateNodes') {\n      params === null || params === void 0 || params.forEach(function (param) {\n        if (!Array.isArray(param)) {\n          param = [param];\n        }\n        var childCount = param.reduce(function (count, item) {\n          var children = item.children || [];\n          count += children.length;\n          return count;\n        }, 0);\n        if (childCount > _sysConfig.TREE_MAX_NODE_COUNT) {\n          result.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(caption, \")\").concat(actionName).concat((0, _intlApi.getLangMsg)('SysInfo.key0136'), \"(\").concat(childCount, \")\"));\n        }\n      });\n    } else if (actionName === 'showForm') {\n      parseShowForm(params)(result);\n    }\n  });\n  if (result.cacher.actions.includes('closeWindow')) {\n    var length = result.cacher.actions.length;\n    if (length > 1) {\n      result.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0137'), \"(\").concat(length - 1).concat((0, _intlApi.getLangMsg)('SysInfo.key0138')));\n    }\n  }\n  var info = result.info,\n    warn = result.warn,\n    error = result.error;\n  return {\n    info: info,\n    warn: warn,\n    error: error\n  };\n}\nfunction getPageCaption() {\n  var captionObject = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var pageId = arguments.length > 1 ? arguments[1] : undefined;\n  var lang = (0, _controlUtils.getLanguage)();\n  return captionObject[lang] || Object.values(captionObject).filter(Boolean)[0] || pageId;\n}\nvar parseShowForm = function parseShowForm(params) {\n  return function (result) {\n    params === null || params === void 0 || params.forEach(function (param) {\n      if (!param.appId) {\n        var pageCaption = getPageCaption(param.caption, param.pageId);\n        result.error.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(pageCaption, \")\").concat((0, _intlApi.getLangMsg)('SysInfo.key0139')));\n      } else {\n        var _param$openStyle;\n        //check openStyle\n        var showType = (_param$openStyle = param.openStyle) === null || _param$openStyle === void 0 ? void 0 : _param$openStyle.showType;\n        if (showType === 1 || showType === 3) {\n          //newTab ||inContainer\n          var targetKey = param.openStyle.targetKey;\n          if (!targetKey) {\n            var showModel = showType === 1 ? (0, _intlApi.getLangMsg)('SysInfo.key0140') : (0, _intlApi.getLangMsg)('SysInfo.key0141');\n            var _pageCaption = getPageCaption(param.caption, param.pageId);\n            result.error.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(_pageCaption, \")\").concat(showModel, \",\").concat((0, _intlApi.getLangMsg)('SysInfo.key0172')));\n          } else {\n            //检查targetKey是否存在\n            var parentPageId = param.mainPageId || param.parentPageId; //列表点击打开某单据时，页签所在的父是mainPageId，逻辑父是parentPageId（ui上表现是同级）\n            if ((0, _appModelFunction.pageIsExist)(parentPageId)((0, _global.getGlobalState)())) {\n              var controlPath = (0, _appModelFunction.getItemMetaPath)(parentPageId, targetKey)((0, _global.getGlobalState)());\n              if (!controlPath) {\n                var _showModel = showType === 1 ? (0, _intlApi.getLangMsg)('SysInfo.key0140') : (0, _intlApi.getLangMsg)('SysInfo.key0141');\n                var _pageCaption2 = getPageCaption(param.caption, param.pageId);\n                var _targetKey = param.openStyle.targetKey;\n                result.error.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(_pageCaption2, \")\").concat(_showModel, \"\\uFF0C \").concat((0, _intlApi.getLangMsg)('SysInfo.key0143')).concat(_targetKey).concat((0, _intlApi.getLangMsg)('SysInfo.key0144')));\n              }\n            }\n          }\n        } else if (showType === 6) {\n          var _parentPageId = param.parentPageId;\n          if (_parentPageId && !(0, _appModelFunction.pageIsExist)(_parentPageId)((0, _global.getGlobalState)())) {\n            var _pageCaption3 = getPageCaption(param.caption, param.pageId);\n            result.warn.push(\"\".concat((0, _intlApi.getLangMsg)('SysInfo.key0128'), \"(\").concat(_pageCaption3, \")\").concat((0, _intlApi.getLangMsg)('SysInfo.key0173')));\n          }\n        }\n      }\n    });\n  };\n};\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/parseDirective.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panelFactory.js":
/*!********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panelFactory.js ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = createPanel;\nvar Panels = _interopRequireWildcard(__webpack_require__(/*! ./panel */ \"./src/service/common/sysinfo/web/panel/index.js\"));\nfunction _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); }\nfunction _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 && Object.prototype.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; }\n/*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-24 11:30:14\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-17 16:07:28\n * @Description: 创建面板工厂\n */\n\nfunction createPanel(type) {\n  return Panels[type];\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panelFactory.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/view/LookUpView.js":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/web/view/LookUpView.js ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.includes.js */ \"../../node_modules/core-js/modules/es.array.includes.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _LayoutPanel = _interopRequireDefault(__webpack_require__(/*! ../LayoutPanel */ \"./src/service/common/sysinfo/web/LayoutPanel.js\"));\nvar _LookUpView = _interopRequireDefault(__webpack_require__(/*! ./LookUpView.less */ \"./src/service/common/sysinfo/web/view/LookUpView.less\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _const = __webpack_require__(/*! ../../const */ \"./src/service/common/sysinfo/const.js\");\nvar _intlApi = __webpack_require__(/*! @/i18n/intlApi.js */ \"./src/i18n/intlApi.js\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-21 09:53:21\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-03-17 11:18:18\n * @Description: 视图宿主容器，管理所有子视图\n */\n/**\n *\n * @param {views} 视图数组\n * @param {panels} 面板数组\n * @returns\n */\nfunction LookUpView(_ref, ref) {\n  var _ref$panels = _ref.panels,\n    panels = _ref$panels === void 0 ? [] : _ref$panels,\n    defaultKey = _ref.defaultKey,\n    dispatch = _ref.dispatch;\n  var _useState = (0, _react.useState)(defaultKey || 'ElementPanel'),\n    _useState2 = _slicedToArray(_useState, 2),\n    activeKey = _useState2[0],\n    setActiveKey = _useState2[1];\n  var handleTabClick = function handleTabClick(key) {\n    setActiveKey(key);\n  };\n  var delViewAction = {\n    action: _const.ACTION_DELETE_VIEW,\n    payload: _const.LOOKUP_VIEW\n  };\n  var handleCloseView = function handleCloseView() {\n    dispatch(delViewAction);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].root,\n    ref: ref\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].header\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", null, \" \", (0, _intlApi.getLangMsg)('SysInfo.key0194'), \" \"), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].close,\n    onClick: handleCloseView\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"i\", {\n    className: \"kdfont kdfont-guanbi8 hover-theme-fc\"\n  }))), /*#__PURE__*/_react[\"default\"].createElement(TabBar, {\n    onHandleClick: handleTabClick,\n    items: panels,\n    handleTabClick: handleTabClick,\n    activeKey: activeKey\n  }), panels.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(_LayoutPanel[\"default\"], {\n      key: item.id,\n      panel: item,\n      position: index,\n      isVisible: activeKey === item.id\n    });\n  }));\n}\nvar _default = exports[\"default\"] = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(LookUpView));\nfunction TabBar(props) {\n  var _useState3 = (0, _react.useState)('element'),\n    _useState4 = _slicedToArray(_useState3, 2),\n    activeKey = _useState4[0],\n    setActiveKey = _useState4[1];\n  var formName = (0, _react.useRef)();\n  var element = (0, _react.useRef)();\n  var handleTabClick = function handleTabClick(e) {\n    setActiveKey(e.target.dataset.id);\n  };\n  var name = props.items[0].formName;\n  (0, _react.useEffect)(function () {\n    if (activeKey === 'formName') {\n      element.current = props.activeKey;\n      props.handleTabClick(formName.current);\n    } else {\n      formName.current = ['ElementPanel', 'lookup_VIEW', 'ControlDetailPanel'].includes(props.activeKey) ? 'lookup-analyst' : props.activeKey;\n      props.handleTabClick(element.current || 'ControlDetailPanel');\n    }\n  }, [activeKey]);\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].tabBar\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].firstBar\n  }, name && /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-id\": \"formName\",\n    className: activeKey === 'formName' && _LookUpView[\"default\"].active,\n    onMouseMove: handleTabClick\n  }, name), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    \"data-id\": \"element\",\n    className: activeKey === 'element' && _LookUpView[\"default\"].active,\n    onMouseMove: handleTabClick\n  }, \"  \", (0, _intlApi.getLangMsg)('SysInfo.key0195'))), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _LookUpView[\"default\"].bar\n  }, props.items.map(function (item) {\n    var showFormName = activeKey === 'formName' && name && !['ElementPanel', 'lookup_VIEW', 'ControlDetailPanel'].includes(item.id);\n    var showElement = activeKey === 'element' && ['ElementPanel', 'lookup_VIEW', 'ControlDetailPanel'].includes(item.id);\n    return (showFormName || showElement) && /*#__PURE__*/_react[\"default\"].createElement(TabBarItem, _extends({\n      key: item.id,\n      item: item\n    }, props));\n  })));\n}\nfunction TabBarItem(props) {\n  var handleTabClick = props.handleTabClick,\n    activeKey = props.activeKey;\n  var _props$item = props.item,\n    id = _props$item.id,\n    name = _props$item.name;\n  var barItemsCls = (0, _classnames2[\"default\"])(_defineProperty(_defineProperty({}, _LookUpView[\"default\"].item, true), _LookUpView[\"default\"].active, activeKey === id));\n  var handleClick = function handleClick() {\n    handleTabClick(id);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: barItemsCls,\n    key: id,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: _LookUpView[\"default\"].text\n  }, name));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/view/LookUpView.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/view/MainView.js":
/*!*********************************************************!*\
  !*** ./src/service/common/sysinfo/web/view/MainView.js ***!
  \*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\nfunction _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); }\n__webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n__webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n__webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n__webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n__webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n__webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ \"../../node_modules/core-js/modules/es.object.get-own-property-descriptor.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.weak-map.js */ \"../../node_modules/core-js/modules/es.weak-map.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nexports[\"default\"] = void 0;\n__webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n__webpack_require__(/*! core-js/modules/es.array.for-each.js */ \"../../node_modules/core-js/modules/es.array.for-each.js\");\n__webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n__webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n__webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n__webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n__webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n__webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n__webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! react */ \"webpack/sharing/consume/default/react/react?dca2\"));\nvar _LayoutPanel = _interopRequireDefault(__webpack_require__(/*! ../LayoutPanel */ \"./src/service/common/sysinfo/web/LayoutPanel.js\"));\nvar _MainView = _interopRequireDefault(__webpack_require__(/*! ./MainView.less */ \"./src/service/common/sysinfo/web/view/MainView.less\"));\nvar _classnames3 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _dragService = __webpack_require__(/*! @/service/web/dragService.js */ \"./src/service/web/dragService.js\");\nvar _storage = _interopRequireWildcard(__webpack_require__(/*! @/util/storage */ \"./src/util/storage.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _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); }\nfunction _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 && Object.prototype.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; }\nfunction _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; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _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); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _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.\"); }\nfunction _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); }\nfunction _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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /*\n * @Author: daosheng_chen\n * @Email: daosheng_chen@kingdee.com\n * @Date: 2022-10-21 09:53:21\n * @Last Modified by: daosheng_chen\n * @Last Modified time: 2023-05-18 16:32:53\n * @Description: 视图宿主容器，管理所有子视图\n */\n/**\n *\n * @param {views} 视图数组\n * @param {panels} 面板数组\n * @returns\n */\nfunction MainView(_ref, ref) {\n  var _ref$panels = _ref.panels,\n    panels = _ref$panels === void 0 ? [] : _ref$panels,\n    selectKey = _ref.selectKey,\n    selectChange = _ref.selectChange,\n    rememberSelect = _ref.rememberSelect;\n  var _useState = (0, _react.useState)(selectKey || panels[0].id),\n    _useState2 = _slicedToArray(_useState, 2),\n    activeKey = _useState2[0],\n    setActiveKey = _useState2[1];\n  var handleTabClick = function handleTabClick(key) {\n    rememberSelect && selectChange(key);\n    setActiveKey(key);\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _MainView[\"default\"].root,\n    style: rememberSelect ? {\n      borderTop: '1px solid #45525d'\n    } : {},\n    ref: ref\n  }, /*#__PURE__*/_react[\"default\"].createElement(TabBar, {\n    onHandleClick: handleTabClick,\n    items: panels,\n    handleTabClick: handleTabClick,\n    rememberSelect: rememberSelect,\n    activeKey: activeKey\n  }), panels.map(function (item, index) {\n    return /*#__PURE__*/_react[\"default\"].createElement(_LayoutPanel[\"default\"], {\n      key: item.id,\n      panel: item,\n      position: index,\n      isVisible: activeKey === item.id\n    });\n  }));\n}\nvar _default = exports[\"default\"] = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(MainView));\nfunction TabBar(props) {\n  var barRef = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    return function () {\n      positionChange();\n    };\n  }, []);\n  var positionChange = function positionChange() {\n    if (props.items.find(function (_ref2) {\n      var id = _ref2.id;\n      return id === 'ConsolePanel';\n    })) {\n      var indexs = [];\n      var barEle = barRef.current.querySelectorAll('[data-index]');\n      Array.from(barEle).forEach(function (Ele) {\n        Ele.style.zIndex !== '999999' && indexs.push(Ele.dataset.id);\n      });\n      _storage[\"default\"].set(_storage.SYS_INFO_POSITION, indexs);\n    }\n  };\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: _MainView[\"default\"].bar,\n    style: !props.rememberSelect ? {\n      backgroundColor: '#191a1c'\n    } : {},\n    ref: barRef\n  }, props.items.map(function (item, i) {\n    return /*#__PURE__*/_react[\"default\"].createElement(TabBarItem, _extends({\n      key: item.id,\n      item: item,\n      index: i\n    }, props, {\n      positionChange: positionChange\n    }));\n  }));\n}\nfunction TabBarItem(props) {\n  var _barItemRef$current, _barItemRef$current2, _barItemRef$current3;\n  var handleTabClick = props.handleTabClick,\n    activeKey = props.activeKey,\n    positionChange = props.positionChange,\n    rememberSelect = props.rememberSelect;\n  var name = props.item.name;\n  var barItemRef = (0, _react.useRef)({\n    dataset: {\n      id: props.item.id\n    }\n  });\n  var handleClick = function handleClick() {\n    handleTabClick(barItemRef.current.dataset.id);\n  };\n  var onMove = function onMove(dragElement, x, y, width, height, dragState) {\n    var currentEle = barItemRef.current;\n    // childNode[4].parentNode.insertBefore(childNode[4], childNode[3]);\n    var preEle = currentEle.previousElementSibling || {};\n    var nextEle = currentEle.nextElementSibling || {};\n    var preX = preEle.offsetLeft,\n      preW = preEle.offsetWidth;\n    var nextX = nextEle.offsetLeft,\n      nextW = nextEle.offsetWidth;\n    if (x > nextX - nextW) {\n      currentEle.parentNode.insertBefore(currentEle, nextEle.nextElementSibling);\n      positionChange();\n    }\n    if (x < preX + preW / 2) {\n      currentEle.parentNode.insertBefore(currentEle, preEle);\n      positionChange();\n    }\n  };\n  var option = {\n    onMove: onMove,\n    direction: 'x',\n    savePosition: false,\n    placeHolder: true,\n    opacity: 0,\n    escDispose: true\n  };\n  (0, _react.useEffect)(function () {\n    (0, _dragService.dragElement)(barItemRef.current, option);\n  }, []);\n  var barItemsCls = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, _MainView[\"default\"].item, true), _MainView[\"default\"].active, activeKey === ((_barItemRef$current = barItemRef.current) === null || _barItemRef$current === void 0 || (_barItemRef$current = _barItemRef$current.dataset) === null || _barItemRef$current === void 0 ? void 0 : _barItemRef$current.id)), _MainView[\"default\"].noBorder, !rememberSelect), _MainView[\"default\"].noBorderActive, activeKey === ((_barItemRef$current2 = barItemRef.current) === null || _barItemRef$current2 === void 0 || (_barItemRef$current2 = _barItemRef$current2.dataset) === null || _barItemRef$current2 === void 0 ? void 0 : _barItemRef$current2.id) && !rememberSelect));\n  var text = (0, _classnames3[\"default\"])(_defineProperty(_defineProperty({}, _MainView[\"default\"].text, true), _MainView[\"default\"].select, activeKey === ((_barItemRef$current3 = barItemRef.current) === null || _barItemRef$current3 === void 0 || (_barItemRef$current3 = _barItemRef$current3.dataset) === null || _barItemRef$current3 === void 0 ? void 0 : _barItemRef$current3.id) && rememberSelect));\n  return /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n    className: barItemsCls,\n    \"data-id\": props.item.id,\n    \"data-index\": props.index,\n    ref: barItemRef,\n    draggable: true,\n    onClick: handleClick\n  }, /*#__PURE__*/_react[\"default\"].createElement(\"span\", {\n    className: text\n  }, name));\n}\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/view/MainView.js?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/view/index.js":
/*!******************************************************!*\
  !*** ./src/service/common/sysinfo/web/view/index.js ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
eval("\n\n__webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\nObject.defineProperty(exports, \"__esModule\", ({\n  value: true\n}));\nObject.defineProperty(exports, \"LookUpView\", ({\n  enumerable: true,\n  get: function get() {\n    return _LookUpView[\"default\"];\n  }\n}));\nObject.defineProperty(exports, \"MainView\", ({\n  enumerable: true,\n  get: function get() {\n    return _MainView[\"default\"];\n  }\n}));\nvar _MainView = _interopRequireDefault(__webpack_require__(/*! ./MainView.js */ \"./src/service/common/sysinfo/web/view/MainView.js\"));\nvar _LookUpView = _interopRequireDefault(__webpack_require__(/*! ./LookUpView.js */ \"./src/service/common/sysinfo/web/view/LookUpView.js\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/view/index.js?");

/***/ }),

/***/ "./src/page/httpMonitor/dialog/HttpDialog.less":
/*!*****************************************************!*\
  !*** ./src/page/httpMonitor/dialog/HttpDialog.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"dialog\":\"HttpDialog_dialog_Q_rL\",\"header\":\"HttpDialog_header_2iCb\",\"title\":\"HttpDialog_title_1Mo2\",\"icon\":\"HttpDialog_icon_3iK9\",\"text\":\"HttpDialog_text_aK7e\",\"extra\":\"HttpDialog_extra_2yKR\",\"minimize-button\":\"HttpDialog_minimize-button_2MvZ\",\"fullscreen-button\":\"HttpDialog_fullscreen-button_2CMZ\",\"close-button\":\"HttpDialog_close-button_2trp\",\"split-line\":\"HttpDialog_split-line_3Qh-\",\"dialog-detail\":\"HttpDialog_dialog-detail_pya9\",\"minimize\":\"HttpDialog_minimize_2Seq\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/dialog/HttpDialog.less?");

/***/ }),

/***/ "./src/page/httpMonitor/page/HttpList.less":
/*!*************************************************!*\
  !*** ./src/page/httpMonitor/page/HttpList.less ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"main\":\"HttpList_main_1pvi\",\"section\":\"HttpList_section_2jeI\",\"searchClass\":\"HttpList_searchClass_hNDA\",\"clear-button\":\"HttpList_clear-button_2OYl\",\"content\":\"HttpList_content_2vrN\",\"body\":\"HttpList_body_3bdZ\",\"break\":\"HttpList_break_2Wxa\",\"desc\":\"HttpList_desc_2Zhx\",\"dashed-line\":\"HttpList_dashed-line_1WEm\",\"row\":\"HttpList_row_sJ6e\",\"regular\":\"HttpList_regular_1r6V\",\"table\":\"HttpList_table_2DYd\",\"half-header\":\"HttpList_half-header_2KYd\",\"startTime\":\"HttpList_startTime_lujt\",\"time\":\"HttpList_time_b6JM\",\"status\":\"HttpList_status_2vm8\",\"methods\":\"HttpList_methods_uIdS\",\"methods-header\":\"HttpList_methods-header_iMwL\",\"methods-selected\":\"HttpList_methods-selected_k-Ru\",\"error-color\":\"HttpList_error-color_1aFf\",\"warn-color\":\"HttpList_warn-color_CT4o\",\"waiting-color\":\"HttpList_waiting-color_2Eux\",\"splitLine\":\"HttpList_splitLine_gEQz\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/HttpList.less?");

/***/ }),

/***/ "./src/page/httpMonitor/page/HttpMonitor.less":
/*!****************************************************!*\
  !*** ./src/page/httpMonitor/page/HttpMonitor.less ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"body\":\"HttpMonitor_body_15F-\",\"detail\":\"HttpMonitor_detail_2zCu\",\"half-content\":\"HttpMonitor_half-content_vErz\",\"half-header\":\"HttpMonitor_half-header_3Hmn\",\"noData\":\"HttpMonitor_noData_1fV4\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/HttpMonitor.less?");

/***/ }),

/***/ "./src/page/httpMonitor/page/LogDetail.less":
/*!**************************************************!*\
  !*** ./src/page/httpMonitor/page/LogDetail.less ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"LogDetail_root_1d15\",\"search-section\":\"LogDetail_search-section_1E-B\",\"search-content-wrapper\":\"LogDetail_search-content-wrapper_2_Rv\",\"search-content\":\"LogDetail_search-content_1z3v\",\"search-content-title\":\"LogDetail_search-content-title_12DT\",\"search-content-input\":\"LogDetail_search-content-input_1S4_\",\"search-time\":\"LogDetail_search-time_1GK8\",\"search-time-title\":\"LogDetail_search-time-title_3PZH\",\"search-time-input\":\"LogDetail_search-time-input_2dMt\",\"search-button\":\"LogDetail_search-button_EwAq\",\"table-wrapper\":\"LogDetail_table-wrapper_3_Ie\",\"table\":\"LogDetail_table_HXC0\",\"cell\":\"LogDetail_cell_1Hlg\",\"message\":\"LogDetail_message_FiU1\",\"level\":\"LogDetail_level_1OQL\",\"className\":\"LogDetail_className_gIkJ\",\"time\":\"LogDetail_time_3ZVI\",\"constTime\":\"LogDetail_constTime_1_1o\",\"warn-color\":\"LogDetail_warn-color_3CRy\",\"error-color\":\"LogDetail_error-color_1_Ka\",\"instanceId\":\"LogDetail_instanceId_zVFw\",\"appId\":\"LogDetail_appId_y_Lr\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/LogDetail.less?");

/***/ }),

/***/ "./src/page/httpMonitor/page/RequestDetail.less":
/*!******************************************************!*\
  !*** ./src/page/httpMonitor/page/RequestDetail.less ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"detail\":\"RequestDetail_detail_3bhh\",\"tab\":\"RequestDetail_tab_3r1p\",\"left\":\"RequestDetail_left_28i6\",\"close-button\":\"RequestDetail_close-button_18EW\",\"headers\":\"RequestDetail_headers_2vt5\",\"response\":\"RequestDetail_response_aYwE\",\"active\":\"RequestDetail_active_2j9F\",\"right\":\"RequestDetail_right_1c7D\",\"copy-button\":\"RequestDetail_copy-button_XZM4\",\"content\":\"RequestDetail_content_3nc-\",\"dark\":\"RequestDetail_dark_171i\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/page/RequestDetail.less?");

/***/ }),

/***/ "./src/page/httpMonitor/table/Header.less":
/*!************************************************!*\
  !*** ./src/page/httpMonitor/table/Header.less ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"header\":\"Header_header_Noz_\",\"item\":\"Header_item_2kVX\",\"value\":\"Header_value_HOfE\",\"button\":\"Header_button_22MR\",\"bottom\":\"Header_bottom_2EXc\",\"top\":\"Header_top_3CwZ\",\"active\":\"Header_active_3XT2\",\"item-pointer\":\"Header_item-pointer_2fs9\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/Header.less?");

/***/ }),

/***/ "./src/page/httpMonitor/table/Table.less":
/*!***********************************************!*\
  !*** ./src/page/httpMonitor/table/Table.less ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"table\":\"Table_table_3I6h\",\"loading\":\"Table_loading_3gD3\",\"gif\":\"Table_gif_1DoA\",\"text\":\"Table_text_1V4M\",\"body\":\"Table_body_38yd\",\"row\":\"Table_row_yFQi\",\"regular\":\"Table_regular__pI2\",\"selected\":\"Table_selected_3jCf\",\"singular-hover\":\"Table_singular-hover_2SP-\",\"regular-hover\":\"Table_regular-hover_1PJW\",\"selected-hover\":\"Table_selected-hover_1vlW\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/Table.less?");

/***/ }),

/***/ "./src/page/httpMonitor/table/TableCell.less":
/*!***************************************************!*\
  !*** ./src/page/httpMonitor/table/TableCell.less ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"table-cell\":\"TableCell_table-cell_t2N9\"});\n\n//# sourceURL=webpack://bos-platform/./src/page/httpMonitor/table/TableCell.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Details.less":
/*!*****************************************************!*\
  !*** ./src/service/common/sysinfo/web/Details.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"summary\":\"Details_summary_10SM\",\"details\":\"Details_details_gPrU\",\"icon\":\"Details_icon_xrRo\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Details.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/FooterView.less":
/*!********************************************************!*\
  !*** ./src/service/common/sysinfo/web/FooterView.less ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"FooterView_root_2fK9\",\"selector\":\"FooterView_selector_2Fi5\",\"selector-title\":\"FooterView_selector-title_1igZ\",\"lookup\":\"FooterView_lookup_3m84\",\"active\":\"FooterView_active_FYF7\",\"mask\":\"FooterView_mask_1XbV\",\"sub-mask\":\"FooterView_sub-mask_2DVM\",\"sub-mask-row\":\"FooterView_sub-mask-row_wfgx\",\"last\":\"FooterView_last_2TMn\",\"first\":\"FooterView_first_3tJa\",\"icon\":\"FooterView_icon_AAof\",\"version\":\"FooterView_version_3V1_\",\"splitline\":\"FooterView_splitline_3f6i\",\"desc\":\"FooterView_desc_316S\",\"dashed-line\":\"FooterView_dashed-line_1iKs\",\"add\":\"FooterView_add_1VLg\",\"update\":\"FooterView_update_3YvY\",\"look\":\"FooterView_look_13pG\",\"commit\":\"FooterView_commit_2HYm\",\"check\":\"FooterView_check_6amN\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/FooterView.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/LayoutPanel.less":
/*!*********************************************************!*\
  !*** ./src/service/common/sysinfo/web/LayoutPanel.less ***!
  \*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"LayoutPanel_root_dUCT\",\"panel-container\":\"LayoutPanel_panel-container_13D1\",\"visible\":\"LayoutPanel_visible_mkog\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/LayoutPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/LazyRender.less":
/*!********************************************************!*\
  !*** ./src/service/common/sysinfo/web/LazyRender.less ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"placeholder\":\"LazyRender_placeholder_ngI5\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/LazyRender.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Search.less":
/*!****************************************************!*\
  !*** ./src/service/common/sysinfo/web/Search.less ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"searchIcon\":\"Search_searchIcon_A-bY\",\"hide\":\"Search_hide_3YSM\",\"search\":\"Search_search_1ITA\",\"magnifying\":\"Search_magnifying_quzZ\",\"searchInput\":\"Search_searchInput_JKSQ\",\"clear\":\"Search_clear_1_4n\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Search.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/SysInfoMain.less":
/*!*********************************************************!*\
  !*** ./src/service/common/sysinfo/web/SysInfoMain.less ***!
  \*********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"SysInfoMain_root_1PB8\",\"mini\":\"SysInfoMain_mini_1QX-\",\"max\":\"SysInfoMain_max_20zH\",\"hide\":\"SysInfoMain_hide_2HlC\",\"mini-view\":\"SysInfoMain_mini-view_3M_5\",\"close\":\"SysInfoMain_close_3FWp\",\"dragEle\":\"SysInfoMain_dragEle_3BQt\",\"lookupEle\":\"SysInfoMain_lookupEle_1jcT\",\"text\":\"SysInfoMain_text_3Z4b\",\"main-view\":\"SysInfoMain_main-view_2rb2\",\"splitLine\":\"SysInfoMain_splitLine_1gPz\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/SysInfoMain.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/Toolbar.less":
/*!*****************************************************!*\
  !*** ./src/service/common/sysinfo/web/Toolbar.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"toolbar\":\"Toolbar_toolbar_rrk8\",\"toolbar-item\":\"Toolbar_toolbar-item_2JIh\",\"checkboxBg\":\"Toolbar_checkboxBg_-9BV\",\"hideCheckboxBg\":\"Toolbar_hideCheckboxBg_3xVh\",\"hover\":\"Toolbar_hover_2iar\",\"toolbar-browser-Info\":\"Toolbar_toolbar-browser-Info_9EeY\",\"active\":\"Toolbar_active_2-4B\",\"toolbar-checkbox\":\"Toolbar_toolbar-checkbox_9KR-\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/Toolbar.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/CodeMirrorPanel.less":
/*!*******************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/CodeMirrorPanel.less ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"CodeMirrorPanel_root_2kmk\",\"code-root\":\"CodeMirrorPanel_code-root_1qON\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/CodeMirrorPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ConsolePanel.less":
/*!****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ConsolePanel.less ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"ConsolePanel_root_32o_\",\"label-area\":\"ConsolePanel_label-area_296k\",\"rightArea\":\"ConsolePanel_rightArea_PX5Q\",\"search\":\"ConsolePanel_search_m5Mi\",\"message-area\":\"ConsolePanel_message-area_1-dq\",\"message-detail\":\"ConsolePanel_message-detail_2vMd\",\"message-container\":\"ConsolePanel_message-container_18eX\",\"eval-area\":\"ConsolePanel_eval-area_3hte\",\"active\":\"ConsolePanel_active_2L5K\",\"searchIcon\":\"ConsolePanel_searchIcon_3vnC\",\"hide\":\"ConsolePanel_hide_3xA_\",\"magnifying\":\"ConsolePanel_magnifying_1KlZ\",\"searchInput\":\"ConsolePanel_searchInput_fyds\",\"clear\":\"ConsolePanel_clear_6zCx\",\"msg-string\":\"ConsolePanel_msg-string_2-AS\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ConsolePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ControlDetailPanel.less":
/*!**********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ControlDetailPanel.less ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"ControlDetailPanel_root_2MSV\",\"right\":\"ControlDetailPanel_right_2eU1\",\"left\":\"ControlDetailPanel_left_h5iJ\",\"title\":\"ControlDetailPanel_title_2--b\",\"label\":\"ControlDetailPanel_label_guss\",\"content\":\"ControlDetailPanel_content_2pEj\",\"copy\":\"ControlDetailPanel_copy_3vzk\",\"detail-item\":\"ControlDetailPanel_detail-item_2QzF\",\"detail-item-key\":\"ControlDetailPanel_detail-item-key_izN6\",\"detail-item-content\":\"ControlDetailPanel_detail-item-content_1zJf\",\"noData\":\"ControlDetailPanel_noData_gQiq\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ControlDetailPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DirectivePanel.less":
/*!******************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DirectivePanel.less ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"DirectivePanel_root_3uCq\",\"jsonPanel\":\"DirectivePanel_jsonPanel_AStU\",\"analyst\":\"DirectivePanel_analyst_3GTl\",\"noError\":\"DirectivePanel_noError_HjeE\",\"info\":\"DirectivePanel_info_2ZsZ\",\"warn\":\"DirectivePanel_warn_3g2m\",\"error\":\"DirectivePanel_error_1pZH\",\"container\":\"DirectivePanel_container_1jMo\",\"header\":\"DirectivePanel_header_1mHt\",\"icon\":\"DirectivePanel_icon_1ZTT\",\"text\":\"DirectivePanel_text_2gpv\",\"flod\":\"DirectivePanel_flod_2luK\",\"unFlod\":\"DirectivePanel_unFlod_2Yn6\",\"content\":\"DirectivePanel_content_2uyc\",\"msg\":\"DirectivePanel_msg_38oL\",\"hide\":\"DirectivePanel_hide_9Ivu\",\"detail\":\"DirectivePanel_detail_2OCk\",\"title\":\"DirectivePanel_title_1IMk\",\"json\":\"DirectivePanel_json_myD6\",\"side-panel\":\"DirectivePanel_side-panel_1zcf\",\"refresh\":\"DirectivePanel_refresh_N884\",\"searchClass\":\"DirectivePanel_searchClass_TrDK\",\"count\":\"DirectivePanel_count_1pUj\",\"clear\":\"DirectivePanel_clear_14sC\",\"listbox\":\"DirectivePanel_listbox_3hBJ\",\"side-panel-item\":\"DirectivePanel_side-panel-item_3UCw\",\"time\":\"DirectivePanel_time_1M6b\",\"caption\":\"DirectivePanel_caption_hzb0\",\"delete-panel\":\"DirectivePanel_delete-panel_85bn\",\"active\":\"DirectivePanel_active_29R7\",\"noData\":\"DirectivePanel_noData_2Lct\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DirectivePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.less":
/*!*****************************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.less ***!
  \*****************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"DirectivePerformancePanel_root_1284\",\"search\":\"DirectivePerformancePanel_search_yFDO\",\"clear\":\"DirectivePerformancePanel_clear_3UYl\",\"header\":\"DirectivePerformancePanel_header_2A2w\",\"list\":\"DirectivePerformancePanel_list_1c-U\",\"row\":\"DirectivePerformancePanel_row_2jnK\",\"methodName\":\"DirectivePerformancePanel_methodName_3A1G\",\"duration\":\"DirectivePerformancePanel_duration_19oU\",\"time\":\"DirectivePerformancePanel_time_3E0p\",\"red\":\"DirectivePerformancePanel_red_3fgR\",\"item\":\"DirectivePerformancePanel_item_1EK_\",\"searchClass\":\"DirectivePerformancePanel_searchClass_WArF\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DirectivePerformancePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/DragBall.less":
/*!************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/DragBall.less ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"DragBall_root_2boE\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/DragBall.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ELementPanel.less":
/*!****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ELementPanel.less ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"ELementPanel_root_2qy4\",\"row\":\"ELementPanel_row_3OCo\",\"groupRoot\":\"ELementPanel_groupRoot_1qIa\",\"icon\":\"ELementPanel_icon_1F46\",\"iconRotate\":\"ELementPanel_iconRotate_Ct0j\",\"group\":\"ELementPanel_group_EPq6\",\"group-item\":\"ELementPanel_group-item_p22B\",\"group-item-name\":\"ELementPanel_group-item-name_12f5\",\"group-item-value\":\"ELementPanel_group-item-value_3aK9\",\"color\":\"ELementPanel_color_3per\",\"value\":\"ELementPanel_value_32Jw\",\"selector\":\"ELementPanel_selector_1mu1\",\"selector-title\":\"ELementPanel_selector-title_1FJ8\",\"searchClass\":\"ELementPanel_searchClass_xAKd\",\"checkboxBg\":\"ELementPanel_checkboxBg_1AC7\",\"hideCheckboxBg\":\"ELementPanel_hideCheckboxBg_1dwC\",\"summary\":\"ELementPanel_summary_1c-X\",\"opacity\":\"ELementPanel_opacity_3MxN\",\"default-value\":\"ELementPanel_default-value_3z3-\",\"ElementSize\":\"ELementPanel_ElementSize_3E-j\",\"hide\":\"ELementPanel_hide_3mfA\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ELementPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ElementSizeDiagram.less":
/*!**********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ElementSizeDiagram.less ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"ElementSizeDiagram_root_2elR\",\"firstRoot\":\"ElementSizeDiagram_firstRoot_1cYm\",\"name-top\":\"ElementSizeDiagram_name-top__3Tm\",\"top\":\"ElementSizeDiagram_top_4hmd\",\"left-right\":\"ElementSizeDiagram_left-right_1YK4\",\"left\":\"ElementSizeDiagram_left_2IjU\",\"right\":\"ElementSizeDiagram_right_gM7X\",\"bottom\":\"ElementSizeDiagram_bottom_3zOp\",\"size\":\"ElementSizeDiagram_size_3W2S\",\"name\":\"ElementSizeDiagram_name_20i6\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ElementSizeDiagram.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/FormPerformancePanel.less":
/*!************************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/FormPerformancePanel.less ***!
  \************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"FormPerformancePanel_root_2y5X\",\"search\":\"FormPerformancePanel_search_3C1m\",\"clear\":\"FormPerformancePanel_clear_uMBX\",\"header\":\"FormPerformancePanel_header_2slM\",\"list\":\"FormPerformancePanel_list_2YAq\",\"row\":\"FormPerformancePanel_row_npjX\",\"item\":\"FormPerformancePanel_item_JP_x\",\"form\":\"FormPerformancePanel_form_1trm\",\"request\":\"FormPerformancePanel_request_3cOG\",\"executeTime\":\"FormPerformancePanel_executeTime_1eEC\",\"renderTime\":\"FormPerformancePanel_renderTime_2cvI\",\"searchClass\":\"FormPerformancePanel_searchClass_2cII\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/FormPerformancePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/GridAnalyse.less":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/GridAnalyse.less ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"GridAnalyse_root_2ILx\",\"title\":\"GridAnalyse_title_NO3s\",\"desc\":\"GridAnalyse_desc_2Abu\",\"table\":\"GridAnalyse_table_1irf\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/GridAnalyse.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/JsonNode.less":
/*!************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/JsonNode.less ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"JsonNode_root_3Fem\",\"detail\":\"JsonNode_detail_1lsz\",\"item\":\"JsonNode_item_1APr\",\"name\":\"JsonNode_name_1eTs\",\"value\":\"JsonNode_value_2Fl5\",\"number\":\"JsonNode_number_3awm\",\"summary-name\":\"JsonNode_summary-name_2aro\",\"summary-title\":\"JsonNode_summary-title_1A1i\",\"summary-info\":\"JsonNode_summary-info_3UK0\",\"summary\":\"JsonNode_summary_18Pt\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/JsonNode.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/JsonPanel.less":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/JsonPanel.less ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"JsonPanel_root_3hAr\",\"search\":\"JsonPanel_search_3VX5\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/JsonPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/LookupPanel.less":
/*!***************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/LookupPanel.less ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"LookupPanel_root_2FSe\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/LookupPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.less":
/*!**********************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.less ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"NetWorkDetailPanel_root_26tS\",\"search\":\"NetWorkDetailPanel_search_3xUD\",\"clear\":\"NetWorkDetailPanel_clear_36sL\",\"header\":\"NetWorkDetailPanel_header_iGk6\",\"select\":\"NetWorkDetailPanel_select_qmDO\",\"hidden\":\"NetWorkDetailPanel_hidden_1syl\",\"panel\":\"NetWorkDetailPanel_panel_3PRb\",\"response\":\"NetWorkDetailPanel_response_12eO\",\"nothing\":\"NetWorkDetailPanel_nothing_1lb_\",\"header-panel\":\"NetWorkDetailPanel_header-panel_1k2y\",\"header-detail\":\"NetWorkDetailPanel_header-detail_3iOS\",\"container\":\"NetWorkDetailPanel_container_96eW\",\"header-title\":\"NetWorkDetailPanel_header-title_2DNJ\",\"header-label\":\"NetWorkDetailPanel_header-label_3uKw\",\"header-content\":\"NetWorkDetailPanel_header-content_37uA\",\"header-item\":\"NetWorkDetailPanel_header-item_2YNc\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/NetWorkDetailPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/NetWorkPanel.less":
/*!****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/NetWorkPanel.less ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"NetWorkPanel_root_vwpR\",\"leftContainer\":\"NetWorkPanel_leftContainer_rZIg\",\"search\":\"NetWorkPanel_search_1tXr\",\"clear\":\"NetWorkPanel_clear_2csa\",\"rightContainer\":\"NetWorkPanel_rightContainer_3eyh\",\"header\":\"NetWorkPanel_header_2S89\",\"container\":\"NetWorkPanel_container_Evtk\",\"listitem\":\"NetWorkPanel_listitem_32KH\",\"select\":\"NetWorkPanel_select_EIKN\",\"hover\":\"NetWorkPanel_hover_KFXA\",\"item\":\"NetWorkPanel_item_3Ce3\",\"url\":\"NetWorkPanel_url_5cUe\",\"status\":\"NetWorkPanel_status_2vJx\",\"type\":\"NetWorkPanel_type_2XWs\",\"size\":\"NetWorkPanel_size_193j\",\"time\":\"NetWorkPanel_time_3GqR\",\"long-long-time\":\"NetWorkPanel_long-long-time_fMrQ\",\"ajax-error\":\"NetWorkPanel_ajax-error_2sDa\",\"long-time\":\"NetWorkPanel_long-time_Pfni\",\"splitLine\":\"NetWorkPanel_splitLine_1fFH\",\"noData\":\"NetWorkPanel_noData_17dk\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/NetWorkPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PageDetailPanel.less":
/*!*******************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PageDetailPanel.less ***!
  \*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"PageDetailPanel_root_35mz\",\"left\":\"PageDetailPanel_left_3mJN\",\"right\":\"PageDetailPanel_right_2miG\",\"header\":\"PageDetailPanel_header_H25v\",\"searchClass\":\"PageDetailPanel_searchClass_1FsK\",\"control\":\"PageDetailPanel_control_IBAh\",\"noData\":\"PageDetailPanel_noData_13R-\",\"select\":\"PageDetailPanel_select_cO_V\",\"detail-item\":\"PageDetailPanel_detail-item_1qFi\",\"detail-item-key\":\"PageDetailPanel_detail-item-key_28o9\",\"detail-item-content\":\"PageDetailPanel_detail-item-content_2c5C\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PageDetailPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PageListPanel.less":
/*!*****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PageListPanel.less ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"PageListPanel_root_3LM1\",\"left\":\"PageListPanel_left_1QA4\",\"treeClass\":\"PageListPanel_treeClass_1-XL\",\"header\":\"PageListPanel_header_2Ygn\",\"refresh\":\"PageListPanel_refresh_2tjZ\",\"searchClass\":\"PageListPanel_searchClass_JK4v\",\"right\":\"PageListPanel_right_28Bs\",\"page-item\":\"PageListPanel_page-item_2Bcy\",\"title\":\"PageListPanel_title_1hgQ\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PageListPanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/PagePanel.less":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/PagePanel.less ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"PagePanel_root_2uXQ\",\"panel-container\":\"PagePanel_panel-container_1BWN\",\"panelRoot\":\"PagePanel_panelRoot_22ez\",\"noDataClass\":\"PagePanel_noDataClass_1MJ5\",\"select\":\"PagePanel_select_3PT_\",\"button-container\":\"PagePanel_button-container_39zz\",\"active\":\"PagePanel_active_1shy\",\"bar\":\"PagePanel_bar_3QXq\",\"item\":\"PagePanel_item_3CWW\",\"close\":\"PagePanel_close_Mie-\",\"addTime\":\"PagePanel_addTime_1WMf\",\"disable\":\"PagePanel_disable_28SK\",\"noData\":\"PagePanel_noData_3NYV\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/PagePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/ResourcePanel.less":
/*!*****************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/ResourcePanel.less ***!
  \*****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"ResourcePanel_root_Jn07\",\"header\":\"ResourcePanel_header_1MjI\",\"search\":\"ResourcePanel_search_2lFa\",\"clear\":\"ResourcePanel_clear_3zQT\",\"groupRoot\":\"ResourcePanel_groupRoot_30QX\",\"group-item\":\"ResourcePanel_group-item_2o7v\",\"is-cache\":\"ResourcePanel_is-cache_1Oof\",\"record\":\"ResourcePanel_record_26cn\",\"item1\":\"ResourcePanel_item1_1CJX\",\"no-expand\":\"ResourcePanel_no-expand_2Qhn\",\"filter-type\":\"ResourcePanel_filter-type_L3Aw\",\"select\":\"ResourcePanel_select_1NVR\",\"url\":\"ResourcePanel_url_38zC\",\"type\":\"ResourcePanel_type_3NWO\",\"size\":\"ResourcePanel_size_h4id\",\"startTime\":\"ResourcePanel_startTime_QKuK\",\"time\":\"ResourcePanel_time_21kr\",\"searchContainer\":\"ResourcePanel_searchContainer_2zey\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/ResourcePanel.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/SysTable.less":
/*!************************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/SysTable.less ***!
  \************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"SysTable_root_8LWr\",\"table\":\"SysTable_table_2wtH\",\"header\":\"SysTable_header_hdz6\",\"rowHeader\":\"SysTable_rowHeader_Okx6\",\"row\":\"SysTable_row_20Ne\",\"line\":\"SysTable_line_1jhh\",\"cell\":\"SysTable_cell_1nm-\",\"content\":\"SysTable_content_nF4m\",\"tbody\":\"SysTable_tbody_2ng7\",\"select\":\"SysTable_select_31Ut\",\"allowSelectId\":\"SysTable_allowSelectId_1s_T\",\"button\":\"SysTable_button_kbWj\",\"bottom\":\"SysTable_bottom_1VJ-\",\"top\":\"SysTable_top_3vkl\",\"active\":\"SysTable_active_1FWt\",\"error\":\"SysTable_error_1oFm\",\"warn\":\"SysTable_warn_2y2x\",\"tooltipRoot\":\"SysTable_tooltipRoot_1ElD\",\"toolbar-item\":\"SysTable_toolbar-item_eWxg\",\"checkboxBg\":\"SysTable_checkboxBg_3jau\",\"hideCheckboxBg\":\"SysTable_hideCheckboxBg_FCFy\",\"toolbar-browser-Info\":\"SysTable_toolbar-browser-Info_MfcA\",\"filterIcon\":\"SysTable_filterIcon_2WrJ\",\"btnHover\":\"SysTable_btnHover_2QZU\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/SysTable.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/panel/Tree.less":
/*!********************************************************!*\
  !*** ./src/service/common/sysinfo/web/panel/Tree.less ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"Tree_root_2DJM\",\"node\":\"Tree_node_30Qi\",\"isSelect\":\"Tree_isSelect_10ej\",\"content\":\"Tree_content_o8i-\",\"icon\":\"Tree_icon_2K_J\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/panel/Tree.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/view/LookUpView.less":
/*!*************************************************************!*\
  !*** ./src/service/common/sysinfo/web/view/LookUpView.less ***!
  \*************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"LookUpView_root_19et\",\"header\":\"LookUpView_header_3x2Y\",\"close\":\"LookUpView_close_3NM6\",\"tabBar\":\"LookUpView_tabBar_pqqs\",\"firstBar\":\"LookUpView_firstBar_3INA\",\"active\":\"LookUpView_active_3AYr\",\"bar\":\"LookUpView_bar_sBaC\",\"item\":\"LookUpView_item_s4jX\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/view/LookUpView.less?");

/***/ }),

/***/ "./src/service/common/sysinfo/web/view/MainView.less":
/*!***********************************************************!*\
  !*** ./src/service/common/sysinfo/web/view/MainView.less ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"root\":\"MainView_root_3zpq\",\"bar\":\"MainView_bar_2EMW\",\"item\":\"MainView_item_k-a_\",\"text\":\"MainView_text_1GjU\",\"noBorder\":\"MainView_noBorder_3vB9\",\"select\":\"MainView_select_3d72\",\"active\":\"MainView_active_wuhN\",\"noBorderActive\":\"MainView_noBorderActive_7Cxt\"});\n\n//# sourceURL=webpack://bos-platform/./src/service/common/sysinfo/web/view/MainView.less?");

/***/ }),

/***/ "../../node_modules/xss-filters/src/xss-filters.js":
/*!******************************************************************************************!*\
  !*** delegated ../../node_modules/xss-filters/src/xss-filters.js from dll-reference lib ***!
  \******************************************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

eval("module.exports = (__webpack_require__(/*! dll-reference lib */ \"dll-reference lib\"))(8375);\n\n//# sourceURL=webpack://bos-platform/delegated_../../node_modules/xss-filters/src/xss-filters.js_from_dll-reference_lib?");

/***/ })

}]);