@capillarytech/blaze-ui 1.0.3-alpha.16 → 1.0.3-alpha.3

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