@burdenoff/microfe-billing 2026.1119.2 → 2026.1122.1
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.
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +2 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js +2 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +5 -2
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +2 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +2 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +3 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +2 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +2 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +2 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +3 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js +166 -164
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +3 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +4 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +3 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +3 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +6 -2
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +3 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +3 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +14 -5
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +3 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +6 -2
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +3 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +3 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +2 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +2 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +3 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +4 -2
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/EmptyState.d.ts +7 -0
- package/dist/billing/shared/components/EmptyState.js +5 -2
- package/dist/billing/shared/components/EmptyState.js.map +1 -1
- package/dist/billing/shared/types/graphql.d.ts +0 -3
- package/dist/billing/shared/types/graphql.js.map +1 -1
- package/dist/generated/global-operations.d.ts +157 -31
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +6856 -970
- package/dist/generated/global-types.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,288 +17,288 @@ import { useTransactions as h } from "../hooks/useTransactions.js";
|
|
|
17
17
|
import { getStatusBadgeClasses as g, getTransactionStatusColor as _ } from "../../../shared/utils/status.js";
|
|
18
18
|
import { useEffect as v, useRef as y, useState as b } from "react";
|
|
19
19
|
import { Dialog as x, DialogContent as S, DialogFooter as C, DialogHeader as w, DialogTitle as T, EmphasisPanel as E, IllustratedEmptyState as D, PagePurpose as O, ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
|
|
20
|
-
import { ArrowLeft as A, Calendar as j, CheckCircle as M, ChevronLeft as N, ChevronRight as P, CreditCard as F, Eye as I, FileText as L, Mail as R, MoreHorizontal as z, Wallet as
|
|
21
|
-
import { useParams as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import { useI18n as
|
|
20
|
+
import { ArrowLeft as A, Calendar as j, CheckCircle as M, ChevronLeft as N, ChevronRight as P, CreditCard as F, Eye as I, FileText as L, Mail as R, MoreHorizontal as z, Wallet as ee, XCircle as te } from "lucide-react";
|
|
21
|
+
import { useParams as ne } from "react-router";
|
|
22
|
+
import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
23
|
+
import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
24
24
|
// src/billing/modules/billing/pages/TransactionsPage.tsx
|
|
25
|
-
var
|
|
25
|
+
var U = {
|
|
26
26
|
payment: "Payment",
|
|
27
27
|
refund: "Refund",
|
|
28
28
|
adjustment: "Adjustment"
|
|
29
|
-
},
|
|
29
|
+
}, W = (e) => U[e.toLowerCase()] ?? e, ie = ({ transaction: e, onViewDetails: t, onViewInvoice: n, hasInvoiceUrl: r }) => {
|
|
30
30
|
let [i, a] = b(!1), o = y(null);
|
|
31
31
|
return v(() => {
|
|
32
32
|
let e = (e) => {
|
|
33
33
|
o.current && !o.current.contains(e.target) && a(!1);
|
|
34
34
|
};
|
|
35
35
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
36
|
-
}, []), /* @__PURE__ */
|
|
36
|
+
}, []), /* @__PURE__ */ H("div", {
|
|
37
37
|
className: "relative overflow-visible",
|
|
38
38
|
ref: o,
|
|
39
|
-
children: [/* @__PURE__ */
|
|
39
|
+
children: [/* @__PURE__ */ V("button", {
|
|
40
40
|
type: "button",
|
|
41
41
|
onClick: () => a(!i),
|
|
42
42
|
className: "p-1.5 rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
43
43
|
"aria-label": "Transaction actions",
|
|
44
|
-
children: /* @__PURE__ */
|
|
45
|
-
}), i && /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ V(z, { className: "size-4 text-text-secondary" })
|
|
45
|
+
}), i && /* @__PURE__ */ H("div", {
|
|
46
46
|
className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] bg-popover border border-border-subtle rounded-md shadow-lg py-1",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ H("button", {
|
|
48
48
|
type: "button",
|
|
49
49
|
onClick: () => {
|
|
50
50
|
t(), a(!1);
|
|
51
51
|
},
|
|
52
52
|
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken/50 transition-colors whitespace-nowrap",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
54
|
-
}), e.type === "payment" && r && /* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ V(I, { className: "size-4" }), "View Details"]
|
|
54
|
+
}), e.type === "payment" && r && /* @__PURE__ */ H("button", {
|
|
55
55
|
type: "button",
|
|
56
56
|
onClick: () => {
|
|
57
57
|
n(), a(!1);
|
|
58
58
|
},
|
|
59
59
|
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken/50 transition-colors whitespace-nowrap",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ V(L, { className: "size-4" }), "View Invoice"]
|
|
61
61
|
})]
|
|
62
62
|
})]
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, ae = ({ transaction: e, onClose: t, onViewInvoice: n, onRetryInvoice: r, isRetryingInvoice: i, retryInvoiceError: a, invoiceUrl: o, invoiceProvider: u }) => {
|
|
65
65
|
if (!e) return null;
|
|
66
66
|
let f = e.metadata, p = f?.subtotal, m = f?.taxAmount, h = f?.taxRate, v = f?.taxType, y = f?.total, b = f?.invoiceNumber, E = f?.invoiceStatus, D = f?.invoiceCreationError, O = !b && e.type === "payment" && e.status === "success", k = e.type === "refund", A = f?.refundRecordId, j = f?.originalTransactionId, M = f?.creditNoteId, N = f?.creditNoteNumber, P = f?.creditNotePdfUrl, F = f?.reason, I = f?.purchaseType, R = f?.purchaseDetail, z = y && m !== void 0 && m > 0;
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ V(x, {
|
|
68
68
|
open: !!e,
|
|
69
69
|
onOpenChange: (e) => !e && t(),
|
|
70
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ H(S, {
|
|
71
71
|
className: "max-w-md max-h-[90vh] overflow-auto p-0",
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ V(w, {
|
|
74
74
|
className: "p-4 border-b border-border-subtle",
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ V(T, {
|
|
76
76
|
className: "text-lg font-semibold",
|
|
77
77
|
children: "Transaction Details"
|
|
78
78
|
})
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ H("div", {
|
|
81
81
|
className: "p-4 space-y-4",
|
|
82
82
|
children: [
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ H("div", {
|
|
84
84
|
className: "grid grid-cols-2 gap-4",
|
|
85
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
86
86
|
className: "text-xs text-text-secondary mb-1",
|
|
87
87
|
children: "Transaction ID"
|
|
88
|
-
}), /* @__PURE__ */
|
|
88
|
+
}), /* @__PURE__ */ V("p", {
|
|
89
89
|
className: "text-sm font-mono break-all",
|
|
90
90
|
children: e.id
|
|
91
|
-
})] }), /* @__PURE__ */
|
|
91
|
+
})] }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
92
92
|
className: "text-xs text-text-secondary mb-1",
|
|
93
93
|
children: "Type"
|
|
94
|
-
}), /* @__PURE__ */
|
|
94
|
+
}), /* @__PURE__ */ V("p", {
|
|
95
95
|
className: "text-sm capitalize",
|
|
96
|
-
children:
|
|
96
|
+
children: W(e.type)
|
|
97
97
|
})] })]
|
|
98
98
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ V("div", {
|
|
100
100
|
className: "space-y-2",
|
|
101
|
-
children: z ? /* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
101
|
+
children: z ? /* @__PURE__ */ H(B, { children: [
|
|
102
|
+
/* @__PURE__ */ H("div", {
|
|
103
103
|
className: "flex justify-between text-sm",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ V("span", {
|
|
105
105
|
className: "text-text-secondary",
|
|
106
106
|
children: "Subtotal"
|
|
107
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ V("span", { children: s(p || e.amount, e.currency) })]
|
|
108
108
|
}),
|
|
109
|
-
m > 0 && /* @__PURE__ */
|
|
109
|
+
m > 0 && /* @__PURE__ */ H("div", {
|
|
110
110
|
className: "flex justify-between text-sm",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ H("span", {
|
|
112
112
|
className: "text-text-secondary",
|
|
113
113
|
children: [
|
|
114
114
|
v || "Tax",
|
|
115
115
|
" ",
|
|
116
116
|
h ? `(${(h * 100).toFixed(0)}%)` : ""
|
|
117
117
|
]
|
|
118
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ V("span", { children: s(m, e.currency) })]
|
|
119
119
|
}),
|
|
120
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ H("div", {
|
|
121
121
|
className: "flex justify-between text-sm font-semibold border-t border-border-subtle pt-2",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ V("span", { children: "Total" }), /* @__PURE__ */ H("span", {
|
|
123
123
|
className: e.type === "refund" ? "text-status-error-text" : "",
|
|
124
124
|
children: [e.type === "refund" ? "-" : "", s(y, e.currency)]
|
|
125
125
|
})]
|
|
126
126
|
})
|
|
127
|
-
] }) : /* @__PURE__ */
|
|
127
|
+
] }) : /* @__PURE__ */ H("div", {
|
|
128
128
|
className: "grid grid-cols-2 gap-4",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
130
130
|
className: "text-xs text-text-secondary mb-1",
|
|
131
131
|
children: "Amount"
|
|
132
|
-
}), /* @__PURE__ */
|
|
132
|
+
}), /* @__PURE__ */ H("p", {
|
|
133
133
|
className: `text-sm font-medium ${e.type === "refund" ? "text-status-error-text" : ""}`,
|
|
134
134
|
children: [e.type === "refund" ? "-" : "", s(y || e.amount, e.currency)]
|
|
135
|
-
})] }), /* @__PURE__ */
|
|
135
|
+
})] }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
136
136
|
className: "text-xs text-text-secondary mb-1",
|
|
137
137
|
children: "Status"
|
|
138
|
-
}), /* @__PURE__ */
|
|
138
|
+
}), /* @__PURE__ */ V("span", {
|
|
139
139
|
className: `px-2 py-0.5 text-xs font-medium rounded ${g(_(e.status))}`,
|
|
140
140
|
children: e.status
|
|
141
141
|
})] })]
|
|
142
142
|
})
|
|
143
143
|
}),
|
|
144
|
-
z && /* @__PURE__ */
|
|
144
|
+
z && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
145
145
|
className: "text-xs text-text-secondary mb-1",
|
|
146
146
|
children: "Status"
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
}), /* @__PURE__ */ V("span", {
|
|
148
148
|
className: `px-2 py-0.5 text-xs font-medium rounded ${g(_(e.status))}`,
|
|
149
149
|
children: e.status
|
|
150
150
|
})] }),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
152
152
|
className: "text-xs text-text-secondary mb-1",
|
|
153
153
|
children: "Date & Time"
|
|
154
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ V("p", {
|
|
155
155
|
className: "text-sm",
|
|
156
156
|
children: c(e.createdAt)
|
|
157
157
|
})] }),
|
|
158
|
-
e.description && /* @__PURE__ */
|
|
158
|
+
e.description && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
159
159
|
className: "text-xs text-text-secondary mb-1",
|
|
160
160
|
children: "Description"
|
|
161
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ V("p", {
|
|
162
162
|
className: "text-sm",
|
|
163
163
|
children: e.description
|
|
164
164
|
})] }),
|
|
165
|
-
b && /* @__PURE__ */
|
|
165
|
+
b && /* @__PURE__ */ H("div", {
|
|
166
166
|
className: "p-3 bg-bg-sunken/50 rounded-lg space-y-2",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ H("div", {
|
|
169
169
|
className: "flex items-center justify-between",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
171
171
|
className: "text-xs text-text-secondary mb-1",
|
|
172
172
|
children: "Invoice"
|
|
173
|
-
}), /* @__PURE__ */
|
|
173
|
+
}), /* @__PURE__ */ V("p", {
|
|
174
174
|
className: "text-sm font-mono",
|
|
175
175
|
children: b
|
|
176
|
-
})] }), E && /* @__PURE__ */
|
|
176
|
+
})] }), E && /* @__PURE__ */ V("span", {
|
|
177
177
|
className: `px-2 py-0.5 text-xs font-medium rounded ${E === "PAID" ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-warning-bg-subtle text-status-warning-text"}`,
|
|
178
178
|
children: E
|
|
179
179
|
})]
|
|
180
180
|
}),
|
|
181
|
-
u && /* @__PURE__ */
|
|
181
|
+
u && /* @__PURE__ */ H("p", {
|
|
182
182
|
className: "text-xs text-text-secondary",
|
|
183
183
|
children: ["Provider: ", u]
|
|
184
184
|
}),
|
|
185
|
-
o && n && /* @__PURE__ */
|
|
185
|
+
o && n && /* @__PURE__ */ H("button", {
|
|
186
186
|
type: "button",
|
|
187
187
|
onClick: () => n(e),
|
|
188
188
|
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ V(L, { className: "size-4" }), "View Invoice"]
|
|
190
190
|
})
|
|
191
191
|
]
|
|
192
192
|
}),
|
|
193
|
-
!b && o && n && /* @__PURE__ */
|
|
193
|
+
!b && o && n && /* @__PURE__ */ V("div", {
|
|
194
194
|
className: "p-3 bg-bg-sunken/50 rounded-lg",
|
|
195
|
-
children: /* @__PURE__ */
|
|
195
|
+
children: /* @__PURE__ */ H("button", {
|
|
196
196
|
type: "button",
|
|
197
197
|
onClick: () => n(e),
|
|
198
198
|
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ V(L, { className: "size-4" }),
|
|
201
201
|
"View Invoice ",
|
|
202
202
|
u && `(${u})`
|
|
203
203
|
]
|
|
204
204
|
})
|
|
205
205
|
}),
|
|
206
|
-
O && !o && r && /* @__PURE__ */
|
|
206
|
+
O && !o && r && /* @__PURE__ */ H("div", {
|
|
207
207
|
className: "p-3 bg-status-warning-bg-subtle border border-status-warning-border rounded-lg space-y-2",
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ V("p", {
|
|
210
210
|
className: "text-sm text-status-warning-text",
|
|
211
211
|
children: D ? "Invoice generation failed for this payment." : "This payment doesn't have an invoice yet."
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ H("button", {
|
|
214
214
|
type: "button",
|
|
215
215
|
onClick: () => r(e),
|
|
216
216
|
disabled: i,
|
|
217
217
|
className: "flex items-center gap-2 text-sm font-medium text-primary hover:underline disabled:cursor-not-allowed disabled:opacity-50",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ V(L, { className: "size-4" }), i ? "Generating…" : "Generate Invoice"]
|
|
219
219
|
}),
|
|
220
|
-
a && /* @__PURE__ */
|
|
220
|
+
a && /* @__PURE__ */ V("p", {
|
|
221
221
|
className: "text-sm text-status-error-text",
|
|
222
222
|
children: a
|
|
223
223
|
})
|
|
224
224
|
]
|
|
225
225
|
}),
|
|
226
|
-
k && (M || F || I) && /* @__PURE__ */
|
|
226
|
+
k && (M || F || I) && /* @__PURE__ */ H("div", {
|
|
227
227
|
className: "p-3 bg-status-error-bg-subtle/20 border border-border-subtle rounded-lg space-y-3",
|
|
228
228
|
children: [
|
|
229
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ H("div", {
|
|
230
230
|
className: "flex items-center gap-2",
|
|
231
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ V("div", { className: "size-1.5 rounded-full bg-status-error-bg" }), /* @__PURE__ */ V("p", {
|
|
232
232
|
className: "text-sm font-semibold text-status-error-text",
|
|
233
233
|
children: "Refund Information"
|
|
234
234
|
})]
|
|
235
235
|
}),
|
|
236
|
-
N && /* @__PURE__ */
|
|
236
|
+
N && /* @__PURE__ */ H("div", {
|
|
237
237
|
className: "space-y-2",
|
|
238
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
239
239
|
className: "text-xs text-status-error-text mb-1",
|
|
240
240
|
children: "Credit Note"
|
|
241
|
-
}), /* @__PURE__ */
|
|
241
|
+
}), /* @__PURE__ */ V("p", {
|
|
242
242
|
className: "text-sm font-mono text-status-error-text",
|
|
243
243
|
children: N
|
|
244
|
-
})] }), P && /* @__PURE__ */
|
|
244
|
+
})] }), P && /* @__PURE__ */ H("button", {
|
|
245
245
|
type: "button",
|
|
246
246
|
onClick: () => {
|
|
247
247
|
l("light"), d(P);
|
|
248
248
|
},
|
|
249
249
|
className: "flex items-center gap-2 text-sm text-status-error-text hover:underline",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ V(L, { className: "size-4" }), "Download Credit Note PDF"]
|
|
251
251
|
})]
|
|
252
252
|
}),
|
|
253
|
-
I && /* @__PURE__ */
|
|
253
|
+
I && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
254
254
|
className: "text-xs text-status-error-text mb-1",
|
|
255
255
|
children: "Purchase Type"
|
|
256
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ H("p", {
|
|
257
257
|
className: "text-sm text-status-error-text",
|
|
258
258
|
children: [I, R && ` - ${R}`]
|
|
259
259
|
})] }),
|
|
260
|
-
F && /* @__PURE__ */
|
|
260
|
+
F && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
261
261
|
className: "text-xs text-status-error-text mb-1",
|
|
262
262
|
children: "Reason"
|
|
263
|
-
}), /* @__PURE__ */
|
|
263
|
+
}), /* @__PURE__ */ V("p", {
|
|
264
264
|
className: "text-sm text-status-error-text",
|
|
265
265
|
children: F
|
|
266
266
|
})] }),
|
|
267
|
-
j && /* @__PURE__ */
|
|
267
|
+
j && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
268
268
|
className: "text-xs text-status-error-text mb-1",
|
|
269
269
|
children: "Original Transaction"
|
|
270
|
-
}), /* @__PURE__ */
|
|
270
|
+
}), /* @__PURE__ */ V("p", {
|
|
271
271
|
className: "text-sm font-mono text-status-error-text break-all",
|
|
272
272
|
children: j
|
|
273
273
|
})] }),
|
|
274
|
-
A && /* @__PURE__ */
|
|
274
|
+
A && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
275
275
|
className: "text-xs text-status-error-text mb-1",
|
|
276
276
|
children: "Refund Record ID"
|
|
277
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ V("p", {
|
|
278
278
|
className: "text-sm font-mono text-status-error-text break-all",
|
|
279
279
|
children: A
|
|
280
280
|
})] })
|
|
281
281
|
]
|
|
282
282
|
}),
|
|
283
|
-
e.stripePaymentId && /* @__PURE__ */
|
|
283
|
+
e.stripePaymentId && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
284
284
|
className: "text-xs text-text-secondary mb-1",
|
|
285
285
|
children: "Stripe Payment ID"
|
|
286
|
-
}), /* @__PURE__ */
|
|
286
|
+
}), /* @__PURE__ */ V("p", {
|
|
287
287
|
className: "text-sm font-mono break-all",
|
|
288
288
|
children: e.stripePaymentId
|
|
289
289
|
})] }),
|
|
290
|
-
e.razorpayPaymentId && /* @__PURE__ */
|
|
290
|
+
e.razorpayPaymentId && /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
291
291
|
className: "text-xs text-text-secondary mb-1",
|
|
292
292
|
children: "Razorpay Payment ID"
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ V("p", {
|
|
294
294
|
className: "text-sm font-mono break-all",
|
|
295
295
|
children: e.razorpayPaymentId
|
|
296
296
|
})] })
|
|
297
297
|
]
|
|
298
298
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ V(C, {
|
|
300
300
|
className: "p-4 border-t border-border-subtle",
|
|
301
|
-
children: /* @__PURE__ */
|
|
301
|
+
children: /* @__PURE__ */ V("button", {
|
|
302
302
|
type: "button",
|
|
303
303
|
onClick: t,
|
|
304
304
|
className: "w-full py-2 px-4 bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
@@ -308,15 +308,15 @@ var W = {
|
|
|
308
308
|
]
|
|
309
309
|
})
|
|
310
310
|
});
|
|
311
|
-
},
|
|
312
|
-
let { t: v } =
|
|
311
|
+
}, G = () => {
|
|
312
|
+
let { t: v } = re(), y = (e, t) => {
|
|
313
313
|
let n = v(e);
|
|
314
314
|
return n === e ? t : n;
|
|
315
|
-
}, { billingAccountId: x } =
|
|
315
|
+
}, { billingAccountId: x } = ne(), S = i(), C = a(), w = p(), { billingAccount: T, transactions: I, pagination: z, isLoading: B, error: G, refetch: oe, goToNextPage: se, goToPreviousPage: ce } = h(x), [K, le] = b("all"), [ue, q] = b(null), J = I.find((e) => e.id === ue) ?? null, { retryInvoiceGeneration: Y, isRetrying: de } = m(), [fe, X] = b(null), pe = async (e) => {
|
|
316
316
|
if (x) {
|
|
317
317
|
X(null);
|
|
318
318
|
try {
|
|
319
|
-
await
|
|
319
|
+
await Y(e.id, x), u("success");
|
|
320
320
|
} catch (e) {
|
|
321
321
|
X(e instanceof Error ? e.message : "Failed to generate invoice"), u("error");
|
|
322
322
|
}
|
|
@@ -331,16 +331,16 @@ var W = {
|
|
|
331
331
|
let t = Z(e);
|
|
332
332
|
t && (l("light"), d(t));
|
|
333
333
|
};
|
|
334
|
-
if (!S.canViewPayments) return /* @__PURE__ */
|
|
335
|
-
if (!x) return /* @__PURE__ */
|
|
334
|
+
if (!S.canViewPayments) return /* @__PURE__ */ V(e, { message: y("billing.transactions.noPermission", "You don't have permission to view transaction history.") });
|
|
335
|
+
if (!x) return /* @__PURE__ */ V("div", {
|
|
336
336
|
className: "p-6",
|
|
337
|
-
children: /* @__PURE__ */
|
|
338
|
-
icon: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ V(n, {
|
|
338
|
+
icon: /* @__PURE__ */ V("svg", {
|
|
339
339
|
className: "size-6 text-text-secondary",
|
|
340
340
|
fill: "none",
|
|
341
341
|
viewBox: "0 0 24 24",
|
|
342
342
|
stroke: "currentColor",
|
|
343
|
-
children: /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ V("path", {
|
|
344
344
|
strokeLinecap: "round",
|
|
345
345
|
strokeLinejoin: "round",
|
|
346
346
|
strokeWidth: 2,
|
|
@@ -351,19 +351,19 @@ var W = {
|
|
|
351
351
|
description: y("billing.transactions.noAccountSelectedDesc", "Please select a billing account from the overview page to view transactions.")
|
|
352
352
|
})
|
|
353
353
|
});
|
|
354
|
-
if (
|
|
354
|
+
if (G && f(G)) return /* @__PURE__ */ V("div", {
|
|
355
355
|
className: "p-6",
|
|
356
|
-
children: /* @__PURE__ */
|
|
356
|
+
children: /* @__PURE__ */ V(r, {
|
|
357
357
|
title: y("billing.transactions.serverUnavailable", "Server Unavailable"),
|
|
358
358
|
message: y("billing.transactions.serverUnavailableMessage", "Unable to load transactions. The server might be down or experiencing issues."),
|
|
359
|
-
onRetry: () =>
|
|
359
|
+
onRetry: () => oe(),
|
|
360
360
|
showRetry: !0
|
|
361
361
|
})
|
|
362
362
|
});
|
|
363
|
-
let $ =
|
|
364
|
-
return
|
|
363
|
+
let $ = K === "all" ? I : I.filter((e) => e.type === K);
|
|
364
|
+
return B ? /* @__PURE__ */ H("div", {
|
|
365
365
|
className: "space-y-6 p-6",
|
|
366
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ V("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ V("div", {
|
|
367
367
|
className: "space-y-2",
|
|
368
368
|
children: [
|
|
369
369
|
1,
|
|
@@ -371,87 +371,87 @@ var W = {
|
|
|
371
371
|
3,
|
|
372
372
|
4,
|
|
373
373
|
5
|
|
374
|
-
].map((e) => /* @__PURE__ */
|
|
374
|
+
].map((e) => /* @__PURE__ */ V("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
|
|
375
375
|
})]
|
|
376
|
-
}) : /* @__PURE__ */
|
|
376
|
+
}) : /* @__PURE__ */ H("div", {
|
|
377
377
|
className: "space-y-6 p-6",
|
|
378
378
|
children: [
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ H("button", {
|
|
380
380
|
type: "button",
|
|
381
381
|
onClick: () => C("/overview"),
|
|
382
382
|
className: "inline-flex items-center gap-2 text-sm text-text-secondary hover:text-text-primary transition-colors",
|
|
383
|
-
children: [/* @__PURE__ */
|
|
383
|
+
children: [/* @__PURE__ */ V(A, { className: "size-4" }), "Back to Overview"]
|
|
384
384
|
}),
|
|
385
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ V(t, {
|
|
386
386
|
title: y("billing.transactions.title", "Transaction History"),
|
|
387
387
|
description: T ? `Transactions for ${T.name}` : "View all your billing transactions"
|
|
388
388
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
w && /* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ V(O, { children: y("billing.transactions.purpose", "A complete, time-ordered ledger of money movements on this billing account — payments, refunds and adjustments. Use it to reconcile what you were charged, open the linked invoice or credit note, and see tax breakdowns for each transaction.") }),
|
|
390
|
+
w && /* @__PURE__ */ V(o, {
|
|
391
391
|
active: "payments",
|
|
392
392
|
billingAccountId: x
|
|
393
393
|
}),
|
|
394
|
-
T && /* @__PURE__ */
|
|
394
|
+
T && /* @__PURE__ */ V(E, {
|
|
395
395
|
className: "p-4",
|
|
396
|
-
children: /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ H("div", {
|
|
397
397
|
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",
|
|
398
398
|
children: [
|
|
399
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ H("div", {
|
|
400
400
|
className: "flex items-start gap-2",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
402
|
-
/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ V(F, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ H("div", { children: [
|
|
402
|
+
/* @__PURE__ */ V("p", {
|
|
403
403
|
className: "text-xs text-text-secondary mb-0.5",
|
|
404
404
|
children: "Account"
|
|
405
405
|
}),
|
|
406
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ V("p", {
|
|
407
407
|
className: "text-sm font-medium",
|
|
408
408
|
children: T.name
|
|
409
409
|
}),
|
|
410
|
-
T.isActive ? /* @__PURE__ */
|
|
410
|
+
T.isActive ? /* @__PURE__ */ H("span", {
|
|
411
411
|
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",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
413
|
-
}) : /* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ V(M, { className: "size-3" }), "Active"]
|
|
413
|
+
}) : /* @__PURE__ */ H("span", {
|
|
414
414
|
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",
|
|
415
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ V(te, { className: "size-3" }), "Inactive"]
|
|
416
416
|
})
|
|
417
417
|
] })]
|
|
418
418
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ H("div", {
|
|
420
420
|
className: "flex items-start gap-2",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ V(R, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
422
422
|
className: "text-xs text-text-secondary mb-0.5",
|
|
423
423
|
children: "Email"
|
|
424
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ V("p", {
|
|
425
425
|
className: "text-sm font-medium break-all",
|
|
426
426
|
children: T.billingEmail || T.email
|
|
427
427
|
})] })]
|
|
428
428
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ H("div", {
|
|
430
430
|
className: "flex items-start gap-2",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ V(ee, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
432
432
|
className: "text-xs text-text-secondary mb-0.5",
|
|
433
433
|
children: "Credits Balance"
|
|
434
|
-
}), /* @__PURE__ */
|
|
434
|
+
}), /* @__PURE__ */ H("p", {
|
|
435
435
|
className: "text-sm font-semibold text-text-primary",
|
|
436
436
|
children: [(T.creditAmount || 0).toLocaleString(), " Credits"]
|
|
437
437
|
})] })]
|
|
438
438
|
}),
|
|
439
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ H("div", {
|
|
440
440
|
className: "flex items-start gap-2",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ V(L, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
442
442
|
className: "text-xs text-text-secondary mb-0.5",
|
|
443
443
|
children: "Tax ID"
|
|
444
|
-
}), /* @__PURE__ */
|
|
444
|
+
}), /* @__PURE__ */ V("p", {
|
|
445
445
|
className: "text-sm font-medium",
|
|
446
446
|
children: T.taxId || "-"
|
|
447
447
|
})] })]
|
|
448
448
|
}),
|
|
449
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ H("div", {
|
|
450
450
|
className: "flex items-start gap-2",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ V(j, { className: "size-4 text-text-secondary mt-0.5" }), /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V("p", {
|
|
452
452
|
className: "text-xs text-text-secondary mb-0.5",
|
|
453
453
|
children: "Member Since"
|
|
454
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ V("p", {
|
|
455
455
|
className: "text-sm font-medium",
|
|
456
456
|
children: T.createdAt ? c(T.createdAt) : "-"
|
|
457
457
|
})] })]
|
|
@@ -459,37 +459,39 @@ var W = {
|
|
|
459
459
|
]
|
|
460
460
|
})
|
|
461
461
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ V("div", {
|
|
463
463
|
className: "flex items-center gap-4",
|
|
464
|
-
children: /* @__PURE__ */
|
|
464
|
+
children: /* @__PURE__ */ V("div", {
|
|
465
465
|
className: "inline-flex rounded-lg border border-border-subtle p-1 bg-bg-sunken/50",
|
|
466
466
|
children: [
|
|
467
467
|
"all",
|
|
468
468
|
"payment",
|
|
469
469
|
"refund",
|
|
470
470
|
"adjustment"
|
|
471
|
-
].map((e) => /* @__PURE__ */
|
|
471
|
+
].map((e) => /* @__PURE__ */ V("button", {
|
|
472
472
|
type: "button",
|
|
473
|
-
onClick: () =>
|
|
474
|
-
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${
|
|
475
|
-
children: e === "all" ? "All" :
|
|
473
|
+
onClick: () => le(e),
|
|
474
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${K === e ? "bg-bg-surface text-text-primary shadow-sm" : "text-text-secondary hover:text-text-primary"}`,
|
|
475
|
+
children: e === "all" ? "All" : U[e]
|
|
476
476
|
}, e))
|
|
477
477
|
})
|
|
478
478
|
}),
|
|
479
|
-
$.length === 0 ? /* @__PURE__ */
|
|
480
|
-
illustration:
|
|
479
|
+
$.length === 0 ? /* @__PURE__ */ V(D, {
|
|
480
|
+
illustration: K === "all" ? "empty-data" : "empty-search",
|
|
481
481
|
title: y("billing.transactions.noTransactionsFound", "No transactions found"),
|
|
482
|
-
description:
|
|
483
|
-
|
|
482
|
+
description: K === "all" ? y("billing.transactions.noTransactionsYet", "Your transaction history will appear here.") : y("billing.transactions.noTransactionsFiltered", "No transactions match your filter."),
|
|
483
|
+
kind: K === "all" ? "first-use" : "filtered",
|
|
484
|
+
glassIllustration: "money"
|
|
485
|
+
}) : /* @__PURE__ */ V("div", {
|
|
484
486
|
className: "border border-border-subtle rounded-lg overflow-visible",
|
|
485
|
-
children: /* @__PURE__ */
|
|
487
|
+
children: /* @__PURE__ */ V(k, {
|
|
486
488
|
columns: [
|
|
487
489
|
{
|
|
488
490
|
key: "date",
|
|
489
491
|
header: "Date",
|
|
490
492
|
priority: "primary",
|
|
491
493
|
cellClassName: "whitespace-nowrap",
|
|
492
|
-
cell: (e) => /* @__PURE__ */
|
|
494
|
+
cell: (e) => /* @__PURE__ */ V("span", {
|
|
493
495
|
className: "text-sm text-text-primary",
|
|
494
496
|
children: c(e.createdAt)
|
|
495
497
|
})
|
|
@@ -498,15 +500,15 @@ var W = {
|
|
|
498
500
|
key: "type",
|
|
499
501
|
header: "Type",
|
|
500
502
|
cellClassName: "whitespace-nowrap",
|
|
501
|
-
cell: (e) => /* @__PURE__ */
|
|
503
|
+
cell: (e) => /* @__PURE__ */ V("span", {
|
|
502
504
|
className: "text-sm text-text-primary capitalize",
|
|
503
|
-
children:
|
|
505
|
+
children: W(e.type)
|
|
504
506
|
})
|
|
505
507
|
},
|
|
506
508
|
{
|
|
507
509
|
key: "description",
|
|
508
510
|
header: "Description",
|
|
509
|
-
cell: (e) => /* @__PURE__ */
|
|
511
|
+
cell: (e) => /* @__PURE__ */ V("span", {
|
|
510
512
|
className: "text-sm text-text-secondary",
|
|
511
513
|
children: e.description ?? "-"
|
|
512
514
|
})
|
|
@@ -516,7 +518,7 @@ var W = {
|
|
|
516
518
|
header: "Amount",
|
|
517
519
|
headerClassName: "text-right",
|
|
518
520
|
cellClassName: "text-right whitespace-nowrap",
|
|
519
|
-
cell: (e) => /* @__PURE__ */
|
|
521
|
+
cell: (e) => /* @__PURE__ */ H("span", {
|
|
520
522
|
className: `text-sm font-medium tabular-nums ${e.type === "refund" ? "text-status-error-text" : "text-text-primary"}`,
|
|
521
523
|
children: [e.type === "refund" ? "-" : "", s(me(e), e.currency)]
|
|
522
524
|
})
|
|
@@ -526,7 +528,7 @@ var W = {
|
|
|
526
528
|
header: "Status",
|
|
527
529
|
headerClassName: "text-center",
|
|
528
530
|
cellClassName: "text-center whitespace-nowrap",
|
|
529
|
-
cell: (e) => /* @__PURE__ */
|
|
531
|
+
cell: (e) => /* @__PURE__ */ V("span", {
|
|
530
532
|
className: `px-1.5 py-0.5 text-xs font-medium rounded ${g(_(e.status))}`,
|
|
531
533
|
children: e.status
|
|
532
534
|
})
|
|
@@ -534,17 +536,17 @@ var W = {
|
|
|
534
536
|
],
|
|
535
537
|
data: $,
|
|
536
538
|
rowKey: (e) => e.id,
|
|
537
|
-
rowActions: (e) => /* @__PURE__ */
|
|
539
|
+
rowActions: (e) => /* @__PURE__ */ V(ie, {
|
|
538
540
|
transaction: e,
|
|
539
|
-
onViewDetails: () =>
|
|
541
|
+
onViewDetails: () => q(e.id),
|
|
540
542
|
onViewInvoice: () => Q(e),
|
|
541
543
|
hasInvoiceUrl: !!Z(e)
|
|
542
544
|
})
|
|
543
545
|
})
|
|
544
546
|
}),
|
|
545
|
-
z.totalCount > 0 && /* @__PURE__ */
|
|
547
|
+
z.totalCount > 0 && /* @__PURE__ */ H("div", {
|
|
546
548
|
className: "flex items-center justify-between border-t border-border-subtle pt-4",
|
|
547
|
-
children: [/* @__PURE__ */
|
|
549
|
+
children: [/* @__PURE__ */ H("p", {
|
|
548
550
|
className: "text-sm text-text-secondary",
|
|
549
551
|
children: [
|
|
550
552
|
"Showing ",
|
|
@@ -557,17 +559,17 @@ var W = {
|
|
|
557
559
|
z.totalCount,
|
|
558
560
|
" transactions"
|
|
559
561
|
]
|
|
560
|
-
}), /* @__PURE__ */
|
|
562
|
+
}), /* @__PURE__ */ H("div", {
|
|
561
563
|
className: "flex items-center gap-2",
|
|
562
564
|
children: [
|
|
563
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ H("button", {
|
|
564
566
|
type: "button",
|
|
565
|
-
onClick:
|
|
567
|
+
onClick: ce,
|
|
566
568
|
disabled: !z.hasPrevious,
|
|
567
569
|
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
568
|
-
children: [/* @__PURE__ */
|
|
570
|
+
children: [/* @__PURE__ */ V(N, { className: "size-4" }), "Previous"]
|
|
569
571
|
}),
|
|
570
|
-
/* @__PURE__ */
|
|
572
|
+
/* @__PURE__ */ H("span", {
|
|
571
573
|
className: "text-sm text-text-secondary px-2",
|
|
572
574
|
children: [
|
|
573
575
|
"Page ",
|
|
@@ -576,31 +578,31 @@ var W = {
|
|
|
576
578
|
Math.ceil(z.totalCount / z.pageSize)
|
|
577
579
|
]
|
|
578
580
|
}),
|
|
579
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ H("button", {
|
|
580
582
|
type: "button",
|
|
581
|
-
onClick:
|
|
583
|
+
onClick: se,
|
|
582
584
|
disabled: !z.hasMore,
|
|
583
585
|
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
584
|
-
children: ["Next", /* @__PURE__ */
|
|
586
|
+
children: ["Next", /* @__PURE__ */ V(P, { className: "size-4" })]
|
|
585
587
|
})
|
|
586
588
|
]
|
|
587
589
|
})]
|
|
588
590
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
transaction:
|
|
591
|
+
/* @__PURE__ */ V(ae, {
|
|
592
|
+
transaction: J,
|
|
591
593
|
onClose: () => {
|
|
592
|
-
|
|
594
|
+
q(null), X(null);
|
|
593
595
|
},
|
|
594
596
|
onViewInvoice: Q,
|
|
595
597
|
onRetryInvoice: pe,
|
|
596
598
|
isRetryingInvoice: de,
|
|
597
599
|
retryInvoiceError: fe,
|
|
598
|
-
invoiceUrl:
|
|
599
|
-
invoiceProvider:
|
|
600
|
+
invoiceUrl: J ? Z(J) : null,
|
|
601
|
+
invoiceProvider: J ? he(J) : null
|
|
600
602
|
})
|
|
601
603
|
]
|
|
602
604
|
});
|
|
603
605
|
};
|
|
604
|
-
export {
|
|
606
|
+
export { G as TransactionsPage };
|
|
605
607
|
|
|
606
608
|
//# sourceMappingURL=TransactionsPage.js.map
|