@burdenoff/microfe-billing 2026.1113.1 → 2026.1113.3

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 (109) hide show
  1. package/dist/billing/BillingRoot.js +83 -77
  2. package/dist/billing/BillingRoot.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
  4. package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
  5. package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
  6. package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
  7. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
  8. package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
  9. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
  10. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  11. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
  12. package/dist/billing/modules/billing/hooks/index.js +5 -5
  13. package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
  14. package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
  15. package/dist/billing/modules/billing/index.js +14 -14
  16. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
  17. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
  18. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  19. package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
  20. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
  21. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
  22. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
  23. package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
  24. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  25. package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
  26. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  27. package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
  28. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  29. package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
  30. package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
  31. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  32. package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
  33. package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
  34. package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
  35. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
  36. package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
  37. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  38. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
  39. package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
  40. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
  41. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
  42. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +144 -144
  43. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  44. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  46. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  49. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  51. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  52. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  53. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  54. package/dist/billing/modules/earnings/pages/EarningsPage.js +102 -102
  55. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  56. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  57. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  58. package/dist/billing/modules/earnings/pages/PayoutsPage.js +107 -107
  59. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  60. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  61. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  62. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  63. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  64. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  65. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  66. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +143 -143
  67. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  68. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  69. package/dist/billing/modules/plans/utils/planAction.d.ts +9 -0
  70. package/dist/billing/modules/plans/utils/planAction.js +4 -1
  71. package/dist/billing/modules/plans/utils/planAction.js.map +1 -1
  72. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  73. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  74. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  75. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  76. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  77. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  78. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  79. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  80. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  81. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  82. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  83. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  84. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  85. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  86. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  87. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  88. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  89. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  90. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  91. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  92. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  93. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  94. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  95. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  96. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  97. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  98. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  99. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  100. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  101. package/dist/billing/shared/components/EmptyState.js +3 -3
  102. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  103. package/dist/billing/shared/ui/MetricCard.js +13 -13
  104. package/dist/billing/shared/utils/format.js +16 -4
  105. package/dist/billing/shared/utils/format.js.map +1 -1
  106. package/dist/billing/shared/utils/index.js +8 -8
  107. package/dist/generated/global-operations.js +294 -286
  108. package/dist/generated/global-operations.js.map +1 -1
  109. package/package.json +2 -2
@@ -4,14 +4,16 @@ import { useBilling as o } from "../../../providers/BillingProvider.js";
4
4
  import { formatDateTime as s, formatNumber as c, formatRelativeTime as l } from "../../../shared/utils/format.js";
5
5
  import { statusTokens as u } from "../../../shared/utils/tokens.js";
6
6
  import { QuotaStatus as d } from "../../../shared/types/graphql.js";
7
- import { WorkspaceAiSpendPanel as f } from "../components/WorkspaceAiSpendPanel.js";
8
- import { Fragment as p, useCallback as m, useDeferredValue as h, useMemo as g, useState as _ } from "react";
9
- import { AlertCircle as v, AlertTriangle as y, CheckCircle as b, ChevronDown as x, ChevronLeft as S, ChevronRight as C, Clock as w, Info as T, Layers as E, Package as D, RefreshCw as O, Search as ee, X as k, XCircle as A } from "lucide-react";
10
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
11
- import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
12
- import { IllustratedEmptyState as P, PagePurpose as ne } from "@burdenoff/fe-libs/ui";
7
+ import { useTr as f } from "../../../shared/hooks/useTr.js";
8
+ import { useIsFluidgridsVariant as p } from "../../../hooks/useBillingVariant.js";
9
+ import { summarizeHealth as ee } from "../utils/usageHealth.js";
10
+ import { WorkspaceAiSpendPanel as m } from "../components/WorkspaceAiSpendPanel.js";
11
+ import { Fragment as h, useCallback as g, useDeferredValue as _, useMemo as v, useState as y } from "react";
12
+ import { IllustratedEmptyState as b, OptionalFields as x, PagePurpose as S, ShowTechnicalDetails as C } from "@burdenoff/fe-libs/ui";
13
+ import { AlertCircle as w, AlertTriangle as T, CheckCircle as te, ChevronDown as ne, ChevronLeft as E, ChevronRight as D, Clock as re, Info as O, Layers as k, Package as A, RefreshCw as j, Search as ie, X as ae, XCircle as M } from "lucide-react";
14
+ import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
13
15
  // src/billing/modules/usage/pages/UsagePage.tsx
