From 05eeb08fc8a242d7eeb0fd8a71963e0c9b7e28f0 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 8 Dec 2023 17:41:44 +0800 Subject: [PATCH] Auto Submit --- 11436.async.js | 3 +- 15220.async.js | 5 +- 93982.async.js => 19025.async.js | 1081 +++++- 23613.async.js | 2 +- 29414.async.js | 5 +- 3471.async.js | 5 +- 41001.async.js | 5 +- 44894.async.js | 3 +- 47400.async.js | 3 +- 488.async.js | 6 +- 49166.async.js | 5 +- 49845.async.js | 5 +- 50057.async.js | 5 +- 57435.async.js | 5 +- 63240.async.js | 5 +- 63510.async.js | 39 +- 63791.async.js | 5 +- 64738.async.js | 5 +- 68719.async.js | 1515 --------- 69859.async.js | 5 +- 71244.async.js | 11 +- 72422.async.js | 5 +- 74237.async.js | 2987 +++++++++++++++++ 76626.async.js | 16 +- 80758.async.js | 1344 -------- 89200.async.js | 8 - 89493.async.js | 3 +- 91375.async.js | 5 +- 99131.async.js | 5 +- js/public.js | 48 +- layouts__ShixunDetail__index.async.js | 9 +- layouts__user__index.async.js | 4 +- p__Administration__College__index.async.js | 5 +- ...ssrooms__Lists__Attachment__index.async.js | 3 +- ...srooms__Lists__Attachment__index.chunk.css | 2 +- ...s__CommonHomework__Comment__index.async.js | 3 +- ...ts__CommonHomework__Detail__index.async.js | 5 +- ...oms__Lists__CommonHomework__index.async.js | 10 +- ...__Lists__CourseGroup__List__index.async.js | 27 +- ...ooms__Lists__Exercise__Add__index.async.js | 3 +- ...s__Lists__Exercise__Answer__index.async.js | 33 +- ...s__Lists__Exercise__Detail__index.async.js | 42 +- ...s__Exercise__ImitateAnswer__index.async.js | 28 +- ...s__Lists__Exercise__Review__index.async.js | 16 +- ...lassrooms__Lists__Exercise__index.async.js | 7 +- ...sts__GroupHomework__Detail__index.async.js | 10 +- ...ooms__Lists__GroupHomework__index.async.js | 2 +- ...ssrooms__Lists__Polls__Add__index.async.js | 10 +- ...ooms__Lists__Polls__Detail__index.async.js | 2 +- p__Classrooms__Lists__Polls__index.async.js | 2 +- ...__ProgramHomework__Comment__index.async.js | 3 +- ...s__ProgramHomework__Detail__index.async.js | 5 +- ...ms__Lists__ProgramHomework__index.async.js | 2 +- ...__ShixunHomeworks__Comment__index.async.js | 3 +- ...s__ShixunHomeworks__Detail__index.async.js | 904 +++-- ...__ShixunHomeworks__Detail__index.chunk.css | 65 +- ...ms__Lists__ShixunHomeworks__index.async.js | 2 +- ...ssrooms__Lists__Statistics__index.async.js | 10 +- ...lassrooms__Lists__Template__index.async.js | 5 +- p__Classrooms__Lists__Video__index.chunk.css | 4 +- p__Competitions__Detail__index.async.js | 3 +- p__Competitions__Edit__index.async.js | 23 +- p__Demo__index.async.js | 3 +- ...ering__Lists__CurseSetting__index.async.js | 3 +- ...gineering__Lists__Document__index.async.js | 3 +- ...ng__Lists__TrainingProgram__index.async.js | 3 +- p__Graduations__Lists__Topics__index.async.js | 11 +- p__Graduations__Review__index.async.js | 3 +- p__Innovation__Detail__index.async.js | 11 +- p__Innovation__Tasks__index.async.js | 8 - p__Message__index.async.js | 5 +- p__MoopCases__InfoPanel__index.async.js | 5 +- p__MyProblem__index.async.js | 3 +- p__Paperlibrary__Add__index.async.js | 3 +- p__Paperlibrary__Random__Edit__index.async.js | 16 +- ...brary__Random__PreviewEdit__index.async.js | 5 +- p__Paths__Index__index.async.js | 8 - p__Problemset__NewItem__index.async.js | 3 +- p__Problemset__index.async.js | 3 +- p__Question__OjProblem__index.async.js | 3 +- p__Question__OjProblem__index.chunk.css | 4 +- p__Shixuns__Detail__Discuss__index.async.js | 8 +- ...hixuns__Detail__Repository__index.async.js | 3 +- p__Shixuns__Detail__id.async.js | 5 +- ...uns__Edit__body__Warehouse__index.async.js | 3 +- p__Shixuns__Edit__index.async.js | 753 +++-- p__User__Detail__Videos__index.chunk.css | 4 +- p__Video__Detail__id.async.js | 3 +- p__Video__Detail__id.chunk.css | 4 +- p__index.async.js | 45 +- p__index.chunk.css | 4 +- p__tasks__Jupyter__index.async.js | 794 ++++- p__tasks__index.async.js | 2171 ++---------- p__tasks__index.chunk.css | 22 +- ...alSpaces__Lists__Knowledge__index.async.js | 11 +- ...paces__Lists__Plan__Detail__index.async.js | 3 +- ...__Lists__Resources__Detail__index.async.js | 3 +- ...ces__Lists__Survey__Detail__index.async.js | 3 +- umi.js | 800 +++-- 99 files changed, 6815 insertions(+), 6323 deletions(-) rename 93982.async.js => 19025.async.js (70%) delete mode 100644 68719.async.js create mode 100644 74237.async.js delete mode 100644 80758.async.js diff --git a/11436.async.js b/11436.async.js index 169170451a..78d4779c11 100644 --- a/11436.async.js +++ b/11436.async.js @@ -306,9 +306,10 @@ var jsx_runtime = __webpack_require__(37712); }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { type: "primary", size: 'middle', - onClick: handleClick, + onClick: handleDown, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] }) + // handleClick })] }); }); diff --git a/15220.async.js b/15220.async.js index c824c1bfa5..f0ca0faec9 100644 --- a/15220.async.js +++ b/15220.async.js @@ -1943,7 +1943,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/93982.async.js b/19025.async.js similarity index 70% rename from 93982.async.js rename to 19025.async.js index 3fd1f0e32e..8efd40fe7a 100644 --- a/93982.async.js +++ b/19025.async.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunk"] = self["webpackChunk"] || []).push([[93982,43428],{ +(self["webpackChunk"] = self["webpackChunk"] || []).push([[19025,43428],{ /***/ 91671: /*!********************************************************************************************************!*\ @@ -1703,7 +1703,10 @@ if (false) {} \***************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); @@ -2623,6 +2626,1080 @@ const rate_Rate = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { if (false) {} /* harmony default export */ var rate = (rate_Rate); +/***/ }), + +/***/ 65615: +/*!*********************************************************************!*\ + !*** ./node_modules/_antd@5.9.0@antd/es/tour/index.js + 12 modules ***! + \*********************************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ tour; } +}); + +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js +var _react_17_0_2_react = __webpack_require__(59301); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectSpread2.js +var objectSpread2 = __webpack_require__(36439); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js +var esm_extends = __webpack_require__(61796); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/typeof.js +var esm_typeof = __webpack_require__(96522); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules +var slicedToArray = __webpack_require__(61860); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/objectWithoutProperties.js +var objectWithoutProperties = __webpack_require__(20968); +// EXTERNAL MODULE: ./node_modules/_@rc-component_portal@1.1.2@@rc-component/portal/es/index.js + 6 modules +var es = __webpack_require__(43403); +// EXTERNAL MODULE: ./node_modules/_@rc-component_trigger@1.18.2@@rc-component/trigger/es/index.js + 11 modules +var trigger_es = __webpack_require__(84728); +// 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.1@rc-util/es/hooks/useLayoutEffect.js +var useLayoutEffect = __webpack_require__(70658); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useMergedState.js +var useMergedState = __webpack_require__(84381); +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useEvent.js +var useEvent = __webpack_require__(60402); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/util.js +function isInViewPort(element) { + var viewWidth = window.innerWidth || document.documentElement.clientWidth; + var viewHeight = window.innerHeight || document.documentElement.clientHeight; + var _element$getBoundingC = element.getBoundingClientRect(), + top = _element$getBoundingC.top, + right = _element$getBoundingC.right, + bottom = _element$getBoundingC.bottom, + left = _element$getBoundingC.left; + return top >= 0 && left >= 0 && right <= viewWidth && bottom <= viewHeight; +} +function getPlacement(targetElement, placement, stepPlacement) { + var _ref; + return (_ref = stepPlacement !== null && stepPlacement !== void 0 ? stepPlacement : placement) !== null && _ref !== void 0 ? _ref : targetElement === null ? 'center' : 'bottom'; +} +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/hooks/useTarget.js + + + + + +function useTarget(target, open, gap, scrollIntoViewOptions) { + // ========================= Target ========================= + // We trade `undefined` as not get target by function yet. + // `null` as empty target. + var _useState = (0,_react_17_0_2_react.useState)(undefined), + _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2), + targetElement = _useState2[0], + setTargetElement = _useState2[1]; + (0,useLayoutEffect/* default */.Z)(function () { + var nextElement = typeof target === 'function' ? target() : target; + setTargetElement(nextElement || null); + }); + + // ========================= Align ========================== + var _useState3 = (0,_react_17_0_2_react.useState)(null), + _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2), + posInfo = _useState4[0], + setPosInfo = _useState4[1]; + var updatePos = (0,useEvent/* default */.Z)(function () { + if (targetElement) { + // Exist target element. We should scroll and get target position + if (!isInViewPort(targetElement) && open) { + targetElement.scrollIntoView(scrollIntoViewOptions); + } + var _targetElement$getBou = targetElement.getBoundingClientRect(), + left = _targetElement$getBou.left, + top = _targetElement$getBou.top, + width = _targetElement$getBou.width, + height = _targetElement$getBou.height; + var nextPosInfo = { + left: left, + top: top, + width: width, + height: height, + radius: 0 + }; + setPosInfo(function (origin) { + if (JSON.stringify(origin) !== JSON.stringify(nextPosInfo)) { + return nextPosInfo; + } + return origin; + }); + } else { + // Not exist target which means we just show in center + setPosInfo(null); + } + }); + var getGapOffset = function getGapOffset(index) { + var _ref; + return (_ref = Array.isArray(gap === null || gap === void 0 ? void 0 : gap.offset) ? gap === null || gap === void 0 ? void 0 : gap.offset[index] : gap === null || gap === void 0 ? void 0 : gap.offset) !== null && _ref !== void 0 ? _ref : 6; + }; + (0,useLayoutEffect/* default */.Z)(function () { + updatePos(); + // update when window resize + window.addEventListener('resize', updatePos); + return function () { + window.removeEventListener('resize', updatePos); + }; + }, [targetElement, open, updatePos]); + + // ======================== PosInfo ========================= + var mergedPosInfo = (0,_react_17_0_2_react.useMemo)(function () { + if (!posInfo) { + return posInfo; + } + var gapOffsetX = getGapOffset(0); + var gapOffsetY = getGapOffset(1); + var gapRadius = (gap === null || gap === void 0 ? void 0 : gap.radius) || 2; + return { + left: posInfo.left - gapOffsetX, + top: posInfo.top - gapOffsetY, + width: posInfo.width + gapOffsetX * 2, + height: posInfo.height + gapOffsetY * 2, + radius: gapRadius + }; + }, [posInfo, gap]); + return [mergedPosInfo, targetElement]; +} +// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/hooks/useId.js +var useId = __webpack_require__(57901); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/Mask.js + + + + + + + +var COVER_PROPS = { + fill: 'transparent', + pointerEvents: 'auto' +}; +var Mask = function Mask(props) { + var prefixCls = props.prefixCls, + rootClassName = props.rootClassName, + pos = props.pos, + showMask = props.showMask, + _props$style = props.style, + style = _props$style === void 0 ? {} : _props$style, + _props$fill = props.fill, + fill = _props$fill === void 0 ? "rgba(0,0,0,0.5)" : _props$fill, + open = props.open, + animated = props.animated, + zIndex = props.zIndex; + var id = (0,useId/* default */.Z)(); + var maskId = "".concat(prefixCls, "-mask-").concat(id); + var mergedAnimated = (0,esm_typeof/* default */.Z)(animated) === 'object' ? animated === null || animated === void 0 ? void 0 : animated.placeholder : animated; + return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, { + open: open, + autoLock: true + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-mask"), rootClassName), + style: (0,objectSpread2/* default */.Z)({ + position: 'fixed', + left: 0, + right: 0, + top: 0, + bottom: 0, + zIndex: zIndex, + pointerEvents: 'none' + }, style) + }, showMask ? /*#__PURE__*/_react_17_0_2_react.createElement("svg", { + style: { + width: '100%', + height: '100%' + } + }, /*#__PURE__*/_react_17_0_2_react.createElement("defs", null, /*#__PURE__*/_react_17_0_2_react.createElement("mask", { + id: maskId + }, /*#__PURE__*/_react_17_0_2_react.createElement("rect", { + x: "0", + y: "0", + width: "100vw", + height: "100vh", + fill: "white" + }), pos && /*#__PURE__*/_react_17_0_2_react.createElement("rect", { + x: pos.left, + y: pos.top, + rx: pos.radius, + width: pos.width, + height: pos.height, + fill: "black", + className: mergedAnimated ? "".concat(prefixCls, "-placeholder-animated") : '' + }))), /*#__PURE__*/_react_17_0_2_react.createElement("rect", { + x: "0", + y: "0", + width: "100%", + height: "100%", + fill: fill, + mask: "url(#".concat(maskId, ")") + }), pos && /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("rect", (0,esm_extends/* default */.Z)({}, COVER_PROPS, { + x: "0", + y: "0", + width: "100%", + height: pos.top + })), /*#__PURE__*/_react_17_0_2_react.createElement("rect", (0,esm_extends/* default */.Z)({}, COVER_PROPS, { + x: "0", + y: "0", + width: pos.left, + height: "100%" + })), /*#__PURE__*/_react_17_0_2_react.createElement("rect", (0,esm_extends/* default */.Z)({}, COVER_PROPS, { + x: "0", + y: pos.top + pos.height, + width: "100%", + height: "calc(100vh - ".concat(pos.top + pos.height, "px)") + })), /*#__PURE__*/_react_17_0_2_react.createElement("rect", (0,esm_extends/* default */.Z)({}, COVER_PROPS, { + x: pos.left + pos.width, + y: "0", + width: "calc(100vw - ".concat(pos.left + pos.width, "px)"), + height: "100%" + })))) : null)); +}; +/* harmony default export */ var es_Mask = (Mask); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/placements.js + +var autoAdjustOverflow = { + adjustX: 1, + adjustY: 1 +}; +var targetOffset = [0, 0]; +var basePlacements = { + left: { + points: ['cr', 'cl'], + offset: [-8, 0] + }, + right: { + points: ['cl', 'cr'], + offset: [8, 0] + }, + top: { + points: ['bc', 'tc'], + offset: [0, -8] + }, + bottom: { + points: ['tc', 'bc'], + offset: [0, 8] + }, + topLeft: { + points: ['bl', 'tl'], + offset: [0, -8] + }, + leftTop: { + points: ['tr', 'tl'], + offset: [-8, 0] + }, + topRight: { + points: ['br', 'tr'], + offset: [0, -8] + }, + rightTop: { + points: ['tl', 'tr'], + offset: [8, 0] + }, + bottomRight: { + points: ['tr', 'br'], + offset: [0, 8] + }, + rightBottom: { + points: ['bl', 'br'], + offset: [8, 0] + }, + bottomLeft: { + points: ['tl', 'bl'], + offset: [0, 8] + }, + leftBottom: { + points: ['br', 'bl'], + offset: [-8, 0] + } +}; +function getPlacements() { + var arrowPointAtCenter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; + var placements = {}; + Object.keys(basePlacements).forEach(function (key) { + placements[key] = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, basePlacements[key]), {}, { + autoArrow: arrowPointAtCenter, + targetOffset: targetOffset + }); + }); + return placements; +} +var placements = getPlacements(); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules +var toConsumableArray = __webpack_require__(40877); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/TourStep/DefaultPanel.js + + + +function DefaultPanel(props) { + var prefixCls = props.prefixCls, + current = props.current, + total = props.total, + title = props.title, + description = props.description, + onClose = props.onClose, + onPrev = props.onPrev, + onNext = props.onNext, + onFinish = props.onFinish, + className = props.className, + closeIcon = props.closeIcon; + var mergedClosable = closeIcon !== false && closeIcon !== null; + var mergedCloseIcon = closeIcon !== undefined && closeIcon !== true ? closeIcon : /*#__PURE__*/_react_17_0_2_react.createElement("span", { + className: "".concat(prefixCls, "-close-x") + }, "\xD7"); + return /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-content"), className) + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-inner") + }, mergedClosable && /*#__PURE__*/_react_17_0_2_react.createElement("button", { + type: "button", + onClick: onClose, + "aria-label": "Close", + className: "".concat(prefixCls, "-close") + }, mergedCloseIcon), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-header") + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-title") + }, title)), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-description") + }, description), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-footer") + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-sliders") + }, total > 1 ? (0,toConsumableArray/* default */.Z)(Array.from({ + length: total + }).keys()).map(function (item, index) { + return /*#__PURE__*/_react_17_0_2_react.createElement("span", { + key: item, + className: index === current ? 'active' : '' + }); + }) : null), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: "".concat(prefixCls, "-buttons") + }, current !== 0 ? /*#__PURE__*/_react_17_0_2_react.createElement("button", { + className: "".concat(prefixCls, "-prev-btn"), + onClick: onPrev + }, "Prev") : null, current === total - 1 ? /*#__PURE__*/_react_17_0_2_react.createElement("button", { + className: "".concat(prefixCls, "-finish-btn"), + onClick: onFinish + }, "Finish") : /*#__PURE__*/_react_17_0_2_react.createElement("button", { + className: "".concat(prefixCls, "-next-btn"), + onClick: onNext + }, "Next"))))); +} +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/TourStep/index.js + + +var TourStep = function TourStep(props) { + var current = props.current, + renderPanel = props.renderPanel; + return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, typeof renderPanel === 'function' ? renderPanel(props, current) : /*#__PURE__*/_react_17_0_2_react.createElement(DefaultPanel, props)); +}; +/* harmony default export */ var es_TourStep = (TourStep); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/Tour.js + + + + + +var _excluded = ["prefixCls", "steps", "defaultCurrent", "current", "onChange", "onClose", "onFinish", "open", "mask", "arrow", "rootClassName", "placement", "renderPanel", "gap", "animated", "scrollIntoViewOptions", "zIndex", "closeIcon"]; + + + + + + + + + + + +var CENTER_PLACEHOLDER = { + left: '50%', + top: '50%', + width: 1, + height: 1 +}; +var Tour = function Tour(props) { + var _props$prefixCls = props.prefixCls, + prefixCls = _props$prefixCls === void 0 ? 'rc-tour' : _props$prefixCls, + _props$steps = props.steps, + steps = _props$steps === void 0 ? [] : _props$steps, + defaultCurrent = props.defaultCurrent, + current = props.current, + onChange = props.onChange, + onClose = props.onClose, + _onFinish = props.onFinish, + open = props.open, + _props$mask = props.mask, + mask = _props$mask === void 0 ? true : _props$mask, + _props$arrow = props.arrow, + arrow = _props$arrow === void 0 ? true : _props$arrow, + rootClassName = props.rootClassName, + placement = props.placement, + renderPanel = props.renderPanel, + gap = props.gap, + animated = props.animated, + _props$scrollIntoView = props.scrollIntoViewOptions, + scrollIntoViewOptions = _props$scrollIntoView === void 0 ? true : _props$scrollIntoView, + _props$zIndex = props.zIndex, + zIndex = _props$zIndex === void 0 ? 1001 : _props$zIndex, + closeIcon = props.closeIcon, + restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded); + var triggerRef = _react_17_0_2_react.useRef(); + var _useMergedState = (0,useMergedState/* default */.Z)(0, { + value: current, + defaultValue: defaultCurrent + }), + _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2), + mergedCurrent = _useMergedState2[0], + setMergedCurrent = _useMergedState2[1]; + var _useMergedState3 = (0,useMergedState/* default */.Z)(undefined, { + value: open, + postState: function postState(origin) { + return mergedCurrent < 0 || mergedCurrent >= steps.length ? false : origin !== null && origin !== void 0 ? origin : true; + } + }), + _useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2), + mergedOpen = _useMergedState4[0], + setMergedOpen = _useMergedState4[1]; + var openRef = _react_17_0_2_react.useRef(mergedOpen); + (0,useLayoutEffect/* default */.Z)(function () { + if (mergedOpen && !openRef.current) { + setMergedCurrent(0); + } + openRef.current = mergedOpen; + }, [mergedOpen]); + var _ref = steps[mergedCurrent] || {}, + target = _ref.target, + stepPlacement = _ref.placement, + stepStyle = _ref.style, + stepArrow = _ref.arrow, + stepClassName = _ref.className, + stepMask = _ref.mask, + stepScrollIntoViewOptions = _ref.scrollIntoViewOptions, + stepCloseIcon = _ref.closeIcon; + var mergedMask = mergedOpen && (stepMask !== null && stepMask !== void 0 ? stepMask : mask); + var mergedCloseIcon = stepCloseIcon !== null && stepCloseIcon !== void 0 ? stepCloseIcon : closeIcon; + var mergedScrollIntoViewOptions = stepScrollIntoViewOptions !== null && stepScrollIntoViewOptions !== void 0 ? stepScrollIntoViewOptions : scrollIntoViewOptions; + var _useTarget = useTarget(target, open, gap, mergedScrollIntoViewOptions), + _useTarget2 = (0,slicedToArray/* default */.Z)(_useTarget, 2), + posInfo = _useTarget2[0], + targetElement = _useTarget2[1]; + var mergedPlacement = getPlacement(targetElement, placement, stepPlacement); + + // ========================= arrow ========================= + var mergedArrow = targetElement ? typeof stepArrow === 'undefined' ? arrow : stepArrow : false; + var arrowPointAtCenter = (0,esm_typeof/* default */.Z)(mergedArrow) === 'object' ? mergedArrow.pointAtCenter : false; + (0,useLayoutEffect/* default */.Z)(function () { + var _triggerRef$current; + (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.forceAlign(); + }, [arrowPointAtCenter, mergedCurrent]); + + // ========================= Change ========================= + var onInternalChange = function onInternalChange(nextCurrent) { + setMergedCurrent(nextCurrent); + onChange === null || onChange === void 0 ? void 0 : onChange(nextCurrent); + }; + + // ========================= Render ========================= + // Skip if not init yet + if (targetElement === undefined) { + return null; + } + var handleClose = function handleClose() { + setMergedOpen(false); + onClose === null || onClose === void 0 ? void 0 : onClose(mergedCurrent); + }; + var getPopupElement = function getPopupElement() { + return /*#__PURE__*/_react_17_0_2_react.createElement(es_TourStep, (0,esm_extends/* default */.Z)({ + arrow: mergedArrow, + key: "content", + prefixCls: prefixCls, + total: steps.length, + renderPanel: renderPanel, + onPrev: function onPrev() { + onInternalChange(mergedCurrent - 1); + }, + onNext: function onNext() { + onInternalChange(mergedCurrent + 1); + }, + onClose: handleClose, + current: mergedCurrent, + onFinish: function onFinish() { + handleClose(); + _onFinish === null || _onFinish === void 0 ? void 0 : _onFinish(); + }, + closeIcon: mergedCloseIcon + }, steps[mergedCurrent])); + }; + var mergedShowMask = typeof mergedMask === 'boolean' ? mergedMask : !!mergedMask; + var mergedMaskStyle = typeof mergedMask === 'boolean' ? undefined : mergedMask; + + // when targetElement is not exist, use body as triggerDOMNode + var getTriggerDOMNode = function getTriggerDOMNode(node) { + return node || targetElement || document.body; + }; + return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement(es_Mask, { + zIndex: zIndex, + prefixCls: prefixCls, + pos: posInfo, + showMask: mergedShowMask, + style: mergedMaskStyle === null || mergedMaskStyle === void 0 ? void 0 : mergedMaskStyle.style, + fill: mergedMaskStyle === null || mergedMaskStyle === void 0 ? void 0 : mergedMaskStyle.color, + open: mergedOpen, + animated: animated, + rootClassName: rootClassName + }), /*#__PURE__*/_react_17_0_2_react.createElement(trigger_es/* default */.Z, (0,esm_extends/* default */.Z)({ + builtinPlacements: getPlacements(arrowPointAtCenter) + }, restProps, { + ref: triggerRef, + popupStyle: stepStyle, + popupPlacement: mergedPlacement, + popupVisible: mergedOpen, + popupClassName: _classnames_2_3_2_classnames_default()(rootClassName, stepClassName), + prefixCls: prefixCls, + popup: getPopupElement, + forceRender: false, + destroyPopupOnHide: true, + zIndex: zIndex, + getTriggerDOMNode: getTriggerDOMNode, + arrow: !!mergedArrow + }), /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, { + open: mergedOpen, + autoLock: true + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: _classnames_2_3_2_classnames_default()(rootClassName, "".concat(prefixCls, "-target-placeholder")), + style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, posInfo || CENTER_PLACEHOLDER), {}, { + position: 'fixed', + pointerEvents: 'none' + }) + })))); +}; +/* harmony default export */ var es_Tour = (Tour); +;// CONCATENATED MODULE: ./node_modules/_@rc-component_tour@1.10.0@@rc-component/tour/es/index.js + +/* harmony default export */ var tour_es = (es_Tour); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/placements.js +var _util_placements = __webpack_require__(79676); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js +var context = __webpack_require__(36355); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/useToken.js + 4 modules +var useToken = __webpack_require__(88088); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules +var CloseOutlined = __webpack_require__(99174); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/locale/useLocale.js +var useLocale = __webpack_require__(9763); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/locale/en_US.js + 1 modules +var en_US = __webpack_require__(43710); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useClosable.js +var useClosable = __webpack_require__(47729); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/panelRender.js +"use client"; + + + + + + + + + +function isValidNode(node) { + return node !== undefined && node !== null; +} +// Due to the independent design of Panel, it will be too coupled to put in rc-tour, +// so a set of Panel logic is implemented separately in antd. +const TourPanel = _ref => { + let { + stepProps, + current, + type, + indicatorsRender, + closeIcon + } = _ref; + var _a, _b; + const { + prefixCls, + total = 1, + title, + onClose, + onPrev, + onNext, + onFinish, + cover, + description, + nextButtonProps, + prevButtonProps, + type: stepType, + className, + closeIcon: stepCloseIcon + } = stepProps; + const mergedType = stepType !== null && stepType !== void 0 ? stepType : type; + const mergedCloseIcon = stepCloseIcon !== null && stepCloseIcon !== void 0 ? stepCloseIcon : closeIcon; + const mergedClosable = mergedCloseIcon !== false && mergedCloseIcon !== null; + const [closable, mergedDisplayCloseIcon] = (0,useClosable/* default */.Z)(mergedClosable, mergedCloseIcon, icon => /*#__PURE__*/_react_17_0_2_react.createElement("span", { + onClick: onClose, + "aria-label": "Close", + className: `${prefixCls}-close` + }, icon), /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, { + className: `${prefixCls}-close-icon` + }), true); + const isLastStep = current === total - 1; + const prevBtnClick = () => { + var _a; + onPrev === null || onPrev === void 0 ? void 0 : onPrev(); + (_a = prevButtonProps === null || prevButtonProps === void 0 ? void 0 : prevButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(prevButtonProps); + }; + const nextBtnClick = () => { + var _a; + if (isLastStep) { + onFinish === null || onFinish === void 0 ? void 0 : onFinish(); + } else { + onNext === null || onNext === void 0 ? void 0 : onNext(); + } + (_a = nextButtonProps === null || nextButtonProps === void 0 ? void 0 : nextButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(nextButtonProps); + }; + const headerNode = isValidNode(title) ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-header` + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-title` + }, title)) : null; + const descriptionNode = isValidNode(description) ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-description` + }, description) : null; + const coverNode = isValidNode(cover) ? /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-cover` + }, cover) : null; + let mergeIndicatorNode; + if (indicatorsRender) { + mergeIndicatorNode = indicatorsRender(current, total); + } else { + mergeIndicatorNode = (0,toConsumableArray/* default */.Z)(Array.from({ + length: total + }).keys()).map((stepItem, index) => /*#__PURE__*/_react_17_0_2_react.createElement("span", { + key: stepItem, + className: _classnames_2_3_2_classnames_default()(index === current && `${prefixCls}-indicator-active`, `${prefixCls}-indicator`) + })); + } + const mainBtnType = mergedType === 'primary' ? 'default' : 'primary'; + const secondaryBtnProps = { + type: 'default', + ghost: mergedType === 'primary' + }; + const [contextLocale] = (0,useLocale/* default */.Z)('Tour', en_US/* default */.Z.Tour); + return /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: _classnames_2_3_2_classnames_default()(className, `${prefixCls}-content`) + }, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-inner` + }, closable && mergedDisplayCloseIcon, coverNode, headerNode, descriptionNode, /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-footer` + }, total > 1 && /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-indicators` + }, mergeIndicatorNode), /*#__PURE__*/_react_17_0_2_react.createElement("div", { + className: `${prefixCls}-buttons` + }, current !== 0 ? /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, Object.assign({}, secondaryBtnProps, prevButtonProps, { + onClick: prevBtnClick, + size: "small", + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-prev-btn`, prevButtonProps === null || prevButtonProps === void 0 ? void 0 : prevButtonProps.className) + }), (_a = prevButtonProps === null || prevButtonProps === void 0 ? void 0 : prevButtonProps.children) !== null && _a !== void 0 ? _a : contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.Previous) : null, /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, Object.assign({ + type: mainBtnType + }, nextButtonProps, { + onClick: nextBtnClick, + size: "small", + className: _classnames_2_3_2_classnames_default()(`${prefixCls}-next-btn`, nextButtonProps === null || nextButtonProps === void 0 ? void 0 : nextButtonProps.className) + }), (_b = nextButtonProps === null || nextButtonProps === void 0 ? void 0 : nextButtonProps.children) !== null && _b !== void 0 ? _b : isLastStep ? contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.Finish : contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.Next))))); +}; +/* harmony default export */ var panelRender = (TourPanel); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/popover/PurePanel.js +var PurePanel = __webpack_require__(39722); +// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js +var dist_module = __webpack_require__(64993); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js +var style = __webpack_require__(17313); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/placementArrow.js +var placementArrow = __webpack_require__(19447); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js +var genComponentStyleHook = __webpack_require__(83116); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js +var statistic = __webpack_require__(37613); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/style/index.js + + + + +// =============================== Base =============================== +const genBaseStyle = token => { + const { + componentCls, + lineHeight, + padding, + paddingXS, + borderRadius, + borderRadiusXS, + colorPrimary, + colorText, + colorFill, + indicatorHeight, + indicatorWidth, + boxShadowTertiary, + tourZIndexPopup, + fontSize, + colorBgElevated, + fontWeightStrong, + marginXS, + colorTextLightSolid, + tourBorderRadius, + colorWhite, + colorBgTextHover, + tourCloseSize, + motionDurationSlow, + antCls + } = token; + return [{ + [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), { + color: colorText, + position: 'absolute', + zIndex: tourZIndexPopup, + display: 'block', + visibility: 'visible', + fontSize, + lineHeight, + width: 520, + '--antd-arrow-background-color': colorBgElevated, + '&-pure': { + maxWidth: '100%', + position: 'relative' + }, + [`&${componentCls}-hidden`]: { + display: 'none' + }, + // ============================= panel content ============================ + [`${componentCls}-content`]: { + position: 'relative' + }, + [`${componentCls}-inner`]: { + textAlign: 'start', + textDecoration: 'none', + borderRadius: tourBorderRadius, + boxShadow: boxShadowTertiary, + position: 'relative', + backgroundColor: colorBgElevated, + border: 'none', + backgroundClip: 'padding-box', + [`${componentCls}-close`]: { + position: 'absolute', + top: padding, + insetInlineEnd: padding, + color: token.colorIcon, + outline: 'none', + width: tourCloseSize, + height: tourCloseSize, + borderRadius: token.borderRadiusSM, + transition: `background-color ${token.motionDurationMid}, color ${token.motionDurationMid}`, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + '&:hover': { + color: token.colorIconHover, + backgroundColor: token.wireframe ? 'transparent' : token.colorFillContent + } + }, + [`${componentCls}-cover`]: { + textAlign: 'center', + padding: `${padding + tourCloseSize + paddingXS}px ${padding}px 0`, + img: { + width: '100%' + } + }, + [`${componentCls}-header`]: { + padding: `${padding}px ${padding}px ${paddingXS}px`, + [`${componentCls}-title`]: { + lineHeight, + fontSize, + fontWeight: fontWeightStrong + } + }, + [`${componentCls}-description`]: { + padding: `0 ${padding}px`, + lineHeight, + wordWrap: 'break-word' + }, + [`${componentCls}-footer`]: { + padding: `${paddingXS}px ${padding}px ${padding}px`, + textAlign: 'end', + borderRadius: `0 0 ${borderRadiusXS}px ${borderRadiusXS}px`, + display: 'flex', + [`${componentCls}-indicators`]: { + display: 'inline-block', + [`${componentCls}-indicator`]: { + width: indicatorWidth, + height: indicatorHeight, + display: 'inline-block', + borderRadius: '50%', + background: colorFill, + '&:not(:last-child)': { + marginInlineEnd: indicatorHeight + }, + '&-active': { + background: colorPrimary + } + } + }, + [`${componentCls}-buttons`]: { + marginInlineStart: 'auto', + [`${antCls}-btn`]: { + marginInlineStart: marginXS + } + } + } + }, + // ============================= primary type =========================== + // `$` for panel, `&$` for pure panel + [`${componentCls}-primary, &${componentCls}-primary`]: { + '--antd-arrow-background-color': colorPrimary, + [`${componentCls}-inner`]: { + color: colorTextLightSolid, + textAlign: 'start', + textDecoration: 'none', + backgroundColor: colorPrimary, + borderRadius, + boxShadow: boxShadowTertiary, + [`${componentCls}-close`]: { + color: colorTextLightSolid + }, + [`${componentCls}-indicators`]: { + [`${componentCls}-indicator`]: { + background: new dist_module/* TinyColor */.C(colorTextLightSolid).setAlpha(0.15).toRgbString(), + '&-active': { + background: colorTextLightSolid + } + } + }, + [`${componentCls}-prev-btn`]: { + color: colorTextLightSolid, + borderColor: new dist_module/* TinyColor */.C(colorTextLightSolid).setAlpha(0.15).toRgbString(), + backgroundColor: colorPrimary, + '&:hover': { + backgroundColor: new dist_module/* TinyColor */.C(colorTextLightSolid).setAlpha(0.15).toRgbString(), + borderColor: 'transparent' + } + }, + [`${componentCls}-next-btn`]: { + color: colorPrimary, + borderColor: 'transparent', + background: colorWhite, + '&:hover': { + background: new dist_module/* TinyColor */.C(colorBgTextHover).onBackground(colorWhite).toRgbString() + } + } + } + } + }), + // ============================= mask =========================== + [`${componentCls}-mask`]: { + [`${componentCls}-placeholder-animated`]: { + transition: `all ${motionDurationSlow}` + } + }, + // =========== Limit left and right placement radius ============== + [['&-placement-left', '&-placement-leftTop', '&-placement-leftBottom', '&-placement-right', '&-placement-rightTop', '&-placement-rightBottom'].join(',')]: { + [`${componentCls}-inner`]: { + borderRadius: Math.min(tourBorderRadius, placementArrow/* MAX_VERTICAL_CONTENT_RADIUS */.qN) + } + } + }, + // ============================= Arrow =========================== + (0,placementArrow/* default */.ZP)(token, { + colorBg: 'var(--antd-arrow-background-color)', + contentRadius: tourBorderRadius, + limitVerticalRadius: true + })]; +}; +// ============================== Export ============================== +/* harmony default export */ var tour_style = ((0,genComponentStyleHook/* default */.Z)('Tour', token => { + const { + borderRadiusLG, + fontSize, + lineHeight + } = token; + const TourToken = (0,statistic/* merge */.TS)(token, { + tourZIndexPopup: token.zIndexPopupBase + 70, + indicatorWidth: 6, + indicatorHeight: 6, + tourBorderRadius: borderRadiusLG, + tourCloseSize: fontSize * lineHeight + }); + return [genBaseStyle(TourToken)]; +})); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/PurePanel.js +var _util_PurePanel = __webpack_require__(53487); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/PurePanel.js +"use client"; + +var __rest = undefined && undefined.__rest || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; + } + return t; +}; + + + + + + + +const PurePanel_PurePanel = props => { + const { + prefixCls: customizePrefixCls, + current = 0, + total = 6, + className, + style, + type + } = props, + restProps = __rest(props, ["prefixCls", "current", "total", "className", "style", "type"]); + const { + getPrefixCls + } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); + const prefixCls = getPrefixCls('tour', customizePrefixCls); + const [wrapSSR, hashId] = tour_style(prefixCls); + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(PurePanel/* RawPurePanel */.t5, { + prefixCls: prefixCls, + hashId: hashId, + className: _classnames_2_3_2_classnames_default()(className, `${prefixCls}-pure`, type && `${prefixCls}-${type}`), + style: style + }, /*#__PURE__*/_react_17_0_2_react.createElement(panelRender, { + stepProps: Object.assign(Object.assign({}, restProps), { + prefixCls, + total + }), + current: current, + type: type + }))); +}; +/* harmony default export */ var tour_PurePanel = ((0,_util_PurePanel/* withPureRenderTheme */.i)(PurePanel_PurePanel)); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/useMergedType.js + + +/** + * returns the merged type of a step or the default type. + */ +const useMergedType = _ref => { + let { + defaultType, + steps = [], + current, + defaultCurrent + } = _ref; + var _a; + const [innerCurrent, updateInnerCurrent] = (0,useMergedState/* default */.Z)(defaultCurrent, { + value: current + }); + (0,_react_17_0_2_react.useLayoutEffect)(() => { + if (current === undefined) return; + updateInnerCurrent(current); + }, [current]); + const innerType = typeof innerCurrent === 'number' ? (_a = steps[innerCurrent]) === null || _a === void 0 ? void 0 : _a.type : defaultType; + const currentMergedType = innerType !== null && innerType !== void 0 ? innerType : defaultType; + return { + currentMergedType, + updateInnerCurrent + }; +}; +/* harmony default export */ var tour_useMergedType = (useMergedType); +;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tour/index.js +"use client"; + +var tour_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 tour_Tour = props => { + const { + prefixCls: customizePrefixCls, + current, + defaultCurrent, + type, + rootClassName, + indicatorsRender, + steps + } = props, + restProps = tour_rest(props, ["prefixCls", "current", "defaultCurrent", "type", "rootClassName", "indicatorsRender", "steps"]); + const { + getPrefixCls, + direction + } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); + const prefixCls = getPrefixCls('tour', customizePrefixCls); + const [wrapSSR, hashId] = tour_style(prefixCls); + const [, token] = (0,useToken/* default */.Z)(); + const { + currentMergedType, + updateInnerCurrent + } = tour_useMergedType({ + defaultType: type, + steps, + current, + defaultCurrent + }); + const builtinPlacements = (0,_util_placements/* default */.Z)({ + arrowPointAtCenter: true, + autoAdjustOverflow: true, + offset: token.marginXXS, + arrowWidth: token.sizePopupArrow, + borderRadius: token.borderRadius + }); + const customClassName = _classnames_2_3_2_classnames_default()({ + [`${prefixCls}-primary`]: currentMergedType === 'primary', + [`${prefixCls}-rtl`]: direction === 'rtl' + }, hashId, rootClassName); + const mergedRenderPanel = (stepProps, stepCurrent) => /*#__PURE__*/_react_17_0_2_react.createElement(panelRender, { + type: type, + stepProps: stepProps, + current: stepCurrent, + indicatorsRender: indicatorsRender + }); + const onStepChange = stepCurrent => { + var _a; + updateInnerCurrent(stepCurrent); + (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, stepCurrent); + }; + return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(tour_es, Object.assign({}, restProps, { + rootClassName: customClassName, + prefixCls: prefixCls, + current: current, + defaultCurrent: defaultCurrent, + animated: true, + renderPanel: mergedRenderPanel, + builtinPlacements: builtinPlacements, + onChange: onStepChange, + steps: steps + }))); +}; +if (false) {} +tour_Tour._InternalPanelDoNotUseOrYouWillBeFired = tour_PurePanel; +/* harmony default export */ var tour = (tour_Tour); + /***/ }) }]); \ No newline at end of file diff --git a/23613.async.js b/23613.async.js index 31d2ee659b..b1f11a217b 100644 --- a/23613.async.js +++ b/23613.async.js @@ -8730,7 +8730,7 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) { case 4: res = _context.sent; setLoading(false); - setEditData((0,util/* formatRandomPaperData */.ad)(res)); + setEditData((0,util/* formatRandomPaperDatas */.PF)(res)); case 7: case "end": return _context.stop(); diff --git a/29414.async.js b/29414.async.js index 31a56d58c6..405642d8f4 100644 --- a/29414.async.js +++ b/29414.async.js @@ -1493,7 +1493,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/3471.async.js b/3471.async.js index d3a2e42635..2cee08b524 100644 --- a/3471.async.js +++ b/3471.async.js @@ -834,7 +834,10 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/41001.async.js b/41001.async.js index 66db96194d..d3d01dcf36 100644 --- a/41001.async.js +++ b/41001.async.js @@ -589,7 +589,10 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; \***************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/44894.async.js b/44894.async.js index dc932f0738..29547e6ca3 100644 --- a/44894.async.js +++ b/44894.async.js @@ -392,9 +392,10 @@ var jsx_runtime = __webpack_require__(37712); }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { type: "primary", size: 'middle', - onClick: handleClick, + onClick: handleDown, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] }) + // handleClick })] }); }); diff --git a/47400.async.js b/47400.async.js index 267c87e328..0887a72ddf 100644 --- a/47400.async.js +++ b/47400.async.js @@ -307,9 +307,10 @@ var jsx_runtime = __webpack_require__(37712); }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { type: "primary", size: 'middle', - onClick: handleClick, + onClick: handleDown, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] }) + // handleClick })] }); }); diff --git a/488.async.js b/488.async.js index 184e585f53..d5b195f687 100644 --- a/488.async.js +++ b/488.async.js @@ -2000,7 +2000,7 @@ var HeaderComponents = function HeaderComponents(_ref) { (_visibleNavBar2 = visibleNavBar) === null || _visibleNavBar2 === void 0 || _visibleNavBar2.map(function (val, key) { var _location$pathname, _val$subitem; var path = '/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1]); - if (val.link === path) { + if (val.link === path || val.link.indexOf(path) > -1) { setActiveKey(val === null || val === void 0 ? void 0 : val.link); (0,util/* setDocumentTitle */.Dk)(dealStr(val === null || val === void 0 ? void 0 : val.name)); setNavBar(footerDeal(key, { @@ -2009,6 +2009,10 @@ var HeaderComponents = function HeaderComponents(_ref) { }, visibleNavBar)); hasMatchedUrl = true; } + if (path == '/') { + setActiveKey(''); + (0,util/* setDocumentTitle */.Dk)('首页'); + } if (val !== null && val !== void 0 && (_val$subitem = val.subitem) !== null && _val$subitem !== void 0 && _val$subitem.length) { var _val$subitem2; val === null || val === void 0 || (_val$subitem2 = val.subitem) === null || _val$subitem2 === void 0 || _val$subitem2.map(function (e) { diff --git a/49166.async.js b/49166.async.js index a7d4ce4e51..076f6a4c74 100644 --- a/49166.async.js +++ b/49166.async.js @@ -356,7 +356,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/49845.async.js b/49845.async.js index 5eaa4ce659..cabbabcf3b 100644 --- a/49845.async.js +++ b/49845.async.js @@ -1026,7 +1026,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/50057.async.js b/50057.async.js index 5804ba2207..f3f8d28e3d 100644 --- a/50057.async.js +++ b/50057.async.js @@ -598,7 +598,10 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/57435.async.js b/57435.async.js index d9bd9861c8..0a2551bc72 100644 --- a/57435.async.js +++ b/57435.async.js @@ -1034,7 +1034,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/63240.async.js b/63240.async.js index e8520035c4..3c6bdb87c1 100644 --- a/63240.async.js +++ b/63240.async.js @@ -2895,7 +2895,10 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/63510.async.js b/63510.async.js index 34414e3c63..d2af6062ed 100644 --- a/63510.async.js +++ b/63510.async.js @@ -1484,9 +1484,10 @@ var jsx_runtime = __webpack_require__(37712); }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { type: "primary", size: 'middle', - onClick: handleClick, + onClick: handleDown, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] }) + // handleClick })] }); }); @@ -4131,14 +4132,6 @@ var CourseList = function CourseList(_ref) { children: name }) }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(school_name), - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: CourseListmodules.unit, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-danwei1 font14 mr3" - }), school_name] - }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: CourseListmodules.tags, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { @@ -6262,29 +6255,29 @@ var SendToClassModal = function SendToClassModal(_ref) { res = _context7.sent; case 6: _context7.t0 = nodeData.item_type; - _context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 13 : _context7.t0 === 'SubjectHomework' ? 15 : _context7.t0 === 'Shixun' ? 17 : 19; + _context7.next = _context7.t0 === 'Attachment' ? 9 : _context7.t0 === 'VideoItem' ? 11 : _context7.t0 === 'SubjectHomework' ? 13 : _context7.t0 === 'Shixun' ? 15 : 17; break; case 9: - // openNewWindow(nodeData.url); - preview.type = item.file_type; - preview.data = env/* default */.Z.API_SERVER + item.url; - setPreview(objectSpread2_default()({}, preview)); - // toStudentVideo(item); - return _context7.abrupt("break", 19); - case 13: + // openNewWindow(nodeData.url); + // preview.type = item.file_type + // preview.data = env.API_SERVER + item.url + // setPreview({ ...preview }) + toStudentVideo(item); + return _context7.abrupt("break", 17); + case 11: toStudentVideo(nodeData); - return _context7.abrupt("break", 19); - case 15: + return _context7.abrupt("break", 17); + case 13: if (nodeData.homework_type == 'group') { toStudentVideo(nodeData); } else if (nodeData.homework_type == 'normal') { toStudentVideo(nodeData); } - return _context7.abrupt("break", 19); - case 17: + return _context7.abrupt("break", 17); + case 15: handleToShixun(nodeData); - return _context7.abrupt("break", 19); - case 19: + return _context7.abrupt("break", 17); + case 17: case "end": return _context7.stop(); } diff --git a/63791.async.js b/63791.async.js index 56fd2d6d62..5d2c677050 100644 --- a/63791.async.js +++ b/63791.async.js @@ -920,7 +920,10 @@ input_Input.Password = input_Password; /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/64738.async.js b/64738.async.js index 6d7d609ff8..a89aeb8aea 100644 --- a/64738.async.js +++ b/64738.async.js @@ -1086,7 +1086,10 @@ input_Input.Password = input_Password; \***************************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/68719.async.js b/68719.async.js deleted file mode 100644 index f280c1ed14..0000000000 --- a/68719.async.js +++ /dev/null @@ -1,1515 +0,0 @@ -(self["webpackChunk"] = self["webpackChunk"] || []).push([[68719],{ - -/***/ 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.5@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(61796); -// 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)); - -/***/ }), - -/***/ 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.5@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(61796); -// 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)); - -/***/ }), - -/***/ 88011: -/*!**********************************************************************************************************!*\ - !*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/FileTextOutlined.js + 1 modules ***! - \**********************************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ icons_FileTextOutlined; } -}); - -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(61796); -// EXTERNAL MODULE: ./node_modules/_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/FileTextOutlined.js -// This icon file is generated automatically. -var FileTextOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z" } }] }, "name": "file-text", "theme": "outlined" }; -/* harmony default export */ var asn_FileTextOutlined = (FileTextOutlined); - -// 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/FileTextOutlined.js - -// GENERATE BY ./scripts/generate.ts -// DON NOT EDIT IT MANUALLY - - - - -var FileTextOutlined_FileTextOutlined = function FileTextOutlined(props, ref) { - return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, { - ref: ref, - icon: asn_FileTextOutlined - })); -}; -if (false) {} -/* harmony default export */ var icons_FileTextOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FileTextOutlined_FileTextOutlined)); - -/***/ }), - -/***/ 56762: -/*!************************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@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; -} - -/***/ }), - -/***/ 24905: -/*!************************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Z: function() { return /* binding */ es_checkbox; } -}); - -// 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-checkbox@3.1.0@rc-checkbox/es/index.js -var es = __webpack_require__(5630); -// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js -var _react_17_0_2_react = __webpack_require__(59301); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js -var config_provider_context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js -var DisabledContext = __webpack_require__(1684); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js -var context = __webpack_require__(32441); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/GroupContext.js - -const GroupContext = /*#__PURE__*/_react_17_0_2_react.createContext(null); -/* harmony default export */ var checkbox_GroupContext = (GroupContext); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js -var checkbox_style = __webpack_require__(98447); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules -var wave = __webpack_require__(14088); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/interface.js -var wave_interface = __webpack_require__(4572); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Checkbox.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - - -const InternalCheckbox = (props, ref) => { - var _a; - const { - prefixCls: customizePrefixCls, - className, - rootClassName, - children, - indeterminate = false, - style, - onMouseEnter, - onMouseLeave, - skipGroup = false, - disabled - } = props, - restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]); - const { - getPrefixCls, - direction, - checkbox - } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); - const checkboxGroup = _react_17_0_2_react.useContext(checkbox_GroupContext); - const { - isFormItemInput - } = _react_17_0_2_react.useContext(context/* FormItemInputContext */.aM); - const contextDisabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z); - const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled; - const prevValue = _react_17_0_2_react.useRef(restProps.value); - _react_17_0_2_react.useEffect(() => { - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); - false ? 0 : void 0; - }, []); - _react_17_0_2_react.useEffect(() => { - if (skipGroup) { - return; - } - if (restProps.value !== prevValue.current) { - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current); - checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value); - prevValue.current = restProps.value; - } - return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value); - }, [restProps.value]); - const prefixCls = getPrefixCls('checkbox', customizePrefixCls); - const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); - const checkboxProps = Object.assign({}, restProps); - if (checkboxGroup && !skipGroup) { - checkboxProps.onChange = function () { - if (restProps.onChange) { - restProps.onChange.apply(restProps, arguments); - } - if (checkboxGroup.toggleOption) { - checkboxGroup.toggleOption({ - label: children, - value: restProps.value - }); - } - }; - checkboxProps.name = checkboxGroup.name; - checkboxProps.checked = checkboxGroup.value.includes(restProps.value); - } - const classString = _classnames_2_3_2_classnames_default()(`${prefixCls}-wrapper`, { - [`${prefixCls}-rtl`]: direction === 'rtl', - [`${prefixCls}-wrapper-checked`]: checkboxProps.checked, - [`${prefixCls}-wrapper-disabled`]: mergedDisabled, - [`${prefixCls}-wrapper-in-form-item`]: isFormItemInput - }, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId); - const checkboxClass = _classnames_2_3_2_classnames_default()({ - [`${prefixCls}-indeterminate`]: indeterminate - }, wave_interface/* TARGET_CLS */.A, hashId); - const ariaChecked = indeterminate ? 'mixed' : undefined; - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, { - component: "Checkbox", - disabled: mergedDisabled - }, /*#__PURE__*/_react_17_0_2_react.createElement("label", { - className: classString, - style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style), - onMouseEnter: onMouseEnter, - onMouseLeave: onMouseLeave - }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({ - "aria-checked": ariaChecked - }, checkboxProps, { - prefixCls: prefixCls, - className: checkboxClass, - disabled: mergedDisabled, - ref: ref - })), children !== undefined && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)))); -}; -const Checkbox = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalCheckbox); -if (false) {} -/* harmony default export */ var checkbox_Checkbox = (Checkbox); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules -var toConsumableArray = __webpack_require__(40877); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js -var omit = __webpack_require__(99468); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/Group.js -"use client"; - - -var Group_rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - -const InternalGroup = (props, ref) => { - const { - defaultValue, - children, - options = [], - prefixCls: customizePrefixCls, - className, - rootClassName, - style, - onChange - } = props, - restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]); - const { - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(config_provider_context/* ConfigContext */.E_); - const [value, setValue] = _react_17_0_2_react.useState(restProps.value || defaultValue || []); - const [registeredValues, setRegisteredValues] = _react_17_0_2_react.useState([]); - _react_17_0_2_react.useEffect(() => { - if ('value' in restProps) { - setValue(restProps.value || []); - } - }, [restProps.value]); - const memoOptions = _react_17_0_2_react.useMemo(() => options.map(option => { - if (typeof option === 'string' || typeof option === 'number') { - return { - label: option, - value: option - }; - } - return option; - }), [options]); - const cancelValue = val => { - setRegisteredValues(prevValues => prevValues.filter(v => v !== val)); - }; - const registerValue = val => { - setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val])); - }; - const toggleOption = option => { - const optionIndex = value.indexOf(option.value); - const newValue = (0,toConsumableArray/* default */.Z)(value); - if (optionIndex === -1) { - newValue.push(option.value); - } else { - newValue.splice(optionIndex, 1); - } - if (!('value' in restProps)) { - setValue(newValue); - } - onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => { - const indexA = memoOptions.findIndex(opt => opt.value === a); - const indexB = memoOptions.findIndex(opt => opt.value === b); - return indexA - indexB; - })); - }; - const prefixCls = getPrefixCls('checkbox', customizePrefixCls); - const groupPrefixCls = `${prefixCls}-group`; - const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls); - const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']); - const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_Checkbox, { - prefixCls: prefixCls, - key: option.value.toString(), - disabled: 'disabled' in option ? option.disabled : restProps.disabled, - value: option.value, - checked: value.includes(option.value), - onChange: option.onChange, - className: `${groupPrefixCls}-item`, - style: option.style, - title: option.title - }, option.label)) : children; - // eslint-disable-next-line react/jsx-no-constructed-context-values - const context = { - toggleOption, - value, - disabled: restProps.disabled, - name: restProps.name, - // https://github.com/ant-design/ant-design/issues/16376 - registerValue, - cancelValue - }; - const classString = _classnames_2_3_2_classnames_default()(groupPrefixCls, { - [`${groupPrefixCls}-rtl`]: direction === 'rtl' - }, className, rootClassName, hashId); - return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({ - className: classString, - style: style - }, domProps, { - ref: ref - }), /*#__PURE__*/_react_17_0_2_react.createElement(checkbox_GroupContext.Provider, { - value: context - }, childrenNode))); -}; - -const CheckboxGroup = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalGroup); -/* harmony default export */ var Group = (/*#__PURE__*/_react_17_0_2_react.memo(CheckboxGroup)); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js -"use client"; - - - -const es_checkbox_Checkbox = checkbox_Checkbox; -es_checkbox_Checkbox.Group = Group; -es_checkbox_Checkbox.__ANT_CHECKBOX = true; -if (false) {} -/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox); - -/***/ }), - -/***/ 98447: -/*!******************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***! - \******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ C2: function() { return /* binding */ getStyle; } -/* harmony export */ }); -/* unused harmony export genCheckboxStyle */ -/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313); -/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613); -/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116); - - -// ============================== Styles ============================== -const genCheckboxStyle = token => { - const { - checkboxCls - } = token; - const wrapperCls = `${checkboxCls}-wrapper`; - return [ - // ===================== Basic ===================== - { - // Group - [`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { - display: 'inline-flex', - flexWrap: 'wrap', - columnGap: token.marginXS, - // Group > Grid - [`> ${token.antCls}-row`]: { - flex: 1 - } - }), - // Wrapper - [wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { - display: 'inline-flex', - alignItems: 'baseline', - cursor: 'pointer', - // Fix checkbox & radio in flex align #30260 - '&:after': { - display: 'inline-block', - width: 0, - overflow: 'hidden', - content: "'\\a0'" - }, - // Checkbox near checkbox - [`& + ${wrapperCls}`]: { - marginInlineStart: 0 - }, - [`&${wrapperCls}-in-form-item`]: { - 'input[type="checkbox"]': { - width: 14, - height: 14 // FIXME: magic - } - } - }), - - // Wrapper > Checkbox - [checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), { - position: 'relative', - whiteSpace: 'nowrap', - lineHeight: 1, - cursor: 'pointer', - borderRadius: token.borderRadiusSM, - // To make alignment right when `controlHeight` is changed - // Ref: https://github.com/ant-design/ant-design/issues/41564 - alignSelf: 'center', - // Wrapper > Checkbox > input - [`${checkboxCls}-input`]: { - position: 'absolute', - // Since baseline align will get additional space offset, - // we need to move input to top to make it align with text. - // Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799 - inset: 0, - zIndex: 1, - cursor: 'pointer', - opacity: 0, - margin: 0, - [`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token)) - }, - // Wrapper > Checkbox > inner - [`${checkboxCls}-inner`]: { - boxSizing: 'border-box', - position: 'relative', - top: 0, - insetInlineStart: 0, - display: 'block', - width: token.checkboxSize, - height: token.checkboxSize, - direction: 'ltr', - backgroundColor: token.colorBgContainer, - border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`, - borderRadius: token.borderRadiusSM, - borderCollapse: 'separate', - transition: `all ${token.motionDurationSlow}`, - '&:after': { - boxSizing: 'border-box', - position: 'absolute', - top: '50%', - insetInlineStart: '21.5%', - display: 'table', - width: token.checkboxSize / 14 * 5, - height: token.checkboxSize / 14 * 8, - border: `${token.lineWidthBold}px solid ${token.colorWhite}`, - borderTop: 0, - borderInlineStart: 0, - transform: 'rotate(45deg) scale(0) translate(-50%,-50%)', - opacity: 0, - content: '""', - transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}` - } - }, - // Wrapper > Checkbox + Text - '& + span': { - paddingInlineStart: token.paddingXS, - paddingInlineEnd: token.paddingXS - } - }) - }, - // ===================== Hover ===================== - { - // Wrapper & Wrapper > Checkbox - [` - ${wrapperCls}:not(${wrapperCls}-disabled), - ${checkboxCls}:not(${checkboxCls}-disabled) - `]: { - [`&:hover ${checkboxCls}-inner`]: { - borderColor: token.colorPrimary - } - }, - [`${wrapperCls}:not(${wrapperCls}-disabled)`]: { - [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: { - backgroundColor: token.colorPrimaryHover, - borderColor: 'transparent' - }, - [`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: { - borderColor: token.colorPrimaryHover - } - } - }, - // ==================== Checked ==================== - { - // Wrapper > Checkbox - [`${checkboxCls}-checked`]: { - [`${checkboxCls}-inner`]: { - backgroundColor: token.colorPrimary, - borderColor: token.colorPrimary, - '&:after': { - opacity: 1, - transform: 'rotate(45deg) scale(1) translate(-50%,-50%)', - transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}` - } - } - }, - [` - ${wrapperCls}-checked:not(${wrapperCls}-disabled), - ${checkboxCls}-checked:not(${checkboxCls}-disabled) - `]: { - [`&:hover ${checkboxCls}-inner`]: { - backgroundColor: token.colorPrimaryHover, - borderColor: 'transparent' - } - } - }, - // ================= Indeterminate ================= - { - [checkboxCls]: { - '&-indeterminate': { - // Wrapper > Checkbox > inner - [`${checkboxCls}-inner`]: { - backgroundColor: token.colorBgContainer, - borderColor: token.colorBorder, - '&:after': { - top: '50%', - insetInlineStart: '50%', - width: token.fontSizeLG / 2, - height: token.fontSizeLG / 2, - backgroundColor: token.colorPrimary, - border: 0, - transform: 'translate(-50%, -50%) scale(1)', - opacity: 1, - content: '""' - } - } - } - } - }, - // ==================== Disable ==================== - { - // Wrapper - [`${wrapperCls}-disabled`]: { - cursor: 'not-allowed' - }, - // Wrapper > Checkbox - [`${checkboxCls}-disabled`]: { - // Wrapper > Checkbox > input - [`&, ${checkboxCls}-input`]: { - cursor: 'not-allowed', - // Disabled for native input to enable Tooltip event handler - // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901 - pointerEvents: 'none' - }, - // Wrapper > Checkbox > inner - [`${checkboxCls}-inner`]: { - background: token.colorBgContainerDisabled, - borderColor: token.colorBorder, - '&:after': { - borderColor: token.colorTextDisabled - } - }, - '&:after': { - display: 'none' - }, - '& + span': { - color: token.colorTextDisabled - }, - [`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: { - background: token.colorTextDisabled - } - } - }]; -}; -// ============================== Export ============================== -function getStyle(prefixCls, token) { - const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, { - checkboxCls: `.${prefixCls}`, - checkboxSize: token.controlInteractiveSize - }); - return [genCheckboxStyle(checkboxToken)]; -} -/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => { - let { - prefixCls - } = _ref; - return [getStyle(prefixCls, token)]; -})); - -/***/ }), - -/***/ 1056: -/*!*********************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@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.9.0@antd/es/config-provider/context.js -var context = __webpack_require__(36355); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js -var form_context = __webpack_require__(32441); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js -var style = __webpack_require__(9937); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js -"use client"; - - - - - - - - -const Group = props => { - const { - getPrefixCls, - direction - } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_); - const { - prefixCls: customizePrefixCls, - className - } = props; - const prefixCls = getPrefixCls('input-group', customizePrefixCls); - const inputPrefixCls = getPrefixCls('input'); - const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls); - const cls = _classnames_2_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.9.0@antd/es/input/Input.js + 1 modules -var Input = __webpack_require__(9432); -// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(61796); -;// CONCATENATED MODULE: ./node_modules/_@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.1@rc-util/es/omit.js -var omit = __webpack_require__(99468); -// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js -var es_ref = __webpack_require__(88831); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js -var useRemovePasswordTimeout = __webpack_require__(59412); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js -"use client"; - -var __rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - -const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null); -const ActionMap = { - click: 'onClick', - hover: 'onMouseOver' -}; -const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - const { - visibilityToggle = true - } = props; - const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined; - const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false); - const inputRef = (0,_react_17_0_2_react.useRef)(null); - _react_17_0_2_react.useEffect(() => { - if (visibilityControlled) { - setVisible(visibilityToggle.visible); - } - }, [visibilityControlled, visibilityToggle]); - // Remove Password value - const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef); - const onVisibleChange = () => { - const { - disabled - } = props; - if (disabled) { - return; - } - if (visible) { - removePasswordTimeout(); - } - setVisible(prevState => { - var _a; - const newState = !prevState; - if (typeof visibilityToggle === 'object') { - (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState); - } - return newState; - }); - }; - const getIcon = prefixCls => { - const { - action = 'click', - iconRender = defaultIconRender - } = props; - const iconTrigger = ActionMap[action] || ''; - const icon = iconRender(visible); - const iconProps = { - [iconTrigger]: onVisibleChange, - className: `${prefixCls}-icon`, - key: 'passwordIcon', - onMouseDown: e => { - // Prevent focused state lost - // https://github.com/ant-design/ant-design/issues/15173 - e.preventDefault(); - }, - onMouseUp: e => { - // Prevent caret position change - // https://github.com/ant-design/ant-design/issues/23524 - e.preventDefault(); - } - }; - return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps); - }; - const { - className, - prefixCls: customizePrefixCls, - inputPrefixCls: customizeInputPrefixCls, - size - } = props, - restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]); - const { - getPrefixCls - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); - const prefixCls = getPrefixCls('input-password', customizePrefixCls); - const suffixIcon = visibilityToggle && getIcon(prefixCls); - const inputClassName = _classnames_2_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.9.0@antd/es/_util/reactNode.js -var reactNode = __webpack_require__(92343); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js -var es_button = __webpack_require__(3113); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js -var useSize = __webpack_require__(19716); -// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js -var Compact = __webpack_require__(33234); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js -"use client"; - -var Search_rest = undefined && undefined.__rest || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; - } - return t; -}; - - - - - - - - - - -const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => { - const { - prefixCls: customizePrefixCls, - inputPrefixCls: customizeInputPrefixCls, - className, - size: customizeSize, - suffix, - enterButton = false, - addonAfter, - loading, - disabled, - onSearch: customOnSearch, - onChange: customOnChange, - onCompositionStart, - onCompositionEnd - } = props, - restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]); - const { - getPrefixCls, - direction - } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_); - const composedRef = _react_17_0_2_react.useRef(false); - const prefixCls = getPrefixCls('input-search', customizePrefixCls); - const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls); - const { - compactSize - } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction); - const size = (0,useSize/* default */.Z)(ctx => { - var _a; - return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx; - }); - const inputRef = _react_17_0_2_react.useRef(null); - const onChange = e => { - if (e && e.target && e.type === 'click' && customOnSearch) { - customOnSearch(e.target.value, e, { - source: 'clear' - }); - } - if (customOnChange) { - customOnChange(e); - } - }; - const onMouseDown = e => { - var _a; - if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) { - e.preventDefault(); - } - }; - const onSearch = e => { - var _a, _b; - if (customOnSearch) { - customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, { - source: 'input' - }); - } - }; - const onPressEnter = e => { - if (composedRef.current || loading) { - return; - } - onSearch(e); - }; - const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null; - const btnClassName = `${prefixCls}-button`; - let button; - const enterButtonAsElement = enterButton || {}; - const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true; - if (isAntdButton || enterButtonAsElement.type === 'button') { - button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({ - onMouseDown, - onClick: e => { - var _a, _b; - (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e); - onSearch(e); - }, - key: 'enterButton' - }, isAntdButton ? { - className: btnClassName, - size - } : {})); - } else { - button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, { - className: btnClassName, - type: enterButton ? 'primary' : undefined, - size: size, - disabled: disabled, - key: "enterButton", - onMouseDown: onMouseDown, - onClick: onSearch, - loading: loading, - icon: searchIcon - }, enterButton); - } - if (addonAfter) { - button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, { - key: 'addonAfter' - })]; - } - const cls = _classnames_2_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.9.0@antd/es/input/TextArea.js -var TextArea = __webpack_require__(1643); -;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js -"use client"; - - - - - - -const input_Input = Input/* default */.Z; -if (false) {} -input_Input.Group = input_Group; -input_Input.Search = input_Search; -input_Input.TextArea = TextArea/* default */.Z; -input_Input.Password = input_Password; -/* harmony default export */ var input = (input_Input); - -/***/ }), - -/***/ 8378: -/*!*******************************************************************!*\ - !*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***! - \*******************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__) { - -"use strict"; -const genCollapseMotion = token => ({ - [token.componentCls]: { - // For common/openAnimation - [`${token.antCls}-motion-collapse-legacy`]: { - overflow: 'hidden', - '&-active': { - transition: `height ${token.motionDurationMid} ${token.motionEaseInOut}, - opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important` - } - }, - [`${token.antCls}-motion-collapse`]: { - overflow: 'hidden', - transition: `height ${token.motionDurationMid} ${token.motionEaseInOut}, - opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important` - } - } -}); -/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion); - -/***/ }), - -/***/ 5630: -/*!*****************************************************************!*\ - !*** ./node_modules/_rc-checkbox@3.1.0@rc-checkbox/es/index.js ***! - \*****************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export Checkbox */ -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 61796); -/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 36439); -/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 35005); -/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 61860); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 20968); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 84381); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301); - - - - - -var _excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"]; - - - - -var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (props, ref) { - var _classNames; - var _props$prefixCls = props.prefixCls, - prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls, - className = props.className, - style = props.style, - checked = props.checked, - disabled = props.disabled, - _props$defaultChecked = props.defaultChecked, - defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, - _props$type = props.type, - type = _props$type === void 0 ? 'checkbox' : _props$type, - title = props.title, - onChange = props.onChange, - inputProps = (0,_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(props, _excluded); - var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null); - var _useMergedState = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(defaultChecked, { - value: checked - }), - _useMergedState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(_useMergedState, 2), - rawValue = _useMergedState2[0], - setRawValue = _useMergedState2[1]; - (0,react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () { - return { - focus: function focus() { - var _inputRef$current; - (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus(); - }, - blur: function blur() { - var _inputRef$current2; - (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur(); - }, - input: inputRef.current - }; - }); - var classString = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, className, (_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-checked"), rawValue), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames)); - var handleChange = function handleChange(e) { - if (disabled) { - return; - } - if (!('checked' in props)) { - setRawValue(e.target.checked); - } - onChange === null || onChange === void 0 ? void 0 : onChange({ - target: (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)({}, props), {}, { - type: type, - checked: e.target.checked - }), - stopPropagation: function stopPropagation() { - e.stopPropagation(); - }, - preventDefault: function preventDefault() { - e.preventDefault(); - }, - nativeEvent: e.nativeEvent - }); - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: classString, - title: title, - style: style - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({}, inputProps, { - className: "".concat(prefixCls, "-input"), - ref: inputRef, - onChange: handleChange, - disabled: disabled, - checked: !!rawValue, - type: type - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { - className: "".concat(prefixCls, "-inner") - })); -}); -/* harmony default export */ __webpack_exports__.Z = (Checkbox); - -/***/ }), - -/***/ 51581: -/*!****************************************************************************************************!*\ - !*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***! - \****************************************************************************************************/ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _react = __webpack_require__(/*! react */ 59301); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(/*! prop-types */ 12708); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var InfiniteScroll = function (_Component) { - _inherits(InfiniteScroll, _Component); - - function InfiniteScroll(props) { - _classCallCheck(this, InfiniteScroll); - - var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props)); - - _this.scrollListener = _this.scrollListener.bind(_this); - _this.eventListenerOptions = _this.eventListenerOptions.bind(_this); - _this.mousewheelListener = _this.mousewheelListener.bind(_this); - return _this; - } - - _createClass(InfiniteScroll, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.pageLoaded = this.props.pageStart; - this.options = this.eventListenerOptions(); - this.attachScrollListener(); - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate() { - if (this.props.isReverse && this.loadMore) { - var parentElement = this.getParentElement(this.scrollComponent); - parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop; - this.loadMore = false; - } - this.attachScrollListener(); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.detachScrollListener(); - this.detachMousewheelListener(); - } - }, { - key: 'isPassiveSupported', - value: function isPassiveSupported() { - var passive = false; - - var testOptions = { - get passive() { - passive = true; - } - }; - - try { - document.addEventListener('test', null, testOptions); - document.removeEventListener('test', null, testOptions); - } catch (e) { - // ignore - } - return passive; - } - }, { - key: 'eventListenerOptions', - value: function eventListenerOptions() { - var options = this.props.useCapture; - - if (this.isPassiveSupported()) { - options = { - useCapture: this.props.useCapture, - passive: true - }; - } - return options; - } - - // Set a defaut loader for all your `InfiniteScroll` components - - }, { - key: 'setDefaultLoader', - value: function setDefaultLoader(loader) { - this.defaultLoader = loader; - } - }, { - key: 'detachMousewheelListener', - value: function detachMousewheelListener() { - var scrollEl = window; - if (this.props.useWindow === false) { - scrollEl = this.scrollComponent.parentNode; - } - - scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); - } - }, { - key: 'detachScrollListener', - value: function detachScrollListener() { - var scrollEl = window; - if (this.props.useWindow === false) { - scrollEl = this.getParentElement(this.scrollComponent); - } - - scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); - scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); - } - }, { - key: 'getParentElement', - value: function getParentElement(el) { - var scrollParent = this.props.getScrollParent && this.props.getScrollParent(); - if (scrollParent != null) { - return scrollParent; - } - return el && el.parentNode; - } - }, { - key: 'filterProps', - value: function filterProps(props) { - return props; - } - }, { - key: 'attachScrollListener', - value: function attachScrollListener() { - var parentElement = this.getParentElement(this.scrollComponent); - - if (!this.props.hasMore || !parentElement) { - return; - } - - var scrollEl = window; - if (this.props.useWindow === false) { - scrollEl = parentElement; - } - - scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); - scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); - scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); - - if (this.props.initialLoad) { - this.scrollListener(); - } - } - }, { - key: 'mousewheelListener', - value: function mousewheelListener(e) { - // Prevents Chrome hangups - // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257 - if (e.deltaY === 1 && !this.isPassiveSupported()) { - e.preventDefault(); - } - } - }, { - key: 'scrollListener', - value: function scrollListener() { - var el = this.scrollComponent; - var scrollEl = window; - var parentNode = this.getParentElement(el); - - var offset = void 0; - if (this.props.useWindow) { - var doc = document.documentElement || document.body.parentNode || document.body; - var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop; - if (this.props.isReverse) { - offset = scrollTop; - } else { - offset = this.calculateOffset(el, scrollTop); - } - } else if (this.props.isReverse) { - offset = parentNode.scrollTop; - } else { - offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight; - } - - // Here we make sure the element is visible as well as checking the offset - if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) { - this.detachScrollListener(); - this.beforeScrollHeight = parentNode.scrollHeight; - this.beforeScrollTop = parentNode.scrollTop; - // Call loadMore after detachScrollListener to allow for non-async loadMore functions - if (typeof this.props.loadMore === 'function') { - this.props.loadMore(this.pageLoaded += 1); - this.loadMore = true; - } - } - } - }, { - key: 'calculateOffset', - value: function calculateOffset(el, scrollTop) { - if (!el) { - return 0; - } - - return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight); - } - }, { - key: 'calculateTopPosition', - value: function calculateTopPosition(el) { - if (!el) { - return 0; - } - return el.offsetTop + this.calculateTopPosition(el.offsetParent); - } - }, { - key: 'render', - value: function render() { - var _this2 = this; - - var renderProps = this.filterProps(this.props); - - var children = renderProps.children, - element = renderProps.element, - hasMore = renderProps.hasMore, - initialLoad = renderProps.initialLoad, - isReverse = renderProps.isReverse, - loader = renderProps.loader, - loadMore = renderProps.loadMore, - pageStart = renderProps.pageStart, - ref = renderProps.ref, - threshold = renderProps.threshold, - useCapture = renderProps.useCapture, - useWindow = renderProps.useWindow, - getScrollParent = renderProps.getScrollParent, - props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']); - - props.ref = function (node) { - _this2.scrollComponent = node; - if (ref) { - ref(node); - } - }; - - var childrenArray = [children]; - if (hasMore) { - if (loader) { - isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader); - } else if (this.defaultLoader) { - isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader); - } - } - return _react2.default.createElement(element, props, childrenArray); - } - }]); - - return InfiniteScroll; -}(_react.Component); - -InfiniteScroll.propTypes = { - children: _propTypes2.default.node.isRequired, - element: _propTypes2.default.node, - hasMore: _propTypes2.default.bool, - initialLoad: _propTypes2.default.bool, - isReverse: _propTypes2.default.bool, - loader: _propTypes2.default.node, - loadMore: _propTypes2.default.func.isRequired, - pageStart: _propTypes2.default.number, - ref: _propTypes2.default.func, - getScrollParent: _propTypes2.default.func, - threshold: _propTypes2.default.number, - useCapture: _propTypes2.default.bool, - useWindow: _propTypes2.default.bool -}; -InfiniteScroll.defaultProps = { - element: 'div', - hasMore: false, - initialLoad: true, - pageStart: 0, - ref: null, - threshold: 250, - useWindow: true, - isReverse: false, - useCapture: false, - loader: null, - getScrollParent: null -}; -exports["default"] = InfiniteScroll; -module.exports = exports['default']; - - -/***/ }), - -/***/ 26724: -/*!**************************************************************************************!*\ - !*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***! - \**************************************************************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581) - - -/***/ }) - -}]); \ No newline at end of file diff --git a/69859.async.js b/69859.async.js index 2fb9609e2d..65a5924ab4 100644 --- a/69859.async.js +++ b/69859.async.js @@ -459,7 +459,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/71244.async.js b/71244.async.js index 2eb94433aa..970d51c81c 100644 --- a/71244.async.js +++ b/71244.async.js @@ -335,9 +335,10 @@ var jsx_runtime = __webpack_require__(37712); }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { type: "primary", size: 'middle', - onClick: handleClick, + onClick: handleDown, children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] }) + // handleClick })] }); }); @@ -2809,14 +2810,6 @@ var CourseList = function CourseList(_ref) { children: name }) }) - }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { - title: "\u53D1\u5E03\u5355\u4F4D\uFF1A".concat(school_name), - children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { - className: CourseListmodules.unit, - children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", { - className: "iconfont icon-danwei1 font14 mr3" - }), school_name] - }) }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { className: CourseListmodules.tags, children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { diff --git a/72422.async.js b/72422.async.js index a16871e05d..a518098010 100644 --- a/72422.async.js +++ b/72422.async.js @@ -1251,7 +1251,10 @@ if (false) {} /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; -/* unused harmony exports getOverlay, RawPurePanel */ +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ t5: function() { return /* binding */ RawPurePanel; } +/* harmony export */ }); +/* unused harmony export getOverlay */ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 12124); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477); diff --git a/74237.async.js b/74237.async.js new file mode 100644 index 0000000000..35d879242f --- /dev/null +++ b/74237.async.js @@ -0,0 +1,2987 @@ +"use strict"; +(self["webpackChunk"] = self["webpackChunk"] || []).push([[74237,40840],{ + +/***/ 12217: +/*!******************************************!*\ + !*** ./src/pages/tasks/service/index.js ***! + \******************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ JW: function() { return /* binding */ setUnity3dStatus; }, +/* harmony export */ Jd: function() { return /* binding */ rebootEsc; }, +/* harmony export */ Kl: function() { return /* binding */ addVncTime; }, +/* harmony export */ L5: function() { return /* binding */ saveTaskStar; }, +/* harmony export */ MH: function() { return /* binding */ getChooseUnlockAnswer; }, +/* harmony export */ MI: function() { return /* binding */ addMyRepositoryFile; }, +/* harmony export */ Qo: function() { return /* binding */ getCodeGameStatus; }, +/* harmony export */ SO: function() { return /* binding */ fetchPathsTaskList; }, +/* harmony export */ Tf: function() { return /* binding */ resetGitCode; }, +/* harmony export */ XO: function() { return /* binding */ fetchTaskInfo; }, +/* harmony export */ Xy: function() { return /* binding */ codeGameBuild; }, +/* harmony export */ Y0: function() { return /* binding */ plusOrCancelPraise; }, +/* harmony export */ Ye: function() { return /* binding */ setStartPermanent; }, +/* harmony export */ Yv: function() { return /* binding */ stopLogOutput; }, +/* harmony export */ ZH: function() { return /* binding */ commitFiles; }, +/* harmony export */ am: function() { return /* binding */ resetEnvironment; }, +/* harmony export */ bD: function() { return /* binding */ deleteMyGitFile; }, +/* harmony export */ fA: function() { return /* binding */ closeWindowsVnc; }, +/* harmony export */ fY: function() { return /* binding */ getRemainingTime; }, +/* harmony export */ g6: function() { return /* binding */ fetchTaskList; }, +/* harmony export */ g7: function() { return /* binding */ moveMyGitFile; }, +/* harmony export */ gT: function() { return /* binding */ fetchPictures; }, +/* harmony export */ gn: function() { return /* binding */ pullFiles; }, +/* harmony export */ h$: function() { return /* binding */ logOutput; }, +/* harmony export */ hG: function() { return /* binding */ resetPassedCode; }, +/* harmony export */ i8: function() { return /* binding */ getRanking; }, +/* harmony export */ j3: function() { return /* binding */ getUnlockAnswer; }, +/* harmony export */ lH: function() { return /* binding */ getAnswerInfo; }, +/* harmony export */ li: function() { return /* binding */ fetchCode; }, +/* harmony export */ n4: function() { return /* binding */ updateCode; }, +/* harmony export */ pU: function() { return /* binding */ fetchRepos; }, +/* harmony export */ qK: function() { return /* binding */ restoreCode; }, +/* harmony export */ sA: function() { return /* binding */ startInit; }, +/* harmony export */ sP: function() { return /* binding */ getChooseAnswerInfo; }, +/* harmony export */ t$: function() { return /* binding */ unlockTestCase; }, +/* harmony export */ zl: function() { return /* binding */ evalateChooseGame; } +/* harmony export */ }); +/* unused harmony exports getNoticeDetail, closeSSh, getMyFileContent */ +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574); +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343); +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801); +/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 91506); +/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 22739); + + + + + + +//判断是否来自教学课堂助教查看实训 +var urlParamsAll = (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .getJsonFromUrl */ .oP)(); +var urlParams = {}; +if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.homework_common_id) { + urlParams.homework_common_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.homework_common_id; +} +if (urlParamsAll !== null && urlParamsAll !== void 0 && urlParamsAll.exercisesId) { + urlParams.exercise_id = urlParamsAll === null || urlParamsAll === void 0 ? void 0 : urlParamsAll.exercisesId; +} +function fetchTaskInfo(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, ".json"), urlParams); +} +function fetchTaskList(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/challenges.json")); +} +function fetchPathsTaskList(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/subject_challenges.json"), params); +} +function saveTaskStar(id, shixunId, star) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/star.json"), { + shixun_id: shixunId, + star: star + }); +} +function fetchCode(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rep_content.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} +function updateCode(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/update_file.json"), params); +} +function restoreCode(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_original_code.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} +function resetGitCode(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/reset_repository.json"), params); +} +function resetPassedCode(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/reset_passed_code.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} +function codeGameBuild(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/game_build.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} +function getCodeGameStatus(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/game_status.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} +function evalateChooseGame(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/choose_build.json"), _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, params), urlParams)); +} + +//获取环境剩余时间 +function getRemainingTime(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/get_remaining_time.json")); +} +function fetchPictures(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/picture_display.json"), urlParams); +} +function getNoticeDetail(id, params) { + return get("courses/".concat(id, "/inform_detail.json"), params); +} +function plusOrCancelPraise(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/plus_or_cancel_praise.json")); +} +function fetchRepos(id) { + var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("myshixuns/".concat(id, "/repository.json"), params); +} + +//添加新方法 +function startInit(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/start.json"), params || {}); +} +function closeSSh(id) { + return get("myshixuns/".concat(id, "/reset_pod.json")); +} +function resetEnvironment(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/reset_pod.json"), params); +} + +// 重启云主机 +function rebootEsc(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/tasks/".concat(id, "/reboot_esc.json"), { + method: 'post', + body: params + }); +} +function unlockTestCase(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/check_test_sets.json")); +} +function getAnswerInfo(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_answer_info.json")); +} +function getChooseAnswerInfo(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/get_choose_answer.json")); +} +function getChooseUnlockAnswer(id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_choose_answer.json")); +} +function getUnlockAnswer(id, aid) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/unlock_answer.json"), { + answer_id: aid + }); +} +function setUnity3dStatus(id, result, data) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/set_games_status.json"), { + result: result, + data: data + }); +} + +//保留唯一一个方法 +function addVncTime(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("myshixuns/".concat(id, "/active_pod.json"), params); +} +function getRanking(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/rank_list.json"), params); +} +function closeWindowsVnc(id, tpi_id) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/close_windows_vnc.json"), { + tpi_id: tpi_id + }); +} +function commitFiles(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/commit_files.json"), params); +} +function pullFiles(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/pull_files.json"), params); +} +function logOutput(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .post */ .v_)("tasks/".concat(id, "/log_output"), params); +} +function stopLogOutput(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* .get */ .U2)("tasks/".concat(id, "/stop_log_output.json"), params); +} + +// myshixuns start +function addMyRepositoryFile(_x) { + return _addMyRepositoryFile.apply(this, arguments); +} +function _addMyRepositoryFile() { + _addMyRepositoryFile = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) { + return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/add_file.json"), { + method: 'post', + body: params + })); + case 1: + case "end": + return _context.stop(); + } + }, _callee); + })); + return _addMyRepositoryFile.apply(this, arguments); +} +function deleteMyGitFile(_x2) { + return _deleteMyGitFile.apply(this, arguments); +} +function _deleteMyGitFile() { + _deleteMyGitFile = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(params) { + return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/delete_git_file.json"), { + method: 'Delete', + body: params + })); + case 1: + case "end": + return _context2.stop(); + } + }, _callee2); + })); + return _deleteMyGitFile.apply(this, arguments); +} +function moveMyGitFile(_x3) { + return _moveMyGitFile.apply(this, arguments); +} +function _moveMyGitFile() { + _moveMyGitFile = _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(params) { + return _root_workspace_ppte5yg23_local_v9_test2_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) { + while (1) switch (_context3.prev = _context3.next) { + case 0: + return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/myshixuns/".concat(params.id, "/mv_file.json"), { + method: 'post', + body: params + })); + case 1: + case "end": + return _context3.stop(); + } + }, _callee3); + })); + return _moveMyGitFile.apply(this, arguments); +} +function getMyFileContent(_x4) { + return _getMyFileContent.apply(this, arguments); +} +function _getMyFileContent() { + _getMyFileContent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) { + return _regeneratorRuntime().wrap(function _callee4$(_context4) { + while (1) switch (_context4.prev = _context4.next) { + case 0: + return _context4.abrupt("return", Fetch("/api/tasks/".concat(params.id, "/rep_content.json"), { + method: 'get', + params: params + })); + case 1: + case "end": + return _context4.stop(); + } + }, _callee4); + })); + return _getMyFileContent.apply(this, arguments); +} +function setStartPermanent(id, params) { + return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/shixuns/".concat(id, "/set_start_permanent.json"), { + method: 'put', + body: params + }); +} + +/***/ }), + +/***/ 40840: +/*!**********************************************************!*\ + !*** ./src/components/MultiUpload/index.tsx + 3 modules ***! + \**********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + z: function() { return /* binding */ coverToFileList; }, + Z: function() { return /* binding */ MultiUpload; } +}); + +// 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/_@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/toConsumableArray.js +var toConsumableArray = __webpack_require__(93923); +var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); +// 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: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules +var upload = __webpack_require__(6557); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules +var es_message = __webpack_require__(8591); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules +var modal = __webpack_require__(43418); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules +var env = __webpack_require__(78130); +// EXTERNAL MODULE: ./src/pages/MoopCases/FormPanel/service.ts +var service = __webpack_require__(84568); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/SingleUpload/index.tsx + + + + + + + + + + +var uploadNameSizeSeperator = '  '; +function bytesToSize(bytes) { + var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; + if (bytes == 0) return '0 Byte'; + var i = parseInt('' + Math.floor(Math.log(bytes) / Math.log(1024)), 10); + return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i]; +} +/* harmony default export */ var SingleUpload = (function (_ref) { + var _ref$value = _ref.value, + value = _ref$value === void 0 ? [] : _ref$value, + action = _ref.action, + _onChange = _ref.onChange, + className = _ref.className, + _ref$maxSize = _ref.maxSize, + maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize, + _ref$title = _ref.title, + title = _ref$title === void 0 ? '文件上传' : _ref$title, + _ref$accept = _ref.accept, + accept = _ref$accept === void 0 ? null : _ref$accept; + var uploadProps = { + multiple: false, + fileList: value, + accept: accept, + withCredentials: true, + beforeUpload: function beforeUpload(file) { + var fileSize = file.size / 1024 / 1024; + if (!(fileSize < maxSize)) { + message.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20")); + return Promise.reject(); + } + return true; + }, + action: "".concat(ENV.API_SERVER, "/api/attachments.json"), + // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a + onChange: function onChange(info) { + var _info$file; + var fileList = _toConsumableArray(info.fileList); + fileList = fileList.map(function (file) { + if (file.name.indexOf(uploadNameSizeSeperator) === -1) { + file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size)); + } + return _objectSpread({}, file); + }); + if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) { + var _info$file2; + message.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message); + _onChange([]); + return; + } + _onChange(fileList); + }, + onRemove: function () { + var _onRemove = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) { + var fileSize, id, rs; + return _regeneratorRuntime().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + fileSize = file.size / 1024 / 1024; + if (!(file.status === 'uploading')) { + _context.next = 3; + break; + } + return _context.abrupt("return", true); + case 3: + if (fileSize < maxSize) { + _context.next = 7; + break; + } + return _context.abrupt("return", true); + case 7: + id = file.response ? file.response.id : file.uid; + if (!id) { + _context.next = 15; + break; + } + _context.next = 11; + return removeAttachment(file.response ? file.response.id : file.id); + case 11: + rs = _context.sent; + return _context.abrupt("return", rs); + case 15: + return _context.abrupt("return", true); + case 16: + case "end": + return _context.stop(); + } + }, _callee); + })); + function onRemove(_x) { + return _onRemove.apply(this, arguments); + } + return onRemove; + }() + }; + function onCancel(e) { + e.preventDefault(); + e.stopPropagation(); + } + return /*#__PURE__*/_jsx("div", { + className: "single-upload ".concat(className ? className : ''), + children: /*#__PURE__*/_jsxs(Upload, _objectSpread(_objectSpread({}, uploadProps), {}, { + children: [/*#__PURE__*/_jsx(Button, { + type: "primary", + title: value.length > 0 ? '每次只能上传一个资源, 删除下面资源可重新上传 ' : '', + disabled: value.length > 0, + ghost: true, + children: title + }), /*#__PURE__*/_jsxs("span", { + onClick: onCancel, + style: { + marginLeft: 10 + }, + children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "M)", ' '] + })] + })) + }); +}); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/InboxOutlined.js + 1 modules +var InboxOutlined = __webpack_require__(60936); +// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js +var lodash = __webpack_require__(89392); +;// CONCATENATED MODULE: ./src/components/MultiUpload/index.less +// extracted by mini-css-extract-plugin + +;// CONCATENATED MODULE: ./src/assets/images/uploadImg.svg +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +var __defProp = Object.defineProperty; +var __getOwnPropSymbols = Object.getOwnPropertySymbols; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __propIsEnum = Object.prototype.propertyIsEnumerable; +var __defNormalProp = function __defNormalProp(obj, key, value) { + return key in obj ? __defProp(obj, key, { + enumerable: true, + configurable: true, + writable: true, + value: value + }) : obj[key] = value; +}; +var __spreadValues = function __spreadValues(a, b) { + for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); + if (__getOwnPropSymbols) { + var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(b)), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var prop = _step.value; + if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + } + return a; +}; + +var SvgUploadImg = function SvgUploadImg(props) { + return /* @__PURE__ */React.createElement("svg", __spreadValues({ + width: 14, + height: 14, + xmlns: "http://www.w3.org/2000/svg" + }, props), /* @__PURE__ */React.createElement("title", null, "\u5F62\u72B6"), /* @__PURE__ */React.createElement("path", { + d: "M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z", + fill: "#3061D0", + fillRule: "nonzero" + })); +}; + +/* harmony default export */ var uploadImg = ("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="); +;// CONCATENATED MODULE: ./src/components/MultiUpload/index.tsx + + + + + + + + + + + + + + + + +var Dragger = upload/* default */.Z.Dragger; +function coverToFileList(data) { + var rs = []; + if (data && data.length > 0) { + rs = data.map(function (item) { + return { + uid: item.id, + id: item.id, + name: item.title + uploadNameSizeSeperator + item.filesize, + url: item.url, + filesize: item.filesize, + status: 'done', + response: { + id: item.id + } + }; + }); + } + return rs; +} +/* harmony default export */ var MultiUpload = (function (_ref) { + var value = _ref.value, + _onChange = _ref.onChange, + action = _ref.action, + data = _ref.data, + className = _ref.className, + _ref$maxSize = _ref.maxSize, + maxSize = _ref$maxSize === void 0 ? 150 : _ref$maxSize, + _ref$title = _ref.title, + title = _ref$title === void 0 ? '上传附件' : _ref$title, + _ref$showRemoveModal = _ref.showRemoveModal, + showRemoveModal = _ref$showRemoveModal === void 0 ? false : _ref$showRemoveModal, + _ref$accept = _ref.accept, + accept = _ref$accept === void 0 ? '' : _ref$accept, + additionalText = _ref.additionalText, + isDragger = _ref.isDragger, + _ref$number = _ref.number, + number = _ref$number === void 0 ? 1000 : _ref$number, + _ref$aloneClear = _ref.aloneClear, + aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear; + var _useState = (0,_react_17_0_2_react.useState)(false), + _useState2 = slicedToArray_default()(_useState, 2), + disabled = _useState2[0], + setDisabled = _useState2[1]; + var _useState3 = (0,_react_17_0_2_react.useState)(value || []), + _useState4 = slicedToArray_default()(_useState3, 2), + fileList = _useState4[0], + setFileList = _useState4[1]; + var _useState5 = (0,_react_17_0_2_react.useState)(1), + _useState6 = slicedToArray_default()(_useState5, 2), + nums = _useState6[0], + setnums = _useState6[1]; + (0,_react_17_0_2_react.useEffect)(function () { + if (value) { + if (nums === 1) { + setFileList(toConsumableArray_default()(value)); + } + setnums(2); + if (number === (value === null || value === void 0 ? void 0 : value.length)) { + setDisabled(true); + } + } + }, [value]); + var clearLastFile = function clearLastFile() { + setTimeout(function () { + fileList.pop(); + setFileList(toConsumableArray_default()(fileList)); + }, 500); + }; + var uploadProps = { + multiple: true, + disabled: disabled, + accept: accept, + withCredentials: true, + fileList: fileList, + // fileList: fileList?.length ? fileList : value, + beforeUpload: function beforeUpload(file, fileArr) { + var fileSize = file.size / 1024 / 1024; + if (fileList.concat(fileArr).length > number) { + fileList.pop(); + setFileList(toConsumableArray_default()(fileList)); + es_message/* default */.ZP.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(number, "\u4E2A\u6587\u4EF6")); + if (aloneClear) { + return Promise.reject(); + } + clearLastFile(); + return false; + } + if (!(fileSize < maxSize)) { + es_message/* default */.ZP.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(maxSize, "MB).")); + if (aloneClear) { + return Promise.reject(); + } + clearLastFile(); + return false; + } + return true; + }, + data: data, + action: action || "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"), + // ?debug=student&randomcode=undefined&client_key=6d57f8c3dd186c5ada392546ace9620a + onChange: function onChange(info) { + var _info$file; + if (info.file.status === "removed") { + fileList = info.fileList; + } else { + fileList = (0,lodash.uniqBy)([].concat(toConsumableArray_default()(info.fileList), toConsumableArray_default()(fileList)), 'uid'); + } + if (info.file.status === 'done' && ((_info$file = info.file) === null || _info$file === void 0 || (_info$file = _info$file.response) === null || _info$file === void 0 ? void 0 : _info$file.status) === -1) { + var _info$file2; + es_message/* default */.ZP.error((_info$file2 = info.file) === null || _info$file2 === void 0 || (_info$file2 = _info$file2.response) === null || _info$file2 === void 0 ? void 0 : _info$file2.message); + return; + } + if (fileList.length >= number) setDisabled(true);else setDisabled(false); + setFileList(toConsumableArray_default()(fileList)); + fileList = fileList.map(function (file) { + var _file$response; + if (file !== null && file !== void 0 && (_file$response = file.response) !== null && _file$response !== void 0 && _file$response.id) { + var _file$response2; + file.url = "/api/attachments/".concat(file === null || file === void 0 || (_file$response2 = file.response) === null || _file$response2 === void 0 ? void 0 : _file$response2.id); + } + if (file.name.indexOf(uploadNameSizeSeperator) === -1) { + file.name = "".concat(file.name).concat(uploadNameSizeSeperator).concat(bytesToSize(file.size)); + } + return objectSpread2_default()({}, file); + }); + console.log('info:', info, fileList); + _onChange(fileList); + }, + onRemove: function () { + var _onRemove = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(file) { + var remove; + return regeneratorRuntime_default()().wrap(function _callee3$(_context3) { + while (1) switch (_context3.prev = _context3.next) { + case 0: + remove = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { + var id, rs; + return regeneratorRuntime_default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + id = file.response ? file.response.id : file.id; + if (!id) { + _context.next = 8; + break; + } + _context.next = 4; + return (0,service/* removeAttachment */.JZ)(file.response ? file.response.id : file.uid); + case 4: + rs = _context.sent; + return _context.abrupt("return", Promise.resolve(rs)); + case 8: + return _context.abrupt("return", true); + case 9: + case "end": + return _context.stop(); + } + }, _callee); + })); + return function remove() { + return _ref2.apply(this, arguments); + }; + }(); + if (!showRemoveModal) { + _context3.next = 5; + break; + } + return _context3.abrupt("return", new Promise(function (resolve, reject) { + modal/* default */.Z.confirm({ + centered: true, + width: 530, + okText: '确定', + cancelText: '取消', + title: '提示', + content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "tc font16", + children: "\u662F\u5426\u786E\u8BA4\u5220\u9664?" + }), + onOk: function () { + var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() { + var res; + return regeneratorRuntime_default()().wrap(function _callee2$(_context2) { + while (1) switch (_context2.prev = _context2.next) { + case 0: + _context2.next = 2; + return remove(); + case 2: + res = _context2.sent; + es_message/* default */.ZP.success('删除成功'); + resolve(true); + case 5: + case "end": + return _context2.stop(); + } + }, _callee2); + })); + function onOk() { + return _onOk.apply(this, arguments); + } + return onOk; + }(), + onCancel: function onCancel() { + return resolve(false); + } + }); + })); + case 5: + _context3.next = 7; + return remove(); + case 7: + return _context3.abrupt("return", _context3.sent); + case 8: + case "end": + return _context3.stop(); + } + }, _callee3); + })); + function onRemove(_x) { + return _onRemove.apply(this, arguments); + } + return onRemove; + }() + }; + function onCancel(e) { + e.preventDefault(); + e.stopPropagation(); + } + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: "multi-upload ".concat(className ? className : ''), + children: [isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(Dragger, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", { + className: "ant-upload-drag-icon", + children: /*#__PURE__*/(0,jsx_runtime.jsx)(InboxOutlined/* default */.Z, {}) + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("p", { + className: "ant-upload-text", + children: ["\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64", /*#__PURE__*/(0,jsx_runtime.jsx)("br", {}), "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A", maxSize, "MB)", ' '] + }), additionalText] + })), !isDragger && /*#__PURE__*/(0,jsx_runtime.jsxs)(upload/* default */.Z, objectSpread2_default()(objectSpread2_default()({}, uploadProps), {}, { + children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { + disabled: disabled, + className: "upload_button", + children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", { + className: "aBtn_img", + src: uploadImg + }), title] + }), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", { + onClick: onCancel, + className: "upload_text", + children: ["(\u5355\u4E2A\u6587\u4EF6\u6700\u5927", maxSize, "MB)", ' '] + })] + }))] + }); +}); + +/***/ }), + +/***/ 19480: +/*!*********************************************************!*\ + !*** ./src/components/PreviewAll/index.tsx + 1 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ PreviewAll; } +}); + +// 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/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/_@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); +;// CONCATENATED MODULE: ./src/components/PreviewAll/index.less?modules +// extracted by mini-css-extract-plugin +/* harmony default export */ var PreviewAllmodules = ({"wrp":"wrp___dq7YK","bgBlack":"bgBlack___ARIUV","monaco":"monaco___VnZC3","darkBlue":"darkBlue___UprA9","close":"close___LKoWu","embed":"embed___hvpEJ"}); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js +var es_button = __webpack_require__(3113); +// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules +var ArrowDownOutlined = __webpack_require__(98915); +// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 3 modules +var monaco_editor = __webpack_require__(76329); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules +var tooltip = __webpack_require__(6848); +// EXTERNAL MODULE: ./src/utils/util.tsx +var util = __webpack_require__(22739); +// EXTERNAL MODULE: ./src/service/exercise.ts +var exercise = __webpack_require__(35367); +// EXTERNAL MODULE: ./src/components/NoData/index.tsx +var NoData = __webpack_require__(73208); +// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules +var env = __webpack_require__(78130); +// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js +var jsx_runtime = __webpack_require__(37712); +;// CONCATENATED MODULE: ./src/components/PreviewAll/index.tsx + + + + + + + + + + + + + + + + + +/* harmony default export */ var PreviewAll = (function (_ref) { + var _data, _data2, _data3, _data4, _data5, _data6, _data7; + var _ref$editOffice = _ref.editOffice, + editOffice = _ref$editOffice === void 0 ? 'view' : _ref$editOffice, + data = _ref.data, + theme = _ref.theme, + type = _ref.type, + filename = _ref.filename, + monacoEditor = _ref.monacoEditor, + className = _ref.className, + style = _ref.style, + close = _ref.close, + onClose = _ref.onClose, + hasMask = _ref.hasMask, + disabledDownload = _ref.disabledDownload, + onImgDimensions = _ref.onImgDimensions, + showNodata = _ref.showNodata; + var _useState = (0,_react_17_0_2_react.useState)('https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt'), + _useState2 = slicedToArray_default()(_useState, 2), + src = _useState2[0], + setSrc = _useState2[1]; + var _useState3 = (0,_react_17_0_2_react.useState)(""), + _useState4 = slicedToArray_default()(_useState3, 2), + token = _useState4[0], + setToken = _useState4[1]; + var _useState5 = (0,_react_17_0_2_react.useState)(), + _useState6 = slicedToArray_default()(_useState5, 2), + officeData = _useState6[0], + setOfficeData = _useState6[1]; + var officePath = window.ENV === "build" ? "/react/build" : ""; + var apiServer = location.host.startsWith("localhost") ? env/* default */.Z.PROXY_SERVER : env/* default */.Z.API_SERVER; + // let size; + console.log("disabledDownload---", disabledDownload); + var unit = 1024 * 1024; + var maxSize = 10 * unit; + var closeRef = (0,_react_17_0_2_react.useRef)(); + if ((_data = data) !== null && _data !== void 0 && _data.startsWith("/api") && type !== "txt") { + data = env/* default */.Z.API_SERVER + data; + } + // if (type === "office") { + // size = parseUrl(data).filesize + // if (size > maxSize) { + // type = "other" + // } + // } + if (filename) monacoEditor.filename = filename; + (0,_react_17_0_2_react.useEffect)(function () { + var _document$cookie; + var cookies = (_document$cookie = document.cookie) === null || _document$cookie === void 0 || (_document$cookie = _document$cookie.replace(/\s/g, "")) === null || _document$cookie === void 0 ? void 0 : _document$cookie.split(";"); + cookies === null || cookies === void 0 || cookies.map(function (item) { + var i = item.split("="); + if (i[0] === '_educoder_session') { + setToken(i[1]); + } + }); + }, []); + (0,_react_17_0_2_react.useEffect)(function () { + if (type === "office") getData(); + }, [type, data]); + var getData = /*#__PURE__*/function () { + var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() { + var _url, _id, res; + return regeneratorRuntime_default()().wrap(function _callee$(_context) { + while (1) switch (_context.prev = _context.next) { + case 0: + console.log("data:", data); + _url = data; + if (!data.startsWith("http")) { + _url = location.origin + _url; + } + _id = new URL(_url).pathname.split("/").pop(); + _context.next = 6; + return (0,exercise/* setEcsAttachment */.gJ)({ + attachment_id: _id + }); + case 6: + res = _context.sent; + setOfficeData(res); + case 8: + case "end": + return _context.stop(); + } + }, _callee); + })); + return function getData() { + return _ref2.apply(this, arguments); + }; + }(); + var handleClick = function handleClick() { + if (data.startsWith("http") || data.startsWith('blob:')) { + handleDown(); + return; + } + (0,util/* downloadFile */.Sv)(filename || 'educoder', data, filename); + }; + var handleDown = function handleDown() { + (0,util/* downLoadLink */.Nd)(filename || 'educoder', decodeURIComponent(data)); + }; + console.log(data, 'data'); + return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + style: objectSpread2_default()({}, style || {}), + className: "".concat(hasMask && PreviewAllmodules.bgBlack, " ").concat(!!type ? PreviewAllmodules.wrp : "hide"), + children: [close && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { + className: PreviewAllmodules.close, + ref: closeRef, + children: [!!onImgDimensions && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8", + getPopupContainer: function getPopupContainer() { + return closeRef.current; + }, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + onClick: function onClick() { + onClose(); + onImgDimensions(); + }, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon-yulanpizhu" + }) + }) + }), !disabledDownload && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6", + getPopupContainer: function getPopupContainer() { + return closeRef.current; + }, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + onClick: handleDown, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon-quxiaozhiding" + }) + }) + }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { + title: "\u5173\u95ED", + getPopupContainer: function getPopupContainer() { + return closeRef.current; + }, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", { + className: "", + onClick: onClose, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "icon-guanbi1" + }) + }) + })] + }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: "".concat(PreviewAllmodules[className], " ").concat(className, " ").concat(PreviewAllmodules.monaco, " ").concat(type === "txt" ? "show" : "hide"), + children: type === "txt" && /*#__PURE__*/(0,jsx_runtime.jsx)(monaco_editor/* default */.ZP, objectSpread2_default()({}, monacoEditor)) + }), type === "audio" && /*#__PURE__*/(0,jsx_runtime.jsx)("audio", { + src: ((_data2 = data) === null || _data2 === void 0 ? void 0 : _data2.indexOf("http")) > -1 || (_data3 = data) !== null && _data3 !== void 0 && _data3.startsWith("/api") ? data : "data:image/png;base64,".concat(data), + autoPlay: true + }), type === "video" && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { + children: ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.indexOf("http")) > -1 || (_data5 = data) !== null && _data5 !== void 0 && _data5.startsWith("/api") ? /*#__PURE__*/(0,jsx_runtime.jsx)("video", { + controls: true, + src: "".concat(data), + autoPlay: true + }) : /*#__PURE__*/(0,jsx_runtime.jsx)("video", { + controls: true, + src: "data:video/mp4;base64,".concat(data), + autoPlay: true + }) + }), type === 'office' && officeData && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: "".concat(officePath, "/office.html?key=").concat(officeData.key, "&url=").concat(apiServer + officeData.url, "&callbackUrl=").concat(apiServer + officeData.callbackUrl, "&fileType=").concat(officeData.fileType, "&title=").concat(officeData.title, "&model=").concat(editOffice, "&officeServer=").concat(env/* default */.Z.ONLYOFFICE, "&disabledDownload=").concat(!!disabledDownload) + }), type === 'html' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: data + '&disposition=inline' + }), type === 'pdf' && /*#__PURE__*/(0,jsx_runtime.jsx)("iframe", { + src: "".concat(officePath, "/js/pdfview/index.html?url=").concat(data, "&disabledDownload=").concat(!!disabledDownload) + }) // + , type === "image" && /*#__PURE__*/(0,jsx_runtime.jsx)("img", { + src: ((_data6 = data) === null || _data6 === void 0 ? void 0 : _data6.indexOf("http")) > -1 || (_data7 = data) !== null && _data7 !== void 0 && _data7.startsWith("/api") ? data : "data:image/png;base64,".concat(data) + }), (type === "other" || type === "download") && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { + children: showNodata ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, { + customText: "\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B", + ButtonTwo: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, { + icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", { + className: "iconfont icon-xiazai4 font14" + }), + type: "primary", + size: 'middle', + onClick: handleClick, + children: "\u4E0B\u8F7D" + }) + }) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, { + type: "primary", + size: 'middle', + onClick: handleDown, + children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ArrowDownOutlined/* default */.Z, {}), "\u70B9\u51FB\u4E0B\u8F7D"] + }) + // handleClick + })] + }); +}); + +/***/ }), + +/***/ 11436: +/*!*********************************************************!*\ + !*** ./src/components/RenderHtml/index.tsx + 1 modules ***! + \*********************************************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + Z: function() { return /* binding */ RenderHtml; } +}); + +// 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/toConsumableArray.js +var toConsumableArray = __webpack_require__(93923); +var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray); +// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/createForOfIteratorHelper.js +var createForOfIteratorHelper = __webpack_require__(98190); +var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper); +// 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: ./node_modules/_katex@0.11.1@katex/dist/katex.min.css +var katex_min = __webpack_require__(16622); +// EXTERNAL MODULE: ./node_modules/_marked@2.0.7@marked/lib/marked.js +var marked = __webpack_require__(32834); +var marked_default = /*#__PURE__*/__webpack_require__.n(marked); +// EXTERNAL MODULE: ./node_modules/_marked@2.0.7@marked/src/helpers.js +var helpers = __webpack_require__(11690); +;// CONCATENATED MODULE: ./src/utils/marked.ts + + + +function indentCodeCompensation(raw, text) { + var matchIndentToCode = raw.match(/^(\s+)(?:```)/); + if (matchIndentToCode === null) { + return text; + } + var indentToCode = matchIndentToCode[1]; + return text.split('\n').map(function (node) { + var matchIndentInNode = node.match(/^\s+/); + if (matchIndentInNode === null) { + return node; + } + var _matchIndentInNode = slicedToArray_default()(matchIndentInNode, 1), + indentInNode = _matchIndentInNode[0]; + if (indentInNode.length >= indentToCode.length) { + return node.slice(indentToCode.length); + } + return node; + }).join('\n'); +} +//兼容之前的 ##标题式写法 +var toc = []; +var ctx = ["