funda-ui 4.5.712 → 4.5.713

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 (483) hide show
  1. package/README.md +4 -105
  2. package/package.json +44 -41
  3. package/.gitattributes +0 -2
  4. package/README_PUBLISH.md +0 -126
  5. package/logo.png +0 -0
  6. package/preview.png +0 -0
  7. package/publish/LICENSE +0 -21
  8. package/publish/README.md +0 -126
  9. package/publish/lib/cjs/Accordion/index.d.ts +0 -2
  10. package/publish/lib/cjs/Accordion/index.js +0 -1035
  11. package/publish/lib/cjs/BackToTop/index.d.ts +0 -17
  12. package/publish/lib/cjs/BackToTop/index.js +0 -904
  13. package/publish/lib/cjs/CascadingSelect/index.d.ts +0 -60
  14. package/publish/lib/cjs/CascadingSelect/index.js +0 -2943
  15. package/publish/lib/cjs/CascadingSelectE2E/index.d.ts +0 -71
  16. package/publish/lib/cjs/CascadingSelectE2E/index.js +0 -3540
  17. package/publish/lib/cjs/Checkbox/index.d.ts +0 -28
  18. package/publish/lib/cjs/Checkbox/index.js +0 -662
  19. package/publish/lib/cjs/ColorPicker/index.d.ts +0 -27
  20. package/publish/lib/cjs/ColorPicker/index.js +0 -662
  21. package/publish/lib/cjs/Date/index.d.ts +0 -70
  22. package/publish/lib/cjs/Date/index.js +0 -6200
  23. package/publish/lib/cjs/DigitalClock/index.d.ts +0 -7
  24. package/publish/lib/cjs/DigitalClock/index.js +0 -402
  25. package/publish/lib/cjs/DragDropList/index.d.ts +0 -44
  26. package/publish/lib/cjs/DragDropList/index.js +0 -1587
  27. package/publish/lib/cjs/DropdownMenu/index.d.ts +0 -38
  28. package/publish/lib/cjs/DropdownMenu/index.js +0 -1498
  29. package/publish/lib/cjs/DynamicFields/index.d.ts +0 -40
  30. package/publish/lib/cjs/DynamicFields/index.js +0 -810
  31. package/publish/lib/cjs/EventCalendar/index.d.ts +0 -61
  32. package/publish/lib/cjs/EventCalendar/index.js +0 -3740
  33. package/publish/lib/cjs/EventCalendarTimeline/index.d.ts +0 -100
  34. package/publish/lib/cjs/EventCalendarTimeline/index.js +0 -6084
  35. package/publish/lib/cjs/File/index.d.ts +0 -40
  36. package/publish/lib/cjs/File/index.js +0 -1751
  37. package/publish/lib/cjs/HorizontalScrollContent/index.d.ts +0 -14
  38. package/publish/lib/cjs/HorizontalScrollContent/index.js +0 -426
  39. package/publish/lib/cjs/Input/index.d.ts +0 -59
  40. package/publish/lib/cjs/Input/index.js +0 -1455
  41. package/publish/lib/cjs/LiveSearch/index.d.ts +0 -69
  42. package/publish/lib/cjs/LiveSearch/index.js +0 -3626
  43. package/publish/lib/cjs/MasonryLayout/index.d.ts +0 -14
  44. package/publish/lib/cjs/MasonryLayout/index.js +0 -689
  45. package/publish/lib/cjs/ModalDialog/index.d.ts +0 -79
  46. package/publish/lib/cjs/ModalDialog/index.js +0 -1695
  47. package/publish/lib/cjs/ModeSwitch/index.d.ts +0 -17
  48. package/publish/lib/cjs/ModeSwitch/index.js +0 -202
  49. package/publish/lib/cjs/MultilevelDropdownMenu/index.d.ts +0 -20
  50. package/publish/lib/cjs/MultilevelDropdownMenu/index.js +0 -930
  51. package/publish/lib/cjs/MultipleCheckboxes/index.d.ts +0 -41
  52. package/publish/lib/cjs/MultipleCheckboxes/index.js +0 -1717
  53. package/publish/lib/cjs/MultipleSelect/index.d.ts +0 -65
  54. package/publish/lib/cjs/MultipleSelect/index.js +0 -3704
  55. package/publish/lib/cjs/NativeSelect/index.d.ts +0 -37
  56. package/publish/lib/cjs/NativeSelect/index.js +0 -1631
  57. package/publish/lib/cjs/NumberInput/index.d.ts +0 -40
  58. package/publish/lib/cjs/NumberInput/index.js +0 -1188
  59. package/publish/lib/cjs/Pagination/index.d.ts +0 -51
  60. package/publish/lib/cjs/Pagination/index.js +0 -612
  61. package/publish/lib/cjs/Radio/index.d.ts +0 -45
  62. package/publish/lib/cjs/Radio/index.js +0 -1391
  63. package/publish/lib/cjs/RangeSlider/index.d.ts +0 -22
  64. package/publish/lib/cjs/RangeSlider/index.js +0 -2665
  65. package/publish/lib/cjs/RootPortal/index.d.ts +0 -8
  66. package/publish/lib/cjs/RootPortal/index.js +0 -141
  67. package/publish/lib/cjs/ScrollReveal/index.d.ts +0 -21
  68. package/publish/lib/cjs/ScrollReveal/index.js +0 -401
  69. package/publish/lib/cjs/Scrollbar/index.d.ts +0 -17
  70. package/publish/lib/cjs/Scrollbar/index.js +0 -1107
  71. package/publish/lib/cjs/SearchBar/index.d.ts +0 -41
  72. package/publish/lib/cjs/SearchBar/index.js +0 -701
  73. package/publish/lib/cjs/Select/index.d.ts +0 -99
  74. package/publish/lib/cjs/Select/index.js +0 -5697
  75. package/publish/lib/cjs/ShowMoreLess/index.d.ts +0 -36
  76. package/publish/lib/cjs/ShowMoreLess/index.js +0 -387
  77. package/publish/lib/cjs/Switch/index.d.ts +0 -25
  78. package/publish/lib/cjs/Switch/index.js +0 -628
  79. package/publish/lib/cjs/Table/index.d.ts +0 -12
  80. package/publish/lib/cjs/Table/index.js +0 -2062
  81. package/publish/lib/cjs/Tabs/index.d.ts +0 -3
  82. package/publish/lib/cjs/Tabs/index.js +0 -771
  83. package/publish/lib/cjs/TagInput/index.d.ts +0 -31
  84. package/publish/lib/cjs/TagInput/index.js +0 -1144
  85. package/publish/lib/cjs/Textarea/index.d.ts +0 -50
  86. package/publish/lib/cjs/Textarea/index.js +0 -1784
  87. package/publish/lib/cjs/Toast/index.d.ts +0 -34
  88. package/publish/lib/cjs/Toast/index.js +0 -861
  89. package/publish/lib/cjs/Tooltip/index.d.ts +0 -23
  90. package/publish/lib/cjs/Tooltip/index.js +0 -1674
  91. package/publish/lib/cjs/Tree/index.d.ts +0 -62
  92. package/publish/lib/cjs/Tree/index.js +0 -1960
  93. package/publish/lib/cjs/Utils/anim.d.ts +0 -11
  94. package/publish/lib/cjs/Utils/anim.js +0 -400
  95. package/publish/lib/cjs/Utils/bodyScrollLock.d.ts +0 -8
  96. package/publish/lib/cjs/Utils/bodyScrollLock.js +0 -311
  97. package/publish/lib/cjs/Utils/buffer.d.ts +0 -67
  98. package/publish/lib/cjs/Utils/buffer.js +0 -343
  99. package/publish/lib/cjs/Utils/cls.d.ts +0 -15
  100. package/publish/lib/cjs/Utils/cls.js +0 -124
  101. package/publish/lib/cjs/Utils/convert.d.ts +0 -25
  102. package/publish/lib/cjs/Utils/convert.js +0 -109
  103. package/publish/lib/cjs/Utils/date.d.ts +0 -217
  104. package/publish/lib/cjs/Utils/date.js +0 -567
  105. package/publish/lib/cjs/Utils/dom.d.ts +0 -13
  106. package/publish/lib/cjs/Utils/dom.js +0 -215
  107. package/publish/lib/cjs/Utils/easing.d.ts +0 -29
  108. package/publish/lib/cjs/Utils/easing.js +0 -221
  109. package/publish/lib/cjs/Utils/extract.d.ts +0 -28
  110. package/publish/lib/cjs/Utils/extract.js +0 -130
  111. package/publish/lib/cjs/Utils/getElementProperty.d.ts +0 -52
  112. package/publish/lib/cjs/Utils/getElementProperty.js +0 -189
  113. package/publish/lib/cjs/Utils/guid.d.ts +0 -7
  114. package/publish/lib/cjs/Utils/guid.js +0 -67
  115. package/publish/lib/cjs/Utils/initDefaultOptions.d.ts +0 -21
  116. package/publish/lib/cjs/Utils/initDefaultOptions.js +0 -131
  117. package/publish/lib/cjs/Utils/inputsCalculation.d.ts +0 -28
  118. package/publish/lib/cjs/Utils/inputsCalculation.js +0 -188
  119. package/publish/lib/cjs/Utils/math.d.ts +0 -77
  120. package/publish/lib/cjs/Utils/math.js +0 -305
  121. package/publish/lib/cjs/Utils/object.d.ts +0 -18
  122. package/publish/lib/cjs/Utils/object.js +0 -120
  123. package/publish/lib/cjs/Utils/os.d.ts +0 -2
  124. package/publish/lib/cjs/Utils/os.js +0 -104
  125. package/publish/lib/cjs/Utils/performance.d.ts +0 -3
  126. package/publish/lib/cjs/Utils/performance.js +0 -94
  127. package/publish/lib/cjs/Utils/tree.d.ts +0 -40
  128. package/publish/lib/cjs/Utils/tree.js +0 -195
  129. package/publish/lib/cjs/Utils/useAutosizeTextArea.d.ts +0 -10
  130. package/publish/lib/cjs/Utils/useAutosizeTextArea.js +0 -227
  131. package/publish/lib/cjs/Utils/useBoundedDrag.d.ts +0 -125
  132. package/publish/lib/cjs/Utils/useBoundedDrag.js +0 -380
  133. package/publish/lib/cjs/Utils/useClickOutside.d.ts +0 -33
  134. package/publish/lib/cjs/Utils/useClickOutside.js +0 -166
  135. package/publish/lib/cjs/Utils/useComId.d.ts +0 -6
  136. package/publish/lib/cjs/Utils/useComId.js +0 -114
  137. package/publish/lib/cjs/Utils/useDebounce.d.ts +0 -20
  138. package/publish/lib/cjs/Utils/useDebounce.js +0 -138
  139. package/publish/lib/cjs/Utils/useDragDropPosition.d.ts +0 -169
  140. package/publish/lib/cjs/Utils/useDragDropPosition.js +0 -456
  141. package/publish/lib/cjs/Utils/useDraggable.d.ts +0 -62
  142. package/publish/lib/cjs/Utils/useDraggable.js +0 -348
  143. package/publish/lib/cjs/Utils/useInterval.d.ts +0 -5
  144. package/publish/lib/cjs/Utils/useInterval.js +0 -168
  145. package/publish/lib/cjs/Utils/useIsMobile.d.ts +0 -2
  146. package/publish/lib/cjs/Utils/useIsMobile.js +0 -168
  147. package/publish/lib/cjs/Utils/useKeyPress.d.ts +0 -44
  148. package/publish/lib/cjs/Utils/useKeyPress.js +0 -200
  149. package/publish/lib/cjs/Utils/useThrottle.d.ts +0 -2
  150. package/publish/lib/cjs/Utils/useThrottle.js +0 -136
  151. package/publish/lib/cjs/Utils/useWindowScroll.d.ts +0 -12
  152. package/publish/lib/cjs/Utils/useWindowScroll.js +0 -217
  153. package/publish/lib/cjs/Utils/viewport.d.ts +0 -7
  154. package/publish/lib/cjs/Utils/viewport.js +0 -64
  155. package/publish/lib/cjs/index.d.ts +0 -45
  156. package/publish/lib/cjs/index.js +0 -46
  157. package/publish/lib/css/BackToTop/index.css +0 -34
  158. package/publish/lib/css/CascadingSelect/index.css +0 -216
  159. package/publish/lib/css/CascadingSelectE2E/index.css +0 -216
  160. package/publish/lib/css/ColorPicker/index.css +0 -58
  161. package/publish/lib/css/Date/index.css +0 -434
  162. package/publish/lib/css/DragDropList/index.css +0 -188
  163. package/publish/lib/css/DropdownMenu/index.css +0 -151
  164. package/publish/lib/css/EventCalendar/index.css +0 -300
  165. package/publish/lib/css/EventCalendarTimeline/index.css +0 -694
  166. package/publish/lib/css/HorizontalScrollContent/index.css +0 -70
  167. package/publish/lib/css/LiveSearch/index.css +0 -55
  168. package/publish/lib/css/MultilevelDropdownMenu/index.css +0 -38
  169. package/publish/lib/css/MultipleSelect/index.css +0 -313
  170. package/publish/lib/css/RangeSlider/index.css +0 -150
  171. package/publish/lib/css/Scrollbar/index.css +0 -176
  172. package/publish/lib/css/Select/index.css +0 -368
  173. package/publish/lib/css/ShowMoreLess/index.css +0 -23
  174. package/publish/lib/css/Table/index.css +0 -584
  175. package/publish/lib/css/TagInput/index.css +0 -91
  176. package/publish/lib/css/Toast/index.css +0 -201
  177. package/publish/lib/css/Tooltip/index.css +0 -197
  178. package/publish/lib/css/Tree/index.css +0 -232
  179. package/publish/lib/esm/Accordion/Accordion.tsx +0 -184
  180. package/publish/lib/esm/Accordion/AccordionItem.tsx +0 -143
  181. package/publish/lib/esm/Accordion/index.tsx +0 -2
  182. package/publish/lib/esm/BackToTop/index.scss +0 -47
  183. package/publish/lib/esm/BackToTop/index.tsx +0 -177
  184. package/publish/lib/esm/CascadingSelect/Group.tsx +0 -82
  185. package/publish/lib/esm/CascadingSelect/index.scss +0 -291
  186. package/publish/lib/esm/CascadingSelect/index.tsx +0 -1203
  187. package/publish/lib/esm/CascadingSelectE2E/Group.tsx +0 -83
  188. package/publish/lib/esm/CascadingSelectE2E/index.scss +0 -293
  189. package/publish/lib/esm/CascadingSelectE2E/index.tsx +0 -1471
  190. package/publish/lib/esm/Checkbox/index.tsx +0 -193
  191. package/publish/lib/esm/ColorPicker/index.scss +0 -91
  192. package/publish/lib/esm/ColorPicker/index.tsx +0 -204
  193. package/publish/lib/esm/Date/Calendar.tsx +0 -723
  194. package/publish/lib/esm/Date/index.scss +0 -567
  195. package/publish/lib/esm/Date/index.tsx +0 -1683
  196. package/publish/lib/esm/Date/localization/en_US.js +0 -13
  197. package/publish/lib/esm/Date/localization/zh_CN.js +0 -12
  198. package/publish/lib/esm/DigitalClock/index.tsx +0 -74
  199. package/publish/lib/esm/DragDropList/index.scss +0 -245
  200. package/publish/lib/esm/DragDropList/index.tsx +0 -494
  201. package/publish/lib/esm/DropdownMenu/Option.tsx +0 -55
  202. package/publish/lib/esm/DropdownMenu/index.scss +0 -205
  203. package/publish/lib/esm/DropdownMenu/index.tsx +0 -377
  204. package/publish/lib/esm/DynamicFields/index.tsx +0 -404
  205. package/publish/lib/esm/EventCalendar/index.scss +0 -407
  206. package/publish/lib/esm/EventCalendar/index.tsx +0 -1004
  207. package/publish/lib/esm/EventCalendarTimeline/index.scss +0 -926
  208. package/publish/lib/esm/EventCalendarTimeline/index.tsx +0 -2683
  209. package/publish/lib/esm/File/index.tsx +0 -477
  210. package/publish/lib/esm/HorizontalScrollContent/index.scss +0 -87
  211. package/publish/lib/esm/HorizontalScrollContent/index.tsx +0 -171
  212. package/publish/lib/esm/Input/index.tsx +0 -614
  213. package/publish/lib/esm/LiveSearch/index.scss +0 -82
  214. package/publish/lib/esm/LiveSearch/index.tsx +0 -960
  215. package/publish/lib/esm/MasonryLayout/index.tsx +0 -326
  216. package/publish/lib/esm/ModalDialog/index.tsx +0 -552
  217. package/publish/lib/esm/ModeSwitch/index.tsx +0 -82
  218. package/publish/lib/esm/MultilevelDropdownMenu/ItemList.tsx +0 -265
  219. package/publish/lib/esm/MultilevelDropdownMenu/index.scss +0 -79
  220. package/publish/lib/esm/MultilevelDropdownMenu/index.tsx +0 -77
  221. package/publish/lib/esm/MultipleCheckboxes/index.tsx +0 -669
  222. package/publish/lib/esm/MultipleSelect/index.scss +0 -398
  223. package/publish/lib/esm/MultipleSelect/index.tsx +0 -766
  224. package/publish/lib/esm/MultipleSelect/utils/func.ts +0 -61
  225. package/publish/lib/esm/NativeSelect/index.tsx +0 -396
  226. package/publish/lib/esm/NativeSelect/utils/func.ts +0 -49
  227. package/publish/lib/esm/NumberInput/index.tsx +0 -385
  228. package/publish/lib/esm/Pagination/index.tsx +0 -286
  229. package/publish/lib/esm/Pagination/pagination-navigators.tsx +0 -60
  230. package/publish/lib/esm/Radio/index.tsx +0 -670
  231. package/publish/lib/esm/RangeSlider/index.scss +0 -186
  232. package/publish/lib/esm/RangeSlider/index.tsx +0 -241
  233. package/publish/lib/esm/RootPortal/index.tsx +0 -53
  234. package/publish/lib/esm/ScrollReveal/index.tsx +0 -148
  235. package/publish/lib/esm/Scrollbar/index.scss +0 -221
  236. package/publish/lib/esm/Scrollbar/index.tsx +0 -561
  237. package/publish/lib/esm/SearchBar/index.tsx +0 -253
  238. package/publish/lib/esm/Select/index.scss +0 -553
  239. package/publish/lib/esm/Select/index.tsx +0 -2816
  240. package/publish/lib/esm/Select/utils/func.ts +0 -106
  241. package/publish/lib/esm/ShowMoreLess/index.scss +0 -27
  242. package/publish/lib/esm/ShowMoreLess/index.tsx +0 -145
  243. package/publish/lib/esm/Switch/index.tsx +0 -147
  244. package/publish/lib/esm/Table/Table.tsx +0 -257
  245. package/publish/lib/esm/Table/TableBody.tsx +0 -41
  246. package/publish/lib/esm/Table/TableCaption.tsx +0 -34
  247. package/publish/lib/esm/Table/TableCell.tsx +0 -123
  248. package/publish/lib/esm/Table/TableColgroup.tsx +0 -38
  249. package/publish/lib/esm/Table/TableContext.tsx +0 -26
  250. package/publish/lib/esm/Table/TableFoot.tsx +0 -28
  251. package/publish/lib/esm/Table/TableHead.tsx +0 -28
  252. package/publish/lib/esm/Table/TableRow.tsx +0 -76
  253. package/publish/lib/esm/Table/index.scss +0 -418
  254. package/publish/lib/esm/Table/index.tsx +0 -14
  255. package/publish/lib/esm/Table/utils/DragHandleSprite.tsx +0 -46
  256. package/publish/lib/esm/Table/utils/SortSprite.tsx +0 -57
  257. package/publish/lib/esm/Table/utils/TableFilter.tsx +0 -56
  258. package/publish/lib/esm/Table/utils/ToggleSelection.tsx +0 -225
  259. package/publish/lib/esm/Table/utils/func.ts +0 -171
  260. package/publish/lib/esm/Table/utils/hooks/useTableDraggable.tsx +0 -342
  261. package/publish/lib/esm/Table/utils/hooks/useTableKeyPress.tsx +0 -154
  262. package/publish/lib/esm/Table/utils/hooks/useTableResponsive.tsx +0 -92
  263. package/publish/lib/esm/Table/utils/hooks/useTableSort.tsx +0 -143
  264. package/publish/lib/esm/Tabs/TabList.tsx +0 -50
  265. package/publish/lib/esm/Tabs/TabPanel.tsx +0 -44
  266. package/publish/lib/esm/Tabs/Tabs.tsx +0 -282
  267. package/publish/lib/esm/Tabs/index.tsx +0 -3
  268. package/publish/lib/esm/TagInput/index.scss +0 -126
  269. package/publish/lib/esm/TagInput/index.tsx +0 -352
  270. package/publish/lib/esm/Textarea/index.tsx +0 -608
  271. package/publish/lib/esm/Toast/Item.tsx +0 -124
  272. package/publish/lib/esm/Toast/index.scss +0 -269
  273. package/publish/lib/esm/Toast/index.tsx +0 -374
  274. package/publish/lib/esm/Tooltip/index.scss +0 -269
  275. package/publish/lib/esm/Tooltip/index.tsx +0 -312
  276. package/publish/lib/esm/Tree/TreeList.tsx +0 -616
  277. package/publish/lib/esm/Tree/index.scss +0 -386
  278. package/publish/lib/esm/Tree/index.tsx +0 -396
  279. package/publish/lib/esm/Tree/init-height.tsx +0 -27
  280. package/publish/lib/esm/Tree/utils/func.ts +0 -15
  281. package/publish/lib/esm/Utils/hooks/useAutosizeTextArea.tsx +0 -125
  282. package/publish/lib/esm/Utils/hooks/useBoundedDrag.tsx +0 -301
  283. package/publish/lib/esm/Utils/hooks/useClickOutside.tsx +0 -69
  284. package/publish/lib/esm/Utils/hooks/useComId.tsx +0 -13
  285. package/publish/lib/esm/Utils/hooks/useDebounce.tsx +0 -40
  286. package/publish/lib/esm/Utils/hooks/useDragDropPosition.tsx +0 -420
  287. package/publish/lib/esm/Utils/hooks/useDraggable.tsx +0 -265
  288. package/publish/lib/esm/Utils/hooks/useInterval.tsx +0 -74
  289. package/publish/lib/esm/Utils/hooks/useIsMobile.tsx +0 -56
  290. package/publish/lib/esm/Utils/hooks/useKeyPress.tsx +0 -104
  291. package/publish/lib/esm/Utils/hooks/useThrottle.tsx +0 -39
  292. package/publish/lib/esm/Utils/hooks/useWindowScroll.tsx +0 -83
  293. package/publish/lib/esm/Utils/libs/anim.ts +0 -96
  294. package/publish/lib/esm/Utils/libs/buffer.ts +0 -262
  295. package/publish/lib/esm/Utils/libs/cls.ts +0 -64
  296. package/publish/lib/esm/Utils/libs/convert.ts +0 -59
  297. package/publish/lib/esm/Utils/libs/date.ts +0 -578
  298. package/publish/lib/esm/Utils/libs/dom.ts +0 -150
  299. package/publish/lib/esm/Utils/libs/easing.ts +0 -201
  300. package/publish/lib/esm/Utils/libs/extract.ts +0 -86
  301. package/publish/lib/esm/Utils/libs/getElementProperty.ts +0 -150
  302. package/publish/lib/esm/Utils/libs/guid.ts +0 -16
  303. package/publish/lib/esm/Utils/libs/initDefaultOptions.ts +0 -104
  304. package/publish/lib/esm/Utils/libs/inputsCalculation.ts +0 -160
  305. package/publish/lib/esm/Utils/libs/math.ts +0 -276
  306. package/publish/lib/esm/Utils/libs/object.ts +0 -68
  307. package/publish/lib/esm/Utils/libs/os.ts +0 -63
  308. package/publish/lib/esm/Utils/libs/performance.ts +0 -47
  309. package/publish/lib/esm/Utils/libs/tree.ts +0 -119
  310. package/publish/lib/esm/Utils/libs/viewport.ts +0 -20
  311. package/publish/lib/esm/Utils/plugins/bodyScrollLock.ts +0 -286
  312. package/publish/lib/esm/index.js +0 -43
  313. package/publish/package.json +0 -1
  314. /package/{publish/Accordion → Accordion}/index.d.ts +0 -0
  315. /package/{publish/Accordion → Accordion}/index.js +0 -0
  316. /package/{publish/BackToTop → BackToTop}/index.css +0 -0
  317. /package/{publish/BackToTop → BackToTop}/index.d.ts +0 -0
  318. /package/{publish/BackToTop → BackToTop}/index.js +0 -0
  319. /package/{publish/CascadingSelect → CascadingSelect}/index.css +0 -0
  320. /package/{publish/CascadingSelect → CascadingSelect}/index.d.ts +0 -0
  321. /package/{publish/CascadingSelect → CascadingSelect}/index.js +0 -0
  322. /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.css +0 -0
  323. /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.d.ts +0 -0
  324. /package/{publish/CascadingSelectE2E → CascadingSelectE2E}/index.js +0 -0
  325. /package/{publish/Checkbox → Checkbox}/index.d.ts +0 -0
  326. /package/{publish/Checkbox → Checkbox}/index.js +0 -0
  327. /package/{publish/ColorPicker → ColorPicker}/index.css +0 -0
  328. /package/{publish/ColorPicker → ColorPicker}/index.d.ts +0 -0
  329. /package/{publish/ColorPicker → ColorPicker}/index.js +0 -0
  330. /package/{publish/Date → Date}/index.css +0 -0
  331. /package/{publish/Date → Date}/index.d.ts +0 -0
  332. /package/{publish/Date → Date}/index.js +0 -0
  333. /package/{publish/DigitalClock → DigitalClock}/index.d.ts +0 -0
  334. /package/{publish/DigitalClock → DigitalClock}/index.js +0 -0
  335. /package/{publish/DragDropList → DragDropList}/index.css +0 -0
  336. /package/{publish/DragDropList → DragDropList}/index.d.ts +0 -0
  337. /package/{publish/DragDropList → DragDropList}/index.js +0 -0
  338. /package/{publish/DropdownMenu → DropdownMenu}/index.css +0 -0
  339. /package/{publish/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
  340. /package/{publish/DropdownMenu → DropdownMenu}/index.js +0 -0
  341. /package/{publish/DynamicFields → DynamicFields}/index.d.ts +0 -0
  342. /package/{publish/DynamicFields → DynamicFields}/index.js +0 -0
  343. /package/{publish/EventCalendar → EventCalendar}/index.css +0 -0
  344. /package/{publish/EventCalendar → EventCalendar}/index.d.ts +0 -0
  345. /package/{publish/EventCalendar → EventCalendar}/index.js +0 -0
  346. /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.css +0 -0
  347. /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.d.ts +0 -0
  348. /package/{publish/EventCalendarTimeline → EventCalendarTimeline}/index.js +0 -0
  349. /package/{publish/File → File}/index.d.ts +0 -0
  350. /package/{publish/File → File}/index.js +0 -0
  351. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.css +0 -0
  352. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.d.ts +0 -0
  353. /package/{publish/HorizontalScrollContent → HorizontalScrollContent}/index.js +0 -0
  354. /package/{publish/Input → Input}/index.d.ts +0 -0
  355. /package/{publish/Input → Input}/index.js +0 -0
  356. /package/{publish/LiveSearch → LiveSearch}/index.css +0 -0
  357. /package/{publish/LiveSearch → LiveSearch}/index.d.ts +0 -0
  358. /package/{publish/LiveSearch → LiveSearch}/index.js +0 -0
  359. /package/{publish/MasonryLayout → MasonryLayout}/index.d.ts +0 -0
  360. /package/{publish/MasonryLayout → MasonryLayout}/index.js +0 -0
  361. /package/{publish/ModalDialog → ModalDialog}/index.d.ts +0 -0
  362. /package/{publish/ModalDialog → ModalDialog}/index.js +0 -0
  363. /package/{publish/ModeSwitch → ModeSwitch}/index.d.ts +0 -0
  364. /package/{publish/ModeSwitch → ModeSwitch}/index.js +0 -0
  365. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.css +0 -0
  366. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.d.ts +0 -0
  367. /package/{publish/MultilevelDropdownMenu → MultilevelDropdownMenu}/index.js +0 -0
  368. /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.d.ts +0 -0
  369. /package/{publish/MultipleCheckboxes → MultipleCheckboxes}/index.js +0 -0
  370. /package/{publish/MultipleSelect → MultipleSelect}/index.css +0 -0
  371. /package/{publish/MultipleSelect → MultipleSelect}/index.d.ts +0 -0
  372. /package/{publish/MultipleSelect → MultipleSelect}/index.js +0 -0
  373. /package/{publish/NativeSelect → NativeSelect}/index.d.ts +0 -0
  374. /package/{publish/NativeSelect → NativeSelect}/index.js +0 -0
  375. /package/{publish/NumberInput → NumberInput}/index.d.ts +0 -0
  376. /package/{publish/NumberInput → NumberInput}/index.js +0 -0
  377. /package/{publish/Pagination → Pagination}/index.d.ts +0 -0
  378. /package/{publish/Pagination → Pagination}/index.js +0 -0
  379. /package/{publish/Radio → Radio}/index.d.ts +0 -0
  380. /package/{publish/Radio → Radio}/index.js +0 -0
  381. /package/{publish/RangeSlider → RangeSlider}/index.css +0 -0
  382. /package/{publish/RangeSlider → RangeSlider}/index.d.ts +0 -0
  383. /package/{publish/RangeSlider → RangeSlider}/index.js +0 -0
  384. /package/{publish/RootPortal → RootPortal}/index.d.ts +0 -0
  385. /package/{publish/RootPortal → RootPortal}/index.js +0 -0
  386. /package/{publish/ScrollReveal → ScrollReveal}/index.d.ts +0 -0
  387. /package/{publish/ScrollReveal → ScrollReveal}/index.js +0 -0
  388. /package/{publish/Scrollbar → Scrollbar}/index.css +0 -0
  389. /package/{publish/Scrollbar → Scrollbar}/index.d.ts +0 -0
  390. /package/{publish/Scrollbar → Scrollbar}/index.js +0 -0
  391. /package/{publish/SearchBar → SearchBar}/index.d.ts +0 -0
  392. /package/{publish/SearchBar → SearchBar}/index.js +0 -0
  393. /package/{publish/Select → Select}/index.css +0 -0
  394. /package/{publish/Select → Select}/index.d.ts +0 -0
  395. /package/{publish/Select → Select}/index.js +0 -0
  396. /package/{publish/ShowMoreLess → ShowMoreLess}/index.css +0 -0
  397. /package/{publish/ShowMoreLess → ShowMoreLess}/index.d.ts +0 -0
  398. /package/{publish/ShowMoreLess → ShowMoreLess}/index.js +0 -0
  399. /package/{publish/Switch → Switch}/index.d.ts +0 -0
  400. /package/{publish/Switch → Switch}/index.js +0 -0
  401. /package/{publish/Table → Table}/index.css +0 -0
  402. /package/{publish/Table → Table}/index.d.ts +0 -0
  403. /package/{publish/Table → Table}/index.js +0 -0
  404. /package/{publish/Tabs → Tabs}/index.d.ts +0 -0
  405. /package/{publish/Tabs → Tabs}/index.js +0 -0
  406. /package/{publish/TagInput → TagInput}/index.css +0 -0
  407. /package/{publish/TagInput → TagInput}/index.d.ts +0 -0
  408. /package/{publish/TagInput → TagInput}/index.js +0 -0
  409. /package/{publish/Textarea → Textarea}/index.d.ts +0 -0
  410. /package/{publish/Textarea → Textarea}/index.js +0 -0
  411. /package/{publish/Toast → Toast}/index.css +0 -0
  412. /package/{publish/Toast → Toast}/index.d.ts +0 -0
  413. /package/{publish/Toast → Toast}/index.js +0 -0
  414. /package/{publish/Tooltip → Tooltip}/index.css +0 -0
  415. /package/{publish/Tooltip → Tooltip}/index.d.ts +0 -0
  416. /package/{publish/Tooltip → Tooltip}/index.js +0 -0
  417. /package/{publish/Tree → Tree}/index.css +0 -0
  418. /package/{publish/Tree → Tree}/index.d.ts +0 -0
  419. /package/{publish/Tree → Tree}/index.js +0 -0
  420. /package/{publish/Utils → Utils}/anim.d.ts +0 -0
  421. /package/{publish/Utils → Utils}/anim.js +0 -0
  422. /package/{publish/Utils → Utils}/bodyScrollLock.d.ts +0 -0
  423. /package/{publish/Utils → Utils}/bodyScrollLock.js +0 -0
  424. /package/{publish/Utils → Utils}/buffer.d.ts +0 -0
  425. /package/{publish/Utils → Utils}/buffer.js +0 -0
  426. /package/{publish/Utils → Utils}/cls.d.ts +0 -0
  427. /package/{publish/Utils → Utils}/cls.js +0 -0
  428. /package/{publish/Utils → Utils}/convert.d.ts +0 -0
  429. /package/{publish/Utils → Utils}/convert.js +0 -0
  430. /package/{publish/Utils → Utils}/date.d.ts +0 -0
  431. /package/{publish/Utils → Utils}/date.js +0 -0
  432. /package/{publish/Utils → Utils}/dom.d.ts +0 -0
  433. /package/{publish/Utils → Utils}/dom.js +0 -0
  434. /package/{publish/Utils → Utils}/easing.d.ts +0 -0
  435. /package/{publish/Utils → Utils}/easing.js +0 -0
  436. /package/{publish/Utils → Utils}/extract.d.ts +0 -0
  437. /package/{publish/Utils → Utils}/extract.js +0 -0
  438. /package/{publish/Utils → Utils}/getElementProperty.d.ts +0 -0
  439. /package/{publish/Utils → Utils}/getElementProperty.js +0 -0
  440. /package/{publish/Utils → Utils}/guid.d.ts +0 -0
  441. /package/{publish/Utils → Utils}/guid.js +0 -0
  442. /package/{publish/Utils → Utils}/initDefaultOptions.d.ts +0 -0
  443. /package/{publish/Utils → Utils}/initDefaultOptions.js +0 -0
  444. /package/{publish/Utils → Utils}/inputsCalculation.d.ts +0 -0
  445. /package/{publish/Utils → Utils}/inputsCalculation.js +0 -0
  446. /package/{publish/Utils → Utils}/math.d.ts +0 -0
  447. /package/{publish/Utils → Utils}/math.js +0 -0
  448. /package/{publish/Utils → Utils}/object.d.ts +0 -0
  449. /package/{publish/Utils → Utils}/object.js +0 -0
  450. /package/{publish/Utils → Utils}/os.d.ts +0 -0
  451. /package/{publish/Utils → Utils}/os.js +0 -0
  452. /package/{publish/Utils → Utils}/performance.d.ts +0 -0
  453. /package/{publish/Utils → Utils}/performance.js +0 -0
  454. /package/{publish/Utils → Utils}/tree.d.ts +0 -0
  455. /package/{publish/Utils → Utils}/tree.js +0 -0
  456. /package/{publish/Utils → Utils}/useAutosizeTextArea.d.ts +0 -0
  457. /package/{publish/Utils → Utils}/useAutosizeTextArea.js +0 -0
  458. /package/{publish/Utils → Utils}/useBoundedDrag.d.ts +0 -0
  459. /package/{publish/Utils → Utils}/useBoundedDrag.js +0 -0
  460. /package/{publish/Utils → Utils}/useClickOutside.d.ts +0 -0
  461. /package/{publish/Utils → Utils}/useClickOutside.js +0 -0
  462. /package/{publish/Utils → Utils}/useComId.d.ts +0 -0
  463. /package/{publish/Utils → Utils}/useComId.js +0 -0
  464. /package/{publish/Utils → Utils}/useDebounce.d.ts +0 -0
  465. /package/{publish/Utils → Utils}/useDebounce.js +0 -0
  466. /package/{publish/Utils → Utils}/useDragDropPosition.d.ts +0 -0
  467. /package/{publish/Utils → Utils}/useDragDropPosition.js +0 -0
  468. /package/{publish/Utils → Utils}/useDraggable.d.ts +0 -0
  469. /package/{publish/Utils → Utils}/useDraggable.js +0 -0
  470. /package/{publish/Utils → Utils}/useInterval.d.ts +0 -0
  471. /package/{publish/Utils → Utils}/useInterval.js +0 -0
  472. /package/{publish/Utils → Utils}/useIsMobile.d.ts +0 -0
  473. /package/{publish/Utils → Utils}/useIsMobile.js +0 -0
  474. /package/{publish/Utils → Utils}/useKeyPress.d.ts +0 -0
  475. /package/{publish/Utils → Utils}/useKeyPress.js +0 -0
  476. /package/{publish/Utils → Utils}/useThrottle.d.ts +0 -0
  477. /package/{publish/Utils → Utils}/useThrottle.js +0 -0
  478. /package/{publish/Utils → Utils}/useWindowScroll.d.ts +0 -0
  479. /package/{publish/Utils → Utils}/useWindowScroll.js +0 -0
  480. /package/{publish/Utils → Utils}/viewport.d.ts +0 -0
  481. /package/{publish/Utils → Utils}/viewport.js +0 -0
  482. /package/{publish/all.d.ts → all.d.ts} +0 -0
  483. /package/{publish/all.js → all.js} +0 -0
@@ -1,3626 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"), require("react-dom"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["react", "react-dom"], factory);
6
- else if(typeof exports === 'object')
7
- exports["RPB"] = factory(require("react"), require("react-dom"));
8
- else
9
- root["RPB"] = factory(root["React"], root["ReactDOM"]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 909:
15
- /***/ (function(module, exports, __webpack_require__) {
16
-
17
- /* module decorator */ module = __webpack_require__.nmd(module);
18
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
19
- (function webpackUniversalModuleDefinition(root, factory) {
20
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787), __webpack_require__(156));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787), __webpack_require__(156)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
21
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
22
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
23
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
24
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) {
25
- return (/******/function () {
26
- // webpackBootstrap
27
- /******/
28
- "use strict";
29
-
30
- /******/
31
- var __webpack_modules__ = {
32
- /***/787: /***/function _(module) {
33
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
34
-
35
- /***/
36
- },
37
-
38
- /***/156: /***/function _(module) {
39
- module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
40
-
41
- /***/
42
- }
43
-
44
- /******/
45
- };
46
- /************************************************************************/
47
- /******/ // The module cache
48
- /******/
49
- var __webpack_module_cache__ = {};
50
- /******/
51
- /******/ // The require function
52
- /******/
53
- function __nested_webpack_require_1708__(moduleId) {
54
- /******/ // Check if module is in cache
55
- /******/var cachedModule = __webpack_module_cache__[moduleId];
56
- /******/
57
- if (cachedModule !== undefined) {
58
- /******/return cachedModule.exports;
59
- /******/
60
- }
61
- /******/ // Create a new module (and put it into the cache)
62
- /******/
63
- var module = __webpack_module_cache__[moduleId] = {
64
- /******/ // no module.id needed
65
- /******/ // no module.loaded needed
66
- /******/exports: {}
67
- /******/
68
- };
69
- /******/
70
- /******/ // Execute the module function
71
- /******/
72
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1708__);
73
- /******/
74
- /******/ // Return the exports of the module
75
- /******/
76
- return module.exports;
77
- /******/
78
- }
79
- /******/
80
- /************************************************************************/
81
- /******/ /* webpack/runtime/compat get default export */
82
- /******/
83
- (function () {
84
- /******/ // getDefaultExport function for compatibility with non-harmony modules
85
- /******/__nested_webpack_require_1708__.n = function (module) {
86
- /******/var getter = module && module.__esModule ? /******/function () {
87
- return module['default'];
88
- } : /******/function () {
89
- return module;
90
- };
91
- /******/
92
- __nested_webpack_require_1708__.d(getter, {
93
- a: getter
94
- });
95
- /******/
96
- return getter;
97
- /******/
98
- };
99
- /******/
100
- })();
101
- /******/
102
- /******/ /* webpack/runtime/define property getters */
103
- /******/
104
- (function () {
105
- /******/ // define getter functions for harmony exports
106
- /******/__nested_webpack_require_1708__.d = function (exports, definition) {
107
- /******/for (var key in definition) {
108
- /******/if (__nested_webpack_require_1708__.o(definition, key) && !__nested_webpack_require_1708__.o(exports, key)) {
109
- /******/Object.defineProperty(exports, key, {
110
- enumerable: true,
111
- get: definition[key]
112
- });
113
- /******/
114
- }
115
- /******/
116
- }
117
- /******/
118
- };
119
- /******/
120
- })();
121
- /******/
122
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
123
- /******/
124
- (function () {
125
- /******/__nested_webpack_require_1708__.o = function (obj, prop) {
126
- return Object.prototype.hasOwnProperty.call(obj, prop);
127
- };
128
- /******/
129
- })();
130
- /******/
131
- /******/ /* webpack/runtime/make namespace object */
132
- /******/
133
- (function () {
134
- /******/ // define __esModule on exports
135
- /******/__nested_webpack_require_1708__.r = function (exports) {
136
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
137
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
138
- value: 'Module'
139
- });
140
- /******/
141
- }
142
- /******/
143
- Object.defineProperty(exports, '__esModule', {
144
- value: true
145
- });
146
- /******/
147
- };
148
- /******/
149
- })();
150
- /******/
151
- /************************************************************************/
152
- var __webpack_exports__ = {};
153
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
154
- (function () {
155
- __nested_webpack_require_1708__.r(__webpack_exports__);
156
- /* harmony export */
157
- __nested_webpack_require_1708__.d(__webpack_exports__, {
158
- /* harmony export */"default": function _default() {
159
- return __WEBPACK_DEFAULT_EXPORT__;
160
- }
161
- /* harmony export */
162
- });
163
- /* harmony import */
164
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1708__(787);
165
- /* harmony import */
166
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1708__.n(react__WEBPACK_IMPORTED_MODULE_0__);
167
- /* harmony import */
168
- var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_1708__(156);
169
- /* harmony import */
170
- var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_1708__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
171
- var RootPortal = function RootPortal(props) {
172
- var containerClassName = props.containerClassName,
173
- show = props.show,
174
- children = props.children;
175
- var containerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
176
-
177
- // Move HTML templates to tag end body </body>
178
- // render() don't use "Fragment", in order to avoid error "Failed to execute 'insertBefore' on 'Node'"
179
- // prevent "transform", "filter", "perspective" attribute destruction fixed viewport orientation
180
- // ###
181
- // ###
182
- // Use `containerRef.current` to ensure the correctness of the nextjs framework. It may report an error document as undefined
183
-
184
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
185
- containerRef.current = document.createElement('div');
186
- containerRef.current.className = "root-portal-container ".concat(containerClassName || '');
187
- document.body.appendChild(containerRef.current);
188
- return function () {
189
- if (containerRef.current) {
190
- containerRef.current.remove();
191
- }
192
- };
193
- }, []);
194
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, containerRef.current && show && /*#__PURE__*/(0, react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, containerRef.current));
195
- };
196
- /* harmony default export */
197
- var __WEBPACK_DEFAULT_EXPORT__ = RootPortal;
198
- })();
199
-
200
- /******/
201
- return __webpack_exports__;
202
- /******/
203
- }()
204
- );
205
- });
206
-
207
- /***/ }),
208
-
209
- /***/ 962:
210
- /***/ (function(module, exports, __webpack_require__) {
211
-
212
- /* module decorator */ module = __webpack_require__.nmd(module);
213
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof3(obj) { "@babel/helpers - typeof"; return _typeof3 = "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; }, _typeof3(obj); }
214
- (function webpackUniversalModuleDefinition(root, factory) {
215
- if (( false ? 0 : _typeof3(exports)) === 'object' && ( false ? 0 : _typeof3(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
216
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
217
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
218
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
219
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
220
- return (/******/function () {
221
- // webpackBootstrap
222
- /******/
223
- var __webpack_modules__ = {
224
- /***/188: /***/function _(module, exports, __nested_webpack_require_1080__) {
225
- /* module decorator */module = __nested_webpack_require_1080__.nmd(module);
226
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
227
- function _typeof2(obj) {
228
- "@babel/helpers - typeof";
229
-
230
- return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
231
- return typeof obj;
232
- } : function (obj) {
233
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
234
- }, _typeof2(obj);
235
- }
236
- (function webpackUniversalModuleDefinition(root, factory) {
237
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
238
- })(this, function () {
239
- return (/******/function () {
240
- // webpackBootstrap
241
- /******/
242
- "use strict";
243
-
244
- /******/ // The require scope
245
- /******/
246
- var __nested_webpack_require_993__ = {};
247
- /******/
248
- /************************************************************************/
249
- /******/ /* webpack/runtime/define property getters */
250
- /******/
251
- (function () {
252
- /******/ // define getter functions for harmony exports
253
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
254
- /******/for (var key in definition) {
255
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
256
- /******/Object.defineProperty(exports, key, {
257
- enumerable: true,
258
- get: definition[key]
259
- });
260
- /******/
261
- }
262
- /******/
263
- }
264
- /******/
265
- };
266
- /******/
267
- })();
268
- /******/
269
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
270
- /******/
271
- (function () {
272
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
273
- return Object.prototype.hasOwnProperty.call(obj, prop);
274
- };
275
- /******/
276
- })();
277
- /******/
278
- /******/ /* webpack/runtime/make namespace object */
279
- /******/
280
- (function () {
281
- /******/ // define __esModule on exports
282
- /******/__nested_webpack_require_993__.r = function (exports) {
283
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
284
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
285
- value: 'Module'
286
- });
287
- /******/
288
- }
289
- /******/
290
- Object.defineProperty(exports, '__esModule', {
291
- value: true
292
- });
293
- /******/
294
- };
295
- /******/
296
- })();
297
- /******/
298
- /************************************************************************/
299
- var __webpack_exports__ = {};
300
- __nested_webpack_require_993__.r(__webpack_exports__);
301
- /* harmony export */
302
- __nested_webpack_require_993__.d(__webpack_exports__, {
303
- /* harmony export */"clsWrite": function clsWrite() {
304
- return (/* binding */_clsWrite
305
- );
306
- },
307
- /* harmony export */"combinedCls": function combinedCls() {
308
- return (/* binding */_combinedCls
309
- );
310
- }
311
- /* harmony export */
312
- });
313
-
314
- function _slicedToArray(arr, i) {
315
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
316
- }
317
- function _nonIterableRest() {
318
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
319
- }
320
- function _unsupportedIterableToArray(o, minLen) {
321
- if (!o) return;
322
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
323
- var n = Object.prototype.toString.call(o).slice(8, -1);
324
- if (n === "Object" && o.constructor) n = o.constructor.name;
325
- if (n === "Map" || n === "Set") return Array.from(o);
326
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
327
- }
328
- function _arrayLikeToArray(arr, len) {
329
- if (len == null || len > arr.length) len = arr.length;
330
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
331
- return arr2;
332
- }
333
- function _iterableToArrayLimit(arr, i) {
334
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
335
- if (null != _i) {
336
- var _s,
337
- _e,
338
- _x,
339
- _r,
340
- _arr = [],
341
- _n = !0,
342
- _d = !1;
343
- try {
344
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
345
- if (Object(_i) !== _i) return;
346
- _n = !1;
347
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
348
- } catch (err) {
349
- _d = !0, _e = err;
350
- } finally {
351
- try {
352
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
353
- } finally {
354
- if (_d) throw _e;
355
- }
356
- }
357
- return _arr;
358
- }
359
- }
360
- function _arrayWithHoles(arr) {
361
- if (Array.isArray(arr)) return arr;
362
- }
363
- function _typeof(obj) {
364
- "@babel/helpers - typeof";
365
-
366
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
367
- return typeof obj;
368
- } : function (obj) {
369
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
370
- }, _typeof(obj);
371
- }
372
- /**
373
- * Output of class name
374
- * @param {*} s - Any
375
- * @param {String} defaultCls - Default string
376
- * @param {?*} targetCls - Any
377
- * @returns {*}
378
- */
379
- function _clsWrite(s, defaultCls) {
380
- var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
381
- return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
382
- }
383
-
384
- /**
385
- * Combined classnames
386
- * @param {*} args
387
- * @returns {String|undefined}
388
- */
389
- /* Usage:
390
-
391
- console.log(combinedCls('a-1', 'a-2', 'a-3', {
392
- 'p-1': null,
393
- 'p-2': undefined,
394
- 'p-3': true,
395
- 'p-4': false,
396
- 'p-5': 'kkk',
397
- 'p-6': 0,
398
- 'p-7': 1,
399
- 'p-8': '',
400
- undefined
401
- })); // a-1 a-2 a-3 p-3 p-5 p-7
402
- */
403
- function _combinedCls() {
404
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
405
- args[_key] = arguments[_key];
406
- }
407
- if (args) {
408
- var classes = [];
409
- for (var i = 0; i < args.length; i++) {
410
- var className = args[i];
411
- if (!className) {
412
- continue;
413
- }
414
- var type = _typeof(className);
415
- if (type === 'string' || type === 'number') {
416
- classes.push(className);
417
- } else if (type === 'object') {
418
- var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
419
- var _ref2 = _slicedToArray(_ref, 2),
420
- key = _ref2[0],
421
- value = _ref2[1];
422
- return value ? key : null;
423
- });
424
- classes = _classes.length ? classes.concat(_classes.filter(function (c) {
425
- return !!c;
426
- })) : classes;
427
- }
428
- }
429
- return classes.join(' ').trim();
430
- }
431
- return undefined;
432
- }
433
-
434
- /******/
435
- return __webpack_exports__;
436
- /******/
437
- }()
438
- );
439
- });
440
-
441
- /***/
442
- },
443
-
444
- /***/85: /***/function _(module, exports, __nested_webpack_require_11463__) {
445
- /* module decorator */module = __nested_webpack_require_11463__.nmd(module);
446
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
447
- function _typeof(obj) {
448
- "@babel/helpers - typeof";
449
-
450
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
451
- return typeof obj;
452
- } : function (obj) {
453
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
454
- }, _typeof(obj);
455
- }
456
- (function webpackUniversalModuleDefinition(root, factory) {
457
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__nested_webpack_require_11463__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__nested_webpack_require_11463__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = factory, __WEBPACK_AMD_DEFINE_RESULT__ = typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
458
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
459
- return (/******/function () {
460
- // webpackBootstrap
461
- /******/
462
- "use strict";
463
-
464
- /******/
465
- var __webpack_modules__ = {
466
- /***/787: /***/function _(module) {
467
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
468
-
469
- /***/
470
- }
471
-
472
- /******/
473
- };
474
- /************************************************************************/
475
- /******/ // The module cache
476
- /******/
477
- var __webpack_module_cache__ = {};
478
- /******/
479
- /******/ // The require function
480
- /******/
481
- function __nested_webpack_require_1465__(moduleId) {
482
- /******/ // Check if module is in cache
483
- /******/var cachedModule = __webpack_module_cache__[moduleId];
484
- /******/
485
- if (cachedModule !== undefined) {
486
- /******/return cachedModule.exports;
487
- /******/
488
- }
489
- /******/ // Create a new module (and put it into the cache)
490
- /******/
491
- var module = __webpack_module_cache__[moduleId] = {
492
- /******/ // no module.id needed
493
- /******/ // no module.loaded needed
494
- /******/exports: {}
495
- /******/
496
- };
497
- /******/
498
- /******/ // Execute the module function
499
- /******/
500
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
501
- /******/
502
- /******/ // Return the exports of the module
503
- /******/
504
- return module.exports;
505
- /******/
506
- }
507
- /******/
508
- /************************************************************************/
509
- /******/ /* webpack/runtime/compat get default export */
510
- /******/
511
- (function () {
512
- /******/ // getDefaultExport function for compatibility with non-harmony modules
513
- /******/__nested_webpack_require_1465__.n = function (module) {
514
- /******/var getter = module && module.__esModule ? /******/function () {
515
- return module['default'];
516
- } : /******/function () {
517
- return module;
518
- };
519
- /******/
520
- __nested_webpack_require_1465__.d(getter, {
521
- a: getter
522
- });
523
- /******/
524
- return getter;
525
- /******/
526
- };
527
- /******/
528
- })();
529
- /******/
530
- /******/ /* webpack/runtime/define property getters */
531
- /******/
532
- (function () {
533
- /******/ // define getter functions for harmony exports
534
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
535
- /******/for (var key in definition) {
536
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
537
- /******/Object.defineProperty(exports, key, {
538
- enumerable: true,
539
- get: definition[key]
540
- });
541
- /******/
542
- }
543
- /******/
544
- }
545
- /******/
546
- };
547
- /******/
548
- })();
549
- /******/
550
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
551
- /******/
552
- (function () {
553
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
554
- return Object.prototype.hasOwnProperty.call(obj, prop);
555
- };
556
- /******/
557
- })();
558
- /******/
559
- /******/ /* webpack/runtime/make namespace object */
560
- /******/
561
- (function () {
562
- /******/ // define __esModule on exports
563
- /******/__nested_webpack_require_1465__.r = function (exports) {
564
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
565
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
566
- value: 'Module'
567
- });
568
- /******/
569
- }
570
- /******/
571
- Object.defineProperty(exports, '__esModule', {
572
- value: true
573
- });
574
- /******/
575
- };
576
- /******/
577
- })();
578
- /******/
579
- /************************************************************************/
580
- var __webpack_exports__ = {};
581
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
582
- (function () {
583
- __nested_webpack_require_1465__.r(__webpack_exports__);
584
- /* harmony export */
585
- __nested_webpack_require_1465__.d(__webpack_exports__, {
586
- /* harmony export */"default": function _default() {
587
- return __WEBPACK_DEFAULT_EXPORT__;
588
- }
589
- /* harmony export */
590
- });
591
- /* harmony import */
592
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
593
- /* harmony import */
594
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
595
- /**
596
- * Create an available ID
597
- *
598
- */
599
-
600
- var useComId = function useComId() {
601
- return "ID-".concat((0, react__WEBPACK_IMPORTED_MODULE_0__.useId)().replace(/\:/g, "-"));
602
- };
603
- /* harmony default export */
604
- var __WEBPACK_DEFAULT_EXPORT__ = useComId;
605
- })();
606
-
607
- /******/
608
- return __webpack_exports__;
609
- /******/
610
- }()
611
- );
612
- });
613
-
614
- /***/
615
- },
616
-
617
- /***/787: /***/function _(module) {
618
- "use strict";
619
-
620
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
621
-
622
- /***/
623
- }
624
-
625
- /******/
626
- };
627
- /************************************************************************/
628
- /******/ // The module cache
629
- /******/
630
- var __webpack_module_cache__ = {};
631
- /******/
632
- /******/ // The require function
633
- /******/
634
- function __nested_webpack_require_19931__(moduleId) {
635
- /******/ // Check if module is in cache
636
- /******/var cachedModule = __webpack_module_cache__[moduleId];
637
- /******/
638
- if (cachedModule !== undefined) {
639
- /******/return cachedModule.exports;
640
- /******/
641
- }
642
- /******/ // Create a new module (and put it into the cache)
643
- /******/
644
- var module = __webpack_module_cache__[moduleId] = {
645
- /******/id: moduleId,
646
- /******/loaded: false,
647
- /******/exports: {}
648
- /******/
649
- };
650
- /******/
651
- /******/ // Execute the module function
652
- /******/
653
- __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_19931__);
654
- /******/
655
- /******/ // Flag the module as loaded
656
- /******/
657
- module.loaded = true;
658
- /******/
659
- /******/ // Return the exports of the module
660
- /******/
661
- return module.exports;
662
- /******/
663
- }
664
- /******/
665
- /************************************************************************/
666
- /******/ /* webpack/runtime/compat get default export */
667
- /******/
668
- (function () {
669
- /******/ // getDefaultExport function for compatibility with non-harmony modules
670
- /******/__nested_webpack_require_19931__.n = function (module) {
671
- /******/var getter = module && module.__esModule ? /******/function () {
672
- return module['default'];
673
- } : /******/function () {
674
- return module;
675
- };
676
- /******/
677
- __nested_webpack_require_19931__.d(getter, {
678
- a: getter
679
- });
680
- /******/
681
- return getter;
682
- /******/
683
- };
684
- /******/
685
- })();
686
- /******/
687
- /******/ /* webpack/runtime/define property getters */
688
- /******/
689
- (function () {
690
- /******/ // define getter functions for harmony exports
691
- /******/__nested_webpack_require_19931__.d = function (exports, definition) {
692
- /******/for (var key in definition) {
693
- /******/if (__nested_webpack_require_19931__.o(definition, key) && !__nested_webpack_require_19931__.o(exports, key)) {
694
- /******/Object.defineProperty(exports, key, {
695
- enumerable: true,
696
- get: definition[key]
697
- });
698
- /******/
699
- }
700
- /******/
701
- }
702
- /******/
703
- };
704
- /******/
705
- })();
706
- /******/
707
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
708
- /******/
709
- (function () {
710
- /******/__nested_webpack_require_19931__.o = function (obj, prop) {
711
- return Object.prototype.hasOwnProperty.call(obj, prop);
712
- };
713
- /******/
714
- })();
715
- /******/
716
- /******/ /* webpack/runtime/make namespace object */
717
- /******/
718
- (function () {
719
- /******/ // define __esModule on exports
720
- /******/__nested_webpack_require_19931__.r = function (exports) {
721
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
722
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
723
- value: 'Module'
724
- });
725
- /******/
726
- }
727
- /******/
728
- Object.defineProperty(exports, '__esModule', {
729
- value: true
730
- });
731
- /******/
732
- };
733
- /******/
734
- })();
735
- /******/
736
- /******/ /* webpack/runtime/node module decorator */
737
- /******/
738
- (function () {
739
- /******/__nested_webpack_require_19931__.nmd = function (module) {
740
- /******/module.paths = [];
741
- /******/
742
- if (!module.children) module.children = [];
743
- /******/
744
- return module;
745
- /******/
746
- };
747
- /******/
748
- })();
749
- /******/
750
- /************************************************************************/
751
- var __webpack_exports__ = {};
752
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
753
- (function () {
754
- "use strict";
755
-
756
- __nested_webpack_require_19931__.r(__webpack_exports__);
757
- /* harmony export */
758
- __nested_webpack_require_19931__.d(__webpack_exports__, {
759
- /* harmony export */"default": function _default() {
760
- return __WEBPACK_DEFAULT_EXPORT__;
761
- }
762
- /* harmony export */
763
- });
764
- /* harmony import */
765
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_19931__(787);
766
- /* harmony import */
767
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_19931__.n(react__WEBPACK_IMPORTED_MODULE_0__);
768
- /* harmony import */
769
- var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_19931__(85);
770
- /* harmony import */
771
- var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nested_webpack_require_19931__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1__);
772
- /* harmony import */
773
- var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__ = __nested_webpack_require_19931__(188);
774
- /* harmony import */
775
- var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nested_webpack_require_19931__.n(funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__);
776
- var _excluded = ["wrapperClassName", "controlClassName", "controlExClassName", "controlGroupWrapperClassName", "controlGroupTextClassName", "appearance", "isSearchInput", "readOnly", "disabled", "required", "placeholder", "value", "label", "name", "units", "iconLeft", "iconRight", "minLength", "maxLength", "btnId", "id", "icon", "autoComplete", "autoCapitalize", "spellCheck", "style", "tabIndex", "onClick", "onKeyPressedCallback", "onSubmit", "onChange", "onBlur", "onFocus", "onPressEnter"];
777
- function _extends() {
778
- _extends = Object.assign ? Object.assign.bind() : function (target) {
779
- for (var i = 1; i < arguments.length; i++) {
780
- var source = arguments[i];
781
- for (var key in source) {
782
- if (Object.prototype.hasOwnProperty.call(source, key)) {
783
- target[key] = source[key];
784
- }
785
- }
786
- }
787
- return target;
788
- };
789
- return _extends.apply(this, arguments);
790
- }
791
- function _slicedToArray(arr, i) {
792
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
793
- }
794
- function _nonIterableRest() {
795
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
796
- }
797
- function _unsupportedIterableToArray(o, minLen) {
798
- if (!o) return;
799
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
800
- var n = Object.prototype.toString.call(o).slice(8, -1);
801
- if (n === "Object" && o.constructor) n = o.constructor.name;
802
- if (n === "Map" || n === "Set") return Array.from(o);
803
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
804
- }
805
- function _arrayLikeToArray(arr, len) {
806
- if (len == null || len > arr.length) len = arr.length;
807
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
808
- return arr2;
809
- }
810
- function _iterableToArrayLimit(arr, i) {
811
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
812
- if (null != _i) {
813
- var _s,
814
- _e,
815
- _x,
816
- _r,
817
- _arr = [],
818
- _n = !0,
819
- _d = !1;
820
- try {
821
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
822
- if (Object(_i) !== _i) return;
823
- _n = !1;
824
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
825
- } catch (err) {
826
- _d = !0, _e = err;
827
- } finally {
828
- try {
829
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
830
- } finally {
831
- if (_d) throw _e;
832
- }
833
- }
834
- return _arr;
835
- }
836
- }
837
- function _arrayWithHoles(arr) {
838
- if (Array.isArray(arr)) return arr;
839
- }
840
- function _objectWithoutProperties(source, excluded) {
841
- if (source == null) return {};
842
- var target = _objectWithoutPropertiesLoose(source, excluded);
843
- var key, i;
844
- if (Object.getOwnPropertySymbols) {
845
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
846
- for (i = 0; i < sourceSymbolKeys.length; i++) {
847
- key = sourceSymbolKeys[i];
848
- if (excluded.indexOf(key) >= 0) continue;
849
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
850
- target[key] = source[key];
851
- }
852
- }
853
- return target;
854
- }
855
- function _objectWithoutPropertiesLoose(source, excluded) {
856
- if (source == null) return {};
857
- var target = {};
858
- var sourceKeys = Object.keys(source);
859
- var key, i;
860
- for (i = 0; i < sourceKeys.length; i++) {
861
- key = sourceKeys[i];
862
- if (excluded.indexOf(key) >= 0) continue;
863
- target[key] = source[key];
864
- }
865
- return target;
866
- }
867
- var SearchBar = /*#__PURE__*/(0, react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, externalRef) {
868
- var wrapperClassName = props.wrapperClassName,
869
- controlClassName = props.controlClassName,
870
- controlExClassName = props.controlExClassName,
871
- controlGroupWrapperClassName = props.controlGroupWrapperClassName,
872
- controlGroupTextClassName = props.controlGroupTextClassName,
873
- appearance = props.appearance,
874
- isSearchInput = props.isSearchInput,
875
- readOnly = props.readOnly,
876
- disabled = props.disabled,
877
- required = props.required,
878
- placeholder = props.placeholder,
879
- value = props.value,
880
- label = props.label,
881
- name = props.name,
882
- units = props.units,
883
- iconLeft = props.iconLeft,
884
- iconRight = props.iconRight,
885
- minLength = props.minLength,
886
- maxLength = props.maxLength,
887
- btnId = props.btnId,
888
- id = props.id,
889
- icon = props.icon,
890
- autoComplete = props.autoComplete,
891
- autoCapitalize = props.autoCapitalize,
892
- spellCheck = props.spellCheck,
893
- style = props.style,
894
- tabIndex = props.tabIndex,
895
- onClick = props.onClick,
896
- onKeyPressedCallback = props.onKeyPressedCallback,
897
- onSubmit = props.onSubmit,
898
- onChange = props.onChange,
899
- onBlur = props.onBlur,
900
- onFocus = props.onFocus,
901
- onPressEnter = props.onPressEnter,
902
- attributes = _objectWithoutProperties(props, _excluded);
903
- var uniqueID = funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_1___default()();
904
- var idRes = id || uniqueID;
905
- var rootRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
906
- var _useState = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(value || ''),
907
- _useState2 = _slicedToArray(_useState, 2),
908
- changedVal = _useState2[0],
909
- setChangedVal = _useState2[1];
910
- var _useState3 = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
911
- _useState4 = _slicedToArray(_useState3, 2),
912
- onComposition = _useState4[0],
913
- setOnComposition = _useState4[1];
914
- var propExist = function propExist(p) {
915
- return typeof p !== 'undefined' && p !== null && p !== '';
916
- };
917
- function handleComposition(event) {
918
- if (event.type === 'compositionstart') {
919
- setOnComposition(true);
920
- }
921
- if (event.type === 'compositionend') {
922
- setOnComposition(false);
923
- }
924
- }
925
- function handleClick(event) {
926
- onClick === null || onClick === void 0 ? void 0 : onClick(event);
927
- }
928
- function handleSubmit(event) {
929
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(event);
930
- }
931
- function handleFocus(event) {
932
- var _rootRef$current;
933
- (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
934
-
935
- //
936
- onFocus === null || onFocus === void 0 ? void 0 : onFocus(event, onComposition);
937
- }
938
- function handleChange(event) {
939
- var val = event.target.value;
940
- setChangedVal(val);
941
-
942
- //----
943
- //remove focus style
944
- if (val === '') {
945
- var _rootRef$current2;
946
- (_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
947
- }
948
-
949
- //
950
- onChange === null || onChange === void 0 ? void 0 : onChange(event, onComposition);
951
- }
952
- function handleBlur(event) {
953
- var el = event.target;
954
- var val = event.target.value;
955
-
956
- //----
957
- //remove focus style
958
- if (val === '') {
959
- var _rootRef$current3;
960
- (_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
961
- }
962
-
963
- //
964
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(event, onComposition);
965
- }
966
- function handleKeyPressed(event) {
967
- if (typeof onKeyPressedCallback === 'function') {
968
- var newData = onKeyPressedCallback(event);
969
- if (newData) setChangedVal(newData); // Avoid the error "react checkbox changing an uncontrolled input to be controlled"
970
- }
971
-
972
- if (event.code == "Enter") {
973
- // DO NOT USE "preventDefault()"
974
- onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(event, onComposition);
975
- }
976
- }
977
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
978
- // update default value
979
- //--------------
980
- setChangedVal(value || '');
981
- }, [value]);
982
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
983
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
984
- ref: rootRef
985
- }, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
986
- htmlFor: idRes,
987
- className: "form-label",
988
- dangerouslySetInnerHTML: {
989
- __html: "".concat(label)
990
- }
991
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
992
- htmlFor: idRes,
993
- className: "form-label"
994
- }, label)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
995
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('position-relative', (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupWrapperClassName, 'input-group'), {
996
- 'has-left-content': propExist(iconLeft),
997
- 'has-right-content': propExist(iconRight) || propExist(units)
998
- })
999
- }, propExist(iconLeft) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1000
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1001
- }, iconLeft)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", _extends({
1002
- ref: externalRef,
1003
- tabIndex: tabIndex || 0,
1004
- type: isSearchInput ? 'search' : 'text',
1005
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)(appearance === 'pill' ? "".concat((0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlClassName, 'form-control'), " border rounded-pill") : (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlClassName, 'form-control'), controlExClassName),
1006
- id: idRes,
1007
- name: name,
1008
- placeholder: placeholder || '',
1009
- value: changedVal,
1010
- minLength: minLength || null,
1011
- maxLength: maxLength || null,
1012
- autoComplete: typeof autoComplete === 'undefined' ? 'off' : autoComplete,
1013
- autoCapitalize: typeof autoCapitalize === 'undefined' ? 'off' : autoCapitalize,
1014
- spellCheck: typeof spellCheck === 'undefined' ? false : spellCheck,
1015
- onFocus: handleFocus,
1016
- onBlur: handleBlur,
1017
- onChange: handleChange,
1018
- onClick: handleClick,
1019
- onKeyDown: handleKeyPressed,
1020
- onCompositionStart: handleComposition,
1021
- onCompositionUpdate: handleComposition,
1022
- onCompositionEnd: handleComposition,
1023
- disabled: disabled || null,
1024
- readOnly: readOnly || null,
1025
- required: required || null,
1026
- style: style
1027
- }, attributes)), propExist(units) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1028
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1029
- }, units)) : null, propExist(iconRight) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1030
- className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(controlGroupTextClassName, 'input-group-text')
1031
- }, iconRight)) : null, icon || icon !== '' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
1032
- className: appearance === 'pill' ? 'position-absolute end-0' : 'input-group-text m-0 p-0 border-start-0',
1033
- style: appearance === 'pill' ? {
1034
- zIndex: 5
1035
- } : {}
1036
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
1037
- id: btnId,
1038
- type: "button",
1039
- className: appearance === 'pill' ? 'btn border-end-0 rounded-pill' : 'btn btn-sm',
1040
- onClick: handleSubmit
1041
- }, icon ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, icon) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
1042
- width: "1.2em",
1043
- height: "1.2em",
1044
- fill: "#333",
1045
- viewBox: "0 0 16 16"
1046
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
1047
- d: "M12.027 9.92L16 13.95 14 16l-4.075-3.976A6.465 6.465 0 0 1 6.5 13C2.91 13 0 10.083 0 6.5 0 2.91 2.917 0 6.5 0 10.09 0 13 2.917 13 6.5a6.463 6.463 0 0 1-.973 3.42zM1.997 6.452c0 2.48 2.014 4.5 4.5 4.5 2.48 0 4.5-2.015 4.5-4.5 0-2.48-2.015-4.5-4.5-4.5-2.48 0-4.5 2.014-4.5 4.5z",
1048
- fillRule: "evenodd"
1049
- })))))) : null)));
1050
- });
1051
- /* harmony default export */
1052
- var __WEBPACK_DEFAULT_EXPORT__ = SearchBar;
1053
- })();
1054
-
1055
- /******/
1056
- return __webpack_exports__;
1057
- /******/
1058
- }()
1059
- );
1060
- });
1061
-
1062
- /***/ }),
1063
-
1064
- /***/ 188:
1065
- /***/ (function(module, exports, __webpack_require__) {
1066
-
1067
- /* module decorator */ module = __webpack_require__.nmd(module);
1068
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "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; }, _typeof2(obj); }
1069
- (function webpackUniversalModuleDefinition(root, factory) {
1070
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1071
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1072
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1073
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
1074
- })(this, function () {
1075
- return (/******/function () {
1076
- // webpackBootstrap
1077
- /******/
1078
- "use strict";
1079
-
1080
- /******/ // The require scope
1081
- /******/
1082
- var __nested_webpack_require_993__ = {};
1083
- /******/
1084
- /************************************************************************/
1085
- /******/ /* webpack/runtime/define property getters */
1086
- /******/
1087
- (function () {
1088
- /******/ // define getter functions for harmony exports
1089
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
1090
- /******/for (var key in definition) {
1091
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
1092
- /******/Object.defineProperty(exports, key, {
1093
- enumerable: true,
1094
- get: definition[key]
1095
- });
1096
- /******/
1097
- }
1098
- /******/
1099
- }
1100
- /******/
1101
- };
1102
- /******/
1103
- })();
1104
- /******/
1105
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1106
- /******/
1107
- (function () {
1108
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
1109
- return Object.prototype.hasOwnProperty.call(obj, prop);
1110
- };
1111
- /******/
1112
- })();
1113
- /******/
1114
- /******/ /* webpack/runtime/make namespace object */
1115
- /******/
1116
- (function () {
1117
- /******/ // define __esModule on exports
1118
- /******/__nested_webpack_require_993__.r = function (exports) {
1119
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1120
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
1121
- value: 'Module'
1122
- });
1123
- /******/
1124
- }
1125
- /******/
1126
- Object.defineProperty(exports, '__esModule', {
1127
- value: true
1128
- });
1129
- /******/
1130
- };
1131
- /******/
1132
- })();
1133
- /******/
1134
- /************************************************************************/
1135
- var __webpack_exports__ = {};
1136
- __nested_webpack_require_993__.r(__webpack_exports__);
1137
- /* harmony export */
1138
- __nested_webpack_require_993__.d(__webpack_exports__, {
1139
- /* harmony export */"clsWrite": function clsWrite() {
1140
- return (/* binding */_clsWrite
1141
- );
1142
- },
1143
- /* harmony export */"combinedCls": function combinedCls() {
1144
- return (/* binding */_combinedCls
1145
- );
1146
- }
1147
- /* harmony export */
1148
- });
1149
- function _slicedToArray(arr, i) {
1150
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1151
- }
1152
- function _nonIterableRest() {
1153
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1154
- }
1155
- function _unsupportedIterableToArray(o, minLen) {
1156
- if (!o) return;
1157
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1158
- var n = Object.prototype.toString.call(o).slice(8, -1);
1159
- if (n === "Object" && o.constructor) n = o.constructor.name;
1160
- if (n === "Map" || n === "Set") return Array.from(o);
1161
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1162
- }
1163
- function _arrayLikeToArray(arr, len) {
1164
- if (len == null || len > arr.length) len = arr.length;
1165
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1166
- return arr2;
1167
- }
1168
- function _iterableToArrayLimit(arr, i) {
1169
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
1170
- if (null != _i) {
1171
- var _s,
1172
- _e,
1173
- _x,
1174
- _r,
1175
- _arr = [],
1176
- _n = !0,
1177
- _d = !1;
1178
- try {
1179
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
1180
- if (Object(_i) !== _i) return;
1181
- _n = !1;
1182
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
1183
- } catch (err) {
1184
- _d = !0, _e = err;
1185
- } finally {
1186
- try {
1187
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
1188
- } finally {
1189
- if (_d) throw _e;
1190
- }
1191
- }
1192
- return _arr;
1193
- }
1194
- }
1195
- function _arrayWithHoles(arr) {
1196
- if (Array.isArray(arr)) return arr;
1197
- }
1198
- function _typeof(obj) {
1199
- "@babel/helpers - typeof";
1200
-
1201
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1202
- return typeof obj;
1203
- } : function (obj) {
1204
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1205
- }, _typeof(obj);
1206
- }
1207
- /**
1208
- * Output of class name
1209
- * @param {*} s - Any
1210
- * @param {String} defaultCls - Default string
1211
- * @param {?*} targetCls - Any
1212
- * @returns {*}
1213
- */
1214
- function _clsWrite(s, defaultCls) {
1215
- var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
1216
- return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
1217
- }
1218
-
1219
- /**
1220
- * Combined classnames
1221
- * @param {*} args
1222
- * @returns {String|undefined}
1223
- */
1224
- /* Usage:
1225
-
1226
- console.log(combinedCls('a-1', 'a-2', 'a-3', {
1227
- 'p-1': null,
1228
- 'p-2': undefined,
1229
- 'p-3': true,
1230
- 'p-4': false,
1231
- 'p-5': 'kkk',
1232
- 'p-6': 0,
1233
- 'p-7': 1,
1234
- 'p-8': '',
1235
- undefined
1236
- })); // a-1 a-2 a-3 p-3 p-5 p-7
1237
- */
1238
- function _combinedCls() {
1239
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1240
- args[_key] = arguments[_key];
1241
- }
1242
- if (args) {
1243
- var classes = [];
1244
- for (var i = 0; i < args.length; i++) {
1245
- var className = args[i];
1246
- if (!className) {
1247
- continue;
1248
- }
1249
- var type = _typeof(className);
1250
- if (type === 'string' || type === 'number') {
1251
- classes.push(className);
1252
- } else if (type === 'object') {
1253
- var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
1254
- var _ref2 = _slicedToArray(_ref, 2),
1255
- key = _ref2[0],
1256
- value = _ref2[1];
1257
- return value ? key : null;
1258
- });
1259
- classes = _classes.length ? classes.concat(_classes.filter(function (c) {
1260
- return !!c;
1261
- })) : classes;
1262
- }
1263
- }
1264
- return classes.join(' ').trim();
1265
- }
1266
- return undefined;
1267
- }
1268
-
1269
- /******/
1270
- return __webpack_exports__;
1271
- /******/
1272
- }()
1273
- );
1274
- });
1275
-
1276
- /***/ }),
1277
-
1278
- /***/ 767:
1279
- /***/ (function(module, exports, __webpack_require__) {
1280
-
1281
- /* module decorator */ module = __webpack_require__.nmd(module);
1282
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "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; }, _typeof2(obj); }
1283
- (function webpackUniversalModuleDefinition(root, factory) {
1284
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1285
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1286
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1287
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
1288
- })(this, function () {
1289
- return (/******/function () {
1290
- // webpackBootstrap
1291
- /******/
1292
- "use strict";
1293
-
1294
- /******/ // The require scope
1295
- /******/
1296
- var __nested_webpack_require_993__ = {};
1297
- /******/
1298
- /************************************************************************/
1299
- /******/ /* webpack/runtime/define property getters */
1300
- /******/
1301
- (function () {
1302
- /******/ // define getter functions for harmony exports
1303
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
1304
- /******/for (var key in definition) {
1305
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
1306
- /******/Object.defineProperty(exports, key, {
1307
- enumerable: true,
1308
- get: definition[key]
1309
- });
1310
- /******/
1311
- }
1312
- /******/
1313
- }
1314
- /******/
1315
- };
1316
- /******/
1317
- })();
1318
- /******/
1319
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1320
- /******/
1321
- (function () {
1322
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
1323
- return Object.prototype.hasOwnProperty.call(obj, prop);
1324
- };
1325
- /******/
1326
- })();
1327
- /******/
1328
- /******/ /* webpack/runtime/make namespace object */
1329
- /******/
1330
- (function () {
1331
- /******/ // define __esModule on exports
1332
- /******/__nested_webpack_require_993__.r = function (exports) {
1333
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1334
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
1335
- value: 'Module'
1336
- });
1337
- /******/
1338
- }
1339
- /******/
1340
- Object.defineProperty(exports, '__esModule', {
1341
- value: true
1342
- });
1343
- /******/
1344
- };
1345
- /******/
1346
- })();
1347
- /******/
1348
- /************************************************************************/
1349
- var __webpack_exports__ = {};
1350
- __nested_webpack_require_993__.r(__webpack_exports__);
1351
- /* harmony export */
1352
- __nested_webpack_require_993__.d(__webpack_exports__, {
1353
- /* harmony export */"getAbsoluteCoordinates": function getAbsoluteCoordinates() {
1354
- return (/* binding */_getAbsoluteCoordinates
1355
- );
1356
- },
1357
- /* harmony export */"getAbsolutePositionOfStage": function getAbsolutePositionOfStage() {
1358
- return (/* binding */_getAbsolutePositionOfStage
1359
- );
1360
- },
1361
- /* harmony export */"getOffset": function getOffset() {
1362
- return (/* binding */_getOffset
1363
- );
1364
- },
1365
- /* harmony export */"getPosition": function getPosition() {
1366
- return (/* binding */_getPosition
1367
- );
1368
- },
1369
- /* harmony export */"getTransitionDuration": function getTransitionDuration() {
1370
- return (/* binding */_getTransitionDuration
1371
- );
1372
- }
1373
- /* harmony export */
1374
- });
1375
- function _typeof(obj) {
1376
- "@babel/helpers - typeof";
1377
-
1378
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1379
- return typeof obj;
1380
- } : function (obj) {
1381
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1382
- }, _typeof(obj);
1383
- }
1384
- /**
1385
- * Get the -webkit-transition-duration property
1386
- *
1387
- * @param {HTMLElement} el - A DOM node containing one selector to match against.
1388
- * @return {number} - Returns a pure number.
1389
- */
1390
- function _getTransitionDuration(el) {
1391
- if (_typeof(el) === ( true ? "undefined" : 0)) {
1392
- return 0;
1393
- }
1394
- var style = window.getComputedStyle(el),
1395
- duration = style.webkitTransitionDuration,
1396
- delay = style.webkitTransitionDelay;
1397
- if (_typeof(duration) != ( true ? "undefined" : 0)) {
1398
- // fix miliseconds vs seconds
1399
- duration = duration.indexOf("ms") > -1 ? parseFloat(duration) : parseFloat(duration) * 1000;
1400
- delay = delay.indexOf("ms") > -1 ? parseFloat(delay) : parseFloat(delay) * 1000;
1401
- return duration;
1402
- } else {
1403
- return 0;
1404
- }
1405
- }
1406
-
1407
- /**
1408
- * Get an object's absolute position on the page
1409
- *
1410
- * @param {HTMLElement} el - A DOM node containing one selector to match against.
1411
- * @return {Json} - An object containing the properties top and left.
1412
- */
1413
- function _getAbsoluteCoordinates(el) {
1414
- var windowWidth = window.innerWidth,
1415
- leftPos = null,
1416
- topPos = null;
1417
- var pEl = el.parentElement;
1418
- if (!document.getElementsByTagName('body')[0].className.match(/rtl/)) {
1419
- leftPos = el.offsetLeft == 0 ? pEl.offsetLeft : el.offsetLeft;
1420
- topPos = el.offsetTop == 0 ? pEl.offsetTop : el.offsetTop;
1421
- } else {
1422
- // width and height in pixels, including padding and border
1423
- // Corresponds to outerWidth(), outerHeight()
1424
- leftPos = el.offsetLeft == 0 ? windowWidth - (pEl.offsetLeft + pEl.offsetWidth) : windowWidth - (el.offsetLeft + el.offsetWidth);
1425
- topPos = el.offsetTop == 0 ? windowWidth - (pEl.offsetTop + pEl.offsetHeight) : windowWidth - (el.offsetTop + el.offsetHeight);
1426
- }
1427
- return {
1428
- 'left': leftPos,
1429
- 'top': topPos
1430
- };
1431
- }
1432
-
1433
- /**
1434
- * Get the current coordinates of the first element in the set of matched elements, relative to the document.
1435
- *
1436
- * @param {Element} el - A DOM node containing one selector to match against.
1437
- * @return {Json} - An object containing the properties top and left.
1438
- */
1439
- function _getOffset(el) {
1440
- var res = {
1441
- top: 0,
1442
- left: 0
1443
- };
1444
- var box = el.getBoundingClientRect();
1445
- var top = 0,
1446
- left = 0;
1447
-
1448
- //Include scrollbar and border
1449
- top = box.top + window.pageYOffset - document.documentElement.clientTop;
1450
- left = box.left + window.pageXOffset - document.documentElement.clientLeft;
1451
- res = {
1452
- top: top,
1453
- left: left
1454
- };
1455
- return res;
1456
- }
1457
-
1458
- /**
1459
- * Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
1460
- *
1461
- * @param {HTMLElement} el - A DOM node containing one selector to match against.
1462
- * @return {Json} - An object containing the properties top and left.
1463
- */
1464
- function _getPosition(el) {
1465
- var res = {
1466
- top: 0,
1467
- left: 0
1468
- };
1469
- var top = el.offsetTop ? el.offsetTop : 0,
1470
- left = el.offsetLeft ? el.offsetLeft : 0;
1471
- res = {
1472
- top: top,
1473
- left: left
1474
- };
1475
- return res;
1476
- }
1477
-
1478
- /**
1479
- * Get the absolute position of the stage element
1480
- *
1481
- * @param {HTMLElement} domElement - A DOM node
1482
- * @param {Number | string} left - left offset
1483
- * @param {Number | string} top - top offset
1484
- * @returns
1485
- */
1486
- function _getAbsolutePositionOfStage(domElement) {
1487
- var left = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
1488
- var top = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
1489
- if (!parseInt(left)) {
1490
- left = 0;
1491
- } else {
1492
- left = parseInt(left);
1493
- }
1494
- if (!parseInt(top)) {
1495
- top = 0;
1496
- } else {
1497
- top = parseInt(top);
1498
- }
1499
- var box = domElement.getBoundingClientRect();
1500
- var body = document.body;
1501
- var docElem = document.documentElement;
1502
- var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop;
1503
- var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft;
1504
- var clientTop = docElem.clientTop || body.clientTop || 0;
1505
- var clientLeft = docElem.clientLeft || body.clientLeft || 0;
1506
- var attr = {};
1507
- attr.y = box.top + scrollTop - clientTop + top;
1508
- attr.x = box.left + scrollLeft - clientLeft + left;
1509
- attr.width = box.width;
1510
- attr.height = box.height;
1511
- return attr;
1512
- }
1513
-
1514
- /******/
1515
- return __webpack_exports__;
1516
- /******/
1517
- }()
1518
- );
1519
- });
1520
-
1521
- /***/ }),
1522
-
1523
- /***/ 186:
1524
- /***/ (function(module, exports, __webpack_require__) {
1525
-
1526
- /* module decorator */ module = __webpack_require__.nmd(module);
1527
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof2(obj) { "@babel/helpers - typeof"; return _typeof2 = "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; }, _typeof2(obj); }
1528
- (function webpackUniversalModuleDefinition(root, factory) {
1529
- if (( false ? 0 : _typeof2(exports)) === 'object' && ( false ? 0 : _typeof2(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1530
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1531
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1532
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
1533
- })(this, function () {
1534
- return (/******/function () {
1535
- // webpackBootstrap
1536
- /******/
1537
- "use strict";
1538
-
1539
- /******/ // The require scope
1540
- /******/
1541
- var __nested_webpack_require_993__ = {};
1542
- /******/
1543
- /************************************************************************/
1544
- /******/ /* webpack/runtime/define property getters */
1545
- /******/
1546
- (function () {
1547
- /******/ // define getter functions for harmony exports
1548
- /******/__nested_webpack_require_993__.d = function (exports, definition) {
1549
- /******/for (var key in definition) {
1550
- /******/if (__nested_webpack_require_993__.o(definition, key) && !__nested_webpack_require_993__.o(exports, key)) {
1551
- /******/Object.defineProperty(exports, key, {
1552
- enumerable: true,
1553
- get: definition[key]
1554
- });
1555
- /******/
1556
- }
1557
- /******/
1558
- }
1559
- /******/
1560
- };
1561
- /******/
1562
- })();
1563
- /******/
1564
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1565
- /******/
1566
- (function () {
1567
- /******/__nested_webpack_require_993__.o = function (obj, prop) {
1568
- return Object.prototype.hasOwnProperty.call(obj, prop);
1569
- };
1570
- /******/
1571
- })();
1572
- /******/
1573
- /******/ /* webpack/runtime/make namespace object */
1574
- /******/
1575
- (function () {
1576
- /******/ // define __esModule on exports
1577
- /******/__nested_webpack_require_993__.r = function (exports) {
1578
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1579
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
1580
- value: 'Module'
1581
- });
1582
- /******/
1583
- }
1584
- /******/
1585
- Object.defineProperty(exports, '__esModule', {
1586
- value: true
1587
- });
1588
- /******/
1589
- };
1590
- /******/
1591
- })();
1592
- /******/
1593
- /************************************************************************/
1594
- var __webpack_exports__ = {};
1595
- __nested_webpack_require_993__.r(__webpack_exports__);
1596
- /* harmony export */
1597
- __nested_webpack_require_993__.d(__webpack_exports__, {
1598
- /* harmony export */"isJSON": function isJSON() {
1599
- return (/* binding */_isJSON
1600
- );
1601
- },
1602
- /* harmony export */"isValidNumeric": function isValidNumeric() {
1603
- return (/* binding */_isValidNumeric
1604
- );
1605
- },
1606
- /* harmony export */"setDefaultOptions": function setDefaultOptions() {
1607
- return (/* binding */_setDefaultOptions
1608
- );
1609
- }
1610
- /* harmony export */
1611
- });
1612
- function _typeof(obj) {
1613
- "@babel/helpers - typeof";
1614
-
1615
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1616
- return typeof obj;
1617
- } : function (obj) {
1618
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1619
- }, _typeof(obj);
1620
- }
1621
- /**
1622
- * Set a default JSON format configuration
1623
- *
1624
- * @param {*} props - Set some default keys and values.
1625
- * @param {*} options - A JSON variable passed in from outside, including key and value.
1626
- * @return {JSON} - Merge the new and old values.
1627
- */
1628
- function _setDefaultOptions(props, options) {
1629
- if (_typeof(options) === ( true ? "undefined" : 0) || options === null || options === false) options = {};
1630
- //Set a default configuration
1631
- if (_isJSON(props)) {
1632
- var defaultConfigValues = Object.values(props);
1633
- Object.keys(props).forEach(function (prop, index) {
1634
- // Well-formed string type
1635
- Object.keys(options).forEach(function (prop2, index2) {
1636
- if (prop2 === prop) {
1637
- var _v = options[prop2];
1638
- if (_v == 'true') _v = true;
1639
- if (_v == 'false') _v = false;
1640
- if (_isValidNumeric(_v)) _v = parseFloat(_v);
1641
- if (_isJSON(_v)) _v = Object.prototype.toString.call(_v) === '[object Object]' ? _v : JSON.parse(_v);
1642
- options[prop2] = _v;
1643
- }
1644
- });
1645
-
1646
- //
1647
- if (_typeof(options[prop]) === ( true ? "undefined" : 0) || options[prop] === null) options[prop] = defaultConfigValues[index];
1648
- });
1649
- }
1650
- return options;
1651
- }
1652
-
1653
- /**
1654
- * Check if a string is a valid number
1655
- * @param {*} str
1656
- * @returns
1657
- */
1658
- function _isValidNumeric(str) {
1659
- if (typeof str != "string") return false; // we only process strings!
1660
- if (!isNaN(Number(str)) &&
1661
- // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)
1662
- !isNaN(parseFloat(str)) // ensure strings of whitespace fail
1663
- ) {
1664
- return true;
1665
- } else {
1666
- return false;
1667
- }
1668
- }
1669
-
1670
- /**
1671
- * Determine whether it is in JSON format
1672
- * @param {*} str
1673
- * @returns
1674
- */
1675
- function _isJSON(str) {
1676
- if (typeof str === 'string' && str.length > 0) {
1677
- if (str.replace(/\"\"/g, '').replace(/\,/g, '') == '[{}]') {
1678
- return false;
1679
- } else {
1680
- if (/^[\],:{}\s]*$/.test(str.replace(/\\["\\\/bfnrtu]/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
1681
- return true;
1682
- } else {
1683
- return false;
1684
- }
1685
- }
1686
- } else {
1687
- if (_typeof(str) === 'object' && Object.prototype.toString.call(str) === '[object Object]' && !str.length) {
1688
- return true;
1689
- } else {
1690
- return false;
1691
- }
1692
- }
1693
- }
1694
-
1695
- /******/
1696
- return __webpack_exports__;
1697
- /******/
1698
- }()
1699
- );
1700
- });
1701
-
1702
- /***/ }),
1703
-
1704
- /***/ 761:
1705
- /***/ (function(module, exports, __webpack_require__) {
1706
-
1707
- /* module decorator */ module = __webpack_require__.nmd(module);
1708
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
1709
- (function webpackUniversalModuleDefinition(root, factory) {
1710
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1711
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1712
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1713
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
1714
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
1715
- return (/******/function () {
1716
- // webpackBootstrap
1717
- /******/
1718
- "use strict";
1719
-
1720
- /******/
1721
- var __webpack_modules__ = {
1722
- /***/787: /***/function _(module) {
1723
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
1724
-
1725
- /***/
1726
- }
1727
-
1728
- /******/
1729
- };
1730
- /************************************************************************/
1731
- /******/ // The module cache
1732
- /******/
1733
- var __webpack_module_cache__ = {};
1734
- /******/
1735
- /******/ // The require function
1736
- /******/
1737
- function __nested_webpack_require_1465__(moduleId) {
1738
- /******/ // Check if module is in cache
1739
- /******/var cachedModule = __webpack_module_cache__[moduleId];
1740
- /******/
1741
- if (cachedModule !== undefined) {
1742
- /******/return cachedModule.exports;
1743
- /******/
1744
- }
1745
- /******/ // Create a new module (and put it into the cache)
1746
- /******/
1747
- var module = __webpack_module_cache__[moduleId] = {
1748
- /******/ // no module.id needed
1749
- /******/ // no module.loaded needed
1750
- /******/exports: {}
1751
- /******/
1752
- };
1753
- /******/
1754
- /******/ // Execute the module function
1755
- /******/
1756
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
1757
- /******/
1758
- /******/ // Return the exports of the module
1759
- /******/
1760
- return module.exports;
1761
- /******/
1762
- }
1763
- /******/
1764
- /************************************************************************/
1765
- /******/ /* webpack/runtime/compat get default export */
1766
- /******/
1767
- (function () {
1768
- /******/ // getDefaultExport function for compatibility with non-harmony modules
1769
- /******/__nested_webpack_require_1465__.n = function (module) {
1770
- /******/var getter = module && module.__esModule ? /******/function () {
1771
- return module['default'];
1772
- } : /******/function () {
1773
- return module;
1774
- };
1775
- /******/
1776
- __nested_webpack_require_1465__.d(getter, {
1777
- a: getter
1778
- });
1779
- /******/
1780
- return getter;
1781
- /******/
1782
- };
1783
- /******/
1784
- })();
1785
- /******/
1786
- /******/ /* webpack/runtime/define property getters */
1787
- /******/
1788
- (function () {
1789
- /******/ // define getter functions for harmony exports
1790
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
1791
- /******/for (var key in definition) {
1792
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
1793
- /******/Object.defineProperty(exports, key, {
1794
- enumerable: true,
1795
- get: definition[key]
1796
- });
1797
- /******/
1798
- }
1799
- /******/
1800
- }
1801
- /******/
1802
- };
1803
- /******/
1804
- })();
1805
- /******/
1806
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
1807
- /******/
1808
- (function () {
1809
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
1810
- return Object.prototype.hasOwnProperty.call(obj, prop);
1811
- };
1812
- /******/
1813
- })();
1814
- /******/
1815
- /******/ /* webpack/runtime/make namespace object */
1816
- /******/
1817
- (function () {
1818
- /******/ // define __esModule on exports
1819
- /******/__nested_webpack_require_1465__.r = function (exports) {
1820
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1821
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
1822
- value: 'Module'
1823
- });
1824
- /******/
1825
- }
1826
- /******/
1827
- Object.defineProperty(exports, '__esModule', {
1828
- value: true
1829
- });
1830
- /******/
1831
- };
1832
- /******/
1833
- })();
1834
- /******/
1835
- /************************************************************************/
1836
- var __webpack_exports__ = {};
1837
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1838
- (function () {
1839
- __nested_webpack_require_1465__.r(__webpack_exports__);
1840
- /* harmony export */
1841
- __nested_webpack_require_1465__.d(__webpack_exports__, {
1842
- /* harmony export */"default": function _default() {
1843
- return __WEBPACK_DEFAULT_EXPORT__;
1844
- }
1845
- /* harmony export */
1846
- });
1847
- /* harmony import */
1848
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
1849
- /* harmony import */
1850
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1851
- function _toConsumableArray(arr) {
1852
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1853
- }
1854
- function _nonIterableSpread() {
1855
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1856
- }
1857
- function _unsupportedIterableToArray(o, minLen) {
1858
- if (!o) return;
1859
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1860
- var n = Object.prototype.toString.call(o).slice(8, -1);
1861
- if (n === "Object" && o.constructor) n = o.constructor.name;
1862
- if (n === "Map" || n === "Set") return Array.from(o);
1863
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1864
- }
1865
- function _iterableToArray(iter) {
1866
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1867
- }
1868
- function _arrayWithoutHoles(arr) {
1869
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1870
- }
1871
- function _arrayLikeToArray(arr, len) {
1872
- if (len == null || len > arr.length) len = arr.length;
1873
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1874
- return arr2;
1875
- }
1876
- /**
1877
- * Handles the event of clicking outside of the wrapped component
1878
- *
1879
- * @usage:
1880
-
1881
- const App = () => {
1882
-
1883
- const [show, setShow] = useState<boolean>(false);
1884
- const dropdownRef = useRef<HTMLDivElement>(null);
1885
-
1886
- useClickOutside({
1887
- enabled: show && dropdownRef.current,
1888
- isOutside: (event: any) => {
1889
- return event.target.closest(`.test__wrapper`) === null && event.target.closest(`.test__wrapper2`) === null;
1890
- },
1891
- handle: (event: any) => {
1892
- // do something
1893
- //...
1894
- },
1895
- spyElement: document
1896
- }, [show, dropdownRef]);
1897
- };
1898
-
1899
- */
1900
-
1901
- function useClickOutside(_ref, deps) {
1902
- var enabled = _ref.enabled,
1903
- isOutside = _ref.isOutside,
1904
- handle = _ref.handle,
1905
- _ref$spyElement = _ref.spyElement,
1906
- spyElement = _ref$spyElement === void 0 ? typeof document === 'undefined' ? null : document : _ref$spyElement;
1907
- var isOutsideRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(isOutside);
1908
- var handleRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(handle);
1909
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
1910
- isOutsideRef.current = isOutside;
1911
-
1912
- // fix possible issue if clicking on a focusable element
1913
- handleRef.current = handle;
1914
- }, [isOutside, handle]);
1915
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
1916
- if (enabled) {
1917
- var eventHandler = function eventHandler(event) {
1918
- var _isOutsideRef$current;
1919
- if ((_isOutsideRef$current = isOutsideRef.current) !== null && _isOutsideRef$current !== void 0 && _isOutsideRef$current.call(isOutsideRef, event)) {
1920
- var _handleRef$current;
1921
- (_handleRef$current = handleRef.current) === null || _handleRef$current === void 0 ? void 0 : _handleRef$current.call(handleRef, event);
1922
- }
1923
- };
1924
- spyElement === null || spyElement === void 0 ? void 0 : spyElement.addEventListener('pointerdown', eventHandler);
1925
- return function () {
1926
- spyElement === null || spyElement === void 0 ? void 0 : spyElement.removeEventListener('pointerdown', eventHandler);
1927
- };
1928
- }
1929
- }, [enabled].concat(_toConsumableArray(deps)));
1930
- }
1931
- /* harmony default export */
1932
- var __WEBPACK_DEFAULT_EXPORT__ = useClickOutside;
1933
- })();
1934
-
1935
- /******/
1936
- return __webpack_exports__;
1937
- /******/
1938
- }()
1939
- );
1940
- });
1941
-
1942
- /***/ }),
1943
-
1944
- /***/ 85:
1945
- /***/ (function(module, exports, __webpack_require__) {
1946
-
1947
- /* module decorator */ module = __webpack_require__.nmd(module);
1948
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
1949
- (function webpackUniversalModuleDefinition(root, factory) {
1950
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1951
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1952
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1953
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
1954
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
1955
- return (/******/function () {
1956
- // webpackBootstrap
1957
- /******/
1958
- "use strict";
1959
-
1960
- /******/
1961
- var __webpack_modules__ = {
1962
- /***/787: /***/function _(module) {
1963
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
1964
-
1965
- /***/
1966
- }
1967
-
1968
- /******/
1969
- };
1970
- /************************************************************************/
1971
- /******/ // The module cache
1972
- /******/
1973
- var __webpack_module_cache__ = {};
1974
- /******/
1975
- /******/ // The require function
1976
- /******/
1977
- function __nested_webpack_require_1465__(moduleId) {
1978
- /******/ // Check if module is in cache
1979
- /******/var cachedModule = __webpack_module_cache__[moduleId];
1980
- /******/
1981
- if (cachedModule !== undefined) {
1982
- /******/return cachedModule.exports;
1983
- /******/
1984
- }
1985
- /******/ // Create a new module (and put it into the cache)
1986
- /******/
1987
- var module = __webpack_module_cache__[moduleId] = {
1988
- /******/ // no module.id needed
1989
- /******/ // no module.loaded needed
1990
- /******/exports: {}
1991
- /******/
1992
- };
1993
- /******/
1994
- /******/ // Execute the module function
1995
- /******/
1996
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
1997
- /******/
1998
- /******/ // Return the exports of the module
1999
- /******/
2000
- return module.exports;
2001
- /******/
2002
- }
2003
- /******/
2004
- /************************************************************************/
2005
- /******/ /* webpack/runtime/compat get default export */
2006
- /******/
2007
- (function () {
2008
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2009
- /******/__nested_webpack_require_1465__.n = function (module) {
2010
- /******/var getter = module && module.__esModule ? /******/function () {
2011
- return module['default'];
2012
- } : /******/function () {
2013
- return module;
2014
- };
2015
- /******/
2016
- __nested_webpack_require_1465__.d(getter, {
2017
- a: getter
2018
- });
2019
- /******/
2020
- return getter;
2021
- /******/
2022
- };
2023
- /******/
2024
- })();
2025
- /******/
2026
- /******/ /* webpack/runtime/define property getters */
2027
- /******/
2028
- (function () {
2029
- /******/ // define getter functions for harmony exports
2030
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
2031
- /******/for (var key in definition) {
2032
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
2033
- /******/Object.defineProperty(exports, key, {
2034
- enumerable: true,
2035
- get: definition[key]
2036
- });
2037
- /******/
2038
- }
2039
- /******/
2040
- }
2041
- /******/
2042
- };
2043
- /******/
2044
- })();
2045
- /******/
2046
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2047
- /******/
2048
- (function () {
2049
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
2050
- return Object.prototype.hasOwnProperty.call(obj, prop);
2051
- };
2052
- /******/
2053
- })();
2054
- /******/
2055
- /******/ /* webpack/runtime/make namespace object */
2056
- /******/
2057
- (function () {
2058
- /******/ // define __esModule on exports
2059
- /******/__nested_webpack_require_1465__.r = function (exports) {
2060
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2061
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
2062
- value: 'Module'
2063
- });
2064
- /******/
2065
- }
2066
- /******/
2067
- Object.defineProperty(exports, '__esModule', {
2068
- value: true
2069
- });
2070
- /******/
2071
- };
2072
- /******/
2073
- })();
2074
- /******/
2075
- /************************************************************************/
2076
- var __webpack_exports__ = {};
2077
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2078
- (function () {
2079
- __nested_webpack_require_1465__.r(__webpack_exports__);
2080
- /* harmony export */
2081
- __nested_webpack_require_1465__.d(__webpack_exports__, {
2082
- /* harmony export */"default": function _default() {
2083
- return __WEBPACK_DEFAULT_EXPORT__;
2084
- }
2085
- /* harmony export */
2086
- });
2087
- /* harmony import */
2088
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
2089
- /* harmony import */
2090
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2091
- /**
2092
- * Create an available ID
2093
- *
2094
- */
2095
-
2096
- var useComId = function useComId() {
2097
- return "ID-".concat((0, react__WEBPACK_IMPORTED_MODULE_0__.useId)().replace(/\:/g, "-"));
2098
- };
2099
- /* harmony default export */
2100
- var __WEBPACK_DEFAULT_EXPORT__ = useComId;
2101
- })();
2102
-
2103
- /******/
2104
- return __webpack_exports__;
2105
- /******/
2106
- }()
2107
- );
2108
- });
2109
-
2110
- /***/ }),
2111
-
2112
- /***/ 702:
2113
- /***/ (function(module, exports, __webpack_require__) {
2114
-
2115
- /* module decorator */ module = __webpack_require__.nmd(module);
2116
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
2117
- (function webpackUniversalModuleDefinition(root, factory) {
2118
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2119
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2120
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
2121
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
2122
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
2123
- return (/******/function () {
2124
- // webpackBootstrap
2125
- /******/
2126
- "use strict";
2127
-
2128
- /******/
2129
- var __webpack_modules__ = {
2130
- /***/787: /***/function _(module) {
2131
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
2132
-
2133
- /***/
2134
- }
2135
-
2136
- /******/
2137
- };
2138
- /************************************************************************/
2139
- /******/ // The module cache
2140
- /******/
2141
- var __webpack_module_cache__ = {};
2142
- /******/
2143
- /******/ // The require function
2144
- /******/
2145
- function __nested_webpack_require_1465__(moduleId) {
2146
- /******/ // Check if module is in cache
2147
- /******/var cachedModule = __webpack_module_cache__[moduleId];
2148
- /******/
2149
- if (cachedModule !== undefined) {
2150
- /******/return cachedModule.exports;
2151
- /******/
2152
- }
2153
- /******/ // Create a new module (and put it into the cache)
2154
- /******/
2155
- var module = __webpack_module_cache__[moduleId] = {
2156
- /******/ // no module.id needed
2157
- /******/ // no module.loaded needed
2158
- /******/exports: {}
2159
- /******/
2160
- };
2161
- /******/
2162
- /******/ // Execute the module function
2163
- /******/
2164
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_1465__);
2165
- /******/
2166
- /******/ // Return the exports of the module
2167
- /******/
2168
- return module.exports;
2169
- /******/
2170
- }
2171
- /******/
2172
- /************************************************************************/
2173
- /******/ /* webpack/runtime/compat get default export */
2174
- /******/
2175
- (function () {
2176
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2177
- /******/__nested_webpack_require_1465__.n = function (module) {
2178
- /******/var getter = module && module.__esModule ? /******/function () {
2179
- return module['default'];
2180
- } : /******/function () {
2181
- return module;
2182
- };
2183
- /******/
2184
- __nested_webpack_require_1465__.d(getter, {
2185
- a: getter
2186
- });
2187
- /******/
2188
- return getter;
2189
- /******/
2190
- };
2191
- /******/
2192
- })();
2193
- /******/
2194
- /******/ /* webpack/runtime/define property getters */
2195
- /******/
2196
- (function () {
2197
- /******/ // define getter functions for harmony exports
2198
- /******/__nested_webpack_require_1465__.d = function (exports, definition) {
2199
- /******/for (var key in definition) {
2200
- /******/if (__nested_webpack_require_1465__.o(definition, key) && !__nested_webpack_require_1465__.o(exports, key)) {
2201
- /******/Object.defineProperty(exports, key, {
2202
- enumerable: true,
2203
- get: definition[key]
2204
- });
2205
- /******/
2206
- }
2207
- /******/
2208
- }
2209
- /******/
2210
- };
2211
- /******/
2212
- })();
2213
- /******/
2214
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2215
- /******/
2216
- (function () {
2217
- /******/__nested_webpack_require_1465__.o = function (obj, prop) {
2218
- return Object.prototype.hasOwnProperty.call(obj, prop);
2219
- };
2220
- /******/
2221
- })();
2222
- /******/
2223
- /******/ /* webpack/runtime/make namespace object */
2224
- /******/
2225
- (function () {
2226
- /******/ // define __esModule on exports
2227
- /******/__nested_webpack_require_1465__.r = function (exports) {
2228
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2229
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
2230
- value: 'Module'
2231
- });
2232
- /******/
2233
- }
2234
- /******/
2235
- Object.defineProperty(exports, '__esModule', {
2236
- value: true
2237
- });
2238
- /******/
2239
- };
2240
- /******/
2241
- })();
2242
- /******/
2243
- /************************************************************************/
2244
- var __webpack_exports__ = {};
2245
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2246
- (function () {
2247
- __nested_webpack_require_1465__.r(__webpack_exports__);
2248
- /* harmony export */
2249
- __nested_webpack_require_1465__.d(__webpack_exports__, {
2250
- /* harmony export */"default": function _default() {
2251
- return __WEBPACK_DEFAULT_EXPORT__;
2252
- }
2253
- /* harmony export */
2254
- });
2255
- /* harmony import */
2256
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_1465__(787);
2257
- /* harmony import */
2258
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_1465__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2259
- /**
2260
- * Delay the execution of function or state update
2261
- *
2262
- * @usage:
2263
-
2264
- const App = () => {
2265
- const [count, setCount] = useState(0);
2266
- const handleClick = useDebounce(() => setCount(count + 1), 500, [count]);
2267
-
2268
- return (
2269
- <div className="app">
2270
- <button onClick={handleClick}>click</button>
2271
- <p>click {count} time</p>
2272
- </div>
2273
- );
2274
- };
2275
-
2276
- */
2277
-
2278
- var useDebounce = function useDebounce(fn, delay, dependence) {
2279
- var ref = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2280
- return (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
2281
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2282
- args[_key] = arguments[_key];
2283
- }
2284
- clearTimeout(ref.current);
2285
- ref.current = null;
2286
- ref.current = setTimeout(function () {
2287
- fn.apply(void 0, args);
2288
- }, delay);
2289
- }, dependence);
2290
- };
2291
- /* harmony default export */
2292
- var __WEBPACK_DEFAULT_EXPORT__ = useDebounce;
2293
- })();
2294
-
2295
- /******/
2296
- return __webpack_exports__;
2297
- /******/
2298
- }()
2299
- );
2300
- });
2301
-
2302
- /***/ }),
2303
-
2304
- /***/ 499:
2305
- /***/ (function(module, exports, __webpack_require__) {
2306
-
2307
- /* module decorator */ module = __webpack_require__.nmd(module);
2308
- var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;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); }
2309
- (function webpackUniversalModuleDefinition(root, factory) {
2310
- if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory(__webpack_require__(787));else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(787)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
2311
- __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
2312
- (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
2313
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
2314
- })(this, function (__WEBPACK_EXTERNAL_MODULE__787__) {
2315
- return (/******/function () {
2316
- // webpackBootstrap
2317
- /******/
2318
- "use strict";
2319
-
2320
- /******/
2321
- var __webpack_modules__ = {
2322
- /***/318: /***/function _(__unused_webpack_module, __webpack_exports__, __nested_webpack_require_1139__) {
2323
- /* harmony export */__nested_webpack_require_1139__.d(__webpack_exports__, {
2324
- /* harmony export */"debounce": function debounce() {
2325
- return (/* binding */_debounce
2326
- );
2327
- },
2328
- /* harmony export */"throttle": function throttle() {
2329
- return (/* binding */_throttle
2330
- );
2331
- }
2332
- /* harmony export */
2333
- });
2334
- /*
2335
- * Debounce
2336
- *
2337
- * @param {Function} fn - A function to be executed within the time limit.
2338
- * @param {Number} limit - Waiting time.
2339
- * @return {*} - Returns a new function.
2340
- */
2341
- function _debounce(fn) {
2342
- var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
2343
- var timer;
2344
- return function () {
2345
- clearTimeout(timer);
2346
- timer = setTimeout(function () {
2347
- fn.apply(this, arguments);
2348
- }, limit);
2349
- };
2350
- }
2351
-
2352
- /*
2353
- * Throttle
2354
- *
2355
- * @param {Function} fn - A function to be executed within the time limit.
2356
- * @param {Number} limit - Waiting time.
2357
- * @return {*} - Returns a new function.
2358
- */
2359
- function _throttle(fn) {
2360
- var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
2361
- var waiting = false;
2362
- return function () {
2363
- if (!waiting) {
2364
- fn.apply(this, arguments);
2365
- waiting = true;
2366
- setTimeout(function () {
2367
- waiting = false;
2368
- }, limit);
2369
- }
2370
- };
2371
- }
2372
-
2373
- /***/
2374
- },
2375
-
2376
- /***/787: /***/function _(module) {
2377
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
2378
-
2379
- /***/
2380
- }
2381
-
2382
- /******/
2383
- };
2384
- /************************************************************************/
2385
- /******/ // The module cache
2386
- /******/
2387
- var __webpack_module_cache__ = {};
2388
- /******/
2389
- /******/ // The require function
2390
- /******/
2391
- function __nested_webpack_require_3331__(moduleId) {
2392
- /******/ // Check if module is in cache
2393
- /******/var cachedModule = __webpack_module_cache__[moduleId];
2394
- /******/
2395
- if (cachedModule !== undefined) {
2396
- /******/return cachedModule.exports;
2397
- /******/
2398
- }
2399
- /******/ // Create a new module (and put it into the cache)
2400
- /******/
2401
- var module = __webpack_module_cache__[moduleId] = {
2402
- /******/ // no module.id needed
2403
- /******/ // no module.loaded needed
2404
- /******/exports: {}
2405
- /******/
2406
- };
2407
- /******/
2408
- /******/ // Execute the module function
2409
- /******/
2410
- __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_3331__);
2411
- /******/
2412
- /******/ // Return the exports of the module
2413
- /******/
2414
- return module.exports;
2415
- /******/
2416
- }
2417
- /******/
2418
- /************************************************************************/
2419
- /******/ /* webpack/runtime/compat get default export */
2420
- /******/
2421
- (function () {
2422
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2423
- /******/__nested_webpack_require_3331__.n = function (module) {
2424
- /******/var getter = module && module.__esModule ? /******/function () {
2425
- return module['default'];
2426
- } : /******/function () {
2427
- return module;
2428
- };
2429
- /******/
2430
- __nested_webpack_require_3331__.d(getter, {
2431
- a: getter
2432
- });
2433
- /******/
2434
- return getter;
2435
- /******/
2436
- };
2437
- /******/
2438
- })();
2439
- /******/
2440
- /******/ /* webpack/runtime/define property getters */
2441
- /******/
2442
- (function () {
2443
- /******/ // define getter functions for harmony exports
2444
- /******/__nested_webpack_require_3331__.d = function (exports, definition) {
2445
- /******/for (var key in definition) {
2446
- /******/if (__nested_webpack_require_3331__.o(definition, key) && !__nested_webpack_require_3331__.o(exports, key)) {
2447
- /******/Object.defineProperty(exports, key, {
2448
- enumerable: true,
2449
- get: definition[key]
2450
- });
2451
- /******/
2452
- }
2453
- /******/
2454
- }
2455
- /******/
2456
- };
2457
- /******/
2458
- })();
2459
- /******/
2460
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2461
- /******/
2462
- (function () {
2463
- /******/__nested_webpack_require_3331__.o = function (obj, prop) {
2464
- return Object.prototype.hasOwnProperty.call(obj, prop);
2465
- };
2466
- /******/
2467
- })();
2468
- /******/
2469
- /******/ /* webpack/runtime/make namespace object */
2470
- /******/
2471
- (function () {
2472
- /******/ // define __esModule on exports
2473
- /******/__nested_webpack_require_3331__.r = function (exports) {
2474
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2475
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
2476
- value: 'Module'
2477
- });
2478
- /******/
2479
- }
2480
- /******/
2481
- Object.defineProperty(exports, '__esModule', {
2482
- value: true
2483
- });
2484
- /******/
2485
- };
2486
- /******/
2487
- })();
2488
- /******/
2489
- /************************************************************************/
2490
- var __webpack_exports__ = {};
2491
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
2492
- (function () {
2493
- __nested_webpack_require_3331__.r(__webpack_exports__);
2494
- /* harmony export */
2495
- __nested_webpack_require_3331__.d(__webpack_exports__, {
2496
- /* harmony export */"default": function _default() {
2497
- return __WEBPACK_DEFAULT_EXPORT__;
2498
- }
2499
- /* harmony export */
2500
- });
2501
- /* harmony import */
2502
- var react__WEBPACK_IMPORTED_MODULE_0__ = __nested_webpack_require_3331__(787);
2503
- /* harmony import */
2504
- var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nested_webpack_require_3331__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2505
- /* harmony import */
2506
- var _libs_performance__WEBPACK_IMPORTED_MODULE_1__ = __nested_webpack_require_3331__(318);
2507
- function _slicedToArray(arr, i) {
2508
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2509
- }
2510
- function _nonIterableRest() {
2511
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2512
- }
2513
- function _unsupportedIterableToArray(o, minLen) {
2514
- if (!o) return;
2515
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2516
- var n = Object.prototype.toString.call(o).slice(8, -1);
2517
- if (n === "Object" && o.constructor) n = o.constructor.name;
2518
- if (n === "Map" || n === "Set") return Array.from(o);
2519
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2520
- }
2521
- function _arrayLikeToArray(arr, len) {
2522
- if (len == null || len > arr.length) len = arr.length;
2523
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2524
- return arr2;
2525
- }
2526
- function _iterableToArrayLimit(arr, i) {
2527
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
2528
- if (null != _i) {
2529
- var _s,
2530
- _e,
2531
- _x,
2532
- _r,
2533
- _arr = [],
2534
- _n = !0,
2535
- _d = !1;
2536
- try {
2537
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
2538
- if (Object(_i) !== _i) return;
2539
- _n = !1;
2540
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
2541
- } catch (err) {
2542
- _d = !0, _e = err;
2543
- } finally {
2544
- try {
2545
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
2546
- } finally {
2547
- if (_d) throw _e;
2548
- }
2549
- }
2550
- return _arr;
2551
- }
2552
- }
2553
- function _arrayWithHoles(arr) {
2554
- if (Array.isArray(arr)) return arr;
2555
- }
2556
- /**
2557
- * Listens for scrolls the window to a particular place in the document
2558
- *
2559
- * @usage:
2560
-
2561
- const App = () => {
2562
- const [scrollData, windowScrollUpdate] = useWindowScroll({
2563
- performance: ['debounce', 500], // "['debounce', 500]" or "['throttle', 500]"
2564
- handle: (scrollData) => {
2565
- // do something
2566
- console.log(scrollData);
2567
- }
2568
- });
2569
- };
2570
-
2571
- */
2572
-
2573
- var useWindowScroll = function useWindowScroll(_ref) {
2574
- var enabled = _ref.enabled,
2575
- performance = _ref.performance,
2576
- handle = _ref.handle;
2577
- var windowScrollUpdate;
2578
- var _performance = _slicedToArray(performance, 2),
2579
- performanceName = _performance[0],
2580
- performanceLimit = _performance[1];
2581
- var _useState = (0, react__WEBPACK_IMPORTED_MODULE_0__.useState)({
2582
- x: 0,
2583
- y: 0
2584
- }),
2585
- _useState2 = _slicedToArray(_useState, 2),
2586
- scrollData = _useState2[0],
2587
- setScrollData = _useState2[1];
2588
- var eventHandlerScroll = function eventHandlerScroll(e) {
2589
- var doc = document.documentElement;
2590
- var left = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
2591
- var top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
2592
- var res = {
2593
- x: left,
2594
- y: top
2595
- };
2596
- setScrollData(res);
2597
- if (typeof handle === "function") handle(res);
2598
- };
2599
- if (performanceName === "debounce") windowScrollUpdate = (0, _libs_performance__WEBPACK_IMPORTED_MODULE_1__.debounce)(eventHandlerScroll, parseFloat(performanceLimit));
2600
- if (performanceName === "throttle") windowScrollUpdate = (0, _libs_performance__WEBPACK_IMPORTED_MODULE_1__.throttle)(eventHandlerScroll, parseFloat(performanceLimit));
2601
- (0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
2602
- window.addEventListener("scroll", windowScrollUpdate);
2603
- window.addEventListener("touchmove", windowScrollUpdate);
2604
- return function () {
2605
- window.removeEventListener("scroll", windowScrollUpdate);
2606
- window.removeEventListener("touchmove", windowScrollUpdate);
2607
- };
2608
- }, []);
2609
- return [scrollData, windowScrollUpdate];
2610
- };
2611
- /* harmony default export */
2612
- var __WEBPACK_DEFAULT_EXPORT__ = useWindowScroll;
2613
- })();
2614
-
2615
- /******/
2616
- return __webpack_exports__;
2617
- /******/
2618
- }()
2619
- );
2620
- });
2621
-
2622
- /***/ }),
2623
-
2624
- /***/ 787:
2625
- /***/ ((module) => {
2626
-
2627
- "use strict";
2628
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
2629
-
2630
- /***/ }),
2631
-
2632
- /***/ 156:
2633
- /***/ ((module) => {
2634
-
2635
- "use strict";
2636
- module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
2637
-
2638
- /***/ })
2639
-
2640
- /******/ });
2641
- /************************************************************************/
2642
- /******/ // The module cache
2643
- /******/ var __webpack_module_cache__ = {};
2644
- /******/
2645
- /******/ // The require function
2646
- /******/ function __webpack_require__(moduleId) {
2647
- /******/ // Check if module is in cache
2648
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
2649
- /******/ if (cachedModule !== undefined) {
2650
- /******/ return cachedModule.exports;
2651
- /******/ }
2652
- /******/ // Create a new module (and put it into the cache)
2653
- /******/ var module = __webpack_module_cache__[moduleId] = {
2654
- /******/ id: moduleId,
2655
- /******/ loaded: false,
2656
- /******/ exports: {}
2657
- /******/ };
2658
- /******/
2659
- /******/ // Execute the module function
2660
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
2661
- /******/
2662
- /******/ // Flag the module as loaded
2663
- /******/ module.loaded = true;
2664
- /******/
2665
- /******/ // Return the exports of the module
2666
- /******/ return module.exports;
2667
- /******/ }
2668
- /******/
2669
- /************************************************************************/
2670
- /******/ /* webpack/runtime/compat get default export */
2671
- /******/ (() => {
2672
- /******/ // getDefaultExport function for compatibility with non-harmony modules
2673
- /******/ __webpack_require__.n = (module) => {
2674
- /******/ var getter = module && module.__esModule ?
2675
- /******/ () => (module['default']) :
2676
- /******/ () => (module);
2677
- /******/ __webpack_require__.d(getter, { a: getter });
2678
- /******/ return getter;
2679
- /******/ };
2680
- /******/ })();
2681
- /******/
2682
- /******/ /* webpack/runtime/define property getters */
2683
- /******/ (() => {
2684
- /******/ // define getter functions for harmony exports
2685
- /******/ __webpack_require__.d = (exports, definition) => {
2686
- /******/ for(var key in definition) {
2687
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
2688
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
2689
- /******/ }
2690
- /******/ }
2691
- /******/ };
2692
- /******/ })();
2693
- /******/
2694
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
2695
- /******/ (() => {
2696
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
2697
- /******/ })();
2698
- /******/
2699
- /******/ /* webpack/runtime/make namespace object */
2700
- /******/ (() => {
2701
- /******/ // define __esModule on exports
2702
- /******/ __webpack_require__.r = (exports) => {
2703
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
2704
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2705
- /******/ }
2706
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
2707
- /******/ };
2708
- /******/ })();
2709
- /******/
2710
- /******/ /* webpack/runtime/node module decorator */
2711
- /******/ (() => {
2712
- /******/ __webpack_require__.nmd = (module) => {
2713
- /******/ module.paths = [];
2714
- /******/ if (!module.children) module.children = [];
2715
- /******/ return module;
2716
- /******/ };
2717
- /******/ })();
2718
- /******/
2719
- /************************************************************************/
2720
- var __webpack_exports__ = {};
2721
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
2722
- (() => {
2723
- "use strict";
2724
- __webpack_require__.r(__webpack_exports__);
2725
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2726
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
2727
- /* harmony export */ });
2728
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(787);
2729
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2730
- /* harmony import */ var funda_root_portal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(909);
2731
- /* harmony import */ var funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(funda_root_portal__WEBPACK_IMPORTED_MODULE_1__);
2732
- /* harmony import */ var funda_searchbar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(962);
2733
- /* harmony import */ var funda_searchbar__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(funda_searchbar__WEBPACK_IMPORTED_MODULE_2__);
2734
- /* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85);
2735
- /* harmony import */ var funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_3__);
2736
- /* harmony import */ var funda_utils_dist_cjs_initDefaultOptions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(186);
2737
- /* harmony import */ var funda_utils_dist_cjs_initDefaultOptions__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_initDefaultOptions__WEBPACK_IMPORTED_MODULE_4__);
2738
- /* harmony import */ var funda_utils_dist_cjs_useWindowScroll__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(499);
2739
- /* harmony import */ var funda_utils_dist_cjs_useWindowScroll__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useWindowScroll__WEBPACK_IMPORTED_MODULE_5__);
2740
- /* harmony import */ var funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(761);
2741
- /* harmony import */ var funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_6__);
2742
- /* harmony import */ var funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(702);
2743
- /* harmony import */ var funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_7__);
2744
- /* harmony import */ var funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(767);
2745
- /* harmony import */ var funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__);
2746
- /* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(188);
2747
- /* harmony import */ var funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__);
2748
- var _excluded = ["contentRef", "popupRef", "wrapperClassName", "controlClassName", "controlExClassName", "optionsExClassName", "controlGroupWrapperClassName", "controlGroupTextClassName", "exceededSidePosOffset", "appearance", "isSearchInput", "allowSpacingRetrive", "readOnly", "disabled", "required", "placeholder", "noMatchPopup", "options", "value", "label", "name", "units", "iconLeft", "iconRight", "minLength", "maxLength", "id", "autoComplete", "autoCapitalize", "spellCheck", "icon", "btnId", "fetchTrigger", "hideIcon", "depth", "style", "winWidth", "tabIndex", "data", "autoShowOptions", "fetchNoneInfo", "fetchUpdate", "fetchFuncAsync", "fetchFuncMethod", "fetchFuncMethodParams", "fetchCallback", "onClick", "onFetch", "onChange", "onKeyboardInput", "onBlur", "onPressEnter"];
2749
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2750
- 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."); }
2751
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2752
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
2753
- 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); }
2754
- 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; }
2755
- 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); }
2756
- 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); } }
2757
- 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); }); }; }
2758
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2759
- 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."); }
2760
- 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); }
2761
- 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; }
2762
- 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; } }
2763
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2764
- 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; }
2765
- 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; }
2766
-
2767
-
2768
-
2769
-
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
- var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, externalRef) {
2777
- var contentRef = props.contentRef,
2778
- popupRef = props.popupRef,
2779
- wrapperClassName = props.wrapperClassName,
2780
- controlClassName = props.controlClassName,
2781
- controlExClassName = props.controlExClassName,
2782
- optionsExClassName = props.optionsExClassName,
2783
- controlGroupWrapperClassName = props.controlGroupWrapperClassName,
2784
- controlGroupTextClassName = props.controlGroupTextClassName,
2785
- exceededSidePosOffset = props.exceededSidePosOffset,
2786
- appearance = props.appearance,
2787
- isSearchInput = props.isSearchInput,
2788
- allowSpacingRetrive = props.allowSpacingRetrive,
2789
- readOnly = props.readOnly,
2790
- disabled = props.disabled,
2791
- required = props.required,
2792
- placeholder = props.placeholder,
2793
- noMatchPopup = props.noMatchPopup,
2794
- options = props.options,
2795
- value = props.value,
2796
- label = props.label,
2797
- name = props.name,
2798
- units = props.units,
2799
- iconLeft = props.iconLeft,
2800
- iconRight = props.iconRight,
2801
- minLength = props.minLength,
2802
- maxLength = props.maxLength,
2803
- id = props.id,
2804
- autoComplete = props.autoComplete,
2805
- autoCapitalize = props.autoCapitalize,
2806
- spellCheck = props.spellCheck,
2807
- icon = props.icon,
2808
- btnId = props.btnId,
2809
- fetchTrigger = props.fetchTrigger,
2810
- hideIcon = props.hideIcon,
2811
- depth = props.depth,
2812
- style = props.style,
2813
- winWidth = props.winWidth,
2814
- tabIndex = props.tabIndex,
2815
- data = props.data,
2816
- autoShowOptions = props.autoShowOptions,
2817
- fetchNoneInfo = props.fetchNoneInfo,
2818
- fetchUpdate = props.fetchUpdate,
2819
- fetchFuncAsync = props.fetchFuncAsync,
2820
- fetchFuncMethod = props.fetchFuncMethod,
2821
- fetchFuncMethodParams = props.fetchFuncMethodParams,
2822
- fetchCallback = props.fetchCallback,
2823
- onClick = props.onClick,
2824
- onFetch = props.onFetch,
2825
- onChange = props.onChange,
2826
- onKeyboardInput = props.onKeyboardInput,
2827
- onBlur = props.onBlur,
2828
- _onPressEnter = props.onPressEnter,
2829
- attributes = _objectWithoutProperties(props, _excluded);
2830
- var DEPTH = depth || 1055; // the default value same as bootstrap
2831
- var POS_OFFSET = 0;
2832
- var EXCEEDED_SIDE_POS_OFFSET = Number(exceededSidePosOffset) || 15;
2833
- var EMPTY_FOR_FETCH = typeof autoShowOptions === 'undefined' || autoShowOptions === false ? false : true;
2834
- var NO_MATCH_POPUP = typeof noMatchPopup === 'undefined' ? true : noMatchPopup;
2835
- var WIN_WIDTH = typeof winWidth === 'function' ? winWidth() : winWidth ? winWidth : 'auto';
2836
- var uniqueID = funda_utils_dist_cjs_useComId__WEBPACK_IMPORTED_MODULE_3___default()();
2837
- var idRes = id || uniqueID;
2838
- var rootRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2839
- var inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2840
- var listRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2841
- var listContentRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
2842
- var optionsRes = options ? (0,funda_utils_dist_cjs_initDefaultOptions__WEBPACK_IMPORTED_MODULE_4__.isJSON)(options) ? JSON.parse(options) : options : [];
2843
-
2844
- // return a array of options
2845
- var staticOptionsData = optionsRes;
2846
-
2847
- //
2848
- var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2849
- _useState2 = _slicedToArray(_useState, 2),
2850
- firstFetch = _useState2[0],
2851
- setFirstFetch = _useState2[1];
2852
- var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(staticOptionsData),
2853
- _useState4 = _slicedToArray(_useState3, 2),
2854
- dataInit = _useState4[0],
2855
- setOrginalDataInit = _useState4[1];
2856
- var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
2857
- _useState6 = _slicedToArray(_useState5, 2),
2858
- orginalData = _useState6[0],
2859
- setOrginalData = _useState6[1];
2860
- var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value || ''),
2861
- _useState8 = _slicedToArray(_useState7, 2),
2862
- changedVal = _useState8[0],
2863
- setChangedVal = _useState8[1];
2864
- var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2865
- _useState10 = _slicedToArray(_useState9, 2),
2866
- isOpen = _useState10[0],
2867
- setIsOpen = _useState10[1];
2868
- var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2869
- _useState12 = _slicedToArray(_useState11, 2),
2870
- hasErr = _useState12[0],
2871
- setHasErr = _useState12[1];
2872
- var _useState13 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
2873
- _useState14 = _slicedToArray(_useState13, 2),
2874
- componentFirstLoad = _useState14[0],
2875
- setComponentFirstLoad = _useState14[1];
2876
-
2877
- //performance
2878
- var handleChangeFetchSafe = funda_utils_dist_cjs_useDebounce__WEBPACK_IMPORTED_MODULE_7___default()(function (e) {
2879
- handleChange(e);
2880
- }, 350, [dataInit]);
2881
-
2882
- // exposes the following methods
2883
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(popupRef, function () {
2884
- return {
2885
- close: function close() {
2886
- setIsOpen(false);
2887
- cancel();
2888
- }
2889
- };
2890
- }, [popupRef]);
2891
-
2892
- // exposes the following methods
2893
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(contentRef, function () {
2894
- return {
2895
- control: function control() {
2896
- return inputRef.current;
2897
- },
2898
- clear: function clear(cb) {
2899
- setChangedVal('');
2900
- cb === null || cb === void 0 ? void 0 : cb();
2901
- },
2902
- set: function set(value, cb) {
2903
- setChangedVal("".concat(value));
2904
- cb === null || cb === void 0 ? void 0 : cb();
2905
- }
2906
- };
2907
- }, [contentRef]);
2908
-
2909
- // click outside
2910
- funda_utils_dist_cjs_useClickOutside__WEBPACK_IMPORTED_MODULE_6___default()({
2911
- enabled: isOpen && rootRef.current && listRef.current,
2912
- isOutside: function isOutside(event) {
2913
- // close dropdown when other dropdown is opened
2914
- return rootRef.current !== event.target && !rootRef.current.contains(event.target) && listRef.current !== event.target && !listRef.current.contains(event.target);
2915
- },
2916
- handle: function handle(event) {
2917
- // cancel
2918
- setIsOpen(false);
2919
- cancel();
2920
- }
2921
- }, [isOpen, rootRef, listRef]);
2922
-
2923
- // Add function to the element that should be used as the scrollable area.
2924
- var _useWindowScroll = funda_utils_dist_cjs_useWindowScroll__WEBPACK_IMPORTED_MODULE_5___default()({
2925
- performance: ['debounce', 500],
2926
- // "['debounce', 500]" or "['throttle', 500]"
2927
- handle: function handle(scrollData) {
2928
- popwinPosInit(false);
2929
- }
2930
- }),
2931
- _useWindowScroll2 = _slicedToArray(_useWindowScroll, 2),
2932
- scrollData = _useWindowScroll2[0],
2933
- windowScrollUpdate = _useWindowScroll2[1];
2934
- function popwinPosInit() {
2935
- var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
2936
- if (listContentRef.current === null || inputRef.current === null) return;
2937
- var contentHeightOffset = 80;
2938
- var contentMaxHeight = 0;
2939
-
2940
- // update modal position
2941
- var _modalRef = document.querySelector("#livesearch__options-wrapper-".concat(idRes));
2942
- var _triggerRef = inputRef.current;
2943
-
2944
- // console.log(getAbsolutePositionOfStage(_triggerRef));
2945
-
2946
- if (_modalRef === null) return;
2947
- var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
2948
- x = _getAbsolutePositionO.x;
2949
- var _getAbsolutePositionO2 = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
2950
- y = _getAbsolutePositionO2.y,
2951
- width = _getAbsolutePositionO2.width,
2952
- height = _getAbsolutePositionO2.height;
2953
- var _triggerBox = _triggerRef.getBoundingClientRect();
2954
- var targetPos = '';
2955
-
2956
- // STEP 1:
2957
- //-----------
2958
- // display wrapper
2959
- if (showAct) _modalRef.classList.add('active');
2960
-
2961
- // STEP 2:
2962
- //-----------
2963
- // Detect position
2964
- if (window.innerHeight - _triggerBox.top > 100) {
2965
- targetPos = 'bottom';
2966
- } else {
2967
- targetPos = 'top';
2968
- }
2969
- if (typeof listContentRef.current.dataset.pos === 'undefined') listContentRef.current.dataset.pos = targetPos;
2970
-
2971
- // STEP 3:
2972
- //-----------
2973
- // Detect content MAX HEIGHT and ACTUAL HEIGHT
2974
- var _contentBox = listContentRef.current.getBoundingClientRect();
2975
- var _contentActualHeight = listContentRef.current.querySelector('.livesearch__options-contentlist-inner').clientHeight;
2976
- if (targetPos === 'top') {
2977
- contentMaxHeight = _triggerBox.top;
2978
- if (_contentBox.height > _contentActualHeight) {
2979
- if (_contentActualHeight > 0) listContentRef.current.style.height = _contentActualHeight + 'px';
2980
- } else {
2981
- if (_contentActualHeight > 0) listContentRef.current.style.height = _contentActualHeight + 'px';
2982
-
2983
- // recalculate the height
2984
- _contentBox = listContentRef.current.getBoundingClientRect();
2985
- if (_contentBox.height > contentMaxHeight) listContentRef.current.style.height = contentMaxHeight - contentHeightOffset + 'px';
2986
- }
2987
- }
2988
- if (targetPos === 'bottom') {
2989
- contentMaxHeight = window.innerHeight - _triggerBox.bottom;
2990
- if (_contentBox.height > _contentActualHeight) {
2991
- if (_contentActualHeight > 0) listContentRef.current.style.height = _contentActualHeight + 'px';
2992
- } else {
2993
- if (_contentActualHeight > 0) listContentRef.current.style.height = _contentActualHeight + 'px';
2994
-
2995
- // recalculate the height
2996
- _contentBox = listContentRef.current.getBoundingClientRect();
2997
- if (_contentBox.height > contentMaxHeight) listContentRef.current.style.height = contentMaxHeight - 10 + 'px';
2998
- }
2999
- }
3000
-
3001
- // STEP 4:
3002
- //-----------
3003
- // Adjust position
3004
- if (targetPos === 'top') {
3005
- _modalRef.style.left = x + 'px';
3006
- //_modalRef.style.top = y - POS_OFFSET - (listContentRef.current.clientHeight) - 2 + 'px';
3007
- _modalRef.style.top = 'auto';
3008
- _modalRef.style.bottom = window.innerHeight - _triggerBox.top + POS_OFFSET + 2 + 'px';
3009
- _modalRef.style.setProperty('position', 'fixed', 'important');
3010
- _modalRef.classList.add('pos-top');
3011
- }
3012
- if (targetPos === 'bottom') {
3013
- _modalRef.style.left = x + 'px';
3014
- _modalRef.style.bottom = 'auto';
3015
- _modalRef.style.top = y + height + POS_OFFSET + 'px';
3016
- _modalRef.style.setProperty('position', 'absolute', 'important');
3017
- _modalRef.classList.remove('pos-top');
3018
- }
3019
-
3020
- // STEP 5:
3021
- //-----------
3022
- // Determine whether it exceeds the far right or left side of the screen
3023
- var _modalContent = _modalRef;
3024
- var _modalBox = _modalContent.getBoundingClientRect();
3025
- if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
3026
- // 10 pixels is used to account for some bias in mobile devices
3027
- if (_modalBox.right + 10 > window.innerWidth) {
3028
- var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
3029
- _modalContent.dataset.offset = _modalOffsetPosition;
3030
- _modalContent.style.marginLeft = "-".concat(_modalOffsetPosition, "px");
3031
- // console.log('_modalPosition: ', _modalOffsetPosition)
3032
- }
3033
-
3034
- if (_modalBox.left - 10 < 0) {
3035
- var _modalOffsetPosition2 = Math.abs(_modalBox.left) + EXCEEDED_SIDE_POS_OFFSET;
3036
- _modalContent.dataset.offset = _modalOffsetPosition2;
3037
- _modalContent.style.marginLeft = "".concat(_modalOffsetPosition2, "px");
3038
- // console.log('_modalPosition: ', _modalOffsetPosition)
3039
- }
3040
- }
3041
- }
3042
-
3043
- function popwinPosHide() {
3044
- var _modalRef = document.querySelector("#livesearch__options-wrapper-".concat(idRes));
3045
- if (_modalRef !== null && listContentRef.current !== null) {
3046
- // remove classnames and styles
3047
- _modalRef.classList.remove('active');
3048
- listContentRef.current.style.removeProperty('height');
3049
-
3050
- // remove data-* attibutes
3051
- popwinContainerHeightReset();
3052
- }
3053
- }
3054
- function popwinContainerHeightReset() {
3055
- if (listContentRef.current === null) return;
3056
-
3057
- // remove data-* attibutes
3058
- listContentRef.current.removeAttribute('data-height');
3059
- listContentRef.current.removeAttribute('data-pos');
3060
- }
3061
-
3062
- //
3063
- function matchData() {
3064
- return _matchData.apply(this, arguments);
3065
- }
3066
- function _matchData() {
3067
- _matchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
3068
- var val,
3069
- query,
3070
- emptyValShowAll,
3071
- res,
3072
- filterRes,
3073
- _oparams,
3074
- _params,
3075
- response,
3076
- _args = arguments;
3077
- return _regeneratorRuntime().wrap(function _callee$(_context) {
3078
- while (1) switch (_context.prev = _context.next) {
3079
- case 0:
3080
- val = _args.length > 0 && _args[0] !== undefined ? _args[0] : '';
3081
- query = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
3082
- emptyValShowAll = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
3083
- res = [];
3084
- filterRes = function filterRes(data) {
3085
- return data.filter(function (item) {
3086
- // Avoid fatal errors causing page crashes
3087
- var _queryString = typeof item.queryString !== 'undefined' && item.queryString !== null ? item.queryString : '';
3088
- var _val = typeof val !== 'undefined' && val !== null ? val : '';
3089
- if (emptyValShowAll && val === '') {
3090
- return true;
3091
- }
3092
- if (allowSpacingRetrive && val == ' ') {
3093
- return true;
3094
- }
3095
- if ((_queryString.split(',').some(function (l) {
3096
- return l.charAt(0) === _val.toLowerCase();
3097
- }) || _queryString.split(',').some(function (l) {
3098
- return l.replace(/ /g, '').indexOf(_val.toLowerCase()) >= 0;
3099
- }) || item.label.toLowerCase().indexOf(_val.toLowerCase()) >= 0) && _val != '') {
3100
- return true;
3101
- } else {
3102
- return false;
3103
- }
3104
- });
3105
- };
3106
- if (!query) {
3107
- _context.next = 15;
3108
- break;
3109
- }
3110
- _oparams = fetchFuncMethodParams || [];
3111
- _params = _oparams.map(function (item) {
3112
- return item !== '$QUERY_STRING' ? item : val;
3113
- });
3114
- _context.next = 10;
3115
- return fetchData(_params.join(','));
3116
- case 10:
3117
- response = _context.sent;
3118
- res = filterRes(response);
3119
- return _context.abrupt("return", res);
3120
- case 15:
3121
- res = filterRes(dataInit);
3122
- return _context.abrupt("return", res);
3123
- case 17:
3124
- case "end":
3125
- return _context.stop();
3126
- }
3127
- }, _callee);
3128
- }));
3129
- return _matchData.apply(this, arguments);
3130
- }
3131
- function handleChange(e) {
3132
- var val = e.target.value;
3133
- setChangedVal(val);
3134
-
3135
- //
3136
- if (!fetchTrigger) {
3137
- matchData(val, fetchUpdate, EMPTY_FOR_FETCH).then(function (response) {
3138
- setOrginalData(response);
3139
-
3140
- //
3141
- onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, response, '', listRef.current);
3142
-
3143
- //
3144
- setIsOpen(true);
3145
-
3146
- // window position
3147
- setTimeout(function () {
3148
- popwinPosInit();
3149
- }, 0);
3150
- });
3151
- } else {
3152
- //
3153
- onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, orginalData, '', listRef.current);
3154
-
3155
- // window position
3156
- setTimeout(function () {
3157
- popwinPosInit();
3158
- }, 0);
3159
- }
3160
- }
3161
- function cancel() {
3162
- setOrginalData([]);
3163
- popwinPosHide();
3164
- }
3165
- function fetchData(_x2) {
3166
- return _fetchData.apply(this, arguments);
3167
- }
3168
- function _fetchData() {
3169
- _fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
3170
- var response, _ORGIN_DATA;
3171
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3172
- while (1) switch (_context2.prev = _context2.next) {
3173
- case 0:
3174
- if (!(_typeof(fetchFuncAsync) === 'object')) {
3175
- _context2.next = 13;
3176
- break;
3177
- }
3178
- _context2.next = 3;
3179
- return fetchFuncAsync["".concat(fetchFuncMethod)].apply(fetchFuncAsync, _toConsumableArray(params.split(',')));
3180
- case 3:
3181
- response = _context2.sent;
3182
- _ORGIN_DATA = response.data; // reset data structure
3183
- if (typeof fetchCallback === 'function') {
3184
- _ORGIN_DATA = fetchCallback(_ORGIN_DATA);
3185
- }
3186
-
3187
- // Determine whether the data structure matches
3188
- if (_ORGIN_DATA.length > 0 && typeof _ORGIN_DATA[0].value === 'undefined') {
3189
- console.warn('The data structure does not match, please refer to the example in the component documentation.');
3190
- setHasErr(true);
3191
- _ORGIN_DATA = [];
3192
- }
3193
-
3194
- //
3195
- onFetch === null || onFetch === void 0 ? void 0 : onFetch(_ORGIN_DATA);
3196
-
3197
- //
3198
- setOrginalDataInit(_ORGIN_DATA);
3199
-
3200
- //
3201
- // window position
3202
- if (componentFirstLoad) {
3203
- setTimeout(function () {
3204
- popwinPosInit();
3205
- }, 500);
3206
- }
3207
- return _context2.abrupt("return", _ORGIN_DATA);
3208
- case 13:
3209
- return _context2.abrupt("return", []);
3210
- case 14:
3211
- case "end":
3212
- return _context2.stop();
3213
- }
3214
- }, _callee2);
3215
- }));
3216
- return _fetchData.apply(this, arguments);
3217
- }
3218
- function handleSelect(_x3) {
3219
- return _handleSelect.apply(this, arguments);
3220
- }
3221
- function _handleSelect() {
3222
- _handleSelect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(el) {
3223
- var dataInput,
3224
- _data,
3225
- _curData,
3226
- _data2,
3227
- res,
3228
- _args3 = arguments;
3229
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3230
- while (1) switch (_context3.prev = _context3.next) {
3231
- case 0:
3232
- dataInput = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : false;
3233
- if (!(typeof el === 'undefined')) {
3234
- _context3.next = 3;
3235
- break;
3236
- }
3237
- return _context3.abrupt("return");
3238
- case 3:
3239
- if (!dataInput) {
3240
- _context3.next = 9;
3241
- break;
3242
- }
3243
- _data = JSON.parse(dataInput);
3244
- onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, orginalData, _data, listRef.current);
3245
- setChangedVal(_data.label);
3246
- _context3.next = 21;
3247
- break;
3248
- case 9:
3249
- _curData = typeof el.target !== 'undefined' ? el.target.dataset.itemdata : el.dataset.itemdata;
3250
- _data2 = JSON.parse(_curData);
3251
- res = [];
3252
- if (EMPTY_FOR_FETCH) {
3253
- _context3.next = 18;
3254
- break;
3255
- }
3256
- _context3.next = 15;
3257
- return matchData(inputRef.current.value, false, EMPTY_FOR_FETCH);
3258
- case 15:
3259
- res = _context3.sent;
3260
- _context3.next = 19;
3261
- break;
3262
- case 18:
3263
- res = dataInit;
3264
- case 19:
3265
- onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, res, _data2, listRef.current);
3266
- setChangedVal(_data2.label);
3267
- case 21:
3268
- // cancel
3269
- setIsOpen(false);
3270
- cancel();
3271
- case 23:
3272
- case "end":
3273
- return _context3.stop();
3274
- }
3275
- }, _callee3);
3276
- }));
3277
- return _handleSelect.apply(this, arguments);
3278
- }
3279
- function handleFetch() {
3280
- return _handleFetch.apply(this, arguments);
3281
- }
3282
- function _handleFetch() {
3283
- _handleFetch = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
3284
- var res;
3285
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3286
- while (1) switch (_context4.prev = _context4.next) {
3287
- case 0:
3288
- if (!fetchTrigger) {
3289
- _context4.next = 7;
3290
- break;
3291
- }
3292
- _context4.next = 3;
3293
- return matchData(changedVal, fetchUpdate, EMPTY_FOR_FETCH);
3294
- case 3:
3295
- res = _context4.sent;
3296
- setOrginalData(res);
3297
-
3298
- //
3299
- setIsOpen(res.length === 0 ? true : false);
3300
-
3301
- // window position
3302
- setTimeout(function () {
3303
- popwinPosInit();
3304
- }, 0);
3305
- case 7:
3306
- case "end":
3307
- return _context4.stop();
3308
- }
3309
- }, _callee4);
3310
- }));
3311
- return _handleFetch.apply(this, arguments);
3312
- }
3313
- function handleClick() {
3314
- if (!isOpen) {
3315
- if (EMPTY_FOR_FETCH) {
3316
- setOrginalData(dataInit);
3317
- setIsOpen(true);
3318
- }
3319
-
3320
- // window position
3321
- setTimeout(function () {
3322
- popwinPosInit();
3323
- }, 0);
3324
- } else {
3325
- // cancel
3326
- setIsOpen(false);
3327
- cancel();
3328
- }
3329
- onClick === null || onClick === void 0 ? void 0 : onClick(inputRef.current, listRef.current);
3330
- }
3331
- function handleBlur(e) {
3332
- setIsOpen(false);
3333
- if (!fetchTrigger) {
3334
- setTimeout(function () {
3335
- //
3336
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(inputRef.current, listRef.current);
3337
-
3338
- //
3339
- cancel();
3340
- }, 300);
3341
- }
3342
- }
3343
- function handleMouseLeaveTrigger() {
3344
- setIsOpen(false);
3345
- }
3346
- function optionFocus(type) {
3347
- return new Promise(function (resolve) {
3348
- // Determine the "active" class name to avoid listening to other unused components of the same type
3349
- if (listRef.current === null || !rootRef.current.classList.contains('active')) return;
3350
- var options = [].slice.call(listRef.current.querySelectorAll('.list-group-item:not(.hide)'));
3351
- // Avoid selecting options that are disabled
3352
- options = options.filter(function (options) {
3353
- return !options.classList.contains('disabled');
3354
- });
3355
- var currentIndex = options.findIndex(function (e) {
3356
- return e === listRef.current.querySelector('.list-group-item.active');
3357
- });
3358
-
3359
- // get the next element in the list, "%" will loop around to 0
3360
- var nextIndex;
3361
- if (type === 'increase') {
3362
- nextIndex = currentIndex + 1 % options.length;
3363
- } else {
3364
- nextIndex = (currentIndex < 0 ? options.length : currentIndex) - 1 % options.length;
3365
- }
3366
-
3367
- //only one
3368
- if (options.length === 1) nextIndex = 0;
3369
- if (!isNaN(nextIndex)) {
3370
- options.forEach(function (node, index) {
3371
- node === null || node === void 0 ? void 0 : node.classList.remove('active');
3372
- });
3373
- var targetOption = options[nextIndex];
3374
- if (typeof targetOption !== 'undefined' && !targetOption.classList.contains('no-match')) {
3375
- targetOption.classList.add('active');
3376
- resolve(targetOption);
3377
- }
3378
- }
3379
- });
3380
- }
3381
- function handleKeyPressed(_x4) {
3382
- return _handleKeyPressed.apply(this, arguments);
3383
- }
3384
- function _handleKeyPressed() {
3385
- _handleKeyPressed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(event) {
3386
- var key, res, currentData, _options;
3387
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3388
- while (1) switch (_context5.prev = _context5.next) {
3389
- case 0:
3390
- key = event.code;
3391
- if (isOpen) {
3392
- _context5.next = 3;
3393
- break;
3394
- }
3395
- return _context5.abrupt("return");
3396
- case 3:
3397
- res = null;
3398
- if (!(key === 'Enter' || key === 'NumpadEnter')) {
3399
- _context5.next = 9;
3400
- break;
3401
- }
3402
- event.preventDefault();
3403
-
3404
- // Determine the "active" class name to avoid listening to other unused components of the same type
3405
- if (!(listRef.current === null || !rootRef.current.classList.contains('active'))) {
3406
- _context5.next = 8;
3407
- break;
3408
- }
3409
- return _context5.abrupt("return");
3410
- case 8:
3411
- if (listRef.current !== null) {
3412
- currentData = listRef.current.dataset.data;
3413
- if (typeof currentData !== 'undefined') {
3414
- handleSelect(null, currentData);
3415
-
3416
- //
3417
- _options = [].slice.call(listRef.current.querySelectorAll('.list-group-item:not(.no-match)'));
3418
- _options.forEach(function (node) {
3419
- node.classList.remove('active');
3420
- });
3421
-
3422
- //
3423
- onChange === null || onChange === void 0 ? void 0 : onChange(inputRef.current, _options.map(function (node) {
3424
- return JSON.parse(node.dataset.itemdata);
3425
- }), JSON.parse(currentData), listRef.current);
3426
- }
3427
- }
3428
- case 9:
3429
- if (!(key === 'ArrowUp')) {
3430
- _context5.next = 13;
3431
- break;
3432
- }
3433
- _context5.next = 12;
3434
- return optionFocus('decrease');
3435
- case 12:
3436
- res = _context5.sent;
3437
- case 13:
3438
- if (!(key === 'ArrowDown')) {
3439
- _context5.next = 17;
3440
- break;
3441
- }
3442
- _context5.next = 16;
3443
- return optionFocus('increase');
3444
- case 16:
3445
- res = _context5.sent;
3446
- case 17:
3447
- // temporary data
3448
- if (res !== null) listRef.current.dataset.data = JSON.stringify({
3449
- value: res.dataset.value,
3450
- label: res.dataset.label,
3451
- queryString: res.dataset.querystring
3452
- });
3453
- case 18:
3454
- case "end":
3455
- return _context5.stop();
3456
- }
3457
- }, _callee5);
3458
- }));
3459
- return _handleKeyPressed.apply(this, arguments);
3460
- }
3461
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
3462
- // Component first load
3463
- //--------------
3464
- if (!componentFirstLoad) {
3465
- setComponentFirstLoad(true);
3466
- }
3467
-
3468
- // update default value
3469
- //--------------
3470
- setChangedVal(value || '');
3471
-
3472
- // data init
3473
- //--------------
3474
- var _oparams = fetchFuncMethodParams || [];
3475
- var _params = _oparams.map(function (item) {
3476
- return item !== '$QUERY_STRING' ? item : fetchTrigger && !fetchUpdate ? '' : fetchUpdate ? '------' : fetchTrigger ? '------' : '';
3477
- });
3478
- if (!firstFetch) {
3479
- fetchData(_params.join(','));
3480
- setFirstFetch(true); // avoid triggering two data requests if the input value has not changed
3481
- }
3482
- }, [value, data]);
3483
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
3484
- className: "livesearch__wrapper__label"
3485
- }, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
3486
- htmlFor: "label-".concat(idRes),
3487
- className: "form-label",
3488
- dangerouslySetInnerHTML: {
3489
- __html: "".concat(label)
3490
- }
3491
- }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
3492
- htmlFor: "label-".concat(idRes),
3493
- className: "form-label"
3494
- }, label))) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
3495
- ref: rootRef,
3496
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__.combinedCls)('livesearch__wrapper', (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__.clsWrite)(wrapperClassName, 'mb-3 position-relative'), {
3497
- 'active': isOpen
3498
- }),
3499
- onMouseLeave: handleMouseLeaveTrigger,
3500
- onKeyDown: handleKeyPressed
3501
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_searchbar__WEBPACK_IMPORTED_MODULE_2___default()), _extends({
3502
- wrapperClassName: "",
3503
- controlClassName: controlClassName,
3504
- controlExClassName: controlExClassName,
3505
- controlGroupWrapperClassName: controlGroupWrapperClassName,
3506
- controlGroupTextClassName: controlGroupTextClassName,
3507
- ref: function ref(node) {
3508
- inputRef.current = node;
3509
- if (typeof externalRef === 'function') {
3510
- externalRef(node);
3511
- } else if (externalRef) {
3512
- externalRef.current = node;
3513
- }
3514
- },
3515
- value: changedVal,
3516
- label: "",
3517
- tabIndex: tabIndex,
3518
- id: idRes,
3519
- name: name,
3520
- placeholder: placeholder,
3521
- units: units,
3522
- iconLeft: iconLeft,
3523
- iconRight: iconRight,
3524
- minLength: minLength,
3525
- maxLength: maxLength,
3526
- disabled: disabled,
3527
- required: required,
3528
- readOnly: readOnly,
3529
- style: style,
3530
- appearance: appearance,
3531
- onChange: function onChange(e) {
3532
- handleChangeFetchSafe(e);
3533
- },
3534
- onBlur: handleBlur,
3535
- onSubmit: handleFetch,
3536
- onClick: handleClick,
3537
- icon: hideIcon ? '' : !fetchTrigger ? '' : icon,
3538
- btnId: btnId,
3539
- autoComplete: typeof autoComplete === 'undefined' ? 'off' : autoComplete,
3540
- autoCapitalize: typeof autoCapitalize === 'undefined' ? 'off' : autoCapitalize,
3541
- spellCheck: typeof spellCheck === 'undefined' ? false : spellCheck,
3542
- isSearchInput: isSearchInput,
3543
- onKeyPressedCallback: function onKeyPressedCallback(e) {
3544
- onKeyboardInput === null || onKeyboardInput === void 0 ? void 0 : onKeyboardInput(e, inputRef.current, listRef.current);
3545
- },
3546
- onPressEnter: function onPressEnter(event, onComposition) {
3547
- _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter(event, onComposition);
3548
- }
3549
- }, attributes)), orginalData && !hasErr ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_root_portal__WEBPACK_IMPORTED_MODULE_1___default()), {
3550
- show: true,
3551
- containerClassName: "LiveSearch"
3552
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
3553
- ref: listRef,
3554
- id: "livesearch__options-wrapper-".concat(idRes),
3555
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__.combinedCls)('livesearch__options-wrapper list-group position-absolute border shadow small', optionsExClassName, {
3556
- 'shadow-none border-0': orginalData && orginalData.length === 0 && !NO_MATCH_POPUP
3557
- }),
3558
- style: {
3559
- zIndex: DEPTH,
3560
- width: WIN_WIDTH,
3561
- display: 'none'
3562
- },
3563
- role: "tablist"
3564
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
3565
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__.combinedCls)('livesearch__options-contentlist rounded', {
3566
- 'd-none': orginalData && orginalData.length === 0 && !NO_MATCH_POPUP
3567
- }),
3568
- style: {
3569
- backgroundColor: 'var(--bs-list-group-bg)'
3570
- },
3571
- ref: listContentRef
3572
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
3573
- className: "livesearch__options-contentlist-inner"
3574
- }, orginalData && orginalData.length === 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
3575
- tabIndex: -1,
3576
- type: "button",
3577
- className: "list-group-item list-group-item-action border-top-0 border-bottom-0 no-match livesearch__control-option-item--nomatch",
3578
- disabled: true
3579
- }, fetchNoneInfo || 'No match yet')) : null, orginalData ? orginalData.map(function (item, index) {
3580
- var startItemBorder = index === 0 ? 'border-top-0' : '';
3581
- var endItemBorder = index === orginalData.length - 1 ? 'border-bottom-0' : '';
3582
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
3583
- tabIndex: -1,
3584
- type: "button",
3585
- "data-index": index,
3586
- key: index,
3587
- className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_9__.combinedCls)('list-group-item list-group-item-action border-start-0 border-end-0 border-top-0 border-bottom-0 livesearch__control-option-item', startItemBorder, endItemBorder, {
3588
- 'disabled': item.disabled
3589
- }),
3590
- "data-value": "".concat(item.value),
3591
- "data-label": "".concat(item.label),
3592
- "data-querystring": "".concat(typeof item.queryString === 'undefined' ? '' : item.queryString),
3593
- "data-itemdata": JSON.stringify(item),
3594
- "data-list-item-label": "".concat(typeof item.listItemLabel === 'undefined' ? '' : item.listItemLabel),
3595
- role: "tab",
3596
- dangerouslySetInnerHTML: {
3597
- __html: typeof item.listItemLabel === 'undefined' ? item.label : item.listItemLabel
3598
- },
3599
- onClick: handleSelect
3600
- });
3601
- }) : null))))) : null, hideIcon ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !fetchTrigger ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
3602
- className: "livesearch__wrapper-searchbtn"
3603
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
3604
- tabIndex: -1,
3605
- type: "button",
3606
- className: "btn border-end-0 rounded-pill",
3607
- style: {
3608
- pointerEvents: 'none'
3609
- }
3610
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
3611
- width: "1em",
3612
- height: "1em",
3613
- fill: "#a5a5a5",
3614
- viewBox: "0 0 16 16"
3615
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", {
3616
- d: "M12.027 9.92L16 13.95 14 16l-4.075-3.976A6.465 6.465 0 0 1 6.5 13C2.91 13 0 10.083 0 6.5 0 2.91 2.917 0 6.5 0 10.09 0 13 2.917 13 6.5a6.463 6.463 0 0 1-.973 3.42zM1.997 6.452c0 2.48 2.014 4.5 4.5 4.5 2.48 0 4.5-2.015 4.5-4.5 0-2.48-2.015-4.5-4.5-4.5-2.48 0-4.5 2.014-4.5 4.5z",
3617
- fillRule: "evenodd"
3618
- }))))) : null)));
3619
- });
3620
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LiveSearch);
3621
- })();
3622
-
3623
- /******/ return __webpack_exports__;
3624
- /******/ })()
3625
- ;
3626
- });