@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
@@ -12,17 +12,17 @@ import "../../../shared/utils/index.js";
12
12
  import { getCreditTransactionStatusColor as d, getStatusBadgeClasses as f } from "../../../shared/utils/status.js";
13
13
  import { useGetBillingAccountQuery as p } from "../../../../generated/global-operations.js";
14
14
  import { useState as m } from "react";
15
- import { ArrowLeft as h, Calendar as g, CheckCircle as _, ChevronLeft as v, ChevronRight as y, Coins as b, CreditCard as x, FileText as S, Mail as C, Minus as w, Plus as T, XCircle as E } from "lucide-react";
16
- import { useParams as D } from "react-router";
17
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
18
- import { useI18n as A } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
19
- import { EmphasisPanel as j, IllustratedEmptyState as M, PagePurpose as N } from "@burdenoff/fe-libs/ui";
15
+ import { EmphasisPanel as h, IllustratedEmptyState as g, PagePurpose as _ } from "@burdenoff/fe-libs/ui";
16
+ import { ArrowLeft as v, Calendar as y, CheckCircle as b, ChevronLeft as x, ChevronRight as S, Coins as C, CreditCard as w, FileText as T, Mail as E, Minus as D, Plus as O, XCircle as k } from "lucide-react";
17
+ import { useParams as A } from "react-router";
18
+ import { jsx as j, jsxs as M } from "react/jsx-runtime";
19
+ import { useI18n as N } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
20
20
  // src/billing/modules/credits/pages/CreditTransactionsPage.tsx
