From e109677c2d8be84c783cab07248271f5bc93494f Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 1 Dec 2023 18:50:55 +0800 Subject: [PATCH] Auto Submit --- 10375.async.js | 2 +- 16703.async.js | 2 +- 17142.async.js | 2 +- 18900.async.js | 2 +- 19523.async.js | 2 +- 24665.async.js | 2 +- 27315.async.js | 2 +- 34712.async.js | 2 +- 49127.async.js | 4 +- 50812.async.js | 2 +- 56168.async.js | 2 +- 59981.async.js | 4 +- 61895.async.js | 2 +- 63240.async.js | 4 +- 6557.async.js | 4 +- 66174.async.js | 2 +- 69304.async.js | 2 +- 70130.async.js | 12 +- 72274.async.js | 2 +- 79399.async.js | 2 +- 82080.async.js | 2 +- 83306.async.js | 2 +- 93948.async.js | 4 +- 98040.async.js | 2 +- layouts__index.async.js | 4 +- ...sts__Exercise__CodeDetails__index.async.js | 2 +- ...s__ShixunHomeworks__Detail__index.async.js | 599 +++++++++++++++++- ...__ShixunHomeworks__Detail__index.chunk.css | 6 + ...s__Lists__Template__detail__index.async.js | 2 +- p__Competitions__Update__index.async.js | 2 +- p__Problemset__Preview__index.async.js | 2 +- ...hixuns__Detail__Challenges__index.async.js | 2 +- ...__Detail__Videos__Protocol__index.async.js | 2 +- ...r__Detail__Videos__Success__index.async.js | 2 +- ...ualSpaces__Lists__Material__index.async.js | 2 +- umi.js | 512 +++++++++++---- 36 files changed, 1010 insertions(+), 195 deletions(-) diff --git a/10375.async.js b/10375.async.js index bcf1606142..ac29092abf 100644 --- a/10375.async.js +++ b/10375.async.js @@ -806,7 +806,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/16703.async.js b/16703.async.js index eb437d1ad4..58b15106b8 100644 --- a/16703.async.js +++ b/16703.async.js @@ -564,7 +564,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/17142.async.js b/17142.async.js index 9074c84283..a3b5dfffec 100644 --- a/17142.async.js +++ b/17142.async.js @@ -848,7 +848,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/18900.async.js b/18900.async.js index 04b1327649..9a1b347eb9 100644 --- a/18900.async.js +++ b/18900.async.js @@ -848,7 +848,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/19523.async.js b/19523.async.js index bf4346183a..44d626cc0f 100644 --- a/19523.async.js +++ b/19523.async.js @@ -848,7 +848,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/24665.async.js b/24665.async.js index c7971c9454..7af765dff4 100644 --- a/24665.async.js +++ b/24665.async.js @@ -1427,7 +1427,7 @@ function getIcons(_ref) { /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/27315.async.js b/27315.async.js index 45381c6680..0e07f9ee13 100644 --- a/27315.async.js +++ b/27315.async.js @@ -811,7 +811,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/34712.async.js b/34712.async.js index eee6b32f20..a7fc693e2f 100644 --- a/34712.async.js +++ b/34712.async.js @@ -848,7 +848,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/49127.async.js b/49127.async.js index f781439398..d6f64939b6 100644 --- a/49127.async.js +++ b/49127.async.js @@ -26,8 +26,8 @@ var colors = __webpack_require__(36785); var reactNode = __webpack_require__(92343); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genPresetColor.js diff --git a/50812.async.js b/50812.async.js index 0290538949..98397344c2 100644 --- a/50812.async.js +++ b/50812.async.js @@ -15,7 +15,7 @@ /* harmony export */ oN: function() { return /* binding */ initSlideMotion; } /* harmony export */ }); /* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/56168.async.js b/56168.async.js index 18a9df1ed0..ea5a9c9512 100644 --- a/56168.async.js +++ b/56168.async.js @@ -1316,7 +1316,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/59981.async.js b/59981.async.js index e6e0a15d0c..dffd5e5bf9 100644 --- a/59981.async.js +++ b/59981.async.js @@ -55,8 +55,8 @@ const Element = props => { }); }; /* harmony default export */ var skeleton_Element = (Element); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js var genComponentStyleHook = __webpack_require__(83116); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js diff --git a/61895.async.js b/61895.async.js index 106b710b5b..e2f8bdd2b8 100644 --- a/61895.async.js +++ b/61895.async.js @@ -26595,7 +26595,7 @@ input_Input.Password = input_Password; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/63240.async.js b/63240.async.js index 07738e6b68..104da4e63c 100644 --- a/63240.async.js +++ b/63240.async.js @@ -765,8 +765,8 @@ var colors = __webpack_require__(36785); var reactNode = __webpack_require__(92343); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genPresetColor.js diff --git a/6557.async.js b/6557.async.js index 1e2781b660..787caffce3 100644 --- a/6557.async.js +++ b/6557.async.js @@ -1551,8 +1551,8 @@ const genListStyle = token => { }; }; /* harmony default export */ var list = (genListStyle); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/motion/fade.js var fade = __webpack_require__(1950); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/style/motion.js diff --git a/66174.async.js b/66174.async.js index 392df5acda..5a30668852 100644 --- a/66174.async.js +++ b/66174.async.js @@ -1375,7 +1375,7 @@ input_Input.Password = input_Password; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/69304.async.js b/69304.async.js index 850c8536c5..173efb9a5d 100644 --- a/69304.async.js +++ b/69304.async.js @@ -138,7 +138,7 @@ if (false) {} /* harmony export */ Yk: function() { return /* binding */ genTreeStyle; } /* harmony export */ }); /* unused harmony exports genBaseStyle, genDirectoryStyle */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/style */ 98447); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style */ 17313); /* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 8378); diff --git a/70130.async.js b/70130.async.js index 071917a608..b9858ce51c 100644 --- a/70130.async.js +++ b/70130.async.js @@ -5074,7 +5074,7 @@ Object.defineProperty(exports, "defaultIconPrefixCls", ({ } })); exports.warnContext = exports.globalConfig = exports.defaultPrefixCls = void 0; -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _Context = _interopRequireDefault(__webpack_require__(/*! @ant-design/icons/lib/components/Context */ 94728)); var _useMemo = _interopRequireDefault(__webpack_require__(/*! rc-util/lib/hooks/useMemo */ 61199)); var _set = __webpack_require__(/*! rc-util/lib/utils/set */ 76906); @@ -8186,7 +8186,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultTheme = exports.defaultConfig = exports.DesignTokenContext = void 0; -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301)); var _default = _interopRequireDefault(__webpack_require__(/*! ./themes/default */ 62)); var _seed = _interopRequireDefault(__webpack_require__(/*! ./themes/seed */ 54303)); @@ -8324,7 +8324,7 @@ Object.defineProperty(exports, "useToken", ({ return _useToken.default; } })); -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _interface = __webpack_require__(/*! ./interface */ 32732); var _useToken = _interopRequireDefault(__webpack_require__(/*! ./useToken */ 34313)); var _genComponentStyleHook = _interopRequireWildcard(__webpack_require__(/*! ./util/genComponentStyleHook */ 79081)); @@ -8892,7 +8892,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = useToken; exports.getComputedToken = void 0; -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301)); var _version = _interopRequireDefault(__webpack_require__(/*! ../version */ 11025)); var _context = __webpack_require__(/*! ./context */ 81542); @@ -9172,7 +9172,7 @@ Object.defineProperty(exports, "__esModule", ({ exports["default"] = genComponentStyleHook; exports.genSubStyleComponent = void 0; var _react = __webpack_require__(/*! react */ 59301); -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _rcUtil = __webpack_require__(/*! rc-util */ 33401); var _context = __webpack_require__(/*! ../../config-provider/context */ 11033); var _style = __webpack_require__(/*! ../../style */ 51011); @@ -9467,7 +9467,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +var _cssinjs = __webpack_require__(/*! @ant-design/cssinjs */ 67937); var _style = __webpack_require__(/*! ../../style */ 51011); var _useToken = _interopRequireDefault(__webpack_require__(/*! ../useToken */ 34313)); const useResetIconStyle = (iconPrefixCls, csp) => { diff --git a/72274.async.js b/72274.async.js index 5a6d8c4ed9..53ca23280f 100644 --- a/72274.async.js +++ b/72274.async.js @@ -1619,7 +1619,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/79399.async.js b/79399.async.js index 7bf6d68a56..f4fefc822b 100644 --- a/79399.async.js +++ b/79399.async.js @@ -932,7 +932,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/82080.async.js b/82080.async.js index ea109e1eb9..3ef89114a7 100644 --- a/82080.async.js +++ b/82080.async.js @@ -890,7 +890,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/83306.async.js b/83306.async.js index 3e48efe934..9a617849bb 100644 --- a/83306.async.js +++ b/83306.async.js @@ -1670,7 +1670,7 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/93948.async.js b/93948.async.js index 54c0b8d253..25d18a13be 100644 --- a/93948.async.js +++ b/93948.async.js @@ -777,8 +777,8 @@ const Steps = props => { }, styledSteps, children); }; /* harmony default export */ var progress_Steps = (Steps); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js diff --git a/98040.async.js b/98040.async.js index 3d0a7f1892..234994f209 100644 --- a/98040.async.js +++ b/98040.async.js @@ -1335,7 +1335,7 @@ CompoundedSpace.Compact = Compact/* default */.ZP; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/layouts__index.async.js b/layouts__index.async.js index 3a5a271707..30cb424b09 100644 --- a/layouts__index.async.js +++ b/layouts__index.async.js @@ -2569,8 +2569,8 @@ var theme = { /* harmony default export */ var antd_theme = (theme); // EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/locale/zh-cn.js var zh_cn = __webpack_require__(46789); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); ;// CONCATENATED MODULE: ./src/layouts/index.tsx diff --git a/p__Classrooms__Lists__Exercise__CodeDetails__index.async.js b/p__Classrooms__Lists__Exercise__CodeDetails__index.async.js index a6c61cba09..51fe6e80d8 100644 --- a/p__Classrooms__Lists__Exercise__CodeDetails__index.async.js +++ b/p__Classrooms__Lists__Exercise__CodeDetails__index.async.js @@ -821,7 +821,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js index adc320f150..21e74d51c6 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js @@ -4679,6 +4679,8 @@ var menu = __webpack_require__(20834); var es_checkbox = __webpack_require__(24905); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules var dropdown = __webpack_require__(38854); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules +var es_switch = __webpack_require__(78673); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules var es_radio = __webpack_require__(5112); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules @@ -4893,7 +4895,7 @@ var QuickComment_DelShixun = function DelShixun(_ref) { })(QuickComment_DelShixun)); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/WorkList/index.less?modules // extracted by mini-css-extract-plugin -/* harmony default export */ var WorkListmodules = ({"wrap":"wrap___kCwPu","maxWidth70":"maxWidth70___u0Fnw","maxWidth80":"maxWidth80___B8pkG","maxWidth100":"maxWidth100___jQ_W6","maxWidth110":"maxWidth110___t9GZl","maxWidth120":"maxWidth120___tvrlz","reviewStatusTooltip":"reviewStatusTooltip___nCQT1","color32C":"color32C___KnLuR","MdEditor":"MdEditor___IcZwd","tr1":"tr1___k3Rcs","scroll":"scroll___TVUAz"}); +/* harmony default export */ var WorkListmodules = ({"wrap":"wrap___kCwPu","refresh":"refresh___dkiX_","maxWidth70":"maxWidth70___u0Fnw","maxWidth80":"maxWidth80___B8pkG","maxWidth100":"maxWidth100___jQ_W6","maxWidth110":"maxWidth110___t9GZl","maxWidth120":"maxWidth120___tvrlz","reviewStatusTooltip":"reviewStatusTooltip___nCQT1","color32C":"color32C___KnLuR","MdEditor":"MdEditor___IcZwd","tr1":"tr1___k3Rcs","scroll":"scroll___TVUAz"}); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/WorkList/components/ChangeCommit.tsx @@ -5228,10 +5230,11 @@ var utils_export = __webpack_require__(39384); + var WorkList = function WorkList(_ref) { - var _workList$homework_st2, _workList$homework_st3, _workList$left_time, _workList$left_time2, _ref6, _workList$task_status, _workList$course_grou, _workList$course_grou2, _workList$teacher_com, _workList$homework_st4, _globalSetting$settin, _workList$homework_st5, _workList$homework_st6, _workList$homework_st7, _workList$task_status2, _workList$task_status3; + var _workList$homework_st2, _workList$homework_st3, _workList$left_time, _workList$left_time2, _ref6, _workList$task_status, _workList$course_grou, _workList$course_grou2, _workList$teacher_com, _workList$homework_st4, _globalSetting$settin, _workList$homework_st5, _workList$homework_st6, _workList$homework_st7, _shixunHomeworks$work2, _shixunHomeworks$work3, _shixunHomeworks$work4, _workList$task_status2, _workList$task_status3, _shixunHomeworks$shix; var shixunHomeworks = _ref.shixunHomeworks, loading = _ref.loading, dispatch = _ref.dispatch, @@ -5308,26 +5311,32 @@ var WorkList = function WorkList(_ref) { _useState30 = slicedToArray_default()(_useState29, 2), showopen = _useState30[0], setshowopen = _useState30[1]; - // 获取wokelist数组: - var _useState31 = (0,_react_17_0_2_react.useState)([]), + var _useState31 = (0,_react_17_0_2_react.useState)(false), _useState32 = slicedToArray_default()(_useState31, 2), - newList = _useState32[0], - setnewList = _useState32[1]; - // 一键打回的班级数组: + isSimpleList = _useState32[0], + setIssimpleList = _useState32[1]; + var timeRefershRef = (0,_react_17_0_2_react.useRef)(); + // 获取wokelist数组: var _useState33 = (0,_react_17_0_2_react.useState)([]), _useState34 = slicedToArray_default()(_useState33, 2), - groupList = _useState34[0], - setgroupList = _useState34[1]; - // 选中打回班级的个数: - var _useState35 = (0,_react_17_0_2_react.useState)(0), + newList = _useState34[0], + setnewList = _useState34[1]; + // 一键打回的班级数组: + var _useState35 = (0,_react_17_0_2_react.useState)([]), _useState36 = slicedToArray_default()(_useState35, 2), - backGroupContnet = _useState36[0], - setbackGroupContnet = _useState36[1]; + groupList = _useState36[0], + setgroupList = _useState36[1]; + // 选中打回班级的个数: + var _useState37 = (0,_react_17_0_2_react.useState)(0), + _useState38 = slicedToArray_default()(_useState37, 2), + backGroupContnet = _useState38[0], + setbackGroupContnet = _useState38[1]; (0,_react_17_0_2_react.useEffect)(function () { getData(true); return function () { setWorkList([]); setStudentList([]); + clearInterval(timeRefershRef.current); }; }, [params.coursesId]); (0,_react_17_0_2_react.useEffect)(function () { @@ -5511,7 +5520,7 @@ var WorkList = function WorkList(_ref) { }, [document.getElementById('divhe')]); var onShowSizeChange = function onShowSizeChange(current, pageSize) { params.page = current; - params.limit = 20; + params.limit = pageSize; getData(); }; function setnull() { @@ -5522,6 +5531,20 @@ var WorkList = function WorkList(_ref) { setcomment(''); setcheckvalues([]); } + (0,_react_17_0_2_react.useEffect)(function () { + if (sessionStorage.getItem("classroomsShixunDetailAutoRefersh")) { + autoUpdata(true); + } + }, []); + var autoUpdata = function autoUpdata(checked) { + if (!checked) { + clearInterval(timeRefershRef.current); + return; + } + timeRefershRef.current = setInterval(function () { + getData(); + }, 1000 * 10); + }; var columns = [{ title: '序号', dataIndex: 'number', @@ -5693,7 +5716,7 @@ var WorkList = function WorkList(_ref) { return text ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { placement: "bottomLeft", title: text, - children: text + children: text && text != "--" ? dayjs_min_default()(text).format(isSimpleList ? "HH:mm" : "YYYY-MM-DD HH:mm") : text }) : '--'; } }, { @@ -5901,7 +5924,7 @@ var WorkList = function WorkList(_ref) { // ellipsis: true, // render: (text: boolean) => (text ? '已评阅' : '未评阅'), // }, - { + !isSimpleList && { title: '操作', dataInex: 'action', align: 'center', @@ -6383,6 +6406,45 @@ var WorkList = function WorkList(_ref) { children: "*" }), "\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE"] }) + }), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, { + align: "middle", + className: WorkListmodules.refresh, + children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, { + flex: "121px", + className: "flex-container", + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, { + checkedChildren: "\u5F00\u542F", + unCheckedChildren: "\u5173\u95ED", + defaultChecked: isSimpleList, + onChange: function onChange(checked) { + setIssimpleList(checked); + } + }), " ", /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + className: "ml8", + children: "\u7B80\u6D01\u6A21\u5F0F" + })] + }), ((shixunHomeworks === null || shixunHomeworks === void 0 || (_shixunHomeworks$work2 = shixunHomeworks.workList) === null || _shixunHomeworks$work2 === void 0 || (_shixunHomeworks$work2 = _shixunHomeworks$work2.homework_status) === null || _shixunHomeworks$work2 === void 0 ? void 0 : _shixunHomeworks$work2.includes('提交中')) || (shixunHomeworks === null || shixunHomeworks === void 0 || (_shixunHomeworks$work3 = shixunHomeworks.workList) === null || _shixunHomeworks$work3 === void 0 || (_shixunHomeworks$work3 = _shixunHomeworks$work3.homework_status) === null || _shixunHomeworks$work3 === void 0 ? void 0 : _shixunHomeworks$work3.includes('补交中')) || (shixunHomeworks === null || shixunHomeworks === void 0 || (_shixunHomeworks$work4 = shixunHomeworks.workList) === null || _shixunHomeworks$work4 === void 0 || (_shixunHomeworks$work4 = _shixunHomeworks$work4.homework_status) === null || _shixunHomeworks$work4 === void 0 ? void 0 : _shixunHomeworks$work4.includes('进行中'))) && (0,authority/* isAdmin */.GJ)() && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, { + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "flex-container", + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, { + className: "ml20", + checkedChildren: "\u5F00\u542F", + unCheckedChildren: "\u5173\u95ED", + defaultChecked: !!sessionStorage.getItem("classroomsShixunDetailAutoRefersh"), + onChange: function onChange(checked) { + if (checked) { + sessionStorage.setItem("classroomsShixunDetailAutoRefersh", "true"); + } else { + sessionStorage.removeItem("classroomsShixunDetailAutoRefersh"); + } + autoUpdata(checked); + } + }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + className: "ml8", + children: "\u81EA\u52A8\u5237\u65B0\uFF08\u5F00\u542F\u540E\u6BCF10S\u66F4\u65B0\u4E00\u6B21\u6570\u636E\uFF09" + })] + }) + })] }), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, { className: "mt30", loading: loading['shixunHomeworks/getWorkList'], @@ -6786,11 +6848,11 @@ var WorkList = function WorkList(_ref) { children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, { showQuickJumper: true, hideOnSinglePage: true, - showSizeChanger: false, + showSizeChanger: true, onChange: onShowSizeChange, current: params.page || 1, - defaultPageSize: 20, - total: workList.work_count + pageSize: params.limit || 20, + total: shixunHomeworks === null || shixunHomeworks === void 0 || (_shixunHomeworks$shix = shixunHomeworks.shixunWorkList) === null || _shixunHomeworks$shix === void 0 ? void 0 : _shixunHomeworks$shix.total_count }) })] }); @@ -12811,6 +12873,505 @@ es_alert_Alert.ErrorBoundary = alert_ErrorBoundary; /***/ }), +/***/ 78673: +/*!**********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***! + \**********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ es_switch; } +}); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules +var LoadingOutlined = __webpack_require__(38521); +// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js +var _classnames_2_3_2_classnames = __webpack_require__(12124); +var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(35005); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(61860); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(20968); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useMergedState.js +var useMergedState = __webpack_require__(84381); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/KeyCode.js +var KeyCode = __webpack_require__(84821); +;// CONCATENATED MODULE: ./node_modules/_rc-switch@4.1.0@rc-switch/es/index.js + + + + +var _excluded = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"]; + + + + +var Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) { + var _classNames; + var _ref$prefixCls = _ref.prefixCls, + prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls, + className = _ref.className, + checked = _ref.checked, + defaultChecked = _ref.defaultChecked, + disabled = _ref.disabled, + loadingIcon = _ref.loadingIcon, + checkedChildren = _ref.checkedChildren, + unCheckedChildren = _ref.unCheckedChildren, + onClick = _ref.onClick, + onChange = _ref.onChange, + onKeyDown = _ref.onKeyDown, + restProps = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded); + var _useMergedState = (0,useMergedState/* default */.Z)(false, { + value: checked, + defaultValue: defaultChecked + }), + _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2), + innerChecked = _useMergedState2[0], + setInnerChecked = _useMergedState2[1]; + function triggerChange(newChecked, event) { + var mergedChecked = innerChecked; + if (!disabled) { + mergedChecked = newChecked; + setInnerChecked(mergedChecked); + onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event); + } + return mergedChecked; + } + function onInternalKeyDown(e) { + if (e.which === KeyCode/* default */.Z.LEFT) { + triggerChange(false, e); + } else if (e.which === KeyCode/* default */.Z.RIGHT) { + triggerChange(true, e); + } + onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e); + } + function onInternalClick(e) { + var ret = triggerChange(!innerChecked, e); + // [Legacy] trigger onClick with value + onClick === null || onClick === void 0 ? void 0 : onClick(ret, e); + } + var switchClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames)); + return /*#__PURE__*/_react_17_0_2_react.createElement("button", (0,esm_extends/* default */.Z)({}, restProps, { + type: "button", + role: "switch", + "aria-checked": innerChecked, + disabled: disabled, + className: switchClassName, + ref: ref, + onKeyDown: onInternalKeyDown, + onClick: onInternalClick + }), loadingIcon, /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-inner") + }, /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-inner-checked") + }, checkedChildren), /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-inner-unchecked") + }, unCheckedChildren))); +}); +Switch.displayName = 'Switch'; +/* harmony default export */ var es = (Switch); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules +var wave = __webpack_require__(14088); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js +var context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js +var DisabledContext = __webpack_require__(1684); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js +var useSize = __webpack_require__(19716); +// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js +var dist_module = __webpack_require__(64993); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js +var style = __webpack_require__(17313); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js +var genComponentStyleHook = __webpack_require__(83116); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js +var statistic = __webpack_require__(37613); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/style/index.js + + + +const genSwitchSmallStyle = token => { + const { + componentCls, + trackHeightSM, + trackPadding, + trackMinWidthSM, + innerMinMarginSM, + innerMaxMarginSM, + handleSizeSM + } = token; + const switchInnerCls = `${componentCls}-inner`; + return { + [componentCls]: { + [`&${componentCls}-small`]: { + minWidth: trackMinWidthSM, + height: trackHeightSM, + lineHeight: `${trackHeightSM}px`, + [`${componentCls}-inner`]: { + paddingInlineStart: innerMaxMarginSM, + paddingInlineEnd: innerMinMarginSM, + [`${switchInnerCls}-checked`]: { + marginInlineStart: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`, + marginInlineEnd: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)` + }, + [`${switchInnerCls}-unchecked`]: { + marginTop: -trackHeightSM, + marginInlineStart: 0, + marginInlineEnd: 0 + } + }, + [`${componentCls}-handle`]: { + width: handleSizeSM, + height: handleSizeSM + }, + [`${componentCls}-loading-icon`]: { + top: (handleSizeSM - token.switchLoadingIconSize) / 2, + fontSize: token.switchLoadingIconSize + }, + [`&${componentCls}-checked`]: { + [`${componentCls}-inner`]: { + paddingInlineStart: innerMinMarginSM, + paddingInlineEnd: innerMaxMarginSM, + [`${switchInnerCls}-checked`]: { + marginInlineStart: 0, + marginInlineEnd: 0 + }, + [`${switchInnerCls}-unchecked`]: { + marginInlineStart: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`, + marginInlineEnd: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)` + } + }, + [`${componentCls}-handle`]: { + insetInlineStart: `calc(100% - ${handleSizeSM + trackPadding}px)` + } + }, + [`&:not(${componentCls}-disabled):active`]: { + [`&:not(${componentCls}-checked) ${switchInnerCls}`]: { + [`${switchInnerCls}-unchecked`]: { + marginInlineStart: token.marginXXS / 2, + marginInlineEnd: -token.marginXXS / 2 + } + }, + [`&${componentCls}-checked ${switchInnerCls}`]: { + [`${switchInnerCls}-checked`]: { + marginInlineStart: -token.marginXXS / 2, + marginInlineEnd: token.marginXXS / 2 + } + } + } + } + } + }; +}; +const genSwitchLoadingStyle = token => { + const { + componentCls, + handleSize + } = token; + return { + [componentCls]: { + [`${componentCls}-loading-icon${token.iconCls}`]: { + position: 'relative', + top: (handleSize - token.fontSize) / 2, + color: token.switchLoadingIconColor, + verticalAlign: 'top' + }, + [`&${componentCls}-checked ${componentCls}-loading-icon`]: { + color: token.switchColor + } + } + }; +}; +const genSwitchHandleStyle = token => { + const { + componentCls, + motion, + trackPadding, + handleBg, + handleShadow, + handleSize + } = token; + const switchHandleCls = `${componentCls}-handle`; + return { + [componentCls]: { + [switchHandleCls]: { + position: 'absolute', + top: trackPadding, + insetInlineStart: trackPadding, + width: handleSize, + height: handleSize, + transition: `all ${token.switchDuration} ease-in-out`, + '&::before': { + position: 'absolute', + top: 0, + insetInlineEnd: 0, + bottom: 0, + insetInlineStart: 0, + backgroundColor: handleBg, + borderRadius: handleSize / 2, + boxShadow: handleShadow, + transition: `all ${token.switchDuration} ease-in-out`, + content: '""' + } + }, + [`&${componentCls}-checked ${switchHandleCls}`]: { + insetInlineStart: `calc(100% - ${handleSize + trackPadding}px)` + }, + [`&:not(${componentCls}-disabled):active`]: motion ? { + [`${switchHandleCls}::before`]: { + insetInlineEnd: token.switchHandleActiveInset, + insetInlineStart: 0 + }, + [`&${componentCls}-checked ${switchHandleCls}::before`]: { + insetInlineEnd: 0, + insetInlineStart: token.switchHandleActiveInset + } + } : /* istanbul ignore next */ + {} + } + }; +}; +const genSwitchInnerStyle = token => { + const { + componentCls, + trackHeight, + trackPadding, + innerMinMargin, + innerMaxMargin, + handleSize + } = token; + const switchInnerCls = `${componentCls}-inner`; + return { + [componentCls]: { + [switchInnerCls]: { + display: 'block', + overflow: 'hidden', + borderRadius: 100, + height: '100%', + paddingInlineStart: innerMaxMargin, + paddingInlineEnd: innerMinMargin, + transition: `padding-inline-start ${token.switchDuration} ease-in-out, padding-inline-end ${token.switchDuration} ease-in-out`, + [`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: { + display: 'block', + color: token.colorTextLightSolid, + fontSize: token.fontSizeSM, + transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`, + pointerEvents: 'none' + }, + [`${switchInnerCls}-checked`]: { + marginInlineStart: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`, + marginInlineEnd: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)` + }, + [`${switchInnerCls}-unchecked`]: { + marginTop: -trackHeight, + marginInlineStart: 0, + marginInlineEnd: 0 + } + }, + [`&${componentCls}-checked ${switchInnerCls}`]: { + paddingInlineStart: innerMinMargin, + paddingInlineEnd: innerMaxMargin, + [`${switchInnerCls}-checked`]: { + marginInlineStart: 0, + marginInlineEnd: 0 + }, + [`${switchInnerCls}-unchecked`]: { + marginInlineStart: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`, + marginInlineEnd: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)` + } + }, + [`&:not(${componentCls}-disabled):active`]: { + [`&:not(${componentCls}-checked) ${switchInnerCls}`]: { + [`${switchInnerCls}-unchecked`]: { + marginInlineStart: trackPadding * 2, + marginInlineEnd: -trackPadding * 2 + } + }, + [`&${componentCls}-checked ${switchInnerCls}`]: { + [`${switchInnerCls}-checked`]: { + marginInlineStart: -trackPadding * 2, + marginInlineEnd: trackPadding * 2 + } + } + } + } + }; +}; +const genSwitchStyle = token => { + const { + componentCls, + trackHeight, + trackMinWidth + } = token; + return { + [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { + position: 'relative', + display: 'inline-block', + boxSizing: 'border-box', + minWidth: trackMinWidth, + height: trackHeight, + lineHeight: `${trackHeight}px`, + verticalAlign: 'middle', + background: token.colorTextQuaternary, + border: '0', + borderRadius: 100, + cursor: 'pointer', + transition: `all ${token.motionDurationMid}`, + userSelect: 'none', + [`&:hover:not(${componentCls}-disabled)`]: { + background: token.colorTextTertiary + } + }), (0,style/* genFocusStyle */.Qy)(token)), { + [`&${componentCls}-checked`]: { + background: token.switchColor, + [`&:hover:not(${componentCls}-disabled)`]: { + background: token.colorPrimaryHover + } + }, + [`&${componentCls}-loading, &${componentCls}-disabled`]: { + cursor: 'not-allowed', + opacity: token.switchDisabledOpacity, + '*': { + boxShadow: 'none', + cursor: 'not-allowed' + } + }, + // rtl style + [`&${componentCls}-rtl`]: { + direction: 'rtl' + } + }) + }; +}; +// ============================== Export ============================== +/* harmony default export */ var switch_style = ((0,genComponentStyleHook/* default */.Z)('Switch', token => { + const switchToken = (0,statistic/* merge */.TS)(token, { + switchDuration: token.motionDurationMid, + switchColor: token.colorPrimary, + switchDisabledOpacity: token.opacityLoading, + switchLoadingIconSize: token.fontSizeIcon * 0.75, + switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`, + switchHandleActiveInset: '-30%' + }); + return [genSwitchStyle(switchToken), + // inner style + genSwitchInnerStyle(switchToken), + // handle style + genSwitchHandleStyle(switchToken), + // loading style + genSwitchLoadingStyle(switchToken), + // small style + genSwitchSmallStyle(switchToken)]; +}, token => { + const { + fontSize, + lineHeight, + controlHeight, + colorWhite + } = token; + const height = fontSize * lineHeight; + const heightSM = controlHeight / 2; + const padding = 2; // Fixed value + const handleSize = height - padding * 2; + const handleSizeSM = heightSM - padding * 2; + return { + trackHeight: height, + trackHeightSM: heightSM, + trackMinWidth: handleSize * 2 + padding * 4, + trackMinWidthSM: handleSizeSM * 2 + padding * 2, + trackPadding: padding, + handleBg: colorWhite, + handleSize, + handleSizeSM, + handleShadow: `0 2px 4px 0 ${new dist_module/* TinyColor */.C('#00230b').setAlpha(0.2).toRgbString()}`, + innerMinMargin: handleSize / 2, + innerMaxMargin: handleSize + padding + padding * 2, + innerMinMarginSM: handleSizeSM / 2, + innerMaxMarginSM: handleSizeSM + padding + padding * 2 + }; +})); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + +const switch_Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { + const { + prefixCls: customizePrefixCls, + size: customizeSize, + disabled: customDisabled, + loading, + className, + rootClassName, + style + } = props, + restProps = __rest(props, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style"]); + false ? 0 : void 0; + const { + getPrefixCls, + direction, + switch: SWITCH + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + // ===================== Disabled ===================== + const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); + const mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading; + const prefixCls = getPrefixCls('switch', customizePrefixCls); + const loadingIcon = /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-handle` + }, loading && /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, { + className: `${prefixCls}-loading-icon` + })); + // Style + const [wrapSSR, hashId] = switch_style(prefixCls); + const mergedSize = (0,useSize/* default */.Z)(customizeSize); + const classes = _classnames_2_3_2_classnames_default()(SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.className, { + [`${prefixCls}-small`]: mergedSize === 'small', + [`${prefixCls}-loading`]: loading, + [`${prefixCls}-rtl`]: direction === 'rtl' + }, className, rootClassName, hashId); + const mergedStyle = Object.assign(Object.assign({}, SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.style), style); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { + component: "Switch" + }, /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({}, restProps, { + prefixCls: prefixCls, + className: classes, + style: mergedStyle, + disabled: mergedDisabled, + ref: ref, + loadingIcon: loadingIcon + })))); +}); +switch_Switch.__ANT_SWITCH = true; +if (false) {} +/* harmony default export */ var es_switch = (switch_Switch); + +/***/ }), + /***/ 51581: /*!****************************************************************************************************!*\ !*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***! diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.chunk.css b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.chunk.css index 24098ba387..21b3efece4 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.chunk.css +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.chunk.css @@ -1368,6 +1368,12 @@ span.CodeMirror-selectedtext { margin-right: 8px; margin-left: 8px; } +.refresh___dkiX_ { + margin-top: 15px; +} +.refresh___dkiX_ [class~='ant-checkbox-wrapper'] { + margin-left: 0 !important; +} .maxWidth70___u0Fnw { max-width: 70px; overflow: hidden; diff --git a/p__Classrooms__Lists__Template__detail__index.async.js b/p__Classrooms__Lists__Template__detail__index.async.js index 275269feb7..e4b8c2e5d1 100644 --- a/p__Classrooms__Lists__Template__detail__index.async.js +++ b/p__Classrooms__Lists__Template__detail__index.async.js @@ -961,7 +961,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__Competitions__Update__index.async.js b/p__Competitions__Update__index.async.js index 7fba16f227..3044c0f990 100644 --- a/p__Competitions__Update__index.async.js +++ b/p__Competitions__Update__index.async.js @@ -1340,7 +1340,7 @@ input_Input.Password = input_Password; /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__Problemset__Preview__index.async.js b/p__Problemset__Preview__index.async.js index 8a1650f16e..3ad8ab49db 100644 --- a/p__Problemset__Preview__index.async.js +++ b/p__Problemset__Preview__index.async.js @@ -1069,7 +1069,7 @@ var Preview = function Preview(_ref) { /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__Shixuns__Detail__Challenges__index.async.js b/p__Shixuns__Detail__Challenges__index.async.js index 0f8bd8ec95..8abd200d99 100644 --- a/p__Shixuns__Detail__Challenges__index.async.js +++ b/p__Shixuns__Detail__Challenges__index.async.js @@ -1535,7 +1535,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__User__Detail__Videos__Protocol__index.async.js b/p__User__Detail__Videos__Protocol__index.async.js index 34b58f65ae..2b4d4c5e08 100644 --- a/p__User__Detail__Videos__Protocol__index.async.js +++ b/p__User__Detail__Videos__Protocol__index.async.js @@ -751,7 +751,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__User__Detail__Videos__Success__index.async.js b/p__User__Detail__Videos__Success__index.async.js index d9b6dc0ebe..92dffd819b 100644 --- a/p__User__Detail__Videos__Success__index.async.js +++ b/p__User__Detail__Videos__Success__index.async.js @@ -667,7 +667,7 @@ if (false) {} /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/p__virtualSpaces__Lists__Material__index.async.js b/p__virtualSpaces__Lists__Material__index.async.js index ea1cab8ab6..1b0866b943 100644 --- a/p__virtualSpaces__Lists__Material__index.async.js +++ b/p__virtualSpaces__Lists__Material__index.async.js @@ -689,7 +689,7 @@ var Page = function Page(_ref) { /* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } /* harmony export */ }); /* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); diff --git a/umi.js b/umi.js index 4c34e2cea2..5eace97e7b 100644 --- a/umi.js +++ b/umi.js @@ -277,9 +277,9 @@ var gray = presetPalettes.grey; /***/ }), -/***/ 52042: +/***/ 67937: /*!***********************************************************************************************!*\ - !*** ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules ***! + !*** ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { @@ -290,6 +290,7 @@ __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { Keyframes: function() { return /* reexport */ Keyframes; }, + NaNLinter: function() { return /* reexport */ NaNLinter; }, StyleProvider: function() { return /* reexport */ StyleProvider; }, Theme: function() { return /* reexport */ Theme; }, _experimental: function() { return /* binding */ _experimental; }, @@ -302,10 +303,17 @@ __webpack_require__.d(__webpack_exports__, { logicalPropertiesLinter: function() { return /* reexport */ logicalPropertiesLinter; }, parentSelectorLinter: function() { return /* reexport */ parentSelectorLinter; }, px2remTransformer: function() { return /* reexport */ px2rem; }, + token2CSSVar: function() { return /* reexport */ token2CSSVar; }, + unit: function() { return /* reexport */ unit; }, + useCSSVarRegister: function() { return /* reexport */ hooks_useCSSVarRegister; }, useCacheToken: function() { return /* reexport */ useCacheToken; }, useStyleRegister: function() { return /* reexport */ useStyleRegister; } }); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(61860); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/defineProperty.js +var defineProperty = __webpack_require__(35005); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules var toConsumableArray = __webpack_require__(40877); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectSpread2.js @@ -367,6 +375,8 @@ function murmur2(str) { /* harmony default export */ var hash_browser_esm = (murmur2); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Dom/dynamicCSS.js +var dynamicCSS = __webpack_require__(75966); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); var _react_17_0_2_react_namespaceObject = /*#__PURE__*/__webpack_require__.t(_react_17_0_2_react, 2); @@ -380,9 +390,7 @@ var isEqual = __webpack_require__(70780); var classCallCheck = __webpack_require__(67873); // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/createClass.js var createClass = __webpack_require__(22695); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/defineProperty.js -var defineProperty = __webpack_require__(35005); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/Cache.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/Cache.js @@ -418,7 +426,7 @@ var Entity = /*#__PURE__*/function () { return Entity; }(); /* harmony default export */ var Cache = (Entity); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/StyleContext.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/StyleContext.js var _excluded = ["children"]; @@ -498,11 +506,7 @@ var StyleProvider = function StyleProvider(props) { var esm_typeof = __webpack_require__(96522); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Dom/canUseDom.js var canUseDom = __webpack_require__(42871); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Dom/dynamicCSS.js -var dynamicCSS = __webpack_require__(75966); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules -var slicedToArray = __webpack_require__(61860); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/theme/ThemeCache.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/theme/ThemeCache.js @@ -648,7 +652,7 @@ var ThemeCache = /*#__PURE__*/function () { // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/warning.js var warning = __webpack_require__(36014); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/theme/Theme.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/theme/Theme.js @@ -682,7 +686,7 @@ var Theme = /*#__PURE__*/function () { return Theme; }(); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/theme/createTheme.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/theme/createTheme.js var cacheThemes = new ThemeCache(); @@ -700,11 +704,14 @@ function createTheme(derivatives) { // Get theme from cache and return return cacheThemes.get(derivativeArr); } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/theme/index.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/theme/index.js + + + +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/util/index.js -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/util.js @@ -814,9 +821,70 @@ function supportLogicProps() { } return canLogic; } +var isClientSide = (0,canUseDom/* default */.Z)(); +function unit(num) { + if (typeof num === 'number') { + return "".concat(num, "px"); + } + return num; +} +function toStyleStr(style, tokenKey, styleId) { + var _objectSpread2; + var customizeAttrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + var plain = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; + if (plain) { + return style; + } + var attrs = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, customizeAttrs), {}, (_objectSpread2 = {}, (0,defineProperty/* default */.Z)(_objectSpread2, ATTR_TOKEN, tokenKey), (0,defineProperty/* default */.Z)(_objectSpread2, ATTR_MARK, styleId), _objectSpread2)); + var attrStr = Object.keys(attrs).map(function (attr) { + var val = attrs[attr]; + return val ? "".concat(attr, "=\"").concat(val, "\"") : null; + }).filter(function (v) { + return v; + }).join(' '); + return ""); +} +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/util/css-variables.js + +var token2CSSVar = function token2CSSVar(token) { + var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; + return "--".concat(prefix ? "".concat(prefix, "-") : '').concat(token).replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, '$1-$2').replace(/([a-z])([A-Z0-9])/g, '$1-$2').toLowerCase(); +}; +var serializeCSSVar = function serializeCSSVar(cssVars, hashId, options) { + if (!Object.keys(cssVars).length) { + return ''; + } + return ".".concat(hashId).concat(options !== null && options !== void 0 && options.scope ? ".".concat(options.scope) : '', "{").concat(Object.entries(cssVars).map(function (_ref) { + var _ref2 = (0,slicedToArray/* default */.Z)(_ref, 2), + key = _ref2[0], + value = _ref2[1]; + return "".concat(key, ":").concat(value, ";"); + }).join(''), "}"); +}; +var transformToken = function transformToken(token, themeKey, config) { + var cssVars = {}; + var result = {}; + Object.entries(token).forEach(function (_ref3) { + var _config$preserve, _config$ignore; + var _ref4 = (0,slicedToArray/* default */.Z)(_ref3, 2), + key = _ref4[0], + value = _ref4[1]; + if (config !== null && config !== void 0 && (_config$preserve = config.preserve) !== null && _config$preserve !== void 0 && _config$preserve[key]) { + result[key] = value; + } else if ((typeof value === 'string' || typeof value === 'number') && !(config !== null && config !== void 0 && (_config$ignore = config.ignore) !== null && _config$ignore !== void 0 && _config$ignore[key])) { + var _config$unitless; + var cssVar = token2CSSVar(key, config === null || config === void 0 ? void 0 : config.prefix); + cssVars[cssVar] = typeof value === 'number' && !(config !== null && config !== void 0 && (_config$unitless = config.unitless) !== null && _config$unitless !== void 0 && _config$unitless[key]) ? "".concat(value, "px") : String(value); + result[key] = "var(".concat(cssVar, ")"); + } + }); + return [result, serializeCSSVar(cssVars, themeKey, { + scope: config === null || config === void 0 ? void 0 : config.scope + })]; +}; // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useLayoutEffect.js var useLayoutEffect = __webpack_require__(70658); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js // import canUseDom from 'rc-util/lib/Dom/canUseDom'; @@ -851,7 +919,7 @@ var useCompatibleInsertionEffect = useInsertionEffect ? function (renderEffect, }, deps); } : useInsertionEffectPolyfill; /* harmony default export */ var hooks_useCompatibleInsertionEffect = (useCompatibleInsertionEffect); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js @@ -892,7 +960,7 @@ var useRun = function useRun() { // Only enable register in React 18 var useEffectCleanupRegister = typeof useEffectCleanupRegister_useInsertionEffect !== 'undefined' ? useCleanupRegister : useRun; /* harmony default export */ var hooks_useEffectCleanupRegister = (useEffectCleanupRegister); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useHMR.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useHMR.js function useProdHMR() { return false; } @@ -905,7 +973,7 @@ function useDevHMR() { // Webpack `module.hot.accept` do not support any deps update trigger // We have to hack handler to force mark as HRM if (false) { var originWebpackHotUpdate, win; } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useGlobalCache.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useGlobalCache.js @@ -924,7 +992,7 @@ onCacheEffect) { var HMRUpdate = useHMR(); var buildCache = function buildCache(updater) { globalCache.update(fullPath, function (prevCache) { - var _ref = prevCache || [], + var _ref = prevCache || [undefined, undefined], _ref2 = (0,slicedToArray/* default */.Z)(_ref, 2), _ref2$ = _ref2[0], times = _ref2$ === void 0 ? 0 : _ref2$, @@ -983,7 +1051,12 @@ onCacheEffect) { if (nextCount === 0) { // Always remove styles in useEffect callback register(function () { - return onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false); + // With polyfill, registered callback will always be called synchronously + // But without polyfill, it will be called in effect clean up, + // And by that time this cache is cleaned up. + if (polyfill || !globalCache.get(fullPath)) { + onCacheRemove === null || onCacheRemove === void 0 || onCacheRemove(cache, false); + } }); return null; } @@ -993,7 +1066,10 @@ onCacheEffect) { }, [deps]); return cacheContent; } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useCacheToken.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useCacheToken.js + + + @@ -1052,7 +1128,7 @@ var getComputedToken = function getComputedToken(originToken, overrideToken, the } return mergedDerivativeToken; }; - +var TOKEN_PREFIX = 'token'; /** * Cache theme derivative token as global shared one * @param theme Theme entity @@ -1063,13 +1139,15 @@ var getComputedToken = function getComputedToken(originToken, overrideToken, the function useCacheToken(theme, tokens) { var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var _useContext = (0,_react_17_0_2_react.useContext)(es_StyleContext), - instanceId = _useContext.cache.instanceId; + instanceId = _useContext.cache.instanceId, + container = _useContext.container; var _option$salt = option.salt, salt = _option$salt === void 0 ? '' : _option$salt, _option$override = option.override, override = _option$override === void 0 ? EMPTY_OVERRIDE : _option$override, formatToken = option.formatToken, - compute = option.getComputedToken; + compute = option.getComputedToken, + cssVar = option.cssVar; // Basic - We do basic cache here var mergedToken = memoResult(function () { @@ -1077,23 +1155,81 @@ function useCacheToken(theme, tokens) { }, tokens); var tokenStr = flattenToken(mergedToken); var overrideTokenStr = flattenToken(override); - var cachedToken = useGlobalCache('token', [salt, theme.id, tokenStr, overrideTokenStr], function () { + var cssVarStr = cssVar ? flattenToken(cssVar) : ''; + var cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme.id, tokenStr, overrideTokenStr, cssVarStr], function () { + var _cssVar$key; var mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken(mergedToken, override, theme, formatToken); + // Replace token value with css variables + var actualToken = (0,objectSpread2/* default */.Z)({}, mergedDerivativeToken); + var cssVarsStr = ''; + if (!!cssVar) { + var _transformToken = transformToken(mergedDerivativeToken, cssVar.key, { + prefix: cssVar.prefix, + ignore: cssVar.ignore, + unitless: cssVar.unitless, + preserve: cssVar.preserve + }); + var _transformToken2 = (0,slicedToArray/* default */.Z)(_transformToken, 2); + mergedDerivativeToken = _transformToken2[0]; + cssVarsStr = _transformToken2[1]; + } + // Optimize for `useStyleRegister` performance var tokenKey = token2key(mergedDerivativeToken, salt); mergedDerivativeToken._tokenKey = tokenKey; - recordCleanToken(tokenKey); + actualToken._tokenKey = token2key(actualToken, salt); + var themeKey = (_cssVar$key = cssVar === null || cssVar === void 0 ? void 0 : cssVar.key) !== null && _cssVar$key !== void 0 ? _cssVar$key : tokenKey; + mergedDerivativeToken._themeKey = themeKey; + recordCleanToken(themeKey); var hashId = "".concat(hashPrefix, "-").concat(hash_browser_esm(tokenKey)); mergedDerivativeToken._hashId = hashId; // Not used - return [mergedDerivativeToken, hashId]; + return [mergedDerivativeToken, hashId, actualToken, cssVarsStr, (cssVar === null || cssVar === void 0 ? void 0 : cssVar.key) || '']; }, function (cache) { // Remove token will remove all related style - cleanTokenStyle(cache[0]._tokenKey, instanceId); + cleanTokenStyle(cache[0]._themeKey, instanceId); + }, function (_ref) { + var _ref2 = (0,slicedToArray/* default */.Z)(_ref, 4), + token = _ref2[0], + cssVarsStr = _ref2[3]; + if (cssVar && cssVarsStr) { + var style = (0,dynamicCSS/* updateCSS */.hq)(cssVarsStr, hash_browser_esm("css-variables-".concat(token._themeKey)), { + mark: ATTR_MARK, + prepend: 'queue', + attachTo: container, + priority: -999 + }); + style[CSS_IN_JS_INSTANCE] = instanceId; + + // Used for `useCacheToken` to remove on batch when token removed + style.setAttribute(ATTR_TOKEN, token._themeKey); + } }); return cachedToken; } +var extract = function extract(cache, effectStyles, options) { + var _cache = (0,slicedToArray/* default */.Z)(cache, 5), + realToken = _cache[2], + styleStr = _cache[3], + cssVarKey = _cache[4]; + var _ref3 = options || {}, + plain = _ref3.plain; + if (!styleStr) { + return null; + } + var styleId = realToken._tokenKey; + var order = -999; + + // ====================== Style ====================== + // Used for rc-util + var sharedAttrs = { + 'data-rc-order': 'prependQueue', + 'data-rc-priority': "".concat(order) + }; + var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain); + return [order, styleId, styleText]; +}; // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(61796); ;// CONCATENATED MODULE: ./node_modules/_@emotion_unitless@0.7.5@@emotion/unitless/dist/unitless.browser.esm.js @@ -1789,14 +1925,14 @@ function declaration (value, root, parent, length, siblings) { return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings) } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/utils.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/utils.js function utils_lintWarning(message, info) { var path = info.path, parentSelectors = info.parentSelectors; (0,warning/* default */.ZP)(false, "[Ant Design CSS-in-JS] ".concat(path ? "Error in ".concat(path, ": ") : '').concat(message).concat(parentSelectors.length ? " Selector: ".concat(parentSelectors.join(' | ')) : '')); } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/contentQuotesLinter.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/contentQuotesLinter.js var linter = function linter(key, value, info) { if (key === 'content') { @@ -1809,7 +1945,7 @@ var linter = function linter(key, value, info) { } }; /* harmony default export */ var contentQuotesLinter = ((/* unused pure expression or super */ null && (linter))); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/hashedAnimationLinter.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/hashedAnimationLinter.js var hashedAnimationLinter_linter = function linter(key, value, info) { if (key === 'animation') { @@ -1819,7 +1955,7 @@ var hashedAnimationLinter_linter = function linter(key, value, info) { } }; /* harmony default export */ var hashedAnimationLinter = ((/* unused pure expression or super */ null && (hashedAnimationLinter_linter))); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/legacyNotSelectorLinter.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/legacyNotSelectorLinter.js function isConcatSelector(selector) { var _selector$match; @@ -1848,7 +1984,7 @@ var legacyNotSelectorLinter_linter = function linter(key, value, info) { } }; /* harmony default export */ var legacyNotSelectorLinter = (legacyNotSelectorLinter_linter); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/logicalPropertiesLinter.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/logicalPropertiesLinter.js var logicalPropertiesLinter_linter = function linter(key, value, info) { switch (key) { @@ -1927,7 +2063,15 @@ var logicalPropertiesLinter_linter = function linter(key, value, info) { } }; /* harmony default export */ var logicalPropertiesLinter = (logicalPropertiesLinter_linter); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/parentSelectorLinter.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/NaNLinter.js + +var NaNLinter_linter = function linter(key, value, info) { + if (typeof value === 'string' && /NaN/g.test(value) || Number.isNaN(value)) { + utils_lintWarning("Unexpected 'NaN' in property '".concat(key, ": ").concat(value, "'."), info); + } +}; +/* harmony default export */ var NaNLinter = (NaNLinter_linter); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/parentSelectorLinter.js var parentSelectorLinter_linter = function linter(key, value, info) { if (info.parentSelectors.some(function (selector) { @@ -1940,13 +2084,14 @@ var parentSelectorLinter_linter = function linter(key, value, info) { } }; /* harmony default export */ var parentSelectorLinter = (parentSelectorLinter_linter); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/linters/index.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/linters/index.js + -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useStyleRegister/cacheMapUtil.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/util/cacheMapUtil.js @@ -2029,8 +2174,7 @@ function getStyleAndHash(path) { } return [styleStr, hash]; } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/hooks/useStyleRegister/index.js - +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useStyleRegister.js @@ -2048,7 +2192,6 @@ function getStyleAndHash(path) { -var isClientSide = (0,canUseDom/* default */.Z)(); var SKIP_CHECK = '_skip_check_'; var MULTI_VALUE = '_multi_value_'; // ============================================================================ @@ -2241,7 +2384,7 @@ function uniqueHash(path, styleStr) { function Empty() { return null; } - +var STYLE_PREFIX = 'style'; /** * Register a style to the global style sheet. */ @@ -2270,7 +2413,7 @@ function useStyleRegister(info, styleFn) { // Check if need insert style var isMergedClientSide = isClientSide; if (false) {} - var _useGlobalCache = useGlobalCache('style', fullPath, + var _useGlobalCache = useGlobalCache(STYLE_PREFIX, fullPath, // Create cache if needed function () { var cachePath = fullPath.join('|'); @@ -2333,11 +2476,11 @@ function useStyleRegister(info, styleFn) { nonce: nonceStr }; } - var _style = (0,dynamicCSS/* updateCSS */.hq)(styleStr, styleId, mergedCSSConfig); - _style[CSS_IN_JS_INSTANCE] = cache.instanceId; + var style = (0,dynamicCSS/* updateCSS */.hq)(styleStr, styleId, mergedCSSConfig); + style[CSS_IN_JS_INSTANCE] = cache.instanceId; // Used for `useCacheToken` to remove on batch when token removed - _style.setAttribute(ATTR_TOKEN, tokenKey); + style.setAttribute(ATTR_TOKEN, tokenKey); // Debug usage. Dev only if (false) {} @@ -2367,17 +2510,151 @@ function useStyleRegister(info, styleFn) { return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, styleNode, node); }; } +var useStyleRegister_extract = function extract(cache, effectStyles, options) { + var _cache = (0,slicedToArray/* default */.Z)(cache, 6), + styleStr = _cache[0], + tokenKey = _cache[1], + styleId = _cache[2], + effectStyle = _cache[3], + clientOnly = _cache[4], + order = _cache[5]; + var _ref7 = options || {}, + plain = _ref7.plain; + + // Skip client only style + if (clientOnly) { + return null; + } + var keyStyleText = styleStr; -// ============================================================================ -// == SSR == -// ============================================================================ + // ====================== Style ====================== + // Used for rc-util + var sharedAttrs = { + 'data-rc-order': 'prependQueue', + 'data-rc-priority': "".concat(order) + }; + keyStyleText = toStyleStr(styleStr, tokenKey, styleId, sharedAttrs, plain); + + // =============== Create effect style =============== + if (effectStyle) { + Object.keys(effectStyle).forEach(function (effectKey) { + // Effect style can be reused + if (!effectStyles[effectKey]) { + effectStyles[effectKey] = true; + var effectStyleStr = normalizeStyle(effectStyle[effectKey]); + keyStyleText += toStyleStr(effectStyleStr, tokenKey, "_effect-".concat(effectKey), sharedAttrs, plain); + } + }); + } + return [order, styleId, keyStyleText]; +}; +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/hooks/useCSSVarRegister.js + + + + + + + + + +var CSS_VAR_PREFIX = 'cssVar'; +var useCSSVarRegister = function useCSSVarRegister(config, fn) { + var key = config.key, + prefix = config.prefix, + unitless = config.unitless, + ignore = config.ignore, + token = config.token, + _config$scope = config.scope, + scope = _config$scope === void 0 ? '' : _config$scope; + var _useContext = (0,_react_17_0_2_react.useContext)(es_StyleContext), + instanceId = _useContext.cache.instanceId, + container = _useContext.container; + var tokenKey = token._tokenKey; + var stylePath = [].concat((0,toConsumableArray/* default */.Z)(config.path), [key, scope, tokenKey]); + var cache = useGlobalCache(CSS_VAR_PREFIX, stylePath, function () { + var originToken = fn(); + var _transformToken = transformToken(originToken, key, { + prefix: prefix, + unitless: unitless, + ignore: ignore, + scope: scope + }), + _transformToken2 = (0,slicedToArray/* default */.Z)(_transformToken, 2), + mergedToken = _transformToken2[0], + cssVarsStr = _transformToken2[1]; + var styleId = uniqueHash(stylePath, cssVarsStr); + return [mergedToken, cssVarsStr, styleId, key]; + }, function (_ref) { + var _ref2 = (0,slicedToArray/* default */.Z)(_ref, 3), + styleId = _ref2[2]; + if (isClientSide) { + (0,dynamicCSS/* removeCSS */.jL)(styleId, { + mark: ATTR_MARK + }); + } + }, function (_ref3) { + var _ref4 = (0,slicedToArray/* default */.Z)(_ref3, 3), + cssVarsStr = _ref4[1], + styleId = _ref4[2]; + if (!cssVarsStr) { + return; + } + var style = (0,dynamicCSS/* updateCSS */.hq)(cssVarsStr, styleId, { + mark: ATTR_MARK, + prepend: 'queue', + attachTo: container, + priority: -999 + }); + style[CSS_IN_JS_INSTANCE] = instanceId; + + // Used for `useCacheToken` to remove on batch when token removed + style.setAttribute(ATTR_TOKEN, key); + }); + return cache; +}; +var useCSSVarRegister_extract = function extract(cache, effectStyles, options) { + var _cache = (0,slicedToArray/* default */.Z)(cache, 4), + styleStr = _cache[1], + styleId = _cache[2], + cssVarKey = _cache[3]; + var _ref5 = options || {}, + plain = _ref5.plain; + if (!styleStr) { + return null; + } + var order = -999; + + // ====================== Style ====================== + // Used for rc-util + var sharedAttrs = { + 'data-rc-order': 'prependQueue', + 'data-rc-priority': "".concat(order) + }; + var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain); + return [order, styleId, styleText]; +}; +/* harmony default export */ var hooks_useCSSVarRegister = (useCSSVarRegister); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/extractStyle.js + + +var _ExtractStyleFns; + + + + + +var ExtractStyleFns = (_ExtractStyleFns = {}, (0,defineProperty/* default */.Z)(_ExtractStyleFns, STYLE_PREFIX, useStyleRegister_extract), (0,defineProperty/* default */.Z)(_ExtractStyleFns, TOKEN_PREFIX, extract), (0,defineProperty/* default */.Z)(_ExtractStyleFns, CSS_VAR_PREFIX, useCSSVarRegister_extract), _ExtractStyleFns); +function isNotNull(value) { + return value !== null; +} function extractStyle(cache) { var plain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var matchPrefix = "style%"; + var matchPrefixRegexp = new RegExp("^(".concat(Object.keys(ExtractStyleFns).join('|'), ")%")); // prefix with `style` is used for `useStyleRegister` to cache style context var styleKeys = Array.from(cache.cache.keys()).filter(function (key) { - return key.startsWith(matchPrefix); + return matchPrefixRegexp.test(key); }); // Common effect styles like animation @@ -2386,75 +2663,43 @@ function extractStyle(cache) { // Mapping of cachePath to style hash var cachePathMap = {}; var styleText = ''; - function toStyleStr(style, tokenKey, styleId) { - var _objectSpread2; - var customizeAttrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var attrs = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, customizeAttrs), {}, (_objectSpread2 = {}, (0,defineProperty/* default */.Z)(_objectSpread2, ATTR_TOKEN, tokenKey), (0,defineProperty/* default */.Z)(_objectSpread2, ATTR_MARK, styleId), _objectSpread2)); - var attrStr = Object.keys(attrs).map(function (attr) { - var val = attrs[attr]; - return val ? "".concat(attr, "=\"").concat(val, "\"") : null; - }).filter(function (v) { - return v; - }).join(' '); - return plain ? style : ""); - } - - // ====================== Fill Style ====================== - - var orderStyles = styleKeys.map(function (key) { - var cachePath = key.slice(matchPrefix.length).replace(/%/g, '|'); - var _2 = (0,slicedToArray/* default */.Z)(cache.cache.get(key)[1], 6), - styleStr = _2[0], - tokenKey = _2[1], - styleId = _2[2], - effectStyle = _2[3], - clientOnly = _2[4], - order = _2[5]; - - // Skip client only style - if (clientOnly) { + styleKeys.map(function (key) { + var cachePath = key.replace(matchPrefixRegexp, '').replace(/%/g, '|'); + var _key$split = key.split('%'), + _key$split2 = (0,slicedToArray/* default */.Z)(_key$split, 1), + prefix = _key$split2[0]; + var extractFn = ExtractStyleFns[prefix]; + var extractedStyle = extractFn(cache.cache.get(key)[1], effectStyles, { + plain: plain + }); + if (!extractedStyle) { return null; } - - // ====================== Style ====================== - // Used for rc-util - var sharedAttrs = { - 'data-rc-order': 'prependQueue', - 'data-rc-priority': "".concat(order) - }; - var keyStyleText = toStyleStr(styleStr, tokenKey, styleId, sharedAttrs); - - // Save cache path with hash mapping - cachePathMap[cachePath] = styleId; - - // =============== Create effect style =============== - if (effectStyle) { - Object.keys(effectStyle).forEach(function (effectKey) { - // Effect style can be reused - if (!effectStyles[effectKey]) { - effectStyles[effectKey] = true; - keyStyleText += toStyleStr(normalizeStyle(effectStyle[effectKey]), tokenKey, "_effect-".concat(effectKey), sharedAttrs); - } - }); - } - var ret = [order, keyStyleText]; - return ret; - }).filter(function (o) { - return o; - }); - orderStyles.sort(function (o1, o2) { - return o1[0] - o2[0]; - }).forEach(function (_ref7) { - var _ref8 = (0,slicedToArray/* default */.Z)(_ref7, 2), - style = _ref8[1]; + var _extractedStyle = (0,slicedToArray/* default */.Z)(extractedStyle, 3), + order = _extractedStyle[0], + styleId = _extractedStyle[1], + styleStr = _extractedStyle[2]; + if (key.startsWith('style')) { + cachePathMap[cachePath] = styleId; + } + return [order, styleStr]; + }).filter(isNotNull).sort(function (_ref, _ref2) { + var _ref3 = (0,slicedToArray/* default */.Z)(_ref, 1), + o1 = _ref3[0]; + var _ref4 = (0,slicedToArray/* default */.Z)(_ref2, 1), + o2 = _ref4[0]; + return o1 - o2; + }).forEach(function (_ref5) { + var _ref6 = (0,slicedToArray/* default */.Z)(_ref5, 2), + style = _ref6[1]; styleText += style; }); // ==================== Fill Cache Path ==================== - styleText += toStyleStr(".".concat(ATTR_CACHE_MAP, "{content:\"").concat(cacheMapUtil_serialize(cachePathMap), "\";}"), undefined, undefined, (0,defineProperty/* default */.Z)({}, ATTR_CACHE_MAP, ATTR_CACHE_MAP)); + styleText += toStyleStr(".".concat(ATTR_CACHE_MAP, "{content:\"").concat(cacheMapUtil_serialize(cachePathMap), "\";}"), undefined, undefined, (0,defineProperty/* default */.Z)({}, ATTR_CACHE_MAP, ATTR_CACHE_MAP), plain); return styleText; } -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/Keyframes.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/Keyframes.js @@ -2477,7 +2722,7 @@ var Keyframe = /*#__PURE__*/function () { return Keyframe; }(); /* harmony default export */ var Keyframes = (Keyframe); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js function splitValues(value) { if (typeof value === 'number') { @@ -2632,7 +2877,7 @@ var transform = { } }; /* harmony default export */ var legacyLogicalProperties = (transform); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/transformers/px2rem.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/transformers/px2rem.js /** @@ -2693,7 +2938,10 @@ var px2rem_transform = function transform() { }; }; /* harmony default export */ var px2rem = (px2rem_transform); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js +;// CONCATENATED MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + + + @@ -9571,8 +9819,8 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); var config_provider = __webpack_require__(92736); // EXTERNAL MODULE: ./src/.umi-production/exports.ts var _umi_production_exports = __webpack_require__(45295); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./src/.umi-production/plugin-antd/context.tsx var plugin_antd_context = __webpack_require__(9373); // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/merge.js @@ -55346,8 +55594,8 @@ __webpack_require__.d(__webpack_exports__, { // UNUSED EXPORTS: ConfigConsumer, ConfigContext, configConsumerProps, defaultIconPrefixCls, defaultPrefixCls, warnContext -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/Context.js var Context = __webpack_require__(35954); // EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useMemo.js @@ -57016,8 +57264,8 @@ var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_c var es = __webpack_require__(581); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js @@ -59235,8 +59483,8 @@ var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_c var es = __webpack_require__(581); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var cssinjs_es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var cssinjs_es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js @@ -60339,8 +60587,8 @@ var esm = __webpack_require__(13530); var reactNode = __webpack_require__(92343); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js var style = __webpack_require__(17313); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js @@ -60925,7 +61173,7 @@ const genFocusStyle = token => ({ /* harmony export */ J$: function() { return /* binding */ initFadeMotion; } /* harmony export */ }); /* unused harmony exports fadeIn, fadeOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); @@ -61029,7 +61277,7 @@ const initMotion = function (motionCls, inKeyframes, outKeyframes, duration) { /* harmony export */ kr: function() { return /* binding */ zoomIn; } /* harmony export */ }); /* unused harmony exports zoomOut, zoomBigIn, zoomBigOut, zoomUpIn, zoomUpOut, zoomLeftIn, zoomLeftOut, zoomRightIn, zoomRightOut, zoomDownIn, zoomDownOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406); @@ -61233,8 +61481,8 @@ __webpack_require__.d(__webpack_exports__, { uH: function() { return /* binding */ defaultTheme; } }); -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); // EXTERNAL MODULE: ./node_modules/_@ant-design_colors@7.0.0@@ant-design/colors/es/index.js + 1 modules @@ -61652,8 +61900,8 @@ __webpack_require__.d(__webpack_exports__, { // UNUSED EXPORTS: getComputedToken -// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.17.5@@ant-design/cssinjs/es/index.js + 31 modules -var es = __webpack_require__(52042); +// EXTERNAL MODULE: ./node_modules/_@ant-design_cssinjs@1.18.0@@ant-design/cssinjs/es/index.js + 35 modules +var es = __webpack_require__(67937); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js var _react_17_0_2_react = __webpack_require__(59301); ;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/version/version.js @@ -61973,7 +62221,7 @@ function useToken() { /* harmony export */ b: function() { return /* binding */ genSubStyleComponent; } /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var rc_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util */ 33401); /* harmony import */ var _config_provider_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../config-provider/context */ 36355); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style */ 17313); @@ -62171,7 +62419,7 @@ function statisticToken(token) { /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 52042); +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937); /* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../style */ 17313); /* harmony import */ var _useToken__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useToken */ 88088);