@burdenoff/microfe-billing 2026.1113.2 → 2026.1113.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.
Files changed (118) 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 +187 -164
  43. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  44. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  46. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  49. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  51. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  52. package/dist/billing/modules/earnings/components/PayoutDestinationList.d.ts +15 -0
  53. package/dist/billing/modules/earnings/components/PayoutDestinationList.js +66 -0
  54. package/dist/billing/modules/earnings/components/PayoutDestinationList.js.map +1 -0
  55. package/dist/billing/modules/earnings/components/PayoutErrorNotice.d.ts +7 -0
  56. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js +19 -0
  57. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js.map +1 -0
  58. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  59. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  60. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  61. package/dist/billing/modules/earnings/pages/EarningsPage.js +123 -110
  62. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  63. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  64. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  65. package/dist/billing/modules/earnings/pages/PayoutsPage.js +215 -157
  66. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  67. package/dist/billing/modules/earnings/utils/payoutDestination.d.ts +20 -0
  68. package/dist/billing/modules/earnings/utils/payoutDestination.js +27 -0
  69. package/dist/billing/modules/earnings/utils/payoutDestination.js.map +1 -0
  70. package/dist/billing/modules/earnings/utils/plainPayoutError.d.ts +10 -0
  71. package/dist/billing/modules/earnings/utils/plainPayoutError.js +50 -0
  72. package/dist/billing/modules/earnings/utils/plainPayoutError.js.map +1 -0
  73. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  74. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  75. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  76. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  77. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  78. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  79. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +100 -100
  80. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  81. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  82. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  83. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  84. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  85. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  86. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  87. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  88. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  89. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  90. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  91. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  92. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  93. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  94. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  95. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  96. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  97. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  98. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  99. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  100. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  101. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  102. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  103. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  104. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  105. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  106. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  107. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  108. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  109. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  110. package/dist/billing/shared/components/EmptyState.js +3 -3
  111. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  112. package/dist/billing/shared/ui/MetricCard.js +13 -13
  113. package/dist/billing/shared/utils/format.js +16 -4
  114. package/dist/billing/shared/utils/format.js.map +1 -1
  115. package/dist/billing/shared/utils/index.js +8 -8
  116. package/dist/generated/global-operations.js +294 -286
  117. package/dist/generated/global-operations.js.map +1 -1
  118. package/package.json +2 -2
@@ -9,53 +9,53 @@ import "../../../shared/components/index.js";
9
9
  import { formatDate as o } from "../../../shared/utils/format.js";
10
10
  import { useQuotaTemplate as s, useQuotaTemplateMutations as c } from "../hooks/useQuotaTemplates.js";
11
11
  import "../../../shared/utils/index.js";
