ods-component-lib 1.22.2 → 1.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/_virtual/index5.js +2 -3
  2. package/dist/_virtual/index5.js.map +1 -1
  3. package/dist/_virtual/index6.js +3 -2
  4. package/dist/_virtual/index6.js.map +1 -1
  5. package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
  6. package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
  7. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
  8. package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
  9. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
  10. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
  11. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
  12. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
  13. package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
  14. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
  15. package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
  16. package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
  17. package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
  18. package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
  19. package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
  20. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
  21. package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
  22. package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
  23. package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
  24. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
  25. package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
  26. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
  27. package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
  28. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
  29. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
  30. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
  31. package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
  32. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
  33. package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
  34. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
  35. package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
  36. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
  37. package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
  38. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
  39. package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
  40. package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
  41. package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
  42. package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
  43. package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
  44. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
  45. package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
  46. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
  47. package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
  48. package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
  49. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
  50. package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
  51. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
  52. package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
  53. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
  54. package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
  55. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
  56. package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
  57. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
  58. package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
  59. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
  60. package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
  61. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
  62. package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
  63. package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
  64. package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
  65. package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
  66. package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
  67. package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
  68. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
  69. package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
  70. package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
  71. package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
  72. package/dist/node_modules/antd/es/alert/Alert.js +133 -128
  73. package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
  74. package/dist/node_modules/antd/es/badge/Badge.js +29 -28
  75. package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
  76. package/dist/node_modules/antd/es/badge/style/index.js +1 -1
  77. package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
  78. package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
  79. package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
  80. package/dist/node_modules/antd/es/button/style/variant.js +132 -132
  81. package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
  82. package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
  83. package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
  84. package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
  85. package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
  86. package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
  87. package/dist/node_modules/antd/es/card/style/index.js +15 -7
  88. package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
  89. package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
  90. package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
  91. package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
  92. package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
  93. package/dist/node_modules/antd/es/config-provider/index.js +76 -71
  94. package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
  95. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
  96. package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
  97. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
  98. package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
  99. package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
  100. package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
  101. package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
  102. package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
  103. package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
  104. package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
  105. package/dist/node_modules/antd/es/form/style/index.js +24 -24
  106. package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
  107. package/dist/node_modules/antd/es/grid/col.js +56 -54
  108. package/dist/node_modules/antd/es/grid/col.js.map +1 -1
  109. package/dist/node_modules/antd/es/grid/style/index.js +50 -50
  110. package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
  111. package/dist/node_modules/antd/es/input/style/index.js +1 -0
  112. package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
  113. package/dist/node_modules/antd/es/input-number/index.js +91 -91
  114. package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
  115. package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
  116. package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
  117. package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
  118. package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
  119. package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
  120. package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
  121. package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
  122. package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
  123. package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
  124. package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
  125. package/dist/node_modules/antd/es/menu/style/index.js +58 -58
  126. package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
  127. package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
  128. package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
  129. package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
  130. package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
  131. package/dist/node_modules/antd/es/modal/Modal.js +115 -109
  132. package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
  133. package/dist/node_modules/antd/es/modal/style/index.js +83 -80
  134. package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
  135. package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
  136. package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
  137. package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
  138. package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
  139. package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
  140. package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
  141. package/dist/node_modules/antd/es/popover/index.js +77 -82
  142. package/dist/node_modules/antd/es/popover/index.js.map +1 -1
  143. package/dist/node_modules/antd/es/popover/style/index.js +65 -63
  144. package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
  145. package/dist/node_modules/antd/es/radio/context.js +3 -3
  146. package/dist/node_modules/antd/es/radio/context.js.map +1 -1
  147. package/dist/node_modules/antd/es/radio/group.js +31 -29
  148. package/dist/node_modules/antd/es/radio/group.js.map +1 -1
  149. package/dist/node_modules/antd/es/radio/style/index.js +1 -1
  150. package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
  151. package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
  152. package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
  153. package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
  154. package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
  155. package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
  156. package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
  157. package/dist/node_modules/antd/es/space/Item.js +2 -2
  158. package/dist/node_modules/antd/es/space/Item.js.map +1 -1
  159. package/dist/node_modules/antd/es/space/index.js +4 -4
  160. package/dist/node_modules/antd/es/space/index.js.map +1 -1
  161. package/dist/node_modules/antd/es/space/style/addon.js +47 -46
  162. package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
  163. package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
  164. package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
  165. package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
  166. package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
  167. package/dist/node_modules/antd/es/steps/index.js +108 -106
  168. package/dist/node_modules/antd/es/steps/index.js.map +1 -1
  169. package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
  170. package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
  171. package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
  172. package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
  173. package/dist/node_modules/antd/es/steps/style/index.js +41 -41
  174. package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
  175. package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
  176. package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
  177. package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
  178. package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
  179. package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
  180. package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
  181. package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
  182. package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
  183. package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
  184. package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
  185. package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
  186. package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
  187. package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
  188. package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
  189. package/dist/node_modules/antd/es/steps/style/small.js +21 -16
  190. package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
  191. package/dist/node_modules/antd/es/steps/style/status.js +187 -176
  192. package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
  193. package/dist/node_modules/antd/es/steps/style/util.js +18 -16
  194. package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
  195. package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
  196. package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
  197. package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
  198. package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
  199. package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
  200. package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
  201. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
  202. package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
  203. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
  204. package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
  205. package/dist/node_modules/antd/es/table/style/index.js +3 -3
  206. package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
  207. package/dist/node_modules/antd/es/table/style/radius.js +10 -0
  208. package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
  209. package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
  210. package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
  211. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
  212. package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
  213. package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
  214. package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
  215. package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
  216. package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
  217. package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
  218. package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
  219. package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
  220. package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
  221. package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
  222. package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
  223. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
  224. package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
  225. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
  226. package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
  227. package/dist/node_modules/antd/es/tooltip/index.js +50 -50
  228. package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
  229. package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
  230. package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
  231. package/dist/node_modules/antd/es/tooltip/util.js +13 -12
  232. package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
  233. package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
  234. package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
  235. package/dist/node_modules/antd/es/version/version.js +1 -1
  236. package/dist/node_modules/antd/es/version/version.js.map +1 -1
  237. package/dist/node_modules/canvg/lib/index.es.js +84 -84
  238. package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
  239. package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
  240. package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
  241. package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
  242. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  243. package/dist/node_modules/fflate/esm/browser.js +295 -335
  244. package/dist/node_modules/fflate/esm/browser.js.map +1 -1
  245. package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
  246. package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
  247. package/dist/node_modules/raf/index.js +1 -1
  248. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  249. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  250. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  251. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  252. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  253. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  254. package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
  255. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  256. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  257. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  258. package/package.json +1 -1
  259. package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
  260. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  261. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/resize-observer/es/SingleObserver/index.js"],"sourcesContent":["import { getDOM } from \"@rc-component/util/es/Dom/findDOMNode\";\nimport { supportRef, useComposeRef, getNodeRef } from \"@rc-component/util/es/ref\";\nimport * as React from 'react';\nimport { CollectionContext } from \"../Collection\";\nimport { observe, unobserve } from \"../utils/observerUtil\";\nfunction SingleObserver(props, ref) {\n const {\n children,\n disabled\n } = props;\n const elementRef = React.useRef(null);\n const onCollectionResize = React.useContext(CollectionContext);\n\n // =========================== Children ===========================\n const isRenderProps = typeof children === 'function';\n const mergedChildren = isRenderProps ? children(elementRef) : children;\n\n // ============================= Size =============================\n const sizeRef = React.useRef({\n width: -1,\n height: -1,\n offsetWidth: -1,\n offsetHeight: -1\n });\n\n // ============================= Ref ==============================\n const canRef = !isRenderProps && /*#__PURE__*/React.isValidElement(mergedChildren) && supportRef(mergedChildren);\n const originRef = canRef ? getNodeRef(mergedChildren) : null;\n const mergedRef = useComposeRef(originRef, elementRef);\n const getDomElement = () => {\n return getDOM(elementRef.current);\n };\n React.useImperativeHandle(ref, () => getDomElement());\n\n // =========================== Observe ============================\n const propsRef = React.useRef(props);\n propsRef.current = props;\n\n // Handler\n const onInternalResize = React.useCallback(target => {\n const {\n onResize,\n data\n } = propsRef.current;\n const {\n width,\n height\n } = target.getBoundingClientRect();\n const {\n offsetWidth,\n offsetHeight\n } = target;\n\n /**\n * Resize observer trigger when content size changed.\n * In most case we just care about element size,\n * let's use `boundary` instead of `contentRect` here to avoid shaking.\n */\n const fixedWidth = Math.floor(width);\n const fixedHeight = Math.floor(height);\n if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {\n const size = {\n width: fixedWidth,\n height: fixedHeight,\n offsetWidth,\n offsetHeight\n };\n sizeRef.current = size;\n\n // IE is strange, right?\n const mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;\n const mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;\n const sizeInfo = {\n ...size,\n offsetWidth: mergedOffsetWidth,\n offsetHeight: mergedOffsetHeight\n };\n\n // Let collection know what happened\n onCollectionResize?.(sizeInfo, target, data);\n if (onResize) {\n // defer the callback but not defer to next frame\n Promise.resolve().then(() => {\n onResize(sizeInfo, target);\n });\n }\n }\n }, []);\n\n // Dynamic observe\n React.useEffect(() => {\n const currentElement = getDomElement();\n if (currentElement && !disabled) {\n observe(currentElement, onInternalResize);\n }\n return () => unobserve(currentElement, onInternalResize);\n }, [elementRef.current, disabled]);\n\n // ============================ Render ============================\n return canRef ? /*#__PURE__*/React.cloneElement(mergedChildren, {\n ref: mergedRef\n }) : mergedChildren;\n}\nconst RefSingleObserver = /*#__PURE__*/React.forwardRef(SingleObserver);\nif (process.env.NODE_ENV !== 'production') {\n RefSingleObserver.displayName = 'SingleObserver';\n}\nexport default RefSingleObserver;"],"names":["SingleObserver","props","ref","children","disabled","elementRef","React","onCollectionResize","CollectionContext","isRenderProps","mergedChildren","sizeRef","canRef","supportRef","originRef","getNodeRef","mergedRef","useComposeRef","getDomElement","getDOM","propsRef","onInternalResize","target","onResize","data","width","height","offsetWidth","offsetHeight","fixedWidth","fixedHeight","size","mergedOffsetWidth","mergedOffsetHeight","sizeInfo","currentElement","observ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QC;AAAA,QACR,aAAAH;AAAA,QACA,cAAAC;AAAA,MACR;AACM,MAAAjB,EAAQ,UAAUoB;AAGlB,YAAMC,IAAoBL,MAAgB,KAAK,MAAMF,CAAK,IAAIA,IAAQE,GAChEM,IAAqBL,MAAiB,KAAK,MAAMF,CAAM,IAAIA,IAASE,GACpEM,IAAW;AAAA,QACf,GAAGH;AAAA,QACH,aAAaC;AAAA,QACb,cAAcC;AAAA,MACtB;AAGM,MAAA1B,IAAqB2B,GAAUZ,GAAQE,CAAI,GACvCD,KAEF,QAAQ,UAAU,KAAK,MAAM;AAC3B,QAAAA,EAASW,GAAUZ,CAAM;AAAA,MAC3B,CAAC;AAAA,IAEL;AAAA,EACF,GAAG,CAAA,CAAE;AAGL,SAAAhB,EAAM,UAAU,MAAM;AACpB,UAAM6B,IAAiBjB,EAAa;AACpC,WAAIiB,KAAkB,CAAC/B,KACrBgC,EAAQD,GAAgBd,CAAgB,GAEnC,MAAMgB,EAAUF,GAAgBd,CAAgB;AAAA,EACzD,GAAG,CAAChB,EAAW,SAASD,CAAQ,CAAC,GAG1BQ,IAAsB,gBAAAN,EAAM,aAAaI,GAAgB;AAAA,IAC9D,KAAKM;AAAA,EACT,CAAG,IAAIN;AACP;AACK,MAAC4B,IAAiC,gBAAAhC,EAAM,WAAWN,CAAc;AAClEuC,EAAQ,IAAI,aAAa,iBAC3BD,EAAkB,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/resize-observer/es/SingleObserver/index.js"],"sourcesContent":["import { getDOM } from \"@rc-component/util/es/Dom/findDOMNode\";\nimport { supportRef, useComposeRef, getNodeRef } from \"@rc-component/util/es/ref\";\nimport * as React from 'react';\nimport { CollectionContext } from \"../Collection\";\nimport useResizeObserver from \"../useResizeObserver\";\nfunction SingleObserver(props, ref) {\n const {\n children,\n disabled,\n onResize,\n data\n } = props;\n const elementRef = React.useRef(null);\n const onCollectionResize = React.useContext(CollectionContext);\n\n // =========================== Children ===========================\n const isRenderProps = typeof children === 'function';\n const mergedChildren = isRenderProps ? children(elementRef) : children;\n\n // ============================= Ref ==============================\n const canRef = !isRenderProps && /*#__PURE__*/React.isValidElement(mergedChildren) && supportRef(mergedChildren);\n const originRef = canRef ? getNodeRef(mergedChildren) : null;\n const mergedRef = useComposeRef(originRef, elementRef);\n const getDomElement = () => {\n return getDOM(elementRef.current);\n };\n React.useImperativeHandle(ref, () => getDomElement());\n\n // =========================== Observe ============================\n useResizeObserver(!disabled, getDomElement, onResize, (sizeInfo, target) => {\n onCollectionResize?.(sizeInfo, target, data);\n });\n\n // ============================ Render ============================\n return canRef ? /*#__PURE__*/React.cloneElement(mergedChildren, {\n ref: mergedRef\n }) : mergedChildren;\n}\nconst RefSingleObserver = /*#__PURE__*/React.forwardRef(SingleObserver);\nif (process.env.NODE_ENV !== 'production') {\n RefSingleObserver.displayName = 'SingleObserver';\n}\nexport default RefSingleObserver;"],"names":["SingleObserver","props","ref","children","disabled","onResize","data","elementRef","React","onCollectionResize","CollectionContext","isRenderProps","mergedChildren","canRef","supportRef","originRef","getNodeRef","mergedRef","useComposeRef","getDomElement","getDOM","useResizeObserver","sizeInfo","target","RefSingleObserver","process"],"mappings":";;;;;;AAKA,SAASA,EAAeC,GAAOC,GAAK;AAClC,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAML,GACEM,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAqBD,EAAM,WAAWE,CAAiB,GAGvDC,IAAgB,OAAOR,KAAa,YACpCS,IAAiBD,IAAgBR,EAASI,CAAU,IAAIJ,GAGxDU,IAAS,CAACF,KAA8B,gBAAAH,EAAM,eAAeI,CAAc,KAAKE,EAAWF,CAAc,GACzGG,IAAYF,IAASG,EAAWJ,CAAc,IAAI,MAClDK,IAAYC,EAAcH,GAAWR,CAAU,GAC/CY,IAAgB,MACbC,EAAOb,EAAW,OAAO;AAElC,SAAAC,EAAM,oBAAoBN,GAAK,MAAMiB,EAAa,CAAE,GAGpDE,EAAkB,CAACjB,GAAUe,GAAed,GAAU,CAACiB,GAAUC,MAAW;AAC1E,IAAAd,IAAqBa,GAAUC,GAAQjB,CAAI;AAAA,EAC7C,CAAC,GAGMO,IAAsB,gBAAAL,EAAM,aAAaI,GAAgB;AAAA,IAC9D,KAAKK;AAAA,EACT,CAAG,IAAIL;AACP;AACK,MAACY,IAAiC,gBAAAhB,EAAM,WAAWR,CAAc;AAClEyB,EAAQ,IAAI,aAAa,iBAC3BD,EAAkB,cAAc;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/@rc-component/resize-observer/es/index.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport toArray from \"@rc-component/util/es/Children/toArray\";\nimport { warning } from \"@rc-component/util/es/warning\";\nimport SingleObserver from \"./SingleObserver\";\nimport { Collection } from \"./Collection\";\nconst INTERNAL_PREFIX_KEY = 'rc-observer-key';\nimport { _rs } from \"./utils/observerUtil\";\nexport { /** @private Test only for mock trigger resize event */\n_rs };\nfunction ResizeObserver(props, ref) {\n const {\n children\n } = props;\n const childNodes = typeof children === 'function' ? [children] : toArray(children);\n if (process.env.NODE_ENV !== 'production') {\n if (childNodes.length > 1) {\n warning(false, 'Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.');\n } else if (childNodes.length === 0) {\n warning(false, '`children` of ResizeObserver is empty. Nothing is in observe.');\n }\n }\n return childNodes.map((child, index) => {\n const key = child?.key || `${INTERNAL_PREFIX_KEY}-${index}`;\n return /*#__PURE__*/React.createElement(SingleObserver, _extends({}, props, {\n key: key,\n ref: index === 0 ? ref : undefined\n }), child);\n });\n}\nconst RefResizeObserver = /*#__PURE__*/React.forwardRef(ResizeObserver);\nif (process.env.NODE_ENV !== 'production') {\n RefResizeObserver.displayName = 'ResizeObserver';\n}\nRefResizeObserver.Collection = Collection;\nexport default RefResizeObserver;"],"names":["_extends","target","i","source","key","INTERNAL_PREFIX_KEY","ResizeObserver","props","ref","children","childNodes","toArray","process","warning","child","index","React","SingleObserver","RefResizeObserver","Collection"],"mappings":";;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ;AAAE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,UAAIC,IAAS,UAAUD,CAAC;AAAG,eAASE,KAAOD;AAAU,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MAAKH,EAAOG,CAAG,IAAID,EAAOC,CAAG;AAAA,IAAO;AAAE,WAAOH;AAAA,EAAQ,GAAUD,EAAS,MAAM,MAAM,SAAS;AAAG;AAMlV,MAAMK,IAAsB;AAI5B,SAASC,EAAeC,GAAOC,GAAK;AAClC,QAAM;AAAA,IACJ,UAAAC;AAAA,EACJ,IAAMF,GACEG,IAAa,OAAOD,KAAa,aAAa,CAACA,CAAQ,IAAIE,EAAQF,CAAQ;AACjF,SAAIG,EAAQ,IAAI,aAAa,iBACvBF,EAAW,SAAS,IACtBG,EAAQ,IAAO,gHAAgH,IACtHH,EAAW,WAAW,KAC/BG,EAAQ,IAAO,+DAA+D,IAG3EH,EAAW,IAAI,CAACI,GAAOC,MAAU;AACtC,UAAMX,IAAMU,GAAO,OAAO,GAAGT,CAAmB,IAAIU,CAAK;AACzD,WAAoB,gBAAAC,EAAM,cAAcC,GAAgBjB,EAAS,CAAA,GAAIO,GAAO;AAAA,MAC1E,KAAKH;AAAA,MACL,KAAKW,MAAU,IAAIP,IAAM;AAAA,IAC/B,CAAK,GAAGM,CAAK;AAAA,EACX,CAAC;AACH;AACK,MAACI,IAAiC,gBAAAF,EAAM,WAAWV,CAAc;AAClEM,EAAQ,IAAI,aAAa,iBAC3BM,EAAkB,cAAc;AAElCA,EAAkB,aAAaC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/@rc-component/resize-observer/es/index.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport toArray from \"@rc-component/util/es/Children/toArray\";\nimport { warning } from \"@rc-component/util/es/warning\";\nimport SingleObserver from \"./SingleObserver\";\nimport { Collection } from \"./Collection\";\nconst INTERNAL_PREFIX_KEY = 'rc-observer-key';\nimport { _rs } from \"./utils/observerUtil\";\nexport { /** @private Test only for mock trigger resize event */\n_rs };\nexport { default as useResizeObserver } from \"./useResizeObserver\";\nfunction ResizeObserver(props, ref) {\n const {\n children\n } = props;\n const childNodes = typeof children === 'function' ? [children] : toArray(children);\n if (process.env.NODE_ENV !== 'production') {\n if (childNodes.length > 1) {\n warning(false, 'Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.');\n } else if (childNodes.length === 0) {\n warning(false, '`children` of ResizeObserver is empty. Nothing is in observe.');\n }\n }\n return childNodes.map((child, index) => {\n const key = child?.key || `${INTERNAL_PREFIX_KEY}-${index}`;\n return /*#__PURE__*/React.createElement(SingleObserver, _extends({}, props, {\n key: key,\n ref: index === 0 ? ref : undefined\n }), child);\n });\n}\nconst RefResizeObserver = /*#__PURE__*/React.forwardRef(ResizeObserver);\nif (process.env.NODE_ENV !== 'production') {\n RefResizeObserver.displayName = 'ResizeObserver';\n}\nRefResizeObserver.Collection = Collection;\nexport default RefResizeObserver;"],"names":["_extends","target","i","source","key","INTERNAL_PREFIX_KEY","ResizeObserver","props","ref","children","childNodes","toArray","process","warning","child","index","React","SingleObserver","RefResizeObserver","Collection"],"mappings":";;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ;AAAE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,UAAIC,IAAS,UAAUD,CAAC;AAAG,eAASE,KAAOD;AAAU,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MAAKH,EAAOG,CAAG,IAAID,EAAOC,CAAG;AAAA,IAAO;AAAE,WAAOH;AAAA,EAAQ,GAAUD,EAAS,MAAM,MAAM,SAAS;AAAG;AAMlV,MAAMK,IAAsB;AAK5B,SAASC,EAAeC,GAAOC,GAAK;AAClC,QAAM;AAAA,IACJ,UAAAC;AAAA,EACJ,IAAMF,GACEG,IAAa,OAAOD,KAAa,aAAa,CAACA,CAAQ,IAAIE,EAAQF,CAAQ;AACjF,SAAIG,EAAQ,IAAI,aAAa,iBACvBF,EAAW,SAAS,IACtBG,EAAQ,IAAO,gHAAgH,IACtHH,EAAW,WAAW,KAC/BG,EAAQ,IAAO,+DAA+D,IAG3EH,EAAW,IAAI,CAACI,GAAOC,MAAU;AACtC,UAAMX,IAAMU,GAAO,OAAO,GAAGT,CAAmB,IAAIU,CAAK;AACzD,WAAoB,gBAAAC,EAAM,cAAcC,GAAgBjB,EAAS,CAAA,GAAIO,GAAO;AAAA,MAC1E,KAAKH;AAAA,MACL,KAAKW,MAAU,IAAIP,IAAM;AAAA,IAC/B,CAAK,GAAGM,CAAK;AAAA,EACX,CAAC;AACH;AACK,MAACI,IAAiC,gBAAAF,EAAM,WAAWV,CAAc;AAClEM,EAAQ,IAAI,aAAa,iBAC3BM,EAAkB,cAAc;AAElCA,EAAkB,aAAaC;","x_google_ignoreList":[0]}
