@unicom-cloud/ui 0.8.66 → 0.8.67

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 (357) hide show
  1. package/Affix.js +79 -79
  2. package/Alert.js +46 -46
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +74 -74
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +35 -35
  7. package/Badge.js +55 -55
  8. package/Breadcrumb.js +42 -42
  9. package/Button.js +24 -24
  10. package/Calendar.js +230 -230
  11. package/Card.js +18 -18
  12. package/Carousel.js +165 -165
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +26 -26
  17. package/Comment.js +18 -18
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +28 -27
  20. package/DatePicker.js +872 -871
  21. package/Descriptions.js +34 -34
  22. package/Divider.js +19 -19
  23. package/Draggable.js +27 -26
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +110 -110
  26. package/Empty.js +3 -3
  27. package/Form.js +984 -945
  28. package/Grid.js +34 -34
  29. package/Icon.js +16 -16
  30. package/IconHover.js +2 -2
  31. package/Image.js +2 -2
  32. package/Input.js +7 -6
  33. package/InputNumber.js +6 -6
  34. package/InputTag.js +1 -1
  35. package/Layout.js +24 -24
  36. package/Link.js +30 -30
  37. package/List.js +95 -95
  38. package/Mentions.js +85 -84
  39. package/Menu.js +2 -2
  40. package/Message.js +7 -6
  41. package/Modal.js +1 -1
  42. package/Notice.js +14 -3
  43. package/Notification.js +9 -7
  44. package/OverflowEllipsis.js +64 -62
  45. package/PageHeader.js +73 -73
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +60 -60
  49. package/Popover.js +31 -31
  50. package/Portal.js +23 -31
  51. package/Progress.js +22 -22
  52. package/Radio.js +2 -2
  53. package/Rate.js +24 -24
  54. package/ResizeBox.js +274 -271
  55. package/Result.js +3 -3
  56. package/Select.js +4 -4
  57. package/SelectView.js +257 -238
  58. package/Skeleton.js +46 -46
  59. package/Slider.js +286 -283
  60. package/Space.js +28 -28
  61. package/SpeechSynthesis.js +62 -55
  62. package/Spin.js +23 -23
  63. package/Statistic.js +80 -80
  64. package/Steps.js +67 -67
  65. package/Switch.js +47 -47
  66. package/Table.js +1445 -1380
  67. package/Tabs.js +5 -5
  68. package/Tag.js +45 -45
  69. package/TimePicker.js +154 -154
  70. package/Timeline.js +2 -2
  71. package/Tooltip.js +80 -79
  72. package/Transfer.js +103 -102
  73. package/Tree.js +3 -2
  74. package/TreeSelect.js +2 -2
  75. package/Trigger.js +699 -772
  76. package/Typography.js +756 -6
  77. package/Upload.js +2 -2
  78. package/VerificationCode.js +1 -1
  79. package/Version.js +1 -1
  80. package/VirtualList.js +1 -1
  81. package/Watermark.js +1 -1
  82. package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
  83. package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
  84. package/chunk/B5gK1Idp.js +19 -0
  85. package/chunk/B7FlazNB.js +24 -0
  86. package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
  89. package/chunk/BHF15Dog.js +98 -0
  90. package/chunk/BJQ5UNa-.js +1585 -0
  91. package/chunk/BP9sYyk9.js +8 -0
  92. package/chunk/BUdtVdnv.js +38 -0
  93. package/chunk/BVQlOzTS.js +11 -0
  94. package/chunk/B__a_gb_.js +519 -0
  95. package/chunk/BbEYToV1.js +10 -0
  96. package/chunk/BbdDQAnm.js +15 -0
  97. package/chunk/BdUcgWdu.js +11 -0
  98. package/chunk/BfbXSG70.js +26 -0
  99. package/chunk/BndfNLK4.js +186 -0
  100. package/chunk/BoMCZV6K.js +1098 -0
  101. package/chunk/Br0B6y1T.js +18 -0
  102. package/chunk/BrOW642m.js +130 -0
  103. package/chunk/BxUs8_Cr.js +9 -0
  104. package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
  107. package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
  108. package/chunk/CJ_o9tZM.js +5 -0
  109. package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
  110. package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
  111. package/chunk/CLiqJm_T.js +10 -0
  112. package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
  114. package/chunk/CPT-OZH2.js +14 -0
  115. package/chunk/CVSF8p0O.js +698 -0
  116. package/chunk/C_agcwLN.js +31 -0
  117. package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
  119. package/chunk/Ce1j9KTi.js +6 -0
  120. package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
  121. package/chunk/CkNSv2U7.js +56 -0
  122. package/chunk/Cp2f70gB.js +9 -0
  123. package/chunk/CpegYjdC.js +16 -0
  124. package/chunk/CucI3KZr.js +20 -0
  125. package/chunk/CwoFBTYz.js +11 -0
  126. package/chunk/D2KPqPhV.js +17 -0
  127. package/chunk/D7NyvE5f.js +17 -0
  128. package/chunk/D8oTPQ2H.js +384 -0
  129. package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
  130. package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
  131. package/chunk/DGTIZ_0O.js +6 -0
  132. package/chunk/DJfpiZn_.js +25 -0
  133. package/chunk/DKr2_PYd.js +34 -0
  134. package/chunk/DNUz6zgo.js +11 -0
  135. package/chunk/DRtM649q.js +11 -0
  136. package/chunk/DS_mUWn6.js +41 -0
  137. package/chunk/DU6bs_19.js +10 -0
  138. package/chunk/DWdbwz22.js +10 -0
  139. package/chunk/DcveZuqd.js +6 -0
  140. package/chunk/DdVFknul.js +24 -0
  141. package/chunk/DgRfikwe.js +16 -0
  142. package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
  143. package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
  144. package/chunk/DnrZEnQ_.js +27 -0
  145. package/chunk/DsRSHWtX.js +1025 -0
  146. package/chunk/Dz5BdmXo.js +270 -0
  147. package/chunk/EANe01DF.js +1030 -0
  148. package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
  149. package/chunk/GoNx5R4F.js +873 -0
  150. package/chunk/HDUQku8d.js +20 -0
  151. package/chunk/HrAP__Hi.js +25 -0
  152. package/chunk/JPPo5nY_.js +9 -0
  153. package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
  164. package/hooks/index.js +53 -49
  165. package/hooks/useComputedState.js +2 -10
  166. package/hooks/useCreate.js +2 -7
  167. package/hooks/useForceUpdate.js +2 -7
  168. package/hooks/useId.js +2 -10
  169. package/hooks/useInView.js +2 -30
  170. package/hooks/useIntersectionObserver.js +2 -23
  171. package/hooks/useInterval.js +2 -17
  172. package/hooks/useIsFirstRender.js +2 -9
  173. package/hooks/useIsomorphicLayoutEffect.js +2 -5
  174. package/hooks/useKeyboardEvent.js +2 -16
  175. package/hooks/useMedia.js +2 -15
  176. package/hooks/useMergeProps.js +2 -18
  177. package/hooks/useMergeValue.js +2 -19
  178. package/hooks/useOnlineStatus.js +4 -0
  179. package/hooks/useOverflowHidden.js +2 -25
  180. package/hooks/useOverrideRef.js +2 -13
  181. package/hooks/usePersistCallback.js +2 -13
  182. package/hooks/usePrefersColorSchemeDark.js +4 -0
  183. package/hooks/usePrevious.js +2 -9
  184. package/hooks/useRefs.js +2 -9
  185. package/hooks/useResizeObserver.js +2 -15
  186. package/hooks/useStateCallback.js +2 -15
  187. package/hooks/useStateWithPromise.js +2 -24
  188. package/hooks/useUpdateEffect.js +2 -9
  189. package/hooks/useVerificationCode.js +73 -0
  190. package/hooks/useWatch.js +2 -10
  191. package/hooks/{use-watermark.js → useWatermark.js} +27 -26
  192. package/hooks/useWindowSize.js +2 -20
  193. package/index.js +571 -584
  194. package/locale/en-US.js +4 -2
  195. package/locale/interface.js +1 -4
  196. package/locale/ja-JP.js +3 -1
  197. package/locale/tr-TR.js +1 -1
  198. package/locale/zh-CN.js +3 -1
  199. package/locale/zh-HK.js +3 -1
  200. package/locale/zh-TW.js +3 -1
  201. package/package.json +1 -1
  202. package/style.css +1 -1
  203. package/types/anchor/util.d.ts +1 -1
  204. package/types/button/index.d.ts +2 -2
  205. package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
  206. package/types/form/Control-old.d.ts +56 -0
  207. package/types/form/Control.d.ts +6 -54
  208. package/types/form/FormItem.d.ts +1 -1
  209. package/types/form/store.d.ts +0 -1
  210. package/types/hooks/index.d.ts +2 -0
  211. package/types/hooks/useComputedState.d.ts +1 -4
  212. package/types/hooks/useCreate.d.ts +1 -2
  213. package/types/hooks/useForceUpdate.d.ts +1 -2
  214. package/types/hooks/useId.d.ts +1 -2
  215. package/types/hooks/useInView.d.ts +1 -11
  216. package/types/hooks/useIntersectionObserver.d.ts +1 -7
  217. package/types/hooks/useInterval.d.ts +1 -2
  218. package/types/hooks/useIsFirstRender.d.ts +1 -2
  219. package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
  220. package/types/hooks/useKeyboardEvent.d.ts +1 -8
  221. package/types/hooks/useMedia.d.ts +1 -2
  222. package/types/hooks/useMergeProps.d.ts +1 -5
  223. package/types/hooks/useMergeValue.d.ts +1 -6
  224. package/types/hooks/useOnlineStatus.d.ts +1 -0
  225. package/types/hooks/useOverflowHidden.d.ts +1 -5
  226. package/types/hooks/useOverrideRef.d.ts +1 -6
  227. package/types/hooks/usePersistCallback.d.ts +1 -2
  228. package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
  229. package/types/hooks/usePrevious.d.ts +1 -3
  230. package/types/hooks/useRefs.d.ts +1 -2
  231. package/types/hooks/useResizeObserver.d.ts +1 -6
  232. package/types/hooks/useStateCallback.d.ts +1 -5
  233. package/types/hooks/useStateWithPromise.d.ts +1 -2
  234. package/types/hooks/useUpdateEffect.d.ts +1 -3
  235. package/types/hooks/useWatch.d.ts +1 -3
  236. package/types/hooks/useWindowSize.d.ts +1 -5
  237. package/types/image/interface.d.ts +1 -0
  238. package/types/index.d.ts +157 -86
  239. package/types/input/Input.d.ts +1 -1
  240. package/types/input/Textarea.d.ts +2 -2
  241. package/types/locale/en-US.d.ts +2 -0
  242. package/types/locale/interface.d.ts +1 -2
  243. package/types/locale/ja-JP.d.ts +2 -0
  244. package/types/locale/zh-CN.d.ts +2 -0
  245. package/types/locale/zh-HK.d.ts +2 -0
  246. package/types/locale/zh-TW.d.ts +2 -0
  247. package/types/menu/context.d.ts +1 -1
  248. package/types/message/index.d.ts +14 -14
  249. package/types/message/interface.d.ts +2 -0
  250. package/types/modal/config.d.ts +0 -1
  251. package/types/modal/interface.d.ts +0 -1
  252. package/types/notice/index.d.ts +2 -27
  253. package/types/notification/index.d.ts +15 -16
  254. package/types/notification/interface.d.ts +2 -0
  255. package/types/notification/withNotification.d.ts +2 -0
  256. package/types/select/util.d.ts +1 -2
  257. package/types/select-view/interface.d.ts +2 -1
  258. package/types/speech-synthesis/index.d.ts +1 -1
  259. package/types/table/constant.d.ts +2 -0
  260. package/types/table/hook/useThResizable.d.ts +7 -0
  261. package/types/table/index.d.ts +10 -1
  262. package/types/table/style/index.d.ts +1 -0
  263. package/types/table/th-resizable/index.d.ts +2 -0
  264. package/types/table/thead/Column.d.ts +1 -2
  265. package/types/tree/Tree.d.ts +12 -67
  266. package/types/tree-select/Select.d.ts +2 -2
  267. package/types/trigger/index.d.ts +2 -120
  268. package/types/trigger/interface.d.ts +2 -1
  269. package/types/utils/CSSTransition.d.ts +2 -3
  270. package/types/utils/caseName.d.ts +1 -1
  271. package/types/utils/className.d.ts +1 -1
  272. package/types/utils/constant.d.ts +2 -2
  273. package/types/utils/copy.d.ts +1 -1
  274. package/types/utils/dayjs.d.ts +1 -21
  275. package/types/utils/dom.d.ts +1 -6
  276. package/types/utils/fileToURL.d.ts +1 -1
  277. package/types/utils/fillNBSP.d.ts +1 -1
  278. package/types/utils/getHighlightText.d.ts +1 -5
  279. package/types/utils/getHotkeyHandler.d.ts +1 -8
  280. package/types/utils/getStringLength.d.ts +1 -1
  281. package/types/utils/include.d.ts +1 -1
  282. package/types/utils/index.d.ts +3 -4
  283. package/types/utils/is.d.ts +1 -16
  284. package/types/utils/keyboardCode.d.ts +3 -0
  285. package/types/utils/lodash.d.ts +1 -17
  286. package/types/utils/mergeProps.d.ts +1 -1
  287. package/types/utils/mergedToString.d.ts +1 -1
  288. package/types/utils/omit.d.ts +1 -1
  289. package/types/utils/pad.d.ts +1 -2
  290. package/types/utils/pick.d.ts +2 -4
  291. package/types/utils/reactDOM.d.ts +1 -7
  292. package/types/utils/resizeObserverEffect.d.ts +2 -0
  293. package/types/utils/saveAs.d.ts +1 -1
  294. package/types/utils/screenfull.d.ts +2 -0
  295. package/types/utils/scrollIntoView.d.ts +1 -2
  296. package/types/utils/style.d.ts +1 -3
  297. package/types/utils/throttleByRaf.d.ts +1 -5
  298. package/types/utils/throttleByRaf2.d.ts +1 -0
  299. package/types/utils/warning.d.ts +1 -2
  300. package/types/version/index.d.ts +1 -1
  301. package/utils/CSSTransition.js +2 -6
  302. package/utils/className.js +2 -2
  303. package/utils/constant.js +8 -9
  304. package/utils/contextHolder.js +1 -1
  305. package/utils/copy.js +1 -1
  306. package/utils/dayjs.js +14 -173
  307. package/utils/dom.js +33 -29
  308. package/utils/fillNBSP.js +2 -4
  309. package/utils/getHighlightText.js +2 -38
  310. package/utils/getHotkeyHandler.js +2 -25
  311. package/utils/getStringLength.js +2 -7
  312. package/utils/include.js +2 -7
  313. package/utils/index.js +237 -240
  314. package/utils/is.js +116 -156
  315. package/utils/keyboardCode.js +27 -0
  316. package/utils/mergeProps.js +2 -9
  317. package/utils/mergedToString.js +2 -13
  318. package/utils/omit.js +2 -9
  319. package/utils/pad.js +12 -12
  320. package/utils/pick.js +4 -15
  321. package/utils/reactDOM.js +3 -54
  322. package/utils/resizeObserverEffect.js +4 -0
  323. package/utils/saveAs.js +1 -1
  324. package/utils/screenfull.js +4 -0
  325. package/utils/scrollIntoView.js +2 -21
  326. package/utils/style.js +12 -11
  327. package/utils/throttleByRaf.js +13 -12
  328. package/utils/throttleByRaf2.js +5 -0
  329. package/utils/warning.js +5 -4
  330. package/NotificationBase.js +0 -53
  331. package/chunk/-zpSUpGE.js +0 -1501
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BIT0j3HT.js +0 -269
  334. package/chunk/BbLKnaNO.js +0 -871
  335. package/chunk/Bfhv56O2.js +0 -638
  336. package/chunk/C2lIz2F9.js +0 -60
  337. package/chunk/C6QWSzsM.js +0 -376
  338. package/chunk/CVkHTbic.js +0 -995
  339. package/chunk/CeGEvXby.js +0 -278
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DPByB1ab.js +0 -698
  343. package/chunk/DV1Ab_cG.js +0 -284
  344. package/chunk/dBnNCOIU.js +0 -778
  345. package/chunk/it8qlDZ3.js +0 -1032
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/te_43YrB.js +0 -776
  348. package/hooks/use-verification-code.js +0 -73
  349. package/types/notification-base/index.d.ts +0 -15
  350. package/types/notification-base/style/index.d.ts +0 -2
  351. package/types/trigger/Portal.d.ts +0 -7
  352. package/types/utils/keyCode.d.ts +0 -45
  353. package/types/utils/raf.d.ts +0 -3
  354. package/types/utils/throttleByRafV2.d.ts +0 -5
  355. package/utils/keyCode.js +0 -12
  356. package/utils/raf.js +0 -19
  357. package/utils/throttleByRafV2.js +0 -16
