@burdenoff/microfe-billing 2026.1116.1 → 2026.1119.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/billing/modules/addons/pages/AddonCreatePage.js +143 -143
  2. package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonEditPage.js +170 -170
  4. package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
  5. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +148 -148
  6. package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
  7. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +115 -115
  8. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
  9. package/dist/billing/modules/billing/pages/InvoicesListPage.js +136 -136
  10. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  11. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +129 -129
  12. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
  13. package/dist/billing/modules/billing/pages/RefundsPage.js +325 -325
  14. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  15. package/dist/billing/modules/billing/pages/UserRefundsPage.js +149 -149
  16. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  17. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +99 -98
  18. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
  19. package/dist/billing/modules/checkout/components/StoreShippingSection.js +125 -124
  20. package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
  21. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +61 -60
  22. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
  23. package/dist/billing/modules/coupons/pages/CouponsListPage.js +177 -177
  24. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  25. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +231 -231
  26. package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
  27. package/dist/billing/modules/coupons/pages/EditCouponPage.js +139 -139
  28. package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
  29. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +54 -54
  30. package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
  31. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +65 -65
  32. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  33. package/dist/billing/modules/credits/pages/CreditsPage.js +95 -95
  34. package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
  35. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +232 -231
  36. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
  37. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +328 -328
  38. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  39. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +57 -57
  40. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  41. package/dist/billing/modules/earnings/pages/EarningsPage.js +53 -53
  42. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  43. package/dist/billing/modules/earnings/pages/PayoutsPage.js +100 -100
  44. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  45. package/dist/billing/modules/plans/pages/PlanCreatePage.js +150 -150
  46. package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
  47. package/dist/billing/modules/plans/pages/PlanEditPage.js +125 -125
  48. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  49. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +113 -113
  50. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
  51. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +132 -132
  52. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
  53. package/dist/billing/modules/settings/pages/SettingsPage.js +101 -101
  54. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  55. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +125 -125
  56. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  57. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +51 -50
  58. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
  59. package/dist/billing/modules/usage/pages/UsagePage.js +107 -107
  60. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  61. package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
  62. package/package.json +2 -2
@@ -9,11 +9,11 @@ import { useIsFluidgridsVariant as p } from "../../../hooks/useBillingVariant.js
9
9
  import { summarizeHealth as ee } from "../utils/usageHealth.js";
10
10
  import { WorkspaceAiSpendPanel as m } from "../components/WorkspaceAiSpendPanel.js";
11
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, Sparkles as ae, X as oe, XCircle as M } from "lucide-react";
12
+ import { IllustratedEmptyState as b, OptionalFields as x, PagePurpose as S, ShowTechnicalDetails as C, ThemedSelect as te } from "@burdenoff/fe-libs/ui";
13
+ import { AlertCircle as w, AlertTriangle as T, CheckCircle as ne, ChevronDown as E, ChevronLeft as D, ChevronRight as O, Clock as re, Info as k, Layers as ie, Package as A, RefreshCw as j, Search as ae, Sparkles as oe, X as se, XCircle as M } from "lucide-react";
14
14
  import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
15
15
  // src/billing/modules/usage/pages/UsagePage.tsx
16
- function se(e, t) {
16
+ function ce(e, t) {
17
17
  if (t?.displayName && typeof t.displayName == "string") return t.displayName;
18
18
  if (t?.label && typeof t.label == "string") return t.label;
19
19
  let n = e.split(".");
@@ -24,8 +24,8 @@ var I = ({ status: e, className: t = "size-4" }) => {
24
24
  case "EXHAUSTED": return /* @__PURE__ */ P(M, { className: `${t} ${u.error.icon}` });
25
25
  case "CRITICAL": return /* @__PURE__ */ P(T, { className: `${t} ${u.error.icon}` });
26
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
+ case "HEALTHY": return /* @__PURE__ */ P(ne, { className: `${t} ${u.success.icon}` });
28
+ default: return /* @__PURE__ */ P(k, { className: `${t} ${u.neutral.icon}` });
29
29
  }
30
30
  }, L = ({ status: e }) => {
31
31
  let t = {
@@ -171,7 +171,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
171
171
  children: t
172
172
  })]
173
173
  });
174
- }, ce = ({ quota: e, planLabel: t, onClick: n }) => {
174
+ }, le = ({ quota: e, planLabel: t, onClick: n }) => {
175
175
  let r = e.totalLimit != null && e.totalLimit > 0 && !e.noLimit;
176
176
  return /* @__PURE__ */ F("tr", {
177
177
  onClick: n,
@@ -230,7 +230,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
230
230
  })
231
231
  ]
232
232
  });
