@burdenoff/microfe-subscriberbot 2026.1107.8 → 2026.1110.2

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 (482) hide show
  1. package/dist/generated/global-operations.d.ts +4 -2
  2. package/dist/generated/global-types.d.ts +2 -22
  3. package/dist/generated/wspace-operations.d.ts +4 -2
  4. package/dist/generated/wspace-types.d.ts +4 -24
  5. package/dist/index.d.ts +0 -1
  6. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  7. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  8. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  9. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  10. package/dist/stories/Accessibility.stories.d.ts +2 -4
  11. package/dist/stories/EmptyState.stories.d.ts +0 -2
  12. package/dist/stories/MetricsCard.stories.d.ts +0 -2
  13. package/dist/stories/StatusBadge.stories.d.ts +0 -2
  14. package/dist/stories/pages/AgentDetailPage.stories.d.ts +0 -2
  15. package/dist/stories/pages/AgentNewPage.stories.d.ts +0 -2
  16. package/dist/stories/pages/AgentsListPage.stories.d.ts +0 -2
  17. package/dist/stories/pages/AssetVaultPage.stories.d.ts +0 -2
  18. package/dist/stories/pages/BankConnectionsPage.stories.d.ts +0 -2
  19. package/dist/stories/pages/DashboardPage.stories.d.ts +0 -2
  20. package/dist/stories/pages/DecisionDetailPage.stories.d.ts +0 -2
  21. package/dist/stories/pages/DecisionsPage.stories.d.ts +0 -2
  22. package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts +0 -2
  23. package/dist/stories/pages/InboxPage.stories.d.ts +0 -2
  24. package/dist/stories/pages/InboxReadState.stories.d.ts +1 -3
  25. package/dist/stories/pages/InsightsPage.stories.d.ts +0 -2
  26. package/dist/stories/pages/InvoicesPage.stories.d.ts +0 -2
  27. package/dist/stories/pages/NegotiationDetailPage.stories.d.ts +0 -2
  28. package/dist/stories/pages/NegotiationNewPage.stories.d.ts +0 -2
  29. package/dist/stories/pages/NegotiationsPage.stories.d.ts +0 -2
  30. package/dist/stories/pages/ProcurementDetailPage.stories.d.ts +0 -2
  31. package/dist/stories/pages/ProcurementNewPage.stories.d.ts +0 -2
  32. package/dist/stories/pages/ProcurementPage.stories.d.ts +0 -2
  33. package/dist/stories/pages/ProviderDetailPage.stories.d.ts +0 -2
  34. package/dist/stories/pages/ProviderNewPage.stories.d.ts +0 -2
  35. package/dist/stories/pages/ProvidersListPage.stories.d.ts +0 -2
  36. package/dist/stories/pages/RelationshipDetailPage.stories.d.ts +0 -2
  37. package/dist/stories/pages/RelationshipNewPage.stories.d.ts +0 -2
  38. package/dist/stories/pages/RelationshipsListPage.stories.d.ts +0 -2
  39. package/dist/stories/pages/RenewalsPage.stories.d.ts +0 -2
  40. package/dist/stories/pages/SavingsPage.stories.d.ts +0 -2
  41. package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts +0 -2
  42. package/dist/stories/pages/WorkflowsPage.stories.d.ts +0 -2
  43. package/dist/stories/support/PageHarness.d.ts +0 -2
  44. package/dist/stories/support/bankingFixtures.d.ts +0 -2
  45. package/dist/stories/support/fixtures.d.ts +0 -2
  46. package/dist/stories/support/graphqlMock.d.ts +0 -2
  47. package/dist/stories/support/handlers.d.ts +0 -2
  48. package/dist/stories/support/negotiationFixtures.d.ts +0 -2
  49. package/dist/stories/support/phoneViewport.d.ts +0 -2
  50. package/dist/stories/support/play.d.ts +0 -2
  51. package/dist/stories/support/procurementFixtures.d.ts +0 -2
  52. package/dist/subscriberbot/SubscriberBotRoot.d.ts +0 -2
  53. package/dist/subscriberbot/SubscriberBotRoot.js +10 -7
  54. package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
  55. package/dist/subscriberbot/SubscriberBotRoutes.d.ts +0 -2
  56. package/dist/subscriberbot/SubscriberBotRoutes.js +1 -2
  57. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  58. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts +0 -2
  59. package/dist/subscriberbot/admin/AdminDashboardPage.js +9 -10
  60. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  61. package/dist/subscriberbot/admin/AdminRoot.d.ts +0 -2
  62. package/dist/subscriberbot/admin/AdminRoot.js +2 -3
  63. package/dist/subscriberbot/admin/AdminRoot.js.map +1 -1
  64. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts +0 -2
  65. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +56 -57
  66. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  67. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts +0 -2
  68. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +107 -108
  69. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  70. package/dist/subscriberbot/admin/index.d.ts +0 -1
  71. package/dist/subscriberbot/admin/index.js +1 -1
  72. package/dist/subscriberbot/components/EmptyState.d.ts +0 -2
  73. package/dist/subscriberbot/components/EmptyState.js +1 -2
  74. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  75. package/dist/subscriberbot/components/MetricsCard.d.ts +0 -2
  76. package/dist/subscriberbot/components/MetricsCard.js +1 -2
  77. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  78. package/dist/subscriberbot/components/Modal.d.ts +0 -2
  79. package/dist/subscriberbot/components/Modal.js +2 -3
  80. package/dist/subscriberbot/components/Modal.js.map +1 -1
  81. package/dist/subscriberbot/components/PageLayout.d.ts +0 -2
  82. package/dist/subscriberbot/components/PageLayout.js +1 -2
  83. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  84. package/dist/subscriberbot/components/PostureOptions.d.ts +1 -3
  85. package/dist/subscriberbot/components/PostureOptions.js +7 -8
  86. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  87. package/dist/subscriberbot/components/StateViews.d.ts +0 -2
  88. package/dist/subscriberbot/components/StateViews.js +1 -2
  89. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  90. package/dist/subscriberbot/components/StatusBadge.d.ts +0 -2
  91. package/dist/subscriberbot/components/StatusBadge.js +2 -3
  92. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  93. package/dist/subscriberbot/components/decisions/DecisionBanners.d.ts +0 -2
  94. package/dist/subscriberbot/components/decisions/DecisionBanners.js +7 -8
  95. package/dist/subscriberbot/components/decisions/DecisionBanners.js.map +1 -1
  96. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts +0 -2
  97. package/dist/subscriberbot/components/decisions/DecisionCard.js +65 -66
  98. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  99. package/dist/subscriberbot/components/decisions/decisionModel.d.ts +0 -2
  100. package/dist/subscriberbot/components/decisions/decisionModel.js +2 -3
  101. package/dist/subscriberbot/components/decisions/decisionModel.js.map +1 -1
  102. package/dist/subscriberbot/components/decisions/index.d.ts +0 -1
  103. package/dist/subscriberbot/components/decisions/index.js +4 -3
  104. package/dist/subscriberbot/components/index.d.ts +0 -1
  105. package/dist/subscriberbot/components/index.js +8 -7
  106. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts +0 -2
  107. package/dist/subscriberbot/components/mobile/MobileDashboard.js +23 -24
  108. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  109. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts +0 -2
  110. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +40 -49
  111. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  112. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts +0 -2
  113. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -2
  114. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  115. package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts +0 -2
  116. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +1 -2
  117. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -1
  118. package/dist/subscriberbot/components/mobile/index.d.ts +0 -1
  119. package/dist/subscriberbot/components/mobile/index.js +4 -3
  120. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts +0 -2
  121. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +1 -2
  122. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -1
  123. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts +0 -2
  124. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +4 -5
  125. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  126. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts +0 -2
  127. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +4 -5
  128. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  129. package/dist/subscriberbot/components/negotiations/index.d.ts +0 -1
  130. package/dist/subscriberbot/components/negotiations/index.js +5 -4
  131. package/dist/subscriberbot/components/negotiations/labels.d.ts +0 -2
  132. package/dist/subscriberbot/components/negotiations/labels.js +1 -2
  133. package/dist/subscriberbot/components/negotiations/labels.js.map +1 -1
  134. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts +0 -2
  135. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +4 -5
  136. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  137. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts +0 -2
  138. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +1 -2
  139. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -1
  140. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts +0 -2
  141. package/dist/subscriberbot/components/procurement/ProcurementThread.js +4 -5
  142. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  143. package/dist/subscriberbot/components/procurement/index.d.ts +0 -1
  144. package/dist/subscriberbot/components/procurement/index.js +5 -4
  145. package/dist/subscriberbot/components/procurement/labels.d.ts +0 -2
  146. package/dist/subscriberbot/components/procurement/labels.js +1 -2
  147. package/dist/subscriberbot/components/procurement/labels.js.map +1 -1
  148. package/dist/subscriberbot/components/savings/SavingsCards.d.ts +0 -2
  149. package/dist/subscriberbot/components/savings/SavingsCards.js +90 -91
  150. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  151. package/dist/subscriberbot/components/savings/index.d.ts +0 -1
  152. package/dist/subscriberbot/components/savings/index.js +3 -2
  153. package/dist/subscriberbot/components/savings/savingsModel.d.ts +0 -2
  154. package/dist/subscriberbot/components/savings/savingsModel.js +2 -3
  155. package/dist/subscriberbot/components/savings/savingsModel.js.map +1 -1
  156. package/dist/subscriberbot/components/viz.d.ts +0 -2
  157. package/dist/subscriberbot/components/viz.js +2 -3
  158. package/dist/subscriberbot/components/viz.js.map +1 -1
  159. package/dist/subscriberbot/config/assistantUsecases.d.ts +0 -1
  160. package/dist/subscriberbot/context/SubscriberBotContext.d.ts +0 -2
  161. package/dist/subscriberbot/context/SubscriberBotContext.js +3 -3
  162. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  163. package/dist/subscriberbot/context/index.d.ts +0 -1
  164. package/dist/subscriberbot/context/index.js +1 -1
  165. package/dist/subscriberbot/hooks/index.d.ts +0 -1
  166. package/dist/subscriberbot/hooks/index.js +2 -2
  167. package/dist/subscriberbot/hooks/useAutonomousAgentMode.d.ts +0 -2
  168. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js +2 -3
  169. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js.map +1 -1
  170. package/dist/subscriberbot/hooks/useBankingApi.d.ts +0 -2
  171. package/dist/subscriberbot/hooks/useBankingApi.js +2 -3
  172. package/dist/subscriberbot/hooks/useBankingApi.js.map +1 -1
  173. package/dist/subscriberbot/hooks/useCompactViewport.d.ts +0 -1
  174. package/dist/subscriberbot/hooks/useCompactViewport.js +1 -2
  175. package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -1
  176. package/dist/subscriberbot/hooks/useFormError.d.ts +0 -1
  177. package/dist/subscriberbot/hooks/useFormError.js +1 -2
  178. package/dist/subscriberbot/hooks/useFormError.js.map +1 -1
  179. package/dist/subscriberbot/hooks/useFormatters.d.ts +0 -1
  180. package/dist/subscriberbot/hooks/useFormatters.js +1 -2
  181. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -1
  182. package/dist/subscriberbot/hooks/useNegotiationApi.d.ts +0 -2
  183. package/dist/subscriberbot/hooks/useNegotiationApi.js +2 -3
  184. package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -1
  185. package/dist/subscriberbot/hooks/useProcurementApi.d.ts +0 -2
  186. package/dist/subscriberbot/hooks/useProcurementApi.js +2 -3
  187. package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -1
  188. package/dist/subscriberbot/hooks/useRouteSelection.d.ts +0 -1
  189. package/dist/subscriberbot/hooks/useRouteSelection.js +3 -3
  190. package/dist/subscriberbot/hooks/useRouteSelection.js.map +1 -1
  191. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +0 -2
  192. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -2
  193. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  194. package/dist/subscriberbot/hooks/useTr.d.ts +0 -1
  195. package/dist/subscriberbot/hooks/useTr.js +1 -2
  196. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  197. package/dist/subscriberbot/index.d.ts +0 -1
  198. package/dist/subscriberbot/index.js +9 -8
  199. package/dist/subscriberbot/pages/AssetVaultPage.d.ts +0 -2
  200. package/dist/subscriberbot/pages/AssetVaultPage.js +34 -35
  201. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  202. package/dist/subscriberbot/pages/DashboardPage.d.ts +1 -2
  203. package/dist/subscriberbot/pages/DashboardPage.js +86 -87
  204. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  205. package/dist/subscriberbot/pages/InboxPage.d.ts +1 -2
  206. package/dist/subscriberbot/pages/InboxPage.js +194 -199
  207. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  208. package/dist/subscriberbot/pages/InsightsPage.d.ts +0 -2
  209. package/dist/subscriberbot/pages/InsightsPage.js +28 -29
  210. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  211. package/dist/subscriberbot/pages/InvoicesPage.d.ts +1 -2
  212. package/dist/subscriberbot/pages/InvoicesPage.js +179 -188
  213. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  214. package/dist/subscriberbot/pages/RenewalsPage.d.ts +0 -2
  215. package/dist/subscriberbot/pages/RenewalsPage.js +293 -298
  216. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  217. package/dist/subscriberbot/pages/SavingsPage.d.ts +0 -2
  218. package/dist/subscriberbot/pages/SavingsPage.js +25 -26
  219. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  220. package/dist/subscriberbot/pages/WorkflowsPage.d.ts +1 -2
  221. package/dist/subscriberbot/pages/WorkflowsPage.js +67 -68
  222. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  223. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +1 -2
  224. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +126 -127
  225. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  226. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +1 -2
  227. package/dist/subscriberbot/pages/agents/AgentNewPage.js +10 -11
  228. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  229. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +1 -2
  230. package/dist/subscriberbot/pages/agents/AgentsListPage.js +23 -24
  231. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  232. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +1 -2
  233. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +337 -359
  234. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  235. package/dist/subscriberbot/pages/banking/ConnectBankModal.d.ts +1 -3
  236. package/dist/subscriberbot/pages/banking/ConnectBankModal.js +22 -27
  237. package/dist/subscriberbot/pages/banking/ConnectBankModal.js.map +1 -1
  238. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +1 -2
  239. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +25 -26
  240. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  241. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +1 -2
  242. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +34 -35
  243. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  244. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +1 -2
  245. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +125 -130
  246. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  247. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +1 -2
  248. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +94 -95
  249. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  250. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +1 -2
  251. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +15 -16
  252. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  253. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +1 -2
  254. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +20 -21
  255. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  256. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +1 -2
  257. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +86 -87
  258. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  259. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +1 -2
  260. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +164 -165
  261. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  262. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +1 -2
  263. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +20 -21
  264. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  265. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +1 -2
  266. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +350 -351
  267. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  268. package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts +2 -3
  269. package/dist/subscriberbot/pages/providers/ProviderInsights.js +95 -96
  270. package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -1
  271. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +1 -2
  272. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +11 -12
  273. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  274. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +1 -2
  275. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +62 -63
  276. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  277. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +1 -2
  278. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +166 -172
  279. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  280. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +1 -2
  281. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +12 -13
  282. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  283. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +1 -2
  284. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +21 -22
  285. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  286. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts +1 -3
  287. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +242 -255
  288. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  289. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +0 -2
  290. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +2 -3
  291. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  292. package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts +0 -1
  293. package/dist/subscriberbot/services/createSandboxAssistantTransport.js +1 -2
  294. package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -1
  295. package/dist/subscriberbot/store/index.d.ts +0 -1
  296. package/dist/subscriberbot/store/index.js +1 -1
  297. package/dist/subscriberbot/store/subscriberbotStore.d.ts +1 -3
  298. package/dist/subscriberbot/store/subscriberbotStore.js +1 -2
  299. package/dist/subscriberbot/store/subscriberbotStore.js.map +1 -1
  300. package/dist/subscriberbot/types/assistant.d.ts +0 -2
  301. package/dist/subscriberbot/types/banking.d.ts +0 -2
  302. package/dist/subscriberbot/types/index.d.ts +0 -2
  303. package/dist/subscriberbot/types/negotiation.d.ts +0 -2
  304. package/dist/subscriberbot/types/procurement.d.ts +0 -1
  305. package/dist/subscriberbot/utils/bankRedirectLink.d.ts +0 -2
  306. package/dist/subscriberbot/utils/bankRedirectLink.js +18 -19
  307. package/dist/subscriberbot/utils/bankRedirectLink.js.map +1 -1
  308. package/dist/subscriberbot/utils/chartScale.d.ts +0 -1
  309. package/dist/subscriberbot/utils/chartScale.js +1 -2
  310. package/dist/subscriberbot/utils/chartScale.js.map +1 -1
  311. package/dist/subscriberbot/utils/cn.d.ts +0 -2
  312. package/dist/subscriberbot/utils/cn.js +2 -3
  313. package/dist/subscriberbot/utils/cn.js.map +1 -1
  314. package/dist/subscriberbot/utils/formatters.d.ts +0 -1
  315. package/dist/subscriberbot/utils/formatters.js +4 -5
  316. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  317. package/dist/subscriberbot/utils/index.d.ts +0 -1
  318. package/dist/subscriberbot/utils/navigation.d.ts +0 -1
  319. package/dist/subscriberbot/utils/navigation.js +1 -2
  320. package/dist/subscriberbot/utils/navigation.js.map +1 -1
  321. package/dist/subscriberbot/utils/pageContext.d.ts +0 -1
  322. package/dist/subscriberbot/utils/pageContext.js +3 -4
  323. package/dist/subscriberbot/utils/pageContext.js.map +1 -1
  324. package/dist/subscriberbot/utils/plaidLink.d.ts +0 -1
  325. package/dist/subscriberbot/utils/plaidLink.js +21 -22
  326. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  327. package/dist/subscriberbot/utils/portfolio.d.ts +0 -2
  328. package/dist/subscriberbot/utils/portfolio.js +5 -6
  329. package/dist/subscriberbot/utils/portfolio.js.map +1 -1
  330. package/dist/subscriberbot/utils/renewals.d.ts +0 -2
  331. package/dist/subscriberbot/utils/renewals.js +1 -2
  332. package/dist/subscriberbot/utils/renewals.js.map +1 -1
  333. package/package.json +73 -56
  334. package/dist/generated/global-operations.d.ts.map +0 -1
  335. package/dist/generated/global-types.d.ts.map +0 -1
  336. package/dist/generated/wspace-operations.d.ts.map +0 -1
  337. package/dist/generated/wspace-types.d.ts.map +0 -1
  338. package/dist/index.d.ts.map +0 -1
  339. package/dist/stories/Accessibility.stories.d.ts.map +0 -1
  340. package/dist/stories/EmptyState.stories.d.ts.map +0 -1
  341. package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
  342. package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
  343. package/dist/stories/pages/AgentDetailPage.stories.d.ts.map +0 -1
  344. package/dist/stories/pages/AgentNewPage.stories.d.ts.map +0 -1
  345. package/dist/stories/pages/AgentsListPage.stories.d.ts.map +0 -1
  346. package/dist/stories/pages/AssetVaultPage.stories.d.ts.map +0 -1
  347. package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +0 -1
  348. package/dist/stories/pages/DashboardPage.stories.d.ts.map +0 -1
  349. package/dist/stories/pages/DecisionDetailPage.stories.d.ts.map +0 -1
  350. package/dist/stories/pages/DecisionsPage.stories.d.ts.map +0 -1
  351. package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +0 -1
  352. package/dist/stories/pages/InboxPage.stories.d.ts.map +0 -1
  353. package/dist/stories/pages/InboxReadState.stories.d.ts.map +0 -1
  354. package/dist/stories/pages/InsightsPage.stories.d.ts.map +0 -1
  355. package/dist/stories/pages/InvoicesPage.stories.d.ts.map +0 -1
  356. package/dist/stories/pages/NegotiationDetailPage.stories.d.ts.map +0 -1
  357. package/dist/stories/pages/NegotiationNewPage.stories.d.ts.map +0 -1
  358. package/dist/stories/pages/NegotiationsPage.stories.d.ts.map +0 -1
  359. package/dist/stories/pages/ProcurementDetailPage.stories.d.ts.map +0 -1
  360. package/dist/stories/pages/ProcurementNewPage.stories.d.ts.map +0 -1
  361. package/dist/stories/pages/ProcurementPage.stories.d.ts.map +0 -1
  362. package/dist/stories/pages/ProviderDetailPage.stories.d.ts.map +0 -1
  363. package/dist/stories/pages/ProviderNewPage.stories.d.ts.map +0 -1
  364. package/dist/stories/pages/ProvidersListPage.stories.d.ts.map +0 -1
  365. package/dist/stories/pages/RelationshipDetailPage.stories.d.ts.map +0 -1
  366. package/dist/stories/pages/RelationshipNewPage.stories.d.ts.map +0 -1
  367. package/dist/stories/pages/RelationshipsListPage.stories.d.ts.map +0 -1
  368. package/dist/stories/pages/RenewalsPage.stories.d.ts.map +0 -1
  369. package/dist/stories/pages/SavingsPage.stories.d.ts.map +0 -1
  370. package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts.map +0 -1
  371. package/dist/stories/pages/WorkflowsPage.stories.d.ts.map +0 -1
  372. package/dist/stories/support/PageHarness.d.ts.map +0 -1
  373. package/dist/stories/support/bankingFixtures.d.ts.map +0 -1
  374. package/dist/stories/support/fixtures.d.ts.map +0 -1
  375. package/dist/stories/support/graphqlMock.d.ts.map +0 -1
  376. package/dist/stories/support/handlers.d.ts.map +0 -1
  377. package/dist/stories/support/negotiationFixtures.d.ts.map +0 -1
  378. package/dist/stories/support/phoneViewport.d.ts.map +0 -1
  379. package/dist/stories/support/play.d.ts.map +0 -1
  380. package/dist/stories/support/procurementFixtures.d.ts.map +0 -1
  381. package/dist/subscriberbot/SubscriberBotRoot.d.ts.map +0 -1
  382. package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +0 -1
  383. package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +0 -1
  384. package/dist/subscriberbot/admin/AdminRoot.d.ts.map +0 -1
  385. package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +0 -1
  386. package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +0 -1
  387. package/dist/subscriberbot/admin/index.d.ts.map +0 -1
  388. package/dist/subscriberbot/components/EmptyState.d.ts.map +0 -1
  389. package/dist/subscriberbot/components/MetricsCard.d.ts.map +0 -1
  390. package/dist/subscriberbot/components/Modal.d.ts.map +0 -1
  391. package/dist/subscriberbot/components/PageLayout.d.ts.map +0 -1
  392. package/dist/subscriberbot/components/PostureOptions.d.ts.map +0 -1
  393. package/dist/subscriberbot/components/StateViews.d.ts.map +0 -1
  394. package/dist/subscriberbot/components/StatusBadge.d.ts.map +0 -1
  395. package/dist/subscriberbot/components/decisions/DecisionBanners.d.ts.map +0 -1
  396. package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +0 -1
  397. package/dist/subscriberbot/components/decisions/decisionModel.d.ts.map +0 -1
  398. package/dist/subscriberbot/components/decisions/index.d.ts.map +0 -1
  399. package/dist/subscriberbot/components/index.d.ts.map +0 -1
  400. package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +0 -1
  401. package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +0 -1
  402. package/dist/subscriberbot/components/mobile/MobileScreen.d.ts.map +0 -1
  403. package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts.map +0 -1
  404. package/dist/subscriberbot/components/mobile/index.d.ts.map +0 -1
  405. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts.map +0 -1
  406. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +0 -1
  407. package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +0 -1
  408. package/dist/subscriberbot/components/negotiations/index.d.ts.map +0 -1
  409. package/dist/subscriberbot/components/negotiations/labels.d.ts.map +0 -1
  410. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +0 -1
  411. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts.map +0 -1
  412. package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +0 -1
  413. package/dist/subscriberbot/components/procurement/index.d.ts.map +0 -1
  414. package/dist/subscriberbot/components/procurement/labels.d.ts.map +0 -1
  415. package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +0 -1
  416. package/dist/subscriberbot/components/savings/index.d.ts.map +0 -1
  417. package/dist/subscriberbot/components/savings/savingsModel.d.ts.map +0 -1
  418. package/dist/subscriberbot/components/viz.d.ts.map +0 -1
  419. package/dist/subscriberbot/config/assistantUsecases.d.ts.map +0 -1
  420. package/dist/subscriberbot/context/SubscriberBotContext.d.ts.map +0 -1
  421. package/dist/subscriberbot/context/index.d.ts.map +0 -1
  422. package/dist/subscriberbot/hooks/index.d.ts.map +0 -1
  423. package/dist/subscriberbot/hooks/useAutonomousAgentMode.d.ts.map +0 -1
  424. package/dist/subscriberbot/hooks/useBankingApi.d.ts.map +0 -1
  425. package/dist/subscriberbot/hooks/useCompactViewport.d.ts.map +0 -1
  426. package/dist/subscriberbot/hooks/useFormError.d.ts.map +0 -1
  427. package/dist/subscriberbot/hooks/useFormatters.d.ts.map +0 -1
  428. package/dist/subscriberbot/hooks/useNegotiationApi.d.ts.map +0 -1
  429. package/dist/subscriberbot/hooks/useProcurementApi.d.ts.map +0 -1
  430. package/dist/subscriberbot/hooks/useRouteSelection.d.ts.map +0 -1
  431. package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +0 -1
  432. package/dist/subscriberbot/hooks/useTr.d.ts.map +0 -1
  433. package/dist/subscriberbot/index.d.ts.map +0 -1
  434. package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +0 -1
  435. package/dist/subscriberbot/pages/DashboardPage.d.ts.map +0 -1
  436. package/dist/subscriberbot/pages/InboxPage.d.ts.map +0 -1
  437. package/dist/subscriberbot/pages/InsightsPage.d.ts.map +0 -1
  438. package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +0 -1
  439. package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +0 -1
  440. package/dist/subscriberbot/pages/SavingsPage.d.ts.map +0 -1
  441. package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +0 -1
  442. package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +0 -1
  443. package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +0 -1
  444. package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +0 -1
  445. package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +0 -1
  446. package/dist/subscriberbot/pages/banking/ConnectBankModal.d.ts.map +0 -1
  447. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +0 -1
  448. package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +0 -1
  449. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +0 -1
  450. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +0 -1
  451. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +0 -1
  452. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +0 -1
  453. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +0 -1
  454. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +0 -1
  455. package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +0 -1
  456. package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +0 -1
  457. package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts.map +0 -1
  458. package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +0 -1
  459. package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +0 -1
  460. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +0 -1
  461. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +0 -1
  462. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +0 -1
  463. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +0 -1
  464. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +0 -1
  465. package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts.map +0 -1
  466. package/dist/subscriberbot/store/index.d.ts.map +0 -1
  467. package/dist/subscriberbot/store/subscriberbotStore.d.ts.map +0 -1
  468. package/dist/subscriberbot/types/assistant.d.ts.map +0 -1
  469. package/dist/subscriberbot/types/banking.d.ts.map +0 -1
  470. package/dist/subscriberbot/types/index.d.ts.map +0 -1
  471. package/dist/subscriberbot/types/negotiation.d.ts.map +0 -1
  472. package/dist/subscriberbot/types/procurement.d.ts.map +0 -1
  473. package/dist/subscriberbot/utils/bankRedirectLink.d.ts.map +0 -1
  474. package/dist/subscriberbot/utils/chartScale.d.ts.map +0 -1
  475. package/dist/subscriberbot/utils/cn.d.ts.map +0 -1
  476. package/dist/subscriberbot/utils/formatters.d.ts.map +0 -1
  477. package/dist/subscriberbot/utils/index.d.ts.map +0 -1
  478. package/dist/subscriberbot/utils/navigation.d.ts.map +0 -1
  479. package/dist/subscriberbot/utils/pageContext.d.ts.map +0 -1
  480. package/dist/subscriberbot/utils/plaidLink.d.ts.map +0 -1
  481. package/dist/subscriberbot/utils/portfolio.d.ts.map +0 -1
  482. package/dist/subscriberbot/utils/renewals.d.ts.map +0 -1
@@ -1,21 +1,21 @@
1
- import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
- import { useTr as t } from "../../hooks/useTr.js";
3
- import { useFormatters as n } from "../../hooks/useFormatters.js";
4
- import { cn as r } from "../../utils/cn.js";
5
- import { PageLayout as i } from "../../components/PageLayout.js";
6
- import { MetricsCard as a } from "../../components/MetricsCard.js";
7
- import { EmptyState as o } from "../../components/EmptyState.js";
8
- import { Modal as s } from "../../components/Modal.js";
9
- import { ErrorView as c, LoadingView as l, Section as u } from "../../components/StateViews.js";
10
- import { BarList as d, MiniProgress as f, Sparkline as p } from "../../components/viz.js";
1
+ import { useFormError as e } from "../../hooks/useFormError.js";
2
+ import { useFormatters as t } from "../../hooks/useFormatters.js";
11
3
  import "../../components/index.js";
12
- import { useEnterpriseSpendDashboard as m, useSetSpendBudget as h, useSpendBudgets as g } from "../../hooks/useSubscriberBotApi.js";
13
- import { useFormError as _ } from "../../hooks/useFormError.js";
4
+ import { useSubscriberBot as n } from "../../context/SubscriberBotContext.js";
5
+ import { PageLayout as r } from "../../components/PageLayout.js";
6
+ import { MetricsCard as i } from "../../components/MetricsCard.js";
7
+ import { EmptyState as a } from "../../components/EmptyState.js";
8
+ import { Modal as o } from "../../components/Modal.js";
9
+ import { ErrorView as s, LoadingView as c, Section as l } from "../../components/StateViews.js";
10
+ import { BarList as u, MiniProgress as d, Sparkline as f } from "../../components/viz.js";
11
+ import { useEnterpriseSpendDashboard as p, useSetSpendBudget as m, useSpendBudgets as h } from "../../hooks/useSubscriberBotApi.js";
12
+ import { useTr as g } from "../../hooks/useTr.js";
13
+ import { cn as _ } from "../../utils/cn.js";
14
14
  import { useMemo as v, useState as y } from "react";
15
15
  import { AlertTriangle as b, Building2 as x, CalendarClock as S, Copy as C, EyeOff as w, Layers as T, PiggyBank as E, ShieldAlert as D, Target as O, Users as k, Wallet as A } from "lucide-react";
16
16
  import { jsx as j, jsxs as M } from "react/jsx-runtime";
17
17
  import { GlassCard as N, PagePurpose as ee } from "@burdenoff/fe-libs/ui";
18
- //#region src/subscriberbot/pages/enterprise/EnterpriseSpendPage.tsx
18
+ // src/subscriberbot/pages/enterprise/EnterpriseSpendPage.tsx
19
19
  var P = {
20
20
  UNCATALOGUED: {
21
21
  key: "enterprise.shadow.reasons.uncatalogued",
@@ -69,12 +69,12 @@ function V(e, t) {
69
69
  }
70
70
  var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
71
71
  className: "space-y-1.5",
72
- children: [/* @__PURE__ */ j(f, {
72
+ children: [/* @__PURE__ */ j(d, {
73
73
  label: n("enterprise.budget.utilization", "Budget utilization"),
74
74
  value: Math.min(e.utilizationPct, 100),
75
75
  tone: e.overBudget ? "negative" : e.utilizationPct >= 85 ? "warning" : "positive"
76
76
  }), /* @__PURE__ */ j("p", {
77
- className: r("text-xs tabular-nums", e.overBudget ? "text-status-error-text" : "text-text-secondary"),
77
+ className: _("text-xs tabular-nums", e.overBudget ? "text-status-error-text" : "text-text-secondary"),
78
78
  children: e.overBudget ? n("enterprise.budget.over", "{{amount}} over a {{budget}} budget", {
79
79
  amount: t(-e.variance),
80
80
  budget: t(e.monthlyBudget)
@@ -98,33 +98,29 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
98
98
  children: e
99
99
  })]
100
100
  }), n]
101
- }), W = ({ currency: e, departments: r, onClose: i }) => {
102
- let { formatCurrency: a } = n(), o = t(), c = g(), u = h(), [d, f] = y(""), [p, m] = y(""), [v, b, x, S] = _(), C = (c.data ?? []).filter((t) => t.currency === e), w = (t, n) => {
101
+ }), W = ({ currency: n, departments: r, onClose: i }) => {
102
+ let { formatCurrency: a } = t(), s = g(), l = h(), u = m(), [d, f] = y(""), [p, _] = y(""), [v, b, x, S] = e(), C = (l.data ?? []).filter((e) => e.currency === n), w = (e, t) => {
103
103
  b(null), u.mutate({
104
- department: t,
105
- currency: e,
106
- monthlyAmount: n
104
+ department: e,
105
+ currency: n,
106
+ monthlyAmount: t
107
107
  }, {
108
108
  onSuccess: () => {
109
- m(""), f("");
109
+ _(""), f("");
110
110
  },
111
- onError: (e) => b(e instanceof Error ? e.message : o("enterprise.budgets.error", "Could not save the budget."))
111
+ onError: (e) => b(e instanceof Error ? e.message : s("enterprise.budgets.error", "Could not save the budget."))
112
112
  });
113
113
  };
114
- return /* @__PURE__ */ M(s, {
115
- title: o("enterprise.budgets.title", "Monthly budgets"),
116
- description: o("enterprise.budgets.description", "Budgets apply to spend billed in {{currency}}. Leave the department empty for the company-wide budget.", { currency: e }),
114
+ return /* @__PURE__ */ M(o, {
115
+ title: s("enterprise.budgets.title", "Monthly budgets"),
116
+ description: s("enterprise.budgets.description", "Budgets apply to spend billed in {{currency}}. Leave the department empty for the company-wide budget.", { currency: n }),
117
117
  onClose: i,
118
118
  maxWidthClassName: "max-w-xl",
119
119
  children: [/* @__PURE__ */ M("form", {
120
120
  onSubmit: (e) => {
121
121
  e.preventDefault();
122
122
  let t = Number(p);
123
- if (!p.trim() || !Number.isFinite(t) || t <= 0) {
124
- b(o("enterprise.budgets.amountRequired", "Enter a monthly amount above zero."), "budget-amount");
125
- return;
126
- }
127
- w(d.trim() || null, t);
123
+ !p.trim() || !Number.isFinite(t) || t <= 0 ? b(s("enterprise.budgets.amountRequired", "Enter a monthly amount above zero."), "budget-amount") : w(d.trim() || null, t);
128
124
  },
129
125
  className: "space-y-4",
130
126
  children: [v && /* @__PURE__ */ j("div", {
@@ -140,7 +136,7 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
140
136
  /* @__PURE__ */ j("label", {
141
137
  htmlFor: "budget-department",
142
138
  className: z,
143
- children: o("enterprise.budgets.department", "Department (optional)")
139
+ children: s("enterprise.budgets.department", "Department (optional)")
144
140
  }),
145
141
  /* @__PURE__ */ j("input", {
146
142
  id: "budget-department",
@@ -148,7 +144,7 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
148
144
  value: d,
149
145
  maxLength: 120,
150
146
  onChange: (e) => f(e.target.value),
151
- placeholder: o("enterprise.budgets.companyWide", "Company-wide"),
147
+ placeholder: s("enterprise.budgets.companyWide", "Company-wide"),
152
148
  className: R
153
149
  }),
154
150
  /* @__PURE__ */ j("datalist", {
@@ -159,7 +155,7 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
159
155
  /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("label", {
160
156
  htmlFor: "budget-amount",
161
157
  className: z,
162
- children: o("enterprise.budgets.amount", "Per month ({{currency}})", { currency: e })
158
+ children: s("enterprise.budgets.amount", "Per month ({{currency}})", { currency: n })
163
159
  }), /* @__PURE__ */ j("input", {
164
160
  id: "budget-amount",
165
161
  ...x("budget-amount"),
@@ -168,29 +164,29 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
168
164
  step: "0.01",
169
165
  inputMode: "decimal",
170
166
  value: p,
171
- onChange: (e) => m(e.target.value),
167
+ onChange: (e) => _(e.target.value),
172
168
  className: R
173
169
  })] }),
174
170
  /* @__PURE__ */ j("button", {
175
171
  type: "submit",
176
172
  disabled: u.isPending,
177
173
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-60",
178
- children: o("enterprise.budgets.save", "Save budget")
174
+ children: s("enterprise.budgets.save", "Save budget")
179
175
  })
180
176
  ]
181
177
  })]
182
178
  }), /* @__PURE__ */ j("div", {
183
179
  className: "mt-6",
184
- children: c.isLoading ? /* @__PURE__ */ j(l, { label: o("enterprise.budgets.loading", "Loading budgets…") }) : C.length === 0 ? /* @__PURE__ */ j("p", {
180
+ children: l.isLoading ? /* @__PURE__ */ j(c, { label: s("enterprise.budgets.loading", "Loading budgets…") }) : C.length === 0 ? /* @__PURE__ */ j("p", {
185
181
  className: "text-sm text-text-secondary",
186
- children: o("enterprise.budgets.none", "No budgets set for {{currency}} yet.", { currency: e })
182
+ children: s("enterprise.budgets.none", "No budgets set for {{currency}} yet.", { currency: n })
187
183
  }) : /* @__PURE__ */ j("ul", {
188
184
  className: "divide-y divide-border-subtle rounded-lg border border-border-subtle",
189
185
  children: C.map((e) => /* @__PURE__ */ M("li", {
190
186
  className: "flex items-center justify-between gap-3 px-4 py-3",
191
187
  children: [/* @__PURE__ */ j("span", {
192
188
  className: "truncate text-sm text-text-primary",
193
- children: e.department ?? o("enterprise.budgets.companyWide", "Company-wide")
189
+ children: e.department ?? s("enterprise.budgets.companyWide", "Company-wide")
194
190
  }), /* @__PURE__ */ M("span", {
195
191
  className: "flex items-center gap-3",
196
192
  children: [/* @__PURE__ */ j("span", {
@@ -200,9 +196,9 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
200
196
  type: "button",
201
197
  onClick: () => w(e.department, null),
202
198
  disabled: u.isPending,
203
- "aria-label": o("enterprise.budgets.removeAria", "Remove the {{name}} budget", { name: e.department ?? o("enterprise.budgets.companyWide", "Company-wide") }),
199
+ "aria-label": s("enterprise.budgets.removeAria", "Remove the {{name}} budget", { name: e.department ?? s("enterprise.budgets.companyWide", "Company-wide") }),
204
200
  className: "text-xs font-medium text-status-error-text hover:underline disabled:opacity-60",
205
- children: o("enterprise.budgets.remove", "Remove")
201
+ children: s("enterprise.budgets.remove", "Remove")
206
202
  })]
207
203
  })]
208
204
  }, e.id))
@@ -211,25 +207,25 @@ var H = ({ status: e, fmt: t, tr: n }) => /* @__PURE__ */ M("div", {
211
207
  });
212
208
  };
213
209
  function G() {
214
- let { formatCurrency: s, formatDate: h } = n(), g = t(), { navigateTo: _ } = e(), [R, z] = y(null), [G, K] = y(!1), q = m(R), J = q.data, Y = v(() => {
215
- let e = J?.currency ?? "USD";
216
- return (t) => s(t, e);
217
- }, [J?.currency, s]), X = (e) => _(`/relationships/${e}`);
218
- if (q.isLoading) return /* @__PURE__ */ j(l, { label: g("enterprise.loading", "Aggregating company-wide spend…") });
219
- if (q.isError || !J) return /* @__PURE__ */ j(c, {
220
- message: g("enterprise.error", "Could not load the enterprise spend dashboard."),
210
+ let { formatCurrency: e, formatDate: o } = t(), m = g(), { navigateTo: h } = n(), [R, z] = y(null), [G, K] = y(!1), q = p(R), J = q.data, Y = v(() => {
211
+ let t = J?.currency ?? "USD";
212
+ return (n) => e(n, t);
213
+ }, [J?.currency, e]), X = (e) => h(`/relationships/${e}`);
214
+ if (q.isLoading) return /* @__PURE__ */ j(c, { label: m("enterprise.loading", "Aggregating company-wide spend…") });
215
+ if (q.isError || !J) return /* @__PURE__ */ j(s, {
216
+ message: m("enterprise.error", "Could not load the enterprise spend dashboard."),
221
217
  onRetry: () => void q.refetch()
222
218
  });
223
219
  let Z = J.renewalPipeline[0], Q = J.monthlySpendChangePct, $ = [J.currency, ...J.otherCurrencies.map((e) => e.currency)], te = J.departments.map((e) => e.department).filter((e) => !!e), ne = J.activeRelationshipCount === 0 && J.shadowItCount === 0 && J.riskFlagCount === 0 && J.departments.length === 0;
224
- return /* @__PURE__ */ M(i, {
225
- title: g("enterprise.title", "SaaS spend management"),
226
- description: g("enterprise.description", "Company-wide recurring spend by department, with duplicate tools, shadow IT, renewals and risks."),
220
+ return /* @__PURE__ */ M(r, {
221
+ title: m("enterprise.title", "SaaS spend management"),
222
+ description: m("enterprise.description", "Company-wide recurring spend by department, with duplicate tools, shadow IT, renewals and risks."),
227
223
  actions: /* @__PURE__ */ M("div", {
228
224
  className: "flex items-center gap-2",
229
225
  children: [$.length > 1 && /* @__PURE__ */ M("label", {
230
226
  className: "flex items-center gap-2 text-xs text-text-secondary",
231
- children: [g("enterprise.currency", "Currency"), /* @__PURE__ */ j("select", {
232
- "aria-label": g("enterprise.currency", "Currency"),
227
+ children: [m("enterprise.currency", "Currency"), /* @__PURE__ */ j("select", {
228
+ "aria-label": m("enterprise.currency", "Currency"),
233
229
  value: J.currency,
234
230
  onChange: (e) => z(e.target.value),
235
231
  className: "rounded-lg border border-border-subtle bg-bg-surface px-2 py-1.5 text-xs text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
@@ -248,28 +244,28 @@ function G() {
248
244
  "aria-hidden": !0
249
245
  }),
250
246
  " ",
251
- g("enterprise.manageBudgets", "Budgets")
247
+ m("enterprise.manageBudgets", "Budgets")
252
248
  ]
253
249
  })]
254
250
  }),
255
251
  children: [
256
252
  /* @__PURE__ */ j(ee, {
257
253
  className: "mb-6",
258
- children: g("enterprise.purpose", "For finance, IT and procurement. Spend is the monthly run-rate of every subscription billing right now, computed live from your portfolio in one currency at a time. Allocate subscriptions to a department on the subscription itself.")
254
+ children: m("enterprise.purpose", "For finance, IT and procurement. Spend is the monthly run-rate of every subscription billing right now, computed live from your portfolio in one currency at a time. Allocate subscriptions to a department on the subscription itself.")
259
255
  }),
260
256
  J.truncated && /* @__PURE__ */ j("p", {
261
257
  className: "mb-4 rounded-lg bg-status-warning-bg-subtle px-4 py-2 text-sm text-status-warning-text",
262
- children: g("enterprise.truncated", "This workspace has more subscriptions than one dashboard aggregates; figures cover the most recent ones.")
258
+ children: m("enterprise.truncated", "This workspace has more subscriptions than one dashboard aggregates; figures cover the most recent ones.")
263
259
  }),
264
- ne ? /* @__PURE__ */ j(o, {
260
+ ne ? /* @__PURE__ */ j(a, {
265
261
  icon: /* @__PURE__ */ j(x, { className: "h-8 w-8" }),
266
- title: g("enterprise.emptyTitle", "No company spend to analyse yet"),
267
- description: g("enterprise.emptyDescription", "Add your SaaS subscriptions and allocate them to departments to see spend, duplicates, shadow IT and renewals here."),
262
+ title: m("enterprise.emptyTitle", "No company spend to analyse yet"),
263
+ description: m("enterprise.emptyDescription", "Add your SaaS subscriptions and allocate them to departments to see spend, duplicates, shadow IT and renewals here."),
268
264
  action: /* @__PURE__ */ j("button", {
269
265
  type: "button",
270
- onClick: () => _("/relationships/new"),
266
+ onClick: () => h("/relationships/new"),
271
267
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
272
- children: g("enterprise.emptyAction", "Add a subscription")
268
+ children: m("enterprise.emptyAction", "Add a subscription")
273
269
  })
274
270
  }) : /* @__PURE__ */ M("div", {
275
271
  className: "space-y-6",
@@ -278,31 +274,31 @@ function G() {
278
274
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4",
279
275
  "data-testid": "enterprise-kpis",
280
276
  children: [
281
- /* @__PURE__ */ j(a, {
277
+ /* @__PURE__ */ j(i, {
282
278
  featured: !0,
283
279
  icon: /* @__PURE__ */ j(A, { className: "h-5 w-5" }),
284
280
  value: Y(J.annualSpend),
285
- label: g("enterprise.kpis.annualSpend", "Total SaaS spend / year ({{monthly}} / month)", { monthly: Y(J.monthlySpend) }),
281
+ label: m("enterprise.kpis.annualSpend", "Total SaaS spend / year ({{monthly}} / month)", { monthly: Y(J.monthlySpend) }),
286
282
  trend: Q == null ? void 0 : Q > 0 ? "up" : Q < 0 ? "down" : "neutral",
287
283
  trendValue: Q == null ? void 0 : `${Q > 0 ? "+" : ""}${Q}%`
288
284
  }),
289
- /* @__PURE__ */ j(a, {
285
+ /* @__PURE__ */ j(i, {
290
286
  icon: /* @__PURE__ */ j(T, { className: "h-5 w-5" }),
291
287
  value: J.activeRelationshipCount,
292
- label: g("enterprise.kpis.activeLicenses", "Active licences")
288
+ label: m("enterprise.kpis.activeLicenses", "Active licences")
293
289
  }),
294
- /* @__PURE__ */ j(a, {
290
+ /* @__PURE__ */ j(i, {
295
291
  icon: /* @__PURE__ */ j(k, { className: "h-5 w-5" }),
296
292
  value: J.seatUtilizationPct == null ? "—" : `${J.seatUtilizationPct}%`,
297
- label: J.seatUtilizationPct == null ? g("enterprise.kpis.seatsUntracked", "Seats utilised (no seat data yet)") : g("enterprise.kpis.seats", "Seats utilised ({{used}} of {{assigned}})", {
293
+ label: J.seatUtilizationPct == null ? m("enterprise.kpis.seatsUntracked", "Seats utilised (no seat data yet)") : m("enterprise.kpis.seats", "Seats utilised ({{used}} of {{assigned}})", {
298
294
  used: J.seatsUsed,
299
295
  assigned: J.seatsAssigned
300
296
  })
301
297
  }),
302
- /* @__PURE__ */ j(a, {
298
+ /* @__PURE__ */ j(i, {
303
299
  icon: /* @__PURE__ */ j(S, { className: "h-5 w-5" }),
304
300
  value: Z ? Z.relationshipCount : 0,
305
- label: g("enterprise.kpis.renewals", "Renewals this quarter ({{amount}})", { amount: Y(Z?.amount ?? 0) })
301
+ label: m("enterprise.kpis.renewals", "Renewals this quarter ({{amount}})", { amount: Y(Z?.amount ?? 0) })
306
302
  })
307
303
  ]
308
304
  }),
@@ -310,69 +306,69 @@ function G() {
310
306
  className: "grid grid-cols-1 gap-4 lg:grid-cols-3",
311
307
  children: [
312
308
  /* @__PURE__ */ M(U, {
313
- title: g("enterprise.trend.title", "Monthly run-rate, last 150 days"),
309
+ title: m("enterprise.trend.title", "Monthly run-rate, last 150 days"),
314
310
  icon: /* @__PURE__ */ j(A, { className: "h-4 w-4" }),
315
- children: [/* @__PURE__ */ j(p, {
311
+ children: [/* @__PURE__ */ j(f, {
316
312
  points: J.trend.map((e) => e.monthlySpend),
317
313
  positive: (Q ?? 0) <= 0,
318
314
  className: "w-full"
319
315
  }), /* @__PURE__ */ j("p", {
320
316
  className: "mt-2 text-xs text-text-secondary",
321
- children: g("enterprise.trend.vs", "{{now}} now vs {{before}} 30 days ago", {
317
+ children: m("enterprise.trend.vs", "{{now}} now vs {{before}} 30 days ago", {
322
318
  now: Y(J.monthlySpend),
323
319
  before: Y(J.previousMonthlySpend)
324
320
  })
325
321
  })]
326
322
  }),
327
323
  /* @__PURE__ */ j(U, {
328
- title: g("enterprise.budget.title", "Company budget"),
324
+ title: m("enterprise.budget.title", "Company budget"),
329
325
  icon: /* @__PURE__ */ j(O, { className: "h-4 w-4" }),
330
326
  testId: "enterprise-budget",
331
327
  children: J.budget ? /* @__PURE__ */ j(H, {
332
328
  status: J.budget,
333
329
  fmt: Y,
334
- tr: g
330
+ tr: m
335
331
  }) : /* @__PURE__ */ M("div", {
336
332
  className: "space-y-3",
337
333
  children: [/* @__PURE__ */ j("p", {
338
334
  className: "text-sm text-text-secondary",
339
- children: g("enterprise.budget.none", "No company-wide budget set for {{currency}}.", { currency: J.currency })
335
+ children: m("enterprise.budget.none", "No company-wide budget set for {{currency}}.", { currency: J.currency })
340
336
  }), /* @__PURE__ */ j("button", {
341
337
  type: "button",
342
338
  onClick: () => K(!0),
343
339
  className: "text-sm font-medium text-text-primary underline",
344
- children: g("enterprise.budget.set", "Set a budget")
340
+ children: m("enterprise.budget.set", "Set a budget")
345
341
  })]
346
342
  })
347
343
  }),
348
344
  /* @__PURE__ */ M(U, {
349
- title: g("enterprise.savings.title", "Consolidation opportunity"),
345
+ title: m("enterprise.savings.title", "Consolidation opportunity"),
350
346
  icon: /* @__PURE__ */ j(E, { className: "h-4 w-4" }),
351
347
  children: [/* @__PURE__ */ M("p", {
352
348
  className: "text-2xl font-bold tabular-nums text-text-primary",
353
349
  children: [Y(J.duplicatePotentialMonthlySavings), /* @__PURE__ */ j("span", {
354
350
  className: "text-sm font-normal text-text-secondary",
355
- children: g("enterprise.perMonth", "/mo")
351
+ children: m("enterprise.perMonth", "/mo")
356
352
  })]
357
353
  }), /* @__PURE__ */ j("p", {
358
354
  className: "mt-1 text-xs text-text-secondary",
359
- children: g("enterprise.savings.detail", "Upper bound if each duplicated tool is consolidated into one subscription; shadow IT costs {{shadow}} / month.", { shadow: Y(J.shadowItMonthlySpend) })
355
+ children: m("enterprise.savings.detail", "Upper bound if each duplicated tool is consolidated into one subscription; shadow IT costs {{shadow}} / month.", { shadow: Y(J.shadowItMonthlySpend) })
360
356
  })]
361
357
  })
362
358
  ]
363
359
  }),
364
- /* @__PURE__ */ j(u, {
365
- title: g("enterprise.departments.title", "Spend by department"),
366
- description: g("enterprise.departments.description", "Monthly run-rate per department, with each department budget."),
360
+ /* @__PURE__ */ j(l, {
361
+ title: m("enterprise.departments.title", "Spend by department"),
362
+ description: m("enterprise.departments.description", "Monthly run-rate per department, with each department budget."),
367
363
  children: /* @__PURE__ */ j(N, {
368
364
  treatment: "plain",
369
365
  className: "p-6",
370
366
  "data-testid": "enterprise-departments",
371
367
  children: J.departments.length ? /* @__PURE__ */ M("div", {
372
368
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
373
- children: [/* @__PURE__ */ j(d, {
369
+ children: [/* @__PURE__ */ j(u, {
374
370
  data: J.departments.map((e) => ({
375
- label: V(g, e.department),
371
+ label: V(m, e.department),
376
372
  value: e.monthlySpend
377
373
  })),
378
374
  valueFormat: Y
@@ -384,10 +380,10 @@ function G() {
384
380
  className: "flex items-center justify-between gap-3 text-sm",
385
381
  children: [/* @__PURE__ */ j("span", {
386
382
  className: "truncate font-medium text-text-primary",
387
- children: V(g, e.department)
383
+ children: V(m, e.department)
388
384
  }), /* @__PURE__ */ j("span", {
389
385
  className: "shrink-0 tabular-nums text-text-secondary",
390
- children: g("enterprise.departments.row", "{{count}} subs · {{share}}%", {
386
+ children: m("enterprise.departments.row", "{{count}} subs · {{share}}%", {
391
387
  count: e.relationshipCount,
392
388
  share: e.sharePct
393
389
  })
@@ -397,21 +393,21 @@ function G() {
397
393
  children: /* @__PURE__ */ j(H, {
398
394
  status: e.budget,
399
395
  fmt: Y,
400
- tr: g
396
+ tr: m
401
397
  })
402
398
  })]
403
399
  }, e.department ?? "__unassigned"))
404
400
  })]
405
401
  }) : /* @__PURE__ */ j("p", {
406
402
  className: "text-sm text-text-secondary",
407
- children: g("enterprise.departments.none", "No spend is billing right now.")
403
+ children: m("enterprise.departments.none", "No spend is billing right now.")
408
404
  })
409
405
  })
410
406
  }),
411
407
  /* @__PURE__ */ M("div", {
412
408
  className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
413
409
  children: [/* @__PURE__ */ j(U, {
414
- title: g("enterprise.duplicates.title", "Duplicate tools ({{count}})", { count: J.duplicateTools.length }),
410
+ title: m("enterprise.duplicates.title", "Duplicate tools ({{count}})", { count: J.duplicateTools.length }),
415
411
  icon: /* @__PURE__ */ j(C, { className: "h-4 w-4" }),
416
412
  testId: "enterprise-duplicates",
417
413
  children: J.duplicateTools.length ? /* @__PURE__ */ j("ul", {
@@ -426,21 +422,21 @@ function G() {
426
422
  children: [e.providerId ? /* @__PURE__ */ j("button", {
427
423
  type: "button",
428
424
  className: B,
429
- onClick: () => _(`/providers/${e.providerId}`),
425
+ onClick: () => h(`/providers/${e.providerId}`),
430
426
  children: e.name
431
427
  }) : /* @__PURE__ */ j("p", {
432
428
  className: "truncate text-sm font-medium text-text-primary",
433
429
  children: e.name
434
430
  }), /* @__PURE__ */ j("p", {
435
431
  className: "text-xs text-text-secondary",
436
- children: g("enterprise.duplicates.summary", "{{count}} subscriptions · {{teams}}", {
432
+ children: m("enterprise.duplicates.summary", "{{count}} subscriptions · {{teams}}", {
437
433
  count: e.relationshipCount,
438
- teams: e.departments.length ? e.departments.join(", ") : g("enterprise.departments.unassigned", "Unassigned")
434
+ teams: e.departments.length ? e.departments.join(", ") : m("enterprise.departments.unassigned", "Unassigned")
439
435
  })
440
436
  })]
441
437
  }), /* @__PURE__ */ j("span", {
442
438
  className: "shrink-0 text-end text-xs text-status-warning-text",
443
- children: g("enterprise.duplicates.save", "Save up to {{amount}}/mo", { amount: Y(e.potentialMonthlySavings) })
439
+ children: m("enterprise.duplicates.save", "Save up to {{amount}}/mo", { amount: Y(e.potentialMonthlySavings) })
444
440
  })]
445
441
  }),
446
442
  /* @__PURE__ */ j("ul", {
@@ -448,9 +444,9 @@ function G() {
448
444
  children: e.relationships.map((e) => /* @__PURE__ */ j("li", { children: /* @__PURE__ */ M("button", {
449
445
  type: "button",
450
446
  onClick: () => X(e.relationshipId),
451
- className: r("rounded-md px-2 py-1 text-xs hover:bg-bg-sunken", e.keep ? "border border-status-success-text/40 bg-status-success-bg-subtle text-status-success-text" : "bg-bg-surface text-text-primary"),
447
+ className: _("rounded-md px-2 py-1 text-xs hover:bg-bg-sunken", e.keep ? "border border-status-success-text/40 bg-status-success-bg-subtle text-status-success-text" : "bg-bg-surface text-text-primary"),
452
448
  children: [
453
- e.keep ? `${g("enterprise.duplicates.keep", "Keep")}: ` : "",
449
+ e.keep ? `${m("enterprise.duplicates.keep", "Keep")}: ` : "",
454
450
  e.label,
455
451
  " · ",
456
452
  Y(e.monthlySpend)
@@ -460,7 +456,7 @@ function G() {
460
456
  /* @__PURE__ */ M("p", {
461
457
  className: "mt-2 text-xs text-text-secondary",
462
458
  children: [
463
- g(F[e.type].key, F[e.type].fallback),
459
+ m(F[e.type].key, F[e.type].fallback),
464
460
  " ·",
465
461
  " ",
466
462
  e.rationale
@@ -470,10 +466,10 @@ function G() {
470
466
  }, e.key))
471
467
  }) : /* @__PURE__ */ j("p", {
472
468
  className: "text-sm text-text-secondary",
473
- children: g("enterprise.duplicates.none", "No duplicate or overlapping tools found.")
469
+ children: m("enterprise.duplicates.none", "No duplicate or overlapping tools found.")
474
470
  })
475
471
  }), /* @__PURE__ */ j(U, {
476
- title: g("enterprise.shadow.title", "Shadow IT ({{count}})", { count: J.shadowItCount }),
472
+ title: m("enterprise.shadow.title", "Shadow IT ({{count}})", { count: J.shadowItCount }),
477
473
  icon: /* @__PURE__ */ j(w, { className: "h-4 w-4" }),
478
474
  testId: "enterprise-shadow-it",
479
475
  children: J.shadowIt.length ? /* @__PURE__ */ j("ul", {
@@ -490,11 +486,11 @@ function G() {
490
486
  }), /* @__PURE__ */ M("p", {
491
487
  className: "text-xs text-text-secondary",
492
488
  children: [
493
- g(P[e.reason].key, P[e.reason].fallback),
489
+ m(P[e.reason].key, P[e.reason].fallback),
494
490
  " · ",
495
- V(g, e.department),
491
+ V(m, e.department),
496
492
  " · ",
497
- g("enterprise.shadow.found", "found {{date}}", { date: h(e.detectedAt) })
493
+ m("enterprise.shadow.found", "found {{date}}", { date: o(e.detectedAt) })
498
494
  ]
499
495
  })]
500
496
  }), /* @__PURE__ */ j("span", {
@@ -504,13 +500,13 @@ function G() {
504
500
  }, e.relationshipId))
505
501
  }) : /* @__PURE__ */ j("p", {
506
502
  className: "text-sm text-text-secondary",
507
- children: g("enterprise.shadow.none", "Every discovered tool is linked to an approved provider.")
503
+ children: m("enterprise.shadow.none", "Every discovered tool is linked to an approved provider.")
508
504
  })
509
505
  })]
510
506
  }),
511
- /* @__PURE__ */ j(u, {
512
- title: g("enterprise.renewals.title", "Renewal pipeline"),
513
- description: g("enterprise.renewals.description", "Renewal charges due by quarter, for planning renegotiations."),
507
+ /* @__PURE__ */ j(l, {
508
+ title: m("enterprise.renewals.title", "Renewal pipeline"),
509
+ description: m("enterprise.renewals.description", "Renewal charges due by quarter, for planning renegotiations."),
514
510
  children: /* @__PURE__ */ j("div", {
515
511
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4",
516
512
  "data-testid": "enterprise-renewals",
@@ -528,7 +524,7 @@ function G() {
528
524
  }),
529
525
  /* @__PURE__ */ j("p", {
530
526
  className: "text-xs text-text-secondary",
531
- children: g("enterprise.renewals.counts", "{{renewals}} renewals · {{subs}} subscriptions", {
527
+ children: m("enterprise.renewals.counts", "{{renewals}} renewals · {{subs}} subscriptions", {
532
528
  renewals: e.renewalCount,
533
529
  subs: e.relationshipCount
534
530
  })
@@ -539,13 +535,13 @@ function G() {
539
535
  className: "flex items-center justify-between gap-2",
540
536
  children: [/* @__PURE__ */ j("button", {
541
537
  type: "button",
542
- className: r(B, "text-xs"),
538
+ className: _(B, "text-xs"),
543
539
  onClick: () => X(e.relationshipId),
544
540
  children: e.label
545
541
  }), /* @__PURE__ */ M("span", {
546
542
  className: "shrink-0 text-xs tabular-nums text-text-secondary",
547
543
  children: [
548
- h(e.renewsAt),
544
+ o(e.renewsAt),
549
545
  " · ",
550
546
  Y(e.amount)
551
547
  ]
@@ -556,8 +552,8 @@ function G() {
556
552
  }, e.label))
557
553
  })
558
554
  }),
559
- /* @__PURE__ */ j(u, {
560
- title: g("enterprise.risks.title", "Compliance and risk flags ({{count}})", { count: J.riskFlagCount }),
555
+ /* @__PURE__ */ j(l, {
556
+ title: m("enterprise.risks.title", "Compliance and risk flags ({{count}})", { count: J.riskFlagCount }),
561
557
  children: /* @__PURE__ */ j(N, {
562
558
  treatment: "plain",
563
559
  className: "p-2",
@@ -569,8 +565,8 @@ function G() {
569
565
  children: [/* @__PURE__ */ M("div", {
570
566
  className: "flex min-w-0 items-start gap-3",
571
567
  children: [/* @__PURE__ */ j("span", {
572
- className: r("shrink-0 rounded-md px-2 py-0.5 text-xs font-medium", L[e.severity]),
573
- children: g(I[e.kind].key, I[e.kind].fallback)
568
+ className: _("shrink-0 rounded-md px-2 py-0.5 text-xs font-medium", L[e.severity]),
569
+ children: m(I[e.kind].key, I[e.kind].fallback)
574
570
  }), /* @__PURE__ */ M("div", {
575
571
  className: "min-w-0",
576
572
  children: [/* @__PURE__ */ j("button", {
@@ -586,10 +582,10 @@ function G() {
586
582
  }), /* @__PURE__ */ M("span", {
587
583
  className: "shrink-0 text-xs text-text-secondary",
588
584
  children: [
589
- V(g, e.department),
585
+ V(m, e.department),
590
586
  " · ",
591
587
  Y(e.monthlySpend),
592
- g("enterprise.perMonth", "/mo")
588
+ m("enterprise.perMonth", "/mo")
593
589
  ]
594
590
  })]
595
591
  }, `${e.kind}-${e.relationshipId}`))
@@ -598,16 +594,16 @@ function G() {
598
594
  children: [/* @__PURE__ */ j(D, {
599
595
  className: "h-4 w-4",
600
596
  "aria-hidden": !0
601
- }), g("enterprise.risks.none", "No compliance or risk issues found.")]
597
+ }), m("enterprise.risks.none", "No compliance or risk issues found.")]
602
598
  })
603
599
  })
604
600
  }),
605
- /* @__PURE__ */ j(u, {
606
- title: g("enterprise.licenses.title", "Licences"),
601
+ /* @__PURE__ */ j(l, {
602
+ title: m("enterprise.licenses.title", "Licences"),
607
603
  children: /* @__PURE__ */ M(N, {
608
604
  treatment: "plain",
609
605
  role: "region",
610
- "aria-label": g("enterprise.licenses.title", "Licences"),
606
+ "aria-label": m("enterprise.licenses.title", "Licences"),
611
607
  tabIndex: 0,
612
608
  className: "overflow-x-auto focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-focus-ring)]",
613
609
  "data-testid": "enterprise-licenses",
@@ -618,27 +614,27 @@ function G() {
618
614
  children: [
619
615
  /* @__PURE__ */ j("th", {
620
616
  className: "px-4 py-3 font-medium",
621
- children: g("enterprise.licenses.app", "App")
617
+ children: m("enterprise.licenses.app", "App")
622
618
  }),
623
619
  /* @__PURE__ */ j("th", {
624
620
  className: "px-4 py-3 font-medium",
625
- children: g("enterprise.licenses.department", "Department")
621
+ children: m("enterprise.licenses.department", "Department")
626
622
  }),
627
623
  /* @__PURE__ */ j("th", {
628
624
  className: "px-4 py-3 font-medium",
629
- children: g("enterprise.licenses.seats", "Seats used / assigned")
625
+ children: m("enterprise.licenses.seats", "Seats used / assigned")
630
626
  }),
631
627
  /* @__PURE__ */ j("th", {
632
628
  className: "px-4 py-3 font-medium",
633
- children: g("enterprise.licenses.utilization", "Utilisation")
629
+ children: m("enterprise.licenses.utilization", "Utilisation")
634
630
  }),
635
631
  /* @__PURE__ */ j("th", {
636
632
  className: "px-4 py-3 text-end font-medium",
637
- children: g("enterprise.licenses.annualCost", "Annual cost")
633
+ children: m("enterprise.licenses.annualCost", "Annual cost")
638
634
  }),
639
635
  /* @__PURE__ */ j("th", {
640
636
  className: "px-4 py-3 font-medium",
641
- children: g("enterprise.licenses.renews", "Renews")
637
+ children: m("enterprise.licenses.renews", "Renews")
642
638
  })
643
639
  ]
644
640
  }) }), /* @__PURE__ */ j("tbody", {
@@ -658,7 +654,7 @@ function G() {
658
654
  }),
659
655
  /* @__PURE__ */ j("td", {
660
656
  className: "px-4 py-3 text-text-secondary",
661
- children: V(g, e.department)
657
+ children: V(m, e.department)
662
658
  }),
663
659
  /* @__PURE__ */ j("td", {
664
660
  className: "px-4 py-3 tabular-nums text-text-primary",
@@ -669,8 +665,8 @@ function G() {
669
665
  children: e.utilizationPct == null ? /* @__PURE__ */ j("span", {
670
666
  className: "text-text-secondary",
671
667
  children: "—"
672
- }) : /* @__PURE__ */ j(f, {
673
- label: g("enterprise.seats.utilization", "Seat utilization"),
668
+ }) : /* @__PURE__ */ j(d, {
669
+ label: m("enterprise.seats.utilization", "Seat utilization"),
674
670
  value: e.utilizationPct,
675
671
  tone: e.utilizationPct >= 70 ? "positive" : "warning"
676
672
  })
@@ -681,13 +677,13 @@ function G() {
681
677
  }),
682
678
  /* @__PURE__ */ j("td", {
683
679
  className: "px-4 py-3 text-text-secondary",
684
- children: e.renewsAt ? h(e.renewsAt) : "—"
680
+ children: e.renewsAt ? o(e.renewsAt) : "—"
685
681
  })
686
682
  ] }, e.relationshipId))
687
683
  })]
688
684
  }), J.licenses.length === 0 && /* @__PURE__ */ j("p", {
689
685
  className: "p-4 text-sm text-text-secondary",
690
- children: g("enterprise.licenses.none", "No subscription is billing right now.")
686
+ children: m("enterprise.licenses.none", "No subscription is billing right now.")
691
687
  })]
692
688
  })
693
689
  }),
@@ -696,7 +692,7 @@ function G() {
696
692
  children: [/* @__PURE__ */ j(b, {
697
693
  className: "mt-0.5 h-3.5 w-3.5 shrink-0",
698
694
  "aria-hidden": !0
699
- }), g("enterprise.otherCurrencies", "Not included above (amounts are never converted): {{list}}. Switch currency to see them.", { list: J.otherCurrencies.map((e) => `${s(e.monthlySpend, e.currency)}/mo`).join(", ") })]
695
+ }), m("enterprise.otherCurrencies", "Not included above (amounts are never converted): {{list}}. Switch currency to see them.", { list: J.otherCurrencies.map((t) => `${e(t.monthlySpend, t.currency)}/mo`).join(", ") })]
700
696
  })
701
697
  ]
702
698
  }),
@@ -708,7 +704,6 @@ function G() {
708
704
  ]
709
705
  });
710
706
  }
711
- //#endregion
712
707
  export { G as EnterpriseSpendPage };
713
708
 
714
709
  //# sourceMappingURL=EnterpriseSpendPage.js.map