diff --git a/28278.474fb066.async.js b/13694.40940356.async.js
similarity index 92%
rename from 28278.474fb066.async.js
rename to 13694.40940356.async.js
index 2002822cc0..876b817be6 100644
--- a/28278.474fb066.async.js
+++ b/13694.40940356.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[28278,84742],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[13694,84742],{
/***/ 23174:
/*!************************************************************************************************************!*\
@@ -2526,246 +2526,6 @@ function copy(text, options) {
module.exports = copy;
-/***/ }),
-
-/***/ 24334:
-/*!***********************************************************!*\
- !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
- \***********************************************************/
-/***/ (function(module, exports, __webpack_require__) {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
- * base64.js
- *
- * Licensed under the BSD 3-Clause License.
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * References:
- * http://en.wikipedia.org/wiki/Base64
- */
-;(function (global, factory) {
- true
- ? module.exports = factory(global)
- : 0
-}((
- typeof self !== 'undefined' ? self
- : typeof window !== 'undefined' ? window
- : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
-: this
-), function(global) {
- 'use strict';
- // existing version for noConflict()
- global = global || {};
- var _Base64 = global.Base64;
- var version = "2.6.4";
- // constants
- var b64chars
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- var b64tab = function(bin) {
- var t = {};
- for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
- return t;
- }(b64chars);
- var fromCharCode = String.fromCharCode;
- // encoder stuff
- var cb_utob = function(c) {
- if (c.length < 2) {
- var cc = c.charCodeAt(0);
- return cc < 0x80 ? c
- : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
- + fromCharCode(0x80 | (cc & 0x3f)))
- : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- } else {
- var cc = 0x10000
- + (c.charCodeAt(0) - 0xD800) * 0x400
- + (c.charCodeAt(1) - 0xDC00);
- return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
- + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- }
- };
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
- var utob = function(u) {
- return u.replace(re_utob, cb_utob);
- };
- var cb_encode = function(ccc) {
- var padlen = [0, 2, 1][ccc.length % 3],
- ord = ccc.charCodeAt(0) << 16
- | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
- | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
- chars = [
- b64chars.charAt( ord >>> 18),
- b64chars.charAt((ord >>> 12) & 63),
- padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
- padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
- ];
- return chars.join('');
- };
- var btoa = global.btoa && typeof global.btoa == 'function'
- ? function(b){ return global.btoa(b) } : function(b) {
- if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
- 'The string contains invalid characters.'
- );
- return b.replace(/[\s\S]{1,3}/g, cb_encode);
- };
- var _encode = function(u) {
- return btoa(utob(String(u)));
- };
- var mkUriSafe = function (b64) {
- return b64.replace(/[+\/]/g, function(m0) {
- return m0 == '+' ? '-' : '_';
- }).replace(/=/g, '');
- };
- var encode = function(u, urisafe) {
- return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
- };
- var encodeURI = function(u) { return encode(u, true) };
- var fromUint8Array;
- if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
- // return btoa(fromCharCode.apply(null, a));
- var b64 = '';
- for (var i = 0, l = a.length; i < l; i += 3) {
- var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
- var ord = a0 << 16 | a1 << 8 | a2;
- b64 += b64chars.charAt( ord >>> 18)
- + b64chars.charAt((ord >>> 12) & 63)
- + ( typeof a1 != 'undefined'
- ? b64chars.charAt((ord >>> 6) & 63) : '=')
- + ( typeof a2 != 'undefined'
- ? b64chars.charAt( ord & 63) : '=');
- }
- return urisafe ? mkUriSafe(b64) : b64;
- };
- // decoder stuff
- var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
- var cb_btou = function(cccc) {
- switch(cccc.length) {
- case 4:
- var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
- | ((0x3f & cccc.charCodeAt(1)) << 12)
- | ((0x3f & cccc.charCodeAt(2)) << 6)
- | (0x3f & cccc.charCodeAt(3)),
- offset = cp - 0x10000;
- return (fromCharCode((offset >>> 10) + 0xD800)
- + fromCharCode((offset & 0x3FF) + 0xDC00));
- case 3:
- return fromCharCode(
- ((0x0f & cccc.charCodeAt(0)) << 12)
- | ((0x3f & cccc.charCodeAt(1)) << 6)
- | (0x3f & cccc.charCodeAt(2))
- );
- default:
- return fromCharCode(
- ((0x1f & cccc.charCodeAt(0)) << 6)
- | (0x3f & cccc.charCodeAt(1))
- );
- }
- };
- var btou = function(b) {
- return b.replace(re_btou, cb_btou);
- };
- var cb_decode = function(cccc) {
- var len = cccc.length,
- padlen = len % 4,
- n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
- | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
- | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
- | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
- chars = [
- fromCharCode( n >>> 16),
- fromCharCode((n >>> 8) & 0xff),
- fromCharCode( n & 0xff)
- ];
- chars.length -= [0, 0, 2, 1][padlen];
- return chars.join('');
- };
- var _atob = global.atob && typeof global.atob == 'function'
- ? function(a){ return global.atob(a) } : function(a){
- return a.replace(/\S{1,4}/g, cb_decode);
- };
- var atob = function(a) {
- return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
- };
- var _decode = function(a) { return btou(_atob(a)) };
- var _fromURI = function(a) {
- return String(a).replace(/[-_]/g, function(m0) {
- return m0 == '-' ? '+' : '/'
- }).replace(/[^A-Za-z0-9\+\/]/g, '');
- };
- var decode = function(a){
- return _decode(_fromURI(a));
- };
- var toUint8Array;
- if (global.Uint8Array) toUint8Array = function(a) {
- return Uint8Array.from(atob(_fromURI(a)), function(c) {
- return c.charCodeAt(0);
- });
- };
- var noConflict = function() {
- var Base64 = global.Base64;
- global.Base64 = _Base64;
- return Base64;
- };
- // export Base64
- global.Base64 = {
- VERSION: version,
- atob: atob,
- btoa: btoa,
- fromBase64: decode,
- toBase64: encode,
- utob: utob,
- encode: encode,
- encodeURI: encodeURI,
- btou: btou,
- decode: decode,
- noConflict: noConflict,
- fromUint8Array: fromUint8Array,
- toUint8Array: toUint8Array
- };
- // if ES5 is available, make Base64.extendString() available
- if (typeof Object.defineProperty === 'function') {
- var noEnum = function(v){
- return {value:v,enumerable:false,writable:true,configurable:true};
- };
- global.Base64.extendString = function () {
- Object.defineProperty(
- String.prototype, 'fromBase64', noEnum(function () {
- return decode(this)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64', noEnum(function (urisafe) {
- return encode(this, urisafe)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64URI', noEnum(function () {
- return encode(this, true)
- }));
- };
- }
- //
- // export Base64 to the namespace
- //
- if (global['Meteor']) { // Meteor.js
- Base64 = global.Base64;
- }
- // module.exports and AMD are mutually exclusive.
- // module.exports has precedence.
- if ( true && module.exports) {
- module.exports.Base64 = global.Base64;
- }
- else if (true) {
- // AMD. Register as an anonymous module.
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
- // that's it!
- return {Base64: global.Base64}
-}));
-
-
/***/ }),
/***/ 83145:
diff --git a/20142.50fe969d.async.js b/20142.50fe969d.async.js
new file mode 100644
index 0000000000..0bc1e01bc3
--- /dev/null
+++ b/20142.50fe969d.async.js
@@ -0,0 +1,681 @@
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[20142],{
+
+/***/ 10777:
+/*!************************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/timeline/index.js + 5 modules ***!
+ \************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Z: function() { return /* binding */ timeline; }
+});
+
+// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
+var _classnames_2_5_1_classnames = __webpack_require__(92310);
+var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
+var context = __webpack_require__(36355);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/TimelineItem.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 TimelineItem = _a => {
+ var {
+ prefixCls: customizePrefixCls,
+ className,
+ color = 'blue',
+ dot,
+ pending = false,
+ position /** Dead, but do not pass in
{
+ var {
+ prefixCls,
+ className,
+ pending = false,
+ children,
+ items,
+ rootClassName,
+ reverse = false,
+ direction,
+ hashId,
+ pendingDot,
+ mode = ''
+ } = _a,
+ restProps = TimelineItemList_rest(_a, ["prefixCls", "className", "pending", "children", "items", "rootClassName", "reverse", "direction", "hashId", "pendingDot", "mode"]);
+ const getPositionCls = (position, idx) => {
+ if (mode === 'alternate') {
+ if (position === 'right') return `${prefixCls}-item-right`;
+ if (position === 'left') return `${prefixCls}-item-left`;
+ return idx % 2 === 0 ? `${prefixCls}-item-left` : `${prefixCls}-item-right`;
+ }
+ if (mode === 'left') return `${prefixCls}-item-left`;
+ if (mode === 'right') return `${prefixCls}-item-right`;
+ if (position === 'right') return `${prefixCls}-item-right`;
+ return '';
+ };
+ const mergedItems = (0,toConsumableArray/* default */.Z)(items || []);
+ const pendingNode = typeof pending === 'boolean' ? null : pending;
+ if (pending) {
+ mergedItems.push({
+ pending: !!pending,
+ dot: pendingDot || /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, null),
+ children: pendingNode
+ });
+ }
+ if (reverse) {
+ mergedItems.reverse();
+ }
+ const itemsCount = mergedItems.length;
+ const lastCls = `${prefixCls}-item-last`;
+ const itemsList = mergedItems.filter(item => !!item).map((item, idx) => {
+ var _a;
+ const pendingClass = idx === itemsCount - 2 ? lastCls : '';
+ const readyClass = idx === itemsCount - 1 ? lastCls : '';
+ const {
+ className: itemClassName
+ } = item,
+ itemProps = TimelineItemList_rest(item, ["className"]);
+ return /*#__PURE__*/_react_17_0_2_react.createElement(timeline_TimelineItem, Object.assign({}, itemProps, {
+ className: _classnames_2_5_1_classnames_default()([itemClassName, !reverse && !!pending ? pendingClass : readyClass, getPositionCls((_a = item === null || item === void 0 ? void 0 : item.position) !== null && _a !== void 0 ? _a : '', idx)]),
+ /* eslint-disable-next-line react/no-array-index-key */
+ key: (item === null || item === void 0 ? void 0 : item.key) || idx
+ }));
+ });
+ const hasLabelItem = mergedItems.some(item => !!(item === null || item === void 0 ? void 0 : item.label));
+ const classString = _classnames_2_5_1_classnames_default()(prefixCls, {
+ [`${prefixCls}-pending`]: !!pending,
+ [`${prefixCls}-reverse`]: !!reverse,
+ [`${prefixCls}-${mode}`]: !!mode && !hasLabelItem,
+ [`${prefixCls}-label`]: hasLabelItem,
+ [`${prefixCls}-rtl`]: direction === 'rtl'
+ }, className, rootClassName, hashId);
+ return /*#__PURE__*/_react_17_0_2_react.createElement("ul", Object.assign({}, restProps, {
+ className: classString
+ }), itemsList);
+};
+/* harmony default export */ var timeline_TimelineItemList = (TimelineItemList);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
+var toArray = __webpack_require__(47783);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/useItems.js
+"use client";
+
+
+function useItems(items, children) {
+ if (items && Array.isArray(items)) return items;
+ return (0,toArray/* default */.Z)(children).map(ele => {
+ var _a, _b;
+ return Object.assign({
+ children: (_b = (_a = ele === null || ele === void 0 ? void 0 : ele.props) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : ''
+ }, ele.props);
+ });
+}
+/* harmony default export */ var timeline_useItems = (useItems);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
+var style = __webpack_require__(17313);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
+var genComponentStyleHook = __webpack_require__(83116);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
+var statistic = __webpack_require__(37613);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/style/index.js
+
+
+const genTimelineStyle = token => {
+ const {
+ componentCls
+ } = token;
+ return {
+ [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
+ margin: 0,
+ padding: 0,
+ listStyle: 'none',
+ [`${componentCls}-item`]: {
+ position: 'relative',
+ margin: 0,
+ paddingBottom: token.itemPaddingBottom,
+ fontSize: token.fontSize,
+ listStyle: 'none',
+ '&-tail': {
+ position: 'absolute',
+ insetBlockStart: token.itemHeadSize,
+ insetInlineStart: (token.itemHeadSize - token.tailWidth) / 2,
+ height: `calc(100% - ${token.itemHeadSize}px)`,
+ borderInlineStart: `${token.tailWidth}px ${token.lineType} ${token.tailColor}`
+ },
+ '&-pending': {
+ [`${componentCls}-item-head`]: {
+ fontSize: token.fontSizeSM,
+ backgroundColor: 'transparent'
+ },
+ [`${componentCls}-item-tail`]: {
+ display: 'none'
+ }
+ },
+ '&-head': {
+ position: 'absolute',
+ width: token.itemHeadSize,
+ height: token.itemHeadSize,
+ backgroundColor: token.dotBg,
+ border: `${token.dotBorderWidth}px ${token.lineType} transparent`,
+ borderRadius: '50%',
+ '&-blue': {
+ color: token.colorPrimary,
+ borderColor: token.colorPrimary
+ },
+ '&-red': {
+ color: token.colorError,
+ borderColor: token.colorError
+ },
+ '&-green': {
+ color: token.colorSuccess,
+ borderColor: token.colorSuccess
+ },
+ '&-gray': {
+ color: token.colorTextDisabled,
+ borderColor: token.colorTextDisabled
+ }
+ },
+ '&-head-custom': {
+ position: 'absolute',
+ insetBlockStart: token.itemHeadSize / 2,
+ insetInlineStart: token.itemHeadSize / 2,
+ width: 'auto',
+ height: 'auto',
+ marginBlockStart: 0,
+ paddingBlock: token.customHeadPaddingVertical,
+ lineHeight: 1,
+ textAlign: 'center',
+ border: 0,
+ borderRadius: 0,
+ transform: `translate(-50%, -50%)`
+ },
+ '&-content': {
+ position: 'relative',
+ insetBlockStart: -(token.fontSize * token.lineHeight - token.fontSize) + token.lineWidth,
+ marginInlineStart: token.margin + token.itemHeadSize,
+ marginInlineEnd: 0,
+ marginBlockStart: 0,
+ marginBlockEnd: 0,
+ wordBreak: 'break-word'
+ },
+ '&-last': {
+ [`> ${componentCls}-item-tail`]: {
+ display: 'none'
+ },
+ [`> ${componentCls}-item-content`]: {
+ minHeight: token.controlHeightLG * 1.2
+ }
+ }
+ },
+ [`&${componentCls}-alternate,
+ &${componentCls}-right,
+ &${componentCls}-label`]: {
+ [`${componentCls}-item`]: {
+ '&-tail, &-head, &-head-custom': {
+ insetInlineStart: '50%'
+ },
+ '&-head': {
+ marginInlineStart: `-${token.marginXXS}px`,
+ '&-custom': {
+ marginInlineStart: token.tailWidth / 2
+ }
+ },
+ '&-left': {
+ [`${componentCls}-item-content`]: {
+ insetInlineStart: `calc(50% - ${token.marginXXS}px)`,
+ width: `calc(50% - ${token.marginSM}px)`,
+ textAlign: 'start'
+ }
+ },
+ '&-right': {
+ [`${componentCls}-item-content`]: {
+ width: `calc(50% - ${token.marginSM}px)`,
+ margin: 0,
+ textAlign: 'end'
+ }
+ }
+ }
+ },
+ [`&${componentCls}-right`]: {
+ [`${componentCls}-item-right`]: {
+ [`${componentCls}-item-tail,
+ ${componentCls}-item-head,
+ ${componentCls}-item-head-custom`]: {
+ insetInlineStart: `calc(100% - ${(token.itemHeadSize + token.tailWidth) / 2}px)`
+ },
+ [`${componentCls}-item-content`]: {
+ width: `calc(100% - ${token.itemHeadSize + token.marginXS}px)`
+ }
+ }
+ },
+ [`&${componentCls}-pending
+ ${componentCls}-item-last
+ ${componentCls}-item-tail`]: {
+ display: 'block',
+ height: `calc(100% - ${token.margin}px)`,
+ borderInlineStart: `${token.tailWidth}px dotted ${token.tailColor}`
+ },
+ [`&${componentCls}-reverse
+ ${componentCls}-item-last
+ ${componentCls}-item-tail`]: {
+ display: 'none'
+ },
+ [`&${componentCls}-reverse ${componentCls}-item-pending`]: {
+ [`${componentCls}-item-tail`]: {
+ insetBlockStart: token.margin,
+ display: 'block',
+ height: `calc(100% - ${token.margin}px)`,
+ borderInlineStart: `${token.tailWidth}px dotted ${token.tailColor}`
+ },
+ [`${componentCls}-item-content`]: {
+ minHeight: token.controlHeightLG * 1.2
+ }
+ },
+ [`&${componentCls}-label`]: {
+ [`${componentCls}-item-label`]: {
+ position: 'absolute',
+ insetBlockStart: -(token.fontSize * token.lineHeight - token.fontSize) + token.tailWidth,
+ width: `calc(50% - ${token.marginSM}px)`,
+ textAlign: 'end'
+ },
+ [`${componentCls}-item-right`]: {
+ [`${componentCls}-item-label`]: {
+ insetInlineStart: `calc(50% + ${token.marginSM}px)`,
+ width: `calc(50% - ${token.marginSM}px)`,
+ textAlign: 'start'
+ }
+ }
+ },
+ // ====================== RTL =======================
+ '&-rtl': {
+ direction: 'rtl',
+ [`${componentCls}-item-head-custom`]: {
+ transform: `translate(50%, -50%)`
+ }
+ }
+ })
+ };
+};
+// ============================== Export ==============================
+/* harmony default export */ var timeline_style = ((0,genComponentStyleHook/* default */.Z)('Timeline', token => {
+ const timeLineToken = (0,statistic/* merge */.TS)(token, {
+ itemHeadSize: 10,
+ customHeadPaddingVertical: token.paddingXXS,
+ paddingInlineEnd: 2
+ });
+ return [genTimelineStyle(timeLineToken)];
+}, token => ({
+ tailColor: token.colorSplit,
+ tailWidth: token.lineWidthBold,
+ dotBorderWidth: token.wireframe ? token.lineWidthBold : token.lineWidth * 3,
+ dotBg: token.colorBgContainer,
+ itemPaddingBottom: token.padding * 1.25
+})));
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/Timeline.js
+"use client";
+
+var Timeline_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;
+};
+
+
+
+
+
+
+
+// CSSINJS
+
+const Timeline = props => {
+ const {
+ getPrefixCls,
+ direction,
+ timeline
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const {
+ prefixCls: customizePrefixCls,
+ children,
+ items,
+ className,
+ style
+ } = props,
+ restProps = Timeline_rest(props, ["prefixCls", "children", "items", "className", "style"]);
+ const prefixCls = getPrefixCls('timeline', customizePrefixCls);
+ // =================== Warning =====================
+ if (false) {}
+ // Style
+ const [wrapSSR, hashId] = timeline_style(prefixCls);
+ const mergedItems = timeline_useItems(items, children);
+ return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(timeline_TimelineItemList, Object.assign({}, restProps, {
+ className: _classnames_2_5_1_classnames_default()(timeline === null || timeline === void 0 ? void 0 : timeline.className, className),
+ style: Object.assign(Object.assign({}, timeline === null || timeline === void 0 ? void 0 : timeline.style), style),
+ prefixCls: prefixCls,
+ direction: direction,
+ items: mergedItems,
+ hashId: hashId
+ })));
+};
+Timeline.Item = timeline_TimelineItem;
+if (false) {}
+/* harmony default export */ var timeline_Timeline = (Timeline);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/index.js
+"use client";
+
+
+/* harmony default export */ var timeline = (timeline_Timeline);
+
+/***/ }),
+
+/***/ 24334:
+/*!***********************************************************!*\
+ !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
+ \***********************************************************/
+/***/ (function(module, exports, __webpack_require__) {
+
+var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
+ * base64.js
+ *
+ * Licensed under the BSD 3-Clause License.
+ * http://opensource.org/licenses/BSD-3-Clause
+ *
+ * References:
+ * http://en.wikipedia.org/wiki/Base64
+ */
+;(function (global, factory) {
+ true
+ ? module.exports = factory(global)
+ : 0
+}((
+ typeof self !== 'undefined' ? self
+ : typeof window !== 'undefined' ? window
+ : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
+: this
+), function(global) {
+ 'use strict';
+ // existing version for noConflict()
+ global = global || {};
+ var _Base64 = global.Base64;
+ var version = "2.6.4";
+ // constants
+ var b64chars
+ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
+ var b64tab = function(bin) {
+ var t = {};
+ for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
+ return t;
+ }(b64chars);
+ var fromCharCode = String.fromCharCode;
+ // encoder stuff
+ var cb_utob = function(c) {
+ if (c.length < 2) {
+ var cc = c.charCodeAt(0);
+ return cc < 0x80 ? c
+ : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
+ + fromCharCode(0x80 | (cc & 0x3f)))
+ : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ } else {
+ var cc = 0x10000
+ + (c.charCodeAt(0) - 0xD800) * 0x400
+ + (c.charCodeAt(1) - 0xDC00);
+ return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
+ + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ }
+ };
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
+ var utob = function(u) {
+ return u.replace(re_utob, cb_utob);
+ };
+ var cb_encode = function(ccc) {
+ var padlen = [0, 2, 1][ccc.length % 3],
+ ord = ccc.charCodeAt(0) << 16
+ | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
+ | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
+ chars = [
+ b64chars.charAt( ord >>> 18),
+ b64chars.charAt((ord >>> 12) & 63),
+ padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
+ padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
+ ];
+ return chars.join('');
+ };
+ var btoa = global.btoa && typeof global.btoa == 'function'
+ ? function(b){ return global.btoa(b) } : function(b) {
+ if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
+ 'The string contains invalid characters.'
+ );
+ return b.replace(/[\s\S]{1,3}/g, cb_encode);
+ };
+ var _encode = function(u) {
+ return btoa(utob(String(u)));
+ };
+ var mkUriSafe = function (b64) {
+ return b64.replace(/[+\/]/g, function(m0) {
+ return m0 == '+' ? '-' : '_';
+ }).replace(/=/g, '');
+ };
+ var encode = function(u, urisafe) {
+ return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
+ };
+ var encodeURI = function(u) { return encode(u, true) };
+ var fromUint8Array;
+ if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
+ // return btoa(fromCharCode.apply(null, a));
+ var b64 = '';
+ for (var i = 0, l = a.length; i < l; i += 3) {
+ var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
+ var ord = a0 << 16 | a1 << 8 | a2;
+ b64 += b64chars.charAt( ord >>> 18)
+ + b64chars.charAt((ord >>> 12) & 63)
+ + ( typeof a1 != 'undefined'
+ ? b64chars.charAt((ord >>> 6) & 63) : '=')
+ + ( typeof a2 != 'undefined'
+ ? b64chars.charAt( ord & 63) : '=');
+ }
+ return urisafe ? mkUriSafe(b64) : b64;
+ };
+ // decoder stuff
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
+ var cb_btou = function(cccc) {
+ switch(cccc.length) {
+ case 4:
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
+ | (0x3f & cccc.charCodeAt(3)),
+ offset = cp - 0x10000;
+ return (fromCharCode((offset >>> 10) + 0xD800)
+ + fromCharCode((offset & 0x3FF) + 0xDC00));
+ case 3:
+ return fromCharCode(
+ ((0x0f & cccc.charCodeAt(0)) << 12)
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
+ | (0x3f & cccc.charCodeAt(2))
+ );
+ default:
+ return fromCharCode(
+ ((0x1f & cccc.charCodeAt(0)) << 6)
+ | (0x3f & cccc.charCodeAt(1))
+ );
+ }
+ };
+ var btou = function(b) {
+ return b.replace(re_btou, cb_btou);
+ };
+ var cb_decode = function(cccc) {
+ var len = cccc.length,
+ padlen = len % 4,
+ n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
+ | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
+ | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
+ | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
+ chars = [
+ fromCharCode( n >>> 16),
+ fromCharCode((n >>> 8) & 0xff),
+ fromCharCode( n & 0xff)
+ ];
+ chars.length -= [0, 0, 2, 1][padlen];
+ return chars.join('');
+ };
+ var _atob = global.atob && typeof global.atob == 'function'
+ ? function(a){ return global.atob(a) } : function(a){
+ return a.replace(/\S{1,4}/g, cb_decode);
+ };
+ var atob = function(a) {
+ return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
+ };
+ var _decode = function(a) { return btou(_atob(a)) };
+ var _fromURI = function(a) {
+ return String(a).replace(/[-_]/g, function(m0) {
+ return m0 == '-' ? '+' : '/'
+ }).replace(/[^A-Za-z0-9\+\/]/g, '');
+ };
+ var decode = function(a){
+ return _decode(_fromURI(a));
+ };
+ var toUint8Array;
+ if (global.Uint8Array) toUint8Array = function(a) {
+ return Uint8Array.from(atob(_fromURI(a)), function(c) {
+ return c.charCodeAt(0);
+ });
+ };
+ var noConflict = function() {
+ var Base64 = global.Base64;
+ global.Base64 = _Base64;
+ return Base64;
+ };
+ // export Base64
+ global.Base64 = {
+ VERSION: version,
+ atob: atob,
+ btoa: btoa,
+ fromBase64: decode,
+ toBase64: encode,
+ utob: utob,
+ encode: encode,
+ encodeURI: encodeURI,
+ btou: btou,
+ decode: decode,
+ noConflict: noConflict,
+ fromUint8Array: fromUint8Array,
+ toUint8Array: toUint8Array
+ };
+ // if ES5 is available, make Base64.extendString() available
+ if (typeof Object.defineProperty === 'function') {
+ var noEnum = function(v){
+ return {value:v,enumerable:false,writable:true,configurable:true};
+ };
+ global.Base64.extendString = function () {
+ Object.defineProperty(
+ String.prototype, 'fromBase64', noEnum(function () {
+ return decode(this)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64', noEnum(function (urisafe) {
+ return encode(this, urisafe)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64URI', noEnum(function () {
+ return encode(this, true)
+ }));
+ };
+ }
+ //
+ // export Base64 to the namespace
+ //
+ if (global['Meteor']) { // Meteor.js
+ Base64 = global.Base64;
+ }
+ // module.exports and AMD are mutually exclusive.
+ // module.exports has precedence.
+ if ( true && module.exports) {
+ module.exports.Base64 = global.Base64;
+ }
+ else if (true) {
+ // AMD. Register as an anonymous module.
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ }
+ // that's it!
+ return {Base64: global.Base64}
+}));
+
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/2805.d0b5f0f9.async.js b/2805.d0b5f0f9.async.js
deleted file mode 100644
index d474eba312..0000000000
--- a/2805.d0b5f0f9.async.js
+++ /dev/null
@@ -1,882 +0,0 @@
-"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[2805],{
-
-/***/ 27666:
-/*!****************************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js ***!
- \****************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 12101);
-/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 91659);
-
-
-function throttleByAnimationFrame(fn) {
- let requestId;
- const later = args => () => {
- requestId = null;
- fn.apply(void 0, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(args));
- };
- const throttled = function () {
- if (requestId == null) {
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
- requestId = (0,rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(later(args));
- }
- };
- throttled.cancel = () => {
- rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.cancel(requestId);
- requestId = null;
- };
- return throttled;
-}
-/* harmony default export */ __webpack_exports__.Z = (throttleByAnimationFrame);
-
-/***/ }),
-
-/***/ 81228:
-/*!*********************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/affix/index.js + 2 modules ***!
- \*********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ affix; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/classCallCheck.js
-var classCallCheck = __webpack_require__(70057);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createClass.js
-var createClass = __webpack_require__(3643);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/inherits.js
-var inherits = __webpack_require__(61471);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/createSuper.js + 1 modules
-var createSuper = __webpack_require__(14385);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
-var _classnames_2_5_1_classnames = __webpack_require__(92310);
-var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_rc-resize-observer@1.4.0@rc-resize-observer/es/index.js + 4 modules
-var es = __webpack_require__(28647);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/omit.js
-var omit = __webpack_require__(62805);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js
-var throttleByAnimationFrame = __webpack_require__(27666);
-// 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/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/affix/style/index.js
-
-// ============================== Shared ==============================
-const genSharedAffixStyle = token => {
- const {
- componentCls
- } = token;
- return {
- [componentCls]: {
- position: 'fixed',
- zIndex: token.zIndexPopup
- }
- };
-};
-// ============================== Export ==============================
-/* harmony default export */ var style = ((0,genComponentStyleHook/* default */.Z)('Affix', token => {
- const affixToken = (0,statistic/* merge */.TS)(token, {
- zIndexPopup: token.zIndexBase + 10
- });
- return [genSharedAffixStyle(affixToken)];
-}));
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/utils.js
-function getTargetRect(target) {
- return target !== window ? target.getBoundingClientRect() : {
- top: 0,
- bottom: window.innerHeight
- };
-}
-function getFixedTop(placeholderRect, targetRect, offsetTop) {
- if (offsetTop !== undefined && targetRect.top > placeholderRect.top - offsetTop) {
- return offsetTop + targetRect.top;
- }
- return undefined;
-}
-function getFixedBottom(placeholderRect, targetRect, offsetBottom) {
- if (offsetBottom !== undefined && targetRect.bottom < placeholderRect.bottom + offsetBottom) {
- const targetBottomOffset = window.innerHeight - targetRect.bottom;
- return offsetBottom + targetBottomOffset;
- }
- return undefined;
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/affix/index.js
-"use client";
-
-
-
-
-
-
-
-
-
-
-
-
-
-const TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
-function getDefaultTarget() {
- return typeof window !== 'undefined' ? window : null;
-}
-var AffixStatus;
-(function (AffixStatus) {
- AffixStatus[AffixStatus["None"] = 0] = "None";
- AffixStatus[AffixStatus["Prepare"] = 1] = "Prepare";
-})(AffixStatus || (AffixStatus = {}));
-let InternalAffix = /*#__PURE__*/function (_React$Component) {
- (0,inherits/* default */.Z)(InternalAffix, _React$Component);
- var _super = (0,createSuper/* default */.Z)(InternalAffix);
- function InternalAffix() {
- var _this;
- (0,classCallCheck/* default */.Z)(this, InternalAffix);
- _this = _super.apply(this, arguments);
- _this.state = {
- status: AffixStatus.None,
- lastAffix: false,
- prevTarget: null
- };
- _this.placeholderNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
- _this.fixedNodeRef = /*#__PURE__*/(0,_react_17_0_2_react.createRef)();
- _this.addListeners = () => {
- const targetFunc = _this.getTargetFunc();
- const target = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
- const {
- prevTarget
- } = _this.state;
- if (prevTarget !== target) {
- TRIGGER_EVENTS.forEach(eventName => {
- prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
- target === null || target === void 0 ? void 0 : target.addEventListener(eventName, _this.lazyUpdatePosition);
- });
- _this.updatePosition();
- _this.setState({
- prevTarget: target
- });
- }
- };
- _this.removeListeners = () => {
- if (_this.timer) {
- clearTimeout(_this.timer);
- _this.timer = null;
- }
- const {
- prevTarget
- } = _this.state;
- const targetFunc = _this.getTargetFunc();
- const newTarget = targetFunc === null || targetFunc === void 0 ? void 0 : targetFunc();
- TRIGGER_EVENTS.forEach(eventName => {
- newTarget === null || newTarget === void 0 ? void 0 : newTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
- prevTarget === null || prevTarget === void 0 ? void 0 : prevTarget.removeEventListener(eventName, _this.lazyUpdatePosition);
- });
- _this.updatePosition.cancel();
- // https://github.com/ant-design/ant-design/issues/22683
- _this.lazyUpdatePosition.cancel();
- };
- _this.getOffsetTop = () => {
- const {
- offsetBottom,
- offsetTop
- } = _this.props;
- return offsetBottom === undefined && offsetTop === undefined ? 0 : offsetTop;
- };
- _this.getOffsetBottom = () => _this.props.offsetBottom;
- // =================== Measure ===================
- _this.measure = () => {
- const {
- status,
- lastAffix
- } = _this.state;
- const {
- onChange
- } = _this.props;
- const targetFunc = _this.getTargetFunc();
- if (status !== AffixStatus.Prepare || !_this.fixedNodeRef.current || !_this.placeholderNodeRef.current || !targetFunc) {
- return;
- }
- const offsetTop = _this.getOffsetTop();
- const offsetBottom = _this.getOffsetBottom();
- const targetNode = targetFunc();
- if (targetNode) {
- const newState = {
- status: AffixStatus.None
- };
- const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
- if (placeholderRect.top === 0 && placeholderRect.left === 0 && placeholderRect.width === 0 && placeholderRect.height === 0) {
- return;
- }
- const targetRect = getTargetRect(targetNode);
- const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
- const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
- if (fixedTop !== undefined) {
- newState.affixStyle = {
- position: 'fixed',
- top: fixedTop,
- width: placeholderRect.width,
- height: placeholderRect.height
- };
- newState.placeholderStyle = {
- width: placeholderRect.width,
- height: placeholderRect.height
- };
- } else if (fixedBottom !== undefined) {
- newState.affixStyle = {
- position: 'fixed',
- bottom: fixedBottom,
- width: placeholderRect.width,
- height: placeholderRect.height
- };
- newState.placeholderStyle = {
- width: placeholderRect.width,
- height: placeholderRect.height
- };
- }
- newState.lastAffix = !!newState.affixStyle;
- if (onChange && lastAffix !== newState.lastAffix) {
- onChange(newState.lastAffix);
- }
- _this.setState(newState);
- }
- };
- _this.prepareMeasure = () => {
- // event param is used before. Keep compatible ts define here.
- _this.setState({
- status: AffixStatus.Prepare,
- affixStyle: undefined,
- placeholderStyle: undefined
- });
- // Test if `updatePosition` called
- if (false) {}
- };
- _this.updatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
- _this.prepareMeasure();
- });
- _this.lazyUpdatePosition = (0,throttleByAnimationFrame/* default */.Z)(() => {
- const targetFunc = _this.getTargetFunc();
- const {
- affixStyle
- } = _this.state;
- // Check position change before measure to make Safari smooth
- if (targetFunc && affixStyle) {
- const offsetTop = _this.getOffsetTop();
- const offsetBottom = _this.getOffsetBottom();
- const targetNode = targetFunc();
- if (targetNode && _this.placeholderNodeRef.current) {
- const targetRect = getTargetRect(targetNode);
- const placeholderRect = getTargetRect(_this.placeholderNodeRef.current);
- const fixedTop = getFixedTop(placeholderRect, targetRect, offsetTop);
- const fixedBottom = getFixedBottom(placeholderRect, targetRect, offsetBottom);
- if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
- return;
- }
- }
- }
- // Directly call prepare measure since it's already throttled.
- _this.prepareMeasure();
- });
- return _this;
- }
- (0,createClass/* default */.Z)(InternalAffix, [{
- key: "getTargetFunc",
- value: function getTargetFunc() {
- const {
- getTargetContainer
- } = this.context;
- const {
- target
- } = this.props;
- if (target !== undefined) {
- return target;
- }
- return getTargetContainer !== null && getTargetContainer !== void 0 ? getTargetContainer : getDefaultTarget;
- }
- // Event handler
- }, {
- key: "componentDidMount",
- value: function componentDidMount() {
- // [Legacy] Wait for parent component ref has its value.
- // We should use target as directly element instead of function which makes element check hard.
- this.timer = setTimeout(this.addListeners);
- }
- }, {
- key: "componentDidUpdate",
- value: function componentDidUpdate(prevProps) {
- this.addListeners();
- if (prevProps.offsetTop !== this.props.offsetTop || prevProps.offsetBottom !== this.props.offsetBottom) {
- this.updatePosition();
- }
- this.measure();
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- this.removeListeners();
- }
- // =================== Render ===================
- }, {
- key: "render",
- value: function render() {
- const {
- affixStyle,
- placeholderStyle
- } = this.state;
- const {
- affixPrefixCls,
- rootClassName,
- children
- } = this.props;
- const className = _classnames_2_5_1_classnames_default()(affixStyle && rootClassName, {
- [affixPrefixCls]: !!affixStyle
- });
- let props = (0,omit/* default */.Z)(this.props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target', 'onChange', 'affixPrefixCls', 'rootClassName']);
- // Omit this since `onTestUpdatePosition` only works on test.
- if (false) {}
- return /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
- onResize: this.updatePosition
- }, /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({}, props, {
- ref: this.placeholderNodeRef
- }), affixStyle && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- style: placeholderStyle,
- "aria-hidden": "true"
- }), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- className: className,
- ref: this.fixedNodeRef,
- style: affixStyle
- }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, {
- onResize: this.updatePosition
- }, children))));
- }
- }]);
- return InternalAffix;
-}(_react_17_0_2_react.Component);
-InternalAffix.contextType = context/* ConfigContext */.E_;
-const Affix = /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)((props, ref) => {
- const {
- prefixCls: customizePrefixCls,
- rootClassName
- } = props;
- const {
- getPrefixCls
- } = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
- const affixPrefixCls = getPrefixCls('affix', customizePrefixCls);
- const [wrapSSR, hashId] = style(affixPrefixCls);
- const AffixProps = Object.assign(Object.assign({}, props), {
- affixPrefixCls,
- rootClassName: _classnames_2_5_1_classnames_default()(rootClassName, hashId)
- });
- return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(InternalAffix, Object.assign({}, AffixProps, {
- ref: ref
- })));
-});
-if (false) {}
-/* harmony default export */ var affix = (Affix);
-
-/***/ }),
-
-/***/ 66104:
-/*!**************************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
- \**************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ breadcrumb; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
-var _classnames_2_5_1_classnames = __webpack_require__(92310);
-var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
-var toArray = __webpack_require__(47783);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/pickAttrs.js
-var pickAttrs = __webpack_require__(90339);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
-var reactNode = __webpack_require__(92343);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
-var context = __webpack_require__(36355);
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
-var DownOutlined = __webpack_require__(8876);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
-var dropdown = __webpack_require__(91857);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
-"use client";
-
-
-
-const BreadcrumbSeparator = _ref => {
- let {
- children
- } = _ref;
- const {
- getPrefixCls
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const prefixCls = getPrefixCls('breadcrumb');
- return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
- className: `${prefixCls}-separator`,
- "aria-hidden": "true"
- }, children === '' ? children : children || '/');
-};
-BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
-/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
-"use client";
-
-var __rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-function getBreadcrumbName(route, params) {
- if (route.title === undefined || route.title === null) {
- return null;
- }
- const paramsKeys = Object.keys(params).join('|');
- return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
-}
-function renderItem(prefixCls, item, children, href) {
- if (children === null || children === undefined) {
- return null;
- }
- const {
- className,
- onClick
- } = item,
- restItem = __rest(item, ["className", "onClick"]);
- const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
- data: true,
- aria: true
- })), {
- onClick
- });
- if (href !== undefined) {
- return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
- className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
- href: href
- }), children);
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
- className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
- }), children);
-}
-function useItemRender(prefixCls, itemRender) {
- const mergedItemRender = (item, params, routes, path, href) => {
- if (itemRender) {
- return itemRender(item, params, routes, path);
- }
- const name = getBreadcrumbName(item, params);
- return renderItem(prefixCls, item, name, href);
- };
- return mergedItemRender;
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
-"use client";
-
-var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-
-
-const InternalBreadcrumbItem = props => {
- const {
- prefixCls,
- separator = '/',
- children,
- menu,
- overlay,
- dropdownProps,
- href
- } = props;
- // Warning for deprecated usage
- if (false) {}
- /** If overlay is have Wrap a Dropdown */
- const renderBreadcrumbNode = breadcrumbItem => {
- if (menu || overlay) {
- const mergeDropDownProps = Object.assign({}, dropdownProps);
- if (menu) {
- const _a = menu || {},
- {
- items
- } = _a,
- menuProps = BreadcrumbItem_rest(_a, ["items"]);
- mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
- items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
- var {
- key,
- title,
- label,
- path
- } = _a,
- itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
- let mergedLabel = label !== null && label !== void 0 ? label : title;
- if (path) {
- mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
- href: `${href}${path}`
- }, mergedLabel);
- }
- return Object.assign(Object.assign({}, itemProps), {
- key: key !== null && key !== void 0 ? key : index,
- label: mergedLabel
- });
- })
- });
- } else if (overlay) {
- mergeDropDownProps.overlay = overlay;
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
- placement: "bottom"
- }, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
- className: `${prefixCls}-overlay-link`
- }, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
- }
- return breadcrumbItem;
- };
- // wrap to dropDown
- const link = renderBreadcrumbNode(children);
- if (link !== undefined && link !== null) {
- return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
- }
- return null;
-};
-const BreadcrumbItem = props => {
- const {
- prefixCls: customizePrefixCls,
- children,
- href
- } = props,
- restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
- const {
- getPrefixCls
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
- prefixCls: prefixCls
- }), renderItem(prefixCls, restProps, children, href));
-};
-BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
-/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
-var style = __webpack_require__(17313);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(83116);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(37613);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
-
-
-const genBreadcrumbStyle = token => {
- const {
- componentCls,
- iconCls
- } = token;
- return {
- [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
- color: token.itemColor,
- fontSize: token.fontSize,
- [iconCls]: {
- fontSize: token.iconFontSize
- },
- ol: {
- display: 'flex',
- flexWrap: 'wrap',
- margin: 0,
- padding: 0,
- listStyle: 'none'
- },
- a: Object.assign({
- color: token.linkColor,
- transition: `color ${token.motionDurationMid}`,
- padding: `0 ${token.paddingXXS}px`,
- borderRadius: token.borderRadiusSM,
- height: token.lineHeight * token.fontSize,
- display: 'inline-block',
- marginInline: -token.marginXXS,
- '&:hover': {
- color: token.linkHoverColor,
- backgroundColor: token.colorBgTextHover
- }
- }, (0,style/* genFocusStyle */.Qy)(token)),
- [`li:last-child`]: {
- color: token.lastItemColor
- },
- [`${componentCls}-separator`]: {
- marginInline: token.separatorMargin,
- color: token.separatorColor
- },
- [`${componentCls}-link`]: {
- [`
- > ${iconCls} + span,
- > ${iconCls} + a
- `]: {
- marginInlineStart: token.marginXXS
- }
- },
- [`${componentCls}-overlay-link`]: {
- borderRadius: token.borderRadiusSM,
- height: token.lineHeight * token.fontSize,
- display: 'inline-block',
- padding: `0 ${token.paddingXXS}px`,
- marginInline: -token.marginXXS,
- [`> ${iconCls}`]: {
- marginInlineStart: token.marginXXS,
- fontSize: token.fontSizeIcon
- },
- '&:hover': {
- color: token.linkHoverColor,
- backgroundColor: token.colorBgTextHover,
- a: {
- color: token.linkHoverColor
- }
- },
- a: {
- '&:hover': {
- backgroundColor: 'transparent'
- }
- }
- },
- // rtl style
- [`&${token.componentCls}-rtl`]: {
- direction: 'rtl'
- }
- })
- };
-};
-// ============================== Export ==============================
-/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
- const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
- return [genBreadcrumbStyle(BreadcrumbToken)];
-}, token => ({
- itemColor: token.colorTextDescription,
- lastItemColor: token.colorText,
- iconFontSize: token.fontSize,
- linkColor: token.colorTextDescription,
- linkHoverColor: token.colorText,
- separatorColor: token.colorTextDescription,
- separatorMargin: token.marginXS
-})));
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
-var useItems_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-function route2item(route) {
- const {
- breadcrumbName,
- children
- } = route,
- rest = useItems_rest(route, ["breadcrumbName", "children"]);
- const clone = Object.assign({
- title: breadcrumbName
- }, rest);
- if (children) {
- clone.menu = {
- items: children.map(_a => {
- var {
- breadcrumbName: itemBreadcrumbName
- } = _a,
- itemProps = useItems_rest(_a, ["breadcrumbName"]);
- return Object.assign(Object.assign({}, itemProps), {
- title: itemBreadcrumbName
- });
- })
- };
- }
- return clone;
-}
-function useItems(items, routes) {
- return (0,_react_17_0_2_react.useMemo)(() => {
- if (items) {
- return items;
- }
- if (routes) {
- return routes.map(route2item);
- }
- return null;
- }, [items, routes]);
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
-"use client";
-
-var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-
-
-
-
-
-
-
-const getPath = (params, path) => {
- if (path === undefined) {
- return path;
- }
- let mergedPath = (path || '').replace(/^\//, '');
- Object.keys(params).forEach(key => {
- mergedPath = mergedPath.replace(`:${key}`, params[key]);
- });
- return mergedPath;
-};
-const Breadcrumb = props => {
- const {
- prefixCls: customizePrefixCls,
- separator = '/',
- style,
- className,
- rootClassName,
- routes: legacyRoutes,
- items,
- children,
- itemRender,
- params = {}
- } = props,
- restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
- const {
- getPrefixCls,
- direction,
- breadcrumb
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- let crumbs;
- const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
- const mergedItems = useItems(items, legacyRoutes);
- if (false) {}
- const mergedItemRender = useItemRender(prefixCls, itemRender);
- if (mergedItems && mergedItems.length > 0) {
- // generated by route
- const paths = [];
- const itemRenderRoutes = items || legacyRoutes;
- crumbs = mergedItems.map((item, index) => {
- const {
- path,
- key,
- type,
- menu,
- overlay,
- onClick,
- className: itemClassName,
- separator: itemSeparator,
- dropdownProps
- } = item;
- const mergedPath = getPath(params, path);
- if (mergedPath !== undefined) {
- paths.push(mergedPath);
- }
- const mergedKey = key !== null && key !== void 0 ? key : index;
- if (type === 'separator') {
- return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
- key: mergedKey
- }, itemSeparator);
- }
- const itemProps = {};
- const isLastItem = index === mergedItems.length - 1;
- if (menu) {
- itemProps.menu = menu;
- } else if (overlay) {
- itemProps.overlay = overlay;
- }
- let {
- href
- } = item;
- if (paths.length && mergedPath !== undefined) {
- href = `#/${paths.join('/')}`;
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
- key: mergedKey
- }, itemProps, (0,pickAttrs/* default */.Z)(item, {
- data: true,
- aria: true
- }), {
- className: itemClassName,
- dropdownProps: dropdownProps,
- href: href,
- separator: isLastItem ? '' : separator,
- onClick: onClick,
- prefixCls: prefixCls
- }), mergedItemRender(item, params, itemRenderRoutes, paths, href));
- });
- } else if (children) {
- const childrenLength = (0,toArray/* default */.Z)(children).length;
- crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
- if (!element) {
- return element;
- }
- // =================== Warning =====================
- if (false) {}
- false ? 0 : void 0;
- const isLastItem = index === childrenLength - 1;
- return (0,reactNode/* cloneElement */.Tm)(element, {
- separator: isLastItem ? '' : separator,
- key: index
- });
- });
- }
- const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
- [`${prefixCls}-rtl`]: direction === 'rtl'
- }, className, rootClassName, hashId);
- const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
- return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
- className: breadcrumbClassName,
- style: mergedStyle
- }, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
-};
-Breadcrumb.Item = breadcrumb_BreadcrumbItem;
-Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
-if (false) {}
-/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
-"use client";
-
-
-/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
-
-/***/ })
-
-}]);
\ No newline at end of file
diff --git a/20459.e4c79204.async.js b/2934.57d53700.async.js
similarity index 56%
rename from 20459.e4c79204.async.js
rename to 2934.57d53700.async.js
index 4194a37734..58b7316819 100644
--- a/20459.e4c79204.async.js
+++ b/2934.57d53700.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[20459],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[2934],{
/***/ 77578:
/*!**********************************************************************!*\
@@ -364,89 +364,156 @@ const genWireframeStyle = token => {
/***/ }),
-/***/ 10777:
-/*!************************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/timeline/index.js + 5 modules ***!
- \************************************************************************/
+/***/ 12563:
+/*!*******************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/tag/index.js + 5 modules ***!
+ \*******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ timeline; }
+ Z: function() { return /* binding */ tag; }
});
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
+var CloseOutlined = __webpack_require__(79419);
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/colors.js
+var colors = __webpack_require__(36785);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useClosable.js
+var useClosable = __webpack_require__(47729);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/wave/index.js + 4 modules
+var wave = __webpack_require__(14088);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/TimelineItem.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;
-};
-
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
+var style = __webpack_require__(17313);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
+var statistic = __webpack_require__(37613);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
+var genComponentStyleHook = __webpack_require__(83116);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/index.js
-const TimelineItem = _a => {
- var {
- prefixCls: customizePrefixCls,
- className,
- color = 'blue',
- dot,
- pending = false,
- position /** Dead, but do not pass in {
const {
- getPrefixCls
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const prefixCls = getPrefixCls('timeline', customizePrefixCls);
- const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, {
- [`${prefixCls}-item-pending`]: pending
- }, className);
- const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;
- const dotClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item-head`, {
- [`${prefixCls}-item-head-custom`]: !!dot,
- [`${prefixCls}-item-head-${color}`]: !customColor
- });
- return /*#__PURE__*/_react_17_0_2_react.createElement("li", Object.assign({}, restProps, {
- className: itemClassName
- }), label && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- className: `${prefixCls}-item-label`
- }, label), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- className: `${prefixCls}-item-tail`
- }), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- className: dotClassName,
- style: {
- borderColor: customColor,
- color: customColor
+ paddingXXS,
+ lineWidth,
+ tagPaddingHorizontal,
+ componentCls
+ } = token;
+ const paddingInline = tagPaddingHorizontal - lineWidth;
+ const iconMarginInline = paddingXXS - lineWidth;
+ return {
+ // Result
+ [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
+ display: 'inline-block',
+ height: 'auto',
+ marginInlineEnd: token.marginXS,
+ paddingInline,
+ fontSize: token.tagFontSize,
+ lineHeight: token.tagLineHeight,
+ whiteSpace: 'nowrap',
+ background: token.defaultBg,
+ border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
+ borderRadius: token.borderRadiusSM,
+ opacity: 1,
+ transition: `all ${token.motionDurationMid}`,
+ textAlign: 'start',
+ position: 'relative',
+ // RTL
+ [`&${componentCls}-rtl`]: {
+ direction: 'rtl'
+ },
+ '&, a, a:hover': {
+ color: token.defaultColor
+ },
+ [`${componentCls}-close-icon`]: {
+ marginInlineStart: iconMarginInline,
+ color: token.colorTextDescription,
+ fontSize: token.tagIconSize,
+ cursor: 'pointer',
+ transition: `all ${token.motionDurationMid}`,
+ '&:hover': {
+ color: token.colorTextHeading
+ }
+ },
+ [`&${componentCls}-has-color`]: {
+ borderColor: 'transparent',
+ [`&, a, a:hover, ${token.iconCls}-close, ${token.iconCls}-close:hover`]: {
+ color: token.colorTextLightSolid
+ }
+ },
+ [`&-checkable`]: {
+ backgroundColor: 'transparent',
+ borderColor: 'transparent',
+ cursor: 'pointer',
+ [`&:not(${componentCls}-checkable-checked):hover`]: {
+ color: token.colorPrimary,
+ backgroundColor: token.colorFillSecondary
+ },
+ '&:active, &-checked': {
+ color: token.colorTextLightSolid
+ },
+ '&-checked': {
+ backgroundColor: token.colorPrimary,
+ '&:hover': {
+ backgroundColor: token.colorPrimaryHover
+ }
+ },
+ '&:active': {
+ backgroundColor: token.colorPrimaryActive
+ }
+ },
+ [`&-hidden`]: {
+ display: 'none'
+ },
+ // To ensure that a space will be placed between character and `Icon`.
+ [`> ${token.iconCls} + span, > span + ${token.iconCls}`]: {
+ marginInlineStart: paddingInline
+ }
+ }),
+ [`${componentCls}-borderless`]: {
+ borderColor: 'transparent',
+ background: token.tagBorderlessBg
}
- }, dot), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- className: `${prefixCls}-item-content`
- }, children));
+ };
};
-/* harmony default export */ var timeline_TimelineItem = (TimelineItem);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
-var toConsumableArray = __webpack_require__(12101);
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
-var LoadingOutlined = __webpack_require__(93739);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/TimelineItemList.js
+// ============================== Export ==============================
+const prepareToken = token => {
+ const {
+ lineWidth,
+ fontSizeIcon
+ } = token;
+ const tagFontSize = token.fontSizeSM;
+ const tagLineHeight = `${token.lineHeightSM * tagFontSize}px`;
+ const tagToken = (0,statistic/* merge */.TS)(token, {
+ tagFontSize,
+ tagLineHeight,
+ tagIconSize: fontSizeIcon - 2 * lineWidth,
+ tagPaddingHorizontal: 8,
+ tagBorderlessBg: token.colorFillTertiary
+ });
+ return tagToken;
+};
+const prepareCommonToken = token => ({
+ defaultBg: token.colorFillQuaternary,
+ defaultColor: token.colorText
+});
+/* harmony default export */ var tag_style = ((0,genComponentStyleHook/* default */.Z)('Tag', token => {
+ const tagToken = prepareToken(token);
+ return genBaseStyle(tagToken);
+}, prepareCommonToken));
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/CheckableTag.js
"use client";
-
-var TimelineItemList_rest = undefined && undefined.__rest || function (s, e) {
+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++) {
@@ -458,293 +525,107 @@ var TimelineItemList_rest = undefined && undefined.__rest || function (s, e) {
-const TimelineItemList = _a => {
- var {
- prefixCls,
+const CheckableTag = props => {
+ const {
+ prefixCls: customizePrefixCls,
+ style,
className,
- pending = false,
- children,
- items,
- rootClassName,
- reverse = false,
- direction,
- hashId,
- pendingDot,
- mode = ''
- } = _a,
- restProps = TimelineItemList_rest(_a, ["prefixCls", "className", "pending", "children", "items", "rootClassName", "reverse", "direction", "hashId", "pendingDot", "mode"]);
- const getPositionCls = (position, idx) => {
- if (mode === 'alternate') {
- if (position === 'right') return `${prefixCls}-item-right`;
- if (position === 'left') return `${prefixCls}-item-left`;
- return idx % 2 === 0 ? `${prefixCls}-item-left` : `${prefixCls}-item-right`;
- }
- if (mode === 'left') return `${prefixCls}-item-left`;
- if (mode === 'right') return `${prefixCls}-item-right`;
- if (position === 'right') return `${prefixCls}-item-right`;
- return '';
+ checked,
+ onChange,
+ onClick
+ } = props,
+ restProps = __rest(props, ["prefixCls", "style", "className", "checked", "onChange", "onClick"]);
+ const {
+ getPrefixCls,
+ tag
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const handleClick = e => {
+ onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
};
- const mergedItems = (0,toConsumableArray/* default */.Z)(items || []);
- const pendingNode = typeof pending === 'boolean' ? null : pending;
- if (pending) {
- mergedItems.push({
- pending: !!pending,
- dot: pendingDot || /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, null),
- children: pendingNode
- });
- }
- if (reverse) {
- mergedItems.reverse();
- }
- const itemsCount = mergedItems.length;
- const lastCls = `${prefixCls}-item-last`;
- const itemsList = mergedItems.filter(item => !!item).map((item, idx) => {
- var _a;
- const pendingClass = idx === itemsCount - 2 ? lastCls : '';
- const readyClass = idx === itemsCount - 1 ? lastCls : '';
- const {
- className: itemClassName
- } = item,
- itemProps = TimelineItemList_rest(item, ["className"]);
- return /*#__PURE__*/_react_17_0_2_react.createElement(timeline_TimelineItem, Object.assign({}, itemProps, {
- className: _classnames_2_5_1_classnames_default()([itemClassName, !reverse && !!pending ? pendingClass : readyClass, getPositionCls((_a = item === null || item === void 0 ? void 0 : item.position) !== null && _a !== void 0 ? _a : '', idx)]),
- /* eslint-disable-next-line react/no-array-index-key */
- key: (item === null || item === void 0 ? void 0 : item.key) || idx
- }));
- });
- const hasLabelItem = mergedItems.some(item => !!(item === null || item === void 0 ? void 0 : item.label));
- const classString = _classnames_2_5_1_classnames_default()(prefixCls, {
- [`${prefixCls}-pending`]: !!pending,
- [`${prefixCls}-reverse`]: !!reverse,
- [`${prefixCls}-${mode}`]: !!mode && !hasLabelItem,
- [`${prefixCls}-label`]: hasLabelItem,
- [`${prefixCls}-rtl`]: direction === 'rtl'
- }, className, rootClassName, hashId);
- return /*#__PURE__*/_react_17_0_2_react.createElement("ul", Object.assign({}, restProps, {
- className: classString
- }), itemsList);
+ const prefixCls = getPrefixCls('tag', customizePrefixCls);
+ // Style
+ const [wrapSSR, hashId] = tag_style(prefixCls);
+ const cls = _classnames_2_5_1_classnames_default()(prefixCls, `${prefixCls}-checkable`, {
+ [`${prefixCls}-checkable-checked`]: checked
+ }, tag === null || tag === void 0 ? void 0 : tag.className, className, hashId);
+ return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, restProps, {
+ style: Object.assign(Object.assign({}, style), tag === null || tag === void 0 ? void 0 : tag.style),
+ className: cls,
+ onClick: handleClick
+ })));
};
-/* harmony default export */ var timeline_TimelineItemList = (TimelineItemList);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
-var toArray = __webpack_require__(47783);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/useItems.js
-"use client";
+/* harmony default export */ var tag_CheckableTag = (CheckableTag);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genPresetColor.js
+var genPresetColor = __webpack_require__(45157);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/presetCmp.js
+// Style as status component
-function useItems(items, children) {
- if (items && Array.isArray(items)) return items;
- return (0,toArray/* default */.Z)(children).map(ele => {
- var _a, _b;
- return Object.assign({
- children: (_b = (_a = ele === null || ele === void 0 ? void 0 : ele.props) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : ''
- }, ele.props);
- });
+// ============================== Preset ==============================
+const genPresetStyle = token => (0,genPresetColor/* default */.Z)(token, (colorKey, _ref) => {
+ let {
+ textColor,
+ lightBorderColor,
+ lightColor,
+ darkColor
+ } = _ref;
+ return {
+ [`${token.componentCls}-${colorKey}`]: {
+ color: textColor,
+ background: lightColor,
+ borderColor: lightBorderColor,
+ // Inverse color
+ '&-inverse': {
+ color: token.colorTextLightSolid,
+ background: darkColor,
+ borderColor: darkColor
+ },
+ [`&${token.componentCls}-borderless`]: {
+ borderColor: 'transparent'
+ }
+ }
+ };
+});
+// ============================== Export ==============================
+/* harmony default export */ var presetCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'preset'], token => {
+ const tagToken = prepareToken(token);
+ return genPresetStyle(tagToken);
+}, prepareCommonToken));
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/capitalize.js
+function capitalize(str) {
+ if (typeof str !== 'string') {
+ return str;
+ }
+ const ret = str.charAt(0).toUpperCase() + str.slice(1);
+ return ret;
}
-/* harmony default export */ var timeline_useItems = (useItems);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
-var style = __webpack_require__(17313);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(83116);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(37613);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/style/index.js
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/style/statusCmp.js
-const genTimelineStyle = token => {
- const {
- componentCls
- } = token;
+
+const genTagStatusStyle = (token, status, cssVariableType) => {
+ const capitalizedCssVariableType = capitalize(cssVariableType);
return {
- [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
- margin: 0,
- padding: 0,
- listStyle: 'none',
- [`${componentCls}-item`]: {
- position: 'relative',
- margin: 0,
- paddingBottom: token.itemPaddingBottom,
- fontSize: token.fontSize,
- listStyle: 'none',
- '&-tail': {
- position: 'absolute',
- insetBlockStart: token.itemHeadSize,
- insetInlineStart: (token.itemHeadSize - token.tailWidth) / 2,
- height: `calc(100% - ${token.itemHeadSize}px)`,
- borderInlineStart: `${token.tailWidth}px ${token.lineType} ${token.tailColor}`
- },
- '&-pending': {
- [`${componentCls}-item-head`]: {
- fontSize: token.fontSizeSM,
- backgroundColor: 'transparent'
- },
- [`${componentCls}-item-tail`]: {
- display: 'none'
- }
- },
- '&-head': {
- position: 'absolute',
- width: token.itemHeadSize,
- height: token.itemHeadSize,
- backgroundColor: token.dotBg,
- border: `${token.dotBorderWidth}px ${token.lineType} transparent`,
- borderRadius: '50%',
- '&-blue': {
- color: token.colorPrimary,
- borderColor: token.colorPrimary
- },
- '&-red': {
- color: token.colorError,
- borderColor: token.colorError
- },
- '&-green': {
- color: token.colorSuccess,
- borderColor: token.colorSuccess
- },
- '&-gray': {
- color: token.colorTextDisabled,
- borderColor: token.colorTextDisabled
- }
- },
- '&-head-custom': {
- position: 'absolute',
- insetBlockStart: token.itemHeadSize / 2,
- insetInlineStart: token.itemHeadSize / 2,
- width: 'auto',
- height: 'auto',
- marginBlockStart: 0,
- paddingBlock: token.customHeadPaddingVertical,
- lineHeight: 1,
- textAlign: 'center',
- border: 0,
- borderRadius: 0,
- transform: `translate(-50%, -50%)`
- },
- '&-content': {
- position: 'relative',
- insetBlockStart: -(token.fontSize * token.lineHeight - token.fontSize) + token.lineWidth,
- marginInlineStart: token.margin + token.itemHeadSize,
- marginInlineEnd: 0,
- marginBlockStart: 0,
- marginBlockEnd: 0,
- wordBreak: 'break-word'
- },
- '&-last': {
- [`> ${componentCls}-item-tail`]: {
- display: 'none'
- },
- [`> ${componentCls}-item-content`]: {
- minHeight: token.controlHeightLG * 1.2
- }
- }
- },
- [`&${componentCls}-alternate,
- &${componentCls}-right,
- &${componentCls}-label`]: {
- [`${componentCls}-item`]: {
- '&-tail, &-head, &-head-custom': {
- insetInlineStart: '50%'
- },
- '&-head': {
- marginInlineStart: `-${token.marginXXS}px`,
- '&-custom': {
- marginInlineStart: token.tailWidth / 2
- }
- },
- '&-left': {
- [`${componentCls}-item-content`]: {
- insetInlineStart: `calc(50% - ${token.marginXXS}px)`,
- width: `calc(50% - ${token.marginSM}px)`,
- textAlign: 'start'
- }
- },
- '&-right': {
- [`${componentCls}-item-content`]: {
- width: `calc(50% - ${token.marginSM}px)`,
- margin: 0,
- textAlign: 'end'
- }
- }
- }
- },
- [`&${componentCls}-right`]: {
- [`${componentCls}-item-right`]: {
- [`${componentCls}-item-tail,
- ${componentCls}-item-head,
- ${componentCls}-item-head-custom`]: {
- insetInlineStart: `calc(100% - ${(token.itemHeadSize + token.tailWidth) / 2}px)`
- },
- [`${componentCls}-item-content`]: {
- width: `calc(100% - ${token.itemHeadSize + token.marginXS}px)`
- }
- }
- },
- [`&${componentCls}-pending
- ${componentCls}-item-last
- ${componentCls}-item-tail`]: {
- display: 'block',
- height: `calc(100% - ${token.margin}px)`,
- borderInlineStart: `${token.tailWidth}px dotted ${token.tailColor}`
- },
- [`&${componentCls}-reverse
- ${componentCls}-item-last
- ${componentCls}-item-tail`]: {
- display: 'none'
- },
- [`&${componentCls}-reverse ${componentCls}-item-pending`]: {
- [`${componentCls}-item-tail`]: {
- insetBlockStart: token.margin,
- display: 'block',
- height: `calc(100% - ${token.margin}px)`,
- borderInlineStart: `${token.tailWidth}px dotted ${token.tailColor}`
- },
- [`${componentCls}-item-content`]: {
- minHeight: token.controlHeightLG * 1.2
- }
- },
- [`&${componentCls}-label`]: {
- [`${componentCls}-item-label`]: {
- position: 'absolute',
- insetBlockStart: -(token.fontSize * token.lineHeight - token.fontSize) + token.tailWidth,
- width: `calc(50% - ${token.marginSM}px)`,
- textAlign: 'end'
- },
- [`${componentCls}-item-right`]: {
- [`${componentCls}-item-label`]: {
- insetInlineStart: `calc(50% + ${token.marginSM}px)`,
- width: `calc(50% - ${token.marginSM}px)`,
- textAlign: 'start'
- }
- }
- },
- // ====================== RTL =======================
- '&-rtl': {
- direction: 'rtl',
- [`${componentCls}-item-head-custom`]: {
- transform: `translate(50%, -50%)`
- }
+ [`${token.componentCls}-${status}`]: {
+ color: token[`color${cssVariableType}`],
+ background: token[`color${capitalizedCssVariableType}Bg`],
+ borderColor: token[`color${capitalizedCssVariableType}Border`],
+ [`&${token.componentCls}-borderless`]: {
+ borderColor: 'transparent'
}
- })
+ }
};
};
// ============================== Export ==============================
-/* harmony default export */ var timeline_style = ((0,genComponentStyleHook/* default */.Z)('Timeline', token => {
- const timeLineToken = (0,statistic/* merge */.TS)(token, {
- itemHeadSize: 10,
- customHeadPaddingVertical: token.paddingXXS,
- paddingInlineEnd: 2
- });
- return [genTimelineStyle(timeLineToken)];
-}, token => ({
- tailColor: token.colorSplit,
- tailWidth: token.lineWidthBold,
- dotBorderWidth: token.wireframe ? token.lineWidthBold : token.lineWidth * 3,
- dotBg: token.colorBgContainer,
- itemPaddingBottom: token.padding * 1.25
-})));
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/Timeline.js
+/* harmony default export */ var statusCmp = ((0,genComponentStyleHook/* genSubStyleComponent */.b)(['Tag', 'status'], token => {
+ const tagToken = prepareToken(token);
+ return [genTagStatusStyle(tagToken, 'success', 'Success'), genTagStatusStyle(tagToken, 'processing', 'Info'), genTagStatusStyle(tagToken, 'error', 'Error'), genTagStatusStyle(tagToken, 'warning', 'Warning')];
+}, prepareCommonToken));
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tag/index.js
"use client";
-var Timeline_rest = undefined && undefined.__rest || function (s, e) {
+var tag_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++) {
@@ -759,45 +640,92 @@ var Timeline_rest = undefined && undefined.__rest || function (s, e) {
-// CSSINJS
-const Timeline = props => {
+
+
+
+
+const InternalTag = (tagProps, ref) => {
+ const {
+ prefixCls: customizePrefixCls,
+ className,
+ rootClassName,
+ style,
+ children,
+ icon,
+ color,
+ onClose,
+ closeIcon,
+ closable,
+ bordered = true
+ } = tagProps,
+ props = tag_rest(tagProps, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered"]);
const {
getPrefixCls,
direction,
- timeline
+ tag
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const {
- prefixCls: customizePrefixCls,
- children,
- items,
- className,
- style
- } = props,
- restProps = Timeline_rest(props, ["prefixCls", "children", "items", "className", "style"]);
- const prefixCls = getPrefixCls('timeline', customizePrefixCls);
- // =================== Warning =====================
+ const [visible, setVisible] = _react_17_0_2_react.useState(true);
+ // Warning for deprecated usage
if (false) {}
+ _react_17_0_2_react.useEffect(() => {
+ if ('visible' in props) {
+ setVisible(props.visible);
+ }
+ }, [props.visible]);
+ const isPreset = (0,colors/* isPresetColor */.o2)(color);
+ const isStatus = (0,colors/* isPresetStatusColor */.yT)(color);
+ const isInternalColor = isPreset || isStatus;
+ const tagStyle = Object.assign(Object.assign({
+ backgroundColor: color && !isInternalColor ? color : undefined
+ }, tag === null || tag === void 0 ? void 0 : tag.style), style);
+ const prefixCls = getPrefixCls('tag', customizePrefixCls);
// Style
- const [wrapSSR, hashId] = timeline_style(prefixCls);
- const mergedItems = timeline_useItems(items, children);
- return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(timeline_TimelineItemList, Object.assign({}, restProps, {
- className: _classnames_2_5_1_classnames_default()(timeline === null || timeline === void 0 ? void 0 : timeline.className, className),
- style: Object.assign(Object.assign({}, timeline === null || timeline === void 0 ? void 0 : timeline.style), style),
- prefixCls: prefixCls,
- direction: direction,
- items: mergedItems,
- hashId: hashId
- })));
+ const [wrapSSR, hashId] = tag_style(prefixCls);
+ const tagClassName = _classnames_2_5_1_classnames_default()(prefixCls, tag === null || tag === void 0 ? void 0 : tag.className, {
+ [`${prefixCls}-${color}`]: isInternalColor,
+ [`${prefixCls}-has-color`]: color && !isInternalColor,
+ [`${prefixCls}-hidden`]: !visible,
+ [`${prefixCls}-rtl`]: direction === 'rtl',
+ [`${prefixCls}-borderless`]: !bordered
+ }, className, rootClassName, hashId);
+ const handleCloseClick = e => {
+ e.stopPropagation();
+ onClose === null || onClose === void 0 ? void 0 : onClose(e);
+ if (e.defaultPrevented) {
+ return;
+ }
+ setVisible(false);
+ };
+ const [, mergedCloseIcon] = (0,useClosable/* default */.Z)(closable, closeIcon, iconNode => iconNode === null ? /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, {
+ className: `${prefixCls}-close-icon`,
+ onClick: handleCloseClick
+ }) : /*#__PURE__*/_react_17_0_2_react.createElement("span", {
+ className: `${prefixCls}-close-icon`,
+ onClick: handleCloseClick
+ }, iconNode), null, false);
+ const isNeedWave = typeof props.onClick === 'function' || children && children.type === 'a';
+ const iconNode = icon || null;
+ const kids = iconNode ? /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, iconNode, children && /*#__PURE__*/_react_17_0_2_react.createElement("span", null, children)) : children;
+ const tagNode = /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, props, {
+ ref: ref,
+ className: tagClassName,
+ style: tagStyle
+ }), kids, mergedCloseIcon, isPreset && /*#__PURE__*/_react_17_0_2_react.createElement(presetCmp, {
+ key: "preset",
+ prefixCls: prefixCls
+ }), isStatus && /*#__PURE__*/_react_17_0_2_react.createElement(statusCmp, {
+ key: "status",
+ prefixCls: prefixCls
+ }));
+ return wrapSSR(isNeedWave ? /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
+ component: "Tag"
+ }, tagNode) : tagNode);
};
-Timeline.Item = timeline_TimelineItem;
+const Tag = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalTag);
if (false) {}
-/* harmony default export */ var timeline_Timeline = (Timeline);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/index.js
-"use client";
-
-
-/* harmony default export */ var timeline = (timeline_Timeline);
+Tag.CheckableTag = tag_CheckableTag;
+/* harmony default export */ var tag = (Tag);
/***/ })
diff --git a/7923.03a715b3.async.js b/33535.857dfdb9.async.js
similarity index 70%
rename from 7923.03a715b3.async.js
rename to 33535.857dfdb9.async.js
index cf067d732b..48d7332d2a 100644
--- a/7923.03a715b3.async.js
+++ b/33535.857dfdb9.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[7923],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[33535],{
/***/ 23717:
/*!*******************************************************************************************************************!*\
@@ -136,6 +136,499 @@ if (false) {}
/***/ }),
+/***/ 66104:
+/*!**************************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
+ \**************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Z: function() { return /* binding */ breadcrumb; }
+});
+
+// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
+var _classnames_2_5_1_classnames = __webpack_require__(92310);
+var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
+var toArray = __webpack_require__(47783);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/pickAttrs.js
+var pickAttrs = __webpack_require__(90339);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
+var reactNode = __webpack_require__(92343);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
+var context = __webpack_require__(36355);
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
+var DownOutlined = __webpack_require__(8876);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
+var dropdown = __webpack_require__(91857);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
+"use client";
+
+
+
+const BreadcrumbSeparator = _ref => {
+ let {
+ children
+ } = _ref;
+ const {
+ getPrefixCls
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const prefixCls = getPrefixCls('breadcrumb');
+ return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
+ className: `${prefixCls}-separator`,
+ "aria-hidden": "true"
+ }, children === '' ? children : children || '/');
+};
+BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
+/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
+"use client";
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+function getBreadcrumbName(route, params) {
+ if (route.title === undefined || route.title === null) {
+ return null;
+ }
+ const paramsKeys = Object.keys(params).join('|');
+ return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
+}
+function renderItem(prefixCls, item, children, href) {
+ if (children === null || children === undefined) {
+ return null;
+ }
+ const {
+ className,
+ onClick
+ } = item,
+ restItem = __rest(item, ["className", "onClick"]);
+ const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
+ data: true,
+ aria: true
+ })), {
+ onClick
+ });
+ if (href !== undefined) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
+ className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
+ href: href
+ }), children);
+ }
+ return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
+ className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
+ }), children);
+}
+function useItemRender(prefixCls, itemRender) {
+ const mergedItemRender = (item, params, routes, path, href) => {
+ if (itemRender) {
+ return itemRender(item, params, routes, path);
+ }
+ const name = getBreadcrumbName(item, params);
+ return renderItem(prefixCls, item, name, href);
+ };
+ return mergedItemRender;
+}
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
+"use client";
+
+var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+const InternalBreadcrumbItem = props => {
+ const {
+ prefixCls,
+ separator = '/',
+ children,
+ menu,
+ overlay,
+ dropdownProps,
+ href
+ } = props;
+ // Warning for deprecated usage
+ if (false) {}
+ /** If overlay is have Wrap a Dropdown */
+ const renderBreadcrumbNode = breadcrumbItem => {
+ if (menu || overlay) {
+ const mergeDropDownProps = Object.assign({}, dropdownProps);
+ if (menu) {
+ const _a = menu || {},
+ {
+ items
+ } = _a,
+ menuProps = BreadcrumbItem_rest(_a, ["items"]);
+ mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
+ items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
+ var {
+ key,
+ title,
+ label,
+ path
+ } = _a,
+ itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
+ let mergedLabel = label !== null && label !== void 0 ? label : title;
+ if (path) {
+ mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
+ href: `${href}${path}`
+ }, mergedLabel);
+ }
+ return Object.assign(Object.assign({}, itemProps), {
+ key: key !== null && key !== void 0 ? key : index,
+ label: mergedLabel
+ });
+ })
+ });
+ } else if (overlay) {
+ mergeDropDownProps.overlay = overlay;
+ }
+ return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
+ placement: "bottom"
+ }, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
+ className: `${prefixCls}-overlay-link`
+ }, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
+ }
+ return breadcrumbItem;
+ };
+ // wrap to dropDown
+ const link = renderBreadcrumbNode(children);
+ if (link !== undefined && link !== null) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
+ }
+ return null;
+};
+const BreadcrumbItem = props => {
+ const {
+ prefixCls: customizePrefixCls,
+ children,
+ href
+ } = props,
+ restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
+ const {
+ getPrefixCls
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
+ return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
+ prefixCls: prefixCls
+ }), renderItem(prefixCls, restProps, children, href));
+};
+BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
+/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
+var style = __webpack_require__(17313);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
+var genComponentStyleHook = __webpack_require__(83116);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
+var statistic = __webpack_require__(37613);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
+
+
+const genBreadcrumbStyle = token => {
+ const {
+ componentCls,
+ iconCls
+ } = token;
+ return {
+ [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
+ color: token.itemColor,
+ fontSize: token.fontSize,
+ [iconCls]: {
+ fontSize: token.iconFontSize
+ },
+ ol: {
+ display: 'flex',
+ flexWrap: 'wrap',
+ margin: 0,
+ padding: 0,
+ listStyle: 'none'
+ },
+ a: Object.assign({
+ color: token.linkColor,
+ transition: `color ${token.motionDurationMid}`,
+ padding: `0 ${token.paddingXXS}px`,
+ borderRadius: token.borderRadiusSM,
+ height: token.lineHeight * token.fontSize,
+ display: 'inline-block',
+ marginInline: -token.marginXXS,
+ '&:hover': {
+ color: token.linkHoverColor,
+ backgroundColor: token.colorBgTextHover
+ }
+ }, (0,style/* genFocusStyle */.Qy)(token)),
+ [`li:last-child`]: {
+ color: token.lastItemColor
+ },
+ [`${componentCls}-separator`]: {
+ marginInline: token.separatorMargin,
+ color: token.separatorColor
+ },
+ [`${componentCls}-link`]: {
+ [`
+ > ${iconCls} + span,
+ > ${iconCls} + a
+ `]: {
+ marginInlineStart: token.marginXXS
+ }
+ },
+ [`${componentCls}-overlay-link`]: {
+ borderRadius: token.borderRadiusSM,
+ height: token.lineHeight * token.fontSize,
+ display: 'inline-block',
+ padding: `0 ${token.paddingXXS}px`,
+ marginInline: -token.marginXXS,
+ [`> ${iconCls}`]: {
+ marginInlineStart: token.marginXXS,
+ fontSize: token.fontSizeIcon
+ },
+ '&:hover': {
+ color: token.linkHoverColor,
+ backgroundColor: token.colorBgTextHover,
+ a: {
+ color: token.linkHoverColor
+ }
+ },
+ a: {
+ '&:hover': {
+ backgroundColor: 'transparent'
+ }
+ }
+ },
+ // rtl style
+ [`&${token.componentCls}-rtl`]: {
+ direction: 'rtl'
+ }
+ })
+ };
+};
+// ============================== Export ==============================
+/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
+ const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
+ return [genBreadcrumbStyle(BreadcrumbToken)];
+}, token => ({
+ itemColor: token.colorTextDescription,
+ lastItemColor: token.colorText,
+ iconFontSize: token.fontSize,
+ linkColor: token.colorTextDescription,
+ linkHoverColor: token.colorText,
+ separatorColor: token.colorTextDescription,
+ separatorMargin: token.marginXS
+})));
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
+var useItems_rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+function route2item(route) {
+ const {
+ breadcrumbName,
+ children
+ } = route,
+ rest = useItems_rest(route, ["breadcrumbName", "children"]);
+ const clone = Object.assign({
+ title: breadcrumbName
+ }, rest);
+ if (children) {
+ clone.menu = {
+ items: children.map(_a => {
+ var {
+ breadcrumbName: itemBreadcrumbName
+ } = _a,
+ itemProps = useItems_rest(_a, ["breadcrumbName"]);
+ return Object.assign(Object.assign({}, itemProps), {
+ title: itemBreadcrumbName
+ });
+ })
+ };
+ }
+ return clone;
+}
+function useItems(items, routes) {
+ return (0,_react_17_0_2_react.useMemo)(() => {
+ if (items) {
+ return items;
+ }
+ if (routes) {
+ return routes.map(route2item);
+ }
+ return null;
+ }, [items, routes]);
+}
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
+"use client";
+
+var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+
+
+
+
+
+const getPath = (params, path) => {
+ if (path === undefined) {
+ return path;
+ }
+ let mergedPath = (path || '').replace(/^\//, '');
+ Object.keys(params).forEach(key => {
+ mergedPath = mergedPath.replace(`:${key}`, params[key]);
+ });
+ return mergedPath;
+};
+const Breadcrumb = props => {
+ const {
+ prefixCls: customizePrefixCls,
+ separator = '/',
+ style,
+ className,
+ rootClassName,
+ routes: legacyRoutes,
+ items,
+ children,
+ itemRender,
+ params = {}
+ } = props,
+ restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
+ const {
+ getPrefixCls,
+ direction,
+ breadcrumb
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ let crumbs;
+ const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
+ const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
+ const mergedItems = useItems(items, legacyRoutes);
+ if (false) {}
+ const mergedItemRender = useItemRender(prefixCls, itemRender);
+ if (mergedItems && mergedItems.length > 0) {
+ // generated by route
+ const paths = [];
+ const itemRenderRoutes = items || legacyRoutes;
+ crumbs = mergedItems.map((item, index) => {
+ const {
+ path,
+ key,
+ type,
+ menu,
+ overlay,
+ onClick,
+ className: itemClassName,
+ separator: itemSeparator,
+ dropdownProps
+ } = item;
+ const mergedPath = getPath(params, path);
+ if (mergedPath !== undefined) {
+ paths.push(mergedPath);
+ }
+ const mergedKey = key !== null && key !== void 0 ? key : index;
+ if (type === 'separator') {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
+ key: mergedKey
+ }, itemSeparator);
+ }
+ const itemProps = {};
+ const isLastItem = index === mergedItems.length - 1;
+ if (menu) {
+ itemProps.menu = menu;
+ } else if (overlay) {
+ itemProps.overlay = overlay;
+ }
+ let {
+ href
+ } = item;
+ if (paths.length && mergedPath !== undefined) {
+ href = `#/${paths.join('/')}`;
+ }
+ return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
+ key: mergedKey
+ }, itemProps, (0,pickAttrs/* default */.Z)(item, {
+ data: true,
+ aria: true
+ }), {
+ className: itemClassName,
+ dropdownProps: dropdownProps,
+ href: href,
+ separator: isLastItem ? '' : separator,
+ onClick: onClick,
+ prefixCls: prefixCls
+ }), mergedItemRender(item, params, itemRenderRoutes, paths, href));
+ });
+ } else if (children) {
+ const childrenLength = (0,toArray/* default */.Z)(children).length;
+ crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
+ if (!element) {
+ return element;
+ }
+ // =================== Warning =====================
+ if (false) {}
+ false ? 0 : void 0;
+ const isLastItem = index === childrenLength - 1;
+ return (0,reactNode/* cloneElement */.Tm)(element, {
+ separator: isLastItem ? '' : separator,
+ key: index
+ });
+ });
+ }
+ const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
+ [`${prefixCls}-rtl`]: direction === 'rtl'
+ }, className, rootClassName, hashId);
+ const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
+ return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
+ className: breadcrumbClassName,
+ style: mergedStyle
+ }, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
+};
+Breadcrumb.Item = breadcrumb_BreadcrumbItem;
+Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
+if (false) {}
+/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
+"use client";
+
+
+/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
+
+/***/ }),
+
/***/ 78673:
/*!**********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***!
diff --git a/30252.f0eb2f78.async.js b/41916.46c50b28.async.js
similarity index 71%
rename from 30252.f0eb2f78.async.js
rename to 41916.46c50b28.async.js
index d2273e0053..b183b60283 100644
--- a/30252.f0eb2f78.async.js
+++ b/41916.46c50b28.async.js
@@ -1,5 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[30252],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[41916],{
/***/ 20131:
/*!***********************************************!*\
@@ -370,1188 +370,6 @@ var NullChildEditor = /*#__PURE__*/function (_Component) {
/***/ }),
-/***/ 21871:
-/*!*********************************************************!*\
- !*** ./src/components/QuestionEditor/Buttonloading.tsx ***!
- \*********************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
-/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
-/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! umi */ 47439);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ 59301);
-/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 8591);
-/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 3113);
-/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 43418);
-/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! js-base64 */ 24334);
-/* harmony import */ var js_base64__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(js_base64__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/fetch */ 51136);
-/* harmony import */ var _pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/pages/MyProblem/service */ 76039);
-/* harmony import */ var _pages_MyProblem_TestCasePanel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/pages/MyProblem/TestCasePanel */ 84804);
-/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! moment */ 9498);
-/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__);
-/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/**
- * @description: 自测运行
- * @param {*}
- * ButtonProps:按钮部分样式等参数
- * ButtonText 按钮文字
- * form 表单内容
- * answerKey 填空字段
- * items 为运行调试字段
- * @return {*}
- */
-var ButtonLoading = function ButtonLoading(_ref) {
- var ButtonProps = _ref.ButtonProps,
- ButtonText = _ref.ButtonText,
- form = _ref.form,
- answerKey = _ref.answerKey,
- _ref$hackidentifier = _ref.hackidentifier,
- hackidentifier = _ref$hackidentifier === void 0 ? "" : _ref$hackidentifier,
- _ref$items = _ref.items,
- items = _ref$items === void 0 ? {} : _ref$items,
- setIsSubmitCode = _ref.setIsSubmitCode;
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
- _useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
- isloading = _useState2[0],
- setisloading = _useState2[1];
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(''),
- _useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
- identifier = _useState4[0],
- setidentifier = _useState4[1];
- var param = (0,umi__WEBPACK_IMPORTED_MODULE_4__.useParams)();
- var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)({}),
- _useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
- modalshow = _useState6[0],
- setmodalshow = _useState6[1];
- var isEdit = param.type === 'edit';
- var type = window.location.href.includes('problemset') ? 1 : 2;
- (0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
- if (isEdit || hackidentifier) {
- setidentifier(hackidentifier || param.id);
- }
- }, [param]);
- (0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
- return function () {
- sessionStorage.removeItem("projectFill");
- };
- }, []);
- function onUpdateCode(_x, _x2) {
- return _onUpdateCode.apply(this, arguments);
- }
- function _onUpdateCode() {
- _onUpdateCode = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee4(re, id) {
- var _stats$filter;
- var code, stats, codes, response;
- return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee4$(_context4) {
- while (1) switch (_context4.prev = _context4.next) {
- case 0:
- code = form.getFieldValue("hack_codes");
- stats = form.getFieldValue(answerKey);
- if (code.code) {
- _context4.next = 5;
- break;
- }
- antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('程序代码不能为空!');
- return _context4.abrupt("return");
- case 5:
- if (code.language) {
- _context4.next = 8;
- break;
- }
- antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('编程语言不能为空!');
- return _context4.abrupt("return");
- case 8:
- if (!(stats.length > 0 && ((_stats$filter = stats.filter(function (item) {
- return !item.answer_text;
- })) === null || _stats$filter === void 0 ? void 0 : _stats$filter.length) > 0)) {
- _context4.next = 11;
- break;
- }
- antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.info('填空项不能为空!');
- return _context4.abrupt("return");
- case 11:
- codes = code.code;
- if (stats.length > 0) {
- stats === null || stats === void 0 || stats.map(function (item) {
- if (item.multi_line) {
- codes = codes.substring(0, codes.indexOf('@▁▁@')) + item.answer_text + codes.substring(codes.indexOf('@▁▁@') + 4);
- } else {
- codes = codes.substring(0, codes.indexOf('@▁@')) + item.answer_text + codes.substring(codes.indexOf('@▁@') + 3);
- }
- });
- }
- _context4.next = 15;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
- code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
- language: code.language,
- answers: stats === null || stats === void 0 ? void 0 : stats.map(function (item) {
- return item.answer_text;
- })
- });
- case 15:
- response = _context4.sent;
- return _context4.abrupt("return", response);
- case 17:
- case "end":
- return _context4.stop();
- }
- }, _callee4);
- }));
- return _onUpdateCode.apply(this, arguments);
- }
- function onUpdateCodes(_x3, _x4) {
- return _onUpdateCodes.apply(this, arguments);
- }
- function _onUpdateCodes() {
- _onUpdateCodes = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee5(re, id) {
- var stats, codes, response;
- return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee5$(_context5) {
- while (1) switch (_context5.prev = _context5.next) {
- case 0:
- stats = items.userAnswer;
- codes = js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.decode(items.code); // if (stats.length > 0 && stats.filter((item) => !item.value)?.length > 0) {
- // message.info('填空项不能为空!')
- // return
- // }
- if (stats.length > 0) {
- stats === null || stats === void 0 || stats.map(function (item) {
- if (item.multi_line) {
- codes = codes.substring(0, codes.indexOf('@▁▁@')) + item.value + codes.substring(codes.indexOf('@▁▁@') + 4);
- } else {
- codes = codes.substring(0, codes.indexOf('@▁@')) + item.value + codes.substring(codes.indexOf('@▁@') + 3);
- }
- });
- }
- _context5.next = 5;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .updateCode */ .n4)(id, re ? re : {
- code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(codes),
- language: items.language,
- answers: stats === null || stats === void 0 ? void 0 : stats.map(function (item) {
- return item.value;
- })
- });
- case 5:
- response = _context5.sent;
- return _context5.abrupt("return", response);
- case 7:
- case "end":
- return _context5.stop();
- }
- }, _callee5);
- }));
- return _onUpdateCodes.apply(this, arguments);
- }
- function getTimeStamp() {
- return new Date().getTime();
- }
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
- loading: isloading
- }, ButtonProps), {}, {
- onClick: /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee3() {
- var _res, _response, executeCode, startTime, aa, res, formValues, _formValues$hack, _res2, _formValues$hack2, res1, response, _executeCode, _startTime;
- return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee3$(_context3) {
- while (1) switch (_context3.prev = _context3.next) {
- case 0:
- if (!(ButtonText === '提交代码')) {
- _context3.next = 21;
- break;
- }
- setisloading(true);
- if (!isloading) {
- _context3.next = 4;
- break;
- }
- return _context3.abrupt("return");
- case 4:
- _context3.next = 6;
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP)("/api/problems/".concat(identifier, "/start.json"), {
- method: 'get'
- });
- case 6:
- _res = _context3.sent;
- _context3.next = 9;
- return onUpdateCodes(null, _res === null || _res === void 0 ? void 0 : _res.identifier);
- case 9:
- _response = _context3.sent;
- if (!((_response === null || _response === void 0 ? void 0 : _response.status) === 0)) {
- _context3.next = 18;
- break;
- }
- executeCode = /*#__PURE__*/function () {
- var _ref3 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
- var _items$userAnswer;
- var _yield$getOperationRe, status, message, data, executeTime, isTimeOut;
- return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
- while (1) switch (_context.prev = _context.next) {
- case 0:
- _context.next = 2;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .getOperationResult */ .rX)(_res === null || _res === void 0 ? void 0 : _res.identifier, 'submit');
- case 2:
- _yield$getOperationRe = _context.sent;
- status = _yield$getOperationRe.status;
- message = _yield$getOperationRe.message;
- data = _yield$getOperationRe.data;
- executeTime = getTimeStamp();
- isTimeOut = executeTime - startTime > 10 * 1000 * (items === null || items === void 0 || (_items$userAnswer = items.userAnswer) === null || _items$userAnswer === void 0 ? void 0 : _items$userAnswer.length);
- if (status !== 0 && !isTimeOut) {
- setTimeout(executeCode, 1000);
- }
- if (!isTimeOut) {
- _context.next = 13;
- break;
- }
- antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.error({
- centered: true,
- okText: '知道啦',
- title: '调试代码超时'
- });
- setisloading(false);
- return _context.abrupt("return");
- case 13:
- if (status === 0) {
- setisloading(false);
- // let datas = await Fetch(`/api/myproblems/record_detail.json`, {
- // method: 'GET',
- // params: {
- // id: data?.id
- // }
- // })
-
- setmodalshow(data);
- if (data.status === 2) {
- setisloading(false);
- antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.error({
- centered: true,
- okText: '知道啦',
- title: '调试代码超时'
- });
- }
- }
- case 14:
- case "end":
- return _context.stop();
- }
- }, _callee);
- }));
- return function executeCode() {
- return _ref3.apply(this, arguments);
- };
- }();
- startTime = getTimeStamp();
- _context3.next = 15;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .sumbitCode */ .bM)(_res === null || _res === void 0 ? void 0 : _res.identifier, {});
- case 15:
- executeCode();
- _context3.next = 19;
- break;
- case 18:
- setisloading(false);
- case 19:
- !!setIsSubmitCode && setIsSubmitCode(true);
- return _context3.abrupt("return");
- case 21:
- aa = true;
- _context3.next = 24;
- return form.validateFields().then(function () {
- aa = false;
- }, function (errInfo) {
- var _errInfo$errorFields, _errInfo$errorFields2;
- if (errInfo.errorFields[0].name.includes("standard_answers")) {
- antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.error("填空项答案不能为空");
- } else {
- antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.error(errInfo.errorFields[0].errors[0]);
- }
- if (((_errInfo$errorFields = errInfo.errorFields) === null || _errInfo$errorFields === void 0 ? void 0 : _errInfo$errorFields.length) === 0) {
- aa = false;
- }
- form.scrollToField(errInfo === null || errInfo === void 0 || (_errInfo$errorFields2 = errInfo.errorFields) === null || _errInfo$errorFields2 === void 0 || (_errInfo$errorFields2 = _errInfo$errorFields2[0]) === null || _errInfo$errorFields2 === void 0 ? void 0 : _errInfo$errorFields2.name, {
- behavior: 'smooth',
- block: 'center'
- });
- aa = true;
- });
- case 24:
- if (!aa) {
- _context3.next = 26;
- break;
- }
- return _context3.abrupt("return");
- case 26:
- setisloading(true);
- if (!isloading) {
- _context3.next = 29;
- break;
- }
- return _context3.abrupt("return");
- case 29:
- res = '';
- formValues = form.getFieldsValue();
- if (identifier) {
- _context3.next = 40;
- break;
- }
- _context3.next = 34;
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP)("/api/problems.json", {
- method: 'post',
- body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues), {}, {
- hack: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues === null || formValues === void 0 ? void 0 : formValues.hack), {}, {
- sub_discipline_id: formValues === null || formValues === void 0 || (_formValues$hack = formValues.hack) === null || _formValues$hack === void 0 || (_formValues$hack = _formValues$hack.sub_discipline_id) === null || _formValues$hack === void 0 ? void 0 : _formValues$hack[1],
- difficult: formValues.difficulty,
- item_banks_group_id: formValues.item_banks_group_id
- }),
- hack_codes: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues.hack_codes), {}, {
- code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(formValues.hack_codes.code)
- }),
- hack_sets: [_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues.hack_sets)],
- is_blank: true
- })
- });
- case 34:
- res = _context3.sent;
- identifier = (_res2 = res) === null || _res2 === void 0 ? void 0 : _res2.identifier;
- sessionStorage.projectFill = identifier;
- setidentifier(identifier);
- _context3.next = 43;
- break;
- case 40:
- _context3.next = 42;
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP)("/api/problems/".concat(identifier, ".json"), {
- method: 'put',
- body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues), {}, {
- hack: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues === null || formValues === void 0 ? void 0 : formValues.hack), {}, {
- sub_discipline_id: formValues === null || formValues === void 0 || (_formValues$hack2 = formValues.hack) === null || _formValues$hack2 === void 0 || (_formValues$hack2 = _formValues$hack2.sub_discipline_id) === null || _formValues$hack2 === void 0 ? void 0 : _formValues$hack2[1],
- difficult: formValues.difficulty,
- item_banks_group_id: formValues.item_banks_group_id
- }),
- hack_codes: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues.hack_codes), {}, {
- code: js_base64__WEBPACK_IMPORTED_MODULE_6__.Base64.encode(formValues.hack_codes.code)
- }),
- update_hack_sets: [_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, formValues.hack_sets)],
- is_blank: true
- })
- });
- case 42:
- res = _context3.sent;
- case 43:
- _context3.next = 45;
- return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP)("/api/problems/".concat(identifier, "/start.json"), {
- method: 'get'
- });
- case 45:
- res1 = _context3.sent;
- _context3.next = 48;
- return onUpdateCode(null, res1 === null || res1 === void 0 ? void 0 : res1.identifier);
- case 48:
- response = _context3.sent;
- if (!((response === null || response === void 0 ? void 0 : response.status) === 0)) {
- _context3.next = 57;
- break;
- }
- _executeCode = /*#__PURE__*/function () {
- var _ref4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
- var _formValues$standard_;
- var _yield$getOperationRe2, status, message, data, executeTime, isTimeOut;
- return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context2) {
- while (1) switch (_context2.prev = _context2.next) {
- case 0:
- _context2.next = 2;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .getOperationResult */ .rX)(res1 === null || res1 === void 0 ? void 0 : res1.identifier, 'submit');
- case 2:
- _yield$getOperationRe2 = _context2.sent;
- status = _yield$getOperationRe2.status;
- message = _yield$getOperationRe2.message;
- data = _yield$getOperationRe2.data;
- executeTime = getTimeStamp();
- isTimeOut = executeTime - _startTime > (formValues.hack.time_limit + 3) * 1000 * (formValues === null || formValues === void 0 || (_formValues$standard_ = formValues.standard_answers) === null || _formValues$standard_ === void 0 ? void 0 : _formValues$standard_.length);
- if (status !== 0 && !isTimeOut) {
- setTimeout(_executeCode, 1000);
- }
- if (!isTimeOut) {
- _context2.next = 13;
- break;
- }
- antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.error({
- centered: true,
- okText: '知道啦',
- title: '调试代码超时'
- });
- setisloading(false);
- return _context2.abrupt("return");
- case 13:
- if (status === 0) {
- setisloading(false);
- setmodalshow(data);
- if (data.status === 2) {
- setisloading(false);
- antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z.error({
- centered: true,
- okText: '知道啦',
- title: '调试代码超时'
- });
- }
- }
- case 14:
- case "end":
- return _context2.stop();
- }
- }, _callee2);
- }));
- return function _executeCode() {
- return _ref4.apply(this, arguments);
- };
- }();
- _startTime = getTimeStamp();
- _context3.next = 54;
- return (0,_pages_MyProblem_service__WEBPACK_IMPORTED_MODULE_8__/* .sumbitCode */ .bM)(res1 === null || res1 === void 0 ? void 0 : res1.identifier, {});
- case 54:
- _executeCode();
- _context3.next = 58;
- break;
- case 57:
- setisloading(false);
- case 58:
- case "end":
- return _context3.stop();
- }
- }, _callee3);
- })),
- children: ButtonText
- })), (modalshow === null || modalshow === void 0 ? void 0 : modalshow.id) && modalshow.status !== 2 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
- open: (modalshow === null || modalshow === void 0 ? void 0 : modalshow.id) && modalshow.status !== 2,
- title: "\u8FD0\u884C\u7ED3\u679C",
- width: 1100,
- footer: false,
- onOk: function onOk() {
- setmodalshow({});
- },
- onCancel: function onCancel() {
- setmodalshow({});
- },
- children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- style: {
- maxHeight: 600,
- overflow: 'auto',
- marginBottom: 15
- },
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- style: {
- marginBottom: 20,
- display: 'flex',
- justifyContent: 'space-between',
- fontSize: 14
- },
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- color: '#666666'
- },
- children: "\u72B6\u6001"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- marginLeft: 12,
- color: modalshow.status !== 0 && '#E30000'
- },
- children: _pages_MyProblem_TestCasePanel__WEBPACK_IMPORTED_MODULE_9__/* .ExecuteDict */ .Im[modalshow.status]
- })]
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- color: '#666666'
- },
- children: "\u63D0\u4EA4\u65F6\u95F4"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- marginLeft: 12
- },
- children: moment__WEBPACK_IMPORTED_MODULE_10___default()(modalshow.created_at).format('YYYY-MM-DD HH:mm:ss')
- })]
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- color: '#666666'
- },
- children: "\u8BED\u8A00"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- marginLeft: 12
- },
- children: modalshow.language
- })]
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
- style: {
- color: '#666666'
- },
- children: "\u6267\u884C\u7528\u65F6"
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("span", {
- style: {
- marginLeft: 12
- },
- children: [modalshow.execute_time, "ms"]
- })]
- })]
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_pages_MyProblem_TestCasePanel__WEBPACK_IMPORTED_MODULE_9__/* .DetailCommitOut */ .Y4, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, modalshow))]
- })
- })]
- });
-};
-/* harmony default export */ __webpack_exports__.Z = (ButtonLoading);
-
-/***/ }),
-
-/***/ 44664:
-/*!*************************************************************!*\
- !*** ./src/components/QuestionEditor/index.tsx + 1 modules ***!
- \*************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- tc: function() { return /* reexport */ BProgramEditor; },
- uh: function() { return /* reexport */ ChoiceQuestionEditor/* ChoiceQuestionEditor */.u; },
- rL: function() { return /* reexport */ CombinationQuestionEditor/* CombinationQuestionEditor */.r; },
- u8: function() { return /* reexport */ CompletionQuestionEditor/* CompletionQuestionEditor */.u; },
- ZZ: function() { return /* reexport */ JudgmentQuestionEditor/* JudgmentQuestionEditor */.Z; },
- Wk: function() { return /* reexport */ SubjectiveQuestionEditor/* SubjectiveQuestionEditor */.W; }
-});
-
-// EXTERNAL MODULE: ./src/components/QuestionEditor/ChoiceQuestionEditor.tsx
-var ChoiceQuestionEditor = __webpack_require__(5309);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/JudgmentQuestionEditor.tsx
-var JudgmentQuestionEditor = __webpack_require__(99041);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/CompletionQuestionEditor.tsx
-var CompletionQuestionEditor = __webpack_require__(56763);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/SubjectiveQuestionEditor.tsx
-var SubjectiveQuestionEditor = __webpack_require__(42230);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/CombinationQuestionEditor.tsx
-var CombinationQuestionEditor = __webpack_require__(94957);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
-var objectWithoutProperties = __webpack_require__(39647);
-var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/createForOfIteratorHelper.js
-var createForOfIteratorHelper = __webpack_require__(91232);
-var createForOfIteratorHelper_default = /*#__PURE__*/__webpack_require__.n(createForOfIteratorHelper);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/defineProperty.js
-var defineProperty = __webpack_require__(85573);
-var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
-var objectSpread2 = __webpack_require__(82242);
-var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
-var slicedToArray = __webpack_require__(79800);
-var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
-var input = __webpack_require__(8772);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
-var es_form = __webpack_require__(78241);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
-var modal = __webpack_require__(43418);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
-var row = __webpack_require__(95237);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
-var col = __webpack_require__(43604);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
-var input_number = __webpack_require__(97913);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
-var es_select = __webpack_require__(57809);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
-var es_radio = __webpack_require__(5112);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
-var MdEditorInForm = __webpack_require__(36017);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts
-var _umi_production_exports = __webpack_require__(47439);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/index.less?modules
-var QuestionEditormodules = __webpack_require__(5547);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/Buttonloading.tsx
-var Buttonloading = __webpack_require__(21871);
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
-var ExclamationCircleOutlined = __webpack_require__(23717);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(37712);
-;// CONCATENATED MODULE: ./src/components/QuestionEditor/BProgramEditor.tsx
-
-
-
-
-
-var _excluded = ["key", "name"];
-
-
-
-
-
-
-
-
-
-
-var TextArea = input/* default */.Z.TextArea;
-var language = [{
- title: 'C',
- key: 'C'
-}, {
- title: 'C++',
- key: 'C++'
-}, {
- title: 'Python',
- key: 'Python'
-}, {
- title: 'Java',
- key: 'Java'
-}, {
- title: 'JavaScript',
- key: 'JavaScript'
-}, {
- title: 'Ruby',
- key: 'Ruby'
-}];
-var ReversedSwitch = function ReversedSwitch(_ref) {
- var value = _ref.value,
- _onChange = _ref.onChange;
- //打开为false,关闭为true,即一个特殊的Switch。
- return /*#__PURE__*/_jsx(Switch, {
- checked: value,
- onChange: function onChange(checked) {
- _onChange(checked);
- }
- });
-};
-var NULL_CH = '@▁@';
-var NULL_CH1 = '@▁▁@';
-var BProgramEditor = function BProgramEditor(_ref2) {
- var questionTitlePlaceholder = _ref2.questionTitlePlaceholder,
- form = _ref2.form,
- _ref2$scoreByBlank = _ref2.scoreByBlank,
- scoreByBlank = _ref2$scoreByBlank === void 0 ? false : _ref2$scoreByBlank,
- hackidentifier = _ref2.hackidentifier,
- answerKey = _ref2.answerKey;
- var _useState = (0,_react_17_0_2_react.useState)(false),
- _useState2 = slicedToArray_default()(_useState, 2),
- editAnalysis = _useState2[0],
- setEditAnalysis = _useState2[1];
- var _useState3 = (0,_react_17_0_2_react.useState)(false),
- _useState4 = slicedToArray_default()(_useState3, 2),
- isloading = _useState4[0],
- setloading = _useState4[1];
- var param = (0,_umi_production_exports.useParams)();
- var isEdit = param.type === 'edit';
- var getChCountBeforeCursor = function getChCountBeforeCursor(cm, cursor) {
- var currentLine = cursor.line;
- var placeholderCountBefore = 0;
- for (var _line = 0; _line < currentLine; _line++) {
- placeholderCountBefore += cm.getLine(_line).split(NULL_CH).length - 1;
- }
- for (var _line2 = 0; _line2 < currentLine; _line2++) {
- placeholderCountBefore += cm.getLine(_line2).split(NULL_CH1).length - 1;
- }
- var currentLineStringBeforeCursor = cm.getLine(currentLine).substring(0, cursor.ch);
- placeholderCountBefore += currentLineStringBeforeCursor.split(NULL_CH).length - 1;
- placeholderCountBefore += currentLineStringBeforeCursor.split(NULL_CH1).length - 1;
- return placeholderCountBefore;
- };
- var _onCMBeforeChange = function onCMBeforeChange(cm, change, addBlank, removeBlank) {
- var rangeText = cm.getRange(change.from, change.to);
- var newBlankNum = 0;
- change.text.forEach(function (item) {
- newBlankNum += item.split(NULL_CH).length - 1;
- });
- change.text.forEach(function (item) {
- newBlankNum += item.split(NULL_CH1).length - 1;
- });
- if (change.origin === 'setValue') {
- //setValue为初始化,此时不需要删除也不需要增加填空项
- return;
- }
- if (rangeText && (rangeText.indexOf(NULL_CH) !== -1 || rangeText.indexOf(NULL_CH1) !== -1)) {
- var placeholderCountInRange = rangeText.split(NULL_CH).length - 1 + rangeText.split(NULL_CH1).length - 1;
- var placeholderCountBefore = getChCountBeforeCursor(cm, change.from);
- console.log("\u5220\u9664".concat(placeholderCountInRange, "\u4E2A\uFF0C \u524D\u9762\u6709").concat(placeholderCountBefore, "\u4E2A\uFF0C\u65B0\u589E").concat(newBlankNum, "\u4E2A"));
- if (placeholderCountInRange > 1) {
- var indexArray = Array.from({
- length: placeholderCountInRange
- }, function (item, index) {
- return placeholderCountBefore + index;
- });
- removeBlank(indexArray);
- } else {
- removeBlank(placeholderCountBefore);
- }
- } else if (newBlankNum > 0) {
- var _placeholderCountBefore = getChCountBeforeCursor(cm, change.from);
- console.log("\u65B0\u589E".concat(newBlankNum, "\u4E2A\uFF0C\u4E4B\u524D\u6709").concat(_placeholderCountBefore, "\u4E2A"));
- addBlank(newBlankNum, _placeholderCountBefore);
- }
- };
-
- //新增和删除需要重新设置position,position表示填空的位置
- var rewritePosition = function rewritePosition() {
- var preAnswerData = form.getFieldValue(answerKey);
- form.setFieldsValue(defineProperty_default()({}, answerKey, preAnswerData === null || preAnswerData === void 0 ? void 0 : preAnswerData.map(function (item, index) {
- return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
- position: index + 1
- });
- })));
- };
- var addFnRef = (0,_react_17_0_2_react.useRef)();
- var addBlank = function addBlank(addNum, insertIndex) {
- for (var i = 0; i < addNum; i++) {
- addFnRef.current({
- position: null,
- answer_text: ''
- }, insertIndex + i);
- }
- rewritePosition();
- };
- var removeFnRef = (0,_react_17_0_2_react.useRef)();
- var removeBlank = function removeBlank(deleteIndex) {
- removeFnRef.current(deleteIndex);
- rewritePosition();
- };
- var standardAnswersValue = es_form/* default */.Z.useWatch(answerKey, form);
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: QuestionEditormodules/* default */.Z.wrap,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u8BD5\u9898\u63CF\u8FF0",
- name: ['hack', 'description'],
- style: {
- display: "table"
- },
- className: "w100",
- labelCol: {
- span: 24
- },
- rules: [{
- required: true
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* MdEditorInForm */.h, {
- scrollId: "name",
- watch: true,
- height: 140
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- className: QuestionEditormodules/* default */.Z.questionTitleEditorWrap,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u7A0B\u5E8F\u4EE3\u7801",
- name: ['hack_codes', 'code'],
- labelCol: {
- span: 24
- },
- rules: [{
- required: true
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* MdEditorInForm */.h, {
- scrollId: "name",
- watch: true,
- height: 400,
- hidetoolBar: true,
- showNullProgramButton: true,
- onChange: function onChange(a, b) {
- var preAnswerData = form.getFieldValue(answerKey);
- console.log('--preAnswerData', preAnswerData, b);
- form.setFieldsValue(defineProperty_default()({}, answerKey, preAnswerData === null || preAnswerData === void 0 ? void 0 : preAnswerData.map(function (item, index) {
- var _b$index;
- return objectSpread2_default()(objectSpread2_default()({}, item), {}, {
- position: index + 1,
- multi_line: b === null || b === void 0 || (_b$index = b[index]) === null || _b$index === void 0 ? void 0 : _b$index.multiLine
- });
- })));
- },
- placeholder: questionTitlePlaceholder,
- onCMBeforeChange: function onCMBeforeChange(cm, change) {
- _onCMBeforeChange(cm, change, addBlank, removeBlank);
- }
- })
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.List, {
- name: answerKey,
- rules: [{
- validator: function validator(rule, values) {
- if ((values === null || values === void 0 ? void 0 : values.length) === 0) {
- return Promise.reject(new Error('答案不能为空'));
- }
- var _iterator = createForOfIteratorHelper_default()(values),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- var _ref3 = item || {},
- answer_text = _ref3.answer_text;
- if ((answer_text === null || answer_text === void 0 ? void 0 : answer_text.length) === 0) {
- return Promise.reject(new Error('填空项答案不能为空'));
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- return Promise.resolve();
- }
- }],
- children: function children(fields, _ref4, _ref5) {
- var add = _ref4.add,
- remove = _ref4.remove;
- var errors = _ref5.errors;
- addFnRef.current = add;
- removeFnRef.current = remove;
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: {
- display: 'flex',
- alignItems: 'center',
- justifyContent: 'space-between'
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u586B\u7A7A\u9879\u7B54\u6848",
- required: true,
- labelCol: {
- span: 24
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- onClick: function onClick() {
- modal/* default */.Z.warning({
- title: '给分说明',
- icon: null,
- width: 700,
- centered: true,
- content: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- children: "1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\u624D\u80FD\u5F97\u5206\u3002"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- style: {
- marginTop: 10
- },
- children: "2.\u81EA\u52A8\u8BC4\u9605\u65F6\uFF0C\u7CFB\u7EDF\u5C06\u5224\u9898\u7A0B\u5E8F\u91CC\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u5185\u5BB9\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u7A0B\u5E8F\u8BFB\u6D4B\u8BD5\u8F93\u5165\u6570\u636E\uFF0C\u4EA7\u751F\u8F93\u51FA\uFF0C\u4E0E\u6D4B\u8BD5\u8F93\u51FA\u6570\u636E\u6309\u9010\u4E2A\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u5185\u5BB9\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u63D0\u4EA4\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\u3002\u5426\u5219\u8BE5\u7A7A\u5F97 0 \u5206\u3002"
- })]
- })
- });
- },
- style: {
- minHeight: 32,
- color: '#3061D0',
- cursor: 'pointer'
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExclamationCircleOutlined/* default */.Z, {
- style: {
- marginRight: 3,
- color: '#3061D0'
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- children: " \u7ED9\u5206\u8BF4\u660E"
- })]
- })]
- }), fields.map(function (_ref6, index) {
- var _standardAnswersValue, _standardAnswersValue2;
- var key = _ref6.key,
- name = _ref6.name,
- restField = objectWithoutProperties_default()(_ref6, _excluded);
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- className: "mb20",
- align: "middle",
- wrap: false,
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
- flex: '0 0 auto',
- className: "".concat(QuestionEditormodules/* default */.Z.blankIndex),
- children: ["\u586B\u7A7A\u9879", index + 1]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: 1,
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
- align: "top",
- justify: "space-between",
- wrap: false,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, restField), {}, {
- name: [name, 'answer_text'],
- noStyle: true,
- children: standardAnswersValue !== null && standardAnswersValue !== void 0 && (_standardAnswersValue = standardAnswersValue[name]) !== null && _standardAnswersValue !== void 0 && _standardAnswersValue.multi_line || standardAnswersValue !== null && standardAnswersValue !== void 0 && (_standardAnswersValue2 = standardAnswersValue[name]) !== null && _standardAnswersValue2 !== void 0 && _standardAnswersValue2.multiLine ? /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- spellCheck: false,
- style: {
- marginLeft: 10,
- width: 550
- }
- }) : /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
- style: {
- marginLeft: 10,
- width: 550
- },
- className: QuestionEditormodules/* default */.Z.blankInput
- // defaultValue={v}
- ,
- size: "large",
- maxLength: 1000,
- onBlur: function onBlur(e) {}
- })
- }))
- }), scoreByBlank && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
- flex: '224px',
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, objectSpread2_default()(objectSpread2_default()({}, restField), {}, {
- name: [name, 'score'],
- label: "\u5206\u503C",
- rules: [{
- required: true
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
- size: "large",
- className: QuestionEditormodules/* default */.Z.blankInput,
- min: 0.1,
- max: 100,
- precision: 1,
- style: {
- width: '100%'
- },
- placeholder: "\u8BF7\u8F93\u5165\u5206\u503C"
- })
- }))
- })]
- })
- })]
- }, key);
- })]
- });
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
- onClick: function onClick() {
- return setEditAnalysis(true);
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- name: ['hack', 'analysis'],
- label: "\u9898\u76EE\u89E3\u6790",
- labelCol: {
- span: 24
- },
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* RegularInput */.x, {
- placeholder: "\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",
- isEdit: editAnalysis
- })
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u7F16\u7A0B\u8BED\u8A00",
- style: {
- marginTop: 30
- },
- name: ['hack_codes', 'language'],
- labelCol: {
- span: 24
- },
- rules: [{
- required: true,
- message: '请选择编程语言'
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
- size: "large",
- children: language.map(function (item) {
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
- value: item.key,
- children: [" ", item.title]
- }, item.title);
- })
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
- label: '最大评测时长(秒)',
- style: {
- marginTop: 30
- },
- labelCol: {
- span: 24
- },
- required: true,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- name: ['hack', 'time_limit'],
- rules: [{
- required: true,
- message: '请输入单个测试集评测时长限制'
- }, {
- type: 'number',
- min: 3,
- message: '最小限制时间是3秒'
- }],
- noStyle: true,
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(input_number/* default */.Z, {
- precision: 0,
- max: 10,
- min: 3,
- size: "large",
- style: {
- width: '97%'
- }
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
- className: "ml10 font14",
- children: "\u79D2"
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u5B66\u751F\u7B54\u6848\u7684\u7A7A\u683C\u5904\u7406\u65B9\u5F0F",
- style: {
- marginTop: 30
- },
- name: ['hack', 'submit_rule'],
- labelCol: {
- span: 24
- },
- rules: [{
- required: true,
- message: '请选择学生答案的空格处理方式'
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
- style: {
- marginTop: -10
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
- value: 0,
- children: "\u4E0D\u5FFD\u7565\u7A7A\u683C"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
- value: 1,
- children: "\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
- value: 2,
- children: "\u5FFD\u7565\u6240\u6709\u7A7A\u683C"
- })]
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u6D4B\u8BD5\u7528\u4F8B",
- required: true,
- style: {
- marginTop: 30
- }
- }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- style: {
- background: '#F6F7F9',
- padding: 15
- },
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u8F93\u5165",
- labelCol: {
- span: 24
- },
- name: ['hack_sets', 'input'],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- rows: 4
- })
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
- label: "\u8F93\u51FA",
- labelCol: {
- span: 24
- },
- name: ['hack_sets', 'output'],
- rules: [{
- required: true,
- message: '请输入输出内容'
- }],
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(TextArea, {
- rows: 4
- })
- })]
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(Buttonloading/* default */.Z, {
- answerKey: answerKey,
- hackidentifier: hackidentifier,
- ButtonText: '自测运行',
- ButtonProps: {
- ghost: true,
- icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
- className: "iconfont icon-ceshi"
- }),
- style: {
- background: 'rgba(55,173,131,0.05)',
- borderRadius: 19,
- border: '1px solid #37AD83',
- width: 116,
- height: 38,
- display: 'inline-flex',
- fontSize: 14,
- alignItems: 'center',
- justifyContent: 'center',
- marginTop: 20,
- cursor: 'pointer',
- color: '#37AD83'
- }
- },
- form: form
- })]
- });
-};
-
-;// CONCATENATED MODULE: ./src/components/QuestionEditor/index.tsx
-
-
-
-
-
-
-
-/***/ }),
-
-/***/ 96962:
-/*!******************************************************!*\
- !*** ./src/components/Spinner/index.tsx + 1 modules ***!
- \******************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ Spinner; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./src/.umi-production/exports.ts
-var _umi_production_exports = __webpack_require__(47439);
-;// CONCATENATED MODULE: ./src/components/Spinner/index.less?modules
-// extracted by mini-css-extract-plugin
-/* harmony default export */ var Spinnermodules = ({"ldsRing":"ldsRing___mpBZC","idsRingWrapper":"idsRingWrapper___Of9_n","ldsring":"ldsring___o0w2t"});
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
-var jsx_runtime = __webpack_require__(37712);
-;// CONCATENATED MODULE: ./src/components/Spinner/index.tsx
-
-
-
-
-
-/* harmony default export */ var Spinner = (function (_ref) {
- var message = _ref.message,
- className = _ref.className,
- children = _ref.children,
- _ref$style = _ref.style,
- style = _ref$style === void 0 ? {} : _ref$style;
- return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: "".concat(Spinnermodules.idsRingWrapper, " ").concat(className),
- children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
- className: Spinnermodules.ldsRing,
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
- }), message ? /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
- style: style,
- children: message
- }) : null, /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})]
- });
-});
-
-/***/ }),
-
/***/ 41916:
/*!************************************************************************************************!*\
!*** ./src/pages/Paperlibrary/Random/AddAndEdit/components/StepPreview/index.tsx + 12 modules ***!
@@ -3176,8 +1994,6 @@ var ExchangeModal = function ExchangeModal(_ref) {
/* harmony default export */ var components_ExchangeModal = (ExchangeModal);
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
var ui_customization = __webpack_require__(34450);
-// EXTERNAL MODULE: ./src/components/QuestionEditor/index.tsx + 1 modules
-var QuestionEditor = __webpack_require__(44664);
// EXTERNAL MODULE: ./node_modules/_js-base64@2.6.4@js-base64/base64.js
var base64 = __webpack_require__(24334);
;// CONCATENATED MODULE: ./src/pages/Paperlibrary/Random/AddAndEdit/components/StepPreview/index.tsx
@@ -3206,7 +2022,6 @@ var base64 = __webpack_require__(24334);
-
var Page = function Page(_ref) {
@@ -3243,6 +2058,7 @@ var Page = function Page(_ref) {
_useState8 = slicedToArray_default()(_useState7, 2),
iscover = _useState8[0],
setcover = _useState8[1];
+ var typeArr = ['PROGRAM', 'PROGRAM_CORRECTION', 'PROGRAM_COMPLETION'];
(0,_react_17_0_2_react.useEffect)(function () {
setTooltipVisible(true);
}, []);
@@ -4045,102 +2861,85 @@ var Page = function Page(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
});
}
- if (type === 'PROGRAM_COMPLETION') {
+ // if (type === 'PROGRAM_COMPLETION') {
+ // return (<>
+ //
+ // >)
+ // }
+ if (typeArr.includes(type)) {
var _v$program_attr;
- return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
- children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
- form: form,
- style: {
- marginTop: 20
- },
- onFinishFailed: function onFinishFailed(errInfo) {
- var _errInfo$errorFields;
- if (errInfo.errorFields[0].name.includes("standard_answers")) {
- message/* default */.ZP.error("填空项答案不能为空");
- } else {
- message/* default */.ZP.error(errInfo.errorFields[0].errors[0]);
- }
- // message.error(errInfo.errorFields[0].errors[0])
- form.scrollToField(errInfo === null || errInfo === void 0 || (_errInfo$errorFields = errInfo.errorFields) === null || _errInfo$errorFields === void 0 || (_errInfo$errorFields = _errInfo$errorFields[0]) === null || _errInfo$errorFields === void 0 ? void 0 : _errInfo$errorFields.name, {
- behavior: 'smooth',
- block: 'center'
- });
- },
- onFinish: ( /*#__PURE__*/function () {
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(values) {
- var _values$hack_codes;
- var body, res;
- return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
- while (1) switch (_context6.prev = _context6.next) {
- case 0:
- body = objectSpread2_default()(objectSpread2_default()({
- question_score: v.score
- }, values), {}, {
- question_type: 8,
- hack: objectSpread2_default()(objectSpread2_default()({}, values.hack), {}, {
- difficult: v.program_attr.difficult
- }),
- hack_codes: objectSpread2_default()(objectSpread2_default()({}, values.hack_codes), {}, {
- code: base64.Base64.encode((_values$hack_codes = values.hack_codes) === null || _values$hack_codes === void 0 ? void 0 : _values$hack_codes.code)
- })
- });
- if (iscover) {
- // datas.is_cover = 1
- body.is_cover = 1;
- }
- _context6.next = 4;
- return (0,fetch/* default */.ZP)("/api/exercise_questions/".concat(v.id, ".json"), {
- method: 'put',
- body: body
- });
- case 4:
- res = _context6.sent;
- if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
- message/* default */.ZP.success('编辑成功');
- handleSelectChange(selectValue + 1);
- }
- setEditId(null);
- case 7:
- case "end":
- return _context6.stop();
- }
- }, _callee6);
- }));
- return function (_x) {
- return _ref3.apply(this, arguments);
- };
- }()),
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(QuestionEditor/* BProgramEditor */.tc, {
- form: form,
- questionTitlePlaceholder: "\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",
- scoreByBlank: false,
- hackidentifier: v === null || v === void 0 || (_v$program_attr = v.program_attr) === null || _v$program_attr === void 0 ? void 0 : _v$program_attr.identifier,
- answerKey: "standard_answers"
- }), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
- })
- });
- }
- if (type === 'PROGRAM') {
- var _v$program_attr2;
- _umi_production_exports.history.push("/problems/".concat(v === null || v === void 0 || (_v$program_attr2 = v.program_attr) === null || _v$program_attr2 === void 0 ? void 0 : _v$program_attr2.identifier, "/edit?type=exercises&express_id=").concat(params.categoryId, "&question_id=").concat(v === null || v === void 0 ? void 0 : v.id, "&score=").concat(v === null || v === void 0 ? void 0 : v.score, "&callback_url=").concat(location.pathname, "&select=").concat(selectValue, "&exercise=true"));
+ _umi_production_exports.history.push("/problems/".concat(v === null || v === void 0 || (_v$program_attr = v.program_attr) === null || _v$program_attr === void 0 ? void 0 : _v$program_attr.identifier, "/edit?type=exercises&express_id=").concat(params.categoryId, "&question_id=").concat(v === null || v === void 0 ? void 0 : v.id, "&score=").concat(v === null || v === void 0 ? void 0 : v.score, "&callback_url=").concat(location.pathname, "&select=").concat(selectValue, "&exercise=true"));
}
};
var handleEditSave = /*#__PURE__*/function () {
- var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7(type, param, isok) {
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6(type, param, isok) {
var _childrenRef$current;
var editorData, body, _editorData$choices, question_choices, standard_answers, _editorData$standard_, _standard_answers, _editorData$sub_item_, res;
- return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
- while (1) switch (_context7.prev = _context7.next) {
+ return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
+ while (1) switch (_context6.prev = _context6.next) {
case 0:
- _context7.next = 2;
+ _context6.next = 2;
return (_childrenRef$current = childrenRef.current) === null || _childrenRef$current === void 0 ? void 0 : _childrenRef$current.onSave();
case 2:
- editorData = _context7.sent;
+ editorData = _context6.sent;
if (editorData) {
- _context7.next = 5;
+ _context6.next = 5;
break;
}
- return _context7.abrupt("return");
+ return _context6.abrupt("return");
case 5:
body = {
question_score: param.score,
@@ -4201,13 +3000,13 @@ var Page = function Page(_ref) {
});
delete body.analysis;
}
- _context7.next = 13;
+ _context6.next = 13;
return (0,fetch/* default */.ZP)("/api/exercise_questions/".concat(param.id, ".json"), {
method: 'put',
body: body
});
case 13:
- res = _context7.sent;
+ res = _context6.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success('编辑成功');
handleSelectChange(selectValue + 1);
@@ -4215,19 +3014,19 @@ var Page = function Page(_ref) {
setEditId(null);
case 16:
case "end":
- return _context7.stop();
+ return _context6.stop();
}
- }, _callee7);
+ }, _callee6);
}));
- return function handleEditSave(_x2, _x3, _x4) {
- return _ref4.apply(this, arguments);
+ return function handleEditSave(_x, _x2, _x3) {
+ return _ref3.apply(this, arguments);
};
}();
var updatePaper = /*#__PURE__*/function () {
- var _ref5 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
+ var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
var res;
- return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
- while (1) switch (_context8.prev = _context8.next) {
+ return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
+ while (1) switch (_context7.prev = _context7.next) {
case 0:
(0,_umi_production_exports.getDvaApp)()._store.dispatch({
type: "globalSetting/setGlobalLoading",
@@ -4236,17 +3035,17 @@ var Page = function Page(_ref) {
text: '正在更新试卷,请稍后...'
}
});
- _context8.next = 3;
+ _context7.next = 3;
return (0,fetch/* default */.ZP)("/api/exercises/".concat(params.categoryId, "/sync_random_question.json"), {
method: 'post'
});
case 3:
- res = _context8.sent;
+ res = _context7.sent;
if (!(res.status === 0)) {
- _context8.next = 8;
+ _context7.next = 8;
break;
}
- _context8.next = 7;
+ _context7.next = 7;
return onSkipExamination(selectValue);
case 7:
message/* default */.ZP.success('更新成功');
@@ -4259,12 +3058,12 @@ var Page = function Page(_ref) {
});
case 9:
case "end":
- return _context8.stop();
+ return _context7.stop();
}
- }, _callee8);
+ }, _callee7);
}));
return function updatePaper() {
- return _ref5.apply(this, arguments);
+ return _ref4.apply(this, arguments);
};
}();
var score_total = data === null || data === void 0 || (_data$questionList2 = data.questionList) === null || _data$questionList2 === void 0 ? void 0 : _data$questionList2.reduce(function (a, b) {
@@ -4478,21 +3277,22 @@ var Page = function Page(_ref) {
cancelText: '不覆盖',
keyboard: false,
onOk: function () {
- var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
- return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
- while (1) switch (_context9.prev = _context9.next) {
+ var _onOk6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee8() {
+ return regeneratorRuntime_default()().wrap(function _callee8$(_context8) {
+ while (1) switch (_context8.prev = _context8.next) {
case 0:
- if (e.type === 'PROGRAM_COMPLETION') {
- setcover(true);
- form.submit();
- } else {
- handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, true);
- }
+ // if (e.type === 'PROGRAM_COMPLETION') {
+ // setcover(true)
+ // form.submit();
+ // } else {
+ handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, true);
+
+ // }
case 1:
case "end":
- return _context9.stop();
+ return _context8.stop();
}
- }, _callee9);
+ }, _callee8);
}));
function onOk() {
return _onOk6.apply(this, arguments);
@@ -4500,21 +3300,22 @@ var Page = function Page(_ref) {
return onOk;
}(),
onCancel: function () {
- var _onCancel = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
- return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
- while (1) switch (_context10.prev = _context10.next) {
+ var _onCancel = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee9() {
+ return regeneratorRuntime_default()().wrap(function _callee9$(_context9) {
+ while (1) switch (_context9.prev = _context9.next) {
case 0:
- if (e.type === 'PROGRAM_COMPLETION') {
- setcover(false);
- form.submit();
- } else {
- handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, false);
- }
+ // if (e.type === 'PROGRAM_COMPLETION') {
+ // setcover(false)
+ // form.submit();
+ // } else {
+ handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, false);
+
+ // }
case 1:
case "end":
- return _context10.stop();
+ return _context9.stop();
}
- }, _callee10);
+ }, _callee9);
}));
function onCancel() {
return _onCancel.apply(this, arguments);
@@ -4523,12 +3324,13 @@ var Page = function Page(_ref) {
}()
});
} else {
- if (e.type === 'PROGRAM_COMPLETION') {
- setcover(false);
- form.submit();
- } else {
- handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, false);
- }
+ // if (e.type === 'PROGRAM_COMPLETION') {
+ // setcover(false)
+ // form.submit();
+ // } else {
+ handleEditSave(e === null || e === void 0 ? void 0 : e.type, k, false);
+
+ // }
}
},
type: "primary",
@@ -4601,7 +3403,7 @@ var Page = function Page(_ref) {
disabledFill: true,
className: StepPreviewmodules.titleHtml,
value: base64.Base64.decode(((_k$program_attr4 = k.program_attr) === null || _k$program_attr4 === void 0 ? void 0 : _k$program_attr4.code) || '')
- }), (e.type === 'SINGLE' || e.type === "JUDGMENT" || e.type === "MULTIPLE") && renderQs(k), e.type === "COMPLETION" && renderCompletion(k), e.type === "SUBJECTIVE" && renderSubjective(k), e.type === "PROGRAM" && renderProgram(k), e.type === "PROGRAM_COMPLETION" && renderBProgram(k), e.type === "COMBINATION" && renderCombination(k, i), e.type === "PRACTICAL" && renderPractical(k), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
+ }), (e.type === 'SINGLE' || e.type === "JUDGMENT" || e.type === "MULTIPLE") && renderQs(k), e.type === "COMPLETION" && renderCompletion(k), e.type === "SUBJECTIVE" && renderSubjective(k), typeArr.includes(e.type) && renderProgram(k), e.type === "COMBINATION" && renderCombination(k, i), e.type === "PRACTICAL" && renderPractical(k), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {})]
}, k.id);
})]
}, index);
@@ -4673,13 +3475,13 @@ var Page = function Page(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_ExchangeModal, {
visible: exchangeModalVisible,
questionParams: exchangeQuestionParams.current,
- onRandomExchange: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee11() {
+ onRandomExchange: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee10() {
var changeParams;
- return regeneratorRuntime_default()().wrap(function _callee11$(_context11) {
- while (1) switch (_context11.prev = _context11.next) {
+ return regeneratorRuntime_default()().wrap(function _callee10$(_context10) {
+ while (1) switch (_context10.prev = _context10.next) {
case 0:
changeParams = exchangeQuestionParams.current;
- _context11.next = 3;
+ _context10.next = 3;
return onExchange({
single_question_id: changeParams.id,
seleted_item_bank_ids: changeParams.ids
@@ -4691,9 +3493,9 @@ var Page = function Page(_ref) {
setExchangeModalVisible(false);
case 4:
case "end":
- return _context11.stop();
+ return _context10.stop();
}
- }, _callee11);
+ }, _callee10);
})),
selectFromProblemSet: function selectFromProblemSet() {
var changeParams = exchangeQuestionParams.current;
diff --git a/53605.d04cb8c2.async.js b/53605.009ceaea.async.js
similarity index 99%
rename from 53605.d04cb8c2.async.js
rename to 53605.009ceaea.async.js
index 5afbef0976..fcafdf7884 100644
--- a/53605.d04cb8c2.async.js
+++ b/53605.009ceaea.async.js
@@ -5283,6 +5283,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
type: 'quotes',
direction: 'desc'
}];
+ var typeArr = ['PROGRAM', 'PROGRAM_CORRECTION', 'PROGRAM_COMPLETION'];
(0,_react_17_0_2_react.useEffect)(function () {
document.body.setAttribute('data-custom', 'initial');
return function () {
@@ -6077,7 +6078,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
item_type = gather.item_type; //程序设计题
- if (!(item_type === 'PROGRAM')) {
+ if (!typeArr.includes(item_type)) {
_context11.next = 12;
break;
}
@@ -6741,7 +6742,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
problemsetList.forEach(function (e) {
if (ids.includes(e.id)) {
var _e$program_attr;
- if (e.item_type === "PROGRAM" && ((_e$program_attr = e.program_attr) === null || _e$program_attr === void 0 ? void 0 : _e$program_attr.status) === 0) {
+ if (typeArr.includes(e.item_type) && ((_e$program_attr = e.program_attr) === null || _e$program_attr === void 0 ? void 0 : _e$program_attr.status) === 0) {
(0,lodash.remove)(ids, function (t) {
return t === e.id;
});
@@ -7260,7 +7261,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
return selectIds.includes(x.id);
})) !== null && _problemsetList$filte2 !== void 0 && _problemsetList$filte2.find(function (x) {
var _x$program_attr;
- return x.item_type === "PROGRAM" && ((_x$program_attr = x.program_attr) === null || _x$program_attr === void 0 ? void 0 : _x$program_attr.status) === 0;
+ return typeArr.includes(x.item_type) && ((_x$program_attr = x.program_attr) === null || _x$program_attr === void 0 ? void 0 : _x$program_attr.status) === 0;
})) {
return message/* default */.ZP.info('已选题中存在未发布的程序设计题');
}
@@ -7753,7 +7754,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
className: "iconfont icon-yichu ".concat(Problemsetmodules.cancelC)
}), "\u79FB\u51FA"]
})
- }, 1) : r.item_type === "PROGRAM" && ((_r$program_attr = r.program_attr) === null || _r$program_attr === void 0 ? void 0 : _r$program_attr.status) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
+ }, 1) : typeArr.includes(r.item_type) && ((_r$program_attr = r.program_attr) === null || _r$program_attr === void 0 ? void 0 : _r$program_attr.status) === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "top",
title: "\u7A0B\u5E8F\u8BBE\u8BA1\u9898\u672A\u53D1\u5E03\uFF0C\u4E0D\u80FD\u52A0\u5165\uFF01",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
diff --git a/60313.a922554b.async.js b/60313.c792d125.async.js
similarity index 76%
rename from 60313.a922554b.async.js
rename to 60313.c792d125.async.js
index 9826f8f68a..4338d1631e 100644
--- a/60313.a922554b.async.js
+++ b/60313.c792d125.async.js
@@ -1,3 +1,4 @@
+"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60313],{
/***/ 96962:
@@ -6,7 +7,6 @@
\******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -54,7 +54,6 @@ var jsx_runtime = __webpack_require__(37712);
\**************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-"use strict";
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
@@ -509,7 +508,6 @@ function getCommitOut(debugResult) {
\***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ h: function() { return /* binding */ ExecuteStatus; }
/* harmony export */ });
@@ -548,7 +546,6 @@ var ExecuteStatus = /*#__PURE__*/function (ExecuteStatus) {
\*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ H7: function() { return /* binding */ resetCode; },
/* harmony export */ KC: function() { return /* binding */ practicesList; },
@@ -655,246 +652,6 @@ function setLogTime(id, params) {
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_0__/* .post */ .v_)("mypractices/".concat(id, "/update_practice_time_sum"), params);
}
-/***/ }),
-
-/***/ 24334:
-/*!***********************************************************!*\
- !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
- \***********************************************************/
-/***/ (function(module, exports, __webpack_require__) {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
- * base64.js
- *
- * Licensed under the BSD 3-Clause License.
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * References:
- * http://en.wikipedia.org/wiki/Base64
- */
-;(function (global, factory) {
- true
- ? module.exports = factory(global)
- : 0
-}((
- typeof self !== 'undefined' ? self
- : typeof window !== 'undefined' ? window
- : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
-: this
-), function(global) {
- 'use strict';
- // existing version for noConflict()
- global = global || {};
- var _Base64 = global.Base64;
- var version = "2.6.4";
- // constants
- var b64chars
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- var b64tab = function(bin) {
- var t = {};
- for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
- return t;
- }(b64chars);
- var fromCharCode = String.fromCharCode;
- // encoder stuff
- var cb_utob = function(c) {
- if (c.length < 2) {
- var cc = c.charCodeAt(0);
- return cc < 0x80 ? c
- : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
- + fromCharCode(0x80 | (cc & 0x3f)))
- : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- } else {
- var cc = 0x10000
- + (c.charCodeAt(0) - 0xD800) * 0x400
- + (c.charCodeAt(1) - 0xDC00);
- return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
- + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- }
- };
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
- var utob = function(u) {
- return u.replace(re_utob, cb_utob);
- };
- var cb_encode = function(ccc) {
- var padlen = [0, 2, 1][ccc.length % 3],
- ord = ccc.charCodeAt(0) << 16
- | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
- | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
- chars = [
- b64chars.charAt( ord >>> 18),
- b64chars.charAt((ord >>> 12) & 63),
- padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
- padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
- ];
- return chars.join('');
- };
- var btoa = global.btoa && typeof global.btoa == 'function'
- ? function(b){ return global.btoa(b) } : function(b) {
- if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
- 'The string contains invalid characters.'
- );
- return b.replace(/[\s\S]{1,3}/g, cb_encode);
- };
- var _encode = function(u) {
- return btoa(utob(String(u)));
- };
- var mkUriSafe = function (b64) {
- return b64.replace(/[+\/]/g, function(m0) {
- return m0 == '+' ? '-' : '_';
- }).replace(/=/g, '');
- };
- var encode = function(u, urisafe) {
- return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
- };
- var encodeURI = function(u) { return encode(u, true) };
- var fromUint8Array;
- if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
- // return btoa(fromCharCode.apply(null, a));
- var b64 = '';
- for (var i = 0, l = a.length; i < l; i += 3) {
- var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
- var ord = a0 << 16 | a1 << 8 | a2;
- b64 += b64chars.charAt( ord >>> 18)
- + b64chars.charAt((ord >>> 12) & 63)
- + ( typeof a1 != 'undefined'
- ? b64chars.charAt((ord >>> 6) & 63) : '=')
- + ( typeof a2 != 'undefined'
- ? b64chars.charAt( ord & 63) : '=');
- }
- return urisafe ? mkUriSafe(b64) : b64;
- };
- // decoder stuff
- var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
- var cb_btou = function(cccc) {
- switch(cccc.length) {
- case 4:
- var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
- | ((0x3f & cccc.charCodeAt(1)) << 12)
- | ((0x3f & cccc.charCodeAt(2)) << 6)
- | (0x3f & cccc.charCodeAt(3)),
- offset = cp - 0x10000;
- return (fromCharCode((offset >>> 10) + 0xD800)
- + fromCharCode((offset & 0x3FF) + 0xDC00));
- case 3:
- return fromCharCode(
- ((0x0f & cccc.charCodeAt(0)) << 12)
- | ((0x3f & cccc.charCodeAt(1)) << 6)
- | (0x3f & cccc.charCodeAt(2))
- );
- default:
- return fromCharCode(
- ((0x1f & cccc.charCodeAt(0)) << 6)
- | (0x3f & cccc.charCodeAt(1))
- );
- }
- };
- var btou = function(b) {
- return b.replace(re_btou, cb_btou);
- };
- var cb_decode = function(cccc) {
- var len = cccc.length,
- padlen = len % 4,
- n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
- | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
- | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
- | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
- chars = [
- fromCharCode( n >>> 16),
- fromCharCode((n >>> 8) & 0xff),
- fromCharCode( n & 0xff)
- ];
- chars.length -= [0, 0, 2, 1][padlen];
- return chars.join('');
- };
- var _atob = global.atob && typeof global.atob == 'function'
- ? function(a){ return global.atob(a) } : function(a){
- return a.replace(/\S{1,4}/g, cb_decode);
- };
- var atob = function(a) {
- return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
- };
- var _decode = function(a) { return btou(_atob(a)) };
- var _fromURI = function(a) {
- return String(a).replace(/[-_]/g, function(m0) {
- return m0 == '-' ? '+' : '/'
- }).replace(/[^A-Za-z0-9\+\/]/g, '');
- };
- var decode = function(a){
- return _decode(_fromURI(a));
- };
- var toUint8Array;
- if (global.Uint8Array) toUint8Array = function(a) {
- return Uint8Array.from(atob(_fromURI(a)), function(c) {
- return c.charCodeAt(0);
- });
- };
- var noConflict = function() {
- var Base64 = global.Base64;
- global.Base64 = _Base64;
- return Base64;
- };
- // export Base64
- global.Base64 = {
- VERSION: version,
- atob: atob,
- btoa: btoa,
- fromBase64: decode,
- toBase64: encode,
- utob: utob,
- encode: encode,
- encodeURI: encodeURI,
- btou: btou,
- decode: decode,
- noConflict: noConflict,
- fromUint8Array: fromUint8Array,
- toUint8Array: toUint8Array
- };
- // if ES5 is available, make Base64.extendString() available
- if (typeof Object.defineProperty === 'function') {
- var noEnum = function(v){
- return {value:v,enumerable:false,writable:true,configurable:true};
- };
- global.Base64.extendString = function () {
- Object.defineProperty(
- String.prototype, 'fromBase64', noEnum(function () {
- return decode(this)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64', noEnum(function (urisafe) {
- return encode(this, urisafe)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64URI', noEnum(function () {
- return encode(this, true)
- }));
- };
- }
- //
- // export Base64 to the namespace
- //
- if (global['Meteor']) { // Meteor.js
- Base64 = global.Base64;
- }
- // module.exports and AMD are mutually exclusive.
- // module.exports has precedence.
- if ( true && module.exports) {
- module.exports.Base64 = global.Base64;
- }
- else if (true) {
- // AMD. Register as an anonymous module.
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
- // that's it!
- return {Base64: global.Base64}
-}));
-
-
/***/ })
}]);
\ No newline at end of file
diff --git a/71485.c9e73513.async.js b/69751.38eb9b2a.async.js
similarity index 73%
rename from 71485.c9e73513.async.js
rename to 69751.38eb9b2a.async.js
index 2fb7bdec6d..b49d744965 100644
--- a/71485.c9e73513.async.js
+++ b/69751.38eb9b2a.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[71485,7462,7923,52720,97986,45504],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[69751,97986,2934],{
/***/ 5105:
/*!***********************************************************************************************************!*\
@@ -46,52 +46,6 @@ if (false) {}
/***/ }),
-/***/ 93690:
-/*!********************************************************************************************************************!*\
- !*** ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DeliveredProcedureOutlined.js + 1 modules ***!
- \********************************************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ icons_DeliveredProcedureOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.4@@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(24931);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/DeliveredProcedureOutlined.js
-// This icon file is generated automatically.
-var DeliveredProcedureOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z" } }] }, "name": "delivered-procedure", "theme": "outlined" };
-/* harmony default export */ var asn_DeliveredProcedureOutlined = (DeliveredProcedureOutlined);
-
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
-var AntdIcon = __webpack_require__(99194);
-;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DeliveredProcedureOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var DeliveredProcedureOutlined_DeliveredProcedureOutlined = function DeliveredProcedureOutlined(props, ref) {
- return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_DeliveredProcedureOutlined
- }));
-};
-
-/** */
-var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DeliveredProcedureOutlined_DeliveredProcedureOutlined);
-if (false) {}
-/* harmony default export */ var icons_DeliveredProcedureOutlined = (RefIcon);
-
-/***/ }),
-
/***/ 23717:
/*!*******************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
@@ -390,745 +344,6 @@ const getRenderPropValue = propValue => {
/***/ }),
-/***/ 66104:
-/*!**************************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
- \**************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ breadcrumb; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
-var _classnames_2_5_1_classnames = __webpack_require__(92310);
-var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/Children/toArray.js
-var toArray = __webpack_require__(47783);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.39.1@rc-util/es/pickAttrs.js
-var pickAttrs = __webpack_require__(90339);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
-var reactNode = __webpack_require__(92343);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
-var context = __webpack_require__(36355);
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
-var DownOutlined = __webpack_require__(8876);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
-var dropdown = __webpack_require__(91857);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
-"use client";
-
-
-
-const BreadcrumbSeparator = _ref => {
- let {
- children
- } = _ref;
- const {
- getPrefixCls
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const prefixCls = getPrefixCls('breadcrumb');
- return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
- className: `${prefixCls}-separator`,
- "aria-hidden": "true"
- }, children === '' ? children : children || '/');
-};
-BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
-/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
-"use client";
-
-var __rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-function getBreadcrumbName(route, params) {
- if (route.title === undefined || route.title === null) {
- return null;
- }
- const paramsKeys = Object.keys(params).join('|');
- return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
-}
-function renderItem(prefixCls, item, children, href) {
- if (children === null || children === undefined) {
- return null;
- }
- const {
- className,
- onClick
- } = item,
- restItem = __rest(item, ["className", "onClick"]);
- const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
- data: true,
- aria: true
- })), {
- onClick
- });
- if (href !== undefined) {
- return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
- className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
- href: href
- }), children);
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
- className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
- }), children);
-}
-function useItemRender(prefixCls, itemRender) {
- const mergedItemRender = (item, params, routes, path, href) => {
- if (itemRender) {
- return itemRender(item, params, routes, path);
- }
- const name = getBreadcrumbName(item, params);
- return renderItem(prefixCls, item, name, href);
- };
- return mergedItemRender;
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
-"use client";
-
-var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-
-
-const InternalBreadcrumbItem = props => {
- const {
- prefixCls,
- separator = '/',
- children,
- menu,
- overlay,
- dropdownProps,
- href
- } = props;
- // Warning for deprecated usage
- if (false) {}
- /** If overlay is have Wrap a Dropdown */
- const renderBreadcrumbNode = breadcrumbItem => {
- if (menu || overlay) {
- const mergeDropDownProps = Object.assign({}, dropdownProps);
- if (menu) {
- const _a = menu || {},
- {
- items
- } = _a,
- menuProps = BreadcrumbItem_rest(_a, ["items"]);
- mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
- items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
- var {
- key,
- title,
- label,
- path
- } = _a,
- itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
- let mergedLabel = label !== null && label !== void 0 ? label : title;
- if (path) {
- mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
- href: `${href}${path}`
- }, mergedLabel);
- }
- return Object.assign(Object.assign({}, itemProps), {
- key: key !== null && key !== void 0 ? key : index,
- label: mergedLabel
- });
- })
- });
- } else if (overlay) {
- mergeDropDownProps.overlay = overlay;
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
- placement: "bottom"
- }, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
- className: `${prefixCls}-overlay-link`
- }, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
- }
- return breadcrumbItem;
- };
- // wrap to dropDown
- const link = renderBreadcrumbNode(children);
- if (link !== undefined && link !== null) {
- return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
- }
- return null;
-};
-const BreadcrumbItem = props => {
- const {
- prefixCls: customizePrefixCls,
- children,
- href
- } = props,
- restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
- const {
- getPrefixCls
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
- prefixCls: prefixCls
- }), renderItem(prefixCls, restProps, children, href));
-};
-BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
-/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
-var style = __webpack_require__(17313);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(83116);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(37613);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
-
-
-const genBreadcrumbStyle = token => {
- const {
- componentCls,
- iconCls
- } = token;
- return {
- [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
- color: token.itemColor,
- fontSize: token.fontSize,
- [iconCls]: {
- fontSize: token.iconFontSize
- },
- ol: {
- display: 'flex',
- flexWrap: 'wrap',
- margin: 0,
- padding: 0,
- listStyle: 'none'
- },
- a: Object.assign({
- color: token.linkColor,
- transition: `color ${token.motionDurationMid}`,
- padding: `0 ${token.paddingXXS}px`,
- borderRadius: token.borderRadiusSM,
- height: token.lineHeight * token.fontSize,
- display: 'inline-block',
- marginInline: -token.marginXXS,
- '&:hover': {
- color: token.linkHoverColor,
- backgroundColor: token.colorBgTextHover
- }
- }, (0,style/* genFocusStyle */.Qy)(token)),
- [`li:last-child`]: {
- color: token.lastItemColor
- },
- [`${componentCls}-separator`]: {
- marginInline: token.separatorMargin,
- color: token.separatorColor
- },
- [`${componentCls}-link`]: {
- [`
- > ${iconCls} + span,
- > ${iconCls} + a
- `]: {
- marginInlineStart: token.marginXXS
- }
- },
- [`${componentCls}-overlay-link`]: {
- borderRadius: token.borderRadiusSM,
- height: token.lineHeight * token.fontSize,
- display: 'inline-block',
- padding: `0 ${token.paddingXXS}px`,
- marginInline: -token.marginXXS,
- [`> ${iconCls}`]: {
- marginInlineStart: token.marginXXS,
- fontSize: token.fontSizeIcon
- },
- '&:hover': {
- color: token.linkHoverColor,
- backgroundColor: token.colorBgTextHover,
- a: {
- color: token.linkHoverColor
- }
- },
- a: {
- '&:hover': {
- backgroundColor: 'transparent'
- }
- }
- },
- // rtl style
- [`&${token.componentCls}-rtl`]: {
- direction: 'rtl'
- }
- })
- };
-};
-// ============================== Export ==============================
-/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
- const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
- return [genBreadcrumbStyle(BreadcrumbToken)];
-}, token => ({
- itemColor: token.colorTextDescription,
- lastItemColor: token.colorText,
- iconFontSize: token.fontSize,
- linkColor: token.colorTextDescription,
- linkHoverColor: token.colorText,
- separatorColor: token.colorTextDescription,
- separatorMargin: token.marginXS
-})));
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
-var useItems_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-function route2item(route) {
- const {
- breadcrumbName,
- children
- } = route,
- rest = useItems_rest(route, ["breadcrumbName", "children"]);
- const clone = Object.assign({
- title: breadcrumbName
- }, rest);
- if (children) {
- clone.menu = {
- items: children.map(_a => {
- var {
- breadcrumbName: itemBreadcrumbName
- } = _a,
- itemProps = useItems_rest(_a, ["breadcrumbName"]);
- return Object.assign(Object.assign({}, itemProps), {
- title: itemBreadcrumbName
- });
- })
- };
- }
- return clone;
-}
-function useItems(items, routes) {
- return (0,_react_17_0_2_react.useMemo)(() => {
- if (items) {
- return items;
- }
- if (routes) {
- return routes.map(route2item);
- }
- return null;
- }, [items, routes]);
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
-"use client";
-
-var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-
-
-
-
-
-
-
-const getPath = (params, path) => {
- if (path === undefined) {
- return path;
- }
- let mergedPath = (path || '').replace(/^\//, '');
- Object.keys(params).forEach(key => {
- mergedPath = mergedPath.replace(`:${key}`, params[key]);
- });
- return mergedPath;
-};
-const Breadcrumb = props => {
- const {
- prefixCls: customizePrefixCls,
- separator = '/',
- style,
- className,
- rootClassName,
- routes: legacyRoutes,
- items,
- children,
- itemRender,
- params = {}
- } = props,
- restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
- const {
- getPrefixCls,
- direction,
- breadcrumb
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- let crumbs;
- const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
- const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
- const mergedItems = useItems(items, legacyRoutes);
- if (false) {}
- const mergedItemRender = useItemRender(prefixCls, itemRender);
- if (mergedItems && mergedItems.length > 0) {
- // generated by route
- const paths = [];
- const itemRenderRoutes = items || legacyRoutes;
- crumbs = mergedItems.map((item, index) => {
- const {
- path,
- key,
- type,
- menu,
- overlay,
- onClick,
- className: itemClassName,
- separator: itemSeparator,
- dropdownProps
- } = item;
- const mergedPath = getPath(params, path);
- if (mergedPath !== undefined) {
- paths.push(mergedPath);
- }
- const mergedKey = key !== null && key !== void 0 ? key : index;
- if (type === 'separator') {
- return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
- key: mergedKey
- }, itemSeparator);
- }
- const itemProps = {};
- const isLastItem = index === mergedItems.length - 1;
- if (menu) {
- itemProps.menu = menu;
- } else if (overlay) {
- itemProps.overlay = overlay;
- }
- let {
- href
- } = item;
- if (paths.length && mergedPath !== undefined) {
- href = `#/${paths.join('/')}`;
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
- key: mergedKey
- }, itemProps, (0,pickAttrs/* default */.Z)(item, {
- data: true,
- aria: true
- }), {
- className: itemClassName,
- dropdownProps: dropdownProps,
- href: href,
- separator: isLastItem ? '' : separator,
- onClick: onClick,
- prefixCls: prefixCls
- }), mergedItemRender(item, params, itemRenderRoutes, paths, href));
- });
- } else if (children) {
- const childrenLength = (0,toArray/* default */.Z)(children).length;
- crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
- if (!element) {
- return element;
- }
- // =================== Warning =====================
- if (false) {}
- false ? 0 : void 0;
- const isLastItem = index === childrenLength - 1;
- return (0,reactNode/* cloneElement */.Tm)(element, {
- separator: isLastItem ? '' : separator,
- key: index
- });
- });
- }
- const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
- [`${prefixCls}-rtl`]: direction === 'rtl'
- }, className, rootClassName, hashId);
- const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
- return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
- className: breadcrumbClassName,
- style: mergedStyle
- }, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
-};
-Breadcrumb.Item = breadcrumb_BreadcrumbItem;
-Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
-if (false) {}
-/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
-"use client";
-
-
-/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
-
-/***/ }),
-
-/***/ 28103:
-/*!***********************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
- \***********************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ divider; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
-var _classnames_2_5_1_classnames = __webpack_require__(92310);
-var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
-var context = __webpack_require__(36355);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
-var style = __webpack_require__(17313);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(83116);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(37613);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
-
-
-// ============================== Shared ==============================
-const genSharedDividerStyle = token => {
- const {
- componentCls,
- sizePaddingEdgeHorizontal,
- colorSplit,
- lineWidth,
- textPaddingInline,
- orientationMargin,
- verticalMarginInline
- } = token;
- return {
- [componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
- borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
- // vertical
- '&-vertical': {
- position: 'relative',
- top: '-0.06em',
- display: 'inline-block',
- height: '0.9em',
- marginInline: verticalMarginInline,
- marginBlock: 0,
- verticalAlign: 'middle',
- borderTop: 0,
- borderInlineStart: `${lineWidth}px solid ${colorSplit}`
- },
- '&-horizontal': {
- display: 'flex',
- clear: 'both',
- width: '100%',
- minWidth: '100%',
- margin: `${token.dividerHorizontalGutterMargin}px 0`
- },
- [`&-horizontal${componentCls}-with-text`]: {
- display: 'flex',
- alignItems: 'center',
- margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
- color: token.colorTextHeading,
- fontWeight: 500,
- fontSize: token.fontSizeLG,
- whiteSpace: 'nowrap',
- textAlign: 'center',
- borderBlockStart: `0 ${colorSplit}`,
- '&::before, &::after': {
- position: 'relative',
- width: '50%',
- borderBlockStart: `${lineWidth}px solid transparent`,
- // Chrome not accept `inherit` in `border-top`
- borderBlockStartColor: 'inherit',
- borderBlockEnd: 0,
- transform: 'translateY(50%)',
- content: "''"
- }
- },
- [`&-horizontal${componentCls}-with-text-left`]: {
- '&::before': {
- width: `${orientationMargin * 100}%`
- },
- '&::after': {
- width: `${100 - orientationMargin * 100}%`
- }
- },
- [`&-horizontal${componentCls}-with-text-right`]: {
- '&::before': {
- width: `${100 - orientationMargin * 100}%`
- },
- '&::after': {
- width: `${orientationMargin * 100}%`
- }
- },
- [`${componentCls}-inner-text`]: {
- display: 'inline-block',
- paddingBlock: 0,
- paddingInline: textPaddingInline
- },
- '&-dashed': {
- background: 'none',
- borderColor: colorSplit,
- borderStyle: 'dashed',
- borderWidth: `${lineWidth}px 0 0`
- },
- [`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
- '&::before, &::after': {
- borderStyle: 'dashed none none'
- }
- },
- [`&-vertical${componentCls}-dashed`]: {
- borderInlineStartWidth: lineWidth,
- borderInlineEnd: 0,
- borderBlockStart: 0,
- borderBlockEnd: 0
- },
- [`&-plain${componentCls}-with-text`]: {
- color: token.colorText,
- fontWeight: 'normal',
- fontSize: token.fontSize
- },
- [`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
- '&::before': {
- width: 0
- },
- '&::after': {
- width: '100%'
- },
- [`${componentCls}-inner-text`]: {
- paddingInlineStart: sizePaddingEdgeHorizontal
- }
- },
- [`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
- '&::before': {
- width: '100%'
- },
- '&::after': {
- width: 0
- },
- [`${componentCls}-inner-text`]: {
- paddingInlineEnd: sizePaddingEdgeHorizontal
- }
- }
- })
- };
-};
-// ============================== Export ==============================
-/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
- const dividerToken = (0,statistic/* merge */.TS)(token, {
- dividerHorizontalWithTextGutterMargin: token.margin,
- dividerHorizontalGutterMargin: token.marginLG,
- sizePaddingEdgeHorizontal: 0
- });
- return [genSharedDividerStyle(dividerToken)];
-}, token => ({
- textPaddingInline: '1em',
- orientationMargin: 0.05,
- verticalMarginInline: token.marginXS
-})));
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
-"use client";
-
-var __rest = undefined && undefined.__rest || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
-};
-
-
-
-
-
-const Divider = props => {
- const {
- getPrefixCls,
- direction,
- divider
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- const {
- prefixCls: customizePrefixCls,
- type = 'horizontal',
- orientation = 'center',
- orientationMargin,
- className,
- rootClassName,
- children,
- dashed,
- plain,
- style
- } = props,
- restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
- const prefixCls = getPrefixCls('divider', customizePrefixCls);
- const [wrapSSR, hashId] = divider_style(prefixCls);
- const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
- const hasChildren = !!children;
- const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
- const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
- const classString = _classnames_2_5_1_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
- [`${prefixCls}-with-text`]: hasChildren,
- [`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
- [`${prefixCls}-dashed`]: !!dashed,
- [`${prefixCls}-plain`]: !!plain,
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
- [`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
- }, className, rootClassName);
- const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
- if (typeof orientationMargin === 'number') {
- return orientationMargin;
- }
- if (/^\d+$/.test(orientationMargin)) {
- return Number(orientationMargin);
- }
- return orientationMargin;
- }, [orientationMargin]);
- const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
- marginLeft: memoizedOrientationMargin
- }), hasCustomMarginRight && {
- marginRight: memoizedOrientationMargin
- });
- // Warning children not work in vertical mode
- if (false) {}
- return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
- className: classString,
- style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
- }, restProps, {
- role: "separator"
- }), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
- className: `${prefixCls}-inner-text`,
- style: innerStyle
- }, children)));
-};
-if (false) {}
-/* harmony default export */ var divider = (Divider);
-
-/***/ }),
-
/***/ 39722:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/popover/PurePanel.js ***!
diff --git a/90339.74568601.async.js b/78672.9407c58a.async.js
similarity index 97%
rename from 90339.74568601.async.js
rename to 78672.9407c58a.async.js
index 545aca0c45..67a65f42ce 100644
--- a/90339.74568601.async.js
+++ b/78672.9407c58a.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[90339],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[78672],{
/***/ 21771:
/*!*******************************************************************!*\
@@ -10876,6 +10876,246 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
}
+/***/ }),
+
+/***/ 24334:
+/*!***********************************************************!*\
+ !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
+ \***********************************************************/
+/***/ (function(module, exports, __webpack_require__) {
+
+var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
+ * base64.js
+ *
+ * Licensed under the BSD 3-Clause License.
+ * http://opensource.org/licenses/BSD-3-Clause
+ *
+ * References:
+ * http://en.wikipedia.org/wiki/Base64
+ */
+;(function (global, factory) {
+ true
+ ? module.exports = factory(global)
+ : 0
+}((
+ typeof self !== 'undefined' ? self
+ : typeof window !== 'undefined' ? window
+ : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
+: this
+), function(global) {
+ 'use strict';
+ // existing version for noConflict()
+ global = global || {};
+ var _Base64 = global.Base64;
+ var version = "2.6.4";
+ // constants
+ var b64chars
+ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
+ var b64tab = function(bin) {
+ var t = {};
+ for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
+ return t;
+ }(b64chars);
+ var fromCharCode = String.fromCharCode;
+ // encoder stuff
+ var cb_utob = function(c) {
+ if (c.length < 2) {
+ var cc = c.charCodeAt(0);
+ return cc < 0x80 ? c
+ : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
+ + fromCharCode(0x80 | (cc & 0x3f)))
+ : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ } else {
+ var cc = 0x10000
+ + (c.charCodeAt(0) - 0xD800) * 0x400
+ + (c.charCodeAt(1) - 0xDC00);
+ return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
+ + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
+ + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
+ + fromCharCode(0x80 | ( cc & 0x3f)));
+ }
+ };
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
+ var utob = function(u) {
+ return u.replace(re_utob, cb_utob);
+ };
+ var cb_encode = function(ccc) {
+ var padlen = [0, 2, 1][ccc.length % 3],
+ ord = ccc.charCodeAt(0) << 16
+ | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
+ | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
+ chars = [
+ b64chars.charAt( ord >>> 18),
+ b64chars.charAt((ord >>> 12) & 63),
+ padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
+ padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
+ ];
+ return chars.join('');
+ };
+ var btoa = global.btoa && typeof global.btoa == 'function'
+ ? function(b){ return global.btoa(b) } : function(b) {
+ if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
+ 'The string contains invalid characters.'
+ );
+ return b.replace(/[\s\S]{1,3}/g, cb_encode);
+ };
+ var _encode = function(u) {
+ return btoa(utob(String(u)));
+ };
+ var mkUriSafe = function (b64) {
+ return b64.replace(/[+\/]/g, function(m0) {
+ return m0 == '+' ? '-' : '_';
+ }).replace(/=/g, '');
+ };
+ var encode = function(u, urisafe) {
+ return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
+ };
+ var encodeURI = function(u) { return encode(u, true) };
+ var fromUint8Array;
+ if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
+ // return btoa(fromCharCode.apply(null, a));
+ var b64 = '';
+ for (var i = 0, l = a.length; i < l; i += 3) {
+ var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
+ var ord = a0 << 16 | a1 << 8 | a2;
+ b64 += b64chars.charAt( ord >>> 18)
+ + b64chars.charAt((ord >>> 12) & 63)
+ + ( typeof a1 != 'undefined'
+ ? b64chars.charAt((ord >>> 6) & 63) : '=')
+ + ( typeof a2 != 'undefined'
+ ? b64chars.charAt( ord & 63) : '=');
+ }
+ return urisafe ? mkUriSafe(b64) : b64;
+ };
+ // decoder stuff
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
+ var cb_btou = function(cccc) {
+ switch(cccc.length) {
+ case 4:
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
+ | (0x3f & cccc.charCodeAt(3)),
+ offset = cp - 0x10000;
+ return (fromCharCode((offset >>> 10) + 0xD800)
+ + fromCharCode((offset & 0x3FF) + 0xDC00));
+ case 3:
+ return fromCharCode(
+ ((0x0f & cccc.charCodeAt(0)) << 12)
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
+ | (0x3f & cccc.charCodeAt(2))
+ );
+ default:
+ return fromCharCode(
+ ((0x1f & cccc.charCodeAt(0)) << 6)
+ | (0x3f & cccc.charCodeAt(1))
+ );
+ }
+ };
+ var btou = function(b) {
+ return b.replace(re_btou, cb_btou);
+ };
+ var cb_decode = function(cccc) {
+ var len = cccc.length,
+ padlen = len % 4,
+ n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
+ | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
+ | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
+ | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
+ chars = [
+ fromCharCode( n >>> 16),
+ fromCharCode((n >>> 8) & 0xff),
+ fromCharCode( n & 0xff)
+ ];
+ chars.length -= [0, 0, 2, 1][padlen];
+ return chars.join('');
+ };
+ var _atob = global.atob && typeof global.atob == 'function'
+ ? function(a){ return global.atob(a) } : function(a){
+ return a.replace(/\S{1,4}/g, cb_decode);
+ };
+ var atob = function(a) {
+ return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
+ };
+ var _decode = function(a) { return btou(_atob(a)) };
+ var _fromURI = function(a) {
+ return String(a).replace(/[-_]/g, function(m0) {
+ return m0 == '-' ? '+' : '/'
+ }).replace(/[^A-Za-z0-9\+\/]/g, '');
+ };
+ var decode = function(a){
+ return _decode(_fromURI(a));
+ };
+ var toUint8Array;
+ if (global.Uint8Array) toUint8Array = function(a) {
+ return Uint8Array.from(atob(_fromURI(a)), function(c) {
+ return c.charCodeAt(0);
+ });
+ };
+ var noConflict = function() {
+ var Base64 = global.Base64;
+ global.Base64 = _Base64;
+ return Base64;
+ };
+ // export Base64
+ global.Base64 = {
+ VERSION: version,
+ atob: atob,
+ btoa: btoa,
+ fromBase64: decode,
+ toBase64: encode,
+ utob: utob,
+ encode: encode,
+ encodeURI: encodeURI,
+ btou: btou,
+ decode: decode,
+ noConflict: noConflict,
+ fromUint8Array: fromUint8Array,
+ toUint8Array: toUint8Array
+ };
+ // if ES5 is available, make Base64.extendString() available
+ if (typeof Object.defineProperty === 'function') {
+ var noEnum = function(v){
+ return {value:v,enumerable:false,writable:true,configurable:true};
+ };
+ global.Base64.extendString = function () {
+ Object.defineProperty(
+ String.prototype, 'fromBase64', noEnum(function () {
+ return decode(this)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64', noEnum(function (urisafe) {
+ return encode(this, urisafe)
+ }));
+ Object.defineProperty(
+ String.prototype, 'toBase64URI', noEnum(function () {
+ return encode(this, true)
+ }));
+ };
+ }
+ //
+ // export Base64 to the namespace
+ //
+ if (global['Meteor']) { // Meteor.js
+ Base64 = global.Base64;
+ }
+ // module.exports and AMD are mutually exclusive.
+ // module.exports has precedence.
+ if ( true && module.exports) {
+ module.exports.Base64 = global.Base64;
+ }
+ else if (true) {
+ // AMD. Register as an anonymous module.
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+ }
+ // that's it!
+ return {Base64: global.Base64}
+}));
+
+
/***/ }),
/***/ 82059:
diff --git a/8976.50e2b73f.async.js b/79552.7e6603fd.async.js
similarity index 99%
rename from 8976.50e2b73f.async.js
rename to 79552.7e6603fd.async.js
index 2299cd68ce..0e31b2114b 100644
--- a/8976.50e2b73f.async.js
+++ b/79552.7e6603fd.async.js
@@ -1,8 +1,8 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[8976],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[79552],{
-/***/ 83155:
+/***/ 11271:
/*!******************************************************************!*\
- !*** ./node_modules/_cropperjs@1.6.1@cropperjs/dist/cropper.css ***!
+ !*** ./node_modules/_cropperjs@1.6.2@cropperjs/dist/cropper.css ***!
\******************************************************************/
/***/ (function() {
@@ -12,20 +12,20 @@
/***/ }),
-/***/ 93013:
+/***/ 21639:
/*!*****************************************************************!*\
- !*** ./node_modules/_cropperjs@1.6.1@cropperjs/dist/cropper.js ***!
+ !*** ./node_modules/_cropperjs@1.6.2@cropperjs/dist/cropper.js ***!
\*****************************************************************/
/***/ (function(module) {
/*!
- * Cropper.js v1.6.1
+ * Cropper.js v1.6.2
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
- * Date: 2023-09-17T03:44:19.860Z
+ * Date: 2024-04-21T07:43:05.335Z
*/
(function (global, factory) {
@@ -54,6 +54,20 @@
}
return e;
}
+ function _toPrimitive(t, r) {
+ if ("object" != typeof t || !t) return t;
+ var e = t[Symbol.toPrimitive];
+ if (void 0 !== e) {
+ var i = e.call(t, r || "default");
+ if ("object" != typeof i) return i;
+ throw new TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return ("string" === r ? String : Number)(t);
+ }
+ function _toPropertyKey(t) {
+ var i = _toPrimitive(t, "string");
+ return "symbol" == typeof i ? i : i + "";
+ }
function _typeof(o) {
"@babel/helpers - typeof";
@@ -124,20 +138,6 @@
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
- function _toPrimitive(input, hint) {
- if (typeof input !== "object" || input === null) return input;
- var prim = input[Symbol.toPrimitive];
- if (prim !== undefined) {
- var res = prim.call(input, hint || "default");
- if (typeof res !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
- return (hint === "string" ? String : Number)(input);
- }
- function _toPropertyKey(arg) {
- var key = _toPrimitive(arg, "string");
- return typeof key === "symbol" ? key : String(key);
- }
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
var WINDOW = IS_BROWSER ? window : {};
@@ -2937,7 +2937,7 @@
this.sizing = false;
this.init();
}
- _createClass(Cropper, [{
+ return _createClass(Cropper, [{
key: "init",
value: function init() {
var element = this.element;
@@ -3284,7 +3284,6 @@
assign(DEFAULTS, isPlainObject(options) && options);
}
}]);
- return Cropper;
}();
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
@@ -3314,7 +3313,7 @@ var _react = _interopRequireWildcard(__webpack_require__(/*! react */ 59301));
var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 12708));
-var _cropperjs = _interopRequireDefault(__webpack_require__(/*! cropperjs */ 93013));
+var _cropperjs = _interopRequireDefault(__webpack_require__(/*! cropperjs */ 21639));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
diff --git a/72032.1eeee836.async.js b/82219.2b9882b6.async.js
similarity index 78%
rename from 72032.1eeee836.async.js
rename to 82219.2b9882b6.async.js
index ee8f406d46..d68187ee44 100644
--- a/72032.1eeee836.async.js
+++ b/82219.2b9882b6.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[72032],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[82219],{
/***/ 18889:
/*!********************************************************************!*\
@@ -743,246 +743,6 @@ function copy(text, options) {
module.exports = copy;
-/***/ }),
-
-/***/ 24334:
-/*!***********************************************************!*\
- !*** ./node_modules/_js-base64@2.6.4@js-base64/base64.js ***!
- \***********************************************************/
-/***/ (function(module, exports, __webpack_require__) {
-
-var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
- * base64.js
- *
- * Licensed under the BSD 3-Clause License.
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * References:
- * http://en.wikipedia.org/wiki/Base64
- */
-;(function (global, factory) {
- true
- ? module.exports = factory(global)
- : 0
-}((
- typeof self !== 'undefined' ? self
- : typeof window !== 'undefined' ? window
- : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g
-: this
-), function(global) {
- 'use strict';
- // existing version for noConflict()
- global = global || {};
- var _Base64 = global.Base64;
- var version = "2.6.4";
- // constants
- var b64chars
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- var b64tab = function(bin) {
- var t = {};
- for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
- return t;
- }(b64chars);
- var fromCharCode = String.fromCharCode;
- // encoder stuff
- var cb_utob = function(c) {
- if (c.length < 2) {
- var cc = c.charCodeAt(0);
- return cc < 0x80 ? c
- : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
- + fromCharCode(0x80 | (cc & 0x3f)))
- : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- } else {
- var cc = 0x10000
- + (c.charCodeAt(0) - 0xD800) * 0x400
- + (c.charCodeAt(1) - 0xDC00);
- return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
- + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- }
- };
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
- var utob = function(u) {
- return u.replace(re_utob, cb_utob);
- };
- var cb_encode = function(ccc) {
- var padlen = [0, 2, 1][ccc.length % 3],
- ord = ccc.charCodeAt(0) << 16
- | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
- | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
- chars = [
- b64chars.charAt( ord >>> 18),
- b64chars.charAt((ord >>> 12) & 63),
- padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
- padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
- ];
- return chars.join('');
- };
- var btoa = global.btoa && typeof global.btoa == 'function'
- ? function(b){ return global.btoa(b) } : function(b) {
- if (b.match(/[^\x00-\xFF]/)) throw new RangeError(
- 'The string contains invalid characters.'
- );
- return b.replace(/[\s\S]{1,3}/g, cb_encode);
- };
- var _encode = function(u) {
- return btoa(utob(String(u)));
- };
- var mkUriSafe = function (b64) {
- return b64.replace(/[+\/]/g, function(m0) {
- return m0 == '+' ? '-' : '_';
- }).replace(/=/g, '');
- };
- var encode = function(u, urisafe) {
- return urisafe ? mkUriSafe(_encode(u)) : _encode(u);
- };
- var encodeURI = function(u) { return encode(u, true) };
- var fromUint8Array;
- if (global.Uint8Array) fromUint8Array = function(a, urisafe) {
- // return btoa(fromCharCode.apply(null, a));
- var b64 = '';
- for (var i = 0, l = a.length; i < l; i += 3) {
- var a0 = a[i], a1 = a[i+1], a2 = a[i+2];
- var ord = a0 << 16 | a1 << 8 | a2;
- b64 += b64chars.charAt( ord >>> 18)
- + b64chars.charAt((ord >>> 12) & 63)
- + ( typeof a1 != 'undefined'
- ? b64chars.charAt((ord >>> 6) & 63) : '=')
- + ( typeof a2 != 'undefined'
- ? b64chars.charAt( ord & 63) : '=');
- }
- return urisafe ? mkUriSafe(b64) : b64;
- };
- // decoder stuff
- var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
- var cb_btou = function(cccc) {
- switch(cccc.length) {
- case 4:
- var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
- | ((0x3f & cccc.charCodeAt(1)) << 12)
- | ((0x3f & cccc.charCodeAt(2)) << 6)
- | (0x3f & cccc.charCodeAt(3)),
- offset = cp - 0x10000;
- return (fromCharCode((offset >>> 10) + 0xD800)
- + fromCharCode((offset & 0x3FF) + 0xDC00));
- case 3:
- return fromCharCode(
- ((0x0f & cccc.charCodeAt(0)) << 12)
- | ((0x3f & cccc.charCodeAt(1)) << 6)
- | (0x3f & cccc.charCodeAt(2))
- );
- default:
- return fromCharCode(
- ((0x1f & cccc.charCodeAt(0)) << 6)
- | (0x3f & cccc.charCodeAt(1))
- );
- }
- };
- var btou = function(b) {
- return b.replace(re_btou, cb_btou);
- };
- var cb_decode = function(cccc) {
- var len = cccc.length,
- padlen = len % 4,
- n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
- | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
- | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
- | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
- chars = [
- fromCharCode( n >>> 16),
- fromCharCode((n >>> 8) & 0xff),
- fromCharCode( n & 0xff)
- ];
- chars.length -= [0, 0, 2, 1][padlen];
- return chars.join('');
- };
- var _atob = global.atob && typeof global.atob == 'function'
- ? function(a){ return global.atob(a) } : function(a){
- return a.replace(/\S{1,4}/g, cb_decode);
- };
- var atob = function(a) {
- return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
- };
- var _decode = function(a) { return btou(_atob(a)) };
- var _fromURI = function(a) {
- return String(a).replace(/[-_]/g, function(m0) {
- return m0 == '-' ? '+' : '/'
- }).replace(/[^A-Za-z0-9\+\/]/g, '');
- };
- var decode = function(a){
- return _decode(_fromURI(a));
- };
- var toUint8Array;
- if (global.Uint8Array) toUint8Array = function(a) {
- return Uint8Array.from(atob(_fromURI(a)), function(c) {
- return c.charCodeAt(0);
- });
- };
- var noConflict = function() {
- var Base64 = global.Base64;
- global.Base64 = _Base64;
- return Base64;
- };
- // export Base64
- global.Base64 = {
- VERSION: version,
- atob: atob,
- btoa: btoa,
- fromBase64: decode,
- toBase64: encode,
- utob: utob,
- encode: encode,
- encodeURI: encodeURI,
- btou: btou,
- decode: decode,
- noConflict: noConflict,
- fromUint8Array: fromUint8Array,
- toUint8Array: toUint8Array
- };
- // if ES5 is available, make Base64.extendString() available
- if (typeof Object.defineProperty === 'function') {
- var noEnum = function(v){
- return {value:v,enumerable:false,writable:true,configurable:true};
- };
- global.Base64.extendString = function () {
- Object.defineProperty(
- String.prototype, 'fromBase64', noEnum(function () {
- return decode(this)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64', noEnum(function (urisafe) {
- return encode(this, urisafe)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64URI', noEnum(function () {
- return encode(this, true)
- }));
- };
- }
- //
- // export Base64 to the namespace
- //
- if (global['Meteor']) { // Meteor.js
- Base64 = global.Base64;
- }
- // module.exports and AMD are mutually exclusive.
- // module.exports has precedence.
- if ( true && module.exports) {
- module.exports.Base64 = global.Base64;
- }
- else if (true) {
- // AMD. Register as an anonymous module.
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function(){ return global.Base64 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
- }
- // that's it!
- return {Base64: global.Base64}
-}));
-
-
/***/ }),
/***/ 83145:
diff --git a/index.html b/index.html
index 31db8f423c..7cbffb8f8a 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
display: block !important;
}
-
+