parent
6dec7115ca
commit
2372d78fc5
@ -1,632 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10097,72246],{
|
||||
|
||||
/***/ 22596:
|
||||
/*!***********************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
|
||||
\***********************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ArrowLeftOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/ArrowLeftOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ArrowLeftOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ArrowLeftOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ArrowLeftOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20360:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules ***!
|
||||
\********************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_DeleteOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/DeleteOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var DeleteOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_DeleteOutlined = (DeleteOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DeleteOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var DeleteOutlined_DeleteOutlined = function DeleteOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DeleteOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DeleteOutlined_DeleteOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DeleteOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 62426:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LikeOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_LikeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/LikeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LikeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" } }] }, "name": "like", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LikeOutlined = (LikeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LikeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LikeOutlined_LikeOutlined = function LikeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LikeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LikeOutlined_LikeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LikeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66104:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ breadcrumb; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(47413);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(43501);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbSeparator.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const BreadcrumbSeparator = _ref => {
|
||||
let {
|
||||
children
|
||||
} = _ref;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb');
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("li", {
|
||||
className: `${prefixCls}-separator`,
|
||||
"aria-hidden": "true"
|
||||
}, children === '' ? children : children || '/');
|
||||
};
|
||||
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
||||
/* harmony default export */ var breadcrumb_BreadcrumbSeparator = (BreadcrumbSeparator);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItemRender.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
function getBreadcrumbName(route, params) {
|
||||
if (route.title === undefined || route.title === null) {
|
||||
return null;
|
||||
}
|
||||
const paramsKeys = Object.keys(params).join('|');
|
||||
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
|
||||
}
|
||||
function renderItem(prefixCls, item, children, href) {
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
const {
|
||||
className,
|
||||
onClick
|
||||
} = item,
|
||||
restItem = __rest(item, ["className", "onClick"]);
|
||||
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
|
||||
data: true,
|
||||
aria: true
|
||||
})), {
|
||||
onClick
|
||||
});
|
||||
if (href !== undefined) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("a", Object.assign({}, passedProps, {
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className),
|
||||
href: href
|
||||
}), children);
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("span", Object.assign({}, passedProps, {
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-link`, className)
|
||||
}), children);
|
||||
}
|
||||
function useItemRender(prefixCls, itemRender) {
|
||||
const mergedItemRender = (item, params, routes, path, href) => {
|
||||
if (itemRender) {
|
||||
return itemRender(item, params, routes, path);
|
||||
}
|
||||
const name = getBreadcrumbName(item, params);
|
||||
return renderItem(prefixCls, item, name, href);
|
||||
};
|
||||
return mergedItemRender;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/BreadcrumbItem.js
|
||||
"use client";
|
||||
|
||||
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const InternalBreadcrumbItem = props => {
|
||||
const {
|
||||
prefixCls,
|
||||
separator = '/',
|
||||
children,
|
||||
menu,
|
||||
overlay,
|
||||
dropdownProps,
|
||||
href
|
||||
} = props;
|
||||
// Warning for deprecated usage
|
||||
if (false) {}
|
||||
/** If overlay is have Wrap a Dropdown */
|
||||
const renderBreadcrumbNode = breadcrumbItem => {
|
||||
if (menu || overlay) {
|
||||
const mergeDropDownProps = Object.assign({}, dropdownProps);
|
||||
if (menu) {
|
||||
const _a = menu || {},
|
||||
{
|
||||
items
|
||||
} = _a,
|
||||
menuProps = BreadcrumbItem_rest(_a, ["items"]);
|
||||
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
||||
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
|
||||
var {
|
||||
key,
|
||||
title,
|
||||
label,
|
||||
path
|
||||
} = _a,
|
||||
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
|
||||
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
||||
if (path) {
|
||||
mergedLabel = /*#__PURE__*/_react_17_0_2_react.createElement("a", {
|
||||
href: `${href}${path}`
|
||||
}, mergedLabel);
|
||||
}
|
||||
return Object.assign(Object.assign({}, itemProps), {
|
||||
key: key !== null && key !== void 0 ? key : index,
|
||||
label: mergedLabel
|
||||
});
|
||||
})
|
||||
});
|
||||
} else if (overlay) {
|
||||
mergeDropDownProps.overlay = overlay;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({
|
||||
placement: "bottom"
|
||||
}, mergeDropDownProps), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-overlay-link`
|
||||
}, breadcrumbItem, /*#__PURE__*/_react_17_0_2_react.createElement(DownOutlined/* default */.Z, null)));
|
||||
}
|
||||
return breadcrumbItem;
|
||||
};
|
||||
// wrap to dropDown
|
||||
const link = renderBreadcrumbNode(children);
|
||||
if (link !== undefined && link !== null) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("li", null, link), separator && /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, null, separator));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const BreadcrumbItem = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
children,
|
||||
href
|
||||
} = props,
|
||||
restProps = BreadcrumbItem_rest(props, ["prefixCls", "children", "href"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({}, restProps, {
|
||||
prefixCls: prefixCls
|
||||
}), renderItem(prefixCls, restProps, children, href));
|
||||
};
|
||||
BreadcrumbItem.__ANT_BREADCRUMB_ITEM = true;
|
||||
/* harmony default export */ var breadcrumb_BreadcrumbItem = (BreadcrumbItem);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
|
||||
var style = __webpack_require__(17313);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(83116);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(37613);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/style/index.js
|
||||
|
||||
|
||||
const genBreadcrumbStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
iconCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
color: token.itemColor,
|
||||
fontSize: token.fontSize,
|
||||
[iconCls]: {
|
||||
fontSize: token.iconFontSize
|
||||
},
|
||||
ol: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
listStyle: 'none'
|
||||
},
|
||||
a: Object.assign({
|
||||
color: token.linkColor,
|
||||
transition: `color ${token.motionDurationMid}`,
|
||||
padding: `0 ${token.paddingXXS}px`,
|
||||
borderRadius: token.borderRadiusSM,
|
||||
height: token.lineHeight * token.fontSize,
|
||||
display: 'inline-block',
|
||||
marginInline: -token.marginXXS,
|
||||
'&:hover': {
|
||||
color: token.linkHoverColor,
|
||||
backgroundColor: token.colorBgTextHover
|
||||
}
|
||||
}, (0,style/* genFocusStyle */.Qy)(token)),
|
||||
[`li:last-child`]: {
|
||||
color: token.lastItemColor
|
||||
},
|
||||
[`${componentCls}-separator`]: {
|
||||
marginInline: token.separatorMargin,
|
||||
color: token.separatorColor
|
||||
},
|
||||
[`${componentCls}-link`]: {
|
||||
[`
|
||||
> ${iconCls} + span,
|
||||
> ${iconCls} + a
|
||||
`]: {
|
||||
marginInlineStart: token.marginXXS
|
||||
}
|
||||
},
|
||||
[`${componentCls}-overlay-link`]: {
|
||||
borderRadius: token.borderRadiusSM,
|
||||
height: token.lineHeight * token.fontSize,
|
||||
display: 'inline-block',
|
||||
padding: `0 ${token.paddingXXS}px`,
|
||||
marginInline: -token.marginXXS,
|
||||
[`> ${iconCls}`]: {
|
||||
marginInlineStart: token.marginXXS,
|
||||
fontSize: token.fontSizeIcon
|
||||
},
|
||||
'&:hover': {
|
||||
color: token.linkHoverColor,
|
||||
backgroundColor: token.colorBgTextHover,
|
||||
a: {
|
||||
color: token.linkHoverColor
|
||||
}
|
||||
},
|
||||
a: {
|
||||
'&:hover': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
// rtl style
|
||||
[`&${token.componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var breadcrumb_style = ((0,genComponentStyleHook/* default */.Z)('Breadcrumb', token => {
|
||||
const BreadcrumbToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genBreadcrumbStyle(BreadcrumbToken)];
|
||||
}, token => ({
|
||||
itemColor: token.colorTextDescription,
|
||||
lastItemColor: token.colorText,
|
||||
iconFontSize: token.fontSize,
|
||||
linkColor: token.colorTextDescription,
|
||||
linkHoverColor: token.colorText,
|
||||
separatorColor: token.colorTextDescription,
|
||||
separatorMargin: token.marginXS
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/useItems.js
|
||||
var useItems_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
function route2item(route) {
|
||||
const {
|
||||
breadcrumbName,
|
||||
children
|
||||
} = route,
|
||||
rest = useItems_rest(route, ["breadcrumbName", "children"]);
|
||||
const clone = Object.assign({
|
||||
title: breadcrumbName
|
||||
}, rest);
|
||||
if (children) {
|
||||
clone.menu = {
|
||||
items: children.map(_a => {
|
||||
var {
|
||||
breadcrumbName: itemBreadcrumbName
|
||||
} = _a,
|
||||
itemProps = useItems_rest(_a, ["breadcrumbName"]);
|
||||
return Object.assign(Object.assign({}, itemProps), {
|
||||
title: itemBreadcrumbName
|
||||
});
|
||||
})
|
||||
};
|
||||
}
|
||||
return clone;
|
||||
}
|
||||
function useItems(items, routes) {
|
||||
return (0,_react_17_0_2_react.useMemo)(() => {
|
||||
if (items) {
|
||||
return items;
|
||||
}
|
||||
if (routes) {
|
||||
return routes.map(route2item);
|
||||
}
|
||||
return null;
|
||||
}, [items, routes]);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/Breadcrumb.js
|
||||
"use client";
|
||||
|
||||
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const getPath = (params, path) => {
|
||||
if (path === undefined) {
|
||||
return path;
|
||||
}
|
||||
let mergedPath = (path || '').replace(/^\//, '');
|
||||
Object.keys(params).forEach(key => {
|
||||
mergedPath = mergedPath.replace(`:${key}`, params[key]);
|
||||
});
|
||||
return mergedPath;
|
||||
};
|
||||
const Breadcrumb = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
separator = '/',
|
||||
style,
|
||||
className,
|
||||
rootClassName,
|
||||
routes: legacyRoutes,
|
||||
items,
|
||||
children,
|
||||
itemRender,
|
||||
params = {}
|
||||
} = props,
|
||||
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
breadcrumb
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
let crumbs;
|
||||
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = breadcrumb_style(prefixCls);
|
||||
const mergedItems = useItems(items, legacyRoutes);
|
||||
if (false) {}
|
||||
const mergedItemRender = useItemRender(prefixCls, itemRender);
|
||||
if (mergedItems && mergedItems.length > 0) {
|
||||
// generated by route
|
||||
const paths = [];
|
||||
const itemRenderRoutes = items || legacyRoutes;
|
||||
crumbs = mergedItems.map((item, index) => {
|
||||
const {
|
||||
path,
|
||||
key,
|
||||
type,
|
||||
menu,
|
||||
overlay,
|
||||
onClick,
|
||||
className: itemClassName,
|
||||
separator: itemSeparator,
|
||||
dropdownProps
|
||||
} = item;
|
||||
const mergedPath = getPath(params, path);
|
||||
if (mergedPath !== undefined) {
|
||||
paths.push(mergedPath);
|
||||
}
|
||||
const mergedKey = key !== null && key !== void 0 ? key : index;
|
||||
if (type === 'separator') {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(breadcrumb_BreadcrumbSeparator, {
|
||||
key: mergedKey
|
||||
}, itemSeparator);
|
||||
}
|
||||
const itemProps = {};
|
||||
const isLastItem = index === mergedItems.length - 1;
|
||||
if (menu) {
|
||||
itemProps.menu = menu;
|
||||
} else if (overlay) {
|
||||
itemProps.overlay = overlay;
|
||||
}
|
||||
let {
|
||||
href
|
||||
} = item;
|
||||
if (paths.length && mergedPath !== undefined) {
|
||||
href = `#/${paths.join('/')}`;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(InternalBreadcrumbItem, Object.assign({
|
||||
key: mergedKey
|
||||
}, itemProps, (0,pickAttrs/* default */.Z)(item, {
|
||||
data: true,
|
||||
aria: true
|
||||
}), {
|
||||
className: itemClassName,
|
||||
dropdownProps: dropdownProps,
|
||||
href: href,
|
||||
separator: isLastItem ? '' : separator,
|
||||
onClick: onClick,
|
||||
prefixCls: prefixCls
|
||||
}), mergedItemRender(item, params, itemRenderRoutes, paths, href));
|
||||
});
|
||||
} else if (children) {
|
||||
const childrenLength = (0,toArray/* default */.Z)(children).length;
|
||||
crumbs = (0,toArray/* default */.Z)(children).map((element, index) => {
|
||||
if (!element) {
|
||||
return element;
|
||||
}
|
||||
// =================== Warning =====================
|
||||
if (false) {}
|
||||
false ? 0 : void 0;
|
||||
const isLastItem = index === childrenLength - 1;
|
||||
return (0,reactNode/* cloneElement */.Tm)(element, {
|
||||
separator: isLastItem ? '' : separator,
|
||||
key: index
|
||||
});
|
||||
});
|
||||
}
|
||||
const breadcrumbClassName = _classnames_2_5_1_classnames_default()(prefixCls, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.className, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName, hashId);
|
||||
const mergedStyle = Object.assign(Object.assign({}, breadcrumb === null || breadcrumb === void 0 ? void 0 : breadcrumb.style), style);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("nav", Object.assign({
|
||||
className: breadcrumbClassName,
|
||||
style: mergedStyle
|
||||
}, restProps), /*#__PURE__*/_react_17_0_2_react.createElement("ol", null, crumbs)));
|
||||
};
|
||||
Breadcrumb.Item = breadcrumb_BreadcrumbItem;
|
||||
Breadcrumb.Separator = breadcrumb_BreadcrumbSeparator;
|
||||
if (false) {}
|
||||
/* harmony default export */ var breadcrumb_Breadcrumb = (Breadcrumb);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -1,873 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[10354],{
|
||||
|
||||
/***/ 10354:
|
||||
/*!********************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/sql/sql.js ***!
|
||||
\********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '--',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.sql',
|
||||
ignoreCase: true,
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' }
|
||||
],
|
||||
keywords: [
|
||||
// This list is generated using `keywords.js`
|
||||
'ABORT',
|
||||
'ABSOLUTE',
|
||||
'ACTION',
|
||||
'ADA',
|
||||
'ADD',
|
||||
'AFTER',
|
||||
'ALL',
|
||||
'ALLOCATE',
|
||||
'ALTER',
|
||||
'ALWAYS',
|
||||
'ANALYZE',
|
||||
'AND',
|
||||
'ANY',
|
||||
'ARE',
|
||||
'AS',
|
||||
'ASC',
|
||||
'ASSERTION',
|
||||
'AT',
|
||||
'ATTACH',
|
||||
'AUTHORIZATION',
|
||||
'AUTOINCREMENT',
|
||||
'AVG',
|
||||
'BACKUP',
|
||||
'BEFORE',
|
||||
'BEGIN',
|
||||
'BETWEEN',
|
||||
'BIT',
|
||||
'BIT_LENGTH',
|
||||
'BOTH',
|
||||
'BREAK',
|
||||
'BROWSE',
|
||||
'BULK',
|
||||
'BY',
|
||||
'CASCADE',
|
||||
'CASCADED',
|
||||
'CASE',
|
||||
'CAST',
|
||||
'CATALOG',
|
||||
'CHAR',
|
||||
'CHARACTER',
|
||||
'CHARACTER_LENGTH',
|
||||
'CHAR_LENGTH',
|
||||
'CHECK',
|
||||
'CHECKPOINT',
|
||||
'CLOSE',
|
||||
'CLUSTERED',
|
||||
'COALESCE',
|
||||
'COLLATE',
|
||||
'COLLATION',
|
||||
'COLUMN',
|
||||
'COMMIT',
|
||||
'COMPUTE',
|
||||
'CONFLICT',
|
||||
'CONNECT',
|
||||
'CONNECTION',
|
||||
'CONSTRAINT',
|
||||
'CONSTRAINTS',
|
||||
'CONTAINS',
|
||||
'CONTAINSTABLE',
|
||||
'CONTINUE',
|
||||
'CONVERT',
|
||||
'CORRESPONDING',
|
||||
'COUNT',
|
||||
'CREATE',
|
||||
'CROSS',
|
||||
'CURRENT',
|
||||
'CURRENT_DATE',
|
||||
'CURRENT_TIME',
|
||||
'CURRENT_TIMESTAMP',
|
||||
'CURRENT_USER',
|
||||
'CURSOR',
|
||||
'DATABASE',
|
||||
'DATE',
|
||||
'DAY',
|
||||
'DBCC',
|
||||
'DEALLOCATE',
|
||||
'DEC',
|
||||
'DECIMAL',
|
||||
'DECLARE',
|
||||
'DEFAULT',
|
||||
'DEFERRABLE',
|
||||
'DEFERRED',
|
||||
'DELETE',
|
||||
'DENY',
|
||||
'DESC',
|
||||
'DESCRIBE',
|
||||
'DESCRIPTOR',
|
||||
'DETACH',
|
||||
'DIAGNOSTICS',
|
||||
'DISCONNECT',
|
||||
'DISK',
|
||||
'DISTINCT',
|
||||
'DISTRIBUTED',
|
||||
'DO',
|
||||
'DOMAIN',
|
||||
'DOUBLE',
|
||||
'DROP',
|
||||
'DUMP',
|
||||
'EACH',
|
||||
'ELSE',
|
||||
'END',
|
||||
'END-EXEC',
|
||||
'ERRLVL',
|
||||
'ESCAPE',
|
||||
'EXCEPT',
|
||||
'EXCEPTION',
|
||||
'EXCLUDE',
|
||||
'EXCLUSIVE',
|
||||
'EXEC',
|
||||
'EXECUTE',
|
||||
'EXISTS',
|
||||
'EXIT',
|
||||
'EXPLAIN',
|
||||
'EXTERNAL',
|
||||
'EXTRACT',
|
||||
'FAIL',
|
||||
'FALSE',
|
||||
'FETCH',
|
||||
'FILE',
|
||||
'FILLFACTOR',
|
||||
'FILTER',
|
||||
'FIRST',
|
||||
'FLOAT',
|
||||
'FOLLOWING',
|
||||
'FOR',
|
||||
'FOREIGN',
|
||||
'FORTRAN',
|
||||
'FOUND',
|
||||
'FREETEXT',
|
||||
'FREETEXTTABLE',
|
||||
'FROM',
|
||||
'FULL',
|
||||
'FUNCTION',
|
||||
'GENERATED',
|
||||
'GET',
|
||||
'GLOB',
|
||||
'GLOBAL',
|
||||
'GO',
|
||||
'GOTO',
|
||||
'GRANT',
|
||||
'GROUP',
|
||||
'GROUPS',
|
||||
'HAVING',
|
||||
'HOLDLOCK',
|
||||
'HOUR',
|
||||
'IDENTITY',
|
||||
'IDENTITYCOL',
|
||||
'IDENTITY_INSERT',
|
||||
'IF',
|
||||
'IGNORE',
|
||||
'IMMEDIATE',
|
||||
'IN',
|
||||
'INCLUDE',
|
||||
'INDEX',
|
||||
'INDEXED',
|
||||
'INDICATOR',
|
||||
'INITIALLY',
|
||||
'INNER',
|
||||
'INPUT',
|
||||
'INSENSITIVE',
|
||||
'INSERT',
|
||||
'INSTEAD',
|
||||
'INT',
|
||||
'INTEGER',
|
||||
'INTERSECT',
|
||||
'INTERVAL',
|
||||
'INTO',
|
||||
'IS',
|
||||
'ISNULL',
|
||||
'ISOLATION',
|
||||
'JOIN',
|
||||
'KEY',
|
||||
'KILL',
|
||||
'LANGUAGE',
|
||||
'LAST',
|
||||
'LEADING',
|
||||
'LEFT',
|
||||
'LEVEL',
|
||||
'LIKE',
|
||||
'LIMIT',
|
||||
'LINENO',
|
||||
'LOAD',
|
||||
'LOCAL',
|
||||
'LOWER',
|
||||
'MATCH',
|
||||
'MATERIALIZED',
|
||||
'MAX',
|
||||
'MERGE',
|
||||
'MIN',
|
||||
'MINUTE',
|
||||
'MODULE',
|
||||
'MONTH',
|
||||
'NAMES',
|
||||
'NATIONAL',
|
||||
'NATURAL',
|
||||
'NCHAR',
|
||||
'NEXT',
|
||||
'NO',
|
||||
'NOCHECK',
|
||||
'NONCLUSTERED',
|
||||
'NONE',
|
||||
'NOT',
|
||||
'NOTHING',
|
||||
'NOTNULL',
|
||||
'NULL',
|
||||
'NULLIF',
|
||||
'NULLS',
|
||||
'NUMERIC',
|
||||
'OCTET_LENGTH',
|
||||
'OF',
|
||||
'OFF',
|
||||
'OFFSET',
|
||||
'OFFSETS',
|
||||
'ON',
|
||||
'ONLY',
|
||||
'OPEN',
|
||||
'OPENDATASOURCE',
|
||||
'OPENQUERY',
|
||||
'OPENROWSET',
|
||||
'OPENXML',
|
||||
'OPTION',
|
||||
'OR',
|
||||
'ORDER',
|
||||
'OTHERS',
|
||||
'OUTER',
|
||||
'OUTPUT',
|
||||
'OVER',
|
||||
'OVERLAPS',
|
||||
'PAD',
|
||||
'PARTIAL',
|
||||
'PARTITION',
|
||||
'PASCAL',
|
||||
'PERCENT',
|
||||
'PIVOT',
|
||||
'PLAN',
|
||||
'POSITION',
|
||||
'PRAGMA',
|
||||
'PRECEDING',
|
||||
'PRECISION',
|
||||
'PREPARE',
|
||||
'PRESERVE',
|
||||
'PRIMARY',
|
||||
'PRINT',
|
||||
'PRIOR',
|
||||
'PRIVILEGES',
|
||||
'PROC',
|
||||
'PROCEDURE',
|
||||
'PUBLIC',
|
||||
'QUERY',
|
||||
'RAISE',
|
||||
'RAISERROR',
|
||||
'RANGE',
|
||||
'READ',
|
||||
'READTEXT',
|
||||
'REAL',
|
||||
'RECONFIGURE',
|
||||
'RECURSIVE',
|
||||
'REFERENCES',
|
||||
'REGEXP',
|
||||
'REINDEX',
|
||||
'RELATIVE',
|
||||
'RELEASE',
|
||||
'RENAME',
|
||||
'REPLACE',
|
||||
'REPLICATION',
|
||||
'RESTORE',
|
||||
'RESTRICT',
|
||||
'RETURN',
|
||||
'RETURNING',
|
||||
'REVERT',
|
||||
'REVOKE',
|
||||
'RIGHT',
|
||||
'ROLLBACK',
|
||||
'ROW',
|
||||
'ROWCOUNT',
|
||||
'ROWGUIDCOL',
|
||||
'ROWS',
|
||||
'RULE',
|
||||
'SAVE',
|
||||
'SAVEPOINT',
|
||||
'SCHEMA',
|
||||
'SCROLL',
|
||||
'SECOND',
|
||||
'SECTION',
|
||||
'SECURITYAUDIT',
|
||||
'SELECT',
|
||||
'SEMANTICKEYPHRASETABLE',
|
||||
'SEMANTICSIMILARITYDETAILSTABLE',
|
||||
'SEMANTICSIMILARITYTABLE',
|
||||
'SESSION',
|
||||
'SESSION_USER',
|
||||
'SET',
|
||||
'SETUSER',
|
||||
'SHUTDOWN',
|
||||
'SIZE',
|
||||
'SMALLINT',
|
||||
'SOME',
|
||||
'SPACE',
|
||||
'SQL',
|
||||
'SQLCA',
|
||||
'SQLCODE',
|
||||
'SQLERROR',
|
||||
'SQLSTATE',
|
||||
'SQLWARNING',
|
||||
'STATISTICS',
|
||||
'SUBSTRING',
|
||||
'SUM',
|
||||
'SYSTEM_USER',
|
||||
'TABLE',
|
||||
'TABLESAMPLE',
|
||||
'TEMP',
|
||||
'TEMPORARY',
|
||||
'TEXTSIZE',
|
||||
'THEN',
|
||||
'TIES',
|
||||
'TIME',
|
||||
'TIMESTAMP',
|
||||
'TIMEZONE_HOUR',
|
||||
'TIMEZONE_MINUTE',
|
||||
'TO',
|
||||
'TOP',
|
||||
'TRAILING',
|
||||
'TRAN',
|
||||
'TRANSACTION',
|
||||
'TRANSLATE',
|
||||
'TRANSLATION',
|
||||
'TRIGGER',
|
||||
'TRIM',
|
||||
'TRUE',
|
||||
'TRUNCATE',
|
||||
'TRY_CONVERT',
|
||||
'TSEQUAL',
|
||||
'UNBOUNDED',
|
||||
'UNION',
|
||||
'UNIQUE',
|
||||
'UNKNOWN',
|
||||
'UNPIVOT',
|
||||
'UPDATE',
|
||||
'UPDATETEXT',
|
||||
'UPPER',
|
||||
'USAGE',
|
||||
'USE',
|
||||
'USER',
|
||||
'USING',
|
||||
'VACUUM',
|
||||
'VALUE',
|
||||
'VALUES',
|
||||
'VARCHAR',
|
||||
'VARYING',
|
||||
'VIEW',
|
||||
'VIRTUAL',
|
||||
'WAITFOR',
|
||||
'WHEN',
|
||||
'WHENEVER',
|
||||
'WHERE',
|
||||
'WHILE',
|
||||
'WINDOW',
|
||||
'WITH',
|
||||
'WITHIN GROUP',
|
||||
'WITHOUT',
|
||||
'WORK',
|
||||
'WRITE',
|
||||
'WRITETEXT',
|
||||
'YEAR',
|
||||
'ZONE'
|
||||
],
|
||||
operators: [
|
||||
// Logical
|
||||
'ALL',
|
||||
'AND',
|
||||
'ANY',
|
||||
'BETWEEN',
|
||||
'EXISTS',
|
||||
'IN',
|
||||
'LIKE',
|
||||
'NOT',
|
||||
'OR',
|
||||
'SOME',
|
||||
// Set
|
||||
'EXCEPT',
|
||||
'INTERSECT',
|
||||
'UNION',
|
||||
// Join
|
||||
'APPLY',
|
||||
'CROSS',
|
||||
'FULL',
|
||||
'INNER',
|
||||
'JOIN',
|
||||
'LEFT',
|
||||
'OUTER',
|
||||
'RIGHT',
|
||||
// Predicates
|
||||
'CONTAINS',
|
||||
'FREETEXT',
|
||||
'IS',
|
||||
'NULL',
|
||||
// Pivoting
|
||||
'PIVOT',
|
||||
'UNPIVOT',
|
||||
// Merging
|
||||
'MATCHED'
|
||||
],
|
||||
builtinFunctions: [
|
||||
// Aggregate
|
||||
'AVG',
|
||||
'CHECKSUM_AGG',
|
||||
'COUNT',
|
||||
'COUNT_BIG',
|
||||
'GROUPING',
|
||||
'GROUPING_ID',
|
||||
'MAX',
|
||||
'MIN',
|
||||
'SUM',
|
||||
'STDEV',
|
||||
'STDEVP',
|
||||
'VAR',
|
||||
'VARP',
|
||||
// Analytic
|
||||
'CUME_DIST',
|
||||
'FIRST_VALUE',
|
||||
'LAG',
|
||||
'LAST_VALUE',
|
||||
'LEAD',
|
||||
'PERCENTILE_CONT',
|
||||
'PERCENTILE_DISC',
|
||||
'PERCENT_RANK',
|
||||
// Collation
|
||||
'COLLATE',
|
||||
'COLLATIONPROPERTY',
|
||||
'TERTIARY_WEIGHTS',
|
||||
// Azure
|
||||
'FEDERATION_FILTERING_VALUE',
|
||||
// Conversion
|
||||
'CAST',
|
||||
'CONVERT',
|
||||
'PARSE',
|
||||
'TRY_CAST',
|
||||
'TRY_CONVERT',
|
||||
'TRY_PARSE',
|
||||
// Cryptographic
|
||||
'ASYMKEY_ID',
|
||||
'ASYMKEYPROPERTY',
|
||||
'CERTPROPERTY',
|
||||
'CERT_ID',
|
||||
'CRYPT_GEN_RANDOM',
|
||||
'DECRYPTBYASYMKEY',
|
||||
'DECRYPTBYCERT',
|
||||
'DECRYPTBYKEY',
|
||||
'DECRYPTBYKEYAUTOASYMKEY',
|
||||
'DECRYPTBYKEYAUTOCERT',
|
||||
'DECRYPTBYPASSPHRASE',
|
||||
'ENCRYPTBYASYMKEY',
|
||||
'ENCRYPTBYCERT',
|
||||
'ENCRYPTBYKEY',
|
||||
'ENCRYPTBYPASSPHRASE',
|
||||
'HASHBYTES',
|
||||
'IS_OBJECTSIGNED',
|
||||
'KEY_GUID',
|
||||
'KEY_ID',
|
||||
'KEY_NAME',
|
||||
'SIGNBYASYMKEY',
|
||||
'SIGNBYCERT',
|
||||
'SYMKEYPROPERTY',
|
||||
'VERIFYSIGNEDBYCERT',
|
||||
'VERIFYSIGNEDBYASYMKEY',
|
||||
// Cursor
|
||||
'CURSOR_STATUS',
|
||||
// Datatype
|
||||
'DATALENGTH',
|
||||
'IDENT_CURRENT',
|
||||
'IDENT_INCR',
|
||||
'IDENT_SEED',
|
||||
'IDENTITY',
|
||||
'SQL_VARIANT_PROPERTY',
|
||||
// Datetime
|
||||
'CURRENT_TIMESTAMP',
|
||||
'DATEADD',
|
||||
'DATEDIFF',
|
||||
'DATEFROMPARTS',
|
||||
'DATENAME',
|
||||
'DATEPART',
|
||||
'DATETIME2FROMPARTS',
|
||||
'DATETIMEFROMPARTS',
|
||||
'DATETIMEOFFSETFROMPARTS',
|
||||
'DAY',
|
||||
'EOMONTH',
|
||||
'GETDATE',
|
||||
'GETUTCDATE',
|
||||
'ISDATE',
|
||||
'MONTH',
|
||||
'SMALLDATETIMEFROMPARTS',
|
||||
'SWITCHOFFSET',
|
||||
'SYSDATETIME',
|
||||
'SYSDATETIMEOFFSET',
|
||||
'SYSUTCDATETIME',
|
||||
'TIMEFROMPARTS',
|
||||
'TODATETIMEOFFSET',
|
||||
'YEAR',
|
||||
// Logical
|
||||
'CHOOSE',
|
||||
'COALESCE',
|
||||
'IIF',
|
||||
'NULLIF',
|
||||
// Mathematical
|
||||
'ABS',
|
||||
'ACOS',
|
||||
'ASIN',
|
||||
'ATAN',
|
||||
'ATN2',
|
||||
'CEILING',
|
||||
'COS',
|
||||
'COT',
|
||||
'DEGREES',
|
||||
'EXP',
|
||||
'FLOOR',
|
||||
'LOG',
|
||||
'LOG10',
|
||||
'PI',
|
||||
'POWER',
|
||||
'RADIANS',
|
||||
'RAND',
|
||||
'ROUND',
|
||||
'SIGN',
|
||||
'SIN',
|
||||
'SQRT',
|
||||
'SQUARE',
|
||||
'TAN',
|
||||
// Metadata
|
||||
'APP_NAME',
|
||||
'APPLOCK_MODE',
|
||||
'APPLOCK_TEST',
|
||||
'ASSEMBLYPROPERTY',
|
||||
'COL_LENGTH',
|
||||
'COL_NAME',
|
||||
'COLUMNPROPERTY',
|
||||
'DATABASE_PRINCIPAL_ID',
|
||||
'DATABASEPROPERTYEX',
|
||||
'DB_ID',
|
||||
'DB_NAME',
|
||||
'FILE_ID',
|
||||
'FILE_IDEX',
|
||||
'FILE_NAME',
|
||||
'FILEGROUP_ID',
|
||||
'FILEGROUP_NAME',
|
||||
'FILEGROUPPROPERTY',
|
||||
'FILEPROPERTY',
|
||||
'FULLTEXTCATALOGPROPERTY',
|
||||
'FULLTEXTSERVICEPROPERTY',
|
||||
'INDEX_COL',
|
||||
'INDEXKEY_PROPERTY',
|
||||
'INDEXPROPERTY',
|
||||
'OBJECT_DEFINITION',
|
||||
'OBJECT_ID',
|
||||
'OBJECT_NAME',
|
||||
'OBJECT_SCHEMA_NAME',
|
||||
'OBJECTPROPERTY',
|
||||
'OBJECTPROPERTYEX',
|
||||
'ORIGINAL_DB_NAME',
|
||||
'PARSENAME',
|
||||
'SCHEMA_ID',
|
||||
'SCHEMA_NAME',
|
||||
'SCOPE_IDENTITY',
|
||||
'SERVERPROPERTY',
|
||||
'STATS_DATE',
|
||||
'TYPE_ID',
|
||||
'TYPE_NAME',
|
||||
'TYPEPROPERTY',
|
||||
// Ranking
|
||||
'DENSE_RANK',
|
||||
'NTILE',
|
||||
'RANK',
|
||||
'ROW_NUMBER',
|
||||
// Replication
|
||||
'PUBLISHINGSERVERNAME',
|
||||
// Rowset
|
||||
'OPENDATASOURCE',
|
||||
'OPENQUERY',
|
||||
'OPENROWSET',
|
||||
'OPENXML',
|
||||
// Security
|
||||
'CERTENCODED',
|
||||
'CERTPRIVATEKEY',
|
||||
'CURRENT_USER',
|
||||
'HAS_DBACCESS',
|
||||
'HAS_PERMS_BY_NAME',
|
||||
'IS_MEMBER',
|
||||
'IS_ROLEMEMBER',
|
||||
'IS_SRVROLEMEMBER',
|
||||
'LOGINPROPERTY',
|
||||
'ORIGINAL_LOGIN',
|
||||
'PERMISSIONS',
|
||||
'PWDENCRYPT',
|
||||
'PWDCOMPARE',
|
||||
'SESSION_USER',
|
||||
'SESSIONPROPERTY',
|
||||
'SUSER_ID',
|
||||
'SUSER_NAME',
|
||||
'SUSER_SID',
|
||||
'SUSER_SNAME',
|
||||
'SYSTEM_USER',
|
||||
'USER',
|
||||
'USER_ID',
|
||||
'USER_NAME',
|
||||
// String
|
||||
'ASCII',
|
||||
'CHAR',
|
||||
'CHARINDEX',
|
||||
'CONCAT',
|
||||
'DIFFERENCE',
|
||||
'FORMAT',
|
||||
'LEFT',
|
||||
'LEN',
|
||||
'LOWER',
|
||||
'LTRIM',
|
||||
'NCHAR',
|
||||
'PATINDEX',
|
||||
'QUOTENAME',
|
||||
'REPLACE',
|
||||
'REPLICATE',
|
||||
'REVERSE',
|
||||
'RIGHT',
|
||||
'RTRIM',
|
||||
'SOUNDEX',
|
||||
'SPACE',
|
||||
'STR',
|
||||
'STUFF',
|
||||
'SUBSTRING',
|
||||
'UNICODE',
|
||||
'UPPER',
|
||||
// System
|
||||
'BINARY_CHECKSUM',
|
||||
'CHECKSUM',
|
||||
'CONNECTIONPROPERTY',
|
||||
'CONTEXT_INFO',
|
||||
'CURRENT_REQUEST_ID',
|
||||
'ERROR_LINE',
|
||||
'ERROR_NUMBER',
|
||||
'ERROR_MESSAGE',
|
||||
'ERROR_PROCEDURE',
|
||||
'ERROR_SEVERITY',
|
||||
'ERROR_STATE',
|
||||
'FORMATMESSAGE',
|
||||
'GETANSINULL',
|
||||
'GET_FILESTREAM_TRANSACTION_CONTEXT',
|
||||
'HOST_ID',
|
||||
'HOST_NAME',
|
||||
'ISNULL',
|
||||
'ISNUMERIC',
|
||||
'MIN_ACTIVE_ROWVERSION',
|
||||
'NEWID',
|
||||
'NEWSEQUENTIALID',
|
||||
'ROWCOUNT_BIG',
|
||||
'XACT_STATE',
|
||||
// TextImage
|
||||
'TEXTPTR',
|
||||
'TEXTVALID',
|
||||
// Trigger
|
||||
'COLUMNS_UPDATED',
|
||||
'EVENTDATA',
|
||||
'TRIGGER_NESTLEVEL',
|
||||
'UPDATE',
|
||||
// ChangeTracking
|
||||
'CHANGETABLE',
|
||||
'CHANGE_TRACKING_CONTEXT',
|
||||
'CHANGE_TRACKING_CURRENT_VERSION',
|
||||
'CHANGE_TRACKING_IS_COLUMN_IN_MASK',
|
||||
'CHANGE_TRACKING_MIN_VALID_VERSION',
|
||||
// FullTextSearch
|
||||
'CONTAINSTABLE',
|
||||
'FREETEXTTABLE',
|
||||
// SemanticTextSearch
|
||||
'SEMANTICKEYPHRASETABLE',
|
||||
'SEMANTICSIMILARITYDETAILSTABLE',
|
||||
'SEMANTICSIMILARITYTABLE',
|
||||
// FileStream
|
||||
'FILETABLEROOTPATH',
|
||||
'GETFILENAMESPACEPATH',
|
||||
'GETPATHLOCATOR',
|
||||
'PATHNAME',
|
||||
// ServiceBroker
|
||||
'GET_TRANSMISSION_STATUS'
|
||||
],
|
||||
builtinVariables: [
|
||||
// Configuration
|
||||
'@@DATEFIRST',
|
||||
'@@DBTS',
|
||||
'@@LANGID',
|
||||
'@@LANGUAGE',
|
||||
'@@LOCK_TIMEOUT',
|
||||
'@@MAX_CONNECTIONS',
|
||||
'@@MAX_PRECISION',
|
||||
'@@NESTLEVEL',
|
||||
'@@OPTIONS',
|
||||
'@@REMSERVER',
|
||||
'@@SERVERNAME',
|
||||
'@@SERVICENAME',
|
||||
'@@SPID',
|
||||
'@@TEXTSIZE',
|
||||
'@@VERSION',
|
||||
// Cursor
|
||||
'@@CURSOR_ROWS',
|
||||
'@@FETCH_STATUS',
|
||||
// Datetime
|
||||
'@@DATEFIRST',
|
||||
// Metadata
|
||||
'@@PROCID',
|
||||
// System
|
||||
'@@ERROR',
|
||||
'@@IDENTITY',
|
||||
'@@ROWCOUNT',
|
||||
'@@TRANCOUNT',
|
||||
// Stats
|
||||
'@@CONNECTIONS',
|
||||
'@@CPU_BUSY',
|
||||
'@@IDLE',
|
||||
'@@IO_BUSY',
|
||||
'@@PACKET_ERRORS',
|
||||
'@@PACK_RECEIVED',
|
||||
'@@PACK_SENT',
|
||||
'@@TIMETICKS',
|
||||
'@@TOTAL_ERRORS',
|
||||
'@@TOTAL_READ',
|
||||
'@@TOTAL_WRITE'
|
||||
],
|
||||
pseudoColumns: ['$ACTION', '$IDENTITY', '$ROWGUID', '$PARTITION'],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@comments' },
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@pseudoColumns' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@complexIdentifiers' },
|
||||
{ include: '@scopes' },
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/[()]/, '@brackets'],
|
||||
[
|
||||
/[\w@#$]+/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator',
|
||||
'@builtinVariables': 'predefined',
|
||||
'@builtinFunctions': 'predefined',
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/[<>=!%&+\-*/|~^]/, 'operator']
|
||||
],
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
comments: [
|
||||
[/--+.*/, 'comment'],
|
||||
[/\/\*/, { token: 'comment.quote', next: '@comment' }]
|
||||
],
|
||||
comment: [
|
||||
[/[^*/]+/, 'comment'],
|
||||
// Not supporting nested comments, as nested comments seem to not be standard?
|
||||
// i.e. http://stackoverflow.com/questions/728172/are-there-multiline-comment-delimiters-in-sql-that-are-vendor-agnostic
|
||||
// [/\/\*/, { token: 'comment.quote', next: '@push' }], // nested comment not allowed :-(
|
||||
[/\*\//, { token: 'comment.quote', next: '@pop' }],
|
||||
[/./, 'comment']
|
||||
],
|
||||
pseudoColumns: [
|
||||
[
|
||||
/[$][A-Za-z_][\w@#$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@pseudoColumns': 'predefined',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]*/, 'number'],
|
||||
[/[$][+-]*\d*(\.\d*)?/, 'number'],
|
||||
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, 'number']
|
||||
],
|
||||
strings: [
|
||||
[/N'/, { token: 'string', next: '@string' }],
|
||||
[/'/, { token: 'string', next: '@string' }]
|
||||
],
|
||||
string: [
|
||||
[/[^']+/, 'string'],
|
||||
[/''/, 'string'],
|
||||
[/'/, { token: 'string', next: '@pop' }]
|
||||
],
|
||||
complexIdentifiers: [
|
||||
[/\[/, { token: 'identifier.quote', next: '@bracketedIdentifier' }],
|
||||
[/"/, { token: 'identifier.quote', next: '@quotedIdentifier' }]
|
||||
],
|
||||
bracketedIdentifier: [
|
||||
[/[^\]]+/, 'identifier'],
|
||||
[/]]/, 'identifier'],
|
||||
[/]/, { token: 'identifier.quote', next: '@pop' }]
|
||||
],
|
||||
quotedIdentifier: [
|
||||
[/[^"]+/, 'identifier'],
|
||||
[/""/, 'identifier'],
|
||||
[/"/, { token: 'identifier.quote', next: '@pop' }]
|
||||
],
|
||||
scopes: [
|
||||
[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i, 'keyword'],
|
||||
[/BEGIN\s+TRY\b/i, { token: 'keyword.try' }],
|
||||
[/END\s+TRY\b/i, { token: 'keyword.try' }],
|
||||
[/BEGIN\s+CATCH\b/i, { token: 'keyword.catch' }],
|
||||
[/END\s+CATCH\b/i, { token: 'keyword.catch' }],
|
||||
[/(BEGIN|CASE)\b/i, { token: 'keyword.block' }],
|
||||
[/END\b/i, { token: 'keyword.block' }],
|
||||
[/WHEN\b/i, { token: 'keyword.choice' }],
|
||||
[/THEN\b/i, { token: 'keyword.choice' }]
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,157 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12386],{
|
||||
|
||||
/***/ 12386:
|
||||
/*!********************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/pla/pla.js ***!
|
||||
\********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#'
|
||||
},
|
||||
brackets: [
|
||||
['[', ']'],
|
||||
['<', '>'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '(', close: ')' }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '(', close: ')' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pla',
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' }
|
||||
],
|
||||
keywords: [
|
||||
'.i',
|
||||
'.o',
|
||||
'.mv',
|
||||
'.ilb',
|
||||
'.ob',
|
||||
'.label',
|
||||
'.type',
|
||||
'.phase',
|
||||
'.pair',
|
||||
'.symbolic',
|
||||
'.symbolic-output',
|
||||
'.kiss',
|
||||
'.p',
|
||||
'.e',
|
||||
'.end'
|
||||
],
|
||||
// regular expressions
|
||||
comment: /#.*$/,
|
||||
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
||||
plaContent: /[01\-~\|]+/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// comments and whitespace
|
||||
{ include: '@whitespace' },
|
||||
[/@comment/, 'comment'],
|
||||
// keyword
|
||||
[
|
||||
/\.([a-zA-Z_\-]+)/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'keyword.$1' },
|
||||
'@keywords': {
|
||||
cases: {
|
||||
'.type': { token: 'keyword.$1', next: '@type' },
|
||||
'@default': { token: 'keyword.$1', next: '@keywordArg' }
|
||||
}
|
||||
},
|
||||
'@default': { token: 'keyword.$1' }
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[/@identifier/, 'identifier'],
|
||||
// PLA row
|
||||
[/@plaContent/, 'string']
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, '']],
|
||||
type: [{ include: '@whitespace' }, [/\w+/, { token: 'type', next: '@pop' }]],
|
||||
keywordArg: [
|
||||
// whitespace
|
||||
[
|
||||
/[ \t\r\n]+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '', next: '@pop' },
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// comments
|
||||
[/@comment/, 'comment', '@pop'],
|
||||
// brackets
|
||||
[
|
||||
/[<>()\[\]]/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '@brackets', next: '@pop' },
|
||||
'@default': '@brackets'
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[
|
||||
/\-?\d+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'number', next: '@pop' },
|
||||
'@default': 'number'
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'identifier', next: '@pop' },
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// delimiter
|
||||
[
|
||||
/[;=]/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'delimiter', next: '@pop' },
|
||||
'@default': 'delimiter'
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[12386],{12386:function(e,t,o){o.r(t),o.d(t,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},s={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,834 +0,0 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12632],{
|
||||
|
||||
/***/ 78673:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_switch; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
|
||||
var LoadingOutlined = __webpack_require__(5095);
|
||||
// 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/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(97326);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(90654);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(32235);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(71366);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(20287);
|
||||
;// CONCATENATED MODULE: ./node_modules/_rc-switch@4.1.0@rc-switch/es/index.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"];
|
||||
|
||||
|
||||
|
||||
|
||||
var Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (_ref, ref) {
|
||||
var _classNames;
|
||||
var _ref$prefixCls = _ref.prefixCls,
|
||||
prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls,
|
||||
className = _ref.className,
|
||||
checked = _ref.checked,
|
||||
defaultChecked = _ref.defaultChecked,
|
||||
disabled = _ref.disabled,
|
||||
loadingIcon = _ref.loadingIcon,
|
||||
checkedChildren = _ref.checkedChildren,
|
||||
unCheckedChildren = _ref.unCheckedChildren,
|
||||
onClick = _ref.onClick,
|
||||
onChange = _ref.onChange,
|
||||
onKeyDown = _ref.onKeyDown,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(false, {
|
||||
value: checked,
|
||||
defaultValue: defaultChecked
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
innerChecked = _useMergedState2[0],
|
||||
setInnerChecked = _useMergedState2[1];
|
||||
function triggerChange(newChecked, event) {
|
||||
var mergedChecked = innerChecked;
|
||||
if (!disabled) {
|
||||
mergedChecked = newChecked;
|
||||
setInnerChecked(mergedChecked);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event);
|
||||
}
|
||||
return mergedChecked;
|
||||
}
|
||||
function onInternalKeyDown(e) {
|
||||
if (e.which === KeyCode/* default */.Z.LEFT) {
|
||||
triggerChange(false, e);
|
||||
} else if (e.which === KeyCode/* default */.Z.RIGHT) {
|
||||
triggerChange(true, e);
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
||||
}
|
||||
function onInternalClick(e) {
|
||||
var ret = triggerChange(!innerChecked, e);
|
||||
// [Legacy] trigger onClick with value
|
||||
onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
|
||||
}
|
||||
var switchClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("button", (0,esm_extends/* default */.Z)({}, restProps, {
|
||||
type: "button",
|
||||
role: "switch",
|
||||
"aria-checked": innerChecked,
|
||||
disabled: disabled,
|
||||
className: switchClassName,
|
||||
ref: ref,
|
||||
onKeyDown: onInternalKeyDown,
|
||||
onClick: onInternalClick
|
||||
}), loadingIcon, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: "".concat(prefixCls, "-inner")
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: "".concat(prefixCls, "-inner-checked")
|
||||
}, checkedChildren), /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: "".concat(prefixCls, "-inner-unchecked")
|
||||
}, unCheckedChildren)));
|
||||
});
|
||||
Switch.displayName = 'Switch';
|
||||
/* harmony default export */ var es = (Switch);
|
||||
// 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);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
|
||||
var DisabledContext = __webpack_require__(1684);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.1@@ctrl/tinycolor/dist/module/index.js
|
||||
var dist_module = __webpack_require__(64993);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
|
||||
var style = __webpack_require__(17313);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/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/switch/style/index.js
|
||||
|
||||
|
||||
|
||||
const genSwitchSmallStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
trackHeightSM,
|
||||
trackPadding,
|
||||
trackMinWidthSM,
|
||||
innerMinMarginSM,
|
||||
innerMaxMarginSM,
|
||||
handleSizeSM
|
||||
} = token;
|
||||
const switchInnerCls = `${componentCls}-inner`;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`&${componentCls}-small`]: {
|
||||
minWidth: trackMinWidthSM,
|
||||
height: trackHeightSM,
|
||||
lineHeight: `${trackHeightSM}px`,
|
||||
[`${componentCls}-inner`]: {
|
||||
paddingInlineStart: innerMaxMarginSM,
|
||||
paddingInlineEnd: innerMinMarginSM,
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`,
|
||||
marginInlineEnd: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`
|
||||
},
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginTop: -trackHeightSM,
|
||||
marginInlineStart: 0,
|
||||
marginInlineEnd: 0
|
||||
}
|
||||
},
|
||||
[`${componentCls}-handle`]: {
|
||||
width: handleSizeSM,
|
||||
height: handleSizeSM
|
||||
},
|
||||
[`${componentCls}-loading-icon`]: {
|
||||
top: (handleSizeSM - token.switchLoadingIconSize) / 2,
|
||||
fontSize: token.switchLoadingIconSize
|
||||
},
|
||||
[`&${componentCls}-checked`]: {
|
||||
[`${componentCls}-inner`]: {
|
||||
paddingInlineStart: innerMinMarginSM,
|
||||
paddingInlineEnd: innerMaxMarginSM,
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: 0,
|
||||
marginInlineEnd: 0
|
||||
},
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginInlineStart: `calc(100% - ${handleSizeSM + trackPadding * 2}px + ${innerMaxMarginSM * 2}px)`,
|
||||
marginInlineEnd: `calc(-100% + ${handleSizeSM + trackPadding * 2}px - ${innerMaxMarginSM * 2}px)`
|
||||
}
|
||||
},
|
||||
[`${componentCls}-handle`]: {
|
||||
insetInlineStart: `calc(100% - ${handleSizeSM + trackPadding}px)`
|
||||
}
|
||||
},
|
||||
[`&:not(${componentCls}-disabled):active`]: {
|
||||
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginInlineStart: token.marginXXS / 2,
|
||||
marginInlineEnd: -token.marginXXS / 2
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-checked ${switchInnerCls}`]: {
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: -token.marginXXS / 2,
|
||||
marginInlineEnd: token.marginXXS / 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSwitchLoadingStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
handleSize
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`${componentCls}-loading-icon${token.iconCls}`]: {
|
||||
position: 'relative',
|
||||
top: (handleSize - token.fontSize) / 2,
|
||||
color: token.switchLoadingIconColor,
|
||||
verticalAlign: 'top'
|
||||
},
|
||||
[`&${componentCls}-checked ${componentCls}-loading-icon`]: {
|
||||
color: token.switchColor
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSwitchHandleStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
motion,
|
||||
trackPadding,
|
||||
handleBg,
|
||||
handleShadow,
|
||||
handleSize
|
||||
} = token;
|
||||
const switchHandleCls = `${componentCls}-handle`;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[switchHandleCls]: {
|
||||
position: 'absolute',
|
||||
top: trackPadding,
|
||||
insetInlineStart: trackPadding,
|
||||
width: handleSize,
|
||||
height: handleSize,
|
||||
transition: `all ${token.switchDuration} ease-in-out`,
|
||||
'&::before': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: 0,
|
||||
bottom: 0,
|
||||
insetInlineStart: 0,
|
||||
backgroundColor: handleBg,
|
||||
borderRadius: handleSize / 2,
|
||||
boxShadow: handleShadow,
|
||||
transition: `all ${token.switchDuration} ease-in-out`,
|
||||
content: '""'
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-checked ${switchHandleCls}`]: {
|
||||
insetInlineStart: `calc(100% - ${handleSize + trackPadding}px)`
|
||||
},
|
||||
[`&:not(${componentCls}-disabled):active`]: motion ? {
|
||||
[`${switchHandleCls}::before`]: {
|
||||
insetInlineEnd: token.switchHandleActiveInset,
|
||||
insetInlineStart: 0
|
||||
},
|
||||
[`&${componentCls}-checked ${switchHandleCls}::before`]: {
|
||||
insetInlineEnd: 0,
|
||||
insetInlineStart: token.switchHandleActiveInset
|
||||
}
|
||||
} : /* istanbul ignore next */
|
||||
{}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSwitchInnerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
trackHeight,
|
||||
trackPadding,
|
||||
innerMinMargin,
|
||||
innerMaxMargin,
|
||||
handleSize
|
||||
} = token;
|
||||
const switchInnerCls = `${componentCls}-inner`;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[switchInnerCls]: {
|
||||
display: 'block',
|
||||
overflow: 'hidden',
|
||||
borderRadius: 100,
|
||||
height: '100%',
|
||||
paddingInlineStart: innerMaxMargin,
|
||||
paddingInlineEnd: innerMinMargin,
|
||||
transition: `padding-inline-start ${token.switchDuration} ease-in-out, padding-inline-end ${token.switchDuration} ease-in-out`,
|
||||
[`${switchInnerCls}-checked, ${switchInnerCls}-unchecked`]: {
|
||||
display: 'block',
|
||||
color: token.colorTextLightSolid,
|
||||
fontSize: token.fontSizeSM,
|
||||
transition: `margin-inline-start ${token.switchDuration} ease-in-out, margin-inline-end ${token.switchDuration} ease-in-out`,
|
||||
pointerEvents: 'none'
|
||||
},
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`,
|
||||
marginInlineEnd: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`
|
||||
},
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginTop: -trackHeight,
|
||||
marginInlineStart: 0,
|
||||
marginInlineEnd: 0
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-checked ${switchInnerCls}`]: {
|
||||
paddingInlineStart: innerMinMargin,
|
||||
paddingInlineEnd: innerMaxMargin,
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: 0,
|
||||
marginInlineEnd: 0
|
||||
},
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginInlineStart: `calc(100% - ${handleSize + trackPadding * 2}px + ${innerMaxMargin * 2}px)`,
|
||||
marginInlineEnd: `calc(-100% + ${handleSize + trackPadding * 2}px - ${innerMaxMargin * 2}px)`
|
||||
}
|
||||
},
|
||||
[`&:not(${componentCls}-disabled):active`]: {
|
||||
[`&:not(${componentCls}-checked) ${switchInnerCls}`]: {
|
||||
[`${switchInnerCls}-unchecked`]: {
|
||||
marginInlineStart: trackPadding * 2,
|
||||
marginInlineEnd: -trackPadding * 2
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-checked ${switchInnerCls}`]: {
|
||||
[`${switchInnerCls}-checked`]: {
|
||||
marginInlineStart: -trackPadding * 2,
|
||||
marginInlineEnd: trackPadding * 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSwitchStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
trackHeight,
|
||||
trackMinWidth
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
boxSizing: 'border-box',
|
||||
minWidth: trackMinWidth,
|
||||
height: trackHeight,
|
||||
lineHeight: `${trackHeight}px`,
|
||||
verticalAlign: 'middle',
|
||||
background: token.colorTextQuaternary,
|
||||
border: '0',
|
||||
borderRadius: 100,
|
||||
cursor: 'pointer',
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[`&:hover:not(${componentCls}-disabled)`]: {
|
||||
background: token.colorTextTertiary
|
||||
}
|
||||
}), (0,style/* genFocusStyle */.Qy)(token)), {
|
||||
[`&${componentCls}-checked`]: {
|
||||
background: token.switchColor,
|
||||
[`&:hover:not(${componentCls}-disabled)`]: {
|
||||
background: token.colorPrimaryHover
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-loading, &${componentCls}-disabled`]: {
|
||||
cursor: 'not-allowed',
|
||||
opacity: token.switchDisabledOpacity,
|
||||
'*': {
|
||||
boxShadow: 'none',
|
||||
cursor: 'not-allowed'
|
||||
}
|
||||
},
|
||||
// rtl style
|
||||
[`&${componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var switch_style = ((0,genComponentStyleHook/* default */.Z)('Switch', token => {
|
||||
const switchToken = (0,statistic/* merge */.TS)(token, {
|
||||
switchDuration: token.motionDurationMid,
|
||||
switchColor: token.colorPrimary,
|
||||
switchDisabledOpacity: token.opacityLoading,
|
||||
switchLoadingIconSize: token.fontSizeIcon * 0.75,
|
||||
switchLoadingIconColor: `rgba(0, 0, 0, ${token.opacityLoading})`,
|
||||
switchHandleActiveInset: '-30%'
|
||||
});
|
||||
return [genSwitchStyle(switchToken),
|
||||
// inner style
|
||||
genSwitchInnerStyle(switchToken),
|
||||
// handle style
|
||||
genSwitchHandleStyle(switchToken),
|
||||
// loading style
|
||||
genSwitchLoadingStyle(switchToken),
|
||||
// small style
|
||||
genSwitchSmallStyle(switchToken)];
|
||||
}, token => {
|
||||
const {
|
||||
fontSize,
|
||||
lineHeight,
|
||||
controlHeight,
|
||||
colorWhite
|
||||
} = token;
|
||||
const height = fontSize * lineHeight;
|
||||
const heightSM = controlHeight / 2;
|
||||
const padding = 2; // Fixed value
|
||||
const handleSize = height - padding * 2;
|
||||
const handleSizeSM = heightSM - padding * 2;
|
||||
return {
|
||||
trackHeight: height,
|
||||
trackHeightSM: heightSM,
|
||||
trackMinWidth: handleSize * 2 + padding * 4,
|
||||
trackMinWidthSM: handleSizeSM * 2 + padding * 2,
|
||||
trackPadding: padding,
|
||||
handleBg: colorWhite,
|
||||
handleSize,
|
||||
handleSizeSM,
|
||||
handleShadow: `0 2px 4px 0 ${new dist_module/* TinyColor */.C('#00230b').setAlpha(0.2).toRgbString()}`,
|
||||
innerMinMargin: handleSize / 2,
|
||||
innerMaxMargin: handleSize + padding + padding * 2,
|
||||
innerMinMarginSM: handleSizeSM / 2,
|
||||
innerMaxMarginSM: handleSizeSM + padding + padding * 2
|
||||
};
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/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 switch_Switch = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
size: customizeSize,
|
||||
disabled: customDisabled,
|
||||
loading,
|
||||
className,
|
||||
rootClassName,
|
||||
style
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style"]);
|
||||
false ? 0 : void 0;
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
switch: SWITCH
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
// ===================== Disabled =====================
|
||||
const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
|
||||
const mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading;
|
||||
const prefixCls = getPrefixCls('switch', customizePrefixCls);
|
||||
const loadingIcon = /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-handle`
|
||||
}, loading && /*#__PURE__*/_react_17_0_2_react.createElement(LoadingOutlined/* default */.Z, {
|
||||
className: `${prefixCls}-loading-icon`
|
||||
}));
|
||||
// Style
|
||||
const [wrapSSR, hashId] = switch_style(prefixCls);
|
||||
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
|
||||
const classes = _classnames_2_5_1_classnames_default()(SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.className, {
|
||||
[`${prefixCls}-small`]: mergedSize === 'small',
|
||||
[`${prefixCls}-loading`]: loading,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName, hashId);
|
||||
const mergedStyle = Object.assign(Object.assign({}, SWITCH === null || SWITCH === void 0 ? void 0 : SWITCH.style), style);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(wave/* default */.Z, {
|
||||
component: "Switch"
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(es, Object.assign({}, restProps, {
|
||||
prefixCls: prefixCls,
|
||||
className: classes,
|
||||
style: mergedStyle,
|
||||
disabled: mergedDisabled,
|
||||
ref: ref,
|
||||
loadingIcon: loadingIcon
|
||||
}))));
|
||||
});
|
||||
switch_Switch.__ANT_SWITCH = true;
|
||||
if (false) {}
|
||||
/* harmony default export */ var es_switch = (switch_Switch);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 60028:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ 71409);
|
||||
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ 79847);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Upload = _Upload__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z;
|
||||
Upload.Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
Upload.LIST_IGNORE = _Upload__WEBPACK_IMPORTED_MODULE_0__/* .LIST_IGNORE */ .E;
|
||||
/* harmony default export */ __webpack_exports__.Z = (Upload);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 25769:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/_copy-to-clipboard@3.3.3@copy-to-clipboard/index.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var deselectCurrent = __webpack_require__(/*! toggle-selection */ 98040);
|
||||
|
||||
var clipboardToIE11Formatting = {
|
||||
"text/plain": "Text",
|
||||
"text/html": "Url",
|
||||
"default": "Text"
|
||||
}
|
||||
|
||||
var defaultMessage = "Copy to clipboard: #{key}, Enter";
|
||||
|
||||
function format(message) {
|
||||
var copyKey = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
||||
return message.replace(/#{\s*key\s*}/g, copyKey);
|
||||
}
|
||||
|
||||
function copy(text, options) {
|
||||
var debug,
|
||||
message,
|
||||
reselectPrevious,
|
||||
range,
|
||||
selection,
|
||||
mark,
|
||||
success = false;
|
||||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
debug = options.debug || false;
|
||||
try {
|
||||
reselectPrevious = deselectCurrent();
|
||||
|
||||
range = document.createRange();
|
||||
selection = document.getSelection();
|
||||
|
||||
mark = document.createElement("span");
|
||||
mark.textContent = text;
|
||||
// avoid screen readers from reading out loud the text
|
||||
mark.ariaHidden = "true"
|
||||
// reset user styles for span element
|
||||
mark.style.all = "unset";
|
||||
// prevents scrolling to the end of the page
|
||||
mark.style.position = "fixed";
|
||||
mark.style.top = 0;
|
||||
mark.style.clip = "rect(0, 0, 0, 0)";
|
||||
// used to preserve spaces and line breaks
|
||||
mark.style.whiteSpace = "pre";
|
||||
// do not inherit user-select (it may be `none`)
|
||||
mark.style.webkitUserSelect = "text";
|
||||
mark.style.MozUserSelect = "text";
|
||||
mark.style.msUserSelect = "text";
|
||||
mark.style.userSelect = "text";
|
||||
mark.addEventListener("copy", function(e) {
|
||||
e.stopPropagation();
|
||||
if (options.format) {
|
||||
e.preventDefault();
|
||||
if (typeof e.clipboardData === "undefined") { // IE 11
|
||||
debug && console.warn("unable to use e.clipboardData");
|
||||
debug && console.warn("trying IE specific stuff");
|
||||
window.clipboardData.clearData();
|
||||
var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"]
|
||||
window.clipboardData.setData(format, text);
|
||||
} else { // all other browsers
|
||||
e.clipboardData.clearData();
|
||||
e.clipboardData.setData(options.format, text);
|
||||
}
|
||||
}
|
||||
if (options.onCopy) {
|
||||
e.preventDefault();
|
||||
options.onCopy(e.clipboardData);
|
||||
}
|
||||
});
|
||||
|
||||
document.body.appendChild(mark);
|
||||
|
||||
range.selectNodeContents(mark);
|
||||
selection.addRange(range);
|
||||
|
||||
var successful = document.execCommand("copy");
|
||||
if (!successful) {
|
||||
throw new Error("copy command was unsuccessful");
|
||||
}
|
||||
success = true;
|
||||
} catch (err) {
|
||||
debug && console.error("unable to copy using execCommand: ", err);
|
||||
debug && console.warn("trying IE specific stuff");
|
||||
try {
|
||||
window.clipboardData.setData(options.format || "text", text);
|
||||
options.onCopy && options.onCopy(window.clipboardData);
|
||||
success = true;
|
||||
} catch (err) {
|
||||
debug && console.error("unable to copy using clipboardData: ", err);
|
||||
debug && console.error("falling back to prompt");
|
||||
message = format("message" in options ? options.message : defaultMessage);
|
||||
window.prompt(message, text);
|
||||
}
|
||||
} finally {
|
||||
if (selection) {
|
||||
if (typeof selection.removeRange == "function") {
|
||||
selection.removeRange(range);
|
||||
} else {
|
||||
selection.removeAllRanges();
|
||||
}
|
||||
}
|
||||
|
||||
if (mark) {
|
||||
document.body.removeChild(mark);
|
||||
}
|
||||
reselectPrevious();
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
module.exports = copy;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 83145:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/Component.js ***!
|
||||
\**********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({
|
||||
value: true
|
||||
}));
|
||||
exports.CopyToClipboard = void 0;
|
||||
|
||||
var _react = _interopRequireDefault(__webpack_require__(/*! react */ 59301));
|
||||
|
||||
var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 25769));
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
||||
|
||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
||||
|
||||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
||||
|
||||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var CopyToClipboard =
|
||||
/*#__PURE__*/
|
||||
function (_React$PureComponent) {
|
||||
_inherits(CopyToClipboard, _React$PureComponent);
|
||||
|
||||
function CopyToClipboard() {
|
||||
var _getPrototypeOf2;
|
||||
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, CopyToClipboard);
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(CopyToClipboard)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
|
||||
var _this$props = _this.props,
|
||||
text = _this$props.text,
|
||||
onCopy = _this$props.onCopy,
|
||||
children = _this$props.children,
|
||||
options = _this$props.options;
|
||||
|
||||
var elem = _react["default"].Children.only(children);
|
||||
|
||||
var result = (0, _copyToClipboard["default"])(text, options);
|
||||
|
||||
if (onCopy) {
|
||||
onCopy(text, result);
|
||||
} // Bypass onClick if it was present
|
||||
|
||||
|
||||
if (elem && elem.props && typeof elem.props.onClick === 'function') {
|
||||
elem.props.onClick(event);
|
||||
}
|
||||
});
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(CopyToClipboard, [{
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this$props2 = this.props,
|
||||
_text = _this$props2.text,
|
||||
_onCopy = _this$props2.onCopy,
|
||||
_options = _this$props2.options,
|
||||
children = _this$props2.children,
|
||||
props = _objectWithoutProperties(_this$props2, ["text", "onCopy", "options", "children"]);
|
||||
|
||||
var elem = _react["default"].Children.only(children);
|
||||
|
||||
return _react["default"].cloneElement(elem, _objectSpread({}, props, {
|
||||
onClick: this.onClick
|
||||
}));
|
||||
}
|
||||
}]);
|
||||
|
||||
return CopyToClipboard;
|
||||
}(_react["default"].PureComponent);
|
||||
|
||||
exports.CopyToClipboard = CopyToClipboard;
|
||||
|
||||
_defineProperty(CopyToClipboard, "defaultProps", {
|
||||
onCopy: undefined,
|
||||
options: undefined
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 56102:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/_react-copy-to-clipboard@5.0.2@react-copy-to-clipboard/lib/index.js ***!
|
||||
\******************************************************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
var _require = __webpack_require__(/*! ./Component */ 83145),
|
||||
CopyToClipboard = _require.CopyToClipboard;
|
||||
|
||||
CopyToClipboard.CopyToClipboard = CopyToClipboard;
|
||||
module.exports = CopyToClipboard;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98040:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_toggle-selection@1.0.6@toggle-selection/index.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(module) {
|
||||
|
||||
|
||||
module.exports = function () {
|
||||
var selection = document.getSelection();
|
||||
if (!selection.rangeCount) {
|
||||
return function () {};
|
||||
}
|
||||
var active = document.activeElement;
|
||||
|
||||
var ranges = [];
|
||||
for (var i = 0; i < selection.rangeCount; i++) {
|
||||
ranges.push(selection.getRangeAt(i));
|
||||
}
|
||||
|
||||
switch (active.tagName.toUpperCase()) { // .toUpperCase handles XHTML
|
||||
case 'INPUT':
|
||||
case 'TEXTAREA':
|
||||
active.blur();
|
||||
break;
|
||||
|
||||
default:
|
||||
active = null;
|
||||
break;
|
||||
}
|
||||
|
||||
selection.removeAllRanges();
|
||||
return function () {
|
||||
selection.type === 'Caret' &&
|
||||
selection.removeAllRanges();
|
||||
|
||||
if (!selection.rangeCount) {
|
||||
ranges.forEach(function(range) {
|
||||
selection.addRange(range);
|
||||
});
|
||||
}
|
||||
|
||||
active &&
|
||||
active.focus();
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,706 +0,0 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13488],{
|
||||
|
||||
/***/ 27666:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/throttleByAnimationFrame.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 31311);
|
||||
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 71783);
|
||||
|
||||
|
||||
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__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ affix; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(17712);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__(38261);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(74007);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||||
var createSuper = __webpack_require__(18652);
|
||||
// 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.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// 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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 51581:
|
||||
/*!****************************************************************************************************!*\
|
||||
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/dist/InfiniteScroll.js ***!
|
||||
\****************************************************************************************************/
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({
|
||||
value: true
|
||||
}));
|
||||
|
||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
||||
|
||||
var _react = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = __webpack_require__(/*! prop-types */ 12708);
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
||||
|
||||
var InfiniteScroll = function (_Component) {
|
||||
_inherits(InfiniteScroll, _Component);
|
||||
|
||||
function InfiniteScroll(props) {
|
||||
_classCallCheck(this, InfiniteScroll);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));
|
||||
|
||||
_this.scrollListener = _this.scrollListener.bind(_this);
|
||||
_this.eventListenerOptions = _this.eventListenerOptions.bind(_this);
|
||||
_this.mousewheelListener = _this.mousewheelListener.bind(_this);
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(InfiniteScroll, [{
|
||||
key: 'componentDidMount',
|
||||
value: function componentDidMount() {
|
||||
this.pageLoaded = this.props.pageStart;
|
||||
this.options = this.eventListenerOptions();
|
||||
this.attachScrollListener();
|
||||
}
|
||||
}, {
|
||||
key: 'componentDidUpdate',
|
||||
value: function componentDidUpdate() {
|
||||
if (this.props.isReverse && this.loadMore) {
|
||||
var parentElement = this.getParentElement(this.scrollComponent);
|
||||
parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;
|
||||
this.loadMore = false;
|
||||
}
|
||||
this.attachScrollListener();
|
||||
}
|
||||
}, {
|
||||
key: 'componentWillUnmount',
|
||||
value: function componentWillUnmount() {
|
||||
this.detachScrollListener();
|
||||
this.detachMousewheelListener();
|
||||
}
|
||||
}, {
|
||||
key: 'isPassiveSupported',
|
||||
value: function isPassiveSupported() {
|
||||
var passive = false;
|
||||
|
||||
var testOptions = {
|
||||
get passive() {
|
||||
passive = true;
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
document.addEventListener('test', null, testOptions);
|
||||
document.removeEventListener('test', null, testOptions);
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
return passive;
|
||||
}
|
||||
}, {
|
||||
key: 'eventListenerOptions',
|
||||
value: function eventListenerOptions() {
|
||||
var options = this.props.useCapture;
|
||||
|
||||
if (this.isPassiveSupported()) {
|
||||
options = {
|
||||
useCapture: this.props.useCapture,
|
||||
passive: true
|
||||
};
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
// Set a defaut loader for all your `InfiniteScroll` components
|
||||
|
||||
}, {
|
||||
key: 'setDefaultLoader',
|
||||
value: function setDefaultLoader(loader) {
|
||||
this.defaultLoader = loader;
|
||||
}
|
||||
}, {
|
||||
key: 'detachMousewheelListener',
|
||||
value: function detachMousewheelListener() {
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = this.scrollComponent.parentNode;
|
||||
}
|
||||
|
||||
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
|
||||
}
|
||||
}, {
|
||||
key: 'detachScrollListener',
|
||||
value: function detachScrollListener() {
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = this.getParentElement(this.scrollComponent);
|
||||
}
|
||||
|
||||
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
}
|
||||
}, {
|
||||
key: 'getParentElement',
|
||||
value: function getParentElement(el) {
|
||||
var scrollParent = this.props.getScrollParent && this.props.getScrollParent();
|
||||
if (scrollParent != null) {
|
||||
return scrollParent;
|
||||
}
|
||||
return el && el.parentNode;
|
||||
}
|
||||
}, {
|
||||
key: 'filterProps',
|
||||
value: function filterProps(props) {
|
||||
return props;
|
||||
}
|
||||
}, {
|
||||
key: 'attachScrollListener',
|
||||
value: function attachScrollListener() {
|
||||
var parentElement = this.getParentElement(this.scrollComponent);
|
||||
|
||||
if (!this.props.hasMore || !parentElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
var scrollEl = window;
|
||||
if (this.props.useWindow === false) {
|
||||
scrollEl = parentElement;
|
||||
}
|
||||
|
||||
scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);
|
||||
|
||||
if (this.props.initialLoad) {
|
||||
this.scrollListener();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'mousewheelListener',
|
||||
value: function mousewheelListener(e) {
|
||||
// Prevents Chrome hangups
|
||||
// See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257
|
||||
if (e.deltaY === 1 && !this.isPassiveSupported()) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'scrollListener',
|
||||
value: function scrollListener() {
|
||||
var el = this.scrollComponent;
|
||||
var scrollEl = window;
|
||||
var parentNode = this.getParentElement(el);
|
||||
|
||||
var offset = void 0;
|
||||
if (this.props.useWindow) {
|
||||
var doc = document.documentElement || document.body.parentNode || document.body;
|
||||
var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;
|
||||
if (this.props.isReverse) {
|
||||
offset = scrollTop;
|
||||
} else {
|
||||
offset = this.calculateOffset(el, scrollTop);
|
||||
}
|
||||
} else if (this.props.isReverse) {
|
||||
offset = parentNode.scrollTop;
|
||||
} else {
|
||||
offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;
|
||||
}
|
||||
|
||||
// Here we make sure the element is visible as well as checking the offset
|
||||
if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {
|
||||
this.detachScrollListener();
|
||||
this.beforeScrollHeight = parentNode.scrollHeight;
|
||||
this.beforeScrollTop = parentNode.scrollTop;
|
||||
// Call loadMore after detachScrollListener to allow for non-async loadMore functions
|
||||
if (typeof this.props.loadMore === 'function') {
|
||||
this.props.loadMore(this.pageLoaded += 1);
|
||||
this.loadMore = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: 'calculateOffset',
|
||||
value: function calculateOffset(el, scrollTop) {
|
||||
if (!el) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);
|
||||
}
|
||||
}, {
|
||||
key: 'calculateTopPosition',
|
||||
value: function calculateTopPosition(el) {
|
||||
if (!el) {
|
||||
return 0;
|
||||
}
|
||||
return el.offsetTop + this.calculateTopPosition(el.offsetParent);
|
||||
}
|
||||
}, {
|
||||
key: 'render',
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
var renderProps = this.filterProps(this.props);
|
||||
|
||||
var children = renderProps.children,
|
||||
element = renderProps.element,
|
||||
hasMore = renderProps.hasMore,
|
||||
initialLoad = renderProps.initialLoad,
|
||||
isReverse = renderProps.isReverse,
|
||||
loader = renderProps.loader,
|
||||
loadMore = renderProps.loadMore,
|
||||
pageStart = renderProps.pageStart,
|
||||
ref = renderProps.ref,
|
||||
threshold = renderProps.threshold,
|
||||
useCapture = renderProps.useCapture,
|
||||
useWindow = renderProps.useWindow,
|
||||
getScrollParent = renderProps.getScrollParent,
|
||||
props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);
|
||||
|
||||
props.ref = function (node) {
|
||||
_this2.scrollComponent = node;
|
||||
if (ref) {
|
||||
ref(node);
|
||||
}
|
||||
};
|
||||
|
||||
var childrenArray = [children];
|
||||
if (hasMore) {
|
||||
if (loader) {
|
||||
isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);
|
||||
} else if (this.defaultLoader) {
|
||||
isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);
|
||||
}
|
||||
}
|
||||
return _react2.default.createElement(element, props, childrenArray);
|
||||
}
|
||||
}]);
|
||||
|
||||
return InfiniteScroll;
|
||||
}(_react.Component);
|
||||
|
||||
InfiniteScroll.propTypes = {
|
||||
children: _propTypes2.default.node.isRequired,
|
||||
element: _propTypes2.default.node,
|
||||
hasMore: _propTypes2.default.bool,
|
||||
initialLoad: _propTypes2.default.bool,
|
||||
isReverse: _propTypes2.default.bool,
|
||||
loader: _propTypes2.default.node,
|
||||
loadMore: _propTypes2.default.func.isRequired,
|
||||
pageStart: _propTypes2.default.number,
|
||||
ref: _propTypes2.default.func,
|
||||
getScrollParent: _propTypes2.default.func,
|
||||
threshold: _propTypes2.default.number,
|
||||
useCapture: _propTypes2.default.bool,
|
||||
useWindow: _propTypes2.default.bool
|
||||
};
|
||||
InfiniteScroll.defaultProps = {
|
||||
element: 'div',
|
||||
hasMore: false,
|
||||
initialLoad: true,
|
||||
pageStart: 0,
|
||||
ref: null,
|
||||
threshold: 250,
|
||||
useWindow: true,
|
||||
isReverse: false,
|
||||
useCapture: false,
|
||||
loader: null,
|
||||
getScrollParent: null
|
||||
};
|
||||
exports["default"] = InfiniteScroll;
|
||||
module.exports = exports['default'];
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 26724:
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js ***!
|
||||
\**************************************************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 51581)
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,738 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15219],{
|
||||
|
||||
/***/ 11407:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_LeftOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/LeftOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LeftOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88845:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_RightOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/RightOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_RightOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_RightOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10711:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/layout/Sider.js + 3 modules ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
D: function() { return /* binding */ SiderContext; },
|
||||
Z: function() { return /* binding */ layout_Sider; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/BarsOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var BarsOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "bars", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_BarsOutlined = (BarsOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/BarsOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var BarsOutlined_BarsOutlined = function BarsOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_BarsOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(BarsOutlined_BarsOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_BarsOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
|
||||
var LeftOutlined = __webpack_require__(11407);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules
|
||||
var RightOutlined = __webpack_require__(88845);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/isNumeric.js
|
||||
const isNumeric = value => !isNaN(parseFloat(value)) && isFinite(value);
|
||||
/* harmony default export */ var _util_isNumeric = (isNumeric);
|
||||
// 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/layout/layout.js + 2 modules
|
||||
var layout = __webpack_require__(84966);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/Sider.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 dimensionMaxMap = {
|
||||
xs: '479.98px',
|
||||
sm: '575.98px',
|
||||
md: '767.98px',
|
||||
lg: '991.98px',
|
||||
xl: '1199.98px',
|
||||
xxl: '1599.98px'
|
||||
};
|
||||
const SiderContext = /*#__PURE__*/_react_17_0_2_react.createContext({});
|
||||
const generateId = (() => {
|
||||
let i = 0;
|
||||
return function () {
|
||||
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
||||
i += 1;
|
||||
return `${prefix}${i}`;
|
||||
};
|
||||
})();
|
||||
const Sider = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
trigger,
|
||||
children,
|
||||
defaultCollapsed = false,
|
||||
theme = 'dark',
|
||||
style = {},
|
||||
collapsible = false,
|
||||
reverseArrow = false,
|
||||
width = 200,
|
||||
collapsedWidth = 80,
|
||||
zeroWidthTriggerStyle,
|
||||
breakpoint,
|
||||
onCollapse,
|
||||
onBreakpoint
|
||||
} = props,
|
||||
otherProps = __rest(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
|
||||
const {
|
||||
siderHook
|
||||
} = (0,_react_17_0_2_react.useContext)(layout/* LayoutContext */.Gs);
|
||||
const [collapsed, setCollapsed] = (0,_react_17_0_2_react.useState)('collapsed' in props ? props.collapsed : defaultCollapsed);
|
||||
const [below, setBelow] = (0,_react_17_0_2_react.useState)(false);
|
||||
(0,_react_17_0_2_react.useEffect)(() => {
|
||||
if ('collapsed' in props) {
|
||||
setCollapsed(props.collapsed);
|
||||
}
|
||||
}, [props.collapsed]);
|
||||
const handleSetCollapsed = (value, type) => {
|
||||
if (!('collapsed' in props)) {
|
||||
setCollapsed(value);
|
||||
}
|
||||
onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(value, type);
|
||||
};
|
||||
// ========================= Responsive =========================
|
||||
const responsiveHandlerRef = (0,_react_17_0_2_react.useRef)();
|
||||
responsiveHandlerRef.current = mql => {
|
||||
setBelow(mql.matches);
|
||||
onBreakpoint === null || onBreakpoint === void 0 ? void 0 : onBreakpoint(mql.matches);
|
||||
if (collapsed !== mql.matches) {
|
||||
handleSetCollapsed(mql.matches, 'responsive');
|
||||
}
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(() => {
|
||||
function responsiveHandler(mql) {
|
||||
return responsiveHandlerRef.current(mql);
|
||||
}
|
||||
let mql;
|
||||
if (typeof window !== 'undefined') {
|
||||
const {
|
||||
matchMedia
|
||||
} = window;
|
||||
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
||||
mql = matchMedia(`(max-width: ${dimensionMaxMap[breakpoint]})`);
|
||||
try {
|
||||
mql.addEventListener('change', responsiveHandler);
|
||||
} catch (error) {
|
||||
mql.addListener(responsiveHandler);
|
||||
}
|
||||
responsiveHandler(mql);
|
||||
}
|
||||
}
|
||||
return () => {
|
||||
try {
|
||||
mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
|
||||
} catch (error) {
|
||||
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
||||
}
|
||||
};
|
||||
}, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
|
||||
(0,_react_17_0_2_react.useEffect)(() => {
|
||||
const uniqueId = generateId('ant-sider-');
|
||||
siderHook.addSider(uniqueId);
|
||||
return () => siderHook.removeSider(uniqueId);
|
||||
}, []);
|
||||
const toggle = () => {
|
||||
handleSetCollapsed(!collapsed, 'clickTrigger');
|
||||
};
|
||||
const {
|
||||
getPrefixCls
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const renderSider = () => {
|
||||
const prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
|
||||
const divProps = (0,omit/* default */.Z)(otherProps, ['collapsed']);
|
||||
const rawWidth = collapsed ? collapsedWidth : width;
|
||||
// use "px" as fallback unit for width
|
||||
const siderWidth = _util_isNumeric(rawWidth) ? `${rawWidth}px` : String(rawWidth);
|
||||
// special trigger when collapsedWidth == 0
|
||||
const zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
onClick: toggle,
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
||||
style: zeroWidthTriggerStyle
|
||||
}, trigger || /*#__PURE__*/_react_17_0_2_react.createElement(icons_BarsOutlined, null)) : null;
|
||||
const iconObj = {
|
||||
expanded: reverseArrow ? /*#__PURE__*/_react_17_0_2_react.createElement(RightOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(LeftOutlined/* default */.Z, null),
|
||||
collapsed: reverseArrow ? /*#__PURE__*/_react_17_0_2_react.createElement(LeftOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(RightOutlined/* default */.Z, null)
|
||||
};
|
||||
const status = collapsed ? 'collapsed' : 'expanded';
|
||||
const defaultTrigger = iconObj[status];
|
||||
const triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-trigger`,
|
||||
onClick: toggle,
|
||||
style: {
|
||||
width: siderWidth
|
||||
}
|
||||
}, trigger || defaultTrigger) : null;
|
||||
const divStyle = Object.assign(Object.assign({}, style), {
|
||||
flex: `0 0 ${siderWidth}`,
|
||||
maxWidth: siderWidth,
|
||||
minWidth: siderWidth,
|
||||
width: siderWidth
|
||||
});
|
||||
const siderCls = _classnames_2_5_1_classnames_default()(prefixCls, `${prefixCls}-${theme}`, {
|
||||
[`${prefixCls}-collapsed`]: !!collapsed,
|
||||
[`${prefixCls}-has-trigger`]: collapsible && trigger !== null && !zeroWidthTrigger,
|
||||
[`${prefixCls}-below`]: !!below,
|
||||
[`${prefixCls}-zero-width`]: parseFloat(siderWidth) === 0
|
||||
}, className);
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("aside", Object.assign({
|
||||
className: siderCls
|
||||
}, divProps, {
|
||||
style: divStyle,
|
||||
ref: ref
|
||||
}), /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-children`
|
||||
}, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);
|
||||
};
|
||||
const contextValue = _react_17_0_2_react.useMemo(() => ({
|
||||
siderCollapsed: collapsed
|
||||
}), [collapsed]);
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(SiderContext.Provider, {
|
||||
value: contextValue
|
||||
}, renderSider());
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var layout_Sider = (Sider);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 84966:
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/layout/layout.js + 2 modules ***!
|
||||
\***********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
VY: function() { return /* binding */ Content; },
|
||||
$_: function() { return /* binding */ Footer; },
|
||||
h4: function() { return /* binding */ Header; },
|
||||
Gs: function() { return /* binding */ LayoutContext; },
|
||||
ZP: function() { return /* binding */ layout; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||||
var toConsumableArray = __webpack_require__(31311);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// 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/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(83116);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/style/light.js
|
||||
const genLayoutLightStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
bodyBg,
|
||||
lightSiderBg,
|
||||
lightTriggerBg,
|
||||
lightTriggerColor
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-sider-light`]: {
|
||||
background: lightSiderBg,
|
||||
[`${componentCls}-sider-trigger`]: {
|
||||
color: lightTriggerColor,
|
||||
background: lightTriggerBg
|
||||
},
|
||||
[`${componentCls}-sider-zero-width-trigger`]: {
|
||||
color: lightTriggerColor,
|
||||
background: lightTriggerBg,
|
||||
border: `1px solid ${bodyBg}`,
|
||||
borderInlineStart: 0
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
/* harmony default export */ var light = (genLayoutLightStyle);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/style/index.js
|
||||
|
||||
|
||||
const genLayoutStyle = token => {
|
||||
const {
|
||||
antCls,
|
||||
// .ant
|
||||
componentCls,
|
||||
// .ant-layout
|
||||
colorText,
|
||||
triggerColor,
|
||||
footerBg,
|
||||
triggerBg,
|
||||
headerHeight,
|
||||
headerPadding,
|
||||
headerColor,
|
||||
footerPadding,
|
||||
triggerHeight,
|
||||
zeroTriggerHeight,
|
||||
zeroTriggerWidth,
|
||||
motionDurationMid,
|
||||
motionDurationSlow,
|
||||
fontSize,
|
||||
borderRadius,
|
||||
bodyBg,
|
||||
headerBg,
|
||||
siderBg
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({
|
||||
display: 'flex',
|
||||
flex: 'auto',
|
||||
flexDirection: 'column',
|
||||
/* fix firefox can't set height smaller than content on flex item */
|
||||
minHeight: 0,
|
||||
background: bodyBg,
|
||||
'&, *': {
|
||||
boxSizing: 'border-box'
|
||||
},
|
||||
[`&${componentCls}-has-sider`]: {
|
||||
flexDirection: 'row',
|
||||
[`> ${componentCls}, > ${componentCls}-content`]: {
|
||||
// https://segmentfault.com/a/1190000019498300
|
||||
width: 0
|
||||
}
|
||||
},
|
||||
[`${componentCls}-header, &${componentCls}-footer`]: {
|
||||
flex: '0 0 auto'
|
||||
},
|
||||
[`${componentCls}-sider`]: {
|
||||
position: 'relative',
|
||||
// fix firefox can't set width smaller than content on flex item
|
||||
minWidth: 0,
|
||||
background: siderBg,
|
||||
transition: `all ${motionDurationMid}, background 0s`,
|
||||
'&-children': {
|
||||
height: '100%',
|
||||
// Hack for fixing margin collapse bug
|
||||
// https://github.com/ant-design/ant-design/issues/7967
|
||||
// solution from https://stackoverflow.com/a/33132624/3040605
|
||||
marginTop: -0.1,
|
||||
paddingTop: 0.1,
|
||||
[`${antCls}-menu${antCls}-menu-inline-collapsed`]: {
|
||||
width: 'auto'
|
||||
}
|
||||
},
|
||||
'&-has-trigger': {
|
||||
paddingBottom: triggerHeight
|
||||
},
|
||||
'&-right': {
|
||||
order: 1
|
||||
},
|
||||
'&-trigger': {
|
||||
position: 'fixed',
|
||||
bottom: 0,
|
||||
zIndex: 1,
|
||||
height: triggerHeight,
|
||||
color: triggerColor,
|
||||
lineHeight: `${triggerHeight}px`,
|
||||
textAlign: 'center',
|
||||
background: triggerBg,
|
||||
cursor: 'pointer',
|
||||
transition: `all ${motionDurationMid}`
|
||||
},
|
||||
'&-zero-width': {
|
||||
'> *': {
|
||||
overflow: 'hidden'
|
||||
},
|
||||
'&-trigger': {
|
||||
position: 'absolute',
|
||||
top: headerHeight,
|
||||
insetInlineEnd: -zeroTriggerWidth,
|
||||
zIndex: 1,
|
||||
width: zeroTriggerWidth,
|
||||
height: zeroTriggerHeight,
|
||||
color: triggerColor,
|
||||
fontSize: token.fontSizeXL,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
background: siderBg,
|
||||
borderStartStartRadius: 0,
|
||||
borderStartEndRadius: borderRadius,
|
||||
borderEndEndRadius: borderRadius,
|
||||
borderEndStartRadius: 0,
|
||||
cursor: 'pointer',
|
||||
transition: `background ${motionDurationSlow} ease`,
|
||||
'&::after': {
|
||||
position: 'absolute',
|
||||
inset: 0,
|
||||
background: 'transparent',
|
||||
transition: `all ${motionDurationSlow}`,
|
||||
content: '""'
|
||||
},
|
||||
'&:hover::after': {
|
||||
background: `rgba(255, 255, 255, 0.2)`
|
||||
},
|
||||
'&-right': {
|
||||
insetInlineStart: -zeroTriggerWidth,
|
||||
borderStartStartRadius: borderRadius,
|
||||
borderStartEndRadius: 0,
|
||||
borderEndEndRadius: 0,
|
||||
borderEndStartRadius: borderRadius
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, light(token)), {
|
||||
// RTL
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
}
|
||||
}),
|
||||
// ==================== Header ====================
|
||||
[`${componentCls}-header`]: {
|
||||
height: headerHeight,
|
||||
padding: headerPadding,
|
||||
color: headerColor,
|
||||
lineHeight: `${headerHeight}px`,
|
||||
background: headerBg,
|
||||
// Other components/menu/style/index.less line:686
|
||||
// Integration with header element so menu items have the same height
|
||||
[`${antCls}-menu`]: {
|
||||
lineHeight: 'inherit'
|
||||
}
|
||||
},
|
||||
// ==================== Footer ====================
|
||||
[`${componentCls}-footer`]: {
|
||||
padding: footerPadding,
|
||||
color: colorText,
|
||||
fontSize,
|
||||
background: footerBg
|
||||
},
|
||||
// =================== Content ====================
|
||||
[`${componentCls}-content`]: {
|
||||
flex: 'auto',
|
||||
// fix firefox can't set height smaller than content on flex item
|
||||
minHeight: 0
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var layout_style = ((0,genComponentStyleHook/* default */.Z)('Layout', token => [genLayoutStyle(token)], token => {
|
||||
const {
|
||||
colorBgLayout,
|
||||
controlHeight,
|
||||
controlHeightLG,
|
||||
colorText,
|
||||
controlHeightSM,
|
||||
marginXXS,
|
||||
colorTextLightSolid,
|
||||
colorBgContainer
|
||||
} = token;
|
||||
const paddingInline = controlHeightLG * 1.25;
|
||||
return {
|
||||
// Deprecated
|
||||
colorBgHeader: '#001529',
|
||||
colorBgBody: colorBgLayout,
|
||||
colorBgTrigger: '#002140',
|
||||
bodyBg: colorBgLayout,
|
||||
headerBg: '#001529',
|
||||
headerHeight: controlHeight * 2,
|
||||
headerPadding: `0 ${paddingInline}px`,
|
||||
headerColor: colorText,
|
||||
footerPadding: `${controlHeightSM}px ${paddingInline}px`,
|
||||
footerBg: colorBgLayout,
|
||||
siderBg: '#001529',
|
||||
triggerHeight: controlHeightLG + marginXXS * 2,
|
||||
triggerBg: '#002140',
|
||||
triggerColor: colorTextLightSolid,
|
||||
zeroTriggerWidth: controlHeightLG,
|
||||
zeroTriggerHeight: controlHeightLG,
|
||||
lightSiderBg: colorBgContainer,
|
||||
lightTriggerBg: colorBgContainer,
|
||||
lightTriggerColor: colorText
|
||||
};
|
||||
}, {
|
||||
deprecatedTokens: [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']]
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/layout.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 LayoutContext = /*#__PURE__*/_react_17_0_2_react.createContext({
|
||||
siderHook: {
|
||||
addSider: () => null,
|
||||
removeSider: () => null
|
||||
}
|
||||
});
|
||||
function generator(_ref) {
|
||||
let {
|
||||
suffixCls,
|
||||
tagName,
|
||||
displayName
|
||||
} = _ref;
|
||||
return BasicComponent => {
|
||||
const Adapter = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => /*#__PURE__*/_react_17_0_2_react.createElement(BasicComponent, Object.assign({
|
||||
ref: ref,
|
||||
suffixCls: suffixCls,
|
||||
tagName: tagName
|
||||
}, props)));
|
||||
if (false) {}
|
||||
return Adapter;
|
||||
};
|
||||
}
|
||||
const Basic = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
suffixCls,
|
||||
className,
|
||||
tagName: TagName
|
||||
} = props,
|
||||
others = __rest(props, ["prefixCls", "suffixCls", "className", "tagName"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('layout', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = layout_style(prefixCls);
|
||||
const prefixWithSuffixCls = suffixCls ? `${prefixCls}-${suffixCls}` : prefixCls;
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(TagName, Object.assign({
|
||||
className: _classnames_2_5_1_classnames_default()(customizePrefixCls || prefixWithSuffixCls, className, hashId),
|
||||
ref: ref
|
||||
}, others)));
|
||||
});
|
||||
const BasicLayout = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const [siders, setSiders] = _react_17_0_2_react.useState([]);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
hasSider,
|
||||
tagName: Tag,
|
||||
style
|
||||
} = props,
|
||||
others = __rest(props, ["prefixCls", "className", "rootClassName", "children", "hasSider", "tagName", "style"]);
|
||||
const passedProps = (0,omit/* default */.Z)(others, ['suffixCls']);
|
||||
const {
|
||||
getPrefixCls,
|
||||
layout
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('layout', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = layout_style(prefixCls);
|
||||
const classString = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-has-sider`]: typeof hasSider === 'boolean' ? hasSider : siders.length > 0,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, layout === null || layout === void 0 ? void 0 : layout.className, className, rootClassName, hashId);
|
||||
const contextValue = _react_17_0_2_react.useMemo(() => ({
|
||||
siderHook: {
|
||||
addSider: id => {
|
||||
setSiders(prev => [].concat((0,toConsumableArray/* default */.Z)(prev), [id]));
|
||||
},
|
||||
removeSider: id => {
|
||||
setSiders(prev => prev.filter(currentId => currentId !== id));
|
||||
}
|
||||
}
|
||||
}), []);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(LayoutContext.Provider, {
|
||||
value: contextValue
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(Tag, Object.assign({
|
||||
ref: ref,
|
||||
className: classString,
|
||||
style: Object.assign(Object.assign({}, layout === null || layout === void 0 ? void 0 : layout.style), style)
|
||||
}, passedProps), children)));
|
||||
});
|
||||
const Layout = generator({
|
||||
tagName: 'div',
|
||||
displayName: 'Layout'
|
||||
})(BasicLayout);
|
||||
const Header = generator({
|
||||
suffixCls: 'header',
|
||||
tagName: 'header',
|
||||
displayName: 'Header'
|
||||
})(Basic);
|
||||
const Footer = generator({
|
||||
suffixCls: 'footer',
|
||||
tagName: 'footer',
|
||||
displayName: 'Footer'
|
||||
})(Basic);
|
||||
const Content = generator({
|
||||
suffixCls: 'content',
|
||||
tagName: 'main',
|
||||
displayName: 'Content'
|
||||
})(Basic);
|
||||
|
||||
/* harmony default export */ var layout = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8378:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
const genCollapseMotion = token => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: 'hidden',
|
||||
'&-active': {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: 'hidden',
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,203 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15290],{
|
||||
|
||||
/***/ 15290:
|
||||
/*!********************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/hcl/hcl.js ***!
|
||||
\********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.hcl',
|
||||
keywords: [
|
||||
'var',
|
||||
'local',
|
||||
'path',
|
||||
'for_each',
|
||||
'any',
|
||||
'string',
|
||||
'number',
|
||||
'bool',
|
||||
'true',
|
||||
'false',
|
||||
'null',
|
||||
'if ',
|
||||
'else ',
|
||||
'endif ',
|
||||
'for ',
|
||||
'in',
|
||||
'endfor'
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>=',
|
||||
'<=',
|
||||
'==',
|
||||
'!=',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'&&',
|
||||
'||',
|
||||
'!',
|
||||
'<',
|
||||
'>',
|
||||
'?',
|
||||
'...',
|
||||
':'
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
|
||||
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
// highlight main blocks
|
||||
[
|
||||
/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['type', '', 'string', '', 'string', '', '@brackets']
|
||||
],
|
||||
// highlight all the remaining blocks
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['identifier', '', 'string', '', 'string', '', '@brackets']
|
||||
],
|
||||
// highlight block
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
|
||||
['identifier', '', 'string', '', 'operator', '', '@brackets']
|
||||
],
|
||||
// terraform general highlight - shared with expressions
|
||||
{ include: '@terraform' }
|
||||
],
|
||||
terraform: [
|
||||
// highlight terraform functions
|
||||
[/@terraformFunctions(\()/, ['type', '@brackets']],
|
||||
// all other words are variables or keywords
|
||||
[
|
||||
/[a-zA-Z_]\w*-*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'variable'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@heredoc' },
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\d[\d']*/, 'number'],
|
||||
[/\d/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"/, 'string', '@string'],
|
||||
[/'/, 'invalid']
|
||||
],
|
||||
heredoc: [
|
||||
[
|
||||
/<<[-]*\s*["]?([\w\-]+)["]?/,
|
||||
{ token: 'string.heredoc.delimiter', next: '@heredocBody.$1' }
|
||||
]
|
||||
],
|
||||
heredocBody: [
|
||||
[
|
||||
/([\w\-]+)$/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': [
|
||||
{
|
||||
token: 'string.heredoc.delimiter',
|
||||
next: '@popall'
|
||||
}
|
||||
],
|
||||
'@default': 'string.heredoc'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/./, 'string.heredoc']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
[/#.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
string: [
|
||||
[/\$\{/, { token: 'delimiter', next: '@stringExpression' }],
|
||||
[/[^\\"\$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@popall']
|
||||
],
|
||||
stringInsideExpression: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop']
|
||||
],
|
||||
stringExpression: [
|
||||
[/\}/, { token: 'delimiter', next: '@pop' }],
|
||||
[/"/, 'string', '@stringInsideExpression'],
|
||||
{ include: '@terraform' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[15290],{15290:function(e,t,s){s.r(t),s.d(t,{conf:function(){return r},language:function(){return o}});var r={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,899 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16550],{
|
||||
|
||||
/***/ 65041:
|
||||
/*!**********************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
|
||||
\**********************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_DownloadOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/DownloadOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var DownloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "download", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_DownloadOutlined = (DownloadOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownloadOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var DownloadOutlined_DownloadOutlined = function DownloadOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DownloadOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownloadOutlined_DownloadOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DownloadOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 89136:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11407:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_LeftOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/LeftOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LeftOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LeftOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44539:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
|
||||
\********************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ReloadOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/ReloadOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ReloadOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" } }] }, "name": "reload", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ReloadOutlined = (ReloadOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ReloadOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ReloadOutlined_ReloadOutlined = function ReloadOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ReloadOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ReloadOutlined_ReloadOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ReloadOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 88845:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_RightOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/RightOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/RightOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_RightOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_RightOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 28103:
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
|
||||
\***********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// 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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98135:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(89136);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(11013);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8378:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
const genCollapseMotion = token => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: 'hidden',
|
||||
'&-active': {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: 'hidden',
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -1,713 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16703],{
|
||||
|
||||
/***/ 43501:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_DownOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/DownOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DownOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DownOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 56762:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66104:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ breadcrumb; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(47413);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(43501);
|
||||
// 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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92899:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 18353);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,711 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17814,98255],{
|
||||
|
||||
/***/ 88289:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 89136:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98135:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(89136);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(11013);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57809:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
|
||||
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
|
||||
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
|
||||
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
|
||||
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
|
||||
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
|
||||
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
|
||||
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
|
||||
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
|
||||
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
|
||||
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
||||
const InternalSelect = (_a, ref) => {
|
||||
var _b;
|
||||
var {
|
||||
prefixCls: customizePrefixCls,
|
||||
bordered = true,
|
||||
className,
|
||||
rootClassName,
|
||||
getPopupContainer,
|
||||
popupClassName,
|
||||
dropdownClassName,
|
||||
listHeight = 256,
|
||||
placement,
|
||||
listItemHeight = 24,
|
||||
size: customizeSize,
|
||||
disabled: customDisabled,
|
||||
notFoundContent,
|
||||
status: customStatus,
|
||||
builtinPlacements,
|
||||
dropdownMatchSelectWidth,
|
||||
popupMatchSelectWidth,
|
||||
direction: propDirection,
|
||||
style,
|
||||
allowClear
|
||||
} = _a,
|
||||
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
renderEmpty,
|
||||
direction: contextDirection,
|
||||
virtual,
|
||||
popupMatchSelectWidth: contextPopupMatchSelectWidth,
|
||||
popupOverflow,
|
||||
select
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
||||
const rootPrefixCls = getPrefixCls();
|
||||
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
|
||||
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
|
||||
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
||||
const {
|
||||
mode: m
|
||||
} = props;
|
||||
if (m === 'combobox') {
|
||||
return undefined;
|
||||
}
|
||||
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
|
||||
return 'combobox';
|
||||
}
|
||||
return m;
|
||||
}, [props.mode]);
|
||||
const isMultiple = mode === 'multiple' || mode === 'tags';
|
||||
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
|
||||
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
|
||||
// ===================== Form Status =====================
|
||||
const {
|
||||
status: contextStatus,
|
||||
hasFeedback,
|
||||
isFormItemInput,
|
||||
feedbackIcon
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
|
||||
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
|
||||
// ===================== Empty =====================
|
||||
let mergedNotFound;
|
||||
if (notFoundContent !== undefined) {
|
||||
mergedNotFound = notFoundContent;
|
||||
} else if (mode === 'combobox') {
|
||||
mergedNotFound = null;
|
||||
} else {
|
||||
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
||||
componentName: "Select"
|
||||
});
|
||||
}
|
||||
// ===================== Icons =====================
|
||||
const {
|
||||
suffixIcon,
|
||||
itemIcon,
|
||||
removeIcon,
|
||||
clearIcon
|
||||
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
|
||||
multiple: isMultiple,
|
||||
hasFeedback,
|
||||
feedbackIcon,
|
||||
showSuffixIcon,
|
||||
prefixCls,
|
||||
showArrow: props.showArrow,
|
||||
componentName: 'Select'
|
||||
}));
|
||||
const mergedAllowClear = allowClear === true ? {
|
||||
clearIcon
|
||||
} : allowClear;
|
||||
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
|
||||
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
|
||||
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
|
||||
}, rootClassName, hashId);
|
||||
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
// ===================== Disabled =====================
|
||||
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
|
||||
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
||||
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
[`${prefixCls}-lg`]: mergedSize === 'large',
|
||||
[`${prefixCls}-sm`]: mergedSize === 'small',
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-borderless`]: !bordered,
|
||||
[`${prefixCls}-in-form-item`]: isFormItemInput
|
||||
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
|
||||
// ===================== Placement =====================
|
||||
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
||||
if (placement !== undefined) {
|
||||
return placement;
|
||||
}
|
||||
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
||||
}, [placement, direction]);
|
||||
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
|
||||
// ====================== Warning ======================
|
||||
if (false) {}
|
||||
// ====================== Render =======================
|
||||
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
|
||||
ref: ref,
|
||||
virtual: virtual,
|
||||
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
|
||||
}, selectProps, {
|
||||
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
|
||||
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
|
||||
builtinPlacements: mergedBuiltinPlacements,
|
||||
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
|
||||
listHeight: listHeight,
|
||||
listItemHeight: listItemHeight,
|
||||
mode: mode,
|
||||
prefixCls: prefixCls,
|
||||
placement: memoPlacement,
|
||||
direction: direction,
|
||||
suffixIcon: suffixIcon,
|
||||
menuItemSelectedIcon: itemIcon,
|
||||
removeIcon: removeIcon,
|
||||
allowClear: mergedAllowClear,
|
||||
notFoundContent: mergedNotFound,
|
||||
className: mergedClassName,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
dropdownClassName: rcSelectRtlDropdownClassName,
|
||||
disabled: mergedDisabled
|
||||
})));
|
||||
};
|
||||
if (false) {}
|
||||
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
|
||||
// We don't care debug panel
|
||||
/* istanbul ignore next */
|
||||
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
|
||||
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
||||
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
|
||||
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
|
||||
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
|
||||
if (false) {}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,322 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18350],{
|
||||
|
||||
/***/ 18350:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/redis/redis.js ***!
|
||||
\************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.redis',
|
||||
ignoreCase: true,
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' }
|
||||
],
|
||||
keywords: [
|
||||
'APPEND',
|
||||
'AUTH',
|
||||
'BGREWRITEAOF',
|
||||
'BGSAVE',
|
||||
'BITCOUNT',
|
||||
'BITFIELD',
|
||||
'BITOP',
|
||||
'BITPOS',
|
||||
'BLPOP',
|
||||
'BRPOP',
|
||||
'BRPOPLPUSH',
|
||||
'CLIENT',
|
||||
'KILL',
|
||||
'LIST',
|
||||
'GETNAME',
|
||||
'PAUSE',
|
||||
'REPLY',
|
||||
'SETNAME',
|
||||
'CLUSTER',
|
||||
'ADDSLOTS',
|
||||
'COUNT-FAILURE-REPORTS',
|
||||
'COUNTKEYSINSLOT',
|
||||
'DELSLOTS',
|
||||
'FAILOVER',
|
||||
'FORGET',
|
||||
'GETKEYSINSLOT',
|
||||
'INFO',
|
||||
'KEYSLOT',
|
||||
'MEET',
|
||||
'NODES',
|
||||
'REPLICATE',
|
||||
'RESET',
|
||||
'SAVECONFIG',
|
||||
'SET-CONFIG-EPOCH',
|
||||
'SETSLOT',
|
||||
'SLAVES',
|
||||
'SLOTS',
|
||||
'COMMAND',
|
||||
'COUNT',
|
||||
'GETKEYS',
|
||||
'CONFIG',
|
||||
'GET',
|
||||
'REWRITE',
|
||||
'SET',
|
||||
'RESETSTAT',
|
||||
'DBSIZE',
|
||||
'DEBUG',
|
||||
'OBJECT',
|
||||
'SEGFAULT',
|
||||
'DECR',
|
||||
'DECRBY',
|
||||
'DEL',
|
||||
'DISCARD',
|
||||
'DUMP',
|
||||
'ECHO',
|
||||
'EVAL',
|
||||
'EVALSHA',
|
||||
'EXEC',
|
||||
'EXISTS',
|
||||
'EXPIRE',
|
||||
'EXPIREAT',
|
||||
'FLUSHALL',
|
||||
'FLUSHDB',
|
||||
'GEOADD',
|
||||
'GEOHASH',
|
||||
'GEOPOS',
|
||||
'GEODIST',
|
||||
'GEORADIUS',
|
||||
'GEORADIUSBYMEMBER',
|
||||
'GETBIT',
|
||||
'GETRANGE',
|
||||
'GETSET',
|
||||
'HDEL',
|
||||
'HEXISTS',
|
||||
'HGET',
|
||||
'HGETALL',
|
||||
'HINCRBY',
|
||||
'HINCRBYFLOAT',
|
||||
'HKEYS',
|
||||
'HLEN',
|
||||
'HMGET',
|
||||
'HMSET',
|
||||
'HSET',
|
||||
'HSETNX',
|
||||
'HSTRLEN',
|
||||
'HVALS',
|
||||
'INCR',
|
||||
'INCRBY',
|
||||
'INCRBYFLOAT',
|
||||
'KEYS',
|
||||
'LASTSAVE',
|
||||
'LINDEX',
|
||||
'LINSERT',
|
||||
'LLEN',
|
||||
'LPOP',
|
||||
'LPUSH',
|
||||
'LPUSHX',
|
||||
'LRANGE',
|
||||
'LREM',
|
||||
'LSET',
|
||||
'LTRIM',
|
||||
'MGET',
|
||||
'MIGRATE',
|
||||
'MONITOR',
|
||||
'MOVE',
|
||||
'MSET',
|
||||
'MSETNX',
|
||||
'MULTI',
|
||||
'PERSIST',
|
||||
'PEXPIRE',
|
||||
'PEXPIREAT',
|
||||
'PFADD',
|
||||
'PFCOUNT',
|
||||
'PFMERGE',
|
||||
'PING',
|
||||
'PSETEX',
|
||||
'PSUBSCRIBE',
|
||||
'PUBSUB',
|
||||
'PTTL',
|
||||
'PUBLISH',
|
||||
'PUNSUBSCRIBE',
|
||||
'QUIT',
|
||||
'RANDOMKEY',
|
||||
'READONLY',
|
||||
'READWRITE',
|
||||
'RENAME',
|
||||
'RENAMENX',
|
||||
'RESTORE',
|
||||
'ROLE',
|
||||
'RPOP',
|
||||
'RPOPLPUSH',
|
||||
'RPUSH',
|
||||
'RPUSHX',
|
||||
'SADD',
|
||||
'SAVE',
|
||||
'SCARD',
|
||||
'SCRIPT',
|
||||
'FLUSH',
|
||||
'LOAD',
|
||||
'SDIFF',
|
||||
'SDIFFSTORE',
|
||||
'SELECT',
|
||||
'SETBIT',
|
||||
'SETEX',
|
||||
'SETNX',
|
||||
'SETRANGE',
|
||||
'SHUTDOWN',
|
||||
'SINTER',
|
||||
'SINTERSTORE',
|
||||
'SISMEMBER',
|
||||
'SLAVEOF',
|
||||
'SLOWLOG',
|
||||
'SMEMBERS',
|
||||
'SMOVE',
|
||||
'SORT',
|
||||
'SPOP',
|
||||
'SRANDMEMBER',
|
||||
'SREM',
|
||||
'STRLEN',
|
||||
'SUBSCRIBE',
|
||||
'SUNION',
|
||||
'SUNIONSTORE',
|
||||
'SWAPDB',
|
||||
'SYNC',
|
||||
'TIME',
|
||||
'TOUCH',
|
||||
'TTL',
|
||||
'TYPE',
|
||||
'UNSUBSCRIBE',
|
||||
'UNLINK',
|
||||
'UNWATCH',
|
||||
'WAIT',
|
||||
'WATCH',
|
||||
'ZADD',
|
||||
'ZCARD',
|
||||
'ZCOUNT',
|
||||
'ZINCRBY',
|
||||
'ZINTERSTORE',
|
||||
'ZLEXCOUNT',
|
||||
'ZRANGE',
|
||||
'ZRANGEBYLEX',
|
||||
'ZREVRANGEBYLEX',
|
||||
'ZRANGEBYSCORE',
|
||||
'ZRANK',
|
||||
'ZREM',
|
||||
'ZREMRANGEBYLEX',
|
||||
'ZREMRANGEBYRANK',
|
||||
'ZREMRANGEBYSCORE',
|
||||
'ZREVRANGE',
|
||||
'ZREVRANGEBYSCORE',
|
||||
'ZREVRANK',
|
||||
'ZSCORE',
|
||||
'ZUNIONSTORE',
|
||||
'SCAN',
|
||||
'SSCAN',
|
||||
'HSCAN',
|
||||
'ZSCAN'
|
||||
],
|
||||
operators: [
|
||||
// NOT SUPPORTED
|
||||
],
|
||||
builtinFunctions: [
|
||||
// NOT SUPPORTED
|
||||
],
|
||||
builtinVariables: [
|
||||
// NOT SUPPORTED
|
||||
],
|
||||
pseudoColumns: [
|
||||
// NOT SUPPORTED
|
||||
],
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@pseudoColumns' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@scopes' },
|
||||
[/[;,.]/, 'delimiter'],
|
||||
[/[()]/, '@brackets'],
|
||||
[
|
||||
/[\w@#$]+/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@operators': 'operator',
|
||||
'@builtinVariables': 'predefined',
|
||||
'@builtinFunctions': 'predefined',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/[<>=!%&+\-*/|~^]/, 'operator']
|
||||
],
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
pseudoColumns: [
|
||||
[
|
||||
/[$][A-Za-z_][\w@#$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@pseudoColumns': 'predefined',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]*/, 'number'],
|
||||
[/[$][+-]*\d*(\.\d*)?/, 'number'],
|
||||
[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/, 'number']
|
||||
],
|
||||
strings: [
|
||||
[/'/, { token: 'string', next: '@string' }],
|
||||
[/"/, { token: 'string.double', next: '@stringDouble' }]
|
||||
],
|
||||
string: [
|
||||
[/[^']+/, 'string'],
|
||||
[/''/, 'string'],
|
||||
[/'/, { token: 'string', next: '@pop' }]
|
||||
],
|
||||
stringDouble: [
|
||||
[/[^"]+/, 'string.double'],
|
||||
[/""/, 'string.double'],
|
||||
[/"/, { token: 'string.double', next: '@pop' }]
|
||||
],
|
||||
scopes: [
|
||||
// NOT SUPPORTED
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18350],{18350:function(E,S,e){e.r(S),e.d(S,{conf:function(){return T},language:function(){return R}});var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,932 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18511],{
|
||||
|
||||
/***/ 88289:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 58768:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/MinusOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_MinusOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/MinusOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var MinusOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "minus", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_MinusOutlined = (MinusOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/MinusOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var MinusOutlined_MinusOutlined = function MinusOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_MinusOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(MinusOutlined_MinusOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_MinusOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 22415:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_PlusOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// 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/PlusOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var PlusOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_PlusOutlined = (PlusOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/PlusOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var PlusOutlined_PlusOutlined = function PlusOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusOutlined_PlusOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 46400:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/alert/index.js + 3 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_alert; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CheckCircleFilled.js + 1 modules
|
||||
var CheckCircleFilled = __webpack_require__(2720);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
|
||||
var CloseCircleFilled = __webpack_require__(97650);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
|
||||
var CloseOutlined = __webpack_require__(14834);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleFilled.js + 1 modules
|
||||
var ExclamationCircleFilled = __webpack_require__(38081);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/InfoCircleFilled.js + 1 modules
|
||||
var InfoCircleFilled = __webpack_require__(53183);
|
||||
// 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-motion@2.9.2@rc-motion/es/index.js + 13 modules
|
||||
var es = __webpack_require__(16934);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(47413);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_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);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/style/index.js
|
||||
|
||||
|
||||
const genAlertTypeStyle = (bgColor, borderColor, iconColor, token, alertCls) => ({
|
||||
backgroundColor: bgColor,
|
||||
border: `${token.lineWidth}px ${token.lineType} ${borderColor}`,
|
||||
[`${alertCls}-icon`]: {
|
||||
color: iconColor
|
||||
}
|
||||
});
|
||||
const genBaseStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
motionDurationSlow: duration,
|
||||
marginXS,
|
||||
marginSM,
|
||||
fontSize,
|
||||
fontSizeLG,
|
||||
lineHeight,
|
||||
borderRadiusLG: borderRadius,
|
||||
motionEaseInOutCirc,
|
||||
withDescriptionIconSize,
|
||||
colorText,
|
||||
colorTextHeading,
|
||||
withDescriptionPadding,
|
||||
defaultPadding
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: defaultPadding,
|
||||
wordWrap: 'break-word',
|
||||
borderRadius,
|
||||
[`&${componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
flex: 1,
|
||||
minWidth: 0
|
||||
},
|
||||
[`${componentCls}-icon`]: {
|
||||
marginInlineEnd: marginXS,
|
||||
lineHeight: 0
|
||||
},
|
||||
[`&-description`]: {
|
||||
display: 'none',
|
||||
fontSize,
|
||||
lineHeight
|
||||
},
|
||||
'&-message': {
|
||||
color: colorTextHeading
|
||||
},
|
||||
[`&${componentCls}-motion-leave`]: {
|
||||
overflow: 'hidden',
|
||||
opacity: 1,
|
||||
transition: `max-height ${duration} ${motionEaseInOutCirc}, opacity ${duration} ${motionEaseInOutCirc},
|
||||
padding-top ${duration} ${motionEaseInOutCirc}, padding-bottom ${duration} ${motionEaseInOutCirc},
|
||||
margin-bottom ${duration} ${motionEaseInOutCirc}`
|
||||
},
|
||||
[`&${componentCls}-motion-leave-active`]: {
|
||||
maxHeight: 0,
|
||||
marginBottom: '0 !important',
|
||||
paddingTop: 0,
|
||||
paddingBottom: 0,
|
||||
opacity: 0
|
||||
}
|
||||
}),
|
||||
[`${componentCls}-with-description`]: {
|
||||
alignItems: 'flex-start',
|
||||
padding: withDescriptionPadding,
|
||||
[`${componentCls}-icon`]: {
|
||||
marginInlineEnd: marginSM,
|
||||
fontSize: withDescriptionIconSize,
|
||||
lineHeight: 0
|
||||
},
|
||||
[`${componentCls}-message`]: {
|
||||
display: 'block',
|
||||
marginBottom: marginXS,
|
||||
color: colorTextHeading,
|
||||
fontSize: fontSizeLG
|
||||
},
|
||||
[`${componentCls}-description`]: {
|
||||
display: 'block',
|
||||
color: colorText
|
||||
}
|
||||
},
|
||||
[`${componentCls}-banner`]: {
|
||||
marginBottom: 0,
|
||||
border: '0 !important',
|
||||
borderRadius: 0
|
||||
}
|
||||
};
|
||||
};
|
||||
const genTypeStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
colorSuccess,
|
||||
colorSuccessBorder,
|
||||
colorSuccessBg,
|
||||
colorWarning,
|
||||
colorWarningBorder,
|
||||
colorWarningBg,
|
||||
colorError,
|
||||
colorErrorBorder,
|
||||
colorErrorBg,
|
||||
colorInfo,
|
||||
colorInfoBorder,
|
||||
colorInfoBg
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
'&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
|
||||
'&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
|
||||
'&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
|
||||
'&-error': Object.assign(Object.assign({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), {
|
||||
[`${componentCls}-description > pre`]: {
|
||||
margin: 0,
|
||||
padding: 0
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
};
|
||||
const genActionStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
iconCls,
|
||||
motionDurationMid,
|
||||
marginXS,
|
||||
fontSizeIcon,
|
||||
colorIcon,
|
||||
colorIconHover
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`&-action`]: {
|
||||
marginInlineStart: marginXS
|
||||
},
|
||||
[`${componentCls}-close-icon`]: {
|
||||
marginInlineStart: marginXS,
|
||||
padding: 0,
|
||||
overflow: 'hidden',
|
||||
fontSize: fontSizeIcon,
|
||||
lineHeight: `${fontSizeIcon}px`,
|
||||
backgroundColor: 'transparent',
|
||||
border: 'none',
|
||||
outline: 'none',
|
||||
cursor: 'pointer',
|
||||
[`${iconCls}-close`]: {
|
||||
color: colorIcon,
|
||||
transition: `color ${motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: colorIconHover
|
||||
}
|
||||
}
|
||||
},
|
||||
'&-close-text': {
|
||||
color: colorIcon,
|
||||
transition: `color ${motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: colorIconHover
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genAlertStyle = token => [genBaseStyle(token), genTypeStyle(token), genActionStyle(token)];
|
||||
/* harmony default export */ var alert_style = ((0,genComponentStyleHook/* default */.Z)('Alert', token => [genAlertStyle(token)], token => {
|
||||
const paddingHorizontal = 12; // Fixed value here.
|
||||
return {
|
||||
withDescriptionIconSize: token.fontSizeHeading3,
|
||||
defaultPadding: `${token.paddingContentVerticalSM}px ${paddingHorizontal}px`,
|
||||
withDescriptionPadding: `${token.paddingMD}px ${token.paddingContentHorizontalLG}px`
|
||||
};
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/Alert.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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// CSSINJS
|
||||
|
||||
const iconMapFilled = {
|
||||
success: CheckCircleFilled/* default */.Z,
|
||||
info: InfoCircleFilled/* default */.Z,
|
||||
error: CloseCircleFilled/* default */.Z,
|
||||
warning: ExclamationCircleFilled/* default */.Z
|
||||
};
|
||||
const IconNode = props => {
|
||||
const {
|
||||
icon,
|
||||
prefixCls,
|
||||
type
|
||||
} = props;
|
||||
const iconType = iconMapFilled[type] || null;
|
||||
if (icon) {
|
||||
return (0,reactNode/* replaceElement */.wm)(icon, /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-icon`
|
||||
}, icon), () => ({
|
||||
className: _classnames_2_5_1_classnames_default()(`${prefixCls}-icon`, {
|
||||
[icon.props.className]: icon.props.className
|
||||
})
|
||||
}));
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(iconType, {
|
||||
className: `${prefixCls}-icon`
|
||||
});
|
||||
};
|
||||
const CloseIcon = props => {
|
||||
const {
|
||||
isClosable,
|
||||
prefixCls,
|
||||
closeIcon,
|
||||
handleClose
|
||||
} = props;
|
||||
const mergedCloseIcon = closeIcon === true || closeIcon === undefined ? /*#__PURE__*/_react_17_0_2_react.createElement(CloseOutlined/* default */.Z, null) : closeIcon;
|
||||
return isClosable ? /*#__PURE__*/_react_17_0_2_react.createElement("button", {
|
||||
type: "button",
|
||||
onClick: handleClose,
|
||||
className: `${prefixCls}-close-icon`,
|
||||
tabIndex: 0
|
||||
}, mergedCloseIcon) : null;
|
||||
};
|
||||
const Alert = props => {
|
||||
const {
|
||||
description,
|
||||
prefixCls: customizePrefixCls,
|
||||
message,
|
||||
banner,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
onClick,
|
||||
afterClose,
|
||||
showIcon,
|
||||
closable,
|
||||
closeText,
|
||||
closeIcon,
|
||||
action
|
||||
} = props,
|
||||
otherProps = __rest(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action"]);
|
||||
const [closed, setClosed] = _react_17_0_2_react.useState(false);
|
||||
if (false) {}
|
||||
const ref = _react_17_0_2_react.useRef(null);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
alert
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('alert', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = alert_style(prefixCls);
|
||||
const handleClose = e => {
|
||||
var _a;
|
||||
setClosed(true);
|
||||
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
||||
};
|
||||
const type = _react_17_0_2_react.useMemo(() => {
|
||||
if (props.type !== undefined) {
|
||||
return props.type;
|
||||
}
|
||||
// banner mode defaults to 'warning'
|
||||
return banner ? 'warning' : 'info';
|
||||
}, [props.type, banner]);
|
||||
// closeable when closeText or closeIcon is assigned
|
||||
const isClosable = _react_17_0_2_react.useMemo(() => {
|
||||
if (closeText) {
|
||||
return true;
|
||||
}
|
||||
if (typeof closable === 'boolean') {
|
||||
return closable;
|
||||
}
|
||||
// should be true when closeIcon is 0 or ''
|
||||
return closeIcon !== false && closeIcon !== null && closeIcon !== undefined;
|
||||
}, [closeText, closeIcon, closable]);
|
||||
// banner mode defaults to Icon
|
||||
const isShowIcon = banner && showIcon === undefined ? true : showIcon;
|
||||
const alertCls = _classnames_2_5_1_classnames_default()(prefixCls, `${prefixCls}-${type}`, {
|
||||
[`${prefixCls}-with-description`]: !!description,
|
||||
[`${prefixCls}-no-icon`]: !isShowIcon,
|
||||
[`${prefixCls}-banner`]: !!banner,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, alert === null || alert === void 0 ? void 0 : alert.className, className, rootClassName, hashId);
|
||||
const restProps = (0,pickAttrs/* default */.Z)(otherProps, {
|
||||
aria: true,
|
||||
data: true
|
||||
});
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es["default"], {
|
||||
visible: !closed,
|
||||
motionName: `${prefixCls}-motion`,
|
||||
motionAppear: false,
|
||||
motionEnter: false,
|
||||
onLeaveStart: node => ({
|
||||
maxHeight: node.offsetHeight
|
||||
}),
|
||||
onLeaveEnd: afterClose
|
||||
}, _ref => {
|
||||
let {
|
||||
className: motionClassName,
|
||||
style: motionStyle
|
||||
} = _ref;
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
"data-show": !closed,
|
||||
className: _classnames_2_5_1_classnames_default()(alertCls, motionClassName),
|
||||
style: Object.assign(Object.assign(Object.assign({}, alert === null || alert === void 0 ? void 0 : alert.style), style), motionStyle),
|
||||
onMouseEnter: onMouseEnter,
|
||||
onMouseLeave: onMouseLeave,
|
||||
onClick: onClick,
|
||||
role: "alert"
|
||||
}, restProps), isShowIcon ? /*#__PURE__*/_react_17_0_2_react.createElement(IconNode, {
|
||||
description: description,
|
||||
icon: props.icon,
|
||||
prefixCls: prefixCls,
|
||||
type: type
|
||||
}) : null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-content`
|
||||
}, message ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-message`
|
||||
}, message) : null, description ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-description`
|
||||
}, description) : null), action ? /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-action`
|
||||
}, action) : null, /*#__PURE__*/_react_17_0_2_react.createElement(CloseIcon, {
|
||||
isClosable: isClosable,
|
||||
prefixCls: prefixCls,
|
||||
closeIcon: closeText || closeIcon,
|
||||
handleClose: handleClose
|
||||
}));
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var alert_Alert = (Alert);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(17712);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__(38261);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(74007);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||||
var createSuper = __webpack_require__(18652);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/ErrorBoundary.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
||||
(0,inherits/* default */.Z)(ErrorBoundary, _React$Component);
|
||||
var _super = (0,createSuper/* default */.Z)(ErrorBoundary);
|
||||
function ErrorBoundary() {
|
||||
var _this;
|
||||
(0,classCallCheck/* default */.Z)(this, ErrorBoundary);
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.state = {
|
||||
error: undefined,
|
||||
info: {
|
||||
componentStack: ''
|
||||
}
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
(0,createClass/* default */.Z)(ErrorBoundary, [{
|
||||
key: "componentDidCatch",
|
||||
value: function componentDidCatch(error, info) {
|
||||
this.setState({
|
||||
error,
|
||||
info
|
||||
});
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
const {
|
||||
message,
|
||||
description,
|
||||
children
|
||||
} = this.props;
|
||||
const {
|
||||
error,
|
||||
info
|
||||
} = this.state;
|
||||
const componentStack = info && info.componentStack ? info.componentStack : null;
|
||||
const errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
|
||||
const errorDescription = typeof description === 'undefined' ? componentStack : description;
|
||||
if (error) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(alert_Alert, {
|
||||
type: "error",
|
||||
message: errorMessage,
|
||||
description: /*#__PURE__*/_react_17_0_2_react.createElement("pre", {
|
||||
style: {
|
||||
fontSize: '0.9em',
|
||||
overflowX: 'auto'
|
||||
}
|
||||
}, errorDescription)
|
||||
});
|
||||
}
|
||||
return children;
|
||||
}
|
||||
}]);
|
||||
return ErrorBoundary;
|
||||
}(_react_17_0_2_react.Component);
|
||||
/* harmony default export */ var alert_ErrorBoundary = (ErrorBoundary);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/alert/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const es_alert_Alert = alert_Alert;
|
||||
es_alert_Alert.ErrorBoundary = alert_ErrorBoundary;
|
||||
/* harmony default export */ var es_alert = (es_alert_Alert);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 31797:
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/statistic/index.js + 5 modules ***!
|
||||
\*************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_statistic; }
|
||||
});
|
||||
|
||||
// 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/hooks/useForceUpdate.js
|
||||
var useForceUpdate = __webpack_require__(56762);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// 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/_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/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(56511);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Number.js
|
||||
"use client";
|
||||
|
||||
|
||||
const StatisticNumber = props => {
|
||||
const {
|
||||
value,
|
||||
formatter,
|
||||
precision,
|
||||
decimalSeparator,
|
||||
groupSeparator = '',
|
||||
prefixCls
|
||||
} = props;
|
||||
let valueNode;
|
||||
if (typeof formatter === 'function') {
|
||||
// Customize formatter
|
||||
valueNode = formatter(value);
|
||||
} else {
|
||||
// Internal formatter
|
||||
const val = String(value);
|
||||
const cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
|
||||
// Process if illegal number
|
||||
if (!cells || val === '-') {
|
||||
valueNode = val;
|
||||
} else {
|
||||
const negative = cells[1];
|
||||
let int = cells[2] || '0';
|
||||
let decimal = cells[4] || '';
|
||||
int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
|
||||
if (typeof precision === 'number') {
|
||||
decimal = decimal.padEnd(precision, '0').slice(0, precision > 0 ? precision : 0);
|
||||
}
|
||||
if (decimal) {
|
||||
decimal = `${decimalSeparator}${decimal}`;
|
||||
}
|
||||
valueNode = [/*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
key: "int",
|
||||
className: `${prefixCls}-content-value-int`
|
||||
}, negative, int), decimal && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
key: "decimal",
|
||||
className: `${prefixCls}-content-value-decimal`
|
||||
}, decimal)];
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-content-value`
|
||||
}, valueNode);
|
||||
};
|
||||
/* harmony default export */ var statistic_Number = (StatisticNumber);
|
||||
// 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/statistic/style/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const genStatisticStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
marginXXS,
|
||||
padding,
|
||||
colorTextDescription,
|
||||
titleFontSize,
|
||||
colorTextHeading,
|
||||
contentFontSize,
|
||||
fontFamily
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}`]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
[`${componentCls}-title`]: {
|
||||
marginBottom: marginXXS,
|
||||
color: colorTextDescription,
|
||||
fontSize: titleFontSize
|
||||
},
|
||||
[`${componentCls}-skeleton`]: {
|
||||
paddingTop: padding
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
color: colorTextHeading,
|
||||
fontSize: contentFontSize,
|
||||
fontFamily,
|
||||
[`${componentCls}-content-value`]: {
|
||||
display: 'inline-block',
|
||||
direction: 'ltr'
|
||||
},
|
||||
[`${componentCls}-content-prefix, ${componentCls}-content-suffix`]: {
|
||||
display: 'inline-block'
|
||||
},
|
||||
[`${componentCls}-content-prefix`]: {
|
||||
marginInlineEnd: marginXXS
|
||||
},
|
||||
[`${componentCls}-content-suffix`]: {
|
||||
marginInlineStart: marginXXS
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var statistic_style = ((0,genComponentStyleHook/* default */.Z)('Statistic', token => {
|
||||
const statisticToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genStatisticStyle(statisticToken)];
|
||||
}, token => {
|
||||
const {
|
||||
fontSizeHeading3,
|
||||
fontSize
|
||||
} = token;
|
||||
return {
|
||||
titleFontSize: fontSize,
|
||||
contentFontSize: fontSizeHeading3
|
||||
};
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Statistic.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Statistic = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
valueStyle,
|
||||
value = 0,
|
||||
title,
|
||||
valueRender,
|
||||
prefix,
|
||||
suffix,
|
||||
loading = false,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
decimalSeparator = '.',
|
||||
groupSeparator = ','
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
statistic
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('statistic', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = statistic_style(prefixCls);
|
||||
const valueNode = /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Number, Object.assign({
|
||||
decimalSeparator: decimalSeparator,
|
||||
groupSeparator: groupSeparator,
|
||||
prefixCls: prefixCls
|
||||
}, props, {
|
||||
value: value
|
||||
}));
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, statistic === null || statistic === void 0 ? void 0 : statistic.className, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign({}, statistic === null || statistic === void 0 ? void 0 : statistic.style), style),
|
||||
onMouseEnter: onMouseEnter,
|
||||
onMouseLeave: onMouseLeave
|
||||
}, title && /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: `${prefixCls}-title`
|
||||
}, title), /*#__PURE__*/_react_17_0_2_react.createElement(skeleton/* default */.Z, {
|
||||
paragraph: false,
|
||||
loading: loading,
|
||||
className: `${prefixCls}-skeleton`
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
style: valueStyle,
|
||||
className: `${prefixCls}-content`
|
||||
}, prefix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-content-prefix`
|
||||
}, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-content-suffix`
|
||||
}, suffix)))));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var statistic_Statistic = (Statistic);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/utils.js
|
||||
// Countdown
|
||||
const timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], ['M', 1000 * 60 * 60 * 24 * 30], ['D', 1000 * 60 * 60 * 24], ['H', 1000 * 60 * 60], ['m', 1000 * 60], ['s', 1000], ['S', 1] // million seconds
|
||||
];
|
||||
|
||||
function formatTimeStr(duration, format) {
|
||||
let leftDuration = duration;
|
||||
const escapeRegex = /\[[^\]]*]/g;
|
||||
const keepList = (format.match(escapeRegex) || []).map(str => str.slice(1, -1));
|
||||
const templateText = format.replace(escapeRegex, '[]');
|
||||
const replacedText = timeUnits.reduce((current, _ref) => {
|
||||
let [name, unit] = _ref;
|
||||
if (current.includes(name)) {
|
||||
const value = Math.floor(leftDuration / unit);
|
||||
leftDuration -= value * unit;
|
||||
return current.replace(new RegExp(`${name}+`, 'g'), match => {
|
||||
const len = match.length;
|
||||
return value.toString().padStart(len, '0');
|
||||
});
|
||||
}
|
||||
return current;
|
||||
}, templateText);
|
||||
let index = 0;
|
||||
return replacedText.replace(escapeRegex, () => {
|
||||
const match = keepList[index];
|
||||
index += 1;
|
||||
return match;
|
||||
});
|
||||
}
|
||||
function formatCountdown(value, config) {
|
||||
const {
|
||||
format = ''
|
||||
} = config;
|
||||
const target = new Date(value).getTime();
|
||||
const current = Date.now();
|
||||
const diff = Math.max(target - current, 0);
|
||||
return formatTimeStr(diff, format);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/Countdown.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const REFRESH_INTERVAL = 1000 / 30;
|
||||
function getTime(value) {
|
||||
return new Date(value).getTime();
|
||||
}
|
||||
const Countdown = props => {
|
||||
const {
|
||||
value,
|
||||
format = 'HH:mm:ss',
|
||||
onChange,
|
||||
onFinish
|
||||
} = props;
|
||||
const forceUpdate = (0,useForceUpdate/* default */.Z)();
|
||||
const countdown = _react_17_0_2_react.useRef(null);
|
||||
const stopTimer = () => {
|
||||
onFinish === null || onFinish === void 0 ? void 0 : onFinish();
|
||||
if (countdown.current) {
|
||||
clearInterval(countdown.current);
|
||||
countdown.current = null;
|
||||
}
|
||||
};
|
||||
const syncTimer = () => {
|
||||
const timestamp = getTime(value);
|
||||
if (timestamp >= Date.now()) {
|
||||
countdown.current = setInterval(() => {
|
||||
forceUpdate();
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(timestamp - Date.now());
|
||||
if (timestamp < Date.now()) {
|
||||
stopTimer();
|
||||
}
|
||||
}, REFRESH_INTERVAL);
|
||||
}
|
||||
};
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
syncTimer();
|
||||
return () => {
|
||||
if (countdown.current) {
|
||||
clearInterval(countdown.current);
|
||||
countdown.current = null;
|
||||
}
|
||||
};
|
||||
}, [value]);
|
||||
const formatter = (formatValue, config) => formatCountdown(formatValue, Object.assign(Object.assign({}, config), {
|
||||
format
|
||||
}));
|
||||
const valueRender = node => (0,reactNode/* cloneElement */.Tm)(node, {
|
||||
title: undefined
|
||||
});
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(statistic_Statistic, Object.assign({}, props, {
|
||||
valueRender: valueRender,
|
||||
formatter: formatter
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ var statistic_Countdown = (/*#__PURE__*/_react_17_0_2_react.memo(Countdown));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/statistic/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
statistic_Statistic.Countdown = statistic_Countdown;
|
||||
/* harmony default export */ var es_statistic = (statistic_Statistic);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,542 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18898],{
|
||||
|
||||
/***/ 18898:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/razor/razor.js ***!
|
||||
\************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fillers/monaco-editor-core.js */ 5359);
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
var EMPTY_ELEMENTS = [
|
||||
'area',
|
||||
'base',
|
||||
'br',
|
||||
'col',
|
||||
'embed',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'keygen',
|
||||
'link',
|
||||
'menuitem',
|
||||
'meta',
|
||||
'param',
|
||||
'source',
|
||||
'track',
|
||||
'wbr'
|
||||
];
|
||||
var conf = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
comments: {
|
||||
blockComment: ['<!--', '-->']
|
||||
},
|
||||
brackets: [
|
||||
['<!--', '-->'],
|
||||
['<', '>'],
|
||||
['{', '}'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' }
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp("<(?!(?:" + EMPTY_ELEMENTS.join('|') + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", 'i'),
|
||||
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||
action: {
|
||||
indentAction: _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__/* .languages */ .Mj.IndentAction.IndentOutdent
|
||||
}
|
||||
},
|
||||
{
|
||||
beforeText: new RegExp("<(?!(?:" + EMPTY_ELEMENTS.join('|') + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", 'i'),
|
||||
action: { indentAction: _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__/* .languages */ .Mj.IndentAction.Indent }
|
||||
}
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
// ignoreCase: true,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/@@@@/],
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.root' }],
|
||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||
[/<!--/, 'comment.html', '@comment'],
|
||||
[/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
[/(<)(script)/, ['delimiter.html', { token: 'tag.html', next: '@script' }]],
|
||||
[/(<)(style)/, ['delimiter.html', { token: 'tag.html', next: '@style' }]],
|
||||
[/(<)([:\w\-]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
||||
[/(<\/)([\w\-]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
||||
[/</, 'delimiter.html'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/[^<@]+/] // text
|
||||
],
|
||||
doctype: [
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.comment' }],
|
||||
[/[^>]+/, 'metatag.content.html'],
|
||||
[/>/, 'metatag.html', '@pop']
|
||||
],
|
||||
comment: [
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.comment' }],
|
||||
[/-->/, 'comment.html', '@pop'],
|
||||
[/[^-]+/, 'comment.content.html'],
|
||||
[/./, 'comment.content.html']
|
||||
],
|
||||
otherTag: [
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.otherTag' }],
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/] // whitespace
|
||||
],
|
||||
// -- BEGIN <script> tags handling
|
||||
// After <script
|
||||
script: [
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.script' }],
|
||||
[/type/, 'attribute.name', '@scriptAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(script\s*)(>)/,
|
||||
['delimiter.html', 'tag.html', { token: 'delimiter.html', next: '@pop' }]
|
||||
]
|
||||
],
|
||||
// After <script ... type
|
||||
scriptAfterType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptAfterType'
|
||||
}
|
||||
],
|
||||
[/=/, 'delimiter', '@scriptAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
// After <script ... type =
|
||||
scriptAfterTypeEquals: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptAfterTypeEquals'
|
||||
}
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1'
|
||||
}
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@scriptWithCustomType.$1'
|
||||
}
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.text/javascript',
|
||||
nextEmbedded: 'text/javascript'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
// After <script ... type = $S2
|
||||
scriptWithCustomType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.scriptWithCustomType.$S2'
|
||||
}
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@scriptEmbedded.$S2',
|
||||
nextEmbedded: '$S2'
|
||||
}
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/script\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
scriptEmbedded: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInEmbeddedState.scriptEmbedded.$S2',
|
||||
nextEmbedded: '@pop'
|
||||
}
|
||||
],
|
||||
[/<\/script/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }]
|
||||
],
|
||||
// -- END <script> tags handling
|
||||
// -- BEGIN <style> tags handling
|
||||
// After <style
|
||||
style: [
|
||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.style' }],
|
||||
[/type/, 'attribute.name', '@styleAfterType'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[
|
||||
/(<\/)(style\s*)(>)/,
|
||||
['delimiter.html', 'tag.html', { token: 'delimiter.html', next: '@pop' }]
|
||||
]
|
||||
],
|
||||
// After <style ... type
|
||||
styleAfterType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleAfterType'
|
||||
}
|
||||
],
|
||||
[/=/, 'delimiter', '@styleAfterTypeEquals'],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
// After <style ... type =
|
||||
styleAfterTypeEquals: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleAfterTypeEquals'
|
||||
}
|
||||
],
|
||||
[
|
||||
/"([^"]*)"/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1'
|
||||
}
|
||||
],
|
||||
[
|
||||
/'([^']*)'/,
|
||||
{
|
||||
token: 'attribute.value',
|
||||
switchTo: '@styleWithCustomType.$1'
|
||||
}
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.text/css',
|
||||
nextEmbedded: 'text/css'
|
||||
}
|
||||
],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
// After <style ... type = $S2
|
||||
styleWithCustomType: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInSimpleState.styleWithCustomType.$S2'
|
||||
}
|
||||
],
|
||||
[
|
||||
/>/,
|
||||
{
|
||||
token: 'delimiter.html',
|
||||
next: '@styleEmbedded.$S2',
|
||||
nextEmbedded: '$S2'
|
||||
}
|
||||
],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/],
|
||||
[/<\/style\s*>/, { token: '@rematch', next: '@pop' }]
|
||||
],
|
||||
styleEmbedded: [
|
||||
[
|
||||
/@[^@]/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@razorInEmbeddedState.styleEmbedded.$S2',
|
||||
nextEmbedded: '@pop'
|
||||
}
|
||||
],
|
||||
[/<\/style/, { token: '@rematch', next: '@pop', nextEmbedded: '@pop' }]
|
||||
],
|
||||
// -- END <style> tags handling
|
||||
razorInSimpleState: [
|
||||
[/@\*/, 'comment.cs', '@razorBlockCommentTopLevel'],
|
||||
[/@[{(]/, 'metatag.cs', '@razorRootTopLevel'],
|
||||
[/(@)(\s*[\w]+)/, ['metatag.cs', { token: 'identifier.cs', switchTo: '@$S2.$S3' }]],
|
||||
[/[})]/, { token: 'metatag.cs', switchTo: '@$S2.$S3' }],
|
||||
[/\*@/, { token: 'comment.cs', switchTo: '@$S2.$S3' }]
|
||||
],
|
||||
razorInEmbeddedState: [
|
||||
[/@\*/, 'comment.cs', '@razorBlockCommentTopLevel'],
|
||||
[/@[{(]/, 'metatag.cs', '@razorRootTopLevel'],
|
||||
[
|
||||
/(@)(\s*[\w]+)/,
|
||||
[
|
||||
'metatag.cs',
|
||||
{
|
||||
token: 'identifier.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3'
|
||||
}
|
||||
]
|
||||
],
|
||||
[
|
||||
/[})]/,
|
||||
{
|
||||
token: 'metatag.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3'
|
||||
}
|
||||
],
|
||||
[
|
||||
/\*@/,
|
||||
{
|
||||
token: 'comment.cs',
|
||||
switchTo: '@$S2.$S3',
|
||||
nextEmbedded: '$S3'
|
||||
}
|
||||
]
|
||||
],
|
||||
razorBlockCommentTopLevel: [
|
||||
[/\*@/, '@rematch', '@pop'],
|
||||
[/[^*]+/, 'comment.cs'],
|
||||
[/./, 'comment.cs']
|
||||
],
|
||||
razorBlockComment: [
|
||||
[/\*@/, 'comment.cs', '@pop'],
|
||||
[/[^*]+/, 'comment.cs'],
|
||||
[/./, 'comment.cs']
|
||||
],
|
||||
razorRootTopLevel: [
|
||||
[/\{/, 'delimiter.bracket.cs', '@razorRoot'],
|
||||
[/\(/, 'delimiter.parenthesis.cs', '@razorRoot'],
|
||||
[/[})]/, '@rematch', '@pop'],
|
||||
{ include: 'razorCommon' }
|
||||
],
|
||||
razorRoot: [
|
||||
[/\{/, 'delimiter.bracket.cs', '@razorRoot'],
|
||||
[/\(/, 'delimiter.parenthesis.cs', '@razorRoot'],
|
||||
[/\}/, 'delimiter.bracket.cs', '@pop'],
|
||||
[/\)/, 'delimiter.parenthesis.cs', '@pop'],
|
||||
{ include: 'razorCommon' }
|
||||
],
|
||||
razorCommon: [
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@razorKeywords': { token: 'keyword.cs' },
|
||||
'@default': 'identifier.cs'
|
||||
}
|
||||
}
|
||||
],
|
||||
// brackets
|
||||
[/[\[\]]/, 'delimiter.array.cs'],
|
||||
// whitespace
|
||||
[/[ \t\r\n]+/],
|
||||
// comments
|
||||
[/\/\/.*$/, 'comment.cs'],
|
||||
[/@\*/, 'comment.cs', '@razorBlockComment'],
|
||||
// strings
|
||||
[/"([^"]*)"/, 'string.cs'],
|
||||
[/'([^']*)'/, 'string.cs'],
|
||||
// simple html
|
||||
[/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
[/(<)([\w\-]+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
[/(<\/)([\w\-]+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
// delimiters
|
||||
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, 'delimiter.cs'],
|
||||
// numbers
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float.cs'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float.cs'],
|
||||
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, 'number.hex.cs'],
|
||||
[/0[0-7']*[0-7]/, 'number.octal.cs'],
|
||||
[/0[bB][0-1']*[0-1]/, 'number.binary.cs'],
|
||||
[/\d[\d']*/, 'number.cs'],
|
||||
[/\d/, 'number.cs']
|
||||
]
|
||||
},
|
||||
razorKeywords: [
|
||||
'abstract',
|
||||
'as',
|
||||
'async',
|
||||
'await',
|
||||
'base',
|
||||
'bool',
|
||||
'break',
|
||||
'by',
|
||||
'byte',
|
||||
'case',
|
||||
'catch',
|
||||
'char',
|
||||
'checked',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'decimal',
|
||||
'default',
|
||||
'delegate',
|
||||
'do',
|
||||
'double',
|
||||
'descending',
|
||||
'explicit',
|
||||
'event',
|
||||
'extern',
|
||||
'else',
|
||||
'enum',
|
||||
'false',
|
||||
'finally',
|
||||
'fixed',
|
||||
'float',
|
||||
'for',
|
||||
'foreach',
|
||||
'from',
|
||||
'goto',
|
||||
'group',
|
||||
'if',
|
||||
'implicit',
|
||||
'in',
|
||||
'int',
|
||||
'interface',
|
||||
'internal',
|
||||
'into',
|
||||
'is',
|
||||
'lock',
|
||||
'long',
|
||||
'nameof',
|
||||
'new',
|
||||
'null',
|
||||
'namespace',
|
||||
'object',
|
||||
'operator',
|
||||
'out',
|
||||
'override',
|
||||
'orderby',
|
||||
'params',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'readonly',
|
||||
'ref',
|
||||
'return',
|
||||
'switch',
|
||||
'struct',
|
||||
'sbyte',
|
||||
'sealed',
|
||||
'short',
|
||||
'sizeof',
|
||||
'stackalloc',
|
||||
'static',
|
||||
'string',
|
||||
'select',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'uint',
|
||||
'ulong',
|
||||
'unchecked',
|
||||
'unsafe',
|
||||
'ushort',
|
||||
'using',
|
||||
'var',
|
||||
'virtual',
|
||||
'volatile',
|
||||
'void',
|
||||
'when',
|
||||
'while',
|
||||
'where',
|
||||
'yield',
|
||||
'model',
|
||||
'inject' // Razor specific
|
||||
],
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -1,301 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18963],{
|
||||
|
||||
/***/ 18963:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/_monaco-editor@0.30.0@monaco-editor/esm/vs/basic-languages/dart/dart.js ***!
|
||||
\**********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ conf: function() { return /* binding */ conf; },
|
||||
/* harmony export */ language: function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||
{ open: '/**', close: ' */', notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '`', close: '`' }
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: /^\s*\s*#?region\b/,
|
||||
end: /^\s*\s*#?endregion\b/
|
||||
}
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.dart',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'dynamic',
|
||||
'implements',
|
||||
'show',
|
||||
'as',
|
||||
'else',
|
||||
'import',
|
||||
'static',
|
||||
'assert',
|
||||
'enum',
|
||||
'in',
|
||||
'super',
|
||||
'async',
|
||||
'export',
|
||||
'interface',
|
||||
'switch',
|
||||
'await',
|
||||
'extends',
|
||||
'is',
|
||||
'sync',
|
||||
'break',
|
||||
'external',
|
||||
'library',
|
||||
'this',
|
||||
'case',
|
||||
'factory',
|
||||
'mixin',
|
||||
'throw',
|
||||
'catch',
|
||||
'false',
|
||||
'new',
|
||||
'true',
|
||||
'class',
|
||||
'final',
|
||||
'null',
|
||||
'try',
|
||||
'const',
|
||||
'finally',
|
||||
'on',
|
||||
'typedef',
|
||||
'continue',
|
||||
'for',
|
||||
'operator',
|
||||
'var',
|
||||
'covariant',
|
||||
'Function',
|
||||
'part',
|
||||
'void',
|
||||
'default',
|
||||
'get',
|
||||
'rethrow',
|
||||
'while',
|
||||
'deferred',
|
||||
'hide',
|
||||
'return',
|
||||
'with',
|
||||
'do',
|
||||
'if',
|
||||
'set',
|
||||
'yield'
|
||||
],
|
||||
typeKeywords: ['int', 'double', 'String', 'bool'],
|
||||
operators: [
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'~/',
|
||||
'%',
|
||||
'++',
|
||||
'--',
|
||||
'==',
|
||||
'!=',
|
||||
'>',
|
||||
'<',
|
||||
'>=',
|
||||
'<=',
|
||||
'=',
|
||||
'-=',
|
||||
'/=',
|
||||
'%=',
|
||||
'>>=',
|
||||
'^=',
|
||||
'+=',
|
||||
'*=',
|
||||
'~/=',
|
||||
'<<=',
|
||||
'&=',
|
||||
'!=',
|
||||
'||',
|
||||
'&&',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'~',
|
||||
'<<',
|
||||
'>>',
|
||||
'!',
|
||||
'>>>',
|
||||
'??',
|
||||
'?',
|
||||
':',
|
||||
'|='
|
||||
],
|
||||
// we include these common regular expressions
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [[/[{}]/, 'delimiter.bracket'], { include: 'common' }],
|
||||
common: [
|
||||
// identifiers and keywords
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@typeKeywords': 'type.identifier',
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/[A-Z_$][\w\$]*/, 'type.identifier'],
|
||||
// [/[A-Z][\w\$]*/, 'identifier'],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
// regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
|
||||
[
|
||||
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||
{ token: 'regexp', bracket: '@open', next: '@regexp' }
|
||||
],
|
||||
// @ annotations.
|
||||
[/@[a-zA-Z]+/, 'annotation'],
|
||||
// variable
|
||||
// delimiters and operators
|
||||
[/[()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/!(?=([^=]|$))/, 'delimiter'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'delimiter',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[/(@digits)[eE]([\-+]?(@digits))?/, 'number.float'],
|
||||
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, 'number.float'],
|
||||
[/0[xX](@hexdigits)n?/, 'number.hex'],
|
||||
[/0[oO]?(@octaldigits)n?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)n?/, 'number.binary'],
|
||||
[/(@digits)n?/, 'number'],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string_double'],
|
||||
[/'/, 'string', '@string_single']
|
||||
// [/[a-zA-Z]+/, "variable"]
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@jsdoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/\/.*$/, 'comment.doc'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
jsdoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc']
|
||||
],
|
||||
// We match regular expression quite precisely
|
||||
regexp: [
|
||||
[
|
||||
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||
['regexp.escape.control', 'regexp.escape.control', 'regexp.escape.control']
|
||||
],
|
||||
[
|
||||
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||
['regexp.escape.control', { token: 'regexp.escape.control', next: '@regexrange' }]
|
||||
],
|
||||
[/(\()(\?:|\?=|\?!)/, ['regexp.escape.control', 'regexp.escape.control']],
|
||||
[/[()]/, 'regexp.escape.control'],
|
||||
[/@regexpctl/, 'regexp.escape.control'],
|
||||
[/[^\\\/]/, 'regexp'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/\\\./, 'regexp.invalid'],
|
||||
[
|
||||
/(\/)([gimsuy]*)/,
|
||||
[{ token: 'regexp', bracket: '@close', next: '@pop' }, 'keyword.other']
|
||||
]
|
||||
],
|
||||
regexrange: [
|
||||
[/-/, 'regexp.escape.control'],
|
||||
[/\^/, 'regexp.invalid'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/[^\]]/, 'regexp'],
|
||||
[
|
||||
/\]/,
|
||||
{
|
||||
token: 'regexp.escape.control',
|
||||
next: '@pop',
|
||||
bracket: '@close'
|
||||
}
|
||||
]
|
||||
],
|
||||
string_double: [
|
||||
[/[^\\"\$]+/, 'string'],
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
[/\$\w+/, 'identifier']
|
||||
],
|
||||
string_single: [
|
||||
[/[^\\'\$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, 'string', '@pop'],
|
||||
[/\$\w+/, 'identifier']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[18963],{18963:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return r}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},r={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,787 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19807,28247],{
|
||||
|
||||
/***/ 89136:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38854:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_dropdown; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(75197);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
|
||||
var space = __webpack_require__(81327);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(47211);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'default',
|
||||
danger,
|
||||
disabled,
|
||||
loading,
|
||||
onClick,
|
||||
htmlType,
|
||||
children,
|
||||
className,
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
overlay,
|
||||
trigger,
|
||||
align,
|
||||
open,
|
||||
onOpenChange,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
|
||||
title,
|
||||
buttonsRender = buttons => buttons,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
|
||||
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
const buttonPrefixCls = `${prefixCls}-button`;
|
||||
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
|
||||
const dropdownProps = {
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
align,
|
||||
disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onOpenChange,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
};
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
||||
if ('overlay' in props) {
|
||||
dropdownProps.overlay = overlay;
|
||||
}
|
||||
if ('open' in props) {
|
||||
dropdownProps.open = open;
|
||||
}
|
||||
if ('placement' in props) {
|
||||
dropdownProps.placement = placement;
|
||||
} else {
|
||||
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
||||
}
|
||||
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
disabled: disabled,
|
||||
loading: loading,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
|
||||
};
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
/* harmony default export */ var dropdown_button = (DropdownButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98135:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(89136);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(11013);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81327:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ space; }
|
||||
});
|
||||
|
||||
// UNUSED EXPORTS: SpaceContext
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
|
||||
|
||||
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
|
||||
latestIndex: 0
|
||||
});
|
||||
const SpaceContextProvider = SpaceContext.Provider;
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Item = _ref => {
|
||||
let {
|
||||
className,
|
||||
index,
|
||||
children,
|
||||
split,
|
||||
style
|
||||
} = _ref;
|
||||
const {
|
||||
latestIndex
|
||||
} = _react_17_0_2_react.useContext(SpaceContext);
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: className,
|
||||
style: style
|
||||
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${className}-split`
|
||||
}, split));
|
||||
};
|
||||
/* harmony default export */ var space_Item = (Item);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
|
||||
var space_style = __webpack_require__(2856);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
|
||||
function isPresetSize(size) {
|
||||
return ['small', 'middle', 'large'].includes(size);
|
||||
}
|
||||
function isValidGapNumber(size) {
|
||||
if (!size) {
|
||||
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
|
||||
return false;
|
||||
}
|
||||
return typeof size === 'number' && !Number.isNaN(size);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
var _a, _b;
|
||||
const {
|
||||
getPrefixCls,
|
||||
space,
|
||||
direction: directionConfig
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
|
||||
align,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
direction = 'horizontal',
|
||||
prefixCls: customizePrefixCls,
|
||||
split,
|
||||
style,
|
||||
wrap = false,
|
||||
classNames: customClassNames,
|
||||
styles
|
||||
} = props,
|
||||
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
|
||||
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
|
||||
const isPresetVerticalSize = isPresetSize(verticalSize);
|
||||
const isPresetHorizontalSize = isPresetSize(horizontalSize);
|
||||
const isValidVerticalSize = isValidGapNumber(verticalSize);
|
||||
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
|
||||
const childNodes = (0,toArray/* default */.Z)(children, {
|
||||
keepEmpty: true
|
||||
});
|
||||
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
|
||||
const prefixCls = getPrefixCls('space', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
|
||||
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
|
||||
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
||||
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
|
||||
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
|
||||
}, className, rootClassName);
|
||||
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
|
||||
// Calculate latest one
|
||||
let latestIndex = 0;
|
||||
const nodes = childNodes.map((child, i) => {
|
||||
var _a, _b;
|
||||
if (child !== null && child !== undefined) {
|
||||
latestIndex = i;
|
||||
}
|
||||
const key = child && child.key || `${itemClassName}-${i}`;
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
|
||||
className: itemClassName,
|
||||
key: key,
|
||||
index: i,
|
||||
split: split,
|
||||
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
|
||||
}, child);
|
||||
});
|
||||
const spaceContext = _react_17_0_2_react.useMemo(() => ({
|
||||
latestIndex
|
||||
}), [latestIndex]);
|
||||
// =========================== Render ===========================
|
||||
if (childNodes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const gapStyle = {};
|
||||
if (wrap) {
|
||||
gapStyle.flexWrap = 'wrap';
|
||||
}
|
||||
if (!isPresetHorizontalSize && isValidHorizontalSize) {
|
||||
gapStyle.columnGap = horizontalSize;
|
||||
}
|
||||
if (!isPresetVerticalSize && isValidVerticalSize) {
|
||||
gapStyle.rowGap = verticalSize;
|
||||
}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
|
||||
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
|
||||
value: spaceContext
|
||||
}, nodes)));
|
||||
});
|
||||
if (false) {}
|
||||
const CompoundedSpace = Space;
|
||||
CompoundedSpace.Compact = Compact/* default */.ZP;
|
||||
/* harmony default export */ var space = (CompoundedSpace);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,958 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20069,432,82243,6828,28247,19807],{
|
||||
|
||||
/***/ 89136:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 56762:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38854:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_dropdown; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(75197);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules
|
||||
var space = __webpack_require__(81327);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(47211);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'default',
|
||||
danger,
|
||||
disabled,
|
||||
loading,
|
||||
onClick,
|
||||
htmlType,
|
||||
children,
|
||||
className,
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
overlay,
|
||||
trigger,
|
||||
align,
|
||||
open,
|
||||
onOpenChange,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
|
||||
title,
|
||||
buttonsRender = buttons => buttons,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
|
||||
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
const buttonPrefixCls = `${prefixCls}-button`;
|
||||
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
|
||||
const dropdownProps = {
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
align,
|
||||
disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onOpenChange,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
};
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
||||
if ('overlay' in props) {
|
||||
dropdownProps.overlay = overlay;
|
||||
}
|
||||
if ('open' in props) {
|
||||
dropdownProps.open = open;
|
||||
}
|
||||
if ('placement' in props) {
|
||||
dropdownProps.placement = placement;
|
||||
} else {
|
||||
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
||||
}
|
||||
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
disabled: disabled,
|
||||
loading: loading,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
|
||||
};
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
/* harmony default export */ var dropdown_button = (DropdownButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98135:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(89136);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(11013);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81327:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ space; }
|
||||
});
|
||||
|
||||
// UNUSED EXPORTS: SpaceContext
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
|
||||
|
||||
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
|
||||
latestIndex: 0
|
||||
});
|
||||
const SpaceContextProvider = SpaceContext.Provider;
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Item = _ref => {
|
||||
let {
|
||||
className,
|
||||
index,
|
||||
children,
|
||||
split,
|
||||
style
|
||||
} = _ref;
|
||||
const {
|
||||
latestIndex
|
||||
} = _react_17_0_2_react.useContext(SpaceContext);
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: className,
|
||||
style: style
|
||||
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${className}-split`
|
||||
}, split));
|
||||
};
|
||||
/* harmony default export */ var space_Item = (Item);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
|
||||
var space_style = __webpack_require__(2856);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
|
||||
function isPresetSize(size) {
|
||||
return ['small', 'middle', 'large'].includes(size);
|
||||
}
|
||||
function isValidGapNumber(size) {
|
||||
if (!size) {
|
||||
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
|
||||
return false;
|
||||
}
|
||||
return typeof size === 'number' && !Number.isNaN(size);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/index.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
var _a, _b;
|
||||
const {
|
||||
getPrefixCls,
|
||||
space,
|
||||
direction: directionConfig
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
|
||||
align,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
direction = 'horizontal',
|
||||
prefixCls: customizePrefixCls,
|
||||
split,
|
||||
style,
|
||||
wrap = false,
|
||||
classNames: customClassNames,
|
||||
styles
|
||||
} = props,
|
||||
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
|
||||
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
|
||||
const isPresetVerticalSize = isPresetSize(verticalSize);
|
||||
const isPresetHorizontalSize = isPresetSize(horizontalSize);
|
||||
const isValidVerticalSize = isValidGapNumber(verticalSize);
|
||||
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
|
||||
const childNodes = (0,toArray/* default */.Z)(children, {
|
||||
keepEmpty: true
|
||||
});
|
||||
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
|
||||
const prefixCls = getPrefixCls('space', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
|
||||
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
|
||||
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
||||
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
|
||||
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
|
||||
}, className, rootClassName);
|
||||
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
|
||||
// Calculate latest one
|
||||
let latestIndex = 0;
|
||||
const nodes = childNodes.map((child, i) => {
|
||||
var _a, _b;
|
||||
if (child !== null && child !== undefined) {
|
||||
latestIndex = i;
|
||||
}
|
||||
const key = child && child.key || `${itemClassName}-${i}`;
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
|
||||
className: itemClassName,
|
||||
key: key,
|
||||
index: i,
|
||||
split: split,
|
||||
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
|
||||
}, child);
|
||||
});
|
||||
const spaceContext = _react_17_0_2_react.useMemo(() => ({
|
||||
latestIndex
|
||||
}), [latestIndex]);
|
||||
// =========================== Render ===========================
|
||||
if (childNodes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const gapStyle = {};
|
||||
if (wrap) {
|
||||
gapStyle.flexWrap = 'wrap';
|
||||
}
|
||||
if (!isPresetHorizontalSize && isValidHorizontalSize) {
|
||||
gapStyle.columnGap = horizontalSize;
|
||||
}
|
||||
if (!isPresetVerticalSize && isValidVerticalSize) {
|
||||
gapStyle.rowGap = verticalSize;
|
||||
}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
|
||||
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
|
||||
value: spaceContext
|
||||
}, nodes)));
|
||||
});
|
||||
if (false) {}
|
||||
const CompoundedSpace = Space;
|
||||
CompoundedSpace.Compact = Compact/* default */.ZP;
|
||||
/* harmony default export */ var space = (CompoundedSpace);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92899:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 18353);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,804 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20459],{
|
||||
|
||||
/***/ 77578:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Z: function() { return /* binding */ getRenderPropValue; }
|
||||
/* harmony export */ });
|
||||
const getRenderPropValue = propValue => {
|
||||
if (!propValue) {
|
||||
return null;
|
||||
}
|
||||
if (typeof propValue === 'function') {
|
||||
return propValue();
|
||||
}
|
||||
return propValue;
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 39722:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/popover/PurePanel.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony export getOverlay */
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 77578);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 17356);
|
||||
"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 getOverlay = (prefixCls, title, content) => {
|
||||
if (!title && !content) return undefined;
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
|
||||
className: `${prefixCls}-title`
|
||||
}, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
|
||||
className: `${prefixCls}-inner-content`
|
||||
}, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(content)));
|
||||
};
|
||||
const RawPurePanel = props => {
|
||||
const {
|
||||
hashId,
|
||||
prefixCls,
|
||||
className,
|
||||
style,
|
||||
placement = 'top',
|
||||
title,
|
||||
content,
|
||||
children
|
||||
} = props;
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className),
|
||||
style: style
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
|
||||
className: `${prefixCls}-arrow`
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_1__/* .Popup */ .G, Object.assign({}, props, {
|
||||
className: hashId,
|
||||
prefixCls: prefixCls
|
||||
}), children || getOverlay(prefixCls, title, content)));
|
||||
};
|
||||
const PurePanel = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_4__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('popover', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
|
||||
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(RawPurePanel, Object.assign({}, restProps, {
|
||||
prefixCls: prefixCls,
|
||||
hashId: hashId
|
||||
})));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.ZP = (PurePanel);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 60324:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/popover/index.js ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 77578);
|
||||
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 62892);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 6848);
|
||||
/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 39722);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 17356);
|
||||
"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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// CSSINJS
|
||||
|
||||
const Overlay = _ref => {
|
||||
let {
|
||||
title,
|
||||
content,
|
||||
prefixCls
|
||||
} = _ref;
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
||||
className: `${prefixCls}-title`
|
||||
}, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
||||
className: `${prefixCls}-inner-content`
|
||||
}, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(content)));
|
||||
};
|
||||
const Popover = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
title,
|
||||
content,
|
||||
overlayClassName,
|
||||
placement = 'top',
|
||||
trigger = 'hover',
|
||||
mouseEnterDelay = 0.1,
|
||||
mouseLeaveDelay = 0.1,
|
||||
overlayStyle = {}
|
||||
} = props,
|
||||
otherProps = __rest(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('popover', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(prefixCls);
|
||||
const rootPrefixCls = getPrefixCls();
|
||||
const overlayCls = classnames__WEBPACK_IMPORTED_MODULE_0___default()(overlayClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, Object.assign({
|
||||
placement: placement,
|
||||
trigger: trigger,
|
||||
mouseEnterDelay: mouseEnterDelay,
|
||||
mouseLeaveDelay: mouseLeaveDelay,
|
||||
overlayStyle: overlayStyle
|
||||
}, otherProps, {
|
||||
prefixCls: prefixCls,
|
||||
overlayClassName: overlayCls,
|
||||
ref: ref,
|
||||
overlay: title || content ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Overlay, {
|
||||
prefixCls: prefixCls,
|
||||
title: title,
|
||||
content: content
|
||||
}) : null,
|
||||
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_6__/* .getTransitionName */ .m)(rootPrefixCls, 'zoom-big', otherProps.transitionName),
|
||||
"data-popover-inject": true
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP;
|
||||
/* harmony default export */ __webpack_exports__.Z = (Popover);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 17356:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/popover/style/index.js ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
|
||||
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 29878);
|
||||
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 19447);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 33166);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 83116);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 37613);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const genBaseStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
popoverColor,
|
||||
minWidth,
|
||||
fontWeightStrong,
|
||||
popoverPadding,
|
||||
boxShadowSecondary,
|
||||
colorTextHeading,
|
||||
borderRadiusLG: borderRadius,
|
||||
zIndexPopup,
|
||||
marginXS,
|
||||
colorBgElevated,
|
||||
popoverBg
|
||||
} = token;
|
||||
return [{
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
||||
left: {
|
||||
_skip_check_: true,
|
||||
value: 0
|
||||
},
|
||||
zIndex: zIndexPopup,
|
||||
fontWeight: 'normal',
|
||||
whiteSpace: 'normal',
|
||||
textAlign: 'start',
|
||||
cursor: 'auto',
|
||||
userSelect: 'text',
|
||||
transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,
|
||||
'--antd-arrow-background-color': colorBgElevated,
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
},
|
||||
'&-hidden': {
|
||||
display: 'none'
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
position: 'relative'
|
||||
},
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: popoverBg,
|
||||
backgroundClip: 'padding-box',
|
||||
borderRadius,
|
||||
boxShadow: boxShadowSecondary,
|
||||
padding: popoverPadding
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
minWidth,
|
||||
marginBottom: marginXS,
|
||||
color: colorTextHeading,
|
||||
fontWeight: fontWeightStrong
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
color: popoverColor
|
||||
}
|
||||
})
|
||||
},
|
||||
// Arrow Style
|
||||
(0,_style_placementArrow__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP)(token, {
|
||||
colorBg: 'var(--antd-arrow-background-color)'
|
||||
}),
|
||||
// Pure Render
|
||||
{
|
||||
[`${componentCls}-pure`]: {
|
||||
position: 'relative',
|
||||
maxWidth: 'none',
|
||||
margin: token.sizePopupArrow,
|
||||
display: 'inline-block',
|
||||
[`${componentCls}-content`]: {
|
||||
display: 'inline-block'
|
||||
}
|
||||
}
|
||||
}];
|
||||
};
|
||||
const genColorStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: _theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .PresetColors */ .i.map(colorKey => {
|
||||
const lightColor = token[`${colorKey}6`];
|
||||
return {
|
||||
[`&${componentCls}-${colorKey}`]: {
|
||||
'--antd-arrow-background-color': lightColor,
|
||||
[`${componentCls}-inner`]: {
|
||||
backgroundColor: lightColor
|
||||
},
|
||||
[`${componentCls}-arrow`]: {
|
||||
background: 'transparent'
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
const genWireframeStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
lineWidth,
|
||||
lineType,
|
||||
colorSplit,
|
||||
paddingSM,
|
||||
controlHeight,
|
||||
fontSize,
|
||||
lineHeight,
|
||||
padding
|
||||
} = token;
|
||||
const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
|
||||
const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
|
||||
const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
|
||||
const popoverPaddingHorizontal = padding;
|
||||
return {
|
||||
[componentCls]: {
|
||||
[`${componentCls}-inner`]: {
|
||||
padding: 0
|
||||
},
|
||||
[`${componentCls}-title`]: {
|
||||
margin: 0,
|
||||
padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
|
||||
borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
|
||||
},
|
||||
[`${componentCls}-inner-content`]: {
|
||||
padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Popover', token => {
|
||||
const {
|
||||
colorBgElevated,
|
||||
colorText,
|
||||
wireframe
|
||||
} = token;
|
||||
const popoverToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_4__/* .merge */ .TS)(token, {
|
||||
popoverPadding: 12,
|
||||
popoverBg: colorBgElevated,
|
||||
popoverColor: colorText
|
||||
});
|
||||
return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), (0,_style_motion__WEBPACK_IMPORTED_MODULE_5__/* .initZoomMotion */ ._y)(popoverToken, 'zoom-big')];
|
||||
}, token => ({
|
||||
width: 177,
|
||||
minWidth: 177,
|
||||
zIndexPopup: token.zIndexPopupBase + 30
|
||||
}), {
|
||||
resetStyle: false,
|
||||
deprecatedTokens: [['width', 'minWidth']]
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10777:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/timeline/index.js + 5 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// 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 <li {...omit()} */,
|
||||
label,
|
||||
children
|
||||
} = _a,
|
||||
restProps = __rest(_a, ["prefixCls", "className", "color", "dot", "pending", "position", "label", "children"]);
|
||||
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
|
||||
}
|
||||
}, 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.8@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||||
var toConsumableArray = __webpack_require__(31311);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
|
||||
var LoadingOutlined = __webpack_require__(5095);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/TimelineItemList.js
|
||||
"use client";
|
||||
|
||||
|
||||
var TimelineItemList_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 TimelineItemList = _a => {
|
||||
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.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
;// 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);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,693 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21117,65170,98255],{
|
||||
|
||||
/***/ 89136:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98135:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
||||
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
||||
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.8@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(15250);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(68475);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(89136);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(11013);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57809:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
|
||||
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
|
||||
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
|
||||
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
|
||||
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
|
||||
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
|
||||
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
|
||||
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
|
||||
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
|
||||
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
|
||||
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
|
||||
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
||||
const InternalSelect = (_a, ref) => {
|
||||
var _b;
|
||||
var {
|
||||
prefixCls: customizePrefixCls,
|
||||
bordered = true,
|
||||
className,
|
||||
rootClassName,
|
||||
getPopupContainer,
|
||||
popupClassName,
|
||||
dropdownClassName,
|
||||
listHeight = 256,
|
||||
placement,
|
||||
listItemHeight = 24,
|
||||
size: customizeSize,
|
||||
disabled: customDisabled,
|
||||
notFoundContent,
|
||||
status: customStatus,
|
||||
builtinPlacements,
|
||||
dropdownMatchSelectWidth,
|
||||
popupMatchSelectWidth,
|
||||
direction: propDirection,
|
||||
style,
|
||||
allowClear
|
||||
} = _a,
|
||||
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
renderEmpty,
|
||||
direction: contextDirection,
|
||||
virtual,
|
||||
popupMatchSelectWidth: contextPopupMatchSelectWidth,
|
||||
popupOverflow,
|
||||
select
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
||||
const rootPrefixCls = getPrefixCls();
|
||||
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
|
||||
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
|
||||
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
||||
const {
|
||||
mode: m
|
||||
} = props;
|
||||
if (m === 'combobox') {
|
||||
return undefined;
|
||||
}
|
||||
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
|
||||
return 'combobox';
|
||||
}
|
||||
return m;
|
||||
}, [props.mode]);
|
||||
const isMultiple = mode === 'multiple' || mode === 'tags';
|
||||
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
|
||||
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
|
||||
// ===================== Form Status =====================
|
||||
const {
|
||||
status: contextStatus,
|
||||
hasFeedback,
|
||||
isFormItemInput,
|
||||
feedbackIcon
|
||||
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
|
||||
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
|
||||
// ===================== Empty =====================
|
||||
let mergedNotFound;
|
||||
if (notFoundContent !== undefined) {
|
||||
mergedNotFound = notFoundContent;
|
||||
} else if (mode === 'combobox') {
|
||||
mergedNotFound = null;
|
||||
} else {
|
||||
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
||||
componentName: "Select"
|
||||
});
|
||||
}
|
||||
// ===================== Icons =====================
|
||||
const {
|
||||
suffixIcon,
|
||||
itemIcon,
|
||||
removeIcon,
|
||||
clearIcon
|
||||
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
|
||||
multiple: isMultiple,
|
||||
hasFeedback,
|
||||
feedbackIcon,
|
||||
showSuffixIcon,
|
||||
prefixCls,
|
||||
showArrow: props.showArrow,
|
||||
componentName: 'Select'
|
||||
}));
|
||||
const mergedAllowClear = allowClear === true ? {
|
||||
clearIcon
|
||||
} : allowClear;
|
||||
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
|
||||
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
|
||||
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
|
||||
}, rootClassName, hashId);
|
||||
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
// ===================== Disabled =====================
|
||||
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
|
||||
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
||||
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
[`${prefixCls}-lg`]: mergedSize === 'large',
|
||||
[`${prefixCls}-sm`]: mergedSize === 'small',
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-borderless`]: !bordered,
|
||||
[`${prefixCls}-in-form-item`]: isFormItemInput
|
||||
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
|
||||
// ===================== Placement =====================
|
||||
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
||||
if (placement !== undefined) {
|
||||
return placement;
|
||||
}
|
||||
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
||||
}, [placement, direction]);
|
||||
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
|
||||
// ====================== Warning ======================
|
||||
if (false) {}
|
||||
// ====================== Render =======================
|
||||
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
|
||||
ref: ref,
|
||||
virtual: virtual,
|
||||
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
|
||||
}, selectProps, {
|
||||
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
|
||||
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
|
||||
builtinPlacements: mergedBuiltinPlacements,
|
||||
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
|
||||
listHeight: listHeight,
|
||||
listItemHeight: listItemHeight,
|
||||
mode: mode,
|
||||
prefixCls: prefixCls,
|
||||
placement: memoPlacement,
|
||||
direction: direction,
|
||||
suffixIcon: suffixIcon,
|
||||
menuItemSelectedIcon: itemIcon,
|
||||
removeIcon: removeIcon,
|
||||
allowClear: mergedAllowClear,
|
||||
notFoundContent: mergedNotFound,
|
||||
className: mergedClassName,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
dropdownClassName: rcSelectRtlDropdownClassName,
|
||||
disabled: mergedDisabled
|
||||
})));
|
||||
};
|
||||
if (false) {}
|
||||
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
|
||||
// We don't care debug panel
|
||||
/* istanbul ignore next */
|
||||
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
|
||||
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
||||
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
|
||||
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
|
||||
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
|
||||
if (false) {}
|
||||
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8378:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
const genCollapseMotion = token => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: 'hidden',
|
||||
'&-active': {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: 'hidden',
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,784 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[22273],{
|
||||
|
||||
/***/ 22273:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./src/components/ReuseShixunModal/index.tsx + 1 modules ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ components_ReuseShixunModal; },
|
||||
P: function() { return /* binding */ useReuseModal; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(37205);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/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/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(7557);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(41498);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./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/radio/index.js + 5 modules
|
||||
var es_radio = __webpack_require__(5112);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(98135);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
||||
var table = __webpack_require__(14491);
|
||||
;// CONCATENATED MODULE: ./src/components/ReuseShixunModal/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var ReuseShixunModalmodules = ({"brief":"brief___LOzpE","contentTitle":"contentTitle___xkdcN","content":"content___Vtri0","tips":"tips___tuAtH","antdTable":"antdTable___s8T2N","tableCell":"tableCell___kN9Fw","antdModal":"antdModal___WVBk3","orangeColor":"orangeColor___ryB2u"});
|
||||
// EXTERNAL MODULE: ./src/service/shixuns.ts
|
||||
var shixuns = __webpack_require__(34348);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/components/ReuseShixunModal/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["isImportMultipleCourse"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var StudentInfo = function StudentInfo(_ref) {
|
||||
var studentNames = _ref.studentNames,
|
||||
total = _ref.total;
|
||||
var Map = ['', '一', '两', '三'];
|
||||
return total > 3 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: ["\u8BFE\u5802\u5185\u6709", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: studentNames === null || studentNames === void 0 ? void 0 : studentNames.join('、')
|
||||
}), "\u7B49", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: total
|
||||
}), "\u540D\u5B66\u751F"]
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: ["\u8BFE\u5802\u5185\u6709", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: studentNames === null || studentNames === void 0 ? void 0 : studentNames.join('、')
|
||||
}), Map[total], "\u540D\u5B66\u751F"]
|
||||
});
|
||||
};
|
||||
|
||||
//根据使用场景区分文案
|
||||
var generateBrief = function generateBrief(_ref2) {
|
||||
var used = _ref2.used,
|
||||
copy = _ref2.copy,
|
||||
canNotCopy = _ref2.canNotCopy,
|
||||
studentNames = _ref2.studentNames,
|
||||
studentCount = _ref2.studentCount,
|
||||
inPaper = _ref2.inPaper,
|
||||
_ref2$is_random = _ref2.is_random,
|
||||
is_random = _ref2$is_random === void 0 ? false : _ref2$is_random,
|
||||
_ref2$position = _ref2.position,
|
||||
position = _ref2$position === void 0 ? '' : _ref2$position;
|
||||
var copyStatusDescribe = function copyStatusDescribe() {
|
||||
if (copy > 0 && canNotCopy > 0) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: ["\u5176\u4E2D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: copy
|
||||
}), "\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: canNotCopy
|
||||
}), "\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236"]
|
||||
});
|
||||
} else if (copy > 0 && canNotCopy === 0) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: ["\u5176\u4E2D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: copy
|
||||
}), "\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236"]
|
||||
});
|
||||
} else if (copy === 0 && canNotCopy > 0) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: ["\u5176\u4E2D", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: canNotCopy
|
||||
}), "\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236"]
|
||||
});
|
||||
}
|
||||
};
|
||||
var currentPosition = position || (inPaper ? '试卷' : '课程');
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(StudentInfo, {
|
||||
studentNames: studentNames,
|
||||
total: studentCount
|
||||
}), "\u5B66\u4E60\u8FC7", currentPosition, "\u4E2D\u7684", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: used
|
||||
}), "\u4E2A\u9879\u76EE\uFF0C", copyStatusDescribe(), "\u3002\u8BF7\u9009\u62E9", is_random ? '' : '是否继续使用和', "\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F"]
|
||||
});
|
||||
};
|
||||
|
||||
//单个实训时的情况
|
||||
var ReuseSingleShixunModal = function ReuseSingleShixunModal(_ref3) {
|
||||
var onCancel = _ref3.onCancel,
|
||||
onOk = _ref3.onOk,
|
||||
visible = _ref3.visible,
|
||||
inPaper = _ref3.inPaper,
|
||||
renderData = _ref3.renderData,
|
||||
type = _ref3.type,
|
||||
_ref3$isMultipleCours = _ref3.isMultipleCourse,
|
||||
isMultipleCourse = _ref3$isMultipleCours === void 0 ? false : _ref3$isMultipleCours;
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useState = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
radioValue = _useState2[0],
|
||||
setRadioValue = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
confirmLoading = _useState4[0],
|
||||
setConfirmLoading = _useState4[1];
|
||||
var canCopy = (0,_react_17_0_2_react.useMemo)(function () {
|
||||
return (renderData === null || renderData === void 0 ? void 0 : renderData.total_num) === 1 && (renderData === null || renderData === void 0 ? void 0 : renderData.can_copy_num) === 1;
|
||||
}, [renderData]);
|
||||
var courseDataList = (0,_react_17_0_2_react.useMemo)(function () {
|
||||
var _renderData$course_da;
|
||||
return renderData === null || renderData === void 0 || (_renderData$course_da = renderData.course_data_list) === null || _renderData$course_da === void 0 ? void 0 : _renderData$course_da.filter(function (e) {
|
||||
return e.is_show;
|
||||
});
|
||||
}, [renderData]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
||||
children: canCopy ? /*#__PURE__*/(0,jsx_runtime.jsxs)(modal/* default */.Z, {
|
||||
centered: true,
|
||||
closable: true,
|
||||
open: visible,
|
||||
destroyOnClose: true,
|
||||
title: "\u63D0\u793A",
|
||||
className: ReuseShixunModalmodules.antdModal,
|
||||
width: 682,
|
||||
confirmLoading: confirmLoading,
|
||||
onCancel: onCancel,
|
||||
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var data, _renderData$course_da2, param;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setConfirmLoading(true);
|
||||
data = radioValue;
|
||||
if (isMultipleCourse) {
|
||||
param = objectSpread2_default()({}, form.getFieldsValue());
|
||||
data = renderData === null || renderData === void 0 || (_renderData$course_da2 = renderData.course_data_list) === null || _renderData$course_da2 === void 0 ? void 0 : _renderData$course_da2.map(function (e) {
|
||||
if (param[e.id] !== undefined) {
|
||||
return objectSpread2_default()(objectSpread2_default()({}, e), {}, {
|
||||
is_copy: param[e.id]
|
||||
});
|
||||
}
|
||||
return e;
|
||||
});
|
||||
}
|
||||
_context.next = 5;
|
||||
return onOk(data);
|
||||
case 5:
|
||||
setConfirmLoading(false);
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
})),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
style: {
|
||||
marginBottom: 20
|
||||
},
|
||||
children: isMultipleCourse ? '检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?' : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(StudentInfo, {
|
||||
studentNames: renderData === null || renderData === void 0 ? void 0 : renderData.student_names,
|
||||
total: renderData === null || renderData === void 0 ? void 0 : renderData.student_count
|
||||
}), "\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F"]
|
||||
})
|
||||
}), isMultipleCourse ? /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z, {
|
||||
form: form,
|
||||
preserve: false,
|
||||
children: courseDataList === null || courseDataList === void 0 ? void 0 : courseDataList.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
|
||||
className: "ml15 mb5",
|
||||
children: item.name
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: item.id,
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u590D\u5236\u5B9E\u8BAD"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u4E0D\u590D\u5236\u5B9E\u8BAD"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
}, item.id);
|
||||
})
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
value: radioValue,
|
||||
onChange: function onChange(e) {
|
||||
return setRadioValue(e.target.value);
|
||||
},
|
||||
className: ReuseShixunModalmodules.content,
|
||||
style: {
|
||||
marginBottom: 30
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u590D\u5236"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u4E0D\u590D\u5236"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
style: {
|
||||
marginBottom: 10
|
||||
},
|
||||
children: "* \u8BF4\u660E\uFF1A"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
style: {
|
||||
marginBottom: 20
|
||||
},
|
||||
children: "1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "".concat(ReuseShixunModalmodules.content, " ").concat(ReuseShixunModalmodules.orangeColor),
|
||||
children: "2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"
|
||||
})]
|
||||
})]
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
||||
centered: true,
|
||||
closable: true,
|
||||
destroyOnClose: true,
|
||||
open: visible,
|
||||
confirmLoading: confirmLoading,
|
||||
title: "\u63D0\u793A",
|
||||
width: 682,
|
||||
onCancel: onCancel,
|
||||
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
||||
var data, _renderData$course_da3, param;
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
setConfirmLoading(true);
|
||||
data = 0;
|
||||
if (isMultipleCourse) {
|
||||
param = objectSpread2_default()({}, form.getFieldsValue());
|
||||
data = renderData === null || renderData === void 0 || (_renderData$course_da3 = renderData.course_data_list) === null || _renderData$course_da3 === void 0 ? void 0 : _renderData$course_da3.map(function (e) {
|
||||
if (param[e.id] !== undefined) {
|
||||
return objectSpread2_default()(objectSpread2_default()({}, e), {}, {
|
||||
is_use: param[e.id]
|
||||
});
|
||||
}
|
||||
return e;
|
||||
});
|
||||
}
|
||||
_context2.next = 5;
|
||||
return onOk(data);
|
||||
case 5:
|
||||
setConfirmLoading(false);
|
||||
case 6:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
})),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(StudentInfo, {
|
||||
studentNames: renderData === null || renderData === void 0 ? void 0 : renderData.student_names,
|
||||
total: renderData === null || renderData === void 0 ? void 0 : renderData.student_count
|
||||
}), "\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002", isMultipleCourse ? /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
form: form,
|
||||
preserve: false,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
|
||||
children: "\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"
|
||||
}), courseDataList === null || courseDataList === void 0 ? void 0 : courseDataList.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h3", {
|
||||
className: "ml15 mb5",
|
||||
children: item.name
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: item.id,
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
className: ReuseShixunModalmodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u7EE7\u7EED\u4F7F\u7528"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
style: {
|
||||
color: '#464f66'
|
||||
},
|
||||
children: "\u4E0D\u4F7F\u7528"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
}, item.id);
|
||||
})]
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: ["\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: "\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"
|
||||
}), "\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"]
|
||||
})]
|
||||
})
|
||||
})
|
||||
});
|
||||
};
|
||||
var useReuseModal = function useReuseModal() {
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
modalVisible = _useState6[0],
|
||||
setModalVisible = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
renderData = _useState8[0],
|
||||
setRenderData = _useState8[1];
|
||||
var closeModalFn = function closeModalFn() {
|
||||
return setModalVisible(false);
|
||||
};
|
||||
var showModal = /*#__PURE__*/function () {
|
||||
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(reqParams) {
|
||||
var _reqParams$isImportMu, isImportMultipleCourse, param, res, _res$course_data_list, isModalVisible;
|
||||
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_reqParams$isImportMu = reqParams.isImportMultipleCourse, isImportMultipleCourse = _reqParams$isImportMu === void 0 ? false : _reqParams$isImportMu, param = objectWithoutProperties_default()(reqParams, _excluded);
|
||||
_context3.next = 3;
|
||||
return (0,shixuns/* checkShixunCopy */.Tr)(param);
|
||||
case 3:
|
||||
res = _context3.sent;
|
||||
if (!('status' in res)) {
|
||||
_context3.next = 6;
|
||||
break;
|
||||
}
|
||||
return _context3.abrupt("return", false);
|
||||
case 6:
|
||||
if (!isImportMultipleCourse) {
|
||||
_context3.next = 13;
|
||||
break;
|
||||
}
|
||||
isModalVisible = res === null || res === void 0 || (_res$course_data_list = res.course_data_list) === null || _res$course_data_list === void 0 ? void 0 : _res$course_data_list.some(function (e) {
|
||||
return e.is_show;
|
||||
});
|
||||
if (!isModalVisible) {
|
||||
_context3.next = 12;
|
||||
break;
|
||||
}
|
||||
setRenderData(res);
|
||||
setModalVisible(true);
|
||||
return _context3.abrupt("return", true);
|
||||
case 12:
|
||||
return _context3.abrupt("return", res.course_data_list || []);
|
||||
case 13:
|
||||
if (!(res.student_count === 0)) {
|
||||
_context3.next = 15;
|
||||
break;
|
||||
}
|
||||
return _context3.abrupt("return", false);
|
||||
case 15:
|
||||
setRenderData(res);
|
||||
setModalVisible(true);
|
||||
return _context3.abrupt("return", true);
|
||||
case 18:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee3);
|
||||
}));
|
||||
return function showModal(_x) {
|
||||
return _ref6.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
return [modalVisible, closeModalFn, renderData, showModal];
|
||||
};
|
||||
|
||||
//多个实训时的情况
|
||||
var ReuseMultipleShixunModal = function ReuseMultipleShixunModal(props) {
|
||||
var _Form$useForm3 = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm4 = slicedToArray_default()(_Form$useForm3, 1),
|
||||
form = _Form$useForm4[0];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
confirmLoading = _useState10[0],
|
||||
setConfirmLoading = _useState10[1];
|
||||
var onCancel = props.onCancel,
|
||||
onOk = props.onOk,
|
||||
visible = props.visible,
|
||||
_props$inPaper = props.inPaper,
|
||||
inPaper = _props$inPaper === void 0 ? false : _props$inPaper,
|
||||
renderData = props.renderData,
|
||||
type = props.type,
|
||||
_props$isMultipleCour = props.isMultipleCourse,
|
||||
isMultipleCourse = _props$isMultipleCour === void 0 ? false : _props$isMultipleCour,
|
||||
position = props.position;
|
||||
var reproducibleShixunColumns = (0,_react_17_0_2_react.useMemo)(function () {
|
||||
return inPaper ? [{
|
||||
title: '实践项目名称',
|
||||
dataIndex: 'name',
|
||||
width: 424,
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
className: ReuseShixunModalmodules.tableCell,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
href: "/shixuns/".concat(record.identifier, "/challenges"),
|
||||
target: "_blank",
|
||||
children: text
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '是否复制',
|
||||
dataIndex: 'is_copy',
|
||||
align: 'center',
|
||||
render: function render(value, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record.stage_shixun_id : record.shixun_course_id || record.id), 'is_copy'],
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
children: "\u662F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
children: "\u5426"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_use'],
|
||||
hidden: true,
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
})]
|
||||
});
|
||||
}
|
||||
}] : [{
|
||||
title: '实践项目名称',
|
||||
dataIndex: 'name',
|
||||
width: 424,
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
className: ReuseShixunModalmodules.tableCell,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
href: "/shixuns/".concat(record.identifier, "/challenges"),
|
||||
target: "_blank",
|
||||
children: text
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '是否使用',
|
||||
dataIndex: 'is_use',
|
||||
align: 'center',
|
||||
render: function render(value, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record.stage_shixun_id : record.shixun_course_id || record.id), 'is_use'],
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
children: "\u662F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
children: "\u5426"
|
||||
})]
|
||||
})
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '是否复制',
|
||||
dataIndex: 'is_copy',
|
||||
align: 'center',
|
||||
render: function render(value, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record.stage_shixun_id : record.shixun_course_id || record.id), 'is_copy'],
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
children: "\u662F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
children: "\u5426"
|
||||
})]
|
||||
})
|
||||
});
|
||||
}
|
||||
}];
|
||||
}, [inPaper]);
|
||||
var irreproducibleShixunColumns = (0,_react_17_0_2_react.useMemo)(function () {
|
||||
return inPaper ? [{
|
||||
title: '实践项目名称',
|
||||
dataIndex: 'name',
|
||||
width: 424,
|
||||
className: ReuseShixunModalmodules.tableCell,
|
||||
align: 'center',
|
||||
ellipsis: true,
|
||||
render: function render(value, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
href: "/shixuns/".concat(record.identifier, "/challenges"),
|
||||
target: "_blank",
|
||||
children: value
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_copy'],
|
||||
hidden: true,
|
||||
initialValue: 0,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_use'],
|
||||
hidden: true,
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
})]
|
||||
});
|
||||
}
|
||||
}] : [{
|
||||
title: '实践项目名称',
|
||||
dataIndex: 'name',
|
||||
width: 424,
|
||||
className: ReuseShixunModalmodules.tableCell,
|
||||
ellipsis: true,
|
||||
align: 'center',
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
href: "/shixuns/".concat(record.identifier, "/challenges"),
|
||||
target: "_blank",
|
||||
children: text
|
||||
});
|
||||
}
|
||||
}, {
|
||||
title: '是否使用',
|
||||
dataIndex: 'is_use',
|
||||
align: 'center',
|
||||
render: function render(value, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_use'],
|
||||
initialValue: 0,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 1,
|
||||
children: "\u662F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: 0,
|
||||
children: "\u5426"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_copy'],
|
||||
hidden: true,
|
||||
initialValue: 0,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
})]
|
||||
});
|
||||
}
|
||||
}];
|
||||
}, [inPaper]);
|
||||
|
||||
//可以选择多个课堂的时候
|
||||
if (isMultipleCourse) {
|
||||
var param = {
|
||||
title: '课堂名称',
|
||||
ellipsis: true,
|
||||
dataIndex: 'course_name',
|
||||
width: 190,
|
||||
align: 'center',
|
||||
className: ReuseShixunModalmodules.tableCell,
|
||||
render: function render(text, record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
href: "/classrooms/".concat(record.course_id),
|
||||
children: text
|
||||
});
|
||||
}
|
||||
};
|
||||
reproducibleShixunColumns = [param].concat(toConsumableArray_default()(reproducibleShixunColumns));
|
||||
irreproducibleShixunColumns = [param].concat(toConsumableArray_default()(irreproducibleShixunColumns));
|
||||
}
|
||||
var dynamicBrief = (0,_react_17_0_2_react.useMemo)(function () {
|
||||
return generateBrief({
|
||||
used: renderData === null || renderData === void 0 ? void 0 : renderData.repeat_shixun_num,
|
||||
copy: renderData === null || renderData === void 0 ? void 0 : renderData.can_copy_num,
|
||||
canNotCopy: renderData === null || renderData === void 0 ? void 0 : renderData.no_copy_num,
|
||||
studentNames: renderData === null || renderData === void 0 ? void 0 : renderData.student_names,
|
||||
studentCount: renderData === null || renderData === void 0 ? void 0 : renderData.student_count,
|
||||
is_random: renderData === null || renderData === void 0 ? void 0 : renderData.is_random,
|
||||
inPaper: inPaper,
|
||||
position: position
|
||||
});
|
||||
}, [renderData, inPaper, position]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
||||
title: "\u63D0\u793A",
|
||||
centered: true,
|
||||
open: visible,
|
||||
confirmLoading: confirmLoading,
|
||||
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
|
||||
var formValues, ids;
|
||||
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
||||
while (1) switch (_context4.prev = _context4.next) {
|
||||
case 0:
|
||||
setConfirmLoading(true);
|
||||
formValues = form.getFieldsValue();
|
||||
ids = Object.keys(formValues).map(function (key) {
|
||||
return {
|
||||
id: parseInt(key.split('_')[0]),
|
||||
course_id: parseInt(key.split('_')[1]),
|
||||
is_use: formValues[key].is_use,
|
||||
is_copy: formValues[key].is_copy
|
||||
};
|
||||
});
|
||||
_context4.next = 5;
|
||||
return onOk(ids);
|
||||
case 5:
|
||||
setConfirmLoading(false);
|
||||
case 6:
|
||||
case "end":
|
||||
return _context4.stop();
|
||||
}
|
||||
}, _callee4);
|
||||
})),
|
||||
onCancel: onCancel,
|
||||
width: 880,
|
||||
okText: "\u786E\u8BA4",
|
||||
className: ReuseShixunModalmodules.antdModal,
|
||||
destroyOnClose: true,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
form: form,
|
||||
preserve: false,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.brief,
|
||||
children: dynamicBrief
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginBottom: 30
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
marginBottom: 20
|
||||
},
|
||||
children: "* \u8BF4\u660E"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
marginBottom: 20
|
||||
},
|
||||
children: "1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.orangeColor,
|
||||
children: "2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"
|
||||
})]
|
||||
}), (renderData === null || renderData === void 0 ? void 0 : renderData.can_copy_num) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.contentTitle,
|
||||
children: "\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
columns: reproducibleShixunColumns,
|
||||
className: ReuseShixunModalmodules.antdTable,
|
||||
dataSource: renderData === null || renderData === void 0 ? void 0 : renderData.can_copy_list,
|
||||
rowKey: type === 'subject' ? "stage_shixun_id" : 'id',
|
||||
pagination: false,
|
||||
scroll: {
|
||||
y: 240
|
||||
},
|
||||
bordered: true
|
||||
})]
|
||||
}), (renderData === null || renderData === void 0 ? void 0 : renderData.no_copy_num) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ReuseShixunModalmodules.contentTitle,
|
||||
children: "\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
||||
columns: irreproducibleShixunColumns,
|
||||
className: ReuseShixunModalmodules.antdTable,
|
||||
dataSource: renderData === null || renderData === void 0 ? void 0 : renderData.no_copy_list,
|
||||
rowKey: type === 'subject' ? "stage_shixun_id" : 'id',
|
||||
pagination: false,
|
||||
scroll: {
|
||||
y: 200
|
||||
},
|
||||
bordered: true
|
||||
})]
|
||||
}), (renderData === null || renderData === void 0 ? void 0 : renderData.no_use_list.length) > 0 && (renderData === null || renderData === void 0 ? void 0 : renderData.no_use_list.map(function (record) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_copy'],
|
||||
hidden: true,
|
||||
initialValue: 0,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: ["".concat(type === 'subject' ? record === null || record === void 0 ? void 0 : record.stage_shixun_id : record.shixun_course_id || record.id), 'is_use'],
|
||||
hidden: true,
|
||||
initialValue: 1,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
type: "hidden"
|
||||
})
|
||||
})]
|
||||
}, type === 'subject' ? record.stage_shixun_id : record.shixun_course_id || record.id);
|
||||
}))]
|
||||
})
|
||||
});
|
||||
};
|
||||
var ReuseShixunModal = function ReuseShixunModal(props) {
|
||||
var modalType = props.modalType;
|
||||
return modalType === 'multiple' ? /*#__PURE__*/(0,jsx_runtime.jsx)(ReuseMultipleShixunModal, objectSpread2_default()({}, props)) : /*#__PURE__*/(0,jsx_runtime.jsx)(ReuseSingleShixunModal, objectSpread2_default()({}, props));
|
||||
};
|
||||
/* harmony default export */ var components_ReuseShixunModal = (ReuseShixunModal);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue