@burdenoff/microfe-billing 2026.1113.2 → 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 (105) 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 +100 -100
  67. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  68. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  69. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  70. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  71. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  72. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  73. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  74. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  75. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  76. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  77. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  78. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  79. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  80. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  81. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  82. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  83. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  84. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  85. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  86. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  87. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  88. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  89. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  90. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  91. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  92. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  93. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  94. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  95. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  96. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  97. package/dist/billing/shared/components/EmptyState.js +3 -3
  98. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  99. package/dist/billing/shared/ui/MetricCard.js +13 -13
  100. package/dist/billing/shared/utils/format.js +16 -4
  101. package/dist/billing/shared/utils/format.js.map +1 -1
  102. package/dist/billing/shared/utils/index.js +8 -8
  103. package/dist/generated/global-operations.js +294 -286
  104. package/dist/generated/global-operations.js.map +1 -1
  105. package/package.json +2 -2
@@ -8,54 +8,54 @@ import { useQuotas as a } from "../../plans/hooks/useQuotas.js";
8
8
  import "../../plans/hooks/index.js";
9
9
  import { filterQuotas as o, getQuotaScopeLabel as s } from "../utils/quotaSelector.js";
10
10
  import { useMemo as c, useState as l } from "react";
11
- import { Check as u, ChevronsUpDown as d } from "lucide-react";
12
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
13
- import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { Command as h, CommandEmpty as g, CommandInput as _, CommandItem as v, CommandList as y, PagePurpose as b, Popover as x, PopoverContent as S, PopoverTrigger as C } from "@burdenoff/fe-libs/ui";
11
+ import { Command as u, CommandEmpty as d, CommandInput as f, CommandItem as p, CommandList as m, PagePurpose as h, Popover as g, PopoverContent as _, PopoverTrigger as v } from "@burdenoff/fe-libs/ui";
12
+ import { Check as y, ChevronsUpDown as b } from "lucide-react";
13
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
14
+ import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  // src/billing/modules/quota/pages/QuotaAssignFreePage.tsx
16
16
  var w = () => {
17
- let { t: w } = m(), T = (e, t) => {
17
+ let { t: w } = C(), T = (e, t) => {
18
18
  let n = w(e);
19
19
  return n === e ? t : n;
20
20
  }, E = r(), D = i(), [O, k] = l(""), [A, j] = l(""), [M, N] = l(""), [P, F] = l(!1), [I, L] = l(""), [R, z] = l(""), [B, V] = l(""), [H, U] = l(""), [W, G] = l(null), { quotas: K, isLoading: q } = a({ onlyActive: !0 }), [J, { loading: Y }] = n(), X = K.find((e) => e.id === M), Z = X?.scope === "WORKSPACE", Q = c(() => o(K, I), [K, I]), $ = c(() => X?.limits?.value, [X]), ee = (e) => {
21
21
  N(e), z(""), F(!1), L("");
22
22
  };
23
- return D.canManageQuotas ? /* @__PURE__ */ p("div", {
23
+ return D.canManageQuotas ? /* @__PURE__ */ S("div", {
24
24
  className: "space-y-6 p-6 max-w-2xl",
25
25
  children: [
26
- /* @__PURE__ */ f(t, {
26
+ /* @__PURE__ */ x(t, {
27
27
  title: T("billing.quotaAssignFree.title", "Assign Quota for Free"),
28
28
  description: T("billing.quotaAssignFree.description", "Internally assign a single quota to a billing account at no charge. Requires the team secret."),
29
- actions: /* @__PURE__ */ f("button", {
29
+ actions: /* @__PURE__ */ x("button", {
30
30
  type: "button",
31
31
  onClick: () => E("/quota"),
32
32
  className: "px-3 py-2 text-sm border border-border-subtle rounded-md text-text-primary hover:bg-bg-sunken transition-colors",
33
33
  children: "← Back to Quotas"
34
34
  })
35
35
  }),
36
- /* @__PURE__ */ f(b, { children: T("billing.quotaAssignFree.purpose", "An internal tool to grant a single quota to a billing account without assigning a whole plan — useful for one-off comps or fixing a missing entitlement. It bypasses payment, so it requires the team secret and should be used deliberately.") }),
37
- /* @__PURE__ */ p("div", {
36
+ /* @__PURE__ */ x(h, { children: T("billing.quotaAssignFree.purpose", "An internal tool to grant a single quota to a billing account without assigning a whole plan — useful for one-off comps or fixing a missing entitlement. It bypasses payment, so it requires the team secret and should be used deliberately.") }),
37
+ /* @__PURE__ */ S("div", {
38
38
  className: "flex items-start gap-3 p-4 rounded-lg border border-status-warning-border bg-status-warning-bg/10",
39
- children: [/* @__PURE__ */ f("svg", {
39
+ children: [/* @__PURE__ */ x("svg", {
40
40
  className: "size-5 text-status-warning-text shrink-0 mt-0.5",
41
41
  fill: "none",
42
42
  viewBox: "0 0 24 24",
43
43
  stroke: "currentColor",
44
- children: /* @__PURE__ */ f("path", {
44
+ children: /* @__PURE__ */ x("path", {
45
45
  strokeLinecap: "round",
46
46
  strokeLinejoin: "round",
47
47
  strokeWidth: 2,
48
48
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.962-.833-2.732 0L3.072 16.5c-.77.833.192 2.5 1.732 2.5z"
49
49
  })
50
- }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
50
+ }), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
51
51
  className: "text-sm font-medium text-status-warning-text",
52
52
  children: "Internal admin tool"
53
- }), /* @__PURE__ */ f("p", {
53
+ }), /* @__PURE__ */ x("p", {
54
54
  className: "text-xs text-status-warning-text/80 mt-0.5",
55
55
  children: "This bypasses all payment flows. The quota is granted immediately with no charge. Use only for enterprise deals, comped accounts, or fixing a missing entitlement."
56
56
  })] })]
57
57
  }),
58
- /* @__PURE__ */ p("form", {
58
+ /* @__PURE__ */ S("form", {
59
59
  onSubmit: async (e) => {
60
60
  if (e.preventDefault(), G(null), !O.trim() || !A.trim() || !M) G({
61
61
  success: !1,
@@ -87,26 +87,26 @@ var w = () => {
87
87
  },
88
88
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
89
89
  children: [
90
- /* @__PURE__ */ f("div", {
90
+ /* @__PURE__ */ x("div", {
91
91
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
92
- children: /* @__PURE__ */ f("h2", {
92
+ children: /* @__PURE__ */ x("h2", {
93
93
  className: "font-semibold text-text-primary",
94
94
  children: "Assignment Details"
95
95
  })
96
96
  }),
97
- /* @__PURE__ */ p("div", {
97
+ /* @__PURE__ */ S("div", {
98
98
  className: "p-4 space-y-4",
99
99
  children: [
100
- /* @__PURE__ */ p("div", { children: [
101
- /* @__PURE__ */ p("label", {
100
+ /* @__PURE__ */ S("div", { children: [
101
+ /* @__PURE__ */ S("label", {
102
102
  htmlFor: "secret",
103
103
  className: "block text-sm font-medium text-text-primary mb-1",
104
- children: ["Team Secret ", /* @__PURE__ */ f("span", {
104
+ children: ["Team Secret ", /* @__PURE__ */ x("span", {
105
105
  className: "text-status-error-text",
106
106
  children: "*"
107
107
  })]
108
108
  }),
109
- /* @__PURE__ */ f("input", {
109
+ /* @__PURE__ */ x("input", {
110
110
  id: "secret",
111
111
  type: "password",
112
112
  value: O,
@@ -116,21 +116,21 @@ var w = () => {
116
116
  placeholder: "Enter PLAN_ASSIGN_SECRET",
117
117
  required: !0
118
118
  }),
119
- /* @__PURE__ */ f("p", {
119
+ /* @__PURE__ */ x("p", {
120
120
  className: "text-xs text-text-muted mt-1",
121
121
  children: "Same team secret used by Assign Plan Free. Never expose this to users."
122
122
  })
123
123
  ] }),
124
- /* @__PURE__ */ p("div", { children: [
125
- /* @__PURE__ */ p("label", {
124
+ /* @__PURE__ */ S("div", { children: [
125
+ /* @__PURE__ */ S("label", {
126
126
  htmlFor: "billingAccountId",
127
127
  className: "block text-sm font-medium text-text-primary mb-1",
128
- children: ["Billing Account ID ", /* @__PURE__ */ f("span", {
128
+ children: ["Billing Account ID ", /* @__PURE__ */ x("span", {
129
129
  className: "text-status-error-text",
130
130
  children: "*"
131
131
  })]
132
132
  }),
133
- /* @__PURE__ */ f("input", {
133
+ /* @__PURE__ */ x("input", {
134
134
  id: "billingAccountId",
135
135
  type: "text",
136
136
  value: A,
@@ -139,64 +139,64 @@ var w = () => {
139
139
  placeholder: "e.g. ba_01jk3n2...",
140
140
  required: !0
141
141
  }),
142
- /* @__PURE__ */ f("p", {
142
+ /* @__PURE__ */ x("p", {
143
143
  className: "text-xs text-text-muted mt-1",
144
144
  children: "Find this in the user's billing account settings or via the billing accounts list."
145
145
  })
146
146
  ] }),
147
- /* @__PURE__ */ p("div", { children: [
148
- /* @__PURE__ */ p("label", {
147
+ /* @__PURE__ */ S("div", { children: [
148
+ /* @__PURE__ */ S("label", {
149
149
  htmlFor: "quotaId",
150
150
  className: "block text-sm font-medium text-text-primary mb-1",
151
- children: ["Quota ", /* @__PURE__ */ f("span", {
151
+ children: ["Quota ", /* @__PURE__ */ x("span", {
152
152
  className: "text-status-error-text",
153
153
  children: "*"
154
154
  })]
155
155
  }),
156
- q ? /* @__PURE__ */ f("div", { className: "h-10 bg-bg-sunken animate-pulse rounded-md" }) : /* @__PURE__ */ p(x, {
156
+ q ? /* @__PURE__ */ x("div", { className: "h-10 bg-bg-sunken animate-pulse rounded-md" }) : /* @__PURE__ */ S(g, {
157
157
  open: P,
158
158
  onOpenChange: (e) => {
159
159
  F(e), e || L("");
160
160
  },
161
- children: [/* @__PURE__ */ f(C, {
161
+ children: [/* @__PURE__ */ x(v, {
162
162
  asChild: !0,
163
- children: /* @__PURE__ */ p("button", {
163
+ children: /* @__PURE__ */ S("button", {
164
164
  id: "quotaId",
165
165
  type: "button",
166
166
  role: "combobox",
167
167
  "aria-expanded": P,
168
168
  "aria-required": "true",
169
169
  className: "w-full flex items-center justify-between gap-2 px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-left text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
170
- children: [/* @__PURE__ */ f("span", {
170
+ children: [/* @__PURE__ */ x("span", {
171
171
  className: X ? "truncate" : "truncate text-text-muted",
172
172
  children: X ? `${X.name} (${s(X)})` : "Select a quota…"
173
- }), /* @__PURE__ */ f(d, {
173
+ }), /* @__PURE__ */ x(b, {
174
174
  className: "size-4 shrink-0 text-text-muted",
175
175
  "aria-hidden": "true"
176
176
  })]
177
177
  })
178
- }), /* @__PURE__ */ f(S, {
178
+ }), /* @__PURE__ */ x(_, {
179
179
  align: "start",
180
180
  className: "w-[var(--radix-popover-trigger-width)] p-0",
181
- children: /* @__PURE__ */ p(h, {
181
+ children: /* @__PURE__ */ S(u, {
182
182
  shouldFilter: !1,
183
- children: [/* @__PURE__ */ f(_, {
183
+ children: [/* @__PURE__ */ x(f, {
184
184
  value: I,
185
185
  onValueChange: L,
186
186
  placeholder: "Search quotas by name or ID…"
187
- }), /* @__PURE__ */ p(y, { children: [/* @__PURE__ */ f(g, { children: "No matching quotas found." }), Q.map((e) => /* @__PURE__ */ p(v, {
187
+ }), /* @__PURE__ */ S(m, { children: [/* @__PURE__ */ x(d, { children: "No matching quotas found." }), Q.map((e) => /* @__PURE__ */ S(p, {
188
188
  value: e.id,
189
189
  onSelect: () => ee(e.id),
190
190
  children: [
191
- /* @__PURE__ */ f(u, {
191
+ /* @__PURE__ */ x(y, {
192
192
  className: `size-4 shrink-0 ${e.id === M ? "opacity-100" : "opacity-0"}`,
193
193
  "aria-hidden": "true"
194
194
  }),
195
- /* @__PURE__ */ f("span", {
195
+ /* @__PURE__ */ x("span", {
196
196
  className: "truncate",
197
197
  children: e.name
198
198
  }),
199
- /* @__PURE__ */ f("span", {
199
+ /* @__PURE__ */ x("span", {
200
200
  className: "ml-auto text-xs text-text-muted",
201
201
  children: s(e)
202
202
  })
@@ -205,7 +205,7 @@ var w = () => {
205
205
  })
206
206
  })]
207
207
  }),
208
- X && /* @__PURE__ */ p("p", {
208
+ X && /* @__PURE__ */ S("p", {
209
209
  className: "text-xs text-text-muted mt-1",
210
210
  children: [
211
211
  "Scope: ",
@@ -216,16 +216,16 @@ var w = () => {
216
216
  ]
217
217
  })
218
218
  ] }),
219
- Z && /* @__PURE__ */ p("div", { children: [
220
- /* @__PURE__ */ p("label", {
219
+ Z && /* @__PURE__ */ S("div", { children: [
220
+ /* @__PURE__ */ S("label", {
221
221
  htmlFor: "workspaceId",
222
222
  className: "block text-sm font-medium text-text-primary mb-1",
223
- children: ["Workspace ID ", /* @__PURE__ */ f("span", {
223
+ children: ["Workspace ID ", /* @__PURE__ */ x("span", {
224
224
  className: "text-text-secondary font-normal",
225
225
  children: "(optional)"
226
226
  })]
227
227
  }),
228
- /* @__PURE__ */ f("input", {
228
+ /* @__PURE__ */ x("input", {
229
229
  id: "workspaceId",
230
230
  type: "text",
231
231
  value: R,
@@ -233,19 +233,19 @@ var w = () => {
233
233
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-primary font-mono text-sm",
234
234
  placeholder: "e.g. ws_01jk3n2… (leave blank to auto-resolve)"
235
235
  }),
236
- /* @__PURE__ */ f("p", {
236
+ /* @__PURE__ */ x("p", {
237
237
  className: "text-xs text-text-secondary mt-1",
238
238
  children: "This quota is workspace-scoped. If blank, the first active workspace for this org is used automatically."
239
239
  })
240
240
  ] }),
241
- /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
241
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S("label", {
242
242
  htmlFor: "limit",
243
243
  className: "block text-sm font-medium text-text-primary mb-1",
244
- children: ["Limit ", /* @__PURE__ */ f("span", {
244
+ children: ["Limit ", /* @__PURE__ */ x("span", {
245
245
  className: "text-text-secondary font-normal",
246
246
  children: "(optional)"
247
247
  })]
248
- }), /* @__PURE__ */ f("input", {
248
+ }), /* @__PURE__ */ x("input", {
249
249
  id: "limit",
250
250
  type: "number",
251
251
  value: B,
@@ -253,16 +253,16 @@ var w = () => {
253
253
  className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
254
254
  placeholder: $ == null ? "Leave blank to use the quota default" : `Leave blank to use default (${$})`
255
255
  })] }),
256
- !Z && X && /* @__PURE__ */ p("div", { children: [
257
- /* @__PURE__ */ p("label", {
256
+ !Z && X && /* @__PURE__ */ S("div", { children: [
257
+ /* @__PURE__ */ S("label", {
258
258
  htmlFor: "durationDays",
259
259
  className: "block text-sm font-medium text-text-primary mb-1",
260
- children: ["Duration (days) ", /* @__PURE__ */ f("span", {
260
+ children: ["Duration (days) ", /* @__PURE__ */ x("span", {
261
261
  className: "text-text-secondary font-normal",
262
262
  children: "(optional)"
263
263
  })]
264
264
  }),
265
- /* @__PURE__ */ f("input", {
265
+ /* @__PURE__ */ x("input", {
266
266
  id: "durationDays",
267
267
  type: "number",
268
268
  min: 1,
@@ -271,25 +271,25 @@ var w = () => {
271
271
  className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
272
272
  placeholder: "Leave blank for 365 days"
273
273
  }),
274
- /* @__PURE__ */ f("p", {
274
+ /* @__PURE__ */ x("p", {
275
275
  className: "text-xs text-text-muted mt-1",
276
276
  children: "Ignored if this quota attaches to an existing subscription — it then expires with that subscription instead."
277
277
  })
278
278
  ] })
279
279
  ]
280
280
  }),
281
- W && /* @__PURE__ */ f("div", {
281
+ W && /* @__PURE__ */ x("div", {
282
282
  className: `mx-4 mb-4 p-3 rounded-lg border text-sm ${W.success ? "border-status-success-border bg-status-success-bg/10 text-status-success-text" : "border-status-error-border bg-status-error-bg/10 text-status-error-text"}`,
283
283
  children: W.message
284
284
  }),
285
- /* @__PURE__ */ p("div", {
285
+ /* @__PURE__ */ S("div", {
286
286
  className: "px-4 pb-4 flex items-center gap-3",
287
- children: [/* @__PURE__ */ f("button", {
287
+ children: [/* @__PURE__ */ x("button", {
288
288
  type: "submit",
289
289
  disabled: Y || !O || !A || !M,
290
290
  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 disabled:opacity-50 disabled:cursor-not-allowed",
291
291
  children: Y ? "Assigning…" : "Assign Quota for Free"
292
- }), /* @__PURE__ */ f("button", {
292
+ }), /* @__PURE__ */ x("button", {
293
293
  type: "button",
294
294
  onClick: () => {
295
295
  k(""), j(""), N(""), z(""), V(""), U(""), G(null);
@@ -301,7 +301,7 @@ var w = () => {
301
301
  ]
302
302
  })
303
303
  ]
304
- }) : /* @__PURE__ */ f(e, { message: T("billing.quotaAssignFree.noPermission", "You don't have permission to access this page.") });
304
+ }) : /* @__PURE__ */ x(e, { message: T("billing.quotaAssignFree.noPermission", "You don't have permission to access this page.") });
305
305
  };
306
306
  export { w as QuotaAssignFreePage };
307
307
 
@@ -3,6 +3,6 @@ import "../../subscriptions/hooks/index.js";
3
3
  import "../../../hooks/useBillingPermissions.js";
4
4
  import "../../../shared/utils/format.js";
5
5
  import "react";
6
+ import "@burdenoff/fe-libs/ui";
6
7
  import "react/jsx-runtime";
7
8
  import "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import "@burdenoff/fe-libs/ui";