233
- }, le = ({ quotas: e, planLabel: t, showPlanColumn: n = !0, onQuotaClick: r }) => /* @__PURE__ */ P("div", {
233
+ }, ue = ({ quotas: e, planLabel: t, showPlanColumn: n = !0, onQuotaClick: r }) => /* @__PURE__ */ P("div", {
234
234
  className: "overflow-x-auto rounded-card border border-border-seam bg-bg-surface shadow-elevation-1",
235
235
  children: /* @__PURE__ */ F("table", {
236
236
  className: "w-full text-left",
@@ -258,13 +258,13 @@ var I = ({ status: e, className: t = "size-4" }) => {
258
258
  children: "Status"
259
259
  })
260
260
  ]
261
- }) }), /* @__PURE__ */ P("tbody", { children: e.map((e) => /* @__PURE__ */ P(ce, {
261
+ }) }), /* @__PURE__ */ P("tbody", { children: e.map((e) => /* @__PURE__ */ P(le, {
262
262
  quota: e,
263
263
  planLabel: n ? t : void 0,
264
264
  onClick: () => r(e)
265
265
  }, e.name)) })]
266
266
  })
267
- }), ue = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
267
+ }), de = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
268
268
  let [r, i] = y(n), a = {
269
269
  active: `${u.success.bg} ${u.success.text}`,
270
270
  trialing: `${u.info.bg} ${u.info.text}`,
@@ -306,11 +306,11 @@ var I = ({ status: e, className: t = "size-4" }) => {
306
306
  ]
307
307
  })]
308
308
  })]
309
- }), P(r ? ne : D, { className: "size-5 text-text-muted" })]
309
+ }), P(r ? E : O, { className: "size-5 text-text-muted" })]
310
310
  }),
311
311
  r && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ P("div", {
312
312
  className: "border-t border-border-subtle",
313
- children: /* @__PURE__ */ P(le, {
313
+ children: /* @__PURE__ */ P(ue, {
314
314
  quotas: e.aggregatedQuotas,
315
315
  planLabel: e.planName || e.productId || void 0,
316
316
  showPlanColumn: !!(e.planName || e.productId),
@@ -326,7 +326,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
326
326
  })
327
327
  ]
328
328
  });
329
- }, de = ({ quota: e, onClose: t }) => {
329
+ }, fe = ({ quota: e, onClose: t }) => {
330
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
331
  g && a((e) => [...e, g]);
332
332
  }, S = () => {
@@ -378,7 +378,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
378
378
  onClick: t,
379
379
  className: "p-1 rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
380
380
  "aria-label": "Close quota details",
381
- children: /* @__PURE__ */ P(oe, { className: "size-5" })
381
+ children: /* @__PURE__ */ P(se, { className: "size-5" })
382
382
  })]
383
383
  }),
384
384
  /* @__PURE__ */ F("div", {
@@ -548,7 +548,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
548
548
  disabled: i.length === 1,
549
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",
550
550
  "aria-label": "Previous usage page",
551
- children: /* @__PURE__ */ P(E, { className: "size-4" })
551
+ children: /* @__PURE__ */ P(D, { className: "size-4" })
552
552
  }),
553
553
  /* @__PURE__ */ F("span", {
554
554
  className: "text-sm text-text-secondary tabular-nums",
@@ -560,7 +560,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
560
560
  disabled: !h,
561
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",
562
562
  "aria-label": "Next usage page",
563
- children: /* @__PURE__ */ P(D, { className: "size-4" })
563
+ children: /* @__PURE__ */ P(O, { className: "size-4" })
564
564
  })
565
565
  ]
566
566
  })
@@ -582,7 +582,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
582
582
  function U(e, t) {
583
583
  return t ? d.HEALTHY : e >= 100 ? d.EXHAUSTED : e >= 90 ? d.CRITICAL : e >= 75 ? d.WARNING : d.HEALTHY;
584
584
  }