@@ -0,0 +1,50 @@
1
+ import * as H from "react";
2
+ import { observe as v, unobserve as z } from "./utils/observerUtil.js";
3
+ import a from "../../util/es/hooks/useEvent.js";
4
+ function x(h, o, R, W) {
5
+ const e = H.useRef({
6
+ width: -1,
7
+ height: -1,
8
+ offsetWidth: -1,
9
+ offsetHeight: -1
10
+ }), r = a((t) => {
11
+ const {
12
+ width: s,
13
+ height: n
14
+ } = t.getBoundingClientRect(), {
15
+ offsetWidth: f,
16
+ offsetHeight: i
17
+ } = t, u = Math.floor(s), d = Math.floor(n);
18
+ if (e.current.width !== u || e.current.height !== d || e.current.offsetWidth !== f || e.current.offsetHeight !== i) {
19
+ const m = {
20
+ width: u,
21
+ height: d,
22
+ offsetWidth: f,
23
+ offsetHeight: i
24
+ };
25
+ e.current = m;
26
+ const l = f === Math.round(s) ? s : f, p = i === Math.round(n) ? n : i, g = {
27
+ ...m,
28
+ offsetWidth: l,
29
+ offsetHeight: p
30
+ };
31
+ W?.(g, t), Promise.resolve().then(() => {
32
+ R?.(g, t);
33
+ });
34
+ }
35
+ }), c = typeof o == "function";
36
+ H.useEffect(() => {
37
+ const t = c ? o() : o;
38
+ return t && h && v(t, r), () => {
39
+ t && z(t, r);
40
+ };
41
+ }, [
42
+ h,
43
+ // When is function, no need to watch it
44
+ c ? 0 : o
45
+ ]);
46
+ }
47
+ export {
48
+ x as default
49
+ };
50
+ //# sourceMappingURL=useResizeObserver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResizeObserver.js","sources":["../../../../../node_modules/@rc-component/resize-observer/es/useResizeObserver.js"],"sourcesContent":["import * as React from 'react';\nimport { observe, unobserve } from \"./utils/observerUtil\";\nimport { useEvent } from '@rc-component/util';\nexport default function useResizeObserver(enabled, getTarget, onDelayResize, onSyncResize) {\n // ============================= Size =============================\n const sizeRef = React.useRef({\n width: -1,\n height: -1,\n offsetWidth: -1,\n offsetHeight: -1\n });\n\n // =========================== Observe ============================\n\n // Handler\n const onInternalResize = useEvent(target => {\n const {\n width,\n height\n } = target.getBoundingClientRect();\n const {\n offsetWidth,\n offsetHeight\n } = target;\n\n /**\n * Resize observer trigger when content size changed.\n * In most case we just care about element size,\n * let's use `boundary` instead of `contentRect` here to avoid shaking.\n */\n const fixedWidth = Math.floor(width);\n const fixedHeight = Math.floor(height);\n if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {\n const size = {\n width: fixedWidth,\n height: fixedHeight,\n offsetWidth,\n offsetHeight\n };\n sizeRef.current = size;\n\n // IE is strange, right?\n const mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;\n const mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;\n const sizeInfo = {\n ...size,\n offsetWidth: mergedOffsetWidth,\n offsetHeight: mergedOffsetHeight\n };\n\n // Call the callback immediately, let the caller decide whether to defer\n // onResize(sizeInfo, target);\n onSyncResize?.(sizeInfo, target);\n\n // defer the callback but not defer to next frame\n Promise.resolve().then(() => {\n onDelayResize?.(sizeInfo, target);\n });\n }\n });\n\n // Dynamic observe\n const isFuncTarget = typeof getTarget === 'function';\n React.useEffect(() => {\n const target = isFuncTarget ? getTarget() : getTarget;\n if (target && enabled) {\n observe(target, onInternalResize);\n }\n return () => {\n if (target) {\n unobserve(target, onInternalResize);\n }\n };\n }, [enabled,\n // When is function, no need to watch it\n isFuncTarget ? 0 : getTarget]);\n}"],"names":["useResizeObserver","enabled","getTarget","onDelayResize","onSyncResize","sizeRef","React","onInternalResize","useEvent","target","width","height","offsetWidth","offsetHeight","fixedWidth","fixedHeight","size","mergedOffsetWidth","mergedOffsetHeight","sizeInfo","isFuncTarget","observe","unobserve"],"mappings":";;;AAGe,SAASA,EAAkBC,GAASC,GAAWC,GAAeC,GAAc;AAEzF,QAAMC,IAAUC,EAAM,OAAO;AAAA,IAC3B,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,aAAa;AAAA,IACb,cAAc;AAAA,EAClB,CAAG,GAKKC,IAAmBC,EAAS,CAAAC,MAAU;AAC1C,UAAM;AAAA,MACJ,OAAAC;AAAA,MACA,QAAAC;AAAA,IACN,IAAQF,EAAO,sBAAqB,GAC1B;AAAA,MACJ,aAAAG;AAAA,MACA,cAAAC;AAAA,IACN,IAAQJ,GAOEK,IAAa,KAAK,MAAMJ,CAAK,GAC7BK,IAAc,KAAK,MAAMJ,CAAM;AACrC,QAAIN,EAAQ,QAAQ,UAAUS,KAAcT,EAAQ,QAAQ,WAAWU,KAAeV,EAAQ,QAAQ,gBAAgBO,KAAeP,EAAQ,QAAQ,iBAAiBQ,GAAc;AAClL,YAAMG,IAAO;AAAA,QACX,OAAOF;AAAA,QACP,QAAQC;AAAA,QACR,aAAAH;AAAA,QACA,cAAAC;AAAA,MACR;AACM,MAAAR,EAAQ,UAAUW;AAGlB,YAAMC,IAAoBL,MAAgB,KAAK,MAAMF,CAAK,IAAIA,IAAQE,GAChEM,IAAqBL,MAAiB,KAAK,MAAMF,CAAM,IAAIA,IAASE,GACpEM,IAAW;AAAA,QACf,GAAGH;AAAA,QACH,aAAaC;AAAA,QACb,cAAcC;AAAA,MACtB;AAIM,MAAAd,IAAee,GAAUV,CAAM,GAG/B,QAAQ,UAAU,KAAK,MAAM;AAC3B,QAAAN,IAAgBgB,GAAUV,CAAM;AAAA,MAClC,CAAC;AAAA,IACH;AAAA,EACF,CAAC,GAGKW,IAAe,OAAOlB,KAAc;AAC1C,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMG,IAASW,IAAelB,EAAS,IAAKA;AAC5C,WAAIO,KAAUR,KACZoB,EAAQZ,GAAQF,CAAgB,GAE3B,MAAM;AACX,MAAIE,KACFa,EAAUb,GAAQF,CAAgB;AAAA,IAEtC;AAAA,EACF,GAAG;AAAA,IAACN;AAAA;AAAA,IAEJmB,IAAe,IAAIlB;AAAA,EAAS,CAAC;AAC/B;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import * as o from "react";
2
- import { clsx as P } from "../../../../../clsx/dist/clsx.js";
2
+ import { clsx as v } from "../../../../../clsx/dist/clsx.js";
3
3
  import G from "../../../../overflow/es/Overflow.js";
