@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.
- package/dist/generated/global-operations.d.ts +4 -2
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/wspace-operations.d.ts +4 -2
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/stories/Accessibility.stories.d.ts +2 -4
- package/dist/stories/EmptyState.stories.d.ts +0 -2
- package/dist/stories/MetricsCard.stories.d.ts +0 -2
- package/dist/stories/StatusBadge.stories.d.ts +0 -2
- package/dist/stories/pages/AgentDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/AgentNewPage.stories.d.ts +0 -2
- package/dist/stories/pages/AgentsListPage.stories.d.ts +0 -2
- package/dist/stories/pages/AssetVaultPage.stories.d.ts +0 -2
- package/dist/stories/pages/BankConnectionsPage.stories.d.ts +0 -2
- package/dist/stories/pages/DashboardPage.stories.d.ts +0 -2
- package/dist/stories/pages/DecisionDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/DecisionsPage.stories.d.ts +0 -2
- package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts +0 -2
- package/dist/stories/pages/InboxPage.stories.d.ts +0 -2
- package/dist/stories/pages/InboxReadState.stories.d.ts +1 -3
- package/dist/stories/pages/InsightsPage.stories.d.ts +0 -2
- package/dist/stories/pages/InvoicesPage.stories.d.ts +0 -2
- package/dist/stories/pages/NegotiationDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/NegotiationNewPage.stories.d.ts +0 -2
- package/dist/stories/pages/NegotiationsPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProcurementDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProcurementNewPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProcurementPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProviderDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProviderNewPage.stories.d.ts +0 -2
- package/dist/stories/pages/ProvidersListPage.stories.d.ts +0 -2
- package/dist/stories/pages/RelationshipDetailPage.stories.d.ts +0 -2
- package/dist/stories/pages/RelationshipNewPage.stories.d.ts +0 -2
- package/dist/stories/pages/RelationshipsListPage.stories.d.ts +0 -2
- package/dist/stories/pages/RenewalsPage.stories.d.ts +0 -2
- package/dist/stories/pages/SavingsPage.stories.d.ts +0 -2
- package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts +0 -2
- package/dist/stories/pages/WorkflowsPage.stories.d.ts +0 -2
- package/dist/stories/support/PageHarness.d.ts +0 -2
- package/dist/stories/support/bankingFixtures.d.ts +0 -2
- package/dist/stories/support/fixtures.d.ts +0 -2
- package/dist/stories/support/graphqlMock.d.ts +0 -2
- package/dist/stories/support/handlers.d.ts +0 -2
- package/dist/stories/support/negotiationFixtures.d.ts +0 -2
- package/dist/stories/support/phoneViewport.d.ts +0 -2
- package/dist/stories/support/play.d.ts +0 -2
- package/dist/stories/support/procurementFixtures.d.ts +0 -2
- package/dist/subscriberbot/SubscriberBotRoot.d.ts +0 -2
- package/dist/subscriberbot/SubscriberBotRoot.js +10 -7
- package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts +0 -2
- package/dist/subscriberbot/SubscriberBotRoutes.js +1 -2
- package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.d.ts +0 -2
- package/dist/subscriberbot/admin/AdminDashboardPage.js +9 -10
- package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
- package/dist/subscriberbot/admin/AdminRoot.d.ts +0 -2
- package/dist/subscriberbot/admin/AdminRoot.js +2 -3
- package/dist/subscriberbot/admin/AdminRoot.js.map +1 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts +0 -2
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js +56 -57
- package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts +0 -2
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js +107 -108
- package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
- package/dist/subscriberbot/admin/index.d.ts +0 -1
- package/dist/subscriberbot/admin/index.js +1 -1
- package/dist/subscriberbot/components/EmptyState.d.ts +0 -2
- package/dist/subscriberbot/components/EmptyState.js +1 -2
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.d.ts +0 -2
- package/dist/subscriberbot/components/MetricsCard.js +1 -2
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/Modal.d.ts +0 -2
- package/dist/subscriberbot/components/Modal.js +2 -3
- package/dist/subscriberbot/components/Modal.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.d.ts +0 -2
- package/dist/subscriberbot/components/PageLayout.js +1 -2
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/PostureOptions.d.ts +1 -3
- package/dist/subscriberbot/components/PostureOptions.js +7 -8
- package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
- package/dist/subscriberbot/components/StateViews.d.ts +0 -2
- package/dist/subscriberbot/components/StateViews.js +1 -2
- package/dist/subscriberbot/components/StateViews.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.d.ts +0 -2
- package/dist/subscriberbot/components/StatusBadge.js +2 -3
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionBanners.d.ts +0 -2
- package/dist/subscriberbot/components/decisions/DecisionBanners.js +7 -8
- package/dist/subscriberbot/components/decisions/DecisionBanners.js.map +1 -1
- package/dist/subscriberbot/components/decisions/DecisionCard.d.ts +0 -2
- package/dist/subscriberbot/components/decisions/DecisionCard.js +65 -66
- package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
- package/dist/subscriberbot/components/decisions/decisionModel.d.ts +0 -2
- package/dist/subscriberbot/components/decisions/decisionModel.js +2 -3
- package/dist/subscriberbot/components/decisions/decisionModel.js.map +1 -1
- package/dist/subscriberbot/components/decisions/index.d.ts +0 -1
- package/dist/subscriberbot/components/decisions/index.js +4 -3
- package/dist/subscriberbot/components/index.d.ts +0 -1
- package/dist/subscriberbot/components/index.js +8 -7
- package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts +0 -2
- package/dist/subscriberbot/components/mobile/MobileDashboard.js +23 -24
- package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts +0 -2
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +40 -49
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
- package/dist/subscriberbot/components/mobile/MobileScreen.d.ts +0 -2
- package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -2
- package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts +0 -2
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +1 -2
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -1
- package/dist/subscriberbot/components/mobile/index.d.ts +0 -1
- package/dist/subscriberbot/components/mobile/index.js +4 -3
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts +0 -2
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +1 -2
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts +0 -2
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +4 -5
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts +0 -2
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js +4 -5
- package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/negotiations/index.d.ts +0 -1
- package/dist/subscriberbot/components/negotiations/index.js +5 -4
- package/dist/subscriberbot/components/negotiations/labels.d.ts +0 -2
- package/dist/subscriberbot/components/negotiations/labels.js +1 -2
- package/dist/subscriberbot/components/negotiations/labels.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts +0 -2
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +4 -5
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts +0 -2
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +1 -2
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -1
- package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts +0 -2
- package/dist/subscriberbot/components/procurement/ProcurementThread.js +4 -5
- package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
- package/dist/subscriberbot/components/procurement/index.d.ts +0 -1
- package/dist/subscriberbot/components/procurement/index.js +5 -4
- package/dist/subscriberbot/components/procurement/labels.d.ts +0 -2
- package/dist/subscriberbot/components/procurement/labels.js +1 -2
- package/dist/subscriberbot/components/procurement/labels.js.map +1 -1
- package/dist/subscriberbot/components/savings/SavingsCards.d.ts +0 -2
- package/dist/subscriberbot/components/savings/SavingsCards.js +90 -91
- package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
- package/dist/subscriberbot/components/savings/index.d.ts +0 -1
- package/dist/subscriberbot/components/savings/index.js +3 -2
- package/dist/subscriberbot/components/savings/savingsModel.d.ts +0 -2
- package/dist/subscriberbot/components/savings/savingsModel.js +2 -3
- package/dist/subscriberbot/components/savings/savingsModel.js.map +1 -1
- package/dist/subscriberbot/components/viz.d.ts +0 -2
- package/dist/subscriberbot/components/viz.js +2 -3
- package/dist/subscriberbot/components/viz.js.map +1 -1
- package/dist/subscriberbot/config/assistantUsecases.d.ts +0 -1
- package/dist/subscriberbot/context/SubscriberBotContext.d.ts +0 -2
- package/dist/subscriberbot/context/SubscriberBotContext.js +3 -3
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/context/index.d.ts +0 -1
- package/dist/subscriberbot/context/index.js +1 -1
- package/dist/subscriberbot/hooks/index.d.ts +0 -1
- package/dist/subscriberbot/hooks/index.js +2 -2
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.d.ts +0 -2
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.js +2 -3
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.js.map +1 -1
- package/dist/subscriberbot/hooks/useBankingApi.d.ts +0 -2
- package/dist/subscriberbot/hooks/useBankingApi.js +2 -3
- package/dist/subscriberbot/hooks/useBankingApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useCompactViewport.d.ts +0 -1
- package/dist/subscriberbot/hooks/useCompactViewport.js +1 -2
- package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -1
- package/dist/subscriberbot/hooks/useFormError.d.ts +0 -1
- package/dist/subscriberbot/hooks/useFormError.js +1 -2
- package/dist/subscriberbot/hooks/useFormError.js.map +1 -1
- package/dist/subscriberbot/hooks/useFormatters.d.ts +0 -1
- package/dist/subscriberbot/hooks/useFormatters.js +1 -2
- package/dist/subscriberbot/hooks/useFormatters.js.map +1 -1
- package/dist/subscriberbot/hooks/useNegotiationApi.d.ts +0 -2
- package/dist/subscriberbot/hooks/useNegotiationApi.js +2 -3
- package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useProcurementApi.d.ts +0 -2
- package/dist/subscriberbot/hooks/useProcurementApi.js +2 -3
- package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useRouteSelection.d.ts +0 -1
- package/dist/subscriberbot/hooks/useRouteSelection.js +3 -3
- package/dist/subscriberbot/hooks/useRouteSelection.js.map +1 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts +0 -2
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -2
- package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
- package/dist/subscriberbot/hooks/useTr.d.ts +0 -1
- package/dist/subscriberbot/hooks/useTr.js +1 -2
- package/dist/subscriberbot/hooks/useTr.js.map +1 -1
- package/dist/subscriberbot/index.d.ts +0 -1
- package/dist/subscriberbot/index.js +9 -8
- package/dist/subscriberbot/pages/AssetVaultPage.d.ts +0 -2
- package/dist/subscriberbot/pages/AssetVaultPage.js +34 -35
- package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
- package/dist/subscriberbot/pages/DashboardPage.d.ts +1 -2
- package/dist/subscriberbot/pages/DashboardPage.js +86 -87
- package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
- package/dist/subscriberbot/pages/InboxPage.d.ts +1 -2
- package/dist/subscriberbot/pages/InboxPage.js +194 -199
- package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
- package/dist/subscriberbot/pages/InsightsPage.d.ts +0 -2
- package/dist/subscriberbot/pages/InsightsPage.js +28 -29
- package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
- package/dist/subscriberbot/pages/InvoicesPage.d.ts +1 -2
- package/dist/subscriberbot/pages/InvoicesPage.js +179 -188
- package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
- package/dist/subscriberbot/pages/RenewalsPage.d.ts +0 -2
- package/dist/subscriberbot/pages/RenewalsPage.js +293 -298
- package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
- package/dist/subscriberbot/pages/SavingsPage.d.ts +0 -2
- package/dist/subscriberbot/pages/SavingsPage.js +25 -26
- package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts +1 -2
- package/dist/subscriberbot/pages/WorkflowsPage.js +67 -68
- package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js +126 -127
- package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts +1 -2
- package/dist/subscriberbot/pages/agents/AgentNewPage.js +10 -11
- package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts +1 -2
- package/dist/subscriberbot/pages/agents/AgentsListPage.js +23 -24
- package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts +1 -2
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +337 -359
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/banking/ConnectBankModal.d.ts +1 -3
- package/dist/subscriberbot/pages/banking/ConnectBankModal.js +22 -27
- package/dist/subscriberbot/pages/banking/ConnectBankModal.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +25 -26
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts +1 -2
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js +34 -35
- package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts +1 -2
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +125 -130
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +94 -95
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts +1 -2
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +15 -16
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts +1 -2
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +20 -21
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +86 -87
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts +1 -2
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +164 -165
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts +1 -2
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js +20 -21
- package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +350 -351
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts +2 -3
- package/dist/subscriberbot/pages/providers/ProviderInsights.js +95 -96
- package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts +1 -2
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js +11 -12
- package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts +1 -2
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js +62 -63
- package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts +1 -2
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +166 -172
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts +1 -2
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +12 -13
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts +1 -2
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +21 -22
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts +1 -3
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +242 -255
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts +0 -2
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +2 -3
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
- package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts +0 -1
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js +1 -2
- package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/subscriberbot/store/index.d.ts +0 -1
- package/dist/subscriberbot/store/index.js +1 -1
- package/dist/subscriberbot/store/subscriberbotStore.d.ts +1 -3
- package/dist/subscriberbot/store/subscriberbotStore.js +1 -2
- package/dist/subscriberbot/store/subscriberbotStore.js.map +1 -1
- package/dist/subscriberbot/types/assistant.d.ts +0 -2
- package/dist/subscriberbot/types/banking.d.ts +0 -2
- package/dist/subscriberbot/types/index.d.ts +0 -2
- package/dist/subscriberbot/types/negotiation.d.ts +0 -2
- package/dist/subscriberbot/types/procurement.d.ts +0 -1
- package/dist/subscriberbot/utils/bankRedirectLink.d.ts +0 -2
- package/dist/subscriberbot/utils/bankRedirectLink.js +18 -19
- package/dist/subscriberbot/utils/bankRedirectLink.js.map +1 -1
- package/dist/subscriberbot/utils/chartScale.d.ts +0 -1
- package/dist/subscriberbot/utils/chartScale.js +1 -2
- package/dist/subscriberbot/utils/chartScale.js.map +1 -1
- package/dist/subscriberbot/utils/cn.d.ts +0 -2
- package/dist/subscriberbot/utils/cn.js +2 -3
- package/dist/subscriberbot/utils/cn.js.map +1 -1
- package/dist/subscriberbot/utils/formatters.d.ts +0 -1
- package/dist/subscriberbot/utils/formatters.js +4 -5
- package/dist/subscriberbot/utils/formatters.js.map +1 -1
- package/dist/subscriberbot/utils/index.d.ts +0 -1
- package/dist/subscriberbot/utils/navigation.d.ts +0 -1
- package/dist/subscriberbot/utils/navigation.js +1 -2
- package/dist/subscriberbot/utils/navigation.js.map +1 -1
- package/dist/subscriberbot/utils/pageContext.d.ts +0 -1
- package/dist/subscriberbot/utils/pageContext.js +3 -4
- package/dist/subscriberbot/utils/pageContext.js.map +1 -1
- package/dist/subscriberbot/utils/plaidLink.d.ts +0 -1
- package/dist/subscriberbot/utils/plaidLink.js +21 -22
- package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
- package/dist/subscriberbot/utils/portfolio.d.ts +0 -2
- package/dist/subscriberbot/utils/portfolio.js +5 -6
- package/dist/subscriberbot/utils/portfolio.js.map +1 -1
- package/dist/subscriberbot/utils/renewals.d.ts +0 -2
- package/dist/subscriberbot/utils/renewals.js +1 -2
- package/dist/subscriberbot/utils/renewals.js.map +1 -1
- package/package.json +73 -56
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/stories/Accessibility.stories.d.ts.map +0 -1
- package/dist/stories/EmptyState.stories.d.ts.map +0 -1
- package/dist/stories/MetricsCard.stories.d.ts.map +0 -1
- package/dist/stories/StatusBadge.stories.d.ts.map +0 -1
- package/dist/stories/pages/AgentDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/AgentNewPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/AgentsListPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/AssetVaultPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/BankConnectionsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/DashboardPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/DecisionDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/DecisionsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/EnterpriseSpendPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/InboxPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/InboxReadState.stories.d.ts.map +0 -1
- package/dist/stories/pages/InsightsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/InvoicesPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/NegotiationDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/NegotiationNewPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/NegotiationsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProcurementDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProcurementNewPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProcurementPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProviderDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProviderNewPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/ProvidersListPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/RelationshipDetailPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/RelationshipNewPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/RelationshipsListPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/RenewalsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/SavingsPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/WorkflowBuilderPage.stories.d.ts.map +0 -1
- package/dist/stories/pages/WorkflowsPage.stories.d.ts.map +0 -1
- package/dist/stories/support/PageHarness.d.ts.map +0 -1
- package/dist/stories/support/bankingFixtures.d.ts.map +0 -1
- package/dist/stories/support/fixtures.d.ts.map +0 -1
- package/dist/stories/support/graphqlMock.d.ts.map +0 -1
- package/dist/stories/support/handlers.d.ts.map +0 -1
- package/dist/stories/support/negotiationFixtures.d.ts.map +0 -1
- package/dist/stories/support/phoneViewport.d.ts.map +0 -1
- package/dist/stories/support/play.d.ts.map +0 -1
- package/dist/stories/support/procurementFixtures.d.ts.map +0 -1
- package/dist/subscriberbot/SubscriberBotRoot.d.ts.map +0 -1
- package/dist/subscriberbot/SubscriberBotRoutes.d.ts.map +0 -1
- package/dist/subscriberbot/admin/AdminDashboardPage.d.ts.map +0 -1
- package/dist/subscriberbot/admin/AdminRoot.d.ts.map +0 -1
- package/dist/subscriberbot/admin/NegotiationDeskPanel.d.ts.map +0 -1
- package/dist/subscriberbot/admin/ProcurementDeskPanel.d.ts.map +0 -1
- package/dist/subscriberbot/admin/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/EmptyState.d.ts.map +0 -1
- package/dist/subscriberbot/components/MetricsCard.d.ts.map +0 -1
- package/dist/subscriberbot/components/Modal.d.ts.map +0 -1
- package/dist/subscriberbot/components/PageLayout.d.ts.map +0 -1
- package/dist/subscriberbot/components/PostureOptions.d.ts.map +0 -1
- package/dist/subscriberbot/components/StateViews.d.ts.map +0 -1
- package/dist/subscriberbot/components/StatusBadge.d.ts.map +0 -1
- package/dist/subscriberbot/components/decisions/DecisionBanners.d.ts.map +0 -1
- package/dist/subscriberbot/components/decisions/DecisionCard.d.ts.map +0 -1
- package/dist/subscriberbot/components/decisions/decisionModel.d.ts.map +0 -1
- package/dist/subscriberbot/components/decisions/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/mobile/MobileDashboard.d.ts.map +0 -1
- package/dist/subscriberbot/components/mobile/MobileRelationshipList.d.ts.map +0 -1
- package/dist/subscriberbot/components/mobile/MobileScreen.d.ts.map +0 -1
- package/dist/subscriberbot/components/mobile/RelationshipGlyph.d.ts.map +0 -1
- package/dist/subscriberbot/components/mobile/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.d.ts.map +0 -1
- package/dist/subscriberbot/components/negotiations/NegotiationTimeline.d.ts.map +0 -1
- package/dist/subscriberbot/components/negotiations/OutcomeForm.d.ts.map +0 -1
- package/dist/subscriberbot/components/negotiations/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/negotiations/labels.d.ts.map +0 -1
- package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.d.ts.map +0 -1
- package/dist/subscriberbot/components/procurement/ProcurementStatusPill.d.ts.map +0 -1
- package/dist/subscriberbot/components/procurement/ProcurementThread.d.ts.map +0 -1
- package/dist/subscriberbot/components/procurement/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/procurement/labels.d.ts.map +0 -1
- package/dist/subscriberbot/components/savings/SavingsCards.d.ts.map +0 -1
- package/dist/subscriberbot/components/savings/index.d.ts.map +0 -1
- package/dist/subscriberbot/components/savings/savingsModel.d.ts.map +0 -1
- package/dist/subscriberbot/components/viz.d.ts.map +0 -1
- package/dist/subscriberbot/config/assistantUsecases.d.ts.map +0 -1
- package/dist/subscriberbot/context/SubscriberBotContext.d.ts.map +0 -1
- package/dist/subscriberbot/context/index.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/index.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useAutonomousAgentMode.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useBankingApi.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useCompactViewport.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useFormError.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useFormatters.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useNegotiationApi.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useProcurementApi.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useRouteSelection.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useSubscriberBotApi.d.ts.map +0 -1
- package/dist/subscriberbot/hooks/useTr.d.ts.map +0 -1
- package/dist/subscriberbot/index.d.ts.map +0 -1
- package/dist/subscriberbot/pages/AssetVaultPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/DashboardPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/InboxPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/InsightsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/InvoicesPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/RenewalsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/SavingsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/WorkflowsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/agents/AgentDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/agents/AgentNewPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/agents/AgentsListPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/banking/BankConnectionsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/banking/ConnectBankModal.d.ts.map +0 -1
- package/dist/subscriberbot/pages/decisions/DecisionDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/decisions/DecisionsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/negotiations/NegotiationsPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/procurement/ProcurementNewPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/procurement/ProcurementPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/providers/ProviderDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/providers/ProviderInsights.d.ts.map +0 -1
- package/dist/subscriberbot/pages/providers/ProviderNewPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/providers/ProvidersListPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/relationships/RelationshipNewPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/relationships/RelationshipsListPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.d.ts.map +0 -1
- package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.d.ts.map +0 -1
- package/dist/subscriberbot/services/createSandboxAssistantTransport.d.ts.map +0 -1
- package/dist/subscriberbot/store/index.d.ts.map +0 -1
- package/dist/subscriberbot/store/subscriberbotStore.d.ts.map +0 -1
- package/dist/subscriberbot/types/assistant.d.ts.map +0 -1
- package/dist/subscriberbot/types/banking.d.ts.map +0 -1
- package/dist/subscriberbot/types/index.d.ts.map +0 -1
- package/dist/subscriberbot/types/negotiation.d.ts.map +0 -1
- package/dist/subscriberbot/types/procurement.d.ts.map +0 -1
- package/dist/subscriberbot/utils/bankRedirectLink.d.ts.map +0 -1
- package/dist/subscriberbot/utils/chartScale.d.ts.map +0 -1
- package/dist/subscriberbot/utils/cn.d.ts.map +0 -1
- package/dist/subscriberbot/utils/formatters.d.ts.map +0 -1
- package/dist/subscriberbot/utils/index.d.ts.map +0 -1
- package/dist/subscriberbot/utils/navigation.d.ts.map +0 -1
- package/dist/subscriberbot/utils/pageContext.d.ts.map +0 -1
- package/dist/subscriberbot/utils/plaidLink.d.ts.map +0 -1
- package/dist/subscriberbot/utils/portfolio.d.ts.map +0 -1
- package/dist/subscriberbot/utils/renewals.d.ts.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 {
|
|
13
|
-
import {
|
|
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
|
-
|
|
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(
|
|
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:
|
|
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:
|
|
102
|
-
let { formatCurrency: a } =
|
|
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:
|
|
105
|
-
currency:
|
|
106
|
-
monthlyAmount:
|
|
104
|
+
department: e,
|
|
105
|
+
currency: n,
|
|
106
|
+
monthlyAmount: t
|
|
107
107
|
}, {
|
|
108
108
|
onSuccess: () => {
|
|
109
|
-
|
|
109
|
+
_(""), f("");
|
|
110
110
|
},
|
|
111
|
-
onError: (e) => b(e instanceof Error ? e.message :
|
|
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(
|
|
115
|
-
title:
|
|
116
|
-
description:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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) =>
|
|
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:
|
|
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:
|
|
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:
|
|
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 ??
|
|
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":
|
|
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:
|
|
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:
|
|
215
|
-
let
|
|
216
|
-
return (
|
|
217
|
-
}, [J?.currency,
|
|
218
|
-
if (q.isLoading) return /* @__PURE__ */ j(
|
|
219
|
-
if (q.isError || !J) return /* @__PURE__ */ j(
|
|
220
|
-
message:
|
|
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(
|
|
225
|
-
title:
|
|
226
|
-
description:
|
|
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: [
|
|
232
|
-
"aria-label":
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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(
|
|
260
|
+
ne ? /* @__PURE__ */ j(a, {
|
|
265
261
|
icon: /* @__PURE__ */ j(x, { className: "h-8 w-8" }),
|
|
266
|
-
title:
|
|
267
|
-
description:
|
|
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: () =>
|
|
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:
|
|
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(
|
|
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:
|
|
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(
|
|
285
|
+
/* @__PURE__ */ j(i, {
|
|
290
286
|
icon: /* @__PURE__ */ j(T, { className: "h-5 w-5" }),
|
|
291
287
|
value: J.activeRelationshipCount,
|
|
292
|
-
label:
|
|
288
|
+
label: m("enterprise.kpis.activeLicenses", "Active licences")
|
|
293
289
|
}),
|
|
294
|
-
/* @__PURE__ */ j(
|
|
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 ?
|
|
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(
|
|
298
|
+
/* @__PURE__ */ j(i, {
|
|
303
299
|
icon: /* @__PURE__ */ j(S, { className: "h-5 w-5" }),
|
|
304
300
|
value: Z ? Z.relationshipCount : 0,
|
|
305
|
-
label:
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
340
|
+
children: m("enterprise.budget.set", "Set a budget")
|
|
345
341
|
})]
|
|
346
342
|
})
|
|
347
343
|
}),
|
|
348
344
|
/* @__PURE__ */ M(U, {
|
|
349
|
-
title:
|
|
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:
|
|
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:
|
|
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(
|
|
365
|
-
title:
|
|
366
|
-
description:
|
|
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(
|
|
369
|
+
children: [/* @__PURE__ */ j(u, {
|
|
374
370
|
data: J.departments.map((e) => ({
|
|
375
|
-
label: V(
|
|
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(
|
|
383
|
+
children: V(m, e.department)
|
|
388
384
|
}), /* @__PURE__ */ j("span", {
|
|
389
385
|
className: "shrink-0 tabular-nums text-text-secondary",
|
|
390
|
-
children:
|
|
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:
|
|
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:
|
|
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:
|
|
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: () =>
|
|
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:
|
|
432
|
+
children: m("enterprise.duplicates.summary", "{{count}} subscriptions · {{teams}}", {
|
|
437
433
|
count: e.relationshipCount,
|
|
438
|
-
teams: e.departments.length ? e.departments.join(", ") :
|
|
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:
|
|
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:
|
|
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 ? `${
|
|
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
|
-
|
|
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:
|
|
469
|
+
children: m("enterprise.duplicates.none", "No duplicate or overlapping tools found.")
|
|
474
470
|
})
|
|
475
471
|
}), /* @__PURE__ */ j(U, {
|
|
476
|
-
title:
|
|
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
|
-
|
|
489
|
+
m(P[e.reason].key, P[e.reason].fallback),
|
|
494
490
|
" · ",
|
|
495
|
-
V(
|
|
491
|
+
V(m, e.department),
|
|
496
492
|
" · ",
|
|
497
|
-
|
|
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:
|
|
503
|
+
children: m("enterprise.shadow.none", "Every discovered tool is linked to an approved provider.")
|
|
508
504
|
})
|
|
509
505
|
})]
|
|
510
506
|
}),
|
|
511
|
-
/* @__PURE__ */ j(
|
|
512
|
-
title:
|
|
513
|
-
description:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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(
|
|
560
|
-
title:
|
|
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:
|
|
573
|
-
children:
|
|
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(
|
|
585
|
+
V(m, e.department),
|
|
590
586
|
" · ",
|
|
591
587
|
Y(e.monthlySpend),
|
|
592
|
-
|
|
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
|
-
}),
|
|
597
|
+
}), m("enterprise.risks.none", "No compliance or risk issues found.")]
|
|
602
598
|
})
|
|
603
599
|
})
|
|
604
600
|
}),
|
|
605
|
-
/* @__PURE__ */ j(
|
|
606
|
-
title:
|
|
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":
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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(
|
|
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(
|
|
673
|
-
label:
|
|
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 ?
|
|
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:
|
|
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
|
-
}),
|
|
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
|