21
21
  var P = () => {
22
- let { t: s } = A(), d = (e, t) => {
22
+ let { t: s } = N(), d = (e, t) => {
23
23
  let n = s(e);
24
24
  return n === e ? t : n;
25
- }, { billingAccountId: f } = D(), w = c(), T = u(), [P, I] = m(30), [L, R] = m("all"), [z, B] = m(1), { data: V, loading: H } = p({
25
+ }, { billingAccountId: f } = A(), D = c(), O = u(), [P, I] = m(30), [L, R] = m("all"), [z, B] = m(1), { data: V, loading: H } = p({
26
26
  variables: { id: f },
27
27
  skip: !f
28
28
  }), U = V?.getBillingAccount, { transactions: W, pagination: G, isLoading: K, error: q, refetch: J } = i({
@@ -31,16 +31,16 @@ var P = () => {
31
31
  page: z,
32
32
  pageSize: 20
33
33
  });
34
- if (!w.canViewCredits) return /* @__PURE__ */ O(e, { message: "You don't have permission to view credit history." });
35
- if (!f) return /* @__PURE__ */ O("div", {
34
+ if (!D.canViewCredits) return /* @__PURE__ */ j(e, { message: "You don't have permission to view credit history." });
35
+ if (!f) return /* @__PURE__ */ j("div", {
36
36
  className: "p-6",
37
- children: /* @__PURE__ */ O(n, {
38
- icon: /* @__PURE__ */ O("svg", {
37
+ children: /* @__PURE__ */ j(n, {
38
+ icon: /* @__PURE__ */ j("svg", {
39
39
  className: "size-6 text-text-secondary",
40
40
  fill: "none",
41
41
  viewBox: "0 0 24 24",
42
42
  stroke: "currentColor",
43
- children: /* @__PURE__ */ O("path", {
43
+ children: /* @__PURE__ */ j("path", {
44
44
  strokeLinecap: "round",
45
45
  strokeLinejoin: "round",
46
46
  strokeWidth: 2,
@@ -51,9 +51,9 @@ var P = () => {
51
51
  description: "Please select a billing account from the overview page to view credit history."
52
52
  })
53
53
  });
54
- if (q && l(q)) return /* @__PURE__ */ O("div", {
54
+ if (q && l(q)) return /* @__PURE__ */ j("div", {
55
55
  className: "p-6",
56
- children: /* @__PURE__ */ O(r, {
56
+ children: /* @__PURE__ */ j(r, {
57
57
  title: "Server Unavailable",
58
58
  message: "Unable to load credit transactions. The server might be down or experiencing issues.",
59
59
  onRetry: () => J(),
@@ -61,9 +61,9 @@ var P = () => {
61
61
  })
62
62
  });
63
63
  let Y = H || K, X = L === "all" ? W : W.filter((e) => e.type === L), Z = Math.ceil(G.totalCount / 20);
64
- return Y && !U ? /* @__PURE__ */ k("div", {
64
+ return Y && !U ? /* @__PURE__ */ M("div", {
65
65
  className: "space-y-6 px-6 lg:px-8 py-6",
66
- children: [/* @__PURE__ */ O("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ O("div", {
66
+ children: [/* @__PURE__ */ j("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ j("div", {
67
67
  className: "space-y-2",
68
68
  children: [
69
69
  1,
@@ -71,83 +71,83 @@ var P = () => {
71
71
  3,
72
72
  4,
73
73
  5
74
- ].map((e) => /* @__PURE__ */ O("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
74
+ ].map((e) => /* @__PURE__ */ j("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
75
75
  })]
76
- }) : /* @__PURE__ */ k("div", {
76
+ }) : /* @__PURE__ */ M("div", {
77
77
  className: "space-y-6 px-6 lg:px-8 py-6",
78
78
  children: [
79
- /* @__PURE__ */ k("button", {
79
+ /* @__PURE__ */ M("button", {
80
80
  type: "button",
81
- onClick: () => T("/overview"),
81
+ onClick: () => O("/overview"),
82
82
  className: "inline-flex items-center gap-2 text-sm text-text-secondary hover:text-text-primary transition-colors",
83
- children: [/* @__PURE__ */ O(h, { className: "size-4" }), d("billing.credits.backToOverview", "Back to Overview")]
83
+ children: [/* @__PURE__ */ j(v, { className: "size-4" }), d("billing.credits.backToOverview", "Back to Overview")]
84
84
  }),
85
- /* @__PURE__ */ O(t, {
85
+ /* @__PURE__ */ j(t, {
86
86
  title: "Credit History",
87
87
  description: U ? `Credit transactions for ${U.name}` : "View your credit transaction history"
88
88
  }),
89
- /* @__PURE__ */ O(N, { children: d("billing.credits.historyPurpose", "A detailed ledger of every credit added to or spent from this billing account — purchases, grants, usage deductions and adjustments. Use it to understand exactly how your credit balance changed over time.") }),
90
- U && /* @__PURE__ */ O(j, {
89
+ /* @__PURE__ */ j(_, { children: d("billing.credits.historyPurpose", "A detailed ledger of every credit added to or spent from this billing account — purchases, grants, usage deductions and adjustments. Use it to understand exactly how your credit balance changed over time.") }),
90
+ U && /* @__PURE__ */ j(h, {
91
91
  className: "p-4",
92
- children: /* @__PURE__ */ k("div", {
92
+ children: /* @__PURE__ */ M("div", {
93
93
  className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",
94
94
  children: [
95
- /* @__PURE__ */ k("div", {
95
+ /* @__PURE__ */ M("div", {
96
96
  className: "flex items-start gap-2",
97
- children: [/* @__PURE__ */ O(x, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ k("div", { children: [
98
- /* @__PURE__ */ O("p", {
97
+ children: [/* @__PURE__ */ j(w, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ M("div", { children: [
98
+ /* @__PURE__ */ j("p", {
99
99
  className: "text-xs text-text-secondary mb-0.5",
100
100
  children: "Account"
101
101
  }),
102
- /* @__PURE__ */ O("p", {
102
+ /* @__PURE__ */ j("p", {
103
103
  className: "text-sm font-medium",
104
104
  children: U.name
105
105
  }),
106
- U.isActive ? /* @__PURE__ */ k("span", {
106
+ U.isActive ? /* @__PURE__ */ M("span", {
107
107
  className: "inline-flex items-center gap-1 mt-1 px-1.5 py-0.5 text-xs font-medium rounded bg-status-success-bg-subtle text-status-success-text",
108
- children: [/* @__PURE__ */ O(_, { className: "size-3" }), "Active"]
109
- }) : /* @__PURE__ */ k("span", {
108
+ children: [/* @__PURE__ */ j(b, { className: "size-3" }), "Active"]
109
+ }) : /* @__PURE__ */ M("span", {
110
110
  className: "inline-flex items-center gap-1 mt-1 px-1.5 py-0.5 text-xs font-medium rounded bg-status-error-bg-subtle text-status-error-text",
111
- children: [/* @__PURE__ */ O(E, { className: "size-3" }), "Inactive"]
111
+ children: [/* @__PURE__ */ j(k, { className: "size-3" }), "Inactive"]
112
112
  })
113
113
  ] })]
114
114
  }),
115
- /* @__PURE__ */ k("div", {
115
+ /* @__PURE__ */ M("div", {
116
116
  className: "flex items-start gap-2",
117
- children: [/* @__PURE__ */ O(C, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
117
+ children: [/* @__PURE__ */ j(E, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", {
118
118
  className: "text-xs text-text-secondary mb-0.5",
119
119
  children: "Email"
120
- }), /* @__PURE__ */ O("p", {
120
+ }), /* @__PURE__ */ j("p", {
121
121
  className: "text-sm font-medium break-all",
122
122
  children: U.billingEmail || U.email
123
123
  })] })]
124
124
  }),
125
- /* @__PURE__ */ k("div", {
125
+ /* @__PURE__ */ M("div", {
126
126
  className: "flex items-start gap-2",
127
- children: [/* @__PURE__ */ O(b, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
127
+ children: [/* @__PURE__ */ j(C, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", {
128
128
  className: "text-xs text-text-secondary mb-0.5",
129
129
  children: "Credit Balance"
130
- }), /* @__PURE__ */ k("p", {
130
+ }), /* @__PURE__ */ M("p", {
131
131
  className: "text-sm font-semibold text-text-primary",
132
132
  children: [(U.creditAmount || 0).toLocaleString(), " Credits"]
133
133
  })] })]
134
134
  }),
135
- /* @__PURE__ */ k("div", {
135
+ /* @__PURE__ */ M("div", {
136
136
  className: "flex items-start gap-2",
137
- children: [/* @__PURE__ */ O(S, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
137
+ children: [/* @__PURE__ */ j(T, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", {
138
138
  className: "text-xs text-text-secondary mb-0.5",
139
139
  children: "Tax ID"
140
- }), /* @__PURE__ */ O("p", {
140
+ }), /* @__PURE__ */ j("p", {
141
141
  className: "text-sm font-medium",
142
142
  children: U.taxId || "-"
143
143
  })] })]
144
144
  }),
145
- /* @__PURE__ */ k("div", {
145
+ /* @__PURE__ */ M("div", {
146
146
  className: "flex items-start gap-2",
147
- children: [/* @__PURE__ */ O(g, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
147
+ children: [/* @__PURE__ */ j(y, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ M("div", { children: [/* @__PURE__ */ j("p", {
148
148
  className: "text-xs text-text-secondary mb-0.5",
149
149
  children: "Member Since"
150
- }), /* @__PURE__ */ O("p", {
150
+ }), /* @__PURE__ */ j("p", {
151
151
  className: "text-sm font-medium",
152
152
  children: U.createdAt ? o(U.createdAt) : "-"
153
153
  })] })]
@@ -155,16 +155,16 @@ var P = () => {
155
155
  ]
156
156
  })
157
157
  }),
158
- /* @__PURE__ */ k("div", {
158
+ /* @__PURE__ */ M("div", {
159
159
  className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border-subtle",
160
160
  children: [
161
- /* @__PURE__ */ O("div", {
161
+ /* @__PURE__ */ j("div", {
162
162
  className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
163
163
  children: [
164
164
  7,
165
165
  30,
166
166
  90
167
- ].map((e) => /* @__PURE__ */ k("button", {
167
+ ].map((e) => /* @__PURE__ */ M("button", {
168
168
  type: "button",
169
169
  onClick: () => {
170
170
  I(e), B(1);
@@ -173,14 +173,14 @@ var P = () => {
173
173
  children: [e, "d"]
174
174
  }, e))
175
175
  }),
176
- /* @__PURE__ */ O("div", {
176
+ /* @__PURE__ */ j("div", {
177
177
  className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
178
178
  children: [
179
179
  "all",
180
180
  "purchase",
181
181
  "usage",
182
182
  "adjustment"
183
- ].map((e) => /* @__PURE__ */ O("button", {
183
+ ].map((e) => /* @__PURE__ */ j("button", {
184
184
  type: "button",
185
185
  onClick: () => {
186
186
  R(e), B(1);
@@ -189,7 +189,7 @@ var P = () => {
189
189
  children: e === "all" ? "All" : a(e)
190
190
  }, e))
191
191
  }),
192
- /* @__PURE__ */ k("div", {
192
+ /* @__PURE__ */ M("div", {
193
193
  className: "ml-auto text-sm text-text-secondary",
194
194
  children: [
195
195
  G.totalCount,
@@ -203,17 +203,17 @@ var P = () => {
203
203
  })
204
204
  ]
205
205
  }),
206
- X.length === 0 ? /* @__PURE__ */ O(M, {
206
+ X.length === 0 ? /* @__PURE__ */ j(g, {
207
207
  illustration: L === "all" ? "empty-data" : "empty-search",
208
208
  title: "No credit transactions found",
209
209
  description: L === "all" ? "Your credit transaction history will appear here." : "No transactions match your filter."
210
- }) : /* @__PURE__ */ O("div", {
210
+ }) : /* @__PURE__ */ j("div", {
211
211
  className: "space-y-3",
212
- children: X.map((e) => /* @__PURE__ */ O(F, { transaction: e }, e.id))
212
+ children: X.map((e) => /* @__PURE__ */ j(F, { transaction: e }, e.id))
213
213
  }),
214
- G.totalCount > 0 && /* @__PURE__ */ k("div", {
214
+ G.totalCount > 0 && /* @__PURE__ */ M("div", {
215
215
  className: "flex items-center justify-between border-t border-border-subtle pt-4",
216
- children: [/* @__PURE__ */ k("p", {
216
+ children: [/* @__PURE__ */ M("p", {
217
217
  className: "text-sm text-text-secondary",
218
218
  children: [
219
219
  "Showing ",
@@ -226,19 +226,19 @@ var P = () => {
226
226
  " ",
227
227
  "transactions"
228
228
  ]
229
- }), /* @__PURE__ */ k("div", {
229
+ }), /* @__PURE__ */ M("div", {
230
230
  className: "flex items-center gap-2",
231
231
  children: [
232
- /* @__PURE__ */ k("button", {
232
+ /* @__PURE__ */ M("button", {
233
233
  type: "button",
234
234
  onClick: () => {
235
235
  z > 1 && B((e) => e - 1);
236
236
  },
237
237
  disabled: z <= 1,
238
238
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
239
- children: [/* @__PURE__ */ O(v, { className: "size-4" }), "Previous"]
239
+ children: [/* @__PURE__ */ j(x, { className: "size-4" }), "Previous"]
240
240
  }),
241
- /* @__PURE__ */ k("span", {
241
+ /* @__PURE__ */ M("span", {
242
242
  className: "text-sm text-text-secondary px-2",
243
243
  children: [
244
244
  "Page ",
@@ -247,14 +247,14 @@ var P = () => {
247
247
  Z || 1
248
248
  ]
249
249
  }),
250
- /* @__PURE__ */ k("button", {
250
+ /* @__PURE__ */ M("button", {
251
251
  type: "button",
252
252
  onClick: () => {
253
253
  G.hasMore && B((e) => e + 1);
254
254
  },
255
255
  disabled: !G.hasMore,
256
256
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
257
- children: ["Next", /* @__PURE__ */ O(y, { className: "size-4" })]
257
+ children: ["Next", /* @__PURE__ */ j(S, { className: "size-4" })]
258
258
  })
259
259
  ]
260
260
  })]
@@ -263,10 +263,10 @@ var P = () => {
263
263
  });
264
264
  }, F = ({ transaction: e }) => {
265
265
  let t = d(e.status), n = Number(e.amount), r = n > 0, i = Math.abs(n);
266
- return /* @__PURE__ */ k("div", {
266
+ return /* @__PURE__ */ M("div", {
267
267
  className: "flex items-center gap-4 p-4 border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 hover:shadow-sm transition-shadow",
268
268
  children: [
269
- /* @__PURE__ */ O("div", {
269
+ /* @__PURE__ */ j("div", {
270
270
  className: `size-10 rounded-full flex items-center justify-center flex-shrink-0 ${(() => {
271
271
  if (e.type === "adjustment") return r ? "bg-status-success-bg-subtle" : "bg-status-error-bg-subtle";
272
272
  switch (e.type) {
@@ -276,35 +276,35 @@ var P = () => {
276
276
  }
277
277
  })()}`,
278
278
  children: (() => {
279
- if (e.type === "adjustment") return r ? /* @__PURE__ */ O(T, { className: "size-4 text-status-success-text" }) : /* @__PURE__ */ O(w, { className: "size-4 text-status-error-text" });
279
+ if (e.type === "adjustment") return r ? /* @__PURE__ */ j(O, { className: "size-4 text-status-success-text" }) : /* @__PURE__ */ j(D, { className: "size-4 text-status-error-text" });
280
280
  switch (e.type) {
281
- case "purchase": return /* @__PURE__ */ O(T, { className: "size-4 text-status-success-text" });
282
- case "usage": return /* @__PURE__ */ O(w, { className: "size-4 text-status-warning-text" });
283
- default: return /* @__PURE__ */ O(b, { className: "size-4 text-text-secondary" });
281
+ case "purchase": return /* @__PURE__ */ j(O, { className: "size-4 text-status-success-text" });
282
+ case "usage": return /* @__PURE__ */ j(D, { className: "size-4 text-status-warning-text" });
283
+ default: return /* @__PURE__ */ j(C, { className: "size-4 text-text-secondary" });
284
284
  }
285
285
  })()
286
286
  }),
287
- /* @__PURE__ */ k("div", {
287
+ /* @__PURE__ */ M("div", {
288
288
  className: "flex-1 min-w-0",
289
289
  children: [
290
- /* @__PURE__ */ k("div", {
290
+ /* @__PURE__ */ M("div", {
291
291
  className: "flex items-center gap-2 flex-wrap",
292
292
  children: [
293
- /* @__PURE__ */ O("p", {
293
+ /* @__PURE__ */ j("p", {
294
294
  className: "font-medium text-text-primary capitalize",
295
295
  children: a(e.type)
296
296
  }),
297
- /* @__PURE__ */ O("span", {
297
+ /* @__PURE__ */ j("span", {
298
298
  className: `px-2 py-0.5 text-xs font-medium rounded ${f(t)}`,
299
299
  children: e.status
300
300
  }),
301
- e.entityType && /* @__PURE__ */ O("span", {
301
+ e.entityType && /* @__PURE__ */ j("span", {
302
302
  className: "px-2 py-0.5 text-xs font-medium rounded bg-bg-sunken text-text-secondary capitalize",
303
303
  children: e.entityType
304
304
  })
305
305
  ]
306
306
  }),
307
- /* @__PURE__ */ k("p", {
307
+ /* @__PURE__ */ M("p", {
308
308
  className: "text-sm text-text-secondary mt-0.5",
309
309
  children: [
310
310
  s(e.createdAt),
@@ -312,15 +312,15 @@ var P = () => {
312
312
  o(e.createdAt)
313
313
  ]
314
314
  }),
315
- e.productId && e.productId !== "default" && /* @__PURE__ */ k("p", {
315
+ e.productId && e.productId !== "default" && /* @__PURE__ */ M("p", {
316
316
  className: "text-xs text-text-secondary mt-1",
317
317
  children: ["Product: ", e.productId]
318
318
  })
319
319
  ]
320
320
  }),
321
- /* @__PURE__ */ O("div", {
321
+ /* @__PURE__ */ j("div", {
322
322
  className: "text-right flex-shrink-0",
323
- children: /* @__PURE__ */ k("p", {
323
+ children: /* @__PURE__ */ M("p", {
324
324
  className: `font-semibold text-lg ${r ? "text-status-success-text" : "text-status-error-text"}`,
325
325
  children: [
326
326
  r ? "+" : "-",