diff --git a/27436.313d7d49.async.js b/27436.9d4fd297.async.js
similarity index 99%
rename from 27436.313d7d49.async.js
rename to 27436.9d4fd297.async.js
index d579d3779d..8805ec2b53 100644
--- a/27436.313d7d49.async.js
+++ b/27436.9d4fd297.async.js
@@ -1,4 +1,4 @@
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[27436],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[27436,6298],{
/***/ 80205:
/*!*******************************************************************************************************************!*\
diff --git a/98228.844b255b.async.js b/38359.35d3d6bd.async.js
similarity index 97%
rename from 98228.844b255b.async.js
rename to 38359.35d3d6bd.async.js
index 97dab2118f..a8e6315cdd 100644
--- a/98228.844b255b.async.js
+++ b/38359.35d3d6bd.async.js
@@ -1,10 +1,10 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[98228],{
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[38359],{
-/***/ 98228:
-/*!****************************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 17 modules ***!
- \****************************************************************************/
+/***/ 38359:
+/*!***************************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 1 modules ***!
+ \***************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -18,736 +18,1053 @@ __webpack_require__.d(__webpack_exports__, {
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(5891);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
-var toConsumableArray = __webpack_require__(26390);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/objectSpread2.js
-var objectSpread2 = __webpack_require__(57259);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
-var slicedToArray = __webpack_require__(29043);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/objectWithoutProperties.js
-var objectWithoutProperties = __webpack_require__(19149);
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/typeof.js
-var esm_typeof = __webpack_require__(80665);
-// EXTERNAL MODULE: ./node_modules/_rc-select@14.8.1@rc-select/es/index.js + 28 modules
-var es = __webpack_require__(77861);
-// EXTERNAL MODULE: ./node_modules/_rc-select@14.8.1@rc-select/es/hooks/useId.js
-var useId = __webpack_require__(17115);
-// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/conductUtil.js
-var conductUtil = __webpack_require__(90782);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/hooks/useMergedState.js
-var useMergedState = __webpack_require__(35788);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/warning.js
-var es_warning = __webpack_require__(51395);
+// EXTERNAL MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/index.js + 15 modules
+var es = __webpack_require__(12705);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/omit.js
+var omit = __webpack_require__(64002);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useCache.js
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/PurePanel.js
+var PurePanel = __webpack_require__(53487);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js
+var motion = __webpack_require__(62892);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/statusUtils.js
+var statusUtils = __webpack_require__(19080);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
+var context = __webpack_require__(36355);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
+var DisabledContext = __webpack_require__(1684);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/defaultRenderEmpty.js
+var defaultRenderEmpty = __webpack_require__(93891);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
+var useSize = __webpack_require__(19716);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
+var form_context = __webpack_require__(32441);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/style/index.js + 3 modules
+var style = __webpack_require__(14154);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/useBuiltinPlacements.js
+var useBuiltinPlacements = __webpack_require__(58582);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/useShowArrow.js
+var useShowArrow = __webpack_require__(84443);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/utils/iconUtil.js
+var iconUtil = __webpack_require__(66339);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
+var Compact = __webpack_require__(33234);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules
+var utils_iconUtil = __webpack_require__(48610);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js
+var checkbox_style = __webpack_require__(98447);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
+var statistic = __webpack_require__(37613);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
+var genComponentStyleHook = __webpack_require__(83116);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js
+var tree_style = __webpack_require__(20648);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/style/index.js
-/**
- * This function will try to call requestIdleCallback if available to save performance.
- * No need `getLabel` here since already fetch on `rawLabeledValue`.
- */
-/* harmony default export */ var useCache = (function (values) {
- var cacheRef = _react_17_0_2_react.useRef({
- valueLabels: new Map()
- });
- return _react_17_0_2_react.useMemo(function () {
- var valueLabels = cacheRef.current.valueLabels;
- var valueLabelsCache = new Map();
- var filledValues = values.map(function (item) {
- var _item$label;
- var value = item.value;
- var mergedLabel = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : valueLabels.get(value);
- // Save in cache
- valueLabelsCache.set(value, mergedLabel);
- return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item), {}, {
- label: mergedLabel
- });
+// =============================== Base ===============================
+const genBaseStyle = token => {
+ const {
+ componentCls,
+ treePrefixCls,
+ colorBgElevated
+ } = token;
+ const treeCls = `.${treePrefixCls}`;
+ return [
+ // ======================================================
+ // == Dropdown ==
+ // ======================================================
+ {
+ [`${componentCls}-dropdown`]: [{
+ padding: `${token.paddingXS}px ${token.paddingXS / 2}px`
+ },
+ // ====================== Tree ======================
+ (0,tree_style/* genTreeStyle */.Yk)(treePrefixCls, (0,statistic/* merge */.TS)(token, {
+ colorBgContainer: colorBgElevated
+ })), {
+ [treeCls]: {
+ borderRadius: 0,
+ [`${treeCls}-list-holder-inner`]: {
+ alignItems: 'stretch',
+ [`${treeCls}-treenode`]: {
+ [`${treeCls}-node-content-wrapper`]: {
+ flex: 'auto'
+ }
+ }
+ }
+ }
+ },
+ // ==================== Checkbox ====================
+ (0,checkbox_style/* getStyle */.C2)(`${treePrefixCls}-checkbox`, token),
+ // ====================== RTL =======================
+ {
+ '&-rtl': {
+ direction: 'rtl',
+ [`${treeCls}-switcher${treeCls}-switcher_close`]: {
+ [`${treeCls}-switcher-icon svg`]: {
+ transform: 'rotate(90deg)'
+ }
+ }
+ }
+ }]
+ }];
+};
+// ============================== Export ==============================
+function useTreeSelectStyle(prefixCls, treePrefixCls) {
+ return (0,genComponentStyleHook/* default */.Z)('TreeSelect', token => {
+ const treeSelectToken = (0,statistic/* merge */.TS)(token, {
+ treePrefixCls
});
- cacheRef.current.valueLabels = valueLabelsCache;
- return [filledValues];
- }, [values]);
-});
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useCheckedKeys.js
+ return [genBaseStyle(treeSelectToken)];
+ }, tree_style/* initComponentToken */.TM)(prefixCls);
+}
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/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;
+};
-/* harmony default export */ var useCheckedKeys = (function (rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities) {
- return _react_17_0_2_react.useMemo(function () {
- var checkedKeys = rawLabeledValues.map(function (_ref) {
- var value = _ref.value;
- return value;
- });
- var halfCheckedKeys = rawHalfCheckedValues.map(function (_ref2) {
- var value = _ref2.value;
- return value;
- });
- var missingValues = checkedKeys.filter(function (key) {
- return !keyEntities[key];
- });
- if (treeConduction) {
- var _conductCheck = (0,conductUtil/* conductCheck */.S)(checkedKeys, true, keyEntities);
- checkedKeys = _conductCheck.checkedKeys;
- halfCheckedKeys = _conductCheck.halfCheckedKeys;
- }
- return [
- // Checked keys should fill with missing keys which should de-duplicated
- Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(missingValues), (0,toConsumableArray/* default */.Z)(checkedKeys)))),
- // Half checked keys
- halfCheckedKeys];
- }, [rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities]);
-});
-// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js
-var treeUtil = __webpack_require__(71430);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useDataEntities.js
-/* harmony default export */ var useDataEntities = (function (treeData, fieldNames) {
- return _react_17_0_2_react.useMemo(function () {
- var collection = (0,treeUtil/* convertDataToEntities */.I8)(treeData, {
- fieldNames: fieldNames,
- initWrapper: function initWrapper(wrapper) {
- return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, wrapper), {}, {
- valueEntities: new Map()
- });
- },
- processEntity: function processEntity(entity, wrapper) {
- var val = entity.node[fieldNames.value];
- // Check if exist same value
- if (false) { var key; }
- wrapper.valueEntities.set(val, entity);
- }
- });
- return collection;
- }, [treeData, fieldNames]);
-});
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/defineProperty.js
-var defineProperty = __webpack_require__(80962);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/Children/toArray.js
-var Children_toArray = __webpack_require__(38298);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeNode.js
-/* istanbul ignore file */
-/** This is a placeholder, not real render in dom */
-var TreeNode = function TreeNode() {
- return null;
-};
-/* harmony default export */ var es_TreeNode = (TreeNode);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/legacyUtil.js
-var _excluded = ["children", "value"];
-function convertChildrenToData(nodes) {
- return (0,Children_toArray/* default */.Z)(nodes).map(function (node) {
- if (! /*#__PURE__*/_react_17_0_2_react.isValidElement(node) || !node.type) {
- return null;
- }
- var _ref = node,
- key = _ref.key,
- _ref$props = _ref.props,
- children = _ref$props.children,
- value = _ref$props.value,
- restProps = (0,objectWithoutProperties/* default */.Z)(_ref$props, _excluded);
- var data = (0,objectSpread2/* default */.Z)({
- key: key,
- value: value
- }, restProps);
- var childData = convertChildrenToData(children);
- if (childData.length) {
- data.children = childData;
- }
- return data;
- }).filter(function (data) {
- return data;
- });
-}
-function fillLegacyProps(dataNode) {
- if (!dataNode) {
- return dataNode;
- }
- var cloneNode = (0,objectSpread2/* default */.Z)({}, dataNode);
- if (!('props' in cloneNode)) {
- Object.defineProperty(cloneNode, 'props', {
- get: function get() {
- (0,es_warning/* default */.ZP)(false, 'New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access.');
- return cloneNode;
- }
- });
- }
- return cloneNode;
-}
-function fillAdditionalInfo(extra, triggerValue, checkedValues, treeData, showPosition, fieldNames) {
- var triggerNode = null;
- var nodeList = null;
- function generateMap() {
- function dig(list) {
- var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
- var parentIncluded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
- return list.map(function (option, index) {
- var pos = "".concat(level, "-").concat(index);
- var value = option[fieldNames.value];
- var included = checkedValues.includes(value);
- var children = dig(option[fieldNames.children] || [], pos, included);
- var node = /*#__PURE__*/_react_17_0_2_react.createElement(es_TreeNode, option, children.map(function (child) {
- return child.node;
- }));
- // Link with trigger node
- if (triggerValue === value) {
- triggerNode = node;
- }
- if (included) {
- var checkedNode = {
- pos: pos,
- node: node,
- children: children
- };
- if (!parentIncluded) {
- nodeList.push(checkedNode);
- }
- return checkedNode;
- }
- return null;
- }).filter(function (node) {
- return node;
- });
- }
- if (!nodeList) {
- nodeList = [];
- dig(treeData);
- // Sort to keep the checked node length
- nodeList.sort(function (_ref2, _ref3) {
- var val1 = _ref2.node.props.value;
- var val2 = _ref3.node.props.value;
- var index1 = checkedValues.indexOf(val1);
- var index2 = checkedValues.indexOf(val2);
- return index1 - index2;
- });
- }
+
+
+
+const InternalTreeSelect = (_a, ref) => {
+ var _b;
+ var {
+ prefixCls: customizePrefixCls,
+ size: customizeSize,
+ disabled: customDisabled,
+ bordered = true,
+ className,
+ rootClassName,
+ treeCheckable,
+ multiple,
+ listHeight = 256,
+ listItemHeight = 26,
+ placement,
+ notFoundContent,
+ switcherIcon,
+ treeLine,
+ getPopupContainer,
+ popupClassName,
+ dropdownClassName,
+ treeIcon = false,
+ transitionName,
+ choiceTransitionName = '',
+ status: customStatus,
+ treeExpandAction,
+ builtinPlacements,
+ dropdownMatchSelectWidth,
+ popupMatchSelectWidth,
+ allowClear
+ } = _a,
+ props = __rest(_a, ["prefixCls", "size", "disabled", "bordered", "className", "rootClassName", "treeCheckable", "multiple", "listHeight", "listItemHeight", "placement", "notFoundContent", "switcherIcon", "treeLine", "getPopupContainer", "popupClassName", "dropdownClassName", "treeIcon", "transitionName", "choiceTransitionName", "status", "treeExpandAction", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "allowClear"]);
+ const {
+ getPopupContainer: getContextPopupContainer,
+ getPrefixCls,
+ renderEmpty,
+ direction,
+ virtual,
+ popupMatchSelectWidth: contextPopupMatchSelectWidth,
+ popupOverflow
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ if (false) {}
+ const rootPrefixCls = getPrefixCls();
+ const prefixCls = getPrefixCls('select', customizePrefixCls);
+ const treePrefixCls = getPrefixCls('select-tree', customizePrefixCls);
+ const treeSelectPrefixCls = getPrefixCls('tree-select', customizePrefixCls);
+ const {
+ compactSize,
+ compactItemClassnames
+ } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
+ const [wrapSelectSSR, hashId] = (0,style/* default */.Z)(prefixCls);
+ const [wrapTreeSelectSSR] = useTreeSelectStyle(treeSelectPrefixCls, treePrefixCls);
+ const mergedDropdownClassName = _classnames_2_5_1_classnames_default()(popupClassName || dropdownClassName, `${treeSelectPrefixCls}-dropdown`, {
+ [`${treeSelectPrefixCls}-dropdown-rtl`]: direction === 'rtl'
+ }, rootClassName, hashId);
+ const isMultiple = !!(treeCheckable || multiple);
+ const showSuffixIcon = (0,useShowArrow/* default */.Z)(props.suffixIcon, props.showArrow);
+ const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
+ // ===================== Form =====================
+ const {
+ status: contextStatus,
+ hasFeedback,
+ isFormItemInput,
+ feedbackIcon
+ } = _react_17_0_2_react.useContext(form_context/* FormItemInputContext */.aM);
+ const mergedStatus = (0,statusUtils/* getMergedStatus */.F)(contextStatus, customStatus);
+ // ===================== Icons =====================
+ const {
+ suffixIcon,
+ removeIcon,
+ clearIcon
+ } = (0,iconUtil/* default */.Z)(Object.assign(Object.assign({}, props), {
+ multiple: isMultiple,
+ showSuffixIcon,
+ hasFeedback,
+ feedbackIcon,
+ prefixCls,
+ componentName: 'TreeSelect'
+ }));
+ const mergedAllowClear = allowClear === true ? {
+ clearIcon
+ } : allowClear;
+ // ===================== Empty =====================
+ let mergedNotFound;
+ if (notFoundContent !== undefined) {
+ mergedNotFound = notFoundContent;
+ } else {
+ mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/_react_17_0_2_react.createElement(defaultRenderEmpty/* default */.Z, {
+ componentName: "Select"
+ });
}
- Object.defineProperty(extra, 'triggerNode', {
- get: function get() {
- (0,es_warning/* default */.ZP)(false, '`triggerNode` is deprecated. Please consider decoupling data with node.');
- generateMap();
- return triggerNode;
+ // ==================== Render =====================
+ const selectProps = (0,omit/* default */.Z)(props, ['suffixIcon', 'itemIcon', 'removeIcon', 'clearIcon', 'switcherIcon']);
+ // ===================== Placement =====================
+ const memoizedPlacement = _react_17_0_2_react.useMemo(() => {
+ if (placement !== undefined) {
+ return placement;
}
+ return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
+ }, [placement, direction]);
+ const mergedBuiltinPlacements = (0,useBuiltinPlacements/* default */.Z)(builtinPlacements, popupOverflow);
+ const mergedSize = (0,useSize/* default */.Z)(ctx => {
+ var _a;
+ return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
- Object.defineProperty(extra, 'allCheckedNodes', {
- get: function get() {
- (0,es_warning/* default */.ZP)(false, '`allCheckedNodes` is deprecated. Please consider decoupling data with node.');
- generateMap();
- if (showPosition) {
- return nodeList;
- }
- return nodeList.map(function (_ref4) {
- var node = _ref4.node;
- return node;
- });
- }
+ // ===================== Disabled =====================
+ const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
+ const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
+ const mergedClassName = _classnames_2_5_1_classnames_default()(!customizePrefixCls && treeSelectPrefixCls, {
+ [`${prefixCls}-lg`]: mergedSize === 'large',
+ [`${prefixCls}-sm`]: mergedSize === 'small',
+ [`${prefixCls}-rtl`]: direction === 'rtl',
+ [`${prefixCls}-borderless`]: !bordered,
+ [`${prefixCls}-in-form-item`]: isFormItemInput
+ }, (0,statusUtils/* getStatusClassNames */.Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, className, rootClassName, hashId);
+ const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(utils_iconUtil/* default */.Z, {
+ prefixCls: treePrefixCls,
+ switcherIcon: switcherIcon,
+ treeNodeProps: nodeProps,
+ showLine: treeLine
});
-}
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useFilterTreeData.js
+ const returnNode = /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.ZP, Object.assign({
+ virtual: virtual,
+ disabled: mergedDisabled
+ }, selectProps, {
+ dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
+ builtinPlacements: mergedBuiltinPlacements,
+ ref: ref,
+ prefixCls: prefixCls,
+ className: mergedClassName,
+ listHeight: listHeight,
+ listItemHeight: listItemHeight,
+ treeCheckable: treeCheckable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
+ className: `${prefixCls}-tree-checkbox-inner`
+ }) : treeCheckable,
+ treeLine: !!treeLine,
+ suffixIcon: suffixIcon,
+ multiple: isMultiple,
+ placement: memoizedPlacement,
+ removeIcon: removeIcon,
+ allowClear: mergedAllowClear,
+ switcherIcon: renderSwitcherIcon,
+ showTreeIcon: treeIcon,
+ notFoundContent: mergedNotFound,
+ getPopupContainer: getPopupContainer || getContextPopupContainer,
+ treeMotion: null,
+ dropdownClassName: mergedDropdownClassName,
+ choiceTransitionName: (0,motion/* getTransitionName */.m)(rootPrefixCls, '', choiceTransitionName),
+ transitionName: (0,motion/* getTransitionName */.m)(rootPrefixCls, 'slide-up', transitionName),
+ treeExpandAction: treeExpandAction
+ }));
+ return wrapSelectSSR(wrapTreeSelectSSR(returnNode));
+};
+const TreeSelectRef = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalTreeSelect);
+const TreeSelect = TreeSelectRef;
+// We don't care debug panel
+/* istanbul ignore next */
+const tree_select_PurePanel = (0,PurePanel/* default */.Z)(TreeSelect);
+TreeSelect.TreeNode = es/* TreeNode */.OF;
+TreeSelect.SHOW_ALL = es/* SHOW_ALL */.Qw;
+TreeSelect.SHOW_PARENT = es/* SHOW_PARENT */.hT;
+TreeSelect.SHOW_CHILD = es/* SHOW_CHILD */.FJ;
+TreeSelect._InternalPanelDoNotUseOrYouWillBeFired = tree_select_PurePanel;
+if (false) {}
+/* harmony default export */ var tree_select = (TreeSelect);
+/***/ }),
+/***/ 12705:
+/*!*************************************************************************************!*\
+ !*** ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/index.js + 15 modules ***!
+ \*************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-/* harmony default export */ var useFilterTreeData = (function (treeData, searchValue, _ref) {
- var treeNodeFilterProp = _ref.treeNodeFilterProp,
- filterTreeNode = _ref.filterTreeNode,
- fieldNames = _ref.fieldNames;
- var fieldChildren = fieldNames.children;
- return _react_17_0_2_react.useMemo(function () {
- if (!searchValue || filterTreeNode === false) {
- return treeData;
- }
- var filterOptionFunc;
- if (typeof filterTreeNode === 'function') {
- filterOptionFunc = filterTreeNode;
- } else {
- var upperStr = searchValue.toUpperCase();
- filterOptionFunc = function filterOptionFunc(_, dataNode) {
- var value = dataNode[treeNodeFilterProp];
- return String(value).toUpperCase().includes(upperStr);
- };
- }
- function dig(list) {
- var keepAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
- return list.reduce(function (total, dataNode) {
- var children = dataNode[fieldChildren];
- var match = keepAll || filterOptionFunc(searchValue, fillLegacyProps(dataNode));
- var childList = dig(children || [], match);
- if (match || childList.length) {
- total.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, dataNode), {}, (0,defineProperty/* default */.Z)({
- isLeaf: undefined
- }, fieldChildren, childList)));
- }
- return total;
- }, []);
- }
- return dig(treeData);
- }, [treeData, searchValue, fieldChildren, treeNodeFilterProp, filterTreeNode]);
-});
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useRefFunc.js
-
-
-/**
- * Same as `React.useCallback` but always return a memoized function
- * but redirect to real function.
- */
-function useRefFunc(callback) {
- var funcRef = _react_17_0_2_react.useRef();
- funcRef.current = callback;
- var cacheFn = _react_17_0_2_react.useCallback(function () {
- return funcRef.current.apply(funcRef, arguments);
- }, []);
- return cacheFn;
-}
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useTreeData.js
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Qw: function() { return /* reexport */ SHOW_ALL; },
+ FJ: function() { return /* reexport */ SHOW_CHILD; },
+ hT: function() { return /* reexport */ SHOW_PARENT; },
+ OF: function() { return /* reexport */ es_TreeNode; },
+ ZP: function() { return /* binding */ _rc_tree_select_5_12_1_rc_tree_select_es; }
+});
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(5891);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
+var toConsumableArray = __webpack_require__(26390);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/objectSpread2.js
+var objectSpread2 = __webpack_require__(57259);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
+var slicedToArray = __webpack_require__(29043);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/objectWithoutProperties.js
+var objectWithoutProperties = __webpack_require__(19149);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/typeof.js
+var esm_typeof = __webpack_require__(80665);
+// EXTERNAL MODULE: ./node_modules/_rc-select@14.8.1@rc-select/es/index.js + 28 modules
+var es = __webpack_require__(77861);
+// EXTERNAL MODULE: ./node_modules/_rc-select@14.8.1@rc-select/es/hooks/useId.js
+var useId = __webpack_require__(17115);
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/conductUtil.js
+var conductUtil = __webpack_require__(90782);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/hooks/useMergedState.js
+var useMergedState = __webpack_require__(35788);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/warning.js
+var es_warning = __webpack_require__(51395);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useCache.js
-function parseSimpleTreeData(treeData, _ref) {
- var id = _ref.id,
- pId = _ref.pId,
- rootPId = _ref.rootPId;
- var keyNodes = {};
- var rootNodeList = [];
- // Fill in the map
- var nodeList = treeData.map(function (node) {
- var clone = (0,objectSpread2/* default */.Z)({}, node);
- var key = clone[id];
- keyNodes[key] = clone;
- clone.key = clone.key || key;
- return clone;
+/**
+ * This function will try to call requestIdleCallback if available to save performance.
+ * No need `getLabel` here since already fetch on `rawLabeledValue`.
+ */
+/* harmony default export */ var useCache = (function (values) {
+ var cacheRef = _react_17_0_2_react.useRef({
+ valueLabels: new Map()
});
+ return _react_17_0_2_react.useMemo(function () {
+ var valueLabels = cacheRef.current.valueLabels;
+ var valueLabelsCache = new Map();
+ var filledValues = values.map(function (item) {
+ var _item$label;
+ var value = item.value;
+ var mergedLabel = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : valueLabels.get(value);
- // Connect tree
- nodeList.forEach(function (node) {
- var parentKey = node[pId];
- var parent = keyNodes[parentKey];
+ // Save in cache
+ valueLabelsCache.set(value, mergedLabel);
+ return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item), {}, {
+ label: mergedLabel
+ });
+ });
+ cacheRef.current.valueLabels = valueLabelsCache;
+ return [filledValues];
+ }, [values]);
+});
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useCheckedKeys.js
- // Fill parent
- if (parent) {
- parent.children = parent.children || [];
- parent.children.push(node);
- }
- // Fill root tree node
- if (parentKey === rootPId || !parent && rootPId === null) {
- rootNodeList.push(node);
- }
- });
- return rootNodeList;
-}
-/**
- * Convert `treeData` or `children` into formatted `treeData`.
- * Will not re-calculate if `treeData` or `children` not change.
- */
-function useTreeData(treeData, children, simpleMode) {
+/* harmony default export */ var useCheckedKeys = (function (rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities) {
return _react_17_0_2_react.useMemo(function () {
- if (treeData) {
- return simpleMode ? parseSimpleTreeData(treeData, (0,objectSpread2/* default */.Z)({
- id: 'id',
- pId: 'pId',
- rootPId: null
- }, simpleMode !== true ? simpleMode : {})) : treeData;
+ var checkedKeys = rawLabeledValues.map(function (_ref) {
+ var value = _ref.value;
+ return value;
+ });
+ var halfCheckedKeys = rawHalfCheckedValues.map(function (_ref2) {
+ var value = _ref2.value;
+ return value;
+ });
+ var missingValues = checkedKeys.filter(function (key) {
+ return !keyEntities[key];
+ });
+ if (treeConduction) {
+ var _conductCheck = (0,conductUtil/* conductCheck */.S)(checkedKeys, true, keyEntities);
+ checkedKeys = _conductCheck.checkedKeys;
+ halfCheckedKeys = _conductCheck.halfCheckedKeys;
}
- return convertChildrenToData(children);
- }, [children, simpleMode, treeData]);
-}
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/LegacyContext.js
-
-var LegacySelectContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
-/* harmony default export */ var LegacyContext = (LegacySelectContext);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/KeyCode.js
-var KeyCode = __webpack_require__(85108);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/hooks/useMemo.js
-var useMemo = __webpack_require__(79722);
-// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules
-var _rc_tree_5_7_12_rc_tree_es = __webpack_require__(99581);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeSelectContext.js
+ return [
+ // Checked keys should fill with missing keys which should de-duplicated
+ Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(missingValues), (0,toConsumableArray/* default */.Z)(checkedKeys)))),
+ // Half checked keys
+ halfCheckedKeys];
+ }, [rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities]);
+});
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js
+var treeUtil = __webpack_require__(71430);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useDataEntities.js
-var TreeSelectContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
-/* harmony default export */ var es_TreeSelectContext = (TreeSelectContext);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/valueUtil.js
-function valueUtil_toArray(value) {
- if (Array.isArray(value)) {
- return value;
- }
- return value !== undefined ? [value] : [];
-}
-function fillFieldNames(fieldNames) {
- var _ref = fieldNames || {},
- label = _ref.label,
- value = _ref.value,
- children = _ref.children;
- var mergedValue = value || 'value';
- return {
- _title: label ? [label] : ['title', 'label'],
- value: mergedValue,
- key: mergedValue,
- children: children || 'children'
- };
-}
-function isCheckDisabled(node) {
- return !node || node.disabled || node.disableCheckbox || node.checkable === false;
-}
-/** Loop fetch all the keys exist in the tree */
-function getAllKeys(treeData, fieldNames) {
- var keys = [];
- function dig(list) {
- list.forEach(function (item) {
- var children = item[fieldNames.children];
- if (children) {
- keys.push(item[fieldNames.value]);
- dig(children);
- }
- });
- }
- dig(treeData);
- return keys;
-}
-function isNil(val) {
- return val === null || val === undefined;
-}
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/OptionList.js
+/* harmony default export */ var useDataEntities = (function (treeData, fieldNames) {
+ return _react_17_0_2_react.useMemo(function () {
+ var collection = (0,treeUtil/* convertDataToEntities */.I8)(treeData, {
+ fieldNames: fieldNames,
+ initWrapper: function initWrapper(wrapper) {
+ return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, wrapper), {}, {
+ valueEntities: new Map()
+ });
+ },
+ processEntity: function processEntity(entity, wrapper) {
+ var val = entity.node[fieldNames.value];
+ // Check if exist same value
+ if (false) { var key; }
+ wrapper.valueEntities.set(val, entity);
+ }
+ });
+ return collection;
+ }, [treeData, fieldNames]);
+});
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/defineProperty.js
+var defineProperty = __webpack_require__(80962);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/Children/toArray.js
+var Children_toArray = __webpack_require__(38298);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeNode.js
+/* istanbul ignore file */
+/** This is a placeholder, not real render in dom */
+var TreeNode = function TreeNode() {
+ return null;
+};
+/* harmony default export */ var es_TreeNode = (TreeNode);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/legacyUtil.js
+var _excluded = ["children", "value"];
-var HIDDEN_STYLE = {
- width: 0,
- height: 0,
- display: 'flex',
- overflow: 'hidden',
- opacity: 0,
- border: 0,
- padding: 0,
- margin: 0
-};
-var OptionList = function OptionList(_, ref) {
- var _useBaseProps = (0,es/* useBaseProps */.lk)(),
- prefixCls = _useBaseProps.prefixCls,
- multiple = _useBaseProps.multiple,
- searchValue = _useBaseProps.searchValue,
- toggleOpen = _useBaseProps.toggleOpen,
- open = _useBaseProps.open,
- notFoundContent = _useBaseProps.notFoundContent;
- var _React$useContext = _react_17_0_2_react.useContext(es_TreeSelectContext),
- virtual = _React$useContext.virtual,
- listHeight = _React$useContext.listHeight,
- listItemHeight = _React$useContext.listItemHeight,
- treeData = _React$useContext.treeData,
- fieldNames = _React$useContext.fieldNames,
- onSelect = _React$useContext.onSelect,
- dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth,
- treeExpandAction = _React$useContext.treeExpandAction;
- var _React$useContext2 = _react_17_0_2_react.useContext(LegacyContext),
- checkable = _React$useContext2.checkable,
- checkedKeys = _React$useContext2.checkedKeys,
- halfCheckedKeys = _React$useContext2.halfCheckedKeys,
- treeExpandedKeys = _React$useContext2.treeExpandedKeys,
- treeDefaultExpandAll = _React$useContext2.treeDefaultExpandAll,
- treeDefaultExpandedKeys = _React$useContext2.treeDefaultExpandedKeys,
- onTreeExpand = _React$useContext2.onTreeExpand,
- treeIcon = _React$useContext2.treeIcon,
- showTreeIcon = _React$useContext2.showTreeIcon,
- switcherIcon = _React$useContext2.switcherIcon,
- treeLine = _React$useContext2.treeLine,
- treeNodeFilterProp = _React$useContext2.treeNodeFilterProp,
- loadData = _React$useContext2.loadData,
- treeLoadedKeys = _React$useContext2.treeLoadedKeys,
- treeMotion = _React$useContext2.treeMotion,
- onTreeLoad = _React$useContext2.onTreeLoad,
- keyEntities = _React$useContext2.keyEntities;
- var treeRef = _react_17_0_2_react.useRef();
- var memoTreeData = (0,useMemo/* default */.Z)(function () {
- return treeData;
- }, [open, treeData], function (prev, next) {
- return next[0] && prev[1] !== next[1];
- });
-
- // ========================== Active ==========================
- var _React$useState = _react_17_0_2_react.useState(null),
- _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
- activeKey = _React$useState2[0],
- setActiveKey = _React$useState2[1];
- var activeEntity = keyEntities[activeKey];
-
- // ========================== Values ==========================
- var mergedCheckedKeys = _react_17_0_2_react.useMemo(function () {
- if (!checkable) {
+function convertChildrenToData(nodes) {
+ return (0,Children_toArray/* default */.Z)(nodes).map(function (node) {
+ if (! /*#__PURE__*/_react_17_0_2_react.isValidElement(node) || !node.type) {
return null;
}
- return {
- checked: checkedKeys,
- halfChecked: halfCheckedKeys
- };
- }, [checkable, checkedKeys, halfCheckedKeys]);
-
- // ========================== Scroll ==========================
- _react_17_0_2_react.useEffect(function () {
- // Single mode should scroll to current key
- if (open && !multiple && checkedKeys.length) {
- var _treeRef$current;
- (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.scrollTo({
- key: checkedKeys[0]
- });
- setActiveKey(checkedKeys[0]);
+ var _ref = node,
+ key = _ref.key,
+ _ref$props = _ref.props,
+ children = _ref$props.children,
+ value = _ref$props.value,
+ restProps = (0,objectWithoutProperties/* default */.Z)(_ref$props, _excluded);
+ var data = (0,objectSpread2/* default */.Z)({
+ key: key,
+ value: value
+ }, restProps);
+ var childData = convertChildrenToData(children);
+ if (childData.length) {
+ data.children = childData;
}
- }, [open]);
+ return data;
+ }).filter(function (data) {
+ return data;
+ });
+}
+function fillLegacyProps(dataNode) {
+ if (!dataNode) {
+ return dataNode;
+ }
+ var cloneNode = (0,objectSpread2/* default */.Z)({}, dataNode);
+ if (!('props' in cloneNode)) {
+ Object.defineProperty(cloneNode, 'props', {
+ get: function get() {
+ (0,es_warning/* default */.ZP)(false, 'New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access.');
+ return cloneNode;
+ }
+ });
+ }
+ return cloneNode;
+}
+function fillAdditionalInfo(extra, triggerValue, checkedValues, treeData, showPosition, fieldNames) {
+ var triggerNode = null;
+ var nodeList = null;
+ function generateMap() {
+ function dig(list) {
+ var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
+ var parentIncluded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
+ return list.map(function (option, index) {
+ var pos = "".concat(level, "-").concat(index);
+ var value = option[fieldNames.value];
+ var included = checkedValues.includes(value);
+ var children = dig(option[fieldNames.children] || [], pos, included);
+ var node = /*#__PURE__*/_react_17_0_2_react.createElement(es_TreeNode, option, children.map(function (child) {
+ return child.node;
+ }));
- // ========================== Search ==========================
- var lowerSearchValue = String(searchValue).toLowerCase();
- var filterTreeNode = function filterTreeNode(treeNode) {
- if (!lowerSearchValue) {
- return false;
+ // Link with trigger node
+ if (triggerValue === value) {
+ triggerNode = node;
+ }
+ if (included) {
+ var checkedNode = {
+ pos: pos,
+ node: node,
+ children: children
+ };
+ if (!parentIncluded) {
+ nodeList.push(checkedNode);
+ }
+ return checkedNode;
+ }
+ return null;
+ }).filter(function (node) {
+ return node;
+ });
}
- return String(treeNode[treeNodeFilterProp]).toLowerCase().includes(lowerSearchValue);
- };
+ if (!nodeList) {
+ nodeList = [];
+ dig(treeData);
- // =========================== Keys ===========================
- var _React$useState3 = _react_17_0_2_react.useState(treeDefaultExpandedKeys),
- _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
- expandedKeys = _React$useState4[0],
- setExpandedKeys = _React$useState4[1];
- var _React$useState5 = _react_17_0_2_react.useState(null),
- _React$useState6 = (0,slicedToArray/* default */.Z)(_React$useState5, 2),
- searchExpandedKeys = _React$useState6[0],
- setSearchExpandedKeys = _React$useState6[1];
- var mergedExpandedKeys = _react_17_0_2_react.useMemo(function () {
- if (treeExpandedKeys) {
- return (0,toConsumableArray/* default */.Z)(treeExpandedKeys);
+ // Sort to keep the checked node length
+ nodeList.sort(function (_ref2, _ref3) {
+ var val1 = _ref2.node.props.value;
+ var val2 = _ref3.node.props.value;
+ var index1 = checkedValues.indexOf(val1);
+ var index2 = checkedValues.indexOf(val2);
+ return index1 - index2;
+ });
}
- return searchValue ? searchExpandedKeys : expandedKeys;
- }, [expandedKeys, searchExpandedKeys, treeExpandedKeys, searchValue]);
- _react_17_0_2_react.useEffect(function () {
- if (searchValue) {
- setSearchExpandedKeys(getAllKeys(treeData, fieldNames));
+ }
+ Object.defineProperty(extra, 'triggerNode', {
+ get: function get() {
+ (0,es_warning/* default */.ZP)(false, '`triggerNode` is deprecated. Please consider decoupling data with node.');
+ generateMap();
+ return triggerNode;
}
- }, [searchValue]);
- var onInternalExpand = function onInternalExpand(keys) {
- setExpandedKeys(keys);
- setSearchExpandedKeys(keys);
- if (onTreeExpand) {
- onTreeExpand(keys);
+ });
+ Object.defineProperty(extra, 'allCheckedNodes', {
+ get: function get() {
+ (0,es_warning/* default */.ZP)(false, '`allCheckedNodes` is deprecated. Please consider decoupling data with node.');
+ generateMap();
+ if (showPosition) {
+ return nodeList;
+ }
+ return nodeList.map(function (_ref4) {
+ var node = _ref4.node;
+ return node;
+ });
}
- };
+ });
+}
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useFilterTreeData.js
- // ========================== Events ==========================
- var onListMouseDown = function onListMouseDown(event) {
- event.preventDefault();
- };
- var onInternalSelect = function onInternalSelect(__, info) {
- var node = info.node;
- if (checkable && isCheckDisabled(node)) {
- return;
+
+
+
+/* harmony default export */ var useFilterTreeData = (function (treeData, searchValue, _ref) {
+ var treeNodeFilterProp = _ref.treeNodeFilterProp,
+ filterTreeNode = _ref.filterTreeNode,
+ fieldNames = _ref.fieldNames;
+ var fieldChildren = fieldNames.children;
+ return _react_17_0_2_react.useMemo(function () {
+ if (!searchValue || filterTreeNode === false) {
+ return treeData;
}
- onSelect(node.key, {
- selected: !checkedKeys.includes(node.key)
- });
- if (!multiple) {
- toggleOpen(false);
+ var filterOptionFunc;
+ if (typeof filterTreeNode === 'function') {
+ filterOptionFunc = filterTreeNode;
+ } else {
+ var upperStr = searchValue.toUpperCase();
+ filterOptionFunc = function filterOptionFunc(_, dataNode) {
+ var value = dataNode[treeNodeFilterProp];
+ return String(value).toUpperCase().includes(upperStr);
+ };
}
- };
+ function dig(list) {
+ var keepAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+ return list.reduce(function (total, dataNode) {
+ var children = dataNode[fieldChildren];
+ var match = keepAll || filterOptionFunc(searchValue, fillLegacyProps(dataNode));
+ var childList = dig(children || [], match);
+ if (match || childList.length) {
+ total.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, dataNode), {}, (0,defineProperty/* default */.Z)({
+ isLeaf: undefined
+ }, fieldChildren, childList)));
+ }
+ return total;
+ }, []);
+ }
+ return dig(treeData);
+ }, [treeData, searchValue, fieldChildren, treeNodeFilterProp, filterTreeNode]);
+});
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useRefFunc.js
- // ========================= Keyboard =========================
- _react_17_0_2_react.useImperativeHandle(ref, function () {
- var _treeRef$current2;
- return {
- scrollTo: (_treeRef$current2 = treeRef.current) === null || _treeRef$current2 === void 0 ? void 0 : _treeRef$current2.scrollTo,
- onKeyDown: function onKeyDown(event) {
- var _treeRef$current3;
- var which = event.which;
- switch (which) {
- // >>> Arrow keys
- case KeyCode/* default */.Z.UP:
- case KeyCode/* default */.Z.DOWN:
- case KeyCode/* default */.Z.LEFT:
- case KeyCode/* default */.Z.RIGHT:
- (_treeRef$current3 = treeRef.current) === null || _treeRef$current3 === void 0 ? void 0 : _treeRef$current3.onKeyDown(event);
- break;
- // >>> Select item
- case KeyCode/* default */.Z.ENTER:
- {
- if (activeEntity) {
- var _ref = (activeEntity === null || activeEntity === void 0 ? void 0 : activeEntity.node) || {},
- selectable = _ref.selectable,
- value = _ref.value;
- if (selectable !== false) {
- onInternalSelect(null, {
- node: {
- key: activeKey
- },
- selected: !checkedKeys.includes(value)
- });
- }
- }
- break;
- }
-
- // >>> Close
- case KeyCode/* default */.Z.ESC:
- {
- toggleOpen(false);
- }
- }
- },
- onKeyUp: function onKeyUp() {}
- };
- });
-
- // ========================== Render ==========================
- if (memoTreeData.length === 0) {
- return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- role: "listbox",
- className: "".concat(prefixCls, "-empty"),
- onMouseDown: onListMouseDown
- }, notFoundContent);
- }
- var treeProps = {
- fieldNames: fieldNames
- };
- if (treeLoadedKeys) {
- treeProps.loadedKeys = treeLoadedKeys;
- }
- if (mergedExpandedKeys) {
- treeProps.expandedKeys = mergedExpandedKeys;
- }
- return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
- onMouseDown: onListMouseDown
- }, activeEntity && open && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
- style: HIDDEN_STYLE,
- "aria-live": "assertive"
- }, activeEntity.node.value), /*#__PURE__*/_react_17_0_2_react.createElement(_rc_tree_5_7_12_rc_tree_es/* default */.Z, (0,esm_extends/* default */.Z)({
- ref: treeRef,
- focusable: false,
- prefixCls: "".concat(prefixCls, "-tree"),
- treeData: memoTreeData,
- height: listHeight,
- itemHeight: listItemHeight,
- virtual: virtual !== false && dropdownMatchSelectWidth !== false,
- multiple: multiple,
- icon: treeIcon,
- showIcon: showTreeIcon,
- switcherIcon: switcherIcon,
- showLine: treeLine,
- loadData: searchValue ? null : loadData,
- motion: treeMotion,
- activeKey: activeKey
- // We handle keys by out instead tree self
- ,
- checkable: checkable,
- checkStrictly: true,
- checkedKeys: mergedCheckedKeys,
- selectedKeys: !checkable ? checkedKeys : [],
- defaultExpandAll: treeDefaultExpandAll
- }, treeProps, {
- // Proxy event out
- onActiveChange: setActiveKey,
- onSelect: onInternalSelect,
- onCheck: onInternalSelect,
- onExpand: onInternalExpand,
- onLoad: onTreeLoad,
- filterTreeNode: filterTreeNode,
- expandAction: treeExpandAction
- })));
-};
-var RefOptionList = /*#__PURE__*/_react_17_0_2_react.forwardRef(OptionList);
-RefOptionList.displayName = 'OptionList';
-/* harmony default export */ var es_OptionList = (RefOptionList);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/strategyUtil.js
-
-var SHOW_ALL = 'SHOW_ALL';
-var SHOW_PARENT = 'SHOW_PARENT';
-var SHOW_CHILD = 'SHOW_CHILD';
-function formatStrategyValues(values, strategy, keyEntities, fieldNames) {
- var valueSet = new Set(values);
- if (strategy === SHOW_CHILD) {
- return values.filter(function (key) {
- var entity = keyEntities[key];
- if (entity && entity.children && entity.children.some(function (_ref) {
- var node = _ref.node;
- return valueSet.has(node[fieldNames.value]);
- }) && entity.children.every(function (_ref2) {
- var node = _ref2.node;
- return isCheckDisabled(node) || valueSet.has(node[fieldNames.value]);
- })) {
- return false;
- }
- return true;
- });
- }
- if (strategy === SHOW_PARENT) {
- return values.filter(function (key) {
- var entity = keyEntities[key];
- var parent = entity ? entity.parent : null;
- if (parent && !isCheckDisabled(parent.node) && valueSet.has(parent.key)) {
- return false;
- }
- return true;
- });
- }
- return values;
-}
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/warningPropsUtil.js
-
-
-
-function warningProps(props) {
- var searchPlaceholder = props.searchPlaceholder,
- treeCheckStrictly = props.treeCheckStrictly,
- treeCheckable = props.treeCheckable,
- labelInValue = props.labelInValue,
- value = props.value,
- multiple = props.multiple;
- warning(!searchPlaceholder, '`searchPlaceholder` has been removed.');
- if (treeCheckStrictly && labelInValue === false) {
- warning(false, '`treeCheckStrictly` will force set `labelInValue` to `true`.');
- }
- if (labelInValue || treeCheckStrictly) {
- warning(toArray(value).every(function (val) {
- return val && _typeof(val) === 'object' && 'value' in val;
- }), 'Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead.');
- }
- if (treeCheckStrictly || multiple || treeCheckable) {
- warning(!value || Array.isArray(value), '`value` should be an array when `TreeSelect` is checkable or multiple.');
- } else {
- warning(!Array.isArray(value), '`value` should not be array when `TreeSelect` is single mode.');
- }
+/**
+ * Same as `React.useCallback` but always return a memoized function
+ * but redirect to real function.
+ */
+function useRefFunc(callback) {
+ var funcRef = _react_17_0_2_react.useRef();
+ funcRef.current = callback;
+ var cacheFn = _react_17_0_2_react.useCallback(function () {
+ return funcRef.current.apply(funcRef, arguments);
+ }, []);
+ return cacheFn;
}
-/* harmony default export */ var warningPropsUtil = ((/* unused pure expression or super */ null && (warningProps)));
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeSelect.js
-
-
-
-
-
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/hooks/useTreeData.js
-var TreeSelect_excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
+
+
+function parseSimpleTreeData(treeData, _ref) {
+ var id = _ref.id,
+ pId = _ref.pId,
+ rootPId = _ref.rootPId;
+ var keyNodes = {};
+ var rootNodeList = [];
+
+ // Fill in the map
+ var nodeList = treeData.map(function (node) {
+ var clone = (0,objectSpread2/* default */.Z)({}, node);
+ var key = clone[id];
+ keyNodes[key] = clone;
+ clone.key = clone.key || key;
+ return clone;
+ });
+
+ // Connect tree
+ nodeList.forEach(function (node) {
+ var parentKey = node[pId];
+ var parent = keyNodes[parentKey];
+
+ // Fill parent
+ if (parent) {
+ parent.children = parent.children || [];
+ parent.children.push(node);
+ }
+
+ // Fill root tree node
+ if (parentKey === rootPId || !parent && rootPId === null) {
+ rootNodeList.push(node);
+ }
+ });
+ return rootNodeList;
+}
+
+/**
+ * Convert `treeData` or `children` into formatted `treeData`.
+ * Will not re-calculate if `treeData` or `children` not change.
+ */
+function useTreeData(treeData, children, simpleMode) {
+ return _react_17_0_2_react.useMemo(function () {
+ if (treeData) {
+ return simpleMode ? parseSimpleTreeData(treeData, (0,objectSpread2/* default */.Z)({
+ id: 'id',
+ pId: 'pId',
+ rootPId: null
+ }, simpleMode !== true ? simpleMode : {})) : treeData;
+ }
+ return convertChildrenToData(children);
+ }, [children, simpleMode, treeData]);
+}
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/LegacyContext.js
+
+var LegacySelectContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
+/* harmony default export */ var LegacyContext = (LegacySelectContext);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/KeyCode.js
+var KeyCode = __webpack_require__(85108);
+// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/hooks/useMemo.js
+var useMemo = __webpack_require__(79722);
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules
+var _rc_tree_5_7_12_rc_tree_es = __webpack_require__(99581);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeSelectContext.js
+
+var TreeSelectContext = /*#__PURE__*/_react_17_0_2_react.createContext(null);
+/* harmony default export */ var es_TreeSelectContext = (TreeSelectContext);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/valueUtil.js
+function valueUtil_toArray(value) {
+ if (Array.isArray(value)) {
+ return value;
+ }
+ return value !== undefined ? [value] : [];
+}
+function fillFieldNames(fieldNames) {
+ var _ref = fieldNames || {},
+ label = _ref.label,
+ value = _ref.value,
+ children = _ref.children;
+ var mergedValue = value || 'value';
+ return {
+ _title: label ? [label] : ['title', 'label'],
+ value: mergedValue,
+ key: mergedValue,
+ children: children || 'children'
+ };
+}
+function isCheckDisabled(node) {
+ return !node || node.disabled || node.disableCheckbox || node.checkable === false;
+}
+
+/** Loop fetch all the keys exist in the tree */
+function getAllKeys(treeData, fieldNames) {
+ var keys = [];
+ function dig(list) {
+ list.forEach(function (item) {
+ var children = item[fieldNames.children];
+ if (children) {
+ keys.push(item[fieldNames.value]);
+ dig(children);
+ }
+ });
+ }
+ dig(treeData);
+ return keys;
+}
+function isNil(val) {
+ return val === null || val === undefined;
+}
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/OptionList.js
+
+
+
+
+
+
+
+
+
+
+
+var HIDDEN_STYLE = {
+ width: 0,
+ height: 0,
+ display: 'flex',
+ overflow: 'hidden',
+ opacity: 0,
+ border: 0,
+ padding: 0,
+ margin: 0
+};
+var OptionList = function OptionList(_, ref) {
+ var _useBaseProps = (0,es/* useBaseProps */.lk)(),
+ prefixCls = _useBaseProps.prefixCls,
+ multiple = _useBaseProps.multiple,
+ searchValue = _useBaseProps.searchValue,
+ toggleOpen = _useBaseProps.toggleOpen,
+ open = _useBaseProps.open,
+ notFoundContent = _useBaseProps.notFoundContent;
+ var _React$useContext = _react_17_0_2_react.useContext(es_TreeSelectContext),
+ virtual = _React$useContext.virtual,
+ listHeight = _React$useContext.listHeight,
+ listItemHeight = _React$useContext.listItemHeight,
+ treeData = _React$useContext.treeData,
+ fieldNames = _React$useContext.fieldNames,
+ onSelect = _React$useContext.onSelect,
+ dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth,
+ treeExpandAction = _React$useContext.treeExpandAction;
+ var _React$useContext2 = _react_17_0_2_react.useContext(LegacyContext),
+ checkable = _React$useContext2.checkable,
+ checkedKeys = _React$useContext2.checkedKeys,
+ halfCheckedKeys = _React$useContext2.halfCheckedKeys,
+ treeExpandedKeys = _React$useContext2.treeExpandedKeys,
+ treeDefaultExpandAll = _React$useContext2.treeDefaultExpandAll,
+ treeDefaultExpandedKeys = _React$useContext2.treeDefaultExpandedKeys,
+ onTreeExpand = _React$useContext2.onTreeExpand,
+ treeIcon = _React$useContext2.treeIcon,
+ showTreeIcon = _React$useContext2.showTreeIcon,
+ switcherIcon = _React$useContext2.switcherIcon,
+ treeLine = _React$useContext2.treeLine,
+ treeNodeFilterProp = _React$useContext2.treeNodeFilterProp,
+ loadData = _React$useContext2.loadData,
+ treeLoadedKeys = _React$useContext2.treeLoadedKeys,
+ treeMotion = _React$useContext2.treeMotion,
+ onTreeLoad = _React$useContext2.onTreeLoad,
+ keyEntities = _React$useContext2.keyEntities;
+ var treeRef = _react_17_0_2_react.useRef();
+ var memoTreeData = (0,useMemo/* default */.Z)(function () {
+ return treeData;
+ }, [open, treeData], function (prev, next) {
+ return next[0] && prev[1] !== next[1];
+ });
+
+ // ========================== Active ==========================
+ var _React$useState = _react_17_0_2_react.useState(null),
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
+ activeKey = _React$useState2[0],
+ setActiveKey = _React$useState2[1];
+ var activeEntity = keyEntities[activeKey];
+
+ // ========================== Values ==========================
+ var mergedCheckedKeys = _react_17_0_2_react.useMemo(function () {
+ if (!checkable) {
+ return null;
+ }
+ return {
+ checked: checkedKeys,
+ halfChecked: halfCheckedKeys
+ };
+ }, [checkable, checkedKeys, halfCheckedKeys]);
+
+ // ========================== Scroll ==========================
+ _react_17_0_2_react.useEffect(function () {
+ // Single mode should scroll to current key
+ if (open && !multiple && checkedKeys.length) {
+ var _treeRef$current;
+ (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.scrollTo({
+ key: checkedKeys[0]
+ });
+ setActiveKey(checkedKeys[0]);
+ }
+ }, [open]);
+
+ // ========================== Search ==========================
+ var lowerSearchValue = String(searchValue).toLowerCase();
+ var filterTreeNode = function filterTreeNode(treeNode) {
+ if (!lowerSearchValue) {
+ return false;
+ }
+ return String(treeNode[treeNodeFilterProp]).toLowerCase().includes(lowerSearchValue);
+ };
+
+ // =========================== Keys ===========================
+ var _React$useState3 = _react_17_0_2_react.useState(treeDefaultExpandedKeys),
+ _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
+ expandedKeys = _React$useState4[0],
+ setExpandedKeys = _React$useState4[1];
+ var _React$useState5 = _react_17_0_2_react.useState(null),
+ _React$useState6 = (0,slicedToArray/* default */.Z)(_React$useState5, 2),
+ searchExpandedKeys = _React$useState6[0],
+ setSearchExpandedKeys = _React$useState6[1];
+ var mergedExpandedKeys = _react_17_0_2_react.useMemo(function () {
+ if (treeExpandedKeys) {
+ return (0,toConsumableArray/* default */.Z)(treeExpandedKeys);
+ }
+ return searchValue ? searchExpandedKeys : expandedKeys;
+ }, [expandedKeys, searchExpandedKeys, treeExpandedKeys, searchValue]);
+ _react_17_0_2_react.useEffect(function () {
+ if (searchValue) {
+ setSearchExpandedKeys(getAllKeys(treeData, fieldNames));
+ }
+ }, [searchValue]);
+ var onInternalExpand = function onInternalExpand(keys) {
+ setExpandedKeys(keys);
+ setSearchExpandedKeys(keys);
+ if (onTreeExpand) {
+ onTreeExpand(keys);
+ }
+ };
+
+ // ========================== Events ==========================
+ var onListMouseDown = function onListMouseDown(event) {
+ event.preventDefault();
+ };
+ var onInternalSelect = function onInternalSelect(__, info) {
+ var node = info.node;
+ if (checkable && isCheckDisabled(node)) {
+ return;
+ }
+ onSelect(node.key, {
+ selected: !checkedKeys.includes(node.key)
+ });
+ if (!multiple) {
+ toggleOpen(false);
+ }
+ };
+
+ // ========================= Keyboard =========================
+ _react_17_0_2_react.useImperativeHandle(ref, function () {
+ var _treeRef$current2;
+ return {
+ scrollTo: (_treeRef$current2 = treeRef.current) === null || _treeRef$current2 === void 0 ? void 0 : _treeRef$current2.scrollTo,
+ onKeyDown: function onKeyDown(event) {
+ var _treeRef$current3;
+ var which = event.which;
+ switch (which) {
+ // >>> Arrow keys
+ case KeyCode/* default */.Z.UP:
+ case KeyCode/* default */.Z.DOWN:
+ case KeyCode/* default */.Z.LEFT:
+ case KeyCode/* default */.Z.RIGHT:
+ (_treeRef$current3 = treeRef.current) === null || _treeRef$current3 === void 0 ? void 0 : _treeRef$current3.onKeyDown(event);
+ break;
+
+ // >>> Select item
+ case KeyCode/* default */.Z.ENTER:
+ {
+ if (activeEntity) {
+ var _ref = (activeEntity === null || activeEntity === void 0 ? void 0 : activeEntity.node) || {},
+ selectable = _ref.selectable,
+ value = _ref.value;
+ if (selectable !== false) {
+ onInternalSelect(null, {
+ node: {
+ key: activeKey
+ },
+ selected: !checkedKeys.includes(value)
+ });
+ }
+ }
+ break;
+ }
+
+ // >>> Close
+ case KeyCode/* default */.Z.ESC:
+ {
+ toggleOpen(false);
+ }
+ }
+ },
+ onKeyUp: function onKeyUp() {}
+ };
+ });
+
+ // ========================== Render ==========================
+ if (memoTreeData.length === 0) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
+ role: "listbox",
+ className: "".concat(prefixCls, "-empty"),
+ onMouseDown: onListMouseDown
+ }, notFoundContent);
+ }
+ var treeProps = {
+ fieldNames: fieldNames
+ };
+ if (treeLoadedKeys) {
+ treeProps.loadedKeys = treeLoadedKeys;
+ }
+ if (mergedExpandedKeys) {
+ treeProps.expandedKeys = mergedExpandedKeys;
+ }
+ return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
+ onMouseDown: onListMouseDown
+ }, activeEntity && open && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
+ style: HIDDEN_STYLE,
+ "aria-live": "assertive"
+ }, activeEntity.node.value), /*#__PURE__*/_react_17_0_2_react.createElement(_rc_tree_5_7_12_rc_tree_es/* default */.Z, (0,esm_extends/* default */.Z)({
+ ref: treeRef,
+ focusable: false,
+ prefixCls: "".concat(prefixCls, "-tree"),
+ treeData: memoTreeData,
+ height: listHeight,
+ itemHeight: listItemHeight,
+ virtual: virtual !== false && dropdownMatchSelectWidth !== false,
+ multiple: multiple,
+ icon: treeIcon,
+ showIcon: showTreeIcon,
+ switcherIcon: switcherIcon,
+ showLine: treeLine,
+ loadData: searchValue ? null : loadData,
+ motion: treeMotion,
+ activeKey: activeKey
+ // We handle keys by out instead tree self
+ ,
+ checkable: checkable,
+ checkStrictly: true,
+ checkedKeys: mergedCheckedKeys,
+ selectedKeys: !checkable ? checkedKeys : [],
+ defaultExpandAll: treeDefaultExpandAll
+ }, treeProps, {
+ // Proxy event out
+ onActiveChange: setActiveKey,
+ onSelect: onInternalSelect,
+ onCheck: onInternalSelect,
+ onExpand: onInternalExpand,
+ onLoad: onTreeLoad,
+ filterTreeNode: filterTreeNode,
+ expandAction: treeExpandAction
+ })));
+};
+var RefOptionList = /*#__PURE__*/_react_17_0_2_react.forwardRef(OptionList);
+RefOptionList.displayName = 'OptionList';
+/* harmony default export */ var es_OptionList = (RefOptionList);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/strategyUtil.js
+
+var SHOW_ALL = 'SHOW_ALL';
+var SHOW_PARENT = 'SHOW_PARENT';
+var SHOW_CHILD = 'SHOW_CHILD';
+function formatStrategyValues(values, strategy, keyEntities, fieldNames) {
+ var valueSet = new Set(values);
+ if (strategy === SHOW_CHILD) {
+ return values.filter(function (key) {
+ var entity = keyEntities[key];
+ if (entity && entity.children && entity.children.some(function (_ref) {
+ var node = _ref.node;
+ return valueSet.has(node[fieldNames.value]);
+ }) && entity.children.every(function (_ref2) {
+ var node = _ref2.node;
+ return isCheckDisabled(node) || valueSet.has(node[fieldNames.value]);
+ })) {
+ return false;
+ }
+ return true;
+ });
+ }
+ if (strategy === SHOW_PARENT) {
+ return values.filter(function (key) {
+ var entity = keyEntities[key];
+ var parent = entity ? entity.parent : null;
+ if (parent && !isCheckDisabled(parent.node) && valueSet.has(parent.key)) {
+ return false;
+ }
+ return true;
+ });
+ }
+ return values;
+}
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/utils/warningPropsUtil.js
+
+
+
+function warningProps(props) {
+ var searchPlaceholder = props.searchPlaceholder,
+ treeCheckStrictly = props.treeCheckStrictly,
+ treeCheckable = props.treeCheckable,
+ labelInValue = props.labelInValue,
+ value = props.value,
+ multiple = props.multiple;
+ warning(!searchPlaceholder, '`searchPlaceholder` has been removed.');
+ if (treeCheckStrictly && labelInValue === false) {
+ warning(false, '`treeCheckStrictly` will force set `labelInValue` to `true`.');
+ }
+ if (labelInValue || treeCheckStrictly) {
+ warning(toArray(value).every(function (val) {
+ return val && _typeof(val) === 'object' && 'value' in val;
+ }), 'Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead.');
+ }
+ if (treeCheckStrictly || multiple || treeCheckable) {
+ warning(!value || Array.isArray(value), '`value` should be an array when `TreeSelect` is checkable or multiple.');
+ } else {
+ warning(!Array.isArray(value), '`value` should not be array when `TreeSelect` is single mode.');
+ }
+}
+/* harmony default export */ var warningPropsUtil = ((/* unused pure expression or super */ null && (warningProps)));
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/TreeSelect.js
+
+
+
+
+
+
+var TreeSelect_excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
@@ -1165,411 +1482,117 @@ var TreeSelect = /*#__PURE__*/_react_17_0_2_react.forwardRef(function (props, re
// ========================== Dropdown ==========================
var onInternalDropdownVisibleChange = _react_17_0_2_react.useCallback(function (open) {
- if (onDropdownVisibleChange) {
- var legacyParam = {};
- Object.defineProperty(legacyParam, 'documentClickClose', {
- get: function get() {
- (0,es_warning/* default */.ZP)(false, 'Second param of `onDropdownVisibleChange` has been removed.');
- return false;
- }
- });
- onDropdownVisibleChange(open, legacyParam);
- }
- }, [onDropdownVisibleChange]);
-
- // ====================== Display Change ========================
- var onDisplayValuesChange = useRefFunc(function (newValues, info) {
- var newRawValues = newValues.map(function (item) {
- return item.value;
- });
- if (info.type === 'clear') {
- triggerChange(newRawValues, {}, 'selection');
- return;
- }
-
- // TreeSelect only have multiple mode which means display change only has remove
- if (info.values.length) {
- onOptionSelect(info.values[0].value, {
- selected: false,
- source: 'selection'
- });
- }
- });
-
- // ========================== Context ===========================
- var treeSelectContext = _react_17_0_2_react.useMemo(function () {
- return {
- virtual: virtual,
- dropdownMatchSelectWidth: dropdownMatchSelectWidth,
- listHeight: listHeight,
- listItemHeight: listItemHeight,
- treeData: filteredTreeData,
- fieldNames: mergedFieldNames,
- onSelect: onOptionSelect,
- treeExpandAction: treeExpandAction
- };
- }, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]);
-
- // ======================= Legacy Context =======================
- var legacyContext = _react_17_0_2_react.useMemo(function () {
- return {
- checkable: mergedCheckable,
- loadData: loadData,
- treeLoadedKeys: treeLoadedKeys,
- onTreeLoad: onTreeLoad,
- checkedKeys: rawCheckedValues,
- halfCheckedKeys: rawHalfCheckedValues,
- treeDefaultExpandAll: treeDefaultExpandAll,
- treeExpandedKeys: treeExpandedKeys,
- treeDefaultExpandedKeys: treeDefaultExpandedKeys,
- onTreeExpand: onTreeExpand,
- treeIcon: treeIcon,
- treeMotion: treeMotion,
- showTreeIcon: showTreeIcon,
- switcherIcon: switcherIcon,
- treeLine: treeLine,
- treeNodeFilterProp: treeNodeFilterProp,
- keyEntities: keyEntities
- };
- }, [mergedCheckable, loadData, treeLoadedKeys, onTreeLoad, rawCheckedValues, rawHalfCheckedValues, treeDefaultExpandAll, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, treeIcon, treeMotion, showTreeIcon, switcherIcon, treeLine, treeNodeFilterProp, keyEntities]);
-
- // =========================== Render ===========================
- return /*#__PURE__*/_react_17_0_2_react.createElement(es_TreeSelectContext.Provider, {
- value: treeSelectContext
- }, /*#__PURE__*/_react_17_0_2_react.createElement(LegacyContext.Provider, {
- value: legacyContext
- }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* BaseSelect */.Ac, (0,esm_extends/* default */.Z)({
- ref: ref
- }, restProps, {
- // >>> MISC
- id: mergedId,
- prefixCls: prefixCls,
- mode: mergedMultiple ? 'multiple' : undefined
- // >>> Display Value
- ,
- displayValues: cachedDisplayValues,
- onDisplayValuesChange: onDisplayValuesChange
- // >>> Search
- ,
- searchValue: mergedSearchValue,
- onSearch: onInternalSearch
- // >>> Options
- ,
- OptionList: es_OptionList,
- emptyOptions: !mergedTreeData.length,
- onDropdownVisibleChange: onInternalDropdownVisibleChange,
- dropdownMatchSelectWidth: dropdownMatchSelectWidth
- }))));
-});
-
-// Assign name for Debug
-if (false) {}
-var GenericTreeSelect = TreeSelect;
-GenericTreeSelect.TreeNode = es_TreeNode;
-GenericTreeSelect.SHOW_ALL = SHOW_ALL;
-GenericTreeSelect.SHOW_PARENT = SHOW_PARENT;
-GenericTreeSelect.SHOW_CHILD = SHOW_CHILD;
-/* harmony default export */ var es_TreeSelect = (GenericTreeSelect);
-;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/index.js
-
-
-
-
-/* harmony default export */ var _rc_tree_select_5_12_1_rc_tree_select_es = (es_TreeSelect);
-// EXTERNAL MODULE: ./node_modules/_rc-util@5.44.3@rc-util/es/omit.js
-var omit = __webpack_require__(64002);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/PurePanel.js
-var PurePanel = __webpack_require__(53487);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js
-var motion = __webpack_require__(62892);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/statusUtils.js
-var statusUtils = __webpack_require__(19080);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
-var context = __webpack_require__(36355);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/DisabledContext.js
-var DisabledContext = __webpack_require__(1684);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/defaultRenderEmpty.js
-var defaultRenderEmpty = __webpack_require__(93891);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
-var useSize = __webpack_require__(19716);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/context.js
-var form_context = __webpack_require__(32441);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/style/index.js + 3 modules
-var style = __webpack_require__(14154);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/useBuiltinPlacements.js
-var useBuiltinPlacements = __webpack_require__(58582);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/useShowArrow.js
-var useShowArrow = __webpack_require__(84443);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/utils/iconUtil.js
-var iconUtil = __webpack_require__(66339);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
-var Compact = __webpack_require__(33234);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules
-var utils_iconUtil = __webpack_require__(48610);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js
-var checkbox_style = __webpack_require__(98447);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
-var statistic = __webpack_require__(37613);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
-var genComponentStyleHook = __webpack_require__(83116);
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js
-var tree_style = __webpack_require__(20648);
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/style/index.js
-
-
-
-// =============================== Base ===============================
-const genBaseStyle = token => {
- const {
- componentCls,
- treePrefixCls,
- colorBgElevated
- } = token;
- const treeCls = `.${treePrefixCls}`;
- return [
- // ======================================================
- // == Dropdown ==
- // ======================================================
- {
- [`${componentCls}-dropdown`]: [{
- padding: `${token.paddingXS}px ${token.paddingXS / 2}px`
- },
- // ====================== Tree ======================
- (0,tree_style/* genTreeStyle */.Yk)(treePrefixCls, (0,statistic/* merge */.TS)(token, {
- colorBgContainer: colorBgElevated
- })), {
- [treeCls]: {
- borderRadius: 0,
- [`${treeCls}-list-holder-inner`]: {
- alignItems: 'stretch',
- [`${treeCls}-treenode`]: {
- [`${treeCls}-node-content-wrapper`]: {
- flex: 'auto'
- }
- }
- }
- }
- },
- // ==================== Checkbox ====================
- (0,checkbox_style/* getStyle */.C2)(`${treePrefixCls}-checkbox`, token),
- // ====================== RTL =======================
- {
- '&-rtl': {
- direction: 'rtl',
- [`${treeCls}-switcher${treeCls}-switcher_close`]: {
- [`${treeCls}-switcher-icon svg`]: {
- transform: 'rotate(90deg)'
- }
- }
- }
- }]
- }];
-};
-// ============================== Export ==============================
-function useTreeSelectStyle(prefixCls, treePrefixCls) {
- return (0,genComponentStyleHook/* default */.Z)('TreeSelect', token => {
- const treeSelectToken = (0,statistic/* merge */.TS)(token, {
- treePrefixCls
- });
- return [genBaseStyle(treeSelectToken)];
- }, tree_style/* initComponentToken */.TM)(prefixCls);
-}
-;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/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;
-};
-
-
-
-
-
-
-
-
-
-
-
+ if (onDropdownVisibleChange) {
+ var legacyParam = {};
+ Object.defineProperty(legacyParam, 'documentClickClose', {
+ get: function get() {
+ (0,es_warning/* default */.ZP)(false, 'Second param of `onDropdownVisibleChange` has been removed.');
+ return false;
+ }
+ });
+ onDropdownVisibleChange(open, legacyParam);
+ }
+ }, [onDropdownVisibleChange]);
+ // ====================== Display Change ========================
+ var onDisplayValuesChange = useRefFunc(function (newValues, info) {
+ var newRawValues = newValues.map(function (item) {
+ return item.value;
+ });
+ if (info.type === 'clear') {
+ triggerChange(newRawValues, {}, 'selection');
+ return;
+ }
+ // TreeSelect only have multiple mode which means display change only has remove
+ if (info.values.length) {
+ onOptionSelect(info.values[0].value, {
+ selected: false,
+ source: 'selection'
+ });
+ }
+ });
+ // ========================== Context ===========================
+ var treeSelectContext = _react_17_0_2_react.useMemo(function () {
+ return {
+ virtual: virtual,
+ dropdownMatchSelectWidth: dropdownMatchSelectWidth,
+ listHeight: listHeight,
+ listItemHeight: listItemHeight,
+ treeData: filteredTreeData,
+ fieldNames: mergedFieldNames,
+ onSelect: onOptionSelect,
+ treeExpandAction: treeExpandAction
+ };
+ }, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]);
+ // ======================= Legacy Context =======================
+ var legacyContext = _react_17_0_2_react.useMemo(function () {
+ return {
+ checkable: mergedCheckable,
+ loadData: loadData,
+ treeLoadedKeys: treeLoadedKeys,
+ onTreeLoad: onTreeLoad,
+ checkedKeys: rawCheckedValues,
+ halfCheckedKeys: rawHalfCheckedValues,
+ treeDefaultExpandAll: treeDefaultExpandAll,
+ treeExpandedKeys: treeExpandedKeys,
+ treeDefaultExpandedKeys: treeDefaultExpandedKeys,
+ onTreeExpand: onTreeExpand,
+ treeIcon: treeIcon,
+ treeMotion: treeMotion,
+ showTreeIcon: showTreeIcon,
+ switcherIcon: switcherIcon,
+ treeLine: treeLine,
+ treeNodeFilterProp: treeNodeFilterProp,
+ keyEntities: keyEntities
+ };
+ }, [mergedCheckable, loadData, treeLoadedKeys, onTreeLoad, rawCheckedValues, rawHalfCheckedValues, treeDefaultExpandAll, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, treeIcon, treeMotion, showTreeIcon, switcherIcon, treeLine, treeNodeFilterProp, keyEntities]);
+ // =========================== Render ===========================
+ return /*#__PURE__*/_react_17_0_2_react.createElement(es_TreeSelectContext.Provider, {
+ value: treeSelectContext
+ }, /*#__PURE__*/_react_17_0_2_react.createElement(LegacyContext.Provider, {
+ value: legacyContext
+ }, /*#__PURE__*/_react_17_0_2_react.createElement(es/* BaseSelect */.Ac, (0,esm_extends/* default */.Z)({
+ ref: ref
+ }, restProps, {
+ // >>> MISC
+ id: mergedId,
+ prefixCls: prefixCls,
+ mode: mergedMultiple ? 'multiple' : undefined
+ // >>> Display Value
+ ,
+ displayValues: cachedDisplayValues,
+ onDisplayValuesChange: onDisplayValuesChange
+ // >>> Search
+ ,
+ searchValue: mergedSearchValue,
+ onSearch: onInternalSearch
+ // >>> Options
+ ,
+ OptionList: es_OptionList,
+ emptyOptions: !mergedTreeData.length,
+ onDropdownVisibleChange: onInternalDropdownVisibleChange,
+ dropdownMatchSelectWidth: dropdownMatchSelectWidth
+ }))));
+});
+// Assign name for Debug
+if (false) {}
+var GenericTreeSelect = TreeSelect;
+GenericTreeSelect.TreeNode = es_TreeNode;
+GenericTreeSelect.SHOW_ALL = SHOW_ALL;
+GenericTreeSelect.SHOW_PARENT = SHOW_PARENT;
+GenericTreeSelect.SHOW_CHILD = SHOW_CHILD;
+/* harmony default export */ var es_TreeSelect = (GenericTreeSelect);
+;// CONCATENATED MODULE: ./node_modules/_rc-tree-select@5.12.1@rc-tree-select/es/index.js
-const InternalTreeSelect = (_a, ref) => {
- var _b;
- var {
- prefixCls: customizePrefixCls,
- size: customizeSize,
- disabled: customDisabled,
- bordered = true,
- className,
- rootClassName,
- treeCheckable,
- multiple,
- listHeight = 256,
- listItemHeight = 26,
- placement,
- notFoundContent,
- switcherIcon,
- treeLine,
- getPopupContainer,
- popupClassName,
- dropdownClassName,
- treeIcon = false,
- transitionName,
- choiceTransitionName = '',
- status: customStatus,
- treeExpandAction,
- builtinPlacements,
- dropdownMatchSelectWidth,
- popupMatchSelectWidth,
- allowClear
- } = _a,
- props = __rest(_a, ["prefixCls", "size", "disabled", "bordered", "className", "rootClassName", "treeCheckable", "multiple", "listHeight", "listItemHeight", "placement", "notFoundContent", "switcherIcon", "treeLine", "getPopupContainer", "popupClassName", "dropdownClassName", "treeIcon", "transitionName", "choiceTransitionName", "status", "treeExpandAction", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "allowClear"]);
- const {
- getPopupContainer: getContextPopupContainer,
- getPrefixCls,
- renderEmpty,
- direction,
- virtual,
- popupMatchSelectWidth: contextPopupMatchSelectWidth,
- popupOverflow
- } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
- if (false) {}
- const rootPrefixCls = getPrefixCls();
- const prefixCls = getPrefixCls('select', customizePrefixCls);
- const treePrefixCls = getPrefixCls('select-tree', customizePrefixCls);
- const treeSelectPrefixCls = getPrefixCls('tree-select', customizePrefixCls);
- const {
- compactSize,
- compactItemClassnames
- } = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
- const [wrapSelectSSR, hashId] = (0,style/* default */.Z)(prefixCls);
- const [wrapTreeSelectSSR] = useTreeSelectStyle(treeSelectPrefixCls, treePrefixCls);
- const mergedDropdownClassName = _classnames_2_5_1_classnames_default()(popupClassName || dropdownClassName, `${treeSelectPrefixCls}-dropdown`, {
- [`${treeSelectPrefixCls}-dropdown-rtl`]: direction === 'rtl'
- }, rootClassName, hashId);
- const isMultiple = !!(treeCheckable || multiple);
- const showSuffixIcon = (0,useShowArrow/* default */.Z)(props.suffixIcon, props.showArrow);
- const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
- // ===================== Form =====================
- const {
- status: contextStatus,
- hasFeedback,
- isFormItemInput,
- feedbackIcon
- } = _react_17_0_2_react.useContext(form_context/* FormItemInputContext */.aM);
- const mergedStatus = (0,statusUtils/* getMergedStatus */.F)(contextStatus, customStatus);
- // ===================== Icons =====================
- const {
- suffixIcon,
- removeIcon,
- clearIcon
- } = (0,iconUtil/* default */.Z)(Object.assign(Object.assign({}, props), {
- multiple: isMultiple,
- showSuffixIcon,
- hasFeedback,
- feedbackIcon,
- prefixCls,
- componentName: 'TreeSelect'
- }));
- const mergedAllowClear = allowClear === true ? {
- clearIcon
- } : allowClear;
- // ===================== Empty =====================
- let mergedNotFound;
- if (notFoundContent !== undefined) {
- mergedNotFound = notFoundContent;
- } else {
- mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/_react_17_0_2_react.createElement(defaultRenderEmpty/* default */.Z, {
- componentName: "Select"
- });
- }
- // ==================== Render =====================
- const selectProps = (0,omit/* default */.Z)(props, ['suffixIcon', 'itemIcon', 'removeIcon', 'clearIcon', 'switcherIcon']);
- // ===================== Placement =====================
- const memoizedPlacement = _react_17_0_2_react.useMemo(() => {
- if (placement !== undefined) {
- return placement;
- }
- return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
- }, [placement, direction]);
- const mergedBuiltinPlacements = (0,useBuiltinPlacements/* default */.Z)(builtinPlacements, popupOverflow);
- const mergedSize = (0,useSize/* default */.Z)(ctx => {
- var _a;
- return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
- });
- // ===================== Disabled =====================
- const disabled = _react_17_0_2_react.useContext(DisabledContext/* default */.Z);
- const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
- const mergedClassName = _classnames_2_5_1_classnames_default()(!customizePrefixCls && treeSelectPrefixCls, {
- [`${prefixCls}-lg`]: mergedSize === 'large',
- [`${prefixCls}-sm`]: mergedSize === 'small',
- [`${prefixCls}-rtl`]: direction === 'rtl',
- [`${prefixCls}-borderless`]: !bordered,
- [`${prefixCls}-in-form-item`]: isFormItemInput
- }, (0,statusUtils/* getStatusClassNames */.Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, className, rootClassName, hashId);
- const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(utils_iconUtil/* default */.Z, {
- prefixCls: treePrefixCls,
- switcherIcon: switcherIcon,
- treeNodeProps: nodeProps,
- showLine: treeLine
- });
- const returnNode = /*#__PURE__*/_react_17_0_2_react.createElement(_rc_tree_select_5_12_1_rc_tree_select_es, Object.assign({
- virtual: virtual,
- disabled: mergedDisabled
- }, selectProps, {
- dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
- builtinPlacements: mergedBuiltinPlacements,
- ref: ref,
- prefixCls: prefixCls,
- className: mergedClassName,
- listHeight: listHeight,
- listItemHeight: listItemHeight,
- treeCheckable: treeCheckable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
- className: `${prefixCls}-tree-checkbox-inner`
- }) : treeCheckable,
- treeLine: !!treeLine,
- suffixIcon: suffixIcon,
- multiple: isMultiple,
- placement: memoizedPlacement,
- removeIcon: removeIcon,
- allowClear: mergedAllowClear,
- switcherIcon: renderSwitcherIcon,
- showTreeIcon: treeIcon,
- notFoundContent: mergedNotFound,
- getPopupContainer: getPopupContainer || getContextPopupContainer,
- treeMotion: null,
- dropdownClassName: mergedDropdownClassName,
- choiceTransitionName: (0,motion/* getTransitionName */.m)(rootPrefixCls, '', choiceTransitionName),
- transitionName: (0,motion/* getTransitionName */.m)(rootPrefixCls, 'slide-up', transitionName),
- treeExpandAction: treeExpandAction
- }));
- return wrapSelectSSR(wrapTreeSelectSSR(returnNode));
-};
-const TreeSelectRef = /*#__PURE__*/_react_17_0_2_react.forwardRef(InternalTreeSelect);
-const tree_select_TreeSelect = TreeSelectRef;
-// We don't care debug panel
-/* istanbul ignore next */
-const tree_select_PurePanel = (0,PurePanel/* default */.Z)(tree_select_TreeSelect);
-tree_select_TreeSelect.TreeNode = es_TreeNode;
-tree_select_TreeSelect.SHOW_ALL = SHOW_ALL;
-tree_select_TreeSelect.SHOW_PARENT = SHOW_PARENT;
-tree_select_TreeSelect.SHOW_CHILD = SHOW_CHILD;
-tree_select_TreeSelect._InternalPanelDoNotUseOrYouWillBeFired = tree_select_PurePanel;
-if (false) {}
-/* harmony default export */ var tree_select = (tree_select_TreeSelect);
+/* harmony default export */ var _rc_tree_select_5_12_1_rc_tree_select_es = (es_TreeSelect);
/***/ })
diff --git a/6298.e2147f58.async.js b/6298.e2147f58.async.js
new file mode 100644
index 0000000000..da20f51245
--- /dev/null
+++ b/6298.e2147f58.async.js
@@ -0,0 +1,937 @@
+"use strict";
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[6298],{
+
+/***/ 58358:
+/*!************************************************************************************************************!*\
+ !*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules ***!
+ \************************************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Z: function() { return /* binding */ icons_FolderOpenOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(5891);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FolderOpenOutlined.js
+// This icon file is generated automatically.
+var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, "name": "folder-open", "theme": "outlined" };
+/* harmony default export */ var asn_FolderOpenOutlined = (FolderOpenOutlined);
+
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(88853);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/FolderOpenOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+
+var FolderOpenOutlined_FolderOpenOutlined = function FolderOpenOutlined(props, ref) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ icon: asn_FolderOpenOutlined
+ }));
+};
+
+/** */
+var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOpenOutlined_FolderOpenOutlined);
+if (false) {}
+/* harmony default export */ var icons_FolderOpenOutlined = (RefIcon);
+
+/***/ }),
+
+/***/ 37520:
+/*!************************************************************************************************************!*\
+ !*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules ***!
+ \************************************************************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Z: function() { return /* binding */ icons_PlusCircleOutlined; }
+});
+
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(5891);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/PlusCircleOutlined.js
+// This icon file is generated automatically.
+var PlusCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M696 480H544V328c0-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 8h152v152c0 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-8z" } }, { "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" } }] }, "name": "plus-circle", "theme": "outlined" };
+/* harmony default export */ var asn_PlusCircleOutlined = (PlusCircleOutlined);
+
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(88853);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/PlusCircleOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+
+var PlusCircleOutlined_PlusCircleOutlined = function PlusCircleOutlined(props, ref) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ icon: asn_PlusCircleOutlined
+ }));
+};
+
+/** */
+var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusCircleOutlined_PlusCircleOutlined);
+if (false) {}
+/* harmony default export */ var icons_PlusCircleOutlined = (RefIcon);
+
+/***/ }),
+
+/***/ 77578:
+/*!**********************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/_util/getRenderPropValue.js ***!
+ \**********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ Z: function() { return /* binding */ getRenderPropValue; }
+/* harmony export */ });
+const getRenderPropValue = propValue => {
+ if (!propValue) {
+ return null;
+ }
+ if (typeof propValue === 'function') {
+ return propValue();
+ }
+ return propValue;
+};
+
+/***/ }),
+
+/***/ 39722:
+/*!***************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/popover/PurePanel.js ***!
+ \***************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ t5: function() { return /* binding */ RawPurePanel; }
+/* harmony export */ });
+/* unused harmony export getOverlay */
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var rc_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip */ 55477);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider */ 36355);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 77578);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 17356);
+"use client";
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+const getOverlay = (prefixCls, title, content) => {
+ if (!title && !content) return undefined;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_3__/* .getRenderPropValue */ .Z)(content)));
+};
+const RawPurePanel = props => {
+ const {
+ hashId,
+ prefixCls,
+ className,
+ style,
+ placement = 'top',
+ title,
+ content,
+ children
+ } = props;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className),
+ style: style
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", {
+ className: `${prefixCls}-arrow`
+ }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_tooltip__WEBPACK_IMPORTED_MODULE_1__/* .Popup */ .G, Object.assign({}, props, {
+ className: hashId,
+ prefixCls: prefixCls
+ }), children || getOverlay(prefixCls, title, content)));
+};
+const PurePanel = props => {
+ const {
+ prefixCls: customizePrefixCls
+ } = props,
+ restProps = __rest(props, ["prefixCls"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_4__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(RawPurePanel, Object.assign({}, restProps, {
+ prefixCls: prefixCls,
+ hashId: hashId
+ })));
+};
+/* harmony default export */ __webpack_exports__.ZP = (PurePanel);
+
+/***/ }),
+
+/***/ 60324:
+/*!***********************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/popover/index.js ***!
+ \***********************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
+/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
+/* harmony import */ var _util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/getRenderPropValue */ 77578);
+/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/motion */ 62892);
+/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
+/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../tooltip */ 6848);
+/* harmony import */ var _PurePanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PurePanel */ 39722);
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ 17356);
+"use client";
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+// CSSINJS
+
+const Overlay = _ref => {
+ let {
+ title,
+ content,
+ prefixCls
+ } = _ref;
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-title`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(title)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
+ className: `${prefixCls}-inner-content`
+ }, (0,_util_getRenderPropValue__WEBPACK_IMPORTED_MODULE_2__/* .getRenderPropValue */ .Z)(content)));
+};
+const Popover = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.forwardRef((props, ref) => {
+ const {
+ prefixCls: customizePrefixCls,
+ title,
+ content,
+ overlayClassName,
+ placement = 'top',
+ trigger = 'hover',
+ mouseEnterDelay = 0.1,
+ mouseLeaveDelay = 0.1,
+ overlayStyle = {}
+ } = props,
+ otherProps = __rest(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle"]);
+ const {
+ getPrefixCls
+ } = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
+ const prefixCls = getPrefixCls('popover', customizePrefixCls);
+ const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(prefixCls);
+ const rootPrefixCls = getPrefixCls();
+ const overlayCls = classnames__WEBPACK_IMPORTED_MODULE_0___default()(overlayClassName, hashId);
+ return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, Object.assign({
+ placement: placement,
+ trigger: trigger,
+ mouseEnterDelay: mouseEnterDelay,
+ mouseLeaveDelay: mouseLeaveDelay,
+ overlayStyle: overlayStyle
+ }, otherProps, {
+ prefixCls: prefixCls,
+ overlayClassName: overlayCls,
+ ref: ref,
+ overlay: title || content ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Overlay, {
+ prefixCls: prefixCls,
+ title: title,
+ content: content
+ }) : null,
+ transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_6__/* .getTransitionName */ .m)(rootPrefixCls, 'zoom-big', otherProps.transitionName),
+ "data-popover-inject": true
+ })));
+});
+if (false) {}
+Popover._InternalPanelDoNotUseOrYouWillBeFired = _PurePanel__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .ZP;
+/* harmony default export */ __webpack_exports__.Z = (Popover);
+
+/***/ }),
+
+/***/ 17356:
+/*!*****************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/popover/style/index.js ***!
+ \*****************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
+/* harmony import */ var _style_motion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../style/motion */ 29878);
+/* harmony import */ var _style_placementArrow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style/placementArrow */ 19447);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 33166);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 83116);
+/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme/internal */ 37613);
+"use client";
+
+
+
+
+
+const genBaseStyle = token => {
+ const {
+ componentCls,
+ popoverColor,
+ minWidth,
+ fontWeightStrong,
+ popoverPadding,
+ boxShadowSecondary,
+ colorTextHeading,
+ borderRadiusLG: borderRadius,
+ zIndexPopup,
+ marginXS,
+ colorBgElevated,
+ popoverBg
+ } = token;
+ return [{
+ [componentCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
+ position: 'absolute',
+ top: 0,
+ // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
+ left: {
+ _skip_check_: true,
+ value: 0
+ },
+ zIndex: zIndexPopup,
+ fontWeight: 'normal',
+ whiteSpace: 'normal',
+ textAlign: 'start',
+ cursor: 'auto',
+ userSelect: 'text',
+ transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,
+ '--antd-arrow-background-color': colorBgElevated,
+ '&-rtl': {
+ direction: 'rtl'
+ },
+ '&-hidden': {
+ display: 'none'
+ },
+ [`${componentCls}-content`]: {
+ position: 'relative'
+ },
+ [`${componentCls}-inner`]: {
+ backgroundColor: popoverBg,
+ backgroundClip: 'padding-box',
+ borderRadius,
+ boxShadow: boxShadowSecondary,
+ padding: popoverPadding
+ },
+ [`${componentCls}-title`]: {
+ minWidth,
+ marginBottom: marginXS,
+ color: colorTextHeading,
+ fontWeight: fontWeightStrong
+ },
+ [`${componentCls}-inner-content`]: {
+ color: popoverColor
+ }
+ })
+ },
+ // Arrow Style
+ (0,_style_placementArrow__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP)(token, {
+ colorBg: 'var(--antd-arrow-background-color)'
+ }),
+ // Pure Render
+ {
+ [`${componentCls}-pure`]: {
+ position: 'relative',
+ maxWidth: 'none',
+ margin: token.sizePopupArrow,
+ display: 'inline-block',
+ [`${componentCls}-content`]: {
+ display: 'inline-block'
+ }
+ }
+ }];
+};
+const genColorStyle = token => {
+ const {
+ componentCls
+ } = token;
+ return {
+ [componentCls]: _theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .PresetColors */ .i.map(colorKey => {
+ const lightColor = token[`${colorKey}6`];
+ return {
+ [`&${componentCls}-${colorKey}`]: {
+ '--antd-arrow-background-color': lightColor,
+ [`${componentCls}-inner`]: {
+ backgroundColor: lightColor
+ },
+ [`${componentCls}-arrow`]: {
+ background: 'transparent'
+ }
+ }
+ };
+ })
+ };
+};
+const genWireframeStyle = token => {
+ const {
+ componentCls,
+ lineWidth,
+ lineType,
+ colorSplit,
+ paddingSM,
+ controlHeight,
+ fontSize,
+ lineHeight,
+ padding
+ } = token;
+ const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
+ const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;
+ const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;
+ const popoverPaddingHorizontal = padding;
+ return {
+ [componentCls]: {
+ [`${componentCls}-inner`]: {
+ padding: 0
+ },
+ [`${componentCls}-title`]: {
+ margin: 0,
+ padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,
+ borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`
+ },
+ [`${componentCls}-inner-content`]: {
+ padding: `${paddingSM}px ${popoverPaddingHorizontal}px`
+ }
+ }
+ };
+};
+/* harmony default export */ __webpack_exports__.Z = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Popover', token => {
+ const {
+ colorBgElevated,
+ colorText,
+ wireframe
+ } = token;
+ const popoverToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_4__/* .merge */ .TS)(token, {
+ popoverPadding: 12,
+ popoverBg: colorBgElevated,
+ popoverColor: colorText
+ });
+ return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), (0,_style_motion__WEBPACK_IMPORTED_MODULE_5__/* .initZoomMotion */ ._y)(popoverToken, 'zoom-big')];
+}, token => ({
+ width: 177,
+ minWidth: 177,
+ zIndexPopup: token.zIndexPopupBase + 30
+}), {
+ resetStyle: false,
+ deprecatedTokens: [['width', 'minWidth']]
+}));
+
+/***/ }),
+
+/***/ 46819:
+/*!********************************************************************!*\
+ !*** ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules ***!
+ \********************************************************************/
+/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
+
+
+// EXPORTS
+__webpack_require__.d(__webpack_exports__, {
+ Z: function() { return /* binding */ tree; }
+});
+
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules
+var es = __webpack_require__(99581);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
+var toConsumableArray = __webpack_require__(26390);
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/FileOutlined.js + 1 modules
+var FileOutlined = __webpack_require__(43971);
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules
+var FolderOpenOutlined = __webpack_require__(58358);
+// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
+var esm_extends = __webpack_require__(5891);
+// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
+var _react_17_0_2_react = __webpack_require__(59301);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FolderOutlined.js
+// This icon file is generated automatically.
+var FolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, "name": "folder", "theme": "outlined" };
+/* harmony default export */ var asn_FolderOutlined = (FolderOutlined);
+
+// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
+var AntdIcon = __webpack_require__(88853);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/FolderOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+
+var FolderOutlined_FolderOutlined = function FolderOutlined(props, ref) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ icon: asn_FolderOutlined
+ }));
+};
+
+/** */
+var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOutlined_FolderOutlined);
+if (false) {}
+/* harmony default export */ var icons_FolderOutlined = (RefIcon);
+// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
+var _classnames_2_5_1_classnames = __webpack_require__(92310);
+var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/util.js
+var util = __webpack_require__(35654);
+// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js
+var treeUtil = __webpack_require__(71430);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
+var context = __webpack_require__(36355);
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/HolderOutlined.js
+// This icon file is generated automatically.
+var HolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, "name": "holder", "theme": "outlined" };
+/* harmony default export */ var asn_HolderOutlined = (HolderOutlined);
+
+;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/HolderOutlined.js
+
+// GENERATE BY ./scripts/generate.ts
+// DON NOT EDIT IT MANUALLY
+
+
+
+
+var HolderOutlined_HolderOutlined = function HolderOutlined(props, ref) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
+ ref: ref,
+ icon: asn_HolderOutlined
+ }));
+};
+
+/** */
+var HolderOutlined_RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(HolderOutlined_HolderOutlined);
+if (false) {}
+/* harmony default export */ var icons_HolderOutlined = (HolderOutlined_RefIcon);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js
+var _util_motion = __webpack_require__(62892);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js
+var tree_style = __webpack_require__(20648);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dropIndicator.js
+"use client";
+
+
+const offset = 4;
+function dropIndicatorRender(props) {
+ const {
+ dropPosition,
+ dropLevelOffset,
+ prefixCls,
+ indent,
+ direction = 'ltr'
+ } = props;
+ const startPosition = direction === 'ltr' ? 'left' : 'right';
+ const endPosition = direction === 'ltr' ? 'right' : 'left';
+ const style = {
+ [startPosition]: -dropLevelOffset * indent + offset,
+ [endPosition]: 0
+ };
+ switch (dropPosition) {
+ case -1:
+ style.top = -3;
+ break;
+ case 1:
+ style.bottom = -3;
+ break;
+ default:
+ // dropPosition === 0
+ style.bottom = -3;
+ style[startPosition] = indent + offset;
+ break;
+ }
+ return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
+ style: style,
+ className: `${prefixCls}-drop-indicator`
+ });
+}
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules
+var iconUtil = __webpack_require__(48610);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/Tree.js
+"use client";
+
+
+
+
+
+
+
+
+
+
+const Tree = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
+ const {
+ getPrefixCls,
+ direction,
+ virtual,
+ tree
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const {
+ prefixCls: customizePrefixCls,
+ className,
+ showIcon = false,
+ showLine,
+ switcherIcon,
+ blockNode = false,
+ children,
+ checkable = false,
+ selectable = true,
+ draggable,
+ motion: customMotion,
+ style
+ } = props;
+ const prefixCls = getPrefixCls('tree', customizePrefixCls);
+ const rootPrefixCls = getPrefixCls();
+ const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, (0,_util_motion/* default */.Z)(rootPrefixCls)), {
+ motionAppear: false
+ });
+ const newProps = Object.assign(Object.assign({}, props), {
+ checkable,
+ selectable,
+ showIcon,
+ motion,
+ blockNode,
+ showLine: Boolean(showLine),
+ dropIndicatorRender: dropIndicatorRender
+ });
+ const [wrapSSR, hashId] = (0,tree_style/* default */.ZP)(prefixCls);
+ const draggableConfig = _react_17_0_2_react.useMemo(() => {
+ if (!draggable) {
+ return false;
+ }
+ let mergedDraggable = {};
+ switch (typeof draggable) {
+ case 'function':
+ mergedDraggable.nodeDraggable = draggable;
+ break;
+ case 'object':
+ mergedDraggable = Object.assign({}, draggable);
+ break;
+ default:
+ break;
+ // Do nothing
+ }
+
+ if (mergedDraggable.icon !== false) {
+ mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/_react_17_0_2_react.createElement(icons_HolderOutlined, null);
+ }
+ return mergedDraggable;
+ }, [draggable]);
+ const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(iconUtil/* default */.Z, {
+ prefixCls: prefixCls,
+ switcherIcon: switcherIcon,
+ treeNodeProps: nodeProps,
+ showLine: showLine
+ });
+ return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
+ itemHeight: 20,
+ ref: ref,
+ virtual: virtual
+ }, newProps, {
+ // newProps may contain style so declare style below it
+ style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style),
+ prefixCls: prefixCls,
+ className: _classnames_2_5_1_classnames_default()({
+ [`${prefixCls}-icon-hide`]: !showIcon,
+ [`${prefixCls}-block-node`]: blockNode,
+ [`${prefixCls}-unselectable`]: !selectable,
+ [`${prefixCls}-rtl`]: direction === 'rtl'
+ }, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId),
+ direction: direction,
+ checkable: checkable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
+ className: `${prefixCls}-checkbox-inner`
+ }) : checkable,
+ selectable: selectable,
+ switcherIcon: renderSwitcherIcon,
+ draggable: draggableConfig
+ }), children));
+});
+if (false) {}
+/* harmony default export */ var tree_Tree = (Tree);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dictUtil.js
+
+var Record;
+(function (Record) {
+ Record[Record["None"] = 0] = "None";
+ Record[Record["Start"] = 1] = "Start";
+ Record[Record["End"] = 2] = "End";
+})(Record || (Record = {}));
+function traverseNodesKey(treeData, callback) {
+ function processNode(dataNode) {
+ const {
+ key,
+ children
+ } = dataNode;
+ if (callback(key, dataNode) !== false) {
+ traverseNodesKey(children || [], callback);
+ }
+ }
+ treeData.forEach(processNode);
+}
+/** 计算选中范围,只考虑expanded情况以优化性能 */
+function calcRangeKeys(_ref) {
+ let {
+ treeData,
+ expandedKeys,
+ startKey,
+ endKey
+ } = _ref;
+ const keys = [];
+ let record = Record.None;
+ if (startKey && startKey === endKey) {
+ return [startKey];
+ }
+ if (!startKey || !endKey) {
+ return [];
+ }
+ function matchKey(key) {
+ return key === startKey || key === endKey;
+ }
+ traverseNodesKey(treeData, key => {
+ if (record === Record.End) {
+ return false;
+ }
+ if (matchKey(key)) {
+ // Match test
+ keys.push(key);
+ if (record === Record.None) {
+ record = Record.Start;
+ } else if (record === Record.Start) {
+ record = Record.End;
+ return false;
+ }
+ } else if (record === Record.Start) {
+ // Append selection
+ keys.push(key);
+ }
+ return expandedKeys.includes(key);
+ });
+ return keys;
+}
+function convertDirectoryKeysToNodes(treeData, keys) {
+ const restKeys = (0,toConsumableArray/* default */.Z)(keys);
+ const nodes = [];
+ traverseNodesKey(treeData, (key, node) => {
+ const index = restKeys.indexOf(key);
+ if (index !== -1) {
+ nodes.push(node);
+ restKeys.splice(index, 1);
+ }
+ return !!restKeys.length;
+ });
+ return nodes;
+}
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/DirectoryTree.js
+"use client";
+
+
+var __rest = undefined && undefined.__rest || function (s, e) {
+ var t = {};
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
+ }
+ return t;
+};
+
+
+
+
+
+
+
+
+
+
+function getIcon(props) {
+ const {
+ isLeaf,
+ expanded
+ } = props;
+ if (isLeaf) {
+ return /*#__PURE__*/_react_17_0_2_react.createElement(FileOutlined/* default */.Z, null);
+ }
+ return expanded ? /*#__PURE__*/_react_17_0_2_react.createElement(FolderOpenOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_FolderOutlined, null);
+}
+function getTreeData(_ref) {
+ let {
+ treeData,
+ children
+ } = _ref;
+ return treeData || (0,treeUtil/* convertTreeToData */.zn)(children);
+}
+const DirectoryTree = (_a, ref) => {
+ var {
+ defaultExpandAll,
+ defaultExpandParent,
+ defaultExpandedKeys
+ } = _a,
+ props = __rest(_a, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]);
+ // Shift click usage
+ const lastSelectedKey = _react_17_0_2_react.useRef();
+ const cachedSelectedKeys = _react_17_0_2_react.useRef();
+ const getInitExpandedKeys = () => {
+ const {
+ keyEntities
+ } = (0,treeUtil/* convertDataToEntities */.I8)(getTreeData(props));
+ let initExpandedKeys;
+ // Expanded keys
+ if (defaultExpandAll) {
+ initExpandedKeys = Object.keys(keyEntities);
+ } else if (defaultExpandParent) {
+ initExpandedKeys = (0,util/* conductExpandParent */.r7)(props.expandedKeys || defaultExpandedKeys || [], keyEntities);
+ } else {
+ initExpandedKeys = props.expandedKeys || defaultExpandedKeys;
+ }
+ return initExpandedKeys;
+ };
+ const [selectedKeys, setSelectedKeys] = _react_17_0_2_react.useState(props.selectedKeys || props.defaultSelectedKeys || []);
+ const [expandedKeys, setExpandedKeys] = _react_17_0_2_react.useState(() => getInitExpandedKeys());
+ _react_17_0_2_react.useEffect(() => {
+ if ('selectedKeys' in props) {
+ setSelectedKeys(props.selectedKeys);
+ }
+ }, [props.selectedKeys]);
+ _react_17_0_2_react.useEffect(() => {
+ if ('expandedKeys' in props) {
+ setExpandedKeys(props.expandedKeys);
+ }
+ }, [props.expandedKeys]);
+ const onExpand = (keys, info) => {
+ var _a;
+ if (!('expandedKeys' in props)) {
+ setExpandedKeys(keys);
+ }
+ // Call origin function
+ return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info);
+ };
+ const onSelect = (keys, event) => {
+ var _a;
+ const {
+ multiple
+ } = props;
+ const {
+ node,
+ nativeEvent
+ } = event;
+ const {
+ key = ''
+ } = node;
+ const treeData = getTreeData(props);
+ // const newState: DirectoryTreeState = {};
+ // We need wrap this event since some value is not same
+ const newEvent = Object.assign(Object.assign({}, event), {
+ selected: true
+ });
+ // Windows / Mac single pick
+ const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
+ const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;
+ // Generate new selected keys
+ let newSelectedKeys;
+ if (multiple && ctrlPick) {
+ // Control click
+ newSelectedKeys = keys;
+ lastSelectedKey.current = key;
+ cachedSelectedKeys.current = newSelectedKeys;
+ newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
+ } else if (multiple && shiftPick) {
+ // Shift click
+ newSelectedKeys = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(cachedSelectedKeys.current || []), (0,toConsumableArray/* default */.Z)(calcRangeKeys({
+ treeData,
+ expandedKeys,
+ startKey: key,
+ endKey: lastSelectedKey.current
+ })))));
+ newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
+ } else {
+ // Single click
+ newSelectedKeys = [key];
+ lastSelectedKey.current = key;
+ cachedSelectedKeys.current = newSelectedKeys;
+ newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
+ }
+ (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent);
+ if (!('selectedKeys' in props)) {
+ setSelectedKeys(newSelectedKeys);
+ }
+ };
+ const {
+ getPrefixCls,
+ direction
+ } = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
+ const {
+ prefixCls: customizePrefixCls,
+ className,
+ showIcon = true,
+ expandAction = 'click'
+ } = props,
+ otherProps = __rest(props, ["prefixCls", "className", "showIcon", "expandAction"]);
+ const prefixCls = getPrefixCls('tree', customizePrefixCls);
+ const connectClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-directory`, {
+ [`${prefixCls}-directory-rtl`]: direction === 'rtl'
+ }, className);
+ return /*#__PURE__*/_react_17_0_2_react.createElement(tree_Tree, Object.assign({
+ icon: getIcon,
+ ref: ref,
+ blockNode: true
+ }, otherProps, {
+ showIcon: showIcon,
+ expandAction: expandAction,
+ prefixCls: prefixCls,
+ className: connectClassName,
+ expandedKeys: expandedKeys,
+ selectedKeys: selectedKeys,
+ onSelect: onSelect,
+ onExpand: onExpand
+ }));
+};
+const ForwardDirectoryTree = /*#__PURE__*/_react_17_0_2_react.forwardRef(DirectoryTree);
+if (false) {}
+/* harmony default export */ var tree_DirectoryTree = (ForwardDirectoryTree);
+;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js
+"use client";
+
+
+
+
+const es_tree_Tree = tree_Tree;
+es_tree_Tree.DirectoryTree = tree_DirectoryTree;
+es_tree_Tree.TreeNode = es/* TreeNode */.O;
+/* harmony default export */ var tree = (es_tree_Tree);
+
+/***/ })
+
+}]);
\ No newline at end of file
diff --git a/86130.9d343b37.async.js b/65825.6282e81f.async.js
similarity index 87%
rename from 86130.9d343b37.async.js
rename to 65825.6282e81f.async.js
index 8ca016492f..22a9c489fe 100644
--- a/86130.9d343b37.async.js
+++ b/65825.6282e81f.async.js
@@ -1,50 +1,5 @@
"use strict";
-(self["webpackChunk"] = self["webpackChunk"] || []).push([[86130,24064,50523,70176,18945,47271,50032,96004,23003,6572],{
-
-/***/ 10402:
-/*!*******************************************************************************************************!*\
- !*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
- \*******************************************************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-
-// EXPORTS
-__webpack_require__.d(__webpack_exports__, {
- Z: function() { return /* binding */ icons_CheckOutlined; }
-});
-
-// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
-var esm_extends = __webpack_require__(5891);
-// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
-var _react_17_0_2_react = __webpack_require__(59301);
-;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/CheckOutlined.js
-// This icon file is generated automatically.
-var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
-/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
-
-// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
-var AntdIcon = __webpack_require__(88853);
-;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/CheckOutlined.js
-
-// GENERATE BY ./scripts/generate.ts
-// DON NOT EDIT IT MANUALLY
-
-
-
-
-var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
- return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
- ref: ref,
- icon: asn_CheckOutlined
- }));
-};
-
-/** */
-var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined);
-if (false) {}
-/* harmony default export */ var icons_CheckOutlined = (RefIcon);
-
-/***/ }),
+(self["webpackChunk"] = self["webpackChunk"] || []).push([[65825,24064,96004,23003,6572],{
/***/ 61441:
/*!**************************************************************************************************************!*\
@@ -1155,159 +1110,6 @@ CompoundedSpace.Compact = Compact/* default */.ZP;
/***/ }),
-/***/ 92899:
-/*!***************************************************************!*\
- !*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
- \***************************************************************/
-/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
-
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
-/* harmony export */ });
-/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
-/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 9792);
-/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
-
-
-const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
- '0%': {
- transform: 'translate3d(0, 100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(0, 100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
- '0%': {
- transform: 'translate3d(-100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(-100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
- '0%': {
- transform: 'translate3d(100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(100%, 0, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
- '0%': {
- transform: 'translate3d(0, -100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- },
- '100%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- }
-});
-const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
- '0%': {
- transform: 'translate3d(0, 0, 0)',
- transformOrigin: '0 0',
- opacity: 1
- },
- '100%': {
- transform: 'translate3d(0, -100%, 0)',
- transformOrigin: '0 0',
- opacity: 0
- }
-});
-const moveMotion = {
- 'move-up': {
- inKeyframes: moveUpIn,
- outKeyframes: moveUpOut
- },
- 'move-down': {
- inKeyframes: moveDownIn,
- outKeyframes: moveDownOut
- },
- 'move-left': {
- inKeyframes: moveLeftIn,
- outKeyframes: moveLeftOut
- },
- 'move-right': {
- inKeyframes: moveRightIn,
- outKeyframes: moveRightOut
- }
-};
-const initMoveMotion = (token, motionName) => {
- const {
- antCls
- } = token;
- const motionCls = `${antCls}-${motionName}`;
- const {
- inKeyframes,
- outKeyframes
- } = moveMotion[motionName];
- return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
- [`
- ${motionCls}-enter,
- ${motionCls}-appear
- `]: {
- opacity: 0,
- animationTimingFunction: token.motionEaseOutCirc
- },
- [`${motionCls}-leave`]: {
- animationTimingFunction: token.motionEaseInOutCirc
- }
- }];
-};
-
-/***/ }),
-
/***/ 60028:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/upload/index.js ***!
diff --git a/82639.d61cfeba.async.js b/82639.52c2bb11.async.js
similarity index 99%
rename from 82639.d61cfeba.async.js
rename to 82639.52c2bb11.async.js
index df50ee3ae0..8e5e6a5298 100644
--- a/82639.d61cfeba.async.js
+++ b/82639.52c2bb11.async.js
@@ -11875,8 +11875,8 @@ var FieldTimeRangePickerComponents = function FieldTimeRangePickerComponents(_re
var FieldTimeRangePicker = /*#__PURE__*/_react_17_0_2_react.forwardRef(FieldTimeRangePickerComponents);
/* harmony default export */ var TimePicker = (/*#__PURE__*/_react_17_0_2_react.forwardRef(FieldTimePicker));
-// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 17 modules
-var tree_select = __webpack_require__(98228);
+// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree-select/index.js + 1 modules
+var tree_select = __webpack_require__(38359);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_pro-field@3.0.1@@ant-design/pro-field/es/components/TreeSelect/index.js
diff --git a/index.html b/index.html
index 6031c4c829..2046d2378d 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
display: block !important;
}
-
+