parent
e3e5b6fb25
commit
8a4e572711
@ -1,4 +1,50 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[25827],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14692],{
|
||||
|
||||
/***/ 80117:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
|
||||
\*************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3148:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -0,0 +1,589 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20357],{
|
||||
|
||||
/***/ 80117:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
|
||||
\*************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 76558:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseSquareOutlined.js + 1 modules ***!
|
||||
\*************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CloseSquareOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseSquareOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseSquareOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-square", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseSquareOutlined = (CloseSquareOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseSquareOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseSquareOutlined_CloseSquareOutlined = function CloseSquareOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseSquareOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseSquareOutlined_CloseSquareOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseSquareOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3148:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88522:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 75440);
|
||||
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
|
||||
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 92343);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 57809);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const {
|
||||
Option
|
||||
} = _select__WEBPACK_IMPORTED_MODULE_3__["default"];
|
||||
function isSelectOptionOrSelectOptGroup(child) {
|
||||
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
|
||||
}
|
||||
const AutoComplete = (props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
popupClassName,
|
||||
dropdownClassName,
|
||||
children,
|
||||
dataSource
|
||||
} = props;
|
||||
const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
|
||||
// ============================= Input =============================
|
||||
let customizeInput;
|
||||
if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
||||
[customizeInput] = childNodes;
|
||||
}
|
||||
const getInputElement = customizeInput ? () => customizeInput : undefined;
|
||||
// ============================ Options ============================
|
||||
let optionChildren;
|
||||
// [Legacy] convert `children` or `dataSource` into option children
|
||||
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
||||
optionChildren = children;
|
||||
} else {
|
||||
optionChildren = dataSource ? dataSource.map(item => {
|
||||
if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
|
||||
return item;
|
||||
}
|
||||
switch (typeof item) {
|
||||
case 'string':
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
|
||||
key: item,
|
||||
value: item
|
||||
}, item);
|
||||
case 'object':
|
||||
{
|
||||
const {
|
||||
value: optionValue
|
||||
} = item;
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
|
||||
key: optionValue,
|
||||
value: optionValue
|
||||
}, item.text);
|
||||
}
|
||||
default:
|
||||
false ? 0 : void 0;
|
||||
return undefined;
|
||||
}
|
||||
}) : [];
|
||||
}
|
||||
if (false) {}
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__["default"], Object.assign({
|
||||
ref: ref,
|
||||
suffixIcon: null
|
||||
}, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
|
||||
prefixCls: prefixCls,
|
||||
popupClassName: popupClassName || dropdownClassName,
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
|
||||
mode: _select__WEBPACK_IMPORTED_MODULE_3__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE
|
||||
}, {
|
||||
// Internal api
|
||||
getInputElement
|
||||
}), optionChildren);
|
||||
};
|
||||
const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
|
||||
// We don't care debug panel
|
||||
/* istanbul ignore next */
|
||||
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
|
||||
RefAutoComplete.Option = Option;
|
||||
RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
|
||||
if (false) {}
|
||||
/* harmony default export */ __webpack_exports__.Z = (RefAutoComplete);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44000:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
|
||||
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 86737);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
||||
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
||||
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
||||
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
||||
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
/* harmony default export */ __webpack_exports__.Z = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 51581:
|
||||
/*!****************************************************************************************************!*\
|
||||
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
|
||||
\****************************************************************************************************/
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({
|
||||
value: true
|
||||
}));
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _react = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
var InfiniteScroll = function (_Component) {
|
||||
_inherits(InfiniteScroll, _Component);
|
||||
|
||||
function InfiniteScroll(props) {
|
||||
_classCallCheck(this, InfiniteScroll);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
|
||||
|
||||
_this.scrollListener = _this.scrollListener.bind(_this);
|
||||
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
|
||||
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(InfiniteScroll, [{
|
||||
key: 'componentDidMount',
|
||||
value: function componentDidMount() {
|
||||
this.pageLoaded = this.props.pageStart;
|
||||
this.options = this.eventListenerOptions();
|
||||
this.attachScrollListener();
|
||||
}
|
||||
}, {
|
||||
key: 'componentDidUpdate',
|
||||
value: function componentDidUpdate() {
|
||||
if (this.props.isReverse && this.loadMore) {
|
||||
var parentElement = this.getParentElement(this.scrollComponent);
|
||||
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
|
||||
this.loadMore = false;
|
||||
}
|
||||
this.attachScrollListener();
|
||||
}
|
||||
}, {
|
||||
key: 'componentWillUnmount',
|
||||
value: function componentWillUnmount() {
|
||||
this.detachScrollListener();
|
||||
this.detachMousewheelListener();
|
||||
}
|
||||
}, {
|
||||
key: 'isPassiveSupported',
|
||||
value: function isPassiveSupported() {
|
||||
var passive = false;
|
||||
|
||||
var testOptions = {
|
||||
get passive() {
|
||||
passive = true;
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
document.addEventListener('test', null, testOptions);
|
||||
document.removeEventListener('test', null, testOptions);
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
return passive;
|
||||
}
|
||||
}, {
|
||||
key: 'eventListenerOptions',
|
||||
value: function eventListenerOptions() {
|
||||
var options = this.props.useCapture;
|
||||
|
||||
if (this.isPassiveSupported()) {
|
||||
options = {
|
||||
useCapture: this.props.useCapture,
|
||||
passive: true
|
||||
};
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
// Set a defaut loader for all your `InfiniteScroll` components
|
||||
|
||||
}, {
|
||||
key: 'setDefaultLoader',
|
||||
value: function setDefaultLoader(loader) {
|
||||
this.defaultLoader = loader;
|
||||
}
|
||||
}, {
|
||||
key: 'detachMousewheelListener',
|
||||
value: function detachMousewheelListener() {
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = this.scrollComponent.parentNode;
|
||||
}
|
||||
|
||||
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
|
||||
}
|
||||
}, {
|
||||
key: 'detachScrollListener',
|
||||
value: function detachScrollListener() {
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = this.getParentElement(this.scrollComponent);
|
||||
}
|
||||
|
||||
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
}
|
||||
}, {
|
||||
key: 'getParentElement',
|
||||
value: function getParentElement(el) {
|
||||
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
|
||||
if (scrollParent != null) {
|
||||
return scrollParent;
|
||||
}
|
||||
return el && el.parentNode;
|
||||
}
|
||||
}, {
|
||||
key: 'filterProps',
|
||||
value: function filterProps(props) {
|
||||
return props;
|
||||
}
|
||||
}, {
|
||||
key: 'attachScrollListener',
|
||||
value: function attachScrollListener() {
|
||||
var parentElement = this.getParentElement(this.scrollComponent);
|
||||
|
||||
if (!this.props.hasMore || !parentElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = parentElement;
|
||||
}
|
||||
|
||||
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
|
||||
if (this.props.initialLoad) {
|
||||
this.scrollListener();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'mousewheelListener',
|
||||
value: function mousewheelListener(e) {
|
||||
// Prevents Chrome hangups
|
||||
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
|
||||
if (e.deltaY === 1 && !this.isPassiveSupported()) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'scrollListener',
|
||||
value: function scrollListener() {
|
||||
var el = this.scrollComponent;
|
||||
var scrollEl = window;
|
||||
var parentNode = this.getParentElement(el);
|
||||
|
||||
var offset = void 0;
|
||||
if (this.props.useWindow) {
|
||||
var doc = document.documentElement || document.body.parentNode || document.body;
|
||||
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
|
||||
if (this.props.isReverse) {
|
||||
offset = scrollTop;
|
||||
} else {
|
||||
offset = this.calculateOffset(el, scrollTop);
|
||||
}
|
||||
} else if (this.props.isReverse) {
|
||||
offset = parentNode.scrollTop;
|
||||
} else {
|
||||
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
|
||||
}
|
||||
|
||||
// Here we make sure the element is visible as well as checking the offset
|
||||
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
|
||||
this.detachScrollListener();
|
||||
this.beforeScrollHeight = parentNode.scrollHeight;
|
||||
this.beforeScrollTop = parentNode.scrollTop;
|
||||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
|
||||
if (typeof this.props.loadMore === 'function') {
|
||||
this.props.loadMore(this.pageLoaded += 1);
|
||||
this.loadMore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'calculateOffset',
|
||||
value: function calculateOffset(el, scrollTop) {
|
||||
if (!el) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
|
||||
}
|
||||
}, {
|
||||
key: 'calculateTopPosition',
|
||||
value: function calculateTopPosition(el) {
|
||||
if (!el) {
|
||||
return 0;
|
||||
}
|
||||
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
|
||||
}
|
||||
}, {
|
||||
key: 'render',
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
var renderProps = this.filterProps(this.props);
|
||||
|
||||
var children = renderProps.children,
|
||||
element = renderProps.element,
|
||||
hasMore = renderProps.hasMore,
|
||||
initialLoad = renderProps.initialLoad,
|
||||
isReverse = renderProps.isReverse,
|
||||
loader = renderProps.loader,
|
||||
loadMore = renderProps.loadMore,
|
||||
pageStart = renderProps.pageStart,
|
||||
ref = renderProps.ref,
|
||||
threshold = renderProps.threshold,
|
||||
useCapture = renderProps.useCapture,
|
||||
useWindow = renderProps.useWindow,
|
||||
getScrollParent = renderProps.getScrollParent,
|
||||
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
|
||||
|
||||
props.ref = function (node) {
|
||||
_this2.scrollComponent = node;
|
||||
if (ref) {
|
||||
ref(node);
|
||||
}
|
||||
};
|
||||
|
||||
var childrenArray = [children];
|
||||
if (hasMore) {
|
||||
if (loader) {
|
||||
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
|
||||
} else if (this.defaultLoader) {
|
||||
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
|
||||
}
|
||||
}
|
||||
return _react2.default.createElement(element, props, childrenArray);
|
||||
}
|
||||
}]);
|
||||
|
||||
return InfiniteScroll;
|
||||
}(_react.Component);
|
||||
|
||||
InfiniteScroll.propTypes = {
|
||||
children: _propTypes2.default.node.isRequired,
|
||||
element: _propTypes2.default.node,
|
||||
hasMore: _propTypes2.default.bool,
|
||||
initialLoad: _propTypes2.default.bool,
|
||||
isReverse: _propTypes2.default.bool,
|
||||
loader: _propTypes2.default.node,
|
||||
loadMore: _propTypes2.default.func.isRequired,
|
||||
pageStart: _propTypes2.default.number,
|
||||
ref: _propTypes2.default.func,
|
||||
getScrollParent: _propTypes2.default.func,
|
||||
threshold: _propTypes2.default.number,
|
||||
useCapture: _propTypes2.default.bool,
|
||||
useWindow: _propTypes2.default.bool
|
||||
};
|
||||
InfiniteScroll.defaultProps = {
|
||||
element: 'div',
|
||||
hasMore: false,
|
||||
initialLoad: true,
|
||||
pageStart: 0,
|
||||
ref: null,
|
||||
threshold: 250,
|
||||
useWindow: true,
|
||||
isReverse: false,
|
||||
useCapture: false,
|
||||
loader: null,
|
||||
getScrollParent: null
|
||||
};
|
||||
exports["default"] = InfiniteScroll;
|
||||
module.exports = exports['default'];
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 26724:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
|
||||
\**************************************************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23418,31173,88299,8976,32311,96495,91090,25209],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23418,88299,8976,32311,96495,91090,25209],{
|
||||
|
||||
/***/ 76897:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,596 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2477],{
|
||||
|
||||
/***/ 2477:
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./src/pages/Classrooms/Lists/ProgramHomework/components/Publish.tsx ***!
|
||||
\***************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/defineProperty.js */ 85573);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js */ 37205);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd */ 5112);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! antd */ 94001);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! antd */ 30518);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! antd */ 24905);
|
||||
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ 61186);
|
||||
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/fetch */ 49105);
|
||||
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/authority */ 75916);
|
||||
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/util */ 27876);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! umi */ 80608);
|
||||
/* harmony import */ var _ShixunHomeworks_components_TrfList__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../ShixunHomeworks/components/TrfList */ 53324);
|
||||
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/service/classrooms */ 6668);
|
||||
/* harmony import */ var _pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/Releasesetting */ 38180);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["classroomList", "dispatch", "courseEndTime"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var PublishShixun = function PublishShixun(_ref) {
|
||||
var _classroomList$action, _classroomList$action7, _classroomList$action8, _classroomList$action9, _classroomList$action10, _classroomList$action11, _classroomList$action12, _classroomList$action13, _classroomList$action14, _classroomList$action15, _classroomList$action16;
|
||||
var classroomList = _ref.classroomList,
|
||||
dispatch = _ref.dispatch,
|
||||
courseEndTime = _ref.courseEndTime,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6___default()(_ref, _excluded);
|
||||
var params = (0,umi__WEBPACK_IMPORTED_MODULE_12__.useParams)();
|
||||
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.useForm(),
|
||||
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(1),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
|
||||
page = _useState2[0],
|
||||
setPage = _useState2[1];
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([]),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState3, 2),
|
||||
list = _useState4[0],
|
||||
setList = _useState4[1];
|
||||
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(0),
|
||||
_useState6 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState5, 2),
|
||||
count = _useState6[0],
|
||||
setCount = _useState6[1];
|
||||
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(2000),
|
||||
_useState8 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState7, 2),
|
||||
limit = _useState8[0],
|
||||
setLimit = _useState8[1];
|
||||
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(true),
|
||||
_useState10 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState9, 2),
|
||||
loading = _useState10[0],
|
||||
setLoading = _useState10[1];
|
||||
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
|
||||
_useState12 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState11, 2),
|
||||
cancelState = _useState12[0],
|
||||
setCancelState = _useState12[1]; //防止多次取消时请求
|
||||
var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
|
||||
_useState14 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState13, 2),
|
||||
btnLoading = _useState14[0],
|
||||
setBtnLoading = _useState14[1];
|
||||
var _useState15 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([]),
|
||||
_useState16 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState15, 2),
|
||||
targetKeys = _useState16[0],
|
||||
settargetKeys = _useState16[1];
|
||||
var _useState17 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(true),
|
||||
_useState18 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState17, 2),
|
||||
radiovalue = _useState18[0],
|
||||
setradiovalue = _useState18[1];
|
||||
var _useState19 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(!((_classroomList$action = classroomList.actionTabs) !== null && _classroomList$action !== void 0 && (_classroomList$action = _classroomList$action.selectArrsAll) !== null && _classroomList$action !== void 0 && (_classroomList$action = _classroomList$action[0]) !== null && _classroomList$action !== void 0 && _classroomList$action.send_type)),
|
||||
_useState20 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState19, 2),
|
||||
isredio = _useState20[0],
|
||||
setisredio = _useState20[1];
|
||||
var _useState21 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)([0, 0, 0]),
|
||||
_useState22 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState21, 2),
|
||||
items = _useState22[0],
|
||||
setitems = _useState22[1];
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {
|
||||
if (classroomList.actionTabs.key === '立即发布') {
|
||||
var _classroomList$action2, _classroomList$action5;
|
||||
clear();
|
||||
if (!((_classroomList$action2 = classroomList.actionTabs) !== null && _classroomList$action2 !== void 0 && (_classroomList$action2 = _classroomList$action2.selectArrsAll) !== null && _classroomList$action2 !== void 0 && (_classroomList$action2 = _classroomList$action2[0]) !== null && _classroomList$action2 !== void 0 && _classroomList$action2.can_publish)) {
|
||||
var _classroomList$action3;
|
||||
setitems(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()((_classroomList$action3 = classroomList.actionTabs) === null || _classroomList$action3 === void 0 || (_classroomList$action3 = _classroomList$action3.selectArrsAll) === null || _classroomList$action3 === void 0 || (_classroomList$action3 = _classroomList$action3[0]) === null || _classroomList$action3 === void 0 ? void 0 : _classroomList$action3.difficult_settings));
|
||||
} else {
|
||||
var _classroomList$action4;
|
||||
setitems(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()((_classroomList$action4 = classroomList.actionTabs) === null || _classroomList$action4 === void 0 || (_classroomList$action4 = _classroomList$action4.selectArrsAll) === null || _classroomList$action4 === void 0 || (_classroomList$action4 = _classroomList$action4[0]) === null || _classroomList$action4 === void 0 ? void 0 : _classroomList$action4.difficult_count));
|
||||
}
|
||||
setisredio(!((_classroomList$action5 = classroomList.actionTabs) !== null && _classroomList$action5 !== void 0 && (_classroomList$action5 = _classroomList$action5.selectArrsAll) !== null && _classroomList$action5 !== void 0 && (_classroomList$action5 = _classroomList$action5[0]) !== null && _classroomList$action5 !== void 0 && _classroomList$action5.send_type));
|
||||
getData();
|
||||
if (classroomList.actionTabs.type === 2) {
|
||||
var _classroomList$action6;
|
||||
var selectItem = (_classroomList$action6 = classroomList.actionTabs.selectArrsAll) === null || _classroomList$action6 === void 0 ? void 0 : _classroomList$action6[0];
|
||||
setradiovalue(selectItem.unified_setting);
|
||||
}
|
||||
}
|
||||
}, [classroomList.actionTabs]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {
|
||||
if (cancelState) {
|
||||
if (btnLoading) return;
|
||||
dispatch({
|
||||
type: 'classroomList/setActionTabs',
|
||||
payload: {}
|
||||
});
|
||||
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAdmin */ .GJ)()) {
|
||||
dispatch({
|
||||
type: 'classroomList/getClassroomTeacherCommonList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params), {}, {
|
||||
type: 1
|
||||
})
|
||||
});
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/getWorkList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
|
||||
});
|
||||
} else {
|
||||
dispatch({
|
||||
type: 'classroomList/getClassroomCommonList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params)
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [cancelState]);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(nextPage) {
|
||||
var res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setLoading(true);
|
||||
_context.next = 3;
|
||||
return (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_14__/* .getAllCourseGroup */ .c_)(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params), {}, {
|
||||
page: nextPage ? nextPage : page,
|
||||
limit: 20000,
|
||||
homework_id: classroomList.actionTabs.type === 1 ? '' : classroomList.actionTabs.selectArrs[0]
|
||||
}));
|
||||
case 3:
|
||||
res = _context.sent;
|
||||
res === null || res === void 0 || res.course_groups.map(function (item, index) {
|
||||
item.key = item.id;
|
||||
item.title = item.name;
|
||||
item.disabled = item.is_published;
|
||||
// item.disabled=item.id===2381;
|
||||
});
|
||||
if (res) {
|
||||
setList(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(res === null || res === void 0 ? void 0 : res.course_groups));
|
||||
setCount(res === null || res === void 0 ? void 0 : res.course_groups_count);
|
||||
setLoading(false);
|
||||
if (!nextPage) {
|
||||
form.setFieldsValue(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1___default()(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_1___default()({}, 'publish_time', moment__WEBPACK_IMPORTED_MODULE_8___default()(moment__WEBPACK_IMPORTED_MODULE_8___default()(new Date()).add(0, 'days').format('YYYY-MM-DD HH:mm'))), 'end_time', moment__WEBPACK_IMPORTED_MODULE_8___default()(moment__WEBPACK_IMPORTED_MODULE_8___default()(new Date((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .DayHalfPastOne */ .qd)('/'))).add(7, 'days').format('YYYY-MM-DD HH:mm'))));
|
||||
}
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData(_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
|
||||
/**
|
||||
* 刷新数据
|
||||
* @returns
|
||||
*/
|
||||
var onRefresh = function onRefresh() {
|
||||
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAdmin */ .GJ)()) {
|
||||
if (classroomList.actionTabs.detail) {
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/setActionTabs',
|
||||
payload: {}
|
||||
});
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/getWorkList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
|
||||
});
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/getWorkSetting',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, params)
|
||||
});
|
||||
} else {
|
||||
dispatch({
|
||||
type: 'classroomList/getClassroomTeacherCommonList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params), {}, {
|
||||
type: 5,
|
||||
category: classroomList.actionTabs.params.categoryId
|
||||
})
|
||||
});
|
||||
}
|
||||
} else {
|
||||
dispatch({
|
||||
type: 'classroomList/getClassroomCommonList',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, classroomList.actionTabs.params)
|
||||
});
|
||||
}
|
||||
};
|
||||
var handleOk = /*#__PURE__*/function () {
|
||||
var _ref3 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2() {
|
||||
var _classroomList$Assist, _classroomList$detail;
|
||||
var formValue, bodys, res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
if (!((0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isAssistant */ .Rm)() && !((_classroomList$Assist = classroomList.AssistantObject.hack) !== null && _classroomList$Assist !== void 0 && _classroomList$Assist.can_publish))) {
|
||||
_context2.next = 4;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.warning('您未获取此权限,需向管理员申请权限才能使用此功能');
|
||||
setisLoading(false);
|
||||
return _context2.abrupt("return");
|
||||
case 4:
|
||||
formValue = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, form.getFieldsValue());
|
||||
if (!(formValue.end_time <= formValue.publish_time)) {
|
||||
_context2.next = 9;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('截止时间不能大于或等于发布时间');
|
||||
setisLoading(false);
|
||||
return _context2.abrupt("return");
|
||||
case 9:
|
||||
if (!((targetKeys === null || targetKeys === void 0 ? void 0 : targetKeys.length) <= 0 && !radiovalue && list.length > 0)) {
|
||||
_context2.next = 13;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('发布班级不能为空');
|
||||
setisLoading(false);
|
||||
return _context2.abrupt("return");
|
||||
case 13:
|
||||
if (!(items.reduce(function (a, b) {
|
||||
return a + b;
|
||||
}) === 0 && !isredio)) {
|
||||
_context2.next = 17;
|
||||
break;
|
||||
}
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.info('简单适中困难题数相加不能为0');
|
||||
setisLoading(false);
|
||||
return _context2.abrupt("return");
|
||||
case 17:
|
||||
bodys = {
|
||||
homework_ids: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(classroomList.actionTabs.selectArrs),
|
||||
group_ids: targetKeys.length > 0 ? targetKeys.map(function (item) {
|
||||
return item.id;
|
||||
}) : (_classroomList$detail = classroomList.detailCommonHomeworksList) === null || _classroomList$detail === void 0 ? void 0 : _classroomList$detail.course_groups,
|
||||
end_time: moment__WEBPACK_IMPORTED_MODULE_8___default()(formValue.end_time).format('YYYY-MM-DD HH:mm'),
|
||||
publish_time: moment__WEBPACK_IMPORTED_MODULE_8___default()(formValue.publish_time).format('YYYY-MM-DD HH:mm'),
|
||||
difficult_settings: items === null || items === void 0 ? void 0 : items.map(function (ite) {
|
||||
return ite;
|
||||
}),
|
||||
send_type: isredio ? '0' : '1',
|
||||
unified_setting: !targetKeys.length
|
||||
};
|
||||
setisLoading(true);
|
||||
_context2.next = 21;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP)("/api/courses/".concat(params.coursesId, "/homework_commons/publish_with_homework_list_position.json"), {
|
||||
method: 'post',
|
||||
body: _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3___default()({}, bodys)
|
||||
});
|
||||
case 21:
|
||||
res = _context2.sent;
|
||||
if (res.status === 0) {
|
||||
setisLoading(false);
|
||||
(0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .trackEvent */ .L9)(['教学课堂', '图文作业', '立即发布']);
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.success('发布成功');
|
||||
dispatch({
|
||||
type: 'classroomList/setActionTabs',
|
||||
payload: {
|
||||
key: '清除选择数据'
|
||||
}
|
||||
});
|
||||
// dispatch({
|
||||
// type: 'classroomList/getClassroomShixunsList',
|
||||
// payload: { ...classroomList.actionTabs.params },
|
||||
// })
|
||||
props.onCallback && props.onCallback();
|
||||
onRefresh();
|
||||
if (localStorage.getItem('Noviceguide') === '0') {} else {
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/setActionTabs',
|
||||
payload: {
|
||||
key: '底部弹窗',
|
||||
type: 13,
|
||||
text: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("div", {
|
||||
children: "\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~"
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
setisLoading(false);
|
||||
}
|
||||
case 23:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function handleOk() {
|
||||
return _ref3.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var clear = function clear() {
|
||||
setPage(1);
|
||||
setList([]);
|
||||
settargetKeys([]);
|
||||
};
|
||||
var hasMore = count > page * limit;
|
||||
var _useState23 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),
|
||||
_useState24 = _root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5___default()(_useState23, 2),
|
||||
isLoading = _useState24[0],
|
||||
setisLoading = _useState24[1];
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
||||
width: 600,
|
||||
confirmLoading: isLoading,
|
||||
centered: true,
|
||||
title: "\u53D1\u5E03\u4F5C\u4E1A",
|
||||
open: classroomList.actionTabs.key === '立即发布' ? true : false,
|
||||
okText: "\u53D1\u5E03\u4F5C\u4E1A",
|
||||
cancelText: "\u6682\u4E0D\u53D1\u5E03",
|
||||
onOk: handleOk,
|
||||
onCancel: function onCancel() {
|
||||
clear();
|
||||
onRefresh();
|
||||
dispatch({
|
||||
type: 'classroomList/setActionTabs',
|
||||
payload: {}
|
||||
});
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("p", {
|
||||
className: "tc",
|
||||
children: ["\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("br", {}), "\u672C\u64CD\u4F5C\u53EA\u5BF9\"\u672A\u53D1\u5E03\"\u7684\u4F5C\u4E1A\u6709\u6548"]
|
||||
}), list && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
||||
style: {
|
||||
paddingLeft: 0
|
||||
},
|
||||
children: [classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
||||
className: "mr5",
|
||||
children: "\u8BD5\u9898\u53D1\u9001:"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"].Group */ .ZP.Group, {
|
||||
value: isredio,
|
||||
disabled: !((_classroomList$action7 = classroomList.actionTabs) !== null && _classroomList$action7 !== void 0 && (_classroomList$action7 = _classroomList$action7.selectArrsAll) !== null && _classroomList$action7 !== void 0 && (_classroomList$action7 = _classroomList$action7[0]) !== null && _classroomList$action7 !== void 0 && _classroomList$action7.can_publish),
|
||||
onChange: function onChange(e) {
|
||||
setisredio(e.target.value);
|
||||
// getData();
|
||||
// settargetKeys([]);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
|
||||
value: true,
|
||||
children: "\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
|
||||
className: "ml20"
|
||||
// disabled={list.length <= 0}
|
||||
,
|
||||
value: false,
|
||||
children: "\u968F\u673A\u62BD\u53D6"
|
||||
})]
|
||||
})]
|
||||
}), !isredio && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
||||
style: {
|
||||
marginRight: 65
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
|
||||
children: ["\u7B80\u5355\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
|
||||
value: items[0],
|
||||
onChange: function onChange(e) {
|
||||
items[0] = e;
|
||||
setitems(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
|
||||
},
|
||||
min: 0,
|
||||
disabled: !((_classroomList$action8 = classroomList.actionTabs) !== null && _classroomList$action8 !== void 0 && (_classroomList$action8 = _classroomList$action8.selectArrsAll) !== null && _classroomList$action8 !== void 0 && (_classroomList$action8 = _classroomList$action8[0]) !== null && _classroomList$action8 !== void 0 && _classroomList$action8.can_publish),
|
||||
placeholder: "\u6700\u5927".concat((_classroomList$action9 = classroomList.actionTabs) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9.selectArrsAll) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9[0]) === null || _classroomList$action9 === void 0 || (_classroomList$action9 = _classroomList$action9.difficult_count) === null || _classroomList$action9 === void 0 ? void 0 : _classroomList$action9[0]),
|
||||
max: (_classroomList$action10 = classroomList.actionTabs) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10.selectArrsAll) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10[0]) === null || _classroomList$action10 === void 0 || (_classroomList$action10 = _classroomList$action10.difficult_count) === null || _classroomList$action10 === void 0 ? void 0 : _classroomList$action10[0],
|
||||
style: {
|
||||
width: 60
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
|
||||
style: {
|
||||
margin: '0px 40px'
|
||||
},
|
||||
children: ["\u9002\u4E2D\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
|
||||
value: items[1],
|
||||
onChange: function onChange(e) {
|
||||
items[1] = e;
|
||||
setitems(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
|
||||
},
|
||||
min: 0,
|
||||
disabled: !((_classroomList$action11 = classroomList.actionTabs) !== null && _classroomList$action11 !== void 0 && (_classroomList$action11 = _classroomList$action11.selectArrsAll) !== null && _classroomList$action11 !== void 0 && (_classroomList$action11 = _classroomList$action11[0]) !== null && _classroomList$action11 !== void 0 && _classroomList$action11.can_publish),
|
||||
max: (_classroomList$action12 = classroomList.actionTabs) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.selectArrsAll) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12[0]) === null || _classroomList$action12 === void 0 || (_classroomList$action12 = _classroomList$action12.difficult_count) === null || _classroomList$action12 === void 0 ? void 0 : _classroomList$action12[1],
|
||||
placeholder: "\u6700\u5927".concat((_classroomList$action13 = classroomList.actionTabs) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13.selectArrsAll) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13[0]) === null || _classroomList$action13 === void 0 || (_classroomList$action13 = _classroomList$action13.difficult_count) === null || _classroomList$action13 === void 0 ? void 0 : _classroomList$action13[1]),
|
||||
style: {
|
||||
width: 60
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
|
||||
children: ["\u56F0\u96BE\u9898\u6570 ", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z, {
|
||||
value: items[2],
|
||||
onChange: function onChange(e) {
|
||||
items[2] = e;
|
||||
setitems(_root_workspace_ppte5yg23_local_v9_test6_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_4___default()(items));
|
||||
},
|
||||
min: 0,
|
||||
disabled: !((_classroomList$action14 = classroomList.actionTabs) !== null && _classroomList$action14 !== void 0 && (_classroomList$action14 = _classroomList$action14.selectArrsAll) !== null && _classroomList$action14 !== void 0 && (_classroomList$action14 = _classroomList$action14[0]) !== null && _classroomList$action14 !== void 0 && _classroomList$action14.can_publish),
|
||||
placeholder: "\u6700\u5927".concat((_classroomList$action15 = classroomList.actionTabs) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15.selectArrsAll) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15[0]) === null || _classroomList$action15 === void 0 || (_classroomList$action15 = _classroomList$action15.difficult_count) === null || _classroomList$action15 === void 0 ? void 0 : _classroomList$action15[2]),
|
||||
max: (_classroomList$action16 = classroomList.actionTabs) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16.selectArrsAll) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16[0]) === null || _classroomList$action16 === void 0 || (_classroomList$action16 = _classroomList$action16.difficult_count) === null || _classroomList$action16 === void 0 ? void 0 : _classroomList$action16[2],
|
||||
style: {
|
||||
width: 60
|
||||
}
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
className: "mt30",
|
||||
align: "middle",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
name: "publish_time",
|
||||
label: "\u53D1\u5E03\u65F6\u95F4",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__["default"], {
|
||||
style: {
|
||||
width: 170,
|
||||
marginRight: '25px'
|
||||
},
|
||||
disabledDate: function disabledDate(current) {
|
||||
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledDate */ .Q8)(current, courseEndTime);
|
||||
},
|
||||
disabledTime: function disabledTime(current) {
|
||||
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledTime */ .d0)(current);
|
||||
},
|
||||
placeholder: '请选择发布时间',
|
||||
showTime: {
|
||||
format: 'HH:mm',
|
||||
defaultValue: moment__WEBPACK_IMPORTED_MODULE_8___default()((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .HalfPastOne */ .U6)(), 'HH:mm')
|
||||
},
|
||||
format: "YYYY-MM-DD HH:mm",
|
||||
allowClear: false
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_23__/* ["default"] */ .Z, {
|
||||
className: "ml20",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
name: "end_time",
|
||||
label: "\u622A\u6B62\u65F6\u95F4",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_24__["default"], {
|
||||
style: {
|
||||
width: 170
|
||||
},
|
||||
placeholder: '请选择截止时间',
|
||||
showTime: {
|
||||
format: 'HH:mm',
|
||||
defaultValue: moment__WEBPACK_IMPORTED_MODULE_8___default()((0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .HalfPastOne */ .U6)(), 'HH:mm')
|
||||
},
|
||||
disabledDate: function disabledDate(current) {
|
||||
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledDate */ .Q8)(current, courseEndTime, form.getFieldValue('publish_time'));
|
||||
},
|
||||
disabledTime: function disabledTime(current) {
|
||||
return (0,_pages_Classrooms_Lists_ShixunHomeworks_Detail_components_ConfigWorks_Releasesetting__WEBPACK_IMPORTED_MODULE_15__/* .disabledTime */ .d0)(current, form.getFieldValue('publish_time'));
|
||||
},
|
||||
format: "YYYY-MM-DD HH:mm",
|
||||
allowClear: false
|
||||
})
|
||||
})
|
||||
})]
|
||||
}), classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
||||
className: "mr5",
|
||||
children: "\u53D1\u5E03\u8BBE\u7F6E:"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"].Group */ .ZP.Group, {
|
||||
value: radiovalue,
|
||||
onChange: function onChange(e) {
|
||||
setradiovalue(e.target.value);
|
||||
// getData();
|
||||
settargetKeys([]);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
|
||||
value: true,
|
||||
disabled: !classroomList.actionTabs.manage_all_group,
|
||||
children: "\u7EDF\u4E00\u53D1\u5E03"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP, {
|
||||
className: "ml20",
|
||||
disabled: list.length <= 0,
|
||||
value: false,
|
||||
children: "\u5206\u73ED\u53D1\u5E03"
|
||||
})]
|
||||
})]
|
||||
}), list.length <= 0 && classroomList.actionTabs.type === 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
||||
style: {
|
||||
marginLeft: '65px',
|
||||
color: 'rgba(0, 0, 0, 0.25)'
|
||||
},
|
||||
children: "\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\""
|
||||
})]
|
||||
}), (classroomList.actionTabs.type === 1 || !radiovalue) && list.length > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginBottom: '10px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
|
||||
style: {
|
||||
flex: 1
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(antd__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z, {
|
||||
checked: targetKeys.length === list.length,
|
||||
onChange: function onChange(e) {
|
||||
if (targetKeys.length === list.length) {
|
||||
settargetKeys([]);
|
||||
} else {
|
||||
settargetKeys(list.filter(function (item) {
|
||||
return !item.is_published;
|
||||
}));
|
||||
}
|
||||
},
|
||||
children: "\u5168\u9009"
|
||||
}), ' ']
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)("span", {
|
||||
style: {
|
||||
width: 16
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsxs)("span", {
|
||||
style: {
|
||||
flex: 1
|
||||
},
|
||||
children: ["\u5DF2\u9009\u62E9", targetKeys.length || 0, "\u4E2A\u5206\u73ED"]
|
||||
})]
|
||||
}), (classroomList.actionTabs.type === 1 || !radiovalue) && list.length > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_16__.jsx)(_ShixunHomeworks_components_TrfList__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
data: list,
|
||||
selectedRowKeys: targetKeys,
|
||||
setSelectedRowKeys: settargetKeys
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_12__.connect)(function (_ref4) {
|
||||
var classroomList = _ref4.classroomList;
|
||||
return {
|
||||
classroomList: classroomList
|
||||
};
|
||||
})(PublishShixun));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,651 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30736],{
|
||||
|
||||
/***/ 3148:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88522:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/auto-complete/index.js ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Children/toArray */ 75440);
|
||||
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
|
||||
/* harmony import */ var _util_reactNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/reactNode */ 92343);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ 57809);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const {
|
||||
Option
|
||||
} = _select__WEBPACK_IMPORTED_MODULE_3__["default"];
|
||||
function isSelectOptionOrSelectOptGroup(child) {
|
||||
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
|
||||
}
|
||||
const AutoComplete = (props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
popupClassName,
|
||||
dropdownClassName,
|
||||
children,
|
||||
dataSource
|
||||
} = props;
|
||||
const childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
|
||||
// ============================= Input =============================
|
||||
let customizeInput;
|
||||
if (childNodes.length === 1 && (0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
||||
[customizeInput] = childNodes;
|
||||
}
|
||||
const getInputElement = customizeInput ? () => customizeInput : undefined;
|
||||
// ============================ Options ============================
|
||||
let optionChildren;
|
||||
// [Legacy] convert `children` or `dataSource` into option children
|
||||
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
||||
optionChildren = children;
|
||||
} else {
|
||||
optionChildren = dataSource ? dataSource.map(item => {
|
||||
if ((0,_util_reactNode__WEBPACK_IMPORTED_MODULE_4__/* .isValidElement */ .l$)(item)) {
|
||||
return item;
|
||||
}
|
||||
switch (typeof item) {
|
||||
case 'string':
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
|
||||
key: item,
|
||||
value: item
|
||||
}, item);
|
||||
case 'object':
|
||||
{
|
||||
const {
|
||||
value: optionValue
|
||||
} = item;
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(Option, {
|
||||
key: optionValue,
|
||||
value: optionValue
|
||||
}, item.text);
|
||||
}
|
||||
default:
|
||||
false ? 0 : void 0;
|
||||
return undefined;
|
||||
}
|
||||
}) : [];
|
||||
}
|
||||
if (false) {}
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_5__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_select__WEBPACK_IMPORTED_MODULE_3__["default"], Object.assign({
|
||||
ref: ref,
|
||||
suffixIcon: null
|
||||
}, (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props, ['dataSource', 'dropdownClassName']), {
|
||||
prefixCls: prefixCls,
|
||||
popupClassName: popupClassName || dropdownClassName,
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(`${prefixCls}-auto-complete`, className),
|
||||
mode: _select__WEBPACK_IMPORTED_MODULE_3__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE
|
||||
}, {
|
||||
// Internal api
|
||||
getInputElement
|
||||
}), optionChildren);
|
||||
};
|
||||
const RefAutoComplete = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(AutoComplete);
|
||||
// We don't care debug panel
|
||||
/* istanbul ignore next */
|
||||
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(RefAutoComplete);
|
||||
RefAutoComplete.Option = Option;
|
||||
RefAutoComplete._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
|
||||
if (false) {}
|
||||
/* harmony default export */ __webpack_exports__.Z = (RefAutoComplete);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66104:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ breadcrumb; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(47413);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
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_icons@5.4.0@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(46952);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const BreadcrumbSeparator = _ref => {
|
||||
let {
|
||||
children
|
||||
} = _ref;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb');
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
|
||||
className: `${prefixCls}-separator`,
|
||||
"aria-hidden": "true"
|
||||
}, children === '' ? children : children || '/');
|
||||
};
|
||||
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
||||
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
function getBreadcrumbName(route, params) {
|
||||
if (route.title === undefined || route.title === null) {
|
||||
return null;
|
||||
}
|
||||
const paramsKeys = Object.keys(params).join('|');
|
||||
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
|
||||
}
|
||||
function renderItem(prefixCls, item, children, href) {
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
const {
|
||||
className,
|
||||
onClick
|
||||
} = item,
|
||||
restItem = __rest(item, ["className", "onClick"]);
|
||||
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
|
||||
data: true,
|
||||
aria: true
|
||||
})), {
|
||||
onClick
|
||||
});
|
||||
if (href !== undefined) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
|
||||
href: href
|
||||
}), children);
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
|
||||
}), children);
|
||||
}
|
||||
function useItemRender(prefixCls, itemRender) {
|
||||
const mergedItemRender = (item, params, routes, path, href) => {
|
||||
if (itemRender) {
|
||||
return itemRender(item, params, routes, path);
|
||||
}
|
||||
const name = getBreadcrumbName(item, params);
|
||||
return renderItem(prefixCls, item, name, href);
|
||||
};
|
||||
return mergedItemRender;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
|
||||
"use client";
|
||||
|
||||
var BreadcrumbItem_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 InternalBreadcrumbItem = props => {
|
||||
const {
|
||||
prefixCls,
|
||||
separator = '/',
|
||||
children,
|
||||
menu,
|
||||
overlay,
|
||||
dropdownProps,
|
||||
href
|
||||
} = props;
|
||||
// Warning for deprecated usage
|
||||
if (false) {}
|
||||
/** If overlay is have Wrap a Dropdown */
|
||||
const renderBreadcrumbNode = breadcrumbItem => {
|
||||
if (menu || overlay) {
|
||||
const mergeDropDownProps = Object.assign({}, dropdownProps);
|
||||
if (menu) {
|
||||
const _a = menu || {},
|
||||
{
|
||||
items
|
||||
} = _a,
|
||||
menuProps = BreadcrumbItem_rest(_a, ["items"]);
|
||||
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
||||
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
|
||||
var {
|
||||
key,
|
||||
title,
|
||||
label,
|
||||
path
|
||||
} = _a,
|
||||
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
|
||||
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
||||
if (path) {
|
||||
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
|
||||
href: `${href}${path}`
|
||||
}, mergedLabel);
|
||||
}
|
||||
return Object.assign(Object.assign({}, itemProps), {
|
||||
key: key !== null && key !== void 0 ? key : index,
|
||||
label: mergedLabel
|
||||
});
|
||||
})
|
||||
});
|
||||
} else if (overlay) {
|
||||
mergeDropDownProps.overlay = overlay;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
|
||||
placement: "bottom"
|
||||
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-overlay-link`
|
||||
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
|
||||
}
|
||||
return breadcrumbItem;
|
||||
};
|
||||
// wrap to dropDown
|
||||
const link = renderBreadcrumbNode(children);
|
||||
if (link !== undefined && link !== null) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const BreadcrumbItem = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
children,
|
||||
href
|
||||
} = props,
|
||||
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
|
||||
prefixCls: prefixCls
|
||||
}), renderItem(prefixCls, restProps, children, href));
|
||||
};
|
||||
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
|
||||
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
|
||||
// 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/breadcrumb/style/index.js
|
||||
|
||||
|
||||
const genBreadcrumbStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
iconCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
color: token.itemColor,
|
||||
fontSize: token.fontSize,
|
||||
[iconCls]: {
|
||||
fontSize: token.iconFontSize
|
||||
},
|
||||
ol: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
listStyle: 'none'
|
||||
},
|
||||
a: Object.assign({
|
||||
color: token.linkColor,
|
||||
transition: `color ${token.motionDurationMid}`,
|
||||
padding: `0 ${token.paddingXXS}px`,
|
||||
borderRadius: token.borderRadiusSM,
|
||||
height: token.lineHeight * token.fontSize,
|
||||
display: 'inline-block',
|
||||
marginInline: -token.marginXXS,
|
||||
'&:hover': {
|
||||
color: token.linkHoverColor,
|
||||
backgroundColor: token.colorBgTextHover
|
||||
}
|
||||
}, (0,style/* genFocusStyle */.Qy)(token)),
|
||||
[`li:last-child`]: {
|
||||
color: token.lastItemColor
|
||||
},
|
||||
[`${componentCls}-separator`]: {
|
||||
marginInline: token.separatorMargin,
|
||||
color: token.separatorColor
|
||||
},
|
||||
[`${componentCls}-link`]: {
|
||||
[`
|
||||
> ${iconCls} + span,
|
||||
> ${iconCls} + a
|
||||
`]: {
|
||||
marginInlineStart: token.marginXXS
|
||||
}
|
||||
},
|
||||
[`${componentCls}-overlay-link`]: {
|
||||
borderRadius: token.borderRadiusSM,
|
||||
height: token.lineHeight * token.fontSize,
|
||||
display: 'inline-block',
|
||||
padding: `0 ${token.paddingXXS}px`,
|
||||
marginInline: -token.marginXXS,
|
||||
[`> ${iconCls}`]: {
|
||||
marginInlineStart: token.marginXXS,
|
||||
fontSize: token.fontSizeIcon
|
||||
},
|
||||
'&:hover': {
|
||||
color: token.linkHoverColor,
|
||||
backgroundColor: token.colorBgTextHover,
|
||||
a: {
|
||||
color: token.linkHoverColor
|
||||
}
|
||||
},
|
||||
a: {
|
||||
'&:hover': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
// rtl style
|
||||
[`&${token.componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
|
||||
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genBreadcrumbStyle(BreadcrumbToken)];
|
||||
}, token => ({
|
||||
itemColor: token.colorTextDescription,
|
||||
lastItemColor: token.colorText,
|
||||
iconFontSize: token.fontSize,
|
||||
linkColor: token.colorTextDescription,
|
||||
linkHoverColor: token.colorText,
|
||||
separatorColor: token.colorTextDescription,
|
||||
separatorMargin: token.marginXS
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
|
||||
var useItems_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;
|
||||
};
|
||||
|
||||
function route2item(route) {
|
||||
const {
|
||||
breadcrumbName,
|
||||
children
|
||||
} = route,
|
||||
rest = useItems_rest(route, ["breadcrumbName", "children"]);
|
||||
const clone = Object.assign({
|
||||
title: breadcrumbName
|
||||
}, rest);
|
||||
if (children) {
|
||||
clone.menu = {
|
||||
items: children.map(_a => {
|
||||
var {
|
||||
breadcrumbName: itemBreadcrumbName
|
||||
} = _a,
|
||||
itemProps = useItems_rest(_a, ["breadcrumbName"]);
|
||||
return Object.assign(Object.assign({}, itemProps), {
|
||||
title: itemBreadcrumbName
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
function useItems(items, routes) {
|
||||
return (0,_react_17_0_2_react.useMemo)(() => {
|
||||
if (items) {
|
||||
return items;
|
||||
}
|
||||
if (routes) {
|
||||
return routes.map(route2item);
|
||||
}
|
||||
return null;
|
||||
}, [items, routes]);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
|
||||
"use client";
|
||||
|
||||
var Breadcrumb_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 getPath = (params, path) => {
|
||||
if (path === undefined) {
|
||||
return path;
|
||||
}
|
||||
let mergedPath = (path || '').replace(/^\//, '');
|
||||
Object.keys(params).forEach(key => {
|
||||
mergedPath = mergedPath.replace(`:${key}`, params[key]);
|
||||
});
|
||||
return mergedPath;
|
||||
};
|
||||
const Breadcrumb = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
separator = '/',
|
||||
style,
|
||||
className,
|
||||
rootClassName,
|
||||
routes: legacyRoutes,
|
||||
items,
|
||||
children,
|
||||
itemRender,
|
||||
params = {}
|
||||
} = props,
|
||||
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
breadcrumb
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
let crumbs;
|
||||
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
|
||||
const mergedItems = useItems(items, legacyRoutes);
|
||||
if (false) {}
|
||||
const mergedItemRender = useItemRender(prefixCls, itemRender);
|
||||
if (mergedItems && mergedItems.length > 0) {
|
||||
// generated by route
|
||||
const paths = [];
|
||||
const itemRenderRoutes = items || legacyRoutes;
|
||||
crumbs = mergedItems.map((item, index) => {
|
||||
const {
|
||||
path,
|
||||
key,
|
||||
type,
|
||||
menu,
|
||||
overlay,
|
||||
onClick,
|
||||
className: itemClassName,
|
||||
separator: itemSeparator,
|
||||
dropdownProps
|
||||
} = item;
|
||||
const mergedPath = getPath(params, path);
|
||||
if (mergedPath !== undefined) {
|
||||
paths.push(mergedPath);
|
||||
}
|
||||
const mergedKey = key !== null && key !== void 0 ? key : index;
|
||||
if (type === 'separator') {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
|
||||
key: mergedKey
|
||||
}, itemSeparator);
|
||||
}
|
||||
const itemProps = {};
|
||||
const isLastItem = index === mergedItems.length - 1;
|
||||
if (menu) {
|
||||
itemProps.menu = menu;
|
||||
} else if (overlay) {
|
||||
itemProps.overlay = overlay;
|
||||
}
|
||||
let {
|
||||
href
|
||||
} = item;
|
||||
if (paths.length && mergedPath !== undefined) {
|
||||
href = `#/${paths.join('/')}`;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
|
||||
key: mergedKey
|
||||
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
|
||||
data: true,
|
||||
aria: true
|
||||
}), {
|
||||
className: itemClassName,
|
||||
dropdownProps: dropdownProps,
|
||||
href: href,
|
||||
separator: isLastItem ? '' : separator,
|
||||
onClick: onClick,
|
||||
prefixCls: prefixCls
|
||||
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
|
||||
});
|
||||
} else if (children) {
|
||||
const childrenLength = (0,toArray/* default */.Z)(children).length;
|
||||
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
|
||||
if (!element) {
|
||||
return element;
|
||||
}
|
||||
// =================== Warning =====================
|
||||
if (false) {}
|
||||
false ? 0 : void 0;
|
||||
const isLastItem = index === childrenLength - 1;
|
||||
return (0,reactNode/* cloneElement */.Tm)(element, {
|
||||
separator: isLastItem ? '' : separator,
|
||||
key: index
|
||||
});
|
||||
});
|
||||
}
|
||||
const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName, hashId);
|
||||
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
|
||||
className: breadcrumbClassName,
|
||||
style: mergedStyle
|
||||
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
|
||||
};
|
||||
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
|
||||
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
|
||||
if (false) {}
|
||||
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,50 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[703,49127,97986,25827,12154,84742],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[588,49127,97986,14692,13715,84567,12154,20357,84742],{
|
||||
|
||||
/***/ 80117:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
|
||||
\*************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 76558:
|
||||
/*!*************************************************************************************************************!*\
|
||||
@ -1,5 +1,50 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[32497,10828,54146,95507,11525,41672,1911,37637,38007,25209],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[6146,74862,54146,95507,11525,41672,1911,37637,38007,25209],{
|
||||
|
||||
/***/ 80117:
|
||||
/*!*************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules ***!
|
||||
\*************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CloseCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.6@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(33614);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseCircleOutlined = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" } }] }, "name": "close-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(1393);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.4.0@@ant-design/icons/es/icons/CloseCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3148:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85080,31173,11947,79503,50546,28042,33553,1911,37637,25209],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85080,84483,11947,79503,50546,28042,33553,1911,37637,25209],{
|
||||
|
||||
/***/ 76897:
|
||||
/*!*****************************************************************************************************!*\
|
||||
|
Before Width: | Height: | Size: 8.8 KiB |
@ -0,0 +1,87 @@
|
||||
var lockEvent = false;
|
||||
; (function (open) {
|
||||
XMLHttpRequest.prototype.open = function (method, url, async, user, password) {
|
||||
this.addEventListener("load", function () {
|
||||
if (method === "PUT") {
|
||||
// if(!lockEvent)
|
||||
try {
|
||||
if(url.indexOf("/api/workspaces/default") > -1 || url.indexOf("lab/api/workspaces/auto-M") > -1){
|
||||
return
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
};
|
||||
window.top.postMessage('jupytermessage', '*');
|
||||
}
|
||||
});
|
||||
open.call(this, method, url, async, user, password);
|
||||
};
|
||||
})(XMLHttpRequest.prototype.open);
|
||||
|
||||
(function (fetch) {
|
||||
window.fetch = function (url, options) {
|
||||
options = options || {}
|
||||
return fetch.apply(this, arguments).then(function (response) {
|
||||
try {
|
||||
if (options.method === "PUT" || (typeof url === "object" && url.method === "PUT")) {
|
||||
// if(!lockEvent)
|
||||
try {
|
||||
if(url.url.indexOf("/api/workspaces/default") > -1 || url.url.indexOf("lab/api/workspaces/auto-M") > -1){
|
||||
return
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
};
|
||||
window.top.postMessage('jupytermessage', '*');
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
return response;
|
||||
});
|
||||
};
|
||||
|
||||
})(window.fetch);
|
||||
|
||||
function saveCode() {
|
||||
try {
|
||||
var elements = document.querySelectorAll('[data-command="docmanager:save"]');
|
||||
|
||||
elements.forEach(function (element) {
|
||||
element.click();
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
document.querySelector("[data-jupyter-action='jupyter-notebook:save-notebook']").click();
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
var saveEvent = new KeyboardEvent('keydown', {
|
||||
key: 's',
|
||||
ctrlKey: true
|
||||
});
|
||||
|
||||
document.dispatchEvent(saveEvent);
|
||||
}
|
||||
|
||||
function onReceiveMessage(e) {
|
||||
try {
|
||||
if (e.data === 'saveCode') {
|
||||
lockEvent = true;
|
||||
saveCode()
|
||||
setTimeout(() => {
|
||||
lockEvent = false
|
||||
}, 1000)
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('error:', error, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('message', onReceiveMessage);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue