@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
@@ -1,22 +1,22 @@
1
1
  import { formatCurrency as e } from "../../../shared/utils/format.js";
2
2
  import { categoryTokens as t, statusTokens as n } from "../../../shared/utils/tokens.js";
3
3
  import { useMemo as r } from "react";
4
- import { Blocks as i, Check as a, Coins as o, Minus as s, Package as c, Plus as l, Receipt as u, ShoppingCart as d, Trash2 as f } from "lucide-react";
5
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
6
- import { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- import { Accordion as _, AccordionContent as v, AccordionItem as y, AccordionTrigger as b } from "@burdenoff/fe-libs/ui";
4
+ import { Accordion as i, AccordionContent as a, AccordionItem as o, AccordionTrigger as s } from "@burdenoff/fe-libs/ui";
5
+ import { Blocks as c, Check as l, Coins as u, Minus as d, Package as f, Plus as p, Receipt as m, ShoppingCart as h, Trash2 as g } from "lucide-react";
6
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
7
+ import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
8
  // src/billing/modules/checkout/components/OrderSummary.tsx
9
9
  var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, taxType: E, total: D, currency: O, showInCredits: k = !1, creditsRequired: A = 0, isCalculatingTax: j = !1, onUpdateQuantity: M, onRemoveItem: N, isEditable: P = !0 }) => {
10
- let { t: F } = g(), I = (e, t) => {
10
+ let { t: F } = b(), I = (e, t) => {
11
11
  let n = F(e);
12
12
  return n === e ? t : n;
13
13
  }, L = (e) => {
14
14
  switch (e) {
15
- case "PLAN": return /* @__PURE__ */ m(c, { className: "size-5" });
16
- case "ADDON": return /* @__PURE__ */ m(i, { className: "size-5" });
17
- case "CREDITS": return /* @__PURE__ */ m(o, { className: "size-5" });
18
- case "ORDER": return /* @__PURE__ */ m(d, { className: "size-5" });
19
- default: return /* @__PURE__ */ m(c, { className: "size-5" });
15
+ case "PLAN": return /* @__PURE__ */ v(f, { className: "size-5" });
16
+ case "ADDON": return /* @__PURE__ */ v(c, { className: "size-5" });
17
+ case "CREDITS": return /* @__PURE__ */ v(u, { className: "size-5" });
18
+ case "ORDER": return /* @__PURE__ */ v(h, { className: "size-5" });
19
+ default: return /* @__PURE__ */ v(f, { className: "size-5" });
20
20
  }
21
21
  }, R = (e) => ({
22
22
  PLAN: {
@@ -58,18 +58,18 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
58
58
  }, W = (e) => {
59
59
  if (!e || e.length === 0) return null;
60
60
  let t = U(e);
61
- return /* @__PURE__ */ m("ul", {
61
+ return /* @__PURE__ */ v("ul", {
62
62
  className: "space-y-2",
63
- children: t.map((e) => /* @__PURE__ */ h("li", {
63
+ children: t.map((e) => /* @__PURE__ */ y("li", {
64
64
  className: "flex items-start gap-2",
65
- children: [/* @__PURE__ */ m(a, { className: `size-4 ${n.success.icon} shrink-0 mt-0.5` }), /* @__PURE__ */ h("div", {
65
+ children: [/* @__PURE__ */ v(l, { className: `size-4 ${n.success.icon} shrink-0 mt-0.5` }), /* @__PURE__ */ y("div", {
66
66
  className: "flex-1 min-w-0",
67
- children: [/* @__PURE__ */ m("span", {
67
+ children: [/* @__PURE__ */ v("span", {
68
68
  className: "text-sm text-text-primary",
69
69
  children: e.name
70
- }), e.limits && "value" in e.limits && /* @__PURE__ */ m("div", {
70
+ }), e.limits && "value" in e.limits && /* @__PURE__ */ v("div", {
71
71
  className: "mt-1 flex flex-wrap gap-1.5",
72
- children: /* @__PURE__ */ m("span", {
72
+ children: /* @__PURE__ */ v("span", {
73
73
  className: "inline-flex items-center text-xs px-1.5 py-0.5 rounded bg-bg-sunken text-text-secondary",
74
74
  children: H("value", e.limits.value)
75
75
  })
@@ -78,110 +78,110 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
78
78
  }, e.id))
79
79
  });
80
80
  };
81
- return /* @__PURE__ */ h("div", {
81
+ return /* @__PURE__ */ y("div", {
82
82
  className: "rounded-lg border border-border-subtle bg-bg-surface overflow-hidden",
83
83
  children: [
84
- /* @__PURE__ */ m("div", {
84
+ /* @__PURE__ */ v("div", {
85
85
  className: "px-4 py-3 border-b border-border-subtle bg-bg-sunken",
86
- children: /* @__PURE__ */ h("div", {
86
+ children: /* @__PURE__ */ y("div", {
87
87
  className: "flex items-center gap-2",
88
- children: [/* @__PURE__ */ m(u, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ m("h3", {
88
+ children: [/* @__PURE__ */ v(m, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ v("h3", {
89
89
  className: "font-semibold text-text-primary",
90
90
  children: I("billing.checkout.orderSummary", "Order Summary")
91
91
  })]
92
92
  })
93
93
  }),
94
- /* @__PURE__ */ m("div", {
94
+ /* @__PURE__ */ v("div", {
95
95
  className: "divide-y divide-border-subtle",
96
- children: x.length === 0 ? /* @__PURE__ */ h("div", {
96
+ children: x.length === 0 ? /* @__PURE__ */ y("div", {
97
97
  className: "p-6 text-center",
98
- children: [/* @__PURE__ */ m(c, { className: "mx-auto size-8 text-text-secondary" }), /* @__PURE__ */ m("p", {
98
+ children: [/* @__PURE__ */ v(f, { className: "mx-auto size-8 text-text-secondary" }), /* @__PURE__ */ v("p", {
99
99
  className: "mt-2 text-sm text-text-secondary",
100
100
  children: "No items in checkout"
101
101
  })]
102
102
  }) : x.map((e) => {
103
103
  let t = R(e.type), n = e.features && e.features.length > 0;
104
- return /* @__PURE__ */ m("div", {
104
+ return /* @__PURE__ */ v("div", {
105
105
  className: "p-4",
106
- children: /* @__PURE__ */ h("div", {
106
+ children: /* @__PURE__ */ y("div", {
107
107
  className: "flex items-start gap-3",
108
- children: [/* @__PURE__ */ m("div", {
108
+ children: [/* @__PURE__ */ v("div", {
109
109
  className: "p-2 rounded-lg bg-bg-sunken text-text-secondary shrink-0",
110
110
  children: L(e.type)
111
- }), /* @__PURE__ */ h("div", {
111
+ }), /* @__PURE__ */ y("div", {
112
112
  className: "flex-1 min-w-0",
113
113
  children: [
114
- /* @__PURE__ */ h("div", {
114
+ /* @__PURE__ */ y("div", {
115
115
  className: "flex items-center gap-2 flex-wrap",
116
- children: [/* @__PURE__ */ m("span", {
116
+ children: [/* @__PURE__ */ v("span", {
117
117
  className: "font-medium text-text-primary",
118
118
  children: e.name
119
- }), /* @__PURE__ */ m("span", {
119
+ }), /* @__PURE__ */ v("span", {
120
120
  className: `text-xs px-1.5 py-0.5 rounded ${t.className}`,
121
121
  children: t.label
122
122
  })]
123
123
  }),
124
- e.description && /* @__PURE__ */ m("p", {
124
+ e.description && /* @__PURE__ */ v("p", {
125
125
  className: "text-sm text-text-secondary mt-0.5 line-clamp-2",
126
126
  children: e.description
127
127
  }),
128
- /* @__PURE__ */ h("div", {
128
+ /* @__PURE__ */ y("div", {
129
129
  className: "flex items-center justify-between mt-3",
130
- children: [P && e.type !== "PLAN" ? /* @__PURE__ */ h("div", {
130
+ children: [P && e.type !== "PLAN" ? /* @__PURE__ */ y("div", {
131
131
  className: "flex items-center gap-2",
132
132
  children: [
133
- /* @__PURE__ */ m("button", {
133
+ /* @__PURE__ */ v("button", {
134
134
  type: "button",
135
135
  onClick: () => M?.(e.id, e.quantity - 1),
136
136
  disabled: e.quantity <= 1,
137
137
  className: "p-2 rounded border border-border-subtle hover:bg-bg-sunken disabled:opacity-50 disabled:cursor-not-allowed min-w-[36px] min-h-[36px] flex items-center justify-center",
138
138
  "aria-label": `Decrease ${e.name} quantity`,
139
- children: /* @__PURE__ */ m(s, { className: "size-3.5" })
139
+ children: /* @__PURE__ */ v(d, { className: "size-3.5" })
140
140
  }),
141
- /* @__PURE__ */ m("span", {
141
+ /* @__PURE__ */ v("span", {
142
142
  className: "w-8 text-center text-sm font-medium",
143
143
  children: e.quantity
144
144
  }),
145
- /* @__PURE__ */ m("button", {
145
+ /* @__PURE__ */ v("button", {
146
146
  type: "button",
147
147
  onClick: () => M?.(e.id, e.quantity + 1),
148
148
  className: "p-2 rounded border border-border-subtle hover:bg-bg-sunken min-w-[36px] min-h-[36px] flex items-center justify-center",
149
149
  "aria-label": `Increase ${e.name} quantity`,
150
- children: /* @__PURE__ */ m(l, { className: "size-3.5" })
150
+ children: /* @__PURE__ */ v(p, { className: "size-3.5" })
151
151
  })
152
152
  ]
153
- }) : /* @__PURE__ */ h("span", {
153
+ }) : /* @__PURE__ */ y("span", {
154
154
  className: "text-sm text-text-secondary",
155
155
  children: ["Qty: ", e.quantity]
156
- }), /* @__PURE__ */ h("div", {
156
+ }), /* @__PURE__ */ y("div", {
157
157
  className: "flex items-center gap-3",
158
- children: [/* @__PURE__ */ m("span", {
158
+ children: [/* @__PURE__ */ v("span", {
159
159
  className: "font-medium text-text-primary",
160
160
  children: V(e.price * e.quantity)
161
- }), P && N && /* @__PURE__ */ m("button", {
161
+ }), P && N && /* @__PURE__ */ v("button", {
162
162
  type: "button",
163
163
  onClick: () => N(e.id),
164
164
  className: "p-1.5 rounded text-text-secondary hover:text-status-error-text hover:bg-status-error-bg-subtle",
165
165
  "aria-label": `Remove ${e.name}`,
166
- children: /* @__PURE__ */ m(f, { className: "size-4" })
166
+ children: /* @__PURE__ */ v(g, { className: "size-4" })
167
167
  })]
168
168
  })]
169
169
  }),
170
170
  n && (() => {
171
171
  let t = U(e.features).length;
172
- return /* @__PURE__ */ m(_, {
172
+ return /* @__PURE__ */ v(i, {
173
173
  type: "single",
174
174
  collapsible: !0,
175
175
  className: "mt-3",
176
- children: /* @__PURE__ */ h(y, {
176
+ children: /* @__PURE__ */ y(o, {
177
177
  value: "features",
178
178
  className: "border-0",
179
- children: [/* @__PURE__ */ m(b, {
179
+ children: [/* @__PURE__ */ v(s, {
180
180
  className: "py-2 px-0 text-sm text-text-secondary hover:text-text-primary hover:no-underline",
181
- children: /* @__PURE__ */ h("span", {
181
+ children: /* @__PURE__ */ y("span", {
182
182
  className: "flex items-center gap-1.5",
183
183
  children: [
184
- /* @__PURE__ */ m(a, { className: "size-3.5" }),
184
+ /* @__PURE__ */ v(l, { className: "size-3.5" }),
185
185
  t,
186
186
  " ",
187
187
  t === 1 ? "feature" : "features",
@@ -189,7 +189,7 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
189
189
  "included"
190
190
  ]
191
191
  })
192
- }), /* @__PURE__ */ m(v, {
192
+ }), /* @__PURE__ */ v(a, {
193
193
  className: "pt-2 pb-0",
194
194
  children: W(e.features)
195
195
  })]
@@ -202,17 +202,17 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
202
202
  }, e.id);
203
203
  })
204
204
  }),
205
- x.length > 0 && /* @__PURE__ */ m("div", {
205
+ x.length > 0 && /* @__PURE__ */ v("div", {
206
206
  className: "border-t border-border-subtle bg-bg-sunken",
207
- children: /* @__PURE__ */ h("div", {
207
+ children: /* @__PURE__ */ y("div", {
208
208
  className: "p-4 space-y-2",
209
209
  children: [
210
- /* @__PURE__ */ h("div", {
210
+ /* @__PURE__ */ y("div", {
211
211
  className: "flex items-center justify-between text-sm",
212
- children: [/* @__PURE__ */ m("span", {
212
+ children: [/* @__PURE__ */ v("span", {
213
213
  className: "text-text-secondary",
214
214
  children: I("billing.checkout.subtotal", "Subtotal")
215
- }), /* @__PURE__ */ m("span", {
215
+ }), /* @__PURE__ */ v("span", {
216
216
  className: "text-text-primary",
217
217
  children: k ? `${A.toLocaleString(void 0, {
218
218
  minimumFractionDigits: 0,
@@ -220,28 +220,28 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
220
220
  })} Credits` : V(S)
221
221
  })]
222
222
  }),
223
- C > 0 && !k && /* @__PURE__ */ h("div", {
223
+ C > 0 && !k && /* @__PURE__ */ y("div", {
224
224
  className: "flex items-center justify-between text-sm",
225
- children: [/* @__PURE__ */ m("span", {
225
+ children: [/* @__PURE__ */ v("span", {
226
226
  className: n.success.text,
227
227
  children: "Discount"
228
- }), /* @__PURE__ */ h("span", {
228
+ }), /* @__PURE__ */ y("span", {
229
229
  className: n.success.text,
230
230
  children: ["-", V(C)]
231
231
  })]
232
232
  }),
233
- j ? /* @__PURE__ */ h("div", {
233
+ j ? /* @__PURE__ */ y("div", {
234
234
  className: "flex items-center justify-between text-sm",
235
- children: [/* @__PURE__ */ m("span", {
235
+ children: [/* @__PURE__ */ v("span", {
236
236
  className: "text-text-secondary",
237
237
  children: "Tax"
238
- }), /* @__PURE__ */ m("span", {
238
+ }), /* @__PURE__ */ v("span", {
239
239
  className: "text-text-secondary animate-pulse",
240
240
  children: "Calculating…"
241
241
  })]
242
- }) : w > 0 && T > 0 ? /* @__PURE__ */ h("div", {
242
+ }) : w > 0 && T > 0 ? /* @__PURE__ */ y("div", {
243
243
  className: "flex items-center justify-between text-sm",
244
- children: [/* @__PURE__ */ h("span", {
244
+ children: [/* @__PURE__ */ y("span", {
245
245
  className: "text-text-secondary",
246
246
  children: [
247
247
  E || "Tax",
@@ -249,18 +249,18 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
249
249
  (T * 100).toFixed(0),
250
250
  "%)"
251
251
  ]
252
- }), /* @__PURE__ */ m("span", {
252
+ }), /* @__PURE__ */ v("span", {
253
253
  className: "text-text-primary",
254
254
  children: V(w)
255
255
  })]
256
256
  }) : null,
257
- /* @__PURE__ */ m("div", { className: "border-t border-border-subtle my-2" }),
258
- k ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
257
+ /* @__PURE__ */ v("div", { className: "border-t border-border-subtle my-2" }),
258
+ k ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
259
259
  className: "flex items-center justify-between",
260
- children: [/* @__PURE__ */ m("span", {
260
+ children: [/* @__PURE__ */ v("span", {
261
261
  className: "font-semibold text-text-primary",
262
262
  children: I("billing.checkout.total", "Total")
263
- }), /* @__PURE__ */ h("span", {
263
+ }), /* @__PURE__ */ y("span", {
264
264
  className: "text-xl font-bold text-text-primary",
265
265
  children: [
266
266
  A.toLocaleString(void 0, {
@@ -271,15 +271,15 @@ var x = ({ items: x, subtotal: S, discountAmount: C, taxAmount: w, taxRate: T, t
271
271
  "Credits"
272
272
  ]
273
273
  })]
274
- }), /* @__PURE__ */ m("p", {
274
+ }), /* @__PURE__ */ v("p", {
275
275
  className: "text-xs text-center text-text-secondary pt-2",
276
276
  children: "Paying with account credits"
277
- })] }) : /* @__PURE__ */ m(p, { children: /* @__PURE__ */ h("div", {
277
+ })] }) : /* @__PURE__ */ v(_, { children: /* @__PURE__ */ y("div", {
278
278
  className: "flex items-center justify-between",
279
- children: [/* @__PURE__ */ h("span", {
279
+ children: [/* @__PURE__ */ y("span", {
280
280
  className: "font-semibold text-text-primary",
281
281
  children: ["Total in ", O]
282
- }), /* @__PURE__ */ m("span", {
282
+ }), /* @__PURE__ */ v("span", {
283
283
  className: "text-xl font-bold text-text-primary",
284
284
  children: e(D, O)
285
285
  })]