@gobolt/genesis 0.0.9 → 0.0.11

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 (415) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  6. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  7. package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
  8. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
  9. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
  10. package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
  11. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  12. package/dist/Keyframes-sPZXYuXt.js +17 -0
  13. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  14. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  15. package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
  16. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  17. package/dist/Skeleton-B3vg9CbL.js +560 -0
  18. package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
  19. package/dist/Typography-DqI7RslA.js +705 -0
  20. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  21. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  22. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  23. package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
  24. package/dist/clsx-OuTLNxxd.js +16 -0
  25. package/dist/components/Avatar/Avatar.d.ts +12 -0
  26. package/dist/components/Avatar/Avatar.js +61 -0
  27. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  28. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  30. package/dist/components/Avatar/index.d.ts +2 -0
  31. package/dist/components/Avatar/index.js +4 -0
  32. package/dist/components/Avatar/styles.d.ts +18 -0
  33. package/dist/components/Avatar/styles.js +326 -0
  34. package/dist/components/Badge/Badge.d.ts +5 -3
  35. package/dist/components/Badge/Badge.js +67 -100
  36. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  37. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  38. package/dist/components/Badge/styles.d.ts +12 -3
  39. package/dist/components/Badge/styles.js +30 -27
  40. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  41. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  42. package/dist/components/Breadcrumb/styles.js +239 -2260
  43. package/dist/components/Button/Button.d.ts +4 -3
  44. package/dist/components/Button/Button.js +10 -6
  45. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  46. package/dist/components/Button/__tests__/Button.test.js +1 -1
  47. package/dist/components/Button/styles.d.ts +2 -2
  48. package/dist/components/Button/styles.js +20 -17
  49. package/dist/components/Card/Card.d.ts +9 -0
  50. package/dist/components/Card/Card.js +16 -0
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  52. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  53. package/dist/components/Card/__tests__/Card.test.js +16 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js +4 -0
  56. package/dist/components/Card/styles.d.ts +16 -0
  57. package/dist/components/Card/styles.js +12 -0
  58. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  59. package/dist/components/Checkbox/Checkbox.js +28 -16
  60. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  61. package/dist/components/Checkbox/styles.js +22 -457
  62. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  63. package/dist/components/Dashboard/Dashboard.js +5 -0
  64. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  66. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  67. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  73. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  75. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  77. package/dist/components/Dashboard/index.d.ts +2 -0
  78. package/dist/components/Dashboard/index.js +4 -0
  79. package/dist/components/Dashboard/styles.d.ts +14 -0
  80. package/dist/components/Dashboard/styles.js +11 -0
  81. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  82. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  83. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  84. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  85. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  86. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  87. package/dist/components/ErrorBoundary/index.js +4 -0
  88. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  89. package/dist/components/ErrorBoundary/styles.js +11 -0
  90. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  91. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  92. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  93. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  94. package/dist/components/Form/Form.js +3 -3
  95. package/dist/components/Form/__stories__/FormStory.js +127 -50
  96. package/dist/components/Form/__tests__/form.test.js +2 -2
  97. package/dist/components/Form/index.js +1 -1
  98. package/dist/components/Form/styles.js +1 -1
  99. package/dist/components/Glyph/Glyph.d.ts +4 -0
  100. package/dist/components/Glyph/Glyph.js +9 -0
  101. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  102. package/dist/components/Glyph/index.d.ts +2 -0
  103. package/dist/components/Glyph/index.js +4 -0
  104. package/dist/components/Glyph/styles.d.ts +14 -0
  105. package/dist/components/Glyph/styles.js +11 -0
  106. package/dist/components/Input/Input.d.ts +1 -2
  107. package/dist/components/Input/Input.js +14 -10
  108. package/dist/components/Input/__tests__/Input.test.js +1 -1
  109. package/dist/components/Input/styles.js +58 -466
  110. package/dist/components/Layout/Content/Content.d.ts +11 -0
  111. package/dist/components/Layout/Content/Content.js +32 -0
  112. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  113. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  114. package/dist/components/Layout/Content/index.d.ts +2 -0
  115. package/dist/components/Layout/Content/index.js +4 -0
  116. package/dist/components/Layout/Content/styles.d.ts +11 -0
  117. package/dist/components/Layout/Content/styles.js +16 -0
  118. package/dist/components/Layout/Layout.d.ts +8 -0
  119. package/dist/components/Layout/Layout.js +6 -0
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  121. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  123. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  124. package/dist/components/Layout/MainLayout/index.js +4 -0
  125. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  126. package/dist/components/Layout/MainLayout/styles.js +69 -0
  127. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  128. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  129. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  130. package/dist/components/Layout/index.d.ts +2 -0
  131. package/dist/components/Layout/index.js +4 -0
  132. package/dist/components/Message/Message.d.ts +6 -4
  133. package/dist/components/Message/Message.js +70 -43
  134. package/dist/components/Message/__tests__/Message.test.js +1 -1
  135. package/dist/components/Message/styles.d.ts +1 -0
  136. package/dist/components/Message/styles.js +15 -11
  137. package/dist/components/Notification/Notification.js +145 -120
  138. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  139. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  140. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  141. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  142. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  143. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  144. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  145. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  146. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  147. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  148. package/dist/components/Notification/styles.d.ts +1 -1
  149. package/dist/components/Notification/styles.js +1 -1
  150. package/dist/components/Popover/Popover.d.ts +10 -0
  151. package/dist/components/Popover/Popover.js +21 -0
  152. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  153. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  154. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  155. package/dist/components/Popover/index.d.ts +2 -0
  156. package/dist/components/Popover/index.js +4 -0
  157. package/dist/components/Popover/styles.d.ts +15 -0
  158. package/dist/components/Popover/styles.js +6 -0
  159. package/dist/components/Progress/Progress.d.ts +18 -0
  160. package/dist/components/Progress/Progress.js +91 -0
  161. package/dist/components/Progress/Progress.util.d.ts +4 -0
  162. package/dist/components/Progress/Progress.util.js +62 -0
  163. package/dist/components/Progress/ProgressText.d.ts +11 -0
  164. package/dist/components/Progress/ProgressText.js +67 -0
  165. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  166. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  167. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  168. package/dist/components/Progress/index.d.ts +2 -0
  169. package/dist/components/Progress/index.js +4 -0
  170. package/dist/components/Progress/styles.d.ts +17 -0
  171. package/dist/components/Progress/styles.js +793 -0
  172. package/dist/components/Radio/Radio.js +22 -6
  173. package/dist/components/Radio/RadioGroup.js +1 -1
  174. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  175. package/dist/components/Radio/index.d.ts +1 -0
  176. package/dist/components/Row/Row.d.ts +14 -0
  177. package/dist/components/Row/Row.js +38 -0
  178. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  179. package/dist/components/Row/RowActions/RowActions.js +59 -0
  180. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  181. package/dist/components/Row/RowActions/styles.js +32 -0
  182. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  183. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  184. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  185. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  186. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  187. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  188. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  189. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  190. package/dist/components/Row/__tests__/Row.test.js +16 -0
  191. package/dist/components/Row/index.d.ts +2 -0
  192. package/dist/components/Row/index.js +4 -0
  193. package/dist/components/Row/styles.d.ts +15 -0
  194. package/dist/components/Row/styles.js +15 -0
  195. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  196. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  197. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  198. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  199. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  200. package/dist/components/SegmentedControls/index.d.ts +2 -0
  201. package/dist/components/SegmentedControls/index.js +4 -0
  202. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  203. package/dist/components/SegmentedControls/styles.js +511 -0
  204. package/dist/components/Select/Select.d.ts +2 -4
  205. package/dist/components/Select/Select.js +12 -11
  206. package/dist/components/Select/__tests__/Select.test.js +1 -1
  207. package/dist/components/Select/styles.js +39 -3654
  208. package/dist/components/Shapes/Shapes.d.ts +6 -0
  209. package/dist/components/Shapes/Shapes.js +8 -0
  210. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  211. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  212. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  213. package/dist/components/Shapes/index.d.ts +2 -0
  214. package/dist/components/Shapes/index.js +4 -0
  215. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  216. package/dist/components/Shapes/variants/Circle.js +23 -0
  217. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  218. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  219. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  220. package/dist/components/Shapes/variants/Triangle.js +23 -0
  221. package/dist/components/Switch/Switch.d.ts +9 -0
  222. package/dist/components/Switch/Switch.js +22 -0
  223. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  224. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  225. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  226. package/dist/components/Switch/index.d.ts +2 -0
  227. package/dist/components/Switch/index.js +4 -0
  228. package/dist/components/Switch/styles.d.ts +9 -0
  229. package/dist/components/Switch/styles.js +456 -0
  230. package/dist/components/Table/Table.d.ts +15 -0
  231. package/dist/components/Table/Table.js +23 -0
  232. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  233. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  234. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  235. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  236. package/dist/components/Table/__tests__/Table.test.js +34 -0
  237. package/dist/components/Table/index.d.ts +2 -0
  238. package/dist/components/Table/index.js +4 -0
  239. package/dist/components/Table/styles.d.ts +8 -0
  240. package/dist/components/Table/styles.js +6 -0
  241. package/dist/components/Tabs/Tabs.d.ts +10 -0
  242. package/dist/components/Tabs/Tabs.js +23 -0
  243. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  244. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  245. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  246. package/dist/components/Tabs/index.d.ts +2 -0
  247. package/dist/components/Tabs/index.js +4 -0
  248. package/dist/components/Tabs/styles.d.ts +12 -0
  249. package/dist/components/Tabs/styles.js +102 -0
  250. package/dist/components/Tile/Tile.d.ts +10 -0
  251. package/dist/components/Tile/Tile.js +21 -0
  252. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  253. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  254. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  255. package/dist/components/Tile/index.d.ts +2 -0
  256. package/dist/components/Tile/index.js +4 -0
  257. package/dist/components/Tile/styles.d.ts +11 -0
  258. package/dist/components/Tile/styles.js +12 -0
  259. package/dist/components/Toast/Toast.js +23 -6
  260. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  261. package/dist/components/Toast/index.js +1 -1
  262. package/dist/components/Toast/styles.d.ts +0 -1
  263. package/dist/components/Toast/styles.js +14 -23
  264. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  265. package/dist/components/Tooltip/Tooltip.js +50 -0
  266. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  267. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  268. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  269. package/dist/components/Tooltip/index.d.ts +2 -0
  270. package/dist/components/Tooltip/index.js +4 -0
  271. package/dist/components/Tooltip/styles.d.ts +20 -0
  272. package/dist/components/Tooltip/styles.js +11 -0
  273. package/dist/components/Typography/Typography.d.ts +5 -1
  274. package/dist/components/Typography/Typography.js +2 -2
  275. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  276. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  277. package/dist/components/Typography/index.js +1 -1
  278. package/dist/components/Typography/styles.d.ts +1 -0
  279. package/dist/components/Typography/styles.js +53 -17
  280. package/dist/components/index.d.ts +31 -1
  281. package/dist/components/index.js +54 -24
  282. package/dist/constants/index.d.ts +4 -0
  283. package/dist/constants/index.js +4 -2
  284. package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
  285. package/dist/dropdown-zGGFIyJ_.js +2044 -0
  286. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  287. package/dist/genesis/GenesisThemeBreakdown.js +38 -22
  288. package/dist/genesis/styles.js +7 -2923
  289. package/dist/iconBase-LROS5hdG.js +112 -0
  290. package/dist/index-BRUI9igj.js +11 -0
  291. package/dist/index-BTGF--50.js +1845 -0
  292. package/dist/index-BW_7pvTr.js +538 -0
  293. package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
  294. package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
  295. package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
  296. package/dist/index-CdiHBmVe.js +445 -0
  297. package/dist/index-CodMmNWv.js +102 -0
  298. package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
  299. package/dist/index-D0P16DlX.js +286 -0
  300. package/dist/index-DLdU7Tpd.js +183 -0
  301. package/dist/index-DWUXwgXK.js +809 -0
  302. package/dist/index-DmZOkMjs.js +3628 -0
  303. package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
  304. package/dist/index-hoPiccJv.js +415 -0
  305. package/dist/index.js +61 -31
  306. package/dist/interface/address.d.ts +10 -0
  307. package/dist/interface/address.js +1 -0
  308. package/dist/interface/appointment.d.ts +57 -0
  309. package/dist/interface/appointment.js +5 -0
  310. package/dist/interface/appointmentV2.d.ts +65 -0
  311. package/dist/interface/appointmentV2.js +1 -0
  312. package/dist/interface/appointmentsState.d.ts +21 -0
  313. package/dist/interface/appointmentsState.js +1 -0
  314. package/dist/interface/common.d.ts +2 -0
  315. package/dist/interface/common.js +1 -0
  316. package/dist/interface/completionData.d.ts +18 -0
  317. package/dist/interface/completionData.js +1 -0
  318. package/dist/interface/deliveryPartner.d.ts +25 -0
  319. package/dist/interface/deliveryPartner.js +1 -0
  320. package/dist/interface/organization.d.ts +9 -0
  321. package/dist/interface/organization.js +1 -0
  322. package/dist/interface/pagination.d.ts +8 -0
  323. package/dist/interface/pagination.js +1 -0
  324. package/dist/interface/roles.d.ts +9 -0
  325. package/dist/interface/roles.js +1 -0
  326. package/dist/interface/route.d.ts +73 -0
  327. package/dist/interface/route.js +1 -0
  328. package/dist/interface/routeAnalysis.d.ts +108 -0
  329. package/dist/interface/routeAnalysis.js +1 -0
  330. package/dist/interface/routeAutomationJob.d.ts +95 -0
  331. package/dist/interface/routeAutomationJob.js +10 -0
  332. package/dist/interface/routeAutomationLog.d.ts +10 -0
  333. package/dist/interface/routeAutomationLog.js +1 -0
  334. package/dist/interface/routeEvent.d.ts +55 -0
  335. package/dist/interface/routeEvent.js +5 -0
  336. package/dist/interface/serviceArea.d.ts +18 -0
  337. package/dist/interface/serviceArea.js +1 -0
  338. package/dist/interface/util.d.ts +3 -0
  339. package/dist/interface/util.js +1 -0
  340. package/dist/interface/vehicle.d.ts +120 -0
  341. package/dist/interface/vehicle.js +1 -0
  342. package/dist/interface/workOrder.d.ts +22 -0
  343. package/dist/interface/workOrder.js +1 -0
  344. package/dist/isVisible-D3-B85BJ.js +22 -0
  345. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  346. package/dist/omit-B_u6A-HL.js +9 -0
  347. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  348. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  349. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  350. package/dist/providers/BreakpointThemeProvider.js +21 -0
  351. package/dist/providers/GenesisProvider.js +3 -3
  352. package/dist/providers/ToastProvider.js +22 -6
  353. package/dist/providers/index.js +1 -1
  354. package/dist/providers/useGenesis.js +2 -2
  355. package/dist/responsiveObserver-O1kw80RG.js +73 -0
  356. package/dist/setup-CKu7-AfI.js +24706 -0
  357. package/dist/setup.types-dBtAXXGp.js +8824 -0
  358. package/dist/shadow-BoMGMNn3.js +13 -0
  359. package/dist/styleChecker-Cotu61d0.js +21 -0
  360. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
  361. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  362. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  363. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  364. package/dist/styles/theme/genesis-theme.js +468 -263
  365. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  366. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  367. package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
  368. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  369. package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
  370. package/dist/styles-BSD221S5.js +289 -0
  371. package/dist/styles-D9iYILpv.js +9195 -0
  372. package/dist/test/setup.d.ts +2 -3
  373. package/dist/test/setup.js +87 -4
  374. package/dist/test/setup.types.d.ts +7 -0
  375. package/dist/test/setup.types.js +1 -0
  376. package/dist/toArray-DGvPoJP_.js +11 -0
  377. package/dist/useBreakpoint-CAMzKscx.js +22 -0
  378. package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
  379. package/dist/useId-D2tzlufo.js +26 -0
  380. package/dist/useLocale-DWRfeMSS.js +16 -0
  381. package/dist/useMergedState-BoELfaU9.js +23 -0
  382. package/dist/useSize-CPo2bUE3.js +9 -0
  383. package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
  384. package/dist/useZIndex-D81lkWy4.js +44 -0
  385. package/dist/utils/icon-util.d.ts +2 -0
  386. package/dist/utils/icon-util.js +95 -0
  387. package/package.json +33 -14
  388. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  389. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  390. package/dist/Typography-aGoDUl4R.js +0 -710
  391. package/dist/index-BZAhCB_K.js +0 -97
  392. package/dist/index-CfDY25LP.js +0 -873
  393. package/dist/isVisible-A-IfeFoT.js +0 -367
  394. package/dist/providers/ThemeProvider.d.ts +0 -9
  395. package/dist/providers/ThemeProvider.js +0 -21
  396. package/dist/setup-BvfREoHl.js +0 -33891
  397. package/dist/useLocale-DT-z_vQ6.js +0 -16
  398. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  399. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  400. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  401. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  402. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  403. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  404. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  405. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  406. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  407. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  408. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  409. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  410. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  411. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  412. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  413. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  414. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  415. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,1651 @@
