parent
0c25f3f296
commit
875e80ff13
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 it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,827 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[11955],{
|
||||
|
||||
/***/ 50888:
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_LoadingOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LoadingOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LoadingOutlined = (LoadingOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/LoadingOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LoadingOutlined_LoadingOutlined = function LoadingOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LoadingOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LoadingOutlined = (/*#__PURE__*/react.forwardRef(LoadingOutlined_LoadingOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57838:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11486:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var form_context = __webpack_require__(65223);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||||
var style = __webpack_require__(47673);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(82586);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(43481);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(17799);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(72922);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,react.useRef)(null);
|
||||
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = 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.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/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42480);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/react.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.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = 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.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e);
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.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.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_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.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/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(96330);
|
||||
;// CONCATENATED MODULE: ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 55054:
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/hooks/useForceUpdate.js
|
||||
var useForceUpdate = __webpack_require__(57838);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(4310);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/statistic/Number.js
|
||||
|
||||
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.createElement("span", {
|
||||
key: "int",
|
||||
className: `${prefixCls}-content-value-int`
|
||||
}, negative, int), decimal && /*#__PURE__*/react.createElement("span", {
|
||||
key: "decimal",
|
||||
className: `${prefixCls}-content-value-decimal`
|
||||
}, decimal)];
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-content-value`
|
||||
}, valueNode);
|
||||
};
|
||||
/* harmony default export */ var statistic_Number = (StatisticNumber);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/statistic/style/index.js
|
||||
|
||||
|
||||
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/es/statistic/Statistic.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('statistic', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = statistic_style(prefixCls);
|
||||
const valueNode = /*#__PURE__*/react.createElement(statistic_Number, Object.assign({
|
||||
decimalSeparator: decimalSeparator,
|
||||
groupSeparator: groupSeparator,
|
||||
prefixCls: prefixCls
|
||||
}, props, {
|
||||
value: value
|
||||
}));
|
||||
const cls = classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, statistic === null || statistic === void 0 ? void 0 : statistic.className, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/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.createElement("div", {
|
||||
className: `${prefixCls}-title`
|
||||
}, title), /*#__PURE__*/react.createElement(skeleton/* default */.Z, {
|
||||
paragraph: false,
|
||||
loading: loading,
|
||||
className: `${prefixCls}-skeleton`
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
style: valueStyle,
|
||||
className: `${prefixCls}-content`
|
||||
}, prefix && /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-content-prefix`
|
||||
}, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-content-suffix`
|
||||
}, suffix)))));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var statistic_Statistic = (Statistic);
|
||||
;// CONCATENATED MODULE: ./node_modules/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/es/statistic/Countdown.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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.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.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.createElement(statistic_Statistic, Object.assign({}, props, {
|
||||
valueRender: valueRender,
|
||||
formatter: formatter
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ var statistic_Countdown = (/*#__PURE__*/react.memo(Countdown));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/statistic/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
statistic_Statistic.Countdown = statistic_Countdown;
|
||||
/* harmony default export */ var es_statistic = (statistic_Statistic);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33507:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43481:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,639 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12763],{
|
||||
|
||||
/***/ 11486:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var form_context = __webpack_require__(65223);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||||
var style = __webpack_require__(47673);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(82586);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(43481);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(17799);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(72922);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,react.useRef)(null);
|
||||
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = 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.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/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42480);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/react.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.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = 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.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e);
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.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.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_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.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/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(96330);
|
||||
;// CONCATENATED MODULE: ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 42075:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/antd/es/space/index.js + 2 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/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(37419);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/hooks/useFlexGapSupport.js
|
||||
var useFlexGapSupport = __webpack_require__(98082);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/space/context.js
|
||||
|
||||
const SpaceContext = /*#__PURE__*/react.createContext({
|
||||
latestIndex: 0,
|
||||
horizontalSize: 0,
|
||||
verticalSize: 0,
|
||||
supportFlexGap: false
|
||||
});
|
||||
const SpaceContextProvider = SpaceContext.Provider;
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/space/Item.js
|
||||
|
||||
|
||||
const Item = _ref => {
|
||||
let {
|
||||
className,
|
||||
direction,
|
||||
index,
|
||||
marginDirection,
|
||||
children,
|
||||
split,
|
||||
wrap,
|
||||
style: customStyle
|
||||
} = _ref;
|
||||
const {
|
||||
horizontalSize,
|
||||
verticalSize,
|
||||
latestIndex,
|
||||
supportFlexGap
|
||||
} = react.useContext(SpaceContext);
|
||||
let style = {};
|
||||
if (!supportFlexGap) {
|
||||
if (direction === 'vertical') {
|
||||
if (index < latestIndex) {
|
||||
style = {
|
||||
marginBottom: horizontalSize / (split ? 2 : 1)
|
||||
};
|
||||
}
|
||||
} else {
|
||||
style = Object.assign(Object.assign({}, index < latestIndex && {
|
||||
[marginDirection]: horizontalSize / (split ? 2 : 1)
|
||||
}), wrap && {
|
||||
paddingBottom: verticalSize
|
||||
});
|
||||
}
|
||||
}
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
||||
className: className,
|
||||
style: Object.assign(Object.assign({}, style), customStyle)
|
||||
}, children), index < latestIndex && split && /*#__PURE__*/react.createElement("span", {
|
||||
className: `${className}-split`,
|
||||
style: style
|
||||
}, split));
|
||||
};
|
||||
/* harmony default export */ var space_Item = (Item);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/style/index.js + 1 modules
|
||||
var space_style = __webpack_require__(51916);
|
||||
;// CONCATENATED MODULE: ./node_modules/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 spaceSize = {
|
||||
small: 8,
|
||||
middle: 16,
|
||||
large: 24
|
||||
};
|
||||
function getNumberSize(size) {
|
||||
return typeof size === 'string' ? spaceSize[size] : size || 0;
|
||||
}
|
||||
const Space = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
var _a, _b;
|
||||
const {
|
||||
getPrefixCls,
|
||||
space,
|
||||
direction: directionConfig
|
||||
} = 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 supportFlexGap = (0,useFlexGapSupport/* default */.Z)();
|
||||
const [horizontalSize, verticalSize] = react.useMemo(() => (Array.isArray(size) ? size : [size, size]).map(item => getNumberSize(item)), [size]);
|
||||
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 cn = classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
|
||||
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
|
||||
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign
|
||||
}, className, rootClassName);
|
||||
const itemClassName = 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);
|
||||
const marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
|
||||
// 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.createElement(space_Item, {
|
||||
className: itemClassName,
|
||||
key: key,
|
||||
direction: direction,
|
||||
index: i,
|
||||
marginDirection: marginDirection,
|
||||
split: split,
|
||||
wrap: wrap,
|
||||
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.useMemo(() => ({
|
||||
horizontalSize,
|
||||
verticalSize,
|
||||
latestIndex,
|
||||
supportFlexGap
|
||||
}), [horizontalSize, verticalSize, latestIndex, supportFlexGap]);
|
||||
// =========================== Render ===========================
|
||||
if (childNodes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const gapStyle = {};
|
||||
if (wrap) {
|
||||
gapStyle.flexWrap = 'wrap';
|
||||
// Patch for gap not support
|
||||
if (!supportFlexGap) {
|
||||
gapStyle.marginBottom = -verticalSize;
|
||||
}
|
||||
}
|
||||
if (supportFlexGap) {
|
||||
gapStyle.columnGap = horizontalSize;
|
||||
gapStyle.rowGap = verticalSize;
|
||||
}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
className: cn,
|
||||
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
|
||||
}, otherProps), /*#__PURE__*/react.createElement(SpaceContextProvider, {
|
||||
value: spaceContext
|
||||
}, nodes)));
|
||||
});
|
||||
if (false) {}
|
||||
const CompoundedSpace = Space;
|
||||
CompoundedSpace.Compact = Compact/* default */.ZP;
|
||||
/* harmony default export */ var space = (CompoundedSpace);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43481:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,917 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[13917,57348,49516],{
|
||||
|
||||
/***/ 85673:
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(37419);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(1337);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(15558);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js
|
||||
|
||||
|
||||
const BreadcrumbSeparator = _ref => {
|
||||
let {
|
||||
children
|
||||
} = _ref;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb');
|
||||
return /*#__PURE__*/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/es/breadcrumb/useItemRender.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
function getBreadcrumbName(route, params) {
|
||||
if (route.title === undefined || route.title === null) {
|
||||
return null;
|
||||
}
|
||||
const paramsKeys = Object.keys(params).join('|');
|
||||
return typeof route.title === 'object' ? route.title : String(route.title).replace(new RegExp(`:(${paramsKeys})`, 'g'), (replacement, key) => params[key] || replacement);
|
||||
}
|
||||
function renderItem(prefixCls, item, children, href) {
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
const {
|
||||
className,
|
||||
onClick
|
||||
} = item,
|
||||
restItem = __rest(item, ["className", "onClick"]);
|
||||
const passedProps = Object.assign(Object.assign({}, (0,pickAttrs/* default */.Z)(restItem, {
|
||||
data: true,
|
||||
aria: true
|
||||
})), {
|
||||
onClick
|
||||
});
|
||||
if (href !== undefined) {
|
||||
return /*#__PURE__*/react.createElement("a", Object.assign({}, passedProps, {
|
||||
className: classnames_default()(`${prefixCls}-link`, className),
|
||||
href: href
|
||||
}), children);
|
||||
}
|
||||
return /*#__PURE__*/react.createElement("span", Object.assign({}, passedProps, {
|
||||
className: 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/es/breadcrumb/BreadcrumbItem.js
|
||||
var BreadcrumbItem_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const InternalBreadcrumbItem = props => {
|
||||
const {
|
||||
prefixCls,
|
||||
separator = '/',
|
||||
children,
|
||||
menu,
|
||||
overlay,
|
||||
dropdownProps,
|
||||
href
|
||||
} = props;
|
||||
// Warning for deprecated usage
|
||||
if (false) {}
|
||||
/** If overlay is have Wrap a Dropdown */
|
||||
const renderBreadcrumbNode = breadcrumbItem => {
|
||||
if (menu || overlay) {
|
||||
const mergeDropDownProps = Object.assign({}, dropdownProps);
|
||||
if (menu) {
|
||||
const _a = menu || {},
|
||||
{
|
||||
items
|
||||
} = _a,
|
||||
menuProps = BreadcrumbItem_rest(_a, ["items"]);
|
||||
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
||||
items: items === null || items === void 0 ? void 0 : items.map((_a, index) => {
|
||||
var {
|
||||
key,
|
||||
title,
|
||||
label,
|
||||
path
|
||||
} = _a,
|
||||
itemProps = BreadcrumbItem_rest(_a, ["key", "title", "label", "path"]);
|
||||
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
||||
if (path) {
|
||||
mergedLabel = /*#__PURE__*/react.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.createElement(dropdown/* default */.Z, Object.assign({
|
||||
placement: "bottom"
|
||||
}, mergeDropDownProps), /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-overlay-link`
|
||||
}, breadcrumbItem, /*#__PURE__*/react.createElement(DownOutlined/* default */.Z, null)));
|
||||
}
|
||||
return breadcrumbItem;
|
||||
};
|
||||
// wrap to dropDown
|
||||
const link = renderBreadcrumbNode(children);
|
||||
if (link !== undefined && link !== null) {
|
||||
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("li", null, link), separator && /*#__PURE__*/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.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
|
||||
return /*#__PURE__*/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/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/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/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.useMemo)(() => {
|
||||
if (items) {
|
||||
return items;
|
||||
}
|
||||
if (routes) {
|
||||
return routes.map(route2item);
|
||||
}
|
||||
return null;
|
||||
}, [items, routes]);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/breadcrumb/Breadcrumb.js
|
||||
var Breadcrumb_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const getPath = (params, path) => {
|
||||
if (path === undefined) {
|
||||
return path;
|
||||
}
|
||||
let mergedPath = (path || '').replace(/^\//, '');
|
||||
Object.keys(params).forEach(key => {
|
||||
mergedPath = mergedPath.replace(`:${key}`, params[key]);
|
||||
});
|
||||
return mergedPath;
|
||||
};
|
||||
const Breadcrumb = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
separator = '/',
|
||||
style,
|
||||
className,
|
||||
rootClassName,
|
||||
routes: legacyRoutes,
|
||||
items,
|
||||
children,
|
||||
itemRender,
|
||||
params = {}
|
||||
} = props,
|
||||
restProps = Breadcrumb_rest(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
breadcrumb
|
||||
} = react.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.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.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_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.createElement("nav", Object.assign({
|
||||
className: breadcrumbClassName,
|
||||
style: mergedStyle
|
||||
}, restProps), /*#__PURE__*/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/es/breadcrumb/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
/* harmony default export */ var breadcrumb = (breadcrumb_Breadcrumb);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11486:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var form_context = __webpack_require__(65223);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||||
var style = __webpack_require__(47673);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(82586);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(43481);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(17799);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(72922);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,react.useRef)(null);
|
||||
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = 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.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/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42480);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/react.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.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = 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.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e);
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.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.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_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.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/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(96330);
|
||||
;// CONCATENATED MODULE: ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43481:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,910 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14044],{
|
||||
|
||||
/***/ 11475:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13982:
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/PlusSquareOutlined.js + 1 modules ***!
|
||||
\***********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_PlusSquareOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/PlusSquareOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var PlusSquareOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { "tag": "path", "attrs": { "d": "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, "name": "plus-square", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_PlusSquareOutlined = (PlusSquareOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/PlusSquareOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var PlusSquareOutlined_PlusSquareOutlined = function PlusSquareOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusSquareOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusSquareOutlined = (/*#__PURE__*/react.forwardRef(PlusSquareOutlined_PlusSquareOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81643:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/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;
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57838:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11486:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var form_context = __webpack_require__(65223);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||||
var style = __webpack_require__(47673);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(82586);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(43481);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(17799);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(72922);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,react.useRef)(null);
|
||||
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = 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.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/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42480);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/react.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.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = 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.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e);
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.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.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_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.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/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(96330);
|
||||
;// CONCATENATED MODULE: ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97183:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/antd/es/layout/index.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84321);
|
||||
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 19249);
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
||||
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
||||
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
||||
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
||||
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66330:
|
||||
/*!***************************************************!*\
|
||||
!*** ./node_modules/antd/es/popover/PurePanel.js ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* unused harmony exports getOverlay, RawPurePanel */
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
|
||||
/* 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 */ 92419);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 53124);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 20136);
|
||||
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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 55241:
|
||||
/*!***********************************************!*\
|
||||
!*** ./node_modules/antd/es/popover/index.js ***!
|
||||
\***********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
|
||||
/* 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 */ 67294);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
|
||||
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 33603);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 53124);
|
||||
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 83062);
|
||||
/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 66330);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 20136);
|
||||
'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 */ .mL)(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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20136:
|
||||
/*!*****************************************************!*\
|
||||
!*** ./node_modules/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 */ 14747);
|
||||
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 50438);
|
||||
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 97414);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 8796);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 45503);
|
||||
|
||||
|
||||
|
||||
|
||||
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.map */ .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
|
||||
}), {
|
||||
deprecatedTokens: [['width', 'minWidth']]
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43481:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,807 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[15105,91708,29823,32482,27129,29581,33127,53898,53764,4751,84551],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64217:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
||||
|
||||
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
||||
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
||||
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
||||
|
||||
/* eslint-enable max-len */
|
||||
var ariaPrefix = 'aria-';
|
||||
var dataPrefix = 'data-';
|
||||
function match(key, prefix) {
|
||||
return key.indexOf(prefix) === 0;
|
||||
}
|
||||
/**
|
||||
* Picker props from exist props with filter
|
||||
* @param props Passed props
|
||||
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
||||
*/
|
||||
function pickAttrs(props) {
|
||||
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
var mergedConfig;
|
||||
if (ariaOnly === false) {
|
||||
mergedConfig = {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
};
|
||||
} else if (ariaOnly === true) {
|
||||
mergedConfig = {
|
||||
aria: true
|
||||
};
|
||||
} else {
|
||||
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
||||
}
|
||||
var attrs = {};
|
||||
Object.keys(props).forEach(function (key) {
|
||||
if (
|
||||
// Aria
|
||||
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
||||
// Data
|
||||
mergedConfig.data && match(key, dataPrefix) ||
|
||||
// Attr
|
||||
mergedConfig.attr && propList.includes(key)) {
|
||||
attrs[key] = props[key];
|
||||
}
|
||||
});
|
||||
return attrs;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,930 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16035],{
|
||||
|
||||
/***/ 63185:
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/antd/es/checkbox/style/index.js ***!
|
||||
\******************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "C2": function() { return /* binding */ getStyle; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony export genCheckboxStyle */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 73559);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style */ 14747);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 45503);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
|
||||
|
||||
|
||||
|
||||
// ============================== Motion ==============================
|
||||
const antCheckboxEffect = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antCheckboxEffect', {
|
||||
'0%': {
|
||||
transform: 'scale(1)',
|
||||
opacity: 0.5
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scale(1.6)',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
// ============================== Styles ==============================
|
||||
const genCheckboxStyle = token => {
|
||||
const {
|
||||
checkboxCls
|
||||
} = token;
|
||||
const wrapperCls = `${checkboxCls}-wrapper`;
|
||||
return [
|
||||
// ===================== Basic =====================
|
||||
{
|
||||
// Group
|
||||
[`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
display: 'inline-flex',
|
||||
flexWrap: 'wrap',
|
||||
columnGap: token.marginXS,
|
||||
// Group > Grid
|
||||
[`> ${token.antCls}-row`]: {
|
||||
flex: 1
|
||||
}
|
||||
}),
|
||||
// Wrapper
|
||||
[wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'baseline',
|
||||
cursor: 'pointer',
|
||||
// Fix checkbox & radio in flex align #30260
|
||||
'&:after': {
|
||||
display: 'inline-block',
|
||||
width: 0,
|
||||
overflow: 'hidden',
|
||||
content: "'\\a0'"
|
||||
},
|
||||
// Checkbox near checkbox
|
||||
[`& + ${wrapperCls}`]: {
|
||||
marginInlineStart: 0
|
||||
},
|
||||
[`&${wrapperCls}-in-form-item`]: {
|
||||
'input[type="checkbox"]': {
|
||||
width: 14,
|
||||
height: 14 // FIXME: magic
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
||||
// Wrapper > Checkbox
|
||||
[checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
position: 'relative',
|
||||
whiteSpace: 'nowrap',
|
||||
lineHeight: 1,
|
||||
cursor: 'pointer',
|
||||
// To make alignment right when `controlHeight` is changed
|
||||
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
||||
alignSelf: 'center',
|
||||
// Wrapper > Checkbox > input
|
||||
[`${checkboxCls}-input`]: {
|
||||
position: 'absolute',
|
||||
// Since baseline align will get additional space offset,
|
||||
// we need to move input to top to make it align with text.
|
||||
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
|
||||
inset: 0,
|
||||
zIndex: 1,
|
||||
cursor: 'pointer',
|
||||
opacity: 0,
|
||||
margin: 0,
|
||||
[`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .genFocusOutline */ .oN)(token))
|
||||
},
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
boxSizing: 'border-box',
|
||||
position: 'relative',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
display: 'block',
|
||||
width: token.checkboxSize,
|
||||
height: token.checkboxSize,
|
||||
direction: 'ltr',
|
||||
backgroundColor: token.colorBgContainer,
|
||||
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
||||
borderRadius: token.borderRadiusSM,
|
||||
borderCollapse: 'separate',
|
||||
transition: `all ${token.motionDurationSlow}`,
|
||||
'&:after': {
|
||||
boxSizing: 'border-box',
|
||||
position: 'absolute',
|
||||
top: '50%',
|
||||
insetInlineStart: '21.5%',
|
||||
display: 'table',
|
||||
width: token.checkboxSize / 14 * 5,
|
||||
height: token.checkboxSize / 14 * 8,
|
||||
border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
|
||||
borderTop: 0,
|
||||
borderInlineStart: 0,
|
||||
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
|
||||
opacity: 0,
|
||||
content: '""',
|
||||
transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
|
||||
}
|
||||
},
|
||||
// Wrapper > Checkbox + Text
|
||||
'& + span': {
|
||||
paddingInlineStart: token.paddingXS,
|
||||
paddingInlineEnd: token.paddingXS
|
||||
}
|
||||
})
|
||||
},
|
||||
// ===================== Hover =====================
|
||||
{
|
||||
// Wrapper
|
||||
[`${wrapperCls}:hover ${checkboxCls}:after`]: {
|
||||
visibility: 'visible'
|
||||
},
|
||||
// Wrapper & Wrapper > Checkbox
|
||||
[`
|
||||
${wrapperCls}:not(${wrapperCls}-disabled),
|
||||
${checkboxCls}:not(${checkboxCls}-disabled)
|
||||
`]: {
|
||||
[`&:hover ${checkboxCls}-inner`]: {
|
||||
borderColor: token.colorPrimary
|
||||
}
|
||||
},
|
||||
[`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
|
||||
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimaryHover,
|
||||
borderColor: 'transparent'
|
||||
},
|
||||
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
|
||||
borderColor: token.colorPrimaryHover
|
||||
}
|
||||
}
|
||||
},
|
||||
// ==================== Checked ====================
|
||||
{
|
||||
// Wrapper > Checkbox
|
||||
[`${checkboxCls}-checked`]: {
|
||||
[`${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimary,
|
||||
borderColor: token.colorPrimary,
|
||||
'&:after': {
|
||||
opacity: 1,
|
||||
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
|
||||
transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
|
||||
}
|
||||
},
|
||||
// Checked Effect
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
borderRadius: token.borderRadiusSM,
|
||||
visibility: 'hidden',
|
||||
border: `${token.lineWidthBold}px solid ${token.colorPrimary}`,
|
||||
animationName: antCheckboxEffect,
|
||||
animationDuration: token.motionDurationSlow,
|
||||
animationTimingFunction: 'ease-in-out',
|
||||
animationFillMode: 'backwards',
|
||||
content: '""',
|
||||
transition: `all ${token.motionDurationSlow}`
|
||||
}
|
||||
},
|
||||
[`
|
||||
${wrapperCls}-checked:not(${wrapperCls}-disabled),
|
||||
${checkboxCls}-checked:not(${checkboxCls}-disabled)
|
||||
`]: {
|
||||
[`&:hover ${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimaryHover,
|
||||
borderColor: 'transparent'
|
||||
},
|
||||
[`&:hover ${checkboxCls}:after`]: {
|
||||
borderColor: token.colorPrimaryHover
|
||||
}
|
||||
}
|
||||
},
|
||||
// ================= Indeterminate =================
|
||||
{
|
||||
[checkboxCls]: {
|
||||
'&-indeterminate': {
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorBgContainer,
|
||||
borderColor: token.colorBorder,
|
||||
'&:after': {
|
||||
top: '50%',
|
||||
insetInlineStart: '50%',
|
||||
width: token.fontSizeLG / 2,
|
||||
height: token.fontSizeLG / 2,
|
||||
backgroundColor: token.colorPrimary,
|
||||
border: 0,
|
||||
transform: 'translate(-50%, -50%) scale(1)',
|
||||
opacity: 1,
|
||||
content: '""'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// ==================== Disable ====================
|
||||
{
|
||||
// Wrapper
|
||||
[`${wrapperCls}-disabled`]: {
|
||||
cursor: 'not-allowed'
|
||||
},
|
||||
// Wrapper > Checkbox
|
||||
[`${checkboxCls}-disabled`]: {
|
||||
// Wrapper > Checkbox > input
|
||||
[`&, ${checkboxCls}-input`]: {
|
||||
cursor: 'not-allowed',
|
||||
// Disabled for native input to enable Tooltip event handler
|
||||
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
||||
pointerEvents: 'none'
|
||||
},
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
background: token.colorBgContainerDisabled,
|
||||
borderColor: token.colorBorder,
|
||||
'&:after': {
|
||||
borderColor: token.colorTextDisabled
|
||||
}
|
||||
},
|
||||
'&:after': {
|
||||
display: 'none'
|
||||
},
|
||||
'& + span': {
|
||||
color: token.colorTextDisabled
|
||||
},
|
||||
[`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
|
||||
background: token.colorTextDisabled
|
||||
}
|
||||
}
|
||||
}];
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
function getStyle(prefixCls, token) {
|
||||
const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .merge */ .TS)(token, {
|
||||
checkboxCls: `.${prefixCls}`,
|
||||
checkboxSize: token.controlInteractiveSize
|
||||
});
|
||||
return [genCheckboxStyle(checkboxToken)];
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["ZP"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
|
||||
let {
|
||||
prefixCls
|
||||
} = _ref;
|
||||
return [getStyle(prefixCls, token)];
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 32157:
|
||||
/*!**************************************************!*\
|
||||
!*** ./node_modules/antd/es/tree/style/index.js ***!
|
||||
\**************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Yk": function() { return /* binding */ genTreeStyle; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports genBaseStyle, genDirectoryStyle */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 73559);
|
||||
/* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/style */ 63185);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style */ 14747);
|
||||
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 33507);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 45503);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ============================ Keyframes =============================
|
||||
const treeNodeFX = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('ant-tree-node-fx-do-not-use', {
|
||||
'0%': {
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
// ============================== Switch ==============================
|
||||
const getSwitchStyle = (prefixCls, token) => ({
|
||||
[`.${prefixCls}-switcher-icon`]: {
|
||||
display: 'inline-block',
|
||||
fontSize: 10,
|
||||
verticalAlign: 'baseline',
|
||||
svg: {
|
||||
transition: `transform ${token.motionDurationSlow}`
|
||||
}
|
||||
}
|
||||
});
|
||||
// =============================== Drop ===============================
|
||||
const getDropIndicatorStyle = (prefixCls, token) => ({
|
||||
[`.${prefixCls}-drop-indicator`]: {
|
||||
position: 'absolute',
|
||||
// it should displayed over the following node
|
||||
zIndex: 1,
|
||||
height: 2,
|
||||
backgroundColor: token.colorPrimary,
|
||||
borderRadius: 1,
|
||||
pointerEvents: 'none',
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
top: -3,
|
||||
insetInlineStart: -6,
|
||||
width: 8,
|
||||
height: 8,
|
||||
backgroundColor: 'transparent',
|
||||
border: `${token.lineWidthBold}px solid ${token.colorPrimary}`,
|
||||
borderRadius: '50%',
|
||||
content: '""'
|
||||
}
|
||||
}
|
||||
});
|
||||
const genBaseStyle = (prefixCls, token) => {
|
||||
const {
|
||||
treeCls,
|
||||
treeNodeCls,
|
||||
treeNodePadding,
|
||||
treeTitleHeight
|
||||
} = token;
|
||||
const treeCheckBoxMarginHorizontal = token.paddingXS;
|
||||
return {
|
||||
[treeCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
background: token.colorBgContainer,
|
||||
borderRadius: token.borderRadius,
|
||||
transition: `background-color ${token.motionDurationSlow}`,
|
||||
[`&${treeCls}-rtl`]: {
|
||||
// >>> Switcher
|
||||
[`${treeCls}-switcher`]: {
|
||||
'&_close': {
|
||||
[`${treeCls}-switcher-icon`]: {
|
||||
svg: {
|
||||
transform: 'rotate(90deg)'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
[`&-focused:not(:hover):not(${treeCls}-active-focused)`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .genFocusOutline */ .oN)(token)),
|
||||
// =================== Virtual List ===================
|
||||
[`${treeCls}-list-holder-inner`]: {
|
||||
alignItems: 'flex-start'
|
||||
},
|
||||
[`&${treeCls}-block-node`]: {
|
||||
[`${treeCls}-list-holder-inner`]: {
|
||||
alignItems: 'stretch',
|
||||
// >>> Title
|
||||
[`${treeCls}-node-content-wrapper`]: {
|
||||
flex: 'auto'
|
||||
},
|
||||
// >>> Drag
|
||||
[`${treeNodeCls}.dragging`]: {
|
||||
position: 'relative',
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: 0,
|
||||
bottom: treeNodePadding,
|
||||
insetInlineStart: 0,
|
||||
border: `1px solid ${token.colorPrimary}`,
|
||||
opacity: 0,
|
||||
animationName: treeNodeFX,
|
||||
animationDuration: token.motionDurationSlow,
|
||||
animationPlayState: 'running',
|
||||
animationFillMode: 'forwards',
|
||||
content: '""',
|
||||
pointerEvents: 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// ===================== TreeNode =====================
|
||||
[`${treeNodeCls}`]: {
|
||||
display: 'flex',
|
||||
alignItems: 'flex-start',
|
||||
padding: `0 0 ${treeNodePadding}px 0`,
|
||||
outline: 'none',
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
},
|
||||
// Disabled
|
||||
'&-disabled': {
|
||||
// >>> Title
|
||||
[`${treeCls}-node-content-wrapper`]: {
|
||||
color: token.colorTextDisabled,
|
||||
cursor: 'not-allowed',
|
||||
'&:hover': {
|
||||
background: 'transparent'
|
||||
}
|
||||
}
|
||||
},
|
||||
[`&-active ${treeCls}-node-content-wrapper`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .genFocusOutline */ .oN)(token)),
|
||||
[`&:not(${treeNodeCls}-disabled).filter-node ${treeCls}-title`]: {
|
||||
color: 'inherit',
|
||||
fontWeight: 500
|
||||
},
|
||||
'&-draggable': {
|
||||
[`${treeCls}-draggable-icon`]: {
|
||||
// https://github.com/ant-design/ant-design/issues/41915
|
||||
flexShrink: 0,
|
||||
width: treeTitleHeight,
|
||||
lineHeight: `${treeTitleHeight}px`,
|
||||
textAlign: 'center',
|
||||
visibility: 'visible',
|
||||
opacity: 0.2,
|
||||
transition: `opacity ${token.motionDurationSlow}`,
|
||||
[`${treeNodeCls}:hover &`]: {
|
||||
opacity: 0.45
|
||||
}
|
||||
},
|
||||
[`&${treeNodeCls}-disabled`]: {
|
||||
[`${treeCls}-draggable-icon`]: {
|
||||
visibility: 'hidden'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// >>> Indent
|
||||
[`${treeCls}-indent`]: {
|
||||
alignSelf: 'stretch',
|
||||
whiteSpace: 'nowrap',
|
||||
userSelect: 'none',
|
||||
'&-unit': {
|
||||
display: 'inline-block',
|
||||
width: treeTitleHeight
|
||||
}
|
||||
},
|
||||
// >>> Drag Handler
|
||||
[`${treeCls}-draggable-icon`]: {
|
||||
visibility: 'hidden'
|
||||
},
|
||||
// >>> Switcher
|
||||
[`${treeCls}-switcher`]: Object.assign(Object.assign({}, getSwitchStyle(prefixCls, token)), {
|
||||
position: 'relative',
|
||||
flex: 'none',
|
||||
alignSelf: 'stretch',
|
||||
width: treeTitleHeight,
|
||||
margin: 0,
|
||||
lineHeight: `${treeTitleHeight}px`,
|
||||
textAlign: 'center',
|
||||
cursor: 'pointer',
|
||||
userSelect: 'none',
|
||||
'&-noop': {
|
||||
cursor: 'default'
|
||||
},
|
||||
'&_close': {
|
||||
[`${treeCls}-switcher-icon`]: {
|
||||
svg: {
|
||||
transform: 'rotate(-90deg)'
|
||||
}
|
||||
}
|
||||
},
|
||||
'&-loading-icon': {
|
||||
color: token.colorPrimary
|
||||
},
|
||||
'&-leaf-line': {
|
||||
position: 'relative',
|
||||
zIndex: 1,
|
||||
display: 'inline-block',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
// https://github.com/ant-design/ant-design/issues/31884
|
||||
'&:before': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: treeTitleHeight / 2,
|
||||
bottom: -treeNodePadding,
|
||||
marginInlineStart: -1,
|
||||
borderInlineEnd: `1px solid ${token.colorBorder}`,
|
||||
content: '""'
|
||||
},
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
width: treeTitleHeight / 2 * 0.8,
|
||||
height: treeTitleHeight / 2,
|
||||
borderBottom: `1px solid ${token.colorBorder}`,
|
||||
content: '""'
|
||||
}
|
||||
}
|
||||
}),
|
||||
// >>> Checkbox
|
||||
[`${treeCls}-checkbox`]: {
|
||||
top: 'initial',
|
||||
marginInlineEnd: treeCheckBoxMarginHorizontal
|
||||
},
|
||||
// >>> Title
|
||||
// add `${treeCls}-checkbox + span` to cover checkbox `${checkboxCls} + span`
|
||||
[`${treeCls}-node-content-wrapper, ${treeCls}-checkbox + span`]: {
|
||||
position: 'relative',
|
||||
zIndex: 'auto',
|
||||
minHeight: treeTitleHeight,
|
||||
margin: 0,
|
||||
padding: `0 ${token.paddingXS / 2}px`,
|
||||
color: 'inherit',
|
||||
lineHeight: `${treeTitleHeight}px`,
|
||||
background: 'transparent',
|
||||
borderRadius: token.borderRadius,
|
||||
cursor: 'pointer',
|
||||
transition: `all ${token.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,
|
||||
'&:hover': {
|
||||
backgroundColor: token.controlItemBgHover
|
||||
},
|
||||
[`&${treeCls}-node-selected`]: {
|
||||
backgroundColor: token.controlItemBgActive
|
||||
},
|
||||
// Icon
|
||||
[`${treeCls}-iconEle`]: {
|
||||
display: 'inline-block',
|
||||
width: treeTitleHeight,
|
||||
height: treeTitleHeight,
|
||||
lineHeight: `${treeTitleHeight}px`,
|
||||
textAlign: 'center',
|
||||
verticalAlign: 'top',
|
||||
'&:empty': {
|
||||
display: 'none'
|
||||
}
|
||||
}
|
||||
},
|
||||
// https://github.com/ant-design/ant-design/issues/28217
|
||||
[`${treeCls}-unselectable ${treeCls}-node-content-wrapper:hover`]: {
|
||||
backgroundColor: 'transparent'
|
||||
},
|
||||
// ==================== Draggable =====================
|
||||
[`${treeCls}-node-content-wrapper`]: Object.assign({
|
||||
lineHeight: `${treeTitleHeight}px`,
|
||||
userSelect: 'none'
|
||||
}, getDropIndicatorStyle(prefixCls, token)),
|
||||
[`${treeNodeCls}.drop-container`]: {
|
||||
'> [draggable]': {
|
||||
boxShadow: `0 0 0 2px ${token.colorPrimary}`
|
||||
}
|
||||
},
|
||||
// ==================== Show Line =====================
|
||||
'&-show-line': {
|
||||
// ================ Indent lines ================
|
||||
[`${treeCls}-indent`]: {
|
||||
'&-unit': {
|
||||
position: 'relative',
|
||||
height: '100%',
|
||||
'&:before': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: treeTitleHeight / 2,
|
||||
bottom: -treeNodePadding,
|
||||
borderInlineEnd: `1px solid ${token.colorBorder}`,
|
||||
content: '""'
|
||||
},
|
||||
'&-end': {
|
||||
'&:before': {
|
||||
display: 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// ============== Cover Background ==============
|
||||
[`${treeCls}-switcher`]: {
|
||||
background: 'transparent',
|
||||
'&-line-icon': {
|
||||
// https://github.com/ant-design/ant-design/issues/32813
|
||||
verticalAlign: '-0.15em'
|
||||
}
|
||||
}
|
||||
},
|
||||
[`${treeNodeCls}-leaf-last`]: {
|
||||
[`${treeCls}-switcher`]: {
|
||||
'&-leaf-line': {
|
||||
'&:before': {
|
||||
top: 'auto !important',
|
||||
bottom: 'auto !important',
|
||||
height: `${treeTitleHeight / 2}px !important`
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================ Directory =============================
|
||||
const genDirectoryStyle = token => {
|
||||
const {
|
||||
treeCls,
|
||||
treeNodeCls,
|
||||
treeNodePadding
|
||||
} = token;
|
||||
return {
|
||||
[`${treeCls}${treeCls}-directory`]: {
|
||||
// ================== TreeNode ==================
|
||||
[treeNodeCls]: {
|
||||
position: 'relative',
|
||||
// Hover color
|
||||
'&:before': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineEnd: 0,
|
||||
bottom: treeNodePadding,
|
||||
insetInlineStart: 0,
|
||||
transition: `background-color ${token.motionDurationMid}`,
|
||||
content: '""',
|
||||
pointerEvents: 'none'
|
||||
},
|
||||
'&:hover': {
|
||||
'&:before': {
|
||||
background: token.controlItemBgHover
|
||||
}
|
||||
},
|
||||
// Elements
|
||||
'> *': {
|
||||
zIndex: 1
|
||||
},
|
||||
// >>> Switcher
|
||||
[`${treeCls}-switcher`]: {
|
||||
transition: `color ${token.motionDurationMid}`
|
||||
},
|
||||
// >>> Title
|
||||
[`${treeCls}-node-content-wrapper`]: {
|
||||
borderRadius: 0,
|
||||
userSelect: 'none',
|
||||
'&:hover': {
|
||||
background: 'transparent'
|
||||
},
|
||||
[`&${treeCls}-node-selected`]: {
|
||||
color: token.colorTextLightSolid,
|
||||
background: 'transparent'
|
||||
}
|
||||
},
|
||||
// ============= Selected =============
|
||||
'&-selected': {
|
||||
[`
|
||||
&:hover::before,
|
||||
&::before
|
||||
`]: {
|
||||
background: token.colorPrimary
|
||||
},
|
||||
// >>> Switcher
|
||||
[`${treeCls}-switcher`]: {
|
||||
color: token.colorTextLightSolid
|
||||
},
|
||||
// >>> Title
|
||||
[`${treeCls}-node-content-wrapper`]: {
|
||||
color: token.colorTextLightSolid,
|
||||
background: 'transparent'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Merged ==============================
|
||||
const genTreeStyle = (prefixCls, token) => {
|
||||
const treeCls = `.${prefixCls}`;
|
||||
const treeNodeCls = `${treeCls}-treenode`;
|
||||
const treeNodePadding = token.paddingXS / 2;
|
||||
const treeTitleHeight = token.controlHeightSM;
|
||||
const treeToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .merge */ .TS)(token, {
|
||||
treeCls,
|
||||
treeNodeCls,
|
||||
treeNodePadding,
|
||||
treeTitleHeight
|
||||
});
|
||||
return [
|
||||
// Basic
|
||||
genBaseStyle(prefixCls, treeToken),
|
||||
// Directory
|
||||
genDirectoryStyle(treeToken)];
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ __webpack_exports__["ZP"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Tree', (token, _ref) => {
|
||||
let {
|
||||
prefixCls
|
||||
} = _ref;
|
||||
return [{
|
||||
[token.componentCls]: (0,_checkbox_style__WEBPACK_IMPORTED_MODULE_4__/* .getStyle */ .C2)(`${prefixCls}-checkbox`, token)
|
||||
}, genTreeStyle(prefixCls, token), (0,_style_motion__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(token)];
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7349:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/antd/es/tree/utils/iconUtil.js + 6 modules ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ iconUtil; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/CaretDownFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var CaretDownFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, "name": "caret-down", "theme": "filled" };
|
||||
/* harmony default export */ var asn_CaretDownFilled = (CaretDownFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CaretDownFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CaretDownFilled_CaretDownFilled = function CaretDownFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CaretDownFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CaretDownFilled = (/*#__PURE__*/react.forwardRef(CaretDownFilled_CaretDownFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FileOutlined.js + 1 modules
|
||||
var FileOutlined = __webpack_require__(46214);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
|
||||
var LoadingOutlined = __webpack_require__(77322);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/MinusSquareOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var MinusSquareOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { "tag": "path", "attrs": { "d": "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, "name": "minus-square", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_MinusSquareOutlined = (MinusSquareOutlined);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/MinusSquareOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var MinusSquareOutlined_MinusSquareOutlined = function MinusSquareOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_MinusSquareOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_MinusSquareOutlined = (/*#__PURE__*/react.forwardRef(MinusSquareOutlined_MinusSquareOutlined));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/PlusSquareOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var PlusSquareOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { "tag": "path", "attrs": { "d": "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, "name": "plus-square", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_PlusSquareOutlined = (PlusSquareOutlined);
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/PlusSquareOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var PlusSquareOutlined_PlusSquareOutlined = function PlusSquareOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusSquareOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusSquareOutlined = (/*#__PURE__*/react.forwardRef(PlusSquareOutlined_PlusSquareOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/tree/utils/iconUtil.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SwitcherIconCom = props => {
|
||||
const {
|
||||
prefixCls,
|
||||
switcherIcon,
|
||||
treeNodeProps,
|
||||
showLine
|
||||
} = props;
|
||||
const {
|
||||
isLeaf,
|
||||
expanded,
|
||||
loading
|
||||
} = treeNodeProps;
|
||||
if (loading) {
|
||||
return /*#__PURE__*/react.createElement(LoadingOutlined/* default */.Z, {
|
||||
className: `${prefixCls}-switcher-loading-icon`
|
||||
});
|
||||
}
|
||||
let showLeafIcon;
|
||||
if (showLine && typeof showLine === 'object') {
|
||||
showLeafIcon = showLine.showLeafIcon;
|
||||
}
|
||||
if (isLeaf) {
|
||||
if (!showLine) {
|
||||
return null;
|
||||
}
|
||||
if (typeof showLeafIcon !== 'boolean' && !!showLeafIcon) {
|
||||
const leafIcon = typeof showLeafIcon === 'function' ? showLeafIcon(treeNodeProps) : showLeafIcon;
|
||||
const leafCls = `${prefixCls}-switcher-line-custom-icon`;
|
||||
if ((0,reactNode/* isValidElement */.l$)(leafIcon)) {
|
||||
return (0,reactNode/* cloneElement */.Tm)(leafIcon, {
|
||||
className: classnames_default()(leafIcon.props.className || '', leafCls)
|
||||
});
|
||||
}
|
||||
return leafIcon;
|
||||
}
|
||||
return showLeafIcon ? /*#__PURE__*/react.createElement(FileOutlined/* default */.Z, {
|
||||
className: `${prefixCls}-switcher-line-icon`
|
||||
}) : /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-switcher-leaf-line`
|
||||
});
|
||||
}
|
||||
const switcherCls = `${prefixCls}-switcher-icon`;
|
||||
const switcher = typeof switcherIcon === 'function' ? switcherIcon(treeNodeProps) : switcherIcon;
|
||||
if ((0,reactNode/* isValidElement */.l$)(switcher)) {
|
||||
return (0,reactNode/* cloneElement */.Tm)(switcher, {
|
||||
className: classnames_default()(switcher.props.className || '', switcherCls)
|
||||
});
|
||||
}
|
||||
if (switcher !== undefined) {
|
||||
return switcher;
|
||||
}
|
||||
if (showLine) {
|
||||
return expanded ? /*#__PURE__*/react.createElement(icons_MinusSquareOutlined, {
|
||||
className: `${prefixCls}-switcher-line-icon`
|
||||
}) : /*#__PURE__*/react.createElement(icons_PlusSquareOutlined, {
|
||||
className: `${prefixCls}-switcher-line-icon`
|
||||
});
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(icons_CaretDownFilled, {
|
||||
className: switcherCls
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var iconUtil = (SwitcherIconCom);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 46214:
|
||||
/*!***********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FileOutlined.js + 1 modules ***!
|
||||
\***********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_FileOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/FileOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var FileOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z" } }] }, "name": "file", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_FileOutlined = (FileOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/FileOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var FileOutlined_FileOutlined = function FileOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_FileOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_FileOutlined = (/*#__PURE__*/react.forwardRef(FileOutlined_FileOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 36459:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ _objectDestructuringEmpty; }
|
||||
/* harmony export */ });
|
||||
function _objectDestructuringEmpty(obj) {
|
||||
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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
@ -1,716 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19458],{
|
||||
|
||||
/***/ 19249:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_BarsOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_BarsOutlined = (/*#__PURE__*/react.forwardRef(BarsOutlined_BarsOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/LeftOutlined.js + 1 modules
|
||||
var LeftOutlined = __webpack_require__(55007);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/RightOutlined.js + 1 modules
|
||||
var RightOutlined = __webpack_require__(79269);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
;// CONCATENATED MODULE: ./node_modules/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/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/layout/layout.js + 2 modules
|
||||
var layout = __webpack_require__(84321);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/Sider.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const dimensionMaxMap = {
|
||||
xs: '479.98px',
|
||||
sm: '575.98px',
|
||||
md: '767.98px',
|
||||
lg: '991.98px',
|
||||
xl: '1199.98px',
|
||||
xxl: '1599.98px'
|
||||
};
|
||||
const SiderContext = /*#__PURE__*/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.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.useContext)(layout/* LayoutContext */.Gs);
|
||||
const [collapsed, setCollapsed] = (0,react.useState)('collapsed' in props ? props.collapsed : defaultCollapsed);
|
||||
const [below, setBelow] = (0,react.useState)(false);
|
||||
(0,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.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.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.useEffect)(() => {
|
||||
const uniqueId = generateId('ant-sider-');
|
||||
siderHook.addSider(uniqueId);
|
||||
return () => siderHook.removeSider(uniqueId);
|
||||
}, []);
|
||||
const toggle = () => {
|
||||
handleSetCollapsed(!collapsed, 'clickTrigger');
|
||||
};
|
||||
const {
|
||||
getPrefixCls
|
||||
} = (0,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.createElement("span", {
|
||||
onClick: toggle,
|
||||
className: classnames_default()(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),
|
||||
style: zeroWidthTriggerStyle
|
||||
}, trigger || /*#__PURE__*/react.createElement(icons_BarsOutlined, null)) : null;
|
||||
const iconObj = {
|
||||
expanded: reverseArrow ? /*#__PURE__*/react.createElement(RightOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(LeftOutlined/* default */.Z, null),
|
||||
collapsed: reverseArrow ? /*#__PURE__*/react.createElement(LeftOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(RightOutlined/* default */.Z, null)
|
||||
};
|
||||
const status = collapsed ? 'collapsed' : 'expanded';
|
||||
const defaultTrigger = iconObj[status];
|
||||
const triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/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_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.createElement("aside", Object.assign({
|
||||
className: siderCls
|
||||
}, divProps, {
|
||||
style: divStyle,
|
||||
ref: ref
|
||||
}), /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-children`
|
||||
}, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);
|
||||
};
|
||||
const contextValue = react.useMemo(() => ({
|
||||
siderCollapsed: collapsed
|
||||
}), [collapsed]);
|
||||
return /*#__PURE__*/react.createElement(SiderContext.Provider, {
|
||||
value: contextValue
|
||||
}, renderSider());
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var layout_Sider = (Sider);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 84321:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/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/helpers/esm/toConsumableArray.js + 2 modules
|
||||
var toConsumableArray = __webpack_require__(74902);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/style/light.js
|
||||
const genLayoutLightStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
colorBgContainer,
|
||||
colorBgBody,
|
||||
colorText
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-sider-light`]: {
|
||||
background: colorBgContainer,
|
||||
[`${componentCls}-sider-trigger`]: {
|
||||
color: colorText,
|
||||
background: colorBgContainer
|
||||
},
|
||||
[`${componentCls}-sider-zero-width-trigger`]: {
|
||||
color: colorText,
|
||||
background: colorBgContainer,
|
||||
border: `1px solid ${colorBgBody}`,
|
||||
borderInlineStart: 0
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
/* harmony default export */ var light = (genLayoutLightStyle);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/style/index.js
|
||||
|
||||
|
||||
const genLayoutStyle = token => {
|
||||
const {
|
||||
antCls,
|
||||
// .ant
|
||||
componentCls,
|
||||
// .ant-layout
|
||||
colorText,
|
||||
colorTextLightSolid,
|
||||
colorBgHeader,
|
||||
colorBgBody,
|
||||
colorBgTrigger,
|
||||
layoutHeaderHeight,
|
||||
layoutHeaderPaddingInline,
|
||||
layoutHeaderColor,
|
||||
layoutFooterPadding,
|
||||
layoutTriggerHeight,
|
||||
layoutZeroTriggerSize,
|
||||
motionDurationMid,
|
||||
motionDurationSlow,
|
||||
fontSize,
|
||||
borderRadius
|
||||
} = 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: colorBgBody,
|
||||
'&, *': {
|
||||
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: colorBgHeader,
|
||||
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: layoutTriggerHeight
|
||||
},
|
||||
'&-right': {
|
||||
order: 1
|
||||
},
|
||||
'&-trigger': {
|
||||
position: 'fixed',
|
||||
bottom: 0,
|
||||
zIndex: 1,
|
||||
height: layoutTriggerHeight,
|
||||
color: colorTextLightSolid,
|
||||
lineHeight: `${layoutTriggerHeight}px`,
|
||||
textAlign: 'center',
|
||||
background: colorBgTrigger,
|
||||
cursor: 'pointer',
|
||||
transition: `all ${motionDurationMid}`
|
||||
},
|
||||
'&-zero-width': {
|
||||
'> *': {
|
||||
overflow: 'hidden'
|
||||
},
|
||||
'&-trigger': {
|
||||
position: 'absolute',
|
||||
top: layoutHeaderHeight,
|
||||
insetInlineEnd: -layoutZeroTriggerSize,
|
||||
zIndex: 1,
|
||||
width: layoutZeroTriggerSize,
|
||||
height: layoutZeroTriggerSize,
|
||||
color: colorTextLightSolid,
|
||||
fontSize: token.fontSizeXL,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
background: colorBgHeader,
|
||||
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': {
|
||||
// FIXME: Hardcode, but seems no need to create a token for this
|
||||
background: `rgba(255, 255, 255, 0.2)`
|
||||
},
|
||||
'&-right': {
|
||||
insetInlineStart: -layoutZeroTriggerSize,
|
||||
borderStartStartRadius: borderRadius,
|
||||
borderStartEndRadius: 0,
|
||||
borderEndEndRadius: 0,
|
||||
borderEndStartRadius: borderRadius
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, light(token)), {
|
||||
// RTL
|
||||
'&-rtl': {
|
||||
direction: 'rtl'
|
||||
}
|
||||
}),
|
||||
// ==================== Header ====================
|
||||
[`${componentCls}-header`]: {
|
||||
height: layoutHeaderHeight,
|
||||
paddingInline: layoutHeaderPaddingInline,
|
||||
color: layoutHeaderColor,
|
||||
lineHeight: `${layoutHeaderHeight}px`,
|
||||
background: colorBgHeader,
|
||||
// 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: layoutFooterPadding,
|
||||
color: colorText,
|
||||
fontSize,
|
||||
background: colorBgBody
|
||||
},
|
||||
// =================== 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 => {
|
||||
const {
|
||||
colorText,
|
||||
controlHeightSM,
|
||||
controlHeight,
|
||||
controlHeightLG,
|
||||
marginXXS
|
||||
} = token;
|
||||
const layoutHeaderPaddingInline = controlHeightLG * 1.25;
|
||||
const layoutToken = (0,statistic/* merge */.TS)(token, {
|
||||
// Layout
|
||||
layoutHeaderHeight: controlHeight * 2,
|
||||
layoutHeaderPaddingInline,
|
||||
layoutHeaderColor: colorText,
|
||||
layoutFooterPadding: `${controlHeightSM}px ${layoutHeaderPaddingInline}px`,
|
||||
layoutTriggerHeight: controlHeightLG + marginXXS * 2,
|
||||
layoutZeroTriggerSize: controlHeightLG
|
||||
});
|
||||
return [genLayoutStyle(layoutToken)];
|
||||
}, token => {
|
||||
const {
|
||||
colorBgLayout
|
||||
} = token;
|
||||
return {
|
||||
colorBgHeader: '#001529',
|
||||
colorBgBody: colorBgLayout,
|
||||
colorBgTrigger: '#002140'
|
||||
};
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/layout/layout.js
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const LayoutContext = /*#__PURE__*/react.createContext({
|
||||
siderHook: {
|
||||
addSider: () => null,
|
||||
removeSider: () => null
|
||||
}
|
||||
});
|
||||
function generator(_ref) {
|
||||
let {
|
||||
suffixCls,
|
||||
tagName,
|
||||
displayName
|
||||
} = _ref;
|
||||
return BasicComponent => {
|
||||
const Adapter = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/react.createElement(BasicComponent, Object.assign({
|
||||
ref: ref,
|
||||
suffixCls: suffixCls,
|
||||
tagName: tagName
|
||||
}, props)));
|
||||
if (false) {}
|
||||
return Adapter;
|
||||
};
|
||||
}
|
||||
const Basic = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
suffixCls,
|
||||
className,
|
||||
tagName: TagName
|
||||
} = props,
|
||||
others = __rest(props, ["prefixCls", "suffixCls", "className", "tagName"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = 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.createElement(TagName, Object.assign({
|
||||
className: classnames_default()(customizePrefixCls || prefixWithSuffixCls, className, hashId),
|
||||
ref: ref
|
||||
}, others)));
|
||||
});
|
||||
const BasicLayout = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
direction
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const [siders, setSiders] = 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.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('layout', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = layout_style(prefixCls);
|
||||
const classString = 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.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.createElement(LayoutContext.Provider, {
|
||||
value: contextValue
|
||||
}, /*#__PURE__*/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: 'section',
|
||||
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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33507:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 55007:
|
||||
/*!***********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LeftOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/react.forwardRef(LeftOutlined_LeftOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 79269:
|
||||
/*!************************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_RightOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/react.forwardRef(RightOutlined_RightOutlined));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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
@ -1,749 +0,0 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21788],{
|
||||
|
||||
/***/ 64082:
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_InboxOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/InboxOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_InboxOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_InboxOutlined = (/*#__PURE__*/react.forwardRef(InboxOutlined_InboxOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48783:
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/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 */ 74902);
|
||||
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 96523);
|
||||
|
||||
|
||||
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"].cancel */ .Z.cancel(requestId);
|
||||
requestId = null;
|
||||
};
|
||||
return throttled;
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (throttleByAnimationFrame);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 30291:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(15671);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__(43144);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(60136);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||||
var createSuper = __webpack_require__(51630);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-resize-observer/es/index.js + 4 modules
|
||||
var es = __webpack_require__(48555);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/throttleByAnimationFrame.js
|
||||
var throttleByAnimationFrame = __webpack_require__(48783);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/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/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/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.createRef)();
|
||||
_this.fixedNodeRef = /*#__PURE__*/(0,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_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.createElement(es/* default */.Z, {
|
||||
onResize: this.updatePosition
|
||||
}, /*#__PURE__*/react.createElement("div", Object.assign({}, props, {
|
||||
ref: this.placeholderNodeRef
|
||||
}), affixStyle && /*#__PURE__*/react.createElement("div", {
|
||||
style: placeholderStyle,
|
||||
"aria-hidden": "true"
|
||||
}), /*#__PURE__*/react.createElement("div", {
|
||||
className: className,
|
||||
ref: this.fixedNodeRef,
|
||||
style: affixStyle
|
||||
}, /*#__PURE__*/react.createElement(es/* default */.Z, {
|
||||
onResize: this.updatePosition
|
||||
}, children))));
|
||||
}
|
||||
}]);
|
||||
return InternalAffix;
|
||||
}(react.Component);
|
||||
InternalAffix.contextType = context/* ConfigContext */.E_;
|
||||
const Affix = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
rootClassName
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = (0,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_default()(rootClassName, hashId)
|
||||
});
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(InternalAffix, Object.assign({}, AffixProps, {
|
||||
ref: ref
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var affix = (Affix);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57761:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = __webpack_require__(/*! prop-types */ 45697);
|
||||
|
||||
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'];
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 246:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/react-infinite-scroller/index.js ***!
|
||||
\*******************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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
@ -1,807 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27129,91708,29823,32482,15105,29581,33127,53898,53764,4751,84551],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64217:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
||||
|
||||
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
||||
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
||||
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
||||
|
||||
/* eslint-enable max-len */
|
||||
var ariaPrefix = 'aria-';
|
||||
var dataPrefix = 'data-';
|
||||
function match(key, prefix) {
|
||||
return key.indexOf(prefix) === 0;
|
||||
}
|
||||
/**
|
||||
* Picker props from exist props with filter
|
||||
* @param props Passed props
|
||||
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
||||
*/
|
||||
function pickAttrs(props) {
|
||||
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
var mergedConfig;
|
||||
if (ariaOnly === false) {
|
||||
mergedConfig = {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
};
|
||||
} else if (ariaOnly === true) {
|
||||
mergedConfig = {
|
||||
aria: true
|
||||
};
|
||||
} else {
|
||||
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
||||
}
|
||||
var attrs = {};
|
||||
Object.keys(props).forEach(function (key) {
|
||||
if (
|
||||
// Aria
|
||||
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
||||
// Data
|
||||
mergedConfig.data && match(key, dataPrefix) ||
|
||||
// Attr
|
||||
mergedConfig.attr && propList.includes(key)) {
|
||||
attrs[key] = props[key];
|
||||
}
|
||||
});
|
||||
return attrs;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,900 +0,0 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28502],{
|
||||
|
||||
/***/ 97937:
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_CloseOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CloseOutlined = (CloseOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CloseOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseOutlined_CloseOutlined = function CloseOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseOutlined = (/*#__PURE__*/react.forwardRef(CloseOutlined_CloseOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 23430:
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/DownloadOutlined.js + 1 modules ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_DownloadOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DownloadOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DownloadOutlined = (/*#__PURE__*/react.forwardRef(DownloadOutlined_DownloadOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33160:
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/ReloadOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_ReloadOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ReloadOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ReloadOutlined = (/*#__PURE__*/react.forwardRef(ReloadOutlined_ReloadOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11486:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var form_context = __webpack_require__(65223);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/style/index.js
|
||||
var style = __webpack_require__(47673);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Group.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,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_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.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/react.createElement(form_context/* FormItemInputContext.Provider */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(82586);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(43481);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(17799);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(72922);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Password.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const defaultIconRender = visible => visible ? /*#__PURE__*/react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,react.useRef)(null);
|
||||
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.cloneElement( /*#__PURE__*/react.isValidElement(icon) ? icon : /*#__PURE__*/react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = 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.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/antd/node_modules/@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42480);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/input/Search.js
|
||||
var Search_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Search = /*#__PURE__*/react.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.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = 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.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e);
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/react.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.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_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.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/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(96330);
|
||||
;// CONCATENATED MODULE: ./node_modules/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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97183:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/antd/es/layout/index.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84321);
|
||||
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 19249);
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
||||
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
||||
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
||||
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
||||
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 43481:
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\**********************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57761:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = __webpack_require__(/*! prop-types */ 45697);
|
||||
|
||||
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'];
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 246:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/react-infinite-scroller/index.js ***!
|
||||
\*******************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,700 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2935],{
|
||||
|
||||
/***/ 4340:
|
||||
/*!**********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules ***!
|
||||
\**********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_CloseCircleFilled; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var CloseCircleFilled = { "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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
|
||||
/* harmony default export */ var asn_CloseCircleFilled = (CloseCircleFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CloseCircleFilled_CloseCircleFilled = function CloseCircleFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CloseCircleFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CloseCircleFilled = (/*#__PURE__*/react.forwardRef(CloseCircleFilled_CloseCircleFilled));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11475:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4393:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/card/index.js + 4 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ card; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(98675);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(4310);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tabs/index.js + 30 modules
|
||||
var es_tabs = __webpack_require__(74685);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/card/Grid.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
const Grid = _a => {
|
||||
var {
|
||||
prefixCls,
|
||||
className,
|
||||
hoverable = true
|
||||
} = _a,
|
||||
props = __rest(_a, ["prefixCls", "className", "hoverable"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefix = getPrefixCls('card', prefixCls);
|
||||
const classString = classnames_default()(`${prefix}-grid`, className, {
|
||||
[`${prefix}-grid-hoverable`]: hoverable
|
||||
});
|
||||
return /*#__PURE__*/react.createElement("div", Object.assign({}, props, {
|
||||
className: classString
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ var card_Grid = (Grid);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/card/style/index.js
|
||||
|
||||
|
||||
// ============================== Styles ==============================
|
||||
// ============================== Head ==============================
|
||||
const genCardHeadStyle = token => {
|
||||
const {
|
||||
antCls,
|
||||
componentCls,
|
||||
headerHeight,
|
||||
cardPaddingBase,
|
||||
tabsMarginBottom
|
||||
} = token;
|
||||
return Object.assign(Object.assign({
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'column',
|
||||
minHeight: headerHeight,
|
||||
marginBottom: -1,
|
||||
padding: `0 ${cardPaddingBase}px`,
|
||||
color: token.colorTextHeading,
|
||||
fontWeight: token.fontWeightStrong,
|
||||
fontSize: token.headerFontSize,
|
||||
background: token.headerBg,
|
||||
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`,
|
||||
borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`
|
||||
}, (0,style/* clearFix */.dF)()), {
|
||||
'&-wrapper': {
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
},
|
||||
'&-title': Object.assign(Object.assign({
|
||||
display: 'inline-block',
|
||||
flex: 1
|
||||
}, style/* textEllipsis */.vS), {
|
||||
[`
|
||||
> ${componentCls}-typography,
|
||||
> ${componentCls}-typography-edit-content
|
||||
`]: {
|
||||
insetInlineStart: 0,
|
||||
marginTop: 0,
|
||||
marginBottom: 0
|
||||
}
|
||||
}),
|
||||
[`${antCls}-tabs-top`]: {
|
||||
clear: 'both',
|
||||
marginBottom: tabsMarginBottom,
|
||||
color: token.colorText,
|
||||
fontWeight: 'normal',
|
||||
fontSize: token.fontSize,
|
||||
'&-bar': {
|
||||
borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
// ============================== Grid ==============================
|
||||
const genCardGridStyle = token => {
|
||||
const {
|
||||
cardPaddingBase,
|
||||
colorBorderSecondary,
|
||||
cardShadow,
|
||||
lineWidth
|
||||
} = token;
|
||||
return {
|
||||
width: '33.33%',
|
||||
padding: cardPaddingBase,
|
||||
border: 0,
|
||||
borderRadius: 0,
|
||||
boxShadow: `
|
||||
${lineWidth}px 0 0 0 ${colorBorderSecondary},
|
||||
0 ${lineWidth}px 0 0 ${colorBorderSecondary},
|
||||
${lineWidth}px ${lineWidth}px 0 0 ${colorBorderSecondary},
|
||||
${lineWidth}px 0 0 0 ${colorBorderSecondary} inset,
|
||||
0 ${lineWidth}px 0 0 ${colorBorderSecondary} inset;
|
||||
`,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
'&-hoverable:hover': {
|
||||
position: 'relative',
|
||||
zIndex: 1,
|
||||
boxShadow: cardShadow
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Actions ==============================
|
||||
const genCardActionsStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
iconCls,
|
||||
actionsLiMargin,
|
||||
cardActionsIconSize,
|
||||
colorBorderSecondary,
|
||||
actionsBg
|
||||
} = token;
|
||||
return Object.assign(Object.assign({
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
listStyle: 'none',
|
||||
background: actionsBg,
|
||||
borderTop: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,
|
||||
display: 'flex',
|
||||
borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px `
|
||||
}, (0,style/* clearFix */.dF)()), {
|
||||
'& > li': {
|
||||
margin: actionsLiMargin,
|
||||
color: token.colorTextDescription,
|
||||
textAlign: 'center',
|
||||
'> span': {
|
||||
position: 'relative',
|
||||
display: 'block',
|
||||
minWidth: token.cardActionsIconSize * 2,
|
||||
fontSize: token.fontSize,
|
||||
lineHeight: token.lineHeight,
|
||||
cursor: 'pointer',
|
||||
'&:hover': {
|
||||
color: token.colorPrimary,
|
||||
transition: `color ${token.motionDurationMid}`
|
||||
},
|
||||
[`a:not(${componentCls}-btn), > ${iconCls}`]: {
|
||||
display: 'inline-block',
|
||||
width: '100%',
|
||||
color: token.colorTextDescription,
|
||||
lineHeight: `${token.fontSize * token.lineHeight}px`,
|
||||
transition: `color ${token.motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: token.colorPrimary
|
||||
}
|
||||
},
|
||||
[`> ${iconCls}`]: {
|
||||
fontSize: cardActionsIconSize,
|
||||
lineHeight: `${cardActionsIconSize * token.lineHeight}px`
|
||||
}
|
||||
},
|
||||
'&:not(:last-child)': {
|
||||
borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
// ============================== Meta ==============================
|
||||
const genCardMetaStyle = token => Object.assign(Object.assign({
|
||||
margin: `-${token.marginXXS}px 0`,
|
||||
display: 'flex'
|
||||
}, (0,style/* clearFix */.dF)()), {
|
||||
'&-avatar': {
|
||||
paddingInlineEnd: token.padding
|
||||
},
|
||||
'&-detail': {
|
||||
overflow: 'hidden',
|
||||
flex: 1,
|
||||
'> div:not(:last-child)': {
|
||||
marginBottom: token.marginXS
|
||||
}
|
||||
},
|
||||
'&-title': Object.assign({
|
||||
color: token.colorTextHeading,
|
||||
fontWeight: token.fontWeightStrong,
|
||||
fontSize: token.fontSizeLG
|
||||
}, style/* textEllipsis */.vS),
|
||||
'&-description': {
|
||||
color: token.colorTextDescription
|
||||
}
|
||||
});
|
||||
// ============================== Inner ==============================
|
||||
const genCardTypeInnerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
cardPaddingBase,
|
||||
colorFillAlter
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-head`]: {
|
||||
padding: `0 ${cardPaddingBase}px`,
|
||||
background: colorFillAlter,
|
||||
'&-title': {
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
},
|
||||
[`${componentCls}-body`]: {
|
||||
padding: `${token.padding}px ${cardPaddingBase}px`
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Loading ==============================
|
||||
const genCardLoadingStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
overflow: 'hidden',
|
||||
[`${componentCls}-body`]: {
|
||||
userSelect: 'none'
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Basic ==============================
|
||||
const genCardStyle = token => {
|
||||
const {
|
||||
antCls,
|
||||
componentCls,
|
||||
cardShadow,
|
||||
cardHeadPadding,
|
||||
colorBorderSecondary,
|
||||
boxShadowTertiary,
|
||||
cardPaddingBase,
|
||||
extraColor
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
position: 'relative',
|
||||
background: token.colorBgContainer,
|
||||
borderRadius: token.borderRadiusLG,
|
||||
[`&:not(${componentCls}-bordered)`]: {
|
||||
boxShadow: boxShadowTertiary
|
||||
},
|
||||
[`${componentCls}-head`]: genCardHeadStyle(token),
|
||||
[`${componentCls}-extra`]: {
|
||||
// https://stackoverflow.com/a/22429853/3040605
|
||||
marginInlineStart: 'auto',
|
||||
color: extraColor,
|
||||
fontWeight: 'normal',
|
||||
fontSize: token.fontSize
|
||||
},
|
||||
[`${componentCls}-body`]: Object.assign({
|
||||
padding: cardPaddingBase,
|
||||
borderRadius: ` 0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px`
|
||||
}, (0,style/* clearFix */.dF)()),
|
||||
[`${componentCls}-grid`]: genCardGridStyle(token),
|
||||
[`${componentCls}-cover`]: {
|
||||
'> *': {
|
||||
display: 'block',
|
||||
width: '100%'
|
||||
},
|
||||
[`img, img + ${antCls}-image-mask`]: {
|
||||
borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`
|
||||
}
|
||||
},
|
||||
[`${componentCls}-actions`]: genCardActionsStyle(token),
|
||||
[`${componentCls}-meta`]: genCardMetaStyle(token)
|
||||
}),
|
||||
[`${componentCls}-bordered`]: {
|
||||
border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,
|
||||
[`${componentCls}-cover`]: {
|
||||
marginTop: -1,
|
||||
marginInlineStart: -1,
|
||||
marginInlineEnd: -1
|
||||
}
|
||||
},
|
||||
[`${componentCls}-hoverable`]: {
|
||||
cursor: 'pointer',
|
||||
transition: `box-shadow ${token.motionDurationMid}, border-color ${token.motionDurationMid}`,
|
||||
'&:hover': {
|
||||
borderColor: 'transparent',
|
||||
boxShadow: cardShadow
|
||||
}
|
||||
},
|
||||
[`${componentCls}-contain-grid`]: {
|
||||
[`${componentCls}-body`]: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap'
|
||||
},
|
||||
[`&:not(${componentCls}-loading) ${componentCls}-body`]: {
|
||||
marginBlockStart: -token.lineWidth,
|
||||
marginInlineStart: -token.lineWidth,
|
||||
padding: 0
|
||||
}
|
||||
},
|
||||
[`${componentCls}-contain-tabs`]: {
|
||||
[`> ${componentCls}-head`]: {
|
||||
[`${componentCls}-head-title, ${componentCls}-extra`]: {
|
||||
paddingTop: cardHeadPadding
|
||||
}
|
||||
}
|
||||
},
|
||||
[`${componentCls}-type-inner`]: genCardTypeInnerStyle(token),
|
||||
[`${componentCls}-loading`]: genCardLoadingStyle(token),
|
||||
[`${componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Size ==============================
|
||||
const genCardSizeStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
cardPaddingSM,
|
||||
headerHeightSM,
|
||||
headerFontSizeSM
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-small`]: {
|
||||
[`> ${componentCls}-head`]: {
|
||||
minHeight: headerHeightSM,
|
||||
padding: `0 ${cardPaddingSM}px`,
|
||||
fontSize: headerFontSizeSM,
|
||||
[`> ${componentCls}-head-wrapper`]: {
|
||||
[`> ${componentCls}-extra`]: {
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}
|
||||
},
|
||||
[`> ${componentCls}-body`]: {
|
||||
padding: cardPaddingSM
|
||||
}
|
||||
},
|
||||
[`${componentCls}-small${componentCls}-contain-tabs`]: {
|
||||
[`> ${componentCls}-head`]: {
|
||||
[`${componentCls}-head-title, ${componentCls}-extra`]: {
|
||||
minHeight: headerHeightSM,
|
||||
paddingTop: 0,
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var card_style = ((0,genComponentStyleHook/* default */.Z)('Card', token => {
|
||||
const cardToken = (0,statistic/* merge */.TS)(token, {
|
||||
cardShadow: token.boxShadowCard,
|
||||
cardHeadPadding: token.padding,
|
||||
cardPaddingBase: token.paddingLG,
|
||||
cardActionsIconSize: token.fontSize,
|
||||
cardPaddingSM: 12 // Fixed padding.
|
||||
});
|
||||
|
||||
return [
|
||||
// Style
|
||||
genCardStyle(cardToken),
|
||||
// Size
|
||||
genCardSizeStyle(cardToken)];
|
||||
}, token => ({
|
||||
headerBg: 'transparent',
|
||||
headerFontSize: token.fontSizeLG,
|
||||
headerFontSizeSM: token.fontSize,
|
||||
headerHeight: token.fontSizeLG * token.lineHeightLG + token.padding * 2,
|
||||
headerHeightSM: token.fontSize * token.lineHeight + token.paddingXS * 2,
|
||||
actionsBg: token.colorBgContainer,
|
||||
actionsLiMargin: `${token.paddingSM}px 0`,
|
||||
tabsMarginBottom: -token.padding - token.lineWidth,
|
||||
extraColor: token.colorText
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/card/Card.js
|
||||
var Card_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 getAction(actions) {
|
||||
return actions.map((action, index) =>
|
||||
/*#__PURE__*/
|
||||
// eslint-disable-next-line react/no-array-index-key
|
||||
react.createElement("li", {
|
||||
style: {
|
||||
width: `${100 / actions.length}%`
|
||||
},
|
||||
key: `action-${index}`
|
||||
}, /*#__PURE__*/react.createElement("span", null, action)));
|
||||
}
|
||||
const Card = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
extra,
|
||||
headStyle = {},
|
||||
bodyStyle = {},
|
||||
title,
|
||||
loading,
|
||||
bordered = true,
|
||||
size: customizeSize,
|
||||
type,
|
||||
cover,
|
||||
actions,
|
||||
tabList,
|
||||
children,
|
||||
activeTabKey,
|
||||
defaultActiveTabKey,
|
||||
tabBarExtraContent,
|
||||
hoverable,
|
||||
tabProps = {}
|
||||
} = props,
|
||||
others = Card_rest(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
card
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const onTabChange = key => {
|
||||
var _a;
|
||||
(_a = props.onTabChange) === null || _a === void 0 ? void 0 : _a.call(props, key);
|
||||
};
|
||||
const isContainGrid = react.useMemo(() => {
|
||||
let containGrid = false;
|
||||
react.Children.forEach(children, element => {
|
||||
if (element && element.type && element.type === card_Grid) {
|
||||
containGrid = true;
|
||||
}
|
||||
});
|
||||
return containGrid;
|
||||
}, [children]);
|
||||
const prefixCls = getPrefixCls('card', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = card_style(prefixCls);
|
||||
const loadingBlock = /*#__PURE__*/react.createElement(skeleton/* default */.Z, {
|
||||
loading: true,
|
||||
active: true,
|
||||
paragraph: {
|
||||
rows: 4
|
||||
},
|
||||
title: false
|
||||
}, children);
|
||||
const hasActiveTabKey = activeTabKey !== undefined;
|
||||
const extraProps = Object.assign(Object.assign({}, tabProps), {
|
||||
[hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
|
||||
tabBarExtraContent
|
||||
});
|
||||
let head;
|
||||
const mergedSize = (0,useSize/* default */.Z)(customizeSize);
|
||||
const tabSize = !mergedSize || mergedSize === 'default' ? 'large' : mergedSize;
|
||||
const tabs = tabList ? /*#__PURE__*/react.createElement(es_tabs/* default */.Z, Object.assign({
|
||||
size: tabSize
|
||||
}, extraProps, {
|
||||
className: `${prefixCls}-head-tabs`,
|
||||
onChange: onTabChange,
|
||||
items: tabList.map(_a => {
|
||||
var {
|
||||
tab
|
||||
} = _a,
|
||||
item = Card_rest(_a, ["tab"]);
|
||||
return Object.assign({
|
||||
label: tab
|
||||
}, item);
|
||||
})
|
||||
})) : null;
|
||||
if (title || extra || tabs) {
|
||||
head = /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-head`,
|
||||
style: headStyle
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-head-wrapper`
|
||||
}, title && /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-head-title`
|
||||
}, title), extra && /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-extra`
|
||||
}, extra)), tabs);
|
||||
}
|
||||
const coverDom = cover ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-cover`
|
||||
}, cover) : null;
|
||||
const body = /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-body`,
|
||||
style: bodyStyle
|
||||
}, loading ? loadingBlock : children);
|
||||
const actionDom = actions && actions.length ? /*#__PURE__*/react.createElement("ul", {
|
||||
className: `${prefixCls}-actions`
|
||||
}, getAction(actions)) : null;
|
||||
const divProps = (0,omit/* default */.Z)(others, ['onTabChange']);
|
||||
const classString = classnames_default()(prefixCls, card === null || card === void 0 ? void 0 : card.className, {
|
||||
[`${prefixCls}-loading`]: loading,
|
||||
[`${prefixCls}-bordered`]: bordered,
|
||||
[`${prefixCls}-hoverable`]: hoverable,
|
||||
[`${prefixCls}-contain-grid`]: isContainGrid,
|
||||
[`${prefixCls}-contain-tabs`]: tabList && tabList.length,
|
||||
[`${prefixCls}-${mergedSize}`]: mergedSize,
|
||||
[`${prefixCls}-type-${type}`]: !!type,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName, hashId);
|
||||
const mergedStyle = Object.assign(Object.assign({}, card === null || card === void 0 ? void 0 : card.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
|
||||
ref: ref
|
||||
}, divProps, {
|
||||
className: classString,
|
||||
style: mergedStyle
|
||||
}), head, coverDom, body, actionDom));
|
||||
});
|
||||
/* harmony default export */ var card_Card = (Card);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/card/Meta.js
|
||||
var Meta_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 Meta = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
avatar,
|
||||
title,
|
||||
description
|
||||
} = props,
|
||||
others = Meta_rest(props, ["prefixCls", "className", "avatar", "title", "description"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('card', customizePrefixCls);
|
||||
const classString = classnames_default()(`${prefixCls}-meta`, className);
|
||||
const avatarDom = avatar ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-meta-avatar`
|
||||
}, avatar) : null;
|
||||
const titleDom = title ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-meta-title`
|
||||
}, title) : null;
|
||||
const descriptionDom = description ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-meta-description`
|
||||
}, description) : null;
|
||||
const MetaDetail = titleDom || descriptionDom ? /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-meta-detail`
|
||||
}, titleDom, descriptionDom) : null;
|
||||
return /*#__PURE__*/react.createElement("div", Object.assign({}, others, {
|
||||
className: classString
|
||||
}), avatarDom, MetaDetail);
|
||||
};
|
||||
/* harmony default export */ var card_Meta = (Meta);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/card/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
|
||||
const es_card_Card = card_Card;
|
||||
es_card_Card.Grid = card_Grid;
|
||||
es_card_Card.Meta = card_Meta;
|
||||
if (false) {}
|
||||
/* harmony default export */ var card = (es_card_Card);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,807 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29581,91708,29823,32482,27129,15105,33127,53898,53764,4751,84551],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64217:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
||||
|
||||
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
||||
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
||||
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
||||
|
||||
/* eslint-enable max-len */
|
||||
var ariaPrefix = 'aria-';
|
||||
var dataPrefix = 'data-';
|
||||
function match(key, prefix) {
|
||||
return key.indexOf(prefix) === 0;
|
||||
}
|
||||
/**
|
||||
* Picker props from exist props with filter
|
||||
* @param props Passed props
|
||||
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
||||
*/
|
||||
function pickAttrs(props) {
|
||||
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
var mergedConfig;
|
||||
if (ariaOnly === false) {
|
||||
mergedConfig = {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
};
|
||||
} else if (ariaOnly === true) {
|
||||
mergedConfig = {
|
||||
aria: true
|
||||
};
|
||||
} else {
|
||||
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
||||
}
|
||||
var attrs = {};
|
||||
Object.keys(props).forEach(function (key) {
|
||||
if (
|
||||
// Aria
|
||||
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
||||
// Data
|
||||
mergedConfig.data && match(key, dataPrefix) ||
|
||||
// Attr
|
||||
mergedConfig.attr && propList.includes(key)) {
|
||||
attrs[key] = props[key];
|
||||
}
|
||||
});
|
||||
return attrs;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,807 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29823,91708,32482,27129,15105,29581,33127,53898,53764,4751,84551],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64217:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
||||
|
||||
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
||||
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
||||
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
||||
|
||||
/* eslint-enable max-len */
|
||||
var ariaPrefix = 'aria-';
|
||||
var dataPrefix = 'data-';
|
||||
function match(key, prefix) {
|
||||
return key.indexOf(prefix) === 0;
|
||||
}
|
||||
/**
|
||||
* Picker props from exist props with filter
|
||||
* @param props Passed props
|
||||
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
||||
*/
|
||||
function pickAttrs(props) {
|
||||
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
var mergedConfig;
|
||||
if (ariaOnly === false) {
|
||||
mergedConfig = {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
};
|
||||
} else if (ariaOnly === true) {
|
||||
mergedConfig = {
|
||||
aria: true
|
||||
};
|
||||
} else {
|
||||
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
||||
}
|
||||
var attrs = {};
|
||||
Object.keys(props).forEach(function (key) {
|
||||
if (
|
||||
// Aria
|
||||
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
||||
// Data
|
||||
mergedConfig.data && match(key, dataPrefix) ||
|
||||
// Attr
|
||||
mergedConfig.attr && propList.includes(key)) {
|
||||
attrs[key] = props[key];
|
||||
}
|
||||
});
|
||||
return attrs;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -1,726 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[30715],{
|
||||
|
||||
/***/ 43387:
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ AntdIcon; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/colors/es/index.js + 1 modules
|
||||
var es = __webpack_require__(16397);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/Context.js
|
||||
|
||||
var IconContext = /*#__PURE__*/(0,react.createContext)({});
|
||||
/* harmony default export */ var Context = (IconContext);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(1413);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
||||
var esm_typeof = __webpack_require__(71002);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/warning.js
|
||||
/* eslint-disable no-console */
|
||||
var warned = {};
|
||||
var preWarningFns = [];
|
||||
|
||||
/**
|
||||
* Pre warning enable you to parse content before console.error.
|
||||
* Modify to null will prevent warning.
|
||||
*/
|
||||
var preMessage = function preMessage(fn) {
|
||||
preWarningFns.push(fn);
|
||||
};
|
||||
function warning(valid, message) {
|
||||
// Support uglify
|
||||
if (false) { var finalMessage; }
|
||||
}
|
||||
function note(valid, message) {
|
||||
// Support uglify
|
||||
if (false) { var finalMessage; }
|
||||
}
|
||||
function resetWarned() {
|
||||
warned = {};
|
||||
}
|
||||
function call(method, valid, message) {
|
||||
if (!valid && !warned[message]) {
|
||||
method(false, message);
|
||||
warned[message] = true;
|
||||
}
|
||||
}
|
||||
function warningOnce(valid, message) {
|
||||
call(warning, valid, message);
|
||||
}
|
||||
function noteOnce(valid, message) {
|
||||
call(note, valid, message);
|
||||
}
|
||||
warningOnce.preMessage = preMessage;
|
||||
warningOnce.resetWarned = resetWarned;
|
||||
warningOnce.noteOnce = noteOnce;
|
||||
/* harmony default export */ var es_warning = (warningOnce);
|
||||
/* eslint-enable */
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/canUseDom.js
|
||||
function canUseDom() {
|
||||
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/contains.js
|
||||
function contains(root, n) {
|
||||
if (!root) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Use native if support
|
||||
if (root.contains) {
|
||||
return root.contains(n);
|
||||
}
|
||||
|
||||
// `document.contains` not support with IE11
|
||||
var node = n;
|
||||
while (node) {
|
||||
if (node === root) {
|
||||
return true;
|
||||
}
|
||||
node = node.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/dynamicCSS.js
|
||||
|
||||
|
||||
var APPEND_ORDER = 'data-rc-order';
|
||||
var MARK_KEY = "rc-util-key";
|
||||
var containerCache = new Map();
|
||||
function getMark() {
|
||||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
||||
mark = _ref.mark;
|
||||
if (mark) {
|
||||
return mark.startsWith('data-') ? mark : "data-".concat(mark);
|
||||
}
|
||||
return MARK_KEY;
|
||||
}
|
||||
function getContainer(option) {
|
||||
if (option.attachTo) {
|
||||
return option.attachTo;
|
||||
}
|
||||
var head = document.querySelector('head');
|
||||
return head || document.body;
|
||||
}
|
||||
function getOrder(prepend) {
|
||||
if (prepend === 'queue') {
|
||||
return 'prependQueue';
|
||||
}
|
||||
return prepend ? 'prepend' : 'append';
|
||||
}
|
||||
|
||||
/**
|
||||
* Find style which inject by rc-util
|
||||
*/
|
||||
function findStyles(container) {
|
||||
return Array.from((containerCache.get(container) || container).children).filter(function (node) {
|
||||
return node.tagName === 'STYLE';
|
||||
});
|
||||
}
|
||||
function injectCSS(css) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
if (!canUseDom()) {
|
||||
return null;
|
||||
}
|
||||
var csp = option.csp,
|
||||
prepend = option.prepend;
|
||||
var styleNode = document.createElement('style');
|
||||
styleNode.setAttribute(APPEND_ORDER, getOrder(prepend));
|
||||
if (csp !== null && csp !== void 0 && csp.nonce) {
|
||||
styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;
|
||||
}
|
||||
styleNode.innerHTML = css;
|
||||
var container = getContainer(option);
|
||||
var firstChild = container.firstChild;
|
||||
if (prepend) {
|
||||
// If is queue `prepend`, it will prepend first style and then append rest style
|
||||
if (prepend === 'queue') {
|
||||
var existStyle = findStyles(container).filter(function (node) {
|
||||
return ['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER));
|
||||
});
|
||||
if (existStyle.length) {
|
||||
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
||||
return styleNode;
|
||||
}
|
||||
}
|
||||
|
||||
// Use `insertBefore` as `prepend`
|
||||
container.insertBefore(styleNode, firstChild);
|
||||
} else {
|
||||
container.appendChild(styleNode);
|
||||
}
|
||||
return styleNode;
|
||||
}
|
||||
function findExistNode(key) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var container = getContainer(option);
|
||||
return findStyles(container).find(function (node) {
|
||||
return node.getAttribute(getMark(option)) === key;
|
||||
});
|
||||
}
|
||||
function removeCSS(key) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var existNode = findExistNode(key, option);
|
||||
if (existNode) {
|
||||
var container = getContainer(option);
|
||||
container.removeChild(existNode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* qiankun will inject `appendChild` to insert into other
|
||||
*/
|
||||
function syncRealContainer(container, option) {
|
||||
var cachedRealContainer = containerCache.get(container);
|
||||
|
||||
// Find real container when not cached or cached container removed
|
||||
if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
|
||||
var placeholderStyle = injectCSS('', option);
|
||||
var parentNode = placeholderStyle.parentNode;
|
||||
containerCache.set(container, parentNode);
|
||||
container.removeChild(placeholderStyle);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* manually clear container cache to avoid global cache in unit testes
|
||||
*/
|
||||
function clearContainerCache() {
|
||||
containerCache.clear();
|
||||
}
|
||||
function updateCSS(css, key) {
|
||||
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
var container = getContainer(option);
|
||||
|
||||
// Sync real parent
|
||||
syncRealContainer(container, option);
|
||||
var existNode = findExistNode(key, option);
|
||||
if (existNode) {
|
||||
var _option$csp, _option$csp2;
|
||||
if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {
|
||||
var _option$csp3;
|
||||
existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;
|
||||
}
|
||||
if (existNode.innerHTML !== css) {
|
||||
existNode.innerHTML = css;
|
||||
}
|
||||
return existNode;
|
||||
}
|
||||
var newNode = injectCSS(css, option);
|
||||
newNode.setAttribute(getMark(option), key);
|
||||
return newNode;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/shadow.js
|
||||
function getRoot(ele) {
|
||||
var _ele$getRootNode;
|
||||
return ele === null || ele === void 0 ? void 0 : (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if is in shadowRoot
|
||||
*/
|
||||
function inShadow(ele) {
|
||||
return getRoot(ele) !== (ele === null || ele === void 0 ? void 0 : ele.ownerDocument);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return shadowRoot if possible
|
||||
*/
|
||||
function getShadowRoot(ele) {
|
||||
return inShadow(ele) ? getRoot(ele) : null;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/utils.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function utils_warning(valid, message) {
|
||||
es_warning(valid, "[@ant-design/icons] ".concat(message));
|
||||
}
|
||||
function isIconDefinition(target) {
|
||||
return (0,esm_typeof/* default */.Z)(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && ((0,esm_typeof/* default */.Z)(target.icon) === 'object' || typeof target.icon === 'function');
|
||||
}
|
||||
function normalizeAttrs() {
|
||||
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
return Object.keys(attrs).reduce(function (acc, key) {
|
||||
var val = attrs[key];
|
||||
switch (key) {
|
||||
case 'class':
|
||||
acc.className = val;
|
||||
delete acc.class;
|
||||
break;
|
||||
default:
|
||||
acc[key] = val;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
function generate(node, key, rootProps) {
|
||||
if (!rootProps) {
|
||||
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)({
|
||||
key: key
|
||||
}, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
|
||||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||||
}));
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
||||
key: key
|
||||
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
|
||||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||||
}));
|
||||
}
|
||||
function getSecondaryColor(primaryColor) {
|
||||
// choose the second color
|
||||
return (0,es.generate)(primaryColor)[0];
|
||||
}
|
||||
function normalizeTwoToneColors(twoToneColor) {
|
||||
if (!twoToneColor) {
|
||||
return [];
|
||||
}
|
||||
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
||||
}
|
||||
|
||||
// These props make sure that the SVG behaviours like general text.
|
||||
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
||||
var svgBaseProps = {
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
fill: 'currentColor',
|
||||
'aria-hidden': 'true',
|
||||
focusable: 'false'
|
||||
};
|
||||
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
||||
var useInsertStyles = function useInsertStyles(eleRef) {
|
||||
var _useContext = (0,react.useContext)(Context),
|
||||
csp = _useContext.csp,
|
||||
prefixCls = _useContext.prefixCls;
|
||||
var mergedStyleStr = iconStyles;
|
||||
if (prefixCls) {
|
||||
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
|
||||
}
|
||||
(0,react.useEffect)(function () {
|
||||
var ele = eleRef.current;
|
||||
var shadowRoot = getShadowRoot(ele);
|
||||
updateCSS(mergedStyleStr, '@ant-design-icons', {
|
||||
prepend: true,
|
||||
csp: csp,
|
||||
attachTo: shadowRoot
|
||||
});
|
||||
}, []);
|
||||
};
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/IconBase.js
|
||||
|
||||
|
||||
var _excluded = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
||||
|
||||
|
||||
var twoToneColorPalette = {
|
||||
primaryColor: '#333',
|
||||
secondaryColor: '#E6E6E6',
|
||||
calculated: false
|
||||
};
|
||||
function setTwoToneColors(_ref) {
|
||||
var primaryColor = _ref.primaryColor,
|
||||
secondaryColor = _ref.secondaryColor;
|
||||
twoToneColorPalette.primaryColor = primaryColor;
|
||||
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
||||
twoToneColorPalette.calculated = !!secondaryColor;
|
||||
}
|
||||
function getTwoToneColors() {
|
||||
return (0,objectSpread2/* default */.Z)({}, twoToneColorPalette);
|
||||
}
|
||||
var IconBase = function IconBase(props) {
|
||||
var icon = props.icon,
|
||||
className = props.className,
|
||||
onClick = props.onClick,
|
||||
style = props.style,
|
||||
primaryColor = props.primaryColor,
|
||||
secondaryColor = props.secondaryColor,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var svgRef = react.useRef();
|
||||
var colors = twoToneColorPalette;
|
||||
if (primaryColor) {
|
||||
colors = {
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
||||
};
|
||||
}
|
||||
useInsertStyles(svgRef);
|
||||
utils_warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
||||
if (!isIconDefinition(icon)) {
|
||||
return null;
|
||||
}
|
||||
var target = icon;
|
||||
if (target && typeof target.icon === 'function') {
|
||||
target = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, target), {}, {
|
||||
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
||||
});
|
||||
}
|
||||
return generate(target.icon, "svg-".concat(target.name), (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
||||
className: className,
|
||||
onClick: onClick,
|
||||
style: style,
|
||||
'data-icon': target.name,
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
fill: 'currentColor',
|
||||
'aria-hidden': 'true'
|
||||
}, restProps), {}, {
|
||||
ref: svgRef
|
||||
}));
|
||||
};
|
||||
IconBase.displayName = 'IconReact';
|
||||
IconBase.getTwoToneColors = getTwoToneColors;
|
||||
IconBase.setTwoToneColors = setTwoToneColors;
|
||||
/* harmony default export */ var components_IconBase = (IconBase);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js
|
||||
|
||||
|
||||
|
||||
function setTwoToneColor(twoToneColor) {
|
||||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||||
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
|
||||
primaryColor = _normalizeTwoToneColo2[0],
|
||||
secondaryColor = _normalizeTwoToneColo2[1];
|
||||
return components_IconBase.setTwoToneColors({
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor
|
||||
});
|
||||
}
|
||||
function getTwoToneColor() {
|
||||
var colors = components_IconBase.getTwoToneColors();
|
||||
if (!colors.calculated) {
|
||||
return colors.primaryColor;
|
||||
}
|
||||
return [colors.primaryColor, colors.secondaryColor];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js
|
||||
|
||||
|
||||
|
||||
|
||||
var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Initial setting
|
||||
// should move it to antd main repo?
|
||||
setTwoToneColor(es.blue.primary);
|
||||
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
|
||||
|
||||
var Icon = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
||||
var _classNames;
|
||||
var className = props.className,
|
||||
icon = props.icon,
|
||||
spin = props.spin,
|
||||
rotate = props.rotate,
|
||||
tabIndex = props.tabIndex,
|
||||
onClick = props.onClick,
|
||||
twoToneColor = props.twoToneColor,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, AntdIcon_excluded);
|
||||
var _React$useContext = react.useContext(Context),
|
||||
_React$useContext$pre = _React$useContext.prefixCls,
|
||||
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
||||
rootClassName = _React$useContext.rootClassName;
|
||||
var classString = classnames_default()(rootClassName, prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
|
||||
var iconTabIndex = tabIndex;
|
||||
if (iconTabIndex === undefined && onClick) {
|
||||
iconTabIndex = -1;
|
||||
}
|
||||
var svgStyle = rotate ? {
|
||||
msTransform: "rotate(".concat(rotate, "deg)"),
|
||||
transform: "rotate(".concat(rotate, "deg)")
|
||||
} : undefined;
|
||||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||||
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
|
||||
primaryColor = _normalizeTwoToneColo2[0],
|
||||
secondaryColor = _normalizeTwoToneColo2[1];
|
||||
return /*#__PURE__*/react.createElement("span", (0,esm_extends/* default */.Z)({
|
||||
role: "img",
|
||||
"aria-label": icon.name
|
||||
}, restProps, {
|
||||
ref: ref,
|
||||
tabIndex: iconTabIndex,
|
||||
onClick: onClick,
|
||||
className: classString
|
||||
}), /*#__PURE__*/react.createElement(components_IconBase, {
|
||||
icon: icon,
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor,
|
||||
style: svgStyle
|
||||
}));
|
||||
});
|
||||
Icon.displayName = 'AntdIcon';
|
||||
Icon.getTwoToneColor = getTwoToneColor;
|
||||
Icon.setTwoToneColor = setTwoToneColor;
|
||||
/* harmony default export */ var AntdIcon = (Icon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 96074:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
|
||||
|
||||
|
||||
// ============================== Shared ==============================
|
||||
const genSharedDividerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
sizePaddingEdgeHorizontal,
|
||||
colorSplit,
|
||||
lineWidth
|
||||
} = 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',
|
||||
margin: `0 ${token.dividerVerticalGutterMargin}px`,
|
||||
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: '5%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '95%'
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-right`]: {
|
||||
'&::before': {
|
||||
width: '95%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '5%'
|
||||
}
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
display: 'inline-block',
|
||||
padding: '0 1em'
|
||||
},
|
||||
'&-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, {
|
||||
dividerVerticalGutterMargin: token.marginXS,
|
||||
dividerHorizontalWithTextGutterMargin: token.margin,
|
||||
dividerHorizontalGutterMargin: token.marginLG
|
||||
});
|
||||
return [genSharedDividerStyle(dividerToken)];
|
||||
}, {
|
||||
sizePaddingEdgeHorizontal: 0
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/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.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_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.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.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.createElement("span", {
|
||||
className: `${prefixCls}-inner-text`,
|
||||
style: innerStyle
|
||||
}, children)));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var divider = (Divider);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,649 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[32053],{
|
||||
|
||||
/***/ 77171:
|
||||
/*!**********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js + 1 modules ***!
|
||||
\**********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_ArrowDownOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ArrowDownOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ArrowDownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z" } }] }, "name": "arrow-down", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ArrowDownOutlined = (ArrowDownOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ArrowDownOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ArrowDownOutlined_ArrowDownOutlined = function ArrowDownOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ArrowDownOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ArrowDownOutlined = (/*#__PURE__*/react.forwardRef(ArrowDownOutlined_ArrowDownOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 80882:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DownOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/react.forwardRef(DownOutlined_DownOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 89705:
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules ***!
|
||||
\*********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_EllipsisOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EllipsisOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "ellipsis", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EllipsisOutlined = (EllipsisOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EllipsisOutlined_EllipsisOutlined = function EllipsisOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EllipsisOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EllipsisOutlined = (/*#__PURE__*/react.forwardRef(EllipsisOutlined_EllipsisOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11475:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9641:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/ForkOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_ForkOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ForkOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ForkOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm336 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm192-552a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "fork", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ForkOutlined = (ForkOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ForkOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ForkOutlined_ForkOutlined = function ForkOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ForkOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ForkOutlined = (/*#__PURE__*/react.forwardRef(ForkOutlined_ForkOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 24969:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusOutlined = (/*#__PURE__*/react.forwardRef(PlusOutlined_PlusOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 96074:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
|
||||
|
||||
|
||||
// ============================== Shared ==============================
|
||||
const genSharedDividerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
sizePaddingEdgeHorizontal,
|
||||
colorSplit,
|
||||
lineWidth
|
||||
} = 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',
|
||||
margin: `0 ${token.dividerVerticalGutterMargin}px`,
|
||||
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: '5%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '95%'
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-right`]: {
|
||||
'&::before': {
|
||||
width: '95%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '5%'
|
||||
}
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
display: 'inline-block',
|
||||
padding: '0 1em'
|
||||
},
|
||||
'&-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, {
|
||||
dividerVerticalGutterMargin: token.marginXS,
|
||||
dividerHorizontalWithTextGutterMargin: token.margin,
|
||||
dividerHorizontalGutterMargin: token.marginLG
|
||||
});
|
||||
return [genSharedDividerStyle(dividerToken)];
|
||||
}, {
|
||||
sizePaddingEdgeHorizontal: 0
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/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.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_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.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.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.createElement("span", {
|
||||
className: `${prefixCls}-inner-text`,
|
||||
style: innerStyle
|
||||
}, children)));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var divider = (Divider);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97183:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/antd/es/layout/index.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84321);
|
||||
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 19249);
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
||||
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
||||
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
||||
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
||||
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 74300:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/react-copy-to-clipboard/lib/Component.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({
|
||||
value: true
|
||||
}));
|
||||
exports.CopyToClipboard = void 0;
|
||||
|
||||
var _react = _interopRequireDefault(__webpack_require__(/*! react */ 67294));
|
||||
|
||||
var _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ 20640));
|
||||
|
||||
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
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 74855:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/react-copy-to-clipboard/lib/index.js ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
|
||||
|
||||
var _require = __webpack_require__(/*! ./Component */ 74300),
|
||||
CopyToClipboard = _require.CopyToClipboard;
|
||||
|
||||
CopyToClipboard.CopyToClipboard = CopyToClipboard;
|
||||
module.exports = CopyToClipboard;
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,807 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[32482,91708,29823,27129,15105,29581,33127,53898,53764,4751,84551],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64217:
|
||||
/*!**********************************************!*\
|
||||
!*** ./node_modules/rc-util/es/pickAttrs.js ***!
|
||||
\**********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ pickAttrs; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ 1413);
|
||||
|
||||
var attributes = "accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap";
|
||||
var eventsName = "onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError";
|
||||
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);
|
||||
|
||||
/* eslint-enable max-len */
|
||||
var ariaPrefix = 'aria-';
|
||||
var dataPrefix = 'data-';
|
||||
function match(key, prefix) {
|
||||
return key.indexOf(prefix) === 0;
|
||||
}
|
||||
/**
|
||||
* Picker props from exist props with filter
|
||||
* @param props Passed props
|
||||
* @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
|
||||
*/
|
||||
function pickAttrs(props) {
|
||||
var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
||||
var mergedConfig;
|
||||
if (ariaOnly === false) {
|
||||
mergedConfig = {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
};
|
||||
} else if (ariaOnly === true) {
|
||||
mergedConfig = {
|
||||
aria: true
|
||||
};
|
||||
} else {
|
||||
mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
|
||||
}
|
||||
var attrs = {};
|
||||
Object.keys(props).forEach(function (key) {
|
||||
if (
|
||||
// Aria
|
||||
mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
|
||||
// Data
|
||||
mergedConfig.data && match(key, dataPrefix) ||
|
||||
// Attr
|
||||
mergedConfig.attr && propList.includes(key)) {
|
||||
attrs[key] = props[key];
|
||||
}
|
||||
});
|
||||
return attrs;
|
||||
}
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,748 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[33127],{
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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
@ -1,766 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34646,33127],{
|
||||
|
||||
/***/ 57838:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/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/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(64582);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = 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.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_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.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.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/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/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,749 +0,0 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35170],{
|
||||
|
||||
/***/ 80882:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_DownOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DownOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/react.forwardRef(DownOutlined_DownOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48783:
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/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 */ 74902);
|
||||
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 96523);
|
||||
|
||||
|
||||
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"].cancel */ .Z.cancel(requestId);
|
||||
requestId = null;
|
||||
};
|
||||
return throttled;
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (throttleByAnimationFrame);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 30291:
|
||||
/*!*********************************************************!*\
|
||||
!*** ./node_modules/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/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__(15671);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__(43144);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
|
||||
var inherits = __webpack_require__(60136);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 1 modules
|
||||
var createSuper = __webpack_require__(51630);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-resize-observer/es/index.js + 4 modules
|
||||
var es = __webpack_require__(48555);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/throttleByAnimationFrame.js
|
||||
var throttleByAnimationFrame = __webpack_require__(48783);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/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/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/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.createRef)();
|
||||
_this.fixedNodeRef = /*#__PURE__*/(0,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_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.createElement(es/* default */.Z, {
|
||||
onResize: this.updatePosition
|
||||
}, /*#__PURE__*/react.createElement("div", Object.assign({}, props, {
|
||||
ref: this.placeholderNodeRef
|
||||
}), affixStyle && /*#__PURE__*/react.createElement("div", {
|
||||
style: placeholderStyle,
|
||||
"aria-hidden": "true"
|
||||
}), /*#__PURE__*/react.createElement("div", {
|
||||
className: className,
|
||||
ref: this.fixedNodeRef,
|
||||
style: affixStyle
|
||||
}, /*#__PURE__*/react.createElement(es/* default */.Z, {
|
||||
onResize: this.updatePosition
|
||||
}, children))));
|
||||
}
|
||||
}]);
|
||||
return InternalAffix;
|
||||
}(react.Component);
|
||||
InternalAffix.contextType = context/* ConfigContext */.E_;
|
||||
const Affix = /*#__PURE__*/(0,react.forwardRef)((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
rootClassName
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = (0,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_default()(rootClassName, hashId)
|
||||
});
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(InternalAffix, Object.assign({}, AffixProps, {
|
||||
ref: ref
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var affix = (Affix);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57761:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/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 */ 67294);
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = __webpack_require__(/*! prop-types */ 45697);
|
||||
|
||||
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'];
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 246:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/react-infinite-scroller/index.js ***!
|
||||
\*******************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(/*! ./dist/InfiniteScroll */ 57761)
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,826 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[36120],{
|
||||
|
||||
/***/ 43387:
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ AntdIcon; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/colors/es/index.js + 1 modules
|
||||
var es = __webpack_require__(16397);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/Context.js
|
||||
|
||||
var IconContext = /*#__PURE__*/(0,react.createContext)({});
|
||||
/* harmony default export */ var Context = (IconContext);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(1413);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
||||
var esm_typeof = __webpack_require__(71002);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/warning.js
|
||||
/* eslint-disable no-console */
|
||||
var warned = {};
|
||||
var preWarningFns = [];
|
||||
|
||||
/**
|
||||
* Pre warning enable you to parse content before console.error.
|
||||
* Modify to null will prevent warning.
|
||||
*/
|
||||
var preMessage = function preMessage(fn) {
|
||||
preWarningFns.push(fn);
|
||||
};
|
||||
function warning(valid, message) {
|
||||
// Support uglify
|
||||
if (false) { var finalMessage; }
|
||||
}
|
||||
function note(valid, message) {
|
||||
// Support uglify
|
||||
if (false) { var finalMessage; }
|
||||
}
|
||||
function resetWarned() {
|
||||
warned = {};
|
||||
}
|
||||
function call(method, valid, message) {
|
||||
if (!valid && !warned[message]) {
|
||||
method(false, message);
|
||||
warned[message] = true;
|
||||
}
|
||||
}
|
||||
function warningOnce(valid, message) {
|
||||
call(warning, valid, message);
|
||||
}
|
||||
function noteOnce(valid, message) {
|
||||
call(note, valid, message);
|
||||
}
|
||||
warningOnce.preMessage = preMessage;
|
||||
warningOnce.resetWarned = resetWarned;
|
||||
warningOnce.noteOnce = noteOnce;
|
||||
/* harmony default export */ var es_warning = (warningOnce);
|
||||
/* eslint-enable */
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/canUseDom.js
|
||||
function canUseDom() {
|
||||
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/contains.js
|
||||
function contains(root, n) {
|
||||
if (!root) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Use native if support
|
||||
if (root.contains) {
|
||||
return root.contains(n);
|
||||
}
|
||||
|
||||
// `document.contains` not support with IE11
|
||||
var node = n;
|
||||
while (node) {
|
||||
if (node === root) {
|
||||
return true;
|
||||
}
|
||||
node = node.parentNode;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/dynamicCSS.js
|
||||
|
||||
|
||||
var APPEND_ORDER = 'data-rc-order';
|
||||
var MARK_KEY = "rc-util-key";
|
||||
var containerCache = new Map();
|
||||
function getMark() {
|
||||
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
||||
mark = _ref.mark;
|
||||
if (mark) {
|
||||
return mark.startsWith('data-') ? mark : "data-".concat(mark);
|
||||
}
|
||||
return MARK_KEY;
|
||||
}
|
||||
function getContainer(option) {
|
||||
if (option.attachTo) {
|
||||
return option.attachTo;
|
||||
}
|
||||
var head = document.querySelector('head');
|
||||
return head || document.body;
|
||||
}
|
||||
function getOrder(prepend) {
|
||||
if (prepend === 'queue') {
|
||||
return 'prependQueue';
|
||||
}
|
||||
return prepend ? 'prepend' : 'append';
|
||||
}
|
||||
|
||||
/**
|
||||
* Find style which inject by rc-util
|
||||
*/
|
||||
function findStyles(container) {
|
||||
return Array.from((containerCache.get(container) || container).children).filter(function (node) {
|
||||
return node.tagName === 'STYLE';
|
||||
});
|
||||
}
|
||||
function injectCSS(css) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
if (!canUseDom()) {
|
||||
return null;
|
||||
}
|
||||
var csp = option.csp,
|
||||
prepend = option.prepend;
|
||||
var styleNode = document.createElement('style');
|
||||
styleNode.setAttribute(APPEND_ORDER, getOrder(prepend));
|
||||
if (csp !== null && csp !== void 0 && csp.nonce) {
|
||||
styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;
|
||||
}
|
||||
styleNode.innerHTML = css;
|
||||
var container = getContainer(option);
|
||||
var firstChild = container.firstChild;
|
||||
if (prepend) {
|
||||
// If is queue `prepend`, it will prepend first style and then append rest style
|
||||
if (prepend === 'queue') {
|
||||
var existStyle = findStyles(container).filter(function (node) {
|
||||
return ['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER));
|
||||
});
|
||||
if (existStyle.length) {
|
||||
container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
|
||||
return styleNode;
|
||||
}
|
||||
}
|
||||
|
||||
// Use `insertBefore` as `prepend`
|
||||
container.insertBefore(styleNode, firstChild);
|
||||
} else {
|
||||
container.appendChild(styleNode);
|
||||
}
|
||||
return styleNode;
|
||||
}
|
||||
function findExistNode(key) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var container = getContainer(option);
|
||||
return findStyles(container).find(function (node) {
|
||||
return node.getAttribute(getMark(option)) === key;
|
||||
});
|
||||
}
|
||||
function removeCSS(key) {
|
||||
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
var existNode = findExistNode(key, option);
|
||||
if (existNode) {
|
||||
var container = getContainer(option);
|
||||
container.removeChild(existNode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* qiankun will inject `appendChild` to insert into other
|
||||
*/
|
||||
function syncRealContainer(container, option) {
|
||||
var cachedRealContainer = containerCache.get(container);
|
||||
|
||||
// Find real container when not cached or cached container removed
|
||||
if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
|
||||
var placeholderStyle = injectCSS('', option);
|
||||
var parentNode = placeholderStyle.parentNode;
|
||||
containerCache.set(container, parentNode);
|
||||
container.removeChild(placeholderStyle);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* manually clear container cache to avoid global cache in unit testes
|
||||
*/
|
||||
function clearContainerCache() {
|
||||
containerCache.clear();
|
||||
}
|
||||
function updateCSS(css, key) {
|
||||
var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
||||
var container = getContainer(option);
|
||||
|
||||
// Sync real parent
|
||||
syncRealContainer(container, option);
|
||||
var existNode = findExistNode(key, option);
|
||||
if (existNode) {
|
||||
var _option$csp, _option$csp2;
|
||||
if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {
|
||||
var _option$csp3;
|
||||
existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;
|
||||
}
|
||||
if (existNode.innerHTML !== css) {
|
||||
existNode.innerHTML = css;
|
||||
}
|
||||
return existNode;
|
||||
}
|
||||
var newNode = injectCSS(css, option);
|
||||
newNode.setAttribute(getMark(option), key);
|
||||
return newNode;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/node_modules/rc-util/es/Dom/shadow.js
|
||||
function getRoot(ele) {
|
||||
var _ele$getRootNode;
|
||||
return ele === null || ele === void 0 ? void 0 : (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if is in shadowRoot
|
||||
*/
|
||||
function inShadow(ele) {
|
||||
return getRoot(ele) !== (ele === null || ele === void 0 ? void 0 : ele.ownerDocument);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return shadowRoot if possible
|
||||
*/
|
||||
function getShadowRoot(ele) {
|
||||
return inShadow(ele) ? getRoot(ele) : null;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/utils.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function utils_warning(valid, message) {
|
||||
es_warning(valid, "[@ant-design/icons] ".concat(message));
|
||||
}
|
||||
function isIconDefinition(target) {
|
||||
return (0,esm_typeof/* default */.Z)(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && ((0,esm_typeof/* default */.Z)(target.icon) === 'object' || typeof target.icon === 'function');
|
||||
}
|
||||
function normalizeAttrs() {
|
||||
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
return Object.keys(attrs).reduce(function (acc, key) {
|
||||
var val = attrs[key];
|
||||
switch (key) {
|
||||
case 'class':
|
||||
acc.className = val;
|
||||
delete acc.class;
|
||||
break;
|
||||
default:
|
||||
acc[key] = val;
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
function generate(node, key, rootProps) {
|
||||
if (!rootProps) {
|
||||
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)({
|
||||
key: key
|
||||
}, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
|
||||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||||
}));
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(node.tag, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
||||
key: key
|
||||
}, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
|
||||
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
||||
}));
|
||||
}
|
||||
function getSecondaryColor(primaryColor) {
|
||||
// choose the second color
|
||||
return (0,es.generate)(primaryColor)[0];
|
||||
}
|
||||
function normalizeTwoToneColors(twoToneColor) {
|
||||
if (!twoToneColor) {
|
||||
return [];
|
||||
}
|
||||
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
||||
}
|
||||
|
||||
// These props make sure that the SVG behaviours like general text.
|
||||
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
||||
var svgBaseProps = {
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
fill: 'currentColor',
|
||||
'aria-hidden': 'true',
|
||||
focusable: 'false'
|
||||
};
|
||||
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
||||
var useInsertStyles = function useInsertStyles(eleRef) {
|
||||
var _useContext = (0,react.useContext)(Context),
|
||||
csp = _useContext.csp,
|
||||
prefixCls = _useContext.prefixCls;
|
||||
var mergedStyleStr = iconStyles;
|
||||
if (prefixCls) {
|
||||
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);
|
||||
}
|
||||
(0,react.useEffect)(function () {
|
||||
var ele = eleRef.current;
|
||||
var shadowRoot = getShadowRoot(ele);
|
||||
updateCSS(mergedStyleStr, '@ant-design-icons', {
|
||||
prepend: true,
|
||||
csp: csp,
|
||||
attachTo: shadowRoot
|
||||
});
|
||||
}, []);
|
||||
};
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/IconBase.js
|
||||
|
||||
|
||||
var _excluded = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
||||
|
||||
|
||||
var twoToneColorPalette = {
|
||||
primaryColor: '#333',
|
||||
secondaryColor: '#E6E6E6',
|
||||
calculated: false
|
||||
};
|
||||
function setTwoToneColors(_ref) {
|
||||
var primaryColor = _ref.primaryColor,
|
||||
secondaryColor = _ref.secondaryColor;
|
||||
twoToneColorPalette.primaryColor = primaryColor;
|
||||
twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
||||
twoToneColorPalette.calculated = !!secondaryColor;
|
||||
}
|
||||
function getTwoToneColors() {
|
||||
return (0,objectSpread2/* default */.Z)({}, twoToneColorPalette);
|
||||
}
|
||||
var IconBase = function IconBase(props) {
|
||||
var icon = props.icon,
|
||||
className = props.className,
|
||||
onClick = props.onClick,
|
||||
style = props.style,
|
||||
primaryColor = props.primaryColor,
|
||||
secondaryColor = props.secondaryColor,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var svgRef = react.useRef();
|
||||
var colors = twoToneColorPalette;
|
||||
if (primaryColor) {
|
||||
colors = {
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
||||
};
|
||||
}
|
||||
useInsertStyles(svgRef);
|
||||
utils_warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
||||
if (!isIconDefinition(icon)) {
|
||||
return null;
|
||||
}
|
||||
var target = icon;
|
||||
if (target && typeof target.icon === 'function') {
|
||||
target = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, target), {}, {
|
||||
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
||||
});
|
||||
}
|
||||
return generate(target.icon, "svg-".concat(target.name), (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
|
||||
className: className,
|
||||
onClick: onClick,
|
||||
style: style,
|
||||
'data-icon': target.name,
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
fill: 'currentColor',
|
||||
'aria-hidden': 'true'
|
||||
}, restProps), {}, {
|
||||
ref: svgRef
|
||||
}));
|
||||
};
|
||||
IconBase.displayName = 'IconReact';
|
||||
IconBase.getTwoToneColors = getTwoToneColors;
|
||||
IconBase.setTwoToneColors = setTwoToneColors;
|
||||
/* harmony default export */ var components_IconBase = (IconBase);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js
|
||||
|
||||
|
||||
|
||||
function setTwoToneColor(twoToneColor) {
|
||||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||||
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
|
||||
primaryColor = _normalizeTwoToneColo2[0],
|
||||
secondaryColor = _normalizeTwoToneColo2[1];
|
||||
return components_IconBase.setTwoToneColors({
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor
|
||||
});
|
||||
}
|
||||
function getTwoToneColor() {
|
||||
var colors = components_IconBase.getTwoToneColors();
|
||||
if (!colors.calculated) {
|
||||
return colors.primaryColor;
|
||||
}
|
||||
return [colors.primaryColor, colors.secondaryColor];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js
|
||||
|
||||
|
||||
|
||||
|
||||
var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Initial setting
|
||||
// should move it to antd main repo?
|
||||
setTwoToneColor(es.blue.primary);
|
||||
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
|
||||
|
||||
var Icon = /*#__PURE__*/react.forwardRef(function (props, ref) {
|
||||
var _classNames;
|
||||
var className = props.className,
|
||||
icon = props.icon,
|
||||
spin = props.spin,
|
||||
rotate = props.rotate,
|
||||
tabIndex = props.tabIndex,
|
||||
onClick = props.onClick,
|
||||
twoToneColor = props.twoToneColor,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, AntdIcon_excluded);
|
||||
var _React$useContext = react.useContext(Context),
|
||||
_React$useContext$pre = _React$useContext.prefixCls,
|
||||
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
||||
rootClassName = _React$useContext.rootClassName;
|
||||
var classString = classnames_default()(rootClassName, prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
|
||||
var iconTabIndex = tabIndex;
|
||||
if (iconTabIndex === undefined && onClick) {
|
||||
iconTabIndex = -1;
|
||||
}
|
||||
var svgStyle = rotate ? {
|
||||
msTransform: "rotate(".concat(rotate, "deg)"),
|
||||
transform: "rotate(".concat(rotate, "deg)")
|
||||
} : undefined;
|
||||
var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
|
||||
_normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
|
||||
primaryColor = _normalizeTwoToneColo2[0],
|
||||
secondaryColor = _normalizeTwoToneColo2[1];
|
||||
return /*#__PURE__*/react.createElement("span", (0,esm_extends/* default */.Z)({
|
||||
role: "img",
|
||||
"aria-label": icon.name
|
||||
}, restProps, {
|
||||
ref: ref,
|
||||
tabIndex: iconTabIndex,
|
||||
onClick: onClick,
|
||||
className: classString
|
||||
}), /*#__PURE__*/react.createElement(components_IconBase, {
|
||||
icon: icon,
|
||||
primaryColor: primaryColor,
|
||||
secondaryColor: secondaryColor,
|
||||
style: svgStyle
|
||||
}));
|
||||
});
|
||||
Icon.displayName = 'AntdIcon';
|
||||
Icon.getTwoToneColor = getTwoToneColor;
|
||||
Icon.setTwoToneColor = setTwoToneColor;
|
||||
/* harmony default export */ var AntdIcon = (Icon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 24969:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusOutlined = (/*#__PURE__*/react.forwardRef(PlusOutlined_PlusOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 32337:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./src/pages/Engineering/components/Evaluate/index.ts + 4 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"p": function() { return /* reexport */ Evaluate_PanelTitle; },
|
||||
"v": function() { return /* reexport */ Evaluate_SelectWrap; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/PanelTitle/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var PanelTitlemodules = ({"panelTitleContainer":"panelTitleContainer___Ypuh_"});
|
||||
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(85893);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/PanelTitle/index.tsx
|
||||
/*
|
||||
* @Author: dengcheng
|
||||
* @Date: 2022-03-29 21:51:10
|
||||
* @Last Modified by: dengcheng
|
||||
* @Last Modified time: 2022-03-30 15:20:33
|
||||
* @description:面板标题
|
||||
*/
|
||||
|
||||
|
||||
|
||||
var PanelTitle = function PanelTitle(_ref) {
|
||||
var title = _ref.title,
|
||||
_ref$style = _ref.style,
|
||||
style = _ref$style === void 0 ? {} : _ref$style;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: PanelTitlemodules.panelTitleContainer,
|
||||
style: style,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: title
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Evaluate_PanelTitle = (PanelTitle);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/SelectWrap/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var SelectWrapmodules = ({"selectWrapContainer":"selectWrapContainer___qocIH"});
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/SelectWrap/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
var SelectWrap = function SelectWrap(_ref) {
|
||||
var title = _ref.title,
|
||||
children = _ref.children;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: SelectWrapmodules.selectWrapContainer,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: title
|
||||
}), children]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Evaluate_SelectWrap = (SelectWrap);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/Evaluate/index.ts
|
||||
// 面板标题
|
||||
|
||||
// 选择包装器
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 21339:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./src/pages/Engineering/components/UploadExcel/index.tsx + 1 modules ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ components_UploadExcel; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(27424);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(2453);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/modal/index.js + 39 modules
|
||||
var modal = __webpack_require__(72423);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tabs/index.js + 30 modules
|
||||
var tabs = __webpack_require__(74685);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/upload/index.js + 28 modules
|
||||
var upload = __webpack_require__(92421);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/PlusOutlined.js + 1 modules
|
||||
var PlusOutlined = __webpack_require__(24969);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(29427);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 8 modules
|
||||
var _umi_production_exports = __webpack_require__(89214);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/UploadExcel/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var UploadExcelmodules = ({"flex_box_center":"flex_box_center___XrwzL","flex_space_between":"flex_space_between___iFg5r","flex_box_vertical_center":"flex_box_vertical_center___cwLRs","flex_box_center_end":"flex_box_center_end___CtCUL","flex_box_column":"flex_box_column___LM8yv","customModal":"customModal___YbYj5","content":"content___1WuDQ","tabWarp":"tabWarp___FHw0u"});
|
||||
// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(85893);
|
||||
;// CONCATENATED MODULE: ./src/pages/Engineering/components/UploadExcel/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var UploadExcel = function UploadExcel(_ref) {
|
||||
var visible = _ref.visible,
|
||||
onOk = _ref.onOk,
|
||||
onCancel = _ref.onCancel,
|
||||
templateFileName = _ref.templateFileName,
|
||||
templateFileUrl = _ref.templateFileUrl,
|
||||
otherTemplateText = _ref.otherTemplateText,
|
||||
formNode = _ref.formNode,
|
||||
title = _ref.title;
|
||||
var _useState = (0,react.useState)([]),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
fileList = _useState2[0],
|
||||
setFileList = _useState2[1];
|
||||
var _useState3 = (0,react.useState)(false),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
loading = _useState4[0],
|
||||
setLoading = _useState4[1];
|
||||
var _useState5 = (0,react.useState)('1'),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
activeKey = _useState6[0],
|
||||
setActiveKey = _useState6[1];
|
||||
// const fileList = useRef<any>([])
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
(0,react.useEffect)(function () {
|
||||
if (!visible) {
|
||||
setFileList([]);
|
||||
setLoading(false);
|
||||
setActiveKey('1');
|
||||
}
|
||||
}, [visible]);
|
||||
var handleOk = function handleOk() {
|
||||
setLoading(true);
|
||||
onOk(fileList, function () {
|
||||
setLoading(false);
|
||||
});
|
||||
};
|
||||
var handleCancel = function handleCancel() {
|
||||
onCancel();
|
||||
};
|
||||
var down = function down() {
|
||||
var url = templateFileUrl;
|
||||
(0,util/* downLoadLink */.Nd)(null, url);
|
||||
};
|
||||
|
||||
// const handleChange = (info: any) => {
|
||||
// setFileList([info.file]);
|
||||
// //受控时必须实时更新fileList
|
||||
// };
|
||||
|
||||
var handleBeforeUpload = function handleBeforeUpload(file) {
|
||||
var _file$name, _file$name2, _file$name3, _fileText;
|
||||
var fileText = file === null || file === void 0 ? void 0 : (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.substring(file === null || file === void 0 ? void 0 : (_file$name2 = file.name) === null || _file$name2 === void 0 ? void 0 : _file$name2.lastIndexOf("."), file === null || file === void 0 ? void 0 : (_file$name3 = file.name) === null || _file$name3 === void 0 ? void 0 : _file$name3.length);
|
||||
fileText = (_fileText = fileText) === null || _fileText === void 0 ? void 0 : _fileText.toLowerCase();
|
||||
if (fileText !== '.xls' && fileText !== '.xlsx') {
|
||||
message/* default.error */.ZP.error('只能上传.xls,.xlsx格式的文档');
|
||||
return Promise.reject();
|
||||
}
|
||||
var param = {
|
||||
name: file.name,
|
||||
uid: file.uid,
|
||||
file: file
|
||||
};
|
||||
setFileList([param]);
|
||||
return false;
|
||||
};
|
||||
var handleRemove = function handleRemove() {
|
||||
setFileList([]);
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
||||
title: title,
|
||||
open: visible
|
||||
// onOk={handleOk}
|
||||
,
|
||||
centered: true,
|
||||
wrapClassName: UploadExcelmodules.customModal,
|
||||
onCancel: handleCancel,
|
||||
width: "740px",
|
||||
confirmLoading: loading,
|
||||
footer: null,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(tabs/* default */.Z, {
|
||||
className: UploadExcelmodules.tabWarp,
|
||||
onChange: function onChange(k) {
|
||||
return setActiveKey(k);
|
||||
},
|
||||
activeKey: activeKey,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default.TabPane */.Z.TabPane, {
|
||||
tab: "\u624B\u52A8\u65B0\u589E",
|
||||
children: formNode
|
||||
}, "1"), /*#__PURE__*/(0,jsx_runtime.jsx)(tabs/* default.TabPane */.Z.TabPane, {
|
||||
tab: "\u6279\u91CF\u5BFC\u5165",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: UploadExcelmodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginLeft: 0,
|
||||
paddingBottom: 50
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: 36
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: "\u6B65\u9AA41\uFF1A"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: ["\u4E0B\u8F7D\xA0", /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
style: {
|
||||
color: "#0152D9",
|
||||
cursor: 'pointer'
|
||||
},
|
||||
onClick: down,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-moban1 font14"
|
||||
}), templateFileName]
|
||||
}), "\uFF0C\xA0", otherTemplateText]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#FA6400'
|
||||
},
|
||||
className: "mt10",
|
||||
children: "\u6CE8\uFF1A\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\u3002"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
|
||||
style: {
|
||||
marginTop: 30
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "mr20",
|
||||
children: "\u6B65\u9AA42\uFF1A\u4E0A\u4F20\u586B\u5199\u5B8C\u6210\u7684\u6A21\u677F\u3002"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: visible && /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
|
||||
action: "/api/attachments.json",
|
||||
fileList: fileList
|
||||
// action={`${ENV.API_SERVER}/api/attachments.json`}
|
||||
,
|
||||
beforeUpload: handleBeforeUpload,
|
||||
onRemove: handleRemove,
|
||||
withCredentials: true,
|
||||
accept: ".xls,.xlsx",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "primary",
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(PlusOutlined/* default */.Z, {}),
|
||||
children: "\u9009\u62E9\u6587\u4EF6"
|
||||
})
|
||||
})
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(space/* default */.Z, {
|
||||
className: "",
|
||||
size: 10,
|
||||
style: {
|
||||
"float": 'right'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
return handleCancel();
|
||||
},
|
||||
children: "\u53D6\u6D88"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
return handleOk();
|
||||
},
|
||||
type: "primary",
|
||||
children: "\u786E\u8BA4"
|
||||
})]
|
||||
})]
|
||||
})
|
||||
}, "2")]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var components_UploadExcel = (UploadExcel);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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 it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,962 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38979],{
|
||||
|
||||
/***/ 24969:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/@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/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M176 474h672q8 0 8 8v60q0 8-8 8H176q-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/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@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.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_PlusOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_PlusOutlined = (/*#__PURE__*/react.forwardRef(PlusOutlined_PlusOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81643:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/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;
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 96074:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/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/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/divider/style/index.js
|
||||
|
||||
|
||||
// ============================== Shared ==============================
|
||||
const genSharedDividerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
sizePaddingEdgeHorizontal,
|
||||
colorSplit,
|
||||
lineWidth
|
||||
} = 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',
|
||||
margin: `0 ${token.dividerVerticalGutterMargin}px`,
|
||||
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: '5%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '95%'
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-right`]: {
|
||||
'&::before': {
|
||||
width: '95%'
|
||||
},
|
||||
'&::after': {
|
||||
width: '5%'
|
||||
}
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
display: 'inline-block',
|
||||
padding: '0 1em'
|
||||
},
|
||||
'&-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, {
|
||||
dividerVerticalGutterMargin: token.marginXS,
|
||||
dividerHorizontalWithTextGutterMargin: token.margin,
|
||||
dividerHorizontalGutterMargin: token.marginLG
|
||||
});
|
||||
return [genSharedDividerStyle(dividerToken)];
|
||||
}, {
|
||||
sizePaddingEdgeHorizontal: 0
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/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.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_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.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.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.createElement("span", {
|
||||
className: `${prefixCls}-inner-text`,
|
||||
style: innerStyle
|
||||
}, children)));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var divider = (Divider);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66330:
|
||||
/*!***************************************************!*\
|
||||
!*** ./node_modules/antd/es/popover/PurePanel.js ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* unused harmony exports getOverlay, RawPurePanel */
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
|
||||
/* 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 */ 92419);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 67294);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 53124);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 20136);
|
||||
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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 55241:
|
||||
/*!***********************************************!*\
|
||||
!*** ./node_modules/antd/es/popover/index.js ***!
|
||||
\***********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 94184);
|
||||
/* 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 */ 67294);
|
||||
/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 81643);
|
||||
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 33603);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 53124);
|
||||
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 83062);
|
||||
/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 66330);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 20136);
|
||||
'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 */ .mL)(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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20136:
|
||||
/*!*****************************************************!*\
|
||||
!*** ./node_modules/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 */ 14747);
|
||||
/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 50438);
|
||||
/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 97414);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 8796);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 45503);
|
||||
|
||||
|
||||
|
||||
|
||||
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.map */ .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
|
||||
}), {
|
||||
deprecatedTokens: [['width', 'minWidth']]
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 51904:
|
||||
/*!*******************************************************!*\
|
||||
!*** ./node_modules/antd/es/tag/index.js + 3 modules ***!
|
||||
\*******************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ tag; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
|
||||
var CloseOutlined = __webpack_require__(85846);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/colors.js
|
||||
var colors = __webpack_require__(98787);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/hooks/useClosable.js
|
||||
var useClosable = __webpack_require__(69760);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/wave/index.js + 4 modules
|
||||
var wave = __webpack_require__(45353);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/_util/capitalize.js
|
||||
function capitalize(str) {
|
||||
if (typeof str !== 'string') {
|
||||
return str;
|
||||
}
|
||||
const ret = str.charAt(0).toUpperCase() + str.slice(1);
|
||||
return ret;
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genPresetColor.js
|
||||
var genPresetColor = __webpack_require__(98719);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/style/index.js
|
||||
|
||||
|
||||
|
||||
const genTagStatusStyle = (token, status, cssVariableType) => {
|
||||
const capitalizedCssVariableType = capitalize(cssVariableType);
|
||||
return {
|
||||
[`${token.componentCls}-${status}`]: {
|
||||
color: token[`color${cssVariableType}`],
|
||||
background: token[`color${capitalizedCssVariableType}Bg`],
|
||||
borderColor: token[`color${capitalizedCssVariableType}Border`],
|
||||
[`&${token.componentCls}-borderless`]: {
|
||||
borderColor: 'transparent'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genPresetStyle = token => (0,genPresetColor/* default */.Z)(token, (colorKey, _ref) => {
|
||||
let {
|
||||
textColor,
|
||||
lightBorderColor,
|
||||
lightColor,
|
||||
darkColor
|
||||
} = _ref;
|
||||
return {
|
||||
[`${token.componentCls}-${colorKey}`]: {
|
||||
color: textColor,
|
||||
background: lightColor,
|
||||
borderColor: lightBorderColor,
|
||||
// Inverse color
|
||||
'&-inverse': {
|
||||
color: token.colorTextLightSolid,
|
||||
background: darkColor,
|
||||
borderColor: darkColor
|
||||
},
|
||||
[`&${token.componentCls}-borderless`]: {
|
||||
borderColor: 'transparent'
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
const genBaseStyle = token => {
|
||||
const {
|
||||
paddingXXS,
|
||||
lineWidth,
|
||||
tagPaddingHorizontal,
|
||||
componentCls
|
||||
} = token;
|
||||
const paddingInline = tagPaddingHorizontal - lineWidth;
|
||||
const iconMarginInline = paddingXXS - lineWidth;
|
||||
return {
|
||||
// Result
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
height: 'auto',
|
||||
marginInlineEnd: token.marginXS,
|
||||
paddingInline,
|
||||
fontSize: token.tagFontSize,
|
||||
lineHeight: token.tagLineHeight,
|
||||
whiteSpace: 'nowrap',
|
||||
background: token.defaultBg,
|
||||
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
||||
borderRadius: token.borderRadiusSM,
|
||||
opacity: 1,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
textAlign: 'start',
|
||||
position: 'relative',
|
||||
// RTL
|
||||
[`&${componentCls}-rtl`]: {
|
||||
direction: 'rtl'
|
||||
},
|
||||
'&, a, a:hover': {
|
||||
color: token.defaultColor
|
||||
},
|
||||
[`${componentCls}-close-icon`]: {
|
||||
marginInlineStart: iconMarginInline,
|
||||
color: token.colorTextDescription,
|
||||
fontSize: token.tagIconSize,
|
||||
cursor: 'pointer',
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
'&:hover': {
|
||||
color: token.colorTextHeading
|
||||
}
|
||||
},
|
||||
[`&${componentCls}-has-color`]: {
|
||||
borderColor: 'transparent',
|
||||
[`&, a, a:hover, ${token.iconCls}-close, ${token.iconCls}-close:hover`]: {
|
||||
color: token.colorTextLightSolid
|
||||
}
|
||||
},
|
||||
[`&-checkable`]: {
|
||||
backgroundColor: 'transparent',
|
||||
borderColor: 'transparent',
|
||||
cursor: 'pointer',
|
||||
[`&:not(${componentCls}-checkable-checked):hover`]: {
|
||||
color: token.colorPrimary,
|
||||
backgroundColor: token.colorFillSecondary
|
||||
},
|
||||
'&:active, &-checked': {
|
||||
color: token.colorTextLightSolid
|
||||
},
|
||||
'&-checked': {
|
||||
backgroundColor: token.colorPrimary,
|
||||
'&:hover': {
|
||||
backgroundColor: token.colorPrimaryHover
|
||||
}
|
||||
},
|
||||
'&:active': {
|
||||
backgroundColor: token.colorPrimaryActive
|
||||
}
|
||||
},
|
||||
[`&-hidden`]: {
|
||||
display: 'none'
|
||||
},
|
||||
// To ensure that a space will be placed between character and `Icon`.
|
||||
[`> ${token.iconCls} + span, > span + ${token.iconCls}`]: {
|
||||
marginInlineStart: paddingInline
|
||||
}
|
||||
}),
|
||||
[`${componentCls}-borderless`]: {
|
||||
borderColor: 'transparent',
|
||||
background: token.tagBorderlessBg
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var tag_style = ((0,genComponentStyleHook/* default */.Z)('Tag', token => {
|
||||
const {
|
||||
lineWidth,
|
||||
fontSizeIcon
|
||||
} = token;
|
||||
const tagFontSize = token.fontSizeSM;
|
||||
const tagLineHeight = `${token.lineHeightSM * tagFontSize}px`;
|
||||
const tagToken = (0,statistic/* merge */.TS)(token, {
|
||||
tagFontSize,
|
||||
tagLineHeight,
|
||||
tagIconSize: fontSizeIcon - 2 * lineWidth,
|
||||
tagPaddingHorizontal: 8,
|
||||
tagBorderlessBg: token.colorFillTertiary
|
||||
});
|
||||
return [genBaseStyle(tagToken), genPresetStyle(tagToken), genTagStatusStyle(tagToken, 'success', 'Success'), genTagStatusStyle(tagToken, 'processing', 'Info'), genTagStatusStyle(tagToken, 'error', 'Error'), genTagStatusStyle(tagToken, 'warning', 'Warning')];
|
||||
}, token => ({
|
||||
defaultBg: token.colorFillQuaternary,
|
||||
defaultColor: token.colorText
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/CheckableTag.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
const CheckableTag = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
checked,
|
||||
onChange,
|
||||
onClick
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "className", "checked", "onChange", "onClick"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const handleClick = e => {
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
|
||||
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
||||
};
|
||||
const prefixCls = getPrefixCls('tag', customizePrefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = tag_style(prefixCls);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-checkable`, {
|
||||
[`${prefixCls}-checkable-checked`]: checked
|
||||
}, className, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("span", Object.assign({}, restProps, {
|
||||
className: cls,
|
||||
onClick: handleClick
|
||||
})));
|
||||
};
|
||||
/* harmony default export */ var tag_CheckableTag = (CheckableTag);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/tag/index.js
|
||||
'use client';
|
||||
|
||||
var tag_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const InternalTag = (tagProps, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
children,
|
||||
icon,
|
||||
color,
|
||||
onClose,
|
||||
closeIcon,
|
||||
closable,
|
||||
bordered = true
|
||||
} = tagProps,
|
||||
props = tag_rest(tagProps, ["prefixCls", "className", "rootClassName", "style", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
tag
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const [visible, setVisible] = react.useState(true);
|
||||
// Warning for deprecated usage
|
||||
if (false) {}
|
||||
react.useEffect(() => {
|
||||
if ('visible' in props) {
|
||||
setVisible(props.visible);
|
||||
}
|
||||
}, [props.visible]);
|
||||
const isInternalColor = (0,colors/* isPresetColor */.o2)(color) || (0,colors/* isPresetStatusColor */.yT)(color);
|
||||
const tagStyle = Object.assign(Object.assign({
|
||||
backgroundColor: color && !isInternalColor ? color : undefined
|
||||
}, tag === null || tag === void 0 ? void 0 : tag.style), style);
|
||||
const prefixCls = getPrefixCls('tag', customizePrefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = tag_style(prefixCls);
|
||||
const tagClassName = classnames_default()(prefixCls, tag === null || tag === void 0 ? void 0 : tag.className, {
|
||||
[`${prefixCls}-${color}`]: isInternalColor,
|
||||
[`${prefixCls}-has-color`]: color && !isInternalColor,
|
||||
[`${prefixCls}-hidden`]: !visible,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-borderless`]: !bordered
|
||||
}, className, rootClassName, hashId);
|
||||
const handleCloseClick = e => {
|
||||
e.stopPropagation();
|
||||
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
||||
if (e.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
setVisible(false);
|
||||
};
|
||||
const [, mergedCloseIcon] = (0,useClosable/* default */.Z)(closable, closeIcon, iconNode => iconNode === null ? /*#__PURE__*/react.createElement(CloseOutlined/* default */.Z, {
|
||||
className: `${prefixCls}-close-icon`,
|
||||
onClick: handleCloseClick
|
||||
}) : /*#__PURE__*/react.createElement("span", {
|
||||
className: `${prefixCls}-close-icon`,
|
||||
onClick: handleCloseClick
|
||||
}, iconNode), null, false);
|
||||
const isNeedWave = typeof props.onClick === 'function' || children && children.type === 'a';
|
||||
const iconNode = icon || null;
|
||||
const kids = iconNode ? /*#__PURE__*/react.createElement(react.Fragment, null, iconNode, children && /*#__PURE__*/react.createElement("span", null, children)) : children;
|
||||
const tagNode = /*#__PURE__*/react.createElement("span", Object.assign({}, props, {
|
||||
ref: ref,
|
||||
className: tagClassName,
|
||||
style: tagStyle
|
||||
}), kids, mergedCloseIcon);
|
||||
return wrapSSR(isNeedWave ? /*#__PURE__*/react.createElement(wave/* default */.Z, null, tagNode) : tagNode);
|
||||
};
|
||||
const Tag = /*#__PURE__*/react.forwardRef(InternalTag);
|
||||
if (false) {}
|
||||
Tag.CheckableTag = tag_CheckableTag;
|
||||
/* harmony default export */ var tag = (Tag);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
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 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 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 it is too large
Load Diff
@ -1,769 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4310],{
|
||||
|
||||
/***/ 4310:
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/antd/es/skeleton/index.js + 12 modules ***!
|
||||
\*************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ skeleton; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Element.js
|
||||
|
||||
|
||||
const Element = props => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
style,
|
||||
size,
|
||||
shape
|
||||
} = props;
|
||||
const sizeCls = classnames_default()({
|
||||
[`${prefixCls}-lg`]: size === 'large',
|
||||
[`${prefixCls}-sm`]: size === 'small'
|
||||
});
|
||||
const shapeCls = classnames_default()({
|
||||
[`${prefixCls}-circle`]: shape === 'circle',
|
||||
[`${prefixCls}-square`]: shape === 'square',
|
||||
[`${prefixCls}-round`]: shape === 'round'
|
||||
});
|
||||
const sizeStyle = react.useMemo(() => typeof size === 'number' ? {
|
||||
width: size,
|
||||
height: size,
|
||||
lineHeight: `${size}px`
|
||||
} : {}, [size]);
|
||||
return /*#__PURE__*/react.createElement("span", {
|
||||
className: classnames_default()(prefixCls, sizeCls, shapeCls, className),
|
||||
style: Object.assign(Object.assign({}, sizeStyle), style)
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var skeleton_Element = (Element);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/cssinjs/es/index.js + 29 modules
|
||||
var es = __webpack_require__(73559);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/style/index.js
|
||||
|
||||
|
||||
const skeletonClsLoading = new es.Keyframes(`ant-skeleton-loading`, {
|
||||
'0%': {
|
||||
backgroundPosition: '100% 50%'
|
||||
},
|
||||
'100%': {
|
||||
backgroundPosition: '0 50%'
|
||||
}
|
||||
});
|
||||
const genSkeletonElementCommonSize = size => ({
|
||||
height: size,
|
||||
lineHeight: `${size}px`
|
||||
});
|
||||
const genSkeletonElementAvatarSize = size => Object.assign({
|
||||
width: size
|
||||
}, genSkeletonElementCommonSize(size));
|
||||
const genSkeletonColor = token => ({
|
||||
background: token.skeletonLoadingBackground,
|
||||
backgroundSize: '400% 100%',
|
||||
animationName: skeletonClsLoading,
|
||||
animationDuration: token.skeletonLoadingMotionDuration,
|
||||
animationTimingFunction: 'ease',
|
||||
animationIterationCount: 'infinite'
|
||||
});
|
||||
const genSkeletonElementInputSize = size => Object.assign({
|
||||
width: size * 5,
|
||||
minWidth: size * 5
|
||||
}, genSkeletonElementCommonSize(size));
|
||||
const genSkeletonElementAvatar = token => {
|
||||
const {
|
||||
skeletonAvatarCls,
|
||||
gradientFromColor,
|
||||
controlHeight,
|
||||
controlHeightLG,
|
||||
controlHeightSM
|
||||
} = token;
|
||||
return {
|
||||
[`${skeletonAvatarCls}`]: Object.assign({
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'top',
|
||||
background: gradientFromColor
|
||||
}, genSkeletonElementAvatarSize(controlHeight)),
|
||||
[`${skeletonAvatarCls}${skeletonAvatarCls}-circle`]: {
|
||||
borderRadius: '50%'
|
||||
},
|
||||
[`${skeletonAvatarCls}${skeletonAvatarCls}-lg`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightLG)),
|
||||
[`${skeletonAvatarCls}${skeletonAvatarCls}-sm`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightSM))
|
||||
};
|
||||
};
|
||||
const genSkeletonElementInput = token => {
|
||||
const {
|
||||
controlHeight,
|
||||
borderRadiusSM,
|
||||
skeletonInputCls,
|
||||
controlHeightLG,
|
||||
controlHeightSM,
|
||||
gradientFromColor
|
||||
} = token;
|
||||
return {
|
||||
[`${skeletonInputCls}`]: Object.assign({
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'top',
|
||||
background: gradientFromColor,
|
||||
borderRadius: borderRadiusSM
|
||||
}, genSkeletonElementInputSize(controlHeight)),
|
||||
[`${skeletonInputCls}-lg`]: Object.assign({}, genSkeletonElementInputSize(controlHeightLG)),
|
||||
[`${skeletonInputCls}-sm`]: Object.assign({}, genSkeletonElementInputSize(controlHeightSM))
|
||||
};
|
||||
};
|
||||
const genSkeletonElementImageSize = size => Object.assign({
|
||||
width: size
|
||||
}, genSkeletonElementCommonSize(size));
|
||||
const genSkeletonElementImage = token => {
|
||||
const {
|
||||
skeletonImageCls,
|
||||
imageSizeBase,
|
||||
gradientFromColor,
|
||||
borderRadiusSM
|
||||
} = token;
|
||||
return {
|
||||
[`${skeletonImageCls}`]: Object.assign(Object.assign({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
verticalAlign: 'top',
|
||||
background: gradientFromColor,
|
||||
borderRadius: borderRadiusSM
|
||||
}, genSkeletonElementImageSize(imageSizeBase * 2)), {
|
||||
[`${skeletonImageCls}-path`]: {
|
||||
fill: '#bfbfbf'
|
||||
},
|
||||
[`${skeletonImageCls}-svg`]: Object.assign(Object.assign({}, genSkeletonElementImageSize(imageSizeBase)), {
|
||||
maxWidth: imageSizeBase * 4,
|
||||
maxHeight: imageSizeBase * 4
|
||||
}),
|
||||
[`${skeletonImageCls}-svg${skeletonImageCls}-svg-circle`]: {
|
||||
borderRadius: '50%'
|
||||
}
|
||||
}),
|
||||
[`${skeletonImageCls}${skeletonImageCls}-circle`]: {
|
||||
borderRadius: '50%'
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSkeletonElementButtonShape = (token, size, buttonCls) => {
|
||||
const {
|
||||
skeletonButtonCls
|
||||
} = token;
|
||||
return {
|
||||
[`${buttonCls}${skeletonButtonCls}-circle`]: {
|
||||
width: size,
|
||||
minWidth: size,
|
||||
borderRadius: '50%'
|
||||
},
|
||||
[`${buttonCls}${skeletonButtonCls}-round`]: {
|
||||
borderRadius: size
|
||||
}
|
||||
};
|
||||
};
|
||||
const genSkeletonElementButtonSize = size => Object.assign({
|
||||
width: size * 2,
|
||||
minWidth: size * 2
|
||||
}, genSkeletonElementCommonSize(size));
|
||||
const genSkeletonElementButton = token => {
|
||||
const {
|
||||
borderRadiusSM,
|
||||
skeletonButtonCls,
|
||||
controlHeight,
|
||||
controlHeightLG,
|
||||
controlHeightSM,
|
||||
gradientFromColor
|
||||
} = token;
|
||||
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
||||
[`${skeletonButtonCls}`]: Object.assign({
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'top',
|
||||
background: gradientFromColor,
|
||||
borderRadius: borderRadiusSM,
|
||||
width: controlHeight * 2,
|
||||
minWidth: controlHeight * 2
|
||||
}, genSkeletonElementButtonSize(controlHeight))
|
||||
}, genSkeletonElementButtonShape(token, controlHeight, skeletonButtonCls)), {
|
||||
[`${skeletonButtonCls}-lg`]: Object.assign({}, genSkeletonElementButtonSize(controlHeightLG))
|
||||
}), genSkeletonElementButtonShape(token, controlHeightLG, `${skeletonButtonCls}-lg`)), {
|
||||
[`${skeletonButtonCls}-sm`]: Object.assign({}, genSkeletonElementButtonSize(controlHeightSM))
|
||||
}), genSkeletonElementButtonShape(token, controlHeightSM, `${skeletonButtonCls}-sm`));
|
||||
};
|
||||
// =============================== Base ===============================
|
||||
const genBaseStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
skeletonAvatarCls,
|
||||
skeletonTitleCls,
|
||||
skeletonParagraphCls,
|
||||
skeletonButtonCls,
|
||||
skeletonInputCls,
|
||||
skeletonImageCls,
|
||||
controlHeight,
|
||||
controlHeightLG,
|
||||
controlHeightSM,
|
||||
gradientFromColor,
|
||||
padding,
|
||||
marginSM,
|
||||
borderRadius,
|
||||
titleHeight,
|
||||
blockRadius,
|
||||
paragraphLiHeight,
|
||||
controlHeightXS,
|
||||
paragraphMarginTop
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}`]: {
|
||||
display: 'table',
|
||||
width: '100%',
|
||||
[`${componentCls}-header`]: {
|
||||
display: 'table-cell',
|
||||
paddingInlineEnd: padding,
|
||||
verticalAlign: 'top',
|
||||
// Avatar
|
||||
[`${skeletonAvatarCls}`]: Object.assign({
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'top',
|
||||
background: gradientFromColor
|
||||
}, genSkeletonElementAvatarSize(controlHeight)),
|
||||
[`${skeletonAvatarCls}-circle`]: {
|
||||
borderRadius: '50%'
|
||||
},
|
||||
[`${skeletonAvatarCls}-lg`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightLG)),
|
||||
[`${skeletonAvatarCls}-sm`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightSM))
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
display: 'table-cell',
|
||||
width: '100%',
|
||||
verticalAlign: 'top',
|
||||
// Title
|
||||
[`${skeletonTitleCls}`]: {
|
||||
width: '100%',
|
||||
height: titleHeight,
|
||||
background: gradientFromColor,
|
||||
borderRadius: blockRadius,
|
||||
[`+ ${skeletonParagraphCls}`]: {
|
||||
marginBlockStart: controlHeightSM
|
||||
}
|
||||
},
|
||||
// paragraph
|
||||
[`${skeletonParagraphCls}`]: {
|
||||
padding: 0,
|
||||
'> li': {
|
||||
width: '100%',
|
||||
height: paragraphLiHeight,
|
||||
listStyle: 'none',
|
||||
background: gradientFromColor,
|
||||
borderRadius: blockRadius,
|
||||
'+ li': {
|
||||
marginBlockStart: controlHeightXS
|
||||
}
|
||||
}
|
||||
},
|
||||
[`${skeletonParagraphCls}> li:last-child:not(:first-child):not(:nth-child(2))`]: {
|
||||
width: '61%'
|
||||
}
|
||||
},
|
||||
[`&-round ${componentCls}-content`]: {
|
||||
[`${skeletonTitleCls}, ${skeletonParagraphCls} > li`]: {
|
||||
borderRadius
|
||||
}
|
||||
}
|
||||
},
|
||||
[`${componentCls}-with-avatar ${componentCls}-content`]: {
|
||||
// Title
|
||||
[`${skeletonTitleCls}`]: {
|
||||
marginBlockStart: marginSM,
|
||||
[`+ ${skeletonParagraphCls}`]: {
|
||||
marginBlockStart: paragraphMarginTop
|
||||
}
|
||||
}
|
||||
},
|
||||
// Skeleton element
|
||||
[`${componentCls}${componentCls}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
|
||||
display: 'inline-block',
|
||||
width: 'auto'
|
||||
}, genSkeletonElementButton(token)), genSkeletonElementAvatar(token)), genSkeletonElementInput(token)), genSkeletonElementImage(token)),
|
||||
// Skeleton Block Button, Input
|
||||
[`${componentCls}${componentCls}-block`]: {
|
||||
width: '100%',
|
||||
[`${skeletonButtonCls}`]: {
|
||||
width: '100%'
|
||||
},
|
||||
[`${skeletonInputCls}`]: {
|
||||
width: '100%'
|
||||
}
|
||||
},
|
||||
// With active animation
|
||||
[`${componentCls}${componentCls}-active`]: {
|
||||
[`
|
||||
${skeletonTitleCls},
|
||||
${skeletonParagraphCls} > li,
|
||||
${skeletonAvatarCls},
|
||||
${skeletonButtonCls},
|
||||
${skeletonInputCls},
|
||||
${skeletonImageCls}
|
||||
`]: Object.assign({}, genSkeletonColor(token))
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var skeleton_style = ((0,genComponentStyleHook/* default */.Z)('Skeleton', token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
const skeletonToken = (0,statistic/* merge */.TS)(token, {
|
||||
skeletonAvatarCls: `${componentCls}-avatar`,
|
||||
skeletonTitleCls: `${componentCls}-title`,
|
||||
skeletonParagraphCls: `${componentCls}-paragraph`,
|
||||
skeletonButtonCls: `${componentCls}-button`,
|
||||
skeletonInputCls: `${componentCls}-input`,
|
||||
skeletonImageCls: `${componentCls}-image`,
|
||||
imageSizeBase: token.controlHeight * 1.5,
|
||||
borderRadius: 100,
|
||||
skeletonLoadingBackground: `linear-gradient(90deg, ${token.gradientFromColor} 25%, ${token.gradientToColor} 37%, ${token.gradientFromColor} 63%)`,
|
||||
skeletonLoadingMotionDuration: '1.4s'
|
||||
});
|
||||
return [genBaseStyle(skeletonToken)];
|
||||
}, token => {
|
||||
const {
|
||||
colorFillContent,
|
||||
colorFill
|
||||
} = token;
|
||||
const gradientFromColor = colorFillContent;
|
||||
const gradientToColor = colorFill;
|
||||
return {
|
||||
color: gradientFromColor,
|
||||
colorGradientEnd: gradientToColor,
|
||||
gradientFromColor,
|
||||
gradientToColor,
|
||||
titleHeight: token.controlHeight / 2,
|
||||
blockRadius: token.borderRadiusSM,
|
||||
paragraphMarginTop: token.marginLG + token.marginXXS,
|
||||
paragraphLiHeight: token.controlHeight / 2
|
||||
};
|
||||
}, {
|
||||
deprecatedTokens: [['color', 'gradientFromColor'], ['colorGradientEnd', 'gradientToColor']]
|
||||
}));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Avatar.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SkeletonAvatar = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
active,
|
||||
shape = 'circle',
|
||||
size = 'default'
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
const otherProps = (0,omit/* default */.Z)(props, ['prefixCls', 'className']);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-element`, {
|
||||
[`${prefixCls}-active`]: active
|
||||
}, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls
|
||||
}, /*#__PURE__*/react.createElement(skeleton_Element, Object.assign({
|
||||
prefixCls: `${prefixCls}-avatar`,
|
||||
shape: shape,
|
||||
size: size
|
||||
}, otherProps))));
|
||||
};
|
||||
/* harmony default export */ var Avatar = (SkeletonAvatar);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Button.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SkeletonButton = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
active,
|
||||
block = false,
|
||||
size = 'default'
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
const otherProps = (0,omit/* default */.Z)(props, ['prefixCls']);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-element`, {
|
||||
[`${prefixCls}-active`]: active,
|
||||
[`${prefixCls}-block`]: block
|
||||
}, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls
|
||||
}, /*#__PURE__*/react.createElement(skeleton_Element, Object.assign({
|
||||
prefixCls: `${prefixCls}-button`,
|
||||
size: size
|
||||
}, otherProps))));
|
||||
};
|
||||
/* harmony default export */ var Button = (SkeletonButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Image.js
|
||||
|
||||
|
||||
|
||||
|
||||
const path = 'M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z';
|
||||
const SkeletonImage = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
active
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-element`, {
|
||||
[`${prefixCls}-active`]: active
|
||||
}, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: classnames_default()(`${prefixCls}-image`, className),
|
||||
style: style
|
||||
}, /*#__PURE__*/react.createElement("svg", {
|
||||
viewBox: "0 0 1098 1024",
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
className: `${prefixCls}-image-svg`
|
||||
}, /*#__PURE__*/react.createElement("path", {
|
||||
d: path,
|
||||
className: `${prefixCls}-image-path`
|
||||
})))));
|
||||
};
|
||||
/* harmony default export */ var Image = (SkeletonImage);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Input.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SkeletonInput = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
active,
|
||||
block,
|
||||
size = 'default'
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
const otherProps = (0,omit/* default */.Z)(props, ['prefixCls']);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-element`, {
|
||||
[`${prefixCls}-active`]: active,
|
||||
[`${prefixCls}-block`]: block
|
||||
}, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls
|
||||
}, /*#__PURE__*/react.createElement(skeleton_Element, Object.assign({
|
||||
prefixCls: `${prefixCls}-input`,
|
||||
size: size
|
||||
}, otherProps))));
|
||||
};
|
||||
/* harmony default export */ var Input = (SkeletonInput);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/DotChartOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var DotChartOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "dot-chart", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_DotChartOutlined = (DotChartOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/DotChartOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var DotChartOutlined_DotChartOutlined = function DotChartOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_DotChartOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_DotChartOutlined = (/*#__PURE__*/react.forwardRef(DotChartOutlined_DotChartOutlined));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Node.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const SkeletonNode = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
active,
|
||||
children
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
const cls = classnames_default()(prefixCls, `${prefixCls}-element`, {
|
||||
[`${prefixCls}-active`]: active
|
||||
}, hashId, className, rootClassName);
|
||||
const content = children !== null && children !== void 0 ? children : /*#__PURE__*/react.createElement(icons_DotChartOutlined, null);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: classnames_default()(`${prefixCls}-image`, className),
|
||||
style: style
|
||||
}, content)));
|
||||
};
|
||||
/* harmony default export */ var Node = (SkeletonNode);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||||
var toConsumableArray = __webpack_require__(74902);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Paragraph.js
|
||||
|
||||
|
||||
|
||||
const Paragraph = props => {
|
||||
const getWidth = index => {
|
||||
const {
|
||||
width,
|
||||
rows = 2
|
||||
} = props;
|
||||
if (Array.isArray(width)) {
|
||||
return width[index];
|
||||
}
|
||||
// last paragraph
|
||||
if (rows - 1 === index) {
|
||||
return width;
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
style,
|
||||
rows
|
||||
} = props;
|
||||
const rowList = (0,toConsumableArray/* default */.Z)(Array(rows)).map((_, index) =>
|
||||
/*#__PURE__*/
|
||||
// eslint-disable-next-line react/no-array-index-key
|
||||
react.createElement("li", {
|
||||
key: index,
|
||||
style: {
|
||||
width: getWidth(index)
|
||||
}
|
||||
}));
|
||||
return /*#__PURE__*/react.createElement("ul", {
|
||||
className: classnames_default()(prefixCls, className),
|
||||
style: style
|
||||
}, rowList);
|
||||
};
|
||||
/* harmony default export */ var skeleton_Paragraph = (Paragraph);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Title.js
|
||||
/* eslint-disable jsx-a11y/heading-has-content */
|
||||
|
||||
|
||||
const Title = _ref => {
|
||||
let {
|
||||
prefixCls,
|
||||
className,
|
||||
width,
|
||||
style
|
||||
} = _ref;
|
||||
return /*#__PURE__*/react.createElement("h3", {
|
||||
className: classnames_default()(prefixCls, className),
|
||||
style: Object.assign({
|
||||
width
|
||||
}, style)
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var skeleton_Title = (Title);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/Skeleton.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function getComponentProps(prop) {
|
||||
if (prop && typeof prop === 'object') {
|
||||
return prop;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
function getAvatarBasicProps(hasTitle, hasParagraph) {
|
||||
if (hasTitle && !hasParagraph) {
|
||||
// Square avatar
|
||||
return {
|
||||
size: 'large',
|
||||
shape: 'square'
|
||||
};
|
||||
}
|
||||
return {
|
||||
size: 'large',
|
||||
shape: 'circle'
|
||||
};
|
||||
}
|
||||
function getTitleBasicProps(hasAvatar, hasParagraph) {
|
||||
if (!hasAvatar && hasParagraph) {
|
||||
return {
|
||||
width: '38%'
|
||||
};
|
||||
}
|
||||
if (hasAvatar && hasParagraph) {
|
||||
return {
|
||||
width: '50%'
|
||||
};
|
||||
}
|
||||
return {};
|
||||
}
|
||||
function getParagraphBasicProps(hasAvatar, hasTitle) {
|
||||
const basicProps = {};
|
||||
// Width
|
||||
if (!hasAvatar || !hasTitle) {
|
||||
basicProps.width = '61%';
|
||||
}
|
||||
// Rows
|
||||
if (!hasAvatar && hasTitle) {
|
||||
basicProps.rows = 3;
|
||||
} else {
|
||||
basicProps.rows = 2;
|
||||
}
|
||||
return basicProps;
|
||||
}
|
||||
const Skeleton = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
loading,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
children,
|
||||
avatar = false,
|
||||
title = true,
|
||||
paragraph = true,
|
||||
active,
|
||||
round
|
||||
} = props;
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
skeleton
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('skeleton', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = skeleton_style(prefixCls);
|
||||
if (loading || !('loading' in props)) {
|
||||
const hasAvatar = !!avatar;
|
||||
const hasTitle = !!title;
|
||||
const hasParagraph = !!paragraph;
|
||||
// Avatar
|
||||
let avatarNode;
|
||||
if (hasAvatar) {
|
||||
const avatarProps = Object.assign(Object.assign({
|
||||
prefixCls: `${prefixCls}-avatar`
|
||||
}, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));
|
||||
// We direct use SkeletonElement as avatar in skeleton internal.
|
||||
avatarNode = /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-header`
|
||||
}, /*#__PURE__*/react.createElement(skeleton_Element, Object.assign({}, avatarProps)));
|
||||
}
|
||||
let contentNode;
|
||||
if (hasTitle || hasParagraph) {
|
||||
// Title
|
||||
let $title;
|
||||
if (hasTitle) {
|
||||
const titleProps = Object.assign(Object.assign({
|
||||
prefixCls: `${prefixCls}-title`
|
||||
}, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));
|
||||
$title = /*#__PURE__*/react.createElement(skeleton_Title, Object.assign({}, titleProps));
|
||||
}
|
||||
// Paragraph
|
||||
let paragraphNode;
|
||||
if (hasParagraph) {
|
||||
const paragraphProps = Object.assign(Object.assign({
|
||||
prefixCls: `${prefixCls}-paragraph`
|
||||
}, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));
|
||||
paragraphNode = /*#__PURE__*/react.createElement(skeleton_Paragraph, Object.assign({}, paragraphProps));
|
||||
}
|
||||
contentNode = /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-content`
|
||||
}, $title, paragraphNode);
|
||||
}
|
||||
const cls = classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-with-avatar`]: hasAvatar,
|
||||
[`${prefixCls}-active`]: active,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-round`]: round
|
||||
}, skeleton === null || skeleton === void 0 ? void 0 : skeleton.className, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", {
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign({}, skeleton === null || skeleton === void 0 ? void 0 : skeleton.style), style)
|
||||
}, avatarNode, contentNode));
|
||||
}
|
||||
return typeof children !== 'undefined' ? children : null;
|
||||
};
|
||||
Skeleton.Button = Button;
|
||||
Skeleton.Avatar = Avatar;
|
||||
Skeleton.Input = Input;
|
||||
Skeleton.Image = Image;
|
||||
Skeleton.Node = Node;
|
||||
if (false) {}
|
||||
/* harmony default export */ var skeleton_Skeleton = (Skeleton);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/skeleton/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
/* harmony default export */ var skeleton = (skeleton_Skeleton);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,633 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44788],{
|
||||
|
||||
/***/ 64082:
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js + 1 modules ***!
|
||||
\******************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_InboxOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/InboxOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var InboxOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_InboxOutlined = (InboxOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 9 modules
|
||||
var AntdIcon = __webpack_require__(43387);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/InboxOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var InboxOutlined_InboxOutlined = function InboxOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_InboxOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_InboxOutlined = (/*#__PURE__*/react.forwardRef(InboxOutlined_InboxOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 91708:
|
||||
/*!********************************************************!*\
|
||||
!*** ./node_modules/antd/es/rate/index.js + 8 modules ***!
|
||||
\********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ rate; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons-svg/es/asn/StarFilled.js
|
||||
// This icon file is generated automatically.
|
||||
var StarFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" } }] }, "name": "star", "theme": "filled" };
|
||||
/* harmony default export */ var asn_StarFilled = (StarFilled);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(44327);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/node_modules/@ant-design/icons/es/icons/StarFilled.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var StarFilled_StarFilled = function StarFilled(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_StarFilled
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_StarFilled = (/*#__PURE__*/react.forwardRef(StarFilled_StarFilled));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
||||
var defineProperty = __webpack_require__(4942);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
|
||||
var slicedToArray = __webpack_require__(97685);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(45987);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/hooks/useMergedState.js
|
||||
var useMergedState = __webpack_require__(21770);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/KeyCode.js
|
||||
var KeyCode = __webpack_require__(15105);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-util/es/pickAttrs.js
|
||||
var pickAttrs = __webpack_require__(64217);
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Star.js
|
||||
|
||||
|
||||
|
||||
function Star(props, ref) {
|
||||
var disabled = props.disabled,
|
||||
prefixCls = props.prefixCls,
|
||||
character = props.character,
|
||||
characterRender = props.characterRender,
|
||||
index = props.index,
|
||||
count = props.count,
|
||||
value = props.value,
|
||||
allowHalf = props.allowHalf,
|
||||
focused = props.focused,
|
||||
onHover = props.onHover,
|
||||
onClick = props.onClick;
|
||||
// =========================== Events ===========================
|
||||
var onInternalHover = function onInternalHover(e) {
|
||||
onHover(e, index);
|
||||
};
|
||||
var onInternalClick = function onInternalClick(e) {
|
||||
onClick(e, index);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(e) {
|
||||
if (e.keyCode === KeyCode/* default.ENTER */.Z.ENTER) {
|
||||
onClick(e, index);
|
||||
}
|
||||
};
|
||||
// =========================== Render ===========================
|
||||
// >>>>> ClassName
|
||||
var starValue = index + 1;
|
||||
var classNameList = new Set([prefixCls]);
|
||||
// TODO: Current we just refactor from CC to FC. This logic seems can be optimized.
|
||||
if (value === 0 && index === 0 && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
} else if (allowHalf && value + 0.5 >= starValue && value < starValue) {
|
||||
classNameList.add("".concat(prefixCls, "-half"));
|
||||
classNameList.add("".concat(prefixCls, "-active"));
|
||||
if (focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
} else {
|
||||
if (starValue <= value) {
|
||||
classNameList.add("".concat(prefixCls, "-full"));
|
||||
} else {
|
||||
classNameList.add("".concat(prefixCls, "-zero"));
|
||||
}
|
||||
if (starValue === value && focused) {
|
||||
classNameList.add("".concat(prefixCls, "-focused"));
|
||||
}
|
||||
}
|
||||
// >>>>> Node
|
||||
var characterNode = typeof character === 'function' ? character(props) : character;
|
||||
var start = /*#__PURE__*/react.createElement("li", {
|
||||
className: classnames_default()(Array.from(classNameList)),
|
||||
ref: ref
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
onClick: disabled ? null : onInternalClick,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
onMouseMove: disabled ? null : onInternalHover,
|
||||
role: "radio",
|
||||
"aria-checked": value > index ? 'true' : 'false',
|
||||
"aria-posinset": index + 1,
|
||||
"aria-setsize": count,
|
||||
tabIndex: disabled ? -1 : 0
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-first")
|
||||
}, characterNode), /*#__PURE__*/react.createElement("div", {
|
||||
className: "".concat(prefixCls, "-second")
|
||||
}, characterNode)));
|
||||
if (characterRender) {
|
||||
start = characterRender(start, props);
|
||||
}
|
||||
return start;
|
||||
}
|
||||
/* harmony default export */ var es_Star = (/*#__PURE__*/react.forwardRef(Star));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/useRefs.js
|
||||
|
||||
function useRefs() {
|
||||
var nodeRef = react.useRef({});
|
||||
function getRef(index) {
|
||||
return nodeRef.current[index];
|
||||
}
|
||||
function setRef(index) {
|
||||
return function (node) {
|
||||
nodeRef.current[index] = node;
|
||||
};
|
||||
}
|
||||
return [getRef, setRef];
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/util.js
|
||||
function getScroll(w) {
|
||||
var ret = w.pageXOffset;
|
||||
var method = 'scrollLeft';
|
||||
if (typeof ret !== 'number') {
|
||||
var d = w.document;
|
||||
// ie6,7,8 standard mode
|
||||
ret = d.documentElement[method];
|
||||
if (typeof ret !== 'number') {
|
||||
// quirks mode
|
||||
ret = d.body[method];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
function getClientPosition(elem) {
|
||||
var x;
|
||||
var y;
|
||||
var doc = elem.ownerDocument;
|
||||
var body = doc.body;
|
||||
var docElem = doc && doc.documentElement;
|
||||
var box = elem.getBoundingClientRect();
|
||||
x = box.left;
|
||||
y = box.top;
|
||||
x -= docElem.clientLeft || body.clientLeft || 0;
|
||||
y -= docElem.clientTop || body.clientTop || 0;
|
||||
return {
|
||||
left: x,
|
||||
top: y
|
||||
};
|
||||
}
|
||||
function getOffsetLeft(el) {
|
||||
var pos = getClientPosition(el);
|
||||
var doc = el.ownerDocument;
|
||||
// Only IE use `parentWindow`
|
||||
var w = doc.defaultView || doc.parentWindow;
|
||||
pos.left += getScroll(w);
|
||||
return pos.left;
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/Rate.js
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["prefixCls", "className", "defaultValue", "value", "count", "allowHalf", "allowClear", "character", "characterRender", "disabled", "direction", "tabIndex", "autoFocus", "onHoverChange", "onChange", "onFocus", "onBlur", "onKeyDown", "onMouseLeave"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Rate(props, ref) {
|
||||
var _classNames;
|
||||
var _props$prefixCls = props.prefixCls,
|
||||
prefixCls = _props$prefixCls === void 0 ? 'rc-rate' : _props$prefixCls,
|
||||
className = props.className,
|
||||
defaultValue = props.defaultValue,
|
||||
propValue = props.value,
|
||||
_props$count = props.count,
|
||||
count = _props$count === void 0 ? 5 : _props$count,
|
||||
_props$allowHalf = props.allowHalf,
|
||||
allowHalf = _props$allowHalf === void 0 ? false : _props$allowHalf,
|
||||
_props$allowClear = props.allowClear,
|
||||
allowClear = _props$allowClear === void 0 ? true : _props$allowClear,
|
||||
_props$character = props.character,
|
||||
character = _props$character === void 0 ? '★' : _props$character,
|
||||
characterRender = props.characterRender,
|
||||
disabled = props.disabled,
|
||||
_props$direction = props.direction,
|
||||
direction = _props$direction === void 0 ? 'ltr' : _props$direction,
|
||||
_props$tabIndex = props.tabIndex,
|
||||
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
||||
autoFocus = props.autoFocus,
|
||||
onHoverChange = props.onHoverChange,
|
||||
onChange = props.onChange,
|
||||
onFocus = props.onFocus,
|
||||
onBlur = props.onBlur,
|
||||
onKeyDown = props.onKeyDown,
|
||||
onMouseLeave = props.onMouseLeave,
|
||||
restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
|
||||
var _useRefs = useRefs(),
|
||||
_useRefs2 = (0,slicedToArray/* default */.Z)(_useRefs, 2),
|
||||
getStarRef = _useRefs2[0],
|
||||
setStarRef = _useRefs2[1];
|
||||
var rateRef = react.useRef(null);
|
||||
// ============================ Ref =============================
|
||||
var triggerFocus = function triggerFocus() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current;
|
||||
(_rateRef$current = rateRef.current) === null || _rateRef$current === void 0 ? void 0 : _rateRef$current.focus();
|
||||
}
|
||||
};
|
||||
react.useImperativeHandle(ref, function () {
|
||||
return {
|
||||
focus: triggerFocus,
|
||||
blur: function blur() {
|
||||
if (!disabled) {
|
||||
var _rateRef$current2;
|
||||
(_rateRef$current2 = rateRef.current) === null || _rateRef$current2 === void 0 ? void 0 : _rateRef$current2.blur();
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
// =========================== Value ============================
|
||||
var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue || 0, {
|
||||
value: propValue
|
||||
}),
|
||||
_useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
|
||||
value = _useMergedState2[0],
|
||||
setValue = _useMergedState2[1];
|
||||
var _useMergedState3 = (0,useMergedState/* default */.Z)(null),
|
||||
_useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
|
||||
cleanedValue = _useMergedState4[0],
|
||||
setCleanedValue = _useMergedState4[1];
|
||||
var getStarValue = function getStarValue(index, x) {
|
||||
var reverse = direction === 'rtl';
|
||||
var starValue = index + 1;
|
||||
if (allowHalf) {
|
||||
var starEle = getStarRef(index);
|
||||
var leftDis = getOffsetLeft(starEle);
|
||||
var width = starEle.clientWidth;
|
||||
if (reverse && x - leftDis > width / 2) {
|
||||
starValue -= 0.5;
|
||||
} else if (!reverse && x - leftDis < width / 2) {
|
||||
starValue -= 0.5;
|
||||
}
|
||||
}
|
||||
return starValue;
|
||||
};
|
||||
// >>>>> Change
|
||||
var changeValue = function changeValue(nextValue) {
|
||||
setValue(nextValue);
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(nextValue);
|
||||
};
|
||||
// =========================== Focus ============================
|
||||
var _React$useState = react.useState(false),
|
||||
_React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
|
||||
focused = _React$useState2[0],
|
||||
setFocused = _React$useState2[1];
|
||||
var onInternalFocus = function onInternalFocus() {
|
||||
setFocused(true);
|
||||
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
||||
};
|
||||
var onInternalBlur = function onInternalBlur() {
|
||||
setFocused(false);
|
||||
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
||||
};
|
||||
// =========================== Hover ============================
|
||||
var _React$useState3 = react.useState(null),
|
||||
_React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
|
||||
hoverValue = _React$useState4[0],
|
||||
setHoverValue = _React$useState4[1];
|
||||
var onHover = function onHover(event, index) {
|
||||
var nextHoverValue = getStarValue(index, event.pageX);
|
||||
if (nextHoverValue !== cleanedValue) {
|
||||
setHoverValue(nextHoverValue);
|
||||
setCleanedValue(null);
|
||||
}
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(nextHoverValue);
|
||||
};
|
||||
var onMouseLeaveCallback = function onMouseLeaveCallback(event) {
|
||||
if (!disabled) {
|
||||
setHoverValue(null);
|
||||
setCleanedValue(null);
|
||||
onHoverChange === null || onHoverChange === void 0 ? void 0 : onHoverChange(undefined);
|
||||
}
|
||||
if (event) {
|
||||
onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave(event);
|
||||
}
|
||||
};
|
||||
// =========================== Click ============================
|
||||
var onClick = function onClick(event, index) {
|
||||
var newValue = getStarValue(index, event.pageX);
|
||||
var isReset = false;
|
||||
if (allowClear) {
|
||||
isReset = newValue === value;
|
||||
}
|
||||
onMouseLeaveCallback();
|
||||
changeValue(isReset ? 0 : newValue);
|
||||
setCleanedValue(isReset ? newValue : null);
|
||||
};
|
||||
var onInternalKeyDown = function onInternalKeyDown(event) {
|
||||
var keyCode = event.keyCode;
|
||||
var reverse = direction === 'rtl';
|
||||
var nextValue = value;
|
||||
if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue < count && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue > 0 && !reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.RIGHT */.Z.RIGHT && nextValue > 0 && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue -= 0.5;
|
||||
} else {
|
||||
nextValue -= 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
} else if (keyCode === KeyCode/* default.LEFT */.Z.LEFT && nextValue < count && reverse) {
|
||||
if (allowHalf) {
|
||||
nextValue += 0.5;
|
||||
} else {
|
||||
nextValue += 1;
|
||||
}
|
||||
changeValue(nextValue);
|
||||
event.preventDefault();
|
||||
}
|
||||
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
||||
};
|
||||
// =========================== Effect ===========================
|
||||
react.useEffect(function () {
|
||||
if (autoFocus && !disabled) {
|
||||
triggerFocus();
|
||||
}
|
||||
}, []);
|
||||
// =========================== Render ===========================
|
||||
// >>> Star
|
||||
var starNodes = new Array(count).fill(0).map(function (item, index) {
|
||||
return /*#__PURE__*/react.createElement(es_Star, {
|
||||
ref: setStarRef(index),
|
||||
index: index,
|
||||
count: count,
|
||||
disabled: disabled,
|
||||
prefixCls: "".concat(prefixCls, "-star"),
|
||||
allowHalf: allowHalf,
|
||||
value: hoverValue === null ? value : hoverValue,
|
||||
onClick: onClick,
|
||||
onHover: onHover,
|
||||
key: item || index,
|
||||
character: character,
|
||||
characterRender: characterRender,
|
||||
focused: focused
|
||||
});
|
||||
});
|
||||
var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
// >>> Node
|
||||
return /*#__PURE__*/react.createElement("ul", (0,esm_extends/* default */.Z)({
|
||||
className: classString,
|
||||
onMouseLeave: onMouseLeaveCallback,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
onFocus: disabled ? null : onInternalFocus,
|
||||
onBlur: disabled ? null : onInternalBlur,
|
||||
onKeyDown: disabled ? null : onInternalKeyDown,
|
||||
ref: rateRef,
|
||||
role: "radiogroup"
|
||||
}, (0,pickAttrs/* default */.Z)(restProps, {
|
||||
aria: true,
|
||||
data: true,
|
||||
attr: true
|
||||
})), starNodes);
|
||||
}
|
||||
/* harmony default export */ var es_Rate = (/*#__PURE__*/react.forwardRef(Rate));
|
||||
;// CONCATENATED MODULE: ./node_modules/rc-rate/es/index.js
|
||||
|
||||
/* harmony default export */ var es = (es_Rate);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(83062);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/style/index.js
|
||||
|
||||
|
||||
const genRateStarStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`${componentCls}-star`]: {
|
||||
position: 'relative',
|
||||
display: 'inline-block',
|
||||
color: 'inherit',
|
||||
cursor: 'pointer',
|
||||
'&:not(:last-child)': {
|
||||
marginInlineEnd: token.marginXS
|
||||
},
|
||||
'> div': {
|
||||
transition: `all ${token.motionDurationMid}, outline 0s`,
|
||||
'&:hover': {
|
||||
transform: token.starHoverScale
|
||||
},
|
||||
'&:focus': {
|
||||
outline: 0
|
||||
},
|
||||
'&:focus-visible': {
|
||||
outline: `${token.lineWidth}px dashed ${token.starColor}`,
|
||||
transform: token.starHoverScale
|
||||
}
|
||||
},
|
||||
'&-first, &-second': {
|
||||
color: token.starBg,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
userSelect: 'none',
|
||||
[token.iconCls]: {
|
||||
verticalAlign: 'middle'
|
||||
}
|
||||
},
|
||||
'&-first': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '50%',
|
||||
height: '100%',
|
||||
overflow: 'hidden',
|
||||
opacity: 0
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-half ${componentCls}-star-second`]: {
|
||||
opacity: 1
|
||||
},
|
||||
[`&-half ${componentCls}-star-first, &-full ${componentCls}-star-second`]: {
|
||||
color: 'inherit'
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
const genRateRtlStyle = token => ({
|
||||
[`&-rtl${token.componentCls}`]: {
|
||||
direction: 'rtl'
|
||||
}
|
||||
});
|
||||
const genRateStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
display: 'inline-block',
|
||||
margin: 0,
|
||||
padding: 0,
|
||||
color: token.starColor,
|
||||
fontSize: token.starSize,
|
||||
lineHeight: 'unset',
|
||||
listStyle: 'none',
|
||||
outline: 'none',
|
||||
// disable styles
|
||||
[`&-disabled${componentCls} ${componentCls}-star`]: {
|
||||
cursor: 'default',
|
||||
'> div:hover': {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
}
|
||||
}), genRateStarStyle(token)), {
|
||||
// text styles
|
||||
[`+ ${componentCls}-text`]: {
|
||||
display: 'inline-block',
|
||||
marginInlineStart: token.marginXS,
|
||||
fontSize: token.fontSize
|
||||
}
|
||||
}), genRateRtlStyle(token))
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var rate_style = ((0,genComponentStyleHook/* default */.Z)('Rate', token => {
|
||||
const rateToken = (0,statistic/* merge */.TS)(token, {});
|
||||
return [genRateStyle(rateToken)];
|
||||
}, token => ({
|
||||
starColor: token.yellow6,
|
||||
starSize: token.controlHeightLG * 0.5,
|
||||
starHoverScale: 'scale(1.1)',
|
||||
starBg: token.colorFillContent
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/rate/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 rate_Rate = /*#__PURE__*/react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
tooltips,
|
||||
character = /*#__PURE__*/react.createElement(icons_StarFilled, null)
|
||||
} = props,
|
||||
rest = __rest(props, ["prefixCls", "className", "rootClassName", "style", "tooltips", "character"]);
|
||||
const characterRender = (node, _ref) => {
|
||||
let {
|
||||
index
|
||||
} = _ref;
|
||||
if (!tooltips) {
|
||||
return node;
|
||||
}
|
||||
return /*#__PURE__*/react.createElement(tooltip/* default */.Z, {
|
||||
title: tooltips[index]
|
||||
}, node);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
rate
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const ratePrefixCls = getPrefixCls('rate', prefixCls);
|
||||
// Style
|
||||
const [wrapSSR, hashId] = rate_style(ratePrefixCls);
|
||||
const mergedStyle = Object.assign(Object.assign({}, rate === null || rate === void 0 ? void 0 : rate.style), style);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(es, Object.assign({
|
||||
ref: ref,
|
||||
character: character,
|
||||
characterRender: characterRender
|
||||
}, rest, {
|
||||
className: classnames_default()(className, rootClassName, hashId, rate === null || rate === void 0 ? void 0 : rate.className),
|
||||
style: mergedStyle,
|
||||
prefixCls: ratePrefixCls,
|
||||
direction: direction
|
||||
})));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var rate = (rate_Rate);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue