@burdenoff/microfe-subscriberbot 2026.1107.8 → 2026.1110.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  2. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  3. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
  4. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  5. package/dist/subscriberbot/SubscriberBotRoot.js +10 -7
  6. package/dist/subscriberbot/SubscriberBotRoot.js.map +1 -1
  7. package/dist/subscriberbot/SubscriberBotRoutes.js +1 -2
  8. package/dist/subscriberbot/SubscriberBotRoutes.js.map +1 -1
  9. package/dist/subscriberbot/admin/AdminDashboardPage.js +9 -10
  10. package/dist/subscriberbot/admin/AdminDashboardPage.js.map +1 -1
  11. package/dist/subscriberbot/admin/AdminRoot.js +2 -3
  12. package/dist/subscriberbot/admin/AdminRoot.js.map +1 -1
  13. package/dist/subscriberbot/admin/NegotiationDeskPanel.js +56 -57
  14. package/dist/subscriberbot/admin/NegotiationDeskPanel.js.map +1 -1
  15. package/dist/subscriberbot/admin/ProcurementDeskPanel.js +107 -108
  16. package/dist/subscriberbot/admin/ProcurementDeskPanel.js.map +1 -1
  17. package/dist/subscriberbot/admin/index.js +1 -1
  18. package/dist/subscriberbot/components/EmptyState.js +1 -2
  19. package/dist/subscriberbot/components/EmptyState.js.map +1 -1
  20. package/dist/subscriberbot/components/MetricsCard.js +1 -2
  21. package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
  22. package/dist/subscriberbot/components/Modal.js +2 -3
  23. package/dist/subscriberbot/components/Modal.js.map +1 -1
  24. package/dist/subscriberbot/components/PageLayout.js +1 -2
  25. package/dist/subscriberbot/components/PageLayout.js.map +1 -1
  26. package/dist/subscriberbot/components/PostureOptions.js +7 -8
  27. package/dist/subscriberbot/components/PostureOptions.js.map +1 -1
  28. package/dist/subscriberbot/components/StateViews.js +1 -2
  29. package/dist/subscriberbot/components/StateViews.js.map +1 -1
  30. package/dist/subscriberbot/components/StatusBadge.js +2 -3
  31. package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
  32. package/dist/subscriberbot/components/decisions/DecisionBanners.js +7 -8
  33. package/dist/subscriberbot/components/decisions/DecisionBanners.js.map +1 -1
  34. package/dist/subscriberbot/components/decisions/DecisionCard.js +65 -66
  35. package/dist/subscriberbot/components/decisions/DecisionCard.js.map +1 -1
  36. package/dist/subscriberbot/components/decisions/decisionModel.js +2 -3
  37. package/dist/subscriberbot/components/decisions/decisionModel.js.map +1 -1
  38. package/dist/subscriberbot/components/decisions/index.js +4 -3
  39. package/dist/subscriberbot/components/index.js +8 -7
  40. package/dist/subscriberbot/components/mobile/MobileDashboard.js +23 -24
  41. package/dist/subscriberbot/components/mobile/MobileDashboard.js.map +1 -1
  42. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js +40 -49
  43. package/dist/subscriberbot/components/mobile/MobileRelationshipList.js.map +1 -1
  44. package/dist/subscriberbot/components/mobile/MobileScreen.js +1 -2
  45. package/dist/subscriberbot/components/mobile/MobileScreen.js.map +1 -1
  46. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js +1 -2
  47. package/dist/subscriberbot/components/mobile/RelationshipGlyph.js.map +1 -1
  48. package/dist/subscriberbot/components/mobile/index.js +4 -3
  49. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js +1 -2
  50. package/dist/subscriberbot/components/negotiations/NegotiationStatusPill.js.map +1 -1
  51. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js +4 -5
  52. package/dist/subscriberbot/components/negotiations/NegotiationTimeline.js.map +1 -1
  53. package/dist/subscriberbot/components/negotiations/OutcomeForm.js +4 -5
  54. package/dist/subscriberbot/components/negotiations/OutcomeForm.js.map +1 -1
  55. package/dist/subscriberbot/components/negotiations/index.js +5 -4
  56. package/dist/subscriberbot/components/negotiations/labels.js +1 -2
  57. package/dist/subscriberbot/components/negotiations/labels.js.map +1 -1
  58. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js +4 -5
  59. package/dist/subscriberbot/components/procurement/ProcurementOutcomeForm.js.map +1 -1
  60. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js +1 -2
  61. package/dist/subscriberbot/components/procurement/ProcurementStatusPill.js.map +1 -1
  62. package/dist/subscriberbot/components/procurement/ProcurementThread.js +4 -5
  63. package/dist/subscriberbot/components/procurement/ProcurementThread.js.map +1 -1
  64. package/dist/subscriberbot/components/procurement/index.js +5 -4
  65. package/dist/subscriberbot/components/procurement/labels.js +1 -2
  66. package/dist/subscriberbot/components/procurement/labels.js.map +1 -1
  67. package/dist/subscriberbot/components/savings/SavingsCards.js +90 -91
  68. package/dist/subscriberbot/components/savings/SavingsCards.js.map +1 -1
  69. package/dist/subscriberbot/components/savings/index.js +3 -2
  70. package/dist/subscriberbot/components/savings/savingsModel.js +2 -3
  71. package/dist/subscriberbot/components/savings/savingsModel.js.map +1 -1
  72. package/dist/subscriberbot/components/viz.js +2 -3
  73. package/dist/subscriberbot/components/viz.js.map +1 -1
  74. package/dist/subscriberbot/context/SubscriberBotContext.js +3 -3
  75. package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
  76. package/dist/subscriberbot/context/index.js +1 -1
  77. package/dist/subscriberbot/hooks/index.js +2 -2
  78. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js +2 -3
  79. package/dist/subscriberbot/hooks/useAutonomousAgentMode.js.map +1 -1
  80. package/dist/subscriberbot/hooks/useBankingApi.js +2 -3
  81. package/dist/subscriberbot/hooks/useBankingApi.js.map +1 -1
  82. package/dist/subscriberbot/hooks/useCompactViewport.js +1 -2
  83. package/dist/subscriberbot/hooks/useCompactViewport.js.map +1 -1
  84. package/dist/subscriberbot/hooks/useFormError.js +1 -2
  85. package/dist/subscriberbot/hooks/useFormError.js.map +1 -1
  86. package/dist/subscriberbot/hooks/useFormatters.js +1 -2
  87. package/dist/subscriberbot/hooks/useFormatters.js.map +1 -1
  88. package/dist/subscriberbot/hooks/useNegotiationApi.js +2 -3
  89. package/dist/subscriberbot/hooks/useNegotiationApi.js.map +1 -1
  90. package/dist/subscriberbot/hooks/useProcurementApi.js +2 -3
  91. package/dist/subscriberbot/hooks/useProcurementApi.js.map +1 -1
  92. package/dist/subscriberbot/hooks/useRouteSelection.js +3 -3
  93. package/dist/subscriberbot/hooks/useRouteSelection.js.map +1 -1
  94. package/dist/subscriberbot/hooks/useSubscriberBotApi.js +1 -2
  95. package/dist/subscriberbot/hooks/useSubscriberBotApi.js.map +1 -1
  96. package/dist/subscriberbot/hooks/useTr.js +1 -2
  97. package/dist/subscriberbot/hooks/useTr.js.map +1 -1
  98. package/dist/subscriberbot/index.js +9 -8
  99. package/dist/subscriberbot/pages/AssetVaultPage.js +34 -35
  100. package/dist/subscriberbot/pages/AssetVaultPage.js.map +1 -1
  101. package/dist/subscriberbot/pages/DashboardPage.js +86 -87
  102. package/dist/subscriberbot/pages/DashboardPage.js.map +1 -1
  103. package/dist/subscriberbot/pages/InboxPage.js +194 -199
  104. package/dist/subscriberbot/pages/InboxPage.js.map +1 -1
  105. package/dist/subscriberbot/pages/InsightsPage.js +28 -29
  106. package/dist/subscriberbot/pages/InsightsPage.js.map +1 -1
  107. package/dist/subscriberbot/pages/InvoicesPage.js +179 -188
  108. package/dist/subscriberbot/pages/InvoicesPage.js.map +1 -1
  109. package/dist/subscriberbot/pages/RenewalsPage.js +293 -298
  110. package/dist/subscriberbot/pages/RenewalsPage.js.map +1 -1
  111. package/dist/subscriberbot/pages/SavingsPage.js +25 -26
  112. package/dist/subscriberbot/pages/SavingsPage.js.map +1 -1
  113. package/dist/subscriberbot/pages/WorkflowsPage.js +67 -68
  114. package/dist/subscriberbot/pages/WorkflowsPage.js.map +1 -1
  115. package/dist/subscriberbot/pages/agents/AgentDetailPage.js +126 -127
  116. package/dist/subscriberbot/pages/agents/AgentDetailPage.js.map +1 -1
  117. package/dist/subscriberbot/pages/agents/AgentNewPage.js +10 -11
  118. package/dist/subscriberbot/pages/agents/AgentNewPage.js.map +1 -1
  119. package/dist/subscriberbot/pages/agents/AgentsListPage.js +23 -24
  120. package/dist/subscriberbot/pages/agents/AgentsListPage.js.map +1 -1
  121. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js +337 -359
  122. package/dist/subscriberbot/pages/banking/BankConnectionsPage.js.map +1 -1
  123. package/dist/subscriberbot/pages/banking/ConnectBankModal.js +22 -27
  124. package/dist/subscriberbot/pages/banking/ConnectBankModal.js.map +1 -1
  125. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js +25 -26
  126. package/dist/subscriberbot/pages/decisions/DecisionDetailPage.js.map +1 -1
  127. package/dist/subscriberbot/pages/decisions/DecisionsPage.js +34 -35
  128. package/dist/subscriberbot/pages/decisions/DecisionsPage.js.map +1 -1
  129. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js +125 -130
  130. package/dist/subscriberbot/pages/enterprise/EnterpriseSpendPage.js.map +1 -1
  131. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js +94 -95
  132. package/dist/subscriberbot/pages/negotiations/NegotiationDetailPage.js.map +1 -1
  133. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js +15 -16
  134. package/dist/subscriberbot/pages/negotiations/NegotiationNewPage.js.map +1 -1
  135. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js +20 -21
  136. package/dist/subscriberbot/pages/negotiations/NegotiationsPage.js.map +1 -1
  137. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js +86 -87
  138. package/dist/subscriberbot/pages/procurement/ProcurementDetailPage.js.map +1 -1
  139. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js +164 -165
  140. package/dist/subscriberbot/pages/procurement/ProcurementNewPage.js.map +1 -1
  141. package/dist/subscriberbot/pages/procurement/ProcurementPage.js +20 -21
  142. package/dist/subscriberbot/pages/procurement/ProcurementPage.js.map +1 -1
  143. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js +350 -351
  144. package/dist/subscriberbot/pages/providers/ProviderDetailPage.js.map +1 -1
  145. package/dist/subscriberbot/pages/providers/ProviderInsights.js +95 -96
  146. package/dist/subscriberbot/pages/providers/ProviderInsights.js.map +1 -1
  147. package/dist/subscriberbot/pages/providers/ProviderNewPage.js +11 -12
  148. package/dist/subscriberbot/pages/providers/ProviderNewPage.js.map +1 -1
  149. package/dist/subscriberbot/pages/providers/ProvidersListPage.js +62 -63
  150. package/dist/subscriberbot/pages/providers/ProvidersListPage.js.map +1 -1
  151. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js +166 -172
  152. package/dist/subscriberbot/pages/relationships/RelationshipDetailPage.js.map +1 -1
  153. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js +12 -13
  154. package/dist/subscriberbot/pages/relationships/RelationshipNewPage.js.map +1 -1
  155. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js +21 -22
  156. package/dist/subscriberbot/pages/relationships/RelationshipsListPage.js.map +1 -1
  157. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js +242 -255
  158. package/dist/subscriberbot/pages/workflows/WorkflowBuilderPage.js.map +1 -1
  159. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js +2 -3
  160. package/dist/subscriberbot/pages/workflows/workflowBuilderGraph.js.map +1 -1
  161. package/dist/subscriberbot/services/createSandboxAssistantTransport.js +1 -2
  162. package/dist/subscriberbot/services/createSandboxAssistantTransport.js.map +1 -1
  163. package/dist/subscriberbot/store/index.js +1 -1
  164. package/dist/subscriberbot/store/subscriberbotStore.js +1 -2
  165. package/dist/subscriberbot/store/subscriberbotStore.js.map +1 -1
  166. package/dist/subscriberbot/utils/bankRedirectLink.js +18 -19
  167. package/dist/subscriberbot/utils/bankRedirectLink.js.map +1 -1
  168. package/dist/subscriberbot/utils/chartScale.js +1 -2
  169. package/dist/subscriberbot/utils/chartScale.js.map +1 -1
  170. package/dist/subscriberbot/utils/cn.js +2 -3
  171. package/dist/subscriberbot/utils/cn.js.map +1 -1
  172. package/dist/subscriberbot/utils/formatters.js +4 -5
  173. package/dist/subscriberbot/utils/formatters.js.map +1 -1
  174. package/dist/subscriberbot/utils/navigation.js +1 -2
  175. package/dist/subscriberbot/utils/navigation.js.map +1 -1
  176. package/dist/subscriberbot/utils/pageContext.js +3 -4
  177. package/dist/subscriberbot/utils/pageContext.js.map +1 -1
  178. package/dist/subscriberbot/utils/plaidLink.js +21 -22
  179. package/dist/subscriberbot/utils/plaidLink.js.map +1 -1
  180. package/dist/subscriberbot/utils/portfolio.js +5 -6
  181. package/dist/subscriberbot/utils/portfolio.js.map +1 -1
  182. package/dist/subscriberbot/utils/renewals.js +1 -2
  183. package/dist/subscriberbot/utils/renewals.js.map +1 -1
  184. package/package.json +2 -2
@@ -1,24 +1,24 @@
1
- import { useSubscriberBot as e } from "../../context/SubscriberBotContext.js";
2
- import { useTr as t } from "../../hooks/useTr.js";
3
- import { useFormatters as n } from "../../hooks/useFormatters.js";
4
- import { cn as r } from "../../utils/cn.js";
5
- import { PageLayout as i } from "../../components/PageLayout.js";
6
- import { StatusBadge as a } from "../../components/StatusBadge.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 { 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 { useArchiveProvider as m, useBenchmarkDataPoints as h, useCreatePlan as g, useProvider as _, useUpdateProvider as v } from "../../hooks/useSubscriberBotApi.js";
13
- import { useFormError as y } from "../../hooks/useFormError.js";
14
- import { ProviderAlternatives as b, ProviderPaidPriceHistory as x } from "./ProviderInsights.js";
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 L } from "react-router";
18
- import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
19
- import { GlassCard as V } from "@burdenoff/fe-libs/ui";
20
- //#region src/subscriberbot/pages/providers/ProviderDetailPage.tsx
21
- var H = "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)]", U = "mb-1 block text-xs font-medium text-text-secondary", W = [
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
- ], G = {
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
- }, K = [
55
+ }, G = [
56
56
  "UNVERIFIED",
57
57
  "VERIFIED",
58
58
  "CLAIMED",
59
59
  "DEPRECATED"
60
- ], q = [
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 J(e, t) {
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 Y(e, t) {
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 ee({ provider: e, onClose: r }) {
98
- let { formatEnumLabel: i } = n(), a = t(), o = v(), [c, l] = C(e.name), [u, d] = C(e.category), [f, p] = C(e.status), [m, h] = C(e.description ?? ""), [g, _] = C(e.industry ?? ""), [b, x] = C(e.region ?? ""), [S, w] = C(e.language ?? ""), [T, E] = C(e.websiteUrl ?? ""), [D, O] = C(e.churnRiskScore == null ? "" : String(e.churnRiskScore)), [k, A] = C(e.vendorHealthScore == null ? "" : String(e.vendorHealthScore)), [j, M] = C(e.tags.join(", ")), [N, P, F, I] = y();
99
- return /* @__PURE__ */ z(s, {
100
- title: a("providers.detail.editModal.title", "Edit provider"),
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__ */ B("form", {
104
- onSubmit: (t) => {
105
- if (t.preventDefault(), P(null), !c.trim()) {
106
- P(a("providers.new.nameRequired", "A provider name is required."), "prov-edit-name");
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 n = j.split(",").map((e) => e.trim()).filter(Boolean), i = {
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: n,
114
+ tags: t,
115
115
  ...g.trim() ? { industry: g.trim() } : {},
116
- ...b.trim() ? { region: b.trim() } : {},
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
- o.mutate({
123
- id: e.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 : a("providers.detail.editModal.error", "Could not update provider."))
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__ */ z("div", {
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__ */ B("div", { children: [/* @__PURE__ */ B("label", {
139
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
140
140
  htmlFor: "prov-edit-name",
141
- className: U,
141
+ className: H,
142
142
  children: [
143
- a("providers.detail.editModal.nameLabel", "Name"),
143
+ o("providers.detail.editModal.nameLabel", "Name"),
144
144
  " ",
145
- /* @__PURE__ */ z("span", {
145
+ /* @__PURE__ */ R("span", {
146
146
  className: "text-status-error-text",
147
147
  children: "*"
148
148
  })
149
149
  ]
150
- }), /* @__PURE__ */ z("input", {
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: H,
156
+ className: V,
157
157
  required: !0
158
158
  })] }),
159
- /* @__PURE__ */ B("div", {
159
+ /* @__PURE__ */ z("div", {
160
160
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
161
- children: [/* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
161
+ children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
162
162
  htmlFor: "prov-edit-category",
163
- className: U,
164
- children: a("providers.detail.editModal.categoryLabel", "Category")
165
- }), /* @__PURE__ */ z("select", {
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: H,
171
- children: W.map((e) => /* @__PURE__ */ z("option", {
170
+ className: V,
171
+ children: U.map((e) => /* @__PURE__ */ R("option", {
172
172
  value: e,
173
- children: a(G[e], i(e))
173
+ children: o(W[e], i(e))
174
174
  }, e))
175
- })] }), /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
175
+ })] }), /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
176
176
  htmlFor: "prov-edit-status",
177
- className: U,
178
- children: a("providers.detail.editModal.statusLabel", "Status")
179
- }), /* @__PURE__ */ z("select", {
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: H,
185
- children: K.map((e) => /* @__PURE__ */ z("option", {
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__ */ B("div", {
191
+ /* @__PURE__ */ z("div", {
192
192
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
193
193
  children: [
194
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
194
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
195
195
  htmlFor: "prov-edit-industry",
196
- className: U,
197
- children: a("providers.detail.editModal.industryLabel", "Industry")
198
- }), /* @__PURE__ */ z("input", {
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: H
204
+ className: V
205
205
  })] }),
206
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
206
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
207
207
  htmlFor: "prov-edit-region",
208
- className: U,
209
- children: a("providers.detail.editModal.regionLabel", "Region")
210
- }), /* @__PURE__ */ z("input", {
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: b,
214
+ value: v,
215
215
  onChange: (e) => x(e.target.value),
216
- className: H
216
+ className: V
217
217
  })] }),
218
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
218
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
219
219
  htmlFor: "prov-edit-language",
220
- className: U,
221
- children: a("providers.detail.editModal.languageLabel", "Language")
222
- }), /* @__PURE__ */ z("input", {
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: H
228
+ className: V
229
229
  })] })
230
230
  ]
231
231
  }),
232
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
232
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
233
233
  htmlFor: "prov-edit-website",
234
- className: U,
235
- children: a("providers.detail.editModal.websiteLabel", "Website")
236
- }), /* @__PURE__ */ z("input", {
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: a("providers.detail.editModal.websitePlaceholder", "https://…"),
243
- className: H
242
+ placeholder: o("providers.detail.editModal.websitePlaceholder", "https://…"),
243
+ className: V
244
244
  })] }),
245
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
245
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
246
246
  htmlFor: "prov-edit-desc",
247
- className: U,
248
- children: a("providers.detail.editModal.descriptionLabel", "Description")
249
- }), /* @__PURE__ */ z("textarea", {
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: H
255
+ className: V
256
256
  })] }),