12
- import { useParams as l } from "react-router";
13
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
14
- import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
- import { EmphasisPanel as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
12
+ import { EmphasisPanel as l, PagePurpose as u } from "@burdenoff/fe-libs/ui";
13
+ import { useParams as d } from "react-router";
14
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
15
+ import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
16
16
  // src/billing/modules/quota/pages/QuotaTemplateDetailPage.tsx
17
17
  var h = () => {
18
- let { t: h } = f(), g = (e, t) => {
18
+ let { t: h } = m(), g = (e, t) => {
19
19
  let n = h(e);
20
20
  return n === e ? t : n;
21
- }, { quotaId: _ } = l(), v = r(), y = a(), { quota: b, isLoading: x, error: S, refetch: C } = s(_), { toggleQuota: w, isToggling: T } = c();
22
- if (!y.canViewQuotas) return /* @__PURE__ */ u(e, { message: "You don't have permission to view quota details." });
23
- if (x) return /* @__PURE__ */ d("div", {
21
+ }, { quotaId: _ } = d(), v = r(), y = a(), { quota: b, isLoading: x, error: S, refetch: C } = s(_), { toggleQuota: w, isToggling: T } = c();
22
+ if (!y.canViewQuotas) return /* @__PURE__ */ f(e, { message: "You don't have permission to view quota details." });
23
+ if (x) return /* @__PURE__ */ p("div", {
24
24
  className: "space-y-6 p-6",
25
- children: [/* @__PURE__ */ u("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ d("div", {
25
+ children: [/* @__PURE__ */ f("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ p("div", {
26
26
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
27
- children: [/* @__PURE__ */ u("div", {
27
+ children: [/* @__PURE__ */ f("div", {
28
28
  className: "lg:col-span-2 space-y-4",
29
29
  children: [
30
30
  1,
31
31
  2,
32
32
  3
33
- ].map((e) => /* @__PURE__ */ u("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
34
- }), /* @__PURE__ */ u("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
33
+ ].map((e) => /* @__PURE__ */ f("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
34
+ }), /* @__PURE__ */ f("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
35
35
  })]
36
36
  });
37
- if (S && i(S)) return /* @__PURE__ */ u("div", {
37
+ if (S && i(S)) return /* @__PURE__ */ f("div", {
38
38
  className: "p-6",
39
- children: /* @__PURE__ */ u(n, {
39
+ children: /* @__PURE__ */ f(n, {
40
40
  title: "Server Unavailable",
41
41
  message: "Unable to load quota details. The server might be down or experiencing issues.",
42
42
  onRetry: () => C(),
43
43
  showRetry: !0
44
44
  })
45
45
  });
46
- if (!b) return /* @__PURE__ */ u("div", {
46
+ if (!b) return /* @__PURE__ */ f("div", {
47
47
  className: "flex items-center justify-center h-full min-h-[400px]",
48
- children: /* @__PURE__ */ d("div", {
48
+ children: /* @__PURE__ */ p("div", {
49
49
  className: "text-center space-y-4",
50
50
  children: [
51
- /* @__PURE__ */ u("div", {
51
+ /* @__PURE__ */ f("div", {
52
52
  className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
53
- children: /* @__PURE__ */ u("svg", {
53
+ children: /* @__PURE__ */ f("svg", {
54
54
  className: "size-6 text-text-muted",
55
55
  fill: "none",
56
56
  viewBox: "0 0 24 24",
57
57
  stroke: "currentColor",
58
- children: /* @__PURE__ */ u("path", {
58
+ children: /* @__PURE__ */ f("path", {
59
59
  strokeLinecap: "round",
60
60
  strokeLinejoin: "round",
61
61
  strokeWidth: 2,
@@ -63,15 +63,15 @@ var h = () => {
63
63
  })
64
64
  })
65
65
  }),
66
- /* @__PURE__ */ u("h2", {
66
+ /* @__PURE__ */ f("h2", {
67
67
  className: "text-lg font-semibold text-text-primary",
68
68
  children: g("billing.quota.quotaNotFound", "Quota not found")
69
69
  }),
70
- /* @__PURE__ */ u("p", {
70
+ /* @__PURE__ */ f("p", {
71
71
  className: "text-sm text-text-muted",
72
72
  children: "The quota you're looking for doesn't exist or has been removed."
73
73
  }),
74
- /* @__PURE__ */ u("button", {
74
+ /* @__PURE__ */ f("button", {
75
75
  type: "button",
76
76
  onClick: () => v("/quotas"),
77
77
  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",
@@ -87,50 +87,50 @@ var h = () => {
87
87
  console.error("Failed to toggle quota:", e);
88
88
  }
89
89
  }, D = b.limits, O = D?.type ?? "unknown", k = D?.value ?? 0, A = D?.unit ?? "";
90
- return /* @__PURE__ */ d("div", {
90
+ return /* @__PURE__ */ p("div", {
91
91
  className: "space-y-6 p-6",
92
92
  children: [
93
- /* @__PURE__ */ u(t, {
93
+ /* @__PURE__ */ f(t, {
94
94
  title: b.name,
95
95
  description: `${b.quotaType === "POOLED" ? "Pooled" : "Product Specific"} quota template`
96
96
  }),
97
- /* @__PURE__ */ u(m, { children: g("billing.quota.detailPurpose", "Everything about this quota template — its limit configuration, type and where it is used. Review it here to understand what plans and add-ons referencing it will grant, before editing or attaching it elsewhere.") }),
98
- /* @__PURE__ */ d("div", {
97
+ /* @__PURE__ */ f(u, { children: g("billing.quota.detailPurpose", "Everything about this quota template — its limit configuration, type and where it is used. Review it here to understand what plans and add-ons referencing it will grant, before editing or attaching it elsewhere.") }),
98
+ /* @__PURE__ */ p("div", {
99
99
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
100
- children: [/* @__PURE__ */ d("div", {
100
+ children: [/* @__PURE__ */ p("div", {
101
101
  className: "lg:col-span-2 space-y-6",
102
102
  children: [
103
- /* @__PURE__ */ d(p, {
103
+ /* @__PURE__ */ p(l, {
104
104
  className: "overflow-hidden p-0",
105
- children: [/* @__PURE__ */ u("div", {
105
+ children: [/* @__PURE__ */ f("div", {
106
106
  className: "p-4 border-b border-border-subtle",
107
- children: /* @__PURE__ */ u("h2", {
107
+ children: /* @__PURE__ */ f("h2", {
108
108
  className: "font-semibold text-text-primary",
109
109
  children: g("billing.quota.limitsConfig", "Limits Configuration")
110
110
  })
111
- }), /* @__PURE__ */ u("div", {
111
+ }), /* @__PURE__ */ f("div", {
112
112
  className: "p-6",
113
- children: /* @__PURE__ */ d("div", {
113
+ children: /* @__PURE__ */ p("div", {
114
114
  className: "grid grid-cols-3 gap-6",
115
115
  children: [
116
- /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
116
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
117
117
  className: "text-sm text-text-muted",
118
118
  children: "Limit Type"
119
- }), /* @__PURE__ */ u("p", {
119
+ }), /* @__PURE__ */ f("p", {
120
120
  className: "text-lg font-semibold text-text-primary capitalize mt-1",
121
121
  children: O
122
122
  })] }),
123
- /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
123
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
124
124
  className: "text-sm text-text-muted",
125
125
  children: "Limit Value"
126
- }), /* @__PURE__ */ u("p", {
126
+ }), /* @__PURE__ */ f("p", {
127
127
  className: "text-lg font-semibold text-text-primary mt-1",
128
128
  children: k.toLocaleString()
129
129
  })] }),
130
- /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
130
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
131
131
  className: "text-sm text-text-muted",
132
132
  children: "Unit"
133
- }), /* @__PURE__ */ u("p", {
133
+ }), /* @__PURE__ */ f("p", {
134
134
  className: "text-lg font-semibold text-text-primary mt-1",
135
135
  children: A || "-"
136
136
  })] })
@@ -138,100 +138,100 @@ var h = () => {
138
138
  })
139
139
  })]
140
140
  }),
141
- /* @__PURE__ */ d("div", {
141
+ /* @__PURE__ */ p("div", {
142
142
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
143
- children: [/* @__PURE__ */ u("div", {
143
+ children: [/* @__PURE__ */ f("div", {
144
144
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
145
- children: /* @__PURE__ */ u("h2", {
145
+ children: /* @__PURE__ */ f("h2", {
146
146
  className: "font-semibold text-text-primary",
147
147
  children: g("billing.quota.properties", "Properties")
148
148
  })
149
- }), /* @__PURE__ */ d("div", {
149
+ }), /* @__PURE__ */ p("div", {
150
150
  className: "p-6 space-y-4",
151
- children: [/* @__PURE__ */ d("div", {
151
+ children: [/* @__PURE__ */ p("div", {
152
152
  className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg",
153
- children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
153
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
154
154
  className: "font-medium text-text-primary",
155
155
  children: "Quota Type"
156
- }), /* @__PURE__ */ u("p", {
156
+ }), /* @__PURE__ */ f("p", {
157
157
  className: "text-sm text-text-muted",
158
158
  children: b.quotaType === "POOLED" ? "Shared across all products" : "Specific to individual products"
159
- })] }), /* @__PURE__ */ u("span", {
159
+ })] }), /* @__PURE__ */ f("span", {
160
160
  className: `px-3 py-1 text-sm font-medium rounded ${b.quotaType === "POOLED" ? "bg-status-info-bg-subtle text-status-info-text" : "bg-accent-purple-subtle text-text-primary"}`,
161
161
  children: b.quotaType === "POOLED" ? "Pooled" : "Product Specific"
162
162
  })]
163
- }), /* @__PURE__ */ d("div", {
163
+ }), /* @__PURE__ */ p("div", {
164
164
  className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg",
165
- children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
165
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
166
166
  className: "font-medium text-text-primary",
167
167
  children: "Reusable"
168
- }), /* @__PURE__ */ u("p", {
168
+ }), /* @__PURE__ */ f("p", {
169
169
  className: "text-sm text-text-muted",
170
170
  children: b.reusable ? "Quota can be freed up and reused (e.g., seats, bots)" : "Quota is consumed permanently (e.g., API calls, storage)"
171
- })] }), /* @__PURE__ */ u("span", {
171
+ })] }), /* @__PURE__ */ f("span", {
172
172
  className: `px-3 py-1 text-sm font-medium rounded ${b.reusable ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
173
173
  children: b.reusable ? "Yes" : "No"
174
174
  })]
175
175
  })]
176
176
  })]
177
177
  }),
178
- /* @__PURE__ */ d("div", {
178
+ /* @__PURE__ */ p("div", {
179
179
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
180
- children: [/* @__PURE__ */ u("div", {
180
+ children: [/* @__PURE__ */ f("div", {
181
181
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
182
- children: /* @__PURE__ */ u("h2", {
182
+ children: /* @__PURE__ */ f("h2", {
183
183
  className: "font-semibold text-text-primary",
184
184
  children: "Limits (Raw JSON)"
185
185
  })
186
- }), /* @__PURE__ */ u("div", {
186
+ }), /* @__PURE__ */ f("div", {
187
187
  className: "p-4",
188
- children: /* @__PURE__ */ u("pre", {
188
+ children: /* @__PURE__ */ f("pre", {
189
189
  className: "text-sm text-text-primary bg-bg-sunken/50 p-4 rounded-lg overflow-auto",
190
190
  children: JSON.stringify(b.limits, null, 2)
191
191
  })
192
192
  })]
193
193
  })
194
194
  ]
195
- }), /* @__PURE__ */ d("div", {
195
+ }), /* @__PURE__ */ p("div", {
196
196
  className: "space-y-6",
197
197
  children: [
198
- /* @__PURE__ */ d("div", {
198
+ /* @__PURE__ */ p("div", {
199
199
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
200
- children: [/* @__PURE__ */ u("div", {
200
+ children: [/* @__PURE__ */ f("div", {
201
201
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
202
- children: /* @__PURE__ */ u("h2", {
202
+ children: /* @__PURE__ */ f("h2", {
203
203
  className: "font-semibold text-text-primary",
204
204
  children: "Status"
205
205
  })
206
- }), /* @__PURE__ */ d("div", {
206
+ }), /* @__PURE__ */ p("div", {
207
207
  className: "p-4 space-y-4",
208
208
  children: [
209
- /* @__PURE__ */ d("div", {
209
+ /* @__PURE__ */ p("div", {
210
210
  className: "flex items-center justify-between",
211
- children: [/* @__PURE__ */ u("span", {
211
+ children: [/* @__PURE__ */ f("span", {
212
212
  className: "text-sm text-text-muted",
213
213
  children: "Status"
214
- }), /* @__PURE__ */ u("span", {
214
+ }), /* @__PURE__ */ f("span", {
215
215
  className: `px-2 py-1 text-xs font-medium rounded ${b.isActive ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
216
216
  children: b.isActive ? "Active" : "Inactive"
217
217
  })]
218
218
  }),
219
- /* @__PURE__ */ d("div", {
219
+ /* @__PURE__ */ p("div", {
220
220
  className: "flex items-center justify-between",
221
- children: [/* @__PURE__ */ u("span", {
221
+ children: [/* @__PURE__ */ f("span", {
222
222
  className: "text-sm text-text-muted",
223
223
  children: "Created"
224
- }), /* @__PURE__ */ u("span", {
224
+ }), /* @__PURE__ */ f("span", {
225
225
  className: "text-sm font-medium text-text-primary",
226
226
  children: o(b.createdAt, "short")
227
227
  })]
228
228
  }),
229
- /* @__PURE__ */ d("div", {
229
+ /* @__PURE__ */ p("div", {
230
230
  className: "flex items-center justify-between",
231
- children: [/* @__PURE__ */ u("span", {
231
+ children: [/* @__PURE__ */ f("span", {
232
232
  className: "text-sm text-text-muted",
233
233
  children: "Updated"
234
- }), /* @__PURE__ */ u("span", {
234
+ }), /* @__PURE__ */ f("span", {
235
235
  className: "text-sm font-medium text-text-primary",
236
236
  children: o(b.updatedAt, "short")
237
237
  })]
@@ -239,22 +239,22 @@ var h = () => {
239
239
  ]
240
240
  })]
241
241
  }),
242
- y.canManageQuotas && /* @__PURE__ */ d("div", {
242
+ y.canManageQuotas && /* @__PURE__ */ p("div", {
243
243
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
244
- children: [/* @__PURE__ */ u("div", {
244
+ children: [/* @__PURE__ */ f("div", {
245
245
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
246
- children: /* @__PURE__ */ u("h2", {
246
+ children: /* @__PURE__ */ f("h2", {
247
247
  className: "font-semibold text-text-primary",
248
248
  children: "Actions"
249
249
  })
250
- }), /* @__PURE__ */ d("div", {
250
+ }), /* @__PURE__ */ p("div", {
251
251
  className: "p-4 space-y-2",
252
- children: [/* @__PURE__ */ u("button", {
252
+ children: [/* @__PURE__ */ f("button", {
253
253
  type: "button",
254
254
  onClick: () => v(`/quotas/${b.id}/edit`),
255
255
  className: "w-full 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",
256
256
  children: "Edit Quota"
257
- }), /* @__PURE__ */ u("button", {
257
+ }), /* @__PURE__ */ f("button", {
258
258
  type: "button",
259
259
  onClick: E,
260
260
  disabled: T,
@@ -263,7 +263,7 @@ var h = () => {
263
263
  })]
264
264
  })]
265
265
  }),
266
- /* @__PURE__ */ u("button", {
266
+ /* @__PURE__ */ f("button", {
267
267
  type: "button",
268
268
  onClick: () => v("/quotas"),
269
269
  className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",