@trinityui/design-system 2.11.0 → 2.13.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 (518) hide show
  1. package/CHANGELOG.md +2209 -0
  2. package/CONTRIBUTING.md +180 -69
  3. package/LICENSE +21 -0
  4. package/MIGRATION.md +523 -21
  5. package/README.md +281 -120
  6. package/dist/IllustratedMessage.js +546 -1341
  7. package/dist/accessibility.d.ts +596 -18
  8. package/dist/accessibility.d.ts.map +1 -1
  9. package/dist/accessibility.js +458 -0
  10. package/dist/app-shell.js +17230 -9097
  11. package/dist/assets/index.d.ts +1 -1
  12. package/dist/charts.js +8507 -6059
  13. package/dist/color-contrast.d.ts +35 -0
  14. package/dist/color-contrast.d.ts.map +1 -0
  15. package/dist/commonjs-helpers.js +8 -0
  16. package/dist/component-color-references.d.ts +175 -0
  17. package/dist/component-color-references.d.ts.map +1 -0
  18. package/dist/components/AI/AIActions.d.ts +72 -12
  19. package/dist/components/AI/AIActions.d.ts.map +1 -1
  20. package/dist/components/AI/AIAvatar.d.ts +31 -3
  21. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  22. package/dist/components/AI/AIChainOfThought.d.ts +192 -72
  23. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  24. package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
  25. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
  26. package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
  27. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
  28. package/dist/components/AI/AIChat.d.ts +12 -0
  29. package/dist/components/AI/AIChat.d.ts.map +1 -1
  30. package/dist/components/AI/AIChatWelcome.d.ts +254 -0
  31. package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
  32. package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
  33. package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
  34. package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
  35. package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
  36. package/dist/components/AI/AIConfigContext.d.ts +100 -0
  37. package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
  38. package/dist/components/AI/AIConfigProvider.d.ts +66 -0
  39. package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
  40. package/dist/components/AI/AIContainer.d.ts +80 -11
  41. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  42. package/dist/components/AI/AIExplainability.d.ts +39 -5
  43. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  44. package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
  45. package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
  46. package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
  47. package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
  48. package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
  49. package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
  50. package/dist/components/AI/AILabel.d.ts +39 -6
  51. package/dist/components/AI/AILabel.d.ts.map +1 -1
  52. package/dist/components/AI/AIMessage.d.ts +337 -42
  53. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  54. package/dist/components/AI/AIPlanReview.d.ts +194 -0
  55. package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
  56. package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
  57. package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
  58. package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
  59. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  60. package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
  61. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  62. package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
  63. package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
  64. package/dist/components/AI/AIReviewItem.d.ts +142 -0
  65. package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
  66. package/dist/components/AI/AISourceChip.d.ts +135 -0
  67. package/dist/components/AI/AISourceChip.d.ts.map +1 -0
  68. package/dist/components/AI/AISources.d.ts +91 -13
  69. package/dist/components/AI/AISources.d.ts.map +1 -1
  70. package/dist/components/AI/AISourcesPanel.d.ts +43 -7
  71. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  72. package/dist/components/AI/AITextBlock.d.ts +107 -17
  73. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  74. package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
  75. package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
  76. package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
  77. package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
  78. package/dist/components/AI/AIVisuals.d.ts +92 -23
  79. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  80. package/dist/components/AI/AIVoiceInput.d.ts +42 -11
  81. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  82. package/dist/components/AI/AIVoiceMode.d.ts +16 -2
  83. package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
  84. package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
  85. package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
  86. package/dist/components/AI/ChatHeader.d.ts +41 -4
  87. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  88. package/dist/components/AI/ChatHistoryList.d.ts +25 -12
  89. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  90. package/dist/components/AI/ChatThread.d.ts +263 -13
  91. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  92. package/dist/components/AI/InThreadContext.d.ts +14 -0
  93. package/dist/components/AI/InThreadContext.d.ts.map +1 -0
  94. package/dist/components/AI/InsightEngine.d.ts +270 -46
  95. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  96. package/dist/components/AI/InsightEngineInput.d.ts +52 -5
  97. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  98. package/dist/components/AI/MessageActionButton.d.ts +72 -0
  99. package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
  100. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  101. package/dist/components/AI/UserAvatar.d.ts +50 -4
  102. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  103. package/dist/components/AI/UserMessage.d.ts +32 -3
  104. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  105. package/dist/components/AI/blockRendererContext.d.ts +64 -0
  106. package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
  107. package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
  108. package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
  109. package/dist/components/AI/index.d.ts +23 -6
  110. package/dist/components/AI/index.d.ts.map +1 -1
  111. package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
  112. package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
  113. package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
  114. package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
  115. package/dist/components/AI/strings/defaults.d.ts +31 -0
  116. package/dist/components/AI/strings/defaults.d.ts.map +1 -0
  117. package/dist/components/AI/tokens.d.ts +185 -20
  118. package/dist/components/AI/tokens.d.ts.map +1 -1
  119. package/dist/components/AI/types/hitl.d.ts +2294 -0
  120. package/dist/components/AI/types/hitl.d.ts.map +1 -0
  121. package/dist/components/AI/types/index.d.ts +2 -1
  122. package/dist/components/AI/types/index.d.ts.map +1 -1
  123. package/dist/components/AI/types/response.d.ts +428 -40
  124. package/dist/components/AI/types/response.d.ts.map +1 -1
  125. package/dist/components/AI/useBlockSources.d.ts +67 -0
  126. package/dist/components/AI/useBlockSources.d.ts.map +1 -0
  127. package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
  128. package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
  129. package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
  130. package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
  131. package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
  132. package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
  133. package/dist/components/AI/utils/blockReady.d.ts +54 -0
  134. package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
  135. package/dist/components/AI/utils/blocks.d.ts +28 -0
  136. package/dist/components/AI/utils/blocks.d.ts.map +1 -0
  137. package/dist/components/AI/utils/confidence.d.ts +182 -0
  138. package/dist/components/AI/utils/confidence.d.ts.map +1 -0
  139. package/dist/components/AI/utils/filters.d.ts +31 -0
  140. package/dist/components/AI/utils/filters.d.ts.map +1 -0
  141. package/dist/components/AI/utils/responseText.d.ts +8 -0
  142. package/dist/components/AI/utils/responseText.d.ts.map +1 -0
  143. package/dist/components/AI/utils/sources.d.ts +110 -0
  144. package/dist/components/AI/utils/sources.d.ts.map +1 -0
  145. package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
  146. package/dist/components/AIDigestCard/types.d.ts +42 -5
  147. package/dist/components/AIDigestCard/types.d.ts.map +1 -1
  148. package/dist/components/AppLayout/AIFab.d.ts +33 -6
  149. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  150. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  151. package/dist/components/AppLayout/AppLayout.d.ts +135 -7
  152. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  153. package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
  154. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  155. package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
  156. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  157. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
  158. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  159. package/dist/components/AppLayout/index.d.ts +3 -3
  160. package/dist/components/AppLayout/index.d.ts.map +1 -1
  161. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
  162. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
  163. package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
  164. package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
  165. package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
  166. package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
  167. package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
  168. package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
  169. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
  170. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
  171. package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
  172. package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
  173. package/dist/components/AuditDrawer/index.d.ts +1 -1
  174. package/dist/components/AuditDrawer/index.d.ts.map +1 -1
  175. package/dist/components/AuditDrawer/types.d.ts +39 -5
  176. package/dist/components/AuditDrawer/types.d.ts.map +1 -1
  177. package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
  178. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  179. package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
  180. package/dist/components/Carousel/Carousel.d.ts +10 -2
  181. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  182. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  183. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  184. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  185. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  186. package/dist/components/Charts/CustomLegend.d.ts +11 -2
  187. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  188. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  189. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  190. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  191. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  192. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  193. package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
  194. package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
  195. package/dist/components/Charts/highcharts.d.ts +23 -0
  196. package/dist/components/Charts/highcharts.d.ts.map +1 -0
  197. package/dist/components/Charts/highchartsUtils.d.ts +101 -6
  198. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  199. package/dist/components/Charts/index.d.ts +1 -1
  200. package/dist/components/Charts/index.d.ts.map +1 -1
  201. package/dist/components/Charts/tokens.d.ts +21 -0
  202. package/dist/components/Charts/tokens.d.ts.map +1 -1
  203. package/dist/components/Charts/types.d.ts +7 -7
  204. package/dist/components/Charts/types.d.ts.map +1 -1
  205. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  206. package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
  207. package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
  208. package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
  209. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  210. package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
  211. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  212. package/dist/components/Combobox/Combobox.d.ts +3 -2
  213. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  214. package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
  215. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  216. package/dist/components/CommandPalette/index.d.ts +1 -1
  217. package/dist/components/CommandPalette/index.d.ts.map +1 -1
  218. package/dist/components/CopyButton/CopyButton.d.ts +80 -0
  219. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
  220. package/dist/components/DataCard/DataCard.d.ts +11 -1
  221. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  222. package/dist/components/DataTable/CellRenderers.d.ts +8 -11
  223. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
  224. package/dist/components/DataTable/DataTable.d.ts +1 -1
  225. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  226. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
  227. package/dist/components/DataTable/columnContext.d.ts +8 -0
  228. package/dist/components/DataTable/columnContext.d.ts.map +1 -0
  229. package/dist/components/DataTable/index.d.ts +2 -2
  230. package/dist/components/DataTable/index.d.ts.map +1 -1
  231. package/dist/components/DataTable/labels.d.ts +13 -0
  232. package/dist/components/DataTable/labels.d.ts.map +1 -0
  233. package/dist/components/DataTable/types.d.ts +34 -0
  234. package/dist/components/DataTable/types.d.ts.map +1 -1
  235. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  236. package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
  237. package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
  238. package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
  239. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  240. package/dist/components/Disclosure/Disclosure.d.ts +83 -0
  241. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
  242. package/dist/components/DockLayout/DockLayout.d.ts +58 -0
  243. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  244. package/dist/components/DockLayout/index.d.ts +1 -1
  245. package/dist/components/DockLayout/index.d.ts.map +1 -1
  246. package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
  247. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
  248. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
  249. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
  250. package/dist/components/FileUpload/FileUpload.d.ts +141 -6
  251. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  252. package/dist/components/FileUpload/index.d.ts +1 -1
  253. package/dist/components/FileUpload/index.d.ts.map +1 -1
  254. package/dist/components/FilterBar/FilterBar.d.ts +27 -1
  255. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  256. package/dist/components/FilterBar/index.d.ts +1 -1
  257. package/dist/components/FilterBar/index.d.ts.map +1 -1
  258. package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
  259. package/dist/components/GanttView/GanttView.d.ts +24 -0
  260. package/dist/components/GanttView/GanttView.d.ts.map +1 -1
  261. package/dist/components/GanttView/types.d.ts +33 -7
  262. package/dist/components/GanttView/types.d.ts.map +1 -1
  263. package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
  264. package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
  265. package/dist/components/GaugeCard/geometry.d.ts +59 -0
  266. package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
  267. package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
  268. package/dist/components/GeoStatusMap/types.d.ts +8 -5
  269. package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
  270. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  271. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  272. package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
  273. package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
  274. package/dist/components/HtmlToMui/HtmlToMui.d.ts +32 -2
  275. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
  276. package/dist/components/Icon.d.ts +567 -10
  277. package/dist/components/Icon.d.ts.map +1 -1
  278. package/dist/components/IllustratedMessage.d.ts +52 -3
  279. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  280. package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
  281. package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  282. package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
  283. package/dist/components/InsightCard/types.d.ts +10 -3
  284. package/dist/components/InsightCard/types.d.ts.map +1 -1
  285. package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
  286. package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
  287. package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
  288. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
  289. package/dist/components/LandingPage/LandingPage.d.ts +43 -4
  290. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  291. package/dist/components/LandingPage/heroTone.d.ts +54 -0
  292. package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
  293. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  294. package/dist/components/MetaChip/MetaChip.d.ts +113 -0
  295. package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
  296. package/dist/components/Modal/Modal.d.ts +222 -20
  297. package/dist/components/Modal/Modal.d.ts.map +1 -1
  298. package/dist/components/Modal/index.d.ts +1 -1
  299. package/dist/components/Modal/index.d.ts.map +1 -1
  300. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  301. package/dist/components/OrgChart/OrgChart.d.ts +5 -0
  302. package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
  303. package/dist/components/OrgChart/types.d.ts +31 -7
  304. package/dist/components/OrgChart/types.d.ts.map +1 -1
  305. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  306. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  307. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  308. package/dist/components/PageTOC/PageTOC.d.ts +2 -1
  309. package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
  310. package/dist/components/Popper/Popper.d.ts +80 -9
  311. package/dist/components/Popper/Popper.d.ts.map +1 -1
  312. package/dist/components/Popper/index.d.ts +1 -1
  313. package/dist/components/Popper/index.d.ts.map +1 -1
  314. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
  315. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  316. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
  317. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
  318. package/dist/components/SearchInput/SearchInput.d.ts +49 -0
  319. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  320. package/dist/components/SearchInput/index.d.ts +1 -1
  321. package/dist/components/SearchInput/index.d.ts.map +1 -1
  322. package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
  323. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  324. package/dist/components/SplitPane/SplitPane.d.ts +2 -1
  325. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  326. package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
  327. package/dist/components/StatusIndicator/Badge.d.ts +6 -1
  328. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
  329. package/dist/components/StatusIndicator/Chip.d.ts +3 -1
  330. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
  331. package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
  332. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
  333. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  334. package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
  335. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  336. package/dist/components/StatusIndicator/index.d.ts +2 -2
  337. package/dist/components/StatusIndicator/index.d.ts.map +1 -1
  338. package/dist/components/StatusIndicator/types.d.ts +48 -1
  339. package/dist/components/StatusIndicator/types.d.ts.map +1 -1
  340. package/dist/components/StepList/StepList.d.ts +80 -0
  341. package/dist/components/StepList/StepList.d.ts.map +1 -0
  342. package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
  343. package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
  344. package/dist/components/StepList/stepStatus.d.ts +30 -0
  345. package/dist/components/StepList/stepStatus.d.ts.map +1 -0
  346. package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
  347. package/dist/components/Timeline/Timeline.d.ts +57 -3
  348. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  349. package/dist/components/Timeline/index.d.ts +1 -1
  350. package/dist/components/Timeline/index.d.ts.map +1 -1
  351. package/dist/components/Timeline/timelineLabels.d.ts +70 -0
  352. package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
  353. package/dist/components/Toast/Toast.d.ts.map +1 -1
  354. package/dist/components/TopNavHeader.d.ts +6 -0
  355. package/dist/components/TopNavHeader.d.ts.map +1 -1
  356. package/dist/components/TopNavWithSidebar.d.ts +49 -1
  357. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  358. package/dist/components/Tour/Tour.d.ts +18 -1
  359. package/dist/components/Tour/Tour.d.ts.map +1 -1
  360. package/dist/components/TransferList/TransferList.d.ts +123 -4
  361. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  362. package/dist/components/TransferList/index.d.ts +1 -1
  363. package/dist/components/TransferList/index.d.ts.map +1 -1
  364. package/dist/components/TreeView/TreeView.d.ts +97 -8
  365. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  366. package/dist/components/TreeView/index.d.ts +1 -1
  367. package/dist/components/TreeView/index.d.ts.map +1 -1
  368. package/dist/components/TrinityLoader.d.ts.map +1 -1
  369. package/dist/components/icons/featherExtensions.d.ts +55 -0
  370. package/dist/components/icons/featherExtensions.d.ts.map +1 -0
  371. package/dist/components/icons/materialExtensions.d.ts +20 -0
  372. package/dist/components/icons/materialExtensions.d.ts.map +1 -0
  373. package/dist/components/internal/index.d.ts +87 -0
  374. package/dist/components/internal/index.d.ts.map +1 -1
  375. package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
  376. package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
  377. package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
  378. package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
  379. package/dist/components/navigation/components.d.ts +6 -0
  380. package/dist/components/navigation/components.d.ts.map +1 -1
  381. package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
  382. package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
  383. package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
  384. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
  385. package/dist/components/shared/bidi.d.ts +44 -0
  386. package/dist/components/shared/bidi.d.ts.map +1 -0
  387. package/dist/components/shared/bidiText.d.ts +25 -0
  388. package/dist/components/shared/bidiText.d.ts.map +1 -0
  389. package/dist/components/shared/containerQueries.d.ts +73 -0
  390. package/dist/components/shared/containerQueries.d.ts.map +1 -0
  391. package/dist/components/shared/createStringsContext.d.ts +69 -0
  392. package/dist/components/shared/createStringsContext.d.ts.map +1 -0
  393. package/dist/components/shared/direction.d.ts +46 -0
  394. package/dist/components/shared/direction.d.ts.map +1 -0
  395. package/dist/components/shared/focusTrap.d.ts +36 -0
  396. package/dist/components/shared/focusTrap.d.ts.map +1 -0
  397. package/dist/components/shared/getInitials.d.ts +29 -0
  398. package/dist/components/shared/getInitials.d.ts.map +1 -0
  399. package/dist/components/shared/headingLevel.d.ts +69 -0
  400. package/dist/components/shared/headingLevel.d.ts.map +1 -0
  401. package/dist/components/shared/mergeSlotProps.d.ts +50 -0
  402. package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
  403. package/dist/components/shared/mergeSx.d.ts +26 -0
  404. package/dist/components/shared/mergeSx.d.ts.map +1 -0
  405. package/dist/components/shared/motion.d.ts +110 -0
  406. package/dist/components/shared/motion.d.ts.map +1 -0
  407. package/dist/components/shared/occurrenceKeys.d.ts +23 -0
  408. package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
  409. package/dist/components/shared/primaryAction.d.ts +89 -0
  410. package/dist/components/shared/primaryAction.d.ts.map +1 -0
  411. package/dist/components/shared/resizeKeyboard.d.ts +68 -0
  412. package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
  413. package/dist/components/shared/rootProps.d.ts +117 -0
  414. package/dist/components/shared/rootProps.d.ts.map +1 -0
  415. package/dist/components/shared/safeContent.d.ts +136 -0
  416. package/dist/components/shared/safeContent.d.ts.map +1 -0
  417. package/dist/components/shared/targetSize.d.ts +64 -0
  418. package/dist/components/shared/targetSize.d.ts.map +1 -0
  419. package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
  420. package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
  421. package/dist/components/shared/useCopyAction.d.ts +35 -0
  422. package/dist/components/shared/useCopyAction.d.ts.map +1 -0
  423. package/dist/components/shared/useOverflow.d.ts +44 -0
  424. package/dist/components/shared/useOverflow.d.ts.map +1 -0
  425. package/dist/components/shared/useResizable.d.ts +106 -7
  426. package/dist/components/shared/useResizable.d.ts.map +1 -1
  427. package/dist/components/shared/warnDeprecated.d.ts +89 -15
  428. package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
  429. package/dist/components/shared/zIndexRoles.d.ts +62 -0
  430. package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
  431. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
  432. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
  433. package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
  434. package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
  435. package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
  436. package/dist/components/templates/Auth/types.d.ts +4 -1
  437. package/dist/components/templates/Auth/types.d.ts.map +1 -1
  438. package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
  439. package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
  440. package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
  441. package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
  442. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
  443. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  444. package/dist/components/templates/ListDetail/index.d.ts +1 -1
  445. package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
  446. package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
  447. package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
  448. package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
  449. package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
  450. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  451. package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
  452. package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
  453. package/dist/components/templates/index.d.ts +2 -1
  454. package/dist/components/templates/index.d.ts.map +1 -1
  455. package/dist/data-table.d.ts +1 -1
  456. package/dist/data-table.d.ts.map +1 -1
  457. package/dist/data-table.js +1 -0
  458. package/dist/data-table2.js +13522 -13465
  459. package/dist/data.js +213 -194
  460. package/dist/elk.bundled.js +47371 -0
  461. package/dist/essentials.d.ts +3 -3
  462. package/dist/essentials.d.ts.map +1 -1
  463. package/dist/essentials.js +179 -147
  464. package/dist/focus-on-replace.js +49 -0
  465. package/dist/form.d.ts +26 -4
  466. package/dist/form.d.ts.map +1 -1
  467. package/dist/forms.js +575 -483
  468. package/dist/foundation.js +3704 -0
  469. package/dist/hooks/storageStore.d.ts +51 -0
  470. package/dist/hooks/storageStore.d.ts.map +1 -0
  471. package/dist/hooks/useAsyncAction.d.ts +65 -0
  472. package/dist/hooks/useAsyncAction.d.ts.map +1 -0
  473. package/dist/hooks/useDisclosure.d.ts +190 -0
  474. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  475. package/dist/hooks/useFocusOnReplace.d.ts +95 -0
  476. package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
  477. package/dist/hooks/useTrinityPalette.d.ts +38 -40
  478. package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
  479. package/dist/hooks.d.ts +44 -6
  480. package/dist/hooks.d.ts.map +1 -1
  481. package/dist/hooks.js +301 -0
  482. package/dist/index.d.ts +71 -26
  483. package/dist/index.d.ts.map +1 -1
  484. package/dist/index.js +13923 -60619
  485. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
  486. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
  487. package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
  488. package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
  489. package/dist/patterns/index.d.ts +15 -0
  490. package/dist/patterns/index.d.ts.map +1 -0
  491. package/dist/presets/analytics.d.ts +8 -1
  492. package/dist/presets/analytics.d.ts.map +1 -1
  493. package/dist/presets/crm.d.ts +8 -1
  494. package/dist/presets/crm.d.ts.map +1 -1
  495. package/dist/presets/index.d.ts +1 -1
  496. package/dist/presets/portal.d.ts +8 -1
  497. package/dist/presets/portal.d.ts.map +1 -1
  498. package/dist/safe-content.js +792 -0
  499. package/dist/theme-augmentation.d.ts +388 -0
  500. package/dist/theme-augmentation.d.ts.map +1 -0
  501. package/dist/theme.d.ts +116 -30
  502. package/dist/theme.d.ts.map +1 -1
  503. package/dist/theme.js +891 -436
  504. package/dist/token-color.d.ts +14 -0
  505. package/dist/token-color.d.ts.map +1 -0
  506. package/dist/token-merge.d.ts +56 -0
  507. package/dist/token-merge.d.ts.map +1 -0
  508. package/dist/token-serialization.d.ts +65 -0
  509. package/dist/token-serialization.d.ts.map +1 -0
  510. package/dist/tokens.d.ts +882 -13
  511. package/dist/tokens.d.ts.map +1 -1
  512. package/dist/tokens.js +21 -19
  513. package/dist/trinity.css +1077 -414
  514. package/package.json +111 -90
  515. package/dist/components/index.d.ts +0 -145
  516. package/dist/components/index.d.ts.map +0 -1
  517. package/dist/components/shared.d.ts +0 -92
  518. package/dist/components/shared.d.ts.map +0 -1