14
- function F(e, t) {
16
+ function oe(e, t) {
15
17
  if (t?.displayName && typeof t.displayName == "string") return t.displayName;
16
18
  if (t?.label && typeof t.label == "string") return t.label;
17
19
  let n = e.split(".");
@@ -19,11 +21,11 @@ function F(e, t) {
19
21
  }
20
22
  var I = ({ status: e, className: t = "size-4" }) => {
21
23
  switch (e) {
22
- case "EXHAUSTED": return /* @__PURE__ */ M(A, { className: `${t} ${u.error.icon}` });
23
- case "CRITICAL": return /* @__PURE__ */ M(y, { className: `${t} ${u.error.icon}` });
24
- case "WARNING": return /* @__PURE__ */ M(v, { className: `${t} ${u.warning.icon}` });
25
- case "HEALTHY": return /* @__PURE__ */ M(b, { className: `${t} ${u.success.icon}` });
26
- default: return /* @__PURE__ */ M(T, { className: `${t} ${u.neutral.icon}` });
24
+ case "EXHAUSTED": return /* @__PURE__ */ P(M, { className: `${t} ${u.error.icon}` });
25
+ case "CRITICAL": return /* @__PURE__ */ P(T, { className: `${t} ${u.error.icon}` });
26
+ case "WARNING": return /* @__PURE__ */ P(w, { className: `${t} ${u.warning.icon}` });
27
+ case "HEALTHY": return /* @__PURE__ */ P(te, { className: `${t} ${u.success.icon}` });
28
+ default: return /* @__PURE__ */ P(O, { className: `${t} ${u.neutral.icon}` });
27
29
  }
28
30
  }, L = ({ status: e }) => {
29
31
  let t = {
@@ -33,7 +35,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
33
35
  HEALTHY: `${u.success.bg} ${u.success.text}`,
34
36
  INACTIVE: `${u.neutral.bg} ${u.neutral.text}`
35
37
  };
36
- return /* @__PURE__ */ M("span", {
38
+ return /* @__PURE__ */ P("span", {
37
39
  className: `px-2 py-0.5 text-xs font-medium rounded-full ${t[e]}`,
38
40
  children: e
39
41
  });
@@ -45,14 +47,95 @@ var I = ({ status: e, className: t = "size-4" }) => {
45
47
  HEALTHY: u.success.dot,
46
48
  INACTIVE: u.neutral.dot
47
49
  };
48
- return /* @__PURE__ */ M("div", {
50
+ return /* @__PURE__ */ P("div", {
49
51
  className: "w-full bg-bg-sunken rounded-full h-2.5 overflow-hidden",
50
- children: /* @__PURE__ */ M("div", {
52
+ children: /* @__PURE__ */ P("div", {
51
53
  className: `h-full rounded-full transition-all duration-300 ${r[t]}`,
52
54
  style: { width: `${n}%` }
53
55
  })
54
56
  });
55
- }, z = ({ label: e, value: t, icon: n, color: r, isActive: i, onClick: a }) => {
57
+ }, z = ({ value: e, className: t, title: n }) => p() ? /* @__PURE__ */ P("span", {
58
+ className: "block mt-0.5",
59
+ onClick: (e) => e.stopPropagation(),
60
+ onKeyDown: (e) => e.stopPropagation(),
61
+ children: /* @__PURE__ */ P(C, {
62
+ copyable: !0,
63
+ children: e
64
+ })
65
+ }) : /* @__PURE__ */ P("span", {
66
+ className: t,
67
+ title: n,
68
+ children: e
69
+ }), B = {
70
+ ok: u.success,
71
+ warning: u.warning,
72
+ critical: u.error
73
+ }, V = ({ summary: e }) => {
74
+ let t = f(), n = B[e.level], r = e.overallPercent === null ? null : Math.round(e.overallPercent), i = e.level === "critical" ? t("billing.usage.health.critical", "Some limits are reached") : e.level === "warning" ? t("billing.usage.health.warning", "Some limits are running low") : t("billing.usage.health.ok", "Everything is within your limits");
75
+ return /* @__PURE__ */ F("section", {
76
+ "aria-labelledby": "usage-health-title",
77
+ className: `rounded-card border p-5 space-y-4 ${n.bg} ${n.border}`,
78
+ children: [/* @__PURE__ */ F("div", {
79
+ className: "flex items-start justify-between gap-4",
80
+ children: [/* @__PURE__ */ F("div", {
81
+ className: "space-y-1",
82
+ children: [/* @__PURE__ */ P("h2", {
83
+ id: "usage-health-title",
84
+ className: "text-lg font-semibold text-text-primary",
85
+ children: t("billing.usage.health.title", "Plan health")
86
+ }), /* @__PURE__ */ P("p", {
87
+ className: `text-sm font-medium ${n.text}`,
88
+ children: i
89
+ })]
90
+ }), /* @__PURE__ */ F("div", {
91
+ className: "text-right shrink-0",
92
+ children: [/* @__PURE__ */ P("p", {
93
+ className: "text-3xl font-semibold tabular-nums text-text-primary",
94
+ children: r === null ? "–" : `${r}%`
95
+ }), /* @__PURE__ */ P("p", {
96
+ className: "text-xs text-text-secondary",
97
+ children: t("billing.usage.health.ofLimits", "of limits used")
98
+ })]
99
+ })]
100
+ }), e.limitedCount === 0 ? /* @__PURE__ */ P("p", {
101
+ className: "text-sm text-text-secondary",
102
+ children: t("billing.usage.health.noLimits", "Your plan has no usage limits to track.")
103
+ }) : e.attention.length === 0 ? /* @__PURE__ */ P("p", {
104
+ className: "text-sm text-text-secondary",
105
+ children: t("billing.usage.health.allClear", "Nothing needs your attention right now.")
106
+ }) : /* @__PURE__ */ F("div", {
107
+ className: "space-y-2",
108
+ children: [/* @__PURE__ */ P("h3", {
109
+ className: "text-sm font-medium text-text-primary",
110
+ children: t("billing.usage.health.attention", "Needs attention")
111
+ }), /* @__PURE__ */ P("ul", {
112
+ className: "space-y-2",
113
+ children: e.attention.map((e) => {
114
+ let n = B[e.level];
115
+ return /* @__PURE__ */ F("li", {
116
+ className: "rounded-card border border-border-seam bg-bg-surface p-3 space-y-1.5",
117
+ children: [/* @__PURE__ */ F("div", {
118
+ className: "flex items-center justify-between gap-3",
119
+ children: [/* @__PURE__ */ F("span", {
120
+ className: "flex items-center gap-2 text-sm font-medium text-text-primary",
121
+ children: [e.level === "critical" ? /* @__PURE__ */ P(M, { className: `size-4 ${n.icon}` }) : /* @__PURE__ */ P(w, { className: `size-4 ${n.icon}` }), e.label]
122
+ }), /* @__PURE__ */ P("span", {
123
+ className: `text-xs font-medium tabular-nums ${n.text}`,
124
+ children: e.level === "critical" ? t("billing.usage.health.atLimit", "At limit") : t("billing.usage.health.percentUsed", "{{percent}}% used", { percent: Math.floor(e.percent) })
125
+ })]
126
+ }), /* @__PURE__ */ P("div", {
127
+ className: "w-full bg-bg-sunken rounded-full h-2 overflow-hidden",
128
+ children: /* @__PURE__ */ P("div", {
129
+ className: `h-full rounded-full ${n.dot}`,
130
+ style: { width: `${Math.min(100, e.percent)}%` }
131
+ })
132
+ })]
133
+ }, e.key);
134
+ })
135
+ })]
136
+ })]
137
+ });
138
+ }, H = ({ label: e, value: t, icon: n, color: r, isActive: i, onClick: a }) => {
56
139
  let o = {
57
140
  blue: u.info,
58
141
  emerald: u.success,
@@ -66,64 +149,64 @@ var I = ({ status: e, className: t = "size-4" }) => {
66
149
  red: u.error.icon,
67
150
  gray: u.neutral.icon
68
151
  };
69
- return /* @__PURE__ */ N("button", {
152
+ return /* @__PURE__ */ F("button", {
70
153
  type: "button",
71
154
  onClick: a,
72
155
  "aria-pressed": i,
73
156
  className: `rounded-card border border-border-seam bg-bg-surface bg-accent-wash shadow-elevation-1 p-5 w-full text-left ${a ? "cursor-pointer transition-[box-shadow,transform] duration-200 ease-[var(--motion-easing-out)] shadow-[var(--shadow-pop)] hover:shadow-elevation-2 [@media(hover:none)]: focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]" : ""} ${i ? "ring-1 ring-[var(--color-focus-ring)] border-border-strong" : ""}`,
74
- children: [/* @__PURE__ */ N("div", {
157
+ children: [/* @__PURE__ */ F("div", {
75
158
  className: "flex items-start justify-between gap-3",
76
- children: [/* @__PURE__ */ M("span", {
159
+ children: [/* @__PURE__ */ P("span", {
77
160
  className: "text-sm text-text-secondary",
78
161
  children: e
79
- }), /* @__PURE__ */ M("span", {
162
+ }), /* @__PURE__ */ P("span", {
80
163
  className: `flex size-9 shrink-0 items-center justify-center rounded-lg ${o.bg}`,
81
- children: /* @__PURE__ */ M("span", {
164
+ children: /* @__PURE__ */ P("span", {
82
165
  className: s[r],
83
166
  children: n
84
167
  })
85
168
  })]
86
- }), /* @__PURE__ */ M("p", {
169
+ }), /* @__PURE__ */ P("p", {
87
170
  className: "mt-2 text-2xl font-semibold tabular-nums text-text-primary",
88
171
  children: t
89
172
  })]
90
173
  });
91
- }, re = ({ quota: e, planLabel: t, onClick: n }) => {
174
+ }, se = ({ quota: e, planLabel: t, onClick: n }) => {
92
175
  let r = e.totalLimit != null && e.totalLimit > 0 && !e.noLimit;
93
- return /* @__PURE__ */ N("tr", {
176
+ return /* @__PURE__ */ F("tr", {
94
177
  onClick: n,
95
178
  className: "cursor-pointer hover:bg-bg-sunken transition-colors border-b border-border-subtle last:border-b-0",
96
179
  children: [
97
- /* @__PURE__ */ N("td", {
180
+ /* @__PURE__ */ F("td", {
98
181
  className: "px-4 py-3",
99
182
  children: [
100
- /* @__PURE__ */ M("span", {
183
+ /* @__PURE__ */ P("span", {
101
184
  className: "text-sm font-medium text-text-link hover:underline capitalize",
102
185
  children: e.displayName || e.name.replace(/_/g, " ")
103
186
  }),
104
- /* @__PURE__ */ M("span", {
105
- className: "block text-xs font-mono text-text-muted mt-0.5",
106
- children: e.name
187
+ /* @__PURE__ */ P(z, {
188
+ value: e.name,
189
+ className: "block text-xs font-mono text-text-muted mt-0.5"
107
190
  }),
108
- e.description && /* @__PURE__ */ M("span", {
191
+ e.description && /* @__PURE__ */ P("span", {
109
192
  className: "block text-xs text-text-secondary mt-0.5 max-w-[220px] truncate",
110
193
  children: e.description
111
194
  }),
112
- e.quotaCount > 1 && /* @__PURE__ */ N("span", {
195
+ e.quotaCount > 1 && /* @__PURE__ */ F("span", {
113
196
  className: "block text-xs text-text-secondary mt-0.5",
114
197
  children: [e.quotaCount, " assignments"]
115
198
  })
116
199
  ]
117
200
  }),
118
- t !== void 0 && /* @__PURE__ */ M("td", {
201
+ t !== void 0 && /* @__PURE__ */ P("td", {
119
202
  className: "px-4 py-3 text-sm text-text-secondary whitespace-nowrap",
120
203
  children: t
121
204
  }),
122
- /* @__PURE__ */ M("td", {
205
+ /* @__PURE__ */ P("td", {
123
206
  className: "px-4 py-3",
124
- children: /* @__PURE__ */ N("div", {
207
+ children: /* @__PURE__ */ F("div", {
125
208
  className: "space-y-1.5",
126
- children: [/* @__PURE__ */ N("span", {
209
+ children: [/* @__PURE__ */ F("span", {
127
210
  className: "text-sm text-text-primary tabular-nums",
128
211
  children: [
129
212
  c(e.totalUsed),
@@ -131,58 +214,58 @@ var I = ({ status: e, className: t = "size-4" }) => {
131
214
  r ? c(e.totalLimit) : "∞",
132
215
  e.unit ? ` ${e.unit}` : ""
133
216
  ]
134
- }), /* @__PURE__ */ M(R, {
217
+ }), /* @__PURE__ */ P(R, {
135
218
  percentage: r ? e.usagePercentage : 0,
136
219
  status: e.status
137
220
  })]
138
221
  })
139
222
  }),
140
- /* @__PURE__ */ M("td", {
223
+ /* @__PURE__ */ P("td", {
141
224
  className: "px-4 py-3 text-sm text-text-secondary tabular-nums whitespace-nowrap",
142
225
  children: r ? c(e.totalLimit) : "∞"
143
226
  }),
144
- /* @__PURE__ */ M("td", {
227
+ /* @__PURE__ */ P("td", {
145
228
  className: "px-4 py-3",
146
- children: /* @__PURE__ */ M(L, { status: e.status })
229
+ children: /* @__PURE__ */ P(L, { status: e.status })
147
230
  })
148
231
  ]
149
232
  });
150
- }, ie = ({ quotas: e, planLabel: t, showPlanColumn: n = !0, onQuotaClick: r }) => /* @__PURE__ */ M("div", {
233
+ }, ce = ({ quotas: e, planLabel: t, showPlanColumn: n = !0, onQuotaClick: r }) => /* @__PURE__ */ P("div", {
151
234
  className: "overflow-x-auto rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
152
- children: /* @__PURE__ */ N("table", {
235
+ children: /* @__PURE__ */ F("table", {
153
236
  className: "w-full text-left",
154
- children: [/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ N("tr", {
237
+ children: [/* @__PURE__ */ P("thead", { children: /* @__PURE__ */ F("tr", {
155
238
  className: "border-b border-border-subtle bg-bg-sunken",
156
239
  children: [
157
- /* @__PURE__ */ M("th", {
240
+ /* @__PURE__ */ P("th", {
158
241
  className: "px-4 py-2.5 text-xs font-semibold text-text-muted uppercase tracking-wider",
159
242
  children: "Quotas"
160
243
  }),
161
- n && /* @__PURE__ */ M("th", {
244
+ n && /* @__PURE__ */ P("th", {
162
245
  className: "px-4 py-2.5 text-xs font-semibold text-text-muted uppercase tracking-wider",
163
246
  children: "Plan"
164
247
  }),
165
- /* @__PURE__ */ M("th", {
248
+ /* @__PURE__ */ P("th", {
166
249
  className: "px-4 py-2.5 text-xs font-semibold text-text-muted uppercase tracking-wider",
167
250
  children: "Current Usage"
168
251
  }),
169
- /* @__PURE__ */ M("th", {
252
+ /* @__PURE__ */ P("th", {
170
253
  className: "px-4 py-2.5 text-xs font-semibold text-text-muted uppercase tracking-wider",
171
254
  children: "Limit"
172
255
  }),
173
- /* @__PURE__ */ M("th", {
256
+ /* @__PURE__ */ P("th", {
174
257
  className: "px-4 py-2.5 text-xs font-semibold text-text-muted uppercase tracking-wider",
175
258
  children: "Status"
176
259
  })
177
260
  ]
178
- }) }), /* @__PURE__ */ M("tbody", { children: e.map((e) => /* @__PURE__ */ M(re, {
261
+ }) }), /* @__PURE__ */ P("tbody", { children: e.map((e) => /* @__PURE__ */ P(se, {
179
262
  quota: e,
180
263
  planLabel: n ? t : void 0,
181
264
  onClick: () => r(e)
182
265
  }, e.name)) })]
183
266
  })
184
- }), ae = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
185
- let [r, i] = _(n), a = {
267
+ }), le = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
268
+ let [r, i] = y(n), a = {
186
269
  active: `${u.success.bg} ${u.success.text}`,
187
270
  trialing: `${u.info.bg} ${u.info.text}`,
188
271
  past_due: `${u.warning.bg} ${u.warning.text}`,
@@ -190,31 +273,31 @@ var I = ({ status: e, className: t = "size-4" }) => {
190
273
  expired: `${u.neutral.bg} ${u.neutral.text}`,
191
274
  upgraded: `${u.primary.bg} ${u.primary.text}`
192
275
  };
193
- return /* @__PURE__ */ N("div", {
276
+ return /* @__PURE__ */ F("div", {
194
277
  className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
195
278
  children: [
196
- /* @__PURE__ */ N("button", {
279
+ /* @__PURE__ */ F("button", {
197
280
  type: "button",
198
281
  onClick: () => i(!r),
199
282
  "aria-expanded": r,
200
283
  className: "w-full flex items-center justify-between p-4 hover:bg-bg-sunken transition-colors",
201
- children: [/* @__PURE__ */ N("div", {
284
+ children: [/* @__PURE__ */ F("div", {
202
285
  className: "flex items-center gap-3",
203
- children: [/* @__PURE__ */ M("span", {
286
+ children: [/* @__PURE__ */ P("span", {
204
287
  className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)]",
205
- children: /* @__PURE__ */ M(D, { className: "size-5 text-text-link" })
206
- }), /* @__PURE__ */ N("div", {
288
+ children: /* @__PURE__ */ P(A, { className: "size-5 text-text-link" })
289
+ }), /* @__PURE__ */ F("div", {
207
290
  className: "text-left",
208
- children: [/* @__PURE__ */ N("div", {
291
+ children: [/* @__PURE__ */ F("div", {
209
292
  className: "flex items-center gap-2",
210
- children: [/* @__PURE__ */ M("span", {
293
+ children: [/* @__PURE__ */ P("span", {
211
294
  className: "font-medium text-text-primary",
212
295
  children: e.planName || e.productId || "Subscription"
213
- }), /* @__PURE__ */ M("span", {
296
+ }), /* @__PURE__ */ P("span", {
214
297
  className: `px-2 py-0.5 text-xs font-medium rounded-full capitalize ${a[e.status.toLowerCase()] || a.active}`,
215
298
  children: e.status
216
299
  })]
217
- }), /* @__PURE__ */ N("p", {
300
+ }), /* @__PURE__ */ F("p", {
218
301
  className: "text-xs text-text-secondary",
219
302
  children: [
220
303
  e.aggregatedQuotas.length,
@@ -223,65 +306,65 @@ var I = ({ status: e, className: t = "size-4" }) => {
223
306
  ]
224
307
  })]
225
308
  })]
226
- }), M(r ? x : C, { className: "size-5 text-text-muted" })]
309
+ }), P(r ? ne : D, { className: "size-5 text-text-muted" })]
227
310
  }),
228
- r && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ M("div", {
311
+ r && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ P("div", {
229
312
  className: "border-t border-border-subtle",
230
- children: /* @__PURE__ */ M(ie, {
313
+ children: /* @__PURE__ */ P(ce, {
231
314
  quotas: e.aggregatedQuotas,
232
315
  planLabel: e.planName || e.productId || void 0,
233
316
  showPlanColumn: !!(e.planName || e.productId),
234
317
  onQuotaClick: t
235
318
  })
236
319
  }),
237
- r && e.aggregatedQuotas.length === 0 && /* @__PURE__ */ M("div", {
320
+ r && e.aggregatedQuotas.length === 0 && /* @__PURE__ */ P("div", {
238
321
  className: "border-t border-border-subtle p-6 text-center",
239
- children: /* @__PURE__ */ M("p", {
322
+ children: /* @__PURE__ */ P("p", {
240
323
  className: "text-sm text-text-secondary",
241
324
  children: "No quotas assigned to this subscription"
242
325
  })
243
326
  })
244
327
  ]
245
328
  });
246
- }, oe = ({ quota: e, onClose: t }) => {
247
- let [i, a] = _([null]), d = i[i.length - 1] ?? null, f = i.length, { workspaceId: p } = o(), m = e.quotaAssignments[0]?.id, { usages: h, hasNextPage: g, nextCursor: v, isLoading: y } = n(m, 10, d, p), { snapshots: b, isLoading: x } = r(p, e.name, 24), w = () => {
248
- v && a((e) => [...e, v]);
249
- }, T = () => {
329
+ }, ue = ({ quota: e, onClose: t }) => {
330
+ let [i, a] = y([null]), d = i[i.length - 1] ?? null, f = i.length, { workspaceId: p } = o(), ee = e.quotaAssignments[0]?.id, { usages: m, hasNextPage: h, nextCursor: g, isLoading: _ } = n(ee, 10, d, p), { snapshots: v, isLoading: b } = r(p, e.name, 24), x = () => {
331
+ g && a((e) => [...e, g]);
332
+ }, S = () => {
250
333
  i.length > 1 && a((e) => e.slice(0, -1));
251
334
  };
252
- return /* @__PURE__ */ N("div", {
335
+ return /* @__PURE__ */ F("div", {
253
336
  className: "fixed inset-0 z-50 flex items-center justify-center",
254
- children: [/* @__PURE__ */ M("div", {
337
+ children: [/* @__PURE__ */ P("div", {
255
338
  className: "absolute inset-0 bg-overlay-scrim",
256
339
  onClick: t
257
- }), /* @__PURE__ */ N("div", {
340
+ }), /* @__PURE__ */ F("div", {
258
341
  className: "relative bg-bg-elevated border border-border-seam rounded-card shadow-[var(--shadow-elevation-4)] max-w-2xl w-full mx-4 max-h-[90vh] overflow-auto",
259
342
  role: "dialog",
260
343
  "aria-modal": "true",
261
344
  "aria-labelledby": "quota-detail-title",
262
345
  children: [
263
- /* @__PURE__ */ N("div", {
346
+ /* @__PURE__ */ F("div", {
264
347
  className: "sticky top-0 bg-bg-elevated border-b border-border-subtle p-4 flex items-center justify-between",
265
- children: [/* @__PURE__ */ N("div", {
348
+ children: [/* @__PURE__ */ F("div", {
266
349
  className: "flex items-center gap-3",
267
- children: [/* @__PURE__ */ M(I, {
350
+ children: [/* @__PURE__ */ P(I, {
268
351
  status: e.status,
269
352
  className: "size-5"
270
- }), /* @__PURE__ */ N("div", { children: [
271
- /* @__PURE__ */ M("h2", {
353
+ }), /* @__PURE__ */ F("div", { children: [
354
+ /* @__PURE__ */ P("h2", {
272
355
  id: "quota-detail-title",
273
356
  className: "text-lg font-semibold capitalize text-text-primary",
274
357
  children: e.displayName || e.name.replace(/_/g, " ")
275
358
  }),
276
- /* @__PURE__ */ M("p", {
277
- className: "text-xs font-mono text-text-muted",
278
- children: e.name
359
+ /* @__PURE__ */ P(z, {
360
+ value: e.name,
361
+ className: "block text-xs font-mono text-text-muted"
279
362
  }),
280
- e.description && /* @__PURE__ */ M("p", {
363
+ e.description && /* @__PURE__ */ P("p", {
281
364
  className: "text-sm text-text-secondary mt-0.5",
282
365
  children: e.description
283
366
  }),
284
- /* @__PURE__ */ N("p", {
367
+ /* @__PURE__ */ F("p", {
285
368
  className: "text-sm text-text-secondary mt-0.5",
286
369
  children: [
287
370
  e.quotaCount,
@@ -290,33 +373,33 @@ var I = ({ status: e, className: t = "size-4" }) => {
290
373
  ]
291
374
  })
292
375
  ] })]
293
- }), /* @__PURE__ */ M("button", {
376
+ }), /* @__PURE__ */ P("button", {
294
377
  type: "button",
295
378
  onClick: t,
296
379
  className: "p-1 rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
297
380
  "aria-label": "Close quota details",
298
- children: /* @__PURE__ */ M(k, { className: "size-5" })
381
+ children: /* @__PURE__ */ P(ae, { className: "size-5" })
299
382
  })]
300
383
  }),
301
- /* @__PURE__ */ N("div", {
384
+ /* @__PURE__ */ F("div", {
302
385
  className: "p-4 border-b border-border-subtle",
303
- children: [/* @__PURE__ */ N("div", {
386
+ children: [/* @__PURE__ */ F("div", {
304
387
  className: "mb-4",
305
388
  children: [
306
- /* @__PURE__ */ N("div", {
389
+ /* @__PURE__ */ F("div", {
307
390
  className: "flex items-center justify-between mb-2",
308
- children: [/* @__PURE__ */ M("span", {
391
+ children: [/* @__PURE__ */ P("span", {
309
392
  className: "text-sm text-text-secondary",
310
393
  children: "Usage"
311
- }), /* @__PURE__ */ M(L, { status: e.status })]
394
+ }), /* @__PURE__ */ P(L, { status: e.status })]
312
395
  }),
313
- /* @__PURE__ */ M(R, {
396
+ /* @__PURE__ */ P(R, {
314
397
  percentage: e.usagePercentage,
315
398
  status: e.status
316
399
  }),
317
- /* @__PURE__ */ N("div", {
400
+ /* @__PURE__ */ F("div", {
318
401
  className: "flex items-center justify-between mt-2 text-sm",
319
- children: [/* @__PURE__ */ N("span", {
402
+ children: [/* @__PURE__ */ F("span", {
320
403
  className: "font-medium text-text-primary tabular-nums",
321
404
  children: [
322
405
  c(e.totalUsed),
@@ -325,44 +408,44 @@ var I = ({ status: e, className: t = "size-4" }) => {
325
408
  e.totalLimit != null && e.totalLimit > 0 ? c(e.totalLimit) : "∞",
326
409
  e.unit && ` ${e.unit}`
327
410
  ]
328
- }), /* @__PURE__ */ M("span", {
411
+ }), /* @__PURE__ */ P("span", {
329
412
  className: "text-text-secondary",
330
413
  children: e.totalLimit != null && e.totalLimit > 0 ? `${Math.round(e.usagePercentage)}% used` : "Unlimited"
331
414
  })]
332
415
  })
333
416
  ]
334
- }), e.quotaCount > 1 && /* @__PURE__ */ N("div", {
417
+ }), e.quotaCount > 1 && /* @__PURE__ */ F("div", {
335
418
  className: "mt-4",
336
- children: [/* @__PURE__ */ M("h3", {
419
+ children: [/* @__PURE__ */ P("h3", {
337
420
  className: "text-sm font-medium text-text-primary mb-3",
338
421
  children: "Quota Breakdown"
339
- }), /* @__PURE__ */ M("div", {
422
+ }), /* @__PURE__ */ P("div", {
340
423
  className: "border border-border-seam rounded-card overflow-hidden divide-y divide-border-subtle",
341
424
  children: [...e.quotaAssignments].sort((e, t) => (e.endtime ? new Date(e.endtime).getTime() : Infinity) - (t.endtime ? new Date(t.endtime).getTime() : Infinity)).map((e) => {
342
425
  let t = e.endtime ? new Date(e.endtime) : null, n = /* @__PURE__ */ new Date(), r = t && t < n, i = t ? Math.ceil((t.getTime() - n.getTime()) / 864e5) : null, a = i !== null && i > 0 && i <= 7;
343
- return /* @__PURE__ */ N("div", {
426
+ return /* @__PURE__ */ F("div", {
344
427
  className: `flex items-center justify-between px-3 py-2.5 ${r ? "bg-bg-sunken" : a ? u.warning.bg : "bg-bg-surface"}`,
345
- children: [/* @__PURE__ */ N("div", {
428
+ children: [/* @__PURE__ */ F("div", {
346
429
  className: "flex items-center gap-2",
347
- children: [a && !r && /* @__PURE__ */ M("span", { className: `size-2 rounded-full ${u.warning.dot} animate-pulse` }), /* @__PURE__ */ N("div", {
430
+ children: [a && !r && /* @__PURE__ */ P("span", { className: `size-2 rounded-full ${u.warning.dot} animate-pulse` }), /* @__PURE__ */ F("div", {
348
431
  className: "flex flex-col",
349
- children: [/* @__PURE__ */ M("span", {
432
+ children: [/* @__PURE__ */ P("span", {
350
433
  className: `text-sm ${r ? "text-text-muted" : "text-text-primary"}`,
351
434
  children: t ? t.toLocaleDateString("en-US", {
352
435
  month: "short",
353
436
  day: "numeric",
354
437
  year: "numeric"
355
438
  }) : "No expiry"
356
- }), /* @__PURE__ */ M("span", {
439
+ }), /* @__PURE__ */ P("span", {
357
440
  className: `text-xs ${r ? "text-status-error-text" : a ? u.warning.text : "text-text-secondary"}`,
358
441
  children: r ? "Expired" : i === null ? "Never expires" : i === 0 ? "Expires today" : i === 1 ? "Expires tomorrow" : `${i} days left`
359
442
  })]
360
443
  })]
361
- }), /* @__PURE__ */ M("div", {
444
+ }), /* @__PURE__ */ P("div", {
362
445
  className: "text-right",
363
- children: /* @__PURE__ */ N("span", {
446
+ children: /* @__PURE__ */ F("span", {
364
447
  className: `text-sm font-semibold tabular-nums ${r ? "text-text-muted" : "text-text-primary"}`,
365
- children: [c(e.used), /* @__PURE__ */ N("span", {
448
+ children: [c(e.used), /* @__PURE__ */ F("span", {
366
449
  className: "text-text-secondary font-normal",
367
450
  children: [
368
451
  " / ",
@@ -377,34 +460,34 @@ var I = ({ status: e, className: t = "size-4" }) => {
377
460
  })]
378
461
  })]
379
462
  }),
380
- (x || b.length > 0) && /* @__PURE__ */ N("div", {
463
+ (b || v.length > 0) && /* @__PURE__ */ F("div", {
381
464
  className: "p-4 border-t border-border-subtle",
382
- children: [/* @__PURE__ */ M("h3", {
465
+ children: [/* @__PURE__ */ P("h3", {
383
466
  className: "text-sm font-medium text-text-primary mb-3",
384
467
  children: "Live Value History"
385
- }), x ? /* @__PURE__ */ M("div", {
468
+ }), b ? /* @__PURE__ */ P("div", {
386
469
  className: "space-y-1.5",
387
470
  children: [
388
471
  1,
389
472
  2,
390
473
  3
391
- ].map((e) => /* @__PURE__ */ M("div", { className: "h-8 bg-bg-sunken animate-pulse rounded" }, e))
392
- }) : /* @__PURE__ */ M("div", {
474
+ ].map((e) => /* @__PURE__ */ P("div", { className: "h-8 bg-bg-sunken animate-pulse rounded" }, e))
475
+ }) : /* @__PURE__ */ P("div", {
393
476
  className: "space-y-1.5",
394
- children: b.map((t) => /* @__PURE__ */ N("div", {
477
+ children: v.map((t) => /* @__PURE__ */ F("div", {
395
478
  className: "flex items-center justify-between px-3 py-2 bg-bg-sunken rounded-button",
396
- children: [/* @__PURE__ */ M("span", {
479
+ children: [/* @__PURE__ */ P("span", {
397
480
  className: "text-xs text-text-secondary",
398
481
  children: s(t.snapshotAt)
399
- }), /* @__PURE__ */ N("span", {
482
+ }), /* @__PURE__ */ F("span", {
400
483
  className: "text-sm font-medium text-text-primary tabular-nums",
401
484
  children: [
402
485
  c(t.value),
403
- e.unit && /* @__PURE__ */ M("span", {
486
+ e.unit && /* @__PURE__ */ P("span", {
404
487
  className: "text-xs text-text-secondary ml-1",
405
488
  children: e.unit
406
489
  }),
407
- !t.noLimit && t.limit != null && /* @__PURE__ */ N("span", {
490
+ !t.noLimit && t.limit != null && /* @__PURE__ */ F("span", {
408
491
  className: "text-xs text-text-secondary ml-1",
409
492
  children: ["/ ", c(t.limit)]
410
493
  })
@@ -413,36 +496,36 @@ var I = ({ status: e, className: t = "size-4" }) => {
413
496
  }, t.id))
414
497
  })]
415
498
  }),
416
- /* @__PURE__ */ N("div", {
499
+ /* @__PURE__ */ F("div", {
417
500
  className: "p-4",
418
501
  children: [
419
- /* @__PURE__ */ M("h3", {
502
+ /* @__PURE__ */ P("h3", {
420
503
  className: "text-sm font-medium text-text-primary mb-3",
421
504
  children: "Recent Usage"
422
505
  }),
423
- e.isCollectorBased ? /* @__PURE__ */ M("p", {
506
+ e.isCollectorBased ? /* @__PURE__ */ P("p", {
424
507
  className: "text-sm text-text-secondary text-center py-6",
425
508
  children: "Usage is tracked via system metrics, individual event records are not available for this quota."
426
- }) : y ? /* @__PURE__ */ M("div", {
509
+ }) : _ ? /* @__PURE__ */ P("div", {
427
510
  className: "space-y-2",
428
511
  children: [
429
512
  1,
430
513
  2,
431
514
  3
432
- ].map((e) => /* @__PURE__ */ M("div", { className: "h-12 bg-bg-sunken animate-pulse rounded" }, e))
433
- }) : h.length === 0 ? /* @__PURE__ */ M("p", {
515
+ ].map((e) => /* @__PURE__ */ P("div", { className: "h-12 bg-bg-sunken animate-pulse rounded" }, e))
516
+ }) : m.length === 0 ? /* @__PURE__ */ P("p", {
434
517
  className: "text-sm text-text-secondary text-center py-6",
435
518
  children: "No usage records found"
436
- }) : /* @__PURE__ */ M("div", {
519
+ }) : /* @__PURE__ */ P("div", {
437
520
  className: "space-y-2",
438
- children: h.map((e) => /* @__PURE__ */ N("div", {
521
+ children: m.map((e) => /* @__PURE__ */ F("div", {
439
522
  className: "flex items-center justify-between p-3 border border-border-seam rounded-card",
440
- children: [/* @__PURE__ */ N("div", {
523
+ children: [/* @__PURE__ */ F("div", {
441
524
  className: "flex-1 min-w-0",
442
- children: [/* @__PURE__ */ M("p", {
525
+ children: [/* @__PURE__ */ P("p", {
443
526
  className: "text-sm font-medium text-text-primary",
444
527
  children: e.description || "Usage recorded"
445
- }), /* @__PURE__ */ N("p", {
528
+ }), /* @__PURE__ */ F("p", {
446
529
  className: "text-xs text-text-secondary",
447
530
  children: [
448
531
  l(e.timestamp),
@@ -450,42 +533,42 @@ var I = ({ status: e, className: t = "size-4" }) => {
450
533
  s(e.timestamp)
451
534
  ]
452
535
  })]
453
- }), /* @__PURE__ */ M("span", {
536
+ }), /* @__PURE__ */ P("span", {
454
537
  className: "text-sm font-medium text-text-primary ml-4 tabular-nums",
455
538
  children: c(e.amount)
456
539
  })]
457
540
  }, e.id))
458
541
  }),
459
- !e.isCollectorBased && (i.length > 1 || g) && /* @__PURE__ */ N("div", {
542
+ !e.isCollectorBased && (i.length > 1 || h) && /* @__PURE__ */ F("div", {
460
543
  className: "flex items-center justify-center gap-2 mt-4",
461
544
  children: [
462
- /* @__PURE__ */ M("button", {
545
+ /* @__PURE__ */ P("button", {
463
546
  type: "button",
464
- onClick: T,
547
+ onClick: S,
465
548
  disabled: i.length === 1,
466
549
  className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button text-text-primary hover:bg-bg-sunken transition-colors disabled:opacity-50",
467
550
  "aria-label": "Previous usage page",
468
- children: /* @__PURE__ */ M(S, { className: "size-4" })
551
+ children: /* @__PURE__ */ P(E, { className: "size-4" })
469
552
  }),
470
- /* @__PURE__ */ N("span", {
553
+ /* @__PURE__ */ F("span", {
471
554
  className: "text-sm text-text-secondary tabular-nums",
472
555
  children: ["Page ", f]
473
556
  }),
474
- /* @__PURE__ */ M("button", {
557
+ /* @__PURE__ */ P("button", {
475
558
  type: "button",
476
- onClick: w,
477
- disabled: !g,
559
+ onClick: x,
560
+ disabled: !h,
478
561
  className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button text-text-primary hover:bg-bg-sunken transition-colors disabled:opacity-50",
479
562
  "aria-label": "Next usage page",
480
- children: /* @__PURE__ */ M(C, { className: "size-4" })
563
+ children: /* @__PURE__ */ P(D, { className: "size-4" })
481
564
  })
482
565
  ]
483
566
  })
484
567
  ]
485
568
  }),
486
- /* @__PURE__ */ M("div", {
569
+ /* @__PURE__ */ P("div", {
487
570
  className: "sticky bottom-0 bg-bg-elevated border-t border-border-subtle p-4",
488
- children: /* @__PURE__ */ M("button", {
571
+ children: /* @__PURE__ */ P("button", {
489
572
  type: "button",
490
573
  onClick: t,
491
574
  className: "w-full py-2 px-4 bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
@@ -496,13 +579,13 @@ var I = ({ status: e, className: t = "size-4" }) => {
496
579
  })]
497
580
  });
498
581
  };
499
- function se(e, t) {
582
+ function U(e, t) {
500
583
  return t ? d.HEALTHY : e >= 100 ? d.EXHAUSTED : e >= 90 ? d.CRITICAL : e >= 75 ? d.WARNING : d.HEALTHY;
501
584
  }
502
- var ce = ({ workspaceId: e, productId: t }) => {
503
- let { overview: n, isLoading: r, error: a, refetch: o } = i(e, t), [s, c] = _(/* @__PURE__ */ new Set()), l = g(() => {
585
+ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
586
+ let r = p(), a = f(), { overview: o, isLoading: s, error: c, refetch: l } = i(e, t), [m, h] = y(/* @__PURE__ */ new Set()), _ = v(() => {
504
587
  let e = /* @__PURE__ */ new Map();
505
- for (let t of n) {
588
+ for (let t of o) {
506
589
  let n = e.get(t.assignment.quotaName) ?? [];
507
590
  n.push(t), e.set(t.assignment.quotaName, n);
508
591
  }
@@ -516,218 +599,237 @@ var ce = ({ workspaceId: e, productId: t }) => {
516
599
  totalUsed: i,
517
600
  totalRemaining: a,
518
601
  usagePercentage: o,
519
- status: se(o, n),
602
+ status: U(o, n),
520
603
  hasLive: t.some((e) => e.liveStatus !== null),
521
604
  hasMultiple: t.length > 1
522
605
  };
523
606
  });
524
- }, [n]), f = g(() => l.filter((e) => e.items[0]?.assignment.quotaMode === "dedicated"), [l]), p = g(() => l.filter((e) => e.items[0]?.assignment.quotaMode === "pooled"), [l]), h = m((e) => {
525
- c((t) => {
607
+ }, [o]), S = v(() => _.filter((e) => e.items[0]?.assignment.quotaMode === "dedicated"), [_]), C = v(() => _.filter((e) => e.items[0]?.assignment.quotaMode === "pooled"), [_]), ne = v(() => ee(_.map((e) => ({
608
+ key: e.quotaName,
609
+ displayName: null,
610
+ used: e.totalUsed,
611
+ limit: e.totalLimit,
612
+ noLimit: e.noLimit,
613
+ productIds: e.items.map((e) => e.assignment.productId),
614
+ quotaModes: e.items.map((e) => e.assignment.quotaMode)
615
+ }))), [_]), E = g((e) => {
616
+ h((t) => {
526
617
  let n = new Set(t);
527
618
  return n.has(e) ? n.delete(e) : n.add(e), n;
528
619
  });
529
620
  }, []);
530
- if (r && n.length === 0) return /* @__PURE__ */ M("div", {
621
+ if (s && o.length === 0) return /* @__PURE__ */ P("div", {
531
622
  className: "space-y-3",
532
623
  children: [
533
624
  1,
534
625
  2,
535
626
  3
536
- ].map((e) => /* @__PURE__ */ M("div", { className: "h-16 bg-bg-sunken animate-pulse rounded-card" }, e))
627
+ ].map((e) => /* @__PURE__ */ P("div", { className: "h-16 bg-bg-sunken animate-pulse rounded-card" }, e))
537
628
  });
538
- if (a) return /* @__PURE__ */ N("div", {
629
+ if (c) return /* @__PURE__ */ F("div", {
539
630
  className: "text-center py-8 space-y-2",
540
631
  children: [
541
- /* @__PURE__ */ M(y, { className: "size-8 text-status-error-text mx-auto" }),
542
- /* @__PURE__ */ M("p", {
632
+ /* @__PURE__ */ P(T, { className: "size-8 text-status-error-text mx-auto" }),
633
+ /* @__PURE__ */ P("p", {
543
634
  className: "text-sm text-text-secondary",
544
- children: a.message
635
+ children: c.message
545
636
  }),
546
- /* @__PURE__ */ M("button", {
637
+ /* @__PURE__ */ P("button", {
547
638
  type: "button",
548
- onClick: () => o(),
639
+ onClick: () => l(),
549
640
  className: "px-3 py-1.5 text-sm border border-border-subtle rounded-button text-text-primary hover:bg-bg-sunken transition-colors",
550
641
  children: "Retry"
551
642
  })
552
643
  ]
553
644
  });
554
- if (n.length === 0) return /* @__PURE__ */ M(P, {
645
+ if (o.length === 0) return /* @__PURE__ */ P(b, {
555
646
  illustration: "empty-data",
556
647
  title: "No workspace quotas assigned",
557
648
  description: "Quotas are assigned to this workspace after a successful purchase. If you have an active subscription, contact support."
558
649
  });
559
- let x = l.filter((e) => e.status === d.HEALTHY).length, S = l.filter((e) => e.status === d.WARNING).length, C = l.filter((e) => e.status === d.CRITICAL || e.status === d.EXHAUSTED).length;
560
- return /* @__PURE__ */ N("div", {
650
+ let D = _.filter((e) => e.status === d.HEALTHY).length, re = _.filter((e) => e.status === d.WARNING).length, O = _.filter((e) => e.status === d.CRITICAL || e.status === d.EXHAUSTED).length, k = /* @__PURE__ */ F("div", {
561
651
  className: "space-y-4",
562
652
  children: [
563
- /* @__PURE__ */ N("div", {
653
+ /* @__PURE__ */ F("div", {
564
654
  className: "grid grid-cols-3 gap-3",
565
655
  children: [
566
- /* @__PURE__ */ N("div", {
656
+ /* @__PURE__ */ F("div", {
567
657
  className: "rounded-card border border-border-seam bg-bg-surface shadow-elevation-1 p-4",
568
- children: [/* @__PURE__ */ N("div", {
658
+ children: [/* @__PURE__ */ F("div", {
569
659
  className: "flex items-center gap-1.5 mb-1",
570
- children: [/* @__PURE__ */ M("span", {
660
+ children: [/* @__PURE__ */ P("span", {
571
661
  className: `flex size-7 items-center justify-center rounded-lg ${u.success.bg}`,
572
- children: /* @__PURE__ */ M(b, { className: `size-4 ${u.success.icon}` })
573
- }), /* @__PURE__ */ M("span", {
662
+ children: /* @__PURE__ */ P(te, { className: `size-4 ${u.success.icon}` })
663
+ }), /* @__PURE__ */ P("span", {
574
664
  className: "text-xs text-text-secondary",
575
665
  children: "Healthy"
576
666
  })]
577
- }), /* @__PURE__ */ M("p", {
667
+ }), /* @__PURE__ */ P("p", {
578
668
  className: "text-xl font-semibold tabular-nums text-text-primary",
579
- children: x
669
+ children: D
580
670
  })]
581
671
  }),
582
- /* @__PURE__ */ N("div", {
672
+ /* @__PURE__ */ F("div", {
583
673
  className: "rounded-card border border-border-seam bg-bg-surface shadow-elevation-1 p-4",
584
- children: [/* @__PURE__ */ N("div", {
674
+ children: [/* @__PURE__ */ F("div", {
585
675
  className: "flex items-center gap-1.5 mb-1",
586
- children: [/* @__PURE__ */ M("span", {
676
+ children: [/* @__PURE__ */ P("span", {
587
677
  className: `flex size-7 items-center justify-center rounded-lg ${u.warning.bg}`,
588
- children: /* @__PURE__ */ M(v, { className: `size-4 ${u.warning.icon}` })
589
- }), /* @__PURE__ */ M("span", {
678
+ children: /* @__PURE__ */ P(w, { className: `size-4 ${u.warning.icon}` })
679
+ }), /* @__PURE__ */ P("span", {
590
680
  className: "text-xs text-text-secondary",
591
681
  children: "Warning"
592
682
  })]
593
- }), /* @__PURE__ */ M("p", {
683
+ }), /* @__PURE__ */ P("p", {
594
684
  className: "text-xl font-semibold tabular-nums text-text-primary",
595
- children: S
685
+ children: re
596
686
  })]
597
687
  }),
598
- /* @__PURE__ */ N("div", {
688
+ /* @__PURE__ */ F("div", {
599
689
  className: "rounded-card border border-border-seam bg-bg-surface shadow-elevation-1 p-4",
600
- children: [/* @__PURE__ */ N("div", {
690
+ children: [/* @__PURE__ */ F("div", {
601
691
  className: "flex items-center gap-1.5 mb-1",
602
- children: [/* @__PURE__ */ M("span", {
692
+ children: [/* @__PURE__ */ P("span", {
603
693
  className: `flex size-7 items-center justify-center rounded-lg ${u.error.bg}`,
604
- children: /* @__PURE__ */ M(A, { className: `size-4 ${u.error.icon}` })
605
- }), /* @__PURE__ */ M("span", {
694
+ children: /* @__PURE__ */ P(M, { className: `size-4 ${u.error.icon}` })
695
+ }), /* @__PURE__ */ P("span", {
606
696
  className: "text-xs text-text-secondary",
607
697
  children: "Critical / Exhausted"
608
698
  })]
609
- }), /* @__PURE__ */ M("p", {
699
+ }), /* @__PURE__ */ P("p", {
610
700
  className: "text-xl font-semibold tabular-nums text-text-primary",
611
- children: C
701
+ children: O
612
702
  })]
613
703
  })
614
704
  ]
615
705
  }),
616
- f.length > 0 && /* @__PURE__ */ N("div", { children: [
617
- /* @__PURE__ */ M("h3", {
706
+ S.length > 0 && /* @__PURE__ */ F("div", { children: [
707
+ /* @__PURE__ */ P("h3", {
618
708
  className: "text-sm font-semibold text-text-primary mb-2",
619
709
  children: "Product Workspace Quota"
620
710
  }),
621
- /* @__PURE__ */ M("p", {
711
+ /* @__PURE__ */ P("p", {
622
712
  className: "text-xs text-text-secondary mb-2",
623
713
  children: "Quotas dedicated to this product for your workspace."
624
714
  }),
625
- /* @__PURE__ */ M(B, {
626
- groups: f,
627
- expandedGroups: s,
628
- onToggleGroup: h
715
+ /* @__PURE__ */ P(W, {
716
+ groups: S,
717
+ expandedGroups: m,
718
+ onToggleGroup: E
629
719
  })
630
720
  ] }),
631
- p.length > 0 && /* @__PURE__ */ N("div", { children: [
632
- /* @__PURE__ */ M("h3", {
721
+ C.length > 0 && /* @__PURE__ */ F("div", { children: [
722
+ /* @__PURE__ */ P("h3", {
633
723
  className: "text-sm font-semibold text-text-primary mb-2",
634
724
  children: "Pooled Workspace Quota"
635
725
  }),
636
- /* @__PURE__ */ M("p", {
726
+ /* @__PURE__ */ P("p", {
637
727
  className: "text-xs text-text-secondary mb-2",
638
728
  children: "Shared limits pooled across your workspace, independent of any single product."
639
729
  }),
640
- /* @__PURE__ */ M(B, {
641
- groups: p,
642
- expandedGroups: s,
643
- onToggleGroup: h
730
+ /* @__PURE__ */ P(W, {
731
+ groups: C,
732
+ expandedGroups: m,
733
+ onToggleGroup: E
644
734
  })
645
735
  ] }),
646
- /* @__PURE__ */ N("p", {
736
+ /* @__PURE__ */ F("p", {
647
737
  className: "text-xs text-text-secondary",
648
- children: ["Workspace quotas are sourced from the activity service. Usage is tracked cumulatively across all active sources for each quota.", n.some((e) => e.liveStatus) && " Live values are updated every ~60 seconds."]
738
+ children: ["Workspace quotas are sourced from the activity service. Usage is tracked cumulatively across all active sources for each quota.", o.some((e) => e.liveStatus) && " Live values are updated every ~60 seconds."]
649
739
  })
650
740
  ]
651
741
  });
652
- }, B = ({ groups: e, expandedGroups: t, onToggleGroup: n }) => /* @__PURE__ */ M("div", {
742
+ return r ? /* @__PURE__ */ F("div", {
743
+ className: "space-y-4",
744
+ children: [
745
+ /* @__PURE__ */ P(V, { summary: ne }),
746
+ n,
747
+ /* @__PURE__ */ P(x, {
748
+ storageKey: "billing.usage.details",
749
+ label: a("billing.usage.moreOptions", "More options"),
750
+ children: k
751
+ })
752
+ ]
753
+ }) : k;
754
+ }, W = ({ groups: e, expandedGroups: t, onToggleGroup: n }) => /* @__PURE__ */ P("div", {
653
755
  className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
654
- children: /* @__PURE__ */ N("table", {
756
+ children: /* @__PURE__ */ F("table", {
655
757
  className: "w-full text-sm",
656
- children: [/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ N("tr", {
758
+ children: [/* @__PURE__ */ P("thead", { children: /* @__PURE__ */ F("tr", {
657
759
  className: "border-b border-border-subtle bg-bg-sunken",
658
760
  children: [
659
- /* @__PURE__ */ M("th", {
761
+ /* @__PURE__ */ P("th", {
660
762
  className: "text-left px-4 py-3 font-medium text-text-muted uppercase tracking-wide text-xs",
661
763
  children: "Quota"
662
764
  }),
663
- /* @__PURE__ */ M("th", {
765
+ /* @__PURE__ */ P("th", {
664
766
  className: "text-left px-4 py-3 font-medium text-text-muted uppercase tracking-wide text-xs hidden sm:table-cell",
665
767
  children: "Sources"
666
768
  }),
667
- /* @__PURE__ */ M("th", {
769
+ /* @__PURE__ */ P("th", {
668
770
  className: "text-left px-4 py-3 font-medium text-text-muted uppercase tracking-wide text-xs",
669
771
  children: "Usage"
670
772
  }),
671
- /* @__PURE__ */ M("th", {
773
+ /* @__PURE__ */ P("th", {
672
774
  className: "text-left px-4 py-3 font-medium text-text-muted uppercase tracking-wide text-xs hidden sm:table-cell",
673
775
  children: "Remaining"
674
776
  }),
675
- /* @__PURE__ */ M("th", {
777
+ /* @__PURE__ */ P("th", {
676
778
  className: "text-left px-4 py-3 font-medium text-text-muted uppercase tracking-wide text-xs",
677
779
  children: "Status"
678
780
  })
679
781
  ]
680
- }) }), /* @__PURE__ */ M("tbody", {
782
+ }) }), /* @__PURE__ */ P("tbody", {
681
783
  className: "divide-y divide-border-subtle",
682
784
  children: e.map((e) => {
683
785
  let r = t.has(e.quotaName);
684
- return /* @__PURE__ */ N(p, { children: [/* @__PURE__ */ N("tr", {
786
+ return /* @__PURE__ */ F(h, { children: [/* @__PURE__ */ F("tr", {
685
787
  className: `transition-colors ${e.hasMultiple ? "cursor-pointer hover:bg-bg-sunken" : "hover:bg-bg-sunken"}`,
686
788
  onClick: e.hasMultiple ? () => n(e.quotaName) : void 0,
687
789
  children: [
688
- /* @__PURE__ */ M("td", {
790
+ /* @__PURE__ */ P("td", {
689
791
  className: "px-4 py-3",
690
- children: /* @__PURE__ */ N("div", {
792
+ children: /* @__PURE__ */ F("div", {
691
793
  className: "flex items-center gap-2",
692
- children: [e.hasMultiple && /* @__PURE__ */ M(C, { className: `size-4 text-text-muted shrink-0 transition-transform duration-150 ${r ? "rotate-90" : ""}` }), /* @__PURE__ */ N("div", { children: [
693
- /* @__PURE__ */ M("div", {
794
+ children: [e.hasMultiple && /* @__PURE__ */ P(D, { className: `size-4 text-text-muted shrink-0 transition-transform duration-150 ${r ? "rotate-90" : ""}` }), /* @__PURE__ */ F("div", { children: [
795
+ /* @__PURE__ */ P("div", {
694
796
  className: "font-medium text-text-primary",
695
- children: F(e.quotaName)
797
+ children: oe(e.quotaName)
696
798
  }),
697
- /* @__PURE__ */ M("div", {
698
- className: "text-xs font-mono text-text-muted mt-0.5",
699
- children: e.quotaName
799
+ /* @__PURE__ */ P(z, {
800
+ value: e.quotaName,
801
+ className: "block text-xs font-mono text-text-muted mt-0.5"
700
802
  }),
701
- e.hasLive && /* @__PURE__ */ M("div", {
803
+ e.hasLive && /* @__PURE__ */ P("div", {
702
804
  className: "text-xs text-text-secondary mt-0.5",
703
805
  children: "Live · updated ~60s"
704
806
  })
705
807
  ] })]
706
808
  })
707
809
  }),
708
- /* @__PURE__ */ M("td", {
810
+ /* @__PURE__ */ P("td", {
709
811
  className: "px-4 py-3 hidden sm:table-cell",
710
- children: e.hasMultiple ? /* @__PURE__ */ N("span", {
812
+ children: e.hasMultiple ? /* @__PURE__ */ F("span", {
711
813
  className: "text-xs bg-[var(--color-accent-soft)] text-text-link px-1.5 py-0.5 rounded font-medium",
712
814
  children: [e.items.length, " subscriptions"]
713
- }) : /* @__PURE__ */ N("div", {
815
+ }) : /* @__PURE__ */ F("div", {
714
816
  className: "flex items-center gap-1.5",
715
- children: [/* @__PURE__ */ M("span", {
817
+ children: [/* @__PURE__ */ P("span", {
716
818
  className: "text-xs text-text-secondary bg-bg-sunken px-1.5 py-0.5 rounded",
717
819
  children: e.items[0]?.assignment.productId
718
- }), /* @__PURE__ */ M("span", {
820
+ }), /* @__PURE__ */ P("span", {
719
821
  className: "text-xs text-text-secondary capitalize",
720
822
  children: e.items[0]?.assignment.quotaMode
721
823
  })]
722
824
  })
723
825
  }),
724
- /* @__PURE__ */ M("td", {
826
+ /* @__PURE__ */ P("td", {
725
827
  className: "px-4 py-3",
726
- children: /* @__PURE__ */ N("div", {
828
+ children: /* @__PURE__ */ F("div", {
727
829
  className: "space-y-1.5",
728
- children: [/* @__PURE__ */ N("div", {
830
+ children: [/* @__PURE__ */ F("div", {
729
831
  className: "text-text-primary tabular-nums",
730
- children: [c(e.totalUsed), !e.noLimit && e.totalLimit != null && /* @__PURE__ */ N("span", {
832
+ children: [c(e.totalUsed), !e.noLimit && e.totalLimit != null && /* @__PURE__ */ F("span", {
731
833
  className: "text-text-secondary",
732
834
  children: [
733
835
  " ",
@@ -735,61 +837,61 @@ var ce = ({ workspaceId: e, productId: t }) => {
735
837
  c(e.totalLimit)
736
838
  ]
737
839
  })]
738
- }), !e.noLimit && /* @__PURE__ */ M(R, {
840
+ }), !e.noLimit && /* @__PURE__ */ P(R, {
739
841
  percentage: e.usagePercentage,
740
842
  status: e.status
741
843
  })]
742
844
  })
743
845
  }),
744
- /* @__PURE__ */ M("td", {
846
+ /* @__PURE__ */ P("td", {
745
847
  className: "px-4 py-3 hidden sm:table-cell text-text-primary tabular-nums",
746
- children: e.noLimit ? /* @__PURE__ */ M("span", {
848
+ children: e.noLimit ? /* @__PURE__ */ P("span", {
747
849
  className: "text-text-secondary",
748
850
  children: "Unlimited"
749
851
  }) : c(e.totalRemaining ?? 0)
750
852
  }),
751
- /* @__PURE__ */ M("td", {
853
+ /* @__PURE__ */ P("td", {
752
854
  className: "px-4 py-3",
753
- children: /* @__PURE__ */ M(L, { status: e.status })
855
+ children: /* @__PURE__ */ P(L, { status: e.status })
754
856
  })
755
857
  ]
756
858
  }, e.quotaName), r && e.items.map((e) => {
757
- let t = se(e.usagePercentage, e.assignment.noLimit);
758
- return /* @__PURE__ */ N("tr", {
859
+ let t = U(e.usagePercentage, e.assignment.noLimit);
860
+ return /* @__PURE__ */ F("tr", {
759
861
  className: "bg-bg-sunken/50 border-t border-dashed border-border-subtle",
760
862
  children: [
761
- /* @__PURE__ */ M("td", {
863
+ /* @__PURE__ */ P("td", {
762
864
  className: "pl-12 pr-4 py-2.5",
763
- children: /* @__PURE__ */ N("div", {
865
+ children: /* @__PURE__ */ F("div", {
764
866
  className: "text-xs text-text-secondary space-y-0.5",
765
- children: [/* @__PURE__ */ M("div", {
766
- className: "font-mono truncate max-w-[200px]",
767
- title: e.assignment.subscriptionId ?? void 0,
768
- children: e.assignment.subscriptionId ?? "—"
769
- }), /* @__PURE__ */ N("div", {
867
+ children: [/* @__PURE__ */ P(z, {
868
+ value: e.assignment.subscriptionId ?? "—",
869
+ className: "block font-mono truncate max-w-[200px]",
870
+ title: e.assignment.subscriptionId ?? void 0
871
+ }), /* @__PURE__ */ F("div", {
770
872
  className: "flex items-center gap-1.5 flex-wrap",
771
- children: [/* @__PURE__ */ M("span", {
873
+ children: [/* @__PURE__ */ P("span", {
772
874
  className: "bg-bg-sunken px-1.5 py-0.5 rounded",
773
875
  children: e.assignment.productId
774
- }), /* @__PURE__ */ M("span", {
876
+ }), /* @__PURE__ */ P("span", {
775
877
  className: "capitalize",
776
878
  children: e.assignment.quotaMode
777
879
  })]
778
880
  })]
779
881
  })
780
882
  }),
781
- /* @__PURE__ */ M("td", { className: "px-4 py-2.5 hidden sm:table-cell" }),
782
- /* @__PURE__ */ N("td", {
883
+ /* @__PURE__ */ P("td", { className: "px-4 py-2.5 hidden sm:table-cell" }),
884
+ /* @__PURE__ */ F("td", {
783
885
  className: "px-4 py-2.5 text-xs text-text-secondary tabular-nums",
784
- children: [c(e.effectiveUsed), !e.assignment.noLimit && e.assignment.limit != null && /* @__PURE__ */ N(j, { children: [" / ", c(e.assignment.limit)] })]
886
+ children: [c(e.effectiveUsed), !e.assignment.noLimit && e.assignment.limit != null && /* @__PURE__ */ F(N, { children: [" / ", c(e.assignment.limit)] })]
785
887
  }),
786
- /* @__PURE__ */ M("td", {
888
+ /* @__PURE__ */ P("td", {
787
889
  className: "px-4 py-2.5 hidden sm:table-cell text-xs text-text-secondary tabular-nums",
788
890
  children: e.assignment.noLimit ? "Unlimited" : c(e.remaining ?? 0)
789
891
  }),
790
- /* @__PURE__ */ M("td", {
892
+ /* @__PURE__ */ P("td", {
791
893
  className: "px-4 py-2.5",
792
- children: /* @__PURE__ */ M(L, { status: t })
894
+ children: /* @__PURE__ */ P(L, { status: t })
793
895
  })
794
896
  ]
795
897
  }, e.assignment.id);
@@ -797,460 +899,489 @@ var ce = ({ workspaceId: e, productId: t }) => {
797
899
  })
798
900
  })]
799
901
  })
800
- }), V = () => {
801
- let { t: n } = te(), r = (e, t) => {
802
- let r = n(e);
803
- return r === e ? t : r;
804
- }, i = a(), [s, c] = _(() => {
902
+ }), fe = ({ enabled: e, summary: t, children: n }) => {
903
+ let r = f();
904
+ return e ? /* @__PURE__ */ F("div", {
905
+ className: "space-y-6",
906
+ children: [/* @__PURE__ */ P(V, { summary: t }), /* @__PURE__ */ P(x, {
907
+ storageKey: "billing.usage.details",
908
+ label: r("billing.usage.moreOptions", "More options"),
909
+ children: /* @__PURE__ */ P("div", {
910
+ className: "space-y-6",
911
+ children: n
912
+ })
913
+ })]
914
+ }) : /* @__PURE__ */ P(N, { children: n });
915
+ }, G = () => {
916
+ let n = f(), r = p(), i = a(), [s, c] = y(() => {
805
917
  if (typeof window < "u") return new URLSearchParams(window.location.search).get("billingAccountId") || void 0;
806
- }), [l, d] = _(null), [p, S] = _(""), [C, T] = _("all"), [F, I] = _("active"), L = h(p), { billingAccounts: R, isLoading: re } = e(), se = (R.find((e) => e.isDefault) ?? R[0])?.id, B = s ?? se, { workspaceId: V, productId: le, navigate: ue } = o(), [H, de] = _("workspace"), { dashboard: U, pooledQuotas: W, activeSubscriptions: G, pastSubscriptions: K, isLoading: fe, isPastSubscriptionsLoading: q, error: pe, refetch: me, loadMorePastSubscriptions: he, hasMorePastSubscriptions: ge, isLoadingMorePast: _e, pastSubscriptionsCount: ve } = t({
807
- billingAccountId: B,
808
- workspaceId: V,
809
- productId: le,
810
- searchQuery: L || void 0,
811
- viewMode: F
812
- }), J = m((e) => C === "all" ? !0 : C === "healthy" ? e.status === "HEALTHY" : C === "warning" ? e.status === "WARNING" : C !== "critical" || e.status === "CRITICAL" || e.status === "EXHAUSTED", [C]), Y = g(() => W.filter(J), [W, J]), X = g(() => C === "all" ? G : G.map((e) => ({
918
+ }), [l, d] = y(null), [h, x] = y(""), [C, E] = y("all"), [D, O] = y("active"), oe = _(h), { billingAccounts: I, isLoading: L } = e(), R = (I.find((e) => e.isDefault) ?? I[0])?.id, z = s ?? R, { workspaceId: B, productId: V, navigate: se } = o(), [U, W] = y("workspace"), { dashboard: G, pooledQuotas: K, activeSubscriptions: q, pastSubscriptions: J, isLoading: pe, isPastSubscriptionsLoading: Y, error: me, refetch: he, loadMorePastSubscriptions: ge, hasMorePastSubscriptions: _e, isLoadingMorePast: ve, pastSubscriptionsCount: ye } = t({
919
+ billingAccountId: z,
920
+ workspaceId: B,
921
+ productId: V,
922
+ searchQuery: oe || void 0,
923
+ viewMode: D
924
+ }), X = g((e) => C === "all" ? !0 : C === "healthy" ? e.status === "HEALTHY" : C === "warning" ? e.status === "WARNING" : C !== "critical" || e.status === "CRITICAL" || e.status === "EXHAUSTED", [C]), Z = v(() => K.filter(X), [K, X]), be = v(() => C === "all" ? q : q.map((e) => ({
813
925
  ...e,
814
- aggregatedQuotas: e.aggregatedQuotas.filter(J)
926
+ aggregatedQuotas: e.aggregatedQuotas.filter(X)
815
927
  })).filter((e) => e.aggregatedQuotas.length > 0), [
816
- G,
928
+ q,
817
929
  C,
818
- J
819
- ]), Z = g(() => C === "all" ? K : K.map((e) => ({
930
+ X
931
+ ]), xe = v(() => C === "all" ? J : J.map((e) => ({
820
932
  ...e,
821
- aggregatedQuotas: e.aggregatedQuotas.filter(J)
933
+ aggregatedQuotas: e.aggregatedQuotas.filter(X)
822
934
  })).filter((e) => e.aggregatedQuotas.length > 0), [
823
- K,
935
+ J,
824
936
  C,
825
- J
826
- ]), Q = g(() => F === "active" ? {
827
- active: X,
937
+ X
938
+ ]), Q = v(() => D === "active" ? {
939
+ active: be,
828
940
  past: []
829
- } : F === "past" ? {
941
+ } : D === "past" ? {
830
942
  active: [],
831
- past: Z
943
+ past: xe
832
944
  } : {
833
- active: X,
834
- past: Z
945
+ active: be,
946
+ past: xe
835
947
  }, [
836
- F,
837
- X,
838
- Z
839
- ]), $ = p !== "" || C !== "all", ye = L !== p, be = () => {
840
- S(""), T("all");
841
- }, xe = (e) => {
842
- T((t) => t === e ? "all" : e);
843
- };
844
- if (!i.canViewUsage) return /* @__PURE__ */ M("div", {
948
+ D,
949
+ be,
950
+ xe
951
+ ]), $ = h !== "" || C !== "all", Se = oe !== h, Ce = () => {
952
+ x(""), E("all");
953
+ }, we = (e) => {
954
+ E((t) => t === e ? "all" : e);
955
+ }, Te = v(() => {
956
+ let e = (e, t, n) => ({
957
+ key: e.name,
958
+ displayName: e.displayName ?? null,
959
+ used: e.totalUsed,
960
+ limit: e.totalLimit,
961
+ noLimit: e.noLimit,
962
+ productIds: t,
963
+ quotaModes: n
964
+ });
965
+ return ee([...q.flatMap((t) => t.aggregatedQuotas.map((n) => e(n, t.productId ? [t.productId] : [], []))), ...K.map((t) => e(t, [], ["pooled"]))]);
966
+ }, [q, K]);
967
+ if (!i.canViewUsage) return /* @__PURE__ */ P("div", {
845
968
  className: "flex items-center justify-center h-full min-h-[400px]",
846
- children: /* @__PURE__ */ N("div", {
969
+ children: /* @__PURE__ */ F("div", {
847
970
  className: "text-center space-y-2",
848
971
  children: [
849
- /* @__PURE__ */ M("div", {
972
+ /* @__PURE__ */ P("div", {
850
973
  className: "size-12 mx-auto rounded-full bg-[var(--color-accent-soft)] flex items-center justify-center",
851
- children: /* @__PURE__ */ M(y, { className: "size-6 text-text-secondary" })
974
+ children: /* @__PURE__ */ P(T, { className: "size-6 text-text-secondary" })
852
975
  }),
853
- /* @__PURE__ */ M("h2", {
976
+ /* @__PURE__ */ P("h2", {
854
977
  className: "text-lg font-semibold text-text-primary",
855
978
  children: "Access Denied"
856
979
  }),
857
- /* @__PURE__ */ M("p", {
980
+ /* @__PURE__ */ P("p", {
858
981
  className: "text-sm text-text-secondary max-w-sm",
859
982
  children: "You don't have permission to view usage data."
860
983
  })
861
984
  ]
862
985
  })
863
986
  });
864
- if ((re || fe) && !U) return /* @__PURE__ */ N("div", {
987
+ if ((L || pe) && !G) return /* @__PURE__ */ F("div", {
865
988
  className: "space-y-6 px-6 lg:px-8 py-6",
866
989
  children: [
867
- /* @__PURE__ */ M("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
868
- /* @__PURE__ */ M("div", {
990
+ /* @__PURE__ */ P("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
991
+ /* @__PURE__ */ P("div", {
869
992
  className: "grid grid-cols-2 sm:grid-cols-4 gap-4",
870
993
  children: [
871
994
  1,
872
995
  2,
873
996
  3,
874
997
  4
875
- ].map((e) => /* @__PURE__ */ M("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
998
+ ].map((e) => /* @__PURE__ */ P("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
876
999
  }),
877
- /* @__PURE__ */ M("div", { className: "h-64 bg-bg-sunken animate-pulse rounded-card" })
1000
+ /* @__PURE__ */ P("div", { className: "h-64 bg-bg-sunken animate-pulse rounded-card" })
878
1001
  ]
879
1002
  });
880
- if (pe) return /* @__PURE__ */ M("div", {
1003
+ if (me) return /* @__PURE__ */ P("div", {
881
1004
  className: "flex items-center justify-center h-full min-h-[400px]",
882
- children: /* @__PURE__ */ N("div", {
1005
+ children: /* @__PURE__ */ F("div", {
883
1006
  className: "text-center space-y-4",
884
1007
  children: [
885
- /* @__PURE__ */ M("div", {
1008
+ /* @__PURE__ */ P("div", {
886
1009
  className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
887
- children: /* @__PURE__ */ M(y, { className: "size-6 text-status-error-text" })
1010
+ children: /* @__PURE__ */ P(T, { className: "size-6 text-status-error-text" })
888
1011
  }),
889
- /* @__PURE__ */ M("h2", {
1012
+ /* @__PURE__ */ P("h2", {
890
1013
  className: "text-lg font-semibold text-text-primary",
891
1014
  children: "Failed to load usage data"
892
1015
  }),
893
- /* @__PURE__ */ M("p", {
1016
+ /* @__PURE__ */ P("p", {
894
1017
  className: "text-sm text-text-secondary",
895
- children: pe.message
1018
+ children: me.message
896
1019
  }),
897
- /* @__PURE__ */ M("button", {
1020
+ /* @__PURE__ */ P("button", {
898
1021
  type: "button",
899
- onClick: () => me(),
1022
+ onClick: () => he(),
900
1023
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
901
1024
  children: "Try Again"
902
1025
  })
903
1026
  ]
904
1027
  })
905
1028
  });
906
- let Se = R.find((e) => e.id === B);
907
- return /* @__PURE__ */ N("div", {
1029
+ let Ee = I.find((e) => e.id === z);
1030
+ return /* @__PURE__ */ F("div", {
908
1031
  className: "space-y-6 px-6 lg:px-8 py-6",
909
1032
  children: [
910
- /* @__PURE__ */ N("div", {
1033
+ /* @__PURE__ */ F("div", {
911
1034
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
912
- children: [/* @__PURE__ */ N("div", { children: [
913
- /* @__PURE__ */ M("h1", {
1035
+ children: [/* @__PURE__ */ F("div", { children: [
1036
+ /* @__PURE__ */ P("h1", {
914
1037
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
915
- children: r("billing.usage.title", "Usage")
1038
+ children: n("billing.usage.title", "Usage")
916
1039
  }),
917
- /* @__PURE__ */ M("p", {
1040
+ /* @__PURE__ */ P("p", {
918
1041
  className: "text-sm text-text-secondary mt-1",
919
1042
  children: "Monitor your resource consumption and quota usage"
920
1043
  }),
921
- /* @__PURE__ */ M(ne, {
1044
+ /* @__PURE__ */ P(S, {
922
1045
  className: "mt-3",
923
- children: r("billing.usage.purpose", "See how much of each quota you have consumed so you can avoid running out and know when to upgrade. Switch between workspace-level usage and your global per-account quotas, drill into any quota for its history, and request more capacity when something is running low.")
1046
+ children: n("billing.usage.purpose", "See how much of each quota you have consumed so you can avoid running out and know when to upgrade. Switch between workspace-level usage and your global per-account quotas, drill into any quota for its history, and request more capacity when something is running low.")
924
1047
  })
925
- ] }), /* @__PURE__ */ N("div", {
1048
+ ] }), /* @__PURE__ */ F("div", {
926
1049
  className: "flex items-center gap-3",
927
1050
  children: [
928
- /* @__PURE__ */ N("div", {
1051
+ /* @__PURE__ */ F("div", {
929
1052
  className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
930
- children: [/* @__PURE__ */ N("button", {
1053
+ children: [/* @__PURE__ */ F("button", {
931
1054
  type: "button",
932
- onClick: () => de("workspace"),
933
- className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${H === "workspace" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
934
- children: [/* @__PURE__ */ M(E, { className: "size-3.5" }), "Workspace"]
935
- }), /* @__PURE__ */ N("button", {
1055
+ onClick: () => W("workspace"),
1056
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${U === "workspace" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
1057
+ children: [/* @__PURE__ */ P(k, { className: "size-3.5" }), "Workspace"]
1058
+ }), /* @__PURE__ */ F("button", {
936
1059
  type: "button",
937
- onClick: () => de("global"),
938
- className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${H === "global" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
939
- children: [/* @__PURE__ */ M(D, { className: "size-3.5" }), "Global"]
1060
+ onClick: () => W("global"),
1061
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${U === "global" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
1062
+ children: [/* @__PURE__ */ P(A, { className: "size-3.5" }), "Global"]
940
1063
  })]
941
1064
  }),
942
- H === "global" && R.length > 1 && /* @__PURE__ */ M("select", {
943
- value: B || "",
1065
+ U === "global" && I.length > 1 && /* @__PURE__ */ P("select", {
1066
+ value: z || "",
944
1067
  onChange: (e) => c(e.target.value),
945
1068
  className: "px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] w-full sm:min-w-[200px] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
946
- children: R.map((e) => /* @__PURE__ */ M("option", {
1069
+ children: I.map((e) => /* @__PURE__ */ P("option", {
947
1070
  value: e.id,
948
1071
  children: e.name
949
1072
  }, e.id))
950
1073
  }),
951
- /* @__PURE__ */ M("button", {
1074
+ /* @__PURE__ */ P("button", {
952
1075
  type: "button",
953
- onClick: () => H === "workspace" ? void 0 : me(),
1076
+ onClick: () => U === "workspace" ? void 0 : he(),
954
1077
  className: "p-2 border border-border-subtle rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
955
1078
  "aria-label": "Refresh",
956
1079
  title: "Refresh",
957
- children: /* @__PURE__ */ M(O, { className: "size-4" })
1080
+ children: /* @__PURE__ */ P(j, { className: "size-4" })
958
1081
  })
959
1082
  ]
960
1083
  })]
961
1084
  }),
962
- H === "workspace" && V && /* @__PURE__ */ N("div", {
1085
+ U === "workspace" && B && /* @__PURE__ */ P("div", {
963
1086
  className: "space-y-4",
964
- children: [/* @__PURE__ */ M(f, { workspaceId: V }), /* @__PURE__ */ M(ce, {
965
- workspaceId: V,
966
- productId: le
967
- })]
1087
+ children: r ? /* @__PURE__ */ P(de, {
1088
+ workspaceId: B,
1089
+ productId: V,
1090
+ summarySibling: /* @__PURE__ */ P(m, { workspaceId: B })
1091
+ }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { workspaceId: B }), /* @__PURE__ */ P(de, {
1092
+ workspaceId: B,
1093
+ productId: V
1094
+ })] })
968
1095
  }),
969
- H === "workspace" && !V && /* @__PURE__ */ M("div", {
1096
+ U === "workspace" && !B && /* @__PURE__ */ P("div", {
970
1097
  className: "text-center py-12 text-text-secondary text-sm",
971
1098
  children: "No workspace context available."
972
1099
  }),
973
- H === "global" && /* @__PURE__ */ N(j, { children: [
974
- /* @__PURE__ */ N("div", {
975
- className: "flex flex-col gap-3 sm:flex-row sm:items-center",
976
- children: [
977
- /* @__PURE__ */ N("div", {
978
- className: "relative flex-1 max-w-md",
979
- children: [
980
- /* @__PURE__ */ M(ee, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }),
981
- /* @__PURE__ */ M("input", {
982
- type: "text",
983
- value: p,
984
- onChange: (e) => S(e.target.value),
985
- placeholder: `Search ${F === "past" ? "past" : F === "all" ? "all" : "active"} quotas...`,
986
- className: "w-full pl-9 pr-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
987
- }),
988
- (p || ye) && /* @__PURE__ */ M("button", {
1100
+ U === "global" && /* @__PURE__ */ F(fe, {
1101
+ enabled: r,
1102
+ summary: Te,
1103
+ children: [
1104
+ /* @__PURE__ */ F("div", {
1105
+ className: "flex flex-col gap-3 sm:flex-row sm:items-center",
1106
+ children: [
1107
+ /* @__PURE__ */ F("div", {
1108
+ className: "relative flex-1 max-w-md",
1109
+ children: [
1110
+ /* @__PURE__ */ P(ie, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }),
1111
+ /* @__PURE__ */ P("input", {
1112
+ type: "text",
1113
+ value: h,
1114
+ onChange: (e) => x(e.target.value),
1115
+ placeholder: `Search ${D === "past" ? "past" : D === "all" ? "all" : "active"} quotas...`,
1116
+ className: "w-full pl-9 pr-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface text-text-primary placeholder:text-text-placeholder focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
1117
+ }),
1118
+ (h || Se) && /* @__PURE__ */ P("button", {
1119
+ type: "button",
1120
+ onClick: () => x(""),
1121
+ "aria-label": "Clear search",
1122
+ className: "absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-bg-sunken",
1123
+ children: Se ? /* @__PURE__ */ P(j, { className: "size-3 text-text-muted animate-spin" }) : /* @__PURE__ */ P(ae, { className: "size-3 text-text-muted" })
1124
+ })
1125
+ ]
1126
+ }),
1127
+ /* @__PURE__ */ F("div", {
1128
+ className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
1129
+ children: [/* @__PURE__ */ F("button", {
989
1130
  type: "button",
990
- onClick: () => S(""),
991
- "aria-label": "Clear search",
992
- className: "absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-bg-sunken",
993
- children: ye ? /* @__PURE__ */ M(O, { className: "size-3 text-text-muted animate-spin" }) : /* @__PURE__ */ M(k, { className: "size-3 text-text-muted" })
994
- })
995
- ]
996
- }),
997
- /* @__PURE__ */ N("div", {
998
- className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
999
- children: [/* @__PURE__ */ N("button", {
1131
+ onClick: () => O("active"),
1132
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${D === "active" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
1133
+ children: [/* @__PURE__ */ P(A, { className: "size-3.5" }), "Active"]
1134
+ }), /* @__PURE__ */ F("button", {
1135
+ type: "button",
1136
+ onClick: () => O("past"),
1137
+ disabled: Y && D !== "past",
1138
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${D === "past" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"} ${Y && D !== "past" ? "opacity-70" : ""}`,
1139
+ children: [Y && D === "past" ? /* @__PURE__ */ P(j, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ P(re, { className: "size-3.5" }), "Past"]
1140
+ })]
1141
+ }),
1142
+ $ && /* @__PURE__ */ F("button", {
1000
1143
  type: "button",
1001
- onClick: () => I("active"),
1002
- className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${F === "active" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
1003
- children: [/* @__PURE__ */ M(D, { className: "size-3.5" }), "Active"]
1004
- }), /* @__PURE__ */ N("button", {
1144
+ onClick: Ce,
1145
+ className: "flex items-center gap-1.5 px-3 py-1.5 text-sm text-text-secondary hover:text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken transition-colors",
1146
+ children: [/* @__PURE__ */ P(ae, { className: "size-3" }), "Clear filters"]
1147
+ })
1148
+ ]
1149
+ }),
1150
+ Ee && /* @__PURE__ */ F("div", {
1151
+ className: "text-sm text-text-secondary",
1152
+ children: [
1153
+ "Viewing usage for",
1154
+ " ",
1155
+ /* @__PURE__ */ P("span", {
1156
+ className: "font-medium text-text-primary",
1157
+ children: Ee.name
1158
+ })
1159
+ ]
1160
+ }),
1161
+ G && /* @__PURE__ */ F("div", {
1162
+ className: "grid grid-cols-2 sm:grid-cols-4 gap-4",
1163
+ children: [
1164
+ /* @__PURE__ */ P(H, {
1165
+ label: "Total Quotas",
1166
+ value: G.totalQuotas,
1167
+ icon: /* @__PURE__ */ P(k, { className: "size-5" }),
1168
+ color: "blue",
1169
+ isActive: C === "all",
1170
+ onClick: () => E("all")
1171
+ }),
1172
+ /* @__PURE__ */ P(H, {
1173
+ label: "Healthy",
1174
+ value: G.healthyQuotas,
1175
+ icon: /* @__PURE__ */ P(te, { className: "size-5" }),
1176
+ color: "emerald",
1177
+ isActive: C === "healthy",
1178
+ onClick: () => we("healthy")
1179
+ }),
1180
+ /* @__PURE__ */ P(H, {
1181
+ label: "Warning",
1182
+ value: G.warningQuotas,
1183
+ icon: /* @__PURE__ */ P(w, { className: "size-5" }),
1184
+ color: "amber",
1185
+ isActive: C === "warning",
1186
+ onClick: () => we("warning")
1187
+ }),
1188
+ /* @__PURE__ */ P(H, {
1189
+ label: "Critical / Exhausted",
1190
+ value: G.criticalQuotas + G.exhaustedQuotas,
1191
+ icon: /* @__PURE__ */ P(T, { className: "size-5" }),
1192
+ color: "red",
1193
+ isActive: C === "critical",
1194
+ onClick: () => we("critical")
1195
+ })
1196
+ ]
1197
+ }),
1198
+ G && (G.warningQuotas > 0 || G.criticalQuotas > 0 || G.exhaustedQuotas > 0) && /* @__PURE__ */ F("div", {
1199
+ className: `flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between p-4 rounded-lg border ${G.criticalQuotas > 0 || G.exhaustedQuotas > 0 ? `${u.error.bg} ${u.error.border}` : `${u.warning.bg} ${u.warning.border}`}`,
1200
+ children: [/* @__PURE__ */ F("div", {
1201
+ className: "flex items-center gap-3",
1202
+ children: [G.criticalQuotas > 0 || G.exhaustedQuotas > 0 ? /* @__PURE__ */ P(M, { className: `size-5 shrink-0 ${u.error.icon}` }) : /* @__PURE__ */ P(w, { className: `size-5 shrink-0 ${u.warning.icon}` }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
1203
+ className: `text-sm font-medium ${G.criticalQuotas > 0 || G.exhaustedQuotas > 0 ? u.error.text : u.warning.text}`,
1204
+ children: G.criticalQuotas > 0 || G.exhaustedQuotas > 0 ? `${G.criticalQuotas + G.exhaustedQuotas} quota${G.criticalQuotas + G.exhaustedQuotas === 1 ? "" : "s"} exhausted or critical` : `${G.warningQuotas} quota${G.warningQuotas === 1 ? "" : "s"} approaching the limit`
1205
+ }), /* @__PURE__ */ P("p", {
1206
+ className: "text-xs text-text-secondary mt-0.5",
1207
+ children: "Contact support to request a quota increase for your plan."
1208
+ })] })]
1209
+ }), /* @__PURE__ */ P("button", {
1210
+ type: "button",
1211
+ onClick: () => se("/support/tickets"),
1212
+ className: `shrink-0 px-4 py-2 text-sm font-medium rounded-button border transition-colors duration-200 ${G.criticalQuotas > 0 || G.exhaustedQuotas > 0 ? "bg-action-danger-bg text-action-danger-text border-action-danger-bg hover:bg-action-danger-bgHover" : "border-status-warning-border text-status-warning-text hover:bg-status-warning-bg-subtle"}`,
1213
+ children: "Request more quota"
1214
+ })]
1215
+ }),
1216
+ ($ || D !== "active") && /* @__PURE__ */ F("div", {
1217
+ className: "flex items-center gap-2 text-sm text-text-secondary flex-wrap",
1218
+ children: [
1219
+ /* @__PURE__ */ F("span", { children: [
1220
+ "Showing",
1221
+ " ",
1222
+ Q.active.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + Q.past.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + (D === "past" ? 0 : Z.length),
1223
+ " ",
1224
+ "quotas"
1225
+ ] }),
1226
+ /* @__PURE__ */ F("span", {
1227
+ className: "px-2 py-0.5 bg-[var(--color-accent-soft)] text-text-link rounded text-xs capitalize",
1228
+ children: [
1229
+ D === "active" ? "Active" : D === "past" ? "Past" : "All",
1230
+ " ",
1231
+ "subscriptions"
1232
+ ]
1233
+ }),
1234
+ C !== "all" && /* @__PURE__ */ P("span", {
1235
+ className: "px-2 py-0.5 bg-bg-sunken text-text-secondary rounded text-xs capitalize",
1236
+ children: C === "critical" ? "Critical / Exhausted" : C
1237
+ }),
1238
+ h && /* @__PURE__ */ F("span", {
1239
+ className: "px-2 py-0.5 bg-bg-sunken text-text-secondary rounded text-xs",
1240
+ children: [
1241
+ "“",
1242
+ h,
1243
+ "”"
1244
+ ]
1245
+ })
1246
+ ]
1247
+ }),
1248
+ Q.active.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1249
+ className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1250
+ children: [/* @__PURE__ */ P(A, { className: "size-5 text-text-link" }), D === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
1251
+ }), /* @__PURE__ */ P("div", {
1252
+ className: "space-y-4",
1253
+ children: Q.active.map((e) => /* @__PURE__ */ P(le, {
1254
+ subscription: e,
1255
+ onQuotaClick: d,
1256
+ defaultExpanded: !0
1257
+ }, e.id))
1258
+ })] }),
1259
+ Q.past.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1260
+ className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1261
+ children: [
1262
+ /* @__PURE__ */ P(re, { className: "size-5 text-text-muted" }),
1263
+ "Past Subscription Quotas",
1264
+ /* @__PURE__ */ P("span", {
1265
+ className: "text-xs font-normal text-text-secondary",
1266
+ children: "(Canceled / Expired / Upgraded)"
1267
+ }),
1268
+ ye > 0 && /* @__PURE__ */ F("span", {
1269
+ className: "text-xs font-normal px-2 py-0.5 bg-bg-sunken text-text-secondary rounded-full tabular-nums",
1270
+ children: [
1271
+ Q.past.length,
1272
+ _e ? "+" : "",
1273
+ " of ",
1274
+ ye
1275
+ ]
1276
+ })
1277
+ ]
1278
+ }), /* @__PURE__ */ F("div", {
1279
+ className: "space-y-4",
1280
+ children: [Q.past.map((e) => /* @__PURE__ */ P(le, {
1281
+ subscription: e,
1282
+ onQuotaClick: d,
1283
+ defaultExpanded: D === "past"
1284
+ }, e.id)), _e && /* @__PURE__ */ P("div", {
1285
+ className: "flex justify-center pt-2",
1286
+ children: /* @__PURE__ */ P("button", {
1005
1287
  type: "button",
1006
- onClick: () => I("past"),
1007
- disabled: q && F !== "past",
1008
- className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${F === "past" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"} ${q && F !== "past" ? "opacity-70" : ""}`,
1009
- children: [q && F === "past" ? /* @__PURE__ */ M(O, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ M(w, { className: "size-3.5" }), "Past"]
1010
- })]
1011
- }),
1012
- $ && /* @__PURE__ */ N("button", {
1288
+ onClick: ge,
1289
+ disabled: ve,
1290
+ className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-text-secondary hover:text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken transition-colors disabled:opacity-50",
1291
+ children: ve ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(j, { className: "size-4 animate-spin" }), "Loading…"] }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(ne, { className: "size-4" }), "Load more past subscriptions"] })
1292
+ })
1293
+ })]
1294
+ })] }),
1295
+ D !== "past" && Z.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1296
+ className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1297
+ children: [
1298
+ /* @__PURE__ */ P(k, { className: `size-5 ${u.info.icon}` }),
1299
+ "Pooled Quotas",
1300
+ /* @__PURE__ */ P("span", {
1301
+ className: "text-xs font-normal text-text-secondary",
1302
+ children: "(Shared across all products)"
1303
+ })
1304
+ ]
1305
+ }), /* @__PURE__ */ P(ce, {
1306
+ quotas: Z,
1307
+ showPlanColumn: !1,
1308
+ onQuotaClick: d
1309
+ })] }),
1310
+ D === "active" && q.length === 0 && K.length === 0 && !$ && /* @__PURE__ */ P(b, {
1311
+ illustration: "empty-data",
1312
+ title: "No active quotas found",
1313
+ description: "Quotas will appear here once you have active subscriptions or pooled allocations."
1314
+ }),
1315
+ D === "past" && J.length === 0 && !$ && !Y && /* @__PURE__ */ P(b, {
1316
+ illustration: "empty-data",
1317
+ title: "No past subscriptions",
1318
+ description: "You don't have any canceled, expired, or upgraded subscriptions yet.",
1319
+ action: /* @__PURE__ */ P("button", {
1013
1320
  type: "button",
1014
- onClick: be,
1015
- className: "flex items-center gap-1.5 px-3 py-1.5 text-sm text-text-secondary hover:text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken transition-colors",
1016
- children: [/* @__PURE__ */ M(k, { className: "size-3" }), "Clear filters"]
1017
- })
1018
- ]
1019
- }),
1020
- Se && /* @__PURE__ */ N("div", {
1021
- className: "text-sm text-text-secondary",
1022
- children: [
1023
- "Viewing usage for",
1024
- " ",
1025
- /* @__PURE__ */ M("span", {
1026
- className: "font-medium text-text-primary",
1027
- children: Se.name
1028
- })
1029
- ]
1030
- }),
1031
- U && /* @__PURE__ */ N("div", {
1032
- className: "grid grid-cols-2 sm:grid-cols-4 gap-4",
1033
- children: [
1034
- /* @__PURE__ */ M(z, {
1035
- label: "Total Quotas",
1036
- value: U.totalQuotas,
1037
- icon: /* @__PURE__ */ M(E, { className: "size-5" }),
1038
- color: "blue",
1039
- isActive: C === "all",
1040
- onClick: () => T("all")
1041
- }),
1042
- /* @__PURE__ */ M(z, {
1043
- label: "Healthy",
1044
- value: U.healthyQuotas,
1045
- icon: /* @__PURE__ */ M(b, { className: "size-5" }),
1046
- color: "emerald",
1047
- isActive: C === "healthy",
1048
- onClick: () => xe("healthy")
1049
- }),
1050
- /* @__PURE__ */ M(z, {
1051
- label: "Warning",
1052
- value: U.warningQuotas,
1053
- icon: /* @__PURE__ */ M(v, { className: "size-5" }),
1054
- color: "amber",
1055
- isActive: C === "warning",
1056
- onClick: () => xe("warning")
1057
- }),
1058
- /* @__PURE__ */ M(z, {
1059
- label: "Critical / Exhausted",
1060
- value: U.criticalQuotas + U.exhaustedQuotas,
1061
- icon: /* @__PURE__ */ M(y, { className: "size-5" }),
1062
- color: "red",
1063
- isActive: C === "critical",
1064
- onClick: () => xe("critical")
1321
+ onClick: () => O("active"),
1322
+ className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
1323
+ children: "View active subscriptions"
1065
1324
  })
1066
- ]
1067
- }),
1068
- U && (U.warningQuotas > 0 || U.criticalQuotas > 0 || U.exhaustedQuotas > 0) && /* @__PURE__ */ N("div", {
1069
- className: `flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between p-4 rounded-lg border ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? `${u.error.bg} ${u.error.border}` : `${u.warning.bg} ${u.warning.border}`}`,
1070
- children: [/* @__PURE__ */ N("div", {
1071
- className: "flex items-center gap-3",
1072
- children: [U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? /* @__PURE__ */ M(A, { className: `size-5 shrink-0 ${u.error.icon}` }) : /* @__PURE__ */ M(v, { className: `size-5 shrink-0 ${u.warning.icon}` }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
1073
- className: `text-sm font-medium ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? u.error.text : u.warning.text}`,
1074
- children: U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? `${U.criticalQuotas + U.exhaustedQuotas} quota${U.criticalQuotas + U.exhaustedQuotas === 1 ? "" : "s"} exhausted or critical` : `${U.warningQuotas} quota${U.warningQuotas === 1 ? "" : "s"} approaching the limit`
1075
- }), /* @__PURE__ */ M("p", {
1076
- className: "text-xs text-text-secondary mt-0.5",
1077
- children: "Contact support to request a quota increase for your plan."
1078
- })] })]
1079
- }), /* @__PURE__ */ M("button", {
1080
- type: "button",
1081
- onClick: () => ue("/support/tickets"),
1082
- className: `shrink-0 px-4 py-2 text-sm font-medium rounded-button border transition-colors duration-200 ${U.criticalQuotas > 0 || U.exhaustedQuotas > 0 ? "bg-action-danger-bg text-action-danger-text border-action-danger-bg hover:bg-action-danger-bgHover" : "border-status-warning-border text-status-warning-text hover:bg-status-warning-bg-subtle"}`,
1083
- children: "Request more quota"
1084
- })]
1085
- }),
1086
- ($ || F !== "active") && /* @__PURE__ */ N("div", {
1087
- className: "flex items-center gap-2 text-sm text-text-secondary flex-wrap",
1088
- children: [
1089
- /* @__PURE__ */ N("span", { children: [
1090
- "Showing",
1091
- " ",
1092
- Q.active.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + Q.past.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + (F === "past" ? 0 : Y.length),
1093
- " ",
1094
- "quotas"
1095
- ] }),
1096
- /* @__PURE__ */ N("span", {
1097
- className: "px-2 py-0.5 bg-[var(--color-accent-soft)] text-text-link rounded text-xs capitalize",
1325
+ }),
1326
+ D === "past" && Y && /* @__PURE__ */ P("div", {
1327
+ className: "space-y-4",
1328
+ children: [
1329
+ 1,
1330
+ 2,
1331
+ 3
1332
+ ].map((e) => /* @__PURE__ */ P("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
1333
+ }),
1334
+ $ && Q.active.length === 0 && Q.past.length === 0 && (D === "past" || Z.length === 0) && /* @__PURE__ */ P(b, {
1335
+ illustration: "empty-search",
1336
+ title: C !== "all" && !h ? `No ${C === "critical" ? "critical or exhausted" : C} quotas` : "No matching quotas",
1337
+ description: C !== "all" && !h ? /* @__PURE__ */ F(N, { children: ["All your quotas are in a different status.", G && /* @__PURE__ */ F("span", {
1338
+ className: "block mt-1",
1098
1339
  children: [
1099
- F === "active" ? "Active" : F === "past" ? "Past" : "All",
1340
+ "You have ",
1341
+ G.healthyQuotas,
1342
+ " healthy, ",
1343
+ G.warningQuotas,
1100
1344
  " ",
1101
- "subscriptions"
1102
- ]
1103
- }),
1104
- C !== "all" && /* @__PURE__ */ M("span", {
1105
- className: "px-2 py-0.5 bg-bg-sunken text-text-secondary rounded text-xs capitalize",
1106
- children: C === "critical" ? "Critical / Exhausted" : C
1107
- }),
1108
- p && /* @__PURE__ */ N("span", {
1109
- className: "px-2 py-0.5 bg-bg-sunken text-text-secondary rounded text-xs",
1110
- children: [
1111
- "“",
1112
- p,
1113
- "”"
1114
- ]
1115
- })
1116
- ]
1117
- }),
1118
- Q.active.length > 0 && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ N("h2", {
1119
- className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1120
- children: [/* @__PURE__ */ M(D, { className: "size-5 text-text-link" }), F === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
1121
- }), /* @__PURE__ */ M("div", {
1122
- className: "space-y-4",
1123
- children: Q.active.map((e) => /* @__PURE__ */ M(ae, {
1124
- subscription: e,
1125
- onQuotaClick: d,
1126
- defaultExpanded: !0
1127
- }, e.id))
1128
- })] }),
1129
- Q.past.length > 0 && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ N("h2", {
1130
- className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1131
- children: [
1132
- /* @__PURE__ */ M(w, { className: "size-5 text-text-muted" }),
1133
- "Past Subscription Quotas",
1134
- /* @__PURE__ */ M("span", {
1135
- className: "text-xs font-normal text-text-secondary",
1136
- children: "(Canceled / Expired / Upgraded)"
1137
- }),
1138
- ve > 0 && /* @__PURE__ */ N("span", {
1139
- className: "text-xs font-normal px-2 py-0.5 bg-bg-sunken text-text-secondary rounded-full tabular-nums",
1140
- children: [
1141
- Q.past.length,
1142
- ge ? "+" : "",
1143
- " of ",
1144
- ve
1345
+ "warning, and ",
1346
+ G.criticalQuotas + G.exhaustedQuotas,
1347
+ " ",
1348
+ "critical quotas."
1145
1349
  ]
1146
- })
1147
- ]
1148
- }), /* @__PURE__ */ N("div", {
1149
- className: "space-y-4",
1150
- children: [Q.past.map((e) => /* @__PURE__ */ M(ae, {
1151
- subscription: e,
1152
- onQuotaClick: d,
1153
- defaultExpanded: F === "past"
1154
- }, e.id)), ge && /* @__PURE__ */ M("div", {
1155
- className: "flex justify-center pt-2",
1156
- children: /* @__PURE__ */ M("button", {
1157
- type: "button",
1158
- onClick: he,
1159
- disabled: _e,
1160
- className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-text-secondary hover:text-text-primary border border-border-subtle rounded-button hover:bg-bg-sunken transition-colors disabled:opacity-50",
1161
- children: _e ? /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(O, { className: "size-4 animate-spin" }), "Loading…"] }) : /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(x, { className: "size-4" }), "Load more past subscriptions"] })
1162
- })
1163
- })]
1164
- })] }),
1165
- F !== "past" && Y.length > 0 && /* @__PURE__ */ N("section", { children: [/* @__PURE__ */ N("h2", {
1166
- className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1167
- children: [
1168
- /* @__PURE__ */ M(E, { className: `size-5 ${u.info.icon}` }),
1169
- "Pooled Quotas",
1170
- /* @__PURE__ */ M("span", {
1171
- className: "text-xs font-normal text-text-secondary",
1172
- children: "(Shared across all products)"
1173
- })
1174
- ]
1175
- }), /* @__PURE__ */ M(ie, {
1176
- quotas: Y,
1177
- showPlanColumn: !1,
1178
- onQuotaClick: d
1179
- })] }),
1180
- F === "active" && G.length === 0 && W.length === 0 && !$ && /* @__PURE__ */ M(P, {
1181
- illustration: "empty-data",
1182
- title: "No active quotas found",
1183
- description: "Quotas will appear here once you have active subscriptions or pooled allocations."
1184
- }),
1185
- F === "past" && K.length === 0 && !$ && !q && /* @__PURE__ */ M(P, {
1186
- illustration: "empty-data",
1187
- title: "No past subscriptions",
1188
- description: "You don't have any canceled, expired, or upgraded subscriptions yet.",
1189
- action: /* @__PURE__ */ M("button", {
1190
- type: "button",
1191
- onClick: () => I("active"),
1192
- className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
1193
- children: "View active subscriptions"
1194
- })
1195
- }),
1196
- F === "past" && q && /* @__PURE__ */ M("div", {
1197
- className: "space-y-4",
1198
- children: [
1199
- 1,
1200
- 2,
1201
- 3
1202
- ].map((e) => /* @__PURE__ */ M("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
1203
- }),
1204
- $ && Q.active.length === 0 && Q.past.length === 0 && (F === "past" || Y.length === 0) && /* @__PURE__ */ M(P, {
1205
- illustration: "empty-search",
1206
- title: C !== "all" && !p ? `No ${C === "critical" ? "critical or exhausted" : C} quotas` : "No matching quotas",
1207
- description: C !== "all" && !p ? /* @__PURE__ */ N(j, { children: ["All your quotas are in a different status.", U && /* @__PURE__ */ N("span", {
1208
- className: "block mt-1",
1209
- children: [
1210
- "You have ",
1211
- U.healthyQuotas,
1212
- " healthy, ",
1213
- U.warningQuotas,
1350
+ })] }) : /* @__PURE__ */ F(N, { children: [
1351
+ "No quotas match your current search or filter criteria in",
1214
1352
  " ",
1215
- "warning, and ",
1216
- U.criticalQuotas + U.exhaustedQuotas,
1353
+ D === "past" ? "past" : D === "all" ? "any" : "active",
1217
1354
  " ",
1218
- "critical quotas."
1219
- ]
1220
- })] }) : /* @__PURE__ */ N(j, { children: [
1221
- "No quotas match your current search or filter criteria in",
1222
- " ",
1223
- F === "past" ? "past" : F === "all" ? "any" : "active",
1224
- " ",
1225
- "subscriptions.",
1226
- F === "active" && !C.includes("all") && /* @__PURE__ */ M("span", {
1227
- className: "block mt-1",
1228
- children: "Try switching to “Past” or “All” to search across more subscriptions."
1355
+ "subscriptions.",
1356
+ D === "active" && !C.includes("all") && /* @__PURE__ */ P("span", {
1357
+ className: "block mt-1",
1358
+ children: "Try switching to “Past” or “All” to search across more subscriptions."
1359
+ })
1360
+ ] }),
1361
+ action: /* @__PURE__ */ F("div", {
1362
+ className: "flex gap-2",
1363
+ children: [/* @__PURE__ */ P("button", {
1364
+ type: "button",
1365
+ onClick: Ce,
1366
+ className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
1367
+ children: C === "all" ? "Clear filters" : "Show all quotas"
1368
+ }), D === "active" && h && /* @__PURE__ */ P("button", {
1369
+ type: "button",
1370
+ onClick: () => O("all"),
1371
+ className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
1372
+ children: "Search all"
1373
+ })]
1229
1374
  })
1230
- ] }),
1231
- action: /* @__PURE__ */ N("div", {
1232
- className: "flex gap-2",
1233
- children: [/* @__PURE__ */ M("button", {
1234
- type: "button",
1235
- onClick: be,
1236
- className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
1237
- children: C === "all" ? "Clear filters" : "Show all quotas"
1238
- }), F === "active" && p && /* @__PURE__ */ M("button", {
1239
- type: "button",
1240
- onClick: () => I("all"),
1241
- className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors duration-200",
1242
- children: "Search all"
1243
- })]
1244
1375
  })
1245
- })
1246
- ] }),
1247
- l && /* @__PURE__ */ M(oe, {
1376
+ ]
1377
+ }),
1378
+ l && /* @__PURE__ */ P(ue, {
1248
1379
  quota: l,
1249
1380
  onClose: () => d(null)
1250
1381
  })
1251
1382
  ]
1252
1383
  });
1253
1384
  };
1254
- export { V as UsagePage };
1385
+ export { G as UsagePage };
1255
1386
 
1256
1387
  //# sourceMappingURL=UsagePage.js.map