@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
@@ -8,15 +8,15 @@ import "../../../shared/components/index.js";
8
8
  import { usePlan as u } from "../hooks/usePlans.js";
9
9
  import "../../../shared/utils/index.js";
10
10
  import { useMemo as d } from "react";
11
- import { useParams as f } from "react-router";
12
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
13
- import { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- import { EmphasisPanel as _, PagePurpose as v, ShowMore as y } from "@burdenoff/fe-libs/ui";
11
+ import { EmphasisPanel as f, PagePurpose as p, ShowMore as m } from "@burdenoff/fe-libs/ui";
12
+ import { useParams as h } from "react-router";
13
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
+ import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
15
15
  // src/billing/modules/plans/pages/PlanBrowseDetailPage.tsx
16
- var b = ({ when: e, collapsedHeight: t, children: n }) => e ? /* @__PURE__ */ m(y, {
16
+ var b = ({ when: e, collapsedHeight: t, children: n }) => e ? /* @__PURE__ */ _(m, {
17
17
  collapsedHeight: t,
18
18
  children: n
19
- }) : /* @__PURE__ */ m(p, { children: n });
19
+ }) : /* @__PURE__ */ _(g, { children: n });
20
20
  function x(e) {
21
21
  let t = /* @__PURE__ */ new Map();
22
22
  for (let n of e) {
@@ -35,115 +35,115 @@ function x(e) {
35
35
  return Array.from(t.values());
36
36
  }
37
37
  var S = () => {
38
- let { t: s } = g(), c = (e, t) => {
38
+ let { t: s } = y(), c = (e, t) => {
39
39
  let n = s(e);
40
40
  return n === e ? t : n;
41
- }, { planId: l } = f(), p = t(), { plan: y, isLoading: S, error: C, refetch: w } = u(l), T = d(() => x(y?.features || []), [y?.features]);
42
- return S ? /* @__PURE__ */ h("div", {
41
+ }, { planId: l } = h(), m = t(), { plan: g, isLoading: S, error: C, refetch: w } = u(l), T = d(() => x(g?.features || []), [g?.features]);
42
+ return S ? /* @__PURE__ */ v("div", {
43
43
  className: "space-y-6 px-6 lg:px-8 py-6",
44
- children: [/* @__PURE__ */ h("div", {
44
+ children: [/* @__PURE__ */ v("div", {
45
45
  className: "flex items-center gap-4",
46
- children: [/* @__PURE__ */ m("div", { className: "size-10 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ m("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" })]
47
- }), /* @__PURE__ */ h("div", {
46
+ children: [/* @__PURE__ */ _("div", { className: "size-10 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" })]
47
+ }), /* @__PURE__ */ v("div", {
48
48
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
49
- children: [/* @__PURE__ */ m("div", {
49
+ children: [/* @__PURE__ */ _("div", {
50
50
  className: "lg:col-span-2 space-y-6",
51
- children: /* @__PURE__ */ h("div", {
51
+ children: /* @__PURE__ */ v("div", {
52
52
  className: "border border-border-subtle rounded-lg p-6 space-y-4",
53
- children: [/* @__PURE__ */ m("div", { className: "h-6 w-32 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ m("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" })]
53
+ children: [/* @__PURE__ */ _("div", { className: "h-6 w-32 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-4 w-full bg-bg-sunken animate-pulse rounded" })]
54
54
  })
55
- }), /* @__PURE__ */ h("div", {
55
+ }), /* @__PURE__ */ v("div", {
56
56
  className: "border border-border-subtle rounded-lg p-6 space-y-4",
57
- children: [/* @__PURE__ */ m("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ m("div", { className: "h-10 w-full bg-bg-sunken animate-pulse rounded" })]
57
+ children: [/* @__PURE__ */ _("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ _("div", { className: "h-10 w-full bg-bg-sunken animate-pulse rounded" })]
58
58
  })]
59
59
  })]
60
- }) : C && o(C) ? /* @__PURE__ */ m("div", {
60
+ }) : C && o(C) ? /* @__PURE__ */ _("div", {
61
61
  className: "p-6",
62
- children: /* @__PURE__ */ m(e, {
62
+ children: /* @__PURE__ */ _(e, {
63
63
  title: c("billing.plans.serverUnavailable", "Server Unavailable"),
64
64
  message: c("billing.plans.unableToLoadPlanDetails", "Unable to load plan details."),
65
65
  onRetry: () => w(),
66
66
  showRetry: !0
67
67
  })
68
- }) : y ? /* @__PURE__ */ h("div", {
68
+ }) : g ? /* @__PURE__ */ v("div", {
69
69
  className: "space-y-6 px-6 lg:px-8 py-6",
70
- children: [/* @__PURE__ */ h("div", {
70
+ children: [/* @__PURE__ */ v("div", {
71
71
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
72
- children: [/* @__PURE__ */ h("div", {
72
+ children: [/* @__PURE__ */ v("div", {
73
73
  className: "flex items-start gap-4",
74
- children: [/* @__PURE__ */ m("button", {
74
+ children: [/* @__PURE__ */ _("button", {
75
75
  type: "button",
76
- onClick: () => p("/plans"),
76
+ onClick: () => m("/plans"),
77
77
  className: "p-2 -ml-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-button transition-colors",
78
- children: /* @__PURE__ */ m("svg", {
78
+ children: /* @__PURE__ */ _("svg", {
79
79
  className: "size-5",
80
80
  fill: "none",
81
81
  viewBox: "0 0 24 24",
82
82
  stroke: "currentColor",
83
- children: /* @__PURE__ */ m("path", {
83
+ children: /* @__PURE__ */ _("path", {
84
84
  strokeLinecap: "round",
85
85
  strokeLinejoin: "round",
86
86
  strokeWidth: 2,
87
87
  d: "M15 19l-7-7 7-7"
88
88
  })
89
89
  })
90
- }), /* @__PURE__ */ h("div", { children: [
91
- /* @__PURE__ */ m("h1", {
90
+ }), /* @__PURE__ */ v("div", { children: [
91
+ /* @__PURE__ */ _("h1", {
92
92
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
93
- children: y.name
93
+ children: g.name
94
94
  }),
95
- /* @__PURE__ */ h("p", {
95
+ /* @__PURE__ */ v("p", {
96
96
  className: "text-sm text-text-secondary mt-1",
97
- children: [i(y.duration), " billing plan"]
97
+ children: [i(g.duration), " billing plan"]
98
98
  }),
99
- /* @__PURE__ */ m(v, {
99
+ /* @__PURE__ */ _(p, {
100
100
  className: "mt-3",
101
101
  children: c("billing.plans.browseDetailPurpose", "Everything this plan includes — its price, billing period and the full list of features and quotas — so you can confirm it fits before subscribing. Hit Subscribe when you are ready to check out.")
102
102
  })
103
103
  ] })]
104
- }), /* @__PURE__ */ m("button", {
104
+ }), /* @__PURE__ */ _("button", {
105
105
  type: "button",
106
- onClick: () => p(`/checkout/${y.id}`),
106
+ onClick: () => m(`/checkout/${g.id}`),
107
107
  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",
108
108
  children: "Subscribe to Plan"
109
109
  })]
110
- }), /* @__PURE__ */ h("div", {
110
+ }), /* @__PURE__ */ v("div", {
111
111
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
112
- children: [/* @__PURE__ */ h("div", {
112
+ children: [/* @__PURE__ */ v("div", {
113
113
  className: "lg:col-span-2 space-y-6",
114
- children: [/* @__PURE__ */ h(_, {
114
+ children: [/* @__PURE__ */ v(f, {
115
115
  className: "overflow-hidden p-0",
116
- children: [/* @__PURE__ */ m("div", {
116
+ children: [/* @__PURE__ */ _("div", {
117
117
  className: "p-6 border-b border-border-seam",
118
- children: /* @__PURE__ */ m("h2", {
118
+ children: /* @__PURE__ */ _("h2", {
119
119
  className: "text-lg font-semibold text-text-primary",
120
120
  children: c("billing.plans.pricing", "Pricing")
121
121
  })
122
- }), /* @__PURE__ */ h("div", {
122
+ }), /* @__PURE__ */ v("div", {
123
123
  className: "p-6",
124
- children: [/* @__PURE__ */ h("div", {
124
+ children: [/* @__PURE__ */ v("div", {
125
125
  className: "flex items-baseline gap-1",
126
- children: [/* @__PURE__ */ m("span", {
126
+ children: [/* @__PURE__ */ _("span", {
127
127
  className: "text-4xl font-bold text-text-primary",
128
- children: n(y.price, y.currency)
129
- }), /* @__PURE__ */ h("span", {
128
+ children: n(g.price, g.currency)
129
+ }), /* @__PURE__ */ v("span", {
130
130
  className: "text-lg text-text-secondary",
131
- children: ["/ ", r(y.duration)]
131
+ children: ["/ ", r(g.duration)]
132
132
  })]
133
- }), /* @__PURE__ */ h("p", {
133
+ }), /* @__PURE__ */ v("p", {
134
134
  className: "text-sm text-text-secondary mt-2",
135
135
  children: [
136
136
  c("billing.plans.billed", "Billed"),
137
137
  " ",
138
- y.duration === "monthly" ? c("billing.plans.everyMonth", "every month") : c("billing.plans.annually", "annually")
138
+ g.duration === "monthly" ? c("billing.plans.everyMonth", "every month") : c("billing.plans.annually", "annually")
139
139
  ]
140
140
  })]
141
141
  })]
142
- }), /* @__PURE__ */ h("div", {
142
+ }), /* @__PURE__ */ v("div", {
143
143
  className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 overflow-hidden",
144
- children: [/* @__PURE__ */ m("div", {
144
+ children: [/* @__PURE__ */ _("div", {
145
145
  className: "p-6 border-b border-border-seam bg-bg-sunken",
146
- children: /* @__PURE__ */ h("h2", {
146
+ children: /* @__PURE__ */ v("h2", {
147
147
  className: "text-lg font-semibold text-text-primary",
148
148
  children: [
149
149
  c("billing.plans.featuresAndQuotas", "Features & Quotas"),
@@ -152,52 +152,52 @@ var S = () => {
152
152
  ")"
153
153
  ]
154
154
  })
155
- }), /* @__PURE__ */ m("div", {
155
+ }), /* @__PURE__ */ _("div", {
156
156
  className: "p-6",
157
- children: T.length === 0 ? /* @__PURE__ */ m("p", {
157
+ children: T.length === 0 ? /* @__PURE__ */ _("p", {
158
158
  className: "text-sm text-text-secondary",
159
159
  children: c("billing.plans.noFeatures", "No features configured for this plan.")
160
- }) : /* @__PURE__ */ m(b, {
160
+ }) : /* @__PURE__ */ _(b, {
161
161
  when: T.length > 4,
162
162
  collapsedHeight: 280,
163
- children: /* @__PURE__ */ m("ul", {
163
+ children: /* @__PURE__ */ _("ul", {
164
164
  className: "space-y-3",
165
- children: T.map((e) => /* @__PURE__ */ h("li", {
165
+ children: T.map((e) => /* @__PURE__ */ v("li", {
166
166
  className: "flex items-start gap-3 p-3 rounded-lg bg-bg-sunken",
167
- children: [/* @__PURE__ */ m("div", {
167
+ children: [/* @__PURE__ */ _("div", {
168
168
  className: "size-8 rounded-full bg-status-success-bg-subtle flex items-center justify-center shrink-0",
169
- children: /* @__PURE__ */ m("svg", {
169
+ children: /* @__PURE__ */ _("svg", {
170
170
  className: "size-4 text-status-success-text",
171
171
  fill: "none",
172
172
  viewBox: "0 0 24 24",
173
173
  stroke: "currentColor",
174
- children: /* @__PURE__ */ m("path", {
174
+ children: /* @__PURE__ */ _("path", {
175
175
  strokeLinecap: "round",
176
176
  strokeLinejoin: "round",
177
177
  strokeWidth: 2,
178
178
  d: "M5 13l4 4L19 7"
179
179
  })
180
180
  })
181
- }), /* @__PURE__ */ h("div", {
181
+ }), /* @__PURE__ */ v("div", {
182
182
  className: "flex-1",
183
- children: [/* @__PURE__ */ h("div", {
183
+ children: [/* @__PURE__ */ v("div", {
184
184
  className: "flex items-center justify-between",
185
- children: [/* @__PURE__ */ m("p", {
185
+ children: [/* @__PURE__ */ _("p", {
186
186
  className: "font-medium text-text-primary",
187
187
  children: e.name
188
- }), /* @__PURE__ */ h("span", {
188
+ }), /* @__PURE__ */ v("span", {
189
189
  className: "font-semibold text-text-primary",
190
- children: [a(e.totalValue, e.unit), e.perWorkspace && /* @__PURE__ */ h("span", {
190
+ children: [a(e.totalValue, e.unit), e.perWorkspace && /* @__PURE__ */ v("span", {
191
191
  className: "font-normal text-text-secondary",
192
192
  children: [" ", c("billing.plans.perWorkspace", "per workspace")]
193
193
  })]
194
194
  })]
195
- }), /* @__PURE__ */ h("div", {
195
+ }), /* @__PURE__ */ v("div", {
196
196
  className: "flex items-center gap-2 mt-1",
197
- children: [/* @__PURE__ */ h("span", {
197
+ children: [/* @__PURE__ */ v("span", {
198
198
  className: "text-sm text-text-secondary capitalize",
199
199
  children: ["Type: ", e.limitType]
200
- }), e.quotaType && /* @__PURE__ */ m("span", {
200
+ }), e.quotaType && /* @__PURE__ */ _("span", {
201
201
  className: "px-2 py-0.5 text-xs font-medium bg-bg-sunken text-text-secondary rounded",
202
202
  children: e.quotaType
203
203
  })]
@@ -208,87 +208,87 @@ var S = () => {
208
208
  })
209
209
  })]
210
210
  })]
211
- }), /* @__PURE__ */ h("div", {
211
+ }), /* @__PURE__ */ v("div", {
212
212
  className: "space-y-6 lg:sticky lg:top-6 lg:self-start",
213
- children: [/* @__PURE__ */ h("div", {
213
+ children: [/* @__PURE__ */ v("div", {
214
214
  className: "border border-border-seam rounded-card bg-bg-surface bg-accent-wash shadow-[var(--shadow-pop)] overflow-hidden",
215
- children: [/* @__PURE__ */ m("div", {
215
+ children: [/* @__PURE__ */ _("div", {
216
216
  className: "p-6 border-b border-border-seam bg-bg-sunken",
217
- children: /* @__PURE__ */ m("h2", {
217
+ children: /* @__PURE__ */ _("h2", {
218
218
  className: "text-lg font-semibold text-text-primary",
219
219
  children: c("billing.plans.subscribeTitle", "Subscribe")
220
220
  })
221
- }), /* @__PURE__ */ h("div", {
221
+ }), /* @__PURE__ */ v("div", {
222
222
  className: "p-6 space-y-4",
223
223
  children: [
224
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
224
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
225
225
  className: "text-sm text-text-secondary",
226
226
  children: c("billing.plans.price", "Price")
227
- }), /* @__PURE__ */ h("p", {
227
+ }), /* @__PURE__ */ v("p", {
228
228
  className: "text-sm font-medium text-text-primary mt-0.5",
229
229
  children: [
230
- n(y.price, y.currency),
230
+ n(g.price, g.currency),
231
231
  " / ",
232
- r(y.duration)
232
+ r(g.duration)
233
233
  ]
234
234
  })] }),
235
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
235
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
236
236
  className: "text-sm text-text-secondary",
237
237
  children: c("billing.plans.billingPeriod", "Billing Period")
238
- }), /* @__PURE__ */ m("p", {
238
+ }), /* @__PURE__ */ _("p", {
239
239
  className: "text-sm text-text-primary mt-0.5",
240
- children: i(y.duration)
240
+ children: i(g.duration)
241
241
  })] }),
242
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
242
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
243
243
  className: "text-sm text-text-secondary",
244
244
  children: c("billing.plans.maxWorkspaces", "Max Workspaces")
245
- }), /* @__PURE__ */ h("p", {
245
+ }), /* @__PURE__ */ v("p", {
246
246
  className: "text-sm font-medium text-text-primary mt-0.5",
247
247
  children: [
248
- y.maxWorkspaces ?? 1,
248
+ g.maxWorkspaces ?? 1,
249
249
  " ",
250
- (y.maxWorkspaces ?? 1) === 1 ? c("billing.plans.workspaceSingular", "workspace") : c("billing.plans.workspacePlural", "workspaces")
250
+ (g.maxWorkspaces ?? 1) === 1 ? c("billing.plans.workspaceSingular", "workspace") : c("billing.plans.workspacePlural", "workspaces")
251
251
  ]
252
252
  })] }),
253
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
253
+ /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
254
254
  className: "text-sm text-text-secondary",
255
255
  children: c("billing.plans.quotasIncluded", "Quotas Included")
256
- }), /* @__PURE__ */ m("p", {
256
+ }), /* @__PURE__ */ _("p", {
257
257
  className: "text-sm font-medium text-text-primary mt-0.5",
258
258
  children: T.length
259
259
  })] }),
260
- /* @__PURE__ */ m("button", {
260
+ /* @__PURE__ */ _("button", {
261
261
  type: "button",
262
- onClick: () => p(`/checkout/${y.id}`),
262
+ onClick: () => m(`/checkout/${g.id}`),
263
263
  className: "w-full px-4 py-2.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
264
264
  children: "Subscribe to Plan"
265
265
  })
266
266
  ]
267
267
  })]
268
- }), /* @__PURE__ */ m("button", {
268
+ }), /* @__PURE__ */ _("button", {
269
269
  type: "button",
270
- onClick: () => p("/plans"),
270
+ onClick: () => m("/plans"),
271
271
  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",
272
272
  children: "Back to Plans"
273
273
  })]
274
274
  })]
275
275
  })]
276
- }) : /* @__PURE__ */ m("div", {
276
+ }) : /* @__PURE__ */ _("div", {
277
277
  className: "flex items-center justify-center h-full min-h-[400px]",
278
- children: /* @__PURE__ */ h("div", {
278
+ children: /* @__PURE__ */ v("div", {
279
279
  className: "text-center space-y-4",
280
280
  children: [
281
- /* @__PURE__ */ m("h2", {
281
+ /* @__PURE__ */ _("h2", {
282
282
  className: "text-lg font-semibold text-text-primary",
283
283
  children: c("billing.plans.planNotFound", "Plan not found")
284
284
  }),
285
- /* @__PURE__ */ m("p", {
285
+ /* @__PURE__ */ _("p", {
286
286
  className: "text-sm text-text-secondary",
287
287
  children: C?.message || c("billing.plans.planNotFoundMessage", "The plan you are looking for does not exist.")
288
288
  }),
289
- /* @__PURE__ */ m("button", {
289
+ /* @__PURE__ */ _("button", {
290
290
  type: "button",
291
- onClick: () => p("/plans"),
291
+ onClick: () => m("/plans"),
292
292
  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",
293
293
  children: "Back to Plans"
294
294
  })