585
- var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
585
+ var pe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
586
586
  let r = p(), a = f(), { overview: o, isLoading: s, error: c, refetch: l } = i(e, t), [m, h] = y(/* @__PURE__ */ new Set()), _ = v(() => {
587
587
  let e = /* @__PURE__ */ new Map();
588
588
  for (let t of o) {
@@ -604,7 +604,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
604
604
  hasMultiple: t.length > 1
605
605
  };
606
606
  });
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) => ({
607
+ }, [o]), S = v(() => _.filter((e) => e.items[0]?.assignment.quotaMode === "dedicated"), [_]), C = v(() => _.filter((e) => e.items[0]?.assignment.quotaMode === "pooled"), [_]), te = v(() => ee(_.map((e) => ({
608
608
  key: e.quotaName,
609
609
  displayName: null,
610
610
  used: e.totalUsed,
@@ -647,7 +647,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
647
647
  title: "No workspace quotas assigned",
648
648
  description: "Quotas are assigned to this workspace after a successful purchase. If you have an active subscription, contact support."
649
649
  });
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", {
650
+ let D = _.filter((e) => e.status === d.HEALTHY).length, O = _.filter((e) => e.status === d.WARNING).length, re = _.filter((e) => e.status === d.CRITICAL || e.status === d.EXHAUSTED).length, k = /* @__PURE__ */ F("div", {
651
651
  className: "space-y-4",
652
652
  children: [
653
653
  /* @__PURE__ */ F("div", {
@@ -659,7 +659,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
659
659
  className: "flex items-center gap-1.5 mb-1",
660
660
  children: [/* @__PURE__ */ P("span", {
661
661
  className: `flex size-7 items-center justify-center rounded-lg ${u.success.bg}`,
662
- children: /* @__PURE__ */ P(te, { className: `size-4 ${u.success.icon}` })
662
+ children: /* @__PURE__ */ P(ne, { className: `size-4 ${u.success.icon}` })
663
663
  }), /* @__PURE__ */ P("span", {
664
664
  className: "text-xs text-text-secondary",
665
665
  children: "Healthy"
@@ -682,7 +682,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
682
682
  })]
683
683
  }), /* @__PURE__ */ P("p", {
684
684
  className: "text-xl font-semibold tabular-nums text-text-primary",
685
- children: re
685
+ children: O
686
686
  })]
687
687
  }),
688
688
  /* @__PURE__ */ F("div", {
@@ -698,7 +698,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
698
698
  })]
699
699
  }), /* @__PURE__ */ P("p", {
700
700
  className: "text-xl font-semibold tabular-nums text-text-primary",
701
- children: O
701
+ children: re
702
702
  })]
703
703
  })
704
704
  ]
