@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
@@ -12,10 +12,10 @@ import { useAddon as l, useAddonMutations as u } from "../hooks/useAddons.js";
12
12
  import { getPlanFeatureQuantity as d } from "../../../shared/utils/planFeatureQuantity.js";
13
13
  import { getDisplayPrice as f, useDefaultBillingCurrency as p } from "../../../hooks/useDefaultBillingCurrency.js";
14
14
  import { useMemo as m } from "react";
15
- import { useParams as h } from "react-router";
16
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
17
- import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
18
- import { EmphasisPanel as y, PagePurpose as b } from "@burdenoff/fe-libs/ui";
15
+ import { EmphasisPanel as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
16
+ import { useParams as _ } from "react-router";
17
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
18
+ import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
19
  // src/billing/modules/addons/pages/AddonDetailPage.tsx
20
20
  function x(e) {
21
21
  let t = /* @__PURE__ */ new Map();
@@ -32,66 +32,66 @@ function x(e) {
32
32
  return Array.from(t.values());
33
33
  }
34
34
  var S = () => {
35
- let { t: d } = v(), S = (e, t) => {
35
+ let { t: d } = b(), S = (e, t) => {
36
36
  let n = d(e);
37
37
  return n === e ? t : n;
38
- }, { addonId: C } = h(), w = r(), T = c(), E = p(), { addon: D, isLoading: O, error: k, refetch: A } = l(C), { toggleAddon: j, isToggling: M } = u(), N = m(() => x(D?.features || []), [D?.features]);
39
- return T.canViewAddons ? O ? /* @__PURE__ */ _("div", {
38
+ }, { addonId: C } = _(), w = r(), T = c(), E = p(), { addon: D, isLoading: O, error: k, refetch: A } = l(C), { toggleAddon: j, isToggling: M } = u(), N = m(() => x(D?.features || []), [D?.features]);
39
+ return T.canViewAddons ? O ? /* @__PURE__ */ y("div", {
40
40
  className: "space-y-6 p-6",
41
- children: [/* @__PURE__ */ g("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", {
41
+ children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ y("div", {
42
42
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
43
- children: [/* @__PURE__ */ g("div", {
43
+ children: [/* @__PURE__ */ v("div", {
44
44
  className: "lg:col-span-2 space-y-4",
45
45
  children: [
46
46
  1,
47
47
  2,
48
48
  3
49
- ].map((e) => /* @__PURE__ */ g("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
50
- }), /* @__PURE__ */ g("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
49
+ ].map((e) => /* @__PURE__ */ v("div", { className: "h-24 bg-bg-sunken animate-pulse rounded" }, e))
50
+ }), /* @__PURE__ */ v("div", { className: "h-64 bg-bg-sunken animate-pulse rounded" })]
51
51
  })]
52
- }) : k && s(k) ? /* @__PURE__ */ g("div", {
52
+ }) : k && s(k) ? /* @__PURE__ */ v("div", {
53
53
  className: "p-6",
54
- children: /* @__PURE__ */ g(n, {
54
+ children: /* @__PURE__ */ v(n, {
55
55
  title: S("billing.addons.serverUnavailable", "Server Unavailable"),
56
56
  message: S("billing.addons.serverUnavailableMessage", "Unable to load addon details. The server might be down or experiencing issues."),
57
57
  onRetry: () => A(),
58
58
  showRetry: !0
59
59
  })
60
- }) : D ? /* @__PURE__ */ _("div", {
60
+ }) : D ? /* @__PURE__ */ y("div", {
61
61
  className: "space-y-6 p-6",
62
62
  children: [
63
- /* @__PURE__ */ g(t, {
63
+ /* @__PURE__ */ v(t, {
64
64
  title: D.name,
65
65
  description: `${o(D.duration)} addon`
66
66
  }),
67
- /* @__PURE__ */ g(b, { children: S("billing.addons.detailPurpose", "A full breakdown of this add-on — its price and the extra quotas it grants on top of a subscription. Review it here to decide whether to add it, or (as an admin) to edit what it includes.") }),
68
- /* @__PURE__ */ _("div", {
67
+ /* @__PURE__ */ v(g, { children: S("billing.addons.detailPurpose", "A full breakdown of this add-on — its price and the extra quotas it grants on top of a subscription. Review it here to decide whether to add it, or (as an admin) to edit what it includes.") }),
68
+ /* @__PURE__ */ y("div", {
69
69
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
70
- children: [/* @__PURE__ */ _("div", {
70
+ children: [/* @__PURE__ */ y("div", {
71
71
  className: "lg:col-span-2 space-y-6",
72
- children: [/* @__PURE__ */ _(y, {
72
+ children: [/* @__PURE__ */ y(h, {
73
73
  className: "overflow-hidden p-0",
74
- children: [/* @__PURE__ */ g("div", {
74
+ children: [/* @__PURE__ */ v("div", {
75
75
  className: "p-4 border-b border-border-subtle",
76
- children: /* @__PURE__ */ g("h2", {
76
+ children: /* @__PURE__ */ v("h2", {
77
77
  className: "font-semibold text-text-primary",
78
78
  children: S("billing.addons.pricing", "Pricing")
79
79
  })
80
- }), /* @__PURE__ */ _("div", {
80
+ }), /* @__PURE__ */ y("div", {
81
81
  className: "p-6",
82
- children: [/* @__PURE__ */ _("div", {
82
+ children: [/* @__PURE__ */ y("div", {
83
83
  className: "flex items-baseline gap-2",
84
- children: [/* @__PURE__ */ g("span", {
84
+ children: [/* @__PURE__ */ v("span", {
85
85
  className: "text-4xl font-bold text-text-primary",
86
86
  children: (() => {
87
87
  let { price: e, currency: t } = f(D.price, D.currency, D.currencyPrices, E);
88
88
  return i(e, t);
89
89
  })()
90
- }), /* @__PURE__ */ _("span", {
90
+ }), /* @__PURE__ */ y("span", {
91
91
  className: "text-lg text-text-muted",
92
92
  children: ["/ ", a(D.duration)]
93
93
  })]
94
- }), /* @__PURE__ */ _("p", {
94
+ }), /* @__PURE__ */ y("p", {
95
95
  className: "text-sm text-text-muted mt-2",
96
96
  children: [
97
97
  S("billing.addons.billed", "Billed"),
@@ -100,11 +100,11 @@ var S = () => {
100
100
  ]
101
101
  })]
102
102
  })]
103
- }), /* @__PURE__ */ _("div", {
103
+ }), /* @__PURE__ */ y("div", {
104
104
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
105
- children: [/* @__PURE__ */ g("div", {
105
+ children: [/* @__PURE__ */ v("div", {
106
106
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
107
- children: /* @__PURE__ */ _("h2", {
107
+ children: /* @__PURE__ */ y("h2", {
108
108
  className: "font-semibold text-text-primary",
109
109
  children: [
110
110
  S("billing.addons.includedQuotas", "Included Quotas"),
@@ -113,44 +113,44 @@ var S = () => {
113
113
  ")"
114
114
  ]
115
115
  })
116
- }), /* @__PURE__ */ g("div", {
116
+ }), /* @__PURE__ */ v("div", {
117
117
  className: "p-4",
118
- children: N.length === 0 ? /* @__PURE__ */ g("p", {
118
+ children: N.length === 0 ? /* @__PURE__ */ v("p", {
119
119
  className: "text-sm text-text-muted py-4 text-center",
120
120
  children: S("billing.addons.noQuotas", "No quotas associated with this addon.")
121
- }) : /* @__PURE__ */ g("div", {
121
+ }) : /* @__PURE__ */ v("div", {
122
122
  className: "space-y-3",
123
- children: N.map((e) => /* @__PURE__ */ _("div", {
123
+ children: N.map((e) => /* @__PURE__ */ y("div", {
124
124
  className: "flex items-center justify-between p-3 border border-border-subtle rounded-lg bg-bg-sunken/20",
125
- children: [/* @__PURE__ */ _("div", {
125
+ children: [/* @__PURE__ */ y("div", {
126
126
  className: "flex items-center gap-3",
127
- children: [/* @__PURE__ */ g("div", {
127
+ children: [/* @__PURE__ */ v("div", {
128
128
  className: "size-8 rounded-full bg-[var(--color-accent-soft)] flex items-center justify-center",
129
- children: /* @__PURE__ */ g("svg", {
129
+ children: /* @__PURE__ */ v("svg", {
130
130
  className: "size-4 text-text-link",
131
131
  fill: "none",
132
132
  viewBox: "0 0 24 24",
133
133
  stroke: "currentColor",
134
- children: /* @__PURE__ */ g("path", {
134
+ children: /* @__PURE__ */ v("path", {
135
135
  strokeLinecap: "round",
136
136
  strokeLinejoin: "round",
137
137
  strokeWidth: 2,
138
138
  d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
139
139
  })
140
140
  })
141
- }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
141
+ }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
142
142
  className: "font-medium text-text-primary",
143
143
  children: e.name
144
- }), /* @__PURE__ */ _("p", {
144
+ }), /* @__PURE__ */ y("p", {
145
145
  className: "text-xs text-text-muted capitalize",
146
146
  children: ["Type: ", e.type]
147
147
  })] })]
148
- }), /* @__PURE__ */ _("div", {
148
+ }), /* @__PURE__ */ y("div", {
149
149
  className: "text-right",
150
- children: [/* @__PURE__ */ g("span", {
150
+ children: [/* @__PURE__ */ v("span", {
151
151
  className: "text-lg font-semibold text-status-success-text",
152
152
  children: e.totalValue.toLocaleString()
153
- }), /* @__PURE__ */ g("p", {
153
+ }), /* @__PURE__ */ v("p", {
154
154
  className: "text-xs text-text-muted",
155
155
  children: "total"
156
156
  })]
@@ -159,46 +159,46 @@ var S = () => {
159
159
  })
160
160
  })]
161
161
  })]
162
- }), /* @__PURE__ */ _("div", {
162
+ }), /* @__PURE__ */ y("div", {
163
163
  className: "space-y-6",
164
164
  children: [
165
- /* @__PURE__ */ _("div", {
165
+ /* @__PURE__ */ y("div", {
166
166
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
167
- children: [/* @__PURE__ */ g("div", {
167
+ children: [/* @__PURE__ */ v("div", {
168
168
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
169
- children: /* @__PURE__ */ g("h2", {
169
+ children: /* @__PURE__ */ v("h2", {
170
170
  className: "font-semibold text-text-primary",
171
171
  children: S("billing.addons.statusTitle", "Status")
172
172
  })
173
- }), /* @__PURE__ */ _("div", {
173
+ }), /* @__PURE__ */ y("div", {
174
174
  className: "p-4 space-y-4",
175
175
  children: [
176
- /* @__PURE__ */ _("div", {
176
+ /* @__PURE__ */ y("div", {
177
177
  className: "flex items-center justify-between",
178
- children: [/* @__PURE__ */ g("span", {
178
+ children: [/* @__PURE__ */ v("span", {
179
179
  className: "text-sm text-text-muted",
180
180
  children: S("billing.addons.status", "Status")
181
- }), /* @__PURE__ */ g("span", {
181
+ }), /* @__PURE__ */ v("span", {
182
182
  className: `px-2 py-1 text-xs font-medium rounded ${D.isActive ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-muted"}`,
183
183
  children: D.isActive ? "Active" : "Inactive"
184
184
  })]
185
185
  }),
186
- /* @__PURE__ */ _("div", {
186
+ /* @__PURE__ */ y("div", {
187
187
  className: "flex items-center justify-between",
188
- children: [/* @__PURE__ */ g("span", {
188
+ children: [/* @__PURE__ */ v("span", {
189
189
  className: "text-sm text-text-muted",
190
190
  children: S("billing.addons.currency", "Currency")
191
- }), /* @__PURE__ */ g("span", {
191
+ }), /* @__PURE__ */ v("span", {
192
192
  className: "text-sm font-medium text-text-primary",
193
193
  children: f(D.price, D.currency, D.currencyPrices, E).currency
194
194
  })]
195
195
  }),
196
- /* @__PURE__ */ _("div", {
196
+ /* @__PURE__ */ y("div", {
197
197
  className: "flex items-center justify-between",
198
- children: [/* @__PURE__ */ g("span", {
198
+ children: [/* @__PURE__ */ v("span", {
199
199
  className: "text-sm text-text-muted",
200
200
  children: S("billing.addons.billingLabel", "Billing")
201
- }), /* @__PURE__ */ g("span", {
201
+ }), /* @__PURE__ */ v("span", {
202
202
  className: "text-sm font-medium text-text-primary capitalize",
203
203
  children: D.duration
204
204
  })]
@@ -206,22 +206,22 @@ var S = () => {
206
206
  ]
207
207
  })]
208
208
  }),
209
- T.canManageAddons && /* @__PURE__ */ _("div", {
209
+ T.canManageAddons && /* @__PURE__ */ y("div", {
210
210
  className: "border border-border-seam rounded-card bg-bg-surface overflow-hidden shadow-[var(--shadow-elevation-1)]",
211
- children: [/* @__PURE__ */ g("div", {
211
+ children: [/* @__PURE__ */ v("div", {
212
212
  className: "p-4 border-b border-border-subtle bg-bg-sunken/30",
213
- children: /* @__PURE__ */ g("h2", {
213
+ children: /* @__PURE__ */ v("h2", {
214
214
  className: "font-semibold text-text-primary",
215
215
  children: S("billing.addons.actions", "Actions")
216
216
  })
217
- }), /* @__PURE__ */ _("div", {
217
+ }), /* @__PURE__ */ y("div", {
218
218
  className: "p-4 space-y-2",
219
- children: [/* @__PURE__ */ g("button", {
219
+ children: [/* @__PURE__ */ v("button", {
220
220
  type: "button",
221
221
  onClick: () => w(`/addons/${D.id}/edit`),
222
222
  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",
223
223
  children: "Edit Addon"
224
- }), /* @__PURE__ */ g("button", {
224
+ }), /* @__PURE__ */ v("button", {
225
225
  type: "button",
226
226
  onClick: async () => {
227
227
  try {
@@ -236,7 +236,7 @@ var S = () => {
236
236
  })]
237
237
  })]
238
238
  }),
239
- /* @__PURE__ */ g("button", {
239
+ /* @__PURE__ */ v("button", {
240
240
  type: "button",
241
241
  onClick: () => w("/addons"),
242
242
  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",
@@ -246,19 +246,19 @@ var S = () => {
246
246
  })]
247
247
  })
248
248
  ]
249
- }) : /* @__PURE__ */ g("div", {
249
+ }) : /* @__PURE__ */ v("div", {
250
250
  className: "flex items-center justify-center h-full min-h-[400px]",
251
- children: /* @__PURE__ */ _("div", {
251
+ children: /* @__PURE__ */ y("div", {
252
252
  className: "text-center space-y-4",
253
253
  children: [
254
- /* @__PURE__ */ g("div", {
254
+ /* @__PURE__ */ v("div", {
255
255
  className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
256
- children: /* @__PURE__ */ g("svg", {
256
+ children: /* @__PURE__ */ v("svg", {
257
257
  className: "size-6 text-text-muted",
258
258
  fill: "none",
259
259
  viewBox: "0 0 24 24",
260
260
  stroke: "currentColor",
261
- children: /* @__PURE__ */ g("path", {
261
+ children: /* @__PURE__ */ v("path", {
262
262
  strokeLinecap: "round",
263
263
  strokeLinejoin: "round",
264
264
  strokeWidth: 2,
@@ -266,15 +266,15 @@ var S = () => {
266
266
  })
267
267
  })
268
268
  }),
269
- /* @__PURE__ */ g("h2", {
269
+ /* @__PURE__ */ v("h2", {
270
270
  className: "text-lg font-semibold text-text-primary",
271
271
  children: S("billing.addons.addonNotFound", "Addon not found")
272
272
  }),
273
- /* @__PURE__ */ g("p", {
273
+ /* @__PURE__ */ v("p", {
274
274
  className: "text-sm text-text-muted",
275
275
  children: S("billing.addons.addonNotFoundMessage", "The addon you're looking for doesn't exist or has been removed.")
276
276
  }),
277
- /* @__PURE__ */ g("button", {
277
+ /* @__PURE__ */ v("button", {
278
278
  type: "button",
279
279
  onClick: () => w("/addons"),
280
280
  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",
@@ -282,7 +282,7 @@ var S = () => {
282
282
  })
283
283
  ]
284
284
  })
285
- }) : /* @__PURE__ */ g(e, { message: S("billing.addons.noViewPermission", "You don't have permission to view addon details.") });
285
+ }) : /* @__PURE__ */ v(e, { message: S("billing.addons.noViewPermission", "You don't have permission to view addon details.") });
286
286
  };
287
287
  export { S as AddonDetailPage };
288
288