257
- /* @__PURE__ */ B("div", {
257
+ /* @__PURE__ */ z("div", {
258
258
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
259
- children: [/* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
259
+ children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
260
260
  htmlFor: "prov-edit-churn",
261
- className: U,
262
- children: a("providers.detail.editModal.churnRiskLabel", "Churn risk (0–100)")
263
- }), /* @__PURE__ */ z("input", {
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: H
272
- })] }), /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
271
+ className: V
272
+ })] }), /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
273
273
  htmlFor: "prov-edit-health",
274
- className: U,
275
- children: a("providers.detail.editModal.vendorHealthLabel", "Vendor health (0–100)")
276
- }), /* @__PURE__ */ z("input", {
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: H
284
+ className: V
285
285
  })] })]
286
286
  }),
287
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ B("label", {
287
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
288
288
  htmlFor: "prov-edit-tags",
289
- className: U,
289
+ className: H,
290
290
  children: [
291
- a("providers.detail.editModal.tagsLabel", "Tags"),
291
+ o("providers.detail.editModal.tagsLabel", "Tags"),
292
292
  " ",
293
- /* @__PURE__ */ B("span", {
293
+ /* @__PURE__ */ z("span", {
294
294
  className: "text-text-secondary",
295
295
  children: [
296
296
  "(",
297
- a("providers.detail.editModal.tagsHint", "comma-separated"),
297
+ o("providers.detail.editModal.tagsHint", "comma-separated"),
298
298
  ")"
299
299
  ]
300
300
  })
301
301
  ]
302
- }), /* @__PURE__ */ z("input", {
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: H
308
+ className: V
309
309
  })] }),
310
- /* @__PURE__ */ B("div", {
310
+ /* @__PURE__ */ z("div", {
311
311
  className: "flex justify-end gap-3",
312
- children: [/* @__PURE__ */ z("button", {
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: a("providers.detail.editModal.cancel", "Cancel")
317
- }), /* @__PURE__ */ z("button", {
316
+ children: o("providers.detail.editModal.cancel", "Cancel")
317
+ }), /* @__PURE__ */ R("button", {
318
318
  type: "submit",
319
- disabled: o.isPending,
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: o.isPending ? a("providers.detail.editModal.saving", "Saving…") : a("providers.detail.editModal.submit", "Save changes")
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: e, onClose: r }) {
329
- let { formatEnumLabel: i } = n(), a = t(), o = g(), [c, l] = C(""), [u, d] = C(""), [f, p] = C("USD"), [m, h] = C("MONTHLY"), [_, v] = C(""), [b, x] = C(""), [S, w] = C(!0), [T, E, D, O] = y();
330
- return /* @__PURE__ */ z(s, {
331
- title: a("providers.detail.addPlanModal.title", "Add plan"),
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__ */ B("form", {
335
- onSubmit: (t) => {
336
- if (t.preventDefault(), E(null), !c.trim()) {
337
- E(a("providers.detail.addPlanModal.nameRequired", "A plan name is required."), "plan-name");
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 n = b.split("\n").map((e) => e.trim()).filter(Boolean);
341
- o.mutate({
342
- providerId: e,
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
- ..._.trim() ? { description: _.trim() } : {},
348
- ...n.length ? { features: n } : {}
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 : a("providers.detail.addPlanModal.error", "Could not add plan."))
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__ */ z("div", {
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__ */ B("div", { children: [/* @__PURE__ */ B("label", {
363
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
364
364
  htmlFor: "plan-name",
365
- className: U,
365
+ className: H,
366
366
  children: [
367
- a("providers.detail.addPlanModal.nameLabel", "Name"),
367
+ o("providers.detail.addPlanModal.nameLabel", "Name"),
368
368
  " ",
369
- /* @__PURE__ */ z("span", {
369
+ /* @__PURE__ */ R("span", {
370
370
  className: "text-status-error-text",
371
371
  children: "*"
372
372
  })
373
373
  ]
374
- }), /* @__PURE__ */ z("input", {
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: a("providers.detail.addPlanModal.namePlaceholder", "e.g. Pro, Team, Enterprise"),
381
- className: H,
380
+ placeholder: o("providers.detail.addPlanModal.namePlaceholder", "e.g. Pro, Team, Enterprise"),
381
+ className: V,
382
382
  required: !0
383
383
  })] }),
384
- /* @__PURE__ */ B("div", {
384
+ /* @__PURE__ */ z("div", {
385
385
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
386
386
  children: [
387
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
387
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
388
388
  htmlFor: "plan-amount",
389
- className: U,
390
- children: a("providers.detail.addPlanModal.amountLabel", "Amount")
391
- }), /* @__PURE__ */ z("input", {
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: a("providers.detail.addPlanModal.amountPlaceholder", "0.00"),
400
- className: H
399
+ placeholder: o("providers.detail.addPlanModal.amountPlaceholder", "0.00"),
400
+ className: V
401
401
  })] }),
402
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
402
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
403
403
  htmlFor: "plan-currency",
404
- className: U,
405
- children: a("providers.detail.addPlanModal.currencyLabel", "Currency")
406
- }), /* @__PURE__ */ z("input", {
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: H
413
+ className: V
414
414
  })] }),
415
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ z("label", {
415
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
416
416
  htmlFor: "plan-interval",
417
- className: U,
418
- children: a("providers.detail.addPlanModal.intervalLabel", "Interval")
419
- }), /* @__PURE__ */ z("select", {
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: H,
425
- children: q.map((e) => /* @__PURE__ */ z("option", {
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__ */ B("div", { children: [/* @__PURE__ */ z("label", {
432
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R("label", {
433
433
  htmlFor: "plan-desc",
434
- className: U,
435
- children: a("providers.detail.addPlanModal.descriptionLabel", "Description")
436
- }), /* @__PURE__ */ z("textarea", {
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: H
442
+ className: V
443
443
  })] }),
444
- /* @__PURE__ */ B("div", { children: [/* @__PURE__ */ B("label", {
444
+ /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z("label", {
445
445
  htmlFor: "plan-features",
446
- className: U,
446
+ className: H,
447
447
  children: [
448
- a("providers.detail.addPlanModal.featuresLabel", "Features"),
448
+ o("providers.detail.addPlanModal.featuresLabel", "Features"),
449
449
  " ",
450
- /* @__PURE__ */ B("span", {
450
+ /* @__PURE__ */ z("span", {
451
451
  className: "text-text-secondary",
452
452
  children: [
453
453
  "(",
454
- a("providers.detail.addPlanModal.featuresHint", "one per line"),
454
+ o("providers.detail.addPlanModal.featuresHint", "one per line"),
455
455
  ")"
456
456
  ]
457
457
  })
458
458
  ]
459
- }), /* @__PURE__ */ z("textarea", {
459
+ }), /* @__PURE__ */ R("textarea", {
460
460
  ...D("plan-features"),
461
461
  id: "plan-features",
462
- value: b,
462
+ value: y,
463
463
  onChange: (e) => x(e.target.value),
464
464
  rows: 3,
465
- placeholder: a("providers.detail.addPlanModal.featuresPlaceholder", "Unlimited projects\nPriority support\nSSO"),
466
- className: H
465
+ placeholder: o("providers.detail.addPlanModal.featuresPlaceholder", "Unlimited projects\nPriority support\nSSO"),
466
+ className: V
467
467
  })] }),
468
- /* @__PURE__ */ B("label", {
468
+ /* @__PURE__ */ z("label", {
469
469
  className: "flex items-center gap-2 text-sm text-text-primary",
470
- children: [/* @__PURE__ */ z("input", {
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
- }), a("providers.detail.addPlanModal.active", "Active")]
475
+ }), o("providers.detail.addPlanModal.active", "Active")]
476
476
  }),
477
- /* @__PURE__ */ B("div", {
477
+ /* @__PURE__ */ z("div", {
478
478
  className: "flex justify-end gap-3",
479
- children: [/* @__PURE__ */ z("button", {
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: a("providers.detail.addPlanModal.cancel", "Cancel")
484
- }), /* @__PURE__ */ z("button", {
483
+ children: o("providers.detail.addPlanModal.cancel", "Cancel")
484
+ }), /* @__PURE__ */ R("button", {
485
485
  type: "submit",
486
- disabled: o.isPending,
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: o.isPending ? a("providers.detail.addPlanModal.adding", "Adding…") : a("providers.detail.addPlanModal.submit", "Add plan")
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: n, onClose: r }) {
496
- let i = t(), { navigateTo: a } = e(), o = m(), [c, l] = C(null);
497
- return /* @__PURE__ */ z(s, {
498
- title: i("providers.detail.archiveModal.title", "Archive provider"),
499
- onClose: r,
500
- children: /* @__PURE__ */ B("div", {
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
- c && /* @__PURE__ */ z("div", {
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: c
506
+ children: o
507
507
  }),
508
- /* @__PURE__ */ z("p", {
508
+ /* @__PURE__ */ R("p", {
509
509
  className: "text-sm text-text-secondary",
510
- children: i("providers.detail.archiveModal.description", "Archive {{name}}? It will be removed from the active registry. This can be reversed by an administrator.", { name: n.name })
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__ */ B("div", {
512
+ /* @__PURE__ */ z("div", {
513
513
  className: "flex justify-end gap-3",
514
- children: [/* @__PURE__ */ z("button", {
514
+ children: [/* @__PURE__ */ R("button", {
515
515
  type: "button",
516
- onClick: r,
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: i("providers.detail.archiveModal.cancel", "Cancel")
519
- }), /* @__PURE__ */ z("button", {
518
+ children: n("providers.detail.archiveModal.cancel", "Cancel")
519
+ }), /* @__PURE__ */ R("button", {
520
520
  type: "button",
521
521
  onClick: () => {
522
- l(null), o.mutate(n.id, {
523
- onSuccess: () => a("/providers"),
524
- onError: (e) => l(e instanceof Error ? e.message : i("providers.detail.archiveModal.error", "Could not archive this provider."))
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: o.isPending,
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: o.isPending ? i("providers.detail.archiveModal.archiving", "Archiving…") : i("providers.detail.archiveModal.submit", "Archive provider")
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: e }) {
537
- let { formatCurrency: r, formatDate: i, formatEnumLabel: a, formatIntervalSuffix: o } = n(), s = t(), { data: u, isLoading: d, isError: f, refetch: m } = h(e), g = S(() => {
538
- let e = [...u ?? []].filter((e) => Number.isFinite(e.amount)).sort((e, t) => new Date(e.observedAt).getTime() - new Date(t.observedAt).getTime()), t = e[e.length - 1];
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
- }, [u]);
550
- return /* @__PURE__ */ B(V, {
549
+ }, [l]);
550
+ return /* @__PURE__ */ z(B, {
551
551
  treatment: "metric",
552
552
  className: "p-5",
553
- children: [/* @__PURE__ */ B("span", {
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__ */ z(A, { className: "h-4 w-4 text-text-secondary" }),
556
+ /* @__PURE__ */ R(A, { className: "h-4 w-4 text-text-secondary" }),
557
557
  " ",
558
- s("providers.detail.marketBenchmark", "Market benchmark")
558
+ c("providers.detail.marketBenchmark", "Market benchmark")
559
559
  ]
560
- }), e ? d ? /* @__PURE__ */ z(l, {
560
+ }), t ? u ? /* @__PURE__ */ R(s, {
561
561
  className: "min-h-[8rem]",
562
- label: s("providers.detail.priceHistoryLoading", "Loading price history…")
563
- }) : f ? /* @__PURE__ */ z(c, {
562
+ label: c("providers.detail.priceHistoryLoading", "Loading price history…")
563
+ }) : d ? /* @__PURE__ */ R(o, {
564
564
  className: "min-h-[8rem]",
565
- title: s("providers.detail.priceHistoryErrorTitle", "Price history unavailable"),
566
- message: s("providers.detail.priceHistoryError", "Could not load observed prices for this provider."),
567
- onRetry: () => void m()
568
- }) : g ? /* @__PURE__ */ B(R, { children: [
569
- /* @__PURE__ */ B("p", {
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: [r(g.latest.amount, g.latest.currency), /* @__PURE__ */ z("span", {
571
+ children: [n(m.latest.amount, m.latest.currency), /* @__PURE__ */ R("span", {
572
572
  className: "text-sm font-normal text-text-secondary",
573
- children: o(g.latest.interval)
573
+ children: a(m.latest.interval)
574
574
  })]
575
575
  }),
576
- /* @__PURE__ */ B("p", {
576
+ /* @__PURE__ */ z("p", {
577
577
  className: "text-xs text-text-secondary",
578
578
  children: [
579
- g.latest.planName,
579
+ m.latest.planName,
580
580
  " · ",
581
- g.latest.region,
581
+ m.latest.region,
582
582
  " ·",
583
583
  " ",
584
- s("providers.detail.observed", "observed"),
584
+ c("providers.detail.observed", "observed"),
585
585
  " ",
586
- i(g.latest.observedAt)
586
+ r(m.latest.observedAt)
587
587
  ]
588
588
  }),
589
- /* @__PURE__ */ z(p, {
589
+ /* @__PURE__ */ R(p, {
590
590
  className: "mt-3 w-full",
591
- points: g.amounts,
592
- positive: g.latest.amount <= g.first
591
+ points: m.amounts,
592
+ positive: m.latest.amount <= m.first
593
593
  }),
594
- /* @__PURE__ */ B("dl", {
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__ */ B("div", {
597
+ /* @__PURE__ */ z("div", {
598
598
  className: "flex items-center justify-between gap-2",
599
- children: [/* @__PURE__ */ z("dt", {
599
+ children: [/* @__PURE__ */ R("dt", {
600
600
  className: "text-text-secondary",
601
- children: s("providers.detail.observedRange", "Observed range")
602
- }), /* @__PURE__ */ B("dd", {
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
- r(g.min, g.latest.currency),
605
+ n(m.min, m.latest.currency),
606
606
  " –",
607
607
  " ",
608
- r(g.max, g.latest.currency)
608
+ n(m.max, m.latest.currency)
609
609
  ]
610
610
  })]
611
611
  }),
612
- /* @__PURE__ */ B("div", {
612
+ /* @__PURE__ */ z("div", {
613
613
  className: "flex items-center justify-between gap-2",
614
- children: [/* @__PURE__ */ z("dt", {
614
+ children: [/* @__PURE__ */ R("dt", {
615
615
  className: "text-text-secondary",
616
- children: s("providers.detail.observations", "Observations")
617
- }), /* @__PURE__ */ z("dd", {
616
+ children: c("providers.detail.observations", "Observations")
617
+ }), /* @__PURE__ */ R("dd", {
618
618
  className: "font-medium tabular-nums text-text-primary",
619
- children: g.points.length
619
+ children: m.points.length
620
620
  })]
621
621
  }),
622
- /* @__PURE__ */ B("div", {
622
+ /* @__PURE__ */ z("div", {
623
623
  className: "flex items-center justify-between gap-2",
624
- children: [/* @__PURE__ */ z("dt", {
624
+ children: [/* @__PURE__ */ R("dt", {
625
625
  className: "text-text-secondary",
626
- children: s("providers.detail.latestSource", "Latest source")
627
- }), /* @__PURE__ */ z("dd", {
626
+ children: c("providers.detail.latestSource", "Latest source")
627
+ }), /* @__PURE__ */ R("dd", {
628
628
  className: "font-medium text-text-primary",
629
- children: g.latest.sourceLabel ?? a(g.latest.sourceKind)
629
+ children: m.latest.sourceLabel ?? i(m.latest.sourceKind)
630
630
  })]
631
631
  })
632
632
  ]
633
633
  })
634
- ] }) : /* @__PURE__ */ z("p", {
634
+ ] }) : /* @__PURE__ */ R("p", {
635
635
  className: "mt-4 text-sm text-text-secondary",
636
- children: s("providers.detail.priceHistoryEmpty", "No price observations recorded for this provider yet.")
637
- }) : /* @__PURE__ */ z("p", {
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: s("providers.detail.priceHistoryNoSlug", "Add a slug to this provider to match it against the shared price benchmark dataset.")
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: s, formatEnumLabel: p, formatIntervalSuffix: m } = n(), { id: h } = L(), { navigateTo: g } = e(), { data: v, isLoading: y, isError: S, refetch: A } = _(h), [H, U] = C(!1), [W, K] = C(!1), [q, X] = C(!1), Z = t();
645
- if (y) return /* @__PURE__ */ z(i, {
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__ */ z(l, { label: Z("providers.detail.loading", "Loading provider…") })
647
+ children: /* @__PURE__ */ R(s, { label: Z("providers.detail.loading", "Loading provider…") })
648
648
  });
649
- if (S) return /* @__PURE__ */ z(i, {
649
+ if (S) return /* @__PURE__ */ R(n, {
650
650
  title: Z("providers.detail.loadingTitle", "Provider"),
651
- children: /* @__PURE__ */ z(c, {
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 (!v) return /* @__PURE__ */ z(i, {
656
+ if (!_) return /* @__PURE__ */ R(n, {
657
657
  title: Z("providers.detail.loadingTitle", "Provider"),
658
- children: /* @__PURE__ */ z(o, {
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__ */ z("button", {
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 = v, $ = 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__ */ B(i, {
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(G[Q.category], p(Q.category)),
674
- actions: /* @__PURE__ */ B("div", {
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__ */ B("button", {
677
+ /* @__PURE__ */ z("button", {
678
678
  type: "button",
679
- onClick: () => U(!0),
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__ */ z(j, { className: "h-4 w-4" }),
682
+ /* @__PURE__ */ R(j, { className: "h-4 w-4" }),
683
683
  " ",
684
684
  Z("providers.detail.edit", "Edit")
685
685
  ]
686
686
  }),
687
- /* @__PURE__ */ B("button", {
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__ */ z(w, { className: "h-4 w-4" }),
692
+ /* @__PURE__ */ R(w, { className: "h-4 w-4" }),
693
693
  " ",
694
694
  Z("providers.detail.archive", "Archive")
695
695
  ]
696
696
  }),
697
- /* @__PURE__ */ B("button", {
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__ */ z(T, { className: "rtl:rotate-180 h-4 w-4" }),
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__ */ B("div", {
710
+ /* @__PURE__ */ z("div", {
711
711
  className: "flex flex-wrap items-center gap-3",
712
712
  children: [
713
- /* @__PURE__ */ z("span", {
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__ */ z(E, { className: "h-5 w-5" })
715
+ children: /* @__PURE__ */ R(E, { className: "h-5 w-5" })
716
716
  }),
717
- /* @__PURE__ */ z(a, { status: Q.status }),
718
- Q.industry && /* @__PURE__ */ z("span", {
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__ */ B("span", {
722
+ Q.region && /* @__PURE__ */ z("span", {
723
723
  className: "text-sm text-text-secondary",
724
724
  children: ["· ", Q.region]
725
725
  }),
726
- $ && /* @__PURE__ */ B("a", {
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__ */ z(O, { className: "h-3.5 w-3.5" }),
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__ */ z("p", {
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__ */ B("div", {
743
+ Q.tags.length > 0 && /* @__PURE__ */ z("div", {
744
744
  className: "mt-4 flex flex-wrap items-center gap-2",
745
- children: [/* @__PURE__ */ z(F, { className: "h-3.5 w-3.5 text-text-secondary" }), Q.tags.map((e) => /* @__PURE__ */ z("span", {
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__ */ B("div", {
750
+ /* @__PURE__ */ z("div", {
751
751
  className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
752
- children: [/* @__PURE__ */ B("div", {
752
+ children: [/* @__PURE__ */ z("div", {
753
753
  className: "lg:col-span-2",
754
754
  children: [
755
- /* @__PURE__ */ z(u, {
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__ */ B("button", {
758
+ action: /* @__PURE__ */ z("button", {
759
759
  type: "button",
760
- onClick: () => K(!0),
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__ */ z(M, { className: "h-3.5 w-3.5" }),
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__ */ z(o, {
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__ */ z("button", {
772
+ action: /* @__PURE__ */ R("button", {
773
773
  type: "button",
774
- onClick: () => K(!0),
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__ */ z("div", {
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 t = e.id === ie && Q.plans.length > 1;
782
- return /* @__PURE__ */ B(V, {
783
- treatment: t ? "insight" : "metric",
784
- glow: t,
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__ */ B("div", {
787
+ /* @__PURE__ */ z("div", {
788
788
  className: "flex items-start justify-between gap-2",
789
- children: [/* @__PURE__ */ z("p", {
789
+ children: [/* @__PURE__ */ R("p", {
790
790
  className: "text-sm font-semibold text-text-primary",
791
791
  children: e.name
792
- }), t ? /* @__PURE__ */ B("span", {
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__ */ z(P, { className: "h-3 w-3" }),
795
+ /* @__PURE__ */ R(P, { className: "h-3 w-3" }),
796
796
  " ",
797
797
  Z("providers.detail.bestValue", "Best value")
798
798
  ]
799
- }) : /* @__PURE__ */ z(a, { status: e.isActive ? "ACTIVE" : "DISABLED" })]
799
+ }) : /* @__PURE__ */ R(r, { status: e.isActive ? "ACTIVE" : "DISABLED" })]
800
800
  }),
801
- /* @__PURE__ */ B("p", {
801
+ /* @__PURE__ */ z("p", {
802
802
  className: "mt-3 text-2xl font-bold tabular-nums text-text-primary",
803
- children: [s(e.amount, e.currency), /* @__PURE__ */ z("span", {
803
+ children: [t(e.amount, e.currency), /* @__PURE__ */ R("span", {
804
804
  className: "text-sm font-normal text-text-secondary",
805
- children: m(e.interval)
805
+ children: p(e.interval)
806
806
  })]
807
807
  }),
808
- e.description && /* @__PURE__ */ z("p", {
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__ */ B("ul", {
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__ */ B("li", {
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__ */ z(D, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-status-success-text" }), /* @__PURE__ */ z("span", { children: e })]
817
- }, e)), e.features.length > 6 && /* @__PURE__ */ z("li", {
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__ */ z(x, { providerId: Q.id }),
828
- /* @__PURE__ */ z(b, { providerId: Q.id })
827
+ /* @__PURE__ */ R(u, { providerId: Q.id }),
828
+ /* @__PURE__ */ R(l, { providerId: Q.id })
829
829
  ]
830
- }), /* @__PURE__ */ B("div", {
830
+ }), /* @__PURE__ */ z("div", {
831
831
  className: "space-y-4",
832
832
  children: [
833
- /* @__PURE__ */ B(V, {
833
+ /* @__PURE__ */ z(B, {
834
834
  treatment: "metric",
835
835
  className: "p-5",
836
- children: [/* @__PURE__ */ B("div", {
836
+ children: [/* @__PURE__ */ z("div", {
837
837
  className: "flex items-center justify-between",
838
- children: [/* @__PURE__ */ B("span", {
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__ */ z(N, { className: "h-4 w-4 text-text-secondary" }),
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__ */ z("span", {
846
- className: r("rounded-full px-2 py-0.5 text-[11px] font-medium", J(Q.vendorHealthScore, Z).cls),
847
- children: J(Q.vendorHealthScore, Z).label
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__ */ z("p", {
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__ */ z("div", {
852
+ }) : /* @__PURE__ */ R("div", {
853
853
  className: "mt-2 flex flex-col items-center",
854
- children: /* @__PURE__ */ z(d, {
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(V, {
862
+ /* @__PURE__ */ z(B, {
863
863
  treatment: "metric",
864
864
  className: "p-5",
865
- children: [/* @__PURE__ */ B("div", {
865
+ children: [/* @__PURE__ */ z("div", {
866
866
  className: "flex items-center justify-between",
867
- children: [/* @__PURE__ */ B("span", {
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__ */ z(I, { className: "h-4 w-4 text-text-secondary" }),
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__ */ z("span", {
875
- className: r("rounded-full px-2 py-0.5 text-[11px] font-medium", Y(Q.churnRiskScore, Z).chip),
876
- children: Y(Q.churnRiskScore, Z).label
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__ */ z("p", {
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__ */ B(R, { children: [/* @__PURE__ */ B("div", {
881
+ }) : /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z("div", {
882
882
  className: "mt-3 flex items-baseline justify-between",
883
- children: [/* @__PURE__ */ z("span", {
883
+ children: [/* @__PURE__ */ R("span", {
884
884
  className: "text-2xl font-bold tabular-nums text-text-primary",
885
885
  children: Q.churnRiskScore
886
- }), /* @__PURE__ */ z("span", {
886
+ }), /* @__PURE__ */ R("span", {
887
887
  className: "text-xs text-text-secondary",
888
888
  children: "/ 100"
889
889
  })]
890
- }), /* @__PURE__ */ z(f, {
890
+ }), /* @__PURE__ */ R(f, {
891
891
  label: Z("common.healthScore", "Health score"),
892
892
  value: Q.churnRiskScore,
893
- tone: Y(Q.churnRiskScore, Z).tone,
893
+ tone: J(Q.churnRiskScore, Z).tone,
894
894
  className: "mt-2"
895
895
  })] })]
896
896
  }),
897
- /* @__PURE__ */ z(re, { slug: Q.slug }),
898
- /* @__PURE__ */ B(V, {
897
+ /* @__PURE__ */ R(re, { slug: Q.slug }),
898
+ /* @__PURE__ */ z(B, {
899
899
  treatment: "metric",
900
900
  className: "p-5",
901
- children: [/* @__PURE__ */ B("span", {
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__ */ z(k, { className: "h-4 w-4 text-text-secondary" }),
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__ */ B("dl", {
908
+ }), /* @__PURE__ */ z("dl", {
909
909
  className: "mt-3 space-y-2.5 text-sm",
910
910
  children: [
911
- /* @__PURE__ */ B("div", {
911
+ /* @__PURE__ */ z("div", {
912
912
  className: "flex items-center justify-between gap-2",
913
- children: [/* @__PURE__ */ z("dt", {
913
+ children: [/* @__PURE__ */ R("dt", {
914
914
  className: "text-text-secondary",
915
915
  children: Z("providers.detail.category", "Category")
916
- }), /* @__PURE__ */ z("dd", {
916
+ }), /* @__PURE__ */ R("dd", {
917
917
  className: "font-medium text-text-primary",
918
- children: Z(G[Q.category], p(Q.category))
918
+ children: Z(W[Q.category], a(Q.category))
919
919
  })]
920
920
  }),
921
- /* @__PURE__ */ B("div", {
921
+ /* @__PURE__ */ z("div", {
922
922
  className: "flex items-center justify-between gap-2",
923
- children: [/* @__PURE__ */ z("dt", {
923
+ children: [/* @__PURE__ */ R("dt", {
924
924
  className: "text-text-secondary",
925
925
  children: Z("providers.detail.industry", "Industry")
926
- }), /* @__PURE__ */ z("dd", {
926
+ }), /* @__PURE__ */ R("dd", {
927
927
  className: "font-medium text-text-primary",
928
928
  children: Q.industry ?? "—"
929
929
  })]
930
930
  }),
931
- /* @__PURE__ */ B("div", {
931
+ /* @__PURE__ */ z("div", {
932
932
  className: "flex items-center justify-between gap-2",
933
- children: [/* @__PURE__ */ z("dt", {
933
+ children: [/* @__PURE__ */ R("dt", {
934
934
  className: "text-text-secondary",
935
935
  children: Z("providers.detail.region", "Region")
936
- }), /* @__PURE__ */ z("dd", {
936
+ }), /* @__PURE__ */ R("dd", {
937
937
  className: "font-medium text-text-primary",
938
938
  children: Q.region ?? "—"
939
939
  })]
940
940
  }),
941
- /* @__PURE__ */ B("div", {
941
+ /* @__PURE__ */ z("div", {
942
942
  className: "flex items-center justify-between gap-2",
943
- children: [/* @__PURE__ */ z("dt", {
943
+ children: [/* @__PURE__ */ R("dt", {
944
944
  className: "text-text-secondary",
945
945
  children: Z("providers.detail.language", "Language")
946
- }), /* @__PURE__ */ z("dd", {
946
+ }), /* @__PURE__ */ R("dd", {
947
947
  className: "font-medium text-text-primary",
948
948
  children: Q.language ?? "—"
949
949
  })]
950
950
  }),
951
- /* @__PURE__ */ B("div", {
951
+ /* @__PURE__ */ z("div", {
952
952
  className: "flex items-center justify-between gap-2",
953
- children: [/* @__PURE__ */ z("dt", {
953
+ children: [/* @__PURE__ */ R("dt", {
954
954
  className: "text-text-secondary",
955
955
  children: Z("providers.detail.publishedPlans", "Published plans")
956
- }), /* @__PURE__ */ z("dd", {
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
- H && /* @__PURE__ */ z(ee, {
967
+ V && /* @__PURE__ */ R(Y, {
968
968
  provider: Q,
969
- onClose: () => U(!1)
969
+ onClose: () => H(!1)
970
970
  }),
971
- W && /* @__PURE__ */ z(te, {
971
+ U && /* @__PURE__ */ R(te, {
972
972
  providerId: Q.id,
973
- onClose: () => K(!1)
973
+ onClose: () => G(!1)
974
974
  }),
975
- q && /* @__PURE__ */ z(ne, {
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