@@ -742,7 +742,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
742
742
  return r ? /* @__PURE__ */ F("div", {
743
743
  className: "space-y-4",
744
744
  children: [
745
- /* @__PURE__ */ P(V, { summary: ne }),
745
+ /* @__PURE__ */ P(V, { summary: te }),
746
746
  n,
747
747
  /* @__PURE__ */ P(x, {
748
748
  storageKey: "billing.usage.details",
@@ -791,10 +791,10 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
791
791
  className: "px-4 py-3",
792
792
  children: /* @__PURE__ */ F("div", {
793
793
  className: "flex items-center gap-2",
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: [
794
+ children: [e.hasMultiple && /* @__PURE__ */ P(O, { className: `size-4 text-text-muted shrink-0 transition-transform duration-150 ${r ? "rotate-90" : ""}` }), /* @__PURE__ */ F("div", { children: [
795
795
  /* @__PURE__ */ P("div", {
796
796
  className: "font-medium text-text-primary",
797
- children: se(e.quotaName)
797
+ children: ce(e.quotaName)
798
798
  }),
799
799
  /* @__PURE__ */ P(z, {
800
800
  value: e.quotaName,
@@ -899,7 +899,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
899
899
  })
900
900
  })]
901
901
  })
902
- }), pe = ({ enabled: e, summary: t, children: n }) => {
902
+ }), me = ({ enabled: e, summary: t, children: n }) => {
903
903
  let r = f();
904
904
  return e ? /* @__PURE__ */ F("div", {
905
905
  className: "space-y-6",
@@ -915,44 +915,44 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
915
915
  }, G = () => {
916
916
  let n = f(), r = p(), i = a(), [s, c] = y(() => {
917
917
  if (typeof window < "u") return new URLSearchParams(window.location.search).get("billingAccountId") || void 0;
918
- }), [l, d] = y(null), [h, x] = y(""), [C, E] = y("all"), [D, O] = y("active"), se = _(h), { billingAccounts: I, isLoading: L } = e(), R = (I.find((e) => e.isDefault) ?? I[0])?.id, z = s ?? R, { workspaceId: B, productId: V, navigate: ce } = o(), [U, W] = y("workspace"), { dashboard: G, pooledQuotas: K, activeSubscriptions: q, pastSubscriptions: J, isLoading: me, isPastSubscriptionsLoading: Y, error: he, refetch: ge, loadMorePastSubscriptions: _e, hasMorePastSubscriptions: ve, isLoadingMorePast: ye, pastSubscriptionsCount: be } = t({
918
+ }), [l, d] = y(null), [h, x] = y(""), [C, D] = y("all"), [O, k] = y("active"), ce = _(h), { billingAccounts: I, isLoading: L } = e(), R = (I.find((e) => e.isDefault) ?? I[0])?.id, z = s ?? R, { workspaceId: B, productId: V, navigate: le } = o(), [U, W] = y("workspace"), { dashboard: G, pooledQuotas: K, activeSubscriptions: q, pastSubscriptions: J, isLoading: he, isPastSubscriptionsLoading: Y, error: ge, refetch: _e, loadMorePastSubscriptions: ve, hasMorePastSubscriptions: ye, isLoadingMorePast: be, pastSubscriptionsCount: xe } = t({
919
919
  billingAccountId: z,
920
920
  workspaceId: B,
921
921
  productId: V,
922
- searchQuery: se || 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]), xe = v(() => C === "all" ? q : q.map((e) => ({
922
+ searchQuery: ce || void 0,
923
+ viewMode: O
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]), Se = v(() => C === "all" ? q : q.map((e) => ({
925
925
  ...e,
926
926
  aggregatedQuotas: e.aggregatedQuotas.filter(X)
927
927
  })).filter((e) => e.aggregatedQuotas.length > 0), [
928
928
  q,
929
929
  C,
930
930
  X
931
- ]), Se = v(() => C === "all" ? J : J.map((e) => ({
931
+ ]), Ce = v(() => C === "all" ? J : J.map((e) => ({
932
932
  ...e,
933
933
  aggregatedQuotas: e.aggregatedQuotas.filter(X)
934
934
  })).filter((e) => e.aggregatedQuotas.length > 0), [
935
935
  J,
936
936
  C,
937
937
  X
938
- ]), Q = v(() => D === "active" ? {
939
- active: xe,
938
+ ]), Q = v(() => O === "active" ? {
939
+ active: Se,
940
940
  past: []
941
- } : D === "past" ? {
941
+ } : O === "past" ? {
942
942
  active: [],
943
- past: Se
943
+ past: Ce
944
944
  } : {
945
- active: xe,
946
- past: Se
945
+ active: Se,
946
+ past: Ce
947
947
  }, [
948
- D,
949
- xe,
950
- Se
951
- ]), $ = h !== "" || C !== "all", Ce = se !== h, we = () => {
952
- x(""), E("all");
953
- }, Te = (e) => {
954
- E((t) => t === e ? "all" : e);
955
- }, Ee = v(() => {
948
+ O,
949
+ Se,
950
+ Ce
951
+ ]), $ = h !== "" || C !== "all", we = ce !== h, Te = () => {
952
+ x(""), D("all");
953
+ }, Ee = (e) => {
954
+ D((t) => t === e ? "all" : e);
955
+ }, De = v(() => {
956
956
  let e = (e, t, n) => ({
957
957
  key: e.name,
958
958
  displayName: e.displayName ?? null,
@@ -984,7 +984,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
984
984
  ]
985
985
  })
986
986
  });
987
- if ((L || me) && !G) return /* @__PURE__ */ F("div", {
987
+ if ((L || he) && !G) return /* @__PURE__ */ F("div", {
988
988
  className: "space-y-6 px-6 lg:px-8 py-6",
989
989
  children: [
990
990
  /* @__PURE__ */ P("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
@@ -1000,7 +1000,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1000
1000
  /* @__PURE__ */ P("div", { className: "h-64 bg-bg-sunken animate-pulse rounded-card" })
1001
1001
  ]
1002
1002
  });
1003
- if (he) return /* @__PURE__ */ P("div", {
1003
+ if (ge) return /* @__PURE__ */ P("div", {
1004
1004
  className: "flex items-center justify-center h-full min-h-[400px]",
1005
1005
  children: /* @__PURE__ */ F("div", {
1006
1006
  className: "text-center space-y-4",
@@ -1015,18 +1015,18 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1015
1015
  }),
1016
1016
  /* @__PURE__ */ P("p", {
1017
1017
  className: "text-sm text-text-secondary",
1018
- children: he.message
1018
+ children: ge.message
1019
1019
  }),
1020
1020
  /* @__PURE__ */ P("button", {
1021
1021
  type: "button",
1022
- onClick: () => ge(),
1022
+ onClick: () => _e(),
1023
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",
1024
1024
  children: "Try Again"
1025
1025
  })
1026
1026
  ]
1027
1027
  })
1028
1028
  });
1029
- let De = I.find((e) => e.id === z);
1029
+ let Oe = I.find((e) => e.id === z);
1030
1030
  return /* @__PURE__ */ F("div", {
1031
1031
  className: "space-y-6 px-6 lg:px-8 py-6",
1032
1032
  children: [
@@ -1054,7 +1054,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1054
1054
  type: "button",
1055
1055
  onClick: () => W("workspace"),
1056
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"]
1057
+ children: [/* @__PURE__ */ P(ie, { className: "size-3.5" }), "Workspace"]
1058
1058
  }), /* @__PURE__ */ F("button", {
1059
1059
  type: "button",
1060
1060
  onClick: () => W("global"),
@@ -1062,7 +1062,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1062
1062
  children: [/* @__PURE__ */ P(A, { className: "size-3.5" }), "Global"]
1063
1063
  })]
1064
1064
  }),
1065
- U === "global" && I.length > 1 && /* @__PURE__ */ P("select", {
1065
+ U === "global" && I.length > 1 && /* @__PURE__ */ P(te, {
1066
1066
  value: z || "",
1067
1067
  onChange: (e) => c(e.target.value),
1068
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",
@@ -1073,7 +1073,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1073
1073
  }),
1074
1074
  /* @__PURE__ */ P("button", {
1075
1075
  type: "button",
1076
- onClick: () => U === "workspace" ? void 0 : ge(),
1076
+ onClick: () => U === "workspace" ? void 0 : _e(),
1077
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",
1078
1078
  "aria-label": "Refresh",
1079
1079
  title: "Refresh",
@@ -1081,20 +1081,20 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1081
1081
  }),
1082
1082
  r ? /* @__PURE__ */ F("button", {
1083
1083
  type: "button",
1084
- onClick: () => ce("/ai"),
1084
+ onClick: () => le("/ai"),
1085
1085
  className: "inline-flex items-center gap-2 whitespace-nowrap px-3 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken hover:border-border-strong transition-all duration-200",
1086
- children: [/* @__PURE__ */ P(ae, { className: "size-4" }), n("billing.usage.aiUsage", "AI usage")]
1086
+ children: [/* @__PURE__ */ P(oe, { className: "size-4" }), n("billing.usage.aiUsage", "AI usage")]
1087
1087
  }) : null
1088
1088
  ]
1089
1089
  })]
1090
1090
  }),
1091
1091
  U === "workspace" && B && /* @__PURE__ */ P("div", {
1092
1092
  className: "space-y-4",
1093
- children: r ? /* @__PURE__ */ P(fe, {
1093
+ children: r ? /* @__PURE__ */ P(pe, {
1094
1094
  workspaceId: B,
1095
1095
  productId: V,
1096
1096
  summarySibling: /* @__PURE__ */ P(m, { workspaceId: B })
1097
- }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { workspaceId: B }), /* @__PURE__ */ P(fe, {
1097
+ }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { workspaceId: B }), /* @__PURE__ */ P(pe, {
1098
1098
  workspaceId: B,
1099
1099
  productId: V
1100
1100
  })] })
@@ -1103,9 +1103,9 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1103
1103
  className: "text-center py-12 text-text-secondary text-sm",
1104
1104
  children: "No workspace context available."
1105
1105
  }),
1106
- U === "global" && /* @__PURE__ */ F(pe, {
1106
+ U === "global" && /* @__PURE__ */ F(me, {
1107
1107
  enabled: r,
1108
- summary: Ee,
1108
+ summary: De,
1109
1109
  children: [
1110
1110
  /* @__PURE__ */ F("div", {
1111
1111
  className: "flex flex-col gap-3 sm:flex-row sm:items-center",
@@ -1113,20 +1113,20 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1113
1113
  /* @__PURE__ */ F("div", {
1114
1114
  className: "relative flex-1 max-w-md",
1115
1115
  children: [
1116
- /* @__PURE__ */ P(ie, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }),
1116
+ /* @__PURE__ */ P(ae, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }),
1117
1117
  /* @__PURE__ */ P("input", {
1118
1118
  type: "text",
1119
1119
  value: h,
1120
1120
  onChange: (e) => x(e.target.value),
1121
- placeholder: `Search ${D === "past" ? "past" : D === "all" ? "all" : "active"} quotas...`,
1121
+ placeholder: `Search ${O === "past" ? "past" : O === "all" ? "all" : "active"} quotas...`,
1122
1122
  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)]"
1123
1123
  }),
1124
- (h || Ce) && /* @__PURE__ */ P("button", {
1124
+ (h || we) && /* @__PURE__ */ P("button", {
1125
1125
  type: "button",
1126
1126
  onClick: () => x(""),
1127
1127
  "aria-label": "Clear search",
1128
1128
  className: "absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-bg-sunken",
1129
- children: Ce ? /* @__PURE__ */ P(j, { className: "size-3 text-text-muted animate-spin" }) : /* @__PURE__ */ P(oe, { className: "size-3 text-text-muted" })
1129
+ children: we ? /* @__PURE__ */ P(j, { className: "size-3 text-text-muted animate-spin" }) : /* @__PURE__ */ P(se, { className: "size-3 text-text-muted" })
1130
1130
  })
1131
1131
  ]
1132
1132
  }),
@@ -1134,33 +1134,33 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1134
1134
  className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
1135
1135
  children: [/* @__PURE__ */ F("button", {
1136
1136
  type: "button",
1137
- onClick: () => O("active"),
1138
- 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"}`,
1137
+ onClick: () => k("active"),
1138
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${O === "active" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"}`,
1139
1139
  children: [/* @__PURE__ */ P(A, { className: "size-3.5" }), "Active"]
1140
1140
  }), /* @__PURE__ */ F("button", {
1141
1141
  type: "button",
1142
- onClick: () => O("past"),
1143
- disabled: Y && D !== "past",
1144
- 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" : ""}`,
1145
- children: [Y && D === "past" ? /* @__PURE__ */ P(j, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ P(re, { className: "size-3.5" }), "Past"]
1142
+ onClick: () => k("past"),
1143
+ disabled: Y && O !== "past",
1144
+ className: `flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-button transition-all duration-200 ${O === "past" ? "bg-bg-surface text-text-primary shadow-elevation-1 font-medium" : "text-text-secondary hover:text-text-primary"} ${Y && O !== "past" ? "opacity-70" : ""}`,
1145
+ children: [Y && O === "past" ? /* @__PURE__ */ P(j, { className: "size-3.5 animate-spin" }) : /* @__PURE__ */ P(re, { className: "size-3.5" }), "Past"]
1146
1146
  })]
1147
1147
  }),
1148
1148
  $ && /* @__PURE__ */ F("button", {
1149
1149
  type: "button",
1150
- onClick: we,
1150
+ onClick: Te,
1151
1151
  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",
1152
- children: [/* @__PURE__ */ P(oe, { className: "size-3" }), "Clear filters"]
1152
+ children: [/* @__PURE__ */ P(se, { className: "size-3" }), "Clear filters"]
1153
1153
  })
1154
1154
  ]
1155
1155
  }),
1156
- De && /* @__PURE__ */ F("div", {
1156
+ Oe && /* @__PURE__ */ F("div", {
1157
1157
  className: "text-sm text-text-secondary",
1158
1158
  children: [
1159
1159
  "Viewing usage for",
1160
1160
  " ",
1161
1161
  /* @__PURE__ */ P("span", {
1162
1162
  className: "font-medium text-text-primary",
1163
- children: De.name
1163
+ children: Oe.name
1164
1164
  })
1165
1165
  ]
1166
1166
  }),
@@ -1170,18 +1170,18 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1170
1170
  /* @__PURE__ */ P(H, {
1171
1171
  label: "Total Quotas",
1172
1172
  value: G.totalQuotas,
1173
- icon: /* @__PURE__ */ P(k, { className: "size-5" }),
1173
+ icon: /* @__PURE__ */ P(ie, { className: "size-5" }),
1174
1174
  color: "blue",
1175
1175
  isActive: C === "all",
1176
- onClick: () => E("all")
1176
+ onClick: () => D("all")
1177
1177
  }),
1178
1178
  /* @__PURE__ */ P(H, {
1179
1179
  label: "Healthy",
1180
1180
  value: G.healthyQuotas,
1181
- icon: /* @__PURE__ */ P(te, { className: "size-5" }),
1181
+ icon: /* @__PURE__ */ P(ne, { className: "size-5" }),
1182
1182
  color: "emerald",
1183
1183
  isActive: C === "healthy",
1184
- onClick: () => Te("healthy")
1184
+ onClick: () => Ee("healthy")
1185
1185
  }),
1186
1186
  /* @__PURE__ */ P(H, {
1187
1187
  label: "Warning",
@@ -1189,7 +1189,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1189
1189
  icon: /* @__PURE__ */ P(w, { className: "size-5" }),
1190
1190
  color: "amber",
1191
1191
  isActive: C === "warning",
1192
- onClick: () => Te("warning")
1192
+ onClick: () => Ee("warning")
1193
1193
  }),
1194
1194
  /* @__PURE__ */ P(H, {
1195
1195
  label: "Critical / Exhausted",
@@ -1197,7 +1197,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1197
1197
  icon: /* @__PURE__ */ P(T, { className: "size-5" }),
1198
1198
  color: "red",
1199
1199
  isActive: C === "critical",
1200
- onClick: () => Te("critical")
1200
+ onClick: () => Ee("critical")
1201
1201
  })
1202
1202
  ]
1203
1203
  }),
@@ -1214,25 +1214,25 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1214
1214
  })] })]