1
+ import { jsxs as J, Fragment as xn, jsx as z } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import y, { useContext as ae, useRef as Q, useMemo as $n, useEffect as me, useState as ne, createElement as En } from "react";
4
+ import "../../../providers/BreakpointThemeProvider.js";
5
+ import { u as On, a as Sn } from "../../../Typography-DqI7RslA.js";
6
+ import "../../../components/Avatar/styles.js";
7
+ import "../../../components/Badge/styles.js";
8
+ import "../../../components/Breadcrumb/styles.js";
9
+ import "../../../components/Button/styles.js";
10
+ import "../../../components/Card/styles.js";
11
+ import "../../../components/Checkbox/styles.js";
12
+ import "../../../components/ErrorBoundaryFallback/styles.js";
13
+ import "../../../components/Input/styles.js";
14
+ import "../../../components/Layout/Content/styles.js";
15
+ import "../../../components/Message/styles.js";
16
+ import "../../../components/Notification/NotificationBadge/styles.js";
17
+ import "../../../components/Notification/styles.js";
18
+ import { A as Le } from "../../../styles-BSD221S5.js";
19
+ import "../../../components/Progress/styles.js";
20
+ import "../../../components/Row/styles.js";
21
+ import "../../../components/Row/RowLabelValue/styles.js";
22
+ import "../../../components/Row/RowActions/styles.js";
23
+ import "../../../components/SegmentedControls/styles.js";
24
+ import "../../../components/Select/styles.js";
25
+ import "../../../components/Switch/styles.js";
26
+ import { a as fe } from "../../../styles-D9iYILpv.js";
27
+ import "../../../components/Tabs/styles.js";
28
+ import "../../../components/Tile/styles.js";
29
+ import "../../../components/Toast/styles.js";
30
+ import "../../../components/Tooltip/styles.js";
31
+ import "../../global-styles.js";
32
+ import { I as wn } from "../../../index-hoPiccJv.js";
33
+ import { d as q, e as D, _ as L, f as Ee, a as Ce, j as Oe, l as Se, c as Nn } from "../../../presets-Djh_L_6R.js";
34
+ import { I as Ae } from "../../../AntdIcon-nCNB0J1E.js";
35
+ import { R as Pn } from "../../../index-BTGF--50.js";
36
+ import { h as k, z as In, o as He, a as Tn, a0 as Ve, W as Mn, g as Rn, j as N, r as jn, k as Bn, m as zn, C as ce, e as pe, N as Dn, s as Fn, n as We, c as _n, a1 as Ln, F as Ge, a2 as An, l as Hn } from "../../../index-ByspLxrB.js";
37
+ import { g as Vn } from "../../../index-Dyl-ddV6.js";
38
+ import { R as Wn } from "../../../CheckCircleFilled-BKgizvyl.js";
39
+ import { R as Gn } from "../../../CloseCircleFilled-B9e7yFwo.js";
40
+ import { R as Kn } from "../../../ExclamationCircleFilled-BHELVsTg.js";
41
+ import { u as qn, z as Un, C as kn } from "../../../useZIndex-D81lkWy4.js";
42
+ import { i as Xn, P as Qn, g as se } from "../../../index-DWUXwgXK.js";
43
+ import { R as be } from "../../../CloseOutlined-ogxnm7Oy.js";
44
+ import { u as Zn } from "../../../useId-D2tzlufo.js";
45
+ import { K as we } from "../../../KeyCode-DM2sFh3-.js";
46
+ import { p as he } from "../../../pickAttrs-CleuMJFR.js";
47
+ import { C as Yn } from "../../../ContextIsolator-CwuJooYf.js";
48
+ import { u as Ke } from "../../../useCSSVarCls-C-MlZC6a.js";
49
+ import { S as Jn } from "../../../Skeleton-B3vg9CbL.js";
50
+ import { B as qe, c as et } from "../../../button-B2Rgggx2.js";
51
+ import { u as ye } from "../../../useLocale-DWRfeMSS.js";
52
+ import { g as nt } from "../../../styles-BDbHpHsc.js";
53
+ import { K as Ue } from "../../../Keyframes-sPZXYuXt.js";
54
+ import { i as tt } from "../../../index-CqqwGTME.js";
55
+ import "../../../index-DLdU7Tpd.js";
56
+ import { w as ot } from "../../../DownOutlined-5-15jS0h.js";
57
+ var rt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, at = function(n, o) {
58
+ return /* @__PURE__ */ l.createElement(Ae, q({}, n, {
59
+ ref: o,
60
+ icon: rt
61
+ }));
62
+ }, ke = /* @__PURE__ */ l.forwardRef(at);
63
+ process.env.NODE_ENV !== "production" && (ke.displayName = "InfoCircleFilled");
64
+ function lt() {
65
+ const [e, n] = l.useState([]), o = l.useCallback((t) => (n((r) => [].concat(k(r), [t])), () => {
66
+ n((r) => r.filter((i) => i !== t));
67
+ }), []);
68
+ return [e, o];
69
+ }
70
+ const it = new Ue("antFadeIn", {
71
+ "0%": {
72
+ opacity: 0
73
+ },
74
+ "100%": {
75
+ opacity: 1
76
+ }
77
+ }), st = new Ue("antFadeOut", {
78
+ "0%": {
79
+ opacity: 1
80
+ },
81
+ "100%": {
82
+ opacity: 0
83
+ }
84
+ }), ct = function(e) {
85
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
86
+ const {
87
+ antCls: o
88
+ } = e, t = `${o}-fade`, r = n ? "&" : "";
89
+ return [Xn(t, it, st, e.motionDurationMid, n), {
90
+ [`
91
+ ${r}${t}-enter,
92
+ ${r}${t}-appear
93
+ `]: {
94
+ opacity: 0,
95
+ animationTimingFunction: "linear"
96
+ },
97
+ [`${r}${t}-leave`]: {
98
+ animationTimingFunction: "linear"
99
+ }
100
+ }];
101
+ }, le = /* @__PURE__ */ y.createContext({}), {
102
+ Provider: Xe
103
+ } = le, Ne = () => {
104
+ const {
105
+ autoFocusButton: e,
106
+ cancelButtonProps: n,
107
+ cancelTextLocale: o,
108
+ isSilent: t,
109
+ mergedOkCancel: r,
110
+ rootPrefixCls: i,
111
+ close: d,
112
+ onCancel: c,
113
+ onConfirm: s
114
+ } = ae(le);
115
+ return r ? /* @__PURE__ */ y.createElement(Le, {
116
+ isSilent: t,
117
+ actionFn: c,
118
+ close: function() {
119
+ d == null || d.apply(void 0, arguments), s == null || s(!1);
120
+ },
121
+ autoFocus: e === "cancel",
122
+ buttonProps: n,
123
+ prefixCls: `${i}-btn`
124
+ }, o) : null;
125
+ }, Pe = () => {
126
+ const {
127
+ autoFocusButton: e,
128
+ close: n,
129
+ isSilent: o,
130
+ okButtonProps: t,
131
+ rootPrefixCls: r,
132
+ okTextLocale: i,
133
+ okType: d,
134
+ onConfirm: c,
135
+ onOk: s
136
+ } = ae(le);
137
+ return /* @__PURE__ */ y.createElement(Le, {
138
+ isSilent: o,
139
+ type: d || "primary",
140
+ actionFn: s,
141
+ close: function() {
142
+ n == null || n.apply(void 0, arguments), c == null || c(!0);
143
+ },
144
+ autoFocus: e === "ok",
145
+ buttonProps: t,
146
+ prefixCls: `${r}-btn`
147
+ }, i);
148
+ };
149
+ var Qe = /* @__PURE__ */ l.createContext({});
150
+ function Ie(e, n, o) {
151
+ var t = n;
152
+ return !t && o && (t = "".concat(e, "-").concat(o)), t;
153
+ }
154
+ function Te(e, n) {
155
+ var o = e["page".concat(n ? "Y" : "X", "Offset")], t = "scroll".concat(n ? "Top" : "Left");
156
+ if (typeof o != "number") {
157
+ var r = e.document;
158
+ o = r.documentElement[t], typeof o != "number" && (o = r.body[t]);
159
+ }
160
+ return o;
161
+ }
162
+ function dt(e) {
163
+ var n = e.getBoundingClientRect(), o = {
164
+ left: n.left,
165
+ top: n.top
166
+ }, t = e.ownerDocument, r = t.defaultView || t.parentWindow;
167
+ return o.left += Te(r), o.top += Te(r, !0), o;
168
+ }
169
+ const ut = /* @__PURE__ */ l.memo(function(e) {
170
+ var n = e.children;
171
+ return n;
172
+ }, function(e, n) {
173
+ var o = n.shouldUpdate;
174
+ return !o;
175
+ });
176
+ var ft = {
177
+ width: 0,
178
+ height: 0,
179
+ overflow: "hidden",
180
+ outline: "none"
181
+ }, mt = {
182
+ outline: "none"
183
+ }, ve = /* @__PURE__ */ y.forwardRef(function(e, n) {
184
+ var o = e.prefixCls, t = e.className, r = e.style, i = e.title, d = e.ariaId, c = e.footer, s = e.closable, m = e.closeIcon, a = e.onClose, f = e.children, u = e.bodyStyle, p = e.bodyProps, E = e.modalRender, C = e.onMouseDown, b = e.onMouseUp, v = e.holderRef, h = e.visible, P = e.forceRender, O = e.width, I = e.height, S = e.classNames, w = e.styles, A = y.useContext(Qe), B = A.panel, X = In(v, B), g = Q(), x = Q();
185
+ y.useImperativeHandle(n, function() {
186
+ return {
187
+ focus: function() {
188
+ var G;
189
+ (G = g.current) === null || G === void 0 || G.focus({
190
+ preventScroll: !0
191
+ });
192
+ },
193
+ changeActive: function(G) {
194
+ var oe = document, U = oe.activeElement;
195
+ G && U === x.current ? g.current.focus({
196
+ preventScroll: !0
197
+ }) : !G && U === g.current && x.current.focus({
198
+ preventScroll: !0
199
+ });
200
+ }
201
+ };
202
+ });
203
+ var $ = {};
204
+ O !== void 0 && ($.width = O), I !== void 0 && ($.height = I);
205
+ var j = c ? /* @__PURE__ */ y.createElement("div", {
206
+ className: D("".concat(o, "-footer"), S == null ? void 0 : S.footer),
207
+ style: L({}, w == null ? void 0 : w.footer)
208
+ }, c) : null, F = i ? /* @__PURE__ */ y.createElement("div", {
209
+ className: D("".concat(o, "-header"), S == null ? void 0 : S.header),
210
+ style: L({}, w == null ? void 0 : w.header)
211
+ }, /* @__PURE__ */ y.createElement("div", {
212
+ className: "".concat(o, "-title"),
213
+ id: d
214
+ }, i)) : null, T = $n(function() {
215
+ return Ee(s) === "object" && s !== null ? s : s ? {
216
+ closeIcon: m ?? /* @__PURE__ */ y.createElement("span", {
217
+ className: "".concat(o, "-close-x")
218
+ })
219
+ } : {};
220
+ }, [s, m, o]), R = he(T, !0), K = Ee(s) === "object" && s.disabled, te = s ? /* @__PURE__ */ y.createElement("button", q({
221
+ type: "button",
222
+ onClick: a,
223
+ "aria-label": "Close"
224
+ }, R, {
225
+ className: "".concat(o, "-close"),
226
+ disabled: K
227
+ }), T.closeIcon) : null, Z = /* @__PURE__ */ y.createElement("div", {
228
+ className: D("".concat(o, "-content"), S == null ? void 0 : S.content),
229
+ style: w == null ? void 0 : w.content
230
+ }, te, F, /* @__PURE__ */ y.createElement("div", q({
231
+ className: D("".concat(o, "-body"), S == null ? void 0 : S.body),
232
+ style: L(L({}, u), w == null ? void 0 : w.body)
233
+ }, p), f), j);
234
+ return /* @__PURE__ */ y.createElement("div", {
235
+ key: "dialog-element",
236
+ role: "dialog",
237
+ "aria-labelledby": i ? d : null,
238
+ "aria-modal": "true",
239
+ ref: X,
240
+ style: L(L({}, r), $),
241
+ className: D(o, t),
242
+ onMouseDown: C,
243
+ onMouseUp: b
244
+ }, /* @__PURE__ */ y.createElement("div", {
245
+ ref: g,
246
+ tabIndex: 0,
247
+ style: mt
248
+ }, /* @__PURE__ */ y.createElement(ut, {
249
+ shouldUpdate: h || P
250
+ }, E ? E(Z) : Z)), /* @__PURE__ */ y.createElement("div", {
251
+ tabIndex: 0,
252
+ ref: x,
253
+ style: ft
254
+ }));
255
+ });
256
+ process.env.NODE_ENV !== "production" && (ve.displayName = "Panel");
257
+ var Ze = /* @__PURE__ */ l.forwardRef(function(e, n) {
258
+ var o = e.prefixCls, t = e.title, r = e.style, i = e.className, d = e.visible, c = e.forceRender, s = e.destroyOnClose, m = e.motionName, a = e.ariaId, f = e.onVisibleChanged, u = e.mousePosition, p = Q(), E = l.useState(), C = Ce(E, 2), b = C[0], v = C[1], h = {};
259
+ b && (h.transformOrigin = b);
260
+ function P() {
261
+ var O = dt(p.current);
262
+ v(u && (u.x || u.y) ? "".concat(u.x - O.left, "px ").concat(u.y - O.top, "px") : "");
263
+ }
264
+ return /* @__PURE__ */ l.createElement(He, {
265
+ visible: d,
266
+ onVisibleChanged: f,
267
+ onAppearPrepare: P,
268
+ onEnterPrepare: P,
269
+ forceRender: c,
270
+ motionName: m,
271
+ removeOnLeave: s,
272
+ ref: p
273
+ }, function(O, I) {
274
+ var S = O.className, w = O.style;
275
+ return /* @__PURE__ */ l.createElement(ve, q({}, e, {
276
+ ref: n,
277
+ title: t,
278
+ ariaId: a,
279
+ prefixCls: o,
280
+ holderRef: I,
281
+ style: L(L(L({}, w), r), h),
282
+ className: D(i, S)
283
+ }));
284
+ });
285
+ });
286
+ Ze.displayName = "Content";
287
+ var gt = function(n) {
288
+ var o = n.prefixCls, t = n.style, r = n.visible, i = n.maskProps, d = n.motionName, c = n.className;
289
+ return /* @__PURE__ */ l.createElement(He, {
290
+ key: "mask",
291
+ visible: r,
292
+ motionName: d,
293
+ leavedClassName: "".concat(o, "-mask-hidden")
294
+ }, function(s, m) {
295
+ var a = s.className, f = s.style;
296
+ return /* @__PURE__ */ l.createElement("div", q({
297
+ ref: m,
298
+ style: L(L({}, f), t),
299
+ className: D("".concat(o, "-mask"), a, c)
300
+ }, i));
301
+ });
302
+ }, Ct = function(n) {
303
+ var o = n.prefixCls, t = o === void 0 ? "rc-dialog" : o, r = n.zIndex, i = n.visible, d = i === void 0 ? !1 : i, c = n.keyboard, s = c === void 0 ? !0 : c, m = n.focusTriggerAfterClose, a = m === void 0 ? !0 : m, f = n.wrapStyle, u = n.wrapClassName, p = n.wrapProps, E = n.onClose, C = n.afterOpenChange, b = n.afterClose, v = n.transitionName, h = n.animation, P = n.closable, O = P === void 0 ? !0 : P, I = n.mask, S = I === void 0 ? !0 : I, w = n.maskTransitionName, A = n.maskAnimation, B = n.maskClosable, X = B === void 0 ? !0 : B, g = n.maskStyle, x = n.maskProps, $ = n.rootClassName, j = n.classNames, F = n.styles;
304
+ process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(M) {
305
+ Oe(!(M in n), "".concat(M, " is deprecated, please use styles instead."));
306
+ }), "wrapClassName" in n && Oe(!1, "wrapClassName is deprecated, please use classNames instead."));
307
+ var T = Q(), R = Q(), K = Q(), te = l.useState(d), Z = Ce(te, 2), Y = Z[0], G = Z[1], oe = Zn();
308
+ function U() {
309
+ Se(R.current, document.activeElement) || (T.current = document.activeElement);
310
+ }
311
+ function de() {
312
+ if (!Se(R.current, document.activeElement)) {
313
+ var M;
314
+ (M = K.current) === null || M === void 0 || M.focus();
315
+ }
316
+ }
317
+ function H(M) {
318
+ if (M)
319
+ de();
320
+ else {
321
+ if (G(!1), S && T.current && a) {
322
+ try {
323
+ T.current.focus({
324
+ preventScroll: !0
325
+ });
326
+ } catch {
327
+ }
328
+ T.current = null;
329
+ }
330
+ Y && (b == null || b());
331
+ }
332
+ C == null || C(M);
333
+ }
334
+ function _(M) {
335
+ E == null || E(M);
336
+ }
337
+ var V = Q(!1), re = Q(), bn = function() {
338
+ clearTimeout(re.current), V.current = !0;
339
+ }, hn = function() {
340
+ re.current = setTimeout(function() {
341
+ V.current = !1;
342
+ });
343
+ }, $e = null;
344
+ X && ($e = function(ue) {
345
+ V.current ? V.current = !1 : R.current === ue.target && _(ue);
346
+ });
347
+ function yn(M) {
348
+ if (s && M.keyCode === we.ESC) {
349
+ M.stopPropagation(), _(M);
350
+ return;
351
+ }
352
+ d && M.keyCode === we.TAB && K.current.changeActive(!M.shiftKey);
353
+ }
354
+ me(function() {
355
+ d && (G(!0), U());
356
+ }, [d]), me(function() {
357
+ return function() {
358
+ clearTimeout(re.current);
359
+ };
360
+ }, []);
361
+ var vn = L(L(L({
362
+ zIndex: r
363
+ }, f), F == null ? void 0 : F.wrapper), {}, {
364
+ display: Y ? null : "none"
365
+ });
366
+ return /* @__PURE__ */ l.createElement("div", q({
367
+ className: D("".concat(t, "-root"), $)
368
+ }, he(n, {
369
+ data: !0
370
+ })), /* @__PURE__ */ l.createElement(gt, {
371
+ prefixCls: t,
372
+ visible: S && d,
373
+ motionName: Ie(t, w, A),
374
+ style: L(L({
375
+ zIndex: r
376
+ }, g), F == null ? void 0 : F.mask),
377
+ maskProps: x,
378
+ className: j == null ? void 0 : j.mask
379
+ }), /* @__PURE__ */ l.createElement("div", q({
380
+ tabIndex: -1,
381
+ onKeyDown: yn,
382
+ className: D("".concat(t, "-wrap"), u, j == null ? void 0 : j.wrapper),
383
+ ref: R,
384
+ onClick: $e,
385
+ style: vn
386
+ }, p), /* @__PURE__ */ l.createElement(Ze, q({}, n, {
387
+ onMouseDown: bn,
388
+ onMouseUp: hn,
389
+ ref: K,
390
+ closable: O,
391
+ ariaId: oe,
392
+ prefixCls: t,
393
+ visible: d && Y,
394
+ onClose: _,
395
+ onVisibleChanged: H,
396
+ motionName: Ie(t, v, h)
397
+ }))));
398
+ }, Ye = function(n) {
399
+ var o = n.visible, t = n.getContainer, r = n.forceRender, i = n.destroyOnClose, d = i === void 0 ? !1 : i, c = n.afterClose, s = n.panelRef, m = l.useState(o), a = Ce(m, 2), f = a[0], u = a[1], p = l.useMemo(function() {
400
+ return {
401
+ panel: s
402
+ };
403
+ }, [s]);
404
+ return l.useEffect(function() {
405
+ o && u(!0);
406
+ }, [o]), !r && d && !f ? null : /* @__PURE__ */ l.createElement(Qe.Provider, {
407
+ value: p
408
+ }, /* @__PURE__ */ l.createElement(Qn, {
409
+ open: o || r || f,
410
+ autoDestroy: !1,
411
+ getContainer: t,
412
+ autoLock: o || f
413
+ }, /* @__PURE__ */ l.createElement(Ct, q({}, n, {
414
+ destroyOnClose: d,
415
+ afterClose: function() {
416
+ c == null || c(), u(!1);
417
+ }
418
+ }))));
419
+ };
420
+ Ye.displayName = "Dialog";
421
+ function Me(e) {
422
+ if (e)
423
+ return {
424
+ closable: e.closable,
425
+ closeIcon: e.closeIcon
426
+ };
427
+ }
428
+ function Re(e) {
429
+ const {
430
+ closable: n,
431
+ closeIcon: o
432
+ } = e || {};
433
+ return y.useMemo(() => {
434
+ if (
435
+ // If `closable`, whatever rest be should be true
436
+ !n && (n === !1 || o === !1 || o === null)
437
+ )
438
+ return !1;
439
+ if (n === void 0 && o === void 0)
440
+ return null;
441
+ let t = {
442
+ closeIcon: typeof o != "boolean" && o !== null ? o : void 0
443
+ };
444
+ return n && typeof n == "object" && (t = Object.assign(Object.assign({}, t), n)), t;
445
+ }, [n, o]);
446
+ }
447
+ function je() {
448
+ const e = {};
449
+ for (var n = arguments.length, o = new Array(n), t = 0; t < n; t++)
450
+ o[t] = arguments[t];
451
+ return o.forEach((r) => {
452
+ r && Object.keys(r).forEach((i) => {
453
+ r[i] !== void 0 && (e[i] = r[i]);
454
+ });
455
+ }), e;
456
+ }
457
+ const pt = {};
458
+ function bt(e, n) {
459
+ let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : pt;
460
+ const t = Re(e), r = Re(n), i = typeof t != "boolean" ? !!(t != null && t.disabled) : !1, d = y.useMemo(() => Object.assign({
461
+ closeIcon: /* @__PURE__ */ y.createElement(be, null)
462
+ }, o), [o]), c = y.useMemo(() => t === !1 ? !1 : t ? je(d, r, t) : r === !1 ? !1 : r ? je(d, r) : d.closable ? d : !1, [t, r, d]);
463
+ return y.useMemo(() => {
464
+ if (c === !1)
465
+ return [!1, null, i];
466
+ const {
467
+ closeIconRender: s
468
+ } = d, {
469
+ closeIcon: m
470
+ } = c;
471
+ let a = m;
472
+ if (a != null) {
473
+ s && (a = s(m));
474
+ const f = he(c, !0);
475
+ Object.keys(f).length && (a = /* @__PURE__ */ y.isValidElement(a) ? /* @__PURE__ */ y.cloneElement(a, f) : /* @__PURE__ */ y.createElement("span", Object.assign({}, f), a));
476
+ }
477
+ return [!0, a, i];
478
+ }, [c, d]);
479
+ }
480
+ const ht = () => Nn() && window.document.documentElement;
481
+ function Be() {
482
+ }
483
+ const yt = /* @__PURE__ */ l.createContext({
484
+ add: Be,
485
+ remove: Be
486
+ });
487
+ function vt(e) {
488
+ const n = l.useContext(yt), o = l.useRef(null);
489
+ return Tn((r) => {
490
+ if (r) {
491
+ const i = e ? r.querySelector(e) : r;
492
+ n.add(i), o.current = i;
493
+ } else
494
+ n.remove(o.current);
495
+ });
496
+ }
497
+ const ze = () => {
498
+ const {
499
+ cancelButtonProps: e,
500
+ cancelTextLocale: n,
501
+ onCancel: o
502
+ } = ae(le);
503
+ return /* @__PURE__ */ y.createElement(qe, Object.assign({
504
+ onClick: o
505
+ }, e), n);
506
+ }, De = () => {
507
+ const {
508
+ confirmLoading: e,
509
+ okButtonProps: n,
510
+ okType: o,
511
+ okTextLocale: t,
512
+ onOk: r
513
+ } = ae(le);
514
+ return /* @__PURE__ */ y.createElement(qe, Object.assign({}, et(o), {
515
+ loading: e,
516
+ onClick: r
517
+ }, n), t);
518
+ };
519
+ function Je(e, n) {
520
+ return /* @__PURE__ */ y.createElement("span", {
521
+ className: `${e}-close-x`
522
+ }, n || /* @__PURE__ */ y.createElement(be, {
523
+ className: `${e}-close-icon`
524
+ }));
525
+ }
526
+ const en = (e) => {
527
+ const {
528
+ okText: n,
529
+ okType: o = "primary",
530
+ cancelText: t,
531
+ confirmLoading: r,
532
+ onOk: i,
533
+ onCancel: d,
534
+ okButtonProps: c,
535
+ cancelButtonProps: s,
536
+ footer: m
537
+ } = e, [a] = ye("Modal", Ve()), f = n || (a == null ? void 0 : a.okText), u = t || (a == null ? void 0 : a.cancelText), p = {
538
+ confirmLoading: r,
539
+ okButtonProps: c,
540
+ cancelButtonProps: s,
541
+ okTextLocale: f,
542
+ cancelTextLocale: u,
543
+ okType: o,
544
+ onOk: i,
545
+ onCancel: d
546
+ }, E = y.useMemo(() => p, k(Object.values(p)));
547
+ let C;
548
+ return typeof m == "function" || typeof m > "u" ? (C = /* @__PURE__ */ y.createElement(y.Fragment, null, /* @__PURE__ */ y.createElement(ze, null), /* @__PURE__ */ y.createElement(De, null)), typeof m == "function" && (C = m(C, {
549
+ OkBtn: De,
550
+ CancelBtn: ze
551
+ })), C = /* @__PURE__ */ y.createElement(Xe, {
552
+ value: E
553
+ }, C)) : C = m, /* @__PURE__ */ y.createElement(Mn, {
554
+ disabled: !1
555
+ }, C);
556
+ };
557
+ function Fe(e) {
558
+ return {
559
+ position: e,
560
+ inset: 0
561
+ };
562
+ }
563
+ const xt = (e) => {
564
+ const {
565
+ componentCls: n,
566
+ antCls: o
567
+ } = e;
568
+ return [{
569
+ [`${n}-root`]: {
570
+ [`${n}${o}-zoom-enter, ${n}${o}-zoom-appear`]: {
571
+ // reset scale avoid mousePosition bug
572
+ transform: "none",
573
+ opacity: 0,
574
+ animationDuration: e.motionDurationSlow,
575
+ // https://github.com/ant-design/ant-design/issues/11777
576
+ userSelect: "none"
577
+ },
578
+ // https://github.com/ant-design/ant-design/issues/37329
579
+ // https://github.com/ant-design/ant-design/issues/40272
580
+ [`${n}${o}-zoom-leave ${n}-content`]: {
581
+ pointerEvents: "none"
582
+ },
583
+ [`${n}-mask`]: Object.assign(Object.assign({}, Fe("fixed")), {
584
+ zIndex: e.zIndexPopupBase,
585
+ height: "100%",
586
+ backgroundColor: e.colorBgMask,
587
+ pointerEvents: "none",
588
+ [`${n}-hidden`]: {
589
+ display: "none"
590
+ }
591
+ }),
592
+ [`${n}-wrap`]: Object.assign(Object.assign({}, Fe("fixed")), {
593
+ zIndex: e.zIndexPopupBase,
594
+ overflow: "auto",
595
+ outline: 0,
596
+ WebkitOverflowScrolling: "touch"
597
+ })
598
+ }
599
+ }, {
600
+ [`${n}-root`]: ct(e)
601
+ }];
602
+ }, $t = (e) => {
603
+ const {
604
+ componentCls: n
605
+ } = e;
606
+ return [
607
+ // ======================== Root =========================
608
+ {
609
+ [`${n}-root`]: {
610
+ [`${n}-wrap-rtl`]: {
611
+ direction: "rtl"
612
+ },
613
+ [`${n}-centered`]: {
614
+ textAlign: "center",
615
+ "&::before": {
616
+ display: "inline-block",
617
+ width: 0,
618
+ height: "100%",
619
+ verticalAlign: "middle",
620
+ content: '""'
621
+ },
622
+ [n]: {
623
+ top: 0,
624
+ display: "inline-block",
625
+ paddingBottom: 0,
626
+ textAlign: "start",
627
+ verticalAlign: "middle"
628
+ }
629
+ },
630
+ [`@media (max-width: ${e.screenSMMax}px)`]: {
631
+ [n]: {
632
+ maxWidth: "calc(100vw - 16px)",
633
+ margin: `${N(e.marginXS)} auto`
634
+ },
635
+ [`${n}-centered`]: {
636
+ [n]: {
637
+ flex: 1
638
+ }
639
+ }
640
+ }
641
+ }
642
+ },
643
+ // ======================== Modal ========================
644
+ {
645
+ [n]: Object.assign(Object.assign({}, jn(e)), {
646
+ pointerEvents: "none",
647
+ position: "relative",
648
+ top: 100,
649
+ width: "auto",
650
+ maxWidth: `calc(100vw - ${N(e.calc(e.margin).mul(2).equal())})`,
651
+ margin: "0 auto",
652
+ paddingBottom: e.paddingLG,
653
+ [`${n}-title`]: {
654
+ margin: 0,
655
+ color: e.titleColor,
656
+ fontWeight: e.fontWeightStrong,
657
+ fontSize: e.titleFontSize,
658
+ lineHeight: e.titleLineHeight,
659
+ wordWrap: "break-word"
660
+ },
661
+ [`${n}-content`]: {
662
+ position: "relative",
663
+ backgroundColor: e.contentBg,
664
+ backgroundClip: "padding-box",
665
+ border: 0,
666
+ borderRadius: e.borderRadiusLG,
667
+ boxShadow: e.boxShadow,
668
+ pointerEvents: "auto",
669
+ padding: e.contentPadding
670
+ },
671
+ [`${n}-close`]: Object.assign({
672
+ position: "absolute",
673
+ top: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
674
+ insetInlineEnd: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
675
+ zIndex: e.calc(e.zIndexPopupBase).add(10).equal(),
676
+ padding: 0,
677
+ color: e.modalCloseIconColor,
678
+ fontWeight: e.fontWeightStrong,
679
+ lineHeight: 1,
680
+ textDecoration: "none",
681
+ background: "transparent",
682
+ borderRadius: e.borderRadiusSM,
683
+ width: e.modalCloseBtnSize,
684
+ height: e.modalCloseBtnSize,
685
+ border: 0,
686
+ outline: 0,
687
+ cursor: "pointer",
688
+ transition: `color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,
689
+ "&-x": {
690
+ display: "flex",
691
+ fontSize: e.fontSizeLG,
692
+ fontStyle: "normal",
693
+ lineHeight: N(e.modalCloseBtnSize),
694
+ justifyContent: "center",
695
+ textTransform: "none",
696
+ textRendering: "auto"
697
+ },
698
+ "&:disabled": {
699
+ pointerEvents: "none"
700
+ },
701
+ "&:hover": {
702
+ color: e.modalCloseIconHoverColor,
703
+ backgroundColor: e.colorBgTextHover,
704
+ textDecoration: "none"
705
+ },
706
+ "&:active": {
707
+ backgroundColor: e.colorBgTextActive
708
+ }
709
+ }, Bn(e)),
710
+ [`${n}-header`]: {
711
+ color: e.colorText,
712
+ background: e.headerBg,
713
+ borderRadius: `${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`,
714
+ marginBottom: e.headerMarginBottom,
715
+ padding: e.headerPadding,
716
+ borderBottom: e.headerBorderBottom
717
+ },
718
+ [`${n}-body`]: {
719
+ fontSize: e.fontSize,
720
+ lineHeight: e.lineHeight,
721
+ wordWrap: "break-word",
722
+ padding: e.bodyPadding,
723
+ [`${n}-body-skeleton`]: {
724
+ width: "100%",
725
+ height: "100%",
726
+ display: "flex",
727
+ justifyContent: "center",
728
+ alignItems: "center",
729
+ margin: `${N(e.margin)} auto`
730
+ }
731
+ },
732
+ [`${n}-footer`]: {
733
+ textAlign: "end",
734
+ background: e.footerBg,
735
+ marginTop: e.footerMarginTop,
736
+ padding: e.footerPadding,
737
+ borderTop: e.footerBorderTop,
738
+ borderRadius: e.footerBorderRadius,
739
+ [`> ${e.antCls}-btn + ${e.antCls}-btn`]: {
740
+ marginInlineStart: e.marginXS
741
+ }
742
+ },
743
+ [`${n}-open`]: {
744
+ overflow: "hidden"
745
+ }
746
+ })
747
+ },
748
+ // ======================== Pure =========================
749
+ {
750
+ [`${n}-pure-panel`]: {
751
+ top: "auto",
752
+ padding: 0,
753
+ display: "flex",
754
+ flexDirection: "column",
755
+ [`${n}-content,
756
+ ${n}-body,
757
+ ${n}-confirm-body-wrapper`]: {
758
+ display: "flex",
759
+ flexDirection: "column",
760
+ flex: "auto"
761
+ },
762
+ [`${n}-confirm-body`]: {
763
+ marginBottom: "auto"
764
+ }
765
+ }
766
+ }
767
+ ];
768
+ }, Et = (e) => {
769
+ const {
770
+ componentCls: n
771
+ } = e;
772
+ return {
773
+ [`${n}-root`]: {
774
+ [`${n}-wrap-rtl`]: {
775
+ direction: "rtl",
776
+ [`${n}-confirm-body`]: {
777
+ direction: "rtl"
778
+ }
779
+ }
780
+ }
781
+ };
782
+ }, Ot = (e) => {
783
+ const {
784
+ componentCls: n
785
+ } = e, o = nt(e);
786
+ delete o.xs;
787
+ const t = Object.keys(o).map((r) => ({
788
+ [`@media (min-width: ${N(o[r])})`]: {
789
+ width: `var(--${n.replace(".", "")}-${r}-width)`
790
+ }
791
+ }));
792
+ return {
793
+ [`${n}-root`]: {
794
+ [n]: [{
795
+ width: `var(--${n.replace(".", "")}-xs-width)`
796
+ }].concat(k(t))
797
+ }
798
+ };
799
+ }, nn = (e) => {
800
+ const n = e.padding, o = e.fontSizeHeading5, t = e.lineHeightHeading5;
801
+ return zn(e, {
802
+ modalHeaderHeight: e.calc(e.calc(t).mul(o).equal()).add(e.calc(n).mul(2).equal()).equal(),
803
+ modalFooterBorderColorSplit: e.colorSplit,
804
+ modalFooterBorderStyle: e.lineType,
805
+ modalFooterBorderWidth: e.lineWidth,
806
+ modalCloseIconColor: e.colorIcon,
807
+ modalCloseIconHoverColor: e.colorIconHover,
808
+ modalCloseBtnSize: e.controlHeight,
809
+ modalConfirmIconSize: e.fontHeight,
810
+ modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
811
+ });
812
+ }, tn = (e) => ({
813
+ footerBg: "transparent",
814
+ headerBg: e.colorBgElevated,
815
+ titleLineHeight: e.lineHeightHeading5,
816
+ titleFontSize: e.fontSizeHeading5,
817
+ contentBg: e.colorBgElevated,
818
+ titleColor: e.colorTextHeading,
819
+ // internal
820
+ contentPadding: e.wireframe ? 0 : `${N(e.paddingMD)} ${N(e.paddingContentHorizontalLG)}`,
821
+ headerPadding: e.wireframe ? `${N(e.padding)} ${N(e.paddingLG)}` : 0,
822
+ headerBorderBottom: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
823
+ headerMarginBottom: e.wireframe ? 0 : e.marginXS,
824
+ bodyPadding: e.wireframe ? e.paddingLG : 0,
825
+ footerPadding: e.wireframe ? `${N(e.paddingXS)} ${N(e.padding)}` : 0,
826
+ footerBorderTop: e.wireframe ? `${N(e.lineWidth)} ${e.lineType} ${e.colorSplit}` : "none",
827
+ footerBorderRadius: e.wireframe ? `0 0 ${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)}` : 0,
828
+ footerMarginTop: e.wireframe ? 0 : e.marginSM,
829
+ confirmBodyPadding: e.wireframe ? `${N(e.padding * 2)} ${N(e.padding * 2)} ${N(e.paddingLG)}` : 0,
830
+ confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
831
+ confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
832
+ }), on = Rn("Modal", (e) => {
833
+ const n = nn(e);
834
+ return [$t(n), Et(n), xt(n), tt(n, "zoom"), Ot(n)];
835
+ }, tn, {
836
+ unitless: {
837
+ titleLineHeight: !0
838
+ }
839
+ });
840
+ var St = function(e, n) {
841
+ var o = {};
842
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
843
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
844
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
845
+ return o;
846
+ };
847
+ let ge;
848
+ const wt = (e) => {
849
+ ge = {
850
+ x: e.pageX,
851
+ y: e.pageY
852
+ }, setTimeout(() => {
853
+ ge = null;
854
+ }, 100);
855
+ };
856
+ ht() && document.documentElement.addEventListener("click", wt, !0);
857
+ const rn = (e) => {
858
+ var n;
859
+ const {
860
+ getPopupContainer: o,
861
+ getPrefixCls: t,
862
+ direction: r,
863
+ modal: i
864
+ } = l.useContext(ce), d = (H) => {
865
+ const {
866
+ onCancel: _
867
+ } = e;
868
+ _ == null || _(H);
869
+ }, c = (H) => {
870
+ const {
871
+ onOk: _
872
+ } = e;
873
+ _ == null || _(H);
874
+ };
875
+ if (process.env.NODE_ENV !== "production") {
876
+ const H = pe("Modal");
877
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((_) => {
878
+ let [V, re] = _;
879
+ H.deprecated(!(V in e), V, re);
880
+ });
881
+ }
882
+ const {
883
+ prefixCls: s,
884
+ className: m,
885
+ rootClassName: a,
886
+ open: f,
887
+ wrapClassName: u,
888
+ centered: p,
889
+ getContainer: E,
890
+ focusTriggerAfterClose: C = !0,
891
+ style: b,
892
+ // Deprecated
893
+ visible: v,
894
+ width: h = 520,
895
+ footer: P,
896
+ classNames: O,
897
+ styles: I,
898
+ children: S,
899
+ loading: w
900
+ } = e, A = St(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), B = t("modal", s), X = t(), g = Ke(B), [x, $, j] = on(B, g), F = D(u, {
901
+ [`${B}-centered`]: !!p,
902
+ [`${B}-wrap-rtl`]: r === "rtl"
903
+ }), T = P !== null && !w ? /* @__PURE__ */ l.createElement(en, Object.assign({}, e, {
904
+ onOk: c,
905
+ onCancel: d
906
+ })) : null, [R, K, te] = bt(Me(e), Me(i), {
907
+ closable: !0,
908
+ closeIcon: /* @__PURE__ */ l.createElement(be, {
909
+ className: `${B}-close-icon`
910
+ }),
911
+ closeIconRender: (H) => Je(B, H)
912
+ }), Z = vt(`.${B}-content`), [Y, G] = qn("Modal", A.zIndex), [oe, U] = l.useMemo(() => h && typeof h == "object" ? [void 0, h] : [h, void 0], [h]), de = l.useMemo(() => {
913
+ const H = {};
914
+ return U && Object.keys(U).forEach((_) => {
915
+ const V = U[_];
916
+ V !== void 0 && (H[`--${B}-${_}-width`] = typeof V == "number" ? `${V}px` : V);
917
+ }), H;
918
+ }, [U]);
919
+ return x(/* @__PURE__ */ l.createElement(Yn, {
920
+ form: !0,
921
+ space: !0
922
+ }, /* @__PURE__ */ l.createElement(Un.Provider, {
923
+ value: G
924
+ }, /* @__PURE__ */ l.createElement(Ye, Object.assign({
925
+ width: oe
926
+ }, A, {
927
+ zIndex: Y,
928
+ getContainer: E === void 0 ? o : E,
929
+ prefixCls: B,
930
+ rootClassName: D($, a, j, g),
931
+ footer: T,
932
+ visible: f ?? v,
933
+ mousePosition: (n = A.mousePosition) !== null && n !== void 0 ? n : ge,
934
+ onClose: d,
935
+ closable: R && {
936
+ disabled: te,
937
+ closeIcon: K
938
+ },
939
+ closeIcon: K,
940
+ focusTriggerAfterClose: C,
941
+ transitionName: se(X, "zoom", e.transitionName),
942
+ maskTransitionName: se(X, "fade", e.maskTransitionName),
943
+ className: D($, m, i == null ? void 0 : i.className),
944
+ style: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.style), b), de),
945
+ classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), O), {
946
+ wrapper: D(F, O == null ? void 0 : O.wrapper)
947
+ }),
948
+ styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), I),
949
+ panelRef: Z
950
+ }), w ? /* @__PURE__ */ l.createElement(Jn, {
951
+ active: !0,
952
+ title: !1,
953
+ paragraph: {
954
+ rows: 4
955
+ },
956
+ className: `${B}-body-skeleton`
957
+ }) : S))));
958
+ }, Nt = (e) => {
959
+ const {
960
+ componentCls: n,
961
+ titleFontSize: o,
962
+ titleLineHeight: t,
963
+ modalConfirmIconSize: r,
964
+ fontSize: i,
965
+ lineHeight: d,
966
+ modalTitleHeight: c,
967
+ fontHeight: s,
968
+ confirmBodyPadding: m
969
+ } = e, a = `${n}-confirm`;
970
+ return {
971
+ [a]: {
972
+ "&-rtl": {
973
+ direction: "rtl"
974
+ },
975
+ [`${e.antCls}-modal-header`]: {
976
+ display: "none"
977
+ },
978
+ [`${a}-body-wrapper`]: Object.assign({}, Fn()),
979
+ [`&${n} ${n}-body`]: {
980
+ padding: m
981
+ },
982
+ // ====================== Body ======================
983
+ [`${a}-body`]: {
984
+ display: "flex",
985
+ flexWrap: "nowrap",
986
+ alignItems: "start",
987
+ [`> ${e.iconCls}`]: {
988
+ flex: "none",
989
+ fontSize: r,
990
+ marginInlineEnd: e.confirmIconMarginInlineEnd,
991
+ marginTop: e.calc(e.calc(s).sub(r).equal()).div(2).equal()
992
+ },
993
+ [`&-has-title > ${e.iconCls}`]: {
994
+ marginTop: e.calc(e.calc(c).sub(r).equal()).div(2).equal()
995
+ }
996
+ },
997
+ [`${a}-paragraph`]: {
998
+ display: "flex",
999
+ flexDirection: "column",
1000
+ flex: "auto",
1001
+ rowGap: e.marginXS,
1002
+ // https://github.com/ant-design/ant-design/issues/51912
1003
+ maxWidth: `calc(100% - ${N(e.marginSM)})`
1004
+ },
1005
+ // https://github.com/ant-design/ant-design/issues/48159
1006
+ [`${e.iconCls} + ${a}-paragraph`]: {
1007
+ maxWidth: `calc(100% - ${N(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`
1008
+ },
1009
+ [`${a}-title`]: {
1010
+ color: e.colorTextHeading,
1011
+ fontWeight: e.fontWeightStrong,
1012
+ fontSize: o,
1013
+ lineHeight: t
1014
+ },
1015
+ [`${a}-content`]: {
1016
+ color: e.colorText,
1017
+ fontSize: i,
1018
+ lineHeight: d
1019
+ },
1020
+ // ===================== Footer =====================
1021
+ [`${a}-btns`]: {
1022
+ textAlign: "end",
1023
+ marginTop: e.confirmBtnsMarginTop,
1024
+ [`${e.antCls}-btn + ${e.antCls}-btn`]: {
1025
+ marginBottom: 0,
1026
+ marginInlineStart: e.marginXS
1027
+ }
1028
+ }
1029
+ },
1030
+ [`${a}-error ${a}-body > ${e.iconCls}`]: {
1031
+ color: e.colorError
1032
+ },
1033
+ [`${a}-warning ${a}-body > ${e.iconCls},
1034
+ ${a}-confirm ${a}-body > ${e.iconCls}`]: {
1035
+ color: e.colorWarning
1036
+ },
1037
+ [`${a}-info ${a}-body > ${e.iconCls}`]: {
1038
+ color: e.colorInfo
1039
+ },
1040
+ [`${a}-success ${a}-body > ${e.iconCls}`]: {
1041
+ color: e.colorSuccess
1042
+ }
1043
+ };
1044
+ }, Pt = Dn(["Modal", "confirm"], (e) => {
1045
+ const n = nn(e);
1046
+ return [Nt(n)];
1047
+ }, tn, {
1048
+ // confirm is weak than modal since no conflict here
1049
+ order: -1e3
1050
+ });
1051
+ var It = function(e, n) {
1052
+ var o = {};
1053
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
1054
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
1055
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
1056
+ return o;
1057
+ };
1058
+ function an(e) {
1059
+ const {
1060
+ prefixCls: n,
1061
+ icon: o,
1062
+ okText: t,
1063
+ cancelText: r,
1064
+ confirmPrefixCls: i,
1065
+ type: d,
1066
+ okCancel: c,
1067
+ footer: s,
1068
+ // Legacy for static function usage
1069
+ locale: m
1070
+ } = e, a = It(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
1071
+ if (process.env.NODE_ENV !== "production") {
1072
+ const w = pe("Modal");
1073
+ process.env.NODE_ENV !== "production" && w(!(typeof o == "string" && o.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`);
1074
+ }
1075
+ let f = o;
1076
+ if (!o && o !== null)
1077
+ switch (d) {
1078
+ case "info":
1079
+ f = /* @__PURE__ */ l.createElement(ke, null);
1080
+ break;
1081
+ case "success":
1082
+ f = /* @__PURE__ */ l.createElement(Wn, null);
1083
+ break;
1084
+ case "error":
1085
+ f = /* @__PURE__ */ l.createElement(Gn, null);
1086
+ break;
1087
+ default:
1088
+ f = /* @__PURE__ */ l.createElement(Kn, null);
1089
+ }
1090
+ const u = c ?? d === "confirm", p = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [E] = ye("Modal"), C = m || E, b = t || (u ? C == null ? void 0 : C.okText : C == null ? void 0 : C.justOkText), v = r || (C == null ? void 0 : C.cancelText), h = Object.assign({
1091
+ autoFocusButton: p,
1092
+ cancelTextLocale: v,
1093
+ okTextLocale: b,
1094
+ mergedOkCancel: u
1095
+ }, a), P = l.useMemo(() => h, k(Object.values(h))), O = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ne, null), /* @__PURE__ */ l.createElement(Pe, null)), I = e.title !== void 0 && e.title !== null, S = `${i}-body`;
1096
+ return /* @__PURE__ */ l.createElement("div", {
1097
+ className: `${i}-body-wrapper`
1098
+ }, /* @__PURE__ */ l.createElement("div", {
1099
+ className: D(S, {
1100
+ [`${S}-has-title`]: I
1101
+ })
1102
+ }, f, /* @__PURE__ */ l.createElement("div", {
1103
+ className: `${i}-paragraph`
1104
+ }, I && /* @__PURE__ */ l.createElement("span", {
1105
+ className: `${i}-title`
1106
+ }, e.title), /* @__PURE__ */ l.createElement("div", {
1107
+ className: `${i}-content`
1108
+ }, e.content))), s === void 0 || typeof s == "function" ? /* @__PURE__ */ l.createElement(Xe, {
1109
+ value: P
1110
+ }, /* @__PURE__ */ l.createElement("div", {
1111
+ className: `${i}-btns`
1112
+ }, typeof s == "function" ? s(O, {
1113
+ OkBtn: Pe,
1114
+ CancelBtn: Ne
1115
+ }) : O)) : s, /* @__PURE__ */ l.createElement(Pt, {
1116
+ prefixCls: n
1117
+ }));
1118
+ }
1119
+ const ln = (e) => {
1120
+ const {
1121
+ close: n,
1122
+ zIndex: o,
1123
+ maskStyle: t,
1124
+ direction: r,
1125
+ prefixCls: i,
1126
+ wrapClassName: d,
1127
+ rootPrefixCls: c,
1128
+ bodyStyle: s,
1129
+ closable: m = !1,
1130
+ onConfirm: a,
1131
+ styles: f
1132
+ } = e;
1133
+ if (process.env.NODE_ENV !== "production") {
1134
+ const O = pe("Modal");
1135
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((I) => {
1136
+ let [S, w] = I;
1137
+ O.deprecated(!(S in e), S, w);
1138
+ });
1139
+ }
1140
+ const u = `${i}-confirm`, p = e.width || 416, E = e.style || {}, C = e.mask === void 0 ? !0 : e.mask, b = e.maskClosable === void 0 ? !1 : e.maskClosable, v = D(u, `${u}-${e.type}`, {
1141
+ [`${u}-rtl`]: r === "rtl"
1142
+ }, e.className), [, h] = _n(), P = l.useMemo(() => o !== void 0 ? o : h.zIndexPopupBase + kn, [o, h]);
1143
+ return /* @__PURE__ */ l.createElement(rn, Object.assign({}, e, {
1144
+ className: v,
1145
+ wrapClassName: D({
1146
+ [`${u}-centered`]: !!e.centered
1147
+ }, d),
1148
+ onCancel: () => {
1149
+ n == null || n({
1150
+ triggerCancel: !0
1151
+ }), a == null || a(!1);
1152
+ },
1153
+ title: "",
1154
+ footer: null,
1155
+ transitionName: se(c || "", "zoom", e.transitionName),
1156
+ maskTransitionName: se(c || "", "fade", e.maskTransitionName),
1157
+ mask: C,
1158
+ maskClosable: b,
1159
+ style: E,
1160
+ styles: Object.assign({
1161
+ body: s,
1162
+ mask: t
1163
+ }, f),
1164
+ width: p,
1165
+ zIndex: P,
1166
+ closable: m
1167
+ }), /* @__PURE__ */ l.createElement(an, Object.assign({}, e, {
1168
+ confirmPrefixCls: u
1169
+ })));
1170
+ }, xe = (e) => {
1171
+ const {
1172
+ rootPrefixCls: n,
1173
+ iconPrefixCls: o,
1174
+ direction: t,
1175
+ theme: r
1176
+ } = e;
1177
+ return /* @__PURE__ */ l.createElement(We, {
1178
+ prefixCls: n,
1179
+ iconPrefixCls: o,
1180
+ direction: t,
1181
+ theme: r
1182
+ }, /* @__PURE__ */ l.createElement(ln, Object.assign({}, e)));
1183
+ };
1184
+ process.env.NODE_ENV !== "production" && (ln.displayName = "ConfirmDialog", xe.displayName = "ConfirmDialogWrapper");
1185
+ const ee = [];
1186
+ let sn = "";
1187
+ function cn() {
1188
+ return sn;
1189
+ }
1190
+ const Tt = (e) => {
1191
+ var n, o;
1192
+ const {
1193
+ prefixCls: t,
1194
+ getContainer: r,
1195
+ direction: i
1196
+ } = e, d = Ve(), c = ae(ce), s = cn() || c.getPrefixCls(), m = t || `${s}-modal`;
1197
+ let a = r;
1198
+ return a === !1 && (a = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ y.createElement(xe, Object.assign({}, e, {
1199
+ rootPrefixCls: s,
1200
+ prefixCls: m,
1201
+ iconPrefixCls: c.iconPrefixCls,
1202
+ theme: c.theme,
1203
+ direction: i ?? c.direction,
1204
+ locale: (o = (n = c.locale) === null || n === void 0 ? void 0 : n.Modal) !== null && o !== void 0 ? o : d,
1205
+ getContainer: a
1206
+ }));
1207
+ };
1208
+ function ie(e) {
1209
+ const n = An();
1210
+ process.env.NODE_ENV !== "production" && !n.holderRender && Ln("Modal");
1211
+ const o = document.createDocumentFragment();
1212
+ let t = Object.assign(Object.assign({}, e), {
1213
+ close: s,
1214
+ open: !0
1215
+ }), r, i;
1216
+ function d() {
1217
+ for (var a, f = arguments.length, u = new Array(f), p = 0; p < f; p++)
1218
+ u[p] = arguments[p];
1219
+ if (u.some((b) => b == null ? void 0 : b.triggerCancel)) {
1220
+ var C;
1221
+ (a = e.onCancel) === null || a === void 0 || (C = a).call.apply(C, [e, () => {
1222
+ }].concat(k(u.slice(1))));
1223
+ }
1224
+ for (let b = 0; b < ee.length; b++)
1225
+ if (ee[b] === s) {
1226
+ ee.splice(b, 1);
1227
+ break;
1228
+ }
1229
+ i();
1230
+ }
1231
+ function c(a) {
1232
+ clearTimeout(r), r = setTimeout(() => {
1233
+ const f = n.getPrefixCls(void 0, cn()), u = n.getIconPrefixCls(), p = n.getTheme(), E = /* @__PURE__ */ y.createElement(Tt, Object.assign({}, a));
1234
+ i = Vn()(/* @__PURE__ */ y.createElement(We, {
1235
+ prefixCls: f,
1236
+ iconPrefixCls: u,
1237
+ theme: p
1238
+ }, n.holderRender ? n.holderRender(E) : E), o);
1239
+ });
1240
+ }
1241
+ function s() {
1242
+ for (var a = arguments.length, f = new Array(a), u = 0; u < a; u++)
1243
+ f[u] = arguments[u];
1244
+ t = Object.assign(Object.assign({}, t), {
1245
+ open: !1,
1246
+ afterClose: () => {
1247
+ typeof e.afterClose == "function" && e.afterClose(), d.apply(this, f);
1248
+ }
1249
+ }), t.visible && delete t.visible, c(t);
1250
+ }
1251
+ function m(a) {
1252
+ typeof a == "function" ? t = a(t) : t = Object.assign(Object.assign({}, t), a), c(t);
1253
+ }
1254
+ return c(t), ee.push(s), {
1255
+ destroy: s,
1256
+ update: m
1257
+ };
1258
+ }
1259
+ function dn(e) {
1260
+ return Object.assign(Object.assign({}, e), {
1261
+ type: "warning"
1262
+ });
1263
+ }
1264
+ function un(e) {
1265
+ return Object.assign(Object.assign({}, e), {
1266
+ type: "info"
1267
+ });
1268
+ }
1269
+ function fn(e) {
1270
+ return Object.assign(Object.assign({}, e), {
1271
+ type: "success"
1272
+ });
1273
+ }
1274
+ function mn(e) {
1275
+ return Object.assign(Object.assign({}, e), {
1276
+ type: "error"
1277
+ });
1278
+ }
1279
+ function gn(e) {
1280
+ return Object.assign(Object.assign({}, e), {
1281
+ type: "confirm"
1282
+ });
1283
+ }
1284
+ function Mt(e) {
1285
+ let {
1286
+ rootPrefixCls: n
1287
+ } = e;
1288
+ process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), sn = n;
1289
+ }
1290
+ var Rt = function(e, n) {
1291
+ var o = {};
1292
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
1293
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
1294
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
1295
+ return o;
1296
+ };
1297
+ const jt = (e, n) => {
1298
+ var o, {
1299
+ afterClose: t,
1300
+ config: r
1301
+ } = e, i = Rt(e, ["afterClose", "config"]);
1302
+ const [d, c] = l.useState(!0), [s, m] = l.useState(r), {
1303
+ direction: a,
1304
+ getPrefixCls: f
1305
+ } = l.useContext(ce), u = f("modal"), p = f(), E = () => {
1306
+ var h;
1307
+ t(), (h = s.afterClose) === null || h === void 0 || h.call(s);
1308
+ }, C = function() {
1309
+ var h;
1310
+ c(!1);
1311
+ for (var P = arguments.length, O = new Array(P), I = 0; I < P; I++)
1312
+ O[I] = arguments[I];
1313
+ if (O.some((A) => A == null ? void 0 : A.triggerCancel)) {
1314
+ var w;
1315
+ (h = s.onCancel) === null || h === void 0 || (w = h).call.apply(w, [s, () => {
1316
+ }].concat(k(O.slice(1))));
1317
+ }
1318
+ };
1319
+ l.useImperativeHandle(n, () => ({
1320
+ destroy: C,
1321
+ update: (h) => {
1322
+ m((P) => Object.assign(Object.assign({}, P), h));
1323
+ }
1324
+ }));
1325
+ const b = (o = s.okCancel) !== null && o !== void 0 ? o : s.type === "confirm", [v] = ye("Modal", Hn.Modal);
1326
+ return /* @__PURE__ */ l.createElement(xe, Object.assign({
1327
+ prefixCls: u,
1328
+ rootPrefixCls: p
1329
+ }, s, {
1330
+ close: C,
1331
+ open: d,
1332
+ afterClose: E,
1333
+ okText: s.okText || (b ? v == null ? void 0 : v.okText : v == null ? void 0 : v.justOkText),
1334
+ direction: s.direction || a,
1335
+ cancelText: s.cancelText || (v == null ? void 0 : v.cancelText)
1336
+ }, i));
1337
+ }, Bt = /* @__PURE__ */ l.forwardRef(jt);
1338
+ let _e = 0;
1339
+ const zt = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, n) => {
1340
+ const [o, t] = lt();
1341
+ return l.useImperativeHandle(n, () => ({
1342
+ patchElement: t
1343
+ }), []), /* @__PURE__ */ l.createElement(l.Fragment, null, o);
1344
+ }));
1345
+ function Dt() {
1346
+ const e = l.useRef(null), [n, o] = l.useState([]);
1347
+ l.useEffect(() => {
1348
+ n.length && (k(n).forEach((d) => {
1349
+ d();
1350
+ }), o([]));
1351
+ }, [n]);
1352
+ const t = l.useCallback((i) => function(c) {
1353
+ var s;
1354
+ _e += 1;
1355
+ const m = /* @__PURE__ */ l.createRef();
1356
+ let a;
1357
+ const f = new Promise((b) => {
1358
+ a = b;
1359
+ });
1360
+ let u = !1, p;
1361
+ const E = /* @__PURE__ */ l.createElement(Bt, {
1362
+ key: `modal-${_e}`,
1363
+ config: i(c),
1364
+ ref: m,
1365
+ afterClose: () => {
1366
+ p == null || p();
1367
+ },
1368
+ isSilent: () => u,
1369
+ onConfirm: (b) => {
1370
+ a(b);
1371
+ }
1372
+ });
1373
+ return p = (s = e.current) === null || s === void 0 ? void 0 : s.patchElement(E), p && ee.push(p), {
1374
+ destroy: () => {
1375
+ function b() {
1376
+ var v;
1377
+ (v = m.current) === null || v === void 0 || v.destroy();
1378
+ }
1379
+ m.current ? b() : o((v) => [].concat(k(v), [b]));
1380
+ },
1381
+ update: (b) => {
1382
+ function v() {
1383
+ var h;
1384
+ (h = m.current) === null || h === void 0 || h.update(b);
1385
+ }
1386
+ m.current ? v() : o((h) => [].concat(k(h), [v]));
1387
+ },
1388
+ then: (b) => (u = !0, f.then(b))
1389
+ };
1390
+ }, []);
1391
+ return [l.useMemo(() => ({
1392
+ info: t(un),
1393
+ success: t(fn),
1394
+ error: t(mn),
1395
+ warning: t(dn),
1396
+ confirm: t(gn)
1397
+ }), []), /* @__PURE__ */ l.createElement(zt, {
1398
+ key: "modal-holder",
1399
+ ref: e
1400
+ })];
1401
+ }
1402
+ var Ft = function(e, n) {
1403
+ var o = {};
1404
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
1405
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
1406
+ n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
1407
+ return o;
1408
+ };
1409
+ const _t = (e) => {
1410
+ const {
1411
+ prefixCls: n,
1412
+ className: o,
1413
+ closeIcon: t,
1414
+ closable: r,
1415
+ type: i,
1416
+ title: d,
1417
+ children: c,
1418
+ footer: s
1419
+ } = e, m = Ft(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
1420
+ getPrefixCls: a
1421
+ } = l.useContext(ce), f = a(), u = n || a("modal"), p = Ke(f), [E, C, b] = on(u, p), v = `${u}-confirm`;
1422
+ let h = {};
1423
+ return i ? h = {
1424
+ closable: r ?? !1,
1425
+ title: "",
1426
+ footer: "",
1427
+ children: /* @__PURE__ */ l.createElement(an, Object.assign({}, e, {
1428
+ prefixCls: u,
1429
+ confirmPrefixCls: v,
1430
+ rootPrefixCls: f,
1431
+ content: c
1432
+ }))
1433
+ } : h = {
1434
+ closable: r ?? !0,
1435
+ title: d,
1436
+ footer: s !== null && /* @__PURE__ */ l.createElement(en, Object.assign({}, e)),
1437
+ children: c
1438
+ }, E(/* @__PURE__ */ l.createElement(ve, Object.assign({
1439
+ prefixCls: u,
1440
+ className: D(C, `${u}-pure-panel`, i && v, i && `${v}-${i}`, o, b, p)
1441
+ }, m, {
1442
+ closeIcon: Je(u, t),
1443
+ closable: r
1444
+ }, h)));
1445
+ }, Lt = ot(_t);
1446
+ function Cn(e) {
1447
+ return ie(dn(e));
1448
+ }
1449
+ const W = rn;
1450
+ W.useModal = Dt;
1451
+ W.info = function(n) {
1452
+ return ie(un(n));
1453
+ };
1454
+ W.success = function(n) {
1455
+ return ie(fn(n));
1456
+ };
1457
+ W.error = function(n) {
1458
+ return ie(mn(n));
1459
+ };
1460
+ W.warning = Cn;
1461
+ W.warn = Cn;
1462
+ W.confirm = function(n) {
1463
+ return ie(gn(n));
1464
+ };
1465
+ W.destroyAll = function() {
1466
+ for (; ee.length; ) {
1467
+ const n = ee.pop();
1468
+ n && n();
1469
+ }
1470
+ };
1471
+ W.config = Mt;
1472
+ W._InternalPanelDoNotUseOrYouWillBeFired = Lt;
1473
+ process.env.NODE_ENV !== "production" && (W.displayName = "Modal");
1474
+ var At = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" }, Ht = function(n, o) {
1475
+ return /* @__PURE__ */ l.createElement(Ae, q({}, n, {
1476
+ ref: o,
1477
+ icon: At
1478
+ }));
1479
+ }, pn = /* @__PURE__ */ l.forwardRef(Ht);
1480
+ process.env.NODE_ENV !== "production" && (pn.displayName = "MinusOutlined");
1481
+ const Go = () => {
1482
+ const { theme: e } = On(), [n, o] = ne(!1), [t, r] = ne({ key: "", value: null }), [i, d] = ne([]), [c, s] = ne(""), [m, a] = ne(!0), [f, u] = ne([]);
1483
+ if (me(() => {
1484
+ e && u(O(e));
1485
+ }, [e]), !e)
1486
+ return null;
1487
+ const p = () => {
1488
+ d([]), a(!1);
1489
+ }, E = () => {
1490
+ console.log("resetting"), s(""), p(), u(O(e));
1491
+ }, C = (g, x) => {
1492
+ const $ = [], j = (F, T) => {
1493
+ for (const R of F)
1494
+ R.children && (R.children.some((K) => K.key === T) && $.push(R.key), j(R.children, T));
1495
+ };
1496
+ return j(x, g), $;
1497
+ }, b = (g, x) => {
1498
+ let $ = [];
1499
+ const j = (F) => {
1500
+ F.forEach((T) => {
1501
+ if (T.title.toLowerCase().includes(x.toLowerCase())) {
1502
+ $.push(T.key);
1503
+ const R = C(T.key, g);
1504
+ $ = [...$, ...R];
1505
+ }
1506
+ T.children && j(T.children);
1507
+ });
1508
+ };
1509
+ return j(g), [...new Set($)];
1510
+ }, v = (g) => {
1511
+ if (!g.trim()) {
1512
+ E();
1513
+ return;
1514
+ }
1515
+ if (g.length >= 3) {
1516
+ const x = O(e);
1517
+ u(x);
1518
+ const $ = b(x, g);
1519
+ d($), s(g), a(!0);
1520
+ } else
1521
+ p(), s(g);
1522
+ }, h = (g) => {
1523
+ d(g), a(!1);
1524
+ }, P = (g) => `${g}_${Math.floor(Math.random() * 1e5)}`, O = (g) => {
1525
+ const x = [];
1526
+ for (const $ in g)
1527
+ typeof g[$] == "object" ? x.push({
1528
+ title: $,
1529
+ originalKey: $,
1530
+ key: P($),
1531
+ children: O(g[$]),
1532
+ value: g[$]
1533
+ }) : x.push({
1534
+ title: $,
1535
+ originalKey: $,
1536
+ key: P($),
1537
+ value: g[$]
1538
+ });
1539
+ return x;
1540
+ }, I = O(e), S = (g) => {
1541
+ g.children || (r({
1542
+ key: g.originalKey || g.title,
1543
+ value: g.value
1544
+ }), o(!0));
1545
+ }, w = (g) => typeof g == "string" && g.startsWith("#") ? /* @__PURE__ */ J("p", { children: [
1546
+ /* @__PURE__ */ z("strong", { children: "Color:" }),
1547
+ " ",
1548
+ g,
1549
+ /* @__PURE__ */ z(
1550
+ "div",
1551
+ {
1552
+ style: {
1553
+ width: 100,
1554
+ height: 100,
1555
+ backgroundColor: g,
1556
+ borderWidth: 1,
1557
+ border: "1px solid #ccc",
1558
+ borderRadius: 4,
1559
+ marginTop: 8
1560
+ }
1561
+ }
1562
+ )
1563
+ ] }) : /* @__PURE__ */ J("p", { children: [
1564
+ /* @__PURE__ */ z("strong", { children: "Value:" }),
1565
+ " ",
1566
+ String(t.value)
1567
+ ] }), A = (g) => g.map((x) => {
1568
+ const $ = x.title.toLowerCase().indexOf(c.toLowerCase()), j = x.title.substring(0, $), F = x.title.substring($, $ + c.length), T = x.title.substring($ + c.length), R = $ > -1 ? /* @__PURE__ */ J("span", { children: [
1569
+ j,
1570
+ /* @__PURE__ */ z("span", { style: { color: "#f50" }, children: F }),
1571
+ T
1572
+ ] }) : /* @__PURE__ */ z("span", { children: x.title });
1573
+ return x.children ? /* @__PURE__ */ z(fe.TreeNode, { title: R, children: A(x.children) }, x.key) : /* @__PURE__ */ En(
1574
+ fe.TreeNode,
1575
+ {
1576
+ ...x,
1577
+ key: x.key,
1578
+ title: /* @__PURE__ */ z("span", { onClick: () => S(x), children: R })
1579
+ }
1580
+ );
1581
+ }), B = e.mode.charAt(0).toUpperCase() + e.mode.slice(1), X = (g) => {
1582
+ const x = g.target.value;
1583
+ s(x), x ? x.length < 3 && p() : E();
1584
+ };
1585
+ return /* @__PURE__ */ J(xn, { children: [
1586
+ /* @__PURE__ */ z("div", { style: { margin: "16px 0px" }, children: /* @__PURE__ */ J(Sn, { variant: "heading2", children: [
1587
+ B,
1588
+ " Mode"
1589
+ ] }) }),
1590
+ /* @__PURE__ */ z(
1591
+ wn.Search,
1592
+ {
1593
+ style: { marginBottom: 8 },
1594
+ placeholder: "Search token (min 3 characters)...",
1595
+ onSearch: v,
1596
+ allowClear: !0,
1597
+ onChange: X,
1598
+ value: c
1599
+ }
1600
+ ),
1601
+ /* @__PURE__ */ z(
1602
+ fe,
1603
+ {
1604
+ selectable: !1,
1605
+ expandedKeys: i,
1606
+ autoExpandParent: m,
1607
+ onExpand: h,
1608
+ switcherIcon: (g) => {
1609
+ const { expanded: x } = g;
1610
+ return x ? /* @__PURE__ */ z(pn, {}) : /* @__PURE__ */ z(Pn, {});
1611
+ },
1612
+ children: A(f.length > 0 ? f : I)
1613
+ }
1614
+ ),
1615
+ /* @__PURE__ */ z(
1616
+ W,
1617
+ {
1618
+ title: "Properties",
1619
+ open: n,
1620
+ onOk: () => o(!1),
1621
+ onCancel: () => o(!1),
1622
+ width: 300,
1623
+ children: /* @__PURE__ */ z(
1624
+ "div",
1625
+ {
1626
+ style: {
1627
+ display: "flex",
1628
+ flexDirection: "column",
1629
+ alignItems: "center",
1630
+ width: 250,
1631
+ padding: 16,
1632
+ borderRadius: 4,
1633
+ backgroundColor: "#f9f9f9"
1634
+ },
1635
+ children: /* @__PURE__ */ J("div", { children: [
1636
+ /* @__PURE__ */ z("div", { children: /* @__PURE__ */ J("p", { children: [
1637
+ /* @__PURE__ */ z("strong", { children: "Token:" }),
1638
+ " ",
1639
+ t.key
1640
+ ] }) }),
1641
+ /* @__PURE__ */ z("div", { children: w(t.value) })
1642
+ ] })
1643
+ }
1644
+ )
1645
+ }
1646
+ )
1647
+ ] });
1648
+ };
1649
+ export {
1650
+ Go as ThemeTree
1651
+ };