@unicom-cloud/ui 0.8.65 → 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 (358) 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 -237
  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 +1463 -1395
  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/{DIx0qmCq.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/{DXZEpA3t.js → BBvWDeuZ.js} +67 -67
  87. package/chunk/BCftTxEy.js +626 -0
  88. package/chunk/{CsbCHnFk.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/{DK4KcodH.js → C42LIMP9.js} +244 -242
  105. package/chunk/C4YkFMzC.js +778 -0
  106. package/chunk/{CF6p9R93.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/{Bqk6yh16.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/{DjtWv6Wn.js → CNmmhbCn.js} +32 -32
  113. package/chunk/{BUCEs557.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/{DTjcKyDN.js → C_gJWGGh.js} +201 -201
  118. package/chunk/{CPcm9Cm5.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/{Dnycc1qJ.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/{DG-epQqF.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/{CIlGCedk.js → SLWP34OR.js} +90 -85
  154. package/chunk/VVKtwaGf.js +278 -0
  155. package/chunk/WPNpLxSI.js +16 -0
  156. package/chunk/{DLvMA1OW.js → WpO_DsK4.js} +49 -48
  157. package/chunk/fdU3ang6.js +14 -0
  158. package/chunk/{DqFhzTWC.js → fkclKOAL.js} +298 -292
  159. package/chunk/flvYlqx3.js +22 -0
  160. package/chunk/kTDayEpF.js +288 -0
  161. package/chunk/{DQDkV47j.js → pZoNQ75H.js} +31 -31
  162. package/chunk/qFf1w_Jq.js +8 -0
  163. package/chunk/{CH1UUxsg.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/1GQdnTJp.js +0 -284
  332. package/chunk/BAWsPQBM.js +0 -11
  333. package/chunk/BS09tn7B.js +0 -638
  334. package/chunk/BqGtwxTi.js +0 -777
  335. package/chunk/BqufsN8i.js +0 -376
  336. package/chunk/BtlvlGQN.js +0 -278
  337. package/chunk/C2lIz2F9.js +0 -60
  338. package/chunk/CGZ0In1p.js +0 -776
  339. package/chunk/CWgltRVL.js +0 -698
  340. package/chunk/D3NFxdmG.js +0 -518
  341. package/chunk/DApXtulb.js +0 -1102
  342. package/chunk/DlLL5JQo.js +0 -1501
  343. package/chunk/Dv_xRzvR.js +0 -269
  344. package/chunk/Ek8U5CTN.js +0 -1032
  345. package/chunk/ewRDIDUz.js +0 -995
  346. package/chunk/l0sNRNKZ.js +0 -1
  347. package/chunk/tYXLFPVI.js +0 -871
  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
  358. /package/style/{variable.less → variables.less} +0 -0
package/chunk/BqGtwxTi.js DELETED
@@ -1,777 +0,0 @@
1
- import { jsx as E, 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 _e, useMemo as et, useRef as j, useCallback as Ue, useEffect as K, useImperativeHandle as At } from "react";
5
- import { C as lt } from "./DG-epQqF.js";
6
- import { d as Et } from "./DlLL5JQo.js";
7
- import { useId as Lt } from "../hooks/useId.js";
8
- import { useMergeProps as $t } from "../hooks/useMergeProps.js";
9
- import { useMergeValue as tt } from "../hooks/useMergeValue.js";
10
- import It from "../SelectView.js";
11
- import Nt from "../Trigger.js";
12
- import { y as fe } from "./BAWsPQBM.js";
13
- import Tt from "../utils/getHotkeyHandler.js";
14
- import "../utils/is.js";
15
- import { d as Pt, E as nt, T as rt, c as Ft, A as Ut } from "./C2lIz2F9.js";
16
- import Me from "../utils/omit.js";
17
- import Rt from "../utils/warning.js";
18
- import { V as Mt } from "./D3NFxdmG.js";
19
- import { z as Dt } from "./CSC_V_25.js";
20
- import ie from "lodash/get";
21
- import Gt from "lodash/isNil";
22
- import Ht from "lodash/isNumber";
23
- import Re from "lodash/isPlainObject";
24
- import jt from "lodash/isString";
25
- import Kt from "../utils/fillNBSP.js";
26
- import Bt from "../utils/getHighlightText.js";
27
- import U from "lodash/isPlainObject.js";
28
- function Qt(l, v) {
29
- const { prefixCls: x, label: O, ...R } = l;
30
- return /* @__PURE__ */ E(
31
- "li",
32
- {
33
- ref: v,
34
- className: `${x}-group-title`,
35
- ...Me(R, ["_key", "children", "isSelectOptGroup"]),
36
- children: O
37
- }
38
- );
39
- }
40
- const Wt = te.forwardRef(Qt), at = Wt;
41
- at.__PQB_SELECT_OPTGROUP__ = !0;
42
- function qt(l, v) {
43
- const {
44
- style: x,
45
- className: O,
46
- wrapperClassName: R,
47
- disabled: P,
48
- prefixCls: u,
49
- rtl: L,
50
- value: M,
51
- children: D,
52
- _isMultipleMode: J,
53
- _isUserCreatedOption: B,
54
- _isUserCreatingOption: w,
55
- _valueActive: G,
56
- _valueSelect: Q,
57
- _onMouseEnter: $,
58
- _onMouseLeave: H,
59
- _onClick: k,
60
- ...o
61
- } = l, f = "value" in l ? M : `${D}`, a = "children" in l ? D : `${M}`, s = J ? Q.indexOf(f) !== -1 : Q === f, b = {
62
- style: x,
63
- className: fe(
64
- `${u}-option`,
65
- {
66
- [`${u}-option-selected`]: s,
67
- [`${u}-option-disabled`]: P,
68
- [`${u}-option-hover`]: f === G,
69
- [`${u}-option-empty`]: !a && a !== 0 || typeof a == "string" && /^\s*$/.test(a),
70
- [`${u}-option-rtl`]: L
71
- },
72
- O
73
- ),
74
- onMouseEnter: (I) => {
75
- var y;
76
- $ == null || $(f), (y = o.onMouseEnter) == null || y.call(o, I);
77
- },
78
- onMouseLeave: (I) => {
79
- var y;
80
- H == null || H(), (y = o.onMouseLeave) == null || y.call(o, I);
81
- },
82
- onClick: (I) => {
83
- var y;
84
- k == null || k(f, P), (y = o.onClick) == null || y.call(o, I);
85
- },
86
- ...Me(o, [
87
- "_key",
88
- "extra",
89
- "isSelectOption",
90
- "onClick",
91
- "onMouseEnter",
92
- "onMouseLeave"
93
- ])
94
- }, h = {
95
- ref: v,
96
- role: "option",
97
- "aria-selected": s
98
- };
99
- return B && Object.assign(h, { "data-user-created": !0 }), w && Object.assign(h, { "data-user-creating": !0 }), J ? /* @__PURE__ */ st(
100
- "li",
101
- {
102
- ...h,
103
- className: fe(
104
- `${u}-option-wrapper`,
105
- {
106
- [`${u}-option-wrapper-selected`]: s,
107
- [`${u}-option-wrapper-disabled`]: P
108
- },
109
- R
110
- ),
111
- children: [
112
- /* @__PURE__ */ E(
113
- lt,
114
- {
115
- "aria-hidden": "true",
116
- className: `${u}-checkbox`,
117
- checked: s,
118
- disabled: P,
119
- onChange: b.onClick
120
- }
121
- ),
122
- /* @__PURE__ */ E("span", { ...b, children: a })
123
- ]
124
- }
125
- ) : /* @__PURE__ */ E("li", { ...h, ...b, children: a });
126
- }
127
- const Jt = te.forwardRef(qt), De = Jt;
128
- De.__PQB_SELECT_OPTION__ = !0;
129
- function Xt(l) {
130
- l && l.preventDefault();
131
- }
132
- function be(l, v) {
133
- return v ? !ee(l) || Dt(l) : Gt(l);
134
- }
135
- function ot(l, v, x) {
136
- return x && (v ? l = Array.isArray(l) ? l.map(
137
- (O) => Re(O) && "label" in O ? O.value : O
138
- ) : l : l = Re(l) && "label" in l ? l.value : l), be(l, v) ? v ? Array.isArray(l) ? l : [] : void 0 : l;
139
- }
140
- function ut(l) {
141
- return ie(l, "props.isSelectOption") || ie(l, "type.__PQB_SELECT_OPTION__");
142
- }
143
- function pt(l) {
144
- return ie(l, "props.isSelectOptGroup") || ie(l, "type.__PQB_SELECT_OPTGROUP__");
145
- }
146
- function ct({
147
- children: l,
148
- options: v,
149
- filterOption: x
150
- }, {
151
- inputValue: O = "",
152
- userCreatedOptions: R,
153
- userCreatingOption: P,
154
- prefixCls: u
155
- }, {
156
- optionInfoMap: L = /* @__PURE__ */ new Map(),
157
- optionValueList: M = [],
158
- customNodeCount: D = 0
159
- } = {}) {
160
- let J = !1, B = !1, w = [], G = [];
161
- const Q = (o) => {
162
- const f = ie(o, "props.value"), a = ie(o, "props.children");
163
- return f === void 0 && a !== null && a !== void 0 ? a.toString() : f;
164
- }, $ = ({ label: o, value: f }, a, s) => !o && !f && !a ? (D++, `custom_node_${D}`) : s ? a || `group_${o}` : a || `${typeof f}_${f}` || `${o}_${L.size}`, H = (o, f, a) => {
165
- const s = Q(o);
166
- let b = !0;
167
- x === !0 ? b = s !== void 0 && String(s).toLowerCase().indexOf(O.toLowerCase()) !== -1 : typeof x == "function" && (b = !O || x(O, o, a));
168
- const h = L.get(s), I = (h == null ? void 0 : h._origin) === "userCreatedOptions" || (h == null ? void 0 : h._origin) === "userCreatingOption";
169
- if (!h || I) {
170
- "_key" in o.props || (o = te.cloneElement(o, {
171
- _key: $(o.props, o.key)
172
- }));
173
- const y = L.size, se = {
174
- child: o,
175
- ...o.props,
176
- value: s,
177
- _index: y,
178
- _origin: f,
179
- _valid: b
180
- };
181
- if (L.set(s, se), I) {
182
- const le = w.findIndex(
183
- (ae) => {
184
- var ne;
185
- return ((ne = ae == null ? void 0 : ae.props) == null ? void 0 : ne.value) === s;
186
- }
187
- );
188
- le > -1 && (b ? w[le] = o : w.splice(le, 1));
189
- } else
190
- M.push(s), b && (w.push(o), se.disabled || G.push(y));
191
- }
192
- typeof o.props.children != "string" && (B = !0);
193
- }, k = (o, f) => {
194
- f && ee(o) && o.length && o.forEach((a) => {
195
- (jt(a) || Ht(a)) && (a = {
196
- label: a,
197
- value: a
198
- });
199
- const s = /* @__PURE__ */ E(
200
- De,
201
- {
202
- _key: $(a),
203
- value: a.value,
204
- disabled: a.disabled === !0,
205
- extra: a.extra,
206
- children: Kt(a.label)
207
- }
208
- );
209
- H(s, f, a);
210
- });
211
- };
212
- return P && k([P], "userCreatingOption"), l && te.Children.map(l, (o) => {
213
- if (pt(o)) {
214
- const { children: f, options: a } = o.props, {
215
- childrenList: s,
216
- optionIndexListForArrowKey: b,
217
- hasComplexLabelInOptions: h
218
- } = ct(
219
- { children: f, options: a, filterOption: x },
220
- { inputValue: O, prefixCls: u },
221
- { optionInfoMap: L, optionValueList: M, customNodeCount: D }
222
- );
223
- s.length && (w.push(
224
- te.cloneElement(o, {
225
- children: null,
226
- _key: $(o.props, o.key, !0)
227
- })
228
- ), w = w.concat(s), G = G.concat(
229
- b
230
- ), J = !0, B = B || h);
231
- } else ut(o) ? H(o, "children", null) : Re(o) && o.props && w.push(
232
- te.cloneElement(o, {
233
- _key: $(o.props, o.key)
234
- })
235
- );
236
- }), k(v, "options"), k(R, "userCreatedOptions"), {
237
- childrenList: Bt({
238
- nodeList: w,
239
- pattern: O,
240
- highlightClassName: `${u}-highlight`
241
- }),
242
- optionInfoMap: L,
243
- optionValueList: M,
244
- optionIndexListForArrowKey: G,
245
- hasOptGroup: J,
246
- hasComplexLabelInOptions: B
247
- };
248
- }
249
- const it = "userCreatingOption", Yt = {
250
- trigger: "click",
251
- bordered: !0,
252
- filterOption: !0,
253
- unmountOnExit: !0,
254
- defaultActiveFirstOption: !0,
255
- allowCheckAll: !0
256
- }, Zt = { bottom: 4 };
257
- function zt(l, v) {
258
- var Ye;
259
- const { getPrefixCls: x, renderEmpty: O, componentConfig: R, rtl: P } = Vt(Et), u = $t(
260
- l,
261
- Yt,
262
- R == null ? void 0 : R.Select
263
- ), {
264
- children: L,
265
- renderFormat: M,
266
- defaultActiveFirstOption: D,
267
- disabled: J,
268
- unmountOnExit: B,
269
- notFoundContent: w,
270
- showSearch: G,
271
- tokenSeparators: Q,
272
- options: $,
273
- filterOption: H,
274
- labelInValue: k,
275
- getPopupContainer: o,
276
- trigger: f,
277
- triggerElement: a,
278
- triggerProps: s,
279
- dropdownRender: b,
280
- dropdownMenuStyle: h,
281
- dropdownMenuClassName: I,
282
- virtualListProps: y,
283
- // events
284
- onChange: se,
285
- onSelect: le,
286
- onDeselect: ae,
287
- onClear: ne,
288
- onSearch: ve,
289
- onFocus: dt,
290
- onBlur: we,
291
- onPopupScroll: xe,
292
- onVisibleChange: ke,
293
- onInputValueChange: Se,
294
- onPaste: Ve,
295
- onKeyDown: Ae
296
- } = u;
297
- let { mode: Ee, allowCheckAll: He, allowCreate: _ } = u;
298
- Ee === "tags" && (Ee = "multiple", _ = !0, Rt(
299
- !0,
300
- `[Pqb Select] The 'tags' mode will be removed in the next major version, please use {mode: "multiple", allowCreate: true} instead.`
301
- ));
302
- const S = x("select"), g = Ee === "multiple";
303
- g || (He = !1);
304
- const [ft, Le] = _e(
305
- ot(u.defaultValue, g, k)
306
- ), i = "value" in u ? ot(u.value, g, k) : ft, [V, mt, gt] = tt("", {
307
- value: "inputValue" in u ? u.inputValue || "" : void 0
308
- }), [N, ht] = tt(!1, {
309
- defaultValue: u.defaultPopupVisible,
310
- value: "popupVisible" in u ? u.popupVisible : s && "popupVisible" in s ? s.popupVisible : void 0
311
- }), [ue, Ct] = _e(null), [pe, Ot] = _e([]), [F, re] = _e(
312
- ee(i) ? i[0] : i
313
- ), {
314
- childrenList: $e,
315
- optionInfoMap: m,
316
- optionValueList: W,
317
- optionIndexListForArrowKey: X,
318
- hasOptGroup: yt,
319
- hasComplexLabelInOptions: _t
320
- } = et(() => ct(
321
- { children: L, options: $, filterOption: H },
322
- {
323
- prefixCls: S,
324
- inputValue: V,
325
- userCreatedOptions: pe,
326
- userCreatingOption: ue
327
- }
328
- ), [
329
- L,
330
- $,
331
- H,
332
- V,
333
- ue,
334
- pe
335
- ]), Ie = j(null), je = j(null), A = j(null), Y = j([]), q = j(null), Ke = j(V), Ne = j(null), me = j(0), Te = j(!1), Be = Lt(`${S}-popup-`), ge = be(i, g), Qe = et(() => {
336
- var e, t;
337
- if (D) {
338
- const n = ee(i) ? i[0] : i, r = !ge && ((e = m.get(n)) == null ? void 0 : e._valid), c = ((t = m == null ? void 0 : m.get(W[0])) == null ? void 0 : t._origin) === it;
339
- return r && !c ? n : W[X[0]];
340
- }
341
- }, [
342
- i,
343
- m,
344
- W,
345
- X,
346
- D,
347
- ge
348
- ]), he = Ue(
349
- (e, t) => {
350
- var r;
351
- const n = m.get(e);
352
- Ie.current && ((r = n == null ? void 0 : n.child) != null && r.props) && Ie.current.scrollTo({
353
- key: n.child.props._key,
354
- options: t
355
- });
356
- },
357
- [m]
358
- ), Ce = Ue(
359
- (e, t = !1) => U(_) && typeof (_ == null ? void 0 : _.formatter) == "function" ? _.formatter(e, t) : e,
360
- [_]
361
- ), Z = (e, t) => {
362
- (e !== Ke.current || t !== Ne.current) && (mt(e), Ke.current = e, Ne.current = t, Se == null || Se(e, t));
363
- }, oe = (e) => {
364
- var t;
365
- N !== e && (ht(e), ke == null || ke(e), (t = s == null ? void 0 : s.onVisibleChange) == null || t.call(s, e));
366
- };
367
- K(() => {
368
- g ? Array.isArray(i) || Le(i === void 0 ? [] : [i]) : Array.isArray(i) && Le(i.length === 0 ? void 0 : i[0]);
369
- }, [g, i]), K(() => {
370
- if (N) {
371
- re(Qe);
372
- const e = ee(i) ? i[0] : i;
373
- !ge && m.has(e) && setTimeout(() => he(e));
374
- }
375
- }, [N]), K(() => {
376
- (q.current === "up" || q.current === "down") && (he(F), q.current = "none");
377
- }, [F]), K(() => {
378
- re(Qe);
379
- }, [JSON.stringify($e.map((e) => {
380
- var t;
381
- return (t = e == null ? void 0 : e.props) == null ? void 0 : t.value;
382
- }))]), K(() => {
383
- Y.current = Y.current.filter((e) => g ? ee(i) && i.indexOf(e.value) > -1 : e.value === i);
384
- }, [i, g]), K(() => {
385
- if (_) {
386
- let e;
387
- if (be(i, g))
388
- e = [];
389
- else {
390
- const n = Array.isArray(i) ? i : [i], r = n.filter((p) => {
391
- var T;
392
- const C = m.get(p) || ((T = Y.current.find((d) => d.value === p)) == null ? void 0 : T.option);
393
- return !C || C._origin === it;
394
- }).map((p) => Ce(p));
395
- e = pe.filter((p) => {
396
- const C = U(p) ? p.value : p;
397
- return n.indexOf(C) !== -1;
398
- }).concat(
399
- r
400
- );
401
- }
402
- const t = (n) => n.map((r) => U(r) ? r.value : r).toString();
403
- t(e) !== t(pe) && Ot(e);
404
- }
405
- }, [i, _, g, Ce]), K(() => {
406
- _ && Ct(
407
- V && !m.has(V) ? Ce(V, !0) : null
408
- );
409
- }, [V, Ce]), K(() => {
410
- const { current: e } = Ne;
411
- gt === V && (e === "manual" || e === "optionListHide") && (ve == null || ve(V, e));
412
- }, [V]);
413
- const ce = Ue(
414
- (e) => {
415
- const t = m.get(e);
416
- if (t) {
417
- const r = Y.current.findIndex(
418
- (c) => c.value === e
419
- );
420
- return r > -1 ? Y.current.splice(r, 1, { value: e, option: t }) : Y.current.push({ value: e, option: t }), t;
421
- }
422
- const n = Y.current.find((r) => r.value === e);
423
- return n && n.option;
424
- },
425
- [m]
426
- ), We = (e) => {
427
- if (!X.length)
428
- return;
429
- if (F === void 0 || !m.has(F))
430
- return W[X[0]];
431
- const n = m.get(F)._index, r = X.indexOf(n), c = X.length;
432
- return W[X[((e === "up" ? r - 1 : r + 1) + c) % c]];
433
- }, Oe = (e, t = be(e, g)) => {
434
- let n = e;
435
- const r = e === void 0 ? void 0 : Array.isArray(e) ? e.map(ce) : ce(e);
436
- if (k && !t) {
437
- const c = (p, C) => {
438
- if (C)
439
- return C.children;
440
- const T = "value" in u ? u.value : "defaultValue" in u ? u.defaultValue : null;
441
- if (Array.isArray(T)) {
442
- for (const d of T)
443
- if (U(d) && d.value === p)
444
- return d.label;
445
- } else if (U(T) && T.value === p)
446
- return T.label;
447
- };
448
- Array.isArray(e) ? n = e.map((p, C) => ({
449
- value: p,
450
- label: c(p, r[C])
451
- })) : n = {
452
- value: e,
453
- label: c(e, r)
454
- };
455
- }
456
- return { option: r, value: n };
457
- }, z = (e) => {
458
- if (Le(e), se) {
459
- const t = Oe(e);
460
- se(t.value, t.option);
461
- }
462
- }, qe = (e, t) => {
463
- if (t === "remove" || t === "add" && m.get(e)) {
464
- const n = t === "add" ? i.concat(e) : i.filter((c) => c !== e), r = t === "add" ? le : ae;
465
- if (z(n), typeof r == "function") {
466
- const c = Oe(
467
- e,
468
- !1
469
- );
470
- r(
471
- c.value,
472
- c.option
473
- );
474
- }
475
- }
476
- }, Je = (e, t) => {
477
- t || (g ? (qe(
478
- e,
479
- i.indexOf(e) === -1 ? "add" : "remove"
480
- ), (!U(G) || !G.retainInputValueWhileSelect) && Z("", "optionChecked")) : (e !== i && z(e), setTimeout(() => {
481
- oe(!1);
482
- })));
483
- }, ye = Tt(
484
- /* @__PURE__ */ new Map([
485
- [Pt.key, () => oe(!1)],
486
- [
487
- nt.key,
488
- () => {
489
- if (N) {
490
- const e = m.get(F);
491
- e && Je(F, e.disabled);
492
- } else
493
- oe(!0);
494
- }
495
- ],
496
- [
497
- rt.key,
498
- // 按tab键切换,关闭开启的弹出框
499
- () => oe(!1)
500
- ],
501
- [
502
- Ft.key,
503
- () => {
504
- if (N)
505
- return q.current = "up", re(We("up")), !1;
506
- }
507
- ],
508
- [
509
- Ut.key,
510
- () => {
511
- if (N)
512
- return q.current = "down", re(We("down")), !1;
513
- }
514
- ]
515
- ])
516
- ), bt = () => {
517
- var C, T;
518
- const e = (s == null ? void 0 : s.autoAlignPopupWidth) === !1 && (!((C = s == null ? void 0 : s.style) != null && C.width) || ((T = s == null ? void 0 : s.style) == null ? void 0 : T.width) === "auto"), t = e && _t, n = "notFoundContent" in u ? w : O("Select"), r = $e.length ? /* @__PURE__ */ E(
519
- Mt,
520
- {
521
- id: Be,
522
- role: "listbox",
523
- style: h,
524
- className: fe(`${S}-popup-inner`, I),
525
- ref: Ie,
526
- data: $e,
527
- height: null,
528
- isStaticItemHeight: !yt,
529
- measureLongestItem: e,
530
- itemKey: (d) => d.props._key,
531
- onMouseDown: Xt,
532
- onMouseMove: () => {
533
- q.current = null;
534
- },
535
- onScroll: (d) => xe == null ? void 0 : xe(d.target),
536
- ...y,
537
- threshold: t ? null : y == null ? void 0 : y.threshold,
538
- children: (d) => {
539
- var Ze;
540
- if (pt(d))
541
- return /* @__PURE__ */ E(d.type, { ...d.props, prefixCls: S });
542
- if (ut(d)) {
543
- const ze = (Ze = d.props) == null ? void 0 : Ze.value, wt = U(ue) ? ue.value : ue, xt = pe.map(
544
- (de) => U(de) ? de.value : de
545
- ), kt = {
546
- prefixCls: S,
547
- rtl: P,
548
- _valueActive: F,
549
- _valueSelect: i,
550
- _isMultipleMode: g,
551
- _isUserCreatingOption: _ && wt === ze,
552
- _isUserCreatedOption: _ && xt.indexOf(ze) > -1,
553
- _onClick: Je,
554
- _onMouseEnter: (de) => {
555
- q.current === null && re(de);
556
- },
557
- _onMouseLeave: () => {
558
- q.current === null && re(void 0);
559
- }
560
- };
561
- return d && /* @__PURE__ */ E(d.type, { ...d.props, ...kt });
562
- }
563
- return d;
564
- }
565
- }
566
- ) : null, p = n && !(_ && V) ? /* @__PURE__ */ E(
567
- "div",
568
- {
569
- style: h,
570
- className: fe(`${S}-popup-inner`, I),
571
- children: n
572
- }
573
- ) : null;
574
- return /* @__PURE__ */ st(
575
- "div",
576
- {
577
- className: fe(`${S}-popup`, {
578
- [`${S}-popup-hidden`]: r === null && p === null,
579
- [`${S}-popup-multiple`]: g
580
- }),
581
- tabIndex: -1,
582
- onKeyDown: (d) => ye(d),
583
- children: [
584
- !!g && !!r && !!He && // 潘启宝添加
585
- /* @__PURE__ */ E(
586
- lt,
587
- {
588
- "aria-hidden": "true",
589
- className: `${S}-checkbox ${S}-checkbox-all`,
590
- checked: W.length === i.length,
591
- indeterminate: W.length !== i.length && i.length !== 0,
592
- onChange: (d) => {
593
- z(d ? [...W] : []);
594
- },
595
- children: "全选"
596
- }
597
- ),
598
- typeof b == "function" ? b(r || p) : r || p
599
- ]
600
- }
601
- );
602
- }, Pe = (e) => {
603
- if (me.current = null, g && ee(Q) && Q.length) {
604
- const t = e.split(new RegExp(`[${Q.join("")}]`));
605
- if (t.length > 1) {
606
- me.current = Date.now();
607
- const n = t.filter(
608
- (p, C) => p && t.indexOf(p) === C
609
- ), r = i.slice(0);
610
- let c = !1;
611
- n.forEach((p) => {
612
- r.indexOf(p) === -1 && (_ || m.get(p)) && (r.push(p), c = !0);
613
- }), c && z(r);
614
- }
615
- }
616
- return !!me.current;
617
- }, vt = {
618
- onFocus: dt,
619
- onBlur: (e) => {
620
- we == null || we(e), !N && !Te.current && Z("", "optionListHide");
621
- },
622
- onKeyDown: (e) => {
623
- if (e.target.tagName === "INPUT" && e.target.value) {
624
- const t = e.key === rt.key, n = e.key === nt.key;
625
- if (n || t) {
626
- const r = n ? `
627
- ` : t ? " " : "";
628
- Pe(e.target.value + r) && Z("", "tokenSeparator");
629
- }
630
- }
631
- ye(e), Ae == null || Ae(e);
632
- },
633
- onChangeInputValue: (e, { nativeEvent: { inputType: t } }) => {
634
- t !== "insertFromPaste" && Pe(e), me.current ? Z("", "tokenSeparator") : Z(e, "manual"), !N && e && oe(!0);
635
- },
636
- onPaste: (e) => {
637
- Pe(e.clipboardData.getData("text")), Ve == null || Ve(e);
638
- },
639
- // Option Items
640
- onRemoveCheckedItem: (e, t, n) => {
641
- n.stopPropagation(), qe(i[t], "remove");
642
- },
643
- onClear: (e) => {
644
- if (e.stopPropagation(), g) {
645
- const t = i.filter((n) => {
646
- const r = m.get(n);
647
- return r && r.disabled;
648
- });
649
- z(t);
650
- } else
651
- z(void 0);
652
- Z("", "manual"), ne == null || ne(N);
653
- }
654
- };
655
- At(
656
- v,
657
- () => {
658
- var e;
659
- return {
660
- dom: (e = A.current) == null ? void 0 : e.dom,
661
- focus() {
662
- A.current && A.current.focus();
663
- },
664
- blur() {
665
- A.current && A.current.blur();
666
- },
667
- hotkeyHandler: ye,
668
- activeOptionValue: F,
669
- getOptionInfoByValue: ce,
670
- getOptionInfoList: () => [...m.values()].filter((t) => t._valid),
671
- scrollIntoView: he,
672
- getRootDOMNode() {
673
- var t, n;
674
- return (n = (t = A.current) == null ? void 0 : t.getRootDOMNode) == null ? void 0 : n.call(t);
675
- }
676
- };
677
- },
678
- [
679
- ye,
680
- m,
681
- F,
682
- ce,
683
- he
684
- ]
685
- );
686
- const Xe = (e) => /* @__PURE__ */ E(
687
- Nt,
688
- {
689
- ref: (t) => je.current = t,
690
- popup: bt,
691
- trigger: f,
692
- disabled: J,
693
- getPopupContainer: o,
694
- classNames: "slideDynamicOrigin",
695
- autoAlignPopupWidth: !0,
696
- popupAlign: Zt,
697
- popupVisible: N,
698
- unmountOnExit: B,
699
- onVisibleChange: oe,
700
- __onExit: () => {
701
- Te.current = !0;
702
- },
703
- __onExited: () => {
704
- Te.current = !1, Z("", "optionListHide");
705
- },
706
- ...Me(s, ["popupVisible", "onVisibleChange"]),
707
- children: e
708
- }
709
- ), Fe = typeof a == "function" ? a(Oe(i)) : a;
710
- return K(() => {
711
- var t;
712
- let e;
713
- return (t = A.current) != null && t.dom && (e = new ResizeObserver(() => {
714
- var n, r;
715
- (r = (n = je.current) == null ? void 0 : n.updatePopupPosition) == null || r.call(n);
716
- }), e.observe(A.current.dom)), () => {
717
- var n, r, c;
718
- (n = A.current) != null && n.dom && ((r = e == null ? void 0 : e.unobserve) == null || r.call(e, A.current.dom)), (c = e == null ? void 0 : e.disconnect) == null || c.call(e), e = null;
719
- };
720
- }, [(Ye = A.current) == null ? void 0 : Ye.dom]), Fe != null ? Xe(Fe) : /* @__PURE__ */ E(
721
- It,
722
- {
723
- ...u,
724
- ...vt,
725
- ref: A,
726
- value: i,
727
- inputValue: V,
728
- popupVisible: N,
729
- rtl: P,
730
- prefixCls: S,
731
- allowCreate: !!_,
732
- ariaControls: Be,
733
- isEmptyValue: ge,
734
- isMultiple: g,
735
- onSort: z,
736
- renderText: (e) => {
737
- const t = ce(e);
738
- let n = e;
739
- if (St(M)) {
740
- const r = Oe(e, !1);
741
- n = M(
742
- r.option || null,
743
- r.value
744
- );
745
- } else {
746
- let r = !1;
747
- if (k) {
748
- const c = u.value || u.defaultValue;
749
- if (Array.isArray(c)) {
750
- const p = c.find(
751
- (C) => U(C) && C.value === e
752
- );
753
- p && (n = p.label, r = !0);
754
- } else U(c) && (n = c.label, r = !0);
755
- }
756
- !r && t && "children" in t && (n = t.children);
757
- }
758
- return {
759
- text: n,
760
- disabled: t && t.disabled
761
- };
762
- },
763
- renderView: Xe
764
- }
765
- );
766
- }
767
- const en = te.forwardRef(zt), Ge = en;
768
- Ge.displayName = "Select";
769
- Ge.Option = De;
770
- Ge.OptGroup = at;
771
- export {
772
- De as O,
773
- Ge as S,
774
- pt as a,
775
- at as b,
776
- ut as i
777
- };