1215
1215
  }), /* @__PURE__ */ P("button", {
1216
1216
  type: "button",
1217
- onClick: () => ce("/support/tickets"),
1217
+ onClick: () => le("/support/tickets"),
1218
1218
  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"}`,
1219
1219
  children: "Request more quota"
1220
1220
  })]
1221
1221
  }),
1222
- ($ || D !== "active") && /* @__PURE__ */ F("div", {
1222
+ ($ || O !== "active") && /* @__PURE__ */ F("div", {
1223
1223
  className: "flex items-center gap-2 text-sm text-text-secondary flex-wrap",
1224
1224
  children: [
1225
1225
  /* @__PURE__ */ F("span", { children: [
1226
1226
  "Showing",
1227
1227
  " ",
1228
- 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),
1228
+ Q.active.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + Q.past.reduce((e, t) => e + t.aggregatedQuotas.length, 0) + (O === "past" ? 0 : Z.length),
1229
1229
  " ",
1230
1230
  "quotas"
1231
1231
  ] }),
1232
1232
  /* @__PURE__ */ F("span", {
1233
1233
  className: "px-2 py-0.5 bg-[var(--color-accent-soft)] text-text-link rounded text-xs capitalize",
1234
1234
  children: [
1235
- D === "active" ? "Active" : D === "past" ? "Past" : "All",
1235
+ O === "active" ? "Active" : O === "past" ? "Past" : "All",
1236
1236
  " ",
1237
1237
  "subscriptions"
1238
1238
  ]
@@ -1253,10 +1253,10 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1253
1253
  }),
1254
1254
  Q.active.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1255
1255
  className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1256
- children: [/* @__PURE__ */ P(A, { className: "size-5 text-text-link" }), D === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
1256
+ children: [/* @__PURE__ */ P(A, { className: "size-5 text-text-link" }), O === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
1257
1257
  }), /* @__PURE__ */ P("div", {
1258
1258
  className: "space-y-4",
1259
- children: Q.active.map((e) => /* @__PURE__ */ P(ue, {
1259
+ children: Q.active.map((e) => /* @__PURE__ */ P(de, {
1260
1260
  subscription: e,
1261
1261
  onQuotaClick: d,
1262
1262
  defaultExpanded: !0
@@ -1271,65 +1271,65 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1271
1271
  className: "text-xs font-normal text-text-secondary",
1272
1272
  children: "(Canceled / Expired / Upgraded)"
1273
1273
  }),
1274
- be > 0 && /* @__PURE__ */ F("span", {
1274
+ xe > 0 && /* @__PURE__ */ F("span", {
1275
1275
  className: "text-xs font-normal px-2 py-0.5 bg-bg-sunken text-text-secondary rounded-full tabular-nums",
1276
1276
  children: [
1277
1277
  Q.past.length,
1278
- ve ? "+" : "",
1278
+ ye ? "+" : "",
1279
1279
  " of ",
1280
- be
1280
+ xe
1281
1281
  ]
1282
1282
  })
1283
1283
  ]
1284
1284
  }), /* @__PURE__ */ F("div", {
1285
1285
  className: "space-y-4",
1286
- children: [Q.past.map((e) => /* @__PURE__ */ P(ue, {
1286
+ children: [Q.past.map((e) => /* @__PURE__ */ P(de, {
1287
1287
  subscription: e,
1288
1288
  onQuotaClick: d,
1289
- defaultExpanded: D === "past"
1290
- }, e.id)), ve && /* @__PURE__ */ P("div", {
1289
+ defaultExpanded: O === "past"
1290
+ }, e.id)), ye && /* @__PURE__ */ P("div", {
1291
1291
  className: "flex justify-center pt-2",
1292
1292
  children: /* @__PURE__ */ P("button", {
1293
1293
  type: "button",
1294
- onClick: _e,
1295
- disabled: ye,
1294
+ onClick: ve,
1295
+ disabled: be,
1296
1296
  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",
1297
- children: ye ? /* @__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"] })
1297
+ children: be ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(j, { className: "size-4 animate-spin" }), "Loading…"] }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(E, { className: "size-4" }), "Load more past subscriptions"] })
1298
1298
  })
1299
1299
  })]
1300
1300
  })] }),
1301
- D !== "past" && Z.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1301
+ O !== "past" && Z.length > 0 && /* @__PURE__ */ F("section", { children: [/* @__PURE__ */ F("h2", {
1302
1302
  className: "text-lg font-semibold text-text-primary mb-4 flex items-center gap-2",
1303
1303
  children: [
1304
- /* @__PURE__ */ P(k, { className: `size-5 ${u.info.icon}` }),
1304
+ /* @__PURE__ */ P(ie, { className: `size-5 ${u.info.icon}` }),
1305
1305
  "Pooled Quotas",
1306
1306
  /* @__PURE__ */ P("span", {
1307
1307
  className: "text-xs font-normal text-text-secondary",
1308
1308
  children: "(Shared across all products)"
1309
1309
  })
1310
1310
  ]
1311
- }), /* @__PURE__ */ P(le, {
1311
+ }), /* @__PURE__ */ P(ue, {
1312
1312
  quotas: Z,
1313
1313
  showPlanColumn: !1,
1314
1314
  onQuotaClick: d
1315
1315
  })] }),
1316
- D === "active" && q.length === 0 && K.length === 0 && !$ && /* @__PURE__ */ P(b, {
1316
+ O === "active" && q.length === 0 && K.length === 0 && !$ && /* @__PURE__ */ P(b, {
1317
1317
  illustration: "empty-data",
1318
1318
  title: "No active quotas found",
1319
1319
  description: "Quotas will appear here once you have active subscriptions or pooled allocations."
1320
1320
  }),
1321
- D === "past" && J.length === 0 && !$ && !Y && /* @__PURE__ */ P(b, {
1321
+ O === "past" && J.length === 0 && !$ && !Y && /* @__PURE__ */ P(b, {
1322
1322
  illustration: "empty-data",
1323
1323
  title: "No past subscriptions",
1324
1324
  description: "You don't have any canceled, expired, or upgraded subscriptions yet.",
1325
1325
  action: /* @__PURE__ */ P("button", {
1326
1326
  type: "button",
1327
- onClick: () => O("active"),
1327
+ onClick: () => k("active"),
1328
1328
  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",
1329
1329
  children: "View active subscriptions"
1330
1330
  })
1331
1331
  }),
1332
- D === "past" && Y && /* @__PURE__ */ P("div", {
1332
+ O === "past" && Y && /* @__PURE__ */ P("div", {
1333
1333
  className: "space-y-4",
1334
1334
  children: [
1335
1335
  1,
@@ -1337,7 +1337,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1337
1337
  3
1338
1338
  ].map((e) => /* @__PURE__ */ P("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-card" }, e))
1339
1339
  }),
1340
- $ && Q.active.length === 0 && Q.past.length === 0 && (D === "past" || Z.length === 0) && /* @__PURE__ */ P(b, {
1340
+ $ && Q.active.length === 0 && Q.past.length === 0 && (O === "past" || Z.length === 0) && /* @__PURE__ */ P(b, {
1341
1341
  illustration: "empty-search",
1342
1342
  title: C !== "all" && !h ? `No ${C === "critical" ? "critical or exhausted" : C} quotas` : "No matching quotas",
1343
1343
  description: C !== "all" && !h ? /* @__PURE__ */ F(N, { children: ["All your quotas are in a different status.", G && /* @__PURE__ */ F("span", {
@@ -1356,10 +1356,10 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1356
1356
  })] }) : /* @__PURE__ */ F(N, { children: [
1357
1357
  "No quotas match your current search or filter criteria in",
1358
1358
  " ",
1359
- D === "past" ? "past" : D === "all" ? "any" : "active",
1359
+ O === "past" ? "past" : O === "all" ? "any" : "active",
1360
1360
  " ",
1361
1361
  "subscriptions.",
1362
- D === "active" && !C.includes("all") && /* @__PURE__ */ P("span", {
1362
+ O === "active" && !C.includes("all") && /* @__PURE__ */ P("span", {
1363
1363
  className: "block mt-1",
1364
1364
  children: "Try switching to “Past” or “All” to search across more subscriptions."
1365
1365
  })
@@ -1368,12 +1368,12 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1368
1368
  className: "flex gap-2",
1369
1369
  children: [/* @__PURE__ */ P("button", {
1370
1370
  type: "button",
1371
- onClick: we,
1371
+ onClick: Te,
1372
1372
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
1373
1373
  children: C === "all" ? "Clear filters" : "Show all quotas"
1374
- }), D === "active" && h && /* @__PURE__ */ P("button", {
1374
+ }), O === "active" && h && /* @__PURE__ */ P("button", {
1375
1375
  type: "button",
1376
- onClick: () => O("all"),
1376
+ onClick: () => k("all"),
1377
1377
  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",
1378
1378
  children: "Search all"
1379
1379
  })]
@@ -1381,7 +1381,7 @@ var fe = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1381
1381
  })
1382
1382
  ]
1383
1383
  }),
1384
- l && /* @__PURE__ */ P(de, {
1384
+ l && /* @__PURE__ */ P(fe, {
1385
1385
  quota: l,
1386
1386
  onClose: () => d(null)
1387
1387
  })