@gobolt/genesis 0.0.10 → 0.1.0

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