@burdenoff/microfe-billing 2026.1113.1 → 2026.1113.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/billing/BillingRoot.js +83 -77
  2. package/dist/billing/BillingRoot.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
  4. package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
  5. package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
  6. package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
  7. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
  8. package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
  9. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
  10. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  11. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
  12. package/dist/billing/modules/billing/hooks/index.js +5 -5
  13. package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
  14. package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
  15. package/dist/billing/modules/billing/index.js +14 -14
  16. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
  17. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
  18. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  19. package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
  20. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
  21. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
  22. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
  23. package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
  24. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  25. package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
  26. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  27. package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
  28. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  29. package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
  30. package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
  31. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  32. package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
  33. package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
  34. package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
  35. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
  36. package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
  37. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  38. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
  39. package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
  40. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
  41. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
  42. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +144 -144
  43. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  44. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  46. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  49. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  51. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  52. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  53. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  54. package/dist/billing/modules/earnings/pages/EarningsPage.js +102 -102
  55. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  56. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  57. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  58. package/dist/billing/modules/earnings/pages/PayoutsPage.js +107 -107
  59. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  60. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  61. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  62. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  63. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  64. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  65. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  66. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +143 -143
  67. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  68. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  69. package/dist/billing/modules/plans/utils/planAction.d.ts +9 -0
  70. package/dist/billing/modules/plans/utils/planAction.js +4 -1
  71. package/dist/billing/modules/plans/utils/planAction.js.map +1 -1
  72. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  73. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  74. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  75. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  76. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  77. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  78. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  79. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  80. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  81. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  82. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  83. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  84. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  85. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  86. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  87. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  88. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  89. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  90. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  91. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  92. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  93. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  94. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  95. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  96. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  97. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  98. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  99. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  100. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  101. package/dist/billing/shared/components/EmptyState.js +3 -3
  102. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  103. package/dist/billing/shared/ui/MetricCard.js +13 -13
  104. package/dist/billing/shared/utils/format.js +16 -4
  105. package/dist/billing/shared/utils/format.js.map +1 -1
  106. package/dist/billing/shared/utils/index.js +8 -8
  107. package/dist/generated/global-operations.js +294 -286
  108. package/dist/generated/global-operations.js.map +1 -1
  109. package/package.json +2 -2
@@ -10,11 +10,11 @@ import { useAddon as c } from "../hooks/useAddons.js";
10
10
  import { useAddonPurchaseEligibility as l } from "../hooks/useAddonPurchaseEligibility.js";
11
11
  import "../../../shared/utils/index.js";
12
12
  import { useMemo as u } from "react";