4
4
  import H from "../Input.js";
5
5
  import { useSelectInputContext as J } from "../context.js";
@@ -7,15 +7,15 @@ import Q from "../../TransBtn.js";
7
7
  import { getTitle as U } from "../../utils/commonUtil.js";
8
8
  import X from "../../hooks/useBaseProps.js";
9
9
  import Y from "./Placeholder.js";
10
- function T() {
11
- return T = Object.assign ? Object.assign.bind() : function(t) {
10
+ function P() {
11
+ return P = Object.assign ? Object.assign.bind() : function(t) {
12
12
  for (var c = 1; c < arguments.length; c++) {
13
13
  var m = arguments[c];
14
- for (var s in m)
15
- Object.prototype.hasOwnProperty.call(m, s) && (t[s] = m[s]);
14
+ for (var l in m)
15
+ Object.prototype.hasOwnProperty.call(m, l) && (t[l] = m[l]);
16
16
  }
17
17
  return t;
18
- }, T.apply(this, arguments);
18
+ }, P.apply(this, arguments);
19
19
  }
20
20
  function Z(t) {
21
21
  return t.key ?? t.value;
@@ -26,102 +26,102 @@ const I = (t) => {
26
26
  inputProps: c
27
27
  }, m) {
28
28
  const {
29
- prefixCls: s,
29
+ prefixCls: l,
30
30
  displayValues: y,
31
- searchValue: w,
32
- mode: M,
33
- onSelectorRemove: $,
34
- removeIcon: N
31
+ searchValue: M,
32
+ mode: $,
33
+ onSelectorRemove: N,
34
+ removeIcon: V
35
35
  } = J(), {
36
36
  disabled: b,
37
- showSearch: O,
38
- triggerOpen: h,
39
- toggleOpen: V,
40
- autoClearSearchValue: F,
41
- tagRender: j,
42
- maxTagPlaceholder: L,
43
- maxTagTextLength: C,
44
- maxTagCount: z,
37
+ showSearch: T,
38
+ triggerOpen: w,
39
+ toggleOpen: F,
40
+ autoClearSearchValue: j,
41
+ tagRender: L,
42
+ maxTagPlaceholder: z,
43
+ maxTagTextLength: h,
44
+ maxTagCount: B,
45
45
  classNames: f,
46
46
  styles: d
47
- } = X(), p = `${s}-selection-item`;
48
- let E = w;
49
- !h && M === "multiple" && F !== !1 && (E = "");
50
- const B = O && E || "", K = O && !b, W = N ?? "×", R = L ?? ((e) => `+ ${e.length} ...`), v = j, _ = (e) => {
51
- V(e);
47
+ } = X(), p = `${l}-selection-item`;
48
+ let O = M;
49
+ !w && $ === "multiple" && j !== !1 && (O = "");
50
+ const E = T && O || "", K = T && !b, W = V ?? "×", C = z ?? ((e) => `+ ${e.length} ...`), R = L, _ = (e) => {
51
+ F(e);
52
52
  }, k = (e) => {
53
- $?.(e);
54
- }, S = (e, n, r, l, u) => /* @__PURE__ */ o.createElement("span", {
53
+ N?.(e);
54
+ }, S = (e, n, r, a, u) => /* @__PURE__ */ o.createElement("span", {
55
55
  title: U(e),
56
- className: P(p, {
56
+ className: v(p, {
57
57
  [`${p}-disabled`]: r
58
58
  }, f?.item),
59
59
  style: d?.item
60
60
  }, /* @__PURE__ */ o.createElement("span", {
61
- className: P(`${p}-content`, f?.itemContent),
61
+ className: v(`${p}-content`, f?.itemContent),
62
62
  style: d?.itemContent
63
- }, n), l && /* @__PURE__ */ o.createElement(Q, {
64
- className: P(`${p}-remove`, f?.itemRemove),
63
+ }, n), a && /* @__PURE__ */ o.createElement(Q, {
64
+ className: v(`${p}-remove`, f?.itemRemove),
65
65
  style: d?.itemRemove,
66
66
  onMouseDown: I,
67
67
  onClick: u,
68
68
  customizeIcon: W
69
- }, "×")), D = (e, n, r, l, u, g, i) => {
70
- const x = (a) => {
71
- I(a), _(!h);
69
+ }, "×")), D = (e, n, r, a, u, g, i) => {
70
+ const x = (s) => {
71
+ I(s), _(!w);
72
72
  };
73
73
  return /* @__PURE__ */ o.createElement("span", {
74
74
  onMouseDown: x
75
- }, v({
75
+ }, R({
76
76
  label: n,
77
77
  value: e,
78
78
  index: i?.index,
79
79
  disabled: r,
80
- closable: l,
80
+ closable: a,
81
81
  onClose: u,
82
82
  isMaxTag: !!g
83
83
  }));
84
84
  }, q = (e, n) => {
85
85
  const {
86
86
  disabled: r,
87
- label: l,
87
+ label: a,
88
88
  value: u
89
89
  } = e, g = !b && !r;
90
- let i = l;
91
- if (typeof C == "number" && (typeof l == "string" || typeof l == "number")) {
92
- const a = String(i);
93
- a.length > C && (i = `${a.slice(0, C)}...`);
90
+ let i = a;
91
+ if (typeof h == "number" && (typeof a == "string" || typeof a == "number")) {
92
+ const s = String(i);
93
+ s.length > h && (i = `${s.slice(0, h)}...`);
94
94
  }
95
- const x = (a) => {
96
- a && a.stopPropagation(), k(e);
95
+ const x = (s) => {
96
+ s && s.stopPropagation(), k(e);
97
97
  };
98
- return typeof v == "function" ? D(u, i, r, g, x, void 0, n) : S(e, i, r, g, x);
98
+ return typeof R == "function" ? D(u, i, r, g, x, void 0, n) : S(e, i, r, g, x);
99
99
  }, A = (e) => {
100
100
  if (!y.length)
101
101
  return null;
102
- const n = typeof R == "function" ? R(e) : R;
103
- return typeof v == "function" ? D(void 0, n, !1, !1, void 0, !0) : S({
102
+ const n = typeof C == "function" ? C(e) : C;
103
+ return typeof R == "function" ? D(void 0, n, !1, !1, void 0, !0) : S({
104
104
  title: n
105
105
  }, n, !1);
106
106
  };
107
107
  return /* @__PURE__ */ o.createElement(G, {
108
- prefixCls: `${s}-content`,
108
+ prefixCls: `${l}-content`,
109
109
  className: f?.content,
110
110
  style: d?.content,
111
- prefix: !y.length && (!w || !h) ? /* @__PURE__ */ o.createElement(Y, null) : null,
111
+ prefix: !y.length && !E && /* @__PURE__ */ o.createElement(Y, null),
112
112
  data: y,
113
113
  renderItem: q,
114
114
  renderRest: A,
115
- suffix: /* @__PURE__ */ o.createElement(H, T({
115
+ suffix: /* @__PURE__ */ o.createElement(H, P({
116
116
  ref: m,
117
117
  disabled: b,
118
118
  readOnly: !K
119
119
  }, c, {
120
- value: B || "",
120
+ value: E || "",
121
121
  syncWidth: !0
122
122
  })),
123
123
  itemKey: Z,
124
- maxCount: z
124
+ maxCount: B
125
125
  });
126
126
  });
127
127
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"MultipleContent.js","sources":["../../../../../../../node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport Overflow from '@rc-component/overflow';\nimport Input from \"../Input\";\nimport { useSelectInputContext } from \"../context\";\nimport TransBtn from \"../../TransBtn\";\nimport { getTitle } from \"../../utils/commonUtil\";\nimport useBaseProps from \"../../hooks/useBaseProps\";\nimport Placeholder from \"./Placeholder\";\nfunction itemKey(value) {\n return value.key ?? value.value;\n}\nconst onPreventMouseDown = event => {\n event.preventDefault();\n event.stopPropagation();\n};\nexport default /*#__PURE__*/React.forwardRef(function MultipleContent({\n inputProps\n}, ref) {\n const {\n prefixCls,\n displayValues,\n searchValue,\n mode,\n onSelectorRemove,\n removeIcon: removeIconFromContext\n } = useSelectInputContext();\n const {\n disabled,\n showSearch,\n triggerOpen,\n toggleOpen,\n autoClearSearchValue,\n tagRender: tagRenderFromContext,\n maxTagPlaceholder: maxTagPlaceholderFromContext,\n maxTagTextLength,\n maxTagCount,\n classNames,\n styles\n } = useBaseProps();\n const selectionItemPrefixCls = `${prefixCls}-selection-item`;\n\n // ===================== Search ======================\n // Apply autoClearSearchValue logic: when dropdown is closed and autoClearSearchValue is not false (default true), clear search value\n let computedSearchValue = searchValue;\n if (!triggerOpen && mode === 'multiple' && autoClearSearchValue !== false) {\n computedSearchValue = '';\n }\n const inputValue = showSearch ? computedSearchValue || '' : '';\n const inputEditable = showSearch && !disabled;\n\n // Props from context with safe defaults\n const removeIcon = removeIconFromContext ?? '×';\n const maxTagPlaceholder = maxTagPlaceholderFromContext ?? (omittedValues => `+ ${omittedValues.length} ...`);\n const tagRender = tagRenderFromContext;\n const onToggleOpen = newOpen => {\n toggleOpen(newOpen);\n };\n const onRemove = value => {\n onSelectorRemove?.(value);\n };\n\n // ======================== Item ========================\n // >>> Render Selector Node. Includes Item & Rest\n const defaultRenderSelector = (item, content, itemDisabled, closable, onClose) => /*#__PURE__*/React.createElement(\"span\", {\n title: getTitle(item),\n className: clsx(selectionItemPrefixCls, {\n [`${selectionItemPrefixCls}-disabled`]: itemDisabled\n }, classNames?.item),\n style: styles?.item\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(`${selectionItemPrefixCls}-content`, classNames?.itemContent),\n style: styles?.itemContent\n }, content), closable && /*#__PURE__*/React.createElement(TransBtn, {\n className: clsx(`${selectionItemPrefixCls}-remove`, classNames?.itemRemove),\n style: styles?.itemRemove,\n onMouseDown: onPreventMouseDown,\n onClick: onClose,\n customizeIcon: removeIcon\n }, \"\\xD7\"));\n const customizeRenderSelector = (value, content, itemDisabled, closable, onClose, isMaxTag, info) => {\n const onMouseDown = e => {\n onPreventMouseDown(e);\n onToggleOpen(!triggerOpen);\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n onMouseDown: onMouseDown\n }, tagRender({\n label: content,\n value,\n index: info?.index,\n disabled: itemDisabled,\n closable,\n onClose,\n isMaxTag: !!isMaxTag\n }));\n };\n\n // ====================== Overflow ======================\n const renderItem = (valueItem, info) => {\n const {\n disabled: itemDisabled,\n label,\n value\n } = valueItem;\n const closable = !disabled && !itemDisabled;\n let displayLabel = label;\n if (typeof maxTagTextLength === 'number') {\n if (typeof label === 'string' || typeof label === 'number') {\n const strLabel = String(displayLabel);\n if (strLabel.length > maxTagTextLength) {\n displayLabel = `${strLabel.slice(0, maxTagTextLength)}...`;\n }\n }\n }\n const onClose = event => {\n if (event) {\n event.stopPropagation();\n }\n onRemove(valueItem);\n };\n return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose, undefined, info) : defaultRenderSelector(valueItem, displayLabel, itemDisabled, closable, onClose);\n };\n const renderRest = omittedValues => {\n // https://github.com/ant-design/ant-design/issues/48930\n if (!displayValues.length) {\n return null;\n }\n const content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n return typeof tagRender === 'function' ? customizeRenderSelector(undefined, content, false, false, undefined, true) : defaultRenderSelector({\n title: content\n }, content, false);\n };\n\n // ======================= Render =======================\n return /*#__PURE__*/React.createElement(Overflow, {\n prefixCls: `${prefixCls}-content`,\n className: classNames?.content,\n style: styles?.content,\n prefix: !displayValues.length && (!searchValue || !triggerOpen) ? /*#__PURE__*/React.createElement(Placeholder, null) : null,\n data: displayValues,\n renderItem: renderItem,\n renderRest: renderRest,\n suffix: /*#__PURE__*/React.createElement(Input, _extends({\n ref: ref,\n disabled: disabled,\n readOnly: !inputEditable\n }, inputProps, {\n value: inputValue || '',\n syncWidth: true\n })),\n itemKey: itemKey,\n maxCount: maxTagCount\n });\n});"],"names":["_extends","target","i","source","key","itemKey","value","onPreventMouseDown","event","MultipleContent","React","inputProps","ref","prefixCls","displayValues","searchValue","mode","onSelectorRemove","removeIconFromContext","useSelectInputContext","disabled","showSearch","triggerOpen","toggleOpen","autoClearSearchValue","tagRenderFromContext","maxTagPlaceholderFromContext","maxTagTextLength","maxTagCount","classNames","styles","useBaseProps","selectionItemPrefixCls","computedSearchValue","inputValue","inputEditable","removeIcon","maxTagPlaceholder","omittedValues","tagRender","onToggleOpen","newOpen","onRemove","defaultRenderSelector","item","content","itemDisabled","closable","onClose","getTitle","clsx","TransBtn","customizeRenderSelector","isMaxTag","info","onMouseDown","e","renderItem","valueItem","label","displayLabel","strLabel","renderRest","Overflow","Placeholder","Input"],"mappings":";;;;;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ;AAAE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,UAAIC,IAAS,UAAUD,CAAC;AAAG,eAASE,KAAOD;AAAU,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MAAKH,EAAOG,CAAG,IAAID,EAAOC,CAAG;AAAA,IAAO;AAAE,WAAOH;AAAA,EAAQ,G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c-component/select/es/SelectInput/Content/MultipleContent.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport Overflow from '@rc-component/overflow';\nimport Input from \"../Input\";\nimport { useSelectInputContext } from \"../context\";\nimport TransBtn from \"../../TransBtn\";\nimport { getTitle } from \"../../utils/commonUtil\";\nimport useBaseProps from \"../../hooks/useBaseProps\";\nimport Placeholder from \"./Placeholder\";\nfunction itemKey(value) {\n return value.key ?? value.value;\n}\nconst onPreventMouseDown = event => {\n event.preventDefault();\n event.stopPropagation();\n};\nexport default /*#__PURE__*/React.forwardRef(function MultipleContent({\n inputProps\n}, ref) {\n const {\n prefixCls,\n displayValues,\n searchValue,\n mode,\n onSelectorRemove,\n removeIcon: removeIconFromContext\n } = useSelectInputContext();\n const {\n disabled,\n showSearch,\n triggerOpen,\n toggleOpen,\n autoClearSearchValue,\n tagRender: tagRenderFromContext,\n maxTagPlaceholder: maxTagPlaceholderFromContext,\n maxTagTextLength,\n maxTagCount,\n classNames,\n styles\n } = useBaseProps();\n const selectionItemPrefixCls = `${prefixCls}-selection-item`;\n\n // ===================== Search ======================\n // Apply autoClearSearchValue logic: when dropdown is closed and autoClearSearchValue is not false (default true), clear search value\n let computedSearchValue = searchValue;\n if (!triggerOpen && mode === 'multiple' && autoClearSearchValue !== false) {\n computedSearchValue = '';\n }\n const inputValue = showSearch ? computedSearchValue || '' : '';\n const inputEditable = showSearch && !disabled;\n\n // Props from context with safe defaults\n const removeIcon = removeIconFromContext ?? '×';\n const maxTagPlaceholder = maxTagPlaceholderFromContext ?? (omittedValues => `+ ${omittedValues.length} ...`);\n const tagRender = tagRenderFromContext;\n const onToggleOpen = newOpen => {\n toggleOpen(newOpen);\n };\n const onRemove = value => {\n onSelectorRemove?.(value);\n };\n\n // ======================== Item ========================\n // >>> Render Selector Node. Includes Item & Rest\n const defaultRenderSelector = (item, content, itemDisabled, closable, onClose) => /*#__PURE__*/React.createElement(\"span\", {\n title: getTitle(item),\n className: clsx(selectionItemPrefixCls, {\n [`${selectionItemPrefixCls}-disabled`]: itemDisabled\n }, classNames?.item),\n style: styles?.item\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(`${selectionItemPrefixCls}-content`, classNames?.itemContent),\n style: styles?.itemContent\n }, content), closable && /*#__PURE__*/React.createElement(TransBtn, {\n className: clsx(`${selectionItemPrefixCls}-remove`, classNames?.itemRemove),\n style: styles?.itemRemove,\n onMouseDown: onPreventMouseDown,\n onClick: onClose,\n customizeIcon: removeIcon\n }, \"\\xD7\"));\n const customizeRenderSelector = (value, content, itemDisabled, closable, onClose, isMaxTag, info) => {\n const onMouseDown = e => {\n onPreventMouseDown(e);\n onToggleOpen(!triggerOpen);\n };\n return /*#__PURE__*/React.createElement(\"span\", {\n onMouseDown: onMouseDown\n }, tagRender({\n label: content,\n value,\n index: info?.index,\n disabled: itemDisabled,\n closable,\n onClose,\n isMaxTag: !!isMaxTag\n }));\n };\n\n // ====================== Overflow ======================\n const renderItem = (valueItem, info) => {\n const {\n disabled: itemDisabled,\n label,\n value\n } = valueItem;\n const closable = !disabled && !itemDisabled;\n let displayLabel = label;\n if (typeof maxTagTextLength === 'number') {\n if (typeof label === 'string' || typeof label === 'number') {\n const strLabel = String(displayLabel);\n if (strLabel.length > maxTagTextLength) {\n displayLabel = `${strLabel.slice(0, maxTagTextLength)}...`;\n }\n }\n }\n const onClose = event => {\n if (event) {\n event.stopPropagation();\n }\n onRemove(valueItem);\n };\n return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose, undefined, info) : defaultRenderSelector(valueItem, displayLabel, itemDisabled, closable, onClose);\n };\n const renderRest = omittedValues => {\n // https://github.com/ant-design/ant-design/issues/48930\n if (!displayValues.length) {\n return null;\n }\n const content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;\n return typeof tagRender === 'function' ? customizeRenderSelector(undefined, content, false, false, undefined, true) : defaultRenderSelector({\n title: content\n }, content, false);\n };\n\n // ======================= Render =======================\n return /*#__PURE__*/React.createElement(Overflow, {\n prefixCls: `${prefixCls}-content`,\n className: classNames?.content,\n style: styles?.content,\n prefix: !displayValues.length && !inputValue && /*#__PURE__*/React.createElement(Placeholder, null),\n data: displayValues,\n renderItem: renderItem,\n renderRest: renderRest,\n suffix: /*#__PURE__*/React.createElement(Input, _extends({\n ref: ref,\n disabled: disabled,\n readOnly: !inputEditable\n }, inputProps, {\n value: inputValue || '',\n syncWidth: true\n })),\n itemKey: itemKey,\n maxCount: maxTagCount\n });\n});"],"names":["_extends","target","i","source","key","itemKey","value","onPreventMouseDown","event","MultipleContent","React","inputProps","ref","prefixCls","displayValues","searchValue","mode","onSelectorRemove","removeIconFromContext","useSelectInputContext","disabled","showSearch","triggerOpen","toggleOpen","autoClearSearchValue","tagRenderFromContext","maxTagPlaceholderFromContext","maxTagTextLength","maxTagCount","classNames","styles","useBaseProps","selectionItemPrefixCls","computedSearchValue","inputValue","inputEditable","removeIcon","maxTagPlaceholder","omittedValues","tagRender","onToggleOpen","newOpen","onRemove","defaultRenderSelector","item","content","itemDisabled","closable","onClose","getTitle","clsx","TransBtn","customizeRenderSelector","isMaxTag","info","onMouseDown","e","renderItem","valueItem","label","displayLabel","strLabel","renderRest","Overflow","Placeholder","Input"],"mappings":";;;;;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ;AAAE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,UAAIC,IAAS,UAAUD,CAAC;AAAG,eAASE,KAAOD;AAAU,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MAAKH,EAAOG,CAAG,IAAID,E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 @@
1
1
  import * as t from "react";
2
- import E from "./Affix.js";
3
- import F from "./Content/index.js";
4
- import H from "./context.js";
5
- import U from "../hooks/useBaseProps.js";
2
+ import h from "./Affix.js";
3
+ import W from "./Content/index.js";
4
+ import z from "./context.js";
5
+ import B from "../hooks/useBaseProps.js";
6
6
  import l from "../../../util/es/KeyCode.js";
7
- import { isValidateOpenKey as W } from "../utils/keyUtil.js";
8
- import { clsx as v } from "../../../../clsx/dist/clsx.js";
9
- import { getDOM as z } from "../../../util/es/Dom/findDOMNode.js";
10
- import { composeRef as B } from "../../../util/es/ref.js";
11
- import I from "../../../util/es/hooks/useEvent.js";
12
- import G from "../../../util/es/omit.js";
13
- function m() {
14
- return m = Object.assign ? Object.assign.bind() : function(p) {
15
- for (var r = 1; r < arguments.length; r++) {
16
- var c = arguments[r];
17
- for (var o in c)
18
- Object.prototype.hasOwnProperty.call(c, o) && (p[o] = c[o]);
7
+ import { isValidateOpenKey as k } from "../utils/keyUtil.js";
8
+ import { clsx as E } from "../../../../clsx/dist/clsx.js";
9
+ import { getDOM as G } from "../../../util/es/Dom/findDOMNode.js";
10
+ import { composeRef as q } from "../../../util/es/ref.js";
11
+ import J from "../../../util/es/pickAttrs.js";
12
+ import O from "../../../util/es/hooks/useEvent.js";
13
+ import v from "../../../util/es/omit.js";
14
+ function p() {
15
+ return p = Object.assign ? Object.assign.bind() : function(d) {
16
+ for (var n = 1; n < arguments.length; n++) {
17
+ var c = arguments[n];
18
+ for (var r in c)
19
+ Object.prototype.hasOwnProperty.call(c, r) && (d[r] = c[r]);
19
20
  }
20
- return p;
21
- }, m.apply(this, arguments);
21
+ return d;
22
+ }, p.apply(this, arguments);
22
23
  }
23
- const q = ["value", "onChange", "removeIcon", "placeholder", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex", "activeValue", "onSelectorRemove", "focused"], de = /* @__PURE__ */ t.forwardRef(function(r, c) {
24
+ const Q = ["value", "onChange", "removeIcon", "placeholder", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex", "activeValue", "onSelectorRemove", "focused"], De = /* @__PURE__ */ t.forwardRef(function(n, c) {
24
25
  const {
25
26
  // Style
26
- prefixCls: o,
27
- className: O,
28
- style: w,
27
+ prefixCls: r,
28
+ className: w,
29
+ style: P,
29
30
  // UI
30
- prefix: P,
31
+ prefix: b,
31
32
  suffix: R,
32
- clearIcon: y,
33
+ clearIcon: D,
33
34
  children: S,
34
35
  // Data
35
36
  multiple: T,
36
- displayValues: J,
37
- placeholder: Q,
38
- mode: b,
37
+ displayValues: X,
38
+ placeholder: Y,
39
+ mode: M,
39
40
  // Search
40
- searchValue: X,
41
- onSearch: Y,
42
- onSearchSubmit: Z,
43
- onInputBlur: k,
41
+ searchValue: Z,
42
+ onSearch: ee,
43
+ onSearchSubmit: te,
44
+ onInputBlur: oe,
44
45
  // Input
45
- maxLength: ee,
46
- autoFocus: te,
46
+ maxLength: re,
47
+ autoFocus: ne,
47
48
  // Events
48
- onMouseDown: C,
49
- onClearMouseDown: M,
50
- onInputKeyDown: D,
51
- onSelectorRemove: ne,
49
+ onMouseDown: K,
50
+ onClearMouseDown: C,
51
+ onInputKeyDown: I,
52
+ onSelectorRemove: ae,
52
53
  // Token handling
53
- tokenWithEnter: oe,
54
+ tokenWithEnter: se,
54
55
  // Components
55
56
  components: N,
56
57
  ..._
57
- } = r, {
58
+ } = n, {
58
59
  triggerOpen: u,
59
60
  toggleOpen: x,
60
- showSearch: K,
61
- disabled: V,
61
+ showSearch: V,
62
+ disabled: A,
62
63
  loading: L,
63
- classNames: d,
64
- styles: g
65
- } = U(), a = t.useRef(null), s = t.useRef(null), A = I((e) => {
64
+ classNames: g,
65
+ styles: y
66
+ } = B(), a = t.useRef(null), s = t.useRef(null), j = O((e) => {
66
67
  const {
67
- which: n
68
- } = e, f = s.current instanceof HTMLTextAreaElement;
69
- !f && u && (n === l.UP || n === l.DOWN) && e.preventDefault(), D && D(e), !(f && !u && ~[l.UP, l.DOWN, l.LEFT, l.RIGHT].indexOf(n)) && W(n) && x(!0);
68
+ which: o
69
+ } = e, m = s.current instanceof HTMLTextAreaElement;
70
+ if (!m && u && (o === l.UP || o === l.DOWN) && e.preventDefault(), I && I(e), m && !u && ~[l.UP, l.DOWN, l.LEFT, l.RIGHT].indexOf(o))
71
+ return;
72
+ !(e.ctrlKey || e.altKey || e.metaKey) && k(o) && x(!0);
70
73
  });
71
74
  t.useImperativeHandle(c, () => ({
72
75
  focus: (e) => {
@@ -77,52 +80,54 @@ const q = ["value", "onChange", "removeIcon", "placeholder", "maxTagCount", "max
77
80
  },
78
81
  nativeElement: a.current
79
82
  }));
80
- const $ = I((e) => {
81
- if (!V) {
82
- const n = z(s.current);
83
- e.nativeEvent._ori_target = n, n && e.target !== n && !n.contains(e.target) && e.preventDefault();
84
- const f = u && !T && (b === "combobox" || K);
85
- e.nativeEvent._select_lazy ? u && x(!1) : (s.current?.focus(), f || x());
83
+ const $ = O((e) => {
84
+ if (!A) {
85
+ const o = G(s.current);
86
+ e.nativeEvent._ori_target = o, o && e.target !== o && !o.contains(e.target) && e.preventDefault();
87
+ const m = u && !T && (M === "combobox" || V);
88
+ e.nativeEvent._select_lazy ? u && x(!1) : (s.current?.focus(), m || x());
86
89
  }
87
- C?.(e);
90
+ K?.(e);
88
91
  }), {
89
92
  root: i
90
- } = N, h = G(_, q), j = {
91
- ...r,
92
- onInputKeyDown: A
93
+ } = N, f = v(_, Q), F = J(f, {
94
+ aria: !0
95
+ }), H = Object.keys(F), U = {
96
+ ...n,
97
+ onInputKeyDown: j
93
98
  };
94
99
  return i ? /* @__PURE__ */ t.isValidElement(i) ? /* @__PURE__ */ t.cloneElement(i, {
95
- ...h,
96
- ref: B(i.ref, a)
97
- }) : /* @__PURE__ */ t.createElement(i, m({}, h, {
100
+ ...f,
101
+ ref: q(i.ref, a)
102
+ }) : /* @__PURE__ */ t.createElement(i, p({}, f, {
98
103
  ref: a
99
- })) : /* @__PURE__ */ t.createElement(H.Provider, {
100
- value: j
101
- }, /* @__PURE__ */ t.createElement("div", m({}, h, {
104
+ })) : /* @__PURE__ */ t.createElement(z.Provider, {
105
+ value: U
106
+ }, /* @__PURE__ */ t.createElement("div", p({}, v(f, H), {
102
107
  // Style
103
108
  ref: a,
104
- className: O,
105
- style: w,
109
+ className: w,
110
+ style: P,
106
111
  onMouseDown: $
107
- }), /* @__PURE__ */ t.createElement(E, {
108
- className: v(`${o}-prefix`, d?.prefix),
109
- style: g?.prefix
110
- }, P), /* @__PURE__ */ t.createElement(F, {
112
+ }), /* @__PURE__ */ t.createElement(h, {
113
+ className: E(`${r}-prefix`, g?.prefix),
114
+ style: y?.prefix
115
+ }, b), /* @__PURE__ */ t.createElement(W, {
111
116
  ref: s
112
- }), /* @__PURE__ */ t.createElement(E, {
113
- className: v(`${o}-suffix`, {
114
- [`${o}-suffix-loading`]: L
115
- }, d?.suffix),
116
- style: g?.suffix
117
- }, R), y && /* @__PURE__ */ t.createElement(E, {
118
- className: v(`${o}-clear`, d?.clear),
119
- style: g?.clear,
117
+ }), /* @__PURE__ */ t.createElement(h, {
118
+ className: E(`${r}-suffix`, {
119
+ [`${r}-suffix-loading`]: L
120
+ }, g?.suffix),
121
+ style: y?.suffix
122
+ }, R), D && /* @__PURE__ */ t.createElement(h, {
123
+ className: E(`${r}-clear`, g?.clear),
124
+ style: y?.clear,
120
125
  onMouseDown: (e) => {
121
- e.nativeEvent._select_lazy = !0, M?.(e);
126
+ e.nativeEvent._select_lazy = !0, C?.(e);
122
127
  }
123
- }, y), S));
128
+ }, D), S));
124
129
  });
125
130
  export {
126
- de as default
131
+ De as default
127
132
  };
128
133
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/select/es/SelectInput/index.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport Affix from \"./Affix\";\nimport SelectContent from \"./Content\";\nimport SelectInputContext from \"./context\";\nimport useBaseProps from \"../hooks/useBaseProps\";\nimport { omit, useEvent } from '@rc-component/util';\nimport KeyCode from \"@rc-component/util/es/KeyCode\";\nimport { isValidateOpenKey } from \"../utils/keyUtil\";\nimport { clsx } from 'clsx';\nimport { getDOM } from \"@rc-component/util/es/Dom/findDOMNode\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nconst DEFAULT_OMIT_PROPS = ['value', 'onChange', 'removeIcon', 'placeholder', 'maxTagCount', 'maxTagTextLength', 'maxTagPlaceholder', 'choiceTransitionName', 'onInputKeyDown', 'onPopupScroll', 'tabIndex', 'activeValue', 'onSelectorRemove', 'focused'];\nexport default /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n const {\n // Style\n prefixCls,\n className,\n style,\n // UI\n prefix,\n suffix,\n clearIcon,\n children,\n // Data\n multiple,\n displayValues,\n placeholder,\n mode,\n // Search\n searchValue,\n onSearch,\n onSearchSubmit,\n onInputBlur,\n // Input\n maxLength,\n autoFocus,\n // Events\n onMouseDown,\n onClearMouseDown,\n onInputKeyDown,\n onSelectorRemove,\n // Token handling\n tokenWithEnter,\n // Components\n components,\n ...restProps\n } = props;\n const {\n triggerOpen,\n toggleOpen,\n showSearch,\n disabled,\n loading,\n classNames,\n styles\n } = useBaseProps();\n const rootRef = React.useRef(null);\n const inputRef = React.useRef(null);\n\n // Handle keyboard events similar to original Selector\n const onInternalInputKeyDown = useEvent(event => {\n const {\n which\n } = event;\n\n // Compatible with multiple lines in TextArea\n const isTextAreaElement = inputRef.current instanceof HTMLTextAreaElement;\n\n // Prevent default behavior for up/down arrows when dropdown is open\n if (!isTextAreaElement && triggerOpen && (which === KeyCode.UP || which === KeyCode.DOWN)) {\n event.preventDefault();\n }\n\n // Call the original onInputKeyDown callback\n if (onInputKeyDown) {\n onInputKeyDown(event);\n }\n\n // Move within the text box for TextArea\n if (isTextAreaElement && !triggerOpen && ~[KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT].indexOf(which)) {\n return;\n }\n\n // Open dropdown when a valid open key is pressed\n if (isValidateOpenKey(which)) {\n toggleOpen(true);\n }\n });\n\n // ====================== Refs ======================\n React.useImperativeHandle(ref, () => {\n return {\n focus: options => {\n // Focus the inner input if available, otherwise fall back to root div.\n (inputRef.current || rootRef.current).focus?.(options);\n },\n blur: () => {\n (inputRef.current || rootRef.current).blur?.();\n },\n nativeElement: rootRef.current\n };\n });\n\n // ====================== Open ======================\n const onInternalMouseDown = useEvent(event => {\n if (!disabled) {\n const inputDOM = getDOM(inputRef.current);\n\n // https://github.com/ant-design/ant-design/issues/56002\n // Tell `useSelectTriggerControl` to ignore this event\n // When icon is dynamic render, the parentNode will miss\n // so we need to mark the event directly\n event.nativeEvent._ori_target = inputDOM;\n if (inputDOM && event.target !== inputDOM && !inputDOM.contains(event.target)) {\n event.preventDefault();\n }\n\n // Check if we should prevent closing when clicking on selector\n // Don't close if: open && not multiple && (combobox mode || showSearch)\n const shouldPreventClose = triggerOpen && !multiple && (mode === 'combobox' || showSearch);\n if (!event.nativeEvent._select_lazy) {\n inputRef.current?.focus();\n\n // Only toggle open if we should not prevent close\n if (!shouldPreventClose) {\n toggleOpen();\n }\n } else if (triggerOpen) {\n // Lazy should also close when click clear icon\n toggleOpen(false);\n }\n }\n onMouseDown?.(event);\n });\n\n // =================== Components ===================\n const {\n root: RootComponent\n } = components;\n\n // ===================== Render =====================\n const domProps = omit(restProps, DEFAULT_OMIT_PROPS);\n\n // Create context value with wrapped callbacks\n const contextValue = {\n ...props,\n onInputKeyDown: onInternalInputKeyDown\n };\n if (RootComponent) {\n if ( /*#__PURE__*/React.isValidElement(RootComponent)) {\n return /*#__PURE__*/React.cloneElement(RootComponent, {\n ...domProps,\n ref: composeRef(RootComponent.ref, rootRef)\n });\n }\n return /*#__PURE__*/React.createElement(RootComponent, _extends({}, domProps, {\n ref: rootRef\n }));\n }\n return /*#__PURE__*/React.createElement(SelectInputContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(\"div\", _extends({}, domProps, {\n // Style\n ref: rootRef,\n className: className,\n style: style\n // Mouse Events\n ,\n onMouseDown: onInternalMouseDown\n }), /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-prefix`, classNames?.prefix),\n style: styles?.prefix\n }, prefix), /*#__PURE__*/React.createElement(SelectContent, {\n ref: inputRef\n }), /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-suffix`, {\n [`${prefixCls}-suffix-loading`]: loading\n }, classNames?.suffix),\n style: styles?.suffix\n }, suffix), clearIcon && /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-clear`, classNames?.clear),\n style: styles?.clear,\n onMouseDown: e => {\n // Mark to tell not trigger open or focus\n e.nativeEvent._select_lazy = true;\n onClearMouseDown?.(e);\n }\n }, clearIcon), children));\n});"],"names":["_extends","target","i","source","key","DEFAULT_OMIT_PROPS","SelectInput","React","props","ref","prefixCls","className","style","prefix","suffix","clearIcon","children","multiple","displayValues","placeholder","mode","searchValue","onSearch","onSearchSubmit","onInputBlur","maxLength","autoFocus","onMouseDown","onClearMouseDown","onInputKeyDown","onSelectorRemove","tokenWithEnter","components","restProps","triggerOpen","toggleOpen","showSearch","disabled","loading","classNames","styles","useBaseProps","rootRef","inputRef","onInternalInputKeyDown","useEvent","event","which","isTextAreaElement","KeyCode","isValidateOpenKey","options","onInternalMouseDown","inputDOM","getDOM","shouldPreventClose","RootComponent","domProps","omit","contextValue","composeRef","SelectInputContext","Affix","clsx","SelectContent"],"mappings":";;;;;;;;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ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,CAAC;AAC1B,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/select/es/SelectInput/index.js"],"sourcesContent":["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); }\nimport * as React from 'react';\nimport Affix from \"./Affix\";\nimport SelectContent from \"./Content\";\nimport SelectInputContext from \"./context\";\nimport useBaseProps from \"../hooks/useBaseProps\";\nimport { omit, useEvent } from '@rc-component/util';\nimport KeyCode from \"@rc-component/util/es/KeyCode\";\nimport { isValidateOpenKey } from \"../utils/keyUtil\";\nimport { clsx } from 'clsx';\nimport { getDOM } from \"@rc-component/util/es/Dom/findDOMNode\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport pickAttrs from \"@rc-component/util/es/pickAttrs\";\nconst DEFAULT_OMIT_PROPS = ['value', 'onChange', 'removeIcon', 'placeholder', 'maxTagCount', 'maxTagTextLength', 'maxTagPlaceholder', 'choiceTransitionName', 'onInputKeyDown', 'onPopupScroll', 'tabIndex', 'activeValue', 'onSelectorRemove', 'focused'];\nexport default /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {\n const {\n // Style\n prefixCls,\n className,\n style,\n // UI\n prefix,\n suffix,\n clearIcon,\n children,\n // Data\n multiple,\n displayValues,\n placeholder,\n mode,\n // Search\n searchValue,\n onSearch,\n onSearchSubmit,\n onInputBlur,\n // Input\n maxLength,\n autoFocus,\n // Events\n onMouseDown,\n onClearMouseDown,\n onInputKeyDown,\n onSelectorRemove,\n // Token handling\n tokenWithEnter,\n // Components\n components,\n ...restProps\n } = props;\n const {\n triggerOpen,\n toggleOpen,\n showSearch,\n disabled,\n loading,\n classNames,\n styles\n } = useBaseProps();\n const rootRef = React.useRef(null);\n const inputRef = React.useRef(null);\n\n // Handle keyboard events similar to original Selector\n const onInternalInputKeyDown = useEvent(event => {\n const {\n which\n } = event;\n\n // Compatible with multiple lines in TextArea\n const isTextAreaElement = inputRef.current instanceof HTMLTextAreaElement;\n\n // Prevent default behavior for up/down arrows when dropdown is open\n if (!isTextAreaElement && triggerOpen && (which === KeyCode.UP || which === KeyCode.DOWN)) {\n event.preventDefault();\n }\n\n // Call the original onInputKeyDown callback\n if (onInputKeyDown) {\n onInputKeyDown(event);\n }\n\n // Move within the text box for TextArea\n if (isTextAreaElement && !triggerOpen && ~[KeyCode.UP, KeyCode.DOWN, KeyCode.LEFT, KeyCode.RIGHT].indexOf(which)) {\n return;\n }\n\n // Open dropdown when a valid open key is pressed\n const isModifier = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifier && isValidateOpenKey(which)) {\n toggleOpen(true);\n }\n });\n\n // ====================== Refs ======================\n React.useImperativeHandle(ref, () => {\n return {\n focus: options => {\n // Focus the inner input if available, otherwise fall back to root div.\n (inputRef.current || rootRef.current).focus?.(options);\n },\n blur: () => {\n (inputRef.current || rootRef.current).blur?.();\n },\n nativeElement: rootRef.current\n };\n });\n\n // ====================== Open ======================\n const onInternalMouseDown = useEvent(event => {\n if (!disabled) {\n const inputDOM = getDOM(inputRef.current);\n\n // https://github.com/ant-design/ant-design/issues/56002\n // Tell `useSelectTriggerControl` to ignore this event\n // When icon is dynamic render, the parentNode will miss\n // so we need to mark the event directly\n event.nativeEvent._ori_target = inputDOM;\n if (inputDOM && event.target !== inputDOM && !inputDOM.contains(event.target)) {\n event.preventDefault();\n }\n\n // Check if we should prevent closing when clicking on selector\n // Don't close if: open && not multiple && (combobox mode || showSearch)\n const shouldPreventClose = triggerOpen && !multiple && (mode === 'combobox' || showSearch);\n if (!event.nativeEvent._select_lazy) {\n inputRef.current?.focus();\n\n // Only toggle open if we should not prevent close\n if (!shouldPreventClose) {\n toggleOpen();\n }\n } else if (triggerOpen) {\n // Lazy should also close when click clear icon\n toggleOpen(false);\n }\n }\n onMouseDown?.(event);\n });\n\n // =================== Components ===================\n const {\n root: RootComponent\n } = components;\n\n // ===================== Render =====================\n const domProps = omit(restProps, DEFAULT_OMIT_PROPS);\n const ariaProps = pickAttrs(domProps, {\n aria: true\n });\n const ariaKeys = Object.keys(ariaProps);\n\n // Create context value with wrapped callbacks\n const contextValue = {\n ...props,\n onInputKeyDown: onInternalInputKeyDown\n };\n if (RootComponent) {\n if ( /*#__PURE__*/React.isValidElement(RootComponent)) {\n return /*#__PURE__*/React.cloneElement(RootComponent, {\n ...domProps,\n ref: composeRef(RootComponent.ref, rootRef)\n });\n }\n return /*#__PURE__*/React.createElement(RootComponent, _extends({}, domProps, {\n ref: rootRef\n }));\n }\n return /*#__PURE__*/React.createElement(SelectInputContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(\"div\", _extends({}, omit(domProps, ariaKeys), {\n // Style\n ref: rootRef,\n className: className,\n style: style\n // Mouse Events\n ,\n onMouseDown: onInternalMouseDown\n }), /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-prefix`, classNames?.prefix),\n style: styles?.prefix\n }, prefix), /*#__PURE__*/React.createElement(SelectContent, {\n ref: inputRef\n }), /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-suffix`, {\n [`${prefixCls}-suffix-loading`]: loading\n }, classNames?.suffix),\n style: styles?.suffix\n }, suffix), clearIcon && /*#__PURE__*/React.createElement(Affix, {\n className: clsx(`${prefixCls}-clear`, classNames?.clear),\n style: styles?.clear,\n onMouseDown: e => {\n // Mark to tell not trigger open or focus\n e.nativeEvent._select_lazy = true;\n onClearMouseDown?.(e);\n }\n }, clearIcon), children));\n});"],"names":["_extends","target","i","source","key","DEFAULT_OMIT_PROPS","SelectInput","React","props","ref","prefixCls","className","style","prefix","suffix","clearIcon","children","multiple","displayValues","placeholder","mode","searchValue","onSearch","onSearchSubmit","onInputBlur","maxLength","autoFocus","onMouseDown","onClearMouseDown","onInputKeyDown","onSelectorRemove","tokenWithEnter","components","restProps","triggerOpen","toggleOpen","showSearch","disabled","loading","classNames","styles","useBaseProps","rootRef","inputRef","onInternalInputKeyDown","useEvent","event","which","isTextAreaElement","KeyCode","isValidateOpenKey","options","onInternalMouseDown","inputDOM","getDOM","shouldPreventClose","RootComponent","domProps","omit","ariaProps","pickAttrs","ariaKeys","contextValue","composeRef","SelectInputContext","Affix","clsx","SelectContent"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,IAAW;AAAE,SAAAA,IAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAUC,GAAQ;AAAE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAAE,UAAIC,IAAS,UAAUD,CAAC;AAAG,eAASE,KAAOD;AAAU,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAQC,CAAG,MAAKH,EAAOG,CAAG,IAAID,EAAOC,CAAG;AAAA,IAAO;AAAE,WAAOH;AAAA,EAAQ,GAAUD,EAAS,MAAM,MAAM,SAAS;AAAG;AAalV,MAAMK,IAAqB,CAAC,SAAS,YAAY,cAAc,eAAe,eAAe,oBAAoB,qBAAqB,wBAAwB,kBAAkB,iBAAiB,YAAY,eAAe,oBAAoB,SAAS,GACzPC,KAA4B,gBAAAC,EAAM,WAAW,SAAqBC,GAAOC,GAAK;AAC5E,QAAM;AAAA;AAAA,IAEJ,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA;AAAA,IAEA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA;AAAA,IAEA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC;AAAA;AAAA,IAEA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,aAAAC;AAAA;AAAA,IAEA,WAAAC;AAAA,IACA,WAAAC;AAAA;AAAA,IAEA,aAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,kBAAAC;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