@@ -1,952 +1,128 @@
1
- import { jsx as e, jsxs as f, Fragment as re } from "react/jsx-runtime";
2
- import M, { useState as O, useCallback as I, useRef as oe, createContext as ne, useContext as le } from "react";
3
- import { Stack as P, Typography as S, Badge as ce, Box as C, Chip as ae, useTheme as se, Dialog as de, DialogTitle as he, IconButton as ge, DialogContent as fe, DialogContentText as ue, DialogActions as pe, Button as E, CircularProgress as xe, Portal as ye, Snackbar as me, Alert as we, AlertTitle as be, Slide as ke, Fade as ve, Grow as Se, Link as U } from "@mui/material";
4
- import { s as W, I as B, b as d } from "./app-shell.js";
5
- import Ce from "@mui/icons-material/Close";
6
- import Le from "@mui/icons-material/CheckCircle";
7
- import We from "@mui/icons-material/Error";
8
- import Ie from "@mui/icons-material/Warning";
9
- import ze from "@mui/icons-material/Info";
10
- import De from "@mui/icons-material/HelpOutlined";
11
- const a = W.colors.indicator, z = {
12
- // High Attention - Red
13
- error: {
14
- color: a.error.fg,
15
- backgroundColor: a.error.bg,
16
- icon: "error",
17
- shape: "circle",
18
- severity: "high",
19
- label: "Error"
20
- },
21
- critical: {
22
- color: a.critical.fg,
23
- backgroundColor: a.critical.bg,
24
- icon: "warning",
25
- shape: "hexagon",
26
- severity: "high",
27
- label: "Critical"
28
- },
29
- failed: {
30
- color: a.failed.fg,
31
- backgroundColor: a.failed.bg,
32
- icon: "close",
33
- shape: "circle",
34
- severity: "high",
35
- label: "Failed"
36
- },
37
- rejected: {
38
- color: a.rejected.fg,
39
- backgroundColor: a.rejected.bg,
40
- icon: "close",
41
- shape: "circle",
42
- severity: "high",
43
- label: "Rejected"
44
- },
45
- cancelled: {
46
- color: a.cancelled.fg,
47
- backgroundColor: a.cancelled.bg,
48
- icon: "close",
49
- shape: "circle",
50
- severity: "neutral",
51
- label: "Cancelled"
52
- },
53
- // Medium Attention - Orange/Yellow
54
- warning: {
55
- color: a.warning.fg,
56
- backgroundColor: a.warning.bg,
57
- outlineColor: a.warning.outline,
58
- icon: "warning",
59
- shape: "triangle",
60
- severity: "medium",
61
- label: "Warning"
62
- },
63
- caution: {
64
- color: a.caution.fg,
65
- backgroundColor: a.caution.bg,
66
- outlineColor: a.caution.outline,
67
- icon: "warning",
68
- shape: "triangle",
69
- severity: "medium",
70
- label: "Caution"
71
- },
72
- pending: {
73
- color: a.pending.fg,
74
- backgroundColor: a.pending.bg,
75
- outlineColor: a.pending.outline,
76
- icon: "clock",
77
- shape: "circle",
78
- severity: "medium",
79
- label: "Pending"
80
- },
81
- "in-progress": {
82
- color: a.inProgress.fg,
83
- backgroundColor: a.inProgress.bg,
84
- icon: "refresh",
85
- shape: "circle",
86
- severity: "medium",
87
- label: "In Progress"
88
- },
89
- running: {
90
- color: a.running.fg,
91
- backgroundColor: a.running.bg,
92
- icon: "play",
93
- shape: "circle",
94
- severity: "medium",
95
- label: "Running"
96
- },
97
- // Low Attention - Green
98
- success: {
99
- color: a.success.fg,
100
- backgroundColor: a.success.bg,
101
- icon: "check-circle",
102
- shape: "circle",
103
- severity: "low",
104
- label: "Success"
105
- },
106
- complete: {
107
- color: a.complete.fg,
108
- backgroundColor: a.complete.bg,
109
- icon: "check",
110
- shape: "circle",
111
- severity: "low",
112
- label: "Complete"
113
- },
114
- approved: {
115
- color: a.approved.fg,
116
- backgroundColor: a.approved.bg,
117
- icon: "check-circle",
118
- shape: "circle",
119
- severity: "low",
120
- label: "Approved"
121
- },
122
- active: {
123
- color: a.active.fg,
124
- backgroundColor: a.active.bg,
125
- icon: "check",
126
- shape: "circle",
127
- severity: "low",
128
- label: "Active"
129
- },
130
- enabled: {
131
- color: a.enabled.fg,
132
- backgroundColor: a.enabled.bg,
133
- icon: "check",
134
- shape: "circle",
135
- severity: "low",
136
- label: "Enabled"
137
- },
138
- // Informational - Blue
139
- info: {
140
- color: a.info.fg,
141
- backgroundColor: a.info.bg,
142
- icon: "info",
143
- shape: "circle",
144
- severity: "info",
145
- label: "Info"
146
- },
147
- new: {
148
- color: a.new.fg,
149
- backgroundColor: a.new.bg,
150
- icon: "star",
151
- shape: "circle",
152
- severity: "info",
153
- label: "New"
154
- },
155
- updated: {
156
- color: a.updated.fg,
157
- backgroundColor: a.updated.bg,
158
- icon: "refresh",
159
- shape: "circle",
160
- severity: "info",
161
- label: "Updated"
162
- },
163
- // Neutral - Gray
164
- draft: {
165
- color: a.draft.fg,
166
- backgroundColor: a.draft.bg,
167
- icon: "edit",
168
- shape: "circle",
169
- severity: "neutral",
170
- label: "Draft"
171
- },
172
- inactive: {
173
- color: a.inactive.fg,
174
- backgroundColor: a.inactive.bg,
175
- icon: "remove",
176
- shape: "circle",
177
- severity: "neutral",
178
- label: "Inactive"
179
- },
180
- disabled: {
181
- color: a.disabled.fg,
182
- backgroundColor: a.disabled.bg,
183
- icon: "close",
184
- shape: "circle",
185
- severity: "neutral",
186
- label: "Disabled"
187
- },
188
- unknown: {
189
- color: a.unknown.fg,
190
- backgroundColor: a.unknown.bg,
191
- icon: "help",
192
- shape: "circle",
193
- severity: "neutral",
194
- label: "Unknown"
195
- },
196
- // Special - Purple
197
- beta: {
198
- color: a.beta.fg,
199
- backgroundColor: a.beta.bg,
200
- icon: "zap",
201
- shape: "diamond",
202
- severity: "info",
203
- label: "Beta"
204
- },
205
- experimental: {
206
- color: a.experimental.fg,
207
- backgroundColor: a.experimental.bg,
208
- icon: "code",
209
- shape: "diamond",
210
- severity: "info",
211
- label: "Experimental"
212
- }
213
- }, T = {
214
- small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
215
- medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
216
- large: { icon: 24, shape: 12, fontSize: "1rem", dotSize: 12 }
217
- }, Si = (r) => z[r], Me = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Pe = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Be = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
218
- "rect",
219
- {
220
- x: "3",
221
- y: "3",
222
- width: "10",
223
- height: "10",
224
- rx: "1",
225
- fill: i,
226
- stroke: t,
227
- strokeWidth: t ? 1.5 : 0,
228
- transform: "rotate(45 8 8)"
229
- }
230
- ) }), Te = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
231
- "path",
232
- {
233
- d: "M8 2L14 14H2L8 2Z",
234
- fill: i,
235
- stroke: t,
236
- strokeWidth: t ? 1.5 : 0,
237
- strokeLinejoin: "round"
238
- }
239
- ) }), Ee = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
240
- "polygon",
241
- {
242
- points: "8,1 14,4.5 14,11.5 8,15 2,11.5 2,4.5",
243
- fill: i,
244
- stroke: t,
245
- strokeWidth: t ? 1.5 : 0
246
- }
247
- ) }), J = {
248
- circle: Me,
249
- square: Pe,
250
- diamond: Be,
251
- triangle: Te,
252
- hexagon: Ee
253
- }, $e = (r, i, t, o, n, l) => {
254
- const c = z[r], s = T[i];
255
- return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
256
- /* @__PURE__ */ e(
257
- B,
258
- {
259
- name: c.icon,
260
- size: i,
261
- sx: { color: c.backgroundColor },
262
- "aria-hidden": "true"
263
- }
264
- ),
265
- o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
266
- ] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
267
- /* @__PURE__ */ e(
268
- C,
269
- {
270
- sx: {
271
- display: "flex",
272
- alignItems: "center",
273
- justifyContent: "center",
274
- width: s.icon + 8,
275
- height: s.icon + 8,
276
- borderRadius: `${W.borders.radius.circle}px`,
277
- // Perfect circle
278
- backgroundColor: c.backgroundColor,
279
- color: c.color
280
- },
281
- "aria-hidden": "true",
282
- children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
283
- }
284
- ),
285
- o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
286
- ] });
287
- }, Re = (r, i, t, o, n, l, c) => {
288
- const s = z[r], h = T[i], x = n || s.shape, p = J[x];
289
- return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...c, alignItems: "center" }, role: "status", children: [
290
- /* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
291
- p,
292
- {
293
- size: h.shape * 1.6,
294
- color: s.backgroundColor,
295
- outline: l ? s.outlineColor : void 0
296
- }
297
- ) }),
298
- o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: h.fontSize }, children: t })
299
- ] });
300
- }, Ve = (r, i, t, o) => {
301
- const n = z[r], l = T[i];
302
- return /* @__PURE__ */ e(
303
- C,
304
- {
305
- role: "status",
306
- "aria-label": n.label,
307
- sx: {
308
- width: l.dotSize,
309
- height: l.dotSize,
310
- borderRadius: `${W.borders.radius.circle}px`,
311
- // Perfect circle
312
- backgroundColor: n.backgroundColor,
313
- flexShrink: 0,
314
- ...t && {
315
- animation: "statusPulse 2s infinite",
316
- "@keyframes statusPulse": {
317
- "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
318
- "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
319
- "100%": { boxShadow: "0 0 0 0 transparent" }
320
- }
321
- },
322
- ...o
323
- }
324
- }
325
- );
326
- }, Fe = (r, i, t, o, n, l, c) => {
327
- const s = z[r];
328
- return /* @__PURE__ */ e(
329
- ae,
330
- {
331
- label: t,
332
- size: i,
333
- icon: o ? /* @__PURE__ */ e(B, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
334
- onClick: n,
335
- onDelete: l,
336
- role: "status",
337
- sx: {
338
- backgroundColor: `${s.backgroundColor}20`,
339
- color: s.backgroundColor,
340
- borderColor: s.backgroundColor,
341
- "& .MuiChip-icon": {
342
- color: s.backgroundColor
343
- },
344
- "& .MuiChip-deleteIcon": {
345
- color: s.backgroundColor,
346
- "&:hover": {
347
- color: s.backgroundColor
348
- }
349
- },
350
- ...c
351
- },
352
- variant: "outlined"
353
- }
354
- );
355
- }, Qe = (r, i, t, o, n, l) => {
356
- const c = z[r], s = T[i];
357
- return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
358
- o && /* @__PURE__ */ e(
359
- C,
360
- {
361
- "aria-hidden": "true",
362
- sx: {
363
- width: s.dotSize,
364
- height: s.dotSize,
365
- borderRadius: `${W.borders.radius.circle}px`,
366
- // Perfect circle
367
- backgroundColor: c.backgroundColor,
368
- flexShrink: 0
369
- }
370
- }
371
- ),
372
- n && !o && /* @__PURE__ */ e(
373
- B,
374
- {
375
- name: c.icon,
376
- size: i === "large" ? "medium" : "small",
377
- sx: { color: c.backgroundColor },
378
- "aria-hidden": "true"
379
- }
380
- ),
381
- /* @__PURE__ */ e(
382
- S,
383
- {
384
- variant: "body2",
385
- sx: {
386
- fontSize: s.fontSize,
387
- color: c.backgroundColor,
388
- fontWeight: 500
389
- },
390
- children: t
391
- }
392
- )
393
- ] });
394
- }, je = (r, i, t, o, n, l, c) => {
395
- const s = z[r];
396
- return /* @__PURE__ */ e(
397
- ce,
398
- {
399
- badgeContent: o ? void 0 : t,
400
- max: n,
401
- variant: o ? "dot" : "standard",
402
- invisible: l,
403
- sx: {
404
- "& .MuiBadge-badge": {
405
- backgroundColor: s.backgroundColor,
406
- color: s.color,
407
- fontSize: "0.7rem",
408
- minWidth: o ? 8 : 18,
409
- height: o ? 8 : 18,
410
- padding: o ? 0 : "0 4px"
411
- },
412
- ...c
413
- },
414
- children: i
415
- }
416
- );
417
- }, Ze = (r, i, t, o, n, l, c, s, h) => {
418
- const x = T[i], p = r >= 0, g = l !== !1 ? p ? c || "#24a148" : s || "#da1e28" : "inherit", L = () => {
419
- const D = Math.abs(r), m = p ? "+" : "-";
420
- return o ? `${m}${o}${D.toLocaleString()}` : t ? `${m}${D}%` : `${m}${D.toLocaleString()}`;
421
- };
422
- return /* @__PURE__ */ f(
423
- P,
424
- {
425
- direction: "row",
426
- spacing: 0.5,
427
- sx: { color: g, ...h, alignItems: "center" },
428
- role: "status",
429
- "aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
430
- children: [
431
- n !== !1 && /* @__PURE__ */ e(
432
- B,
433
- {
434
- name: p ? "trending-up" : "trending-down",
435
- size: i === "large" ? "medium" : "small",
436
- "aria-hidden": "true"
437
- }
438
- ),
439
- /* @__PURE__ */ e(
440
- S,
441
- {
442
- variant: "body2",
443
- sx: {
444
- fontSize: x.fontSize,
445
- fontWeight: 500,
446
- fontFamily: "monospace"
447
- },
448
- children: L()
449
- }
450
- )
451
- ]
452
- }
453
- );
454
- }, Ci = M.forwardRef(
455
- function(i, t) {
456
- const {
457
- variant: o = "icon",
458
- status: n = "info",
459
- size: l = "medium",
460
- label: c,
461
- showLabel: s = !0,
462
- sx: h,
463
- "aria-label": x
464
- } = i, p = z[n], v = c || p.label, w = (() => {
465
- switch (o) {
466
- case "icon":
467
- case void 0:
468
- return $e(
469
- n,
470
- l,
471
- v,
472
- s,
473
- i.iconOnly || !1,
474
- h
475
- );
476
- case "shape": {
477
- const g = i;
478
- return Re(
479
- n,
480
- l,
481
- v,
482
- s,
483
- g.shape,
484
- g.showOutline ?? !0,
485
- h
486
- );
487
- }
488
- case "dot":
489
- return Ve(n, l, i.pulse || !1, h);
490
- case "chip": {
491
- const g = i;
492
- return Fe(
493
- n,
494
- l === "large" ? "medium" : l,
495
- v,
496
- g.showIcon ?? !0,
497
- g.onClick,
498
- g.onDelete,
499
- h
500
- );
501
- }
502
- case "inline": {
503
- const g = i;
504
- return Qe(
505
- n,
506
- l,
507
- v,
508
- g.showDot ?? !0,
509
- g.showIcon ?? !1,
510
- h
511
- );
512
- }
513
- case "badge": {
514
- const g = i;
515
- return je(
516
- n,
517
- g.children,
518
- g.count,
519
- g.dot,
520
- g.max ?? 999,
521
- g.invisible,
522
- h
523
- );
524
- }
525
- case "differential": {
526
- const g = i;
527
- return Ze(
528
- g.value,
529
- l,
530
- g.percentage || !1,
531
- g.currency,
532
- g.showIcon,
533
- g.showColor,
534
- g.positiveColor,
535
- g.negativeColor,
536
- h
537
- );
538
- }
539
- default:
540
- return null;
541
- }
542
- })();
543
- return !w || !M.isValidElement(w) ? w : M.cloneElement(w, {
544
- ref: t
545
- });
546
- }
547
- ), Li = ({
548
- status: r,
549
- size: i = "medium",
550
- label: t,
551
- showLabel: o = !0,
552
- iconOnly: n = !1,
553
- sx: l
554
- }) => {
555
- const c = z[r], s = T[i], h = t || c.label;
556
- return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
557
- /* @__PURE__ */ e(
558
- B,
559
- {
560
- name: c.icon,
561
- size: i,
562
- sx: { color: c.backgroundColor }
563
- }
564
- ),
565
- o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
566
- ] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
567
- /* @__PURE__ */ e(
568
- C,
569
- {
570
- sx: {
571
- display: "flex",
572
- alignItems: "center",
573
- justifyContent: "center",
574
- width: s.icon + 8,
575
- height: s.icon + 8,
576
- borderRadius: `${W.borders.radius.circle}px`,
577
- // Perfect circle
578
- backgroundColor: c.backgroundColor,
579
- color: c.color
580
- },
581
- children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
582
- }
583
- ),
584
- o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
585
- ] });
586
- }, Oe = ({
587
- status: r,
588
- size: i = "medium",
589
- pulse: t = !1,
590
- sx: o
591
- }) => {
592
- const n = z[r], l = T[i];
593
- return /* @__PURE__ */ e(
594
- C,
595
- {
596
- sx: {
597
- width: l.dotSize,
598
- height: l.dotSize,
599
- borderRadius: `${W.borders.radius.circle}px`,
600
- // Perfect circle
601
- backgroundColor: n.backgroundColor,
602
- ...t && {
603
- animation: "pulse 2s infinite",
604
- "@keyframes pulse": {
605
- "0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
606
- "70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
607
- "100%": { boxShadow: "0 0 0 0 transparent" }
608
- }
609
- },
610
- ...o
611
- }
612
- }
613
- );
614
- }, Wi = ({
615
- items: r,
1
+ import { jsx as t, jsxs as a, Fragment as A } from "react/jsx-runtime";
2
+ import { useTheme as U, Stack as B, Box as b, Typography as C, Snackbar as $, Alert as H, AlertTitle as J, Button as D, Portal as X, Slide as q, Fade as K, Grow as Y, Link as Q } from "@mui/material";
3
+ import { r as tt, I as et, s as rt, b as it, c as ot, g as lt } from "./app-shell.js";
4
+ import { s as nt, t as F, x as st, o as E, p as ct } from "./foundation.js";
5
+ import z, { useState as at, useRef as ht, useCallback as L, useContext as dt, createContext as xt } from "react";
6
+ import { g as pt, w as ft } from "./accessibility.js";
7
+ import { useTheme as yt, getLuminance as gt } from "@mui/material/styles";
8
+ const Ut = ({
9
+ items: o,
616
10
  variant: i = "dot",
617
- direction: t = "row",
618
- size: o = "small",
619
- sx: n
11
+ direction: r = "row",
12
+ size: e = "small",
13
+ sx: l
620
14
  }) => {
621
- const l = T[o];
622
- return /* @__PURE__ */ e(
623
- P,
15
+ const n = U(), h = rt[e];
16
+ return /* @__PURE__ */ t(
17
+ B,
624
18
  {
625
- direction: t,
626
- spacing: t === "row" ? 3 : 1,
19
+ direction: r,
20
+ spacing: r === "row" ? 3 : 1,
627
21
  useFlexGap: !0,
628
- sx: { ...n, flexWrap: "wrap" },
629
- children: r.map((c, s) => {
630
- const h = z[c.status], x = c.label || h.label;
631
- return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
632
- i === "icon" && /* @__PURE__ */ e(
633
- C,
22
+ sx: F(l, { flexWrap: "wrap" }),
23
+ children: o.map((f, u) => {
24
+ const c = tt(f.status, n), w = f.label || c.label;
25
+ return /* @__PURE__ */ a(B, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
26
+ i === "icon" && /* @__PURE__ */ t(
27
+ b,
634
28
  {
635
29
  sx: {
636
30
  display: "flex",
637
31
  alignItems: "center",
638
32
  justifyContent: "center",
639
- width: l.icon + 4,
640
- height: l.icon + 4,
641
- borderRadius: `${W.borders.radius.circle}px`,
33
+ width: h.icon + 4,
34
+ height: h.icon + 4,
35
+ borderRadius: `${nt.borders.radius.circle}px`,
642
36
  // Perfect circle
643
- backgroundColor: h.backgroundColor,
644
- color: h.color
37
+ backgroundColor: c.fill,
38
+ color: c.onFill
645
39
  },
646
- children: /* @__PURE__ */ e(B, { name: h.icon, size: "small" })
40
+ children: /* @__PURE__ */ t(et, { name: c.icon, size: "small" })
647
41
  }
648
42
  ),
649
43
  i === "shape" && (() => {
650
- const p = J[h.shape];
651
- return /* @__PURE__ */ e(
652
- p,
44
+ const g = it[c.shape];
45
+ return /* @__PURE__ */ t(
46
+ g,
653
47
  {
654
- size: l.shape * 1.4,
655
- color: h.backgroundColor,
656
- outline: h.outlineColor
48
+ size: h.shape * 1.4,
49
+ color: c.fill,
50
+ outline: c.outline
657
51
  }
658
52
  );
659
53
  })(),
660
- i === "dot" && /* @__PURE__ */ e(Oe, { status: c.status, size: o }),
661
- /* @__PURE__ */ f(S, { variant: "body2", sx: { fontSize: l.fontSize }, children: [
662
- x,
663
- c.count !== void 0 && /* @__PURE__ */ f(
664
- S,
54
+ i === "dot" && // The visible label names the item; the dot repeats it, so it is decorative.
55
+ /* @__PURE__ */ t(ot, { variant: "dot", status: f.status, size: e, decorative: !0 }),
56
+ /* @__PURE__ */ a(C, { variant: "body2", sx: { fontSize: h.fontSize }, children: [
57
+ w,
58
+ f.count !== void 0 && /* @__PURE__ */ a(
59
+ C,
665
60
  {
666
61
  component: "span",
667
62
  sx: {
668
63
  ml: 0.5,
669
64
  color: "text.secondary",
670
- fontSize: l.fontSize
65
+ fontSize: h.fontSize
671
66
  },
672
67
  children: [
673
68
  "(",
674
- c.count,
69
+ f.count,
675
70
  ")"
676
71
  ]
677
72
  }
678
73
  )
679
74
  ] })
680
- ] }, s);
75
+ ] }, u);
681
76
  })
682
77
  }
683
78
  );
684
- };
685
- function _e(r) {
686
- const i = r.palette.trinity;
687
- return {
688
- default: {
689
- icon: null,
690
- color: i.interactive.default,
691
- primaryColor: "primary"
692
- },
693
- info: {
694
- icon: /* @__PURE__ */ e(ze, {}),
695
- color: i.status.info.text,
696
- primaryColor: "info"
697
- },
698
- success: {
699
- icon: /* @__PURE__ */ e(Le, {}),
700
- color: i.status.success.text,
701
- primaryColor: "success"
702
- },
703
- warning: {
704
- icon: /* @__PURE__ */ e(Ie, {}),
705
- color: i.status.warning.text,
706
- primaryColor: "warning"
707
- },
708
- danger: {
709
- icon: /* @__PURE__ */ e(We, {}),
710
- color: i.status.error.text,
711
- primaryColor: "error"
712
- },
713
- confirm: {
714
- icon: /* @__PURE__ */ e(De, {}),
715
- color: i.interactive.default,
716
- primaryColor: "primary"
717
- }
718
- };
719
- }
720
- const Ae = M.forwardRef(function({
721
- open: i,
722
- onClose: t,
723
- title: o,
724
- children: n,
725
- variant: l = "default",
726
- primaryAction: c,
727
- onPrimaryAction: s,
728
- secondaryAction: h = "Cancel",
729
- onSecondaryAction: x,
730
- loading: p = !1,
731
- primaryDisabled: v = !1,
732
- showCloseButton: w = !0,
733
- disableBackdropClick: g = !1,
734
- disableEscapeKeyDown: L = !1,
735
- maxWidth: D = "sm",
736
- fullWidth: m = !0,
737
- fullScreenMobile: F = !1,
738
- footer: Q,
739
- hideFooter: u = !1,
740
- sx: y
741
- }, b) {
742
- const j = se(), [$, _] = O(!1), R = _e(j)[l], ee = (Z, G) => {
743
- G === "backdropClick" && g || G === "escapeKeyDown" && L || t();
744
- }, ie = async () => {
745
- if (s) {
746
- const Z = s();
747
- if (Z instanceof Promise) {
748
- _(!0);
749
- try {
750
- await Z;
751
- } finally {
752
- _(!1);
753
- }
754
- }
755
- }
756
- }, te = () => {
757
- x?.(), t();
758
- }, V = p || $, A = M.useId(), N = M.useId();
759
- return /* @__PURE__ */ f(
760
- de,
761
- {
762
- ref: b,
763
- open: i,
764
- onClose: ee,
765
- maxWidth: D,
766
- fullWidth: m,
767
- fullScreen: F ? void 0 : !1,
768
- "aria-labelledby": o ? A : void 0,
769
- "aria-describedby": n ? N : void 0,
770
- sx: {
771
- "& .MuiDialog-paper": {
772
- borderRadius: W.borders.radiusPx.lg,
773
- // 12px
774
- ...y
775
- }
776
- },
777
- children: [
778
- (o || w) && /* @__PURE__ */ f(
779
- he,
780
- {
781
- id: A,
782
- sx: {
783
- display: "flex",
784
- alignItems: "center",
785
- gap: 1.5,
786
- pr: w ? 6 : 3
787
- },
788
- children: [
789
- R.icon && /* @__PURE__ */ e(
790
- C,
791
- {
792
- sx: {
793
- width: W.iconSize.display + 4,
794
- // 40px - prominent icon with frame
795
- height: W.iconSize.display + 4,
796
- borderRadius: `${W.borders.radius.circle}px`,
797
- // Perfect circle
798
- bgcolor: "action.selected",
799
- // Theme-aware 12% overlay
800
- display: "flex",
801
- alignItems: "center",
802
- justifyContent: "center",
803
- "& .MuiSvgIcon-root": {
804
- color: R.color,
805
- fontSize: W.iconSize.prominent
806
- // 24px
807
- }
808
- },
809
- children: R.icon
810
- }
811
- ),
812
- /* @__PURE__ */ e(S, { variant: "h6", component: "span", sx: { fontWeight: 600 }, children: o }),
813
- w && /* @__PURE__ */ e(
814
- ge,
815
- {
816
- onClick: t,
817
- disabled: V,
818
- "aria-label": "Close dialog",
819
- sx: {
820
- position: "absolute",
821
- right: 8,
822
- top: 8,
823
- color: "text.secondary"
824
- },
825
- children: /* @__PURE__ */ e(Ce, {})
826
- }
827
- )
828
- ]
829
- }
830
- ),
831
- /* @__PURE__ */ e(fe, { id: N, dividers: l === "default", children: typeof n == "string" ? /* @__PURE__ */ e(ue, { children: n }) : n }),
832
- !u && /* @__PURE__ */ e(pe, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(re, { children: [
833
- h && /* @__PURE__ */ e(
834
- E,
835
- {
836
- onClick: te,
837
- disabled: V,
838
- color: "inherit",
839
- children: h
840
- }
841
- ),
842
- c && /* @__PURE__ */ e(
843
- E,
844
- {
845
- onClick: ie,
846
- disabled: v || V,
847
- variant: "contained",
848
- color: R.primaryColor,
849
- startIcon: V ? /* @__PURE__ */ e(xe, { size: 16, color: "inherit" }) : void 0,
850
- children: c
851
- }
852
- )
853
- ] }) })
854
- ]
855
- }
856
- );
857
- }), Ii = ({
858
- open: r,
859
- onClose: i,
860
- onConfirm: t,
861
- title: o = "Confirm Action",
862
- message: n = "Are you sure you want to proceed?",
863
- confirmLabel: l = "Confirm",
864
- cancelLabel: c = "Cancel",
865
- variant: s = "default",
866
- loading: h = !1
867
- }) => /* @__PURE__ */ e(
868
- Ae,
869
- {
870
- open: r,
871
- onClose: i,
872
- title: o,
873
- variant: s === "default" ? "confirm" : s,
874
- primaryAction: l,
875
- onPrimaryAction: t,
876
- secondaryAction: c,
877
- loading: h,
878
- maxWidth: "xs",
879
- children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
880
- }
881
- ), H = {
882
- isOpen: !1,
883
- title: "Confirm Action",
884
- message: "Are you sure you want to proceed?",
885
- variant: "default",
886
- confirmLabel: "Confirm",
887
- onConfirm: () => {
888
- }
889
- }, zi = () => {
890
- const [r, i] = O(H), t = I(
891
- (n) => {
892
- i({
893
- ...H,
894
- ...n,
895
- isOpen: !0
896
- });
897
- },
898
- []
899
- ), o = I(() => {
900
- i((n) => ({ ...n, isOpen: !1 }));
901
- }, []);
902
- return { confirm: t, close: o, state: r };
903
- }, K = ne(null), q = (r) => /* @__PURE__ */ e(ke, { ...r, direction: "left" }), Ne = (r) => /* @__PURE__ */ e(Se, { ...r }), Ge = (r) => /* @__PURE__ */ e(ve, { ...r }), Ue = (r) => {
904
- const [i, t] = r.split("-");
905
- return { vertical: i, horizontal: t };
906
- }, He = (r) => {
907
- switch (r) {
79
+ }, Z = /* @__PURE__ */ xt(null), V = (o) => /* @__PURE__ */ t(q, { ...o, direction: "left" }), ut = (o) => /* @__PURE__ */ t(Y, { ...o }), mt = (o) => /* @__PURE__ */ t(K, { ...o }), wt = (o) => {
80
+ const [i, r] = o.split("-");
81
+ return { vertical: i, horizontal: r };
82
+ }, kt = (o) => {
83
+ switch (o) {
908
84
  case "slide":
909
- return q;
85
+ return V;
910
86
  case "grow":
911
- return Ne;
87
+ return ut;
912
88
  case "fade":
913
- return Ge;
89
+ return mt;
914
90
  default:
915
- return q;
91
+ return V;
916
92
  }
917
- }, qe = M.forwardRef(function({
93
+ }, vt = /* @__PURE__ */ z.forwardRef(function({
918
94
  id: i,
919
- message: t,
920
- title: o,
921
- severity: n = "info",
922
- duration: l = 5e3,
923
- action: c,
924
- onAction: s,
925
- position: h = "top-right",
926
- transition: x = "slide",
927
- dismissible: p = !0,
928
- open: v,
929
- onClose: w
930
- }, g) {
931
- const L = Ue(h), D = He(x);
932
- return /* @__PURE__ */ e(
933
- me,
95
+ message: r,
96
+ title: e,
97
+ severity: l = "info",
98
+ duration: n = 5e3,
99
+ action: h,
100
+ onAction: f,
101
+ position: u = "top-right",
102
+ transition: c = "slide",
103
+ dismissible: w = !0,
104
+ open: g,
105
+ onClose: m
106
+ }, k) {
107
+ const v = wt(u), W = kt(c);
108
+ return /* @__PURE__ */ t(
109
+ $,
934
110
  {
935
- ref: g,
936
- open: v,
937
- autoHideDuration: l,
938
- onClose: w,
939
- anchorOrigin: L,
940
- slots: { transition: D },
941
- children: /* @__PURE__ */ f(
942
- we,
111
+ ref: k,
112
+ open: g,
113
+ autoHideDuration: n,
114
+ onClose: m,
115
+ anchorOrigin: v,
116
+ slots: { transition: W },
117
+ children: /* @__PURE__ */ a(
118
+ H,
943
119
  {
944
- severity: n,
120
+ severity: l,
945
121
  variant: "filled",
946
- onClose: p ? w : void 0,
947
- action: c ? /* @__PURE__ */ e(E, { color: "inherit", size: "small", onClick: () => {
948
- s?.(), w();
949
- }, children: c }) : void 0,
122
+ onClose: w ? m : void 0,
123
+ action: h ? /* @__PURE__ */ t(D, { color: "inherit", size: "small", onClick: () => {
124
+ f?.(), m();
125
+ }, children: h }) : void 0,
950
126
  sx: {
951
127
  width: "100%",
952
128
  minWidth: 300,
@@ -957,83 +133,83 @@ const Ae = M.forwardRef(function({
957
133
  }
958
134
  },
959
135
  children: [
960
- o && /* @__PURE__ */ e(be, { children: o }),
961
- t
136
+ e && /* @__PURE__ */ t(J, { children: e }),
137
+ r
962
138
  ]
963
139
  }
964
140
  )
965
141
  }
966
142
  );
967
- }), Di = ({
968
- children: r,
143
+ }), $t = ({
144
+ children: o,
969
145
  defaultPosition: i = "top-right",
970
- defaultDuration: t = 5e3,
971
- maxToasts: o = 5,
972
- defaultTransition: n = "slide"
146
+ defaultDuration: r = 5e3,
147
+ maxToasts: e = 5,
148
+ defaultTransition: l = "slide"
973
149
  }) => {
974
- const [l, c] = O([]), s = oe(0), h = I(() => (s.current += 1, `toast-${s.current}-${Date.now()}`), []), x = I(
975
- (u) => {
976
- const y = h(), b = {
977
- ...u,
978
- id: y,
150
+ const [n, h] = at([]), f = ht(0), u = L(() => (f.current += 1, `toast-${f.current}-${Date.now()}`), []), c = L(
151
+ (s) => {
152
+ const x = u(), p = {
153
+ ...s,
154
+ id: x,
979
155
  open: !0,
980
- position: u.position ?? i,
981
- duration: u.duration ?? t,
982
- transition: u.transition ?? n,
983
- dismissible: u.dismissible ?? !0
156
+ position: s.position ?? i,
157
+ duration: s.duration ?? r,
158
+ transition: s.transition ?? l,
159
+ dismissible: s.dismissible ?? !0
984
160
  };
985
- return c((j) => {
986
- const $ = [...j, b];
987
- return $.length > o ? $.slice(-o) : $;
988
- }), y;
161
+ return h((M) => {
162
+ const I = [...M, p];
163
+ return I.length > e ? I.slice(-e) : I;
164
+ }), x;
989
165
  },
990
- [h, i, t, n, o]
991
- ), p = I((u) => {
992
- c(
993
- (y) => y.map((b) => b.id === u ? { ...b, open: !1 } : b)
166
+ [u, i, r, l, e]
167
+ ), w = L((s) => {
168
+ h(
169
+ (x) => x.map((p) => p.id === s ? { ...p, open: !1 } : p)
994
170
  ), setTimeout(() => {
995
- c((y) => y.filter((b) => b.id !== u));
171
+ h((x) => x.filter((p) => p.id !== s));
996
172
  }, 300);
997
- }, []), v = I(() => {
998
- c((u) => u.map((y) => ({ ...y, open: !1 }))), setTimeout(() => {
999
- c([]);
173
+ }, []), g = L(() => {
174
+ h((s) => s.map((x) => ({ ...x, open: !1 }))), setTimeout(() => {
175
+ h([]);
1000
176
  }, 300);
1001
- }, []), w = I(
1002
- (u) => x(u),
1003
- [x]
1004
- ), g = I(
1005
- (u, y) => x({ message: u, severity: "success", ...y }),
1006
- [x]
1007
- ), L = I(
1008
- (u, y) => x({ message: u, severity: "info", ...y }),
1009
- [x]
1010
- ), D = I(
1011
- (u, y) => x({ message: u, severity: "warning", ...y }),
1012
- [x]
1013
- ), m = I(
1014
- (u, y) => x({ message: u, severity: "error", ...y }),
1015
- [x]
1016
- ), F = {
1017
- toast: w,
1018
- success: g,
1019
- info: L,
1020
- warning: D,
1021
- error: m,
1022
- dismiss: p,
1023
- dismissAll: v
1024
- }, Q = l.reduce((u, y) => {
1025
- const b = y.position || i;
1026
- return u[b] || (u[b] = []), u[b].push(y), u;
177
+ }, []), m = L(
178
+ (s) => c(s),
179
+ [c]
180
+ ), k = L(
181
+ (s, x) => c({ message: s, severity: "success", ...x }),
182
+ [c]
183
+ ), v = L(
184
+ (s, x) => c({ message: s, severity: "info", ...x }),
185
+ [c]
186
+ ), W = L(
187
+ (s, x) => c({ message: s, severity: "warning", ...x }),
188
+ [c]
189
+ ), d = L(
190
+ (s, x) => c({ message: s, severity: "error", ...x }),
191
+ [c]
192
+ ), T = {
193
+ toast: m,
194
+ success: k,
195
+ info: v,
196
+ warning: W,
197
+ error: d,
198
+ dismiss: w,
199
+ dismissAll: g
200
+ }, S = n.reduce((s, x) => {
201
+ const p = x.position || i;
202
+ return s[p] || (s[p] = []), s[p].push(x), s;
1027
203
  }, {});
1028
- return /* @__PURE__ */ f(K.Provider, { value: F, children: [
1029
- r,
1030
- /* @__PURE__ */ e(ye, { children: Object.entries(Q).map(([u, y]) => /* @__PURE__ */ e(
1031
- C,
204
+ return /* @__PURE__ */ a(Z.Provider, { value: T, children: [
205
+ o,
206
+ /* @__PURE__ */ t(X, { children: Object.entries(S).map(([s, x]) => /* @__PURE__ */ t(
207
+ b,
1032
208
  {
1033
209
  sx: {
1034
210
  position: "fixed",
1035
- zIndex: 9999,
1036
- ...Je(u),
211
+ zIndex: (p) => pt(p, "toast"),
212
+ ...Lt(s),
1037
213
  display: "flex",
1038
214
  flexDirection: "column",
1039
215
  gap: 1,
@@ -1042,20 +218,20 @@ const Ae = M.forwardRef(function({
1042
218
  pointerEvents: "auto"
1043
219
  }
1044
220
  },
1045
- children: y.map((b) => /* @__PURE__ */ e(qe, { ...b, onClose: () => p(b.id) }, b.id))
221
+ children: x.map((p) => /* @__PURE__ */ t(vt, { ...p, onClose: () => w(p.id) }, p.id))
1046
222
  },
1047
- u
223
+ s
1048
224
  )) })
1049
225
  ] });
1050
- }, Je = (r) => {
226
+ }, Lt = (o) => {
1051
227
  const i = {};
1052
- return r.startsWith("top") && (i.top = 16), r.startsWith("bottom") && (i.bottom = 16), r.endsWith("left") && (i.left = 16), r.endsWith("right") && (i.right = 16), r.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
1053
- }, Mi = () => {
1054
- const r = le(K);
1055
- if (!r)
228
+ return o.startsWith("top") && (i.top = 16), o.startsWith("bottom") && (i.bottom = 16), o.endsWith("left") && (i.left = 16), o.endsWith("right") && (i.right = 16), o.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
229
+ }, Ht = () => {
230
+ const o = dt(Z);
231
+ if (!o)
1056
232
  throw new Error("useToast must be used within a ToastProvider");
1057
- return r;
1058
- }, k = {
233
+ return o;
234
+ }, P = {
1059
235
  // Error/danger - Tailwind red-500
1060
236
  error: {
1061
237
  main: "#EF4444",
@@ -1075,7 +251,7 @@ const Ae = M.forwardRef(function({
1075
251
  accent: {
1076
252
  flame: "#FFD93D"
1077
253
  }
1078
- }, X = {
254
+ }, Ct = { small: 6, medium: 6, large: 5 }, R = {
1079
255
  small: {
1080
256
  illustrationSize: 120,
1081
257
  titleVariant: "subtitle1",
@@ -1097,403 +273,432 @@ const Ae = M.forwardRef(function({
1097
273
  spacing: 4,
1098
274
  padding: 6
1099
275
  }
1100
- }, Ke = ({
1101
- size: r = 180,
1102
- primaryColor: i = d.primary.main,
1103
- secondaryColor: t = d.neutral.gray100,
1104
- accentColor: o = d.secondary.main
1105
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1106
- /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: t }),
1107
- /* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: i, opacity: "0.2" }),
1108
- /* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: t, opacity: "0.8" }),
1109
- /* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: t, opacity: "0.6" }),
1110
- /* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.8" }),
1111
- /* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.6" }),
1112
- /* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: t, opacity: "0.8" }),
1113
- /* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: t, opacity: "0.6" }),
1114
- /* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke: i, strokeWidth: "3", strokeDasharray: "6 4" }),
1115
- /* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill: i, fontSize: "32", fontWeight: "300", children: "?" })
1116
- ] }), Xe = ({
1117
- size: r = 180,
1118
- primaryColor: i = d.primary.main,
1119
- secondaryColor: t = d.neutral.gray100,
1120
- accentColor: o = d.secondary.main
1121
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1122
- /* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: t, transform: "rotate(-5 50 50)" }),
1123
- /* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke: t, strokeWidth: "2" }),
1124
- /* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: t }),
1125
- /* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: t, opacity: "0.6" }),
1126
- /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: t, opacity: "0.4" }),
1127
- /* @__PURE__ */ f("g", { transform: "translate(120, 100) rotate(45)", children: [
1128
- /* @__PURE__ */ e("rect", { x: "0", y: "0", width: "50", height: "10", fill: o }),
1129
- /* @__PURE__ */ e("polygon", { points: "50,0 60,5 50,10", fill: o, opacity: "0.7" }),
1130
- /* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: i })
1131
- ] })
1132
- ] }), Ye = ({
1133
- size: r = 180,
1134
- primaryColor: i = d.primary.main,
1135
- secondaryColor: t = d.neutral.gray100,
1136
- accentColor: o = d.secondary.main
1137
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1138
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: i }),
1139
- /* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "12", fill: "white" }),
1140
- /* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "8", fill: o, opacity: "0.3" }),
1141
- /* @__PURE__ */ e("path", { d: "M70 120 L50 150 L70 140 Z", fill: o }),
1142
- /* @__PURE__ */ e("path", { d: "M130 120 L150 150 L130 140 Z", fill: o }),
1143
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: o, opacity: "0.8" }),
1144
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: k.accent.flame }),
1145
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: "white" }),
1146
- /* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "3", fill: i, opacity: "0.5" }),
1147
- /* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill: i, opacity: "0.5" }),
1148
- /* @__PURE__ */ e("circle", { cx: "30", cy: "120", r: "2", fill: o, opacity: "0.5" }),
1149
- /* @__PURE__ */ e("circle", { cx: "170", cy: "100", r: "3", fill: o, opacity: "0.5" })
1150
- ] }), ei = ({
1151
- size: r = 180,
1152
- primaryColor: i = d.primary.main,
1153
- secondaryColor: t = d.neutral.gray100
1154
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1155
- /* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: t }),
1156
- /* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke: t, strokeWidth: "2" }),
1157
- /* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
1158
- /* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: t }),
1159
- /* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: t, opacity: "0.6" }),
1160
- /* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: t, opacity: "0.4" }),
1161
- /* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill: i }),
1162
- /* @__PURE__ */ e("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: "white" }),
1163
- /* @__PURE__ */ e("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: "white" })
1164
- ] }), ii = ({
1165
- size: r = 180,
1166
- primaryColor: i = d.primary.main,
1167
- secondaryColor: t = d.neutral.gray100,
1168
- accentColor: o = d.secondary.main
1169
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1170
- /* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke: t, strokeWidth: "2" }),
1171
- /* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
1172
- /* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
1173
- /* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: t, opacity: "0.5" }),
1174
- /* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: t, opacity: "0.5" }),
1175
- /* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: t, opacity: "0.5" }),
1176
- /* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "25", fill: o, opacity: "0.2" }),
1177
- /* @__PURE__ */ e("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
1178
- /* @__PURE__ */ e("circle", { cx: "160", cy: "65", r: "10", fill: o }),
1179
- /* @__PURE__ */ e("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: i })
1180
- ] }), ti = ({
1181
- size: r = 180,
1182
- primaryColor: i = d.primary.main,
1183
- secondaryColor: t = d.neutral.gray100
1184
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1185
- /* @__PURE__ */ e("circle", { cx: "85", cy: "85", r: "45", fill: "white", stroke: i, strokeWidth: "4" }),
1186
- /* @__PURE__ */ e("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: i, strokeWidth: "8", strokeLinecap: "round" }),
1187
- /* @__PURE__ */ e("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
1188
- /* @__PURE__ */ e("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
1189
- /* @__PURE__ */ e("text", { x: "155", y: "50", fill: t, fontSize: "20", fontWeight: "bold", children: "?" }),
1190
- /* @__PURE__ */ e("text", { x: "40", y: "160", fill: t, fontSize: "16", fontWeight: "bold", children: "?" })
1191
- ] }), ri = ({
1192
- size: r = 180,
1193
- primaryColor: i = d.primary.main,
1194
- secondaryColor: t = d.neutral.gray100
1195
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1196
- /* @__PURE__ */ e("path", { d: "M100 30 L170 150 L30 150 Z", fill: k.warning.light, stroke: k.warning.main, strokeWidth: "3" }),
1197
- /* @__PURE__ */ e("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: k.warning.main }),
1198
- /* @__PURE__ */ e("circle", { cx: "100", cy: "130", r: "7", fill: k.warning.main }),
1199
- /* @__PURE__ */ e("circle", { cx: "30", cy: "60", r: "8", fill: t, opacity: "0.5" }),
1200
- /* @__PURE__ */ e("circle", { cx: "170", cy: "80", r: "6", fill: t, opacity: "0.5" }),
1201
- /* @__PURE__ */ e("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: t, opacity: "0.3" }),
1202
- /* @__PURE__ */ e("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: t, opacity: "0.3" })
1203
- ] }), oi = ({
1204
- size: r = 180,
1205
- primaryColor: i = d.primary.main,
1206
- secondaryColor: t = d.neutral.gray100,
1207
- accentColor: o = d.secondary.main
1208
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1209
- /* @__PURE__ */ e("text", { x: "100", y: "100", textAnchor: "middle", fill: i, fontSize: "48", fontWeight: "bold", children: "404" }),
1210
- /* @__PURE__ */ e("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
1211
- /* @__PURE__ */ e("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
1212
- /* @__PURE__ */ e("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
1213
- /* @__PURE__ */ e("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
1214
- /* @__PURE__ */ e("circle", { cx: "75", cy: "60", r: "5", fill: i }),
1215
- /* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill: i }),
1216
- /* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
1217
- ] }), ni = ({
1218
- size: r = 180,
1219
- primaryColor: i = d.primary.main,
1220
- secondaryColor: t = d.neutral.gray100,
1221
- accentColor: o = d.secondary.main
1222
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1223
- /* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: t }),
1224
- /* @__PURE__ */ e("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: "white" }),
1225
- /* @__PURE__ */ e("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: "white" }),
1226
- /* @__PURE__ */ e("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: "white" }),
1227
- /* @__PURE__ */ e("circle", { cx: "80", cy: "62", r: "4", fill: k.error.main }),
1228
- /* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill: k.error.main }),
1229
- /* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill: k.error.main }),
1230
- /* @__PURE__ */ e("circle", { cx: "92", cy: "97", r: "4", fill: o, opacity: "0.5" }),
1231
- /* @__PURE__ */ e("circle", { cx: "80", cy: "132", r: "4", fill: o, opacity: "0.5" }),
1232
- /* @__PURE__ */ e("circle", { cx: "92", cy: "132", r: "4", fill: o, opacity: "0.5" }),
1233
- /* @__PURE__ */ e("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: o }),
1234
- /* @__PURE__ */ f("g", { transform: "translate(40, 70)", children: [
1235
- /* @__PURE__ */ e("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" }),
1236
- /* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" })
1237
- ] })
1238
- ] }), li = ({
1239
- size: r = 180,
1240
- primaryColor: i = d.primary.main,
1241
- secondaryColor: t = d.neutral.gray100,
1242
- accentColor: o = d.secondary.main
1243
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1244
- /* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: i }),
1245
- /* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: i, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
1246
- /* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "12", fill: "white" }),
1247
- /* @__PURE__ */ e("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: "white" }),
1248
- /* @__PURE__ */ e("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: o, opacity: "0.15" }),
1249
- /* @__PURE__ */ e("circle", { cx: "155", cy: "65", r: "20", fill: k.error.light, stroke: k.error.main, strokeWidth: "2" }),
1250
- /* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: k.error.main })
1251
- ] }), Y = ({
1252
- size: r = 180,
1253
- primaryColor: i = d.primary.main,
1254
- secondaryColor: t = d.neutral.gray100,
1255
- accentColor: o = d.secondary.main
1256
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1257
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: t }),
1258
- /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: t }),
1259
- /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: t }),
1260
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: t }),
1261
- /* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: i }),
1262
- /* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill: i }),
1263
- /* @__PURE__ */ e("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: "white", stroke: o, strokeWidth: "2", strokeDasharray: "8 4" }),
1264
- /* @__PURE__ */ e("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
1265
- /* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: i, opacity: "0.2" })
1266
- ] }), ci = ({
1267
- size: r = 180,
1268
- primaryColor: i = d.primary.main,
1269
- secondaryColor: t = d.neutral.gray100,
1270
- accentColor: o = d.secondary.main
1271
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1272
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill: k.success.light }),
1273
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill: k.success.main }),
1274
- /* @__PURE__ */ e("path", { d: "M65 100 L90 125 L135 75", stroke: "white", strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
1275
- /* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "6", fill: o, opacity: "0.6" }),
1276
- /* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "4", fill: o, opacity: "0.6" }),
1277
- /* @__PURE__ */ e("circle", { cx: "170", cy: "130", r: "5", fill: i, opacity: "0.4" }),
1278
- /* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill: i, opacity: "0.4" }),
1279
- /* @__PURE__ */ e("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: o, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
1280
- /* @__PURE__ */ e("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: i, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
1281
- ] }), ai = ({
1282
- size: r = 180,
1283
- primaryColor: i = d.primary.main,
1284
- secondaryColor: t = d.neutral.gray100
1285
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1286
- /* @__PURE__ */ e("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: t }),
1287
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: t }),
1288
- /* @__PURE__ */ e("circle", { cx: "100", cy: "145", r: "12", fill: t }),
1289
- /* @__PURE__ */ e("path", { d: "M100 40 L100 25", stroke: i, strokeWidth: "4", strokeLinecap: "round" }),
1290
- /* @__PURE__ */ e("text", { x: "145", y: "60", fill: i, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
1291
- /* @__PURE__ */ e("text", { x: "155", y: "45", fill: i, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
1292
- /* @__PURE__ */ e("text", { x: "165", y: "35", fill: i, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
1293
- ] }), si = ({
1294
- size: r = 180,
1295
- primaryColor: i = d.primary.main,
1296
- secondaryColor: t = d.neutral.gray100
1297
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1298
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: t }),
1299
- /* @__PURE__ */ e("rect", { x: "50", y: "60", width: "100", height: "80", fill: t }),
1300
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: t }),
1301
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
1302
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
1303
- /* @__PURE__ */ e("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: i, strokeWidth: "2" }),
1304
- /* @__PURE__ */ e("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: i, strokeWidth: "2" }),
1305
- /* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "25", fill: "white", stroke: i, strokeWidth: "2", strokeDasharray: "5 3" }),
1306
- /* @__PURE__ */ e("text", { x: "100", y: "108", textAnchor: "middle", fill: i, fontSize: "24", fontWeight: "300", children: "0" })
1307
- ] }), di = ({
1308
- size: r = 180,
1309
- primaryColor: i = d.primary.main,
1310
- secondaryColor: t = d.neutral.gray100
1311
- }) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1312
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: t }),
1313
- /* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: t }),
1314
- /* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: t }),
1315
- /* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: t }),
1316
- /* @__PURE__ */ e("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
1317
- /* @__PURE__ */ e("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
1318
- /* @__PURE__ */ e("path", { d: "M45 140 Q45 160 65 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
1319
- /* @__PURE__ */ e("path", { d: "M35 145 Q35 170 65 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
1320
- /* @__PURE__ */ e("path", { d: "M155 140 Q155 160 135 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
1321
- /* @__PURE__ */ e("path", { d: "M165 145 Q165 170 135 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
1322
- ] }), hi = {
1323
- "empty-table": Ke,
1324
- "empty-drafts": Xe,
1325
- "getting-started": Ye,
1326
- "empty-documents": ei,
1327
- "empty-insights": ii,
1328
- "no-results": ti,
1329
- "error-generic": ri,
1330
- "error-404": oi,
1331
- "error-500": ni,
1332
- "error-permission": li,
1333
- upload: Y,
1334
- success: ci,
1335
- "no-notifications": ai,
1336
- "no-data": si,
1337
- offline: di
1338
- }, Pi = M.forwardRef(
1339
- function({ illustration: i, title: t, description: o, primaryAction: n, secondaryAction: l, size: c = "medium", customIllustration: s, sx: h }, x) {
1340
- const p = X[c], v = hi[i];
1341
- return /* @__PURE__ */ f(
1342
- C,
276
+ };
277
+ function y(o) {
278
+ const i = yt(), r = lt(i), e = i.palette.background.paper, l = gt(e) >= 0.5, n = (h) => ({
279
+ main: P[h].main,
280
+ tint: l ? P[h].light : r.status[h].background
281
+ });
282
+ return {
283
+ size: o.size ?? 180,
284
+ primaryColor: o.primaryColor ?? i.palette.primary.main,
285
+ secondaryColor: o.secondaryColor ?? r.border.subtle,
286
+ accentColor: o.accentColor ?? i.palette.secondary.main,
287
+ surface: e,
288
+ status: { error: n("error"), warning: n("warning"), success: n("success") }
289
+ };
290
+ }
291
+ const Wt = (o) => {
292
+ const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
293
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
294
+ /* @__PURE__ */ t("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: e }),
295
+ /* @__PURE__ */ t("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: r, opacity: "0.2" }),
296
+ /* @__PURE__ */ t("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: e, opacity: "0.8" }),
297
+ /* @__PURE__ */ t("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: e, opacity: "0.6" }),
298
+ /* @__PURE__ */ t("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: e, opacity: "0.8" }),
299
+ /* @__PURE__ */ t("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: e, opacity: "0.6" }),
300
+ /* @__PURE__ */ t("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: e, opacity: "0.8" }),
301
+ /* @__PURE__ */ t("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: e, opacity: "0.6" }),
302
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "115", r: "35", fill: l, stroke: r, strokeWidth: "3", strokeDasharray: "6 4" }),
303
+ /* @__PURE__ */ t("text", { x: "100", y: "122", textAnchor: "middle", fill: r, fontSize: "32", fontWeight: "300", children: "?" })
304
+ ] });
305
+ }, bt = (o) => {
306
+ const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
307
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
308
+ /* @__PURE__ */ t("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: e, transform: "rotate(-5 50 50)" }),
309
+ /* @__PURE__ */ t("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: n, stroke: e, strokeWidth: "2" }),
310
+ /* @__PURE__ */ t("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: e }),
311
+ /* @__PURE__ */ t("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: e, opacity: "0.6" }),
312
+ /* @__PURE__ */ t("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: e, opacity: "0.4" }),
313
+ /* @__PURE__ */ a("g", { transform: "translate(120, 100) rotate(45)", children: [
314
+ /* @__PURE__ */ t("rect", { x: "0", y: "0", width: "50", height: "10", fill: l }),
315
+ /* @__PURE__ */ t("polygon", { points: "50,0 60,5 50,10", fill: l, opacity: "0.7" }),
316
+ /* @__PURE__ */ t("rect", { x: "-5", y: "2", width: "5", height: "6", fill: r })
317
+ ] })
318
+ ] });
319
+ }, It = (o) => {
320
+ const { size: i, primaryColor: r, accentColor: e, surface: l } = y(o);
321
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
322
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: r }),
323
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "85", r: "12", fill: l }),
324
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "85", r: "8", fill: e, opacity: "0.3" }),
325
+ /* @__PURE__ */ t("path", { d: "M70 120 L50 150 L70 140 Z", fill: e }),
326
+ /* @__PURE__ */ t("path", { d: "M130 120 L150 150 L130 140 Z", fill: e }),
327
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: e, opacity: "0.8" }),
328
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: P.accent.flame }),
329
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: l }),
330
+ /* @__PURE__ */ t("circle", { cx: "40", cy: "50", r: "3", fill: r, opacity: "0.5" }),
331
+ /* @__PURE__ */ t("circle", { cx: "160", cy: "40", r: "2", fill: r, opacity: "0.5" }),
332
+ /* @__PURE__ */ t("circle", { cx: "30", cy: "120", r: "2", fill: e, opacity: "0.5" }),
333
+ /* @__PURE__ */ t("circle", { cx: "170", cy: "100", r: "3", fill: e, opacity: "0.5" })
334
+ ] });
335
+ }, zt = (o) => {
336
+ const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
337
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
338
+ /* @__PURE__ */ t("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: e }),
339
+ /* @__PURE__ */ t("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: l, stroke: e, strokeWidth: "2" }),
340
+ /* @__PURE__ */ t("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: l, stroke: r, strokeWidth: "2" }),
341
+ /* @__PURE__ */ t("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: e }),
342
+ /* @__PURE__ */ t("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: e, opacity: "0.6" }),
343
+ /* @__PURE__ */ t("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: e, opacity: "0.4" }),
344
+ /* @__PURE__ */ t("circle", { cx: "140", cy: "130", r: "20", fill: r }),
345
+ /* @__PURE__ */ t("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: l }),
346
+ /* @__PURE__ */ t("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: l })
347
+ ] });
348
+ }, St = (o) => {
349
+ const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
350
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
351
+ /* @__PURE__ */ t("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: n, stroke: e, strokeWidth: "2" }),
352
+ /* @__PURE__ */ t("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: e, strokeWidth: "1", strokeDasharray: "4" }),
353
+ /* @__PURE__ */ t("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: e, strokeWidth: "1", strokeDasharray: "4" }),
354
+ /* @__PURE__ */ t("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: e, opacity: "0.5" }),
355
+ /* @__PURE__ */ t("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: e, opacity: "0.5" }),
356
+ /* @__PURE__ */ t("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: e, opacity: "0.5" }),
357
+ /* @__PURE__ */ t("circle", { cx: "160", cy: "60", r: "25", fill: l, opacity: "0.2" }),
358
+ /* @__PURE__ */ t("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
359
+ /* @__PURE__ */ t("circle", { cx: "160", cy: "65", r: "10", fill: l }),
360
+ /* @__PURE__ */ t("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: r })
361
+ ] });
362
+ }, Mt = (o) => {
363
+ const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
364
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
365
+ /* @__PURE__ */ t("circle", { cx: "85", cy: "85", r: "45", fill: l, stroke: r, strokeWidth: "4" }),
366
+ /* @__PURE__ */ t("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: r, strokeWidth: "8", strokeLinecap: "round" }),
367
+ /* @__PURE__ */ t("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: e, strokeWidth: "6", strokeLinecap: "round" }),
368
+ /* @__PURE__ */ t("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: e, strokeWidth: "6", strokeLinecap: "round" }),
369
+ /* @__PURE__ */ t("text", { x: "155", y: "50", fill: e, fontSize: "20", fontWeight: "bold", children: "?" }),
370
+ /* @__PURE__ */ t("text", { x: "40", y: "160", fill: e, fontSize: "16", fontWeight: "bold", children: "?" })
371
+ ] });
372
+ }, Dt = (o) => {
373
+ const { size: i, secondaryColor: r, status: e } = y(o);
374
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
375
+ /* @__PURE__ */ t("path", { d: "M100 30 L170 150 L30 150 Z", fill: e.warning.tint, stroke: e.warning.main, strokeWidth: "3" }),
376
+ /* @__PURE__ */ t("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: e.warning.main }),
377
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "130", r: "7", fill: e.warning.main }),
378
+ /* @__PURE__ */ t("circle", { cx: "30", cy: "60", r: "8", fill: r, opacity: "0.5" }),
379
+ /* @__PURE__ */ t("circle", { cx: "170", cy: "80", r: "6", fill: r, opacity: "0.5" }),
380
+ /* @__PURE__ */ t("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: r, opacity: "0.3" }),
381
+ /* @__PURE__ */ t("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: r, opacity: "0.3" })
382
+ ] });
383
+ }, Tt = (o) => {
384
+ const { size: i, primaryColor: r, secondaryColor: e, accentColor: l } = y(o);
385
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
386
+ /* @__PURE__ */ t("text", { x: "100", y: "100", textAnchor: "middle", fill: r, fontSize: "48", fontWeight: "bold", children: "404" }),
387
+ /* @__PURE__ */ t("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: e, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
388
+ /* @__PURE__ */ t("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: e, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
389
+ /* @__PURE__ */ t("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
390
+ /* @__PURE__ */ t("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: l, strokeWidth: "3", strokeLinecap: "round" }),
391
+ /* @__PURE__ */ t("circle", { cx: "75", cy: "60", r: "5", fill: r }),
392
+ /* @__PURE__ */ t("circle", { cx: "125", cy: "60", r: "5", fill: r }),
393
+ /* @__PURE__ */ t("path", { d: "M80 75 Q100 65 120 75", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
394
+ ] });
395
+ }, Et = (o) => {
396
+ const { size: i, secondaryColor: r, accentColor: e, surface: l, status: n } = y(o);
397
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
398
+ /* @__PURE__ */ t("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: r }),
399
+ /* @__PURE__ */ t("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: l }),
400
+ /* @__PURE__ */ t("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: l }),
401
+ /* @__PURE__ */ t("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: l }),
402
+ /* @__PURE__ */ t("circle", { cx: "80", cy: "62", r: "4", fill: n.error.main }),
403
+ /* @__PURE__ */ t("circle", { cx: "92", cy: "62", r: "4", fill: n.error.main }),
404
+ /* @__PURE__ */ t("circle", { cx: "80", cy: "97", r: "4", fill: n.error.main }),
405
+ /* @__PURE__ */ t("circle", { cx: "92", cy: "97", r: "4", fill: e, opacity: "0.5" }),
406
+ /* @__PURE__ */ t("circle", { cx: "80", cy: "132", r: "4", fill: e, opacity: "0.5" }),
407
+ /* @__PURE__ */ t("circle", { cx: "92", cy: "132", r: "4", fill: e, opacity: "0.5" }),
408
+ /* @__PURE__ */ t("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: e }),
409
+ /* @__PURE__ */ a("g", { transform: "translate(40, 70)", children: [
410
+ /* @__PURE__ */ t("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: n.error.main, strokeWidth: "3", strokeLinecap: "round" }),
411
+ /* @__PURE__ */ t("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: n.error.main, strokeWidth: "3", strokeLinecap: "round" })
412
+ ] })
413
+ ] });
414
+ }, Bt = (o) => {
415
+ const { size: i, primaryColor: r, accentColor: e, surface: l, status: n } = y(o);
416
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
417
+ /* @__PURE__ */ t("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: r }),
418
+ /* @__PURE__ */ t("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: r, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
419
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "115", r: "12", fill: l }),
420
+ /* @__PURE__ */ t("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: l }),
421
+ /* @__PURE__ */ t("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: e, opacity: "0.15" }),
422
+ /* @__PURE__ */ t("circle", { cx: "155", cy: "65", r: "20", fill: n.error.tint, stroke: n.error.main, strokeWidth: "2" }),
423
+ /* @__PURE__ */ t("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: n.error.main })
424
+ ] });
425
+ }, G = (o) => {
426
+ const { size: i, primaryColor: r, secondaryColor: e, accentColor: l, surface: n } = y(o);
427
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
428
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: e }),
429
+ /* @__PURE__ */ t("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: e }),
430
+ /* @__PURE__ */ t("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: e }),
431
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: e }),
432
+ /* @__PURE__ */ t("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: r }),
433
+ /* @__PURE__ */ t("polygon", { points: "100,85 75,120 125,120", fill: r }),
434
+ /* @__PURE__ */ t("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: n, stroke: l, strokeWidth: "2", strokeDasharray: "8 4" }),
435
+ /* @__PURE__ */ t("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: n, stroke: r, strokeWidth: "2" }),
436
+ /* @__PURE__ */ t("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: r, opacity: "0.2" })
437
+ ] });
438
+ }, Pt = (o) => {
439
+ const { size: i, primaryColor: r, accentColor: e, surface: l, status: n } = y(o);
440
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
441
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "70", fill: n.success.tint }),
442
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "55", fill: n.success.main }),
443
+ /* @__PURE__ */ t("path", { d: "M65 100 L90 125 L135 75", stroke: l, strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
444
+ /* @__PURE__ */ t("circle", { cx: "40", cy: "50", r: "6", fill: e, opacity: "0.6" }),
445
+ /* @__PURE__ */ t("circle", { cx: "160", cy: "60", r: "4", fill: e, opacity: "0.6" }),
446
+ /* @__PURE__ */ t("circle", { cx: "170", cy: "130", r: "5", fill: r, opacity: "0.4" }),
447
+ /* @__PURE__ */ t("circle", { cx: "30", cy: "140", r: "4", fill: r, opacity: "0.4" }),
448
+ /* @__PURE__ */ t("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: e, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
449
+ /* @__PURE__ */ t("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: r, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
450
+ ] });
451
+ }, Ft = (o) => {
452
+ const { size: i, primaryColor: r, secondaryColor: e } = y(o);
453
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
454
+ /* @__PURE__ */ t("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: e }),
455
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: e }),
456
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "145", r: "12", fill: e }),
457
+ /* @__PURE__ */ t("path", { d: "M100 40 L100 25", stroke: r, strokeWidth: "4", strokeLinecap: "round" }),
458
+ /* @__PURE__ */ t("text", { x: "145", y: "60", fill: r, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
459
+ /* @__PURE__ */ t("text", { x: "155", y: "45", fill: r, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
460
+ /* @__PURE__ */ t("text", { x: "165", y: "35", fill: r, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
461
+ ] });
462
+ }, Nt = (o) => {
463
+ const { size: i, primaryColor: r, secondaryColor: e, surface: l } = y(o);
464
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
465
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: e }),
466
+ /* @__PURE__ */ t("rect", { x: "50", y: "60", width: "100", height: "80", fill: e }),
467
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: e }),
468
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: l, stroke: r, strokeWidth: "2" }),
469
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: l, stroke: r, strokeWidth: "2" }),
470
+ /* @__PURE__ */ t("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: r, strokeWidth: "2" }),
471
+ /* @__PURE__ */ t("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: r, strokeWidth: "2" }),
472
+ /* @__PURE__ */ t("circle", { cx: "100", cy: "100", r: "25", fill: l, stroke: r, strokeWidth: "2", strokeDasharray: "5 3" }),
473
+ /* @__PURE__ */ t("text", { x: "100", y: "108", textAnchor: "middle", fill: r, fontSize: "24", fontWeight: "300", children: "0" })
474
+ ] });
475
+ }, Qt = (o) => {
476
+ const { size: i, secondaryColor: r, status: e } = y(o);
477
+ return /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
478
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: r }),
479
+ /* @__PURE__ */ t("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: r }),
480
+ /* @__PURE__ */ t("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: r }),
481
+ /* @__PURE__ */ t("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: r }),
482
+ /* @__PURE__ */ t("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: e.error.main, strokeWidth: "8", strokeLinecap: "round" }),
483
+ /* @__PURE__ */ t("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: e.error.main, strokeWidth: "8", strokeLinecap: "round" }),
484
+ /* @__PURE__ */ t("path", { d: "M45 140 Q45 160 65 160", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
485
+ /* @__PURE__ */ t("path", { d: "M35 145 Q35 170 65 170", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
486
+ /* @__PURE__ */ t("path", { d: "M155 140 Q155 160 135 160", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
487
+ /* @__PURE__ */ t("path", { d: "M165 145 Q165 170 135 170", stroke: r, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
488
+ ] });
489
+ }, Vt = {
490
+ "empty-table": Wt,
491
+ "empty-drafts": bt,
492
+ "getting-started": It,
493
+ "empty-documents": zt,
494
+ "empty-insights": St,
495
+ "no-results": Mt,
496
+ "error-generic": Dt,
497
+ "error-404": Tt,
498
+ "error-500": Et,
499
+ "error-permission": Bt,
500
+ upload: G,
501
+ success: Pt,
502
+ "no-notifications": Ft,
503
+ "no-data": Nt,
504
+ offline: Qt
505
+ }, Jt = /* @__PURE__ */ z.forwardRef(
506
+ function({
507
+ illustration: i,
508
+ title: r,
509
+ description: e,
510
+ primaryAction: l,
511
+ secondaryAction: n,
512
+ actions: h,
513
+ size: f = "medium",
514
+ headingLevel: u,
515
+ titleRef: c,
516
+ customIllustration: w,
517
+ slotProps: g,
518
+ className: m,
519
+ sx: k,
520
+ ...v
521
+ }, W) {
522
+ const d = R[f], T = Vt[i], S = v, { id: s, ...x } = st({ rest: v, componentName: "IllustratedMessage" }), p = typeof S.id == "string" ? S.id : void 0, M = h !== void 0 && (l !== void 0 || n !== void 0);
523
+ z.useEffect(() => {
524
+ process.env.NODE_ENV !== "production" && M && ft(
525
+ "IllustratedMessage.actions",
526
+ "IllustratedMessage: `actions` replaces `primaryAction` and `secondaryAction`; pass one or the other. The built-in actions were not rendered."
527
+ );
528
+ }, [M]);
529
+ const I = E({ sx: { mb: 1, fontWeight: 600 } }, g?.title, {
530
+ componentName: "IllustratedMessage",
531
+ slotName: "title"
532
+ }), O = E({ sx: { mb: d.spacing } }, g?.description, {
533
+ componentName: "IllustratedMessage",
534
+ slotName: "description"
535
+ }), _ = E({ sx: { mt: d.spacing, alignItems: "center" } }, g?.actions, {
536
+ componentName: "IllustratedMessage",
537
+ slotName: "actions"
538
+ }), j = (l || n) && /* @__PURE__ */ a(A, { children: [
539
+ l && (l.href ? /* @__PURE__ */ t(
540
+ D,
541
+ {
542
+ variant: "contained",
543
+ href: l.href,
544
+ onClick: l.onClick,
545
+ children: l.label
546
+ }
547
+ ) : /* @__PURE__ */ t(
548
+ D,
549
+ {
550
+ variant: "contained",
551
+ onClick: l.onClick,
552
+ children: l.label
553
+ }
554
+ )),
555
+ n && (n.href ? /* @__PURE__ */ t(
556
+ Q,
557
+ {
558
+ href: n.href,
559
+ onClick: n.onClick,
560
+ underline: "hover",
561
+ sx: { cursor: "pointer" },
562
+ children: n.label
563
+ }
564
+ ) : /* @__PURE__ */ t(
565
+ Q,
566
+ {
567
+ component: "button",
568
+ onClick: n.onClick,
569
+ underline: "hover",
570
+ sx: { cursor: "pointer" },
571
+ children: n.label
572
+ }
573
+ ))
574
+ ] }), N = h ?? j;
575
+ return /* @__PURE__ */ a(
576
+ b,
1343
577
  {
1344
- ref: x,
1345
- sx: {
1346
- textAlign: "center",
1347
- p: p.padding,
1348
- maxWidth: c === "small" ? 300 : c === "large" ? 500 : 400,
1349
- mx: "auto",
1350
- ...h
1351
- },
578
+ ref: W,
579
+ ...x,
580
+ id: p,
581
+ className: m,
582
+ sx: F(
583
+ {
584
+ textAlign: "center",
585
+ p: d.padding,
586
+ maxWidth: f === "small" ? 300 : f === "large" ? 500 : 400,
587
+ mx: "auto"
588
+ },
589
+ k
590
+ ),
1352
591
  children: [
1353
- /* @__PURE__ */ e(
1354
- C,
592
+ /* @__PURE__ */ t(
593
+ b,
1355
594
  {
1356
595
  sx: {
1357
- mb: p.spacing,
596
+ mb: d.spacing,
1358
597
  display: "flex",
1359
598
  justifyContent: "center",
1360
599
  alignItems: "center"
1361
600
  },
1362
- role: "img",
1363
601
  "aria-hidden": "true",
1364
- children: s || /* @__PURE__ */ e(v, { size: p.illustrationSize })
602
+ children: w || /* @__PURE__ */ t(T, { size: d.illustrationSize })
1365
603
  }
1366
604
  ),
1367
- /* @__PURE__ */ e(
1368
- S,
605
+ /* @__PURE__ */ t(
606
+ C,
1369
607
  {
1370
- variant: p.titleVariant,
1371
- sx: { mb: 1, fontWeight: 600 },
1372
- children: t
608
+ variant: d.titleVariant,
609
+ component: ct(u ?? Ct[f]),
610
+ ref: c,
611
+ tabIndex: c ? -1 : void 0,
612
+ ...I,
613
+ children: r
1373
614
  }
1374
615
  ),
1375
- o && /* @__PURE__ */ e(
1376
- S,
616
+ e && /* @__PURE__ */ t(
617
+ C,
1377
618
  {
1378
- variant: p.descriptionVariant,
1379
- color: "text.secondary",
1380
- sx: { mb: p.spacing },
1381
- children: o
619
+ variant: d.descriptionVariant,
620
+ color: "textSecondary",
621
+ ...O,
622
+ children: e
1382
623
  }
1383
624
  ),
1384
- (n || l) && /* @__PURE__ */ f(
1385
- P,
1386
- {
1387
- spacing: 1.5,
1388
- sx: { mt: p.spacing, alignItems: "center" },
1389
- children: [
1390
- n && (n.href ? /* @__PURE__ */ e(
1391
- E,
1392
- {
1393
- variant: "contained",
1394
- href: n.href,
1395
- onClick: n.onClick,
1396
- children: n.label
1397
- }
1398
- ) : /* @__PURE__ */ e(
1399
- E,
1400
- {
1401
- variant: "contained",
1402
- onClick: n.onClick,
1403
- children: n.label
1404
- }
1405
- )),
1406
- l && (l.href ? /* @__PURE__ */ e(
1407
- U,
1408
- {
1409
- href: l.href,
1410
- onClick: l.onClick,
1411
- underline: "hover",
1412
- sx: { cursor: "pointer" },
1413
- children: l.label
1414
- }
1415
- ) : /* @__PURE__ */ e(
1416
- U,
1417
- {
1418
- component: "button",
1419
- onClick: l.onClick,
1420
- underline: "hover",
1421
- sx: { cursor: "pointer" },
1422
- children: l.label
1423
- }
1424
- ))
1425
- ]
1426
- }
1427
- )
625
+ N && /* @__PURE__ */ t(B, { spacing: 1.5, ..._, children: N })
1428
626
  ]
1429
627
  }
1430
628
  );
1431
629
  }
1432
- ), Bi = M.forwardRef(
630
+ ), Xt = /* @__PURE__ */ z.forwardRef(
1433
631
  function({
1434
632
  title: i = "Drag and drop your file",
1435
- description: t = "or click to browse from your computer",
1436
- acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
1437
- browseLabel: n = "Browse Files",
1438
- onDrop: l,
1439
- onBrowse: c,
1440
- isDragging: s = !1,
1441
- size: h = "medium",
1442
- sx: x
1443
- }, p) {
1444
- const [v, w] = M.useState(s), g = X[h], L = (m) => {
1445
- m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
633
+ description: r = "or click to browse from your computer",
634
+ acceptedTypes: e = "PNG, JPG, PDF up to 10MB",
635
+ browseLabel: l = "Browse Files",
636
+ onDrop: n,
637
+ onBrowse: h,
638
+ isDragging: f = !1,
639
+ size: u = "medium",
640
+ sx: c
641
+ }, w) {
642
+ const [g, m] = z.useState(f), k = R[u], v = (d) => {
643
+ d.preventDefault(), d.stopPropagation(), d.type === "dragenter" || d.type === "dragover" ? m(!0) : d.type === "dragleave" && m(!1);
1446
644
  };
1447
- return /* @__PURE__ */ f(
1448
- C,
645
+ return /* @__PURE__ */ a(
646
+ b,
1449
647
  {
1450
- ref: p,
1451
- onDragEnter: L,
1452
- onDragLeave: L,
1453
- onDragOver: L,
1454
- onDrop: (m) => {
1455
- m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
648
+ ref: w,
649
+ onDragEnter: v,
650
+ onDragLeave: v,
651
+ onDragOver: v,
652
+ onDrop: (d) => {
653
+ d.preventDefault(), d.stopPropagation(), m(!1), d.dataTransfer.files && d.dataTransfer.files.length > 0 && n?.(d.dataTransfer.files);
1456
654
  },
1457
- sx: {
1458
- p: g.padding,
1459
- border: "2px dashed",
1460
- borderColor: v ? "primary.main" : "grey.300",
1461
- borderRadius: 3,
1462
- // 12px - consistent with cards
1463
- bgcolor: v ? "primary.50" : "grey.50",
1464
- textAlign: "center",
1465
- cursor: "pointer",
1466
- transition: "all 0.2s ease",
1467
- "&:hover": {
1468
- borderColor: "primary.main",
1469
- bgcolor: "primary.50"
655
+ sx: F(
656
+ {
657
+ p: k.padding,
658
+ border: "2px dashed",
659
+ borderColor: g ? "primary.main" : "grey.300",
660
+ borderRadius: 3,
661
+ // 12px - consistent with cards
662
+ // The page background: grey.50 in light (unchanged), and a dark surface in dark mode,
663
+ // where MUI's grey.50 put light text on a near-white fill (E-52+ axe, dark).
664
+ bgcolor: g ? "primary.50" : "background.default",
665
+ textAlign: "center",
666
+ cursor: "pointer",
667
+ transition: "all 0.2s ease",
668
+ "&:hover": {
669
+ borderColor: "primary.main",
670
+ bgcolor: "primary.50"
671
+ }
1470
672
  },
1471
- ...x
1472
- },
1473
- onClick: c,
673
+ c
674
+ ),
675
+ onClick: h,
1474
676
  children: [
1475
- /* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(Y, { size: g.illustrationSize * 0.7 }) }),
1476
- /* @__PURE__ */ e(S, { variant: g.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
1477
- /* @__PURE__ */ e(S, { variant: g.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
1478
- /* @__PURE__ */ e(E, { variant: "outlined", size: h === "small" ? "small" : "medium", children: n }),
1479
- o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", sx: { mt: 2, display: "block" }, children: o })
677
+ /* @__PURE__ */ t(b, { sx: { mb: 2 }, children: /* @__PURE__ */ t(G, { size: k.illustrationSize * 0.7 }) }),
678
+ /* @__PURE__ */ t(C, { variant: k.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
679
+ /* @__PURE__ */ t(C, { variant: k.descriptionVariant, color: "textSecondary", sx: { mb: 2 }, children: r }),
680
+ /* @__PURE__ */ t(
681
+ D,
682
+ {
683
+ variant: "outlined",
684
+ size: u === "small" ? "small" : "medium",
685
+ onClick: (d) => {
686
+ d.stopPropagation(), h?.();
687
+ },
688
+ children: l
689
+ }
690
+ ),
691
+ e && /* @__PURE__ */ t(C, { variant: "caption", color: "textSecondary", sx: { mt: 2, display: "block" }, children: e })
1480
692
  ]
1481
693
  }
1482
694
  );
1483
695
  }
1484
696
  );
1485
697
  export {
1486
- Ii as C,
1487
- Pi as I,
1488
- Ae as M,
1489
- Ci as S,
1490
- Di as T,
1491
- Bi as U,
1492
- Wi as a,
1493
- Mi as b,
1494
- qe as c,
1495
- Li as d,
1496
- Si as g,
1497
- T as s,
1498
- zi as u
698
+ Jt as I,
699
+ Ut as S,
700
+ vt as T,
701
+ Xt as U,
702
+ $t as a,
703
+ Ht as u
1499
704
  };