@capillarytech/blaze-ui 1.0.3-alpha.15 → 1.0.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +91 -91
- package/CapAlert/CapAlert.d.ts +0 -12
- package/CapAlert/CapAlert.d.ts.map +0 -1
- package/CapAlert/CapAlert.test.d.ts +0 -2
- package/CapAlert/CapAlert.test.d.ts.map +0 -1
- package/CapAlert/index.d.ts +0 -3
- package/CapAlert/index.d.ts.map +0 -1
- package/CapAlert/index.js +0 -696
- package/CapAlert/index.js.map +0 -1
- package/CapButton/CapButton.d.ts +0 -11
- package/CapButton/CapButton.d.ts.map +0 -1
- package/CapButton/CapButton.test.d.ts +0 -2
- package/CapButton/CapButton.test.d.ts.map +0 -1
- package/CapButton/index.d.ts +0 -3
- package/CapButton/index.d.ts.map +0 -1
- package/CapButton/index.js +0 -998
- package/CapButton/index.js.map +0 -1
- package/CapCard/CapCard.d.ts +0 -9
- package/CapCard/CapCard.d.ts.map +0 -1
- package/CapCard/CapCard.test.d.ts +0 -2
- package/CapCard/CapCard.test.d.ts.map +0 -1
- package/CapCard/index.d.ts +0 -3
- package/CapCard/index.d.ts.map +0 -1
- package/CapCard/index.js +0 -697
- package/CapCard/index.js.map +0 -1
- package/CapCheckbox/CapCheckbox.d.ts +0 -17
- package/CapCheckbox/CapCheckbox.d.ts.map +0 -1
- package/CapCheckbox/CapCheckbox.test.d.ts +0 -2
- package/CapCheckbox/CapCheckbox.test.d.ts.map +0 -1
- package/CapCheckbox/index.d.ts +0 -3
- package/CapCheckbox/index.d.ts.map +0 -1
- package/CapCheckbox/index.js +0 -917
- package/CapCheckbox/index.js.map +0 -1
- package/CapColumn/CapColumn.d.ts +0 -9
- package/CapColumn/CapColumn.d.ts.map +0 -1
- package/CapColumn/CapColumn.test.d.ts +0 -2
- package/CapColumn/CapColumn.test.d.ts.map +0 -1
- package/CapColumn/index.d.ts +0 -3
- package/CapColumn/index.d.ts.map +0 -1
- package/CapColumn/index.js +0 -694
- package/CapColumn/index.js.map +0 -1
- package/CapDivider/CapDivider.d.ts +0 -9
- package/CapDivider/CapDivider.d.ts.map +0 -1
- package/CapDivider/CapDivider.test.d.ts +0 -2
- package/CapDivider/CapDivider.test.d.ts.map +0 -1
- package/CapDivider/index.d.ts +0 -3
- package/CapDivider/index.d.ts.map +0 -1
- package/CapDivider/index.js +0 -696
- package/CapDivider/index.js.map +0 -1
- package/CapDropdown/CapDropdown.d.ts +0 -20
- package/CapDropdown/CapDropdown.d.ts.map +0 -1
- package/CapDropdown/CapDropdown.test.d.ts +0 -2
- package/CapDropdown/CapDropdown.test.d.ts.map +0 -1
- package/CapDropdown/index.d.ts +0 -3
- package/CapDropdown/index.d.ts.map +0 -1
- package/CapDropdown/index.js +0 -715
- package/CapDropdown/index.js.map +0 -1
- package/CapForm/CapForm.d.ts +0 -10
- package/CapForm/CapForm.d.ts.map +0 -1
- package/CapForm/CapForm.test.d.ts +0 -2
- package/CapForm/CapForm.test.d.ts.map +0 -1
- package/CapForm/index.d.ts +0 -3
- package/CapForm/index.d.ts.map +0 -1
- package/CapForm/index.js +0 -696
- package/CapForm/index.js.map +0 -1
- package/CapFormItem/CapFormItem.d.ts +0 -13
- package/CapFormItem/CapFormItem.d.ts.map +0 -1
- package/CapFormItem/CapFormItem.test.d.ts +0 -2
- package/CapFormItem/CapFormItem.test.d.ts.map +0 -1
- package/CapFormItem/index.d.ts +0 -3
- package/CapFormItem/index.d.ts.map +0 -1
- package/CapFormItem/index.js +0 -697
- package/CapFormItem/index.js.map +0 -1
- package/CapIcon/CapIcon.d.ts +0 -31
- package/CapIcon/CapIcon.d.ts.map +0 -1
- package/CapIcon/CapIcon.test.d.ts +0 -2
- package/CapIcon/CapIcon.test.d.ts.map +0 -1
- package/CapIcon/index.d.ts +0 -3
- package/CapIcon/index.d.ts.map +0 -1
- package/CapIcon/index.js +0 -853
- package/CapIcon/index.js.map +0 -1
- package/CapInput/CapInput.d.ts +0 -11
- package/CapInput/CapInput.d.ts.map +0 -1
- package/CapInput/CapInput.test.d.ts +0 -2
- package/CapInput/CapInput.test.d.ts.map +0 -1
- package/CapInput/Number.d.ts +0 -9
- package/CapInput/Number.d.ts.map +0 -1
- package/CapInput/Number.test.d.ts +0 -2
- package/CapInput/Number.test.d.ts.map +0 -1
- package/CapInput/Search.d.ts +0 -9
- package/CapInput/Search.d.ts.map +0 -1
- package/CapInput/Search.test.d.ts +0 -2
- package/CapInput/Search.test.d.ts.map +0 -1
- package/CapInput/TextArea.d.ts +0 -9
- package/CapInput/TextArea.d.ts.map +0 -1
- package/CapInput/TextArea.test.d.ts +0 -2
- package/CapInput/TextArea.test.d.ts.map +0 -1
- package/CapInput/index.d.ts +0 -9
- package/CapInput/index.d.ts.map +0 -1
- package/CapInput/index.js +0 -744
- package/CapInput/index.js.map +0 -1
- package/CapLabel/CapLabel.d.ts +0 -23
- package/CapLabel/CapLabel.d.ts.map +0 -1
- package/CapLabel/CapLabel.test.d.ts +0 -2
- package/CapLabel/CapLabel.test.d.ts.map +0 -1
- package/CapLabel/index.d.ts +0 -3
- package/CapLabel/index.d.ts.map +0 -1
- package/CapLabel/index.js +0 -760
- package/CapLabel/index.js.map +0 -1
- package/CapMenu/CapMenu.d.ts +0 -27
- package/CapMenu/CapMenu.d.ts.map +0 -1
- package/CapMenu/CapMenu.test.d.ts +0 -2
- package/CapMenu/CapMenu.test.d.ts.map +0 -1
- package/CapMenu/index.d.ts +0 -3
- package/CapMenu/index.d.ts.map +0 -1
- package/CapMenu/index.js +0 -716
- package/CapMenu/index.js.map +0 -1
- package/CapRadio/CapRadio.d.ts +0 -18
- package/CapRadio/CapRadio.d.ts.map +0 -1
- package/CapRadio/CapRadio.test.d.ts +0 -2
- package/CapRadio/CapRadio.test.d.ts.map +0 -1
- package/CapRadio/index.d.ts +0 -3
- package/CapRadio/index.d.ts.map +0 -1
- package/CapRadio/index.js +0 -918
- package/CapRadio/index.js.map +0 -1
- package/CapRow/CapRow.d.ts +0 -27
- package/CapRow/CapRow.d.ts.map +0 -1
- package/CapRow/CapRow.test.d.ts +0 -2
- package/CapRow/CapRow.test.d.ts.map +0 -1
- package/CapRow/index.d.ts +0 -3
- package/CapRow/index.d.ts.map +0 -1
- package/CapRow/index.js +0 -751
- package/CapRow/index.js.map +0 -1
- package/CapSkeleton/CapSkeleton.d.ts +0 -8
- package/CapSkeleton/CapSkeleton.d.ts.map +0 -1
- package/CapSkeleton/CapSkeleton.test.d.ts +0 -2
- package/CapSkeleton/CapSkeleton.test.d.ts.map +0 -1
- package/CapSkeleton/index.d.ts +0 -3
- package/CapSkeleton/index.d.ts.map +0 -1
- package/CapSkeleton/index.js +0 -124
- package/CapSkeleton/index.js.map +0 -1
- package/CapSpin/CapSpin.d.ts +0 -8
- package/CapSpin/CapSpin.d.ts.map +0 -1
- package/CapSpin/CapSpin.test.d.ts +0 -2
- package/CapSpin/CapSpin.test.d.ts.map +0 -1
- package/CapSpin/index.d.ts +0 -3
- package/CapSpin/index.d.ts.map +0 -1
- package/CapSpin/index.js +0 -123
- package/CapSpin/index.js.map +0 -1
- package/CapSwitch/CapSwitch.d.ts +0 -12
- package/CapSwitch/CapSwitch.d.ts.map +0 -1
- package/CapSwitch/CapSwitch.test.d.ts +0 -2
- package/CapSwitch/CapSwitch.test.d.ts.map +0 -1
- package/CapSwitch/index.d.ts +0 -3
- package/CapSwitch/index.d.ts.map +0 -1
- package/CapSwitch/index.js +0 -700
- package/CapSwitch/index.js.map +0 -1
- package/CapTab/CapTab.d.ts +0 -21
- package/CapTab/CapTab.d.ts.map +0 -1
- package/CapTab/CapTab.test.d.ts +0 -2
- package/CapTab/CapTab.test.d.ts.map +0 -1
- package/CapTab/index.d.ts +0 -3
- package/CapTab/index.d.ts.map +0 -1
- package/CapTab/index.js +0 -729
- package/CapTab/index.js.map +0 -1
- package/CapTable/CapTable.d.ts +0 -27
- package/CapTable/CapTable.d.ts.map +0 -1
- package/CapTable/CapTable.test.d.ts +0 -2
- package/CapTable/CapTable.test.d.ts.map +0 -1
- package/CapTable/index.d.ts +0 -3
- package/CapTable/index.d.ts.map +0 -1
- package/CapTable/index.js +0 -18315
- package/CapTable/index.js.map +0 -1
- package/CapTable/loadable.d.ts +0 -5
- package/CapTable/loadable.d.ts.map +0 -1
- package/CapTable/loadable.test.d.ts +0 -2
- package/CapTable/loadable.test.d.ts.map +0 -1
- package/CapTestSelect/CapTestSelect.d.ts +0 -24
- package/CapTestSelect/CapTestSelect.d.ts.map +0 -1
- package/CapTestSelect/CapTestSelect.test.d.ts +0 -2
- package/CapTestSelect/CapTestSelect.test.d.ts.map +0 -1
- package/CapTestSelect/index.d.ts +0 -3
- package/CapTestSelect/index.d.ts.map +0 -1
- package/CapTestSelect/index.js +0 -130
- package/CapTestSelect/index.js.map +0 -1
- package/CapTooltip/CapTooltip.d.ts +0 -10
- package/CapTooltip/CapTooltip.d.ts.map +0 -1
- package/CapTooltip/CapTooltip.test.d.ts +0 -2
- package/CapTooltip/CapTooltip.test.d.ts.map +0 -1
- package/CapTooltip/index.d.ts +0 -3
- package/CapTooltip/index.d.ts.map +0 -1
- package/CapTooltip/index.js +0 -730
- package/CapTooltip/index.js.map +0 -1
- package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts +0 -18
- package/CapTooltipWithInfo/CapTooltipWithInfo.d.ts.map +0 -1
- package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts +0 -2
- package/CapTooltipWithInfo/CapTooltipWithInfo.test.d.ts.map +0 -1
- package/CapTooltipWithInfo/index.d.ts +0 -3
- package/CapTooltipWithInfo/index.d.ts.map +0 -1
- package/CapTooltipWithInfo/index.js +0 -1156
- package/CapTooltipWithInfo/index.js.map +0 -1
- package/CapUnifiedSelect/CapUnifiedSelect.d.ts +0 -133
- package/CapUnifiedSelect/CapUnifiedSelect.d.ts.map +0 -1
- package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts +0 -2
- package/CapUnifiedSelect/CapUnifiedSelect.test.d.ts.map +0 -1
- package/CapUnifiedSelect/components.d.ts +0 -9
- package/CapUnifiedSelect/components.d.ts.map +0 -1
- package/CapUnifiedSelect/constants.d.ts +0 -31
- package/CapUnifiedSelect/constants.d.ts.map +0 -1
- package/CapUnifiedSelect/index.d.ts +0 -3
- package/CapUnifiedSelect/index.d.ts.map +0 -1
- package/CapUnifiedSelect/index.js +0 -3145
- package/CapUnifiedSelect/index.js.map +0 -1
- package/CapUnifiedSelect/messages.d.ts +0 -24
- package/CapUnifiedSelect/messages.d.ts.map +0 -1
- package/CapUnifiedSelect/testData.d.ts +0 -75
- package/CapUnifiedSelect/testData.d.ts.map +0 -1
- package/CapUnifiedSelect/types.d.ts +0 -45
- package/CapUnifiedSelect/types.d.ts.map +0 -1
- package/CapUnifiedSelect/utils.d.ts +0 -34
- package/CapUnifiedSelect/utils.d.ts.map +0 -1
- package/LocaleHoc/index.d.ts +0 -9
- package/LocaleHoc/index.d.ts.map +0 -1
- package/LocaleHoc/index.js +0 -465
- package/LocaleHoc/index.js.map +0 -1
- package/LocaleHoc/index.test.d.ts +0 -2
- package/LocaleHoc/index.test.d.ts.map +0 -1
- package/assets/upload.svg +0 -3
- package/index.d.ts +0 -54
- package/index.d.ts.map +0 -1
- package/index.js +0 -24030
- package/index.js.map +0 -1
- package/styled/variables.d.ts +0 -150
- package/styled/variables.d.ts.map +0 -1
- package/styled/variables.scss +0 -194
- package/utils/fonts.d.ts +0 -49
- package/utils/fonts.d.ts.map +0 -1
- package/utils/fonts.test.d.ts +0 -2
- package/utils/fonts.test.d.ts.map +0 -1
- package/utils/index.d.ts +0 -44
- package/utils/index.d.ts.map +0 -1
- package/utils/index.js +0 -1147
- package/utils/index.js.map +0 -1
- package/utils/styles.d.ts +0 -19
- package/utils/styles.d.ts.map +0 -1
|
@@ -1,3145 +0,0 @@
|
|
|
1
|
-
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/ var __webpack_modules__ = ({
|
|
3
|
-
|
|
4
|
-
/***/ 455:
|
|
5
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.__esModule = true;
|
|
11
|
-
exports.SelectAllCheckbox = exports.NoResult = void 0;
|
|
12
|
-
var _antdV = __webpack_require__(4273);
|
|
13
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
14
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
15
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
|
|
16
|
-
var _CapLabel = _interopRequireDefault(__webpack_require__(3737));
|
|
17
|
-
var _CapRow = _interopRequireDefault(__webpack_require__(7375));
|
|
18
|
-
var _constants = __webpack_require__(9788);
|
|
19
|
-
var _styles = _interopRequireDefault(__webpack_require__(8263));
|
|
20
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
|
-
const NoResult = _ref => {
|
|
23
|
-
let {
|
|
24
|
-
noResultCustomText,
|
|
25
|
-
className,
|
|
26
|
-
showUpload,
|
|
27
|
-
options,
|
|
28
|
-
noResultCustomIcon
|
|
29
|
-
} = _ref;
|
|
30
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
31
|
-
className: (0, _classnames.default)(className, _styles.default['cap-unified-select-no-result']),
|
|
32
|
-
align: "middle",
|
|
33
|
-
gap: 8,
|
|
34
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
35
|
-
type: noResultCustomIcon,
|
|
36
|
-
size: "m"
|
|
37
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
38
|
-
className: _styles.default['cap-unified-select-no-result-text'],
|
|
39
|
-
children: showUpload && (options == null ? void 0 : options.length) === 0 ? noResultCustomText : _constants.DEFAULTS.NO_RESULT_TEXT
|
|
40
|
-
})]
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* SelectAllCheckbox component for selecting/deselecting all available options
|
|
46
|
-
* Only shown for multi-select with static data
|
|
47
|
-
*/
|
|
48
|
-
exports.NoResult = NoResult;
|
|
49
|
-
const SelectAllCheckbox = _ref2 => {
|
|
50
|
-
let {
|
|
51
|
-
currentItems,
|
|
52
|
-
tempValue,
|
|
53
|
-
setTempValue,
|
|
54
|
-
processTreeData,
|
|
55
|
-
disabled = false
|
|
56
|
-
} = _ref2;
|
|
57
|
-
const {
|
|
58
|
-
leafValues = []
|
|
59
|
-
} = processTreeData ? processTreeData(currentItems) : {};
|
|
60
|
-
const totalAvailable = leafValues.length;
|
|
61
|
-
const leafSet = new Set(leafValues);
|
|
62
|
-
const selectedInScope = Array.isArray(tempValue) ? tempValue.filter(v => leafSet.has(v)).length : 0;
|
|
63
|
-
const allChecked = totalAvailable > 0 && selectedInScope === totalAvailable;
|
|
64
|
-
const indeterminate = selectedInScope > 0 && selectedInScope < totalAvailable;
|
|
65
|
-
const handleChange = e => {
|
|
66
|
-
if (disabled) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (e.target.checked) {
|
|
70
|
-
const merged = new Set(Array.isArray(tempValue) ? tempValue : []);
|
|
71
|
-
leafValues.forEach(v => merged.add(v));
|
|
72
|
-
setTempValue(Array.from(merged));
|
|
73
|
-
} else {
|
|
74
|
-
const toRemove = new Set(leafValues);
|
|
75
|
-
const next = (Array.isArray(tempValue) ? tempValue : []).filter(v => !toRemove.has(v));
|
|
76
|
-
setTempValue(next);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
80
|
-
className: _styles.default['cap-unified-select-select-all-container'],
|
|
81
|
-
align: "middle",
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Checkbox, {
|
|
83
|
-
className: _styles.default['cap-unified-select-select-all-checkbox'],
|
|
84
|
-
checked: allChecked,
|
|
85
|
-
indeterminate: indeterminate,
|
|
86
|
-
onChange: handleChange,
|
|
87
|
-
disabled: disabled,
|
|
88
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
89
|
-
type: "label14",
|
|
90
|
-
className: _styles.default['cap-unified-select-select-all-label'],
|
|
91
|
-
children: "Select all"
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
exports.SelectAllCheckbox = SelectAllCheckbox;
|
|
97
|
-
|
|
98
|
-
/***/ }),
|
|
99
|
-
|
|
100
|
-
/***/ 540:
|
|
101
|
-
/***/ ((module) => {
|
|
102
|
-
|
|
103
|
-
"use strict";
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/* istanbul ignore next */
|
|
107
|
-
function insertStyleElement(options) {
|
|
108
|
-
var element = document.createElement("style");
|
|
109
|
-
options.setAttributes(element, options.attributes);
|
|
110
|
-
options.insert(element, options.options);
|
|
111
|
-
return element;
|
|
112
|
-
}
|
|
113
|
-
module.exports = insertStyleElement;
|
|
114
|
-
|
|
115
|
-
/***/ }),
|
|
116
|
-
|
|
117
|
-
/***/ 1020:
|
|
118
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
119
|
-
|
|
120
|
-
"use strict";
|
|
121
|
-
/**
|
|
122
|
-
* @license React
|
|
123
|
-
* react-jsx-runtime.production.min.js
|
|
124
|
-
*
|
|
125
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the MIT license found in the
|
|
128
|
-
* LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/
|
|
130
|
-
var f=__webpack_require__(9206),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
131
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
/***/ }),
|
|
135
|
-
|
|
136
|
-
/***/ 1549:
|
|
137
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
138
|
-
|
|
139
|
-
"use strict";
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
exports.__esModule = true;
|
|
143
|
-
exports["default"] = void 0;
|
|
144
|
-
var _CapSpin = _interopRequireDefault(__webpack_require__(7579));
|
|
145
|
-
exports["default"] = _CapSpin.default;
|
|
146
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
147
|
-
|
|
148
|
-
/***/ }),
|
|
149
|
-
|
|
150
|
-
/***/ 1601:
|
|
151
|
-
/***/ ((module) => {
|
|
152
|
-
|
|
153
|
-
"use strict";
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
module.exports = function (i) {
|
|
157
|
-
return i[1];
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
/***/ }),
|
|
161
|
-
|
|
162
|
-
/***/ 1858:
|
|
163
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
164
|
-
|
|
165
|
-
// Imports
|
|
166
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
167
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
168
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
169
|
-
// Module
|
|
170
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-row-v2.blaze-ui-with-custom-width{width:auto}.blaze-ui-cap-row-v2.blaze-ui-with-custom-height{height:auto}.blaze-ui-cap-row-v2.blaze-ui-fill-space{flex:1}.blaze-ui-cap-row-v2.blaze-ui-full-width{width:100%}.blaze-ui-cap-row-v2.blaze-ui-full-height{height:100%}.blaze-ui-cap-row-v2.blaze-ui-ant-row-no-wrap{flex-wrap:nowrap}.blaze-ui-cap-row-v2.blaze-ui-with-gap{display:grid;grid-template-columns:repeat(auto-fit, minmax(0, 1fr))}`, ""]);
|
|
171
|
-
// Exports
|
|
172
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
173
|
-
"cap-row-v2": `blaze-ui-cap-row-v2`,
|
|
174
|
-
"with-custom-width": `blaze-ui-with-custom-width`,
|
|
175
|
-
"with-custom-height": `blaze-ui-with-custom-height`,
|
|
176
|
-
"fill-space": `blaze-ui-fill-space`,
|
|
177
|
-
"full-width": `blaze-ui-full-width`,
|
|
178
|
-
"full-height": `blaze-ui-full-height`,
|
|
179
|
-
"ant-row-no-wrap": `blaze-ui-ant-row-no-wrap`,
|
|
180
|
-
"with-gap": `blaze-ui-with-gap`
|
|
181
|
-
};
|
|
182
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
/***/ }),
|
|
186
|
-
|
|
187
|
-
/***/ 2119:
|
|
188
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
189
|
-
|
|
190
|
-
// Imports
|
|
191
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
192
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
193
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
194
|
-
// Module
|
|
195
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-tooltip-overlay-v2 .ant-tooltip-inner{background-color:#091e42;color:#fff;padding:.571rem .857rem;font-size:1rem;line-height:1.429rem;border-radius:.286rem;max-width:21.429rem;word-wrap:break-word}.blaze-ui-cap-tooltip-overlay-v2 .ant-tooltip-arrow::before{background-color:#091e42}.blaze-ui-button-disabled-tooltip-wrapper{display:inline-block;cursor:not-allowed}.blaze-ui-button-disabled-tooltip-wrapper .ant-btn[disabled]{pointer-events:none}.blaze-ui-cap-tooltip-wrapper{display:inline-block}`, ""]);
|
|
196
|
-
// Exports
|
|
197
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
198
|
-
"cap-tooltip-overlay-v2": `blaze-ui-cap-tooltip-overlay-v2`,
|
|
199
|
-
"button-disabled-tooltip-wrapper": `blaze-ui-button-disabled-tooltip-wrapper`,
|
|
200
|
-
"cap-tooltip-wrapper": `blaze-ui-cap-tooltip-wrapper`
|
|
201
|
-
};
|
|
202
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
/***/ }),
|
|
206
|
-
|
|
207
|
-
/***/ 2608:
|
|
208
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
209
|
-
|
|
210
|
-
"use strict";
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
exports.__esModule = true;
|
|
214
|
-
exports["default"] = void 0;
|
|
215
|
-
var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(4299));
|
|
216
|
-
exports["default"] = _CapTooltipWithInfo.default;
|
|
217
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
218
|
-
|
|
219
|
-
/***/ }),
|
|
220
|
-
|
|
221
|
-
/***/ 2657:
|
|
222
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
223
|
-
|
|
224
|
-
"use strict";
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
exports.__esModule = true;
|
|
228
|
-
exports["default"] = void 0;
|
|
229
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
230
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
231
|
-
var _styles = _interopRequireDefault(__webpack_require__(4939));
|
|
232
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
233
|
-
const _excluded = ["children", "type", "className", "style", "fontWeight", "lineHeight"],
|
|
234
|
-
_excluded2 = ["children", "type", "className", "style", "fontWeight", "lineHeight"];
|
|
235
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
236
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
237
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
238
|
-
const CapLabel = _ref => {
|
|
239
|
-
let {
|
|
240
|
-
children,
|
|
241
|
-
type = 'label1',
|
|
242
|
-
className = '',
|
|
243
|
-
style = {},
|
|
244
|
-
fontWeight,
|
|
245
|
-
lineHeight
|
|
246
|
-
} = _ref,
|
|
247
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
248
|
-
const labelStyle = _extends({}, fontWeight ? {
|
|
249
|
-
fontWeight
|
|
250
|
-
} : {}, lineHeight ? {
|
|
251
|
-
lineHeight
|
|
252
|
-
} : {}, style);
|
|
253
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _extends({
|
|
254
|
-
className: (0, _classnames.default)(_styles.default['cap-label'], _styles.default['cap-label-div'], _styles.default[type], className),
|
|
255
|
-
style: labelStyle
|
|
256
|
-
}, rest, {
|
|
257
|
-
children: children
|
|
258
|
-
}));
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
// Static method for inline label
|
|
262
|
-
|
|
263
|
-
const CapLabelInline = _ref2 => {
|
|
264
|
-
let {
|
|
265
|
-
children,
|
|
266
|
-
type = 'label1',
|
|
267
|
-
className = '',
|
|
268
|
-
style = {},
|
|
269
|
-
fontWeight,
|
|
270
|
-
lineHeight
|
|
271
|
-
} = _ref2,
|
|
272
|
-
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
273
|
-
const labelStyle = _extends({}, fontWeight ? {
|
|
274
|
-
fontWeight
|
|
275
|
-
} : {}, lineHeight ? {
|
|
276
|
-
lineHeight
|
|
277
|
-
} : {}, style);
|
|
278
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _extends({
|
|
279
|
-
className: (0, _classnames.default)(_styles.default['cap-label'], _styles.default['cap-label-span'], _styles.default[type], className),
|
|
280
|
-
style: labelStyle
|
|
281
|
-
}, rest, {
|
|
282
|
-
children: children
|
|
283
|
-
}));
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
// Extend the component type to include the static property
|
|
287
|
-
|
|
288
|
-
const CapLabelWithStatic = CapLabel;
|
|
289
|
-
CapLabelWithStatic.CapLabelInline = CapLabelInline;
|
|
290
|
-
var _default = exports["default"] = CapLabelWithStatic;
|
|
291
|
-
|
|
292
|
-
/***/ }),
|
|
293
|
-
|
|
294
|
-
/***/ 3737:
|
|
295
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
296
|
-
|
|
297
|
-
"use strict";
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
exports.__esModule = true;
|
|
301
|
-
exports["default"] = void 0;
|
|
302
|
-
var _CapLabel = _interopRequireDefault(__webpack_require__(2657));
|
|
303
|
-
exports["default"] = _CapLabel.default;
|
|
304
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
305
|
-
|
|
306
|
-
/***/ }),
|
|
307
|
-
|
|
308
|
-
/***/ 3837:
|
|
309
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
310
|
-
|
|
311
|
-
"use strict";
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
exports.__esModule = true;
|
|
315
|
-
exports["default"] = void 0;
|
|
316
|
-
var _antdV = __webpack_require__(4273);
|
|
317
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
318
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
319
|
-
var _styles = _interopRequireDefault(__webpack_require__(5765));
|
|
320
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
321
|
-
const _excluded = ["children", "className", "style", "justify", "align", "gutter", "wrap", "width", "height", "margin", "padding", "fullWidth", "fullHeight", "fillSpace", "responsive", "vertical", "noWrap", "gap"];
|
|
322
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
323
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
324
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
325
|
-
const CapRow = _ref => {
|
|
326
|
-
let {
|
|
327
|
-
children,
|
|
328
|
-
className = '',
|
|
329
|
-
style = {},
|
|
330
|
-
justify = 'start',
|
|
331
|
-
align = 'top',
|
|
332
|
-
gutter = 0,
|
|
333
|
-
wrap = true,
|
|
334
|
-
width,
|
|
335
|
-
height,
|
|
336
|
-
margin,
|
|
337
|
-
padding,
|
|
338
|
-
fullWidth = false,
|
|
339
|
-
fullHeight = false,
|
|
340
|
-
fillSpace = false,
|
|
341
|
-
responsive = true,
|
|
342
|
-
vertical: _vertical = false,
|
|
343
|
-
noWrap = false,
|
|
344
|
-
gap = null
|
|
345
|
-
} = _ref,
|
|
346
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
347
|
-
// Use either the gap property or gutter for spacing
|
|
348
|
-
const gutterValue = gap !== null ? null : gutter;
|
|
349
|
-
const wrapValue = noWrap ? false : wrap;
|
|
350
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Row, _extends({
|
|
351
|
-
className: (0, _classnames.default)(_styles.default['cap-row-v2'], {
|
|
352
|
-
[_styles.default['with-custom-width']]: width,
|
|
353
|
-
[_styles.default['with-custom-height']]: height,
|
|
354
|
-
[_styles.default['fill-space']]: fillSpace,
|
|
355
|
-
[_styles.default['full-width']]: fullWidth,
|
|
356
|
-
[_styles.default['full-height']]: fullHeight,
|
|
357
|
-
[_styles.default['ant-row-no-wrap']]: noWrap,
|
|
358
|
-
[_styles.default['with-gap']]: gap !== null
|
|
359
|
-
}, className),
|
|
360
|
-
style: _extends({}, gap !== null ? {
|
|
361
|
-
gap: typeof gap === 'number' ? gap + "px" : Array.isArray(gap) ? gap.map(g => g + "px").join(' ') : gap
|
|
362
|
-
} : {}, width ? {
|
|
363
|
-
width: typeof width === 'number' ? width + "px" : width
|
|
364
|
-
} : {}, height ? {
|
|
365
|
-
height: typeof height === 'number' ? height + "px" : height
|
|
366
|
-
} : {}, margin ? {
|
|
367
|
-
margin: typeof margin === 'number' ? margin + "px" : margin
|
|
368
|
-
} : {}, padding ? {
|
|
369
|
-
padding: typeof padding === 'number' ? padding + "px" : padding
|
|
370
|
-
} : {}, fullWidth ? {
|
|
371
|
-
width: '100%'
|
|
372
|
-
} : {}, fullHeight ? {
|
|
373
|
-
height: '100%'
|
|
374
|
-
} : {}, !responsive ? {
|
|
375
|
-
display: 'flex',
|
|
376
|
-
flexWrap: wrapValue ? 'wrap' : 'nowrap'
|
|
377
|
-
} : {}, fillSpace ? {
|
|
378
|
-
flex: 1
|
|
379
|
-
} : {}, style),
|
|
380
|
-
justify: justify,
|
|
381
|
-
align: align,
|
|
382
|
-
gutter: gutterValue,
|
|
383
|
-
wrap: wrapValue
|
|
384
|
-
}, rest, {
|
|
385
|
-
children: children
|
|
386
|
-
}));
|
|
387
|
-
};
|
|
388
|
-
var _default = exports["default"] = CapRow;
|
|
389
|
-
|
|
390
|
-
/***/ }),
|
|
391
|
-
|
|
392
|
-
/***/ 3883:
|
|
393
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
394
|
-
|
|
395
|
-
// Imports
|
|
396
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
397
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
398
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
399
|
-
// Module
|
|
400
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-tooltip-with-info{display:inline-flex;align-items:center;cursor:default}.blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon{color:#b3bac5;margin-left:.286rem;cursor:help}.blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon:hover{color:#dfe2e7}`, ""]);
|
|
401
|
-
// Exports
|
|
402
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
403
|
-
"cap-tooltip-with-info": `blaze-ui-cap-tooltip-with-info`,
|
|
404
|
-
"cap-tooltip-with-info-icon": `blaze-ui-cap-tooltip-with-info-icon`
|
|
405
|
-
};
|
|
406
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
/***/ }),
|
|
410
|
-
|
|
411
|
-
/***/ 3948:
|
|
412
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
413
|
-
|
|
414
|
-
"use strict";
|
|
415
|
-
__webpack_require__.r(__webpack_exports__);
|
|
416
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
417
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
418
|
-
/* harmony export */ });
|
|
419
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
420
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
421
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
422
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
423
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
424
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
425
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
426
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
427
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
428
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
429
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3883);
|
|
430
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
431
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
432
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
433
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
var options = {};
|
|
446
|
-
|
|
447
|
-
;
|
|
448
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
449
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
450
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
451
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
452
|
-
|
|
453
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
/***/ }),
|
|
462
|
-
|
|
463
|
-
/***/ 4273:
|
|
464
|
-
/***/ ((module) => {
|
|
465
|
-
|
|
466
|
-
"use strict";
|
|
467
|
-
module.exports = require("antd-v5");
|
|
468
|
-
|
|
469
|
-
/***/ }),
|
|
470
|
-
|
|
471
|
-
/***/ 4284:
|
|
472
|
-
/***/ ((module) => {
|
|
473
|
-
|
|
474
|
-
"use strict";
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
/* istanbul ignore next */
|
|
478
|
-
var replaceText = function replaceText() {
|
|
479
|
-
var textStore = [];
|
|
480
|
-
return function replace(index, replacement) {
|
|
481
|
-
textStore[index] = replacement;
|
|
482
|
-
return textStore.filter(Boolean).join("\n");
|
|
483
|
-
};
|
|
484
|
-
}();
|
|
485
|
-
|
|
486
|
-
/* istanbul ignore next */
|
|
487
|
-
function apply(styleElement, index, remove, obj) {
|
|
488
|
-
var css;
|
|
489
|
-
if (remove) {
|
|
490
|
-
css = "";
|
|
491
|
-
} else {
|
|
492
|
-
css = "";
|
|
493
|
-
if (obj.supports) {
|
|
494
|
-
css += "@supports (".concat(obj.supports, ") {");
|
|
495
|
-
}
|
|
496
|
-
if (obj.media) {
|
|
497
|
-
css += "@media ".concat(obj.media, " {");
|
|
498
|
-
}
|
|
499
|
-
var needLayer = typeof obj.layer !== "undefined";
|
|
500
|
-
if (needLayer) {
|
|
501
|
-
css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
|
|
502
|
-
}
|
|
503
|
-
css += obj.css;
|
|
504
|
-
if (needLayer) {
|
|
505
|
-
css += "}";
|
|
506
|
-
}
|
|
507
|
-
if (obj.media) {
|
|
508
|
-
css += "}";
|
|
509
|
-
}
|
|
510
|
-
if (obj.supports) {
|
|
511
|
-
css += "}";
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
// For old IE
|
|
516
|
-
/* istanbul ignore if */
|
|
517
|
-
if (styleElement.styleSheet) {
|
|
518
|
-
styleElement.styleSheet.cssText = replaceText(index, css);
|
|
519
|
-
} else {
|
|
520
|
-
var cssNode = document.createTextNode(css);
|
|
521
|
-
var childNodes = styleElement.childNodes;
|
|
522
|
-
if (childNodes[index]) {
|
|
523
|
-
styleElement.removeChild(childNodes[index]);
|
|
524
|
-
}
|
|
525
|
-
if (childNodes.length) {
|
|
526
|
-
styleElement.insertBefore(cssNode, childNodes[index]);
|
|
527
|
-
} else {
|
|
528
|
-
styleElement.appendChild(cssNode);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
var singletonData = {
|
|
533
|
-
singleton: null,
|
|
534
|
-
singletonCounter: 0
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
/* istanbul ignore next */
|
|
538
|
-
function domAPI(options) {
|
|
539
|
-
if (typeof document === "undefined") return {
|
|
540
|
-
update: function update() {},
|
|
541
|
-
remove: function remove() {}
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
// eslint-disable-next-line no-undef,no-use-before-define
|
|
545
|
-
var styleIndex = singletonData.singletonCounter++;
|
|
546
|
-
var styleElement =
|
|
547
|
-
// eslint-disable-next-line no-undef,no-use-before-define
|
|
548
|
-
singletonData.singleton || (
|
|
549
|
-
// eslint-disable-next-line no-undef,no-use-before-define
|
|
550
|
-
singletonData.singleton = options.insertStyleElement(options));
|
|
551
|
-
return {
|
|
552
|
-
update: function update(obj) {
|
|
553
|
-
apply(styleElement, styleIndex, false, obj);
|
|
554
|
-
},
|
|
555
|
-
remove: function remove(obj) {
|
|
556
|
-
apply(styleElement, styleIndex, true, obj);
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
module.exports = domAPI;
|
|
561
|
-
|
|
562
|
-
/***/ }),
|
|
563
|
-
|
|
564
|
-
/***/ 4299:
|
|
565
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
566
|
-
|
|
567
|
-
"use strict";
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
exports.__esModule = true;
|
|
571
|
-
exports["default"] = void 0;
|
|
572
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
573
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
574
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
|
|
575
|
-
var _CapTooltip = _interopRequireDefault(__webpack_require__(5636));
|
|
576
|
-
var _styles = _interopRequireDefault(__webpack_require__(3948));
|
|
577
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
578
|
-
const _excluded = ["title", "iconSize", "iconType", "placement", "trigger", "className", "tooltipProps", "iconProps"];
|
|
579
|
-
/**
|
|
580
|
-
* CapTooltipWithInfo - A component that combines an info icon with a tooltip
|
|
581
|
-
* for displaying additional information on hover or other trigger events.
|
|
582
|
-
*/
|
|
583
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
584
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
585
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
586
|
-
const CapTooltipWithInfo = _ref => {
|
|
587
|
-
let {
|
|
588
|
-
title,
|
|
589
|
-
iconSize = 's',
|
|
590
|
-
iconType = 'info-circle',
|
|
591
|
-
placement = 'top',
|
|
592
|
-
trigger = 'hover',
|
|
593
|
-
className = '',
|
|
594
|
-
tooltipProps = {},
|
|
595
|
-
iconProps = {}
|
|
596
|
-
} = _ref,
|
|
597
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
598
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _extends({
|
|
599
|
-
className: (0, _classnames.default)(_styles.default['cap-tooltip-with-info'], className)
|
|
600
|
-
}, rest, {
|
|
601
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltip.default, _extends({
|
|
602
|
-
title: title,
|
|
603
|
-
placement: placement,
|
|
604
|
-
trigger: trigger
|
|
605
|
-
}, tooltipProps, {
|
|
606
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
607
|
-
className: _styles.default['cap-tooltip-with-info-icon'],
|
|
608
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, _extends({
|
|
609
|
-
type: iconType,
|
|
610
|
-
size: iconSize
|
|
611
|
-
}, iconProps))
|
|
612
|
-
})
|
|
613
|
-
}))
|
|
614
|
-
}));
|
|
615
|
-
};
|
|
616
|
-
var _default = exports["default"] = CapTooltipWithInfo;
|
|
617
|
-
|
|
618
|
-
/***/ }),
|
|
619
|
-
|
|
620
|
-
/***/ 4627:
|
|
621
|
-
/***/ ((module) => {
|
|
622
|
-
|
|
623
|
-
"use strict";
|
|
624
|
-
module.exports = require("@ant-design-v5/icons");
|
|
625
|
-
|
|
626
|
-
/***/ }),
|
|
627
|
-
|
|
628
|
-
/***/ 4848:
|
|
629
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
630
|
-
|
|
631
|
-
"use strict";
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
if (true) {
|
|
635
|
-
module.exports = __webpack_require__(1020);
|
|
636
|
-
} else // removed by dead control flow
|
|
637
|
-
{}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
/***/ }),
|
|
641
|
-
|
|
642
|
-
/***/ 4939:
|
|
643
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
644
|
-
|
|
645
|
-
"use strict";
|
|
646
|
-
__webpack_require__.r(__webpack_exports__);
|
|
647
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
648
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
649
|
-
/* harmony export */ });
|
|
650
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
651
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
652
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
653
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
654
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
655
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
656
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
657
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
658
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
659
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
660
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5216);
|
|
661
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
662
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
663
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
664
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
var options = {};
|
|
677
|
-
|
|
678
|
-
;
|
|
679
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
680
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
681
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
682
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
683
|
-
|
|
684
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
/***/ }),
|
|
693
|
-
|
|
694
|
-
/***/ 5056:
|
|
695
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
696
|
-
|
|
697
|
-
"use strict";
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
/* istanbul ignore next */
|
|
701
|
-
function setAttributesWithoutAttributes(styleElement) {
|
|
702
|
-
var nonce = true ? __webpack_require__.nc : 0;
|
|
703
|
-
if (nonce) {
|
|
704
|
-
styleElement.setAttribute("nonce", nonce);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
module.exports = setAttributesWithoutAttributes;
|
|
708
|
-
|
|
709
|
-
/***/ }),
|
|
710
|
-
|
|
711
|
-
/***/ 5072:
|
|
712
|
-
/***/ ((module) => {
|
|
713
|
-
|
|
714
|
-
"use strict";
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
var stylesInDOM = [];
|
|
718
|
-
function getIndexByIdentifier(identifier) {
|
|
719
|
-
var result = -1;
|
|
720
|
-
for (var i = 0; i < stylesInDOM.length; i++) {
|
|
721
|
-
if (stylesInDOM[i].identifier === identifier) {
|
|
722
|
-
result = i;
|
|
723
|
-
break;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
return result;
|
|
727
|
-
}
|
|
728
|
-
function modulesToDom(list, options) {
|
|
729
|
-
var idCountMap = {};
|
|
730
|
-
var identifiers = [];
|
|
731
|
-
for (var i = 0; i < list.length; i++) {
|
|
732
|
-
var item = list[i];
|
|
733
|
-
var id = options.base ? item[0] + options.base : item[0];
|
|
734
|
-
var count = idCountMap[id] || 0;
|
|
735
|
-
var identifier = "".concat(id, " ").concat(count);
|
|
736
|
-
idCountMap[id] = count + 1;
|
|
737
|
-
var indexByIdentifier = getIndexByIdentifier(identifier);
|
|
738
|
-
var obj = {
|
|
739
|
-
css: item[1],
|
|
740
|
-
media: item[2],
|
|
741
|
-
sourceMap: item[3],
|
|
742
|
-
supports: item[4],
|
|
743
|
-
layer: item[5]
|
|
744
|
-
};
|
|
745
|
-
if (indexByIdentifier !== -1) {
|
|
746
|
-
stylesInDOM[indexByIdentifier].references++;
|
|
747
|
-
stylesInDOM[indexByIdentifier].updater(obj);
|
|
748
|
-
} else {
|
|
749
|
-
var updater = addElementStyle(obj, options);
|
|
750
|
-
options.byIndex = i;
|
|
751
|
-
stylesInDOM.splice(i, 0, {
|
|
752
|
-
identifier: identifier,
|
|
753
|
-
updater: updater,
|
|
754
|
-
references: 1
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
identifiers.push(identifier);
|
|
758
|
-
}
|
|
759
|
-
return identifiers;
|
|
760
|
-
}
|
|
761
|
-
function addElementStyle(obj, options) {
|
|
762
|
-
var api = options.domAPI(options);
|
|
763
|
-
api.update(obj);
|
|
764
|
-
var updater = function updater(newObj) {
|
|
765
|
-
if (newObj) {
|
|
766
|
-
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
api.update(obj = newObj);
|
|
770
|
-
} else {
|
|
771
|
-
api.remove();
|
|
772
|
-
}
|
|
773
|
-
};
|
|
774
|
-
return updater;
|
|
775
|
-
}
|
|
776
|
-
module.exports = function (list, options) {
|
|
777
|
-
options = options || {};
|
|
778
|
-
list = list || [];
|
|
779
|
-
var lastIdentifiers = modulesToDom(list, options);
|
|
780
|
-
return function update(newList) {
|
|
781
|
-
newList = newList || [];
|
|
782
|
-
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
783
|
-
var identifier = lastIdentifiers[i];
|
|
784
|
-
var index = getIndexByIdentifier(identifier);
|
|
785
|
-
stylesInDOM[index].references--;
|
|
786
|
-
}
|
|
787
|
-
var newLastIdentifiers = modulesToDom(newList, options);
|
|
788
|
-
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
789
|
-
var _identifier = lastIdentifiers[_i];
|
|
790
|
-
var _index = getIndexByIdentifier(_identifier);
|
|
791
|
-
if (stylesInDOM[_index].references === 0) {
|
|
792
|
-
stylesInDOM[_index].updater();
|
|
793
|
-
stylesInDOM.splice(_index, 1);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
lastIdentifiers = newLastIdentifiers;
|
|
797
|
-
};
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
/***/ }),
|
|
801
|
-
|
|
802
|
-
/***/ 5216:
|
|
803
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
804
|
-
|
|
805
|
-
// Imports
|
|
806
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
807
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
808
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
809
|
-
// Module
|
|
810
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-label{font-family:"Roboto",sans-serif}.blaze-ui-cap-label.blaze-ui-label1{font-size:.857rem;color:#5e6c84;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label2{font-size:.857rem;color:#091e42;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label3{font-size:.857rem;color:#97a0af;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label4{font-size:.857rem;color:#091e42;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label5{font-size:.714rem;color:#091e42;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label6{font-size:.857rem;color:#b3bac5;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label7{font-size:1rem;color:#5e6c84;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label8{font-size:.857rem;color:#091e42;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label9{font-size:.857rem;color:#091e42;font-weight:400;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label10{font-size:.857rem;color:#fff;font-weight:400;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label11{font-size:.714rem;color:#5e6c84;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label12{font-size:.857rem;color:#fff;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label13{font-size:.714rem;color:#97a0af;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label14{font-size:1rem;color:#676e7c;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label15{font-size:1rem;color:#091e42;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label16{font-size:1rem;color:#091e42;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label17{font-size:1.143rem;color:#091e42;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label18{font-size:1rem;color:#5e6c84;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label19{font-size:.857rem;color:rgba(0,0,0,.8705882353);font-weight:400;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label20{font-size:1rem;color:#2466eb;font-weight:500;line-height:normal}.blaze-ui-cap-label.blaze-ui-label21{font-size:.857rem;color:#2466eb;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label22{font-size:1.714rem;color:#5e6c84;font-weight:400;line-height:2rem}.blaze-ui-cap-label.blaze-ui-label23{font-size:1rem;color:#fff;font-weight:400;line-height:normal}.blaze-ui-cap-label.blaze-ui-label24{font-size:1rem;color:#5e6c84;font-weight:400;line-height:1.429rem}.blaze-ui-cap-label.blaze-ui-label25{font-size:1rem;color:#5e6c84;font-weight:500;line-height:1.429rem}.blaze-ui-cap-label.blaze-ui-label26{font-size:.714rem;color:#091e42;font-weight:400;line-height:.857rem}.blaze-ui-cap-label.blaze-ui-label27{font-size:.857rem;color:#2466eb;font-weight:500;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label28{font-size:.857rem;color:#fff;font-weight:500;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label29,.blaze-ui-cap-label.blaze-ui-label30{font-size:.714rem;color:#fff;font-weight:400;line-height:.857rem}.blaze-ui-cap-label.blaze-ui-label31{font-size:.857rem;color:#091e42;font-weight:400;line-height:1.143rem}.blaze-ui-cap-label.blaze-ui-label32{font-size:1rem;color:#fff;font-weight:500;line-height:1.429rem}.blaze-ui-cap-label.blaze-ui-label33{font-size:1rem;color:#2466eb;font-weight:500;line-height:1.429rem}.blaze-ui-cap-label-div,.blaze-ui-cap-label-span{font-family:"Roboto",sans-serif;margin:0;padding:0}`, ""]);
|
|
811
|
-
// Exports
|
|
812
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
813
|
-
"cap-label": `blaze-ui-cap-label`,
|
|
814
|
-
"label1": `blaze-ui-label1`,
|
|
815
|
-
"label2": `blaze-ui-label2`,
|
|
816
|
-
"label3": `blaze-ui-label3`,
|
|
817
|
-
"label4": `blaze-ui-label4`,
|
|
818
|
-
"label5": `blaze-ui-label5`,
|
|
819
|
-
"label6": `blaze-ui-label6`,
|
|
820
|
-
"label7": `blaze-ui-label7`,
|
|
821
|
-
"label8": `blaze-ui-label8`,
|
|
822
|
-
"label9": `blaze-ui-label9`,
|
|
823
|
-
"label10": `blaze-ui-label10`,
|
|
824
|
-
"label11": `blaze-ui-label11`,
|
|
825
|
-
"label12": `blaze-ui-label12`,
|
|
826
|
-
"label13": `blaze-ui-label13`,
|
|
827
|
-
"label14": `blaze-ui-label14`,
|
|
828
|
-
"label15": `blaze-ui-label15`,
|
|
829
|
-
"label16": `blaze-ui-label16`,
|
|
830
|
-
"label17": `blaze-ui-label17`,
|
|
831
|
-
"label18": `blaze-ui-label18`,
|
|
832
|
-
"label19": `blaze-ui-label19`,
|
|
833
|
-
"label20": `blaze-ui-label20`,
|
|
834
|
-
"label21": `blaze-ui-label21`,
|
|
835
|
-
"label22": `blaze-ui-label22`,
|
|
836
|
-
"label23": `blaze-ui-label23`,
|
|
837
|
-
"label24": `blaze-ui-label24`,
|
|
838
|
-
"label25": `blaze-ui-label25`,
|
|
839
|
-
"label26": `blaze-ui-label26`,
|
|
840
|
-
"label27": `blaze-ui-label27`,
|
|
841
|
-
"label28": `blaze-ui-label28`,
|
|
842
|
-
"label29": `blaze-ui-label29`,
|
|
843
|
-
"label30": `blaze-ui-label30`,
|
|
844
|
-
"label31": `blaze-ui-label31`,
|
|
845
|
-
"label32": `blaze-ui-label32`,
|
|
846
|
-
"label33": `blaze-ui-label33`,
|
|
847
|
-
"cap-label-div": `blaze-ui-cap-label-div`,
|
|
848
|
-
"cap-label-span": `blaze-ui-cap-label-span`
|
|
849
|
-
};
|
|
850
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
/***/ }),
|
|
854
|
-
|
|
855
|
-
/***/ 5353:
|
|
856
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
857
|
-
|
|
858
|
-
"use strict";
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
exports.__esModule = true;
|
|
862
|
-
exports["default"] = void 0;
|
|
863
|
-
var _antdV = __webpack_require__(4273);
|
|
864
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
865
|
-
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
866
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(8244));
|
|
867
|
-
var _CapLabel = _interopRequireDefault(__webpack_require__(3737));
|
|
868
|
-
var _CapRow = _interopRequireDefault(__webpack_require__(7375));
|
|
869
|
-
var _CapSpin = _interopRequireDefault(__webpack_require__(1549));
|
|
870
|
-
var _CapTooltip = _interopRequireDefault(__webpack_require__(5636));
|
|
871
|
-
var _CapTooltipWithInfo = _interopRequireDefault(__webpack_require__(2608));
|
|
872
|
-
var _components = __webpack_require__(455);
|
|
873
|
-
var _constants = __webpack_require__(9788);
|
|
874
|
-
var _styles = _interopRequireDefault(__webpack_require__(8263));
|
|
875
|
-
var _utils = __webpack_require__(8052);
|
|
876
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
877
|
-
const _excluded = ["type", "options", "value", "onChange", "placeholder", "className", "style", "isError", "errorMessage", "containerClassName", "popoverClassName", "allowClear", "headerLabel", "onUpload", "uploadLabel", "tooltip", "bylineText", "disabled", "showUpload", "customPopupRender", "showSearch", "searchBasedOn", "onSearch", "searchDebounce", "onConfirm", "clearText", "noResultCustomText", "noResultCustomIcon", "readOnly", "staticValue", "onFooterDownloadChange", "onPopupScroll", "hasMore", "enableVirtualization", "virtualRowHeight", "resetSearch", "resetData", "fetchMissingOptions"];
|
|
878
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
879
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
880
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
881
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
882
|
-
const CapUnifiedSelect = _ref => {
|
|
883
|
-
let {
|
|
884
|
-
type = _constants.SELECT_TYPES.SELECT,
|
|
885
|
-
options = [],
|
|
886
|
-
value,
|
|
887
|
-
onChange,
|
|
888
|
-
placeholder = _constants.DEFAULTS.PLACEHOLDER,
|
|
889
|
-
className = '',
|
|
890
|
-
style,
|
|
891
|
-
isError = false,
|
|
892
|
-
errorMessage,
|
|
893
|
-
containerClassName,
|
|
894
|
-
popoverClassName,
|
|
895
|
-
allowClear = false,
|
|
896
|
-
headerLabel,
|
|
897
|
-
onUpload,
|
|
898
|
-
uploadLabel = _constants.DEFAULTS.UPLOAD_LABEL,
|
|
899
|
-
tooltip,
|
|
900
|
-
bylineText,
|
|
901
|
-
disabled = false,
|
|
902
|
-
showUpload = false,
|
|
903
|
-
customPopupRender = true,
|
|
904
|
-
showSearch = true,
|
|
905
|
-
searchBasedOn = 'label',
|
|
906
|
-
onSearch,
|
|
907
|
-
searchDebounce = _constants.TIMEOUTS.DEFAULT_SEARCH_DEBOUNCE,
|
|
908
|
-
onConfirm,
|
|
909
|
-
clearText = _constants.DEFAULTS.CLEAR_TEXT,
|
|
910
|
-
noResultCustomText = _constants.DEFAULTS.NO_RESULT_TEXT,
|
|
911
|
-
noResultCustomIcon = _constants.DEFAULTS.NO_RESULT_ICON,
|
|
912
|
-
readOnly = false,
|
|
913
|
-
staticValue = true,
|
|
914
|
-
onFooterDownloadChange,
|
|
915
|
-
onPopupScroll,
|
|
916
|
-
hasMore = true,
|
|
917
|
-
enableVirtualization = false,
|
|
918
|
-
virtualRowHeight = _constants.DEFAULTS.VIRTUAL_ROW_HEIGHT,
|
|
919
|
-
resetSearch = true,
|
|
920
|
-
resetData,
|
|
921
|
-
fetchMissingOptions
|
|
922
|
-
} = _ref,
|
|
923
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
924
|
-
const [searchText, setSearchText] = (0, _react.useState)('');
|
|
925
|
-
const [tempValue, setTempValue] = (0, _react.useState)(value);
|
|
926
|
-
const [dropdownOpen, setDropdownOpen] = (0, _react.useState)(false);
|
|
927
|
-
const [isSearching, setIsSearching] = (0, _react.useState)(false);
|
|
928
|
-
const [isLoadingOnScroll, setIsLoadingOnScroll] = (0, _react.useState)(false);
|
|
929
|
-
const [isResettingData, setIsResettingData] = (0, _react.useState)(false);
|
|
930
|
-
const [orderedOptions, setOrderedOptions] = (0, _react.useState)(null);
|
|
931
|
-
const searchTimeoutRef = (0, _react.useRef)(null);
|
|
932
|
-
const scrollContainerRef = (0, _react.useRef)(null);
|
|
933
|
-
const scrollLoadingTimeoutRef = (0, _react.useRef)(null);
|
|
934
|
-
const isScrollProcessingRef = (0, _react.useRef)(false);
|
|
935
|
-
const scrollThrottleTimeoutRef = (0, _react.useRef)(null);
|
|
936
|
-
const optionsRef = (0, _react.useRef)(options);
|
|
937
|
-
const selectedItemsCacheRef = (0, _react.useRef)(new Map());
|
|
938
|
-
const lastSearchQueryRef = (0, _react.useRef)('');
|
|
939
|
-
const searchClearedTimeRef = (0, _react.useRef)(null);
|
|
940
|
-
const prevOptionsRef = (0, _react.useRef)(options);
|
|
941
|
-
const prevOptionsBeforeResetRef = (0, _react.useRef)(options);
|
|
942
|
-
const prevOptionsCountRef = (0, _react.useRef)(options.length);
|
|
943
|
-
const prevOptionsRefForScroll = (0, _react.useRef)(options);
|
|
944
|
-
const scrollTriggerOptionsCountRef = (0, _react.useRef)(options.length);
|
|
945
|
-
const initialSortDoneRef = (0, _react.useRef)(false);
|
|
946
|
-
const hasInteractedRef = (0, _react.useRef)(false);
|
|
947
|
-
const initialTempValueRef = (0, _react.useRef)(value);
|
|
948
|
-
const resetDataCalledRef = (0, _react.useRef)(false);
|
|
949
|
-
const resetDataCalledTimeRef = (0, _react.useRef)(null);
|
|
950
|
-
const fetchMissingOptionsCalledRef = (0, _react.useRef)(false);
|
|
951
|
-
const lastMissingValuesRef = (0, _react.useRef)('');
|
|
952
|
-
(0, _react.useEffect)(() => {
|
|
953
|
-
if (!fetchMissingOptions) {
|
|
954
|
-
return;
|
|
955
|
-
}
|
|
956
|
-
if (options.length === 0) {
|
|
957
|
-
return;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
// For API-driven data, don't fetch missing options during active search
|
|
961
|
-
// Only fetch when there's no search query or search is cleared
|
|
962
|
-
const hasActiveSearch = !staticValue && lastSearchQueryRef.current.trim().length > 0;
|
|
963
|
-
if (hasActiveSearch) {
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
const selectedValues = Array.isArray(value) ? value : value ? [value] : [];
|
|
967
|
-
if (selectedValues.length === 0) {
|
|
968
|
-
fetchMissingOptionsCalledRef.current = false;
|
|
969
|
-
lastMissingValuesRef.current = '';
|
|
970
|
-
return;
|
|
971
|
-
}
|
|
972
|
-
const missingValues = (0, _utils.findMissingValues)(selectedValues, options);
|
|
973
|
-
if (missingValues.length === 0) {
|
|
974
|
-
fetchMissingOptionsCalledRef.current = false;
|
|
975
|
-
lastMissingValuesRef.current = '';
|
|
976
|
-
return;
|
|
977
|
-
}
|
|
978
|
-
const missingValuesKey = [...missingValues].sort().join(',');
|
|
979
|
-
if (!fetchMissingOptionsCalledRef.current || lastMissingValuesRef.current !== missingValuesKey) {
|
|
980
|
-
fetchMissingOptionsCalledRef.current = true;
|
|
981
|
-
lastMissingValuesRef.current = missingValuesKey;
|
|
982
|
-
fetchMissingOptions([...missingValues]);
|
|
983
|
-
}
|
|
984
|
-
}, [value, options, fetchMissingOptions, staticValue]);
|
|
985
|
-
(0, _react.useEffect)(() => {
|
|
986
|
-
const isEqual = Array.isArray(value) && Array.isArray(tempValue) ? (value == null ? void 0 : value.length) === (tempValue == null ? void 0 : tempValue.length) && value.every(v => Array.isArray(tempValue) && tempValue.includes(v)) : value === tempValue;
|
|
987
|
-
if (!isEqual) {
|
|
988
|
-
setTempValue(value);
|
|
989
|
-
setOrderedOptions(null);
|
|
990
|
-
}
|
|
991
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
992
|
-
}, [value]);
|
|
993
|
-
(0, _react.useEffect)(() => {
|
|
994
|
-
const currentSelected = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
995
|
-
const findAndCacheOption = (opts, val) => {
|
|
996
|
-
for (const opt of opts) {
|
|
997
|
-
if (opt.value === val) {
|
|
998
|
-
selectedItemsCacheRef.current.set(val, opt);
|
|
999
|
-
return true;
|
|
1000
|
-
}
|
|
1001
|
-
if (opt.children && opt.children.length > 0) {
|
|
1002
|
-
if (findAndCacheOption(opt.children, val)) {
|
|
1003
|
-
return true;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
return false;
|
|
1008
|
-
};
|
|
1009
|
-
currentSelected.forEach(val => {
|
|
1010
|
-
if (!selectedItemsCacheRef.current.has(val)) {
|
|
1011
|
-
findAndCacheOption(options, val);
|
|
1012
|
-
}
|
|
1013
|
-
});
|
|
1014
|
-
const selectedSet = new Set(currentSelected);
|
|
1015
|
-
selectedItemsCacheRef.current.forEach((_, value) => {
|
|
1016
|
-
if (!selectedSet.has(value)) {
|
|
1017
|
-
selectedItemsCacheRef.current.delete(value);
|
|
1018
|
-
}
|
|
1019
|
-
});
|
|
1020
|
-
}, [tempValue, options]);
|
|
1021
|
-
(0, _react.useEffect)(() => {
|
|
1022
|
-
if (orderedOptions) {
|
|
1023
|
-
const currentSelected = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
1024
|
-
const checkValueExists = (opts, val) => {
|
|
1025
|
-
for (const opt of opts) {
|
|
1026
|
-
if (opt.value === val) return true;
|
|
1027
|
-
if (opt.children && opt.children.length > 0) {
|
|
1028
|
-
if (checkValueExists(opt.children, val)) return true;
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
return false;
|
|
1032
|
-
};
|
|
1033
|
-
const allSelectedStillExist = currentSelected.every(val => checkValueExists(options, val));
|
|
1034
|
-
if (!allSelectedStillExist) {
|
|
1035
|
-
setOrderedOptions(null);
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}, [options, orderedOptions, tempValue]);
|
|
1039
|
-
const debounceTimeout = searchDebounce != null ? searchDebounce : _constants.TIMEOUTS.DEFAULT_SEARCH_DEBOUNCE;
|
|
1040
|
-
(0, _react.useEffect)(() => {
|
|
1041
|
-
optionsRef.current = options;
|
|
1042
|
-
}, [options]);
|
|
1043
|
-
(0, _react.useEffect)(() => {
|
|
1044
|
-
return () => {
|
|
1045
|
-
if (searchTimeoutRef.current) {
|
|
1046
|
-
clearTimeout(searchTimeoutRef.current);
|
|
1047
|
-
}
|
|
1048
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1049
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1050
|
-
}
|
|
1051
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1052
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
}, []);
|
|
1056
|
-
(0, _react.useEffect)(() => {
|
|
1057
|
-
const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
|
|
1058
|
-
if (staticValue || !isSearching || !hasSearchQuery) {
|
|
1059
|
-
prevOptionsRef.current = options;
|
|
1060
|
-
return;
|
|
1061
|
-
}
|
|
1062
|
-
const optionsChanged = prevOptionsRef.current !== options || prevOptionsRef.current.length !== options.length;
|
|
1063
|
-
const searchCleared = lastSearchQueryRef.current === '';
|
|
1064
|
-
const timeSinceCleared = searchClearedTimeRef.current ? Date.now() - searchClearedTimeRef.current : Infinity;
|
|
1065
|
-
const hasOptionsData = options.length > 0;
|
|
1066
|
-
const clearedSearchReady = searchCleared && hasOptionsData && timeSinceCleared > _constants.TIMEOUTS.SEARCH_CLEARED_TIMEOUT;
|
|
1067
|
-
if (optionsChanged || clearedSearchReady) {
|
|
1068
|
-
const timeoutId = setTimeout(() => {
|
|
1069
|
-
setIsSearching(false);
|
|
1070
|
-
prevOptionsRef.current = options;
|
|
1071
|
-
if (searchCleared) {
|
|
1072
|
-
searchClearedTimeRef.current = null;
|
|
1073
|
-
}
|
|
1074
|
-
}, _constants.TIMEOUTS.SEARCH_STATE_UPDATE_DELAY);
|
|
1075
|
-
return () => clearTimeout(timeoutId);
|
|
1076
|
-
}
|
|
1077
|
-
prevOptionsRef.current = options;
|
|
1078
|
-
}, [options, staticValue, isSearching]);
|
|
1079
|
-
(0, _react.useEffect)(() => {
|
|
1080
|
-
const hasSearchQuery = lastSearchQueryRef.current !== null && lastSearchQueryRef.current !== undefined;
|
|
1081
|
-
if (!isSearching || staticValue || !hasSearchQuery) {
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
const searchCleared = lastSearchQueryRef.current === '';
|
|
1085
|
-
const timeoutDuration = searchCleared ? debounceTimeout + _constants.TIMEOUTS.SEARCH_CLEARED_BUFFER : debounceTimeout + _constants.TIMEOUTS.SEARCH_REGULAR_BUFFER;
|
|
1086
|
-
const fallbackTimeout = setTimeout(() => {
|
|
1087
|
-
setIsSearching(false);
|
|
1088
|
-
searchClearedTimeRef.current = null;
|
|
1089
|
-
}, timeoutDuration);
|
|
1090
|
-
return () => clearTimeout(fallbackTimeout);
|
|
1091
|
-
}, [isSearching, staticValue, debounceTimeout, options.length]);
|
|
1092
|
-
(0, _react.useEffect)(() => {
|
|
1093
|
-
if (!isResettingData) {
|
|
1094
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1095
|
-
resetDataCalledTimeRef.current = null;
|
|
1096
|
-
return;
|
|
1097
|
-
}
|
|
1098
|
-
const prevOptions = prevOptionsBeforeResetRef.current;
|
|
1099
|
-
const currentOptions = options;
|
|
1100
|
-
const optionsChanged = prevOptions !== currentOptions || prevOptions.length !== currentOptions.length || prevOptions.length === currentOptions.length && prevOptions.length > 0 && prevOptions.some((prevOpt, idx) => {
|
|
1101
|
-
const currentOpt = currentOptions[idx];
|
|
1102
|
-
return !currentOpt || prevOpt.value !== currentOpt.value || prevOpt.label !== currentOpt.label;
|
|
1103
|
-
});
|
|
1104
|
-
const timeSinceReset = resetDataCalledTimeRef.current ? Date.now() - resetDataCalledTimeRef.current : Infinity;
|
|
1105
|
-
const hasDataAfterTimeout = currentOptions.length > 0 && timeSinceReset > _constants.TIMEOUTS.RESET_DATA_MIN_TIME && timeSinceReset < _constants.TIMEOUTS.RESET_DATA_MAX_TIME;
|
|
1106
|
-
if (optionsChanged || hasDataAfterTimeout) {
|
|
1107
|
-
setIsResettingData(false);
|
|
1108
|
-
prevOptionsBeforeResetRef.current = currentOptions;
|
|
1109
|
-
resetDataCalledTimeRef.current = null;
|
|
1110
|
-
}
|
|
1111
|
-
}, [options, isResettingData]);
|
|
1112
|
-
(0, _react.useEffect)(() => {
|
|
1113
|
-
if (!isResettingData) {
|
|
1114
|
-
return;
|
|
1115
|
-
}
|
|
1116
|
-
const fallbackTimeout = setTimeout(() => {
|
|
1117
|
-
setIsResettingData(false);
|
|
1118
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1119
|
-
resetDataCalledTimeRef.current = null;
|
|
1120
|
-
}, _constants.TIMEOUTS.RESET_DATA_TIMEOUT);
|
|
1121
|
-
return () => clearTimeout(fallbackTimeout);
|
|
1122
|
-
}, [isResettingData, options]);
|
|
1123
|
-
(0, _react.useEffect)(() => {
|
|
1124
|
-
if (!hasMore && isLoadingOnScroll) {
|
|
1125
|
-
setIsLoadingOnScroll(false);
|
|
1126
|
-
isScrollProcessingRef.current = false;
|
|
1127
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1128
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1129
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
}, [hasMore, isLoadingOnScroll]);
|
|
1133
|
-
(0, _react.useEffect)(() => {
|
|
1134
|
-
if (!isLoadingOnScroll) {
|
|
1135
|
-
prevOptionsCountRef.current = options.length;
|
|
1136
|
-
prevOptionsRefForScroll.current = options;
|
|
1137
|
-
}
|
|
1138
|
-
if (!isLoadingOnScroll || !onPopupScroll) {
|
|
1139
|
-
return;
|
|
1140
|
-
}
|
|
1141
|
-
const optionsCountIncreased = options.length > prevOptionsCountRef.current;
|
|
1142
|
-
const optionsContentChanged = (() => {
|
|
1143
|
-
const prevCount = prevOptionsCountRef.current;
|
|
1144
|
-
const currentCount = options.length;
|
|
1145
|
-
if (prevCount !== currentCount) {
|
|
1146
|
-
return true;
|
|
1147
|
-
}
|
|
1148
|
-
if (currentCount > 0 && prevCount > 0 && prevOptionsRefForScroll.current.length > 0) {
|
|
1149
|
-
const prevOptions = prevOptionsRefForScroll.current;
|
|
1150
|
-
const lastPrevOption = prevOptions[prevOptions.length - 1];
|
|
1151
|
-
const lastCurrentOption = options[options.length - 1];
|
|
1152
|
-
if ((lastPrevOption == null ? void 0 : lastPrevOption.value) !== (lastCurrentOption == null ? void 0 : lastCurrentOption.value) || (lastPrevOption == null ? void 0 : lastPrevOption.label) !== (lastCurrentOption == null ? void 0 : lastCurrentOption.label)) {
|
|
1153
|
-
return true;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
return false;
|
|
1157
|
-
})();
|
|
1158
|
-
if (optionsCountIncreased || optionsContentChanged) {
|
|
1159
|
-
setIsLoadingOnScroll(false);
|
|
1160
|
-
isScrollProcessingRef.current = false;
|
|
1161
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1162
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1163
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1164
|
-
}
|
|
1165
|
-
prevOptionsCountRef.current = options.length;
|
|
1166
|
-
prevOptionsRefForScroll.current = options;
|
|
1167
|
-
}
|
|
1168
|
-
}, [options, isLoadingOnScroll, onPopupScroll]);
|
|
1169
|
-
const handleSearch = (0, _react.useCallback)(query => {
|
|
1170
|
-
if (searchTimeoutRef.current) {
|
|
1171
|
-
clearTimeout(searchTimeoutRef.current);
|
|
1172
|
-
}
|
|
1173
|
-
const trimmedQuery = query.trim();
|
|
1174
|
-
const wasSearching = lastSearchQueryRef.current !== '';
|
|
1175
|
-
const isNowCleared = trimmedQuery === '';
|
|
1176
|
-
if (wasSearching && isNowCleared) {
|
|
1177
|
-
searchClearedTimeRef.current = Date.now();
|
|
1178
|
-
} else if (!isNowCleared) {
|
|
1179
|
-
searchClearedTimeRef.current = null;
|
|
1180
|
-
}
|
|
1181
|
-
lastSearchQueryRef.current = trimmedQuery;
|
|
1182
|
-
if (trimmedQuery.length > 0 || lastSearchQueryRef.current.length > 0) {
|
|
1183
|
-
hasInteractedRef.current = true;
|
|
1184
|
-
}
|
|
1185
|
-
if (!staticValue && onSearch) {
|
|
1186
|
-
setIsSearching(true);
|
|
1187
|
-
searchTimeoutRef.current = setTimeout(() => {
|
|
1188
|
-
onSearch(trimmedQuery);
|
|
1189
|
-
}, debounceTimeout);
|
|
1190
|
-
} else if (!trimmedQuery) {
|
|
1191
|
-
setIsSearching(false);
|
|
1192
|
-
} else {
|
|
1193
|
-
setIsSearching(true);
|
|
1194
|
-
searchTimeoutRef.current = setTimeout(() => {
|
|
1195
|
-
setIsSearching(false);
|
|
1196
|
-
}, _constants.TIMEOUTS.STATIC_SEARCH_DELAY);
|
|
1197
|
-
}
|
|
1198
|
-
}, [onSearch, staticValue, debounceTimeout]);
|
|
1199
|
-
const isMulti = (0, _react.useMemo)(() => type === _constants.SELECT_TYPES.MULTI_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT, [type]);
|
|
1200
|
-
const isTree = (0, _react.useMemo)(() => type === _constants.SELECT_TYPES.TREE_SELECT || type === _constants.SELECT_TYPES.MULTI_TREE_SELECT, [type]);
|
|
1201
|
-
const mergedOptions = (0, _react.useMemo)(() => {
|
|
1202
|
-
return options;
|
|
1203
|
-
}, [options]);
|
|
1204
|
-
const prevOptionsCountBeforeFetchMissingRef = (0, _react.useRef)(options.length);
|
|
1205
|
-
const prevOptionsBeforeFetchMissingRef = (0, _react.useRef)(options);
|
|
1206
|
-
(0, _react.useEffect)(() => {
|
|
1207
|
-
if (!orderedOptions || !onPopupScroll) {
|
|
1208
|
-
return;
|
|
1209
|
-
}
|
|
1210
|
-
const currentOptions = options;
|
|
1211
|
-
const optionsCountIncreased = currentOptions.length > scrollTriggerOptionsCountRef.current;
|
|
1212
|
-
if (optionsCountIncreased && scrollTriggerOptionsCountRef.current > 0) {
|
|
1213
|
-
const selectedValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
1214
|
-
if (selectedValues.length > 0) {
|
|
1215
|
-
const reordered = (0, _utils.reorderOptionsBySelection)(currentOptions, selectedValues);
|
|
1216
|
-
setOrderedOptions(reordered);
|
|
1217
|
-
scrollTriggerOptionsCountRef.current = currentOptions.length;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
}, [options, orderedOptions, onPopupScroll, tempValue]);
|
|
1221
|
-
(0, _react.useEffect)(() => {
|
|
1222
|
-
if (!fetchMissingOptions) {
|
|
1223
|
-
prevOptionsCountBeforeFetchMissingRef.current = options.length;
|
|
1224
|
-
prevOptionsBeforeFetchMissingRef.current = options;
|
|
1225
|
-
return;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
// For API-driven data, don't reorder options during active search
|
|
1229
|
-
// Only reorder when there's no search query or search is cleared
|
|
1230
|
-
const hasActiveSearch = !staticValue && lastSearchQueryRef.current.trim().length > 0;
|
|
1231
|
-
if (hasActiveSearch) {
|
|
1232
|
-
return;
|
|
1233
|
-
}
|
|
1234
|
-
const currentOptions = options;
|
|
1235
|
-
const currentSelectedValues = Array.isArray(value) ? value : value ? [value] : [];
|
|
1236
|
-
const tempSelectedValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
1237
|
-
const selectedValues = tempSelectedValues.length > 0 ? tempSelectedValues : currentSelectedValues;
|
|
1238
|
-
if (selectedValues.length === 0) {
|
|
1239
|
-
prevOptionsCountBeforeFetchMissingRef.current = currentOptions.length;
|
|
1240
|
-
prevOptionsBeforeFetchMissingRef.current = currentOptions;
|
|
1241
|
-
return;
|
|
1242
|
-
}
|
|
1243
|
-
const prevOptions = prevOptionsBeforeFetchMissingRef.current;
|
|
1244
|
-
const optionsCountIncreased = currentOptions.length > prevOptionsCountBeforeFetchMissingRef.current;
|
|
1245
|
-
const optionsChanged = prevOptions !== currentOptions || optionsCountIncreased;
|
|
1246
|
-
const hasNewlyFetchedSelectedItems = (() => {
|
|
1247
|
-
if (selectedValues.length === 0 || !optionsChanged) {
|
|
1248
|
-
return false;
|
|
1249
|
-
}
|
|
1250
|
-
const previouslyMissingValues = selectedValues.filter(val => !(0, _utils.findValueInOptions)(prevOptions, val));
|
|
1251
|
-
if (previouslyMissingValues.length === 0) {
|
|
1252
|
-
return false;
|
|
1253
|
-
}
|
|
1254
|
-
const nowPresentValues = previouslyMissingValues.filter(val => (0, _utils.findValueInOptions)(currentOptions, val));
|
|
1255
|
-
return nowPresentValues.length > 0;
|
|
1256
|
-
})();
|
|
1257
|
-
if (optionsChanged && hasNewlyFetchedSelectedItems) {
|
|
1258
|
-
const reordered = (0, _utils.reorderOptionsBySelection)(currentOptions, selectedValues);
|
|
1259
|
-
setOrderedOptions(reordered);
|
|
1260
|
-
}
|
|
1261
|
-
prevOptionsCountBeforeFetchMissingRef.current = currentOptions.length;
|
|
1262
|
-
prevOptionsBeforeFetchMissingRef.current = currentOptions;
|
|
1263
|
-
}, [options, value, tempValue, fetchMissingOptions, staticValue]);
|
|
1264
|
-
(0, _react.useEffect)(() => {
|
|
1265
|
-
if (initialSortDoneRef.current || !(options != null && options.length)) {
|
|
1266
|
-
return;
|
|
1267
|
-
}
|
|
1268
|
-
const selectedValues = Array.isArray(value) ? value : value ? [value] : [];
|
|
1269
|
-
if (selectedValues.length === 0) {
|
|
1270
|
-
initialSortDoneRef.current = true;
|
|
1271
|
-
return;
|
|
1272
|
-
}
|
|
1273
|
-
const checkValueExists = (opts, val) => {
|
|
1274
|
-
for (const opt of opts) {
|
|
1275
|
-
if (opt.value === val) return true;
|
|
1276
|
-
if (opt.children && opt.children.length > 0) {
|
|
1277
|
-
if (checkValueExists(opt.children, val)) return true;
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
return false;
|
|
1281
|
-
};
|
|
1282
|
-
const hasSelectedInOptions = selectedValues.some(val => checkValueExists(options, val));
|
|
1283
|
-
if (hasSelectedInOptions) {
|
|
1284
|
-
const reordered = (0, _utils.reorderOptionsBySelection)(options, selectedValues);
|
|
1285
|
-
setOrderedOptions(reordered);
|
|
1286
|
-
}
|
|
1287
|
-
initialSortDoneRef.current = true;
|
|
1288
|
-
}, [options, value]);
|
|
1289
|
-
const dataSource = (0, _react.useMemo)(() => {
|
|
1290
|
-
const sourceOptions = searchText.trim() ? mergedOptions : orderedOptions || mergedOptions;
|
|
1291
|
-
const selectedValues = Array.isArray(value) ? value : value ? [value] : [];
|
|
1292
|
-
const hasSearchQuery = searchText.trim().length > 0;
|
|
1293
|
-
|
|
1294
|
-
// For API-driven data, don't append virtual options during search
|
|
1295
|
-
// Only show search results when searching
|
|
1296
|
-
const shouldAppendVirtualOptions = staticValue || !hasSearchQuery;
|
|
1297
|
-
const missingSelectedValues = [];
|
|
1298
|
-
if (shouldAppendVirtualOptions && selectedValues.length > 0) {
|
|
1299
|
-
selectedValues.forEach(val => {
|
|
1300
|
-
if (!(0, _utils.findValueInOptions)(sourceOptions, val)) {
|
|
1301
|
-
missingSelectedValues.push(val);
|
|
1302
|
-
}
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
const virtualOptions = missingSelectedValues.map(val => {
|
|
1306
|
-
const cachedOption = selectedItemsCacheRef.current.get(val);
|
|
1307
|
-
return _extends({
|
|
1308
|
-
value: val,
|
|
1309
|
-
label: (cachedOption == null ? void 0 : cachedOption.label) || String(val),
|
|
1310
|
-
key: (cachedOption == null ? void 0 : cachedOption.key) || val,
|
|
1311
|
-
title: cachedOption == null ? void 0 : cachedOption.title,
|
|
1312
|
-
optionSuffix: cachedOption == null ? void 0 : cachedOption.optionSuffix,
|
|
1313
|
-
optionSuffixInfo: cachedOption == null ? void 0 : cachedOption.optionSuffixInfo,
|
|
1314
|
-
optionTooltipInfo: cachedOption == null ? void 0 : cachedOption.optionTooltipInfo,
|
|
1315
|
-
disabled: cachedOption == null ? void 0 : cachedOption.disabled
|
|
1316
|
-
}, (cachedOption == null ? void 0 : cachedOption.children) && {
|
|
1317
|
-
children: cachedOption.children
|
|
1318
|
-
});
|
|
1319
|
-
});
|
|
1320
|
-
const allOptions = hasSearchQuery ? [...sourceOptions, ...virtualOptions] : [...virtualOptions, ...sourceOptions];
|
|
1321
|
-
if (!(allOptions != null && allOptions.length)) return [];
|
|
1322
|
-
const enhanceOptions = opts => opts.map(opt => {
|
|
1323
|
-
const decoratedTitle = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1324
|
-
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
1325
|
-
justify: "space-between",
|
|
1326
|
-
align: "middle",
|
|
1327
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1328
|
-
className: _styles.default['cap-unified-select-option-label'],
|
|
1329
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1330
|
-
type: "label14",
|
|
1331
|
-
children: opt == null ? void 0 : opt.label
|
|
1332
|
-
})
|
|
1333
|
-
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1334
|
-
className: _styles.default['cap-unified-select-option-end'],
|
|
1335
|
-
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
1336
|
-
className: _styles.default['cap-unified-select-option-suffix'],
|
|
1337
|
-
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
1338
|
-
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
1339
|
-
})]
|
|
1340
|
-
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
1341
|
-
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
1342
|
-
})]
|
|
1343
|
-
})]
|
|
1344
|
-
});
|
|
1345
|
-
return _extends({}, opt, {
|
|
1346
|
-
title: decoratedTitle,
|
|
1347
|
-
label: opt == null ? void 0 : opt.label,
|
|
1348
|
-
children: opt != null && opt.children ? enhanceOptions(opt.children) : []
|
|
1349
|
-
});
|
|
1350
|
-
});
|
|
1351
|
-
return isTree ? enhanceOptions(allOptions) : allOptions.map(opt => _extends({}, opt, {
|
|
1352
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1353
|
-
className: _styles.default['cap-unified-select-option-with-suffix'],
|
|
1354
|
-
justify: "space-between",
|
|
1355
|
-
align: "middle",
|
|
1356
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1357
|
-
className: _styles.default['cap-unified-select-option-label'],
|
|
1358
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1359
|
-
type: "label14",
|
|
1360
|
-
children: opt == null ? void 0 : opt.label
|
|
1361
|
-
})
|
|
1362
|
-
}), ((opt == null ? void 0 : opt.optionSuffix) || (opt == null ? void 0 : opt.optionTooltipInfo)) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1363
|
-
className: _styles.default['cap-unified-select-option-end'],
|
|
1364
|
-
children: [(opt == null ? void 0 : opt.optionSuffix) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
1365
|
-
className: _styles.default['cap-unified-select-option-suffix'],
|
|
1366
|
-
children: [opt == null ? void 0 : opt.optionSuffix, (opt == null ? void 0 : opt.optionSuffixInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
1367
|
-
title: opt == null ? void 0 : opt.optionSuffixInfo
|
|
1368
|
-
})]
|
|
1369
|
-
}), (opt == null ? void 0 : opt.optionTooltipInfo) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
1370
|
-
title: opt == null ? void 0 : opt.optionTooltipInfo
|
|
1371
|
-
})]
|
|
1372
|
-
})]
|
|
1373
|
-
}),
|
|
1374
|
-
label: opt == null ? void 0 : opt.label
|
|
1375
|
-
}));
|
|
1376
|
-
}, [isTree, mergedOptions, orderedOptions, searchText, value, staticValue]);
|
|
1377
|
-
const filteredTree = (0, _react.useMemo)(() => {
|
|
1378
|
-
const selectedValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
1379
|
-
return (0, _utils.filterTreeData)(dataSource, searchText.trim(), searchBasedOn, selectedValues.length > 0 ? selectedValues : undefined);
|
|
1380
|
-
}, [dataSource, searchText, searchBasedOn, tempValue]);
|
|
1381
|
-
const treeMaps = (0, _react.useMemo)(() => (0, _utils.buildTreeMaps)(options), [options]);
|
|
1382
|
-
const selectedLeafCount = (0, _react.useMemo)(() => (0, _utils.countSelectedLeaves)(treeMaps, Array.isArray(tempValue) ? tempValue : undefined), [treeMaps, tempValue]);
|
|
1383
|
-
const displayValue = dropdownOpen ? tempValue : value;
|
|
1384
|
-
const suffix = (0, _react.useMemo)(() => {
|
|
1385
|
-
const count = Array.isArray(displayValue) ? displayValue == null ? void 0 : displayValue.length : displayValue ? 1 : 0;
|
|
1386
|
-
const renderTooltipTitle = values => {
|
|
1387
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1388
|
-
className: _styles.default['cap-unified-select-more-tooltip-content'],
|
|
1389
|
-
children: values.map((val, idx) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1390
|
-
children: val
|
|
1391
|
-
}, "cap-unified-select-tooltip-item-" + val + "-" + idx))
|
|
1392
|
-
});
|
|
1393
|
-
};
|
|
1394
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
1395
|
-
children: [isMulti && count > 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
1396
|
-
className: _styles.default['cap-unified-select-more-text'],
|
|
1397
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltip.default, {
|
|
1398
|
-
title: renderTooltipTitle(Array.isArray(displayValue) ? displayValue.slice(1) : []),
|
|
1399
|
-
placement: "bottom",
|
|
1400
|
-
overlayClassName: _styles.default['cap-unified-select-more-tooltip'],
|
|
1401
|
-
arrowPointAtCenter: true,
|
|
1402
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
1403
|
-
children: ["+", count - 1, " more"]
|
|
1404
|
-
})
|
|
1405
|
-
})
|
|
1406
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
1407
|
-
className: _styles.default['cap-unified-select-suffix-icon'],
|
|
1408
|
-
type: dropdownOpen ? 'up' : 'down',
|
|
1409
|
-
size: "xs"
|
|
1410
|
-
})]
|
|
1411
|
-
});
|
|
1412
|
-
}, [isMulti, displayValue, dropdownOpen]);
|
|
1413
|
-
const prefix = (0, _react.useMemo)(() => {
|
|
1414
|
-
if (isMulti && Array.isArray(displayValue) && (displayValue == null ? void 0 : displayValue.length) > 0) {
|
|
1415
|
-
var _treeMaps$nodeMap;
|
|
1416
|
-
const firstLeafValue = displayValue.find(val => {
|
|
1417
|
-
var _treeMaps$leafValues;
|
|
1418
|
-
return treeMaps == null || (_treeMaps$leafValues = treeMaps.leafValues) == null ? void 0 : _treeMaps$leafValues.includes(val);
|
|
1419
|
-
});
|
|
1420
|
-
return firstLeafValue ? (treeMaps == null || (_treeMaps$nodeMap = treeMaps.nodeMap) == null || (_treeMaps$nodeMap = _treeMaps$nodeMap[firstLeafValue]) == null ? void 0 : _treeMaps$nodeMap.label) || null : null;
|
|
1421
|
-
}
|
|
1422
|
-
return null;
|
|
1423
|
-
}, [isMulti, displayValue, treeMaps]);
|
|
1424
|
-
const handleConfirm = (0, _react.useCallback)(() => {
|
|
1425
|
-
hasInteractedRef.current = true;
|
|
1426
|
-
const optionsToReorder = mergedOptions;
|
|
1427
|
-
if (isMulti && Array.isArray(tempValue) && tempValue.length > 0) {
|
|
1428
|
-
const reordered = (0, _utils.reorderOptionsBySelection)(optionsToReorder, tempValue);
|
|
1429
|
-
setOrderedOptions(reordered);
|
|
1430
|
-
} else if (!isMulti && tempValue && !Array.isArray(tempValue)) {
|
|
1431
|
-
// For single select, move selected item to top
|
|
1432
|
-
const reordered = (0, _utils.reorderOptionsBySelection)(optionsToReorder, [tempValue]);
|
|
1433
|
-
setOrderedOptions(reordered);
|
|
1434
|
-
} else {
|
|
1435
|
-
// No selection, reset to original order
|
|
1436
|
-
setOrderedOptions(null);
|
|
1437
|
-
}
|
|
1438
|
-
onChange == null || onChange(tempValue);
|
|
1439
|
-
setDropdownOpen(false);
|
|
1440
|
-
setIsSearching(false);
|
|
1441
|
-
searchClearedTimeRef.current = null;
|
|
1442
|
-
if (resetSearch) {
|
|
1443
|
-
setSearchText('');
|
|
1444
|
-
lastSearchQueryRef.current = '';
|
|
1445
|
-
}
|
|
1446
|
-
if (resetData && mergedOptions.length > 0) {
|
|
1447
|
-
prevOptionsBeforeResetRef.current = mergedOptions;
|
|
1448
|
-
setIsResettingData(true);
|
|
1449
|
-
resetDataCalledRef.current = true;
|
|
1450
|
-
resetDataCalledTimeRef.current = Date.now();
|
|
1451
|
-
resetData();
|
|
1452
|
-
}
|
|
1453
|
-
onConfirm == null || onConfirm(tempValue);
|
|
1454
|
-
}, [onChange, onConfirm, tempValue, resetSearch, isMulti, mergedOptions, resetData]);
|
|
1455
|
-
const handleClearAll = (0, _react.useCallback)(() => {
|
|
1456
|
-
// Reset all state as if it's a fresh dropdown
|
|
1457
|
-
const cleared = isMulti ? [] : undefined;
|
|
1458
|
-
|
|
1459
|
-
// Clear search state
|
|
1460
|
-
setSearchText('');
|
|
1461
|
-
setIsSearching(false);
|
|
1462
|
-
lastSearchQueryRef.current = '';
|
|
1463
|
-
searchClearedTimeRef.current = null;
|
|
1464
|
-
|
|
1465
|
-
// Clear timeouts
|
|
1466
|
-
if (searchTimeoutRef.current) {
|
|
1467
|
-
clearTimeout(searchTimeoutRef.current);
|
|
1468
|
-
searchTimeoutRef.current = null;
|
|
1469
|
-
}
|
|
1470
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1471
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1472
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1473
|
-
}
|
|
1474
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1475
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1476
|
-
scrollThrottleTimeoutRef.current = null;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
// Reset scroll state
|
|
1480
|
-
setIsLoadingOnScroll(false);
|
|
1481
|
-
isScrollProcessingRef.current = false;
|
|
1482
|
-
scrollContainerRef.current = null;
|
|
1483
|
-
|
|
1484
|
-
// Reset ordered options
|
|
1485
|
-
setOrderedOptions(null);
|
|
1486
|
-
initialSortDoneRef.current = false;
|
|
1487
|
-
|
|
1488
|
-
// Reset interaction flags
|
|
1489
|
-
hasInteractedRef.current = false;
|
|
1490
|
-
resetDataCalledRef.current = false;
|
|
1491
|
-
fetchMissingOptionsCalledRef.current = false;
|
|
1492
|
-
lastMissingValuesRef.current = '';
|
|
1493
|
-
|
|
1494
|
-
// Reset temp value and call onChange (same as allowClear X button)
|
|
1495
|
-
setTempValue(cleared);
|
|
1496
|
-
onChange == null || onChange(cleared);
|
|
1497
|
-
|
|
1498
|
-
// Close dropdown
|
|
1499
|
-
setDropdownOpen(false);
|
|
1500
|
-
|
|
1501
|
-
// Reset data if needed (same as allowClear X button behavior)
|
|
1502
|
-
if (resetData && options.length > 0) {
|
|
1503
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1504
|
-
setIsResettingData(true);
|
|
1505
|
-
resetDataCalledRef.current = true;
|
|
1506
|
-
resetDataCalledTimeRef.current = Date.now();
|
|
1507
|
-
resetData();
|
|
1508
|
-
}
|
|
1509
|
-
}, [isMulti, onChange, resetData, options]);
|
|
1510
|
-
const handleDropdownVisibilityChange = (0, _react.useCallback)(open => {
|
|
1511
|
-
if (readOnly || disabled) {
|
|
1512
|
-
return;
|
|
1513
|
-
}
|
|
1514
|
-
if (open) {
|
|
1515
|
-
initialTempValueRef.current = value;
|
|
1516
|
-
hasInteractedRef.current = false;
|
|
1517
|
-
resetDataCalledRef.current = false;
|
|
1518
|
-
fetchMissingOptionsCalledRef.current = false;
|
|
1519
|
-
lastMissingValuesRef.current = '';
|
|
1520
|
-
if (searchTimeoutRef.current) {
|
|
1521
|
-
clearTimeout(searchTimeoutRef.current);
|
|
1522
|
-
searchTimeoutRef.current = null;
|
|
1523
|
-
}
|
|
1524
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1525
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1526
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1527
|
-
}
|
|
1528
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1529
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1530
|
-
scrollThrottleTimeoutRef.current = null;
|
|
1531
|
-
}
|
|
1532
|
-
setIsSearching(false);
|
|
1533
|
-
searchClearedTimeRef.current = null;
|
|
1534
|
-
setIsLoadingOnScroll(false);
|
|
1535
|
-
isScrollProcessingRef.current = false;
|
|
1536
|
-
if (isResettingData) {
|
|
1537
|
-
setIsResettingData(false);
|
|
1538
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1539
|
-
resetDataCalledTimeRef.current = null;
|
|
1540
|
-
}
|
|
1541
|
-
} else {
|
|
1542
|
-
if (!customPopupRender) {
|
|
1543
|
-
onChange == null || onChange(tempValue);
|
|
1544
|
-
} else {
|
|
1545
|
-
setTempValue(value);
|
|
1546
|
-
}
|
|
1547
|
-
if (resetSearch) {
|
|
1548
|
-
setSearchText('');
|
|
1549
|
-
setIsSearching(false);
|
|
1550
|
-
lastSearchQueryRef.current = '';
|
|
1551
|
-
searchClearedTimeRef.current = null;
|
|
1552
|
-
}
|
|
1553
|
-
setIsLoadingOnScroll(false);
|
|
1554
|
-
isScrollProcessingRef.current = false;
|
|
1555
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1556
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1557
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1558
|
-
}
|
|
1559
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1560
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1561
|
-
scrollThrottleTimeoutRef.current = null;
|
|
1562
|
-
}
|
|
1563
|
-
scrollContainerRef.current = null;
|
|
1564
|
-
if (resetData && hasInteractedRef.current && !resetDataCalledRef.current && options.length > 0) {
|
|
1565
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1566
|
-
setIsResettingData(true);
|
|
1567
|
-
resetDataCalledRef.current = true;
|
|
1568
|
-
resetDataCalledTimeRef.current = Date.now();
|
|
1569
|
-
resetData();
|
|
1570
|
-
} else if (!hasInteractedRef.current) {
|
|
1571
|
-
if (searchTimeoutRef.current) {
|
|
1572
|
-
clearTimeout(searchTimeoutRef.current);
|
|
1573
|
-
searchTimeoutRef.current = null;
|
|
1574
|
-
}
|
|
1575
|
-
setIsSearching(false);
|
|
1576
|
-
setIsResettingData(false);
|
|
1577
|
-
lastSearchQueryRef.current = '';
|
|
1578
|
-
}
|
|
1579
|
-
hasInteractedRef.current = false;
|
|
1580
|
-
}
|
|
1581
|
-
setDropdownOpen(open);
|
|
1582
|
-
}, [customPopupRender, value, onChange, tempValue, readOnly, disabled, resetSearch, resetData, options, isResettingData]);
|
|
1583
|
-
const handleFooterDownload = (0, _react.useCallback)(() => {
|
|
1584
|
-
const currentValues = Array.isArray(tempValue) ? tempValue : tempValue ? [tempValue] : [];
|
|
1585
|
-
onFooterDownloadChange == null || onFooterDownloadChange(currentValues);
|
|
1586
|
-
}, [tempValue, onFooterDownloadChange]);
|
|
1587
|
-
const handleUpload = (0, _react.useCallback)(() => {
|
|
1588
|
-
onUpload == null || onUpload();
|
|
1589
|
-
setDropdownOpen(false);
|
|
1590
|
-
}, [onUpload]);
|
|
1591
|
-
const handleSearchChange = (0, _react.useCallback)(e => {
|
|
1592
|
-
const query = e.target.value;
|
|
1593
|
-
setSearchText(query);
|
|
1594
|
-
handleSearch(query);
|
|
1595
|
-
}, [handleSearch]);
|
|
1596
|
-
const handleSearchKeyDown = (0, _react.useCallback)(e => {
|
|
1597
|
-
if (e.key === 'Backspace' || e.key === 'Delete') {
|
|
1598
|
-
e.stopPropagation();
|
|
1599
|
-
}
|
|
1600
|
-
if (e.key === 'Escape' && searchText.length > 0) {
|
|
1601
|
-
e.stopPropagation();
|
|
1602
|
-
}
|
|
1603
|
-
}, [searchText]);
|
|
1604
|
-
const handleScroll = (0, _react.useCallback)(event => {
|
|
1605
|
-
if (!onPopupScroll) return;
|
|
1606
|
-
const target = event.target;
|
|
1607
|
-
if (!target) return;
|
|
1608
|
-
const isNearBottom = Math.floor(target.scrollHeight - target.scrollTop) <= target.clientHeight;
|
|
1609
|
-
if (!isNearBottom) {
|
|
1610
|
-
isScrollProcessingRef.current = false;
|
|
1611
|
-
return;
|
|
1612
|
-
}
|
|
1613
|
-
if (isScrollProcessingRef.current) return;
|
|
1614
|
-
if (isLoadingOnScroll) return;
|
|
1615
|
-
if (!hasMore) {
|
|
1616
|
-
isScrollProcessingRef.current = false;
|
|
1617
|
-
return;
|
|
1618
|
-
}
|
|
1619
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1620
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1621
|
-
}
|
|
1622
|
-
isScrollProcessingRef.current = true;
|
|
1623
|
-
scrollThrottleTimeoutRef.current = setTimeout(() => {
|
|
1624
|
-
const stillNearBottom = Math.floor(target.scrollHeight - target.scrollTop) <= target.clientHeight;
|
|
1625
|
-
if (!stillNearBottom || isLoadingOnScroll || !hasMore) {
|
|
1626
|
-
isScrollProcessingRef.current = false;
|
|
1627
|
-
return;
|
|
1628
|
-
}
|
|
1629
|
-
const currentOptions = optionsRef.current;
|
|
1630
|
-
prevOptionsCountRef.current = currentOptions.length;
|
|
1631
|
-
prevOptionsRefForScroll.current = currentOptions;
|
|
1632
|
-
scrollTriggerOptionsCountRef.current = currentOptions.length;
|
|
1633
|
-
setIsLoadingOnScroll(true);
|
|
1634
|
-
if (scrollLoadingTimeoutRef.current) {
|
|
1635
|
-
clearTimeout(scrollLoadingTimeoutRef.current);
|
|
1636
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1637
|
-
}
|
|
1638
|
-
hasInteractedRef.current = true;
|
|
1639
|
-
onPopupScroll();
|
|
1640
|
-
scrollLoadingTimeoutRef.current = setTimeout(() => {
|
|
1641
|
-
setIsLoadingOnScroll(prev => {
|
|
1642
|
-
if (prev) {
|
|
1643
|
-
scrollLoadingTimeoutRef.current = null;
|
|
1644
|
-
isScrollProcessingRef.current = false;
|
|
1645
|
-
return false;
|
|
1646
|
-
}
|
|
1647
|
-
return prev;
|
|
1648
|
-
});
|
|
1649
|
-
}, _constants.TIMEOUTS.SCROLL_LOADING_TIMEOUT);
|
|
1650
|
-
}, 150);
|
|
1651
|
-
}, [onPopupScroll, isLoadingOnScroll, hasMore]);
|
|
1652
|
-
(0, _react.useEffect)(() => {
|
|
1653
|
-
if (!onPopupScroll || !dropdownOpen) return;
|
|
1654
|
-
const timeoutId = setTimeout(() => {
|
|
1655
|
-
const findScrollContainer = () => {
|
|
1656
|
-
const dropdowns = document.querySelectorAll('.ant-select-dropdown:not(.ant-select-dropdown-hidden)');
|
|
1657
|
-
if (dropdowns.length === 0) return null;
|
|
1658
|
-
const dropdown = Array.from(dropdowns).pop();
|
|
1659
|
-
if (!dropdown) return null;
|
|
1660
|
-
const treeList = dropdown.querySelector('.ant-select-tree-list-holder');
|
|
1661
|
-
if (treeList && treeList.scrollHeight > treeList.clientHeight) {
|
|
1662
|
-
return treeList;
|
|
1663
|
-
}
|
|
1664
|
-
const virtualList = dropdown.querySelector('.rc-virtual-list-holder');
|
|
1665
|
-
if (virtualList && virtualList.scrollHeight > virtualList.clientHeight) {
|
|
1666
|
-
return virtualList;
|
|
1667
|
-
}
|
|
1668
|
-
if (dropdown.scrollHeight > dropdown.clientHeight) {
|
|
1669
|
-
return dropdown;
|
|
1670
|
-
}
|
|
1671
|
-
return null;
|
|
1672
|
-
};
|
|
1673
|
-
const scrollContainer = findScrollContainer();
|
|
1674
|
-
if (scrollContainer) {
|
|
1675
|
-
scrollContainerRef.current = scrollContainer;
|
|
1676
|
-
scrollContainer.addEventListener('scroll', handleScroll, {
|
|
1677
|
-
passive: true
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
}, _constants.TIMEOUTS.SCROLL_CONTAINER_DELAY);
|
|
1681
|
-
return () => {
|
|
1682
|
-
clearTimeout(timeoutId);
|
|
1683
|
-
if (scrollThrottleTimeoutRef.current) {
|
|
1684
|
-
clearTimeout(scrollThrottleTimeoutRef.current);
|
|
1685
|
-
scrollThrottleTimeoutRef.current = null;
|
|
1686
|
-
}
|
|
1687
|
-
if (scrollContainerRef.current) {
|
|
1688
|
-
scrollContainerRef.current.removeEventListener('scroll', handleScroll);
|
|
1689
|
-
scrollContainerRef.current = null;
|
|
1690
|
-
}
|
|
1691
|
-
isScrollProcessingRef.current = false;
|
|
1692
|
-
};
|
|
1693
|
-
}, [onPopupScroll, dropdownOpen, handleScroll]);
|
|
1694
|
-
const renderHeader = (0, _react.useMemo)(() => {
|
|
1695
|
-
if (!headerLabel && !tooltip) return null;
|
|
1696
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
1697
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1698
|
-
className: (0, _classnames.default)(_styles.default['cap-unified-select-header-wrapper'], disabled && _styles.default.disabled, _styles.default['cap-unified-select-header']),
|
|
1699
|
-
children: [headerLabel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1700
|
-
type: "label16",
|
|
1701
|
-
className: (0, _classnames.default)(disabled && _styles.default.disabled, _styles.default['cap-unified-select-header-label']),
|
|
1702
|
-
children: headerLabel
|
|
1703
|
-
}), tooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTooltipWithInfo.default, {
|
|
1704
|
-
title: tooltip,
|
|
1705
|
-
className: (0, _classnames.default)(disabled && _styles.default.disabled, _styles.default['cap-unified-select-header-tooltip']),
|
|
1706
|
-
iconProps: {
|
|
1707
|
-
disabled
|
|
1708
|
-
}
|
|
1709
|
-
})]
|
|
1710
|
-
}), bylineText && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1711
|
-
className: _styles.default['cap-unified-select-header-byline-text'],
|
|
1712
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1713
|
-
className: (0, _classnames.default)(disabled && _styles.default.disabled, _styles.default['cap-unified-select-header-byline-text']),
|
|
1714
|
-
children: bylineText
|
|
1715
|
-
})
|
|
1716
|
-
})]
|
|
1717
|
-
});
|
|
1718
|
-
}, [headerLabel, tooltip, bylineText, disabled]);
|
|
1719
|
-
const renderCustomDropdown = (0, _react.useCallback)(menu => {
|
|
1720
|
-
if (!customPopupRender) return menu;
|
|
1721
|
-
const currentItems = filteredTree;
|
|
1722
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1723
|
-
className: (0, _classnames.default)(popoverClassName, _styles.default[type + "-popup-container"]),
|
|
1724
|
-
children: [showSearch && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1725
|
-
className: _styles.default['cap-unified-select-search-container'],
|
|
1726
|
-
align: "middle",
|
|
1727
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Input, {
|
|
1728
|
-
prefix: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
1729
|
-
type: "search",
|
|
1730
|
-
size: "s",
|
|
1731
|
-
className: _styles.default['cap-unified-select-search-icon']
|
|
1732
|
-
}),
|
|
1733
|
-
placeholder: _constants.DEFAULTS.SEARCH_PLACEHOLDER,
|
|
1734
|
-
variant: "borderless",
|
|
1735
|
-
value: searchText,
|
|
1736
|
-
onChange: handleSearchChange,
|
|
1737
|
-
onKeyDown: handleSearchKeyDown,
|
|
1738
|
-
allowClear: true,
|
|
1739
|
-
disabled: disabled
|
|
1740
|
-
})
|
|
1741
|
-
}), isMulti && showUpload && !disabled && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1742
|
-
className: _styles.default['cap-unified-select-upload-container'],
|
|
1743
|
-
align: "middle",
|
|
1744
|
-
onClick: handleUpload,
|
|
1745
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
1746
|
-
type: "upload",
|
|
1747
|
-
size: "s",
|
|
1748
|
-
className: _styles.default['cap-unified-select-upload-icon']
|
|
1749
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1750
|
-
type: "label14",
|
|
1751
|
-
className: _styles.default['cap-unified-select-upload-label'],
|
|
1752
|
-
children: uploadLabel
|
|
1753
|
-
})]
|
|
1754
|
-
}), isMulti && staticValue && currentItems.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SelectAllCheckbox, {
|
|
1755
|
-
currentItems: currentItems,
|
|
1756
|
-
tempValue: Array.isArray(tempValue) ? tempValue : undefined,
|
|
1757
|
-
setTempValue: val => setTempValue(val),
|
|
1758
|
-
processTreeData: _utils.buildTreeMaps,
|
|
1759
|
-
disabled: disabled
|
|
1760
|
-
}), currentItems.length === 0 ? isSearching || isResettingData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1761
|
-
className: _styles.default['cap-unified-select-loading-container'],
|
|
1762
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1763
|
-
align: "middle",
|
|
1764
|
-
justify: "center",
|
|
1765
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
|
|
1766
|
-
size: "small"
|
|
1767
|
-
})
|
|
1768
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1769
|
-
align: "middle",
|
|
1770
|
-
justify: "center",
|
|
1771
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1772
|
-
type: "label14",
|
|
1773
|
-
children: "Loading..."
|
|
1774
|
-
})
|
|
1775
|
-
})]
|
|
1776
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoResult, {
|
|
1777
|
-
noResultCustomText: noResultCustomText,
|
|
1778
|
-
className: className,
|
|
1779
|
-
showUpload: showUpload,
|
|
1780
|
-
options: options,
|
|
1781
|
-
noResultCustomIcon: noResultCustomIcon
|
|
1782
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1783
|
-
className: _styles.default['cap-unified-select-menu-wrapper'],
|
|
1784
|
-
children: [menu, (isSearching || isResettingData) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1785
|
-
className: _styles.default['cap-unified-select-loading-overlay'],
|
|
1786
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1787
|
-
align: "middle",
|
|
1788
|
-
justify: "center",
|
|
1789
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
|
|
1790
|
-
size: "small"
|
|
1791
|
-
})
|
|
1792
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1793
|
-
align: "middle",
|
|
1794
|
-
justify: "center",
|
|
1795
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1796
|
-
type: "label14",
|
|
1797
|
-
children: "Loading..."
|
|
1798
|
-
})
|
|
1799
|
-
})]
|
|
1800
|
-
}), isLoadingOnScroll && onPopupScroll && hasMore && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1801
|
-
className: _styles.default['cap-unified-select-loading-overlay'],
|
|
1802
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1803
|
-
align: "middle",
|
|
1804
|
-
justify: "center",
|
|
1805
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapSpin.default, {
|
|
1806
|
-
size: "small"
|
|
1807
|
-
})
|
|
1808
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1809
|
-
align: "middle",
|
|
1810
|
-
justify: "center",
|
|
1811
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1812
|
-
type: "label14",
|
|
1813
|
-
children: "Loading..."
|
|
1814
|
-
})
|
|
1815
|
-
})]
|
|
1816
|
-
})]
|
|
1817
|
-
}), currentItems.length > 0 && isMulti && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1818
|
-
className: _styles.default['cap-unified-select-confirm-container'],
|
|
1819
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
1820
|
-
className: _styles.default['cap-unified-select-confirm-button-group'],
|
|
1821
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Button, {
|
|
1822
|
-
type: "primary",
|
|
1823
|
-
size: "small",
|
|
1824
|
-
className: _styles.default['cap-unified-select-confirm-button'],
|
|
1825
|
-
onClick: handleConfirm,
|
|
1826
|
-
disabled: disabled || selectedLeafCount === 0,
|
|
1827
|
-
children: "Confirm"
|
|
1828
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Button, {
|
|
1829
|
-
type: "text",
|
|
1830
|
-
className: _styles.default['cap-unified-select-cancel-button'],
|
|
1831
|
-
size: "small",
|
|
1832
|
-
onClick: handleClearAll,
|
|
1833
|
-
disabled: disabled,
|
|
1834
|
-
children: clearText
|
|
1835
|
-
}), onFooterDownloadChange && selectedLeafCount > 0 && !disabled && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1836
|
-
className: _styles.default['cap-unified-select-footer-download-container'],
|
|
1837
|
-
align: "middle",
|
|
1838
|
-
onClick: handleFooterDownload,
|
|
1839
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
1840
|
-
type: "download",
|
|
1841
|
-
size: "s",
|
|
1842
|
-
className: _styles.default['cap-unified-select-footer-download-icon']
|
|
1843
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapLabel.default, {
|
|
1844
|
-
className: _styles.default['cap-unified-select-footer-download-label'],
|
|
1845
|
-
children: [selectedLeafCount, " selected"]
|
|
1846
|
-
})]
|
|
1847
|
-
})]
|
|
1848
|
-
})
|
|
1849
|
-
}), (type === _constants.SELECT_TYPES.SELECT || type === _constants.SELECT_TYPES.TREE_SELECT) && allowClear && !disabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
1850
|
-
className: _styles.default['cap-unified-select-tree-clear-container'],
|
|
1851
|
-
onClick: handleClearAll,
|
|
1852
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1853
|
-
className: _styles.default['cap-unified-select-tree-clear-label'],
|
|
1854
|
-
children: clearText
|
|
1855
|
-
})
|
|
1856
|
-
})]
|
|
1857
|
-
});
|
|
1858
|
-
}, [customPopupRender, filteredTree, searchText, isMulti, showUpload, uploadLabel, handleUpload, noResultCustomText, noResultCustomIcon, options, type, tempValue, handleConfirm, handleClearAll, popoverClassName, className, selectedLeafCount, clearText, allowClear, staticValue, showSearch, onFooterDownloadChange, handleFooterDownload, isSearching, handleSearchChange, handleSearchKeyDown, isLoadingOnScroll, onPopupScroll, hasMore, isResettingData, disabled]);
|
|
1859
|
-
const combinedClassName = (0, _react.useMemo)(() => (0, _classnames.default)(containerClassName, _styles.default['cap-unified-tree-select'], {
|
|
1860
|
-
[_styles.default['cap-unified-tree-select-readonly']]: readOnly
|
|
1861
|
-
}, className), [containerClassName, className, readOnly]);
|
|
1862
|
-
const handleSingleSelectChange = (0, _react.useCallback)(newValue => {
|
|
1863
|
-
if (disabled) {
|
|
1864
|
-
return;
|
|
1865
|
-
}
|
|
1866
|
-
if (newValue !== initialTempValueRef.current) {
|
|
1867
|
-
hasInteractedRef.current = true;
|
|
1868
|
-
}
|
|
1869
|
-
if (newValue === undefined || newValue === null) {
|
|
1870
|
-
if (resetData && options.length > 0) {
|
|
1871
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1872
|
-
setIsResettingData(true);
|
|
1873
|
-
resetDataCalledRef.current = true;
|
|
1874
|
-
resetDataCalledTimeRef.current = Date.now();
|
|
1875
|
-
resetData();
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
onChange == null || onChange(newValue);
|
|
1879
|
-
}, [onChange, resetData, options, disabled]);
|
|
1880
|
-
const handleMultiSelectChange = (0, _react.useCallback)(newValue => {
|
|
1881
|
-
if (disabled) {
|
|
1882
|
-
return;
|
|
1883
|
-
}
|
|
1884
|
-
const initialValue = initialTempValueRef.current;
|
|
1885
|
-
const hasChanged = Array.isArray(newValue) && Array.isArray(initialValue) ? newValue.length !== initialValue.length || !newValue.every(v => initialValue.includes(v)) || !initialValue.every(v => newValue.includes(v)) : newValue !== initialValue;
|
|
1886
|
-
if (hasChanged) {
|
|
1887
|
-
hasInteractedRef.current = true;
|
|
1888
|
-
}
|
|
1889
|
-
if (newValue === undefined || newValue === null || Array.isArray(newValue) && newValue.length === 0) {
|
|
1890
|
-
if (resetData && options.length > 0) {
|
|
1891
|
-
prevOptionsBeforeResetRef.current = options;
|
|
1892
|
-
setIsResettingData(true);
|
|
1893
|
-
resetDataCalledRef.current = true;
|
|
1894
|
-
resetDataCalledTimeRef.current = Date.now();
|
|
1895
|
-
resetData();
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
setTempValue(newValue);
|
|
1899
|
-
}, [resetData, options, disabled]);
|
|
1900
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
1901
|
-
className: className,
|
|
1902
|
-
children: [renderHeader, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.TreeSelect, _extends({
|
|
1903
|
-
treeData: filteredTree,
|
|
1904
|
-
value: customPopupRender ? tempValue : value,
|
|
1905
|
-
treeNodeLabelProp: "label",
|
|
1906
|
-
onChange: isMulti ? handleMultiSelectChange : handleSingleSelectChange,
|
|
1907
|
-
placeholder: placeholder,
|
|
1908
|
-
showSearch: false,
|
|
1909
|
-
maxTagCount: 0,
|
|
1910
|
-
maxTagPlaceholder: () => null,
|
|
1911
|
-
prefix: prefix || undefined,
|
|
1912
|
-
suffixIcon: suffix,
|
|
1913
|
-
className: (0, _classnames.default)(_styles.default['cap-unified-select-container'], combinedClassName),
|
|
1914
|
-
classNames: {
|
|
1915
|
-
popup: {
|
|
1916
|
-
root: _styles.default['cap-unified-select-popup']
|
|
1917
|
-
}
|
|
1918
|
-
},
|
|
1919
|
-
style: style,
|
|
1920
|
-
status: isError ? 'error' : '',
|
|
1921
|
-
allowClear: allowClear,
|
|
1922
|
-
multiple: isMulti,
|
|
1923
|
-
treeCheckable: isMulti,
|
|
1924
|
-
treeCheckStrictly: false,
|
|
1925
|
-
showCheckedStrategy: _antdV.TreeSelect.SHOW_CHILD,
|
|
1926
|
-
open: dropdownOpen,
|
|
1927
|
-
onOpenChange: handleDropdownVisibilityChange,
|
|
1928
|
-
virtual: !enableVirtualization,
|
|
1929
|
-
popupMatchSelectWidth: false,
|
|
1930
|
-
disabled: disabled,
|
|
1931
|
-
filterTreeNode: false,
|
|
1932
|
-
listHeight: _constants.DEFAULTS.LIST_HEIGHT,
|
|
1933
|
-
listItemHeight: virtualRowHeight,
|
|
1934
|
-
popupRender: renderCustomDropdown
|
|
1935
|
-
}, rest)), isError && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
1936
|
-
className: _styles.default['cap-unified-select-status'],
|
|
1937
|
-
children: errorMessage
|
|
1938
|
-
})]
|
|
1939
|
-
});
|
|
1940
|
-
};
|
|
1941
|
-
var _default = exports["default"] = CapUnifiedSelect;
|
|
1942
|
-
|
|
1943
|
-
/***/ }),
|
|
1944
|
-
|
|
1945
|
-
/***/ 5499:
|
|
1946
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1947
|
-
|
|
1948
|
-
"use strict";
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
exports.__esModule = true;
|
|
1952
|
-
exports["default"] = void 0;
|
|
1953
|
-
var _antdV = __webpack_require__(4273);
|
|
1954
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
1955
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
1956
|
-
var _styles = _interopRequireDefault(__webpack_require__(7144));
|
|
1957
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
1958
|
-
const _excluded = ["title", "children", "placement", "open", "defaultOpen", "trigger", "destroyTooltipOnHide", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "onOpenChange", "align", "arrowPointAtCenter", "autoAdjustOverflow", "getPopupContainer", "className"];
|
|
1959
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
1960
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
1961
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
1962
|
-
const CapTooltip = _ref => {
|
|
1963
|
-
let {
|
|
1964
|
-
title,
|
|
1965
|
-
children,
|
|
1966
|
-
placement = 'top',
|
|
1967
|
-
open,
|
|
1968
|
-
defaultOpen = false,
|
|
1969
|
-
trigger = 'hover',
|
|
1970
|
-
destroyTooltipOnHide = false,
|
|
1971
|
-
mouseEnterDelay = 0.1,
|
|
1972
|
-
mouseLeaveDelay = 0.1,
|
|
1973
|
-
overlayClassName = '',
|
|
1974
|
-
overlayStyle,
|
|
1975
|
-
onOpenChange,
|
|
1976
|
-
align,
|
|
1977
|
-
arrowPointAtCenter = false,
|
|
1978
|
-
autoAdjustOverflow = true,
|
|
1979
|
-
getPopupContainer,
|
|
1980
|
-
className = ''
|
|
1981
|
-
} = _ref,
|
|
1982
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
1983
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
1984
|
-
className: _styles.default['cap-tooltip-wrapper'],
|
|
1985
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Tooltip, _extends({
|
|
1986
|
-
title: title,
|
|
1987
|
-
placement: placement,
|
|
1988
|
-
open: open,
|
|
1989
|
-
defaultOpen: defaultOpen,
|
|
1990
|
-
trigger: trigger,
|
|
1991
|
-
destroyTooltipOnHide: destroyTooltipOnHide,
|
|
1992
|
-
mouseEnterDelay: mouseEnterDelay,
|
|
1993
|
-
mouseLeaveDelay: mouseLeaveDelay,
|
|
1994
|
-
overlayClassName: (0, _classnames.default)(_styles.default['cap-tooltip-overlay-v2'], overlayClassName),
|
|
1995
|
-
overlayStyle: overlayStyle,
|
|
1996
|
-
onOpenChange: onOpenChange,
|
|
1997
|
-
align: align,
|
|
1998
|
-
arrow: {
|
|
1999
|
-
pointAtCenter: arrowPointAtCenter
|
|
2000
|
-
},
|
|
2001
|
-
autoAdjustOverflow: autoAdjustOverflow,
|
|
2002
|
-
getPopupContainer: getPopupContainer,
|
|
2003
|
-
className: (0, _classnames.default)(_styles.default['cap-tooltip-v2'], className)
|
|
2004
|
-
}, rest, {
|
|
2005
|
-
children: children
|
|
2006
|
-
}))
|
|
2007
|
-
});
|
|
2008
|
-
};
|
|
2009
|
-
var _default = exports["default"] = CapTooltip;
|
|
2010
|
-
|
|
2011
|
-
/***/ }),
|
|
2012
|
-
|
|
2013
|
-
/***/ 5595:
|
|
2014
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2015
|
-
|
|
2016
|
-
"use strict";
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
exports.__esModule = true;
|
|
2020
|
-
exports["default"] = void 0;
|
|
2021
|
-
var AntdIcons = _interopRequireWildcard(__webpack_require__(4627));
|
|
2022
|
-
var _classnames = _interopRequireDefault(__webpack_require__(6942));
|
|
2023
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
2024
|
-
var _styles = _interopRequireDefault(__webpack_require__(6426));
|
|
2025
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
2026
|
-
const _excluded = ["type", "size", "style", "className", "disabled", "spin", "rotate", "withBackground", "backgroundProps", "onClick", "textLabel", "component", "svgProps", "allowSvg", "color"],
|
|
2027
|
-
_excluded2 = ["className"];
|
|
2028
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2029
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
2030
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
2031
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2032
|
-
// Special mappings for common icon names
|
|
2033
|
-
const iconMapping = {
|
|
2034
|
-
add: 'plus'
|
|
2035
|
-
};
|
|
2036
|
-
const getSvgIcon = function (type, svgProps) {
|
|
2037
|
-
if (svgProps === void 0) {
|
|
2038
|
-
svgProps = {};
|
|
2039
|
-
}
|
|
2040
|
-
const icons = {
|
|
2041
|
-
// Add your SVG icons here if needed
|
|
2042
|
-
};
|
|
2043
|
-
const IconComponent = type ? icons[type] : null;
|
|
2044
|
-
return IconComponent ? /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, _extends({}, svgProps)) : null;
|
|
2045
|
-
};
|
|
2046
|
-
const getAntIcon = type => {
|
|
2047
|
-
if (!type) return null;
|
|
2048
|
-
// Use mapped name if available, otherwise use original type
|
|
2049
|
-
const mappedType = iconMapping[type.toLowerCase()] || type;
|
|
2050
|
-
|
|
2051
|
-
// Convert kebab-case to PascalCase for Ant Design icon naming
|
|
2052
|
-
const pascalCase = mappedType.split('-').map(part => part.charAt(0).toUpperCase() + part.slice(1)).join('');
|
|
2053
|
-
|
|
2054
|
-
// Try different naming conventions
|
|
2055
|
-
const iconName = pascalCase + "Outlined";
|
|
2056
|
-
const iconNameFilled = pascalCase + "Filled";
|
|
2057
|
-
const iconNameTwoTone = pascalCase + "TwoTone";
|
|
2058
|
-
const iconsRecord = AntdIcons;
|
|
2059
|
-
return iconsRecord[iconName] || iconsRecord[iconNameFilled] || iconsRecord[iconNameTwoTone] || null;
|
|
2060
|
-
};
|
|
2061
|
-
const CapIcon = _ref => {
|
|
2062
|
-
let {
|
|
2063
|
-
type,
|
|
2064
|
-
size = 'm',
|
|
2065
|
-
style = {},
|
|
2066
|
-
className = '',
|
|
2067
|
-
disabled = false,
|
|
2068
|
-
spin = false,
|
|
2069
|
-
rotate,
|
|
2070
|
-
withBackground = false,
|
|
2071
|
-
backgroundProps = {},
|
|
2072
|
-
onClick,
|
|
2073
|
-
textLabel,
|
|
2074
|
-
component,
|
|
2075
|
-
svgProps = {},
|
|
2076
|
-
allowSvg = true,
|
|
2077
|
-
color
|
|
2078
|
-
} = _ref,
|
|
2079
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
2080
|
-
const handleClick = e => {
|
|
2081
|
-
if (!disabled && onClick) {
|
|
2082
|
-
onClick(e);
|
|
2083
|
-
}
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
// Render custom component if provided
|
|
2087
|
-
if (component) {
|
|
2088
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _extends({
|
|
2089
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-wrapper'], _styles.default['cap-icon'], _styles.default[size], {
|
|
2090
|
-
[_styles.default['with-text-label']]: textLabel,
|
|
2091
|
-
[_styles.default.disabled]: disabled
|
|
2092
|
-
}, className),
|
|
2093
|
-
style: style,
|
|
2094
|
-
onClick: handleClick
|
|
2095
|
-
}, rest, {
|
|
2096
|
-
children: [component, textLabel]
|
|
2097
|
-
}));
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
// Try to get SVG icon if allowSvg is true
|
|
2101
|
-
const svgIcon = allowSvg && type ? getSvgIcon(type, svgProps) : null;
|
|
2102
|
-
|
|
2103
|
-
// If SVG icon exists and allowSvg is true, use it
|
|
2104
|
-
if (svgIcon) {
|
|
2105
|
-
const iconStyle = _extends({}, style, {
|
|
2106
|
-
transform: rotate ? "rotate(" + rotate + "deg)" : undefined
|
|
2107
|
-
}, color ? {
|
|
2108
|
-
color
|
|
2109
|
-
} : {});
|
|
2110
|
-
const iconComponent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _extends({
|
|
2111
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-wrapper'], _styles.default['cap-icon'], _styles.default[size], {
|
|
2112
|
-
[_styles.default.spin]: spin,
|
|
2113
|
-
[_styles.default.disabled]: disabled,
|
|
2114
|
-
[_styles.default['with-text-label']]: textLabel
|
|
2115
|
-
}, className),
|
|
2116
|
-
style: iconStyle,
|
|
2117
|
-
onClick: handleClick
|
|
2118
|
-
}, rest, {
|
|
2119
|
-
children: [svgIcon, textLabel]
|
|
2120
|
-
}));
|
|
2121
|
-
return withBackground ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _extends({
|
|
2122
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-background-wrapper'], _styles.default[size])
|
|
2123
|
-
}, backgroundProps, {
|
|
2124
|
-
children: iconComponent
|
|
2125
|
-
})) : iconComponent;
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
// Try to get Ant Design icon
|
|
2129
|
-
const AntIcon = type ? getAntIcon(type) : null;
|
|
2130
|
-
if (AntIcon) {
|
|
2131
|
-
const iconStyle = color ? _extends({
|
|
2132
|
-
color
|
|
2133
|
-
}, style) : style;
|
|
2134
|
-
const iconComponent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", _extends({
|
|
2135
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-wrapper'], _styles.default['cap-icon'], _styles.default[size], {
|
|
2136
|
-
[_styles.default.disabled]: disabled,
|
|
2137
|
-
[_styles.default['with-text-label']]: textLabel
|
|
2138
|
-
}, className),
|
|
2139
|
-
style: iconStyle,
|
|
2140
|
-
onClick: handleClick
|
|
2141
|
-
}, rest, {
|
|
2142
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AntIcon, {
|
|
2143
|
-
spin: spin,
|
|
2144
|
-
rotate: rotate,
|
|
2145
|
-
style: color ? {
|
|
2146
|
-
color
|
|
2147
|
-
} : undefined
|
|
2148
|
-
}), textLabel]
|
|
2149
|
-
}));
|
|
2150
|
-
return withBackground ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _extends({
|
|
2151
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-background-wrapper'], _styles.default[size])
|
|
2152
|
-
}, backgroundProps, {
|
|
2153
|
-
children: iconComponent
|
|
2154
|
-
})) : iconComponent;
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
// Fallback: render an empty icon container
|
|
2158
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _extends({
|
|
2159
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-wrapper'], _styles.default['cap-icon'], _styles.default[size], {
|
|
2160
|
-
[_styles.default.disabled]: disabled,
|
|
2161
|
-
[_styles.default['with-text-label']]: textLabel
|
|
2162
|
-
}, className),
|
|
2163
|
-
style: style,
|
|
2164
|
-
onClick: handleClick
|
|
2165
|
-
}, rest, {
|
|
2166
|
-
children: textLabel
|
|
2167
|
-
}));
|
|
2168
|
-
};
|
|
2169
|
-
|
|
2170
|
-
// Create AntIcon subcomponent for backward compatibility
|
|
2171
|
-
|
|
2172
|
-
const AntIcon = _ref2 => {
|
|
2173
|
-
let {
|
|
2174
|
-
className
|
|
2175
|
-
} = _ref2,
|
|
2176
|
-
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
2177
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("i", _extends({
|
|
2178
|
-
className: (0, _classnames.default)(_styles.default['cap-icon-ant-icon'], className),
|
|
2179
|
-
style: {
|
|
2180
|
-
display: 'inline-flex',
|
|
2181
|
-
alignItems: 'center',
|
|
2182
|
-
justifyContent: 'center'
|
|
2183
|
-
}
|
|
2184
|
-
}, rest));
|
|
2185
|
-
};
|
|
2186
|
-
|
|
2187
|
-
// Extend the component type to include the static property
|
|
2188
|
-
|
|
2189
|
-
const CapIconWithStatic = CapIcon;
|
|
2190
|
-
CapIconWithStatic.AntIcon = AntIcon;
|
|
2191
|
-
var _default = exports["default"] = CapIconWithStatic;
|
|
2192
|
-
|
|
2193
|
-
/***/ }),
|
|
2194
|
-
|
|
2195
|
-
/***/ 5636:
|
|
2196
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2197
|
-
|
|
2198
|
-
"use strict";
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
exports.__esModule = true;
|
|
2202
|
-
exports["default"] = void 0;
|
|
2203
|
-
var _CapTooltip = _interopRequireDefault(__webpack_require__(5499));
|
|
2204
|
-
exports["default"] = _CapTooltip.default;
|
|
2205
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2206
|
-
|
|
2207
|
-
/***/ }),
|
|
2208
|
-
|
|
2209
|
-
/***/ 5765:
|
|
2210
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2211
|
-
|
|
2212
|
-
"use strict";
|
|
2213
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2214
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2215
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2216
|
-
/* harmony export */ });
|
|
2217
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
2218
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2219
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
2220
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
2221
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
2222
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
2223
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
2224
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
2225
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
2226
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
2227
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1858);
|
|
2228
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
2229
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
2230
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
2231
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
var options = {};
|
|
2244
|
-
|
|
2245
|
-
;
|
|
2246
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
2247
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
2248
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
2249
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
2250
|
-
|
|
2251
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
/***/ }),
|
|
2260
|
-
|
|
2261
|
-
/***/ 6314:
|
|
2262
|
-
/***/ ((module) => {
|
|
2263
|
-
|
|
2264
|
-
"use strict";
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
/*
|
|
2268
|
-
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
2269
|
-
Author Tobias Koppers @sokra
|
|
2270
|
-
*/
|
|
2271
|
-
module.exports = function (cssWithMappingToString) {
|
|
2272
|
-
var list = [];
|
|
2273
|
-
|
|
2274
|
-
// return the list of modules as css string
|
|
2275
|
-
list.toString = function toString() {
|
|
2276
|
-
return this.map(function (item) {
|
|
2277
|
-
var content = "";
|
|
2278
|
-
var needLayer = typeof item[5] !== "undefined";
|
|
2279
|
-
if (item[4]) {
|
|
2280
|
-
content += "@supports (".concat(item[4], ") {");
|
|
2281
|
-
}
|
|
2282
|
-
if (item[2]) {
|
|
2283
|
-
content += "@media ".concat(item[2], " {");
|
|
2284
|
-
}
|
|
2285
|
-
if (needLayer) {
|
|
2286
|
-
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
|
2287
|
-
}
|
|
2288
|
-
content += cssWithMappingToString(item);
|
|
2289
|
-
if (needLayer) {
|
|
2290
|
-
content += "}";
|
|
2291
|
-
}
|
|
2292
|
-
if (item[2]) {
|
|
2293
|
-
content += "}";
|
|
2294
|
-
}
|
|
2295
|
-
if (item[4]) {
|
|
2296
|
-
content += "}";
|
|
2297
|
-
}
|
|
2298
|
-
return content;
|
|
2299
|
-
}).join("");
|
|
2300
|
-
};
|
|
2301
|
-
|
|
2302
|
-
// import a list of modules into the list
|
|
2303
|
-
list.i = function i(modules, media, dedupe, supports, layer) {
|
|
2304
|
-
if (typeof modules === "string") {
|
|
2305
|
-
modules = [[null, modules, undefined]];
|
|
2306
|
-
}
|
|
2307
|
-
var alreadyImportedModules = {};
|
|
2308
|
-
if (dedupe) {
|
|
2309
|
-
for (var k = 0; k < this.length; k++) {
|
|
2310
|
-
var id = this[k][0];
|
|
2311
|
-
if (id != null) {
|
|
2312
|
-
alreadyImportedModules[id] = true;
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
}
|
|
2316
|
-
for (var _k = 0; _k < modules.length; _k++) {
|
|
2317
|
-
var item = [].concat(modules[_k]);
|
|
2318
|
-
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
2319
|
-
continue;
|
|
2320
|
-
}
|
|
2321
|
-
if (typeof layer !== "undefined") {
|
|
2322
|
-
if (typeof item[5] === "undefined") {
|
|
2323
|
-
item[5] = layer;
|
|
2324
|
-
} else {
|
|
2325
|
-
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
2326
|
-
item[5] = layer;
|
|
2327
|
-
}
|
|
2328
|
-
}
|
|
2329
|
-
if (media) {
|
|
2330
|
-
if (!item[2]) {
|
|
2331
|
-
item[2] = media;
|
|
2332
|
-
} else {
|
|
2333
|
-
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
2334
|
-
item[2] = media;
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
if (supports) {
|
|
2338
|
-
if (!item[4]) {
|
|
2339
|
-
item[4] = "".concat(supports);
|
|
2340
|
-
} else {
|
|
2341
|
-
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
2342
|
-
item[4] = supports;
|
|
2343
|
-
}
|
|
2344
|
-
}
|
|
2345
|
-
list.push(item);
|
|
2346
|
-
}
|
|
2347
|
-
};
|
|
2348
|
-
return list;
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
/***/ }),
|
|
2352
|
-
|
|
2353
|
-
/***/ 6426:
|
|
2354
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2355
|
-
|
|
2356
|
-
"use strict";
|
|
2357
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2358
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2359
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2360
|
-
/* harmony export */ });
|
|
2361
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
2362
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2363
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
2364
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
2365
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
2366
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
2367
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
2368
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
2369
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
2370
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
2371
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6599);
|
|
2372
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
2373
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
2374
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
2375
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
var options = {};
|
|
2388
|
-
|
|
2389
|
-
;
|
|
2390
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
2391
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
2392
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
2393
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
2394
|
-
|
|
2395
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
/***/ }),
|
|
2404
|
-
|
|
2405
|
-
/***/ 6599:
|
|
2406
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2407
|
-
|
|
2408
|
-
// Imports
|
|
2409
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
2410
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
2411
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
2412
|
-
// Module
|
|
2413
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-icon-wrapper{display:inline-flex;align-items:center;justify-content:center}.blaze-ui-cap-icon-wrapper.blaze-ui-disabled{cursor:not-allowed;opacity:.5}.blaze-ui-cap-icon-wrapper.blaze-ui-xs{font-size:.857rem;width:.857rem;height:.857rem}.blaze-ui-cap-icon-wrapper.blaze-ui-s{font-size:1.143rem;width:1.143rem;height:1.143rem}.blaze-ui-cap-icon-wrapper.blaze-ui-m{font-size:1.714rem;width:1.714rem;height:1.714rem}.blaze-ui-cap-icon-wrapper.blaze-ui-l{font-size:2.286rem;width:2.286rem;height:2.286rem}.blaze-ui-cap-icon-wrapper.blaze-ui-with-text-label{display:inline-flex;align-items:center;gap:.571rem}.blaze-ui-cap-icon-background-wrapper{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background-color:#f4f5f7;width:2.571rem;height:2.571rem}.blaze-ui-cap-icon-background-wrapper.blaze-ui-xs{width:1.429rem;height:1.429rem}.blaze-ui-cap-icon-background-wrapper.blaze-ui-s{width:1.714rem;height:1.714rem}.blaze-ui-cap-icon-background-wrapper.blaze-ui-l{width:3.429rem;height:3.429rem}.blaze-ui-cap-icon{display:inline-flex;align-items:center}.blaze-ui-cap-icon .blaze-ui-anticon{display:flex;align-items:center;justify-content:center}.blaze-ui-cap-icon.blaze-ui-spin{animation:blaze-ui-rotate 2s linear infinite}@keyframes blaze-ui-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`, ""]);
|
|
2414
|
-
// Exports
|
|
2415
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2416
|
-
"cap-icon-wrapper": `blaze-ui-cap-icon-wrapper`,
|
|
2417
|
-
"disabled": `blaze-ui-disabled`,
|
|
2418
|
-
"xs": `blaze-ui-xs`,
|
|
2419
|
-
"s": `blaze-ui-s`,
|
|
2420
|
-
"m": `blaze-ui-m`,
|
|
2421
|
-
"l": `blaze-ui-l`,
|
|
2422
|
-
"with-text-label": `blaze-ui-with-text-label`,
|
|
2423
|
-
"cap-icon-background-wrapper": `blaze-ui-cap-icon-background-wrapper`,
|
|
2424
|
-
"cap-icon": `blaze-ui-cap-icon`,
|
|
2425
|
-
"anticon": `blaze-ui-anticon`,
|
|
2426
|
-
"spin": `blaze-ui-spin`,
|
|
2427
|
-
"rotate": `blaze-ui-rotate`
|
|
2428
|
-
};
|
|
2429
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
/***/ }),
|
|
2433
|
-
|
|
2434
|
-
/***/ 6942:
|
|
2435
|
-
/***/ ((module, exports) => {
|
|
2436
|
-
|
|
2437
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
2438
|
-
Copyright (c) 2018 Jed Watson.
|
|
2439
|
-
Licensed under the MIT License (MIT), see
|
|
2440
|
-
http://jedwatson.github.io/classnames
|
|
2441
|
-
*/
|
|
2442
|
-
/* global define */
|
|
2443
|
-
|
|
2444
|
-
(function () {
|
|
2445
|
-
'use strict';
|
|
2446
|
-
|
|
2447
|
-
var hasOwn = {}.hasOwnProperty;
|
|
2448
|
-
|
|
2449
|
-
function classNames () {
|
|
2450
|
-
var classes = '';
|
|
2451
|
-
|
|
2452
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2453
|
-
var arg = arguments[i];
|
|
2454
|
-
if (arg) {
|
|
2455
|
-
classes = appendClass(classes, parseValue(arg));
|
|
2456
|
-
}
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
return classes;
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
function parseValue (arg) {
|
|
2463
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
2464
|
-
return arg;
|
|
2465
|
-
}
|
|
2466
|
-
|
|
2467
|
-
if (typeof arg !== 'object') {
|
|
2468
|
-
return '';
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
if (Array.isArray(arg)) {
|
|
2472
|
-
return classNames.apply(null, arg);
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
2476
|
-
return arg.toString();
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
var classes = '';
|
|
2480
|
-
|
|
2481
|
-
for (var key in arg) {
|
|
2482
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
2483
|
-
classes = appendClass(classes, key);
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
return classes;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
function appendClass (value, newClass) {
|
|
2491
|
-
if (!newClass) {
|
|
2492
|
-
return value;
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
if (value) {
|
|
2496
|
-
return value + ' ' + newClass;
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
return value + newClass;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
if ( true && module.exports) {
|
|
2503
|
-
classNames.default = classNames;
|
|
2504
|
-
module.exports = classNames;
|
|
2505
|
-
} else if (true) {
|
|
2506
|
-
// register as 'classnames', consistent with npm package name
|
|
2507
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
2508
|
-
return classNames;
|
|
2509
|
-
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
2510
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
2511
|
-
} else // removed by dead control flow
|
|
2512
|
-
{}
|
|
2513
|
-
}());
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
/***/ }),
|
|
2517
|
-
|
|
2518
|
-
/***/ 7144:
|
|
2519
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2520
|
-
|
|
2521
|
-
"use strict";
|
|
2522
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2523
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2524
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2525
|
-
/* harmony export */ });
|
|
2526
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
2527
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2528
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
2529
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
2530
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
2531
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
2532
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
2533
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
2534
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
2535
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
2536
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2119);
|
|
2537
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
2538
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
2539
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
2540
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
var options = {};
|
|
2553
|
-
|
|
2554
|
-
;
|
|
2555
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
2556
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
2557
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
2558
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
2559
|
-
|
|
2560
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
/***/ }),
|
|
2569
|
-
|
|
2570
|
-
/***/ 7375:
|
|
2571
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2572
|
-
|
|
2573
|
-
"use strict";
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
exports.__esModule = true;
|
|
2577
|
-
exports["default"] = void 0;
|
|
2578
|
-
var _CapRow = _interopRequireDefault(__webpack_require__(3837));
|
|
2579
|
-
exports["default"] = _CapRow.default;
|
|
2580
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2581
|
-
|
|
2582
|
-
/***/ }),
|
|
2583
|
-
|
|
2584
|
-
/***/ 7579:
|
|
2585
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2586
|
-
|
|
2587
|
-
"use strict";
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
exports.__esModule = true;
|
|
2591
|
-
exports["default"] = void 0;
|
|
2592
|
-
var _antdV = __webpack_require__(4273);
|
|
2593
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
2594
|
-
var _jsxRuntime = __webpack_require__(4848);
|
|
2595
|
-
const _excluded = ["className"];
|
|
2596
|
-
/**
|
|
2597
|
-
* CapSpin - Migrated to Ant Design v5
|
|
2598
|
-
*/
|
|
2599
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2600
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2601
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
2602
|
-
const CapSpin = _ref => {
|
|
2603
|
-
let {
|
|
2604
|
-
className
|
|
2605
|
-
} = _ref,
|
|
2606
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
2607
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Spin, _extends({
|
|
2608
|
-
className: className
|
|
2609
|
-
}, rest));
|
|
2610
|
-
};
|
|
2611
|
-
var _default = exports["default"] = CapSpin;
|
|
2612
|
-
|
|
2613
|
-
/***/ }),
|
|
2614
|
-
|
|
2615
|
-
/***/ 7659:
|
|
2616
|
-
/***/ ((module) => {
|
|
2617
|
-
|
|
2618
|
-
"use strict";
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
var memo = {};
|
|
2622
|
-
|
|
2623
|
-
/* istanbul ignore next */
|
|
2624
|
-
function getTarget(target) {
|
|
2625
|
-
if (typeof memo[target] === "undefined") {
|
|
2626
|
-
var styleTarget = document.querySelector(target);
|
|
2627
|
-
|
|
2628
|
-
// Special case to return head of iframe instead of iframe itself
|
|
2629
|
-
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
2630
|
-
try {
|
|
2631
|
-
// This will throw an exception if access to iframe is blocked
|
|
2632
|
-
// due to cross-origin restrictions
|
|
2633
|
-
styleTarget = styleTarget.contentDocument.head;
|
|
2634
|
-
} catch (e) {
|
|
2635
|
-
// istanbul ignore next
|
|
2636
|
-
styleTarget = null;
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
memo[target] = styleTarget;
|
|
2640
|
-
}
|
|
2641
|
-
return memo[target];
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
/* istanbul ignore next */
|
|
2645
|
-
function insertBySelector(insert, style) {
|
|
2646
|
-
var target = getTarget(insert);
|
|
2647
|
-
if (!target) {
|
|
2648
|
-
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
2649
|
-
}
|
|
2650
|
-
target.appendChild(style);
|
|
2651
|
-
}
|
|
2652
|
-
module.exports = insertBySelector;
|
|
2653
|
-
|
|
2654
|
-
/***/ }),
|
|
2655
|
-
|
|
2656
|
-
/***/ 8052:
|
|
2657
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
2658
|
-
|
|
2659
|
-
"use strict";
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
exports.__esModule = true;
|
|
2663
|
-
exports.reorderOptionsBySelection = exports.findValueInOptions = exports.findMissingValues = exports.filterTreeData = exports.countSelectedLeaves = exports.buildTreeMaps = void 0;
|
|
2664
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2665
|
-
/**
|
|
2666
|
-
* Builds tree maps for efficient tree operations
|
|
2667
|
-
* Creates maps for leaf values, parent-child relationships, and node lookups
|
|
2668
|
-
*/
|
|
2669
|
-
const buildTreeMaps = nodes => {
|
|
2670
|
-
const result = {
|
|
2671
|
-
leafValues: [],
|
|
2672
|
-
parentChildMap: {},
|
|
2673
|
-
nodeMap: {}
|
|
2674
|
-
};
|
|
2675
|
-
if (!nodes) return result;
|
|
2676
|
-
const traverse = items => {
|
|
2677
|
-
items == null || items.forEach(item => {
|
|
2678
|
-
if (item.value !== undefined) {
|
|
2679
|
-
result.nodeMap[item.value] = item;
|
|
2680
|
-
if (item != null && item.children && item.children.length > 0) {
|
|
2681
|
-
result.parentChildMap[item.value] = item.children.map(child => child == null ? void 0 : child.value).filter(v => v !== undefined);
|
|
2682
|
-
traverse(item.children);
|
|
2683
|
-
} else {
|
|
2684
|
-
result.leafValues.push(item.value);
|
|
2685
|
-
}
|
|
2686
|
-
}
|
|
2687
|
-
});
|
|
2688
|
-
};
|
|
2689
|
-
traverse(nodes);
|
|
2690
|
-
return result;
|
|
2691
|
-
};
|
|
2692
|
-
|
|
2693
|
-
/**
|
|
2694
|
-
* Counts the number of selected leaf nodes in a tree structure
|
|
2695
|
-
* Handles parent-child relationships by expanding selected parent nodes
|
|
2696
|
-
*/
|
|
2697
|
-
exports.buildTreeMaps = buildTreeMaps;
|
|
2698
|
-
const countSelectedLeaves = (treeMaps, selectedValues) => {
|
|
2699
|
-
var _treeMaps$leafValues;
|
|
2700
|
-
if (!Array.isArray(selectedValues) || !(selectedValues != null && selectedValues.length)) return 0;
|
|
2701
|
-
const expandedSet = new Set(selectedValues);
|
|
2702
|
-
const processNode = value => {
|
|
2703
|
-
var _treeMaps$parentChild;
|
|
2704
|
-
const children = treeMaps == null || (_treeMaps$parentChild = treeMaps.parentChildMap) == null ? void 0 : _treeMaps$parentChild[value];
|
|
2705
|
-
if (!children) return;
|
|
2706
|
-
children == null || children.forEach(childValue => {
|
|
2707
|
-
expandedSet.add(childValue);
|
|
2708
|
-
processNode(childValue);
|
|
2709
|
-
});
|
|
2710
|
-
};
|
|
2711
|
-
selectedValues == null || selectedValues.forEach(processNode);
|
|
2712
|
-
return (treeMaps == null || (_treeMaps$leafValues = treeMaps.leafValues) == null ? void 0 : _treeMaps$leafValues.reduce((count, leaf) => expandedSet.has(leaf) ? count + 1 : count, 0)) || 0;
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
/**
|
|
2716
|
-
* Filters tree data based on search query
|
|
2717
|
-
* Includes nodes that match search OR are selected OR have matching children
|
|
2718
|
-
* Supports searching by label, value, or key
|
|
2719
|
-
*/
|
|
2720
|
-
exports.countSelectedLeaves = countSelectedLeaves;
|
|
2721
|
-
const filterTreeData = function (data, search, searchBasedOn, selectedValues) {
|
|
2722
|
-
if (searchBasedOn === void 0) {
|
|
2723
|
-
searchBasedOn = 'label';
|
|
2724
|
-
}
|
|
2725
|
-
if (!(data != null && data.length) || !search) return data;
|
|
2726
|
-
const searchLower = search.toLowerCase();
|
|
2727
|
-
const selectedSet = new Set(selectedValues || []);
|
|
2728
|
-
const nodeMatchesSearch = node => {
|
|
2729
|
-
var _node$value, _node$key, _ref, _node$label;
|
|
2730
|
-
const target = searchBasedOn === 'value' ? String((_node$value = node == null ? void 0 : node.value) != null ? _node$value : '') : searchBasedOn === 'key' ? String((_node$key = node == null ? void 0 : node.key) != null ? _node$key : '') : String((_ref = (_node$label = node == null ? void 0 : node.label) != null ? _node$label : node == null ? void 0 : node.title) != null ? _ref : '');
|
|
2731
|
-
return target.toLowerCase().includes(searchLower);
|
|
2732
|
-
};
|
|
2733
|
-
const isNodeSelected = node => {
|
|
2734
|
-
return node.value !== undefined && selectedSet.has(node.value);
|
|
2735
|
-
};
|
|
2736
|
-
const loop = items => items.reduce((acc, item) => {
|
|
2737
|
-
var _item$children;
|
|
2738
|
-
if (!item) return acc;
|
|
2739
|
-
const children = item != null && (_item$children = item.children) != null && _item$children.length ? loop(item.children) : [];
|
|
2740
|
-
// Include node if: matches search OR is selected OR has matching children
|
|
2741
|
-
if (nodeMatchesSearch(item) || isNodeSelected(item) || children.length) {
|
|
2742
|
-
acc.push(_extends({}, item, {
|
|
2743
|
-
children
|
|
2744
|
-
}));
|
|
2745
|
-
}
|
|
2746
|
-
return acc;
|
|
2747
|
-
}, []);
|
|
2748
|
-
return loop(data);
|
|
2749
|
-
};
|
|
2750
|
-
|
|
2751
|
-
/**
|
|
2752
|
-
* Checks if a value exists in options (recursive for tree structures)
|
|
2753
|
-
*/
|
|
2754
|
-
exports.filterTreeData = filterTreeData;
|
|
2755
|
-
const findValueInOptions = (opts, targetValue) => {
|
|
2756
|
-
for (const opt of opts) {
|
|
2757
|
-
if (opt.value === targetValue) {
|
|
2758
|
-
return true;
|
|
2759
|
-
}
|
|
2760
|
-
if (opt.children && opt.children.length > 0) {
|
|
2761
|
-
if (findValueInOptions(opt.children, targetValue)) {
|
|
2762
|
-
return true;
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
}
|
|
2766
|
-
return false;
|
|
2767
|
-
};
|
|
2768
|
-
|
|
2769
|
-
/**
|
|
2770
|
-
* Finds selected values that don't exist in the current options
|
|
2771
|
-
*/
|
|
2772
|
-
exports.findValueInOptions = findValueInOptions;
|
|
2773
|
-
const findMissingValues = (selectedValues, currentOptions) => {
|
|
2774
|
-
if (!selectedValues.length || !currentOptions.length) {
|
|
2775
|
-
return selectedValues;
|
|
2776
|
-
}
|
|
2777
|
-
return selectedValues.filter(val => !findValueInOptions(currentOptions, val));
|
|
2778
|
-
};
|
|
2779
|
-
|
|
2780
|
-
/**
|
|
2781
|
-
* Reorders options based on selection order
|
|
2782
|
-
* Selected items are moved to top in the order they were selected
|
|
2783
|
-
* For tree structures, maintains parent-child relationships
|
|
2784
|
-
* For flat lists, directly reorders items
|
|
2785
|
-
* Works for all data types: flat lists, tree structures, nested trees
|
|
2786
|
-
*/
|
|
2787
|
-
exports.findMissingValues = findMissingValues;
|
|
2788
|
-
const reorderOptionsBySelection = (opts, selectedOrder) => {
|
|
2789
|
-
if (!Array.isArray(selectedOrder) || selectedOrder.length === 0 || !(opts != null && opts.length)) {
|
|
2790
|
-
return opts;
|
|
2791
|
-
}
|
|
2792
|
-
const selectedSet = new Set(selectedOrder);
|
|
2793
|
-
const selectedItems = [];
|
|
2794
|
-
const unselectedItems = [];
|
|
2795
|
-
const processedTopLevelValues = new Set();
|
|
2796
|
-
|
|
2797
|
-
// Deep clone helper to avoid mutating original items
|
|
2798
|
-
const deepCloneItem = item => {
|
|
2799
|
-
return _extends({}, item, {
|
|
2800
|
-
children: item.children ? item.children.map(deepCloneItem) : undefined
|
|
2801
|
-
});
|
|
2802
|
-
};
|
|
2803
|
-
|
|
2804
|
-
// Find the top-level item that contains the selected value
|
|
2805
|
-
// For flat lists, returns the item itself
|
|
2806
|
-
// For tree structures, returns the top-level parent from opts
|
|
2807
|
-
const findTopLevelItem = targetValue => {
|
|
2808
|
-
// First, find which top-level item in opts contains this value
|
|
2809
|
-
for (const topLevelItem of opts) {
|
|
2810
|
-
// Check if this top-level item itself matches
|
|
2811
|
-
if (topLevelItem.value === targetValue) {
|
|
2812
|
-
return topLevelItem;
|
|
2813
|
-
}
|
|
2814
|
-
|
|
2815
|
-
// Recursively search in children
|
|
2816
|
-
const searchInChildren = items => {
|
|
2817
|
-
for (const item of items) {
|
|
2818
|
-
if (item.value === targetValue) {
|
|
2819
|
-
return true; // Found it
|
|
2820
|
-
}
|
|
2821
|
-
if (item.children && item.children.length > 0) {
|
|
2822
|
-
if (searchInChildren(item.children)) {
|
|
2823
|
-
return true;
|
|
2824
|
-
}
|
|
2825
|
-
}
|
|
2826
|
-
}
|
|
2827
|
-
return false;
|
|
2828
|
-
};
|
|
2829
|
-
|
|
2830
|
-
// If found in this top-level item's children, return the top-level item
|
|
2831
|
-
if (topLevelItem.children && topLevelItem.children.length > 0) {
|
|
2832
|
-
if (searchInChildren(topLevelItem.children)) {
|
|
2833
|
-
return topLevelItem;
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
return null;
|
|
2838
|
-
};
|
|
2839
|
-
|
|
2840
|
-
// Check if an item or any of its descendants is selected
|
|
2841
|
-
const hasSelectedDescendant = item => {
|
|
2842
|
-
if (item.value !== undefined && selectedSet.has(item.value)) {
|
|
2843
|
-
return true;
|
|
2844
|
-
}
|
|
2845
|
-
if (item.children && item.children.length > 0) {
|
|
2846
|
-
return item.children.some(child => hasSelectedDescendant(child));
|
|
2847
|
-
}
|
|
2848
|
-
return false;
|
|
2849
|
-
};
|
|
2850
|
-
|
|
2851
|
-
// Collect selected items in selection order
|
|
2852
|
-
selectedOrder.forEach(selectedVal => {
|
|
2853
|
-
const topLevelItem = findTopLevelItem(selectedVal);
|
|
2854
|
-
if (topLevelItem && topLevelItem.value !== undefined && !processedTopLevelValues.has(topLevelItem.value)) {
|
|
2855
|
-
// Clone the item to avoid mutating the original
|
|
2856
|
-
const clonedItem = deepCloneItem(topLevelItem);
|
|
2857
|
-
selectedItems.push(clonedItem);
|
|
2858
|
-
processedTopLevelValues.add(topLevelItem.value);
|
|
2859
|
-
}
|
|
2860
|
-
});
|
|
2861
|
-
|
|
2862
|
-
// Collect unselected items maintaining original order
|
|
2863
|
-
// For tree structures, only include top-level items that don't have any selected descendants
|
|
2864
|
-
opts.forEach(item => {
|
|
2865
|
-
if (item.value === undefined) {
|
|
2866
|
-
// Item without value, include as-is
|
|
2867
|
-
unselectedItems.push(deepCloneItem(item));
|
|
2868
|
-
} else if (!processedTopLevelValues.has(item.value)) {
|
|
2869
|
-
// Check if this item or any of its descendants is selected
|
|
2870
|
-
if (!hasSelectedDescendant(item)) {
|
|
2871
|
-
unselectedItems.push(deepCloneItem(item));
|
|
2872
|
-
}
|
|
2873
|
-
}
|
|
2874
|
-
});
|
|
2875
|
-
|
|
2876
|
-
// Return selected items first (in selection order), then unselected items
|
|
2877
|
-
return [...selectedItems, ...unselectedItems];
|
|
2878
|
-
};
|
|
2879
|
-
exports.reorderOptionsBySelection = reorderOptionsBySelection;
|
|
2880
|
-
|
|
2881
|
-
/***/ }),
|
|
2882
|
-
|
|
2883
|
-
/***/ 8244:
|
|
2884
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2885
|
-
|
|
2886
|
-
"use strict";
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
exports.__esModule = true;
|
|
2890
|
-
exports["default"] = void 0;
|
|
2891
|
-
var _CapIcon = _interopRequireDefault(__webpack_require__(5595));
|
|
2892
|
-
exports["default"] = _CapIcon.default;
|
|
2893
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
2894
|
-
|
|
2895
|
-
/***/ }),
|
|
2896
|
-
|
|
2897
|
-
/***/ 8263:
|
|
2898
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2899
|
-
|
|
2900
|
-
"use strict";
|
|
2901
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2902
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2903
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2904
|
-
/* harmony export */ });
|
|
2905
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5072);
|
|
2906
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
2907
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4284);
|
|
2908
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
2909
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7659);
|
|
2910
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
2911
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5056);
|
|
2912
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
2913
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(540);
|
|
2914
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
2915
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9604);
|
|
2916
|
-
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
2917
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
2918
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
2919
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
var options = {};
|
|
2932
|
-
|
|
2933
|
-
;
|
|
2934
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
2935
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
2936
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
2937
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
2938
|
-
|
|
2939
|
-
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
/***/ }),
|
|
2948
|
-
|
|
2949
|
-
/***/ 9206:
|
|
2950
|
-
/***/ ((module) => {
|
|
2951
|
-
|
|
2952
|
-
"use strict";
|
|
2953
|
-
module.exports = require("react");
|
|
2954
|
-
|
|
2955
|
-
/***/ }),
|
|
2956
|
-
|
|
2957
|
-
/***/ 9604:
|
|
2958
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2959
|
-
|
|
2960
|
-
// Imports
|
|
2961
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(1601);
|
|
2962
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
2963
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
2964
|
-
// Module
|
|
2965
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.blaze-ui-cap-unified-select-header-wrapper{display:flex;align-items:center}.blaze-ui-cap-unified-select-header-wrapper.blaze-ui-disabled{opacity:.5;cursor:not-allowed}.blaze-ui-cap-unified-select-header-wrapper .blaze-ui-cap-unified-select-header-label{font-family:"Roboto",sans-serif;font-weight:500;font-size:1rem;line-height:1.429rem;letter-spacing:0}.blaze-ui-cap-unified-select-header-byline-text{font-family:"Roboto",sans-serif;font-weight:400;font-size:.857rem;letter-spacing:0;color:#97a0af}.blaze-ui-cap-unified-select-container{text-align:justify;min-width:13.786rem}.blaze-ui-cap-unified-select-container.blaze-ui-disabled{cursor:not-allowed}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-more-text{cursor:pointer;color:#091e42;margin-right:.286rem;position:relative}.blaze-ui-cap-unified-select-container.ant-select-disabled .blaze-ui-cap-unified-select-more-text{color:unset !important;cursor:not-allowed}.blaze-ui-cap-unified-select-container.ant-select-focused .ant-select-selector{border:.071rem solid #091e42 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-suffix-icon{color:#7a869a}.blaze-ui-cap-unified-select-container .blaze-ui-cap-tooltip-with-info-icon{margin-top:.143rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly{pointer-events:none}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select.blaze-ui-cap-unified-tree-select-readonly .blaze-ui-cap-unified-select-more-text{pointer-events:auto;color:unset !important}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select .ant-select-tree-treenode{padding-left:.286rem}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-selector{background-color:#fff;border-color:#ebecf0 !important;cursor:default}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly .ant-select-arrow{pointer-events:auto;color:#b3bac5}.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:hover .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:active .ant-select-selector,.blaze-ui-cap-unified-select-container.blaze-ui-cap-unified-tree-select-readonly.ant-select-outlined:focus .ant-select-selector{border-color:#ebecf0 !important}.blaze-ui-cap-unified-select-container .blaze-ui-cap-unified-select-status{color:#ea213a}.blaze-ui-cap-unified-select-container .ant-select-outlined:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer):hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-container .ant-select-selector{background-color:#fff !important;border:.071rem solid #7a869a !important;border-radius:.286rem !important}.blaze-ui-cap-unified-select-container .ant-select-selector .ant-select-selection-placeholder{pointer-events:unset;color:#97a0af;display:flex;align-items:center}.blaze-ui-cap-unified-select-container .ant-select-prefix{font-size:1rem;font-weight:400;color:unset !important;line-height:1.429rem}.blaze-ui-cap-unified-select-container .ant-select-disabled .ant-select-prefix{color:unset !important}.blaze-ui-cap-unified-select-container .ant-input-affix-wrapper .ant-input-prefix{left:.857rem}.blaze-ui-cap-unified-select-container .ant-select-selector{border-color:#7a869a !important;box-shadow:none !important;outline:0}.blaze-ui-cap-unified-select-container .ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover{background-color:#47af46}.blaze-ui-cap-unified-select-container .ant-select-dropdown{margin-top:-0.571rem !important;border-radius:.286rem;background-color:#fff;box-shadow:0 .286rem .571rem -0.143rem rgba(9,30,66,.15),0 0 .071rem 0 rgba(9,30,66,.1);max-height:25.714rem;overflow:visible}.blaze-ui-cap-unified-select-container .ant-select-outlined.ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap .ant-select-selection-item,.blaze-ui-cap-unified-select-container .ant-select-selection-wrap .ant-select-selection-item{background:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-container .ant-select-multiple .ant-select-selection-wrap{align-self:center}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container{border-bottom:.071rem solid #ebecf0 !important;line-height:2.857rem !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-search-container .blaze-ui-cap-unified-select-search-icon{color:#b3bac5}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container{padding:.643rem 1.071rem;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-select-all-container .blaze-ui-cap-unified-select-select-all-checkbox{display:contents !important}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container{cursor:pointer;display:flex;align-items:center;border-bottom:.071rem solid #ebecf0;height:2.857rem;padding-left:1.143rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-icon{color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-upload-container .blaze-ui-cap-unified-select-upload-label{margin-left:.857rem;color:#2466ea}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container{display:flex;align-items:center;height:3.429rem;padding:.5rem;border-top:.071rem solid #ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group{display:flex;padding-left:.571rem;align-items:center;width:100%}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button{background-color:#47af46;height:2.286rem;width:6.714rem;color:#fff}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:hover{background-color:#1f9a1d}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-confirm-button:disabled{background-color:#a1d8a0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-cancel-button{border:rgba(0,0,0,0);box-shadow:none;width:5.714rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-confirm-container .blaze-ui-cap-unified-select-confirm-button-group .blaze-ui-cap-unified-select-selected-count{display:flex;margin-left:auto;font-size:.857rem;font-weight:400;line-height:1.143rem;color:#5e6c84}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container{display:flex;justify-content:center;align-items:center;height:2.857rem;border-top:.071rem solid #ebecf0;cursor:pointer;color:#091e42}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container:hover{background-color:#ebecf0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-tree-clear-container .blaze-ui-cap-unified-select-tree-clear-label{font-size:1rem;font-weight:400}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container{cursor:pointer;display:flex;align-items:center;margin-left:auto;padding-right:1.143rem;gap:.857rem;flex-wrap:nowrap}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container:hover{opacity:.8}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container .blaze-ui-cap-unified-select-footer-download-icon{color:#2466ea;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-footer-download-container .blaze-ui-cap-unified-select-footer-download-label{color:#2466ea;font-family:Roboto,sans-serif;font-weight:400;font-style:normal;font-size:.857rem;line-height:1.143rem;letter-spacing:0;white-space:nowrap;display:inline-flex;align-items:center}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result{display:flex;flex-direction:column;align-items:center;justify-content:center;height:14.286rem;color:#97a0af;font-size:1rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-no-result .blaze-ui-cap-unified-select-no-result-text{font-weight:500}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:14.286rem;width:100%;gap:.571rem}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-more{display:flex;align-items:center;justify-content:center;padding:.857rem;border-top:.071rem solid #ebecf0;color:#97a0af}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-menu-wrapper{position:relative;width:100%}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(255,255,255,.8);z-index:10;gap:.571rem;color:#97a0af}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix{display:flex;justify-content:start;align-items:center;width:100%;height:100%;line-height:1.5;vertical-align:middle;flex:1}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-label{display:flex;align-items:center;flex-shrink:1;min-width:0}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-end{display:flex;align-items:center;gap:.571rem;flex-shrink:0;margin-left:auto}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-unified-select-option-suffix{display:flex;align-items:center;padding:0 .571rem;max-height:1.429rem;white-space:nowrap}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon{margin-top:.357rem;color:#42526e}.blaze-ui-cap-unified-select-popup .blaze-ui-cap-unified-select-option-with-suffix .blaze-ui-cap-tooltip-with-info .blaze-ui-cap-tooltip-with-info-icon .blaze-ui-cap-icon{color:#42526e}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu{margin-top:0 !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu .ant-select-dropdown-menu-item{padding:.571rem 1.714rem !important;height:unset !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-dropdown .ant-select-dropdown-menu-item-disabled{color:rgba(0,0,0,.25) !important;cursor:not-allowed !important;line-height:1.428rem !important;font-size:1rem !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{background-color:rgba(0,0,0,0);height:100%;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background-color:rgba(0,0,0,0) !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode{height:2.857rem;margin-bottom:0;display:flex;align-items:center;width:100%}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode:hover{background-color:#fffbe6}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-selected{background-color:#f4f5f7 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled{cursor:not-allowed !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-unified-select-option-label{color:#b3bac5}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-disabled .blaze-ui-cap-icon{color:#b3bac5 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode.ant-select-tree-treenode-selected{background-color:#f4f5f7}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-treenode-leaf .ant-select-tree-switcher-noop{display:none}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox{display:flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox .ant-select-tree-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem;display:flex;align-items:center;justify-content:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:hover{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper{border-radius:0;padding-left:.214rem;width:100%;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-title{width:100%;display:flex}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-indent{margin-left:.857rem;display:flex;align-items:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher{display:flex;align-items:center;justify-content:center}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher:not(.ant-select-tree-switcher-noop):hover:before{background-color:rgba(0,0,0,0)}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-switcher .ant-select-tree-switcher-icon{font-size:.857rem;margin-top:1.286rem}.blaze-ui-cap-unified-select-popup .ant-select-tree .ant-select-tree-list-holder-inner{width:fit-content !important;min-width:100%}.blaze-ui-cap-unified-select-popup .ant-tree-select:hover .ant-select-selector{border-color:#7a869a}.blaze-ui-cap-unified-select-popup .ant-tree-select-focused .ant-select-selector,.blaze-ui-cap-unified-select-popup .ant-tree-select-open .ant-select-selector{border-color:#7a869a;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-checkbox-inner{height:1.286rem;width:1.286rem;border:.143rem solid #b3bac5;border-radius:.286rem}.blaze-ui-cap-unified-select-popup .ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{background-color:#47af46;border:.143rem solid #47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner{background-color:#47af46 !important;border-color:#47af46 !important}.blaze-ui-cap-unified-select-popup .ant-checkbox-indeterminate .ant-checkbox-inner::after{content:"";position:absolute;top:50%;left:50%;width:.714rem;height:.143rem;background-color:#fff;transform:translate(-50%, -50%);border-radius:.071rem}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper{padding-left:.571rem;border:none;box-shadow:none;border-radius:0;border-bottom:.071rem solid rgba(0,0,0,0);transition:border-color .2s ease}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:hover{border-bottom:.071rem solid #7a869a !important;box-shadow:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper:focus-within{border-bottom:.071rem solid #091e42 !important;box-shadow:none;outline:none}.blaze-ui-cap-unified-select-popup .ant-input-affix-wrapper .ant-input{border:none !important;box-shadow:none !important}`, ""]);
|
|
2966
|
-
// Exports
|
|
2967
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
2968
|
-
"cap-unified-select-header-wrapper": `blaze-ui-cap-unified-select-header-wrapper`,
|
|
2969
|
-
"disabled": `blaze-ui-disabled`,
|
|
2970
|
-
"cap-unified-select-header-label": `blaze-ui-cap-unified-select-header-label`,
|
|
2971
|
-
"cap-unified-select-header-byline-text": `blaze-ui-cap-unified-select-header-byline-text`,
|
|
2972
|
-
"cap-unified-select-container": `blaze-ui-cap-unified-select-container`,
|
|
2973
|
-
"cap-unified-select-more-text": `blaze-ui-cap-unified-select-more-text`,
|
|
2974
|
-
"cap-unified-select-suffix-icon": `blaze-ui-cap-unified-select-suffix-icon`,
|
|
2975
|
-
"cap-tooltip-with-info-icon": `blaze-ui-cap-tooltip-with-info-icon`,
|
|
2976
|
-
"cap-unified-tree-select": `blaze-ui-cap-unified-tree-select`,
|
|
2977
|
-
"cap-unified-tree-select-readonly": `blaze-ui-cap-unified-tree-select-readonly`,
|
|
2978
|
-
"cap-unified-select-status": `blaze-ui-cap-unified-select-status`,
|
|
2979
|
-
"cap-unified-select-popup": `blaze-ui-cap-unified-select-popup`,
|
|
2980
|
-
"cap-unified-select-search-container": `blaze-ui-cap-unified-select-search-container`,
|
|
2981
|
-
"cap-unified-select-search-icon": `blaze-ui-cap-unified-select-search-icon`,
|
|
2982
|
-
"cap-unified-select-select-all-container": `blaze-ui-cap-unified-select-select-all-container`,
|
|
2983
|
-
"cap-unified-select-select-all-checkbox": `blaze-ui-cap-unified-select-select-all-checkbox`,
|
|
2984
|
-
"cap-unified-select-upload-container": `blaze-ui-cap-unified-select-upload-container`,
|
|
2985
|
-
"cap-unified-select-upload-icon": `blaze-ui-cap-unified-select-upload-icon`,
|
|
2986
|
-
"cap-unified-select-upload-label": `blaze-ui-cap-unified-select-upload-label`,
|
|
2987
|
-
"cap-unified-select-confirm-container": `blaze-ui-cap-unified-select-confirm-container`,
|
|
2988
|
-
"cap-unified-select-confirm-button-group": `blaze-ui-cap-unified-select-confirm-button-group`,
|
|
2989
|
-
"cap-unified-select-confirm-button": `blaze-ui-cap-unified-select-confirm-button`,
|
|
2990
|
-
"cap-unified-select-cancel-button": `blaze-ui-cap-unified-select-cancel-button`,
|
|
2991
|
-
"cap-unified-select-selected-count": `blaze-ui-cap-unified-select-selected-count`,
|
|
2992
|
-
"cap-unified-select-tree-clear-container": `blaze-ui-cap-unified-select-tree-clear-container`,
|
|
2993
|
-
"cap-unified-select-tree-clear-label": `blaze-ui-cap-unified-select-tree-clear-label`,
|
|
2994
|
-
"cap-unified-select-footer-download-container": `blaze-ui-cap-unified-select-footer-download-container`,
|
|
2995
|
-
"cap-unified-select-footer-download-icon": `blaze-ui-cap-unified-select-footer-download-icon`,
|
|
2996
|
-
"cap-unified-select-footer-download-label": `blaze-ui-cap-unified-select-footer-download-label`,
|
|
2997
|
-
"cap-unified-select-no-result": `blaze-ui-cap-unified-select-no-result`,
|
|
2998
|
-
"cap-unified-select-no-result-text": `blaze-ui-cap-unified-select-no-result-text`,
|
|
2999
|
-
"cap-unified-select-loading-container": `blaze-ui-cap-unified-select-loading-container`,
|
|
3000
|
-
"cap-unified-select-loading-more": `blaze-ui-cap-unified-select-loading-more`,
|
|
3001
|
-
"cap-unified-select-menu-wrapper": `blaze-ui-cap-unified-select-menu-wrapper`,
|
|
3002
|
-
"cap-unified-select-loading-overlay": `blaze-ui-cap-unified-select-loading-overlay`,
|
|
3003
|
-
"cap-unified-select-option-with-suffix": `blaze-ui-cap-unified-select-option-with-suffix`,
|
|
3004
|
-
"cap-unified-select-option-label": `blaze-ui-cap-unified-select-option-label`,
|
|
3005
|
-
"cap-unified-select-option-end": `blaze-ui-cap-unified-select-option-end`,
|
|
3006
|
-
"cap-unified-select-option-suffix": `blaze-ui-cap-unified-select-option-suffix`,
|
|
3007
|
-
"cap-tooltip-with-info": `blaze-ui-cap-tooltip-with-info`,
|
|
3008
|
-
"cap-icon": `blaze-ui-cap-icon`
|
|
3009
|
-
};
|
|
3010
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
/***/ }),
|
|
3014
|
-
|
|
3015
|
-
/***/ 9788:
|
|
3016
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
3017
|
-
|
|
3018
|
-
"use strict";
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
exports.__esModule = true;
|
|
3022
|
-
exports.TIMEOUTS = exports.SELECT_TYPES = exports.DEFAULTS = void 0;
|
|
3023
|
-
const SELECT_TYPES = exports.SELECT_TYPES = {
|
|
3024
|
-
SELECT: 'select',
|
|
3025
|
-
MULTI_SELECT: 'multiSelect',
|
|
3026
|
-
TREE_SELECT: 'treeSelect',
|
|
3027
|
-
MULTI_TREE_SELECT: 'multiTreeSelect'
|
|
3028
|
-
};
|
|
3029
|
-
const TIMEOUTS = exports.TIMEOUTS = {
|
|
3030
|
-
DEFAULT_SEARCH_DEBOUNCE: 300,
|
|
3031
|
-
SEARCH_STATE_UPDATE_DELAY: 100,
|
|
3032
|
-
SEARCH_CLEARED_TIMEOUT: 200,
|
|
3033
|
-
SEARCH_CLEARED_BUFFER: 300,
|
|
3034
|
-
SEARCH_REGULAR_BUFFER: 500,
|
|
3035
|
-
STATIC_SEARCH_DELAY: 150,
|
|
3036
|
-
RESET_DATA_TIMEOUT: 1000,
|
|
3037
|
-
RESET_DATA_MIN_TIME: 300,
|
|
3038
|
-
RESET_DATA_MAX_TIME: 2000,
|
|
3039
|
-
SCROLL_LOADING_TIMEOUT: 10000,
|
|
3040
|
-
SCROLL_CONTAINER_DELAY: 100
|
|
3041
|
-
};
|
|
3042
|
-
const DEFAULTS = exports.DEFAULTS = {
|
|
3043
|
-
PLACEHOLDER: 'Select an option',
|
|
3044
|
-
UPLOAD_LABEL: 'Upload',
|
|
3045
|
-
CLEAR_TEXT: 'Clear',
|
|
3046
|
-
NO_RESULT_TEXT: 'No results found',
|
|
3047
|
-
NO_RESULT_ICON: 'warning',
|
|
3048
|
-
VIRTUAL_ROW_HEIGHT: 32,
|
|
3049
|
-
LIST_HEIGHT: 256,
|
|
3050
|
-
SEARCH_PLACEHOLDER: 'Search'
|
|
3051
|
-
};
|
|
3052
|
-
|
|
3053
|
-
/***/ })
|
|
3054
|
-
|
|
3055
|
-
/******/ });
|
|
3056
|
-
/************************************************************************/
|
|
3057
|
-
/******/ // The module cache
|
|
3058
|
-
/******/ var __webpack_module_cache__ = {};
|
|
3059
|
-
/******/
|
|
3060
|
-
/******/ // The require function
|
|
3061
|
-
/******/ function __webpack_require__(moduleId) {
|
|
3062
|
-
/******/ // Check if module is in cache
|
|
3063
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
3064
|
-
/******/ if (cachedModule !== undefined) {
|
|
3065
|
-
/******/ return cachedModule.exports;
|
|
3066
|
-
/******/ }
|
|
3067
|
-
/******/ // Create a new module (and put it into the cache)
|
|
3068
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
3069
|
-
/******/ id: moduleId,
|
|
3070
|
-
/******/ // no module.loaded needed
|
|
3071
|
-
/******/ exports: {}
|
|
3072
|
-
/******/ };
|
|
3073
|
-
/******/
|
|
3074
|
-
/******/ // Execute the module function
|
|
3075
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
3076
|
-
/******/
|
|
3077
|
-
/******/ // Return the exports of the module
|
|
3078
|
-
/******/ return module.exports;
|
|
3079
|
-
/******/ }
|
|
3080
|
-
/******/
|
|
3081
|
-
/************************************************************************/
|
|
3082
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
3083
|
-
/******/ (() => {
|
|
3084
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
3085
|
-
/******/ __webpack_require__.n = (module) => {
|
|
3086
|
-
/******/ var getter = module && module.__esModule ?
|
|
3087
|
-
/******/ () => (module['default']) :
|
|
3088
|
-
/******/ () => (module);
|
|
3089
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
3090
|
-
/******/ return getter;
|
|
3091
|
-
/******/ };
|
|
3092
|
-
/******/ })();
|
|
3093
|
-
/******/
|
|
3094
|
-
/******/ /* webpack/runtime/define property getters */
|
|
3095
|
-
/******/ (() => {
|
|
3096
|
-
/******/ // define getter functions for harmony exports
|
|
3097
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
3098
|
-
/******/ for(var key in definition) {
|
|
3099
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
3100
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
3101
|
-
/******/ }
|
|
3102
|
-
/******/ }
|
|
3103
|
-
/******/ };
|
|
3104
|
-
/******/ })();
|
|
3105
|
-
/******/
|
|
3106
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
3107
|
-
/******/ (() => {
|
|
3108
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
3109
|
-
/******/ })();
|
|
3110
|
-
/******/
|
|
3111
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
3112
|
-
/******/ (() => {
|
|
3113
|
-
/******/ // define __esModule on exports
|
|
3114
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
3115
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
3116
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3117
|
-
/******/ }
|
|
3118
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
3119
|
-
/******/ };
|
|
3120
|
-
/******/ })();
|
|
3121
|
-
/******/
|
|
3122
|
-
/******/ /* webpack/runtime/nonce */
|
|
3123
|
-
/******/ (() => {
|
|
3124
|
-
/******/ __webpack_require__.nc = undefined;
|
|
3125
|
-
/******/ })();
|
|
3126
|
-
/******/
|
|
3127
|
-
/************************************************************************/
|
|
3128
|
-
var __webpack_exports__ = {};
|
|
3129
|
-
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
3130
|
-
(() => {
|
|
3131
|
-
"use strict";
|
|
3132
|
-
var exports = __webpack_exports__;
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
exports.__esModule = true;
|
|
3136
|
-
exports["default"] = void 0;
|
|
3137
|
-
var _CapUnifiedSelect = _interopRequireDefault(__webpack_require__(5353));
|
|
3138
|
-
exports["default"] = _CapUnifiedSelect.default;
|
|
3139
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
3140
|
-
})();
|
|
3141
|
-
|
|
3142
|
-
module.exports = __webpack_exports__;
|
|
3143
|
-
/******/ })()
|
|
3144
|
-
;
|
|
3145
|
-
//# sourceMappingURL=index.js.map
|