@@ -0,0 +1,778 @@
1
+ import { jsx as A, jsxs as st } from "react/jsx-runtime";
2
+ import ee from "lodash/isArray";
3
+ import St from "lodash/isFunction";
4
+ import te, { useContext as Vt, useState as be, useMemo as et, useRef as K, useCallback as Ue, useEffect as H, useImperativeHandle as At } from "react";
5
+ import { C as lt } from "./DkyR2EfG.js";
6
+ import { a as Et } from "./BJQ5UNa-.js";
7
+ import { a as Lt } from "./DRtM649q.js";
8
+ import { c as $t } from "./B5gK1Idp.js";
9
+ import { R as tt } from "./HDUQku8d.js";
10
+ import It from "../SelectView.js";
11
+ import Nt from "../Trigger.js";
12
+ import { m as de } from "./JPPo5nY_.js";
13
+ import { n as Pt } from "./DnrZEnQ_.js";
14
+ import "./CkNSv2U7.js";
15
+ import { o as Tt, e as nt, c as rt, d as Ft, r as Ut } from "./BrOW642m.js";
16
+ import { c as Me } from "./BdUcgWdu.js";
17
+ import { l as Rt } from "./flvYlqx3.js";
18
+ import Mt from "../utils/warning.js";
19
+ import { V as Dt } from "./B__a_gb_.js";
20
+ import { z as Gt } from "./CSC_V_25.js";
21
+ import ie from "lodash/get";
22
+ import jt from "lodash/isNil";
23
+ import Kt from "lodash/isNumber";
24
+ import Re from "lodash/isPlainObject";
25
+ import Ht from "lodash/isString";
26
+ import { l as Bt } from "./DGTIZ_0O.js";
27
+ import { E as Qt } from "./DS_mUWn6.js";
28
+ import F from "lodash/isPlainObject.js";
29
+ function Wt(i, h) {
30
+ const { prefixCls: w, label: y, ...U } = i;
31
+ return /* @__PURE__ */ A(
32
+ "li",
33
+ {
34
+ ref: h,
35
+ className: `${w}-group-title`,
36
+ ...Me(U, ["_key", "children", "isSelectOptGroup"]),
37
+ children: y
38
+ }
39
+ );
40
+ }
41
+ const zt = te.forwardRef(Wt), at = zt;
42
+ at.__PQB_SELECT_OPTGROUP__ = !0;
43
+ function qt(i, h) {
44
+ const {
45
+ style: w,
46
+ className: y,
47
+ wrapperClassName: U,
48
+ disabled: P,
49
+ prefixCls: u,
50
+ rtl: E,
51
+ value: R,
52
+ children: M,
53
+ _isMultipleMode: q,
54
+ _isUserCreatedOption: B,
55
+ _isUserCreatingOption: k,
56
+ _valueActive: D,
57
+ _valueSelect: Q,
58
+ _onMouseEnter: L,
59
+ _onMouseLeave: G,
60
+ _onClick: v,
61
+ ...n
62
+ } = i, d = "value" in i ? R : `${M}`, a = "children" in i ? M : `${R}`, l = q ? Q.indexOf(d) !== -1 : Q === d, x = {
63
+ style: w,
64
+ className: de(
65
+ `${u}-option`,
66
+ {
67
+ [`${u}-option-selected`]: l,
68
+ [`${u}-option-disabled`]: P,
69
+ [`${u}-option-hover`]: d === D,
70
+ [`${u}-option-empty`]: !a && a !== 0 || typeof a == "string" && /^\s*$/.test(a),
71
+ [`${u}-option-rtl`]: E
72
+ },
73
+ y
74
+ ),
75
+ onMouseEnter: ($) => {
76
+ var b;
77
+ L == null || L(d), (b = n.onMouseEnter) == null || b.call(n, $);
78
+ },
79
+ onMouseLeave: ($) => {
80
+ var b;
81
+ G == null || G(), (b = n.onMouseLeave) == null || b.call(n, $);
82
+ },
83
+ onClick: ($) => {
84
+ var b;
85
+ v == null || v(d, P), (b = n.onClick) == null || b.call(n, $);
86
+ },
87
+ ...Me(n, [
88
+ "_key",
89
+ "extra",
90
+ "isSelectOption",
91
+ "onClick",
92
+ "onMouseEnter",
93
+ "onMouseLeave"
94
+ ])
95
+ }, O = {
96
+ ref: h,
97
+ role: "option",
98
+ "aria-selected": l
99
+ };
100
+ return B && Object.assign(O, { "data-user-created": !0 }), k && Object.assign(O, { "data-user-creating": !0 }), q ? /* @__PURE__ */ st(
101
+ "li",
102
+ {
103
+ ...O,
104
+ className: de(
105
+ `${u}-option-wrapper`,
106
+ {
107
+ [`${u}-option-wrapper-selected`]: l,
108
+ [`${u}-option-wrapper-disabled`]: P
109
+ },
110
+ U
111
+ ),
112
+ children: [
113
+ /* @__PURE__ */ A(
114
+ lt,
115
+ {
116
+ "aria-hidden": "true",
117
+ className: `${u}-checkbox`,
118
+ checked: l,
119
+ disabled: P,
120
+ onChange: x.onClick
121
+ }
122
+ ),
123
+ /* @__PURE__ */ A("span", { ...x, children: a })
124
+ ]
125
+ }
126
+ ) : /* @__PURE__ */ A("li", { ...O, ...x, children: a });
127
+ }
128
+ const Jt = te.forwardRef(qt), De = Jt;
129
+ De.__PQB_SELECT_OPTION__ = !0;
130
+ function Xt(i) {
131
+ var h;
132
+ (h = i == null ? void 0 : i.preventDefault) == null || h.call(i);
133
+ }
134
+ function _e(i, h) {
135
+ return h ? !ee(i) || Gt(i) : jt(i);
136
+ }
137
+ function ot(i, h, w) {
138
+ return w && (h ? i = Array.isArray(i) ? i.map(
139
+ (y) => Re(y) && "label" in y ? y.value : y
140
+ ) : i : i = Re(i) && "label" in i ? i.value : i), _e(i, h) ? h ? Array.isArray(i) ? i : [] : void 0 : i;
141
+ }
142
+ function ut(i) {
143
+ return ie(i, "props.isSelectOption") || ie(i, "type.__PQB_SELECT_OPTION__");
144
+ }
145
+ function pt(i) {
146
+ return ie(i, "props.isSelectOptGroup") || ie(i, "type.__PQB_SELECT_OPTGROUP__");
147
+ }
148
+ function ct({
149
+ children: i,
150
+ options: h,
151
+ filterOption: w
152
+ }, {
153
+ inputValue: y = "",
154
+ userCreatedOptions: U,
155
+ userCreatingOption: P,
156
+ prefixCls: u
157
+ }, {
158
+ optionInfoMap: E = /* @__PURE__ */ new Map(),
159
+ optionValueList: R = [],
160
+ customNodeCount: M = 0
161
+ } = {}) {
162
+ let q = !1, B = !1, k = [], D = [];
163
+ const Q = (n) => {
164
+ const d = ie(n, "props.value"), a = ie(n, "props.children");
165
+ return d === void 0 && a !== null && a !== void 0 ? a.toString() : d;
166
+ }, L = ({ label: n, value: d }, a, l) => !n && !d && !a ? (M++, `custom_node_${M}`) : l ? a || `group_${n}` : a || `${typeof d}_${d}` || `${n}_${E.size}`, G = (n, d, a) => {
167
+ const l = Q(n);
168
+ let x = !0;
169
+ w === !0 ? x = l !== void 0 && String(l).toLowerCase().indexOf(y.toLowerCase()) !== -1 : typeof w == "function" && (x = !y || w(y, n, a));
170
+ const O = E.get(l), $ = (O == null ? void 0 : O._origin) === "userCreatedOptions" || (O == null ? void 0 : O._origin) === "userCreatingOption";
171
+ if (!O || $) {
172
+ "_key" in n.props || (n = te.cloneElement(n, {
173
+ _key: L(n.props, n.key)
174
+ }));
175
+ const b = E.size, se = {
176
+ child: n,
177
+ ...n.props,
178
+ value: l,
179
+ _index: b,
180
+ _origin: d,
181
+ _valid: x
182
+ };
183
+ if (E.set(l, se), $) {
184
+ const le = k.findIndex(
185
+ (ae) => {
186
+ var ne;
187
+ return ((ne = ae == null ? void 0 : ae.props) == null ? void 0 : ne.value) === l;
188
+ }
189
+ );
190
+ le > -1 && (x ? k[le] = n : k.splice(le, 1));
191
+ } else
192
+ R.push(l), x && (k.push(n), se.disabled || D.push(b));
193
+ }
194
+ typeof n.props.children != "string" && (B = !0);
195
+ }, v = (n, d) => {
196
+ d && ee(n) && n.length && n.forEach((a) => {
197
+ (Ht(a) || Kt(a)) && (a = {
198
+ label: a,
199
+ value: a
200
+ });
201
+ const l = /* @__PURE__ */ A(
202
+ De,
203
+ {
204
+ _key: L(a),
205
+ value: a.value,
206
+ disabled: a.disabled === !0,
207
+ extra: a.extra,
208
+ children: Bt(a.label)
209
+ }
210
+ );
211
+ G(l, d, a);
212
+ });
213
+ };
214
+ return P && v([P], "userCreatingOption"), i && te.Children.map(i, (n) => {
215
+ if (pt(n)) {
216
+ const { children: d, options: a } = n.props, {
217
+ childrenList: l,
218
+ optionIndexListForArrowKey: x,
219
+ hasComplexLabelInOptions: O
220
+ } = ct(
221
+ { children: d, options: a, filterOption: w },
222
+ { inputValue: y, prefixCls: u },
223
+ { optionInfoMap: E, optionValueList: R, customNodeCount: M }
224
+ );
225
+ l.length && (k.push(
226
+ te.cloneElement(n, {
227
+ children: null,
228
+ _key: L(n.props, n.key, !0)
229
+ })
230
+ ), k = k.concat(l), D = D.concat(
231
+ x
232
+ ), q = !0, B = B || O);
233
+ } else ut(n) ? G(n, "children", null) : Re(n) && n.props && k.push(
234
+ te.cloneElement(n, {
235
+ _key: L(n.props, n.key)
236
+ })
237
+ );
238
+ }), v(h, "options"), v(U, "userCreatedOptions"), {
239
+ childrenList: Qt({
240
+ nodeList: k,
241
+ pattern: y,
242
+ highlightClassName: `${u}-highlight`
243
+ }),
244
+ optionInfoMap: E,
245
+ optionValueList: R,
246
+ optionIndexListForArrowKey: D,
247
+ hasOptGroup: q,
248
+ hasComplexLabelInOptions: B
249
+ };
250
+ }
251
+ const it = "userCreatingOption", Yt = {
252
+ trigger: "click",
253
+ bordered: !0,
254
+ filterOption: !0,
255
+ unmountOnExit: !0,
256
+ defaultActiveFirstOption: !0,
257
+ allowCheckAll: !0
258
+ }, Zt = { bottom: 4 };
259
+ function en(i, h) {
260
+ var Xe;
261
+ const { getPrefixCls: w, renderEmpty: y, componentConfig: U, rtl: P } = Vt(Et), u = $t(
262
+ i,
263
+ Yt,
264
+ U == null ? void 0 : U.Select
265
+ ), {
266
+ children: E,
267
+ renderFormat: R,
268
+ defaultActiveFirstOption: M,
269
+ disabled: q,
270
+ unmountOnExit: B,
271
+ notFoundContent: k,
272
+ showSearch: D,
273
+ tokenSeparators: Q,
274
+ options: L,
275
+ filterOption: G,
276
+ labelInValue: v,
277
+ getPopupContainer: n,
278
+ trigger: d,
279
+ triggerElement: a,
280
+ triggerProps: l,
281
+ dropdownRender: x,
282
+ dropdownMenuStyle: O,
283
+ dropdownMenuClassName: $,
284
+ virtualListProps: b,
285
+ // events
286
+ onChange: se,
287
+ onSelect: le,
288
+ onDeselect: ae,
289
+ onClear: ne,
290
+ onSearch: xe,
291
+ onFocus: ft,
292
+ onBlur: ke,
293
+ onPopupScroll: we,
294
+ onVisibleChange: ve,
295
+ onInputValueChange: Se,
296
+ onPaste: Ve,
297
+ onKeyDown: Ae
298
+ } = u;
299
+ let { mode: Ee, allowCheckAll: je, allowCreate: _ } = u;
300
+ Ee === "tags" && (Ee = "multiple", _ = !0, Mt(
301
+ !0,
302
+ `[Pqb Select] The 'tags' mode will be removed in the next major version, please use {mode: "multiple", allowCreate: true} instead.`
303
+ ));
304
+ const S = w("select"), g = Ee === "multiple";
305
+ g || (je = !1);
306
+ const [dt, Le] = be(
307
+ ot(u.defaultValue, g, v)
308
+ ), s = "value" in u ? ot(u.value, g, v) : dt, [V, mt, gt] = tt("", {
309
+ value: "inputValue" in u ? u.inputValue || "" : void 0
310
+ }), [I, Ot] = tt(!1, {
311
+ defaultValue: u.defaultPopupVisible,
312
+ value: "popupVisible" in u ? u.popupVisible : l && "popupVisible" in l ? l.popupVisible : void 0
313
+ }), [ue, Ct] = be(null), [pe, ht] = be([]), [T, re] = be(
314
+ ee(s) ? s[0] : s
315
+ ), {
316
+ childrenList: $e,
317
+ optionInfoMap: m,
318
+ optionValueList: W,
319
+ optionIndexListForArrowKey: J,
320
+ hasOptGroup: yt,
321
+ hasComplexLabelInOptions: bt
322
+ } = et(() => ct(
323
+ { children: E, options: L, filterOption: G },
324
+ {
325
+ prefixCls: S,
326
+ inputValue: V,
327
+ userCreatedOptions: pe,
328
+ userCreatingOption: ue
329
+ }
330
+ ), [
331
+ E,
332
+ L,
333
+ G,
334
+ V,
335
+ ue,
336
+ pe
337
+ ]), Ie = K(null), Ke = K(null), j = K(null), X = K([]), z = K(null), He = K(V), Ne = K(null), me = K(0), Pe = K(!1), Be = Lt(`${S}-popup-`), ge = _e(s, g), Qe = et(() => {
338
+ var e, t;
339
+ if (M) {
340
+ const r = ee(s) ? s[0] : s, o = !ge && ((e = m.get(r)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === it;
341
+ return o && !c ? r : W[J[0]];
342
+ }
343
+ }, [
344
+ s,
345
+ m,
346
+ W,
347
+ J,
348
+ M,
349
+ ge
350
+ ]), Oe = Ue(
351
+ (e, t) => {
352
+ var o;
353
+ const r = m.get(e);
354
+ Ie.current && ((o = r == null ? void 0 : r.child) != null && o.props) && Ie.current.scrollTo({
355
+ key: r.child.props._key,
356
+ options: t
357
+ });
358
+ },
359
+ [m]
360
+ ), Ce = Ue(
361
+ (e, t = !1) => F(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
362
+ [_]
363
+ ), Y = (e, t) => {
364
+ (e !== He.current || t !== Ne.current) && (mt(e), He.current = e, Ne.current = t, Se == null || Se(e, t));
365
+ }, oe = (e) => {
366
+ var t;
367
+ I !== e && (Ot(e), ve == null || ve(e), (t = l == null ? void 0 : l.onVisibleChange) == null || t.call(l, e));
368
+ };
369
+ H(() => {
370
+ g ? Array.isArray(s) || Le(s === void 0 ? [] : [s]) : Array.isArray(s) && Le(s.length === 0 ? void 0 : s[0]);
371
+ }, [g, s]), H(() => {
372
+ if (I) {
373
+ re(Qe);
374
+ const e = ee(s) ? s[0] : s;
375
+ !ge && m.has(e) && setTimeout(() => Oe(e));
376
+ }
377
+ }, [I]), H(() => {
378
+ (z.current === "up" || z.current === "down") && (Oe(T), z.current = "none");
379
+ }, [T]), H(() => {
380
+ re(Qe);
381
+ }, [JSON.stringify($e.map((e) => {
382
+ var t;
383
+ return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
384
+ }))]), H(() => {
385
+ X.current = X.current.filter((e) => g ? ee(s) && s.indexOf(e.value) > -1 : e.value === s);
386
+ }, [s, g]), H(() => {
387
+ if (_) {
388
+ let e;
389
+ if (_e(s, g))
390
+ e = [];
391
+ else {
392
+ const r = Array.isArray(s) ? s : [s], o = r.filter((p) => {
393
+ var N;
394
+ const C = m.get(p) || ((N = X.current.find((f) => f.value === p)) == null ? void 0 : N.option);
395
+ return !C || C._origin === it;
396
+ }).map((p) => Ce(p));
397
+ e = pe.filter((p) => {
398
+ const C = F(p) ? p.value : p;
399
+ return r.indexOf(C) !== -1;
400
+ }).concat(
401
+ o
402
+ );
403
+ }
404
+ const t = (r) => r.map((o) => F(o) ? o.value : o).toString();
405
+ t(e) !== t(pe) && ht(e);
406
+ }
407
+ }, [s, _, g, Ce]), H(() => {
408
+ _ && Ct(
409
+ V && !m.has(V) ? Ce(V, !0) : null
410
+ );
411
+ }, [V, Ce]), H(() => {
412
+ const { current: e } = Ne;
413
+ gt === V && (e === "manual" || e === "optionListHide") && (xe == null || xe(V, e));
414
+ }, [V]);
415
+ const ce = Ue(
416
+ (e) => {
417
+ const t = m.get(e);
418
+ if (t) {
419
+ const o = X.current.findIndex(
420
+ (c) => c.value === e
421
+ );
422
+ return o > -1 ? X.current.splice(o, 1, { value: e, option: t }) : X.current.push({ value: e, option: t }), t;
423
+ }
424
+ const r = X.current.find((o) => o.value === e);
425
+ return r && r.option;
426
+ },
427
+ [m]
428
+ ), We = (e) => {
429
+ if (!J.length)
430
+ return;
431
+ if (T === void 0 || !m.has(T))
432
+ return W[J[0]];
433
+ const r = m.get(T)._index, o = J.indexOf(r), c = J.length;
434
+ return W[J[((e === "up" ? o - 1 : o + 1) + c) % c]];
435
+ }, he = (e, t = _e(e, g)) => {
436
+ let r = e;
437
+ const o = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ce) : ce(e);
438
+ if (v && !t) {
439
+ const c = (p, C) => {
440
+ if (C)
441
+ return C.children;
442
+ const N = "value" in u ? u.value : "defaultValue" in u ? u.defaultValue : null;
443
+ if (Array.isArray(N)) {
444
+ for (const f of N)
445
+ if (F(f) && f.value === p)
446
+ return f.label;
447
+ } else if (F(N) && N.value === p)
448
+ return N.label;
449
+ };
450
+ Array.isArray(e) ? r = e.map((p, C) => ({
451
+ value: p,
452
+ label: c(p, o[C])
453
+ })) : r = {
454
+ value: e,
455
+ label: c(e, o)
456
+ };
457
+ }
458
+ return { option: o, value: r };
459
+ }, Z = (e) => {
460
+ if (Le(e), se) {
461
+ const t = he(e);
462
+ se(t.value, t.option);
463
+ }
464
+ }, ze = (e, t) => {
465
+ if (t === "remove" || t === "add" && m.get(e)) {
466
+ const r = t === "add" ? s.concat(e) : s.filter((c) => c !== e), o = t === "add" ? le : ae;
467
+ if (Z(r), typeof o == "function") {
468
+ const c = he(
469
+ e,
470
+ !1
471
+ );
472
+ o(
473
+ c.value,
474
+ c.option
475
+ );
476
+ }
477
+ }
478
+ }, qe = (e, t) => {
479
+ t || (g ? (ze(
480
+ e,
481
+ s.indexOf(e) === -1 ? "add" : "remove"
482
+ ), (!F(D) || !D.retainInputValueWhileSelect) && Y("", "optionChecked")) : (e !== s && Z(e), setTimeout(() => {
483
+ oe(!1);
484
+ })));
485
+ }, ye = Pt(
486
+ /* @__PURE__ */ new Map([
487
+ [Tt.key, () => oe(!1)],
488
+ [
489
+ nt.key,
490
+ () => {
491
+ if (I) {
492
+ const e = m.get(T);
493
+ e && qe(T, e.disabled);
494
+ } else
495
+ oe(!0);
496
+ }
497
+ ],
498
+ [
499
+ rt.key,
500
+ // 按tab键切换,关闭开启的弹出框
501
+ () => oe(!1)
502
+ ],
503
+ [
504
+ Ft.key,
505
+ () => {
506
+ if (I)
507
+ return z.current = "up", re(We("up")), !1;
508
+ }
509
+ ],
510
+ [
511
+ Ut.key,
512
+ () => {
513
+ if (I)
514
+ return z.current = "down", re(We("down")), !1;
515
+ }
516
+ ]
517
+ ])
518
+ ), _t = () => {
519
+ var C, N;
520
+ const e = (l == null ? void 0 : l.autoAlignPopupWidth) === !1 && (!((C = l == null ? void 0 : l.style) != null && C.width) || ((N = l == null ? void 0 : l.style) == null ? void 0 : N.width) === "auto"), t = e && bt, r = "notFoundContent" in u ? k : y("Select"), o = $e.length ? /* @__PURE__ */ A(
521
+ Dt,
522
+ {
523
+ id: Be,
524
+ role: "listbox",
525
+ style: O,
526
+ className: de(`${S}-popup-inner`, $),
527
+ ref: Ie,
528
+ data: $e,
529
+ height: null,
530
+ isStaticItemHeight: !yt,
531
+ measureLongestItem: e,
532
+ itemKey: (f) => f.props._key,
533
+ onMouseDown: Xt,
534
+ onMouseMove: () => {
535
+ z.current = null;
536
+ },
537
+ onScroll: (f) => we == null ? void 0 : we(f.target),
538
+ ...b,
539
+ threshold: t ? null : b == null ? void 0 : b.threshold,
540
+ children: (f) => {
541
+ var Ye;
542
+ if (pt(f))
543
+ return /* @__PURE__ */ A(f.type, { ...f.props, prefixCls: S });
544
+ if (ut(f)) {
545
+ const Ze = (Ye = f.props) == null ? void 0 : Ye.value, kt = F(ue) ? ue.value : ue, wt = pe.map(
546
+ (fe) => F(fe) ? fe.value : fe
547
+ ), vt = {
548
+ prefixCls: S,
549
+ rtl: P,
550
+ _valueActive: T,
551
+ _valueSelect: s,
552
+ _isMultipleMode: g,
553
+ _isUserCreatingOption: _ && kt === Ze,
554
+ _isUserCreatedOption: _ && wt.indexOf(Ze) > -1,
555
+ _onClick: qe,
556
+ _onMouseEnter: (fe) => {
557
+ z.current === null && re(fe);
558
+ },
559
+ _onMouseLeave: () => {
560
+ z.current === null && re(void 0);
561
+ }
562
+ };
563
+ return f && /* @__PURE__ */ A(f.type, { ...f.props, ...vt });
564
+ }
565
+ return f;
566
+ }
567
+ }
568
+ ) : null, p = r && !(_ && V) ? /* @__PURE__ */ A(
569
+ "div",
570
+ {
571
+ style: O,
572
+ className: de(`${S}-popup-inner`, $),
573
+ children: r
574
+ }
575
+ ) : null;
576
+ return /* @__PURE__ */ st(
577
+ "div",
578
+ {
579
+ className: de(`${S}-popup`, {
580
+ [`${S}-popup-hidden`]: o === null && p === null,
581
+ [`${S}-popup-multiple`]: g
582
+ }),
583
+ tabIndex: -1,
584
+ onKeyDown: (f) => ye(f),
585
+ children: [
586
+ !!g && !!o && !!je && // 潘启宝添加
587
+ /* @__PURE__ */ A(
588
+ lt,
589
+ {
590
+ "aria-hidden": "true",
591
+ className: `${S}-checkbox ${S}-checkbox-all`,
592
+ checked: W.length === s.length,
593
+ indeterminate: W.length !== s.length && s.length !== 0,
594
+ onChange: (f) => {
595
+ Z(f ? [...W] : []);
596
+ },
597
+ children: "全选"
598
+ }
599
+ ),
600
+ typeof x == "function" ? x(o || p) : o || p
601
+ ]
602
+ }
603
+ );
604
+ }, Te = (e) => {
605
+ if (me.current = null, g && ee(Q) && Q.length) {
606
+ const t = e.split(new RegExp(`[${Q.join("")}]`));
607
+ if (t.length > 1) {
608
+ me.current = Date.now();
609
+ const r = t.filter(
610
+ (p, C) => p && t.indexOf(p) === C
611
+ ), o = s.slice(0);
612
+ let c = !1;
613
+ r.forEach((p) => {
614
+ o.indexOf(p) === -1 && (_ || m.get(p)) && (o.push(p), c = !0);
615
+ }), c && Z(o);
616
+ }
617
+ }
618
+ return !!me.current;
619
+ }, xt = {
620
+ onFocus: ft,
621
+ onBlur: (e) => {
622
+ ke == null || ke(e), !I && !Pe.current && Y("", "optionListHide");
623
+ },
624
+ onKeyDown: (e) => {
625
+ if (e.target.tagName === "INPUT" && e.target.value) {
626
+ const t = e.key === rt.key, r = e.key === nt.key;
627
+ if (r || t) {
628
+ const o = r ? `
629
+ ` : t ? " " : "";
630
+ Te(e.target.value + o) && Y("", "tokenSeparator");
631
+ }
632
+ }
633
+ ye(e), Ae == null || Ae(e);
634
+ },
635
+ onChangeInputValue: (e, { nativeEvent: { inputType: t } }) => {
636
+ t !== "insertFromPaste" && Te(e), me.current ? Y("", "tokenSeparator") : Y(e, "manual"), !I && e && oe(!0);
637
+ },
638
+ onPaste: (e) => {
639
+ Te(e.clipboardData.getData("text")), Ve == null || Ve(e);
640
+ },
641
+ // Option Items
642
+ onRemoveCheckedItem: (e, t, r) => {
643
+ r.stopPropagation(), ze(s[t], "remove");
644
+ },
645
+ onClear: (e) => {
646
+ if (e.stopPropagation(), g) {
647
+ const t = s.filter((r) => {
648
+ const o = m.get(r);
649
+ return o && o.disabled;
650
+ });
651
+ Z(t);
652
+ } else
653
+ Z(void 0);
654
+ Y("", "manual"), ne == null || ne(I);
655
+ }
656
+ };
657
+ At(
658
+ h,
659
+ () => {
660
+ var e;
661
+ return {
662
+ dom: (e = j.current) == null ? void 0 : e.dom,
663
+ focus() {
664
+ j.current && j.current.focus();
665
+ },
666
+ blur() {
667
+ j.current && j.current.blur();
668
+ },
669
+ hotkeyHandler: ye,
670
+ activeOptionValue: T,
671
+ getOptionInfoByValue: ce,
672
+ getOptionInfoList: () => [...m.values()].filter((t) => t._valid),
673
+ scrollIntoView: Oe,
674
+ getRootDOMNode() {
675
+ var t, r;
676
+ return (r = (t = j.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : r.call(t);
677
+ }
678
+ };
679
+ },
680
+ [
681
+ ye,
682
+ m,
683
+ T,
684
+ ce,
685
+ Oe
686
+ ]
687
+ );
688
+ const Je = (e) => /* @__PURE__ */ A(
689
+ Nt,
690
+ {
691
+ ref: Ke,
692
+ popup: _t,
693
+ trigger: d,
694
+ disabled: q,
695
+ getPopupContainer: n,
696
+ classNames: "slideDynamicOrigin",
697
+ autoAlignPopupWidth: !0,
698
+ popupAlign: Zt,
699
+ popupVisible: I,
700
+ unmountOnExit: B,
701
+ onVisibleChange: oe,
702
+ __onExit: () => {
703
+ Pe.current = !0;
704
+ },
705
+ __onExited: () => {
706
+ Pe.current = !1, Y("", "optionListHide");
707
+ },
708
+ ...Me(l, ["popupVisible", "onVisibleChange"]),
709
+ children: e
710
+ }
711
+ ), Fe = typeof a == "function" ? a(he(s)) : a;
712
+ return H(() => {
713
+ var t;
714
+ const e = Rt([(t = j.current) == null ? void 0 : t.dom], () => {
715
+ var r, o;
716
+ (o = (r = Ke.current) == null ? void 0 : r.updatePopupPosition) == null || o.call(r);
717
+ });
718
+ return () => {
719
+ e();
720
+ };
721
+ }, [(Xe = j.current) == null ? void 0 : Xe.dom]), Fe != null ? Je(Fe) : /* @__PURE__ */ A(
722
+ It,
723
+ {
724
+ ...u,
725
+ ...xt,
726
+ ref: j,
727
+ value: s,
728
+ inputValue: V,
729
+ popupVisible: I,
730
+ rtl: P,
731
+ prefixCls: S,
732
+ allowCreate: !!_,
733
+ ariaControls: Be,
734
+ isEmptyValue: ge,
735
+ isMultiple: g,
736
+ onSort: Z,
737
+ renderText: (e) => {
738
+ const t = ce(e);
739
+ let r = e;
740
+ if (St(R)) {
741
+ const o = he(e, !1);
742
+ r = R(
743
+ o.option || null,
744
+ o.value
745
+ );
746
+ } else {
747
+ let o = !1;
748
+ if (v) {
749
+ const c = u.value || u.defaultValue;
750
+ if (Array.isArray(c)) {
751
+ const p = c.find(
752
+ (C) => F(C) && C.value === e
753
+ );
754
+ p && (r = p.label, o = !0);
755
+ } else F(c) && (r = c.label, o = !0);
756
+ }
757
+ !o && t && "children" in t && (r = t.children);
758
+ }
759
+ return {
760
+ text: r,
761
+ disabled: t && t.disabled
762
+ };
763
+ },
764
+ renderView: Je
765
+ }
766
+ );
767
+ }
768
+ const tn = te.forwardRef(en), Ge = tn;
769
+ Ge.displayName = "Select";
770
+ Ge.Option = De;
771
+ Ge.OptGroup = at;
772
+ export {
773
+ De as O,
774
+ Ge as S,
775
+ at as a,
776
+ pt as b,
777
+ ut as i
778
+ };