funda-ui 1.0.272

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 (246) hide show
  1. package/BackToTop/index.css +34 -0
  2. package/BackToTop/index.d.ts +11 -0
  3. package/BackToTop/index.js +458 -0
  4. package/CascadingSelect/index.css +159 -0
  5. package/CascadingSelect/index.d.ts +56 -0
  6. package/CascadingSelect/index.js +958 -0
  7. package/CascadingSelectE2E/index.css +159 -0
  8. package/CascadingSelectE2E/index.d.ts +60 -0
  9. package/CascadingSelectE2E/index.js +1126 -0
  10. package/Checkbox/index.d.ts +30 -0
  11. package/Checkbox/index.js +226 -0
  12. package/ColorPicker/index.css +38 -0
  13. package/ColorPicker/index.d.ts +27 -0
  14. package/ColorPicker/index.js +246 -0
  15. package/DigitalClock/index.d.ts +7 -0
  16. package/DigitalClock/index.js +208 -0
  17. package/DropdownMenu/index.css +127 -0
  18. package/DropdownMenu/index.d.ts +37 -0
  19. package/DropdownMenu/index.js +237 -0
  20. package/DynamicFields/index.d.ts +26 -0
  21. package/DynamicFields/index.js +412 -0
  22. package/File/index.d.ts +36 -0
  23. package/File/index.js +473 -0
  24. package/Input/index.d.ts +42 -0
  25. package/Input/index.js +286 -0
  26. package/LiveSearch/index.d.ts +37 -0
  27. package/LiveSearch/index.js +1195 -0
  28. package/ModalDialog/index.d.ts +60 -0
  29. package/ModalDialog/index.js +725 -0
  30. package/ModeSwitch/index.d.ts +17 -0
  31. package/ModeSwitch/index.js +202 -0
  32. package/MultiFuncSelect/index.css +178 -0
  33. package/MultiFuncSelect/index.d.ts +67 -0
  34. package/MultiFuncSelect/index.js +1826 -0
  35. package/MultilevelDropdownMenu/index.css +35 -0
  36. package/MultilevelDropdownMenu/index.d.ts +25 -0
  37. package/MultilevelDropdownMenu/index.js +464 -0
  38. package/Pagination/index.d.ts +49 -0
  39. package/Pagination/index.js +341 -0
  40. package/README.md +108 -0
  41. package/Radio/index.d.ts +31 -0
  42. package/Radio/index.js +246 -0
  43. package/RangeSlider/index.css +149 -0
  44. package/RangeSlider/index.d.ts +21 -0
  45. package/RangeSlider/index.js +730 -0
  46. package/ScrollReveal/index.css +23 -0
  47. package/ScrollReveal/index.d.ts +21 -0
  48. package/ScrollReveal/index.js +216 -0
  49. package/Scrollbar/index.css +168 -0
  50. package/Scrollbar/index.d.ts +15 -0
  51. package/Scrollbar/index.js +605 -0
  52. package/SearchBar/index.d.ts +32 -0
  53. package/SearchBar/index.js +246 -0
  54. package/Select/index.d.ts +34 -0
  55. package/Select/index.js +331 -0
  56. package/ShowMoreLess/index.css +23 -0
  57. package/ShowMoreLess/index.d.ts +30 -0
  58. package/ShowMoreLess/index.js +202 -0
  59. package/Switch/index.d.ts +29 -0
  60. package/Switch/index.js +211 -0
  61. package/Table/index.css +533 -0
  62. package/Table/index.d.ts +25 -0
  63. package/Table/index.js +2113 -0
  64. package/Tabs/index.d.ts +3 -0
  65. package/Tabs/index.js +323 -0
  66. package/TagInput/index.css +90 -0
  67. package/TagInput/index.d.ts +28 -0
  68. package/TagInput/index.js +370 -0
  69. package/Textarea/index.d.ts +30 -0
  70. package/Textarea/index.js +242 -0
  71. package/Toast/index.css +95 -0
  72. package/Toast/index.d.ts +35 -0
  73. package/Toast/index.js +340 -0
  74. package/Tooltip/index.css +240 -0
  75. package/Tooltip/index.d.ts +19 -0
  76. package/Tooltip/index.js +200 -0
  77. package/Tree/index.css +225 -0
  78. package/Tree/index.d.ts +37 -0
  79. package/Tree/index.js +1406 -0
  80. package/all.d.ts +33 -0
  81. package/all.js +35 -0
  82. package/lib/cjs/BackToTop/index.d.ts +11 -0
  83. package/lib/cjs/BackToTop/index.js +458 -0
  84. package/lib/cjs/CascadingSelect/index.d.ts +56 -0
  85. package/lib/cjs/CascadingSelect/index.js +958 -0
  86. package/lib/cjs/CascadingSelectE2E/index.d.ts +60 -0
  87. package/lib/cjs/CascadingSelectE2E/index.js +1126 -0
  88. package/lib/cjs/Checkbox/index.d.ts +30 -0
  89. package/lib/cjs/Checkbox/index.js +226 -0
  90. package/lib/cjs/ColorPicker/index.d.ts +27 -0
  91. package/lib/cjs/ColorPicker/index.js +246 -0
  92. package/lib/cjs/DigitalClock/index.d.ts +7 -0
  93. package/lib/cjs/DigitalClock/index.js +208 -0
  94. package/lib/cjs/DropdownMenu/index.d.ts +37 -0
  95. package/lib/cjs/DropdownMenu/index.js +237 -0
  96. package/lib/cjs/DynamicFields/index.d.ts +26 -0
  97. package/lib/cjs/DynamicFields/index.js +412 -0
  98. package/lib/cjs/File/index.d.ts +36 -0
  99. package/lib/cjs/File/index.js +473 -0
  100. package/lib/cjs/Input/index.d.ts +42 -0
  101. package/lib/cjs/Input/index.js +286 -0
  102. package/lib/cjs/LiveSearch/index.d.ts +37 -0
  103. package/lib/cjs/LiveSearch/index.js +1195 -0
  104. package/lib/cjs/ModalDialog/index.d.ts +60 -0
  105. package/lib/cjs/ModalDialog/index.js +725 -0
  106. package/lib/cjs/ModeSwitch/index.d.ts +17 -0
  107. package/lib/cjs/ModeSwitch/index.js +202 -0
  108. package/lib/cjs/MultiFuncSelect/index.d.ts +67 -0
  109. package/lib/cjs/MultiFuncSelect/index.js +1826 -0
  110. package/lib/cjs/MultilevelDropdownMenu/index.d.ts +25 -0
  111. package/lib/cjs/MultilevelDropdownMenu/index.js +464 -0
  112. package/lib/cjs/Pagination/index.d.ts +49 -0
  113. package/lib/cjs/Pagination/index.js +341 -0
  114. package/lib/cjs/Radio/index.d.ts +31 -0
  115. package/lib/cjs/Radio/index.js +246 -0
  116. package/lib/cjs/RangeSlider/index.d.ts +21 -0
  117. package/lib/cjs/RangeSlider/index.js +730 -0
  118. package/lib/cjs/ScrollReveal/index.d.ts +21 -0
  119. package/lib/cjs/ScrollReveal/index.js +216 -0
  120. package/lib/cjs/Scrollbar/index.d.ts +15 -0
  121. package/lib/cjs/Scrollbar/index.js +605 -0
  122. package/lib/cjs/SearchBar/index.d.ts +32 -0
  123. package/lib/cjs/SearchBar/index.js +246 -0
  124. package/lib/cjs/Select/index.d.ts +34 -0
  125. package/lib/cjs/Select/index.js +331 -0
  126. package/lib/cjs/ShowMoreLess/index.d.ts +30 -0
  127. package/lib/cjs/ShowMoreLess/index.js +202 -0
  128. package/lib/cjs/Switch/index.d.ts +29 -0
  129. package/lib/cjs/Switch/index.js +211 -0
  130. package/lib/cjs/Table/index.d.ts +25 -0
  131. package/lib/cjs/Table/index.js +2113 -0
  132. package/lib/cjs/Tabs/index.d.ts +3 -0
  133. package/lib/cjs/Tabs/index.js +323 -0
  134. package/lib/cjs/TagInput/index.d.ts +28 -0
  135. package/lib/cjs/TagInput/index.js +370 -0
  136. package/lib/cjs/Textarea/index.d.ts +30 -0
  137. package/lib/cjs/Textarea/index.js +242 -0
  138. package/lib/cjs/Toast/index.d.ts +35 -0
  139. package/lib/cjs/Toast/index.js +340 -0
  140. package/lib/cjs/Tooltip/index.d.ts +19 -0
  141. package/lib/cjs/Tooltip/index.js +200 -0
  142. package/lib/cjs/Tree/index.d.ts +37 -0
  143. package/lib/cjs/Tree/index.js +1406 -0
  144. package/lib/cjs/index.d.ts +33 -0
  145. package/lib/cjs/index.js +35 -0
  146. package/lib/css/BackToTop/index.css +34 -0
  147. package/lib/css/CascadingSelect/index.css +159 -0
  148. package/lib/css/CascadingSelectE2E/index.css +159 -0
  149. package/lib/css/ColorPicker/index.css +38 -0
  150. package/lib/css/DropdownMenu/index.css +127 -0
  151. package/lib/css/MultiFuncSelect/index.css +178 -0
  152. package/lib/css/MultilevelDropdownMenu/index.css +35 -0
  153. package/lib/css/RangeSlider/index.css +149 -0
  154. package/lib/css/ScrollReveal/index.css +23 -0
  155. package/lib/css/Scrollbar/index.css +168 -0
  156. package/lib/css/ShowMoreLess/index.css +23 -0
  157. package/lib/css/Table/index.css +533 -0
  158. package/lib/css/TagInput/index.css +90 -0
  159. package/lib/css/Toast/index.css +95 -0
  160. package/lib/css/Tooltip/index.css +240 -0
  161. package/lib/css/Tree/index.css +225 -0
  162. package/lib/esm/BackToTop/index.scss +47 -0
  163. package/lib/esm/BackToTop/index.tsx +182 -0
  164. package/lib/esm/BackToTop/utils/easing.js +200 -0
  165. package/lib/esm/BackToTop/utils/performance.js +52 -0
  166. package/lib/esm/CascadingSelect/Group.tsx +39 -0
  167. package/lib/esm/CascadingSelect/index.scss +214 -0
  168. package/lib/esm/CascadingSelect/index.tsx +922 -0
  169. package/lib/esm/CascadingSelect/utils/performance.js +52 -0
  170. package/lib/esm/CascadingSelectE2E/Group.tsx +39 -0
  171. package/lib/esm/CascadingSelectE2E/index.scss +214 -0
  172. package/lib/esm/CascadingSelectE2E/index.tsx +1091 -0
  173. package/lib/esm/CascadingSelectE2E/utils/performance.js +52 -0
  174. package/lib/esm/Checkbox/index.tsx +160 -0
  175. package/lib/esm/ColorPicker/index.scss +48 -0
  176. package/lib/esm/ColorPicker/index.tsx +187 -0
  177. package/lib/esm/DigitalClock/index.tsx +72 -0
  178. package/lib/esm/DigitalClock/utils/useInterval.js +43 -0
  179. package/lib/esm/DropdownMenu/Option.tsx +27 -0
  180. package/lib/esm/DropdownMenu/index.scss +180 -0
  181. package/lib/esm/DropdownMenu/index.tsx +148 -0
  182. package/lib/esm/DynamicFields/index.tsx +386 -0
  183. package/lib/esm/File/index.tsx +302 -0
  184. package/lib/esm/Input/index.tsx +233 -0
  185. package/lib/esm/LiveSearch/index.tsx +582 -0
  186. package/lib/esm/LiveSearch/utils/performance.js +52 -0
  187. package/lib/esm/LiveSearch/utils/useThrottle.js +36 -0
  188. package/lib/esm/ModalDialog/index.tsx +479 -0
  189. package/lib/esm/ModalDialog/plugins/BSL/bodyScrollLock.es6.js +262 -0
  190. package/lib/esm/ModalDialog/plugins/BSL/index.ts +2 -0
  191. package/lib/esm/ModeSwitch/index.tsx +82 -0
  192. package/lib/esm/MultiFuncSelect/index.scss +269 -0
  193. package/lib/esm/MultiFuncSelect/index.tsx +1597 -0
  194. package/lib/esm/MultiFuncSelect/utils/performance.js +52 -0
  195. package/lib/esm/MultiFuncSelect/utils/tree.js +103 -0
  196. package/lib/esm/MultiFuncSelect/utils/useThrottle.js +36 -0
  197. package/lib/esm/MultilevelDropdownMenu/MenuList.tsx +230 -0
  198. package/lib/esm/MultilevelDropdownMenu/index.scss +75 -0
  199. package/lib/esm/MultilevelDropdownMenu/index.tsx +71 -0
  200. package/lib/esm/MultilevelDropdownMenu/utils/dom.js +81 -0
  201. package/lib/esm/Pagination/index.tsx +230 -0
  202. package/lib/esm/Pagination/pagination-navigators.tsx +60 -0
  203. package/lib/esm/Radio/index.tsx +201 -0
  204. package/lib/esm/RangeSlider/index.scss +184 -0
  205. package/lib/esm/RangeSlider/index.tsx +223 -0
  206. package/lib/esm/ScrollReveal/index.scss +27 -0
  207. package/lib/esm/ScrollReveal/index.tsx +146 -0
  208. package/lib/esm/Scrollbar/index.scss +217 -0
  209. package/lib/esm/Scrollbar/index.tsx +497 -0
  210. package/lib/esm/Scrollbar/utils/performance.js +52 -0
  211. package/lib/esm/SearchBar/index.tsx +181 -0
  212. package/lib/esm/Select/index.tsx +276 -0
  213. package/lib/esm/ShowMoreLess/index.scss +27 -0
  214. package/lib/esm/ShowMoreLess/index.tsx +144 -0
  215. package/lib/esm/Switch/index.tsx +143 -0
  216. package/lib/esm/Table/TableColgroup.tsx +29 -0
  217. package/lib/esm/Table/TableField.tsx +40 -0
  218. package/lib/esm/Table/TableFieldRow.tsx +212 -0
  219. package/lib/esm/Table/TableHeaders.tsx +146 -0
  220. package/lib/esm/Table/TableRow.tsx +127 -0
  221. package/lib/esm/Table/TableSummaries.tsx +36 -0
  222. package/lib/esm/Table/index.scss +364 -0
  223. package/lib/esm/Table/index.tsx +576 -0
  224. package/lib/esm/Table/table-utils.ts +65 -0
  225. package/lib/esm/Table/utils/dom.js +81 -0
  226. package/lib/esm/Table/utils/performance.js +52 -0
  227. package/lib/esm/Tabs/TabList.tsx +42 -0
  228. package/lib/esm/Tabs/TabPanel.tsx +34 -0
  229. package/lib/esm/Tabs/Tabs.tsx +232 -0
  230. package/lib/esm/Tabs/index.tsx +3 -0
  231. package/lib/esm/TagInput/index.scss +125 -0
  232. package/lib/esm/TagInput/index.tsx +314 -0
  233. package/lib/esm/Textarea/index.tsx +178 -0
  234. package/lib/esm/Toast/Item.tsx +75 -0
  235. package/lib/esm/Toast/index.scss +120 -0
  236. package/lib/esm/Toast/index.tsx +249 -0
  237. package/lib/esm/Tooltip/index.scss +327 -0
  238. package/lib/esm/Tooltip/index.tsx +142 -0
  239. package/lib/esm/Tree/TreeList.tsx +503 -0
  240. package/lib/esm/Tree/index.scss +375 -0
  241. package/lib/esm/Tree/index.tsx +301 -0
  242. package/lib/esm/Tree/init-height.tsx +27 -0
  243. package/lib/esm/Tree/utils/convert-tree.js +29 -0
  244. package/lib/esm/Tree/utils/dom.js +81 -0
  245. package/lib/esm/index.js +31 -0
  246. package/package.json +40 -0
