diff --git a/29069.async.js b/13851.async.js similarity index 95% rename from 29069.async.js rename to 13851.async.js index b20bf328b5..6de762e696 100644 --- a/29069.async.js +++ b/13851.async.js @@ -1,4 +1,133 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[29069],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[13851,76824],{ + +/***/ 75769: +/*!*******************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***! + \*******************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_CheckOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(26508); +// 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.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js +// This icon file is generated automatically. +var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" }; +/* harmony default export */ var asn_CheckOutlined = (CheckOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(91851); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_CheckOutlined + })); +}; +if (false) {} +/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined)); + +/***/ }), + +/***/ 42884: +/*!******************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***! + \******************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_DownOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(26508); +// 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.3.1@@ant-design/icons-svg/es/asn/DownOutlined.js +// This icon file is generated automatically. +var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" }; +/* harmony default export */ var asn_DownOutlined = (DownOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(91851); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var DownOutlined_DownOutlined = function DownOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_DownOutlined + })); +}; +if (false) {} +/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined)); + +/***/ }), + +/***/ 15997: +/*!*****************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***! + \*****************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_EyeOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(26508); +// 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.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(91851); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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 + })); +}; +if (false) {} +/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined)); + +/***/ }), /***/ 96402: /*!********************************************************************************************************!*\ @@ -25543,6 +25672,1140 @@ if (false) {} ]); +/***/ }), + +/***/ 56986: +/*!*************************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/_util/PurePanel.js ***! + \*************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ genPurePanel; } +/* harmony export */ }); +/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 41760); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301); +/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 16182); +/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 48938); + + + +/* istanbul ignore next */ +function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) { + return function PurePanel(props) { + const { + prefixCls: customizePrefixCls, + style + } = props; + const holderRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null); + const [popupHeight, setPopupHeight] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0); + const [popupWidth, setPopupWidth] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0); + const [open, setOpen] = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(false, { + value: props.open + }); + const { + getPrefixCls + } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_); + const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls); + react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { + // We do not care about ssr + setOpen(true); + if (typeof ResizeObserver !== 'undefined') { + const resizeObserver = new ResizeObserver(entries => { + const element = entries[0].target; + setPopupHeight(element.offsetHeight + 8); + setPopupWidth(element.offsetWidth); + }); + const interval = setInterval(() => { + var _a; + const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`; + const popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls); + if (popup) { + clearInterval(interval); + resizeObserver.observe(popup); + } + }, 10); + return () => { + clearInterval(interval); + resizeObserver.disconnect(); + }; + } + }, []); + let mergedProps = Object.assign(Object.assign({}, props), { + style: Object.assign(Object.assign({}, style), { + margin: 0 + }), + open, + visible: open, + getPopupContainer: () => holderRef.current + }); + if (postProps) { + mergedProps = postProps(mergedProps); + } + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, { + theme: { + token: { + motion: false + } + } + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { + ref: holderRef, + style: { + paddingBottom: popupHeight, + position: 'relative', + minWidth: popupWidth + } + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Component, Object.assign({}, mergedProps)))); + }; +} + +/***/ }), + +/***/ 81374: +/*!************************************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/_util/hooks/useForceUpdate.js ***! + \************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Z: function() { return /* binding */ useForceUpdate; } +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); + +function useForceUpdate() { + const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0); + return forceUpdate; +} + +/***/ }), + +/***/ 36915: +/*!**************************************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/breadcrumb/index.js + 6 modules ***! + \**************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ breadcrumb; } +}); + +// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js +var _classnames_2_3_2_classnames = __webpack_require__(12124); +var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js +var toArray = __webpack_require__(38930); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js +var pickAttrs = __webpack_require__(5090); +// 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.7.1@antd/es/_util/reactNode.js +var reactNode = __webpack_require__(63553); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/context.js +var context = __webpack_require__(16182); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules +var DownOutlined = __webpack_require__(42884); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/dropdown/dropdown.js +var dropdown = __webpack_require__(38685); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/BreadcrumbSeparator.js + + +const BreadcrumbSeparator = _ref => { + let { + children + } = _ref; + const { + getPrefixCls + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const prefixCls = getPrefixCls('breadcrumb'); + return /*#__PURE__*/_react_17_0_2_react.createElement("li", { + className: `${prefixCls}-separator`, + "aria-hidden": "true" + }, children === '' ? children : children || '/'); +}; +BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true; +/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/useItemRender.js +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + +function getBreadcrumbName(route, params) { + if (route.title === undefined || route.title === null) { + return null; + } + const paramsKeys = Object.keys(params).join('|'); + return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement); +} +function renderItem(prefixCls, item, children, href) { + if (children === null || children === undefined) { + return null; + } + const { + className, + onClick + } = item, + restItem = __rest(item, ["className", "onClick"]); + const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, { + data: true, + aria: true + })), { + onClick + }); + if (href !== undefined) { + return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, { + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className), + href: href + }), children); + } + return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, { + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className) + }), children); +} +function useItemRender(prefixCls, itemRender) { + const mergedItemRender = (item, params, routes, path, href) => { + if (itemRender) { + return itemRender(item, params, routes, path); + } + const name = getBreadcrumbName(item, params); + return renderItem(prefixCls, item, name, href); + }; + return mergedItemRender; +} +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/BreadcrumbItem.js +var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + +const InternalBreadcrumbItem = props => { + const { + prefixCls, + separator = '/', + children, + menu, + overlay, + dropdownProps, + href + } = props; + // Warning for deprecated usage + if (false) {} + /** If overlay is have Wrap a Dropdown */ + const renderBreadcrumbNode = breadcrumbItem => { + if (menu || overlay) { + const mergeDropDownProps = Object.assign({}, dropdownProps); + if (menu) { + const _a = menu || {}, + { + items + } = _a, + menuProps = BreadcrumbItem_rest(_a, ["items"]); + mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), { + items: items === null || items === void 0 ? void 0 : items.map((_a, index) => { + var { + key, + title, + label, + path + } = _a, + itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]); + let mergedLabel = label !== null && label !== void 0 ? label : title; + if (path) { + mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", { + href: `${href}${path}` + }, mergedLabel); + } + return Object.assign(Object.assign({}, itemProps), { + key: key !== null && key !== void 0 ? key : index, + label: mergedLabel + }); + }) + }); + } else if (overlay) { + mergeDropDownProps.overlay = overlay; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({ + placement: "bottom" + }, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: `${prefixCls}-overlay-link` + }, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null))); + } + return breadcrumbItem; + }; + // wrap to dropDown + const link = renderBreadcrumbNode(children); + if (link !== undefined && link !== null) { + return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator)); + } + return null; +}; +const BreadcrumbItem = props => { + const { + prefixCls: customizePrefixCls, + children, + href + } = props, + restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]); + const { + getPrefixCls + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, { + prefixCls: prefixCls + }), renderItem(prefixCls, restProps, children, href)); +}; +BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true; +/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/style/index.js +var style = __webpack_require__(39970); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/theme/util/genComponentStyleHook.js +var genComponentStyleHook = __webpack_require__(70770); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/theme/util/statistic.js +var statistic = __webpack_require__(3562); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/style/index.js + + +const genBreadcrumbStyle = token => { + const { + componentCls, + iconCls + } = token; + return { + [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { + color: token.itemColor, + fontSize: token.fontSize, + [iconCls]: { + fontSize: token.iconFontSize + }, + ol: { + display: 'flex', + flexWrap: 'wrap', + margin: 0, + padding: 0, + listStyle: 'none' + }, + a: Object.assign({ + color: token.linkColor, + transition: `color ${token.motionDurationMid}`, + padding: `0 ${token.paddingXXS}px`, + borderRadius: token.borderRadiusSM, + height: token.lineHeight * token.fontSize, + display: 'inline-block', + marginInline: -token.marginXXS, + '&:hover': { + color: token.linkHoverColor, + backgroundColor: token.colorBgTextHover + } + }, (0,style/* genFocusStyle */.Qy)(token)), + [`li:last-child`]: { + color: token.lastItemColor + }, + [`${componentCls}-separator`]: { + marginInline: token.separatorMargin, + color: token.separatorColor + }, + [`${componentCls}-link`]: { + [` + > ${iconCls} + span, + > ${iconCls} + a + `]: { + marginInlineStart: token.marginXXS + } + }, + [`${componentCls}-overlay-link`]: { + borderRadius: token.borderRadiusSM, + height: token.lineHeight * token.fontSize, + display: 'inline-block', + padding: `0 ${token.paddingXXS}px`, + marginInline: -token.marginXXS, + [`> ${iconCls}`]: { + marginInlineStart: token.marginXXS, + fontSize: token.fontSizeIcon + }, + '&:hover': { + color: token.linkHoverColor, + backgroundColor: token.colorBgTextHover, + a: { + color: token.linkHoverColor + } + }, + a: { + '&:hover': { + backgroundColor: 'transparent' + } + } + }, + // rtl style + [`&${token.componentCls}-rtl`]: { + direction: 'rtl' + } + }) + }; +}; +// ============================== Export ============================== +/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => { + const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {}); + return [genBreadcrumbStyle(BreadcrumbToken)]; +}, token => ({ + itemColor: token.colorTextDescription, + lastItemColor: token.colorText, + iconFontSize: token.fontSize, + linkColor: token.colorTextDescription, + linkHoverColor: token.colorText, + separatorColor: token.colorTextDescription, + separatorMargin: token.marginXS +}))); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/useItems.js +var useItems_rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + +function route2item(route) { + const { + breadcrumbName, + children + } = route, + rest = useItems_rest(route, ["breadcrumbName", "children"]); + const clone = Object.assign({ + title: breadcrumbName + }, rest); + if (children) { + clone.menu = { + items: children.map(_a => { + var { + breadcrumbName: itemBreadcrumbName + } = _a, + itemProps = useItems_rest(_a, ["breadcrumbName"]); + return Object.assign(Object.assign({}, itemProps), { + title: itemBreadcrumbName + }); + }) + }; + } + return clone; +} +function useItems(items, routes) { + return (0,_react_17_0_2_react.useMemo)(() => { + if (items) { + return items; + } + if (routes) { + return routes.map(route2item); + } + return null; + }, [items, routes]); +} +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/Breadcrumb.js +var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + + + + + + +const getPath = (params, path) => { + if (path === undefined) { + return path; + } + let mergedPath = (path || '').replace(/^\//, ''); + Object.keys(params).forEach(key => { + mergedPath = mergedPath.replace(`:${key}`, params[key]); + }); + return mergedPath; +}; +const Breadcrumb = props => { + const { + prefixCls: customizePrefixCls, + separator = '/', + style, + className, + rootClassName, + routes: legacyRoutes, + items, + children, + itemRender, + params = {} + } = props, + restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]); + const { + getPrefixCls, + direction, + breadcrumb + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + let crumbs; + const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); + const [wrapSSR, hashId] = breadcrumb_style(prefixCls); + const mergedItems = useItems(items, legacyRoutes); + if (false) {} + const mergedItemRender = useItemRender(prefixCls, itemRender); + if (mergedItems && mergedItems.length > 0) { + // generated by route + const paths = []; + const itemRenderRoutes = items || legacyRoutes; + crumbs = mergedItems.map((item, index) => { + const { + path, + key, + type, + menu, + overlay, + onClick, + className: itemClassName, + separator: itemSeparator, + dropdownProps + } = item; + const mergedPath = getPath(params, path); + if (mergedPath !== undefined) { + paths.push(mergedPath); + } + const mergedKey = key !== null && key !== void 0 ? key : index; + if (type === 'separator') { + return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, { + key: mergedKey + }, itemSeparator); + } + const itemProps = {}; + const isLastItem = index === mergedItems.length - 1; + if (menu) { + itemProps.menu = menu; + } else if (overlay) { + itemProps.overlay = overlay; + } + let { + href + } = item; + if (paths.length && mergedPath !== undefined) { + href = `#/${paths.join('/')}`; + } + return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({ + key: mergedKey + }, itemProps, (0,pickAttrs/* default */.Z)(item, { + data: true, + aria: true + }), { + className: itemClassName, + dropdownProps: dropdownProps, + href: href, + separator: isLastItem ? '' : separator, + onClick: onClick, + prefixCls: prefixCls + }), mergedItemRender(item, params, itemRenderRoutes, paths, href)); + }); + } else if (children) { + const childrenLength = (0,toArray/* default */.Z)(children).length; + crumbs = (0,toArray/* default */.Z)(children).map((element, index) => { + if (!element) { + return element; + } + // =================== Warning ===================== + if (false) {} + false ? 0 : void 0; + const isLastItem = index === childrenLength - 1; + return (0,reactNode/* cloneElement */.Tm)(element, { + separator: isLastItem ? '' : separator, + key: index + }); + }); + } + const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, { + [`${prefixCls}-rtl`]: direction === 'rtl' + }, className, rootClassName, hashId); + const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({ + className: breadcrumbClassName, + style: mergedStyle + }, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs))); +}; +Breadcrumb.Item = breadcrumb_BreadcrumbItem; +Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator; +if (false) {} +/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/index.js +'use client'; + + +/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb); + +/***/ }), + +/***/ 56613: +/*!*********************************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/input/index.js + 5 modules ***! + \*********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ input; } +}); + +// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js +var _classnames_2_3_2_classnames = __webpack_require__(12124); +var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/context.js +var context = __webpack_require__(16182); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/form/context.js +var form_context = __webpack_require__(67095); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/input/style/index.js +var style = __webpack_require__(32547); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Group.js + + + + + + + +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_3_2_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.7.1@antd/es/input/Input.js + 1 modules +var Input = __webpack_require__(68675); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(26508); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(91851); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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 + })); +}; +if (false) {} +/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined)); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules +var EyeOutlined = __webpack_require__(15997); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/omit.js +var omit = __webpack_require__(39029); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/ref.js +var es_ref = __webpack_require__(9681); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/input/hooks/useRemovePasswordTimeout.js +var useRemovePasswordTimeout = __webpack_require__(17674); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Password.js +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_3_2_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.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules +var SearchOutlined = __webpack_require__(46820); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/_util/reactNode.js +var reactNode = __webpack_require__(63553); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/button/index.js +var es_button = __webpack_require__(5436); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/hooks/useSize.js +var useSize = __webpack_require__(76833); +// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/space/Compact.js +var Compact = __webpack_require__(80155); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Search.js +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); + } + 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); + } + }; + 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_3_2_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.7.1@antd/es/input/TextArea.js +var TextArea = __webpack_require__(38289); +;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@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); + +/***/ }), + +/***/ 76956: +/*!***************************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/style/motion/move.js ***! + \***************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } +/* harmony export */ }); +/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ +/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 84608); +/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 4194); + + +const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', { + '0%': { + transform: 'translate3d(0, 100%, 0)', + transformOrigin: '0 0', + opacity: 0 + }, + '100%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + } +}); +const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', { + '0%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + }, + '100%': { + transform: 'translate3d(0, 100%, 0)', + transformOrigin: '0 0', + opacity: 0 + } +}); +const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', { + '0%': { + transform: 'translate3d(-100%, 0, 0)', + transformOrigin: '0 0', + opacity: 0 + }, + '100%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + } +}); +const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', { + '0%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + }, + '100%': { + transform: 'translate3d(-100%, 0, 0)', + transformOrigin: '0 0', + opacity: 0 + } +}); +const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', { + '0%': { + transform: 'translate3d(100%, 0, 0)', + transformOrigin: '0 0', + opacity: 0 + }, + '100%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + } +}); +const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', { + '0%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + }, + '100%': { + transform: 'translate3d(100%, 0, 0)', + transformOrigin: '0 0', + opacity: 0 + } +}); +const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', { + '0%': { + transform: 'translate3d(0, -100%, 0)', + transformOrigin: '0 0', + opacity: 0 + }, + '100%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + } +}); +const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', { + '0%': { + transform: 'translate3d(0, 0, 0)', + transformOrigin: '0 0', + opacity: 1 + }, + '100%': { + transform: 'translate3d(0, -100%, 0)', + transformOrigin: '0 0', + opacity: 0 + } +}); +const moveMotion = { + 'move-up': { + inKeyframes: moveUpIn, + outKeyframes: moveUpOut + }, + 'move-down': { + inKeyframes: moveDownIn, + outKeyframes: moveDownOut + }, + 'move-left': { + inKeyframes: moveLeftIn, + outKeyframes: moveLeftOut + }, + 'move-right': { + inKeyframes: moveRightIn, + outKeyframes: moveRightOut + } +}; +const initMoveMotion = (token, motionName) => { + const { + antCls + } = token; + const motionCls = `${antCls}-${motionName}`; + const { + inKeyframes, + outKeyframes + } = moveMotion[motionName]; + return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), { + [` + ${motionCls}-enter, + ${motionCls}-appear + `]: { + opacity: 0, + animationTimingFunction: token.motionEaseOutCirc + }, + [`${motionCls}-leave`]: { + animationTimingFunction: token.motionEaseInOutCirc + } + }]; +}; + /***/ }) }]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Video__index.async.js b/p__Classrooms__Lists__Video__index.async.js index e1ddb2184b..73a6a147e2 100644 --- a/p__Classrooms__Lists__Video__index.async.js +++ b/p__Classrooms__Lists__Video__index.async.js @@ -1,5 +1,366 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[39332,62293],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[39332],{ + +/***/ 96402: +/*!********************************************************************************************************!*\ + !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules ***! + \********************************************************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ icons_UploadOutlined; } +}); + +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(26508); +// 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.3.1@@ant-design/icons-svg/es/asn/UploadOutlined.js +// This icon file is generated automatically. +var UploadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" }; +/* harmony default export */ var asn_UploadOutlined = (UploadOutlined); + +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules +var AntdIcon = __webpack_require__(91851); +;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + +// GENERATE BY ./scripts/generate.ts +// DON NOT EDIT IT MANUALLY + + + + +var UploadOutlined_UploadOutlined = function UploadOutlined(props, ref) { + return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { + ref: ref, + icon: asn_UploadOutlined + })); +}; +if (false) {} +/* harmony default export */ var icons_UploadOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(UploadOutlined_UploadOutlined)); + +/***/ }), + +/***/ 28862: +/*!************************************************************!*\ + !*** ./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.2@@babel/runtime/helpers/regeneratorRuntime.js +var regeneratorRuntime = __webpack_require__(10574); +var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js +var objectSpread2 = __webpack_require__(26801); +var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js +var asyncToGenerator = __webpack_require__(39343); +var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js +var slicedToArray = __webpack_require__(11006); +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__(97174); +// 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.3.2@classnames/index.js +var _classnames_2_3_2_classnames = __webpack_require__(12124); +var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); +;// 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_3_2_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)); + +/***/ }), /***/ 59389: /*!**********************************************************!*\ @@ -123,63 +484,6 @@ var CoverUpload = function CoverUpload(_ref) { /***/ }), -/***/ 72020: -/*!*****************************************!*\ - !*** ./src/components/NoData/index.tsx ***! - \*****************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801); -/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301); -/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 4977); -/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 5436); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712); - - - - - - -var noData = function noData(_ref) { - var img = _ref.img, - _ref$buttonProps = _ref.buttonProps, - buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps, - _ref$styles = _ref.styles, - styles = _ref$styles === void 0 ? {} : _ref$styles, - customText = _ref.customText, - ButtonText = _ref.ButtonText, - ButtonClick = _ref.ButtonClick, - Buttonclass = _ref.Buttonclass, - ButtonTwo = _ref.ButtonTwo, - imgStyles = _ref.imgStyles, - _ref$loading = _ref.loading, - loading = _ref$loading === void 0 ? false : _ref$loading; - return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", { - className: "tc animated fadeIn", - style: _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, { - color: '#999', - margin: '100px auto', - visibility: loading ? 'hidden' : 'visible' - }), styles), - children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", { - src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__, - style: _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles) - }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", { - className: "mt20 font14", - children: customText || '暂时还没有相关数据哦!' - }), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({ - className: Buttonclass, - onClick: ButtonClick - }, buttonProps), {}, { - children: ButtonText - })), ButtonTwo && ButtonTwo] - }); -}; -/* harmony default export */ __webpack_exports__.Z = (noData); - -/***/ }), - /***/ 96783: /*!**********************************************************!*\ !*** ./src/components/Video/Modal/index.tsx + 1 modules ***! @@ -253,818 +557,6 @@ var VideoModal = function VideoModal(_ref) { /***/ }), -/***/ 74321: -/*!*********************************************************!*\ - !*** ./src/components/Video/Play/index.jsx + 1 modules ***! - \*********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ Play; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js -var slicedToArray = __webpack_require__(11006); -var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js -var regeneratorRuntime = __webpack_require__(10574); -var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js -var asyncToGenerator = __webpack_require__(39343); -var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator); -// 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.7.1@antd/es/message/index.js + 4 modules -var message = __webpack_require__(46570); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/dropdown/index.js + 1 modules -var dropdown = __webpack_require__(21710); -// EXTERNAL MODULE: ./node_modules/_flv.js@1.5.0@flv.js/src/flv.js + 38 modules -var flv = __webpack_require__(27011); -// EXTERNAL MODULE: ./node_modules/_hls.js@1.4.12@hls.js/dist/hls.mjs -var dist_hls = __webpack_require__(36775); -// EXTERNAL MODULE: ./src/utils/authority.ts -var authority = __webpack_require__(76107); -// EXTERNAL MODULE: ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js -var lib = __webpack_require__(56102); -// EXTERNAL MODULE: ./src/utils/fullscreen.ts -var fullscreen = __webpack_require__(94506); -;// CONCATENATED MODULE: ./src/components/Video/Play/index.less?modules -// extracted by mini-css-extract-plugin -/* harmony default export */ var Playmodules = ({"watermark":"watermark___hNYlv","videovideo":"videovideo___ovOkV","animate__loop":"animate__loop___mvL6s","upDown":"upDown___SlgHv","container":"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq","hide":"hide___NA3DV","video-progress":"video-progress___gqHsd","seek":"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r","rateOverlay":"rateOverlay___HHBWe","controlText":"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq","volume":"volume___OTmpP","hidden":"hidden___o7GkT"}); -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js -var jsx_runtime = __webpack_require__(37712); -;// CONCATENATED MODULE: ./src/components/Video/Play/index.jsx - - - - - - - - - - - - - -function formatTime(timeInSeconds) { - if (isNaN(timeInSeconds)) { - return { - minutes: '00', - seconds: '00' - }; - } - var result = new Date(timeInSeconds * 1000).toISOString().substr(11, 8); - return { - hour: result.substr(0, 2), - minutes: result.substr(3, 2), - seconds: result.substr(6, 2) - }; -} -Object.defineProperty(HTMLMediaElement.prototype, 'playing', { - get: function get() { - return !!(this.currentTime > 0 && !this.paused && !this.ended && this.readyState > 2); - } -}); -function compareNumbers(a, b) { - return a - b; -} -function getTotalEffectTime(pos) { - pos.sort(compareNumbers); - var sum = 0; - for (var i = 0; i < pos.length - 1; i++) { - var v = Math.abs(pos[i + 1] - pos[i]); - if (v < 21) { - sum += v; - } - } - return sum; -} -var regex = /(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i; -//接口文档 https://www.showdoc.cc/educoder?page_id=4029884447803706 - -/* harmony default export */ var Play = (/*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(function (_ref, ref) { - var _src$split; - var allow_skip = _ref.allow_skip, - src = _ref.src, - toLog = _ref.toLog, - videoId = _ref.videoId, - logWatchHistory = _ref.logWatchHistory, - _ref$courseId = _ref.courseId, - courseId = _ref$courseId === void 0 ? null : _ref$courseId, - startTime = _ref.startTime, - _ref$handlePause = _ref.handlePause, - handlePause = _ref$handlePause === void 0 ? function () {} : _ref$handlePause, - _ref$handlePlay = _ref.handlePlay, - handlePlay = _ref$handlePlay === void 0 ? function () {} : _ref$handlePlay, - _ref$handlePlayEnded = _ref.handlePlayEnded, - handlePlayEnded = _ref$handlePlayEnded === void 0 ? function () {} : _ref$handlePlayEnded; - // src = src?.replace('http://', 'https://'); - var suf = src === null || src === void 0 || (_src$split = src.split('.')) === null || _src$split === void 0 ? void 0 : _src$split.pop(); - var isFlv = suf === 'flv'; - var el = (0,_react_17_0_2_react.useRef)(); - var watermarkRef = (0,_react_17_0_2_react.useRef)(); - var warpEl = (0,_react_17_0_2_react.useRef)(); - var pauseIcon = (0,_react_17_0_2_react.useRef)(); - var playIcon = (0,_react_17_0_2_react.useRef)(); - var seekEl = (0,_react_17_0_2_react.useRef)(); - var progressBarEl = (0,_react_17_0_2_react.useRef)(); - var durationEl = (0,_react_17_0_2_react.useRef)(); - var timeElapsedEl = (0,_react_17_0_2_react.useRef)(); - var seekTooltipEl = (0,_react_17_0_2_react.useRef)(); - var noMuteVolEl = (0,_react_17_0_2_react.useRef)(); - var highVolEl = (0,_react_17_0_2_react.useRef)(); - var lowVolEl = (0,_react_17_0_2_react.useRef)(); - var volumeEl = (0,_react_17_0_2_react.useRef)(); - var deviceMatch = navigator.userAgent.toLowerCase().match(regex); - var device = deviceMatch ? deviceMatch[0] : 'pc'; - var firstOnPlayFlag = (0,_react_17_0_2_react.useRef)(false); - var user = (0,authority/* userInfo */.eY)(); - var totalDuration = 0; - var sumTimePlayed = 0; - var lastUpdatedTime = 0; - var logId = null; - var initLog = false; - var timeTick = 20; //记录频率 默认20s - var logCount = 1; - var isLoging = false; - var isSeeking = false; - var pos = []; //播放时间点集 - - (0,_react_17_0_2_react.useImperativeHandle)(ref, function () { - return { - getLastUpdatedTime: function getLastUpdatedTime() { - return el.current.currentTime; - }, - getDuration: function getDuration() { - return el.current.duration; - } - }; - }); - message/* default */.ZP.config({ - maxCount: 1, - getContainer: function getContainer() { - return warpEl.current; - } - }); - var log = (0,_react_17_0_2_react.useCallback)(function (callback) { - var isEnd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var params = { - point: el.current.currentTime - }; - if (logId) { - params['log_id'] = logId; - params['watch_duration'] = getTotalEffectTime(pos); //当前观看视频时长,拖放进度条,重复的视频片段观看时,不会把重复的时长累积进来,最大时长是视频的总时长 - params['total_duration'] = sumTimePlayed; //累计观看视频时长,拖放进度条,重复的视频片段观看时,重复观看时长要累积进来 - } else { - if (courseId) { - params['video_id'] = parseInt(videoId, 10); - params['course_id'] = courseId; - } else { - params['video_id'] = videoId; - } - params['duration'] = totalDuration; - params['device'] = device; - } - if (isEnd) { - params['ed'] = '1'; - } - function getLogId() { - return _getLogId.apply(this, arguments); - } - function _getLogId() { - _getLogId = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { - var id; - return regeneratorRuntime_default()().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - isLoging = true; - _context.next = 3; - return logWatchHistory(params); - case 3: - id = _context.sent; - logId = id; - isLoging = false; - if (callback) { - callback(); - } - case 7: - case "end": - return _context.stop(); - } - }, _callee); - })); - return _getLogId.apply(this, arguments); - } - getLogId(); - }, [videoId, courseId]); - (0,_react_17_0_2_react.useEffect)(function () { - if (el.current) { - pauseIcon.current.style.display = 'none'; - playIcon.current.style.display = 'block'; - } - message/* default */.ZP.destroy(); - var player = null; - if (flv/* default */.Z.isSupported && isFlv && src && (src === null || src === void 0 ? void 0 : src.indexOf('.m3u8')) < 0) { - player = flv/* default */.Z.createPlayer({ - type: 'flv', - volume: 0.8, - cors: true, - url: src, - muted: false - }); - if (el.current) { - player.attachMediaElement(el.current); - player.load(); - } - } else { - el.current.setAttribute('src', src); - } - updateVolumeIcon(); - return function () { - if (player) { - player.unload(); - player.pause(); - player.destroy(); - player = null; - } - }; - }, [el, isFlv, src]); - function playIconStatus() { - if (el.current.paused) { - pauseIcon.current.style.display = 'none'; - playIcon.current.style.display = 'block'; - } else { - pauseIcon.current.style.display = 'block'; - playIcon.current.style.display = 'none'; - } - } - function updateVolumeIcon() { - noMuteVolEl.current.style.display = 'none'; - lowVolEl.current.style.display = 'none'; - highVolEl.current.style.display = 'none'; - if (el.current.muted || el.current.volume === 0) { - noMuteVolEl.current.style.display = 'block'; - } else if (el.current.volume > 0 && el.current.volume <= 0.5) { - lowVolEl.current.style.display = 'block'; - } else { - highVolEl.current.style.display = 'block'; - } - } - (0,_react_17_0_2_react.useEffect)(function () { - var playButton = document.getElementById('play'); - var playbackIcons = document.querySelectorAll('.playback-icons use'); - function onPlay() { - handlePlay(); - if (startTime && !firstOnPlayFlag.current) { - el.current.currentTime = startTime; - } - firstOnPlayFlag.current = true; - pos.push(el.current.currentTime); - if (!initLog) { - initLog = true; - if (toLog) { - log(); - } - } - } - //循环播放, 累计时长不能清空 - function onEnded() { - return _onEnded.apply(this, arguments); - } - function _onEnded() { - _onEnded = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() { - return regeneratorRuntime_default()().wrap(function _callee2$(_context2) { - while (1) switch (_context2.prev = _context2.next) { - case 0: - playIconStatus(); - pos.push(el.current.currentTime); - if (toLog) { - log(function () { - logId = null; - lastUpdatedTime = 0; - initLog = false; - isLoging = false; - isSeeking = false; - pos = []; //有效时长重新累计,算新的一遍 - sumTimePlayed = 0; - logCount = 1; - }, true); - } - case 3: - case "end": - return _context2.stop(); - } - }, _callee2); - })); - return _onEnded.apply(this, arguments); - } - function updateProgress() { - // seekEl.current.value = Math.floor(el.current.currentTime); - // progressBarEl.current.value = Math.floor(el.current.currentTime); - - seekEl.current.value = Math.round(el.current.currentTime); - progressBarEl.current.value = Math.round(el.current.currentTime); - } - function updateTimeElapsed() { - var time = formatTime(Math.round(el.current.currentTime)); - timeElapsedEl.current.innerText = "".concat(time.hour > 0 ? time.hour + ':' : '').concat(time.minutes, ":").concat(time.seconds); - timeElapsedEl.current.setAttribute('datetime', "".concat(time.hour > 0 ? ' ' + time.hour + ' ' : '').concat(time.minutes, "m ").concat(time.seconds, "s")); - } - function initializeVideo() { - var videoDuration = Math.round(el.current.duration); - seekEl.current.setAttribute('max', videoDuration); - progressBarEl.current.setAttribute('max', videoDuration); - var time = formatTime(videoDuration); - durationEl.current.innerText = "".concat(time.hour > 0 ? time.hour + ':' : '').concat(time.minutes, ":").concat(time.seconds); - durationEl.current.setAttribute('datetime', "".concat(time.hour > 0 ? ' ' + time.hour + ' ' : '').concat(time.minutes, "m ").concat(time.seconds, "s")); - } - function onTimeupdate() { - var videoDuration = Math.round(el.current.duration); - seekEl.current.setAttribute('max', videoDuration); - progressBarEl.current.setAttribute('max', videoDuration); - var time = formatTime(videoDuration); - durationEl.current.innerText = "".concat(time.hour > 0 ? time.hour + ':' : '').concat(time.minutes, ":").concat(time.seconds); - durationEl.current.setAttribute('datetime', "".concat(time.hour > 0 ? ' ' + time.hour + ' ' : '').concat(time.minutes, "m ").concat(time.seconds, "s")); - updateProgress(); - updateTimeElapsed(); - var _watermarkRef$current = watermarkRef.current.getBoundingClientRect(), - width = _watermarkRef$current.width, - height = _watermarkRef$current.height, - x = _watermarkRef$current.x, - y = _watermarkRef$current.y; - if (x < 0 || y < 0 || !width) { - // el.current.src = ''; - // el.current.pause(); - // message.warning({ - // content: '当前操作非法,已禁止观看视频', - // key: 'watermarkRef', - // }); - return; - } - if (!isSeeking) { - var newTime = el.current.currentTime; - var timeDiff = newTime - lastUpdatedTime; - //currenttime update before Seeking & Seeked fired - if (Math.abs(timeDiff) < 10) { - sumTimePlayed += Math.abs(timeDiff); - lastUpdatedTime = newTime; - if (!isLoging) { - if (sumTimePlayed - logCount * timeTick >= 0) { - logCount++; - pos.push(lastUpdatedTime); - if (toLog) { - log(); - } - } - } - } else { - lastUpdatedTime = newTime; - if (toLog) { - log(); - } - } - } - } - function onSeeking() { - isSeeking = true; - } - function onSeeked() { - if (el.current.playing) { - pos.push(el.current.currentTime, lastUpdatedTime); - } - lastUpdatedTime = el.current.currentTime; - isSeeking = false; - } - function onCanPlay() { - totalDuration = el.current.duration; - if (totalDuration <= 20) { - timeTick = totalDuration / 3; - } - el.current.addEventListener('play', onPlay); - } - function onFullscreenchange(e) { - e.preventDefault(); - if ((0,fullscreen/* IsFull */.vp)()) { - el.current.style.width = '100%'; - el.current.style.height = '100%'; - } else { - el.current.style.cssText = ''; - } - } - function onPause() { - handlePause(); - } - function skipAhead(event) { - if (!allow_skip) { - message/* default */.ZP.warning('该视频禁止快进/后退播放'); - return; - } - var skipTo = event.target.dataset.seek ? event.target.dataset.seek : event.target.value; - el.current.currentTime = skipTo; - progressBarEl.current.value = skipTo; - seekEl.current.value = skipTo; - } - function updateSeekTooltip(event) { - var skipTo = Math.round(event.offsetX / event.target.clientWidth * parseInt(event.target.getAttribute('max'), 10)); - seekEl.current.setAttribute('data-seek', skipTo); - var t = formatTime(skipTo); - seekTooltipEl.current.textContent = "".concat(t.hour > 0 ? t.hour + ':' : '').concat(t.minutes, ":").concat(t.seconds); - var rect = el.current.getBoundingClientRect(); - seekTooltipEl.current.style.left = "".concat(event.pageX - rect.left, "px"); - } - function handleKeyDown(e) { - switch (e.code) { - case 'Space': - e.preventDefault(); //除了需求相关的按键外其余的按键需要保留默认行为,所以preventDefault写在switch里面 - togglePlay(); - break; - case 'ArrowRight': - e.preventDefault(); - if (!allow_skip) { - message/* default */.ZP.warning('该视频禁止快进/后退播放'); - break; - } - if (el.current.currentTime >= el.current.duration) { - break; - } - el.current.currentTime = parseInt(el.current.currentTime) + 5; - updateProgress(); - break; - case 'ArrowLeft': - e.preventDefault(); - if (!allow_skip) { - message/* default */.ZP.warning('该视频禁止快进/后退播放'); - break; - } - if (el.current.currentTime === 0) { - break; - } - el.current.currentTime = parseInt(el.current.currentTime) - 5; - updateProgress(); - break; - case 'ArrowUp': - e.preventDefault(); - if (el.current.volume < 1) { - el.current.volume = (parseInt(el.current.volume * 10) + 1) / 10; - } - break; - case 'ArrowDown': - e.preventDefault(); - if (el.current.volume > 0) { - el.current.volume = (parseInt(el.current.volume * 10) - 1) / 10; - } - break; - } - } - warpEl.current.addEventListener((0,fullscreen/* fullscreenChange */.gH)(), onFullscreenchange); - el.current.addEventListener('canplay', onCanPlay); - el.current.addEventListener('ended', onEnded); - el.current.addEventListener('seeking', onSeeking); - el.current.addEventListener('seeked', onSeeked); - el.current.addEventListener('loadedmetadata', initializeVideo); - seekEl.current.addEventListener('mousemove', updateSeekTooltip); - seekEl.current.addEventListener('input', skipAhead); - el.current.addEventListener('timeupdate', onTimeupdate); - el.current.addEventListener('pause', onPause); - el.current.addEventListener('volumechange', updateVolumeIcon); - document.addEventListener('keydown', handleKeyDown); - return function () { - var _el$current, _el$current2, _el$current3, _el$current4, _el$current5, _seekEl$current, _seekEl$current2, _el$current6, _el$current7, _el$current8, _el$current9, _el$current10; - (_el$current = el.current) === null || _el$current === void 0 || _el$current.removeEventListener('canplay', onCanPlay); - (_el$current2 = el.current) === null || _el$current2 === void 0 || _el$current2.removeEventListener('play', onPlay); - (_el$current3 = el.current) === null || _el$current3 === void 0 || _el$current3.removeEventListener('ended', onEnded); - (_el$current4 = el.current) === null || _el$current4 === void 0 || _el$current4.removeEventListener('seeking', onSeeking); - (_el$current5 = el.current) === null || _el$current5 === void 0 || _el$current5.removeEventListener('seeked', onSeeked); - (_seekEl$current = seekEl.current) === null || _seekEl$current === void 0 || _seekEl$current.removeEventListener('mousemove', updateSeekTooltip); - (_seekEl$current2 = seekEl.current) === null || _seekEl$current2 === void 0 || _seekEl$current2.removeEventListener('input', skipAhead); - (_el$current6 = el.current) === null || _el$current6 === void 0 || _el$current6.removeEventListener('timeupdate', onTimeupdate); - (_el$current7 = el.current) === null || _el$current7 === void 0 || _el$current7.removeEventListener('pause', onPause); - (_el$current8 = el.current) === null || _el$current8 === void 0 || _el$current8.removeEventListener('loadedmetadata', initializeVideo); - (_el$current9 = el.current) === null || _el$current9 === void 0 || _el$current9.removeEventListener('volumechange', updateVolumeIcon); - document.removeEventListener('keydown', handleKeyDown); - if ((_el$current10 = el.current) !== null && _el$current10 !== void 0 && _el$current10.playing) { - pos.push(lastUpdatedTime, el.current.currentTime); - if (toLog) { - log(); - } - } - }; - }, [el, src]); - (0,_react_17_0_2_react.useEffect)(function () { - el.current.onended = function () { - handlePlayEnded(el); - }; - el.current.oncontextmenu = function () { - return false; - }; - if ((src === null || src === void 0 ? void 0 : src.indexOf('.m3u8')) > -1) { - if (el.current.canPlayType('application/vnd.apple.mpegurl')) { - el.current.src = src; - } else if (dist_hls/* default */.Z.isSupported()) { - var hls = new dist_hls/* default */.Z(); - hls.loadSource(src); - hls.attachMedia(el.current); - } - } - }, [src]); - var _useState = (0,_react_17_0_2_react.useState)(1.0), - _useState2 = slicedToArray_default()(_useState, 2), - videoSpeed = _useState2[0], - setVideoSpeed = _useState2[1]; - var togglePlay = function togglePlay() { - if (el.current.paused || el.current.ended) { - el.current.play(); - } else { - el.current.pause(); - } - playIconStatus(); - }; - function toggleMute() { - el.current.muted = !el.current.muted; - if (el.current.muted) { - volumeEl.current.setAttribute('data-volume', volume.value); - volumeEl.current.value = 0; - } else { - volumeEl.current.value = volumeEl.current.dataset.volume; - } - } - return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - style: { - position: 'relative' - }, - ref: warpEl, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - ref: watermarkRef, - className: "".concat(Playmodules.watermark, " animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(Playmodules.animate__loop), - children: user ? user.login : ' ' - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Playmodules['container'], - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['video-container'], - id: "video-container", - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Playmodules['playback-animation'], - id: "playback-animation", - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", { - className: Playmodules['playback-icons'], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("use", { - className: "hidden", - href: "#play-icon" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("use", { - href: "#pause" - })] - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("video", { - className: Playmodules['video'], - id: "video", - preload: "auto", - disablePictureInPicture: true, - ref: el, - autoPlay: false - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: "".concat(Playmodules['video-controls'], " "), - id: "video-controls", - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['bottom-controls'], - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['left-controls'], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("button", { - "data-title": "\u64AD\u653E/\u6682\u505C", - id: "play", - onClick: togglePlay, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", { - className: Playmodules['playback-icons'], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("use", { - ref: playIcon, - href: "#play-icon" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("use", { - ref: pauseIcon, - style: { - display: 'none' - }, - href: "#pause" - })] - }) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['time'], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("time", { - id: "time-elapsed", - ref: timeElapsedEl, - children: "00:00" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - children: " / " - }), /*#__PURE__*/(0,jsx_runtime.jsx)("time", { - id: "duration", - ref: durationEl, - children: "00:00" - })] - })] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['right-controls'], - children: [allow_skip && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, { - placement: "top", - overlayClassName: Playmodules['rateOverlay'], - getPopupContainer: function getPopupContainer(trigger) { - return trigger.parentNode; - }, - menu: { - items: [{ - key: '1', - label: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - onClick: function onClick() { - setVideoSpeed(1); - el.current.playbackRate = 1; - }, - children: "1.0x" - }) - }, { - key: '2', - label: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - onClick: function onClick() { - setVideoSpeed(1.5); - el.current.playbackRate = 1.5; - }, - children: "1.5x" - }) - }, { - key: '3', - label: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - onClick: function onClick() { - setVideoSpeed(2); - el.current.playbackRate = 2; - }, - children: "2.0x" - }) - }] - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: "".concat(Playmodules['controlText'], " mr5"), - children: "\u500D\u901F" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(lib.CopyToClipboard, { - text: src, - onCopy: function onCopy() { - return message/* default */.ZP.success('复制成功'); - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("button", { - "data-title": '复制链接', - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon-lianjie2 iconfont", - style: { - fontSize: '12px', - color: 'white' - } - }) - }) - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['volume-controls'], - children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("button", { - "data-title": "\u5F00\u542F/\u5173\u95ED\u58F0\u97F3", - className: Playmodules['volume-button'], - id: "volume-button", - onClick: toggleMute, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { - ref: noMuteVolEl, - className: "icon-a-bianzu8 iconfont", - style: { - fontSize: '14px', - color: 'white' - } - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - ref: lowVolEl, - className: "icon-shengyinkaibeifen iconfont", - style: { - fontSize: '14px', - color: 'white' - } - }), /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - ref: highVolEl, - className: "icon-shengyinkai iconfont", - style: { - fontSize: '14px', - color: 'white' - } - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("input", { - className: Playmodules['volume'], - id: "volume", - value: "1", - "data-mute": "0.5", - type: "range", - max: "1", - min: "0", - step: "0.01", - ref: volumeEl, - style: { - display: 'none' - }, - onClick: updateVolumeIcon - })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("button", { - "data-title": "\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F", - className: Playmodules['fullscreen-button'], - onClick: function onClick() { - if ((0,fullscreen/* IsFull */.vp)()) { - (0,fullscreen/* exitFull */.BU)(); - } else { - (0,fullscreen/* requestFullScreen */.Dj)(warpEl.current); - } - }, - children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "icon-fangda1 iconfont", - style: { - fontSize: '12px', - color: 'white' - } - }) - })] - })] - }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: Playmodules['video-progress'], - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("progress", { - ref: progressBarEl, - value: "0", - min: "0" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("input", { - className: Playmodules.seek, - ref: seekEl, - value: "0", - min: "0", - type: "range", - step: "1" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: Playmodules['seek-tooltip'], - ref: seekTooltipEl, - id: "seek-tooltip", - children: "00:00" - })] - })] - })] - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("svg", { - style: { - display: 'none' - }, - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("defs", { - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "pause", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "play-icon", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "volume-high", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "volume-low", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "volume-mute", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "fullscreen", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "fullscreen-exit", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z" - }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)("symbol", { - id: "pip", - viewBox: "0 0 24 24", - children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", { - d: "M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z" - }) - })] - }) - })] - }); -})); - -/***/ }), - /***/ 49559: /*!*****************************************************************!*\ !*** ./src/pages/Classrooms/Lists/Video/index.tsx + 13 modules ***! @@ -1218,7 +710,7 @@ var CloseCircleFilled = __webpack_require__(48796); var env = __webpack_require__(47015); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/index.less?modules // extracted by mini-css-extract-plugin -/* harmony default export */ var Videomodules = ({"flex_box_center":"flex_box_center___ZHxNf","flex_space_between":"flex_space_between___SMaaw","flex_box_vertical_center":"flex_box_vertical_center___xMq2f","flex_box_center_end":"flex_box_center_end___qU72x","flex_box_column":"flex_box_column___ik6jh","bg":"bg___x4BYS","menu":"menu___YqpjW","desc":"desc___n62tO","otherLink":"otherLink___jkav5","card":"card___BlTD5","img":"img___AYe38"}); +/* harmony default export */ var Videomodules = ({"flex_box_center":"flex_box_center___ZHxNf","flex_space_between":"flex_space_between___SMaaw","flex_box_vertical_center":"flex_box_vertical_center___xMq2f","flex_box_center_end":"flex_box_center_end___qU72x","flex_box_column":"flex_box_column___ik6jh","bg":"bg___x4BYS","menu":"menu___YqpjW","desc":"desc___n62tO","otherLink":"otherLink___jkav5","card":"card___BlTD5","img":"img___AYe38","btn":"btn___t3aCM"}); // EXTERNAL MODULE: ./src/utils/util.tsx var util = __webpack_require__(27291); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/components/AddLink.tsx @@ -1566,10 +1058,10 @@ var es_checkbox = __webpack_require__(70681); var progress = __webpack_require__(38901); // EXTERNAL MODULE: ./src/components/CoverUpload/index.tsx + 1 modules var CoverUpload = __webpack_require__(59389); -// EXTERNAL MODULE: ./src/utils/aliyunUpload.ts -var aliyunUpload = __webpack_require__(1502); // EXTERNAL MODULE: ./src/service/user.ts var service_user = __webpack_require__(52138); +// EXTERNAL MODULE: ./src/components/ChunkedUpload/index.tsx + 1 modules +var ChunkedUpload = __webpack_require__(28862); ;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Video/components/VideoEdit.tsx @@ -1585,9 +1077,11 @@ var service_user = __webpack_require__(52138); + + var VideoEdit_TreeNode = tree_select/* default.TreeNode */.Z.TreeNode; var VideoEdit_EditAttendance = function EditAttendance(_ref) { - var _video$file$name; + var _user$userInfo3, _video$name; var classroomList = _ref.classroomList, user = _ref.user, loading = _ref.loading, @@ -1603,33 +1097,39 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { _useState2 = slicedToArray_default()(_useState, 2), imgLoading = _useState2[0], setImgLoading = _useState2[1]; - var _useState3 = (0,_react_17_0_2_react.useState)([]), + var _useState3 = (0,_react_17_0_2_react.useState)(false), _useState4 = slicedToArray_default()(_useState3, 2), - tabsList = _useState4[0], - setTabsList = _useState4[1]; - var _useState5 = (0,_react_17_0_2_react.useState)(), + btnLoading = _useState4[0], + setBtnLoading = _useState4[1]; + var _useState5 = (0,_react_17_0_2_react.useState)([]), _useState6 = slicedToArray_default()(_useState5, 2), - video = _useState6[0], - setVideo = _useState6[1]; + tabsList = _useState6[0], + setTabsList = _useState6[1]; + var _useState7 = (0,_react_17_0_2_react.useState)({}), + _useState8 = slicedToArray_default()(_useState7, 2), + video = _useState8[0], + setVideo = _useState8[1]; var files = (0,_react_17_0_2_react.useRef)(); var uploader = (0,_react_17_0_2_react.useRef)(); - var fileTypes = ["avi", "flv", "f4v", "m4v", "mov", "mp4", "rmvb", "swf", "webm", "wmv"]; var uploadNameSizeSeperator = '  '; - var _useState7 = (0,_react_17_0_2_react.useState)(null), - _useState8 = slicedToArray_default()(_useState7, 2), - videoId = _useState8[0], - setvideoId = _useState8[1]; var _useState9 = (0,_react_17_0_2_react.useState)(null), _useState10 = slicedToArray_default()(_useState9, 2), - nowVideoId = _useState10[0], - setNowVideoId = _useState10[1]; + videoId = _useState10[0], + setvideoId = _useState10[1]; + var _useState11 = (0,_react_17_0_2_react.useState)(null), + _useState12 = slicedToArray_default()(_useState11, 2), + nowVideoId = _useState12[0], + setNowVideoId = _useState12[1]; + var MAX_FILE_SIZE = 1024; (0,_react_17_0_2_react.useEffect)(function () { var _actionTabs$data, _actionTabs$data2; if (classroomList.actionTabs.key === '编辑视频') form.setFieldsValue({ title: actionTabs.data.title, attachment_id: actionTabs === null || actionTabs === void 0 || (_actionTabs$data = actionTabs.data) === null || _actionTabs$data === void 0 ? void 0 : _actionTabs$data.attachment_id, allow_skip: actionTabs === null || actionTabs === void 0 || (_actionTabs$data2 = actionTabs.data) === null || _actionTabs$data2 === void 0 ? void 0 : _actionTabs$data2.allow_skip + // action_analysis: actionTabs?.data?.action_analysis }); + !!asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { var _actionTabs$data3; return regeneratorRuntime_default()().wrap(function _callee$(_context) { @@ -1754,122 +1254,126 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { return item; })); }; - var handleUpload = function handleUpload(e) { - var _user$userInfo; - var file = e.target.files[0]; - if (!file) return; - var fileSize = file.size / 1024 / 1024 / 1024; - var fileType = file.name.split(".").slice(-1)[0].toLowerCase(); - if (fileSize > 1) { - message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(1G)")); - return; + + // const analysisValue = Form.useWatch('action_analysis', form) + + var handleChangeUpload = function handleChangeUpload(file) { + var _user$userInfo, _user$userInfo2; + var name = file.name.toLowerCase(); + if (name && name.indexOf('.avi') == -1 && name.indexOf('.flv') == -1 && name.indexOf('.f4v') == -1 && name.indexOf('.m4v') == -1 && name.indexOf('.mov') == -1 && name.indexOf('.mp4') == -1 && name.indexOf('.rmvb') == -1 && name.indexOf('.swf') == -1 && name.indexOf('.webm') == -1 && name.indexOf('.wmv') == -1) { + message/* default */.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"); + return true; } - if (fileTypes.indexOf(fileType) == -1) { - message/* default */.ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20,\u5F53\u524D\u4EC5\u9650\u652F\u6301").concat(fileTypes.join(", "), "\u6587\u4EF6")); - return; + if (!((_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.admin || (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.business) && file.size > MAX_FILE_SIZE * 1024 * 1024) { + message/* default */.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(MAX_FILE_SIZE, "M")); + return true; } - var userData = '{"Vod":{}}'; - if (uploader.current) { - uploader.current.addFile(file, null, null, null, userData); - return; + return false; + }; + 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) { + var _v$file, _v$file2; + setVideo({ + name: v === null || v === void 0 || (_v$file = v.file) === null || _v$file === void 0 ? void 0 : _v$file.name, + loaded: 0, + size: v === null || v === void 0 || (_v$file2 = v.file) === null || _v$file2 === void 0 ? void 0 : _v$file2.size + }); + }, + onComplete: function onComplete(v) { + var _v$file3, _v$file4; + setVideo({ + video_id: v.id, + name: v === null || v === void 0 || (_v$file3 = v.file) === null || _v$file3 === void 0 ? void 0 : _v$file3.name, + loaded: v.percent, + size: v === null || v === void 0 || (_v$file4 = v.file) === null || _v$file4 === void 0 ? void 0 : _v$file4.size + }); + }, + onError: function onError() { + setVideo({}); + }, + onProgress: function onProgress(v) { + var _v$file5, _v$file6; + setVideo({ + name: v === null || v === void 0 || (_v$file5 = v.file) === null || _v$file5 === void 0 ? void 0 : _v$file5.name, + loaded: v.percent, + size: v === null || v === void 0 || (_v$file6 = v.file) === null || _v$file6 === void 0 ? void 0 : _v$file6.size + }); + }, + chunkSize: 1024 * 1024 * 2, + // 2MB + options: { + user_id: user === null || user === void 0 || (_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.user_id } - var videoInfo = {}; - (0,aliyunUpload/* getUploader */.o)((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login, '', { - create: !uploader, - onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) { - videoInfo = objectSpread2_default()(objectSpread2_default()({}, uploadInfo), {}, { - loaded: Math.ceil(progress * 100) - }); - setVideo(videoInfo); - }, - onUploadFailed: function onUploadFailed(uploadInfo) { - message/* default */.ZP.info('视频云服务出现异常,请重新上传。'); - }, - onUploadEnd: function onUploadEnd(uploadInfo) {}, - onUploadSucceed: function onUploadSucceed(uploadInfo) {}, - onUploadError: function onUploadError(uploadInfo) {}, - gotUploader: function () { - var _gotUploader = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(_uploader) { - return regeneratorRuntime_default()().wrap(function _callee4$(_context4) { - while (1) switch (_context4.prev = _context4.next) { - case 0: - _uploader.addFile(file, null, null, null, userData); - uploader.current = _uploader; - case 2: - case "end": - return _context4.stop(); - } - }, _callee4); - })); - function gotUploader(_x2) { - return _gotUploader.apply(this, arguments); - } - return gotUploader; - }() - }); }; + console.log(video, 222); return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, { centered: true, title: "\u89C6\u9891\u7F16\u8F91", open: classroomList.actionTabs.key === '编辑视频' ? true : false, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", - width: 640, + width: 660, destroyOnClose: true, - confirmLoading: imgLoading, - onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() { - var _actionTabs$data6; - var formValue, body, _user$userInfo2, _actionTabs$data5, res; - return regeneratorRuntime_default()().wrap(function _callee5$(_context5) { - while (1) switch (_context5.prev = _context5.next) { + okButtonProps: { + disabled: imgLoading + }, + confirmLoading: btnLoading, + onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() { + var _actionTabs$data7; + var formValue, body, _user$userInfo4, _actionTabs$data5, _actionTabs$data6, res; + return regeneratorRuntime_default()().wrap(function _callee4$(_context4) { + while (1) switch (_context4.prev = _context4.next) { case 0: - if (!(video && video.loaded != 100)) { - _context5.next = 3; + if (!(video !== null && video !== void 0 && video.name && video.loaded != 100)) { + _context4.next = 3; break; } message/* default */.ZP.warning("视频上传中请稍等!"); - return _context5.abrupt("return"); + return _context4.abrupt("return"); case 3: - _context5.t0 = (objectSpread2_default()); - _context5.t1 = {}; - _context5.next = 7; + _context4.t0 = (objectSpread2_default()); + _context4.t1 = {}; + _context4.next = 7; return form.validateFields(); case 7: - _context5.t2 = _context5.sent; - formValue = (0, _context5.t0)(_context5.t1, _context5.t2); + _context4.t2 = _context4.sent; + formValue = (0, _context4.t0)(_context4.t1, _context4.t2); body = objectSpread2_default()({}, formValue); - if (!video) { - _context5.next = 15; + setBtnLoading(true); + if (!(video !== null && video !== void 0 && video.name)) { + _context4.next = 16; break; } - _context5.next = 13; + _context4.next = 14; return (0,service_user/* batchPublish */.dt)({ - username: (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, + username: (_user$userInfo4 = user.userInfo) === null || _user$userInfo4 === void 0 ? void 0 : _user$userInfo4.login, videos: [{ - video_id: video.videoId, + video_id: video.video_id, title: form.getFieldValue("title"), - filename: video.file.name, + filename: video.name, attachment_id: form.getFieldValue("attachment_id"), - course_id: params.coursesId, - category_id: '', - course_video_id: (_actionTabs$data5 = actionTabs.data) === null || _actionTabs$data5 === void 0 ? void 0 : _actionTabs$data5.course_video_id + course_id: params === null || params === void 0 ? void 0 : params.coursesId, + category_id: actionTabs === null || actionTabs === void 0 || (_actionTabs$data5 = actionTabs.data) === null || _actionTabs$data5 === void 0 ? void 0 : _actionTabs$data5.course_second_category_id, + course_video_id: (_actionTabs$data6 = actionTabs.data) === null || _actionTabs$data6 === void 0 ? void 0 : _actionTabs$data6.course_video_id }] }); - case 13: - _context5.next = 16; + case 14: + _context4.next = 17; break; - case 15: + case 16: tabsList.forEach(function (item) { if (item.checked) body["set_id"] = item.id; }); - case 16: - _context5.next = 18; - return (0,fetch/* default */.ZP)("/api/course_videos/".concat(actionTabs === null || actionTabs === void 0 || (_actionTabs$data6 = actionTabs.data) === null || _actionTabs$data6 === void 0 ? void 0 : _actionTabs$data6.course_video_id, "/change_cover.json"), { + case 17: + _context4.next = 19; + return (0,fetch/* default */.ZP)("/api/course_videos/".concat(actionTabs === null || actionTabs === void 0 || (_actionTabs$data7 = actionTabs.data) === null || _actionTabs$data7 === void 0 ? void 0 : _actionTabs$data7.course_video_id, "/change_cover.json"), { method: 'put', body: body }); - case 18: - res = _context5.sent; + case 19: + res = _context4.sent; if (res) { message/* default */.ZP.success('修改成功'); dispatch({ @@ -1881,23 +1385,21 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { payload: Math.random() }); } - setVideo(void 0); - case 21: + setVideo({}); + setBtnLoading(false); + case 23: case "end": - return _context5.stop(); + return _context4.stop(); } - }, _callee5); + }, _callee4); })), onCancel: function onCancel() { dispatch({ type: 'classroomList/setActionTabs', payload: {} }); - setVideo(void 0); - if (uploader.current) { - var _uploader$current, _uploader$current$del; - (_uploader$current = uploader.current) === null || _uploader$current === void 0 || (_uploader$current$del = _uploader$current.deleteFile) === null || _uploader$current$del === void 0 || _uploader$current$del.call(_uploader$current, uploader.current._curIndex); - } + setVideo({}); + uploader.current.cancel(); }, children: actionTabs.data && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, { form: form, @@ -1939,27 +1441,20 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { children: "\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E" }) }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, { - children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { - disabled: video, - type: "primary", - style: { - marginBottom: "10px" - }, - ghost: true, - onClick: function onClick() { - return files.current.click(); - }, - children: "\u66F4\u65B0\u7248\u672C" - }), /*#__PURE__*/(0,jsx_runtime.jsx)("input", { - ref: files, - type: "file", - id: "fileUpload", - style: { - display: "none" - }, - onChange: handleUpload, - accept: ".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*" - }), video && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ChunkedUpload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { + ref: uploader, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { + children: !!(video !== null && video !== void 0 && video.name) ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { + disabled: true, + type: "primary", + ghost: true, + children: "\u66F4\u65B0\u7248\u672C" + }) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: Videomodules.btn, + children: "\u66F4\u65B0\u7248\u672C" + }) + }) + })), !!(video !== null && video !== void 0 && video.name) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { style: { fontSize: "8px", @@ -1975,7 +1470,8 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { fontSize: "8px" } }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { - children: ((_video$file$name = video.file.name) === null || _video$file$name === void 0 ? void 0 : _video$file$name.indexOf(uploadNameSizeSeperator)) === -1 ? "".concat(video.file.name).concat(uploadNameSizeSeperator).concat((0,util/* bytesToSize */.RD)(video.file.size)) : video.file.name + className: "font14", + children: ((_video$name = video.name) === null || _video$name === void 0 ? void 0 : _video$name.indexOf(uploadNameSizeSeperator)) === -1 ? "".concat(video.name).concat(uploadNameSizeSeperator).concat((0,util/* bytesToSize */.RD)(video.size)) : video.name }), video.loaded == 100 && /*#__PURE__*/(0,jsx_runtime.jsx)("i", { style: { marginLeft: "auto", @@ -1983,8 +1479,8 @@ var VideoEdit_EditAttendance = function EditAttendance(_ref) { }, className: "icon-shanchu iconfont", onClick: function onClick() { - setVideo(void 0); - files.current.value = ""; + uploader.current.cancel(); + setVideo({}); } })] }), video.loaded != 100 && /*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, { @@ -3275,275 +2771,120 @@ var TabMenu = function TabMenu(_ref) { /***/ }), -/***/ 1502: -/*!***********************************!*\ - !*** ./src/utils/aliyunUpload.ts ***! - \***********************************/ +/***/ 69453: +/*!**********************************************************!*\ + !*** ./node_modules/_antd@5.7.1@antd/es/layout/index.js ***! + \**********************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ o: function() { return /* binding */ getUploader; } -/* harmony export */ }); -/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/fetch */ 97174); -/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! aliyun-vod-upload-ll */ 93125); -/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 95833); +/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 625); +'use client'; -var login = ''; -var uploader; -var virtual_classroom_id = ''; -function createUploader(options) { - doCreateUploader(options); -} -function doCreateUploader(options) { - uploader = new (aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default().Vod)({ - timeout: 60000, - partSize: 1048576, - parallel: 5, - retryCount: 3, - retryDuration: 2, - region: 'ap-southeast-1', - userId: 1829848226361863, - enableUploadProgress: false, - addFileSuccess: function addFileSuccess(uploadInfo) { - console.log("addFileSuccess: " + uploadInfo.file.name); - options.addFileSuccess && options.addFileSuccess(uploadInfo); - uploader.startUpload(); - }, - // 开始上传 - onUploadstarted: function onUploadstarted(uploadInfo) { - var fileName = uploadInfo.file.name; - if (!uploadInfo.videoId) { - var createUrl = "/api/users/".concat(login, "/video_auths.json"); - var _random = ''; // Math.random().toString().substring(3, 6)+'-' - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(createUrl, { - method: 'Post', - body: { - title: _random + fileName, - file_name: _random + fileName, - virtual_classroom_id: virtual_classroom_id - } - }).then(function (response) { - if (response) { - var data = response.data; - var uploadAuth = data.UploadAuth; - var uploadAddress = data.UploadAddress; - var videoId = data.VideoId; - uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId); - } - })["catch"](function (error) { - uploader.deleteFile(uploader._curIndex); - uploader.nextUpload(); - console.log(error); - }); - console.log('文件开始上传...'); - } else { - // 如果videoId有值,根据videoId刷新上传凭证 - var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, { - method: 'put', - body: { - video_id: uploadInfo.videoId, - title: fileName, - file_name: fileName, - virtual_classroom_id: virtual_classroom_id - } - }).then(function (response) { - if (response.status == -1) { - options.onUploadError && options.onUploadError(uploadInfo); - return; - } - var data = response.data; - var uploadAuth = data.UploadAuth; - var uploadAddress = data.UploadAddress; - var videoId = data.VideoId; - uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress); - })["catch"](function (error) { - uploader.deleteFile(uploader._curIndex); - uploader.nextUpload(); - console.log(error); - }); - } - }, - // 文件上传成功 - onUploadSucceed: function onUploadSucceed(uploadInfo) { - options.onUploadSucceed && options.onUploadSucceed(uploadInfo); - console.log('文件上传成功!'); - }, - // 文件上传失败 - onUploadFailed: function onUploadFailed(uploadInfo, code, message) { - options.onUploadFailed && options.onUploadFailed(uploadInfo); - console.log('文件上传失败!'); - }, - // 取消文件上传 - onUploadCanceled: function onUploadCanceled(uploadInfo, code, message) { - console.log('文件上传已暂停!'); - }, - // 文件上传进度,单位:字节, 可以在这个函数中拿到上传进度并显示在页面上 - onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) { - options.onUploadProgress && options.onUploadProgress(uploadInfo, totalSize, progress); - var progressPercent = Math.ceil(progress * 100); - console.log('文件上传中...'); - }, - // 上传凭证超时 - onUploadTokenExpired: function onUploadTokenExpired(uploadInfo) { - console.log('文件上传超时!'); - var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, { - method: 'put', - body: { - video_id: uploadInfo.videoId - } - }).then(function (response) { - var data = response.data; - var uploadAuth = data.UploadAuth; - uploader.resumeUploadWithAuth(uploadAuth); - })["catch"](function (error) { - console.log(error); - }); - }, - // 全部文件上传结束 - onUploadEnd: function onUploadEnd(uploadInfo) { - options.onUploadEnd && options.onUploadEnd(uploadInfo); - console.log("onUploadEnd: uploaded all the files"); - } - }); - if (options.gotUploader) { - options.gotUploader(uploader); - } -} -function getUploader(_login, _virtual_classroom_id, options) { - _login && (login = _login); - _virtual_classroom_id && (virtual_classroom_id = _virtual_classroom_id); - // if (!uploader || options.create == true) { - createUploader(options); - // } -} + +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); /***/ }), -/***/ 94506: -/*!*********************************!*\ - !*** ./src/utils/fullscreen.ts ***! - \*********************************/ +/***/ 1012: +/*!**************************************************************************!*\ + !*** ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/v4.js + 4 modules ***! + \**************************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ BU: function() { return /* binding */ exitFull; }, -/* harmony export */ Dj: function() { return /* binding */ requestFullScreen; }, -/* harmony export */ gH: function() { return /* binding */ fullscreenChange; }, -/* harmony export */ vp: function() { return /* binding */ IsFull; } -/* harmony export */ }); -function requestFullScreen(element) { - try { - if (element.mozRequestFullScreen) { - element.mozRequestFullScreen(); - } else if (element.webkitRequestFullScreen) { - element.webkitRequestFullScreen(); - } - } catch (e) { - console.log(e, ":e"); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ esm_browser_v4; } +}); + +;// CONCATENATED MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/rng.js +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, +// find the complete implementation of crypto (msCrypto) on IE11. +var getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); +var rnds8 = new Uint8Array(16); +function rng() { + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); } + + return getRandomValues(rnds8); } -function exitFull() { - if (window.top.document.webkitExitFullscreen) { - window.top.document.webkitExitFullscreen(); - } else if (document.exitFullscreen) { - window.top.document.exitFullscreen(); - } else if (document.msExitFullscreen) { - window.top.document.msExitFullscreen(); - } else if (document.mozCancelFullScreen) { - window.top.document.mozCancelFullScreen(); - } +;// CONCATENATED MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/regex.js +/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i); +;// CONCATENATED MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/validate.js + + +function validate(uuid) { + return typeof uuid === 'string' && regex.test(uuid); } -// esliint disabled -var fullscreenChange = function fullscreenChange() { - //['fullscreenchange','msfullscreenchange','webkitfullscreenchange', 'mozfullscreenchange'] - if (document.webkitExitFullscreen) { - // document.webkitExitFullscreen() - return 'webkitfullscreenchange'; - } else if (document.exitFullscreen) { - // document.exitFullscreen() - return 'fullscreenchange'; - } else if (document.msExitFullscreen) { - // document.msExitFullscreen() - return 'msfullscreenchange'; - } else if (document.mozCancelFullScreen) { - // document.mozCancelFullScreen() - return 'mozfullscreenchange'; - } -}; +/* harmony default export */ var esm_browser_validate = (validate); +;// CONCATENATED MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/stringify.js -//判断是否全屏 -function IsFull() { - var fullscreenElement = window.top.document.fullscreenElement || window.top.document.mozFullscreenElement || window.top.document.webkitFullscreenElement; - var fullscreenEnabled = document.fullscreenEnabled || document.mozFullscreenEnabled || document.webkitFullscreenEnabled; - console.log("fullscreenElement", fullscreenElement); - if (fullscreenElement == null) { - return false; - } else { - return true; +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +var byteToHex = []; + +for (var i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!esm_browser_validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); } + + return uuid; } -// document.addEventListener("mozfullscreenchange", function (event) { -// console.log("mozfullscreenchange ", event); -// if (IsFull()) { -// console.log('进入全屏') -// $("#closescreen").show(); -// $("#openscreen").hide(); -// } else { -// console.log('退出全屏') -// $("#closescreen").hide(); -// $("#openscreen").show(); -// } -// }); -// document.addEventListener("webkitfullscreenchange", function (event) { -// console.log("webkitfullscreenchange", event); -// if (IsFull()) { -// console.log('进入全屏') -// $("#closescreen").show(); -// $("#openscreen").hide(); -// } else { -// console.log('退出全屏') -// $("#closescreen").hide(); -// $("#openscreen").show(); -// } -// }); -// document.addEventListener("msfullscreenchange", function (event) { -// console.log("msfullscreenchange", event); -// if (IsFull()) { -// console.log('进入全屏') -// $("#closescreen").show(); -// $("#openscreen").hide(); -// } else { -// console.log('退出全屏') -// $("#closescreen").hide(); -// $("#openscreen").show(); -// } -// }); +/* harmony default export */ var esm_browser_stringify = (stringify); +;// CONCATENATED MODULE: ./node_modules/_uuid@8.3.0@uuid/dist/esm-browser/v4.js -/***/ }), -/***/ 69453: -/*!**********************************************************!*\ - !*** ./node_modules/_antd@5.7.1@antd/es/layout/index.js ***! - \**********************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 95833); -/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 625); -'use client'; +function v4(options, buf, offset) { + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + if (buf) { + offset = offset || 0; -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); + for (var i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return esm_browser_stringify(rnds); +} + +/* harmony default export */ var esm_browser_v4 = (v4); /***/ }), diff --git a/p__Classrooms__Lists__Video__index.chunk.css b/p__Classrooms__Lists__Video__index.chunk.css index a287f6b858..2320a269df 100644 --- a/p__Classrooms__Lists__Video__index.chunk.css +++ b/p__Classrooms__Lists__Video__index.chunk.css @@ -100,6 +100,17 @@ height: 16px; border-radius: 50%; } +.btn___t3aCM { + font-size: 14px; + height: 32px; + padding: 4px 15px; + border-radius: 2px; + color: #3061d0; + background-color: transparent; + border: 1px solid #3061d0; + box-shadow: none; + cursor: pointer; +} /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/CoverUpload/index.less?modules ***! @@ -124,6 +135,13 @@ border-radius: 50%; } +/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ChunkedUpload/index.less?modules ***! + \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ +.upload___jpwPD { + display: inline-block; +} + /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.87@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ diff --git a/p__User__Detail__Videos__Upload__index.async.js b/p__User__Detail__Videos__Upload__index.async.js index 59346c0333..75dc7e16f4 100644 --- a/p__User__Detail__Videos__Upload__index.async.js +++ b/p__User__Detail__Videos__Upload__index.async.js @@ -1,131 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[42240,76824],{ - -/***/ 75769: -/*!*******************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***! - \*******************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_CheckOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(26508); -// 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.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js -// This icon file is generated automatically. -var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" }; -/* harmony default export */ var asn_CheckOutlined = (CheckOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(91851); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_CheckOutlined - })); -}; -if (false) {} -/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined)); - -/***/ }), - -/***/ 42884: -/*!******************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***! - \******************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_DownOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(26508); -// 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.3.1@@ant-design/icons-svg/es/asn/DownOutlined.js -// This icon file is generated automatically. -var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" }; -/* harmony default export */ var asn_DownOutlined = (DownOutlined); - -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(91851); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var DownOutlined_DownOutlined = function DownOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_DownOutlined - })); -}; -if (false) {} -/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined)); - -/***/ }), - -/***/ 15997: -/*!*****************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.2.6@@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.23.2@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(26508); -// 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.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(91851); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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 - })); -}; -if (false) {} -/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined)); - -/***/ }), +(self["webpackChunk"] = self["webpackChunk"] || []).push([[42240],{ /***/ 59389: /*!**********************************************************!*\ @@ -249,9 +123,9 @@ var CoverUpload = function CoverUpload(_ref) { /***/ }), -/***/ 86059: +/***/ 26581: /*!*******************************************************************!*\ - !*** ./src/pages/User/Detail/Videos/Upload/index.tsx + 2 modules ***! + !*** ./src/pages/User/Detail/Videos/Upload/index.tsx + 3 modules ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { @@ -306,8 +180,144 @@ var CoverUpload = __webpack_require__(59389); ;// CONCATENATED MODULE: ./src/pages/User/Detail/Videos/Upload/index.less?modules // extracted by mini-css-extract-plugin /* harmony default export */ var Uploadmodules = ({"bg":"bg___Pdlx1","heard":"heard___D5VPz","videos":"videos___cIcnS","back":"back___M0SxP","uploadTop":"uploadTop___Hd6A6","imgWrap":"imgWrap___Jenfg","imgDiv":"imgDiv___Y9mbc","defaultImg":"defaultImg___KNaal","hoverImg":"hoverImg___YUDht","uploadTitle":"uploadTitle___QxurB","colorBlue":"colorBlue___zFvtj","uploadDescription":"uploadDescription___tk2cJ","spanTitle":"spanTitle___lwI5C","colorOrange":"colorOrange___ebCVZ","fileMain":"fileMain___zR7Vy","fileWrap":"fileWrap___v5NKm","fileProgress":"fileProgress___lML1V","fileCancel":"fileCancel___biJ3s","fileInputWrap":"fileInputWrap___UXT5i","fileImgWrap":"fileImgWrap___pbDh2","fileInput":"fileInput___Etaoa","flexRowCenter":"flexRowCenter___cmEiQ","continueAdd":"continueAdd___fIdAa"}); -// EXTERNAL MODULE: ./src/utils/aliyunUpload.ts -var aliyunUpload = __webpack_require__(1502); +// EXTERNAL MODULE: ./src/utils/fetch.ts +var fetch = __webpack_require__(97174); +// EXTERNAL MODULE: ./node_modules/_aliyun-vod-upload-ll@0.0.1@aliyun-vod-upload-ll/index.js +var _aliyun_vod_upload_ll_0_0_1_aliyun_vod_upload_ll = __webpack_require__(93125); +var _aliyun_vod_upload_ll_0_0_1_aliyun_vod_upload_ll_default = /*#__PURE__*/__webpack_require__.n(_aliyun_vod_upload_ll_0_0_1_aliyun_vod_upload_ll); +;// CONCATENATED MODULE: ./src/utils/aliyunUpload.ts + + +var login = ''; +var uploader; +var virtual_classroom_id = ''; +function createUploader(options) { + doCreateUploader(options); +} +function doCreateUploader(options) { + uploader = new (_aliyun_vod_upload_ll_0_0_1_aliyun_vod_upload_ll_default()).Vod({ + timeout: 60000, + partSize: 1048576, + parallel: 5, + retryCount: 3, + retryDuration: 2, + region: 'ap-southeast-1', + userId: 1829848226361863, + enableUploadProgress: false, + addFileSuccess: function addFileSuccess(uploadInfo) { + console.log("addFileSuccess: " + uploadInfo.file.name); + options.addFileSuccess && options.addFileSuccess(uploadInfo); + uploader.startUpload(); + }, + // 开始上传 + onUploadstarted: function onUploadstarted(uploadInfo) { + var fileName = uploadInfo.file.name; + if (!uploadInfo.videoId) { + var createUrl = "/api/users/".concat(login, "/video_auths.json"); + var _random = ''; // Math.random().toString().substring(3, 6)+'-' + (0,fetch/* default */.ZP)(createUrl, { + method: 'Post', + body: { + title: _random + fileName, + file_name: _random + fileName, + virtual_classroom_id: virtual_classroom_id + } + }).then(function (response) { + if (response) { + var data = response.data; + var uploadAuth = data.UploadAuth; + var uploadAddress = data.UploadAddress; + var videoId = data.VideoId; + uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId); + } + })["catch"](function (error) { + uploader.deleteFile(uploader._curIndex); + uploader.nextUpload(); + console.log(error); + }); + console.log('文件开始上传...'); + } else { + // 如果videoId有值,根据videoId刷新上传凭证 + var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); + (0,fetch/* default */.ZP)(refreshUrl, { + method: 'put', + body: { + video_id: uploadInfo.videoId, + title: fileName, + file_name: fileName, + virtual_classroom_id: virtual_classroom_id + } + }).then(function (response) { + if (response.status == -1) { + options.onUploadError && options.onUploadError(uploadInfo); + return; + } + var data = response.data; + var uploadAuth = data.UploadAuth; + var uploadAddress = data.UploadAddress; + var videoId = data.VideoId; + uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress); + })["catch"](function (error) { + uploader.deleteFile(uploader._curIndex); + uploader.nextUpload(); + console.log(error); + }); + } + }, + // 文件上传成功 + onUploadSucceed: function onUploadSucceed(uploadInfo) { + options.onUploadSucceed && options.onUploadSucceed(uploadInfo); + console.log('文件上传成功!'); + }, + // 文件上传失败 + onUploadFailed: function onUploadFailed(uploadInfo, code, message) { + options.onUploadFailed && options.onUploadFailed(uploadInfo); + console.log('文件上传失败!'); + }, + // 取消文件上传 + onUploadCanceled: function onUploadCanceled(uploadInfo, code, message) { + console.log('文件上传已暂停!'); + }, + // 文件上传进度,单位:字节, 可以在这个函数中拿到上传进度并显示在页面上 + onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) { + options.onUploadProgress && options.onUploadProgress(uploadInfo, totalSize, progress); + var progressPercent = Math.ceil(progress * 100); + console.log('文件上传中...'); + }, + // 上传凭证超时 + onUploadTokenExpired: function onUploadTokenExpired(uploadInfo) { + console.log('文件上传超时!'); + var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); + (0,fetch/* default */.ZP)(refreshUrl, { + method: 'put', + body: { + video_id: uploadInfo.videoId + } + }).then(function (response) { + var data = response.data; + var uploadAuth = data.UploadAuth; + uploader.resumeUploadWithAuth(uploadAuth); + })["catch"](function (error) { + console.log(error); + }); + }, + // 全部文件上传结束 + onUploadEnd: function onUploadEnd(uploadInfo) { + options.onUploadEnd && options.onUploadEnd(uploadInfo); + console.log("onUploadEnd: uploaded all the files"); + } + }); + if (options.gotUploader) { + options.gotUploader(uploader); + } +} +function getUploader(_login, _virtual_classroom_id, options) { + _login && (login = _login); + _virtual_classroom_id && (virtual_classroom_id = _virtual_classroom_id); + // if (!uploader || options.create == true) { + createUploader(options); + // } +} // EXTERNAL MODULE: ./src/service/user.ts var service_user = __webpack_require__(52138); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -487,7 +497,7 @@ var Upload = function Upload(_ref) { uploader.current.addFile(file, null, null, null, userData); return; } - (0,aliyunUpload/* getUploader */.o)(params === null || params === void 0 ? void 0 : params.username, '', { + getUploader(params === null || params === void 0 ? void 0 : params.username, '', { create: !uploader, addFileSuccess: function addFileSuccess(uploadInfo) { stateDispatch({ @@ -778,1282 +788,6 @@ var Upload = function Upload(_ref) { }; })(Upload)); -/***/ }), - -/***/ 1502: -/*!***********************************!*\ - !*** ./src/utils/aliyunUpload.ts ***! - \***********************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ o: function() { return /* binding */ getUploader; } -/* harmony export */ }); -/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/fetch */ 97174); -/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! aliyun-vod-upload-ll */ 93125); -/* harmony import */ var aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1__); - - -var login = ''; -var uploader; -var virtual_classroom_id = ''; -function createUploader(options) { - doCreateUploader(options); -} -function doCreateUploader(options) { - uploader = new (aliyun_vod_upload_ll__WEBPACK_IMPORTED_MODULE_1___default().Vod)({ - timeout: 60000, - partSize: 1048576, - parallel: 5, - retryCount: 3, - retryDuration: 2, - region: 'ap-southeast-1', - userId: 1829848226361863, - enableUploadProgress: false, - addFileSuccess: function addFileSuccess(uploadInfo) { - console.log("addFileSuccess: " + uploadInfo.file.name); - options.addFileSuccess && options.addFileSuccess(uploadInfo); - uploader.startUpload(); - }, - // 开始上传 - onUploadstarted: function onUploadstarted(uploadInfo) { - var fileName = uploadInfo.file.name; - if (!uploadInfo.videoId) { - var createUrl = "/api/users/".concat(login, "/video_auths.json"); - var _random = ''; // Math.random().toString().substring(3, 6)+'-' - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(createUrl, { - method: 'Post', - body: { - title: _random + fileName, - file_name: _random + fileName, - virtual_classroom_id: virtual_classroom_id - } - }).then(function (response) { - if (response) { - var data = response.data; - var uploadAuth = data.UploadAuth; - var uploadAddress = data.UploadAddress; - var videoId = data.VideoId; - uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress, videoId); - } - })["catch"](function (error) { - uploader.deleteFile(uploader._curIndex); - uploader.nextUpload(); - console.log(error); - }); - console.log('文件开始上传...'); - } else { - // 如果videoId有值,根据videoId刷新上传凭证 - var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, { - method: 'put', - body: { - video_id: uploadInfo.videoId, - title: fileName, - file_name: fileName, - virtual_classroom_id: virtual_classroom_id - } - }).then(function (response) { - if (response.status == -1) { - options.onUploadError && options.onUploadError(uploadInfo); - return; - } - var data = response.data; - var uploadAuth = data.UploadAuth; - var uploadAddress = data.UploadAddress; - var videoId = data.VideoId; - uploader.setUploadAuthAndAddress(uploadInfo, uploadAuth, uploadAddress); - })["catch"](function (error) { - uploader.deleteFile(uploader._curIndex); - uploader.nextUpload(); - console.log(error); - }); - } - }, - // 文件上传成功 - onUploadSucceed: function onUploadSucceed(uploadInfo) { - options.onUploadSucceed && options.onUploadSucceed(uploadInfo); - console.log('文件上传成功!'); - }, - // 文件上传失败 - onUploadFailed: function onUploadFailed(uploadInfo, code, message) { - options.onUploadFailed && options.onUploadFailed(uploadInfo); - console.log('文件上传失败!'); - }, - // 取消文件上传 - onUploadCanceled: function onUploadCanceled(uploadInfo, code, message) { - console.log('文件上传已暂停!'); - }, - // 文件上传进度,单位:字节, 可以在这个函数中拿到上传进度并显示在页面上 - onUploadProgress: function onUploadProgress(uploadInfo, totalSize, progress) { - options.onUploadProgress && options.onUploadProgress(uploadInfo, totalSize, progress); - var progressPercent = Math.ceil(progress * 100); - console.log('文件上传中...'); - }, - // 上传凭证超时 - onUploadTokenExpired: function onUploadTokenExpired(uploadInfo) { - console.log('文件上传超时!'); - var refreshUrl = "/api/users/".concat(login, "/video_auths.json"); - (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP)(refreshUrl, { - method: 'put', - body: { - video_id: uploadInfo.videoId - } - }).then(function (response) { - var data = response.data; - var uploadAuth = data.UploadAuth; - uploader.resumeUploadWithAuth(uploadAuth); - })["catch"](function (error) { - console.log(error); - }); - }, - // 全部文件上传结束 - onUploadEnd: function onUploadEnd(uploadInfo) { - options.onUploadEnd && options.onUploadEnd(uploadInfo); - console.log("onUploadEnd: uploaded all the files"); - } - }); - if (options.gotUploader) { - options.gotUploader(uploader); - } -} -function getUploader(_login, _virtual_classroom_id, options) { - _login && (login = _login); - _virtual_classroom_id && (virtual_classroom_id = _virtual_classroom_id); - // if (!uploader || options.create == true) { - createUploader(options); - // } -} - -/***/ }), - -/***/ 56986: -/*!*************************************************************!*\ - !*** ./node_modules/_antd@5.7.1@antd/es/_util/PurePanel.js ***! - \*************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Z: function() { return /* binding */ genPurePanel; } -/* harmony export */ }); -/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 41760); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301); -/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 16182); -/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 48938); - - - -/* istanbul ignore next */ -function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) { - return function PurePanel(props) { - const { - prefixCls: customizePrefixCls, - style - } = props; - const holderRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null); - const [popupHeight, setPopupHeight] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0); - const [popupWidth, setPopupWidth] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0); - const [open, setOpen] = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(false, { - value: props.open - }); - const { - getPrefixCls - } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_); - const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls); - react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { - // We do not care about ssr - setOpen(true); - if (typeof ResizeObserver !== 'undefined') { - const resizeObserver = new ResizeObserver(entries => { - const element = entries[0].target; - setPopupHeight(element.offsetHeight + 8); - setPopupWidth(element.offsetWidth); - }); - const interval = setInterval(() => { - var _a; - const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`; - const popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls); - if (popup) { - clearInterval(interval); - resizeObserver.observe(popup); - } - }, 10); - return () => { - clearInterval(interval); - resizeObserver.disconnect(); - }; - } - }, []); - let mergedProps = Object.assign(Object.assign({}, props), { - style: Object.assign(Object.assign({}, style), { - margin: 0 - }), - open, - visible: open, - getPopupContainer: () => holderRef.current - }); - if (postProps) { - mergedProps = postProps(mergedProps); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, { - theme: { - token: { - motion: false - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { - ref: holderRef, - style: { - paddingBottom: popupHeight, - position: 'relative', - minWidth: popupWidth - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Component, Object.assign({}, mergedProps)))); - }; -} - -/***/ }), - -/***/ 81374: -/*!************************************************************************!*\ - !*** ./node_modules/_antd@5.7.1@antd/es/_util/hooks/useForceUpdate.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Z: function() { return /* binding */ useForceUpdate; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301); - -function useForceUpdate() { - const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0); - return forceUpdate; -} - -/***/ }), - -/***/ 36915: -/*!**************************************************************************!*\ - !*** ./node_modules/_antd@5.7.1@antd/es/breadcrumb/index.js + 6 modules ***! - \**************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ breadcrumb; } -}); - -// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js -var _classnames_2_3_2_classnames = __webpack_require__(12124); -var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/Children/toArray.js -var toArray = __webpack_require__(38930); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/pickAttrs.js -var pickAttrs = __webpack_require__(5090); -// 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.7.1@antd/es/_util/reactNode.js -var reactNode = __webpack_require__(63553); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/context.js -var context = __webpack_require__(16182); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules -var DownOutlined = __webpack_require__(42884); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/dropdown/dropdown.js -var dropdown = __webpack_require__(38685); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/BreadcrumbSeparator.js - - -const BreadcrumbSeparator = _ref => { - let { - children - } = _ref; - const { - getPrefixCls - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const prefixCls = getPrefixCls('breadcrumb'); - return /*#__PURE__*/_react_17_0_2_react.createElement("li", { - className: `${prefixCls}-separator`, - "aria-hidden": "true" - }, children === '' ? children : children || '/'); -}; -BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true; -/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/useItemRender.js -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - -function getBreadcrumbName(route, params) { - if (route.title === undefined || route.title === null) { - return null; - } - const paramsKeys = Object.keys(params).join('|'); - return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement); -} -function renderItem(prefixCls, item, children, href) { - if (children === null || children === undefined) { - return null; - } - const { - className, - onClick - } = item, - restItem = __rest(item, ["className", "onClick"]); - const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, { - data: true, - aria: true - })), { - onClick - }); - if (href !== undefined) { - return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, { - className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className), - href: href - }), children); - } - return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, { - className: _classnames_2_3_2_classnames_default()(`${prefixCls}-link`, className) - }), children); -} -function useItemRender(prefixCls, itemRender) { - const mergedItemRender = (item, params, routes, path, href) => { - if (itemRender) { - return itemRender(item, params, routes, path); - } - const name = getBreadcrumbName(item, params); - return renderItem(prefixCls, item, name, href); - }; - return mergedItemRender; -} -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/BreadcrumbItem.js -var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - -const InternalBreadcrumbItem = props => { - const { - prefixCls, - separator = '/', - children, - menu, - overlay, - dropdownProps, - href - } = props; - // Warning for deprecated usage - if (false) {} - /** If overlay is have Wrap a Dropdown */ - const renderBreadcrumbNode = breadcrumbItem => { - if (menu || overlay) { - const mergeDropDownProps = Object.assign({}, dropdownProps); - if (menu) { - const _a = menu || {}, - { - items - } = _a, - menuProps = BreadcrumbItem_rest(_a, ["items"]); - mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), { - items: items === null || items === void 0 ? void 0 : items.map((_a, index) => { - var { - key, - title, - label, - path - } = _a, - itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]); - let mergedLabel = label !== null && label !== void 0 ? label : title; - if (path) { - mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", { - href: `${href}${path}` - }, mergedLabel); - } - return Object.assign(Object.assign({}, itemProps), { - key: key !== null && key !== void 0 ? key : index, - label: mergedLabel - }); - }) - }); - } else if (overlay) { - mergeDropDownProps.overlay = overlay; - } - return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({ - placement: "bottom" - }, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", { - className: `${prefixCls}-overlay-link` - }, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null))); - } - return breadcrumbItem; - }; - // wrap to dropDown - const link = renderBreadcrumbNode(children); - if (link !== undefined && link !== null) { - return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator)); - } - return null; -}; -const BreadcrumbItem = props => { - const { - prefixCls: customizePrefixCls, - children, - href - } = props, - restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]); - const { - getPrefixCls - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); - return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, { - prefixCls: prefixCls - }), renderItem(prefixCls, restProps, children, href)); -}; -BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true; -/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/style/index.js -var style = __webpack_require__(39970); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/theme/util/genComponentStyleHook.js -var genComponentStyleHook = __webpack_require__(70770); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/theme/util/statistic.js -var statistic = __webpack_require__(3562); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/style/index.js - - -const genBreadcrumbStyle = token => { - const { - componentCls, - iconCls - } = token; - return { - [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { - color: token.itemColor, - fontSize: token.fontSize, - [iconCls]: { - fontSize: token.iconFontSize - }, - ol: { - display: 'flex', - flexWrap: 'wrap', - margin: 0, - padding: 0, - listStyle: 'none' - }, - a: Object.assign({ - color: token.linkColor, - transition: `color ${token.motionDurationMid}`, - padding: `0 ${token.paddingXXS}px`, - borderRadius: token.borderRadiusSM, - height: token.lineHeight * token.fontSize, - display: 'inline-block', - marginInline: -token.marginXXS, - '&:hover': { - color: token.linkHoverColor, - backgroundColor: token.colorBgTextHover - } - }, (0,style/* genFocusStyle */.Qy)(token)), - [`li:last-child`]: { - color: token.lastItemColor - }, - [`${componentCls}-separator`]: { - marginInline: token.separatorMargin, - color: token.separatorColor - }, - [`${componentCls}-link`]: { - [` - > ${iconCls} + span, - > ${iconCls} + a - `]: { - marginInlineStart: token.marginXXS - } - }, - [`${componentCls}-overlay-link`]: { - borderRadius: token.borderRadiusSM, - height: token.lineHeight * token.fontSize, - display: 'inline-block', - padding: `0 ${token.paddingXXS}px`, - marginInline: -token.marginXXS, - [`> ${iconCls}`]: { - marginInlineStart: token.marginXXS, - fontSize: token.fontSizeIcon - }, - '&:hover': { - color: token.linkHoverColor, - backgroundColor: token.colorBgTextHover, - a: { - color: token.linkHoverColor - } - }, - a: { - '&:hover': { - backgroundColor: 'transparent' - } - } - }, - // rtl style - [`&${token.componentCls}-rtl`]: { - direction: 'rtl' - } - }) - }; -}; -// ============================== Export ============================== -/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => { - const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {}); - return [genBreadcrumbStyle(BreadcrumbToken)]; -}, token => ({ - itemColor: token.colorTextDescription, - lastItemColor: token.colorText, - iconFontSize: token.fontSize, - linkColor: token.colorTextDescription, - linkHoverColor: token.colorText, - separatorColor: token.colorTextDescription, - separatorMargin: token.marginXS -}))); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/useItems.js -var useItems_rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - -function route2item(route) { - const { - breadcrumbName, - children - } = route, - rest = useItems_rest(route, ["breadcrumbName", "children"]); - const clone = Object.assign({ - title: breadcrumbName - }, rest); - if (children) { - clone.menu = { - items: children.map(_a => { - var { - breadcrumbName: itemBreadcrumbName - } = _a, - itemProps = useItems_rest(_a, ["breadcrumbName"]); - return Object.assign(Object.assign({}, itemProps), { - title: itemBreadcrumbName - }); - }) - }; - } - return clone; -} -function useItems(items, routes) { - return (0,_react_17_0_2_react.useMemo)(() => { - if (items) { - return items; - } - if (routes) { - return routes.map(route2item); - } - return null; - }, [items, routes]); -} -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/Breadcrumb.js -var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - - - -const getPath = (params, path) => { - if (path === undefined) { - return path; - } - let mergedPath = (path || '').replace(/^\//, ''); - Object.keys(params).forEach(key => { - mergedPath = mergedPath.replace(`:${key}`, params[key]); - }); - return mergedPath; -}; -const Breadcrumb = props => { - const { - prefixCls: customizePrefixCls, - separator = '/', - style, - className, - rootClassName, - routes: legacyRoutes, - items, - children, - itemRender, - params = {} - } = props, - restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]); - const { - getPrefixCls, - direction, - breadcrumb - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - let crumbs; - const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls); - const [wrapSSR, hashId] = breadcrumb_style(prefixCls); - const mergedItems = useItems(items, legacyRoutes); - if (false) {} - const mergedItemRender = useItemRender(prefixCls, itemRender); - if (mergedItems && mergedItems.length > 0) { - // generated by route - const paths = []; - const itemRenderRoutes = items || legacyRoutes; - crumbs = mergedItems.map((item, index) => { - const { - path, - key, - type, - menu, - overlay, - onClick, - className: itemClassName, - separator: itemSeparator, - dropdownProps - } = item; - const mergedPath = getPath(params, path); - if (mergedPath !== undefined) { - paths.push(mergedPath); - } - const mergedKey = key !== null && key !== void 0 ? key : index; - if (type === 'separator') { - return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, { - key: mergedKey - }, itemSeparator); - } - const itemProps = {}; - const isLastItem = index === mergedItems.length - 1; - if (menu) { - itemProps.menu = menu; - } else if (overlay) { - itemProps.overlay = overlay; - } - let { - href - } = item; - if (paths.length && mergedPath !== undefined) { - href = `#/${paths.join('/')}`; - } - return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({ - key: mergedKey - }, itemProps, (0,pickAttrs/* default */.Z)(item, { - data: true, - aria: true - }), { - className: itemClassName, - dropdownProps: dropdownProps, - href: href, - separator: isLastItem ? '' : separator, - onClick: onClick, - prefixCls: prefixCls - }), mergedItemRender(item, params, itemRenderRoutes, paths, href)); - }); - } else if (children) { - const childrenLength = (0,toArray/* default */.Z)(children).length; - crumbs = (0,toArray/* default */.Z)(children).map((element, index) => { - if (!element) { - return element; - } - // =================== Warning ===================== - if (false) {} - false ? 0 : void 0; - const isLastItem = index === childrenLength - 1; - return (0,reactNode/* cloneElement */.Tm)(element, { - separator: isLastItem ? '' : separator, - key: index - }); - }); - } - const breadcrumbClassName = _classnames_2_3_2_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, { - [`${prefixCls}-rtl`]: direction === 'rtl' - }, className, rootClassName, hashId); - const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style); - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({ - className: breadcrumbClassName, - style: mergedStyle - }, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs))); -}; -Breadcrumb.Item = breadcrumb_BreadcrumbItem; -Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator; -if (false) {} -/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/breadcrumb/index.js -'use client'; - - -/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb); - -/***/ }), - -/***/ 56613: -/*!*********************************************************************!*\ - !*** ./node_modules/_antd@5.7.1@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.3.2@classnames/index.js -var _classnames_2_3_2_classnames = __webpack_require__(12124); -var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames); -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/context.js -var context = __webpack_require__(16182); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/form/context.js -var form_context = __webpack_require__(67095); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/input/style/index.js -var style = __webpack_require__(32547); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Group.js - - - - - - - -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_3_2_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.7.1@antd/es/input/Input.js + 1 modules -var Input = __webpack_require__(68675); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(26508); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules -var AntdIcon = __webpack_require__(91851); -;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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 - })); -}; -if (false) {} -/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined)); -// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules -var EyeOutlined = __webpack_require__(15997); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/omit.js -var omit = __webpack_require__(39029); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.0@rc-util/es/ref.js -var es_ref = __webpack_require__(9681); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/input/hooks/useRemovePasswordTimeout.js -var useRemovePasswordTimeout = __webpack_require__(17674); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Password.js -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_3_2_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.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules -var SearchOutlined = __webpack_require__(46820); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/_util/reactNode.js -var reactNode = __webpack_require__(63553); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/button/index.js -var es_button = __webpack_require__(5436); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/config-provider/hooks/useSize.js -var useSize = __webpack_require__(76833); -// EXTERNAL MODULE: ./node_modules/_antd@5.7.1@antd/es/space/Compact.js -var Compact = __webpack_require__(80155); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@antd/es/input/Search.js -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); - } - 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); - } - }; - 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_3_2_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.7.1@antd/es/input/TextArea.js -var TextArea = __webpack_require__(38289); -;// CONCATENATED MODULE: ./node_modules/_antd@5.7.1@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); - -/***/ }), - -/***/ 76956: -/*!***************************************************************!*\ - !*** ./node_modules/_antd@5.7.1@antd/es/style/motion/move.js ***! - \***************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; } -/* harmony export */ }); -/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */ -/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 84608); -/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 4194); - - -const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', { - '0%': { - transform: 'translate3d(0, 100%, 0)', - transformOrigin: '0 0', - opacity: 0 - }, - '100%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - } -}); -const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', { - '0%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - }, - '100%': { - transform: 'translate3d(0, 100%, 0)', - transformOrigin: '0 0', - opacity: 0 - } -}); -const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', { - '0%': { - transform: 'translate3d(-100%, 0, 0)', - transformOrigin: '0 0', - opacity: 0 - }, - '100%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - } -}); -const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', { - '0%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - }, - '100%': { - transform: 'translate3d(-100%, 0, 0)', - transformOrigin: '0 0', - opacity: 0 - } -}); -const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', { - '0%': { - transform: 'translate3d(100%, 0, 0)', - transformOrigin: '0 0', - opacity: 0 - }, - '100%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - } -}); -const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', { - '0%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - }, - '100%': { - transform: 'translate3d(100%, 0, 0)', - transformOrigin: '0 0', - opacity: 0 - } -}); -const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', { - '0%': { - transform: 'translate3d(0, -100%, 0)', - transformOrigin: '0 0', - opacity: 0 - }, - '100%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - } -}); -const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', { - '0%': { - transform: 'translate3d(0, 0, 0)', - transformOrigin: '0 0', - opacity: 1 - }, - '100%': { - transform: 'translate3d(0, -100%, 0)', - transformOrigin: '0 0', - opacity: 0 - } -}); -const moveMotion = { - 'move-up': { - inKeyframes: moveUpIn, - outKeyframes: moveUpOut - }, - 'move-down': { - inKeyframes: moveDownIn, - outKeyframes: moveDownOut - }, - 'move-left': { - inKeyframes: moveLeftIn, - outKeyframes: moveLeftOut - }, - 'move-right': { - inKeyframes: moveRightIn, - outKeyframes: moveRightOut - } -}; -const initMoveMotion = (token, motionName) => { - const { - antCls - } = token; - const motionCls = `${antCls}-${motionName}`; - const { - inKeyframes, - outKeyframes - } = moveMotion[motionName]; - return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), { - [` - ${motionCls}-enter, - ${motionCls}-appear - `]: { - opacity: 0, - animationTimingFunction: token.motionEaseOutCirc - }, - [`${motionCls}-leave`]: { - animationTimingFunction: token.motionEaseInOutCirc - } - }]; -}; - /***/ }) }]); \ No newline at end of file diff --git a/umi.js b/umi.js index 4d00532a0c..1da8a9b9e4 100644 --- a/umi.js +++ b/umi.js @@ -128523,10 +128523,10 @@ function _getRoutes() { return Promise.all(/*! import() | p__Classrooms__Lists__Attachment__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(32796), __webpack_require__.e(99818), __webpack_require__.e(555), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(67153), __webpack_require__.e(8819), __webpack_require__.e(4977), __webpack_require__.e(86171), __webpack_require__.e(6758)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Attachment/index.tsx */ 26552)); }), '124': /*#__PURE__*/_react_17_0_2_react.lazy(function () { - return Promise.all(/*! import() | p__Classrooms__Lists__Video__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(99818), __webpack_require__.e(555), __webpack_require__.e(36775), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(73807), __webpack_require__.e(27011), __webpack_require__.e(29069), __webpack_require__.e(50294), __webpack_require__.e(4977), __webpack_require__.e(39332)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Video/index.tsx */ 49559)); + return Promise.all(/*! import() | p__Classrooms__Lists__Video__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(99818), __webpack_require__.e(555), __webpack_require__.e(36775), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(73807), __webpack_require__.e(27011), __webpack_require__.e(50294), __webpack_require__.e(4977), __webpack_require__.e(62293), __webpack_require__.e(39332)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Video/index.tsx */ 49559)); }), '125': /*#__PURE__*/_react_17_0_2_react.lazy(function () { - return Promise.all(/*! import() | p__Classrooms__Lists__Video__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(99818), __webpack_require__.e(555), __webpack_require__.e(36775), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(73807), __webpack_require__.e(27011), __webpack_require__.e(29069), __webpack_require__.e(50294), __webpack_require__.e(4977), __webpack_require__.e(39332)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Video/index.tsx */ 49559)); + return Promise.all(/*! import() | p__Classrooms__Lists__Video__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(99818), __webpack_require__.e(555), __webpack_require__.e(36775), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(73807), __webpack_require__.e(27011), __webpack_require__.e(50294), __webpack_require__.e(4977), __webpack_require__.e(62293), __webpack_require__.e(39332)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Video/index.tsx */ 49559)); }), '126': /*#__PURE__*/_react_17_0_2_react.lazy(function () { return Promise.all(/*! import() | p__Classrooms__Lists__Video__Statistics__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(87732), __webpack_require__.e(82281), __webpack_require__.e(99818), __webpack_require__.e(837), __webpack_require__.e(96377), __webpack_require__.e(64125), __webpack_require__.e(64217)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/Classrooms/Lists/Video/Statistics/index.tsx */ 30026)); @@ -128868,7 +128868,7 @@ function _getRoutes() { return Promise.all(/*! import() | p__User__Detail__Videos__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(58112), __webpack_require__.e(87732), __webpack_require__.e(555), __webpack_require__.e(36775), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(4955), __webpack_require__.e(35446), __webpack_require__.e(27011), __webpack_require__.e(16015), __webpack_require__.e(50294), __webpack_require__.e(4977), __webpack_require__.e(90074), __webpack_require__.e(39030), __webpack_require__.e(62293), __webpack_require__.e(12412)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/User/Detail/Videos/index.tsx */ 27118)); }), '239': /*#__PURE__*/_react_17_0_2_react.lazy(function () { - return Promise.all(/*! import() | p__User__Detail__Videos__Upload__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(29069), __webpack_require__.e(42240)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/User/Detail/Videos/Upload/index.tsx */ 86059)); + return Promise.all(/*! import() | p__User__Detail__Videos__Upload__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(38901), __webpack_require__.e(70748), __webpack_require__.e(13851), __webpack_require__.e(42240)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/User/Detail/Videos/Upload/index.tsx */ 26581)); }), '240': /*#__PURE__*/_react_17_0_2_react.lazy(function () { return Promise.all(/*! import() | p__User__Detail__Topics__index */[__webpack_require__.e(28647), __webpack_require__.e(88246), __webpack_require__.e(47640), __webpack_require__.e(58889), __webpack_require__.e(56099), __webpack_require__.e(10753), __webpack_require__.e(65342), __webpack_require__.e(78851), __webpack_require__.e(77904), __webpack_require__.e(2719), __webpack_require__.e(21155), __webpack_require__.e(38685), __webpack_require__.e(85436), __webpack_require__.e(87732), __webpack_require__.e(555), __webpack_require__.e(4955), __webpack_require__.e(35446), __webpack_require__.e(16015), __webpack_require__.e(4977), __webpack_require__.e(90074), __webpack_require__.e(90265)]).then(__webpack_require__.bind(__webpack_require__, /*! @/pages/User/Detail/Topics/index.tsx */ 5295));