@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
@@ -8,12 +8,12 @@ import { getCreditTransactionStatusColor as s, getStatusBadgeClasses as c } from
8
8
  import { useDefaultBillingAccount as l } from "../../subscriptions/hooks/useSubscriptions.js";
9
9
  import { statusTokens as u } from "../../../shared/utils/tokens.js";
10
10
  import { useState as d } from "react";
11
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
- import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
13
- import { EmphasisPanel as h, IllustratedEmptyState as g, PagePurpose as _ } from "@burdenoff/fe-libs/ui";
11
+ import { EmphasisPanel as f, IllustratedEmptyState as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
12
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
13
+ import { useI18n as _ } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
14
  // src/billing/modules/credits/pages/CreditsPage.tsx
15
15
  var v = () => {
16
- let { t: a } = m(), o = (e, t) => {
16
+ let { t: a } = _(), o = (e, t) => {
17
17
  let n = a(e);
18
18
  return n === e ? t : n;
19
19
  }, s = e(), c = n(), u = !r(), { billingAccount: v, isLoading: b } = l(), [x, S] = d(30), [C, w] = d("all"), [T, E] = d(1), { transactions: D, pagination: O, isLoading: k, error: A, refetch: j } = t({
@@ -22,19 +22,19 @@ var v = () => {
22
22
  page: T,
23
23
  pageSize: 20
24
24
  });
25
- if (!c.canViewCredits) return /* @__PURE__ */ f("div", {
25
+ if (!c.canViewCredits) return /* @__PURE__ */ h("div", {
26
26
  className: "flex items-center justify-center h-full min-h-[400px]",
27
- children: /* @__PURE__ */ p("div", {
27
+ children: /* @__PURE__ */ g("div", {
28
28
  className: "text-center space-y-2",
29
29
  children: [
30
- /* @__PURE__ */ f("div", {
30
+ /* @__PURE__ */ h("div", {
31
31
  className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
32
- children: /* @__PURE__ */ f("svg", {
32
+ children: /* @__PURE__ */ h("svg", {
33
33
  className: "size-6 text-text-secondary",
34
34
  fill: "none",
35
35
  viewBox: "0 0 24 24",
36
36
  stroke: "currentColor",
37
- children: /* @__PURE__ */ f("path", {
37
+ children: /* @__PURE__ */ h("path", {
38
38
  strokeLinecap: "round",
39
39
  strokeLinejoin: "round",
40
40
  strokeWidth: 2,
@@ -42,11 +42,11 @@ var v = () => {
42
42
  })
43
43
  })
44
44
  }),
45
- /* @__PURE__ */ f("h2", {
45
+ /* @__PURE__ */ h("h2", {
46
46
  className: "text-lg font-semibold text-text-primary",
47
47
  children: "Access Denied"
48
48
  }),
49
- /* @__PURE__ */ f("p", {
49
+ /* @__PURE__ */ h("p", {
50
50
  className: "text-sm text-text-secondary max-w-sm",
51
51
  children: "You don't have permission to view credits."
52
52
  })
@@ -54,29 +54,29 @@ var v = () => {
54
54
  })
55
55
  });
56
56
  let M = b || k, N = D.filter((e) => C === "all" || e.type === C);
57
- if (M && !v) return /* @__PURE__ */ p("div", {
57
+ if (M && !v) return /* @__PURE__ */ g("div", {
58
58
  className: "space-y-6 px-6 lg:px-8 py-6",
59
- children: [/* @__PURE__ */ f("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ f("div", {
59
+ children: [/* @__PURE__ */ h("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ h("div", {
60
60
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
61
- children: /* @__PURE__ */ p("div", {
61
+ children: /* @__PURE__ */ g("div", {
62
62
  className: "border border-border-subtle rounded-lg p-6",
63
- children: [/* @__PURE__ */ f("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ f("div", { className: "h-10 w-32 bg-bg-sunken animate-pulse rounded" })]
63
+ children: [/* @__PURE__ */ h("div", { className: "h-6 w-24 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ h("div", { className: "h-10 w-32 bg-bg-sunken animate-pulse rounded" })]
64
64
  })
65
65
  })]
66
66
  });
67
- if (A) return /* @__PURE__ */ f("div", {
67
+ if (A) return /* @__PURE__ */ h("div", {
68
68
  className: "flex items-center justify-center h-full min-h-[400px]",
69
- children: /* @__PURE__ */ p("div", {
69
+ children: /* @__PURE__ */ g("div", {
70
70
  className: "text-center space-y-4",
71
71
  children: [
72
- /* @__PURE__ */ f("div", {
72
+ /* @__PURE__ */ h("div", {
73
73
  className: "size-12 mx-auto rounded-full bg-status-error-bg-subtle flex items-center justify-center",
74
- children: /* @__PURE__ */ f("svg", {
74
+ children: /* @__PURE__ */ h("svg", {
75
75
  className: "size-6 text-status-error-text",
76
76
  fill: "none",
77
77
  viewBox: "0 0 24 24",
78
78
  stroke: "currentColor",
79
- children: /* @__PURE__ */ f("path", {
79
+ children: /* @__PURE__ */ h("path", {
80
80
  strokeLinecap: "round",
81
81
  strokeLinejoin: "round",
82
82
  strokeWidth: 2,
@@ -84,15 +84,15 @@ var v = () => {
84
84
  })
85
85
  })
86
86
  }),
87
- /* @__PURE__ */ f("h2", {
87
+ /* @__PURE__ */ h("h2", {
88
88
  className: "text-lg font-semibold text-text-primary",
89
89
  children: "Failed to load credits"
90
90
  }),
91
- /* @__PURE__ */ f("p", {
91
+ /* @__PURE__ */ h("p", {
92
92
  className: "text-sm text-text-secondary",
93
93
  children: A.message
94
94
  }),
95
- /* @__PURE__ */ f("button", {
95
+ /* @__PURE__ */ h("button", {
96
96
  type: "button",
97
97
  onClick: () => j(),
98
98
  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",
@@ -102,52 +102,52 @@ var v = () => {
102
102
  })
103
103
  });
104
104
  let P = v?.creditAmount || 0;
105
- return /* @__PURE__ */ p("div", {
105
+ return /* @__PURE__ */ g("div", {
106
106
  className: "space-y-6 px-6 lg:px-8 py-6",
107
107
  children: [
108
- /* @__PURE__ */ p("div", {
108
+ /* @__PURE__ */ g("div", {
109
109
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
110
- children: [/* @__PURE__ */ p("div", { children: [
111
- /* @__PURE__ */ f("h1", {
110
+ children: [/* @__PURE__ */ g("div", { children: [
111
+ /* @__PURE__ */ h("h1", {
112
112
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
113
113
  children: o("billing.credits.title", "Credits")
114
114
  }),
115
- /* @__PURE__ */ f("p", {
115
+ /* @__PURE__ */ h("p", {
116
116
  className: "text-sm text-text-secondary mt-1",
117
117
  children: "Manage your credit balance and view transaction history"
118
118
  }),
119
- /* @__PURE__ */ f(_, {
119
+ /* @__PURE__ */ h(m, {
120
120
  className: "mt-3",
121
121
  children: o("billing.credits.purpose", "Credits are prepaid balance you can spend on usage and purchases instead of paying per invoice. See your available balance, top it up, withdraw unused credits, and review every credit purchase, grant and deduction over time.")
122
122
  })
123
- ] }), /* @__PURE__ */ p("div", {
123
+ ] }), /* @__PURE__ */ g("div", {
124
124
  className: "flex items-center gap-2",
125
- children: [u && /* @__PURE__ */ p("button", {
125
+ children: [u && /* @__PURE__ */ g("button", {
126
126
  type: "button",
127
127
  onClick: () => s("/credits/withdraw"),
128
128
  className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
129
- children: [/* @__PURE__ */ f("svg", {
129
+ children: [/* @__PURE__ */ h("svg", {
130
130
  className: "size-4",
131
131
  fill: "none",
132
132
  viewBox: "0 0 24 24",
133
133
  stroke: "currentColor",
134
- children: /* @__PURE__ */ f("path", {
134
+ children: /* @__PURE__ */ h("path", {
135
135
  strokeLinecap: "round",
136
136
  strokeLinejoin: "round",
137
137
  strokeWidth: 2,
138
138
  d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
139
139
  })
140
140
  }), "Withdraw"]
141
- }), /* @__PURE__ */ p("button", {
141
+ }), /* @__PURE__ */ g("button", {
142
142
  type: "button",
143
143
  onClick: () => s("/checkout/credits"),
144
144
  className: "inline-flex items-center gap-2 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",
145
- children: [/* @__PURE__ */ f("svg", {
145
+ children: [/* @__PURE__ */ h("svg", {
146
146
  className: "size-4",
147
147
  fill: "none",
148
148
  viewBox: "0 0 24 24",
149
149
  stroke: "currentColor",
150
- children: /* @__PURE__ */ f("path", {
150
+ children: /* @__PURE__ */ h("path", {
151
151
  strokeLinecap: "round",
152
152
  strokeLinejoin: "round",
153
153
  strokeWidth: 2,
@@ -157,28 +157,28 @@ var v = () => {
157
157
  })]
158
158
  })]
159
159
  }),
160
- /* @__PURE__ */ p("div", {
160
+ /* @__PURE__ */ g("div", {
161
161
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
162
- children: [/* @__PURE__ */ p(h, {
162
+ children: [/* @__PURE__ */ g(f, {
163
163
  className: "p-6",
164
164
  children: [
165
- /* @__PURE__ */ f("p", {
165
+ /* @__PURE__ */ h("p", {
166
166
  className: "text-sm text-text-secondary",
167
167
  children: "Available Balance"
168
168
  }),
169
- /* @__PURE__ */ p("p", {
169
+ /* @__PURE__ */ g("p", {
170
170
  className: "text-3xl font-bold tabular-nums text-text-primary mt-2",
171
171
  children: [P.toLocaleString(), " Credits"]
172
172
  }),
173
- /* @__PURE__ */ f("p", {
173
+ /* @__PURE__ */ h("p", {
174
174
  className: "text-sm text-text-secondary mt-2",
175
175
  children: v?.name
176
176
  })
177
177
  ]
178
- }), /* @__PURE__ */ p("div", {
178
+ }), /* @__PURE__ */ g("div", {
179
179
  className: "border border-border-seam rounded-card bg-bg-surface shadow-elevation-1 p-5",
180
180
  children: [
181
- /* @__PURE__ */ p("p", {
181
+ /* @__PURE__ */ g("p", {
182
182
  className: "text-sm text-text-secondary",
183
183
  children: [
184
184
  "Transactions (",
@@ -186,32 +186,32 @@ var v = () => {
186
186
  "d)"
187
187
  ]
188
188
  }),
189
- /* @__PURE__ */ f("p", {
189
+ /* @__PURE__ */ h("p", {
190
190
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mt-2",
191
191
  children: O.totalCount
192
192
  }),
193
- /* @__PURE__ */ f("p", {
193
+ /* @__PURE__ */ h("p", {
194
194
  className: "text-sm text-text-secondary mt-2",
195
195
  children: "Total transactions"
196
196
  })
197
197
  ]
198
198
  })]
199
199
  }),
200
- /* @__PURE__ */ p("div", {
200
+ /* @__PURE__ */ g("div", {
201
201
  className: "flex flex-wrap items-center gap-4 pb-4 border-b border-border-subtle",
202
- children: [/* @__PURE__ */ f("div", {
202
+ children: [/* @__PURE__ */ h("div", {
203
203
  className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
204
204
  children: [
205
205
  7,
206
206
  30,
207
207
  90
208
- ].map((e) => /* @__PURE__ */ p("button", {
208
+ ].map((e) => /* @__PURE__ */ g("button", {
209
209
  type: "button",
210
210
  onClick: () => S(e),
211
211
  className: `px-3 py-1.5 text-sm font-medium rounded-button transition-colors ${x === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
212
212
  children: [e, "d"]
213
213
  }, e))
214
- }), /* @__PURE__ */ f("div", {
214
+ }), /* @__PURE__ */ h("div", {
215
215
  className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken",
216
216
  children: [
217
217
  "all",
@@ -219,7 +219,7 @@ var v = () => {
219
219
  "usage",
220
220
  "adjustment",
221
221
  "granted"
222
- ].map((e) => /* @__PURE__ */ f("button", {
222
+ ].map((e) => /* @__PURE__ */ h("button", {
223
223
  type: "button",
224
224
  onClick: () => w(e),
225
225
  className: `px-3 py-1.5 text-sm font-medium rounded-button transition-colors capitalize ${C === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
@@ -227,15 +227,15 @@ var v = () => {
227
227
  }, e))
228
228
  })]
229
229
  }),
230
- N.length === 0 ? /* @__PURE__ */ f(g, {
230
+ N.length === 0 ? /* @__PURE__ */ h(p, {
231
231
  illustration: C === "all" ? "empty-data" : "empty-search",
232
232
  title: "No transactions found",
233
233
  description: C === "all" ? "No credit transactions in this period." : "No transactions match your filter."
234
- }) : /* @__PURE__ */ p("div", {
234
+ }) : /* @__PURE__ */ g("div", {
235
235
  className: "space-y-3",
236
- children: [N.map((e) => /* @__PURE__ */ f(y, { transaction: e }, e.id)), O.hasMore && /* @__PURE__ */ f("div", {
236
+ children: [N.map((e) => /* @__PURE__ */ h(y, { transaction: e }, e.id)), O.hasMore && /* @__PURE__ */ h("div", {
237
237
  className: "flex justify-center pt-4",
238
- children: /* @__PURE__ */ f("button", {
238
+ children: /* @__PURE__ */ h("button", {
239
239
  type: "button",
240
240
  onClick: () => E((e) => e + 1),
241
241
  className: "px-4 py-2 text-sm font-medium border border-border-subtle text-text-primary rounded-button hover:bg-bg-sunken transition-colors",
@@ -247,28 +247,28 @@ var v = () => {
247
247
  });
248
248
  }, y = ({ transaction: e }) => {
249
249
  let t = s(e.status), n = e.type === "purchase" || e.type === "adjustment" || e.type === "granted";
250
- return /* @__PURE__ */ p("div", {
250
+ return /* @__PURE__ */ g("div", {
251
251
  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",
252
252
  children: [
253
- /* @__PURE__ */ f("div", {
253
+ /* @__PURE__ */ h("div", {
254
254
  className: `size-10 rounded-full flex items-center justify-center ${n ? u.success.bg : u.warning.bg}`,
255
- children: n ? /* @__PURE__ */ f("svg", {
255
+ children: n ? /* @__PURE__ */ h("svg", {
256
256
  className: `size-5 ${u.success.icon}`,
257
257
  fill: "none",
258
258
  viewBox: "0 0 24 24",
259
259
  stroke: "currentColor",
260
- children: /* @__PURE__ */ f("path", {
260
+ children: /* @__PURE__ */ h("path", {
261
261
  strokeLinecap: "round",
262
262
  strokeLinejoin: "round",
263
263
  strokeWidth: 2,
264
264
  d: "M12 4v16m8-8H4"
265
265
  })
266
- }) : /* @__PURE__ */ f("svg", {
266
+ }) : /* @__PURE__ */ h("svg", {
267
267
  className: `size-5 ${u.warning.icon}`,
268
268
  fill: "none",
269
269
  viewBox: "0 0 24 24",
270
270
  stroke: "currentColor",
271
- children: /* @__PURE__ */ f("path", {
271
+ children: /* @__PURE__ */ h("path", {
272
272
  strokeLinecap: "round",
273
273
  strokeLinejoin: "round",
274
274
  strokeWidth: 2,
@@ -276,18 +276,18 @@ var v = () => {
276
276
  })
277
277
  })
278
278
  }),
279
- /* @__PURE__ */ p("div", {
279
+ /* @__PURE__ */ g("div", {
280
280
  className: "flex-1 min-w-0",
281
- children: [/* @__PURE__ */ p("div", {
281
+ children: [/* @__PURE__ */ g("div", {
282
282
  className: "flex items-center gap-2",
283
- children: [/* @__PURE__ */ f("p", {
283
+ children: [/* @__PURE__ */ h("p", {
284
284
  className: "font-medium text-text-primary capitalize",
285
285
  children: i(e.type)
286
- }), /* @__PURE__ */ f("span", {
286
+ }), /* @__PURE__ */ h("span", {
287
287
  className: `px-2 py-0.5 text-xs font-medium rounded ${c(t)}`,
288
288
  children: e.status
289
289
  })]
290
- }), /* @__PURE__ */ p("p", {
290
+ }), /* @__PURE__ */ g("p", {
291
291
  className: "text-sm text-text-secondary mt-0.5",
292
292
  children: [
293
293
  o(e.createdAt),
@@ -296,9 +296,9 @@ var v = () => {
296
296
  ]
297
297
  })]
298
298
  }),
299
- /* @__PURE__ */ f("div", {
299
+ /* @__PURE__ */ h("div", {
300
300
  className: "text-right",
301
- children: /* @__PURE__ */ p("p", {
301
+ children: /* @__PURE__ */ g("p", {
302
302
  className: `font-semibold ${n ? u.success.text : "text-text-primary"}`,
303
303
  children: [
304
304
  n ? "+" : "-",