@@ -0,0 +1,958 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("react"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["react"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["RPB"] = factory(require("react"));
8
+ else
9
+ root["RPB"] = factory(root["React"]);
10
+ })(this, (__WEBPACK_EXTERNAL_MODULE__787__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 342:
15
+ /***/ ((module) => {
16
+
17
+ /*
18
+ * Debounce
19
+ *
20
+ * @param {Function} fn - A function to be executed within the time limit.
21
+ * @param {Number} limit - Waiting time.
22
+ * @return {Function} - Returns a new function.
23
+ */
24
+ function debounce(fn) {
25
+ var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
26
+ var timer;
27
+ return function () {
28
+ //Every time this returned function is called, the timer is cleared to ensure that fn is not executed
29
+ clearTimeout(timer);
30
+
31
+ // When the returned function is called for the last time (that is the user stops a continuous operation)
32
+ // Execute fn after another delay milliseconds
33
+ timer = setTimeout(function () {
34
+ fn.apply(this, arguments);
35
+ }, limit);
36
+ };
37
+ }
38
+
39
+ /*
40
+ * Throttle
41
+ *
42
+ * @param {Function} fn - A function to be executed within the time limit.
43
+ * @param {Number} limit - Waiting time.
44
+ * @return {Function} - Returns a new function.
45
+ */
46
+ function throttle(fn) {
47
+ var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
48
+ var waiting = false;
49
+ return function () {
50
+ if (!waiting) {
51
+ fn.apply(this, arguments);
52
+ waiting = true;
53
+ setTimeout(function () {
54
+ waiting = false;
55
+ }, limit);
56
+ }
57
+ };
58
+ }
59
+ module.exports = {
60
+ debounce: debounce,
61
+ throttle: throttle
62
+ };
63
+
64
+ /***/ }),
65
+
66
+ /***/ 787:
67
+ /***/ ((module) => {
68
+
69
+ "use strict";
70
+ module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
71
+
72
+ /***/ })
73
+
74
+ /******/ });
75
+ /************************************************************************/
76
+ /******/ // The module cache
77
+ /******/ var __webpack_module_cache__ = {};
78
+ /******/
79
+ /******/ // The require function
80
+ /******/ function __webpack_require__(moduleId) {
81
+ /******/ // Check if module is in cache
82
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
83
+ /******/ if (cachedModule !== undefined) {
84
+ /******/ return cachedModule.exports;
85
+ /******/ }
86
+ /******/ // Create a new module (and put it into the cache)
87
+ /******/ var module = __webpack_module_cache__[moduleId] = {
88
+ /******/ // no module.id needed
89
+ /******/ // no module.loaded needed
90
+ /******/ exports: {}
91
+ /******/ };
92
+ /******/
93
+ /******/ // Execute the module function
94
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
95
+ /******/
96
+ /******/ // Return the exports of the module
97
+ /******/ return module.exports;
98
+ /******/ }
99
+ /******/
100
+ /************************************************************************/
101
+ /******/ /* webpack/runtime/compat get default export */
102
+ /******/ (() => {
103
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
104
+ /******/ __webpack_require__.n = (module) => {
105
+ /******/ var getter = module && module.__esModule ?
106
+ /******/ () => (module['default']) :
107
+ /******/ () => (module);
108
+ /******/ __webpack_require__.d(getter, { a: getter });
109
+ /******/ return getter;
110
+ /******/ };
111
+ /******/ })();
112
+ /******/
113
+ /******/ /* webpack/runtime/define property getters */
114
+ /******/ (() => {
115
+ /******/ // define getter functions for harmony exports
116
+ /******/ __webpack_require__.d = (exports, definition) => {
117
+ /******/ for(var key in definition) {
118
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
119
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
120
+ /******/ }
121
+ /******/ }
122
+ /******/ };
123
+ /******/ })();
124
+ /******/
125
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
126
+ /******/ (() => {
127
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
128
+ /******/ })();
129
+ /******/
130
+ /******/ /* webpack/runtime/make namespace object */
131
+ /******/ (() => {
132
+ /******/ // define __esModule on exports
133
+ /******/ __webpack_require__.r = (exports) => {
134
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
135
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
136
+ /******/ }
137
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
138
+ /******/ };
139
+ /******/ })();
140
+ /******/
141
+ /************************************************************************/
142
+ var __webpack_exports__ = {};
143
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
144
+ (() => {
145
+ "use strict";
146
+ // ESM COMPAT FLAG
147
+ __webpack_require__.r(__webpack_exports__);
148
+
149
+ // EXPORTS
150
+ __webpack_require__.d(__webpack_exports__, {
151
+ "default": () => (/* binding */ src)
152
+ });
153
+
154
+ // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
155
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
156
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
157
+ // EXTERNAL MODULE: ./src/utils/performance.js
158
+ var performance = __webpack_require__(342);
159
+ ;// CONCATENATED MODULE: ./src/Group.tsx
160
+
161
+ function Group(props) {
162
+ var level = props.level,
163
+ columnTitle = props.columnTitle,
164
+ data = props.data,
165
+ selectEv = props.selectEv;
166
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, data.map(function (item, index) {
167
+ if (item.id.toString().indexOf('$EMPTY_ID_') < 0) {
168
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
169
+ key: index,
170
+ "data-index": index,
171
+ "data-value": item.id,
172
+ className: "cascading-select__opt ".concat(item.current ? 'active' : ''),
173
+ onClick: function onClick(e) {
174
+ return selectEv(e, item, index);
175
+ },
176
+ dangerouslySetInnerHTML: {
177
+ __html: item.name
178
+ }
179
+ });
180
+ } else {
181
+ return columnTitle[level] === '' ? null : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("h3", {
182
+ key: index,
183
+ "data-index": index,
184
+ "data-value": item.id,
185
+ onClick: function onClick(e) {
186
+ return selectEv(e, item, index);
187
+ },
188
+ className: "cascading-select__opt-header ".concat(item.current ? 'active' : ''),
189
+ dangerouslySetInnerHTML: {
190
+ __html: columnTitle[level]
191
+ }
192
+ });
193
+ }
194
+ }));
195
+ }
196
+ ;// CONCATENATED MODULE: ./src/index.tsx
197
+ var _excluded = ["wrapperClassName", "controlClassName", "disabled", "required", "value", "label", "placeholder", "name", "id", "columnTitle", "depth", "loader", "displayResult", "displayResultArrow", "controlArrow", "valueType", "showCloseBtn", "style", "tabIndex", "triggerClassName", "triggerContent", "fetchFuncAsync", "fetchFuncMethod", "fetchFuncMethodParams", "fetchCallback", "onFetch", "onChange", "onBlur", "onFocus"];
198
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
199
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
200
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
201
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
202
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
203
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
204
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
205
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
206
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
207
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
208
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
209
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
210
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
211
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
212
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
213
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
214
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
215
+
216
+
217
+
218
+ var CascadingSelect = function CascadingSelect(props) {
219
+ var wrapperClassName = props.wrapperClassName,
220
+ controlClassName = props.controlClassName,
221
+ disabled = props.disabled,
222
+ required = props.required,
223
+ value = props.value,
224
+ label = props.label,
225
+ placeholder = props.placeholder,
226
+ name = props.name,
227
+ id = props.id,
228
+ columnTitle = props.columnTitle,
229
+ depth = props.depth,
230
+ loader = props.loader,
231
+ displayResult = props.displayResult,
232
+ displayResultArrow = props.displayResultArrow,
233
+ controlArrow = props.controlArrow,
234
+ valueType = props.valueType,
235
+ showCloseBtn = props.showCloseBtn,
236
+ style = props.style,
237
+ tabIndex = props.tabIndex,
238
+ triggerClassName = props.triggerClassName,
239
+ triggerContent = props.triggerContent,
240
+ fetchFuncAsync = props.fetchFuncAsync,
241
+ fetchFuncMethod = props.fetchFuncMethod,
242
+ fetchFuncMethodParams = props.fetchFuncMethodParams,
243
+ fetchCallback = props.fetchCallback,
244
+ onFetch = props.onFetch,
245
+ onChange = props.onChange,
246
+ onBlur = props.onBlur,
247
+ onFocus = props.onFocus,
248
+ attributes = _objectWithoutProperties(props, _excluded);
249
+ var uniqueID = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useId)();
250
+ var idRes = id || uniqueID;
251
+ var rootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
252
+ var valRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
253
+ var listRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
254
+ var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
255
+ _useState2 = _slicedToArray(_useState, 2),
256
+ dictionaryData = _useState2[0],
257
+ setDictionaryData = _useState2[1];
258
+ var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true),
259
+ _useState4 = _slicedToArray(_useState3, 2),
260
+ loading = _useState4[0],
261
+ setLoading = _useState4[1];
262
+ var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
263
+ _useState6 = _slicedToArray(_useState5, 2),
264
+ columnTitleData = _useState6[0],
265
+ setColumnTitleData = _useState6[1];
266
+ var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
267
+ _useState8 = _slicedToArray(_useState7, 2),
268
+ hasErr = _useState8[0],
269
+ setHasErr = _useState8[1];
270
+ var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(value || ''),
271
+ _useState10 = _slicedToArray(_useState9, 2),
272
+ changedVal = _useState10[0],
273
+ setChangedVal = _useState10[1];
274
+ var windowScrollUpdate = (0,performance.debounce)(handleScrollEvent, 500);
275
+
276
+ //for variable
277
+ var _useState11 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
278
+ _useState12 = _slicedToArray(_useState11, 2),
279
+ data = _useState12[0],
280
+ setData = _useState12[1];
281
+ var _useState13 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
282
+ labels: [],
283
+ values: []
284
+ }),
285
+ _useState14 = _slicedToArray(_useState13, 2),
286
+ selectedData = _useState14[0],
287
+ setSelectedData = _useState14[1];
288
+ var _useState15 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
289
+ _useState16 = _slicedToArray(_useState15, 2),
290
+ isShow = _useState16[0],
291
+ setIsShow = _useState16[1];
292
+
293
+ /**
294
+ * Check if an element is in the viewport
295
+ * @param {HTMLElement} elem
296
+ * @returns {boolean}
297
+ */
298
+ function isInViewport(elem) {
299
+ var bounding = elem.getBoundingClientRect();
300
+ return bounding.top >= 0 && bounding.left >= 0 && bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) && bounding.right <= (window.innerWidth || document.documentElement.clientWidth);
301
+ }
302
+ function handleScrollEvent() {
303
+ getPlacement(listRef.current, true);
304
+ }
305
+
306
+ //
307
+ function getPlacement(el) {
308
+ var restorePos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
309
+ if (el === null) return;
310
+ var PLACEMENT_TOP = 'top-0';
311
+ var PLACEMENT_BOTTOMEND = 'bottom-0';
312
+ var PLACEMENT_RIGHT = 'end-0';
313
+ var PLACEMENT_LEFT = 'start-0';
314
+
315
+ //restore position
316
+ if (restorePos) {
317
+ if (isInViewport(el)) {
318
+ el.classList.remove(PLACEMENT_BOTTOMEND);
319
+ el.style.removeProperty('bottom');
320
+ }
321
+ return;
322
+ }
323
+
324
+ // Adjust position
325
+ if (!isInViewport(el)) {
326
+ el.classList.add(PLACEMENT_BOTTOMEND);
327
+ el.style.setProperty('bottom', -1 + 'px', "important");
328
+ }
329
+ }
330
+ function fetchData(_x2) {
331
+ return _fetchData.apply(this, arguments);
332
+ } //
333
+ function _fetchData() {
334
+ _fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
335
+ var response, _ORGIN_DATA, _EMPTY_SUPPORTED_DATA;
336
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
337
+ while (1) switch (_context.prev = _context.next) {
338
+ case 0:
339
+ if (!(_typeof(fetchFuncAsync) === 'object')) {
340
+ _context.next = 17;
341
+ break;
342
+ }
343
+ //
344
+ setLoading(true);
345
+ _context.next = 4;
346
+ return fetchFuncAsync["".concat(fetchFuncMethod)].apply(fetchFuncAsync, _toConsumableArray(params.split(',')));
347
+ case 4:
348
+ response = _context.sent;
349
+ _ORGIN_DATA = response.data; // loading
350
+ setLoading(false);
351
+
352
+ // reset data structure
353
+ if (typeof fetchCallback === 'function') {
354
+ _ORGIN_DATA = fetchCallback(_ORGIN_DATA);
355
+ }
356
+
357
+ // Determine whether the data structure matches
358
+ if (_ORGIN_DATA.length > 0 && typeof _ORGIN_DATA[0].id === 'undefined') {
359
+ console.warn('The data structure does not match, please refer to the example in the component documentation.');
360
+ setHasErr(true);
361
+ _ORGIN_DATA = [];
362
+ }
363
+
364
+ // STEP 1: ===========
365
+ // column titles
366
+ fillColumnTitle(_ORGIN_DATA);
367
+
368
+ // STEP 2: ===========
369
+ // dictionary data (orginal)
370
+ setDictionaryData(_ORGIN_DATA);
371
+
372
+ // STEP 3: ===========
373
+ // Add an empty item to each list to support empty item selection
374
+ _EMPTY_SUPPORTED_DATA = JSON.parse(JSON.stringify(_ORGIN_DATA));
375
+ addEmptyOpt(_EMPTY_SUPPORTED_DATA, 0);
376
+
377
+ // STEP 4: ===========
378
+ // Turn the data of each group into an array
379
+ setData([_EMPTY_SUPPORTED_DATA]);
380
+ return _context.abrupt("return", [_ORGIN_DATA, _EMPTY_SUPPORTED_DATA]);
381
+ case 17:
382
+ return _context.abrupt("return", []);
383
+ case 18:
384
+ case "end":
385
+ return _context.stop();
386
+ }
387
+ }, _callee);
388
+ }));
389
+ return _fetchData.apply(this, arguments);
390
+ }
391
+ function handleFocus(event) {
392
+ rootRef.current.classList.add('focus');
393
+
394
+ //
395
+ setIsShow(true);
396
+
397
+ //
398
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
399
+ }
400
+ function handleBlur(event) {
401
+ //----
402
+ //remove focus style
403
+ rootRef.current.classList.remove('focus');
404
+
405
+ //
406
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
407
+ }
408
+
409
+ /**
410
+ * If clicked on outside of element
411
+ */
412
+ function handleClickOutside(event) {
413
+ // svg element
414
+ if (_typeof(event.target.className) === 'object') return;
415
+ if (event.target.className != '' && event.target.className.indexOf('cascading-select__wrapper') < 0 && event.target.className.indexOf('form-control') < 0 && event.target.className.indexOf('cascading-select__trigger') < 0 && event.target.className.indexOf('cascading-select__items') < 0 && event.target.className.indexOf('cascading-select__opt') < 0) {
416
+ setIsShow(false);
417
+ }
418
+ }
419
+ function handleDisplayOptions(event) {
420
+ event.preventDefault();
421
+ setIsShow(true);
422
+
423
+ // window position
424
+ setTimeout(function () {
425
+ getPlacement(listRef.current);
426
+ }, 0);
427
+ }
428
+ function handleClickItem(e, resValue, index, level) {
429
+ // update value
430
+ //////////////////////////////////////////
431
+ var inputVal = updateValue(dictionaryData, resValue.id, level);
432
+
433
+ // callback
434
+ //////////////////////////////////////////
435
+ if (typeof onChange === 'function') {
436
+ onChange(valRef.current, resValue, index, level, inputVal);
437
+ }
438
+
439
+ // update data
440
+ //////////////////////////////////////////
441
+ var newData = data; // such as: [Array(6), Array(3)]
442
+
443
+ // All the elements from start(array.length - start) to the end of the array will be deleted.
444
+ newData.splice(level + 1);
445
+
446
+ // active status
447
+ if (resValue.children) {
448
+ var childList = resValue.children;
449
+ markAllItems(childList);
450
+ newData[level + 1] = childList;
451
+ }
452
+ markCurrent(newData[level], index);
453
+
454
+ //
455
+ setData(newData);
456
+
457
+ // close modal
458
+ //////////////////////////////////////////
459
+ if (typeof resValue.children === 'undefined' && resValue.id.toString().indexOf('$EMPTY_ID_') < 0) {
460
+ setIsShow(false);
461
+ }
462
+ }
463
+
464
+ /**
465
+ * Active the selected item
466
+ * @param arr
467
+ * @param index
468
+ * @returns
469
+ */
470
+ function markCurrent(arr, index) {
471
+ // click an item
472
+ //////////////////////////////////////////
473
+ for (var i = 0; i < arr.length; i++) {
474
+ if (i === index) {
475
+ arr[i].current = true;
476
+ } else {
477
+ arr[i].current = false;
478
+ }
479
+ }
480
+ }
481
+
482
+ /**
483
+ * Deactivate all items
484
+ * @param arr
485
+ * @returns
486
+ */
487
+ function markAllItems(arr) {
488
+ for (var i = 0; i < arr.length; i++) {
489
+ arr[i].current = false;
490
+ if (arr[i].children) markAllItems(arr[i].children);
491
+ }
492
+ }
493
+ function updateValue(arr, targetVal) {
494
+ var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
495
+ var inputEl = valRef.current;
496
+ var _valueData, _labelData;
497
+ if (targetVal.toString().indexOf('$EMPTY_ID_') >= 0) {
498
+ // If clearing the current column
499
+ //////////////////////////////////////////
500
+ _valueData = selectedData.values;
501
+ _labelData = selectedData.labels;
502
+
503
+ // update result to input
504
+ _valueData.splice(level);
505
+ _labelData.splice(level);
506
+
507
+ //
508
+ setSelectedData({
509
+ labels: _labelData,
510
+ values: _valueData
511
+ });
512
+ } else {
513
+ // click an item
514
+ //////////////////////////////////////////
515
+ //search JSON key that contains specific string
516
+ var _labels = queryResultOfJSON(arr, targetVal, 'value');
517
+ var _values = queryResultOfJSON(arr, targetVal, 'key');
518
+
519
+ // update result to input
520
+ _valueData = _values ? _values.map(function (item) {
521
+ return item;
522
+ }) : [];
523
+ _labelData = _labels ? _labels.map(function (item) {
524
+ return item;
525
+ }) : [];
526
+
527
+ //
528
+ setSelectedData({
529
+ labels: _labelData,
530
+ values: _valueData
531
+ });
532
+ }
533
+
534
+ // update selected data
535
+ //////////////////////////////////////////
536
+ var inputVal_0 = _valueData.join(',');
537
+ var inputVal_1 = _labelData.join(',');
538
+ if (valueType === 'value') {
539
+ if (inputEl !== null) setChangedVal(inputVal_0);
540
+ } else {
541
+ if (inputEl !== null) setChangedVal(inputVal_1);
542
+ }
543
+ return {
544
+ 0: inputVal_0,
545
+ 1: inputVal_1
546
+ };
547
+ }
548
+ function initDefaultValue(defaultValue) {
549
+ // change the value to trigger component rendering
550
+ if (typeof defaultValue === 'undefined' || defaultValue === '') {
551
+ setSelectedData({
552
+ labels: [],
553
+ values: []
554
+ });
555
+ setDictionaryData([]);
556
+ setData([]);
557
+ setChangedVal('');
558
+ } else {
559
+ setChangedVal(defaultValue);
560
+ }
561
+
562
+ //
563
+ var _params = fetchFuncMethodParams || [];
564
+ fetchData(_params.join(',')).then(function (response) {
565
+ var _data = response[1];
566
+ if (defaultValue) {
567
+ var rowQueryAttr = valueType === 'value' ? 'id' : 'name';
568
+ var targetVal = defaultValue.split(',');
569
+ //
570
+ var _allColumnsData = [];
571
+ var _allLables = [];
572
+
573
+ // loop over each column
574
+ var _loop = function _loop(col) {
575
+ if (col === 0) {
576
+ // STEP 1: ===========
577
+ //active item from current column
578
+ //////////////////////////////////////////
579
+ var newData = JSON.parse(JSON.stringify(_data));
580
+ var activedIndex = _data.findIndex(function (item) {
581
+ return item[rowQueryAttr].toString() === targetVal[col].toString();
582
+ });
583
+ markAllItems(newData);
584
+ markCurrent(newData, activedIndex);
585
+
586
+ //
587
+ if (activedIndex !== -1) {
588
+ _allLables.push(newData[activedIndex].name);
589
+ }
590
+ _allColumnsData.push(newData);
591
+ }
592
+ if (col > 0) {
593
+ var _findNode = searchObject(_data, function (v) {
594
+ return v != null && v != undefined && v[rowQueryAttr] == targetVal[col - 1];
595
+ });
596
+ var childList = _findNode[0].children;
597
+
598
+ // STEP 1: ===========
599
+ //active item from current column
600
+ //////////////////////////////////////////
601
+ var _newData = JSON.parse(JSON.stringify(childList));
602
+ var _activedIndex = _newData.findIndex(function (item) {
603
+ return item[rowQueryAttr].toString() === targetVal[col].toString();
604
+ });
605
+ markAllItems(_newData);
606
+ markCurrent(_newData, _activedIndex);
607
+
608
+ //
609
+ if (_activedIndex !== -1) {
610
+ _allLables.push(_newData[_activedIndex].name);
611
+ }
612
+ _allColumnsData.push(_newData);
613
+ }
614
+ };
615
+ for (var col = 0; col < targetVal.length; col++) {
616
+ _loop(col);
617
+ }
618
+
619
+ // STEP 2: ===========
620
+ //update data
621
+ //////////////////////////////////////////
622
+ setData(_allColumnsData);
623
+
624
+ // STEP 3: ===========
625
+ //Set a default value
626
+ //////////////////////////////////////////
627
+ setSelectedData({
628
+ labels: _allLables
629
+ });
630
+
631
+ // STEP 4: ===========
632
+ // callback
633
+ //////////////////////////////////////////
634
+ onFetch === null || onFetch === void 0 ? void 0 : onFetch(_allColumnsData);
635
+ } else {
636
+ // STEP 4: ===========
637
+ // callback
638
+ //////////////////////////////////////////
639
+ onFetch === null || onFetch === void 0 ? void 0 : onFetch(_data);
640
+ }
641
+ });
642
+ }
643
+ function fillColumnTitle(obj) {
644
+ var _Array;
645
+ var dataDepth = getDepth(obj);
646
+ var oldColumnTitleData = columnTitle ? columnTitle : [];
647
+ var newColumnTitleData = (_Array = new Array(dataDepth)) === null || _Array === void 0 ? void 0 : _Array.fill('');
648
+ oldColumnTitleData.forEach(function (item, index) {
649
+ newColumnTitleData[index] = item;
650
+ });
651
+
652
+ //
653
+ if (oldColumnTitleData.length > dataDepth) {
654
+ newColumnTitleData.splice(dataDepth, oldColumnTitleData.length - dataDepth);
655
+ }
656
+ setColumnTitleData(newColumnTitleData);
657
+ }
658
+ function getDepth(obj) {
659
+ var depth = 0;
660
+ obj.forEach(function (item) {
661
+ if (item.children) {
662
+ item.children.forEach(function (d) {
663
+ var tmpDepth = getDepth(item.children);
664
+ if (tmpDepth > depth) {
665
+ depth = tmpDepth;
666
+ }
667
+ });
668
+ }
669
+ });
670
+ return 1 + depth;
671
+ }
672
+ function addEmptyOpt(obj, index) {
673
+ index++;
674
+ obj.unshift({
675
+ id: "$EMPTY_ID_" + index,
676
+ name: ""
677
+ });
678
+ obj.forEach(function (item, depth) {
679
+ if (item.children) {
680
+ addEmptyOpt(item.children, index * (depth + 1));
681
+ }
682
+ });
683
+ }
684
+ function searchObject(object, matchCallback) {
685
+ var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
686
+ var searched = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
687
+ if (searched.indexOf(object) !== -1 && object === Object(object)) {
688
+ return;
689
+ }
690
+ searched.push(object);
691
+ if (matchCallback(object)) {
692
+ result.push(object);
693
+ }
694
+ try {
695
+ if (object === Object(object)) {
696
+ for (var property in object) {
697
+ if (property.indexOf("$") !== 0) {
698
+ searchObject(object[property], matchCallback, result, searched);
699
+ }
700
+ }
701
+ }
702
+ } catch (e) {
703
+ throw e;
704
+ }
705
+ return result;
706
+ }
707
+ function queryResultOfJSON(data, targetVal, returnType) {
708
+ var callbackValueNested = [];
709
+ var lastFirstLevelName = '';
710
+ var loop = true;
711
+ var resDepth = 0;
712
+ var rowQueryAttr = 'id';
713
+ var getIndexOf = function getIndexOf(arr, val) {
714
+ for (var i = 0; i < arr.length; i++) {
715
+ if (arr[i][rowQueryAttr].toString() === val.toString()) return i;
716
+ }
717
+ return -1;
718
+ };
719
+ var searchJsonStr = function searchJsonStr(list, depth) {
720
+ // `depth` is very important, it is used to accurately judge the final result
721
+ if (typeof depth === 'undefined') {
722
+ depth = 0;
723
+ } else {
724
+ depth++;
725
+ }
726
+ for (var i = 0; i < list.length; i++) {
727
+ var row = list[i];
728
+ var callbackValue = returnType === 'key' ? row.id.toString() : row.name.toString();
729
+ if (loop) {
730
+ // get first-level item
731
+ if (getIndexOf(data, row[rowQueryAttr]) !== -1) {
732
+ callbackValueNested.push(callbackValue);
733
+ lastFirstLevelName = callbackValue;
734
+ }
735
+
736
+ // get child-level item
737
+ if (row.children) {
738
+ callbackValueNested.push(callbackValue);
739
+ }
740
+ }
741
+
742
+ //check the value
743
+ if (row[rowQueryAttr].toString() === targetVal.toString()) {
744
+ callbackValueNested.push(callbackValue);
745
+ loop = false;
746
+ resDepth = depth;
747
+ break;
748
+ }
749
+
750
+ // Note: Recursion must be placed here
751
+ if (loop) {
752
+ if (row.children) {
753
+ searchJsonStr(row.children, depth);
754
+ }
755
+ }
756
+ }
757
+ };
758
+ searchJsonStr(data);
759
+
760
+ // (1) Remove duplicate values
761
+ //------------------------------------------
762
+ callbackValueNested = callbackValueNested.filter(function (item, index, arr) {
763
+ return arr.indexOf(item, 0) === index;
764
+ });
765
+
766
+ // (2) Delete needless first-level
767
+ //------------------------------------------
768
+ var resAll = callbackValueNested.slice(callbackValueNested.indexOf(lastFirstLevelName), callbackValueNested.length);
769
+
770
+ // (3) Returns result
771
+ //------------------------------------------
772
+ if (resAll.length > 1) {
773
+ // Get first-level item
774
+ resAll.splice(1);
775
+
776
+ // Get child-level item
777
+ var resChild = callbackValueNested.slice(-resDepth); // Get the last elements in reverse
778
+
779
+ // Combine
780
+ resAll = resAll.concat(resChild);
781
+ }
782
+ return resAll;
783
+ }
784
+ function displayInfo() {
785
+ return selectedData.labels ? selectedData.labels.map(function (item, i, arr) {
786
+ if (arr.length - 1 === i) {
787
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
788
+ key: i
789
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
790
+ dangerouslySetInnerHTML: {
791
+ __html: item
792
+ }
793
+ }));
794
+ } else {
795
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
796
+ key: i
797
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
798
+ dangerouslySetInnerHTML: {
799
+ __html: item
800
+ }
801
+ }), arrowGenerator());
802
+ }
803
+ }) : '';
804
+ }
805
+ function arrowGenerator() {
806
+ return displayResultArrow ? displayResultArrow : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
807
+ viewBox: "0 0 22 22",
808
+ width: "8px"
809
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
810
+ d: "m345.44 248.29l-194.29 194.28c-12.359 12.365-32.397 12.365-44.75 0-12.354-12.354-12.354-32.391 0-44.744l171.91-171.91-171.91-171.9c-12.354-12.359-12.354-32.394 0-44.748 12.354-12.359 32.391-12.359 44.75 0l194.29 194.28c6.177 6.18 9.262 14.271 9.262 22.366 0 8.099-3.091 16.196-9.267 22.373",
811
+ transform: "matrix(.03541-.00013.00013.03541 2.98 3.02)",
812
+ fill: "#a5a5a5"
813
+ }));
814
+ }
815
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
816
+ // Initialize default value (request parameters for each level)
817
+ //--------------
818
+ initDefaultValue(value);
819
+
820
+ // If you use the dynamic form assignment (such as document.getElementById(xxx).value),
821
+ // you need to judge the value of the input obtained by using the macrotask "setInterval()"
822
+ var timer = null;
823
+ var initTimes = 0;
824
+ var hasValue = false;
825
+ timer = setInterval(function () {
826
+ if (initTimes > 5 || hasValue) {
827
+ clearInterval(timer);
828
+ } else {
829
+ if (valRef.current !== null && valRef.current.value !== '' && (typeof value === 'undefined' || value === '')) {
830
+ initDefaultValue(valRef.current.value);
831
+ hasValue = true;
832
+ }
833
+ initTimes++;
834
+ }
835
+ }, 500);
836
+
837
+ //
838
+ //--------------
839
+ document.removeEventListener('pointerdown', handleClickOutside);
840
+ document.addEventListener('pointerdown', handleClickOutside);
841
+
842
+ // Add function to the element that should be used as the scrollable area.
843
+ //--------------
844
+ window.removeEventListener('scroll', windowScrollUpdate);
845
+ window.removeEventListener('touchmove', windowScrollUpdate);
846
+ window.addEventListener('scroll', windowScrollUpdate);
847
+ window.addEventListener('touchmove', windowScrollUpdate);
848
+ windowScrollUpdate();
849
+ return function () {
850
+ document.removeEventListener('pointerdown', handleClickOutside);
851
+ window.removeEventListener('scroll', windowScrollUpdate);
852
+ window.removeEventListener('touchmove', windowScrollUpdate);
853
+
854
+ //
855
+ clearInterval(timer);
856
+ };
857
+ }, [value]);
858
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
859
+ className: wrapperClassName || wrapperClassName === '' ? "cascading-select__wrapper ".concat(wrapperClassName) : "cascading-select__wrapper mb-3 position-relative",
860
+ ref: rootRef
861
+ }, label ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", {
862
+ htmlFor: idRes,
863
+ className: "form-label"
864
+ }, label)) : null, triggerContent ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
865
+ className: triggerClassName ? "cascading-select__trigger ".concat(triggerClassName) : "cascading-select__trigger d-inline w-auto",
866
+ onClick: handleDisplayOptions
867
+ }, triggerContent)) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
868
+ className: "cascading-select",
869
+ style: {
870
+ zIndex: depth ? depth : 100
871
+ }
872
+ }, isShow && !hasErr ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
873
+ ref: listRef,
874
+ className: "cascading-select__items shadow"
875
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", null, showCloseBtn ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("a", {
876
+ href: "#",
877
+ tabIndex: -1,
878
+ onClick: function onClick(e) {
879
+ e.preventDefault();
880
+ setIsShow(false);
881
+ },
882
+ className: "cascading-select__close position-absolute top-0 end-0 mt-0 mx-1"
883
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
884
+ width: "10px",
885
+ height: "10px",
886
+ viewBox: "0 0 1024 1024"
887
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
888
+ fill: "#000",
889
+ d: "M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"
890
+ }))) : null, data.map(function (item, level) {
891
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
892
+ key: level
893
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Group, {
894
+ level: level,
895
+ columnTitle: columnTitleData,
896
+ data: item,
897
+ selectEv: function selectEv(e, value, index) {
898
+ return handleClickItem(e, value, index, level);
899
+ }
900
+ }));
901
+ }))) : null), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
902
+ className: "cascading-select__val",
903
+ onClick: handleDisplayOptions
904
+ }, loading ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
905
+ className: "position-absolute top-0 start-0 mt-2 mx-2"
906
+ }, loader)) : null, displayResult ? selectedData.labels && selectedData.labels.length > 0 ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
907
+ className: "cascading-select__result"
908
+ }, displayInfo()) : null : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("input", _extends({
909
+ ref: valRef,
910
+ id: idRes,
911
+ name: name,
912
+ className: controlClassName || controlClassName === '' ? controlClassName : "form-control",
913
+ placeholder: placeholder,
914
+ value: changedVal // placeholder will not change if defaultValue is used
915
+ ,
916
+ onFocus: handleFocus,
917
+ onBlur: handleBlur,
918
+ disabled: disabled || null,
919
+ required: required || null,
920
+ style: style,
921
+ tabIndex: tabIndex || 0,
922
+ readOnly: true
923
+ }, attributes)), isShow ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
924
+ className: "cascading-select__closemask",
925
+ onClick: function onClick(e) {
926
+ e.preventDefault();
927
+ setIsShow(false);
928
+ }
929
+ }) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
930
+ className: "arrow",
931
+ style: {
932
+ pointerEvents: 'none'
933
+ }
934
+ }, controlArrow ? controlArrow : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", {
935
+ width: "10px",
936
+ height: "10px",
937
+ viewBox: "0 -4.5 20 20"
938
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", {
939
+ stroke: "none",
940
+ strokeWidth: "1",
941
+ fill: "none"
942
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", {
943
+ transform: "translate(-180.000000, -6684.000000)",
944
+ className: "arrow-fill-g",
945
+ fill: "#a5a5a5"
946
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", {
947
+ transform: "translate(56.000000, 160.000000)"
948
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
949
+ d: "M144,6525.39 L142.594,6524 L133.987,6532.261 L133.069,6531.38 L133.074,6531.385 L125.427,6524.045 L124,6525.414 C126.113,6527.443 132.014,6533.107 133.987,6535 C135.453,6533.594 134.024,6534.965 144,6525.39"
950
+ })))))))));
951
+ };
952
+ /* harmony default export */ const src = (CascadingSelect);
953
+ })();
954
+
955
+ /******/ return __webpack_exports__;
956
+ /******/ })()
957
+ ;
958
+ });