@burdenoff/microfe-billing 2026.1114.2 → 2026.1114.4

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.
@@ -10,10 +10,10 @@ 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
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";
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";
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 oe(e, t) {
16
+ function se(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(".");
@@ -171,7 +171,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
171
171
  children: t
172
172
  })]
173
173
  });
174
- }, se = ({ quota: e, planLabel: t, onClick: n }) => {
174
+ }, ce = ({ 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
- }, ce = ({ quotas: e, planLabel: t, showPlanColumn: n = !0, onQuotaClick: r }) => /* @__PURE__ */ P("div", {
233
+ }, le = ({ 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(se, {
261
+ }) }), /* @__PURE__ */ P("tbody", { children: e.map((e) => /* @__PURE__ */ P(ce, {
262
262
  quota: e,
263
263
  planLabel: n ? t : void 0,
264
264
  onClick: () => r(e)
265
265
  }, e.name)) })]
266
266
  })
267
- }), le = ({ subscription: e, onQuotaClick: t, defaultExpanded: n = !0 }) => {
267
+ }), ue = ({ 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}`,
@@ -310,7 +310,7 @@ var I = ({ status: e, className: t = "size-4" }) => {
310
310
  }),
311
311
  r && e.aggregatedQuotas.length > 0 && /* @__PURE__ */ P("div", {
312
312
  className: "border-t border-border-subtle",
313
- children: /* @__PURE__ */ P(ce, {
313
+ children: /* @__PURE__ */ P(le, {
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
- }, ue = ({ quota: e, onClose: t }) => {
329
+ }, de = ({ 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(ae, { className: "size-5" })
381
+ children: /* @__PURE__ */ P(oe, { className: "size-5" })
382
382
  })]
383
383
  }),
384
384
  /* @__PURE__ */ F("div", {
@@ -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 de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
585
+ var fe = ({ 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) {
@@ -794,7 +794,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
794
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
795
  /* @__PURE__ */ P("div", {
796
796
  className: "font-medium text-text-primary",
797
- children: oe(e.quotaName)
797
+ children: se(e.quotaName)
798
798
  }),
799
799
  /* @__PURE__ */ P(z, {
800
800
  value: e.quotaName,
@@ -899,7 +899,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
899
899
  })
900
900
  })]
901
901
  })
902
- }), fe = ({ enabled: e, summary: t, children: n }) => {
902
+ }), pe = ({ 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,20 +915,20 @@ var de = ({ 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"), 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({
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({
919
919
  billingAccountId: z,
920
920
  workspaceId: B,
921
921
  productId: V,
922
- searchQuery: oe || void 0,
922
+ searchQuery: se || void 0,
923
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) => ({
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) => ({
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
- ]), xe = v(() => C === "all" ? J : J.map((e) => ({
931
+ ]), Se = 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), [
@@ -936,23 +936,23 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
936
936
  C,
937
937
  X
938
938
  ]), Q = v(() => D === "active" ? {
939
- active: be,
939
+ active: xe,
940
940
  past: []
941
941
  } : D === "past" ? {
942
942
  active: [],
943
- past: xe
943
+ past: Se
944
944
  } : {
945
- active: be,
946
- past: xe
945
+ active: xe,
946
+ past: Se
947
947
  }, [
948
948
  D,
949
- be,
950
- xe
951
- ]), $ = h !== "" || C !== "all", Se = oe !== h, Ce = () => {
949
+ xe,
950
+ Se
951
+ ]), $ = h !== "" || C !== "all", Ce = se !== h, we = () => {
952
952
  x(""), E("all");
953
- }, we = (e) => {
953
+ }, Te = (e) => {
954
954
  E((t) => t === e ? "all" : e);
955
- }, Te = v(() => {
955
+ }, Ee = v(() => {
956
956
  let e = (e, t, n) => ({
957
957
  key: e.name,
958
958
  displayName: e.displayName ?? null,
@@ -984,7 +984,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
984
984
  ]
985
985
  })
986
986
  });
987
- if ((L || pe) && !G) return /* @__PURE__ */ F("div", {
987
+ if ((L || me) && !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 de = ({ 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 (me) return /* @__PURE__ */ P("div", {
1003
+ if (he) 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 de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1015
1015
  }),
1016
1016
  /* @__PURE__ */ P("p", {
1017
1017
  className: "text-sm text-text-secondary",
1018
- children: me.message
1018
+ children: he.message
1019
1019
  }),
1020
1020
  /* @__PURE__ */ P("button", {
1021
1021
  type: "button",
1022
- onClick: () => he(),
1022
+ onClick: () => ge(),
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 Ee = I.find((e) => e.id === z);
1029
+ let De = 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: [
@@ -1046,7 +1046,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1046
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.")
1047
1047
  })
1048
1048
  ] }), /* @__PURE__ */ F("div", {
1049
- className: "flex items-center gap-3",
1049
+ className: r ? "flex flex-wrap items-center gap-3" : "flex items-center gap-3",
1050
1050
  children: [
1051
1051
  /* @__PURE__ */ F("div", {
1052
1052
  className: "flex items-center bg-bg-sunken rounded-lg p-1 border border-border-subtle",
@@ -1073,22 +1073,28 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1073
1073
  }),
1074
1074
  /* @__PURE__ */ P("button", {
1075
1075
  type: "button",
1076
- onClick: () => U === "workspace" ? void 0 : he(),
1076
+ onClick: () => U === "workspace" ? void 0 : ge(),
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",
1080
1080
  children: /* @__PURE__ */ P(j, { className: "size-4" })
1081
- })
1081
+ }),
1082
+ r ? /* @__PURE__ */ F("button", {
1083
+ type: "button",
1084
+ onClick: () => ce("/ai"),
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")]
1087
+ }) : null
1082
1088
  ]
1083
1089
  })]
1084
1090
  }),
1085
1091
  U === "workspace" && B && /* @__PURE__ */ P("div", {
1086
1092
  className: "space-y-4",
1087
- children: r ? /* @__PURE__ */ P(de, {
1093
+ children: r ? /* @__PURE__ */ P(fe, {
1088
1094
  workspaceId: B,
1089
1095
  productId: V,
1090
1096
  summarySibling: /* @__PURE__ */ P(m, { workspaceId: B })
1091
- }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { workspaceId: B }), /* @__PURE__ */ P(de, {
1097
+ }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(m, { workspaceId: B }), /* @__PURE__ */ P(fe, {
1092
1098
  workspaceId: B,
1093
1099
  productId: V
1094
1100
  })] })
@@ -1097,9 +1103,9 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1097
1103
  className: "text-center py-12 text-text-secondary text-sm",
1098
1104
  children: "No workspace context available."
1099
1105
  }),
1100
- U === "global" && /* @__PURE__ */ F(fe, {
1106
+ U === "global" && /* @__PURE__ */ F(pe, {
1101
1107
  enabled: r,
1102
- summary: Te,
1108
+ summary: Ee,
1103
1109
  children: [
1104
1110
  /* @__PURE__ */ F("div", {
1105
1111
  className: "flex flex-col gap-3 sm:flex-row sm:items-center",
@@ -1115,12 +1121,12 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1115
1121
  placeholder: `Search ${D === "past" ? "past" : D === "all" ? "all" : "active"} quotas...`,
1116
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)]"
1117
1123
  }),
1118
- (h || Se) && /* @__PURE__ */ P("button", {
1124
+ (h || Ce) && /* @__PURE__ */ P("button", {
1119
1125
  type: "button",
1120
1126
  onClick: () => x(""),
1121
1127
  "aria-label": "Clear search",
1122
1128
  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" })
1129
+ children: Ce ? /* @__PURE__ */ P(j, { className: "size-3 text-text-muted animate-spin" }) : /* @__PURE__ */ P(oe, { className: "size-3 text-text-muted" })
1124
1130
  })
1125
1131
  ]
1126
1132
  }),
@@ -1141,20 +1147,20 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1141
1147
  }),
1142
1148
  $ && /* @__PURE__ */ F("button", {
1143
1149
  type: "button",
1144
- onClick: Ce,
1150
+ onClick: we,
1145
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",
1146
- children: [/* @__PURE__ */ P(ae, { className: "size-3" }), "Clear filters"]
1152
+ children: [/* @__PURE__ */ P(oe, { className: "size-3" }), "Clear filters"]
1147
1153
  })
1148
1154
  ]
1149
1155
  }),
1150
- Ee && /* @__PURE__ */ F("div", {
1156
+ De && /* @__PURE__ */ F("div", {
1151
1157
  className: "text-sm text-text-secondary",
1152
1158
  children: [
1153
1159
  "Viewing usage for",
1154
1160
  " ",
1155
1161
  /* @__PURE__ */ P("span", {
1156
1162
  className: "font-medium text-text-primary",
1157
- children: Ee.name
1163
+ children: De.name
1158
1164
  })
1159
1165
  ]
1160
1166
  }),
@@ -1175,7 +1181,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1175
1181
  icon: /* @__PURE__ */ P(te, { className: "size-5" }),
1176
1182
  color: "emerald",
1177
1183
  isActive: C === "healthy",
1178
- onClick: () => we("healthy")
1184
+ onClick: () => Te("healthy")
1179
1185
  }),
1180
1186
  /* @__PURE__ */ P(H, {
1181
1187
  label: "Warning",
@@ -1183,7 +1189,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1183
1189
  icon: /* @__PURE__ */ P(w, { className: "size-5" }),
1184
1190
  color: "amber",
1185
1191
  isActive: C === "warning",
1186
- onClick: () => we("warning")
1192
+ onClick: () => Te("warning")
1187
1193
  }),
1188
1194
  /* @__PURE__ */ P(H, {
1189
1195
  label: "Critical / Exhausted",
@@ -1191,7 +1197,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1191
1197
  icon: /* @__PURE__ */ P(T, { className: "size-5" }),
1192
1198
  color: "red",
1193
1199
  isActive: C === "critical",
1194
- onClick: () => we("critical")
1200
+ onClick: () => Te("critical")
1195
1201
  })
1196
1202
  ]
1197
1203
  }),
@@ -1208,7 +1214,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1208
1214
  })] })]
1209
1215
  }), /* @__PURE__ */ P("button", {
1210
1216
  type: "button",
1211
- onClick: () => se("/support/tickets"),
1217
+ onClick: () => ce("/support/tickets"),
1212
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"}`,
1213
1219
  children: "Request more quota"
1214
1220
  })]
@@ -1250,7 +1256,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1250
1256
  children: [/* @__PURE__ */ P(A, { className: "size-5 text-text-link" }), D === "all" ? "Active Subscription Quotas" : "Subscription Quotas"]
1251
1257
  }), /* @__PURE__ */ P("div", {
1252
1258
  className: "space-y-4",
1253
- children: Q.active.map((e) => /* @__PURE__ */ P(le, {
1259
+ children: Q.active.map((e) => /* @__PURE__ */ P(ue, {
1254
1260
  subscription: e,
1255
1261
  onQuotaClick: d,
1256
1262
  defaultExpanded: !0
@@ -1265,30 +1271,30 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1265
1271
  className: "text-xs font-normal text-text-secondary",
1266
1272
  children: "(Canceled / Expired / Upgraded)"
1267
1273
  }),
1268
- ye > 0 && /* @__PURE__ */ F("span", {
1274
+ be > 0 && /* @__PURE__ */ F("span", {
1269
1275
  className: "text-xs font-normal px-2 py-0.5 bg-bg-sunken text-text-secondary rounded-full tabular-nums",
1270
1276
  children: [
1271
1277
  Q.past.length,
1272
- _e ? "+" : "",
1278
+ ve ? "+" : "",
1273
1279
  " of ",
1274
- ye
1280
+ be
1275
1281
  ]
1276
1282
  })
1277
1283
  ]
1278
1284
  }), /* @__PURE__ */ F("div", {
1279
1285
  className: "space-y-4",
1280
- children: [Q.past.map((e) => /* @__PURE__ */ P(le, {
1286
+ children: [Q.past.map((e) => /* @__PURE__ */ P(ue, {
1281
1287
  subscription: e,
1282
1288
  onQuotaClick: d,
1283
1289
  defaultExpanded: D === "past"
1284
- }, e.id)), _e && /* @__PURE__ */ P("div", {
1290
+ }, e.id)), ve && /* @__PURE__ */ P("div", {
1285
1291
  className: "flex justify-center pt-2",
1286
1292
  children: /* @__PURE__ */ P("button", {
1287
1293
  type: "button",
1288
- onClick: ge,
1289
- disabled: ve,
1294
+ onClick: _e,
1295
+ disabled: ye,
1290
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",
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"] })
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"] })
1292
1298
  })
1293
1299
  })]
1294
1300
  })] }),
@@ -1302,7 +1308,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1302
1308
  children: "(Shared across all products)"
1303
1309
  })
1304
1310
  ]
1305
- }), /* @__PURE__ */ P(ce, {
1311
+ }), /* @__PURE__ */ P(le, {
1306
1312
  quotas: Z,
1307
1313
  showPlanColumn: !1,
1308
1314
  onQuotaClick: d
@@ -1362,7 +1368,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1362
1368
  className: "flex gap-2",
1363
1369
  children: [/* @__PURE__ */ P("button", {
1364
1370
  type: "button",
1365
- onClick: Ce,
1371
+ onClick: we,
1366
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",
1367
1373
  children: C === "all" ? "Clear filters" : "Show all quotas"
1368
1374
  }), D === "active" && h && /* @__PURE__ */ P("button", {
@@ -1375,7 +1381,7 @@ var de = ({ workspaceId: e, productId: t, summarySibling: n }) => {
1375
1381
  })
1376
1382
  ]
1377
1383
  }),
1378
- l && /* @__PURE__ */ P(ue, {
1384
+ l && /* @__PURE__ */ P(de, {
1379
1385
  quota: l,
1380
1386
  onClose: () => d(null)
1381
1387
  })