@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.
- package/dist/billing/BillingRoot.js +83 -77
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
- package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
- package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
- package/dist/billing/modules/billing/hooks/index.js +5 -5
- package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
- package/dist/billing/modules/billing/index.js +14 -14
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
- package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
- package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
- package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +144 -144
- package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
- package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
- package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +102 -102
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +107 -107
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
- package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +100 -100
- package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
- package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
- package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
- package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
- package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
- package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
- package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
- package/dist/billing/shared/components/EmptyState.js +3 -3
- package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
- package/dist/billing/shared/ui/MetricCard.js +13 -13
- package/dist/billing/shared/utils/format.js +16 -4
- package/dist/billing/shared/utils/format.js.map +1 -1
- package/dist/billing/shared/utils/index.js +8 -8
- package/dist/generated/global-operations.js +294 -286
- package/dist/generated/global-operations.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,10 +10,10 @@ import "../../../shared/components/index.js";
|
|
|
10
10
|
import { AddPaymentMethodModal as c } from "../../dashboard/components/AddPaymentMethodModal.js";
|
|
11
11
|
import { nativeConfirm as l, nativeImpact as u, nativeNotify as d } from "../../../../utils/nativeBridge.js";
|
|
12
12
|
import { useCallback as f, useEffect as p, useState as m } from "react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { IllustratedEmptyState as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { useLocation as _ } from "react-router";
|
|
15
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
16
|
+
import { useI18n as b } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
17
17
|
// src/billing/modules/billing/pages/PaymentMethodsPage.tsx
|
|
18
18
|
var x = {
|
|
19
19
|
visa: "💳",
|
|
@@ -29,10 +29,10 @@ var x = {
|
|
|
29
29
|
PAYPAL: "PayPal",
|
|
30
30
|
CRYPTO: "Cryptocurrency"
|
|
31
31
|
}, C = () => {
|
|
32
|
-
let { t: l } =
|
|
32
|
+
let { t: l } = b(), u = (e, t) => {
|
|
33
33
|
let n = l(e);
|
|
34
34
|
return n === e ? t : n;
|
|
35
|
-
}, x = a(), { emit: S } = i(), { navigate: C, basePath: T } = r(), { pathname: E } =
|
|
35
|
+
}, x = a(), { emit: S } = i(), { navigate: C, basePath: T } = r(), { pathname: E } = _(), { billingAccount: D, paymentMethods: O, isLoading: k, refetch: A } = s(), { setDefaultPaymentMethod: j, deletePaymentMethod: M } = o(), [N, P] = m(!1), [F, I] = m(null), L = f((e) => T && T !== "/" ? `${T.endsWith("/") ? T.slice(0, -1) : T}/${e}` : `/${e}`, [T]), R = f(() => {
|
|
36
36
|
C(L("payment-methods/add"));
|
|
37
37
|
}, [C, L]), z = f(async (e) => {
|
|
38
38
|
let t = D?.id;
|
|
@@ -77,57 +77,57 @@ var x = {
|
|
|
77
77
|
]);
|
|
78
78
|
return p(() => {
|
|
79
79
|
E.replace(/\/+$/, "").endsWith("/payment-methods/add") && P(!0);
|
|
80
|
-
}, [E]), x.canViewPaymentMethods ? k ? /* @__PURE__ */
|
|
80
|
+
}, [E]), x.canViewPaymentMethods ? k ? /* @__PURE__ */ y("div", {
|
|
81
81
|
className: "space-y-6 p-6",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ v("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ v("div", {
|
|
83
83
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
84
84
|
children: [
|
|
85
85
|
1,
|
|
86
86
|
2,
|
|
87
87
|
3
|
|
88
|
-
].map((e) => /* @__PURE__ */
|
|
88
|
+
].map((e) => /* @__PURE__ */ v("div", { className: "h-32 bg-bg-sunken animate-pulse rounded-lg" }, e))
|
|
89
89
|
})]
|
|
90
|
-
}) : /* @__PURE__ */
|
|
90
|
+
}) : /* @__PURE__ */ y("div", {
|
|
91
91
|
className: "space-y-6 p-6",
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ v(n, {
|
|
94
94
|
title: u("billing.paymentMethods.title", "Payment Methods"),
|
|
95
95
|
description: u("billing.paymentMethods.subtitle", "Manage your saved payment methods"),
|
|
96
|
-
actions: x.canManagePaymentMethods && /* @__PURE__ */
|
|
96
|
+
actions: x.canManagePaymentMethods && /* @__PURE__ */ v("button", {
|
|
97
97
|
type: "button",
|
|
98
98
|
onClick: R,
|
|
99
99
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 transition-colors",
|
|
100
100
|
children: u("billing.paymentMethods.add", "Add payment method")
|
|
101
101
|
})
|
|
102
102
|
}),
|
|
103
|
-
/* @__PURE__ */ g
|
|
104
|
-
F && /* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ v(g, { children: u("billing.paymentMethods.purpose", "Save and manage the cards and payment options used to pay invoices, subscriptions and one-off purchases. Add a method, mark one as default for automatic billing, or remove ones you no longer use.") }),
|
|
104
|
+
F && /* @__PURE__ */ v("div", {
|
|
105
105
|
className: "rounded-button border border-status-error-border bg-status-error-bg-subtle p-3",
|
|
106
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ v("p", {
|
|
107
107
|
className: "text-sm text-status-error-text",
|
|
108
108
|
children: F
|
|
109
109
|
})
|
|
110
110
|
}),
|
|
111
|
-
O.length === 0 ? /* @__PURE__ */
|
|
111
|
+
O.length === 0 ? /* @__PURE__ */ v(h, {
|
|
112
112
|
illustration: "empty-generic",
|
|
113
113
|
title: u("billing.paymentMethods.noPaymentMethods", "No payment methods"),
|
|
114
114
|
description: u("billing.paymentMethods.noPaymentMethodsDesc", "Add a payment method to make purchases and manage subscriptions."),
|
|
115
|
-
action: x.canManagePaymentMethods ? /* @__PURE__ */
|
|
115
|
+
action: x.canManagePaymentMethods ? /* @__PURE__ */ v("button", {
|
|
116
116
|
type: "button",
|
|
117
117
|
onClick: () => P(!0),
|
|
118
118
|
className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90",
|
|
119
119
|
children: "Add Payment Method"
|
|
120
120
|
}) : void 0
|
|
121
|
-
}) : /* @__PURE__ */
|
|
121
|
+
}) : /* @__PURE__ */ v("div", {
|
|
122
122
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
123
|
-
children: O.map((e) => /* @__PURE__ */
|
|
123
|
+
children: O.map((e) => /* @__PURE__ */ v(w, {
|
|
124
124
|
method: e,
|
|
125
125
|
canManage: x.canManagePaymentMethods,
|
|
126
126
|
onSetDefault: z,
|
|
127
127
|
onDelete: B
|
|
128
128
|
}, e.id))
|
|
129
129
|
}),
|
|
130
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ v(c, {
|
|
131
131
|
isOpen: N,
|
|
132
132
|
onClose: () => {
|
|
133
133
|
P(!1), E.replace(/\/+$/, "").endsWith("/payment-methods/add") && C(L("payment-methods"));
|
|
@@ -146,7 +146,7 @@ var x = {
|
|
|
146
146
|
}
|
|
147
147
|
})
|
|
148
148
|
]
|
|
149
|
-
}) : /* @__PURE__ */
|
|
149
|
+
}) : /* @__PURE__ */ v(t, { message: u("billing.paymentMethods.noViewPermission", "You don't have permission to view payment methods.") });
|
|
150
150
|
}, w = ({ method: e, canManage: t, onSetDefault: n, onDelete: r }) => {
|
|
151
151
|
let [i, a] = m(!1), [o, s] = m(!1), [c, d] = m(!1), f = e.expiryYear && e.expiryMonth ? new Date(e.expiryYear, e.expiryMonth - 1) < /* @__PURE__ */ new Date() : !1, p = async () => {
|
|
152
152
|
a(!0);
|
|
@@ -163,30 +163,30 @@ var x = {
|
|
|
163
163
|
s(!1), d(!1);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
return /* @__PURE__ */
|
|
166
|
+
return /* @__PURE__ */ y("div", {
|
|
167
167
|
className: `border rounded-lg bg-bg-surface p-4 ${e.isDefault ? "border-primary" : "border-border-subtle"}`,
|
|
168
168
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ v("div", {
|
|
170
170
|
className: "flex items-start justify-between",
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ y("div", {
|
|
172
172
|
className: "flex items-center gap-3",
|
|
173
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ v("span", {
|
|
174
174
|
className: "text-2xl",
|
|
175
175
|
children: x[e.brand?.toLowerCase() ?? "default"]
|
|
176
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
|
|
177
177
|
className: "flex items-center gap-2",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
178
|
+
children: [/* @__PURE__ */ y("p", {
|
|
179
179
|
className: "font-medium text-text-primary",
|
|
180
180
|
children: [
|
|
181
181
|
e.brand ?? S[e.type],
|
|
182
182
|
" •••• ",
|
|
183
183
|
e.last4
|
|
184
184
|
]
|
|
185
|
-
}), e.isDefault && /* @__PURE__ */
|
|
185
|
+
}), e.isDefault && /* @__PURE__ */ v("span", {
|
|
186
186
|
className: "px-1.5 py-0.5 text-xs font-medium bg-action-primary-bg/10 text-primary rounded",
|
|
187
187
|
children: "Default"
|
|
188
188
|
})]
|
|
189
|
-
}), e.expiryMonth && e.expiryYear && /* @__PURE__ */
|
|
189
|
+
}), e.expiryMonth && e.expiryYear && /* @__PURE__ */ y("p", {
|
|
190
190
|
className: `text-sm ${f ? "text-status-error-text" : "text-text-secondary"}`,
|
|
191
191
|
children: [
|
|
192
192
|
f ? "Expired" : "Expires",
|
|
@@ -198,15 +198,15 @@ var x = {
|
|
|
198
198
|
})] })]
|
|
199
199
|
})
|
|
200
200
|
}),
|
|
201
|
-
t && /* @__PURE__ */
|
|
201
|
+
t && /* @__PURE__ */ y("div", {
|
|
202
202
|
className: "flex items-center gap-2 mt-4 pt-4 border-t border-border-subtle",
|
|
203
|
-
children: [!e.isDefault && /* @__PURE__ */
|
|
203
|
+
children: [!e.isDefault && /* @__PURE__ */ v("button", {
|
|
204
204
|
type: "button",
|
|
205
205
|
onClick: p,
|
|
206
206
|
disabled: i || o,
|
|
207
207
|
className: "text-sm text-primary hover:underline disabled:cursor-not-allowed disabled:opacity-50",
|
|
208
208
|
children: i ? "Setting default…" : "Set as default"
|
|
209
|
-
}), /* @__PURE__ */
|
|
209
|
+
}), /* @__PURE__ */ v("button", {
|
|
210
210
|
type: "button",
|
|
211
211
|
onClick: async () => {
|
|
212
212
|
u("medium");
|
|
@@ -223,19 +223,19 @@ var x = {
|
|
|
223
223
|
children: o ? "Removing…" : "Remove"
|
|
224
224
|
})]
|
|
225
225
|
}),
|
|
226
|
-
c && /* @__PURE__ */
|
|
226
|
+
c && /* @__PURE__ */ y("div", {
|
|
227
227
|
className: "mt-4 rounded-lg border border-status-error-border bg-status-error-bg-subtle p-3",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ v("p", {
|
|
229
229
|
className: "text-sm font-medium text-status-error-text",
|
|
230
230
|
children: "Remove this payment method from your billing account?"
|
|
231
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ y("div", {
|
|
232
232
|
className: "mt-3 flex justify-end gap-2",
|
|
233
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ v("button", {
|
|
234
234
|
type: "button",
|
|
235
235
|
onClick: () => d(!1),
|
|
236
236
|
className: "rounded-button border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken",
|
|
237
237
|
children: "Cancel"
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ v("button", {
|
|
239
239
|
type: "button",
|
|
240
240
|
onClick: h,
|
|
241
241
|
disabled: o,
|
|
@@ -10,10 +10,10 @@ import "../../../shared/utils/index.js";
|
|
|
10
10
|
import { useRefundRecords as s } from "../hooks/useRefunds.js";
|
|
11
11
|
import { statusTokens as c } from "../../../shared/utils/tokens.js";
|
|
12
12
|
import { useEffect as l, useMemo as u, useState as d } from "react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { IllustratedEmptyState as f, ResponsiveTable as p } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { AlertTriangle as m, ArrowLeft as h, RefreshCw as g, Search as _, X as v } from "lucide-react";
|
|
15
|
+
import { Link as y } from "react-router";
|
|
16
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
17
17
|
// src/billing/modules/billing/pages/RefundIssueLogsPage.tsx
|
|
18
18
|
var S = 25, C = 350, w = () => {
|
|
19
19
|
let w = n(), [T, E] = d(""), [D, O] = d("");
|
|
@@ -28,10 +28,10 @@ var S = 25, C = 350, w = () => {
|
|
|
28
28
|
pageSize: S,
|
|
29
29
|
filters: k
|
|
30
30
|
});
|
|
31
|
-
if (!w.canViewPayments) return /* @__PURE__ */
|
|
32
|
-
if (N && o(N)) return /* @__PURE__ */
|
|
31
|
+
if (!w.canViewPayments) return /* @__PURE__ */ b(e, { message: "You don't have permission to view refund logs." });
|
|
32
|
+
if (N && o(N)) return /* @__PURE__ */ b("div", {
|
|
33
33
|
className: "p-6",
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ b(r, {
|
|
35
35
|
title: "Server Unavailable",
|
|
36
36
|
message: "Unable to load refund issue logs. The server might be down or experiencing issues.",
|
|
37
37
|
onRetry: () => P(),
|
|
@@ -44,12 +44,12 @@ var S = 25, C = 350, w = () => {
|
|
|
44
44
|
header: "Date",
|
|
45
45
|
priority: "primary",
|
|
46
46
|
cellClassName: "whitespace-nowrap",
|
|
47
|
-
cell: (e) => /* @__PURE__ */
|
|
47
|
+
cell: (e) => /* @__PURE__ */ x("div", {
|
|
48
48
|
className: "flex flex-col",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ b("span", {
|
|
50
50
|
className: "text-sm text-text-primary",
|
|
51
51
|
children: a(e.createdAt).split(" ")[0]
|
|
52
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ b("span", {
|
|
53
53
|
className: "text-xs text-text-muted",
|
|
54
54
|
children: a(e.createdAt).split(" ")[1]
|
|
55
55
|
})]
|
|
@@ -59,7 +59,7 @@ var S = 25, C = 350, w = () => {
|
|
|
59
59
|
key: "status",
|
|
60
60
|
header: "Status",
|
|
61
61
|
cellClassName: "whitespace-nowrap",
|
|
62
|
-
cell: (e) => /* @__PURE__ */
|
|
62
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
63
63
|
className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${c.success.bg} ${c.success.text}`,
|
|
64
64
|
children: e.status
|
|
65
65
|
})
|
|
@@ -69,7 +69,7 @@ var S = 25, C = 350, w = () => {
|
|
|
69
69
|
header: "Provider",
|
|
70
70
|
priority: "hidden-on-mobile",
|
|
71
71
|
cellClassName: "whitespace-nowrap",
|
|
72
|
-
cell: (e) => /* @__PURE__ */
|
|
72
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
73
73
|
className: "text-sm text-text-primary capitalize",
|
|
74
74
|
children: e.provider
|
|
75
75
|
})
|
|
@@ -79,7 +79,7 @@ var S = 25, C = 350, w = () => {
|
|
|
79
79
|
header: "Transaction ID",
|
|
80
80
|
priority: "hidden-on-mobile",
|
|
81
81
|
cellClassName: "whitespace-nowrap max-w-[140px] truncate",
|
|
82
|
-
cell: (e) => /* @__PURE__ */
|
|
82
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
83
83
|
className: "text-sm font-mono text-text-muted",
|
|
84
84
|
children: e.transactionId || "-"
|
|
85
85
|
})
|
|
@@ -88,7 +88,7 @@ var S = 25, C = 350, w = () => {
|
|
|
88
88
|
key: "paymentId",
|
|
89
89
|
header: "Payment ID",
|
|
90
90
|
cellClassName: "whitespace-nowrap max-w-[140px] truncate",
|
|
91
|
-
cell: (e) => /* @__PURE__ */
|
|
91
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
92
92
|
className: "text-sm font-mono text-text-muted",
|
|
93
93
|
children: e.gatewayPaymentId
|
|
94
94
|
})
|
|
@@ -98,7 +98,7 @@ var S = 25, C = 350, w = () => {
|
|
|
98
98
|
header: "Amount",
|
|
99
99
|
headerClassName: "text-right",
|
|
100
100
|
cellClassName: "text-right whitespace-nowrap",
|
|
101
|
-
cell: (e) => /* @__PURE__ */
|
|
101
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
102
102
|
className: "text-sm font-medium tabular-nums",
|
|
103
103
|
children: i(e.amount, e.currency)
|
|
104
104
|
})
|
|
@@ -108,7 +108,7 @@ var S = 25, C = 350, w = () => {
|
|
|
108
108
|
header: "Type",
|
|
109
109
|
priority: "hidden-on-mobile",
|
|
110
110
|
cellClassName: "whitespace-nowrap",
|
|
111
|
-
cell: (e) => /* @__PURE__ */
|
|
111
|
+
cell: (e) => /* @__PURE__ */ b("span", {
|
|
112
112
|
className: "text-sm text-text-muted",
|
|
113
113
|
children: e.purchaseType || "-"
|
|
114
114
|
})
|
|
@@ -117,56 +117,56 @@ var S = 25, C = 350, w = () => {
|
|
|
117
117
|
key: "issue",
|
|
118
118
|
header: "Issue",
|
|
119
119
|
cellClassName: "max-w-[360px]",
|
|
120
|
-
cell: (e) => /* @__PURE__ */
|
|
120
|
+
cell: (e) => /* @__PURE__ */ x("div", {
|
|
121
121
|
className: "flex items-start gap-1.5 py-1",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ b(m, { className: `size-3.5 mt-0.5 shrink-0 ${c.warning.icon}` }), /* @__PURE__ */ b("span", {
|
|
123
123
|
className: "text-sm text-status-warning-text",
|
|
124
124
|
children: e.errorMessage
|
|
125
125
|
})]
|
|
126
126
|
})
|
|
127
127
|
}
|
|
128
128
|
], R = Math.max(1, Math.ceil(j.totalCount / S));
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ x("div", {
|
|
130
130
|
className: "space-y-6 p-6",
|
|
131
131
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ b(t, {
|
|
133
133
|
title: "Refund Issue Log",
|
|
134
134
|
description: "Refunds that succeeded with the payment gateway but left an accounting or reconciliation issue behind — e.g. a Zoho credit note that couldn't be recorded. The customer was refunded; these still need manual follow-up.",
|
|
135
|
-
actions: /* @__PURE__ */
|
|
135
|
+
actions: /* @__PURE__ */ x("div", {
|
|
136
136
|
className: "flex items-center gap-2",
|
|
137
|
-
children: [/* @__PURE__ */ y
|
|
137
|
+
children: [/* @__PURE__ */ x(y, {
|
|
138
138
|
to: "../refunds",
|
|
139
139
|
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50",
|
|
140
|
-
children: [/* @__PURE__ */
|
|
141
|
-
}), /* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ b(h, { className: "size-4" }), "Back to Refunds"]
|
|
141
|
+
}), /* @__PURE__ */ x("button", {
|
|
142
142
|
type: "button",
|
|
143
143
|
onClick: () => P(),
|
|
144
144
|
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ b(g, { className: "size-4" }), "Refresh"]
|
|
146
146
|
})]
|
|
147
147
|
})
|
|
148
148
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ x("div", {
|
|
150
150
|
className: "relative",
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ b(_, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }),
|
|
153
|
+
/* @__PURE__ */ b("input", {
|
|
154
154
|
type: "text",
|
|
155
155
|
placeholder: "Search by transaction ID, refund ID, gateway payment ID, or gateway refund ID…",
|
|
156
156
|
value: T,
|
|
157
157
|
onChange: (e) => E(e.target.value),
|
|
158
158
|
className: "w-full pl-[3.25rem] pr-10 py-2 border border-border-subtle rounded-md bg-bg-surface"
|
|
159
159
|
}),
|
|
160
|
-
T && /* @__PURE__ */
|
|
160
|
+
T && /* @__PURE__ */ b("button", {
|
|
161
161
|
type: "button",
|
|
162
162
|
onClick: () => E(""),
|
|
163
163
|
className: "absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-bg-sunken/50",
|
|
164
164
|
"aria-label": "Clear search",
|
|
165
|
-
children: /* @__PURE__ */ v
|
|
165
|
+
children: /* @__PURE__ */ b(v, { className: "size-4 text-text-muted" })
|
|
166
166
|
})
|
|
167
167
|
]
|
|
168
168
|
}),
|
|
169
|
-
M && A.length === 0 ? /* @__PURE__ */
|
|
169
|
+
M && A.length === 0 ? /* @__PURE__ */ b("div", {
|
|
170
170
|
className: "space-y-2",
|
|
171
171
|
children: [
|
|
172
172
|
1,
|
|
@@ -174,22 +174,22 @@ var S = 25, C = 350, w = () => {
|
|
|
174
174
|
3,
|
|
175
175
|
4,
|
|
176
176
|
5
|
|
177
|
-
].map((e) => /* @__PURE__ */
|
|
178
|
-
}) : A.length === 0 ? /* @__PURE__ */
|
|
177
|
+
].map((e) => /* @__PURE__ */ b("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
|
|
178
|
+
}) : A.length === 0 ? /* @__PURE__ */ b(f, {
|
|
179
179
|
illustration: D ? "empty-search" : "empty-data",
|
|
180
180
|
title: D ? "No matching refund issues" : "No open refund issues",
|
|
181
181
|
description: D ? `Nothing matched "${D}". Try the transaction ID, refund ID, or a payment/refund ID from the gateway.` : "Every completed refund reconciled cleanly — nothing here needs follow-up right now."
|
|
182
|
-
}) : /* @__PURE__ */
|
|
182
|
+
}) : /* @__PURE__ */ b("div", {
|
|
183
183
|
className: "border border-border-subtle rounded-lg overflow-hidden",
|
|
184
|
-
children: /* @__PURE__ */
|
|
184
|
+
children: /* @__PURE__ */ b(p, {
|
|
185
185
|
columns: L,
|
|
186
186
|
data: A,
|
|
187
187
|
rowKey: (e) => e.id
|
|
188
188
|
})
|
|
189
189
|
}),
|
|
190
|
-
j.totalCount > 0 && /* @__PURE__ */
|
|
190
|
+
j.totalCount > 0 && /* @__PURE__ */ x("div", {
|
|
191
191
|
className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
192
|
+
children: [/* @__PURE__ */ x("p", {
|
|
193
193
|
className: "text-sm text-text-muted text-center sm:text-left",
|
|
194
194
|
children: [
|
|
195
195
|
"Showing ",
|
|
@@ -202,17 +202,17 @@ var S = 25, C = 350, w = () => {
|
|
|
202
202
|
j.totalCount,
|
|
203
203
|
" refunds with an open issue"
|
|
204
204
|
]
|
|
205
|
-
}), /* @__PURE__ */
|
|
205
|
+
}), /* @__PURE__ */ x("div", {
|
|
206
206
|
className: "flex items-center gap-2",
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ b("button", {
|
|
209
209
|
type: "button",
|
|
210
210
|
onClick: I,
|
|
211
211
|
disabled: !j.hasPrevious,
|
|
212
212
|
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/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
213
213
|
children: "Previous"
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ x("span", {
|
|
216
216
|
className: "text-sm text-text-muted px-2",
|
|
217
217
|
children: [
|
|
218
218
|
"Page ",
|
|
@@ -221,7 +221,7 @@ var S = 25, C = 350, w = () => {
|
|
|
221
221
|
R
|
|
222
222
|
]
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ b("button", {
|
|
225
225
|
type: "button",
|
|
226
226
|
onClick: F,
|
|
227
227
|
disabled: !j.hasMore,
|