13
- import { Lock as d, Minus as f, Plus as p, ShoppingCart as m, Trash2 as h } from "lucide-react";
14
- import { useParams as g } from "react-router";
15
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
16
- import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
17
- import { EmphasisPanel as b, PagePurpose as x } from "@burdenoff/fe-libs/ui";
13
+ import { EmphasisPanel as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
14
+ import { Lock as p, Minus as m, Plus as h, ShoppingCart as g, Trash2 as _ } from "lucide-react";
15
+ import { useParams as v } from "react-router";
16
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
17
+ import { useI18n as x } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
18
  // src/billing/modules/addons/pages/AddonBrowseDetailPage.tsx
19
19
  function S(e) {
20
20
  let t = /* @__PURE__ */ new Map();
@@ -31,63 +31,63 @@ function S(e) {
31
31
  return Array.from(t.values());
32
32
  }
33
33
  var C = () => {
34
- let { t: C } = y(), w = (e, t) => {
34
+ let { t: C } = x(), w = (e, t) => {
35
35
  let n = C(e);
36
36
  return n === e ? t : n;
37
- }, { addonId: T } = g(), E = n(), { addon: D, isLoading: O, error: k, refetch: A } = c(T), { addToCart: j, removeFromCart: M, updateQuantity: N, isInCart: P, getCartItem: F } = s(), I = u(() => S(D?.features || []), [D?.features]), L = D ? P(D.id) : !1, R = (D ? F(D.id) : void 0)?.quantity || 0, z = u(() => D ? [D.id] : [], [D]), { isBlocked: B } = l(z), V = D ? B(D.id) : !1;
38
- return O ? /* @__PURE__ */ v("div", {
37
+ }, { addonId: T } = v(), E = n(), { addon: D, isLoading: O, error: k, refetch: A } = c(T), { addToCart: j, removeFromCart: M, updateQuantity: N, isInCart: P, getCartItem: F } = s(), I = u(() => S(D?.features || []), [D?.features]), L = D ? P(D.id) : !1, R = (D ? F(D.id) : void 0)?.quantity || 0, z = u(() => D ? [D.id] : [], [D]), { isBlocked: B } = l(z), V = D ? B(D.id) : !1;
38
+ return O ? /* @__PURE__ */ b("div", {
39
39
  className: "space-y-6 p-6",
40
- children: [/* @__PURE__ */ _("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ v("div", {
40
+ children: [/* @__PURE__ */ y("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ b("div", {
41
41
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
42
- children: [/* @__PURE__ */ _("div", {
42
+ children: [/* @__PURE__ */ y("div", {
43
43
  className: "lg:col-span-2 space-y-4",
44
44
  children: [
45
45
  1,
46
46
  2,
47
47
  3
48
- ].map((e) => /* @__PURE__ */ _("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
49
- }), /* @__PURE__ */ _("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
48
+ ].map((e) => /* @__PURE__ */ y("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
49
+ }), /* @__PURE__ */ y("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
50
50
  })]
51
- }) : k && o(k) ? /* @__PURE__ */ _("div", {
51
+ }) : k && o(k) ? /* @__PURE__ */ y("div", {
52
52
  className: "p-6",
53
- children: /* @__PURE__ */ _(t, {
53
+ children: /* @__PURE__ */ y(t, {
54
54
  title: w("billing.addons.serverUnavailable", "Server Unavailable"),
55
55
  message: w("billing.addons.unableToLoadAddonDetails", "Unable to load addon details."),
56
56
  onRetry: () => A(),
57
57
  showRetry: !0
58
58
  })
59
- }) : D ? /* @__PURE__ */ v("div", {
59
+ }) : D ? /* @__PURE__ */ b("div", {
60
60
  className: "space-y-6 p-6",
61
61
  children: [
62
- /* @__PURE__ */ _(e, {
62
+ /* @__PURE__ */ y(e, {
63
63
  title: D.name,
64
64
  description: `${a(D.duration)} addon`
65
65
  }),
66
- /* @__PURE__ */ _(x, { children: w("billing.addons.browseDetailPurpose", "See exactly what this add-on costs and the extra capacity it gives you on top of your plan before you buy it. Add it to your cart from here when it fits your needs.") }),
67
- /* @__PURE__ */ v("div", {
66
+ /* @__PURE__ */ y(f, { children: w("billing.addons.browseDetailPurpose", "See exactly what this add-on costs and the extra capacity it gives you on top of your plan before you buy it. Add it to your cart from here when it fits your needs.") }),
67
+ /* @__PURE__ */ b("div", {
68
68
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
69
- children: [/* @__PURE__ */ v("div", {
69
+ children: [/* @__PURE__ */ b("div", {
70
70
  className: "lg:col-span-2 space-y-6",
71
- children: [/* @__PURE__ */ v(b, {
71
+ children: [/* @__PURE__ */ b(d, {
72
72
  className: "overflow-hidden p-0",
73
- children: [/* @__PURE__ */ _("div", {
73
+ children: [/* @__PURE__ */ y("div", {
74
74
  className: "p-4 border-b border-border-subtle",
75
- children: /* @__PURE__ */ _("h2", {
75
+ children: /* @__PURE__ */ y("h2", {
76
76
  className: "font-semibold text-text-primary",
77
77
  children: w("billing.addons.pricing", "Pricing")
78
78
  })
79
- }), /* @__PURE__ */ v("div", {
79
+ }), /* @__PURE__ */ b("div", {
80
80
  className: "p-6",
81
- children: [/* @__PURE__ */ v("div", {
81
+ children: [/* @__PURE__ */ b("div", {
82
82
  className: "flex items-baseline gap-2",
83
- children: [/* @__PURE__ */ _("span", {
83
+ children: [/* @__PURE__ */ y("span", {
84
84
  className: "text-4xl font-bold text-text-primary",
85
85
  children: r(D.price, D.currency)
86
- }), /* @__PURE__ */ v("span", {
86
+ }), /* @__PURE__ */ b("span", {
87
87
  className: "text-lg text-text-secondary",
88
88
  children: ["/ ", i(D.duration)]
89
89
  })]
90
- }), /* @__PURE__ */ v("p", {
90
+ }), /* @__PURE__ */ b("p", {
91
91
  className: "text-sm text-text-secondary mt-2",
92
92
  children: [
93
93
  w("billing.addons.billed", "Billed"),
@@ -96,11 +96,11 @@ var C = () => {
96
96
  ]
97
97
  })]
98
98
  })]
99
- }), /* @__PURE__ */ v("div", {
99
+ }), /* @__PURE__ */ b("div", {
100
100
  className: "border border-border-subtle rounded-lg bg-bg-surface overflow-hidden",
101
- children: [/* @__PURE__ */ _("div", {
101
+ children: [/* @__PURE__ */ y("div", {
102
102
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
103
- children: /* @__PURE__ */ v("h2", {
103
+ children: /* @__PURE__ */ b("h2", {
104
104
  className: "font-semibold text-text-primary",
105
105
  children: [
106
106
  w("billing.addons.includedQuotas", "Included Quotas"),
@@ -109,44 +109,44 @@ var C = () => {
109
109
  ")"
110
110
  ]
111
111
  })
112
- }), /* @__PURE__ */ _("div", {
112
+ }), /* @__PURE__ */ y("div", {
113
113
  className: "p-4",
114
- children: I.length === 0 ? /* @__PURE__ */ _("p", {
114
+ children: I.length === 0 ? /* @__PURE__ */ y("p", {
115
115
  className: "text-sm text-text-secondary py-4 text-center",
116
116
  children: w("billing.addons.noQuotas", "No quotas associated with this addon.")
117
- }) : /* @__PURE__ */ _("div", {
117
+ }) : /* @__PURE__ */ y("div", {
118
118
  className: "space-y-3",
119
- children: I.map((e) => /* @__PURE__ */ v("div", {
119
+ children: I.map((e) => /* @__PURE__ */ b("div", {
120
120
  className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg bg-bg-sunken/20",
121
- children: [/* @__PURE__ */ v("div", {
121
+ children: [/* @__PURE__ */ b("div", {
122
122
  className: "flex items-center gap-3",
123
- children: [/* @__PURE__ */ _("div", {
123
+ children: [/* @__PURE__ */ y("div", {
124
124
  className: "size-8 rounded-full bg-action-primary-bg/10 flex items-center justify-center",
125
- children: /* @__PURE__ */ _("svg", {
125
+ children: /* @__PURE__ */ y("svg", {
126
126
  className: "size-4 text-primary",
127
127
  fill: "none",
128
128
  viewBox: "0 0 24 24",
129
129
  stroke: "currentColor",
130
- children: /* @__PURE__ */ _("path", {
130
+ children: /* @__PURE__ */ y("path", {
131
131
  strokeLinecap: "round",
132
132
  strokeLinejoin: "round",
133
133
  strokeWidth: 2,
134
134
  d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
135
135
  })
136
136
  })
137
- }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
137
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
138
138
  className: "font-medium text-text-primary",
139
139
  children: e.name
140
- }), /* @__PURE__ */ v("p", {
140
+ }), /* @__PURE__ */ b("p", {
141
141
  className: "text-xs text-text-secondary capitalize",
142
142
  children: ["Type: ", e.type]
143
143
  })] })]
144
- }), /* @__PURE__ */ v("div", {
144
+ }), /* @__PURE__ */ b("div", {
145
145
  className: "text-right",
146
- children: [/* @__PURE__ */ _("span", {
146
+ children: [/* @__PURE__ */ y("span", {
147
147
  className: "text-lg font-semibold text-status-success-text",
148
148
  children: e.totalValue.toLocaleString()
149
- }), /* @__PURE__ */ _("p", {
149
+ }), /* @__PURE__ */ y("p", {
150
150
  className: "text-xs text-text-secondary",
151
151
  children: "total"
152
152
  })]
@@ -155,25 +155,25 @@ var C = () => {
155
155
  })
156
156
  })]
157
157
  })]
158
- }), /* @__PURE__ */ v("div", {
158
+ }), /* @__PURE__ */ b("div", {
159
159
  className: "space-y-6",
160
- children: [/* @__PURE__ */ v("div", {
160
+ children: [/* @__PURE__ */ b("div", {
161
161
  className: "border border-border-subtle rounded-lg bg-bg-surface overflow-hidden",
162
- children: [/* @__PURE__ */ _("div", {
162
+ children: [/* @__PURE__ */ y("div", {
163
163
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
164
- children: /* @__PURE__ */ _("h2", {
164
+ children: /* @__PURE__ */ y("h2", {
165
165
  className: "font-semibold text-text-primary",
166
166
  children: w("billing.addons.purchase", "Purchase")
167
167
  })
168
- }), /* @__PURE__ */ v("div", {
168
+ }), /* @__PURE__ */ b("div", {
169
169
  className: "p-4 space-y-4",
170
170
  children: [
171
- /* @__PURE__ */ v("div", {
171
+ /* @__PURE__ */ b("div", {
172
172
  className: "flex items-center justify-between",
173
- children: [/* @__PURE__ */ _("span", {
173
+ children: [/* @__PURE__ */ y("span", {
174
174
  className: "text-sm text-text-secondary",
175
175
  children: w("billing.addons.price", "Price")
176
- }), /* @__PURE__ */ v("span", {
176
+ }), /* @__PURE__ */ b("span", {
177
177
  className: "text-sm font-medium text-text-primary",
178
178
  children: [
179
179
  r(D.price, D.currency),
@@ -183,80 +183,80 @@ var C = () => {
183
183
  ]
184
184
  })]
185
185
  }),
186
- /* @__PURE__ */ v("div", {
186
+ /* @__PURE__ */ b("div", {
187
187
  className: "flex items-center justify-between",
188
- children: [/* @__PURE__ */ _("span", {
188
+ children: [/* @__PURE__ */ y("span", {
189
189
  className: "text-sm text-text-secondary",
190
190
  children: w("billing.addons.billingLabel", "Billing")
191
- }), /* @__PURE__ */ _("span", {
191
+ }), /* @__PURE__ */ y("span", {
192
192
  className: "text-sm font-medium text-text-primary capitalize",
193
193
  children: D.duration
194
194
  })]
195
195
  }),
196
- /* @__PURE__ */ _("div", {
196
+ /* @__PURE__ */ y("div", {
197
197
  className: "pt-2 space-y-2",
198
- children: L ? /* @__PURE__ */ v("div", {
198
+ children: L ? /* @__PURE__ */ b("div", {
199
199
  className: "space-y-2",
200
- children: [/* @__PURE__ */ v("div", {
200
+ children: [/* @__PURE__ */ b("div", {
201
201
  className: "flex items-center justify-between gap-2",
202
- children: [/* @__PURE__ */ v("div", {
202
+ children: [/* @__PURE__ */ b("div", {
203
203
  className: "flex items-center gap-1",
204
204
  children: [
205
- /* @__PURE__ */ _("button", {
205
+ /* @__PURE__ */ y("button", {
206
206
  type: "button",
207
207
  onClick: () => N(D.id, R - 1),
208
208
  className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
209
- children: /* @__PURE__ */ _(f, { className: "size-4" })
209
+ children: /* @__PURE__ */ y(m, { className: "size-4" })
210
210
  }),
211
- /* @__PURE__ */ _("span", {
211
+ /* @__PURE__ */ y("span", {
212
212
  className: "w-10 text-center font-medium",
213
213
  children: R
214
214
  }),
215
- /* @__PURE__ */ _("button", {
215
+ /* @__PURE__ */ y("button", {
216
216
  type: "button",
217
217
  onClick: () => N(D.id, R + 1),
218
218
  className: "p-1.5 rounded border border-border-subtle hover:bg-bg-sunken transition-colors",
219
- children: /* @__PURE__ */ _(p, { className: "size-4" })
219
+ children: /* @__PURE__ */ y(h, { className: "size-4" })
220
220
  })
221
221
  ]
222
- }), /* @__PURE__ */ _("button", {
222
+ }), /* @__PURE__ */ y("button", {
223
223
  type: "button",
224
224
  onClick: () => M(D.id),
225
225
  className: "p-1.5 rounded text-status-error-text hover:bg-status-error-bg/10 transition-colors",
226
226
  title: "Remove from cart",
227
- children: /* @__PURE__ */ _(h, { className: "size-4" })
227
+ children: /* @__PURE__ */ y(_, { className: "size-4" })
228
228
  })]
229
- }), /* @__PURE__ */ _("button", {
229
+ }), /* @__PURE__ */ y("button", {
230
230
  type: "button",
231
231
  onClick: () => E("/checkout/addons"),
232
232
  className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
233
233
  children: "Proceed to Checkout"
234
234
  })]
235
- }) : V ? /* @__PURE__ */ v("div", {
235
+ }) : V ? /* @__PURE__ */ b("div", {
236
236
  className: "space-y-3",
237
237
  "data-testid": "addon-paid-plan-required",
238
- children: [/* @__PURE__ */ v("p", {
238
+ children: [/* @__PURE__ */ b("p", {
239
239
  className: "flex items-start gap-2 text-sm text-text-secondary",
240
- children: [/* @__PURE__ */ _(d, {
240
+ children: [/* @__PURE__ */ y(p, {
241
241
  className: "mt-0.5 size-4 shrink-0 text-status-warning-text",
242
242
  "aria-hidden": "true"
243
243
  }), w("billing.addons.paidPlanRequiredBody", "Add-ons extend a paid subscription. You are on the Free plan for this product, so upgrade to a paid plan first, then come back to add extra capacity.")]
244
- }), /* @__PURE__ */ _("button", {
244
+ }), /* @__PURE__ */ y("button", {
245
245
  type: "button",
246
246
  onClick: () => E("/plans"),
247
247
  className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
248
248
  children: w("billing.addons.viewPlans", "View plans")
249
249
  })]
250
- }) : /* @__PURE__ */ v("button", {
250
+ }) : /* @__PURE__ */ b("button", {
251
251
  type: "button",
252
252
  onClick: () => j(D),
253
253
  className: "w-full px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors flex items-center justify-center gap-2",
254
- children: [/* @__PURE__ */ _(m, { className: "size-4" }), "Add to Cart"]
254
+ children: [/* @__PURE__ */ y(g, { className: "size-4" }), "Add to Cart"]
255
255
  })
256
256
  })
257
257
  ]
258
258
  })]
259
- }), /* @__PURE__ */ _("button", {
259
+ }), /* @__PURE__ */ y("button", {
260
260
  type: "button",
261
261
  onClick: () => E("/addons"),
262
262
  className: "w-full px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-md hover:bg-bg-sunken transition-colors",
@@ -265,20 +265,20 @@ var C = () => {
265
265
  })]
266
266
  })
267
267
  ]
268
- }) : /* @__PURE__ */ _("div", {
268
+ }) : /* @__PURE__ */ y("div", {
269
269
  className: "flex items-center justify-center h-full min-h-[400px]",
270
- children: /* @__PURE__ */ v("div", {
270
+ children: /* @__PURE__ */ b("div", {
271
271
  className: "text-center space-y-4",
272
272
  children: [
273
- /* @__PURE__ */ _("h2", {
273
+ /* @__PURE__ */ y("h2", {
274
274
  className: "text-lg font-semibold text-text-primary",
275
275
  children: w("billing.addons.addonNotFound", "Addon not found")
276
276
  }),
277
- /* @__PURE__ */ _("p", {
277
+ /* @__PURE__ */ y("p", {
278
278
  className: "text-sm text-text-secondary",
279
279
  children: w("billing.addons.addonNotFoundMessage", "The addon you're looking for doesn't exist or has been removed.")
280
280
  }),
281
- /* @__PURE__ */ _("button", {
281
+ /* @__PURE__ */ y("button", {
282
282
  type: "button",
283
283
  onClick: () => E("/addons"),
284
284
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",