@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,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ErrorView as c, LoadingView as l, Section as u } from "../../components/StateViews.js";
|
|
10
|
-
import { Gauge as d, MiniProgress as f, Sparkline as p } from "../../components/viz.js";
|
|
1
|
+
import { useFormatters as e } from "../../hooks/useFormatters.js";
|
|
2
|
+
import { useFormError as t } from "../../hooks/useFormError.js";
|
|
3
|
+
import { PageLayout as n } from "../../components/PageLayout.js";
|
|
4
|
+
import { StatusBadge as r } from "../../components/StatusBadge.js";
|
|
5
|
+
import { EmptyState as i } from "../../components/EmptyState.js";
|
|
6
|
+
import { Modal as a } from "../../components/Modal.js";
|
|
7
|
+
import { ErrorView as o, LoadingView as s, Section as c } from "../../components/StateViews.js";
|
|
8
|
+
import { ProviderAlternatives as l, ProviderPaidPriceHistory as u } from "./ProviderInsights.js";
|
|
11
9
|
import "../../components/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { Gauge as d, MiniProgress as f, Sparkline as p } from "../../components/viz.js";
|
|
11
|
+
import { useSubscriberBot as m } from "../../context/SubscriberBotContext.js";
|
|
12
|
+
import { useArchiveProvider as h, useBenchmarkDataPoints as g, useCreatePlan as _, useProvider as v, useUpdateProvider as y } from "../../hooks/useSubscriberBotApi.js";
|
|
13
|
+
import { useTr as b } from "../../hooks/useTr.js";
|
|
14
|
+
import { cn as x } from "../../utils/cn.js";
|
|
15
15
|
import { useMemo as S, useState as C } from "react";
|
|
16
16
|
import { Archive as w, ArrowLeft as T, Building2 as E, Check as D, Globe as O, Layers as k, LineChart as A, Pencil as j, Plus as M, ShieldCheck as N, Sparkles as P, Tag as F, TrendingDown as I } from "lucide-react";
|
|
17
|
-
import { useParams as
|
|
18
|
-
import { Fragment as
|
|
19
|
-
import { GlassCard as
|
|
20
|
-
|
|
21
|
-
var
|
|
17
|
+
import { useParams as ee } from "react-router";
|
|
18
|
+
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
19
|
+
import { GlassCard as B } from "@burdenoff/fe-libs/ui";
|
|
20
|
+
// src/subscriberbot/pages/providers/ProviderDetailPage.tsx
|
|
21
|
+
var V = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]", H = "mb-1 block text-xs font-medium text-text-secondary", U = [
|
|
22
22
|
"SAAS",
|
|
23
23
|
"AI_SERVICE",
|
|
24
24
|
"STREAMING",
|
|
@@ -35,7 +35,7 @@ var H = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 t
|
|
|
35
35
|
"LICENSE",
|
|
36
36
|
"CONTRACT",
|
|
37
37
|
"OTHER"
|
|
38
|
-
],
|
|
38
|
+
], W = {
|
|
39
39
|
SAAS: "providers.categories.saas",
|
|
40
40
|
AI_SERVICE: "providers.categories.aiService",
|
|
41
41
|
STREAMING: "providers.categories.streaming",
|
|
@@ -52,12 +52,12 @@ var H = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 t
|
|
|
52
52
|
LICENSE: "providers.categories.license",
|
|
53
53
|
CONTRACT: "providers.categories.contract",
|
|
54
54
|
OTHER: "providers.categories.other"
|
|
55
|
-
},
|
|
55
|
+
}, G = [
|
|
56
56
|
"UNVERIFIED",
|
|
57
57
|
"VERIFIED",
|
|
58
58
|
"CLAIMED",
|
|
59
59
|
"DEPRECATED"
|
|
60
|
-
],
|
|
60
|
+
], K = [
|
|
61
61
|
"MONTHLY",
|
|
62
62
|
"YEARLY",
|
|
63
63
|
"QUARTERLY",
|
|
@@ -67,7 +67,7 @@ var H = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 t
|
|
|
67
67
|
"LIFETIME",
|
|
68
68
|
"FREE"
|
|
69
69
|
];
|
|
70
|
-
function
|
|
70
|
+
function q(e, t) {
|
|
71
71
|
return e >= 70 ? {
|
|
72
72
|
label: t("providers.detail.healthy", "Healthy"),
|
|
73
73
|
cls: "bg-status-success-bg-subtle text-status-success-text"
|
|
@@ -79,7 +79,7 @@ function J(e, t) {
|
|
|
79
79
|
cls: "bg-status-error-bg-subtle text-status-error-text"
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function J(e, t) {
|
|
83
83
|
return e >= 67 ? {
|
|
84
84
|
label: t("providers.detail.churnHigh", "High"),
|
|
85
85
|
chip: "bg-status-error-bg-subtle text-status-error-text",
|
|
@@ -94,173 +94,173 @@ function Y(e, t) {
|
|
|
94
94
|
tone: "positive"
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
let { formatEnumLabel: i } =
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
title:
|
|
97
|
+
function Y({ provider: n, onClose: r }) {
|
|
98
|
+
let { formatEnumLabel: i } = e(), o = b(), s = y(), [c, l] = C(n.name), [u, d] = C(n.category), [f, p] = C(n.status), [m, h] = C(n.description ?? ""), [g, _] = C(n.industry ?? ""), [v, x] = C(n.region ?? ""), [S, w] = C(n.language ?? ""), [T, E] = C(n.websiteUrl ?? ""), [D, O] = C(n.churnRiskScore == null ? "" : String(n.churnRiskScore)), [k, A] = C(n.vendorHealthScore == null ? "" : String(n.vendorHealthScore)), [j, M] = C(n.tags.join(", ")), [N, P, F, I] = t();
|
|
99
|
+
return /* @__PURE__ */ R(a, {
|
|
100
|
+
title: o("providers.detail.editModal.title", "Edit provider"),
|
|
101
101
|
onClose: r,
|
|
102
102
|
maxWidthClassName: "max-w-2xl",
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
-
onSubmit: (
|
|
105
|
-
if (
|
|
106
|
-
P(
|
|
103
|
+
children: /* @__PURE__ */ z("form", {
|
|
104
|
+
onSubmit: (e) => {
|
|
105
|
+
if (e.preventDefault(), P(null), !c.trim()) {
|
|
106
|
+
P(o("providers.new.nameRequired", "A provider name is required."), "prov-edit-name");
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
let
|
|
109
|
+
let t = j.split(",").map((e) => e.trim()).filter(Boolean), i = {
|
|
110
110
|
name: c.trim(),
|
|
111
111
|
category: u,
|
|
112
112
|
status: f,
|
|
113
113
|
description: m.trim(),
|
|
114
|
-
tags:
|
|
114
|
+
tags: t,
|
|
115
115
|
...g.trim() ? { industry: g.trim() } : {},
|
|
116
|
-
...
|
|
116
|
+
...v.trim() ? { region: v.trim() } : {},
|
|
117
117
|
...S.trim() ? { language: S.trim() } : {},
|
|
118
118
|
...T.trim() ? { websiteUrl: T.trim() } : {},
|
|
119
119
|
...D.trim() ? { churnRiskScore: Number(D) } : {},
|
|
120
120
|
...k.trim() ? { vendorHealthScore: Number(k) } : {}
|
|
121
121
|
};
|
|
122
|
-
|
|
123
|
-
id:
|
|
122
|
+
s.mutate({
|
|
123
|
+
id: n.id,
|
|
124
124
|
input: i
|
|
125
125
|
}, {
|
|
126
126
|
onSuccess: () => r(),
|
|
127
|
-
onError: (e) => P(e instanceof Error ? e.message :
|
|
127
|
+
onError: (e) => P(e instanceof Error ? e.message : o("providers.detail.editModal.error", "Could not update provider."))
|
|
128
128
|
});
|
|
129
129
|
},
|
|
130
130
|
className: "space-y-4",
|
|
131
131
|
children: [
|
|
132
|
-
N && /* @__PURE__ */
|
|
132
|
+
N && /* @__PURE__ */ R("div", {
|
|
133
133
|
id: I,
|
|
134
134
|
tabIndex: -1,
|
|
135
135
|
role: "alert",
|
|
136
136
|
className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
137
137
|
children: N
|
|
138
138
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
|
|
140
140
|
htmlFor: "prov-edit-name",
|
|
141
|
-
className:
|
|
141
|
+
className: H,
|
|
142
142
|
children: [
|
|
143
|
-
|
|
143
|
+
o("providers.detail.editModal.nameLabel", "Name"),
|
|
144
144
|
" ",
|
|
145
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ R("span", {
|
|
146
146
|
className: "text-status-error-text",
|
|
147
147
|
children: "*"
|
|
148
148
|
})
|
|
149
149
|
]
|
|
150
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ R("input", {
|
|
151
151
|
...F("prov-edit-name"),
|
|
152
152
|
id: "prov-edit-name",
|
|
153
153
|
type: "text",
|
|
154
154
|
value: c,
|
|
155
155
|
onChange: (e) => l(e.target.value),
|
|
156
|
-
className:
|
|
156
|
+
className: V,
|
|
157
157
|
required: !0
|
|
158
158
|
})] }),
|
|
159
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ z("div", {
|
|
160
160
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
162
162
|
htmlFor: "prov-edit-category",
|
|
163
|
-
className:
|
|
164
|
-
children:
|
|
165
|
-
}), /* @__PURE__ */
|
|
163
|
+
className: H,
|
|
164
|
+
children: o("providers.detail.editModal.categoryLabel", "Category")
|
|
165
|
+
}), /* @__PURE__ */ R("select", {
|
|
166
166
|
...F("prov-edit-category"),
|
|
167
167
|
id: "prov-edit-category",
|
|
168
168
|
value: u,
|
|
169
169
|
onChange: (e) => d(e.target.value),
|
|
170
|
-
className:
|
|
171
|
-
children:
|
|
170
|
+
className: V,
|
|
171
|
+
children: U.map((e) => /* @__PURE__ */ R("option", {
|
|
172
172
|
value: e,
|
|
173
|
-
children:
|
|
173
|
+
children: o(W[e], i(e))
|
|
174
174
|
}, e))
|
|
175
|
-
})] }), /* @__PURE__ */
|
|
175
|
+
})] }), /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
176
176
|
htmlFor: "prov-edit-status",
|
|
177
|
-
className:
|
|
178
|
-
children:
|
|
179
|
-
}), /* @__PURE__ */
|
|
177
|
+
className: H,
|
|
178
|
+
children: o("providers.detail.editModal.statusLabel", "Status")
|
|
179
|
+
}), /* @__PURE__ */ R("select", {
|
|
180
180
|
...F("prov-edit-status"),
|
|
181
181
|
id: "prov-edit-status",
|
|
182
182
|
value: f,
|
|
183
183
|
onChange: (e) => p(e.target.value),
|
|
184
|
-
className:
|
|
185
|
-
children:
|
|
184
|
+
className: V,
|
|
185
|
+
children: G.map((e) => /* @__PURE__ */ R("option", {
|
|
186
186
|
value: e,
|
|
187
187
|
children: i(e)
|
|
188
188
|
}, e))
|
|
189
189
|
})] })]
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ z("div", {
|
|
192
192
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
193
193
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
195
195
|
htmlFor: "prov-edit-industry",
|
|
196
|
-
className:
|
|
197
|
-
children:
|
|
198
|
-
}), /* @__PURE__ */
|
|
196
|
+
className: H,
|
|
197
|
+
children: o("providers.detail.editModal.industryLabel", "Industry")
|
|
198
|
+
}), /* @__PURE__ */ R("input", {
|
|
199
199
|
...F("prov-edit-industry"),
|
|
200
200
|
id: "prov-edit-industry",
|
|
201
201
|
type: "text",
|
|
202
202
|
value: g,
|
|
203
203
|
onChange: (e) => _(e.target.value),
|
|
204
|
-
className:
|
|
204
|
+
className: V
|
|
205
205
|
})] }),
|
|
206
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
207
207
|
htmlFor: "prov-edit-region",
|
|
208
|
-
className:
|
|
209
|
-
children:
|
|
210
|
-
}), /* @__PURE__ */
|
|
208
|
+
className: H,
|
|
209
|
+
children: o("providers.detail.editModal.regionLabel", "Region")
|
|
210
|
+
}), /* @__PURE__ */ R("input", {
|
|
211
211
|
...F("prov-edit-region"),
|
|
212
212
|
id: "prov-edit-region",
|
|
213
213
|
type: "text",
|
|
214
|
-
value:
|
|
214
|
+
value: v,
|
|
215
215
|
onChange: (e) => x(e.target.value),
|
|
216
|
-
className:
|
|
216
|
+
className: V
|
|
217
217
|
})] }),
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
219
219
|
htmlFor: "prov-edit-language",
|
|
220
|
-
className:
|
|
221
|
-
children:
|
|
222
|
-
}), /* @__PURE__ */
|
|
220
|
+
className: H,
|
|
221
|
+
children: o("providers.detail.editModal.languageLabel", "Language")
|
|
222
|
+
}), /* @__PURE__ */ R("input", {
|
|
223
223
|
...F("prov-edit-language"),
|
|
224
224
|
id: "prov-edit-language",
|
|
225
225
|
type: "text",
|
|
226
226
|
value: S,
|
|
227
227
|
onChange: (e) => w(e.target.value),
|
|
228
|
-
className:
|
|
228
|
+
className: V
|
|
229
229
|
})] })
|
|
230
230
|
]
|
|
231
231
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
233
233
|
htmlFor: "prov-edit-website",
|
|
234
|
-
className:
|
|
235
|
-
children:
|
|
236
|
-
}), /* @__PURE__ */
|
|
234
|
+
className: H,
|
|
235
|
+
children: o("providers.detail.editModal.websiteLabel", "Website")
|
|
236
|
+
}), /* @__PURE__ */ R("input", {
|
|
237
237
|
...F("prov-edit-website"),
|
|
238
238
|
id: "prov-edit-website",
|
|
239
239
|
type: "url",
|
|
240
240
|
value: T,
|
|
241
241
|
onChange: (e) => E(e.target.value),
|
|
242
|
-
placeholder:
|
|
243
|
-
className:
|
|
242
|
+
placeholder: o("providers.detail.editModal.websitePlaceholder", "https://…"),
|
|
243
|
+
className: V
|
|
244
244
|
})] }),
|
|
245
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
246
246
|
htmlFor: "prov-edit-desc",
|
|
247
|
-
className:
|
|
248
|
-
children:
|
|
249
|
-
}), /* @__PURE__ */
|
|
247
|
+
className: H,
|
|
248
|
+
children: o("providers.detail.editModal.descriptionLabel", "Description")
|
|
249
|
+
}), /* @__PURE__ */ R("textarea", {
|
|
250
250
|
...F("prov-edit-desc"),
|
|
251
251
|
id: "prov-edit-desc",
|
|
252
252
|
value: m,
|
|
253
253
|
onChange: (e) => h(e.target.value),
|
|
254
254
|
rows: 3,
|
|
255
|
-
className:
|
|
255
|
+
className: V
|
|
256
256
|
})] }),
|
|
257
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ z("div", {
|
|
258
258
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
259
|
+
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
260
260
|
htmlFor: "prov-edit-churn",
|
|
261
|
-
className:
|
|
262
|
-
children:
|
|
263
|
-
}), /* @__PURE__ */
|
|
261
|
+
className: H,
|
|
262
|
+
children: o("providers.detail.editModal.churnRiskLabel", "Churn risk (0–100)")
|
|
263
|
+
}), /* @__PURE__ */ R("input", {
|
|
264
264
|
...F("prov-edit-churn"),
|
|
265
265
|
id: "prov-edit-churn",
|
|
266
266
|
type: "number",
|
|
@@ -268,12 +268,12 @@ function ee({ provider: e, onClose: r }) {
|
|
|
268
268
|
max: "100",
|
|
269
269
|
value: D,
|
|
270
270
|
onChange: (e) => O(e.target.value),
|
|
271
|
-
className:
|
|
272
|
-
})] }), /* @__PURE__ */
|
|
271
|
+
className: V
|
|
272
|
+
})] }), /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
273
273
|
htmlFor: "prov-edit-health",
|
|
274
|
-
className:
|
|
275
|
-
children:
|
|
276
|
-
}), /* @__PURE__ */
|
|
274
|
+
className: H,
|
|
275
|
+
children: o("providers.detail.editModal.vendorHealthLabel", "Vendor health (0–100)")
|
|
276
|
+
}), /* @__PURE__ */ R("input", {
|
|
277
277
|
...F("prov-edit-health"),
|
|
278
278
|
id: "prov-edit-health",
|
|
279
279
|
type: "number",
|
|
@@ -281,114 +281,114 @@ function ee({ provider: e, onClose: r }) {
|
|
|
281
281
|
max: "100",
|
|
282
282
|
value: k,
|
|
283
283
|
onChange: (e) => A(e.target.value),
|
|
284
|
-
className:
|
|
284
|
+
className: V
|
|
285
285
|
})] })]
|
|
286
286
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
|
|
288
288
|
htmlFor: "prov-edit-tags",
|
|
289
|
-
className:
|
|
289
|
+
className: H,
|
|
290
290
|
children: [
|
|
291
|
-
|
|
291
|
+
o("providers.detail.editModal.tagsLabel", "Tags"),
|
|
292
292
|
" ",
|
|
293
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ z("span", {
|
|
294
294
|
className: "text-text-secondary",
|
|
295
295
|
children: [
|
|
296
296
|
"(",
|
|
297
|
-
|
|
297
|
+
o("providers.detail.editModal.tagsHint", "comma-separated"),
|
|
298
298
|
")"
|
|
299
299
|
]
|
|
300
300
|
})
|
|
301
301
|
]
|
|
302
|
-
}), /* @__PURE__ */
|
|
302
|
+
}), /* @__PURE__ */ R("input", {
|
|
303
303
|
...F("prov-edit-tags"),
|
|
304
304
|
id: "prov-edit-tags",
|
|
305
305
|
type: "text",
|
|
306
306
|
value: j,
|
|
307
307
|
onChange: (e) => M(e.target.value),
|
|
308
|
-
className:
|
|
308
|
+
className: V
|
|
309
309
|
})] }),
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ z("div", {
|
|
311
311
|
className: "flex justify-end gap-3",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ R("button", {
|
|
313
313
|
type: "button",
|
|
314
314
|
onClick: r,
|
|
315
315
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
316
|
-
children:
|
|
317
|
-
}), /* @__PURE__ */
|
|
316
|
+
children: o("providers.detail.editModal.cancel", "Cancel")
|
|
317
|
+
}), /* @__PURE__ */ R("button", {
|
|
318
318
|
type: "submit",
|
|
319
|
-
disabled:
|
|
319
|
+
disabled: s.isPending,
|
|
320
320
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
|
|
321
|
-
children:
|
|
321
|
+
children: s.isPending ? o("providers.detail.editModal.saving", "Saving…") : o("providers.detail.editModal.submit", "Save changes")
|
|
322
322
|
})]
|
|
323
323
|
})
|
|
324
324
|
]
|
|
325
325
|
})
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function te({ providerId:
|
|
329
|
-
let { formatEnumLabel: i } =
|
|
330
|
-
return /* @__PURE__ */
|
|
331
|
-
title:
|
|
328
|
+
function te({ providerId: n, onClose: r }) {
|
|
329
|
+
let { formatEnumLabel: i } = e(), o = b(), s = _(), [c, l] = C(""), [u, d] = C(""), [f, p] = C("USD"), [m, h] = C("MONTHLY"), [g, v] = C(""), [y, x] = C(""), [S, w] = C(!0), [T, E, D, O] = t();
|
|
330
|
+
return /* @__PURE__ */ R(a, {
|
|
331
|
+
title: o("providers.detail.addPlanModal.title", "Add plan"),
|
|
332
332
|
onClose: r,
|
|
333
333
|
maxWidthClassName: "max-w-xl",
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
onSubmit: (
|
|
336
|
-
if (
|
|
337
|
-
E(
|
|
334
|
+
children: /* @__PURE__ */ z("form", {
|
|
335
|
+
onSubmit: (e) => {
|
|
336
|
+
if (e.preventDefault(), E(null), !c.trim()) {
|
|
337
|
+
E(o("providers.detail.addPlanModal.nameRequired", "A plan name is required."), "plan-name");
|
|
338
338
|
return;
|
|
339
339
|
}
|
|
340
|
-
let
|
|
341
|
-
|
|
342
|
-
providerId:
|
|
340
|
+
let t = y.split("\n").map((e) => e.trim()).filter(Boolean);
|
|
341
|
+
s.mutate({
|
|
342
|
+
providerId: n,
|
|
343
343
|
name: c.trim(),
|
|
344
344
|
interval: m,
|
|
345
345
|
currency: f.trim() || "USD",
|
|
346
346
|
...u.trim() ? { amount: Number(u) } : {},
|
|
347
|
-
...
|
|
348
|
-
...
|
|
347
|
+
...g.trim() ? { description: g.trim() } : {},
|
|
348
|
+
...t.length ? { features: t } : {}
|
|
349
349
|
}, {
|
|
350
350
|
onSuccess: () => r(),
|
|
351
|
-
onError: (e) => E(e instanceof Error ? e.message :
|
|
351
|
+
onError: (e) => E(e instanceof Error ? e.message : o("providers.detail.addPlanModal.error", "Could not add plan."))
|
|
352
352
|
});
|
|
353
353
|
},
|
|
354
354
|
className: "space-y-4",
|
|
355
355
|
children: [
|
|
356
|
-
T && /* @__PURE__ */
|
|
356
|
+
T && /* @__PURE__ */ R("div", {
|
|
357
357
|
id: O,
|
|
358
358
|
tabIndex: -1,
|
|
359
359
|
role: "alert",
|
|
360
360
|
className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
361
361
|
children: T
|
|
362
362
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
|
|
364
364
|
htmlFor: "plan-name",
|
|
365
|
-
className:
|
|
365
|
+
className: H,
|
|
366
366
|
children: [
|
|
367
|
-
|
|
367
|
+
o("providers.detail.addPlanModal.nameLabel", "Name"),
|
|
368
368
|
" ",
|
|
369
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ R("span", {
|
|
370
370
|
className: "text-status-error-text",
|
|
371
371
|
children: "*"
|
|
372
372
|
})
|
|
373
373
|
]
|
|
374
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ R("input", {
|
|
375
375
|
...D("plan-name"),
|
|
376
376
|
id: "plan-name",
|
|
377
377
|
type: "text",
|
|
378
378
|
value: c,
|
|
379
379
|
onChange: (e) => l(e.target.value),
|
|
380
|
-
placeholder:
|
|
381
|
-
className:
|
|
380
|
+
placeholder: o("providers.detail.addPlanModal.namePlaceholder", "e.g. Pro, Team, Enterprise"),
|
|
381
|
+
className: V,
|
|
382
382
|
required: !0
|
|
383
383
|
})] }),
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ z("div", {
|
|
385
385
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
386
386
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
388
388
|
htmlFor: "plan-amount",
|
|
389
|
-
className:
|
|
390
|
-
children:
|
|
391
|
-
}), /* @__PURE__ */
|
|
389
|
+
className: H,
|
|
390
|
+
children: o("providers.detail.addPlanModal.amountLabel", "Amount")
|
|
391
|
+
}), /* @__PURE__ */ R("input", {
|
|
392
392
|
...D("plan-amount"),
|
|
393
393
|
id: "plan-amount",
|
|
394
394
|
type: "number",
|
|
@@ -396,146 +396,146 @@ function te({ providerId: e, onClose: r }) {
|
|
|
396
396
|
step: "0.01",
|
|
397
397
|
value: u,
|
|
398
398
|
onChange: (e) => d(e.target.value),
|
|
399
|
-
placeholder:
|
|
400
|
-
className:
|
|
399
|
+
placeholder: o("providers.detail.addPlanModal.amountPlaceholder", "0.00"),
|
|
400
|
+
className: V
|
|
401
401
|
})] }),
|
|
402
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
403
403
|
htmlFor: "plan-currency",
|
|
404
|
-
className:
|
|
405
|
-
children:
|
|
406
|
-
}), /* @__PURE__ */
|
|
404
|
+
className: H,
|
|
405
|
+
children: o("providers.detail.addPlanModal.currencyLabel", "Currency")
|
|
406
|
+
}), /* @__PURE__ */ R("input", {
|
|
407
407
|
...D("plan-currency"),
|
|
408
408
|
id: "plan-currency",
|
|
409
409
|
type: "text",
|
|
410
410
|
value: f,
|
|
411
411
|
onChange: (e) => p(e.target.value.toUpperCase()),
|
|
412
412
|
maxLength: 3,
|
|
413
|
-
className:
|
|
413
|
+
className: V
|
|
414
414
|
})] }),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
416
416
|
htmlFor: "plan-interval",
|
|
417
|
-
className:
|
|
418
|
-
children:
|
|
419
|
-
}), /* @__PURE__ */
|
|
417
|
+
className: H,
|
|
418
|
+
children: o("providers.detail.addPlanModal.intervalLabel", "Interval")
|
|
419
|
+
}), /* @__PURE__ */ R("select", {
|
|
420
420
|
...D("plan-interval"),
|
|
421
421
|
id: "plan-interval",
|
|
422
422
|
value: m,
|
|
423
423
|
onChange: (e) => h(e.target.value),
|
|
424
|
-
className:
|
|
425
|
-
children:
|
|
424
|
+
className: V,
|
|
425
|
+
children: K.map((e) => /* @__PURE__ */ R("option", {
|
|
426
426
|
value: e,
|
|
427
427
|
children: i(e)
|
|
428
428
|
}, e))
|
|
429
429
|
})] })
|
|
430
430
|
]
|
|
431
431
|
}),
|
|
432
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
|
|
433
433
|
htmlFor: "plan-desc",
|
|
434
|
-
className:
|
|
435
|
-
children:
|
|
436
|
-
}), /* @__PURE__ */
|
|
434
|
+
className: H,
|
|
435
|
+
children: o("providers.detail.addPlanModal.descriptionLabel", "Description")
|
|
436
|
+
}), /* @__PURE__ */ R("textarea", {
|
|
437
437
|
...D("plan-desc"),
|
|
438
438
|
id: "plan-desc",
|
|
439
|
-
value:
|
|
439
|
+
value: g,
|
|
440
440
|
onChange: (e) => v(e.target.value),
|
|
441
441
|
rows: 2,
|
|
442
|
-
className:
|
|
442
|
+
className: V
|
|
443
443
|
})] }),
|
|
444
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
|
|
445
445
|
htmlFor: "plan-features",
|
|
446
|
-
className:
|
|
446
|
+
className: H,
|
|
447
447
|
children: [
|
|
448
|
-
|
|
448
|
+
o("providers.detail.addPlanModal.featuresLabel", "Features"),
|
|
449
449
|
" ",
|
|
450
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ z("span", {
|
|
451
451
|
className: "text-text-secondary",
|
|
452
452
|
children: [
|
|
453
453
|
"(",
|
|
454
|
-
|
|
454
|
+
o("providers.detail.addPlanModal.featuresHint", "one per line"),
|
|
455
455
|
")"
|
|
456
456
|
]
|
|
457
457
|
})
|
|
458
458
|
]
|
|
459
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ R("textarea", {
|
|
460
460
|
...D("plan-features"),
|
|
461
461
|
id: "plan-features",
|
|
462
|
-
value:
|
|
462
|
+
value: y,
|
|
463
463
|
onChange: (e) => x(e.target.value),
|
|
464
464
|
rows: 3,
|
|
465
|
-
placeholder:
|
|
466
|
-
className:
|
|
465
|
+
placeholder: o("providers.detail.addPlanModal.featuresPlaceholder", "Unlimited projects\nPriority support\nSSO"),
|
|
466
|
+
className: V
|
|
467
467
|
})] }),
|
|
468
|
-
/* @__PURE__ */
|
|
468
|
+
/* @__PURE__ */ z("label", {
|
|
469
469
|
className: "flex items-center gap-2 text-sm text-text-primary",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ R("input", {
|
|
471
471
|
type: "checkbox",
|
|
472
472
|
checked: S,
|
|
473
473
|
onChange: (e) => w(e.target.checked),
|
|
474
474
|
className: "size-4 rounded border-border-subtle"
|
|
475
|
-
}),
|
|
475
|
+
}), o("providers.detail.addPlanModal.active", "Active")]
|
|
476
476
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ z("div", {
|
|
478
478
|
className: "flex justify-end gap-3",
|
|
479
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ R("button", {
|
|
480
480
|
type: "button",
|
|
481
481
|
onClick: r,
|
|
482
482
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
483
|
-
children:
|
|
484
|
-
}), /* @__PURE__ */
|
|
483
|
+
children: o("providers.detail.addPlanModal.cancel", "Cancel")
|
|
484
|
+
}), /* @__PURE__ */ R("button", {
|
|
485
485
|
type: "submit",
|
|
486
|
-
disabled:
|
|
486
|
+
disabled: s.isPending,
|
|
487
487
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90 disabled:opacity-50",
|
|
488
|
-
children:
|
|
488
|
+
children: s.isPending ? o("providers.detail.addPlanModal.adding", "Adding…") : o("providers.detail.addPlanModal.submit", "Add plan")
|
|
489
489
|
})]
|
|
490
490
|
})
|
|
491
491
|
]
|
|
492
492
|
})
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function ne({ provider:
|
|
496
|
-
let
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
title:
|
|
499
|
-
onClose:
|
|
500
|
-
children: /* @__PURE__ */
|
|
495
|
+
function ne({ provider: e, onClose: t }) {
|
|
496
|
+
let n = b(), { navigateTo: r } = m(), i = h(), [o, s] = C(null);
|
|
497
|
+
return /* @__PURE__ */ R(a, {
|
|
498
|
+
title: n("providers.detail.archiveModal.title", "Archive provider"),
|
|
499
|
+
onClose: t,
|
|
500
|
+
children: /* @__PURE__ */ z("div", {
|
|
501
501
|
className: "space-y-4",
|
|
502
502
|
children: [
|
|
503
|
-
|
|
503
|
+
o && /* @__PURE__ */ R("div", {
|
|
504
504
|
role: "alert",
|
|
505
505
|
className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
506
|
-
children:
|
|
506
|
+
children: o
|
|
507
507
|
}),
|
|
508
|
-
/* @__PURE__ */
|
|
508
|
+
/* @__PURE__ */ R("p", {
|
|
509
509
|
className: "text-sm text-text-secondary",
|
|
510
|
-
children:
|
|
510
|
+
children: n("providers.detail.archiveModal.description", "Archive {{name}}? It will be removed from the active registry. This can be reversed by an administrator.", { name: e.name })
|
|
511
511
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ z("div", {
|
|
513
513
|
className: "flex justify-end gap-3",
|
|
514
|
-
children: [/* @__PURE__ */
|
|
514
|
+
children: [/* @__PURE__ */ R("button", {
|
|
515
515
|
type: "button",
|
|
516
|
-
onClick:
|
|
516
|
+
onClick: t,
|
|
517
517
|
className: "rounded-lg border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
518
|
-
children:
|
|
519
|
-
}), /* @__PURE__ */
|
|
518
|
+
children: n("providers.detail.archiveModal.cancel", "Cancel")
|
|
519
|
+
}), /* @__PURE__ */ R("button", {
|
|
520
520
|
type: "button",
|
|
521
521
|
onClick: () => {
|
|
522
|
-
|
|
523
|
-
onSuccess: () =>
|
|
524
|
-
onError: (e) =>
|
|
522
|
+
s(null), i.mutate(e.id, {
|
|
523
|
+
onSuccess: () => r("/providers"),
|
|
524
|
+
onError: (e) => s(e instanceof Error ? e.message : n("providers.detail.archiveModal.error", "Could not archive this provider."))
|
|
525
525
|
});
|
|
526
526
|
},
|
|
527
|
-
disabled:
|
|
527
|
+
disabled: i.isPending,
|
|
528
528
|
className: "rounded-lg border border-status-error-text/30 bg-status-error-bg-subtle px-4 py-2 text-sm font-medium text-status-error-text hover:opacity-90 disabled:opacity-50",
|
|
529
|
-
children:
|
|
529
|
+
children: i.isPending ? n("providers.detail.archiveModal.archiving", "Archiving…") : n("providers.detail.archiveModal.submit", "Archive provider")
|
|
530
530
|
})]
|
|
531
531
|
})
|
|
532
532
|
]
|
|
533
533
|
})
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
|
-
function re({ slug:
|
|
537
|
-
let { formatCurrency:
|
|
538
|
-
let e = [...
|
|
536
|
+
function re({ slug: t }) {
|
|
537
|
+
let { formatCurrency: n, formatDate: r, formatEnumLabel: i, formatIntervalSuffix: a } = e(), c = b(), { data: l, isLoading: u, isError: d, refetch: f } = g(t), m = S(() => {
|
|
538
|
+
let e = [...l ?? []].filter((e) => Number.isFinite(e.amount)).sort((e, t) => new Date(e.observedAt).getTime() - new Date(t.observedAt).getTime()), t = e[e.length - 1];
|
|
539
539
|
if (!t) return null;
|
|
540
540
|
let n = e.filter((e) => e.planName === t.planName && e.region === t.region && e.currency === t.currency && e.interval === t.interval), r = n.map((e) => e.amount);
|
|
541
541
|
return {
|
|
@@ -546,120 +546,120 @@ function re({ slug: e }) {
|
|
|
546
546
|
max: Math.max(...r),
|
|
547
547
|
first: r[0] ?? t.amount
|
|
548
548
|
};
|
|
549
|
-
}, [
|
|
550
|
-
return /* @__PURE__ */ B
|
|
549
|
+
}, [l]);
|
|
550
|
+
return /* @__PURE__ */ z(B, {
|
|
551
551
|
treatment: "metric",
|
|
552
552
|
className: "p-5",
|
|
553
|
-
children: [/* @__PURE__ */
|
|
553
|
+
children: [/* @__PURE__ */ z("span", {
|
|
554
554
|
className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
555
555
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
556
|
+
/* @__PURE__ */ R(A, { className: "h-4 w-4 text-text-secondary" }),
|
|
557
557
|
" ",
|
|
558
|
-
|
|
558
|
+
c("providers.detail.marketBenchmark", "Market benchmark")
|
|
559
559
|
]
|
|
560
|
-
}),
|
|
560
|
+
}), t ? u ? /* @__PURE__ */ R(s, {
|
|
561
561
|
className: "min-h-[8rem]",
|
|
562
|
-
label:
|
|
563
|
-
}) :
|
|
562
|
+
label: c("providers.detail.priceHistoryLoading", "Loading price history…")
|
|
563
|
+
}) : d ? /* @__PURE__ */ R(o, {
|
|
564
564
|
className: "min-h-[8rem]",
|
|
565
|
-
title:
|
|
566
|
-
message:
|
|
567
|
-
onRetry: () => void
|
|
568
|
-
}) :
|
|
569
|
-
/* @__PURE__ */
|
|
565
|
+
title: c("providers.detail.priceHistoryErrorTitle", "Price history unavailable"),
|
|
566
|
+
message: c("providers.detail.priceHistoryError", "Could not load observed prices for this provider."),
|
|
567
|
+
onRetry: () => void f()
|
|
568
|
+
}) : m ? /* @__PURE__ */ z(L, { children: [
|
|
569
|
+
/* @__PURE__ */ z("p", {
|
|
570
570
|
className: "mt-3 text-2xl font-bold tabular-nums text-text-primary",
|
|
571
|
-
children: [
|
|
571
|
+
children: [n(m.latest.amount, m.latest.currency), /* @__PURE__ */ R("span", {
|
|
572
572
|
className: "text-sm font-normal text-text-secondary",
|
|
573
|
-
children:
|
|
573
|
+
children: a(m.latest.interval)
|
|
574
574
|
})]
|
|
575
575
|
}),
|
|
576
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ z("p", {
|
|
577
577
|
className: "text-xs text-text-secondary",
|
|
578
578
|
children: [
|
|
579
|
-
|
|
579
|
+
m.latest.planName,
|
|
580
580
|
" · ",
|
|
581
|
-
|
|
581
|
+
m.latest.region,
|
|
582
582
|
" ·",
|
|
583
583
|
" ",
|
|
584
|
-
|
|
584
|
+
c("providers.detail.observed", "observed"),
|
|
585
585
|
" ",
|
|
586
|
-
|
|
586
|
+
r(m.latest.observedAt)
|
|
587
587
|
]
|
|
588
588
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ R(p, {
|
|
590
590
|
className: "mt-3 w-full",
|
|
591
|
-
points:
|
|
592
|
-
positive:
|
|
591
|
+
points: m.amounts,
|
|
592
|
+
positive: m.latest.amount <= m.first
|
|
593
593
|
}),
|
|
594
|
-
/* @__PURE__ */
|
|
594
|
+
/* @__PURE__ */ z("dl", {
|
|
595
595
|
className: "mt-3 space-y-2 border-t border-border-subtle pt-3 text-xs",
|
|
596
596
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ z("div", {
|
|
598
598
|
className: "flex items-center justify-between gap-2",
|
|
599
|
-
children: [/* @__PURE__ */
|
|
599
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
600
600
|
className: "text-text-secondary",
|
|
601
|
-
children:
|
|
602
|
-
}), /* @__PURE__ */
|
|
601
|
+
children: c("providers.detail.observedRange", "Observed range")
|
|
602
|
+
}), /* @__PURE__ */ z("dd", {
|
|
603
603
|
className: "font-medium tabular-nums text-text-primary",
|
|
604
604
|
children: [
|
|
605
|
-
|
|
605
|
+
n(m.min, m.latest.currency),
|
|
606
606
|
" –",
|
|
607
607
|
" ",
|
|
608
|
-
|
|
608
|
+
n(m.max, m.latest.currency)
|
|
609
609
|
]
|
|
610
610
|
})]
|
|
611
611
|
}),
|
|
612
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ z("div", {
|
|
613
613
|
className: "flex items-center justify-between gap-2",
|
|
614
|
-
children: [/* @__PURE__ */
|
|
614
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
615
615
|
className: "text-text-secondary",
|
|
616
|
-
children:
|
|
617
|
-
}), /* @__PURE__ */
|
|
616
|
+
children: c("providers.detail.observations", "Observations")
|
|
617
|
+
}), /* @__PURE__ */ R("dd", {
|
|
618
618
|
className: "font-medium tabular-nums text-text-primary",
|
|
619
|
-
children:
|
|
619
|
+
children: m.points.length
|
|
620
620
|
})]
|
|
621
621
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ z("div", {
|
|
623
623
|
className: "flex items-center justify-between gap-2",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
624
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
625
625
|
className: "text-text-secondary",
|
|
626
|
-
children:
|
|
627
|
-
}), /* @__PURE__ */
|
|
626
|
+
children: c("providers.detail.latestSource", "Latest source")
|
|
627
|
+
}), /* @__PURE__ */ R("dd", {
|
|
628
628
|
className: "font-medium text-text-primary",
|
|
629
|
-
children:
|
|
629
|
+
children: m.latest.sourceLabel ?? i(m.latest.sourceKind)
|
|
630
630
|
})]
|
|
631
631
|
})
|
|
632
632
|
]
|
|
633
633
|
})
|
|
634
|
-
] }) : /* @__PURE__ */
|
|
634
|
+
] }) : /* @__PURE__ */ R("p", {
|
|
635
635
|
className: "mt-4 text-sm text-text-secondary",
|
|
636
|
-
children:
|
|
637
|
-
}) : /* @__PURE__ */
|
|
636
|
+
children: c("providers.detail.priceHistoryEmpty", "No price observations recorded for this provider yet.")
|
|
637
|
+
}) : /* @__PURE__ */ R("p", {
|
|
638
638
|
className: "mt-4 text-sm text-text-secondary",
|
|
639
|
-
children:
|
|
639
|
+
children: c("providers.detail.priceHistoryNoSlug", "Add a slug to this provider to match it against the shared price benchmark dataset.")
|
|
640
640
|
})]
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
function X() {
|
|
644
|
-
let { formatCurrency:
|
|
645
|
-
if (y) return /* @__PURE__ */
|
|
644
|
+
let { formatCurrency: t, formatEnumLabel: a, formatIntervalSuffix: p } = e(), { id: h } = ee(), { navigateTo: g } = m(), { data: _, isLoading: y, isError: S, refetch: A } = v(h), [V, H] = C(!1), [U, G] = C(!1), [K, X] = C(!1), Z = b();
|
|
645
|
+
if (y) return /* @__PURE__ */ R(n, {
|
|
646
646
|
title: Z("providers.detail.loadingTitle", "Provider"),
|
|
647
|
-
children: /* @__PURE__ */
|
|
647
|
+
children: /* @__PURE__ */ R(s, { label: Z("providers.detail.loading", "Loading provider…") })
|
|
648
648
|
});
|
|
649
|
-
if (S) return /* @__PURE__ */
|
|
649
|
+
if (S) return /* @__PURE__ */ R(n, {
|
|
650
650
|
title: Z("providers.detail.loadingTitle", "Provider"),
|
|
651
|
-
children: /* @__PURE__ */
|
|
651
|
+
children: /* @__PURE__ */ R(o, {
|
|
652
652
|
message: Z("providers.detail.error", "Could not load this provider."),
|
|
653
653
|
onRetry: () => void A()
|
|
654
654
|
})
|
|
655
655
|
});
|
|
656
|
-
if (!
|
|
656
|
+
if (!_) return /* @__PURE__ */ R(n, {
|
|
657
657
|
title: Z("providers.detail.loadingTitle", "Provider"),
|
|
658
|
-
children: /* @__PURE__ */
|
|
658
|
+
children: /* @__PURE__ */ R(i, {
|
|
659
659
|
illustration: "empty-data",
|
|
660
660
|
title: Z("providers.detail.notFoundTitle", "Provider not found"),
|
|
661
661
|
description: Z("providers.detail.notFoundDescription", "It may have been removed, or you may not have access to it."),
|
|
662
|
-
action: /* @__PURE__ */
|
|
662
|
+
action: /* @__PURE__ */ R("button", {
|
|
663
663
|
type: "button",
|
|
664
664
|
onClick: () => g("/providers"),
|
|
665
665
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
|
|
@@ -667,39 +667,39 @@ function X() {
|
|
|
667
667
|
})
|
|
668
668
|
})
|
|
669
669
|
});
|
|
670
|
-
let Q =
|
|
671
|
-
return /* @__PURE__ */
|
|
670
|
+
let Q = _, $ = Q.websiteUrl && /^https?:\/\//i.test(Q.websiteUrl) ? Q.websiteUrl : null, ie = Q.plans && Q.plans.length > 1 ? Q.plans.filter((e) => e.isActive && e.amount > 0).reduce((e, t) => e === null || t.amount < e.amount ? t : e, null)?.id ?? null : null;
|
|
671
|
+
return /* @__PURE__ */ z(n, {
|
|
672
672
|
title: Q.name,
|
|
673
|
-
description: Z(
|
|
674
|
-
actions: /* @__PURE__ */
|
|
673
|
+
description: Z(W[Q.category], a(Q.category)),
|
|
674
|
+
actions: /* @__PURE__ */ z("div", {
|
|
675
675
|
className: "flex items-center gap-2",
|
|
676
676
|
children: [
|
|
677
|
-
/* @__PURE__ */
|
|
677
|
+
/* @__PURE__ */ z("button", {
|
|
678
678
|
type: "button",
|
|
679
|
-
onClick: () =>
|
|
679
|
+
onClick: () => H(!0),
|
|
680
680
|
className: "inline-flex items-center gap-2 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
681
681
|
children: [
|
|
682
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ R(j, { className: "h-4 w-4" }),
|
|
683
683
|
" ",
|
|
684
684
|
Z("providers.detail.edit", "Edit")
|
|
685
685
|
]
|
|
686
686
|
}),
|
|
687
|
-
/* @__PURE__ */
|
|
687
|
+
/* @__PURE__ */ z("button", {
|
|
688
688
|
type: "button",
|
|
689
689
|
onClick: () => X(!0),
|
|
690
690
|
className: "inline-flex items-center gap-2 rounded-lg border border-status-error-text/30 px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle",
|
|
691
691
|
children: [
|
|
692
|
-
/* @__PURE__ */
|
|
692
|
+
/* @__PURE__ */ R(w, { className: "h-4 w-4" }),
|
|
693
693
|
" ",
|
|
694
694
|
Z("providers.detail.archive", "Archive")
|
|
695
695
|
]
|
|
696
696
|
}),
|
|
697
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ z("button", {
|
|
698
698
|
type: "button",
|
|
699
699
|
onClick: () => g("/providers"),
|
|
700
700
|
className: "inline-flex items-center gap-2 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
|
|
701
701
|
children: [
|
|
702
|
-
/* @__PURE__ */
|
|
702
|
+
/* @__PURE__ */ R(T, { className: "rtl:rotate-180 h-4 w-4" }),
|
|
703
703
|
" ",
|
|
704
704
|
Z("providers.detail.back", "Back")
|
|
705
705
|
]
|
|
@@ -707,114 +707,114 @@ function X() {
|
|
|
707
707
|
]
|
|
708
708
|
}),
|
|
709
709
|
children: [
|
|
710
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ z("div", {
|
|
711
711
|
className: "flex flex-wrap items-center gap-3",
|
|
712
712
|
children: [
|
|
713
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ R("span", {
|
|
714
714
|
className: "flex size-11 items-center justify-center rounded-xl bg-[var(--color-accent-soft)] text-text-primary",
|
|
715
|
-
children: /* @__PURE__ */
|
|
715
|
+
children: /* @__PURE__ */ R(E, { className: "h-5 w-5" })
|
|
716
716
|
}),
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
Q.industry && /* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ R(r, { status: Q.status }),
|
|
718
|
+
Q.industry && /* @__PURE__ */ R("span", {
|
|
719
719
|
className: "text-sm text-text-secondary",
|
|
720
720
|
children: Q.industry
|
|
721
721
|
}),
|
|
722
|
-
Q.region && /* @__PURE__ */
|
|
722
|
+
Q.region && /* @__PURE__ */ z("span", {
|
|
723
723
|
className: "text-sm text-text-secondary",
|
|
724
724
|
children: ["· ", Q.region]
|
|
725
725
|
}),
|
|
726
|
-
$ && /* @__PURE__ */
|
|
726
|
+
$ && /* @__PURE__ */ z("a", {
|
|
727
727
|
href: $,
|
|
728
728
|
target: "_blank",
|
|
729
729
|
rel: "noopener noreferrer",
|
|
730
730
|
className: "inline-flex items-center gap-1 text-sm text-text-link hover:underline",
|
|
731
731
|
children: [
|
|
732
|
-
/* @__PURE__ */
|
|
732
|
+
/* @__PURE__ */ R(O, { className: "h-3.5 w-3.5" }),
|
|
733
733
|
" ",
|
|
734
734
|
Z("providers.detail.website", "Website")
|
|
735
735
|
]
|
|
736
736
|
})
|
|
737
737
|
]
|
|
738
738
|
}),
|
|
739
|
-
Q.description && /* @__PURE__ */
|
|
739
|
+
Q.description && /* @__PURE__ */ R("p", {
|
|
740
740
|
className: "mt-4 max-w-3xl text-sm leading-relaxed text-text-secondary",
|
|
741
741
|
children: Q.description
|
|
742
742
|
}),
|
|
743
|
-
Q.tags.length > 0 && /* @__PURE__ */
|
|
743
|
+
Q.tags.length > 0 && /* @__PURE__ */ z("div", {
|
|
744
744
|
className: "mt-4 flex flex-wrap items-center gap-2",
|
|
745
|
-
children: [/* @__PURE__ */
|
|
745
|
+
children: [/* @__PURE__ */ R(F, { className: "h-3.5 w-3.5 text-text-secondary" }), Q.tags.map((e) => /* @__PURE__ */ R("span", {
|
|
746
746
|
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs text-text-secondary",
|
|
747
747
|
children: e
|
|
748
748
|
}, e))]
|
|
749
749
|
}),
|
|
750
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ z("div", {
|
|
751
751
|
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
752
|
-
children: [/* @__PURE__ */
|
|
752
|
+
children: [/* @__PURE__ */ z("div", {
|
|
753
753
|
className: "lg:col-span-2",
|
|
754
754
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ R(c, {
|
|
756
756
|
title: Z("providers.detail.plans", "Plans"),
|
|
757
757
|
description: Z("providers.detail.plansDescription", "Pricing this provider publishes"),
|
|
758
|
-
action: /* @__PURE__ */
|
|
758
|
+
action: /* @__PURE__ */ z("button", {
|
|
759
759
|
type: "button",
|
|
760
|
-
onClick: () =>
|
|
760
|
+
onClick: () => G(!0),
|
|
761
761
|
className: "inline-flex items-center gap-1.5 rounded-lg border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken",
|
|
762
762
|
children: [
|
|
763
|
-
/* @__PURE__ */
|
|
763
|
+
/* @__PURE__ */ R(M, { className: "h-3.5 w-3.5" }),
|
|
764
764
|
" ",
|
|
765
765
|
Z("providers.detail.addPlan", "Add plan")
|
|
766
766
|
]
|
|
767
767
|
}),
|
|
768
|
-
children: !Q.plans || Q.plans.length === 0 ? /* @__PURE__ */
|
|
768
|
+
children: !Q.plans || Q.plans.length === 0 ? /* @__PURE__ */ R(i, {
|
|
769
769
|
illustration: "empty-data",
|
|
770
770
|
title: Z("providers.detail.noPlansTitle", "No published plans"),
|
|
771
771
|
description: Z("providers.detail.noPlansDescription", "When this provider publishes plans, they'll appear here."),
|
|
772
|
-
action: /* @__PURE__ */
|
|
772
|
+
action: /* @__PURE__ */ R("button", {
|
|
773
773
|
type: "button",
|
|
774
|
-
onClick: () =>
|
|
774
|
+
onClick: () => G(!0),
|
|
775
775
|
className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
|
|
776
776
|
children: Z("providers.detail.addPlan", "Add plan")
|
|
777
777
|
})
|
|
778
|
-
}) : /* @__PURE__ */
|
|
778
|
+
}) : /* @__PURE__ */ R("div", {
|
|
779
779
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
780
780
|
children: Q.plans.map((e) => {
|
|
781
|
-
let
|
|
782
|
-
return /* @__PURE__ */ B
|
|
783
|
-
treatment:
|
|
784
|
-
glow:
|
|
781
|
+
let n = e.id === ie && Q.plans.length > 1;
|
|
782
|
+
return /* @__PURE__ */ z(B, {
|
|
783
|
+
treatment: n ? "insight" : "metric",
|
|
784
|
+
glow: n,
|
|
785
785
|
className: "flex flex-col p-5",
|
|
786
786
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ z("div", {
|
|
788
788
|
className: "flex items-start justify-between gap-2",
|
|
789
|
-
children: [/* @__PURE__ */
|
|
789
|
+
children: [/* @__PURE__ */ R("p", {
|
|
790
790
|
className: "text-sm font-semibold text-text-primary",
|
|
791
791
|
children: e.name
|
|
792
|
-
}),
|
|
792
|
+
}), n ? /* @__PURE__ */ z("span", {
|
|
793
793
|
className: "inline-flex items-center gap-1 rounded-full bg-status-success-bg-subtle px-2 py-0.5 text-[11px] font-medium text-status-success-text",
|
|
794
794
|
children: [
|
|
795
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ R(P, { className: "h-3 w-3" }),
|
|
796
796
|
" ",
|
|
797
797
|
Z("providers.detail.bestValue", "Best value")
|
|
798
798
|
]
|
|
799
|
-
}) : /* @__PURE__ */
|
|
799
|
+
}) : /* @__PURE__ */ R(r, { status: e.isActive ? "ACTIVE" : "DISABLED" })]
|
|
800
800
|
}),
|
|
801
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ z("p", {
|
|
802
802
|
className: "mt-3 text-2xl font-bold tabular-nums text-text-primary",
|
|
803
|
-
children: [
|
|
803
|
+
children: [t(e.amount, e.currency), /* @__PURE__ */ R("span", {
|
|
804
804
|
className: "text-sm font-normal text-text-secondary",
|
|
805
|
-
children:
|
|
805
|
+
children: p(e.interval)
|
|
806
806
|
})]
|
|
807
807
|
}),
|
|
808
|
-
e.description && /* @__PURE__ */
|
|
808
|
+
e.description && /* @__PURE__ */ R("p", {
|
|
809
809
|
className: "mt-2 text-xs leading-relaxed text-text-secondary",
|
|
810
810
|
children: e.description
|
|
811
811
|
}),
|
|
812
|
-
e.features.length > 0 && /* @__PURE__ */
|
|
812
|
+
e.features.length > 0 && /* @__PURE__ */ z("ul", {
|
|
813
813
|
className: "mt-4 space-y-2 border-t border-border-subtle pt-4",
|
|
814
|
-
children: [e.features.slice(0, 6).map((e) => /* @__PURE__ */
|
|
814
|
+
children: [e.features.slice(0, 6).map((e) => /* @__PURE__ */ z("li", {
|
|
815
815
|
className: "flex items-start gap-2 text-xs text-text-secondary",
|
|
816
|
-
children: [/* @__PURE__ */
|
|
817
|
-
}, e)), e.features.length > 6 && /* @__PURE__ */
|
|
816
|
+
children: [/* @__PURE__ */ R(D, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-status-success-text" }), /* @__PURE__ */ R("span", { children: e })]
|
|
817
|
+
}, e)), e.features.length > 6 && /* @__PURE__ */ R("li", {
|
|
818
818
|
className: "ps-6 text-[11px] text-text-secondary",
|
|
819
819
|
children: Z("providers.detail.moreFeatures", "+{{count}} more", { count: e.features.length - 6 })
|
|
820
820
|
})]
|
|
@@ -824,34 +824,34 @@ function X() {
|
|
|
824
824
|
})
|
|
825
825
|
})
|
|
826
826
|
}),
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ R(u, { providerId: Q.id }),
|
|
828
|
+
/* @__PURE__ */ R(l, { providerId: Q.id })
|
|
829
829
|
]
|
|
830
|
-
}), /* @__PURE__ */
|
|
830
|
+
}), /* @__PURE__ */ z("div", {
|
|
831
831
|
className: "space-y-4",
|
|
832
832
|
children: [
|
|
833
|
-
/* @__PURE__ */ B
|
|
833
|
+
/* @__PURE__ */ z(B, {
|
|
834
834
|
treatment: "metric",
|
|
835
835
|
className: "p-5",
|
|
836
|
-
children: [/* @__PURE__ */
|
|
836
|
+
children: [/* @__PURE__ */ z("div", {
|
|
837
837
|
className: "flex items-center justify-between",
|
|
838
|
-
children: [/* @__PURE__ */
|
|
838
|
+
children: [/* @__PURE__ */ z("span", {
|
|
839
839
|
className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
840
840
|
children: [
|
|
841
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ R(N, { className: "h-4 w-4 text-text-secondary" }),
|
|
842
842
|
" ",
|
|
843
843
|
Z("providers.detail.vendorHealth", "Vendor health")
|
|
844
844
|
]
|
|
845
|
-
}), Q.vendorHealthScore != null && /* @__PURE__ */
|
|
846
|
-
className:
|
|
847
|
-
children:
|
|
845
|
+
}), Q.vendorHealthScore != null && /* @__PURE__ */ R("span", {
|
|
846
|
+
className: x("rounded-full px-2 py-0.5 text-[11px] font-medium", q(Q.vendorHealthScore, Z).cls),
|
|
847
|
+
children: q(Q.vendorHealthScore, Z).label
|
|
848
848
|
})]
|
|
849
|
-
}), Q.vendorHealthScore == null ? /* @__PURE__ */
|
|
849
|
+
}), Q.vendorHealthScore == null ? /* @__PURE__ */ R("p", {
|
|
850
850
|
className: "mt-4 text-sm text-text-secondary",
|
|
851
851
|
children: Z("providers.detail.noHealthScore", "No health score yet.")
|
|
852
|
-
}) : /* @__PURE__ */
|
|
852
|
+
}) : /* @__PURE__ */ R("div", {
|
|
853
853
|
className: "mt-2 flex flex-col items-center",
|
|
854
|
-
children: /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ R(d, {
|
|
855
855
|
value: Q.vendorHealthScore,
|
|
856
856
|
max: 100,
|
|
857
857
|
size: 168,
|
|
@@ -859,101 +859,101 @@ function X() {
|
|
|
859
859
|
})
|
|
860
860
|
})]
|
|
861
861
|
}),
|
|
862
|
-
/* @__PURE__ */ B
|
|
862
|
+
/* @__PURE__ */ z(B, {
|
|
863
863
|
treatment: "metric",
|
|
864
864
|
className: "p-5",
|
|
865
|
-
children: [/* @__PURE__ */
|
|
865
|
+
children: [/* @__PURE__ */ z("div", {
|
|
866
866
|
className: "flex items-center justify-between",
|
|
867
|
-
children: [/* @__PURE__ */
|
|
867
|
+
children: [/* @__PURE__ */ z("span", {
|
|
868
868
|
className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
869
869
|
children: [
|
|
870
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ R(I, { className: "h-4 w-4 text-text-secondary" }),
|
|
871
871
|
" ",
|
|
872
872
|
Z("providers.detail.churnRisk", "Churn risk")
|
|
873
873
|
]
|
|
874
|
-
}), Q.churnRiskScore != null && /* @__PURE__ */
|
|
875
|
-
className:
|
|
876
|
-
children:
|
|
874
|
+
}), Q.churnRiskScore != null && /* @__PURE__ */ R("span", {
|
|
875
|
+
className: x("rounded-full px-2 py-0.5 text-[11px] font-medium", J(Q.churnRiskScore, Z).chip),
|
|
876
|
+
children: J(Q.churnRiskScore, Z).label
|
|
877
877
|
})]
|
|
878
|
-
}), Q.churnRiskScore == null ? /* @__PURE__ */
|
|
878
|
+
}), Q.churnRiskScore == null ? /* @__PURE__ */ R("p", {
|
|
879
879
|
className: "mt-4 text-sm text-text-secondary",
|
|
880
880
|
children: Z("providers.detail.noChurnSignal", "No churn signal yet.")
|
|
881
|
-
}) : /* @__PURE__ */
|
|
881
|
+
}) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z("div", {
|
|
882
882
|
className: "mt-3 flex items-baseline justify-between",
|
|
883
|
-
children: [/* @__PURE__ */
|
|
883
|
+
children: [/* @__PURE__ */ R("span", {
|
|
884
884
|
className: "text-2xl font-bold tabular-nums text-text-primary",
|
|
885
885
|
children: Q.churnRiskScore
|
|
886
|
-
}), /* @__PURE__ */
|
|
886
|
+
}), /* @__PURE__ */ R("span", {
|
|
887
887
|
className: "text-xs text-text-secondary",
|
|
888
888
|
children: "/ 100"
|
|
889
889
|
})]
|
|
890
|
-
}), /* @__PURE__ */
|
|
890
|
+
}), /* @__PURE__ */ R(f, {
|
|
891
891
|
label: Z("common.healthScore", "Health score"),
|
|
892
892
|
value: Q.churnRiskScore,
|
|
893
|
-
tone:
|
|
893
|
+
tone: J(Q.churnRiskScore, Z).tone,
|
|
894
894
|
className: "mt-2"
|
|
895
895
|
})] })]
|
|
896
896
|
}),
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
/* @__PURE__ */ B
|
|
897
|
+
/* @__PURE__ */ R(re, { slug: Q.slug }),
|
|
898
|
+
/* @__PURE__ */ z(B, {
|
|
899
899
|
treatment: "metric",
|
|
900
900
|
className: "p-5",
|
|
901
|
-
children: [/* @__PURE__ */
|
|
901
|
+
children: [/* @__PURE__ */ z("span", {
|
|
902
902
|
className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
903
903
|
children: [
|
|
904
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ R(k, { className: "h-4 w-4 text-text-secondary" }),
|
|
905
905
|
" ",
|
|
906
906
|
Z("providers.detail.atAGlance", "At a glance")
|
|
907
907
|
]
|
|
908
|
-
}), /* @__PURE__ */
|
|
908
|
+
}), /* @__PURE__ */ z("dl", {
|
|
909
909
|
className: "mt-3 space-y-2.5 text-sm",
|
|
910
910
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ z("div", {
|
|
912
912
|
className: "flex items-center justify-between gap-2",
|
|
913
|
-
children: [/* @__PURE__ */
|
|
913
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
914
914
|
className: "text-text-secondary",
|
|
915
915
|
children: Z("providers.detail.category", "Category")
|
|
916
|
-
}), /* @__PURE__ */
|
|
916
|
+
}), /* @__PURE__ */ R("dd", {
|
|
917
917
|
className: "font-medium text-text-primary",
|
|
918
|
-
children: Z(
|
|
918
|
+
children: Z(W[Q.category], a(Q.category))
|
|
919
919
|
})]
|
|
920
920
|
}),
|
|
921
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ z("div", {
|
|
922
922
|
className: "flex items-center justify-between gap-2",
|
|
923
|
-
children: [/* @__PURE__ */
|
|
923
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
924
924
|
className: "text-text-secondary",
|
|
925
925
|
children: Z("providers.detail.industry", "Industry")
|
|
926
|
-
}), /* @__PURE__ */
|
|
926
|
+
}), /* @__PURE__ */ R("dd", {
|
|
927
927
|
className: "font-medium text-text-primary",
|
|
928
928
|
children: Q.industry ?? "—"
|
|
929
929
|
})]
|
|
930
930
|
}),
|
|
931
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ z("div", {
|
|
932
932
|
className: "flex items-center justify-between gap-2",
|
|
933
|
-
children: [/* @__PURE__ */
|
|
933
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
934
934
|
className: "text-text-secondary",
|
|
935
935
|
children: Z("providers.detail.region", "Region")
|
|
936
|
-
}), /* @__PURE__ */
|
|
936
|
+
}), /* @__PURE__ */ R("dd", {
|
|
937
937
|
className: "font-medium text-text-primary",
|
|
938
938
|
children: Q.region ?? "—"
|
|
939
939
|
})]
|
|
940
940
|
}),
|
|
941
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ z("div", {
|
|
942
942
|
className: "flex items-center justify-between gap-2",
|
|
943
|
-
children: [/* @__PURE__ */
|
|
943
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
944
944
|
className: "text-text-secondary",
|
|
945
945
|
children: Z("providers.detail.language", "Language")
|
|
946
|
-
}), /* @__PURE__ */
|
|
946
|
+
}), /* @__PURE__ */ R("dd", {
|
|
947
947
|
className: "font-medium text-text-primary",
|
|
948
948
|
children: Q.language ?? "—"
|
|
949
949
|
})]
|
|
950
950
|
}),
|
|
951
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ z("div", {
|
|
952
952
|
className: "flex items-center justify-between gap-2",
|
|
953
|
-
children: [/* @__PURE__ */
|
|
953
|
+
children: [/* @__PURE__ */ R("dt", {
|
|
954
954
|
className: "text-text-secondary",
|
|
955
955
|
children: Z("providers.detail.publishedPlans", "Published plans")
|
|
956
|
-
}), /* @__PURE__ */
|
|
956
|
+
}), /* @__PURE__ */ R("dd", {
|
|
957
957
|
className: "font-medium tabular-nums text-text-primary",
|
|
958
958
|
children: Q.plans?.length ?? 0
|
|
959
959
|
})]
|
|
@@ -964,22 +964,21 @@ function X() {
|
|
|
964
964
|
]
|
|
965
965
|
})]
|
|
966
966
|
}),
|
|
967
|
-
|
|
967
|
+
V && /* @__PURE__ */ R(Y, {
|
|
968
968
|
provider: Q,
|
|
969
|
-
onClose: () =>
|
|
969
|
+
onClose: () => H(!1)
|
|
970
970
|
}),
|
|
971
|
-
|
|
971
|
+
U && /* @__PURE__ */ R(te, {
|
|
972
972
|
providerId: Q.id,
|
|
973
|
-
onClose: () =>
|
|
973
|
+
onClose: () => G(!1)
|
|
974
974
|
}),
|
|
975
|
-
|
|
975
|
+
K && /* @__PURE__ */ R(ne, {
|
|
976
976
|
provider: Q,
|
|
977
977
|
onClose: () => X(!1)
|
|
978
978
|
})
|
|
979
979
|
]
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
//#endregion
|
|
983
982
|
export { X as ProviderDetailPage };
|
|
984
983
|
|
|
985
984
|
//# sourceMappingURL=ProviderDetailPage.js.map
|