diff --git a/20105.fb7073b4.async.js b/20105.ccd37908.async.js similarity index 99% rename from 20105.fb7073b4.async.js rename to 20105.ccd37908.async.js index ff115d6390..b41c2fb8de 100644 --- a/20105.fb7073b4.async.js +++ b/20105.ccd37908.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[20105,28518,52970,39727,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[20105,28518,52970,39727,26577,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ /***/ 65363: /*!*************************************************************************************************************!*\ diff --git a/24317.50b1a10c.async.js b/24317.50b1a10c.async.js deleted file mode 100644 index 594634529b..0000000000 --- a/24317.50b1a10c.async.js +++ /dev/null @@ -1,1964 +0,0 @@ -"use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[24317,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ - -/***/ 65363: -/*!*************************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.6.1@@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.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@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); - -/***/ }), - -/***/ 87169: -/*!*******************************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.6.1@@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.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@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); - -/***/ }), - -/***/ 15277: -/*!*****************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! - \*****************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_EyeOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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/EyeOutlined.js -// This icon file is generated automatically. -var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" }; -/* harmony default export */ var asn_EyeOutlined = (EyeOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_EyeOutlined - })); -}; - -/** */ -var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined); -if (false) {} -/* harmony default export */ var icons_EyeOutlined = (RefIcon); - -/***/ }), - -/***/ 8657: -/*!************************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules ***! - \************************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_FolderOpenOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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/FolderOpenOutlined.js -// This icon file is generated automatically. -var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, "name": "folder-open", "theme": "outlined" }; -/* harmony default export */ var asn_FolderOpenOutlined = (FolderOpenOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var FolderOpenOutlined_FolderOpenOutlined = function FolderOpenOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_FolderOpenOutlined - })); -}; - -/** */ -var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOpenOutlined_FolderOpenOutlined); -if (false) {} -/* harmony default export */ var icons_FolderOpenOutlined = (RefIcon); - -/***/ }), - -/***/ 10906: -/*!******************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js + 1 modules ***! - \******************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_FormOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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/FormOutlined.js -// This icon file is generated automatically. -var FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" }; -/* harmony default export */ var asn_FormOutlined = (FormOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var FormOutlined_FormOutlined = function FormOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_FormOutlined - })); -}; - -/** */ -var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FormOutlined_FormOutlined); -if (false) {} -/* harmony default export */ var icons_FormOutlined = (RefIcon); - -/***/ }), - -/***/ 24905: -/*!************************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ es_checkbox; } -}); - -// 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-checkbox@3.1.0@rc-checkbox/es/index.js -var es = __webpack_require__(5630); -// 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/config-provider/context.js -var config_provider_context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js -var DisabledContext = __webpack_require__(1684); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js -var context = __webpack_require__(32441); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js - -const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null); -/* harmony default export */ var checkbox_GroupContext = (GroupContext); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js -var checkbox_style = __webpack_require__(98447); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules -var wave = __webpack_require__(14088); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js -var wave_interface = __webpack_require__(4572); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - - -const InternalCheckbox = (props, ref) => { - var _a; - const { - prefixCls: customizePrefixCls, - className, - rootClassName, - children, - indeterminate = false, - style, - onMouseEnter, - onMouseLeave, - skipGroup = false, - disabled - } = props, - restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]); - const { - getPrefixCls, - direction, - checkbox - } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); - const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext); - const { - isFormItemInput - } = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM); - const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); - const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled; - const prevValue = _react_17_0_2_react.useRef(restProps.value); - _react_17_0_2_react.useEffect(() => { - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); - false ? 0 : void 0; - }, []); - _react_17_0_2_react.useEffect(() => { - if (skipGroup) { - return; - } - if (restProps.value !== prevValue.current) { - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current); - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); - prevValue.current = restProps.value; - } - return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value); - }, [restProps.value]); - const prefixCls = getPrefixCls('checkbox', customizePrefixCls); - const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); - const checkboxProps = Object.assign({}, restProps); - if (checkboxGroup && !skipGroup) { - checkboxProps.onChange = function () { - if (restProps.onChange) { - restProps.onChange.apply(restProps, arguments); - } - if (checkboxGroup.toggleOption) { - checkboxGroup.toggleOption({ - label: children, - value: restProps.value - }); - } - }; - checkboxProps.name = checkboxGroup.name; - checkboxProps.checked = checkboxGroup.value.includes(restProps.value); - } - const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, { - [`${prefixCls}-rtl`]: direction === 'rtl', - [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, - [`${prefixCls}-wrapper-disabled`]: mergedDisabled, - [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput - }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId); - const checkboxClass = _classnames_2_5_1_classnames_default()({ - [`${prefixCls}-indeterminate`]: indeterminate - }, wave_interface/* TARGET_CLS */.A, hashId); - const ariaChecked = indeterminate ? 'mixed' : undefined; - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { - component: "Checkbox", - disabled: mergedDisabled - }, /*#__PURE__*/_react_17_0_2_react.createElement("label", { - className: classString, - style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style), - onMouseEnter: onMouseEnter, - onMouseLeave: onMouseLeave - }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ - "aria-checked": ariaChecked - }, checkboxProps, { - prefixCls: prefixCls, - className: checkboxClass, - disabled: mergedDisabled, - ref: ref - })), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)))); -}; -const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox); -if (false) {} -/* harmony default export */ var checkbox_Checkbox = (Checkbox); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(27603); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/omit.js -var omit = __webpack_require__(2738); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js -"use client"; - - -var Group_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 InternalGroup = (props, ref) => { - const { - defaultValue, - children, - options = [], - prefixCls: customizePrefixCls, - className, - rootClassName, - style, - onChange - } = props, - restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]); - const { - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); - const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []); - const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]); - _react_17_0_2_react.useEffect(() => { - if ('value' in restProps) { - setValue(restProps.value || []); - } - }, [restProps.value]); - const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => { - if (typeof option === 'string' || typeof option === 'number') { - return { - label: option, - value: option - }; - } - return option; - }), [options]); - const cancelValue = val => { - setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); - }; - const registerValue = val => { - setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val])); - }; - const toggleOption = option => { - const optionIndex = value.indexOf(option.value); - const newValue = (0,toConsumableArray/* default */.Z)(value); - if (optionIndex === -1) { - newValue.push(option.value); - } else { - newValue.splice(optionIndex, 1); - } - if (!('value' in restProps)) { - setValue(newValue); - } - onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => { - const indexA = memoOptions.findIndex(opt => opt.value === a); - const indexB = memoOptions.findIndex(opt => opt.value === b); - return indexA - indexB; - })); - }; - const prefixCls = getPrefixCls('checkbox', customizePrefixCls); - const groupPrefixCls = `${prefixCls}-group`; - const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); - const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']); - const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, { - prefixCls: prefixCls, - key: option.value.toString(), - disabled: 'disabled' in option ? option.disabled : restProps.disabled, - value: option.value, - checked: value.includes(option.value), - onChange: option.onChange, - className: `${groupPrefixCls}-item`, - style: option.style, - title: option.title - }, option.label)) : children; - // eslint-disable-next-line react/jsx-no-constructed-context-values - const context = { - toggleOption, - value, - disabled: restProps.disabled, - name: restProps.name, - // https://github.com/ant-design/ant-design/issues/16376 - registerValue, - cancelValue - }; - const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, { - [`${groupPrefixCls}-rtl`]: direction === 'rtl' - }, className, rootClassName, hashId); - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ - className: classString, - style: style - }, domProps, { - ref: ref - }), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, { - value: context - }, childrenNode))); -}; - -const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup); -/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup)); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js -"use client"; - - - -const es_checkbox_Checkbox = checkbox_Checkbox; -es_checkbox_Checkbox.Group = Group; -es_checkbox_Checkbox.__ANT_CHECKBOX = true; -if (false) {} -/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox); - -/***/ }), - -/***/ 38854: -/*!************************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ es_dropdown; } -}); - -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js -var dropdown = __webpack_require__(91857); -// 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/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules -var EllipsisOutlined = __webpack_require__(18785); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js -var es_button = __webpack_require__(3113); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js -var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules -var space = __webpack_require__(81327); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js -var Compact = __webpack_require__(33234); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules -var style = __webpack_require__(47211); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - -const DropdownButton = props => { - const { - getPopupContainer: getContextPopupContainer, - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const { - prefixCls: customizePrefixCls, - type = 'default', - danger, - disabled, - loading, - onClick, - htmlType, - children, - className, - menu, - arrow, - autoFocus, - overlay, - trigger, - align, - open, - onOpenChange, - placement, - getPopupContainer, - href, - icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null), - title, - buttonsRender = buttons => buttons, - mouseEnterDelay, - mouseLeaveDelay, - overlayClassName, - overlayStyle, - destroyPopupOnHide, - dropdownRender - } = props, - restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]); - const prefixCls = getPrefixCls('dropdown', customizePrefixCls); - const buttonPrefixCls = `${prefixCls}-button`; - const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls); - const dropdownProps = { - menu, - arrow, - autoFocus, - align, - disabled, - trigger: disabled ? [] : trigger, - onOpenChange, - getPopupContainer: getPopupContainer || getContextPopupContainer, - mouseEnterDelay, - mouseLeaveDelay, - overlayClassName, - overlayStyle, - destroyPopupOnHide, - dropdownRender - }; - const { - compactSize, - compactItemClassnames - } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); - const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId); - if ('overlay' in props) { - dropdownProps.overlay = overlay; - } - if ('open' in props) { - dropdownProps.open = open; - } - if ('placement' in props) { - dropdownProps.placement = placement; - } else { - dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight'; - } - const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { - type: type, - danger: danger, - disabled: disabled, - loading: loading, - onClick: onClick, - htmlType: htmlType, - href: href, - title: title - }, children); - const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { - type: type, - danger: danger, - icon: icon - }); - const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]); - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({ - className: classes, - size: compactSize, - block: true - }, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender))); -}; -DropdownButton.__ANT_BUTTON = true; -/* harmony default export */ var dropdown_button = (DropdownButton); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js -"use client"; - - - -const Dropdown = dropdown/* default */.Z; -Dropdown.Button = dropdown_button; -/* harmony default export */ var es_dropdown = (Dropdown); - -/***/ }), - -/***/ 10249: -/*!*********************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ input; } -}); - -// 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/_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/config-provider/context.js -var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js -var form_context = __webpack_require__(32441); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js -var style = __webpack_require__(9937); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js -"use client"; - - - - - - - - -const Group = props => { - const { - getPrefixCls, - direction - } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); - const { - prefixCls: customizePrefixCls, - className - } = props; - const prefixCls = getPrefixCls('input-group', customizePrefixCls); - const inputPrefixCls = getPrefixCls('input'); - const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls); - const cls = _classnames_2_5_1_classnames_default()(prefixCls, { - [`${prefixCls}-lg`]: props.size === 'large', - [`${prefixCls}-sm`]: props.size === 'small', - [`${prefixCls}-compact`]: props.compact, - [`${prefixCls}-rtl`]: direction === 'rtl' - }, hashId, className); - const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM); - const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), { - isFormItemInput: false - }), [formItemContext]); - if (false) {} - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", { - className: cls, - style: props.style, - onMouseEnter: props.onMouseEnter, - onMouseLeave: props.onMouseLeave, - onFocus: props.onFocus, - onBlur: props.onBlur - }, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, { - value: groupFormItemContext - }, props.children))); -}; -/* harmony default export */ var input_Group = (Group); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules -var Input = __webpack_require__(9432); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js -// This icon file is generated automatically. -var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" }; -/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeInvisibleOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_EyeInvisibleOutlined - })); -}; - -/** */ -var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined); -if (false) {} -/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules -var EyeOutlined = __webpack_require__(15277); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/omit.js -var omit = __webpack_require__(2738); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/ref.js -var es_ref = __webpack_require__(8654); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js -var useRemovePasswordTimeout = __webpack_require__(59412); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - -const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null); -const ActionMap = { - click: 'onClick', - hover: 'onMouseOver' -}; -const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - const { - visibilityToggle = true - } = props; - const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined; - const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false); - const inputRef = (0,_react_17_0_2_react.useRef)(null); - _react_17_0_2_react.useEffect(() => { - if (visibilityControlled) { - setVisible(visibilityToggle.visible); - } - }, [visibilityControlled, visibilityToggle]); - // Remove Password value - const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); - const onVisibleChange = () => { - const { - disabled - } = props; - if (disabled) { - return; - } - if (visible) { - removePasswordTimeout(); - } - setVisible(prevState => { - var _a; - const newState = !prevState; - if (typeof visibilityToggle === 'object') { - (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); - } - return newState; - }); - }; - const getIcon = prefixCls => { - const { - action = 'click', - iconRender = defaultIconRender - } = props; - const iconTrigger = ActionMap[action] || ''; - const icon = iconRender(visible); - const iconProps = { - [iconTrigger]: onVisibleChange, - className: `${prefixCls}-icon`, - key: 'passwordIcon', - onMouseDown: e => { - // Prevent focused state lost - // https://github.com/ant-design/ant-design/issues/15173 - e.preventDefault(); - }, - onMouseUp: e => { - // Prevent caret position change - // https://github.com/ant-design/ant-design/issues/23524 - e.preventDefault(); - } - }; - return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps); - }; - const { - className, - prefixCls: customizePrefixCls, - inputPrefixCls: customizeInputPrefixCls, - size - } = props, - restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); - const { - getPrefixCls - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); - const prefixCls = getPrefixCls('input-password', customizePrefixCls); - const suffixIcon = visibilityToggle && getIcon(prefixCls); - const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, { - [`${prefixCls}-${size}`]: !!size - }); - const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), { - type: visible ? 'text' : 'password', - className: inputClassName, - prefixCls: inputPrefixCls, - suffix: suffixIcon - }); - if (size) { - omittedProps.size = size; - } - return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ - ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef) - }, omittedProps)); -}); -if (false) {} -/* harmony default export */ var input_Password = (Password); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules -var SearchOutlined = __webpack_require__(47472); -// 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/button/index.js -var es_button = __webpack_require__(3113); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js -var useSize = __webpack_require__(19716); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js -var Compact = __webpack_require__(33234); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js -"use client"; - -var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - const { - prefixCls: customizePrefixCls, - inputPrefixCls: customizeInputPrefixCls, - className, - size: customizeSize, - suffix, - enterButton = false, - addonAfter, - loading, - disabled, - onSearch: customOnSearch, - onChange: customOnChange, - onCompositionStart, - onCompositionEnd - } = props, - restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); - const { - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const composedRef = _react_17_0_2_react.useRef(false); - const prefixCls = getPrefixCls('input-search', customizePrefixCls); - const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); - const { - compactSize - } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); - const size = (0,useSize/* default */.Z)(ctx => { - var _a; - return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; - }); - const inputRef = _react_17_0_2_react.useRef(null); - const onChange = e => { - if (e && e.target && e.type === 'click' && customOnSearch) { - customOnSearch(e.target.value, e, { - source: 'clear' - }); - } - if (customOnChange) { - customOnChange(e); - } - }; - const onMouseDown = e => { - var _a; - if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { - e.preventDefault(); - } - }; - const onSearch = e => { - var _a, _b; - if (customOnSearch) { - customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, { - source: 'input' - }); - } - }; - const onPressEnter = e => { - if (composedRef.current || loading) { - return; - } - onSearch(e); - }; - const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null; - const btnClassName = `${prefixCls}-button`; - let button; - const enterButtonAsElement = enterButton || {}; - const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; - if (isAntdButton || enterButtonAsElement.type === 'button') { - button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({ - onMouseDown, - onClick: e => { - var _a, _b; - (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e); - onSearch(e); - }, - key: 'enterButton' - }, isAntdButton ? { - className: btnClassName, - size - } : {})); - } else { - button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { - className: btnClassName, - type: enterButton ? 'primary' : undefined, - size: size, - disabled: disabled, - key: "enterButton", - onMouseDown: onMouseDown, - onClick: onSearch, - loading: loading, - icon: searchIcon - }, enterButton); - } - if (addonAfter) { - button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, { - key: 'addonAfter' - })]; - } - const cls = _classnames_2_5_1_classnames_default()(prefixCls, { - [`${prefixCls}-rtl`]: direction === 'rtl', - [`${prefixCls}-${size}`]: !!size, - [`${prefixCls}-with-button`]: !!enterButton - }, className); - const handleOnCompositionStart = e => { - composedRef.current = true; - onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e); - }; - const handleOnCompositionEnd = e => { - composedRef.current = false; - onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e); - }; - return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ - ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref), - onPressEnter: onPressEnter - }, restProps, { - size: size, - onCompositionStart: handleOnCompositionStart, - onCompositionEnd: handleOnCompositionEnd, - prefixCls: inputPrefixCls, - addonAfter: button, - suffix: suffix, - onChange: onChange, - className: cls, - disabled: disabled - })); -}); -if (false) {} -/* harmony default export */ var input_Search = (Search); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js -var TextArea = __webpack_require__(1643); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js -"use client"; - - - - - - -const input_Input = Input/* default */.Z; -if (false) {} -input_Input.Group = input_Group; -input_Input.Search = input_Search; -input_Input.TextArea = TextArea/* default */.Z; -input_Input.Password = input_Password; -/* harmony default export */ var input = (input_Input); - -/***/ }), - -/***/ 44000: -/*!**********************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966); -/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 45818); -"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); - -/***/ }), - -/***/ 57809: -/*!**********************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/select/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_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861); -/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 2738); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301); -/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487); -/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892); -/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080); -/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355); -/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684); -/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891); -/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716); -/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441); -/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234); -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154); -/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582); -/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443); -/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339); -"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; -}; -// TODO: 4.0 - codemod should help to change `filterOption` to support node props. - - - - - - - - - - - - - - - - - - -const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; -const InternalSelect = (_a, ref) => { - var _b; - var { - prefixCls: customizePrefixCls, - bordered = true, - className, - rootClassName, - getPopupContainer, - popupClassName, - dropdownClassName, - listHeight = 256, - placement, - listItemHeight = 24, - size: customizeSize, - disabled: customDisabled, - notFoundContent, - status: customStatus, - builtinPlacements, - dropdownMatchSelectWidth, - popupMatchSelectWidth, - direction: propDirection, - style, - allowClear - } = _a, - props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]); - const { - getPopupContainer: getContextPopupContainer, - getPrefixCls, - renderEmpty, - direction: contextDirection, - virtual, - popupMatchSelectWidth: contextPopupMatchSelectWidth, - popupOverflow, - select - } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_); - const prefixCls = getPrefixCls('select', customizePrefixCls); - const rootPrefixCls = getPrefixCls(); - const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection; - const { - compactSize, - compactItemClassnames - } = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction); - const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls); - const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { - const { - mode: m - } = props; - if (m === 'combobox') { - return undefined; - } - if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) { - return 'combobox'; - } - return m; - }, [props.mode]); - const isMultiple = mode === 'multiple' || mode === 'tags'; - const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow); - const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth; - // ===================== Form Status ===================== - const { - status: contextStatus, - hasFeedback, - isFormItemInput, - feedbackIcon - } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM); - const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus); - // ===================== Empty ===================== - let mergedNotFound; - if (notFoundContent !== undefined) { - mergedNotFound = notFoundContent; - } else if (mode === 'combobox') { - mergedNotFound = null; - } else { - mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, { - componentName: "Select" - }); - } - // ===================== Icons ===================== - const { - suffixIcon, - itemIcon, - removeIcon, - clearIcon - } = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), { - multiple: isMultiple, - hasFeedback, - feedbackIcon, - showSuffixIcon, - prefixCls, - showArrow: props.showArrow, - componentName: 'Select' - })); - const mergedAllowClear = allowClear === true ? { - clearIcon - } : allowClear; - const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']); - const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, { - [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl' - }, rootClassName, hashId); - const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => { - var _a; - return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; - }); - // ===================== Disabled ===================== - const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z); - const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled; - const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({ - [`${prefixCls}-lg`]: mergedSize === 'large', - [`${prefixCls}-sm`]: mergedSize === 'small', - [`${prefixCls}-rtl`]: direction === 'rtl', - [`${prefixCls}-borderless`]: !bordered, - [`${prefixCls}-in-form-item`]: isFormItemInput - }, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId); - // ===================== Placement ===================== - const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { - if (placement !== undefined) { - return placement; - } - return direction === 'rtl' ? 'bottomRight' : 'bottomLeft'; - }, [placement, direction]); - const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow); - // ====================== Warning ====================== - if (false) {} - // ====================== Render ======================= - return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({ - ref: ref, - virtual: virtual, - showSearch: select === null || select === void 0 ? void 0 : select.showSearch - }, selectProps, { - style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style), - dropdownMatchSelectWidth: mergedPopupMatchSelectWidth, - builtinPlacements: mergedBuiltinPlacements, - transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName), - listHeight: listHeight, - listItemHeight: listItemHeight, - mode: mode, - prefixCls: prefixCls, - placement: memoPlacement, - direction: direction, - suffixIcon: suffixIcon, - menuItemSelectedIcon: itemIcon, - removeIcon: removeIcon, - allowClear: mergedAllowClear, - notFoundContent: mergedNotFound, - className: mergedClassName, - getPopupContainer: getPopupContainer || getContextPopupContainer, - dropdownClassName: rcSelectRtlDropdownClassName, - disabled: mergedDisabled - }))); -}; -if (false) {} -const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect); -// We don't care debug panel -/* istanbul ignore next */ -const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select); -Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE; -Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx; -Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo; -Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel; -if (false) {} -/* harmony default export */ __webpack_exports__["default"] = (Select); - -/***/ }), - -/***/ 81327: -/*!*********************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ space; } -}); - -// UNUSED EXPORTS: SpaceContext - -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -// 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.44.4@rc-util/es/Children/toArray.js -var toArray = __webpack_require__(11592); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js -var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js -var Compact = __webpack_require__(33234); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js - -const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({ - latestIndex: 0 -}); -const SpaceContextProvider = SpaceContext.Provider; -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js -"use client"; - - - -const Item = _ref => { - let { - className, - index, - children, - split, - style - } = _ref; - const { - latestIndex - } = _react_17_0_2_react.useContext(SpaceContext); - if (children === null || children === undefined) { - return null; - } - return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", { - className: className, - style: style - }, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", { - className: `${className}-split` - }, split)); -}; -/* harmony default export */ var space_Item = (Item); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules -var space_style = __webpack_require__(2856); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js -function isPresetSize(size) { - return ['small', 'middle', 'large'].includes(size); -} -function isValidGapNumber(size) { - if (!size) { - // The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it. - return false; - } - return typeof size === 'number' && !Number.isNaN(size); -} -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - -const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - var _a, _b; - const { - getPrefixCls, - space, - direction: directionConfig - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const { - size = (space === null || space === void 0 ? void 0 : space.size) || 'small', - align, - className, - rootClassName, - children, - direction = 'horizontal', - prefixCls: customizePrefixCls, - split, - style, - wrap = false, - classNames: customClassNames, - styles - } = props, - otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]); - const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size]; - const isPresetVerticalSize = isPresetSize(verticalSize); - const isPresetHorizontalSize = isPresetSize(horizontalSize); - const isValidVerticalSize = isValidGapNumber(verticalSize); - const isValidHorizontalSize = isValidGapNumber(horizontalSize); - const childNodes = (0,toArray/* default */.Z)(children, { - keepEmpty: true - }); - const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align; - const prefixCls = getPrefixCls('space', customizePrefixCls); - const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls); - const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, { - [`${prefixCls}-rtl`]: directionConfig === 'rtl', - [`${prefixCls}-align-${mergedAlign}`]: mergedAlign, - [`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize, - [`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize - }, className, rootClassName); - const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item); - // Calculate latest one - let latestIndex = 0; - const nodes = childNodes.map((child, i) => { - var _a, _b; - if (child !== null && child !== undefined) { - latestIndex = i; - } - const key = child && child.key || `${itemClassName}-${i}`; - return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, { - className: itemClassName, - key: key, - index: i, - split: split, - style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item - }, child); - }); - const spaceContext = _react_17_0_2_react.useMemo(() => ({ - latestIndex - }), [latestIndex]); - // =========================== Render =========================== - if (childNodes.length === 0) { - return null; - } - const gapStyle = {}; - if (wrap) { - gapStyle.flexWrap = 'wrap'; - } - if (!isPresetHorizontalSize && isValidHorizontalSize) { - gapStyle.columnGap = horizontalSize; - } - if (!isPresetVerticalSize && isValidVerticalSize) { - gapStyle.rowGap = verticalSize; - } - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ - ref: ref, - className: cls, - style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style) - }, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, { - value: spaceContext - }, nodes))); -}); -if (false) {} -const CompoundedSpace = Space; -CompoundedSpace.Compact = Compact/* default */.ZP; -/* harmony default export */ var space = (CompoundedSpace); - -/***/ }), - -/***/ 41416: -/*!********************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ tree; } -}); - -// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules -var es = __webpack_require__(48787); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(27603); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FileOutlined.js + 1 modules -var FileOutlined = __webpack_require__(52671); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules -var FolderOpenOutlined = __webpack_require__(8657); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(21896); -// 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/FolderOutlined.js -// This icon file is generated automatically. -var FolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, "name": "folder", "theme": "outlined" }; -/* harmony default export */ var asn_FolderOutlined = (FolderOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(7657); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var FolderOutlined_FolderOutlined = function FolderOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_FolderOutlined - })); -}; - -/** */ -var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOutlined_FolderOutlined); -if (false) {} -/* harmony default export */ var icons_FolderOutlined = (RefIcon); -// 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-tree@5.7.12@rc-tree/es/util.js -var util = __webpack_require__(35654); -// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js -var treeUtil = __webpack_require__(71430); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js -var context = __webpack_require__(36355); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/HolderOutlined.js -// This icon file is generated automatically. -var HolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, "name": "holder", "theme": "outlined" }; -/* harmony default export */ var asn_HolderOutlined = (HolderOutlined); - -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/HolderOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var HolderOutlined_HolderOutlined = function HolderOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_HolderOutlined - })); -}; - -/** */ -var HolderOutlined_RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(HolderOutlined_HolderOutlined); -if (false) {} -/* harmony default export */ var icons_HolderOutlined = (HolderOutlined_RefIcon); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js -var _util_motion = __webpack_require__(62892); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js -var tree_style = __webpack_require__(20648); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dropIndicator.js -"use client"; - - -const offset = 4; -function dropIndicatorRender(props) { - const { - dropPosition, - dropLevelOffset, - prefixCls, - indent, - direction = 'ltr' - } = props; - const startPosition = direction === 'ltr' ? 'left' : 'right'; - const endPosition = direction === 'ltr' ? 'right' : 'left'; - const style = { - [startPosition]: -dropLevelOffset * indent + offset, - [endPosition]: 0 - }; - switch (dropPosition) { - case -1: - style.top = -3; - break; - case 1: - style.bottom = -3; - break; - default: - // dropPosition === 0 - style.bottom = -3; - style[startPosition] = indent + offset; - break; - } - return /*#__PURE__*/_react_17_0_2_react.createElement("div", { - style: style, - className: `${prefixCls}-drop-indicator` - }); -} -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules -var iconUtil = __webpack_require__(71997); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/Tree.js -"use client"; - - - - - - - - - - -const Tree = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - const { - getPrefixCls, - direction, - virtual, - tree - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const { - prefixCls: customizePrefixCls, - className, - showIcon = false, - showLine, - switcherIcon, - blockNode = false, - children, - checkable = false, - selectable = true, - draggable, - motion: customMotion, - style - } = props; - const prefixCls = getPrefixCls('tree', customizePrefixCls); - const rootPrefixCls = getPrefixCls(); - const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, (0,_util_motion/* default */.Z)(rootPrefixCls)), { - motionAppear: false - }); - const newProps = Object.assign(Object.assign({}, props), { - checkable, - selectable, - showIcon, - motion, - blockNode, - showLine: Boolean(showLine), - dropIndicatorRender: dropIndicatorRender - }); - const [wrapSSR, hashId] = (0,tree_style/* default */.ZP)(prefixCls); - const draggableConfig = _react_17_0_2_react.useMemo(() => { - if (!draggable) { - return false; - } - let mergedDraggable = {}; - switch (typeof draggable) { - case 'function': - mergedDraggable.nodeDraggable = draggable; - break; - case 'object': - mergedDraggable = Object.assign({}, draggable); - break; - default: - break; - // Do nothing - } - - if (mergedDraggable.icon !== false) { - mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/_react_17_0_2_react.createElement(icons_HolderOutlined, null); - } - return mergedDraggable; - }, [draggable]); - const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(iconUtil/* default */.Z, { - prefixCls: prefixCls, - switcherIcon: switcherIcon, - treeNodeProps: nodeProps, - showLine: showLine - }); - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ - itemHeight: 20, - ref: ref, - virtual: virtual - }, newProps, { - // newProps may contain style so declare style below it - style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style), - prefixCls: prefixCls, - className: _classnames_2_5_1_classnames_default()({ - [`${prefixCls}-icon-hide`]: !showIcon, - [`${prefixCls}-block-node`]: blockNode, - [`${prefixCls}-unselectable`]: !selectable, - [`${prefixCls}-rtl`]: direction === 'rtl' - }, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId), - direction: direction, - checkable: checkable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", { - className: `${prefixCls}-checkbox-inner` - }) : checkable, - selectable: selectable, - switcherIcon: renderSwitcherIcon, - draggable: draggableConfig - }), children)); -}); -if (false) {} -/* harmony default export */ var tree_Tree = (Tree); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dictUtil.js - -var Record; -(function (Record) { - Record[Record["None"] = 0] = "None"; - Record[Record["Start"] = 1] = "Start"; - Record[Record["End"] = 2] = "End"; -})(Record || (Record = {})); -function traverseNodesKey(treeData, callback) { - function processNode(dataNode) { - const { - key, - children - } = dataNode; - if (callback(key, dataNode) !== false) { - traverseNodesKey(children || [], callback); - } - } - treeData.forEach(processNode); -} -/** 计算选中范围,只考虑expanded情况以优化性能 */ -function calcRangeKeys(_ref) { - let { - treeData, - expandedKeys, - startKey, - endKey - } = _ref; - const keys = []; - let record = Record.None; - if (startKey && startKey === endKey) { - return [startKey]; - } - if (!startKey || !endKey) { - return []; - } - function matchKey(key) { - return key === startKey || key === endKey; - } - traverseNodesKey(treeData, key => { - if (record === Record.End) { - return false; - } - if (matchKey(key)) { - // Match test - keys.push(key); - if (record === Record.None) { - record = Record.Start; - } else if (record === Record.Start) { - record = Record.End; - return false; - } - } else if (record === Record.Start) { - // Append selection - keys.push(key); - } - return expandedKeys.includes(key); - }); - return keys; -} -function convertDirectoryKeysToNodes(treeData, keys) { - const restKeys = (0,toConsumableArray/* default */.Z)(keys); - const nodes = []; - traverseNodesKey(treeData, (key, node) => { - const index = restKeys.indexOf(key); - if (index !== -1) { - nodes.push(node); - restKeys.splice(index, 1); - } - return !!restKeys.length; - }); - return nodes; -} -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/DirectoryTree.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 getIcon(props) { - const { - isLeaf, - expanded - } = props; - if (isLeaf) { - return /*#__PURE__*/_react_17_0_2_react.createElement(FileOutlined/* default */.Z, null); - } - return expanded ? /*#__PURE__*/_react_17_0_2_react.createElement(FolderOpenOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_FolderOutlined, null); -} -function getTreeData(_ref) { - let { - treeData, - children - } = _ref; - return treeData || (0,treeUtil/* convertTreeToData */.zn)(children); -} -const DirectoryTree = (_a, ref) => { - var { - defaultExpandAll, - defaultExpandParent, - defaultExpandedKeys - } = _a, - props = __rest(_a, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]); - // Shift click usage - const lastSelectedKey = _react_17_0_2_react.useRef(); - const cachedSelectedKeys = _react_17_0_2_react.useRef(); - const getInitExpandedKeys = () => { - const { - keyEntities - } = (0,treeUtil/* convertDataToEntities */.I8)(getTreeData(props)); - let initExpandedKeys; - // Expanded keys - if (defaultExpandAll) { - initExpandedKeys = Object.keys(keyEntities); - } else if (defaultExpandParent) { - initExpandedKeys = (0,util/* conductExpandParent */.r7)(props.expandedKeys || defaultExpandedKeys || [], keyEntities); - } else { - initExpandedKeys = props.expandedKeys || defaultExpandedKeys; - } - return initExpandedKeys; - }; - const [selectedKeys, setSelectedKeys] = _react_17_0_2_react.useState(props.selectedKeys || props.defaultSelectedKeys || []); - const [expandedKeys, setExpandedKeys] = _react_17_0_2_react.useState(() => getInitExpandedKeys()); - _react_17_0_2_react.useEffect(() => { - if ('selectedKeys' in props) { - setSelectedKeys(props.selectedKeys); - } - }, [props.selectedKeys]); - _react_17_0_2_react.useEffect(() => { - if ('expandedKeys' in props) { - setExpandedKeys(props.expandedKeys); - } - }, [props.expandedKeys]); - const onExpand = (keys, info) => { - var _a; - if (!('expandedKeys' in props)) { - setExpandedKeys(keys); - } - // Call origin function - return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info); - }; - const onSelect = (keys, event) => { - var _a; - const { - multiple - } = props; - const { - node, - nativeEvent - } = event; - const { - key = '' - } = node; - const treeData = getTreeData(props); - // const newState: DirectoryTreeState = {}; - // We need wrap this event since some value is not same - const newEvent = Object.assign(Object.assign({}, event), { - selected: true - }); - // Windows / Mac single pick - const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey); - const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey; - // Generate new selected keys - let newSelectedKeys; - if (multiple && ctrlPick) { - // Control click - newSelectedKeys = keys; - lastSelectedKey.current = key; - cachedSelectedKeys.current = newSelectedKeys; - newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); - } else if (multiple && shiftPick) { - // Shift click - newSelectedKeys = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(cachedSelectedKeys.current || []), (0,toConsumableArray/* default */.Z)(calcRangeKeys({ - treeData, - expandedKeys, - startKey: key, - endKey: lastSelectedKey.current - }))))); - newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); - } else { - // Single click - newSelectedKeys = [key]; - lastSelectedKey.current = key; - cachedSelectedKeys.current = newSelectedKeys; - newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys); - } - (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent); - if (!('selectedKeys' in props)) { - setSelectedKeys(newSelectedKeys); - } - }; - const { - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const { - prefixCls: customizePrefixCls, - className, - showIcon = true, - expandAction = 'click' - } = props, - otherProps = __rest(props, ["prefixCls", "className", "showIcon", "expandAction"]); - const prefixCls = getPrefixCls('tree', customizePrefixCls); - const connectClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-directory`, { - [`${prefixCls}-directory-rtl`]: direction === 'rtl' - }, className); - return /*#__PURE__*/_react_17_0_2_react.createElement(tree_Tree, Object.assign({ - icon: getIcon, - ref: ref, - blockNode: true - }, otherProps, { - showIcon: showIcon, - expandAction: expandAction, - prefixCls: prefixCls, - className: connectClassName, - expandedKeys: expandedKeys, - selectedKeys: selectedKeys, - onSelect: onSelect, - onExpand: onExpand - })); -}; -const ForwardDirectoryTree = /*#__PURE__*/_react_17_0_2_react.forwardRef(DirectoryTree); -if (false) {} -/* harmony default export */ var tree_DirectoryTree = (ForwardDirectoryTree); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js -"use client"; - - - - -const es_tree_Tree = tree_Tree; -es_tree_Tree.DirectoryTree = tree_DirectoryTree; -es_tree_Tree.TreeNode = es/* TreeNode */.O; -/* harmony default export */ var tree = (es_tree_Tree); - -/***/ }) - -}]); \ No newline at end of file diff --git a/26577.346a011e.async.js b/26577.346a011e.async.js new file mode 100644 index 0000000000..644e826f24 --- /dev/null +++ b/26577.346a011e.async.js @@ -0,0 +1,1634 @@ +"use strict"; +(self["webpackChunk"] = self["webpackChunk"] || []).push([[26577,28518,20105,52970,39727,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ + +/***/ 65363: +/*!*************************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.6.1@@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.27.4@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(21896); +// 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.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(7657); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@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); + +/***/ }), + +/***/ 87169: +/*!*******************************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.6.1@@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.27.4@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(21896); +// 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.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(7657); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@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); + +/***/ }), + +/***/ 15277: +/*!*****************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! + \*****************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_EyeOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(21896); +// 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/EyeOutlined.js +// This icon file is generated automatically. +var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" }; +/* harmony default export */ var asn_EyeOutlined = (EyeOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(7657); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_EyeOutlined + })); +}; + +/** */ +var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined); +if (false) {} +/* harmony default export */ var icons_EyeOutlined = (RefIcon); + +/***/ }), + +/***/ 24905: +/*!************************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***! + \************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ es_checkbox; } +}); + +// 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-checkbox@3.1.0@rc-checkbox/es/index.js +var es = __webpack_require__(5630); +// 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/config-provider/context.js +var config_provider_context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js +var DisabledContext = __webpack_require__(1684); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js +var context = __webpack_require__(32441); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js + +const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null); +/* harmony default export */ var checkbox_GroupContext = (GroupContext); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js +var checkbox_style = __webpack_require__(98447); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules +var wave = __webpack_require__(14088); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js +var wave_interface = __webpack_require__(4572); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + + +const InternalCheckbox = (props, ref) => { + var _a; + const { + prefixCls: customizePrefixCls, + className, + rootClassName, + children, + indeterminate = false, + style, + onMouseEnter, + onMouseLeave, + skipGroup = false, + disabled + } = props, + restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]); + const { + getPrefixCls, + direction, + checkbox + } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); + const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext); + const { + isFormItemInput + } = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM); + const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); + const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled; + const prevValue = _react_17_0_2_react.useRef(restProps.value); + _react_17_0_2_react.useEffect(() => { + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); + false ? 0 : void 0; + }, []); + _react_17_0_2_react.useEffect(() => { + if (skipGroup) { + return; + } + if (restProps.value !== prevValue.current) { + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current); + checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); + prevValue.current = restProps.value; + } + return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value); + }, [restProps.value]); + const prefixCls = getPrefixCls('checkbox', customizePrefixCls); + const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); + const checkboxProps = Object.assign({}, restProps); + if (checkboxGroup && !skipGroup) { + checkboxProps.onChange = function () { + if (restProps.onChange) { + restProps.onChange.apply(restProps, arguments); + } + if (checkboxGroup.toggleOption) { + checkboxGroup.toggleOption({ + label: children, + value: restProps.value + }); + } + }; + checkboxProps.name = checkboxGroup.name; + checkboxProps.checked = checkboxGroup.value.includes(restProps.value); + } + const classString = _classnames_2_5_1_classnames_default()(`${prefixCls}-wrapper`, { + [`${prefixCls}-rtl`]: direction === 'rtl', + [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, + [`${prefixCls}-wrapper-disabled`]: mergedDisabled, + [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput + }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId); + const checkboxClass = _classnames_2_5_1_classnames_default()({ + [`${prefixCls}-indeterminate`]: indeterminate + }, wave_interface/* TARGET_CLS */.A, hashId); + const ariaChecked = indeterminate ? 'mixed' : undefined; + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { + component: "Checkbox", + disabled: mergedDisabled + }, /*#__PURE__*/_react_17_0_2_react.createElement("label", { + className: classString, + style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style), + onMouseEnter: onMouseEnter, + onMouseLeave: onMouseLeave + }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ + "aria-checked": ariaChecked + }, checkboxProps, { + prefixCls: prefixCls, + className: checkboxClass, + disabled: mergedDisabled, + ref: ref + })), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)))); +}; +const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox); +if (false) {} +/* harmony default export */ var checkbox_Checkbox = (Checkbox); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(27603); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/omit.js +var omit = __webpack_require__(2738); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js +"use client"; + + +var Group_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 InternalGroup = (props, ref) => { + const { + defaultValue, + children, + options = [], + prefixCls: customizePrefixCls, + className, + rootClassName, + style, + onChange + } = props, + restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]); + const { + getPrefixCls, + direction + } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); + const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []); + const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]); + _react_17_0_2_react.useEffect(() => { + if ('value' in restProps) { + setValue(restProps.value || []); + } + }, [restProps.value]); + const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => { + if (typeof option === 'string' || typeof option === 'number') { + return { + label: option, + value: option + }; + } + return option; + }), [options]); + const cancelValue = val => { + setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); + }; + const registerValue = val => { + setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val])); + }; + const toggleOption = option => { + const optionIndex = value.indexOf(option.value); + const newValue = (0,toConsumableArray/* default */.Z)(value); + if (optionIndex === -1) { + newValue.push(option.value); + } else { + newValue.splice(optionIndex, 1); + } + if (!('value' in restProps)) { + setValue(newValue); + } + onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => { + const indexA = memoOptions.findIndex(opt => opt.value === a); + const indexB = memoOptions.findIndex(opt => opt.value === b); + return indexA - indexB; + })); + }; + const prefixCls = getPrefixCls('checkbox', customizePrefixCls); + const groupPrefixCls = `${prefixCls}-group`; + const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); + const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']); + const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, { + prefixCls: prefixCls, + key: option.value.toString(), + disabled: 'disabled' in option ? option.disabled : restProps.disabled, + value: option.value, + checked: value.includes(option.value), + onChange: option.onChange, + className: `${groupPrefixCls}-item`, + style: option.style, + title: option.title + }, option.label)) : children; + // eslint-disable-next-line react/jsx-no-constructed-context-values + const context = { + toggleOption, + value, + disabled: restProps.disabled, + name: restProps.name, + // https://github.com/ant-design/ant-design/issues/16376 + registerValue, + cancelValue + }; + const classString = _classnames_2_5_1_classnames_default()(groupPrefixCls, { + [`${groupPrefixCls}-rtl`]: direction === 'rtl' + }, className, rootClassName, hashId); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ + className: classString, + style: style + }, domProps, { + ref: ref + }), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, { + value: context + }, childrenNode))); +}; + +const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup); +/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup)); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js +"use client"; + + + +const es_checkbox_Checkbox = checkbox_Checkbox; +es_checkbox_Checkbox.Group = Group; +es_checkbox_Checkbox.__ANT_CHECKBOX = true; +if (false) {} +/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox); + +/***/ }), + +/***/ 98447: +/*!******************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***! + \******************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ C2: function() { return /* binding */ getStyle; } +/* harmony export */ }); +/* unused harmony export genCheckboxStyle */ +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313); +/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613); +/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116); + + +// ============================== Styles ============================== +const genCheckboxStyle = token => { + const { + checkboxCls + } = token; + const wrapperCls = `${checkboxCls}-wrapper`; + return [ + // ===================== Basic ===================== + { + // Group + [`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + display: 'inline-flex', + flexWrap: 'wrap', + columnGap: token.marginXS, + // Group > Grid + [`> ${token.antCls}-row`]: { + flex: 1 + } + }), + // Wrapper + [wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + display: 'inline-flex', + alignItems: 'baseline', + cursor: 'pointer', + // Fix checkbox & radio in flex align #30260 + '&:after': { + display: 'inline-block', + width: 0, + overflow: 'hidden', + content: "'\\a0'" + }, + // Checkbox near checkbox + [`& + ${wrapperCls}`]: { + marginInlineStart: 0 + }, + [`&${wrapperCls}-in-form-item`]: { + 'input[type="checkbox"]': { + width: 14, + height: 14 // FIXME: magic + } + } + }), + + // Wrapper > Checkbox + [checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { + position: 'relative', + whiteSpace: 'nowrap', + lineHeight: 1, + cursor: 'pointer', + borderRadius: token.borderRadiusSM, + // To make alignment right when `controlHeight` is changed + // Ref: https://github.com/ant-design/ant-design/issues/41564 + alignSelf: 'center', + // Wrapper > Checkbox > input + [`${checkboxCls}-input`]: { + position: 'absolute', + // Since baseline align will get additional space offset, + // we need to move input to top to make it align with text. + // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799 + inset: 0, + zIndex: 1, + cursor: 'pointer', + opacity: 0, + margin: 0, + [`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token)) + }, + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + boxSizing: 'border-box', + position: 'relative', + top: 0, + insetInlineStart: 0, + display: 'block', + width: token.checkboxSize, + height: token.checkboxSize, + direction: 'ltr', + backgroundColor: token.colorBgContainer, + border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, + borderRadius: token.borderRadiusSM, + borderCollapse: 'separate', + transition: `all ${token.motionDurationSlow}`, + '&:after': { + boxSizing: 'border-box', + position: 'absolute', + top: '50%', + insetInlineStart: '21.5%', + display: 'table', + width: token.checkboxSize / 14 * 5, + height: token.checkboxSize / 14 * 8, + border: `${token.lineWidthBold}px solid ${token.colorWhite}`, + borderTop: 0, + borderInlineStart: 0, + transform: 'rotate(45deg) scale(0) translate(-50%,-50%)', + opacity: 0, + content: '""', + transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}` + } + }, + // Wrapper > Checkbox + Text + '& + span': { + paddingInlineStart: token.paddingXS, + paddingInlineEnd: token.paddingXS + } + }) + }, + // ===================== Hover ===================== + { + // Wrapper & Wrapper > Checkbox + [` + ${wrapperCls}:not(${wrapperCls}-disabled), + ${checkboxCls}:not(${checkboxCls}-disabled) + `]: { + [`&:hover ${checkboxCls}-inner`]: { + borderColor: token.colorPrimary + } + }, + [`${wrapperCls}:not(${wrapperCls}-disabled)`]: { + [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimaryHover, + borderColor: 'transparent' + }, + [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: { + borderColor: token.colorPrimaryHover + } + } + }, + // ==================== Checked ==================== + { + // Wrapper > Checkbox + [`${checkboxCls}-checked`]: { + [`${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimary, + borderColor: token.colorPrimary, + '&:after': { + opacity: 1, + transform: 'rotate(45deg) scale(1) translate(-50%,-50%)', + transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}` + } + } + }, + [` + ${wrapperCls}-checked:not(${wrapperCls}-disabled), + ${checkboxCls}-checked:not(${checkboxCls}-disabled) + `]: { + [`&:hover ${checkboxCls}-inner`]: { + backgroundColor: token.colorPrimaryHover, + borderColor: 'transparent' + } + } + }, + // ================= Indeterminate ================= + { + [checkboxCls]: { + '&-indeterminate': { + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + backgroundColor: token.colorBgContainer, + borderColor: token.colorBorder, + '&:after': { + top: '50%', + insetInlineStart: '50%', + width: token.fontSizeLG / 2, + height: token.fontSizeLG / 2, + backgroundColor: token.colorPrimary, + border: 0, + transform: 'translate(-50%, -50%) scale(1)', + opacity: 1, + content: '""' + } + } + } + } + }, + // ==================== Disable ==================== + { + // Wrapper + [`${wrapperCls}-disabled`]: { + cursor: 'not-allowed' + }, + // Wrapper > Checkbox + [`${checkboxCls}-disabled`]: { + // Wrapper > Checkbox > input + [`&, ${checkboxCls}-input`]: { + cursor: 'not-allowed', + // Disabled for native input to enable Tooltip event handler + // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901 + pointerEvents: 'none' + }, + // Wrapper > Checkbox > inner + [`${checkboxCls}-inner`]: { + background: token.colorBgContainerDisabled, + borderColor: token.colorBorder, + '&:after': { + borderColor: token.colorTextDisabled + } + }, + '&:after': { + display: 'none' + }, + '& + span': { + color: token.colorTextDisabled + }, + [`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: { + background: token.colorTextDisabled + } + } + }]; +}; +// ============================== Export ============================== +function getStyle(prefixCls, token) { + const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, { + checkboxCls: `.${prefixCls}`, + checkboxSize: token.controlInteractiveSize + }); + return [genCheckboxStyle(checkboxToken)]; +} +/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => { + let { + prefixCls + } = _ref; + return [getStyle(prefixCls, token)]; +})); + +/***/ }), + +/***/ 38854: +/*!************************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***! + \************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ es_dropdown; } +}); + +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js +var dropdown = __webpack_require__(91857); +// 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/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules +var EllipsisOutlined = __webpack_require__(18785); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js +var context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules +var space = __webpack_require__(81327); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js +var Compact = __webpack_require__(33234); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules +var style = __webpack_require__(47211); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + +const DropdownButton = props => { + const { + getPopupContainer: getContextPopupContainer, + getPrefixCls, + direction + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const { + prefixCls: customizePrefixCls, + type = 'default', + danger, + disabled, + loading, + onClick, + htmlType, + children, + className, + menu, + arrow, + autoFocus, + overlay, + trigger, + align, + open, + onOpenChange, + placement, + getPopupContainer, + href, + icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null), + title, + buttonsRender = buttons => buttons, + mouseEnterDelay, + mouseLeaveDelay, + overlayClassName, + overlayStyle, + destroyPopupOnHide, + dropdownRender + } = props, + restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]); + const prefixCls = getPrefixCls('dropdown', customizePrefixCls); + const buttonPrefixCls = `${prefixCls}-button`; + const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls); + const dropdownProps = { + menu, + arrow, + autoFocus, + align, + disabled, + trigger: disabled ? [] : trigger, + onOpenChange, + getPopupContainer: getPopupContainer || getContextPopupContainer, + mouseEnterDelay, + mouseLeaveDelay, + overlayClassName, + overlayStyle, + destroyPopupOnHide, + dropdownRender + }; + const { + compactSize, + compactItemClassnames + } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); + const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId); + if ('overlay' in props) { + dropdownProps.overlay = overlay; + } + if ('open' in props) { + dropdownProps.open = open; + } + if ('placement' in props) { + dropdownProps.placement = placement; + } else { + dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight'; + } + const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { + type: type, + danger: danger, + disabled: disabled, + loading: loading, + onClick: onClick, + htmlType: htmlType, + href: href, + title: title + }, children); + const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { + type: type, + danger: danger, + icon: icon + }); + const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({ + className: classes, + size: compactSize, + block: true + }, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender))); +}; +DropdownButton.__ANT_BUTTON = true; +/* harmony default export */ var dropdown_button = (DropdownButton); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js +"use client"; + + + +const Dropdown = dropdown/* default */.Z; +Dropdown.Button = dropdown_button; +/* harmony default export */ var es_dropdown = (Dropdown); + +/***/ }), + +/***/ 10249: +/*!*********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***! + \*********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ input; } +}); + +// 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/_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/config-provider/context.js +var context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js +var form_context = __webpack_require__(32441); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js +var style = __webpack_require__(9937); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js +"use client"; + + + + + + + + +const Group = props => { + const { + getPrefixCls, + direction + } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); + const { + prefixCls: customizePrefixCls, + className + } = props; + const prefixCls = getPrefixCls('input-group', customizePrefixCls); + const inputPrefixCls = getPrefixCls('input'); + const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls); + const cls = _classnames_2_5_1_classnames_default()(prefixCls, { + [`${prefixCls}-lg`]: props.size === 'large', + [`${prefixCls}-sm`]: props.size === 'small', + [`${prefixCls}-compact`]: props.compact, + [`${prefixCls}-rtl`]: direction === 'rtl' + }, hashId, className); + const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM); + const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), { + isFormItemInput: false + }), [formItemContext]); + if (false) {} + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: cls, + style: props.style, + onMouseEnter: props.onMouseEnter, + onMouseLeave: props.onMouseLeave, + onFocus: props.onFocus, + onBlur: props.onBlur + }, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, { + value: groupFormItemContext + }, props.children))); +}; +/* harmony default export */ var input_Group = (Group); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules +var Input = __webpack_require__(9432); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.4@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(21896); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js +// This icon file is generated automatically. +var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" }; +/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(7657); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeInvisibleOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_EyeInvisibleOutlined + })); +}; + +/** */ +var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined); +if (false) {} +/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules +var EyeOutlined = __webpack_require__(15277); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/omit.js +var omit = __webpack_require__(2738); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.4@rc-util/es/ref.js +var es_ref = __webpack_require__(8654); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js +var useRemovePasswordTimeout = __webpack_require__(59412); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + +const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null); +const ActionMap = { + click: 'onClick', + hover: 'onMouseOver' +}; +const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { + const { + visibilityToggle = true + } = props; + const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined; + const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false); + const inputRef = (0,_react_17_0_2_react.useRef)(null); + _react_17_0_2_react.useEffect(() => { + if (visibilityControlled) { + setVisible(visibilityToggle.visible); + } + }, [visibilityControlled, visibilityToggle]); + // Remove Password value + const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); + const onVisibleChange = () => { + const { + disabled + } = props; + if (disabled) { + return; + } + if (visible) { + removePasswordTimeout(); + } + setVisible(prevState => { + var _a; + const newState = !prevState; + if (typeof visibilityToggle === 'object') { + (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); + } + return newState; + }); + }; + const getIcon = prefixCls => { + const { + action = 'click', + iconRender = defaultIconRender + } = props; + const iconTrigger = ActionMap[action] || ''; + const icon = iconRender(visible); + const iconProps = { + [iconTrigger]: onVisibleChange, + className: `${prefixCls}-icon`, + key: 'passwordIcon', + onMouseDown: e => { + // Prevent focused state lost + // https://github.com/ant-design/ant-design/issues/15173 + e.preventDefault(); + }, + onMouseUp: e => { + // Prevent caret position change + // https://github.com/ant-design/ant-design/issues/23524 + e.preventDefault(); + } + }; + return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps); + }; + const { + className, + prefixCls: customizePrefixCls, + inputPrefixCls: customizeInputPrefixCls, + size + } = props, + restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); + const { + getPrefixCls + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + const prefixCls = getPrefixCls('input-password', customizePrefixCls); + const suffixIcon = visibilityToggle && getIcon(prefixCls); + const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, { + [`${prefixCls}-${size}`]: !!size + }); + const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), { + type: visible ? 'text' : 'password', + className: inputClassName, + prefixCls: inputPrefixCls, + suffix: suffixIcon + }); + if (size) { + omittedProps.size = size; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ + ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef) + }, omittedProps)); +}); +if (false) {} +/* harmony default export */ var input_Password = (Password); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules +var SearchOutlined = __webpack_require__(47472); +// 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/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js +var useSize = __webpack_require__(19716); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js +var Compact = __webpack_require__(33234); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js +"use client"; + +var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { + const { + prefixCls: customizePrefixCls, + inputPrefixCls: customizeInputPrefixCls, + className, + size: customizeSize, + suffix, + enterButton = false, + addonAfter, + loading, + disabled, + onSearch: customOnSearch, + onChange: customOnChange, + onCompositionStart, + onCompositionEnd + } = props, + restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); + const { + getPrefixCls, + direction + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const composedRef = _react_17_0_2_react.useRef(false); + const prefixCls = getPrefixCls('input-search', customizePrefixCls); + const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); + const { + compactSize + } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); + const size = (0,useSize/* default */.Z)(ctx => { + var _a; + return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; + }); + const inputRef = _react_17_0_2_react.useRef(null); + const onChange = e => { + if (e && e.target && e.type === 'click' && customOnSearch) { + customOnSearch(e.target.value, e, { + source: 'clear' + }); + } + if (customOnChange) { + customOnChange(e); + } + }; + const onMouseDown = e => { + var _a; + if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { + e.preventDefault(); + } + }; + const onSearch = e => { + var _a, _b; + if (customOnSearch) { + customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, { + source: 'input' + }); + } + }; + const onPressEnter = e => { + if (composedRef.current || loading) { + return; + } + onSearch(e); + }; + const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null; + const btnClassName = `${prefixCls}-button`; + let button; + const enterButtonAsElement = enterButton || {}; + const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; + if (isAntdButton || enterButtonAsElement.type === 'button') { + button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({ + onMouseDown, + onClick: e => { + var _a, _b; + (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e); + onSearch(e); + }, + key: 'enterButton' + }, isAntdButton ? { + className: btnClassName, + size + } : {})); + } else { + button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { + className: btnClassName, + type: enterButton ? 'primary' : undefined, + size: size, + disabled: disabled, + key: "enterButton", + onMouseDown: onMouseDown, + onClick: onSearch, + loading: loading, + icon: searchIcon + }, enterButton); + } + if (addonAfter) { + button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, { + key: 'addonAfter' + })]; + } + const cls = _classnames_2_5_1_classnames_default()(prefixCls, { + [`${prefixCls}-rtl`]: direction === 'rtl', + [`${prefixCls}-${size}`]: !!size, + [`${prefixCls}-with-button`]: !!enterButton + }, className); + const handleOnCompositionStart = e => { + composedRef.current = true; + onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e); + }; + const handleOnCompositionEnd = e => { + composedRef.current = false; + onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e); + }; + return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({ + ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref), + onPressEnter: onPressEnter + }, restProps, { + size: size, + onCompositionStart: handleOnCompositionStart, + onCompositionEnd: handleOnCompositionEnd, + prefixCls: inputPrefixCls, + addonAfter: button, + suffix: suffix, + onChange: onChange, + className: cls, + disabled: disabled + })); +}); +if (false) {} +/* harmony default export */ var input_Search = (Search); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js +var TextArea = __webpack_require__(1643); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js +"use client"; + + + + + + +const input_Input = Input/* default */.Z; +if (false) {} +input_Input.Group = input_Group; +input_Input.Search = input_Search; +input_Input.TextArea = TextArea/* default */.Z; +input_Input.Password = input_Password; +/* harmony default export */ var input = (input_Input); + +/***/ }), + +/***/ 44000: +/*!**********************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***! + \**********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966); +/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 45818); +"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); + +/***/ }), + +/***/ 57809: +/*!**********************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/select/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_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861); +/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 2738); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301); +/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487); +/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892); +/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080); +/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355); +/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684); +/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891); +/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716); +/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441); +/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234); +/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154); +/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582); +/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443); +/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339); +"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; +}; +// TODO: 4.0 - codemod should help to change `filterOption` to support node props. + + + + + + + + + + + + + + + + + + +const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE'; +const InternalSelect = (_a, ref) => { + var _b; + var { + prefixCls: customizePrefixCls, + bordered = true, + className, + rootClassName, + getPopupContainer, + popupClassName, + dropdownClassName, + listHeight = 256, + placement, + listItemHeight = 24, + size: customizeSize, + disabled: customDisabled, + notFoundContent, + status: customStatus, + builtinPlacements, + dropdownMatchSelectWidth, + popupMatchSelectWidth, + direction: propDirection, + style, + allowClear + } = _a, + props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]); + const { + getPopupContainer: getContextPopupContainer, + getPrefixCls, + renderEmpty, + direction: contextDirection, + virtual, + popupMatchSelectWidth: contextPopupMatchSelectWidth, + popupOverflow, + select + } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_); + const prefixCls = getPrefixCls('select', customizePrefixCls); + const rootPrefixCls = getPrefixCls(); + const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection; + const { + compactSize, + compactItemClassnames + } = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction); + const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls); + const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { + const { + mode: m + } = props; + if (m === 'combobox') { + return undefined; + } + if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) { + return 'combobox'; + } + return m; + }, [props.mode]); + const isMultiple = mode === 'multiple' || mode === 'tags'; + const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow); + const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth; + // ===================== Form Status ===================== + const { + status: contextStatus, + hasFeedback, + isFormItemInput, + feedbackIcon + } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM); + const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus); + // ===================== Empty ===================== + let mergedNotFound; + if (notFoundContent !== undefined) { + mergedNotFound = notFoundContent; + } else if (mode === 'combobox') { + mergedNotFound = null; + } else { + mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, { + componentName: "Select" + }); + } + // ===================== Icons ===================== + const { + suffixIcon, + itemIcon, + removeIcon, + clearIcon + } = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), { + multiple: isMultiple, + hasFeedback, + feedbackIcon, + showSuffixIcon, + prefixCls, + showArrow: props.showArrow, + componentName: 'Select' + })); + const mergedAllowClear = allowClear === true ? { + clearIcon + } : allowClear; + const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']); + const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, { + [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl' + }, rootClassName, hashId); + const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => { + var _a; + return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; + }); + // ===================== Disabled ===================== + const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z); + const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled; + const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({ + [`${prefixCls}-lg`]: mergedSize === 'large', + [`${prefixCls}-sm`]: mergedSize === 'small', + [`${prefixCls}-rtl`]: direction === 'rtl', + [`${prefixCls}-borderless`]: !bordered, + [`${prefixCls}-in-form-item`]: isFormItemInput + }, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId); + // ===================== Placement ===================== + const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => { + if (placement !== undefined) { + return placement; + } + return direction === 'rtl' ? 'bottomRight' : 'bottomLeft'; + }, [placement, direction]); + const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow); + // ====================== Warning ====================== + if (false) {} + // ====================== Render ======================= + return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({ + ref: ref, + virtual: virtual, + showSearch: select === null || select === void 0 ? void 0 : select.showSearch + }, selectProps, { + style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style), + dropdownMatchSelectWidth: mergedPopupMatchSelectWidth, + builtinPlacements: mergedBuiltinPlacements, + transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName), + listHeight: listHeight, + listItemHeight: listItemHeight, + mode: mode, + prefixCls: prefixCls, + placement: memoPlacement, + direction: direction, + suffixIcon: suffixIcon, + menuItemSelectedIcon: itemIcon, + removeIcon: removeIcon, + allowClear: mergedAllowClear, + notFoundContent: mergedNotFound, + className: mergedClassName, + getPopupContainer: getPopupContainer || getContextPopupContainer, + dropdownClassName: rcSelectRtlDropdownClassName, + disabled: mergedDisabled + }))); +}; +if (false) {} +const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect); +// We don't care debug panel +/* istanbul ignore next */ +const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select); +Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE; +Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx; +Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo; +Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel; +if (false) {} +/* harmony default export */ __webpack_exports__["default"] = (Select); + +/***/ }), + +/***/ 81327: +/*!*********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***! + \*********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ space; } +}); + +// UNUSED EXPORTS: SpaceContext + +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// 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.44.4@rc-util/es/Children/toArray.js +var toArray = __webpack_require__(11592); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js +var context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js +var Compact = __webpack_require__(33234); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js + +const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({ + latestIndex: 0 +}); +const SpaceContextProvider = SpaceContext.Provider; +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js +"use client"; + + + +const Item = _ref => { + let { + className, + index, + children, + split, + style + } = _ref; + const { + latestIndex + } = _react_17_0_2_react.useContext(SpaceContext); + if (children === null || children === undefined) { + return null; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: className, + style: style + }, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: `${className}-split` + }, split)); +}; +/* harmony default export */ var space_Item = (Item); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules +var space_style = __webpack_require__(2856); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js +function isPresetSize(size) { + return ['small', 'middle', 'large'].includes(size); +} +function isValidGapNumber(size) { + if (!size) { + // The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it. + return false; + } + return typeof size === 'number' && !Number.isNaN(size); +} +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + +const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { + var _a, _b; + const { + getPrefixCls, + space, + direction: directionConfig + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const { + size = (space === null || space === void 0 ? void 0 : space.size) || 'small', + align, + className, + rootClassName, + children, + direction = 'horizontal', + prefixCls: customizePrefixCls, + split, + style, + wrap = false, + classNames: customClassNames, + styles + } = props, + otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]); + const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size]; + const isPresetVerticalSize = isPresetSize(verticalSize); + const isPresetHorizontalSize = isPresetSize(horizontalSize); + const isValidVerticalSize = isValidGapNumber(verticalSize); + const isValidHorizontalSize = isValidGapNumber(horizontalSize); + const childNodes = (0,toArray/* default */.Z)(children, { + keepEmpty: true + }); + const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align; + const prefixCls = getPrefixCls('space', customizePrefixCls); + const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls); + const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, { + [`${prefixCls}-rtl`]: directionConfig === 'rtl', + [`${prefixCls}-align-${mergedAlign}`]: mergedAlign, + [`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize, + [`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize + }, className, rootClassName); + const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item); + // Calculate latest one + let latestIndex = 0; + const nodes = childNodes.map((child, i) => { + var _a, _b; + if (child !== null && child !== undefined) { + latestIndex = i; + } + const key = child && child.key || `${itemClassName}-${i}`; + return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, { + className: itemClassName, + key: key, + index: i, + split: split, + style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item + }, child); + }); + const spaceContext = _react_17_0_2_react.useMemo(() => ({ + latestIndex + }), [latestIndex]); + // =========================== Render =========================== + if (childNodes.length === 0) { + return null; + } + const gapStyle = {}; + if (wrap) { + gapStyle.flexWrap = 'wrap'; + } + if (!isPresetHorizontalSize && isValidHorizontalSize) { + gapStyle.columnGap = horizontalSize; + } + if (!isPresetVerticalSize && isValidVerticalSize) { + gapStyle.rowGap = verticalSize; + } + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ + ref: ref, + className: cls, + style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style) + }, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, { + value: spaceContext + }, nodes))); +}); +if (false) {} +const CompoundedSpace = Space; +CompoundedSpace.Compact = Compact/* default */.ZP; +/* harmony default export */ var space = (CompoundedSpace); + +/***/ }) + +}]); \ No newline at end of file diff --git a/27706.c0d5e1ef.async.js b/27706.6d57f310.async.js similarity index 99% rename from 27706.c0d5e1ef.async.js rename to 27706.6d57f310.async.js index 4bd5f0d3b9..6cebcfb995 100644 --- a/27706.c0d5e1ef.async.js +++ b/27706.6d57f310.async.js @@ -1,7 +1,7 @@ "use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([[27706],{ -/***/ 27706: +/***/ 74852: /*!******************************************************************************************************!*\ !*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/language/css/cssMode.js + 44 modules ***! \******************************************************************************************************/ diff --git a/28518.b5a9c635.async.js b/28518.29fc753a.async.js similarity index 99% rename from 28518.b5a9c635.async.js rename to 28518.29fc753a.async.js index 0951cc08bc..86d8a2df22 100644 --- a/28518.b5a9c635.async.js +++ b/28518.29fc753a.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[28518,20105,52970,39727,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[28518,20105,52970,39727,26577,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ /***/ 65363: /*!*************************************************************************************************************!*\ diff --git a/39727.9c7b07e8.async.js b/39727.58324121.async.js similarity index 99% rename from 39727.9c7b07e8.async.js rename to 39727.58324121.async.js index 9027ecc955..f45a925d0e 100644 --- a/39727.9c7b07e8.async.js +++ b/39727.58324121.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[39727,28518,20105,52970,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[39727,28518,20105,52970,26577,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ /***/ 65363: /*!*************************************************************************************************************!*\ diff --git a/52970.88a9ef2e.async.js b/52970.b41de81e.async.js similarity index 99% rename from 52970.88a9ef2e.async.js rename to 52970.b41de81e.async.js index 18afeec09a..f5d4b2f6d7 100644 --- a/52970.88a9ef2e.async.js +++ b/52970.b41de81e.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[52970,28518,20105,39727,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[52970,28518,20105,39727,26577,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ /***/ 65363: /*!*************************************************************************************************************!*\ diff --git a/67514.18985600.async.js b/67514.fae1f237.async.js similarity index 99% rename from 67514.18985600.async.js rename to 67514.fae1f237.async.js index f86cf53a0b..961b02557a 100644 --- a/67514.18985600.async.js +++ b/67514.fae1f237.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[67514,28518,20105,52970,39727,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[67514,28518,20105,52970,39727,26577,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{ /***/ 65363: /*!*************************************************************************************************************!*\ diff --git a/19484.0486de05.async.js b/71009.8c25af72.async.js similarity index 55% rename from 19484.0486de05.async.js rename to 71009.8c25af72.async.js index 8ca2453b1f..ae2b22d141 100644 --- a/19484.0486de05.async.js +++ b/71009.8c25af72.async.js @@ -1,5 +1,139 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[19484],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[71009],{ + +/***/ 15059: +/*!*************************************!*\ + !*** ./src/pages/tasks/constant.js ***! + \*************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ $Y: function() { return /* binding */ SET_EDITOR_THEME; }, +/* harmony export */ A0: function() { return /* binding */ HIDE_EVALUATE_LOADING; }, +/* harmony export */ EP: function() { return /* binding */ HIDE_EVALUATE_RESULT; }, +/* harmony export */ F_: function() { return /* binding */ MOVE_X; }, +/* harmony export */ G9: function() { return /* binding */ UPDATE_TIMESTRAP; }, +/* harmony export */ GB: function() { return /* binding */ FETCH_REP_CONTENT; }, +/* harmony export */ GR: function() { return /* binding */ GET_DISCUSSES; }, +/* harmony export */ GW: function() { return /* binding */ SET_SHOW_DIR; }, +/* harmony export */ Hp: function() { return /* binding */ SHOW_TASK_LIST; }, +/* harmony export */ Ir: function() { return /* binding */ FETCH_TASK_FAILURE; }, +/* harmony export */ N$: function() { return /* binding */ EDIT_REP_CODE; }, +/* harmony export */ NZ: function() { return /* binding */ HIDE_TIP_MODAL; }, +/* harmony export */ Nv: function() { return /* binding */ HIDE_NOTICE; }, +/* harmony export */ OA: function() { return /* binding */ HIDE_PICTURE_VIEW; }, +/* harmony export */ OJ: function() { return /* binding */ SET_CHOOSE_ANSWERS; }, +/* harmony export */ QF: function() { return /* binding */ ON_AUTO_FORMAT; }, +/* harmony export */ RS: function() { return /* binding */ SHOW_REWARD_DIALOG; }, +/* harmony export */ RY: function() { return /* binding */ SET_VNC_LOADING; }, +/* harmony export */ Rj: function() { return /* binding */ SHOW_TIP_MODAL; }, +/* harmony export */ SX: function() { return /* binding */ ACTIVE_DISCUSS_INDEX; }, +/* harmony export */ Tp: function() { return /* binding */ SET_EDITOR_FONTSIZE; }, +/* harmony export */ Ui: function() { return /* binding */ SHOW_EVALUATE_LOADING; }, +/* harmony export */ V1: function() { return /* binding */ EVAL_CHOOSE_END; }, +/* harmony export */ Vn: function() { return /* binding */ SET_REWARD; }, +/* harmony export */ dL: function() { return /* binding */ SHOW_NOTICE; }, +/* harmony export */ fo: function() { return /* binding */ DISABLE_DISCUSS; }, +/* harmony export */ gK: function() { return /* binding */ TRIGGER_TAB_FIXED; }, +/* harmony export */ hK: function() { return /* binding */ HIDE_TASK_LIST; }, +/* harmony export */ i3: function() { return /* binding */ TRIGGER_RIGHT_PANEL_MASK; }, +/* harmony export */ ib: function() { return /* binding */ SET_TASK_STAR; }, +/* harmony export */ lS: function() { return /* binding */ TRIGGER_ENLARGE_UNITY3D; }, +/* harmony export */ m5: function() { return /* binding */ SHOW_EVALUATE_RESULT; }, +/* harmony export */ n4: function() { return /* binding */ FETCH_TASK_START; }, +/* harmony export */ n_: function() { return /* binding */ SET_ACTIVE_INDEX; }, +/* harmony export */ oP: function() { return /* binding */ SET_REPOS; }, +/* harmony export */ p2: function() { return /* binding */ SET_EVALUATE_MESSAGE; }, +/* harmony export */ pl: function() { return /* binding */ FETCH_ANSWER_INFO; }, +/* harmony export */ rM: function() { return /* binding */ PLUS_DISCUSS; }, +/* harmony export */ sM: function() { return /* binding */ GET_TASK_LIST; }, +/* harmony export */ t2: function() { return /* binding */ CANCEL_REWARD_DIALOG; }, +/* harmony export */ tD: function() { return /* binding */ SHOW_DISCUSSES_LOADING; }, +/* harmony export */ u8: function() { return /* binding */ TOP_OR_DOWN_DISCUSS; }, +/* harmony export */ um: function() { return /* binding */ ON_TAB_TO_SPACE; }, +/* harmony export */ vm: function() { return /* binding */ SHOW_PICTURE_VIEW; }, +/* harmony export */ wQ: function() { return /* binding */ MOVE_Y; }, +/* harmony export */ wj: function() { return /* binding */ EVAL_CHOOSE_START; }, +/* harmony export */ wt: function() { return /* binding */ SHOW_ANSWER_LOADING; }, +/* harmony export */ yS: function() { return /* binding */ SET_ACTION_TYPE; }, +/* harmony export */ yi: function() { return /* binding */ FETCH_TASK_SUCCESS; }, +/* harmony export */ ym: function() { return /* binding */ SELECT_UNLOCK_ANSWER; }, +/* harmony export */ z2: function() { return /* binding */ UPDATE_TASK_DATA; } +/* harmony export */ }); +/* unused harmony exports CREATE_DISCUSS, SHOW_REP_LOADING, SET_REP_PATH, SET_EDITOR_SETTING, SHOW_PATH_LIST, HIDE_PATH_LIST, SET_TAB_INDEX, SET_SSH_TABS, SET_SSH_CONFIGDATA, SET_SSH_CONFIGDATAARR */ +var FETCH_TASK_START = 'FETCH_TASK_START'; +var FETCH_TASK_FAILURE = 'FETCH_TASK_FAILURE'; +var FETCH_TASK_SUCCESS = 'FETCH_TASK_SUCCESS'; +var UPDATE_TASK_DATA = 'UPDATE_TASK_DATA'; +var HIDE_EVALUATE_RESULT = 'HIDE_EVALUATE_RESULT'; +var SHOW_EVALUATE_RESULT = 'SHOW_EVALUATE_RESULT'; +var UPDATE_TIMESTRAP = 'UPDATE_TIMESTRAP'; +var MOVE_X = 'MOVE_X'; +var MOVE_Y = 'MOVE_Y'; +var TRIGGER_RIGHT_PANEL_MASK = 'TRIGGER_RIGHT_PANEL_MASK '; + +//left_panel_action +var SET_ACTIVE_INDEX = 'SET_ACTIVE_INDEX'; +var GET_TASK_LIST = 'GET_TASK_LIST'; +var SHOW_TASK_LIST = 'SHOW_TASK_LIST'; +var HIDE_TASK_LIST = 'HIDE_TASK_LIST'; +var SET_TASK_STAR = 'SET_TASK_STAR'; +var TRIGGER_ENLARGE_UNITY3D = 'TRIGGER_ENLARGE_UNITY3D '; +var TRIGGER_TAB_FIXED = 'TRIGGER_TAB_FIXED '; + +//discuss action +var GET_DISCUSSES = 'GET_DISCUSSES'; +var SHOW_DISCUSSES_LOADING = 'SHOW_DISCUSSES_LOADING'; +var TOP_OR_DOWN_DISCUSS = 'TOP_OR_DOWN_DISCUSS'; +var PLUS_DISCUSS = 'PLUS_DISCUSS'; +var SET_ACTION_TYPE = 'SET_ACTION_TYPE'; +var SHOW_REWARD_DIALOG = 'SHOW_REWARD_DIALOG'; +var CANCEL_REWARD_DIALOG = 'CANCEL_REWARD_DIALOG'; +var SET_REWARD = 'SET_REWARD'; +var ACTIVE_DISCUSS_INDEX = 'ACTIVE_DISCUSS_INDEX'; +var CREATE_DISCUSS = 'CREATE_DISCUSS'; +var DISABLE_DISCUSS = 'DISABLE_DISCUSS'; + +//answer_panel_action +var SHOW_ANSWER_LOADING = 'SHOW_ANSWER_LOADING'; +var FETCH_ANSWER_INFO = 'FETCH_ANSWER_INFO'; +var HIDE_TIP_MODAL = 'HIGH_TIP_MODAL'; +var SHOW_TIP_MODAL = 'SHOW_TIP_MODAL'; +var SELECT_UNLOCK_ANSWER = 'SELECT_UNLOCK_ANSWER'; + +//choose_repository_action +var SET_CHOOSE_ANSWERS = 'SET_CHOOSE_ANSWERS'; +var EVAL_CHOOSE_START = 'EVAL_CHOOSE_START'; +var EVAL_CHOOSE_END = 'EVAL_CHOOSE_END'; + +//code_repository_action +var SHOW_REP_LOADING = 'SHOW_REP_loading'; +var FETCH_REP_CONTENT = 'FETCH_REP_CONTENT'; +var EDIT_REP_CODE = 'EDIT_REP_CONTENT'; +var SET_REP_PATH = 'SET_REP_PATH'; +var SHOW_EVALUATE_LOADING = 'SHOW_EVALUATE_LOADING'; +var HIDE_EVALUATE_LOADING = 'HIDE_EVALUATE_LOADING'; +var SET_EVALUATE_MESSAGE = 'SET_EVALUATE_MESSAGE'; +var SET_SHOW_DIR = 'SET_SHOW_DIR'; +var SET_EDITOR_SETTING = 'SET_EDITOR_SETTING'; +var SET_EDITOR_THEME = 'SET_EDITOR_THEME'; +var SET_EDITOR_FONTSIZE = 'SET_EDITOR_FONTSIZE'; +var SET_REPOS = 'SET_REPOS'; +var SHOW_PATH_LIST = 'SHOW_PATH_LIST'; +var HIDE_PATH_LIST = 'HIDE_PATH_LIST'; +var HIDE_PICTURE_VIEW = 'HIDE_PICTURE_VIEW'; +var SHOW_PICTURE_VIEW = 'SHOW_PICTURE_VIEW'; +var SHOW_NOTICE = 'SHOW_NOTICE'; +var HIDE_NOTICE = 'HIDE_NOTICE'; +var SET_TAB_INDEX = 'SET_TAB_INDEX'; +var SET_SSH_TABS = 'SET_SSH_TABS'; +var SET_SSH_CONFIGDATA = 'SET_SSH_CONFIGDATA'; +var SET_SSH_CONFIGDATAARR = 'SET_SSH_CONFIGDATAARR'; +var SET_VNC_LOADING = 'SET_VNC_LOADING '; +var ON_TAB_TO_SPACE = 'ON_TAB_TO_SPACE '; +var ON_AUTO_FORMAT = 'ON_AUTO_FORMAT '; + +/***/ }), /***/ 45865: /*!**********************************************!*\ @@ -75,6 +209,620 @@ var AsyncButton = function AsyncButton(_ref) { /***/ }), +/***/ 71769: +/*!************************************************************!*\ + !*** ./src/components/ChunkedUpload/index.tsx + 1 modules ***! + \************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ components_ChunkedUpload; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js +var regeneratorRuntime = __webpack_require__(7557); +var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js +var objectSpread2 = __webpack_require__(82242); +var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(41498); +var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(79800); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./src/utils/fetch.ts +var fetch = __webpack_require__(35325); +// EXTERNAL MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/v4.js + 4 modules +var v4 = __webpack_require__(1012); +// 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); +;// CONCATENATED MODULE: ./src/components/ChunkedUpload/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var ChunkedUploadmodules = ({"upload":"upload___jpwPD"}); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/ChunkedUpload/index.tsx + + + + + + + + + + + +var ChunkedUpload = function ChunkedUpload(_ref, ref) { + var _ref$chunkSize = _ref.chunkSize, + chunkSize = _ref$chunkSize === void 0 ? 1024 * 1024 * 2 : _ref$chunkSize, + _ref$options = _ref.options, + options = _ref$options === void 0 ? {} : _ref$options, + onCancel = _ref.onCancel, + onComplete = _ref.onComplete, + onError = _ref.onError, + onProgress = _ref.onProgress, + onBefore = _ref.onBefore, + onBeginInitFile = _ref.onBeginInitFile, + children = _ref.children, + accept = _ref.accept, + className = _ref.className, + _ref$style = _ref.style, + style = _ref$style === void 0 ? {} : _ref$style, + _ref$concurrency = _ref.concurrency, + concurrency = _ref$concurrency === void 0 ? 4 : _ref$concurrency; + var _useState = (0,_react_17_0_2_react.useState)('ready'), + _useState2 = slicedToArray_default()(_useState, 2), + uploadStatus = _useState2[0], + setUploadStatus = _useState2[1]; + + //组件内调试 + var _useState3 = (0,_react_17_0_2_react.useState)(0), + _useState4 = slicedToArray_default()(_useState3, 2), + progress = _useState4[0], + setProgress = _useState4[1]; + var _useState5 = (0,_react_17_0_2_react.useState)(''), + _useState6 = slicedToArray_default()(_useState5, 2), + uploadStatusMessage = _useState6[0], + setUploadStatusMessage = _useState6[1]; + var _useState7 = (0,_react_17_0_2_react.useState)(null), + _useState8 = slicedToArray_default()(_useState7, 2), + file = _useState8[0], + setFile = _useState8[1]; + var abortControllerRef = (0,_react_17_0_2_react.useRef)(null); + var domId = (0,_react_17_0_2_react.useRef)((0,v4/* default */.Z)()); + var cancelStatus = (0,_react_17_0_2_react.useRef)(false); + (0,_react_17_0_2_react.useImperativeHandle)(ref, function () { + return { + cancel: cancel, + file: file, + uploadStatus: uploadStatus + }; + }); + var clearInput = function clearInput() { + var input = document.getElementById(domId.current); + if (input) { + input.value = ''; + } + }; + var handleUpload = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(file) { + var fileSize, totalChunks, res, uploadId, promises, percent, _loop, i, completed, step, _promises$slice, subTasks, p, uploadRes; + return regeneratorRuntime_default()().wrap(function _callee$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + if (!(uploadStatus === 'uploading')) { + _context2.next = 2; + break; + } + return _context2.abrupt("return"); + case 2: + if (onBeginInitFile) { + onBeginInitFile(file); + } + fileSize = file.size; + totalChunks = Math.ceil(fileSize / chunkSize); + cancelStatus.current = false; + setUploadStatus('uploading'); + setProgress(0); + setUploadStatusMessage(''); + _context2.prev = 9; + _context2.next = 12; + return (0,fetch/* default */.ZP)("/api/attachments/multipart_upload_start", { + method: 'POST', + body: objectSpread2_default()({ + fileName: file.name, + chunkCount: totalChunks + }, options) + }); + case 12: + res = _context2.sent; + if (!(cancelStatus.current || (res === null || res === void 0 ? void 0 : res.status) !== 0)) { + _context2.next = 15; + break; + } + throw new Error(); + case 15: + uploadId = res.upload_id; + abortControllerRef.current = new AbortController(); + promises = []; + percent = 0; + _loop = /*#__PURE__*/regeneratorRuntime_default()().mark(function _loop() { + var start, end, chunk, formData, key; + return regeneratorRuntime_default()().wrap(function _loop$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + start = i * chunkSize; + end = Math.min(start + chunkSize, fileSize); + chunk = file.slice(start, end); + formData = new FormData(); + formData.append('chunk', chunk); + formData.append('fileName', file.name); + formData.append('chunkIndex', (i + 1).toString()); + formData.append('uploadId', uploadId); + for (key in options) { + if (Object.prototype.hasOwnProperty.call(options, key)) { + formData.append(key, options[key]); + } + } + promises.push(function () { + return (0,fetch/* default */.ZP)("/api/attachments/multipart_upload", { + method: 'POST', + body: formData, + signal: abortControllerRef.current.signal + }, true).then(function (res) { + console.log(res, 444); + percent++; + var currentProgress = Math.round(percent / totalChunks * 100); + setProgress(currentProgress); + if (onProgress) { + onProgress(objectSpread2_default()(objectSpread2_default()({}, res), {}, { + file: file, + percent: currentProgress + })); + } + }); + }); + case 10: + case "end": + return _context.stop(); + } + }, _loop); + }); + i = 0; + case 21: + if (!(i < totalChunks)) { + _context2.next = 26; + break; + } + return _context2.delegateYield(_loop(), "t0", 23); + case 23: + i++; + _context2.next = 21; + break; + case 26: + completed = 0; + step = concurrency; + console.log(promises, 'promises'); + case 29: + if (!(completed < promises.length)) { + _context2.next = 38; + break; + } + subTasks = (_promises$slice = promises.slice(completed, completed + step)) === null || _promises$slice === void 0 ? void 0 : _promises$slice.map(function (t) { + return t(); + }); + if (!(subTasks.length > 0)) { + _context2.next = 36; + break; + } + _context2.next = 34; + return Promise.all(subTasks); + case 34: + p = _context2.sent; + completed += step; + case 36: + _context2.next = 29; + break; + case 38: + _context2.next = 40; + return (0,fetch/* default */.ZP)("/api/attachments/multipart_upload_end", { + method: 'POST', + body: objectSpread2_default()({ + fileName: file.name, + chunkCount: totalChunks, + uploadId: uploadId + }, options) + }); + case 40: + uploadRes = _context2.sent; + if (!!uploadRes.object) { + setUploadStatus('success'); + clearInput(); + if (onComplete) { + onComplete(objectSpread2_default()(objectSpread2_default()({}, uploadRes), {}, { + file: file, + percent: 100 + })); + } + } else { + setUploadStatus('error'); + setUploadStatusMessage('上传失败,请稍后重试'); + clearInput(); + if (onError) { + onError(file.name); + } + } + _context2.next = 50; + break; + case 44: + _context2.prev = 44; + _context2.t1 = _context2["catch"](9); + setUploadStatus('error'); + setUploadStatusMessage('上传失败,请稍后重试'); + clearInput(); + if (onError) { + onError(file.name); + } + case 50: + case "end": + return _context2.stop(); + } + }, _callee, null, [[9, 44]]); + })); + return function handleUpload(_x) { + return _ref2.apply(this, arguments); + }; + }(); + var cancel = (0,_react_17_0_2_react.useCallback)(function () { + cancelStatus.current = true; + if (abortControllerRef.current) { + abortControllerRef.current.abort(); + if (onCancel) { + onCancel(); + } + } + }, [onCancel]); + var handleChangeUpload = function handleChangeUpload(e) { + var _e$target; + var file = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 || (_e$target = _e$target.files) === null || _e$target === void 0 ? void 0 : _e$target[0]; + setFile(file); + uploadStatus = 'ready'; + if (!file) { + return; + } + if (onBefore) { + var bool = onBefore(file); + if (!bool) { + handleUpload(file); + } + clearInput(); + return; + } + handleUpload(file); + }; + return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, { + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", { + type: "file", + id: domId.current, + style: { + display: 'none' + }, + onChange: handleChangeUpload, + accept: accept + }), /*#__PURE__*/(0,jsx_runtime.jsx)("label", { + className: _classnames_2_5_1_classnames_default()(ChunkedUploadmodules.upload, className), + htmlFor: domId.current, + style: style, + children: children + })] + }); +}; +/* harmony default export */ var components_ChunkedUpload = (/*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(ChunkedUpload)); + +/***/ }), + +/***/ 70358: +/*!**********************************************************!*\ + !*** ./src/components/CoverUpload/index.tsx + 1 modules ***! + \**********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ components_CoverUpload; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(79800); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// 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/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules +var message = __webpack_require__(8591); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules +var upload = __webpack_require__(54580); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules +var UploadOutlined = __webpack_require__(32050); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules +var CloseCircleFilled = __webpack_require__(19248); +// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules +var env = __webpack_require__(67390); +;// CONCATENATED MODULE: ./src/components/CoverUpload/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var CoverUploadmodules = ({"img":"img___BgL9D"}); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/CoverUpload/index.tsx + + + + + + + + +var CoverUpload = function CoverUpload(_ref) { + var value = _ref.value, + onChange = _ref.onChange, + getFileProgress = _ref.getFileProgress; + var _useState = (0,_react_17_0_2_react.useState)(false), + _useState2 = slicedToArray_default()(_useState, 2), + imgLoading = _useState2[0], + setImgLoading = _useState2[1]; + var uploadButton = /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { + loading: imgLoading, + icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}), + children: "\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6" + }); + var renderImg = function renderImg() { + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: CoverUploadmodules.img, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: env/* default */.Z.API_SERVER + "/api/attachments/" + value, + alt: "avatar", + style: { + width: 288 + } + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: /*#__PURE__*/(0,jsx_runtime.jsx)(CloseCircleFilled/* default */.Z, { + onClick: function onClick() { + return onChange(''); + }, + style: { + fontSize: '16px', + color: 'red' + } + }) + })] + }); + }; + var handleChange = function handleChange(info) { + if (getFileProgress) { + getFileProgress(info); + } + if (info.file.status === 'uploading') { + setImgLoading(true); + return; + } + if (info.file.status === 'done') { + var _info$file, _info$file3; + setImgLoading(false); + if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) { + var _info$file2; + message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message); + // onChange() + return; + } + onChange(info === null || info === void 0 || (_info$file3 = info.file) === null || _info$file3 === void 0 || (_info$file3 = _info$file3.response) === null || _info$file3 === void 0 ? void 0 : _info$file3.id); + } + }; + return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, { + children: value ? renderImg() : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, { + withCredentials: true, + name: "file", + showUploadList: false, + action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"), + onChange: handleChange, + accept: "image/*", + children: uploadButton + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "mt20 c-light-black", + children: "\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B" + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "c-light-black", + children: "\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002" + })] + }) + }); +}; +/* harmony default export */ var components_CoverUpload = (CoverUpload); + +/***/ }), + +/***/ 13887: +/*!******************************************************!*\ + !*** ./src/components/Spinner/index.tsx + 1 modules ***! + \******************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ Spinner; } +}); + +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./src/.umi-production/exports.ts +var _umi_production_exports = __webpack_require__(80184); +;// CONCATENATED MODULE: ./src/components/Spinner/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var Spinnermodules = ({"ldsRing":"ldsRing___mpBZC","idsRingWrapper":"idsRingWrapper___Of9_n","ldsring":"ldsring___o0w2t"}); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/Spinner/index.tsx + + + + + +/* harmony default export */ var Spinner = (function (_ref) { + var message = _ref.message, + className = _ref.className, + children = _ref.children, + _ref$style = _ref.style, + style = _ref$style === void 0 ? {} : _ref$style; + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "".concat(Spinnermodules.idsRingWrapper, " ").concat(className), + children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: Spinnermodules.ldsRing, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})] + }), message ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", { + style: style, + children: message + }) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})] + }); +}); + +/***/ }), + +/***/ 16854: +/*!************************************************************!*\ + !*** ./src/components/image-preview/index.tsx + 1 modules ***! + \************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ image_preview; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(79800); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +;// CONCATENATED MODULE: ./src/components/image-preview/index.less +// extracted by mini-css-extract-plugin + +// EXTERNAL MODULE: ./src/components/mediator.js +var mediator = __webpack_require__(1499); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules +var ReloadOutlined = __webpack_require__(32398); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules +var DownloadOutlined = __webpack_require__(41464); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules +var CloseOutlined = __webpack_require__(99267); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/image-preview/index.tsx + + + + + + + + +/* harmony default export */ var image_preview = (function () { + var _useState = (0,_react_17_0_2_react.useState)(''), + _useState2 = slicedToArray_default()(_useState, 2), + url = _useState2[0], + setUrl = _useState2[1]; + var _useState3 = (0,_react_17_0_2_react.useState)(0), + _useState4 = slicedToArray_default()(_useState3, 2), + deg = _useState4[0], + setDeg = _useState4[1]; + var saveUrl = (0,_react_17_0_2_react.useRef)(''); + (0,_react_17_0_2_react.useEffect)(function () { + var unSub = mediator/* default */.Z.subscribe('preview-image', function (value) { + setUrl(value); + // window.document.body + // document.body.style.height='100%' + document.body.style.overflow = 'hidden'; + }); + return unSub; + }, []); + (0,_react_17_0_2_react.useEffect)(function () { + document.addEventListener('keydown', onViewEscClose); + return function () { + document.removeEventListener('keydown', onViewEscClose); + }; + }, []); + (0,_react_17_0_2_react.useEffect)(function () { + saveUrl.current = url; + }, [url]); + function onViewEscClose(e) { + if (e.keyCode == 27 && saveUrl.current) { + onClose(); + } + } + + // https://data.educoder.net/api/attachments/1571649 + function onClose() { + // document.body.style.height='100%' + document.body.style.overflow = 'auto'; + setUrl(''); + } + function onRotate() { + setDeg(deg + 90); + } + var maskRef = (0,_react_17_0_2_react.useRef)(); + var previewWrapperRef = (0,_react_17_0_2_react.useRef)(); + var handleMaskClick = function handleMaskClick(e) { + if (e.nativeEvent.target === maskRef.current || e.nativeEvent.target === previewWrapperRef.current) { + onClose(); + } + }; + return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, { + children: !url ? null : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "image-preview-container", + ref: maskRef, + onClick: handleMaskClick, + children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "button-group", + children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { + onClick: onRotate, + children: ["\u65CB\u8F6C", /*#__PURE__*/(0,jsx_runtime.jsx)(ReloadOutlined/* default */.Z, {})] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { + href: url, + children: ["\u4E0B\u8F7D", /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadOutlined/* default */.Z, {})] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { + onClick: onClose, + children: ["\u5173\u95ED", /*#__PURE__*/(0,jsx_runtime.jsx)(CloseOutlined/* default */.Z, {})] + })] + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "preview-wrp-group", + ref: previewWrapperRef, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + className: "image-preview", + src: url, + alt: "\u9884\u89C8\u5927\u56FE", + style: { + transform: "rotate(".concat(deg, "deg)") + } + }) + })] + }) + }); +}); + +/***/ }), + /***/ 19484: /*!**********************************************************************!*\ !*** ./src/pages/Paths/Detail/components/Sort/index.tsx + 1 modules ***! @@ -1332,6 +2080,471 @@ var SendToClassModal = function SendToClassModal(_ref) { }; })(SendToClassModal)); +/***/ }), + +/***/ 62234: +/*!*******************************************************************************!*\ + !*** ./src/pages/Video/Detail/components/AddVideoModal/index.tsx + 1 modules ***! + \*******************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ components_AddVideoModal; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js +var toConsumableArray = __webpack_require__(37205); +var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js +var regeneratorRuntime = __webpack_require__(7557); +var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js +var objectSpread2 = __webpack_require__(82242); +var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(41498); +var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(79800); +var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./src/.umi-production/exports.ts +var _umi_production_exports = __webpack_require__(80184); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules +var input = __webpack_require__(10249); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules +var es_form = __webpack_require__(78241); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules +var message = __webpack_require__(8591); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules +var modal = __webpack_require__(43418); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/progress/index.js + 13 modules +var progress = __webpack_require__(93948); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules +var tag = __webpack_require__(12563); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules +var es_checkbox = __webpack_require__(24905); +;// CONCATENATED MODULE: ./src/pages/Video/Detail/components/AddVideoModal/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var AddVideoModalmodules = ({"modal":"modal___EKlPQ","uploadWrap":"uploadWrap___YGxav","upload":"upload___ouqG9","uploadLink":"uploadLink___nuif6","fileProgress":"fileProgress___tf4qy","fileCancel":"fileCancel___Bh3Wh","videoName":"videoName___Ra0NM","contentItem":"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"}); +// EXTERNAL MODULE: ./src/components/CoverUpload/index.tsx + 1 modules +var CoverUpload = __webpack_require__(70358); +// EXTERNAL MODULE: ./src/utils/authority.ts +var authority = __webpack_require__(13277); +// EXTERNAL MODULE: ./src/components/ChunkedUpload/index.tsx + 1 modules +var ChunkedUpload = __webpack_require__(71769); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/pages/Video/Detail/components/AddVideoModal/index.tsx + + + + + + + + + + + + + + + +var TextArea = input/* default */.Z.TextArea; +var MAX_FILE_SIZE = 1024; +var AddVideoModal = function AddVideoModal(_ref) { + var _user$userInfo, _user$userInfo2; + var user = _ref.user, + globalSetting = _ref.globalSetting, + loading = _ref.loading, + dispatch = _ref.dispatch, + visible = _ref.visible, + editData = _ref.editData, + _ref$onCancel = _ref.onCancel, + onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel, + _ref$onOk = _ref.onOk, + onOk = _ref$onOk === void 0 ? function () {} : _ref$onOk, + _ref$queryParams = _ref.queryParams, + queryParams = _ref$queryParams === void 0 ? {} : _ref$queryParams; + var params = (0,_umi_production_exports.useParams)(); + var _Form$useForm = es_form/* default */.Z.useForm(), + _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1), + form = _Form$useForm2[0]; + var _useState = (0,_react_17_0_2_react.useState)([]), + _useState2 = slicedToArray_default()(_useState, 2), + videoList = _useState2[0], + setVideoList = _useState2[1]; + var _useState3 = (0,_react_17_0_2_react.useState)(false), + _useState4 = slicedToArray_default()(_useState3, 2), + isLoading = _useState4[0], + setIsLoading = _useState4[1]; + var uploader = (0,_react_17_0_2_react.useRef)(); + var _useState5 = (0,_react_17_0_2_react.useState)(), + _useState6 = slicedToArray_default()(_useState5, 2), + link = _useState6[0], + setLink = _useState6[1]; + var _useState7 = (0,_react_17_0_2_react.useState)(false), + _useState8 = slicedToArray_default()(_useState7, 2), + showLink = _useState8[0], + setShowLink = _useState8[1]; + var _useState9 = (0,_react_17_0_2_react.useState)(false), + _useState10 = slicedToArray_default()(_useState9, 2), + isRequestLoading = _useState10[0], + setIsRequestLoading = _useState10[1]; + var sizeNum = (0,authority/* isSuperAdmins */.Ny)() ? 3 : 1; + (0,_react_17_0_2_react.useEffect)(function () { + var _editData$video_item, _editData$video_item2, _editData$tags, _editData$video_item3, _editData$video_item4; + if (!visible) { + return; + } + if (!editData) { + return; + } + setShowLink(editData.is_link); + setLink(editData.link); + !editData.is_link && setVideoList([{ + name: editData === null || editData === void 0 || (_editData$video_item = editData.video_item) === null || _editData$video_item === void 0 ? void 0 : _editData$video_item.file_name, + loaded: 100, + videoId: editData === null || editData === void 0 || (_editData$video_item2 = editData.video_item) === null || _editData$video_item2 === void 0 ? void 0 : _editData$video_item2.video_id + }]); + setTagslist((editData === null || editData === void 0 || (_editData$tags = editData.tags) === null || _editData$tags === void 0 ? void 0 : _editData$tags.map(function (item) { + return item === null || item === void 0 ? void 0 : item.name; + })) || []); + form.setFieldsValue({ + name: editData.name, + description: editData.description, + attachment_id: editData === null || editData === void 0 || (_editData$video_item3 = editData.video_item) === null || _editData$video_item3 === void 0 ? void 0 : _editData$video_item3.attachment_id, + allow_skip: editData === null || editData === void 0 || (_editData$video_item4 = editData.video_item) === null || _editData$video_item4 === void 0 ? void 0 : _editData$video_item4.allow_skip + }); + }, [editData, visible]); + var handleChangeUpload = function handleChangeUpload(file) { + setShowLink(false); + var fileName = file.name.toLowerCase(); + if (fileName && fileName.indexOf('.avi') == -1 && fileName.indexOf('.flv') == -1 && fileName.indexOf('.f4v') == -1 && fileName.indexOf('.m4v') == -1 && fileName.indexOf('.mov') == -1 && fileName.indexOf('.mp4') == -1 && fileName.indexOf('.rmvb') == -1 && fileName.indexOf('.swf') == -1 && fileName.indexOf('.webm') == -1 && fileName.indexOf('.wmv') == -1) { + message/* default */.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"); + return true; + } + if (file.size > MAX_FILE_SIZE * sizeNum * 1024 * 1024) { + message/* default */.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(sizeNum, "G")); + return true; + } + if (videoList !== null && videoList !== void 0 && videoList.find(function (item) { + return item.name === file.name; + })) { + message/* default */.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"); + return true; + } + return false; + }; + var handleRemove = function handleRemove(name, isSuccess) { + modal/* default */.Z.confirm({ + title: '提示', + centered: true, + okText: '确定', + cancelText: '取消', + content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "tc", + children: ["\u60A8\u786E\u8BA4\u8981", isSuccess ? '删除' : '取消上传', "\u8BE5\u89C6\u9891\u5417\uFF1F"] + }), + onOk: function onOk() { + if (isSuccess) { + setVideoList([]); + } else { + uploader.current.cancel(); + setVideoList([]); + } + } + }); + }; + var handleOk = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { + var video, res; + return regeneratorRuntime_default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + _context.next = 2; + return form.validateFields(); + case 2: + if (!(!showLink && !(videoList !== null && videoList !== void 0 && videoList.length) || showLink && !link)) { + _context.next = 5; + break; + } + message/* default */.ZP.info('请先上传视频或者添加外链'); + return _context.abrupt("return"); + case 5: + setIsRequestLoading(true); + video = showLink ? { + link: link + } : { + video_id: videoList === null || videoList === void 0 ? void 0 : videoList[0].videoId + }; + _context.next = 9; + return onOk(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, video), queryParams), { + name: form.getFieldValue('name'), + attachment_id: form.getFieldValue('attachment_id'), + description: form.getFieldValue('description'), + tags: tagsList, + allow_skip: form.getFieldValue('allow_skip') + })); + case 9: + res = _context.sent; + setIsRequestLoading(false); + if (res.id) { + handleClear(); + } + case 12: + case "end": + return _context.stop(); + } + }, _callee); + })); + return function handleOk() { + return _ref2.apply(this, arguments); + }; + }(); + var handleClear = function handleClear() { + form.resetFields(); + setVideoList([]); + setLink(null); + setTagslist([]); + setShowLink(null); + }; + var handleCancel = function handleCancel() { + onCancel(); + handleClear(); + }; + var renderContent = function renderContent() { + var _videoList$, _videoList$2, _videoList$3, _videoList$4, _videoList$7; + return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { + children: [!showLink && !!(videoList !== null && videoList !== void 0 && videoList.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: AddVideoModalmodules.fileProgress, + children: [(videoList === null || videoList === void 0 || (_videoList$ = videoList[0]) === null || _videoList$ === void 0 ? void 0 : _videoList$.loaded) == 100 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "".concat(AddVideoModalmodules.videoName, " font14"), + children: videoList === null || videoList === void 0 || (_videoList$2 = videoList[0]) === null || _videoList$2 === void 0 ? void 0 : _videoList$2.name + }) : /*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, { + style: { + width: '80%' + }, + percent: videoList === null || videoList === void 0 || (_videoList$3 = videoList[0]) === null || _videoList$3 === void 0 ? void 0 : _videoList$3.loaded, + status: (videoList === null || videoList === void 0 || (_videoList$4 = videoList[0]) === null || _videoList$4 === void 0 ? void 0 : _videoList$4.loaded) == 100 ? 'normal' : 'active' + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: AddVideoModalmodules.fileCancel, + onClick: function onClick() { + var _videoList$5, _videoList$6; + return handleRemove(videoList === null || videoList === void 0 || (_videoList$5 = videoList[0]) === null || _videoList$5 === void 0 ? void 0 : _videoList$5.name, (videoList === null || videoList === void 0 || (_videoList$6 = videoList[0]) === null || _videoList$6 === void 0 ? void 0 : _videoList$6.loaded) == 100); + }, + children: (videoList === null || videoList === void 0 || (_videoList$7 = videoList[0]) === null || _videoList$7 === void 0 ? void 0 : _videoList$7.loaded) === 100 ? '删除' : '取消上传' + })] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: AddVideoModalmodules.uploadWrap, + style: { + display: videoList !== null && videoList !== void 0 && videoList.length ? 'none' : 'flex' + }, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ChunkedUpload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { + ref: uploader, + children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: AddVideoModalmodules.upload, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-shangchuanshipin1 mr5" + }), "\u4E0A\u4F20\u89C6\u9891"] + }) + })), /*#__PURE__*/(0,jsx_runtime.jsxs)("label", { + className: "".concat(AddVideoModalmodules.upload, " ").concat(AddVideoModalmodules.uploadLink), + onClick: function onClick() { + return setShowLink(true); + }, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-lianjie1 mr5" + }), "\u6DFB\u52A0\u5916\u94FE"] + })] + }), showLink && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { + className: "mt5", + placeholder: "\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5", + value: link, + onChange: function onChange(e) { + return setLink(e.target.value); + } + })] + }); + }; + var _useState11 = (0,_react_17_0_2_react.useState)([]), + _useState12 = slicedToArray_default()(_useState11, 2), + tagsList = _useState12[0], + setTagslist = _useState12[1]; + var addTag = function addTag(e) { + if (e.key == 'Enter') { + var tag = form.getFieldValue('tag'); + form.setFieldsValue({ + tag: '' + }); + if (!tag) { + message/* default */.ZP.info('标签不能为空'); + return; + } + if (tagsList.filter(function (item) { + return item === tag; + }).length > 0) { + message/* default */.ZP.info('已有相同名称标签'); + return; + } + tagsList.push(tag); + setTagslist(toConsumableArray_default()(tagsList)); + } + }; + var tagCloseFn = function tagCloseFn(e, str) { + e.preventDefault(); + // const index = tagsList.findIndex((key:string)=>str===str); + // tagsList.splice(index,1) + setTagslist(toConsumableArray_default()(tagsList.filter(function (item) { + return item != str; + }))); + }; + var uploadProps = { + accept: '.mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*', + onBefore: handleChangeUpload, + onBeginInitFile: function onBeginInitFile(v) { + setVideoList([{ + name: v.filename, + loaded: 0 + }]); + }, + onComplete: function onComplete(v) { + setVideoList([{ + name: v.filename, + loaded: v.percent, + videoId: v.id + }]); + }, + onError: function onError() { + setVideoList([]); + }, + onProgress: function onProgress(v) { + setVideoList([{ + name: v.filename, + loaded: v.percent + }]); + }, + chunkSize: 1024 * 1024 * 2, + // 2MB + options: { + user_id: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id + } + }; + return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { + centered: true, + maskClosable: false, + title: editData ? '编辑视频项目' : '新建视频项目', + width: 740, + className: AddVideoModalmodules.modal, + open: visible, + confirmLoading: isRequestLoading, + onOk: handleOk, + onCancel: handleCancel, + children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, { + form: form, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + label: "\u9879\u76EE\u540D\u79F0", + name: "name", + rules: [{ + required: true, + message: '请输入项目名称' + }], + children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { + maxLength: 40, + placeholder: "\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0" + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + label: "\u9879\u76EE\u5185\u5BB9", + name: "content", + className: AddVideoModalmodules.contentItem, + children: renderContent() + }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + name: "attachment_id", + label: "\u4E0A\u4F20\u5C01\u9762\u56FE:", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(CoverUpload/* default */.Z, { + getFileProgress: function getFileProgress(info) { + if (info.file.status === 'uploading') { + setIsRequestLoading(true); + return; + } + if (info.file.status === 'done') { + setIsRequestLoading(false); + } + } + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + label: "\u9879\u76EE\u7B80\u4ECB", + name: "description", + className: "ml8", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, { + rows: 5, + maxLength: 800, + placeholder: "\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57" + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + label: "\u77E5\u8BC6\u6807\u7B7E", + name: "tag", + className: "ml8", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, { + onKeyUp: addTag + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: AddVideoModalmodules['tagsList-content'], + children: tagsList.map(function (item, index) { + return /*#__PURE__*/(0,jsx_runtime.jsx)(tag/* default */.Z, { + closable: true, + onClose: function onClose(e) { + tagCloseFn(e, item); + }, + children: item + }, index + item); + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, { + label: "\u64AD\u653E\u8BBE\u7F6E", + name: "allow_skip", + valuePropName: "checked", + className: "ml8", + initialValue: true, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, { + children: "\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E" + }) + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "c-grey-999", + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: "\u6CE8\u610F\uFF1A" + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: ["1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F", /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, { + to: "/users/".concat((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/videos/protocol"), + target: "_blank", + className: AddVideoModalmodules.colorBlue, + children: "\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE" + }), "\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: ["2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7", sizeNum, "G\uFF1B"] + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: "3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B" + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + children: "4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002" + })] + })] + }) + }); +}; +/* harmony default export */ var components_AddVideoModal = ((0,_umi_production_exports.connect)(function (_ref3) { + var user = _ref3.user, + loading = _ref3.loading, + globalSetting = _ref3.globalSetting; + return { + user: user, + globalSetting: globalSetting, + loading: loading + }; +})(AddVideoModal)); + /***/ }) }]); \ No newline at end of file diff --git a/96114.8ba652a8.async.js b/96114.ac0f7c99.async.js similarity index 99% rename from 96114.8ba652a8.async.js rename to 96114.ac0f7c99.async.js index 7ca0b43f1a..2e1e459969 100644 --- a/96114.8ba652a8.async.js +++ b/96114.ac0f7c99.async.js @@ -559,7 +559,11 @@ var CustomTagsTwo = function CustomTagsTwo(_ref) { className: "".concat(CustomTagsTwomodules.title, " ").concat(onTitleChange ? "current" : ""), children: title }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont ".concat(isShow ? 'icon-yizhankai' : 'icon-weizhankai', " font8 current"), + className: "iconfont ".concat(isShow ? 'icon-yizhankai' : 'icon-weizhankai', " current"), + style: { + color: '#727C95', + fontSize: isShow ? 8 : 10 + }, onClick: function onClick() { return setIsShow(!isShow); } diff --git a/index.html b/index.html index 4386a04df2..cc25e0c382 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ - +
@@ -26,7 +26,7 @@ display: block !important; } - +