@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,9 +10,9 @@ import "../../../shared/utils/index.js";
|
|
|
10
10
|
import { useBillingWebhookLogs as o, useRefundMutations as s } from "../hooks/useRefunds.js";
|
|
11
11
|
import { statusTokens as c } from "../../../shared/utils/tokens.js";
|
|
12
12
|
import { useState as l } from "react";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { IllustratedEmptyState as u, ResponsiveTable as d } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { AlertTriangle as f, CheckCircle as p, ChevronLeft as m, ChevronRight as h, DollarSign as g, Eye as _, Loader2 as v, RefreshCw as y, X as b } from "lucide-react";
|
|
15
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
16
16
|
// src/billing/modules/billing/pages/BillingWebhookLogsPage.tsx
|
|
17
17
|
var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
18
18
|
"payment_intent.succeeded",
|
|
@@ -22,92 +22,92 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
22
22
|
]), E = (e) => e.processed ? {
|
|
23
23
|
label: "Processed",
|
|
24
24
|
className: `${c.success.bg} ${c.success.text}`,
|
|
25
|
-
icon:
|
|
25
|
+
icon: p
|
|
26
26
|
} : {
|
|
27
27
|
label: e.error ? "Failed" : "Pending",
|
|
28
28
|
className: `${c.error.bg} ${c.error.text}`,
|
|
29
|
-
icon:
|
|
30
|
-
}, D = ({ log: e, onClose: t, onCreateRefund: n, isCreatingRefund: r, canCreateRefund: a }) => e ? /* @__PURE__ */
|
|
29
|
+
icon: f
|
|
30
|
+
}, D = ({ log: e, onClose: t, onCreateRefund: n, isCreatingRefund: r, canCreateRefund: a }) => e ? /* @__PURE__ */ x("div", {
|
|
31
31
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay p-4",
|
|
32
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ S("div", {
|
|
33
33
|
className: "w-full max-w-2xl max-h-[85vh] overflow-y-auto rounded-lg bg-bg-surface border border-border-subtle shadow-[var(--shadow-elevation-2)]",
|
|
34
|
-
children: [/* @__PURE__ */
|
|
34
|
+
children: [/* @__PURE__ */ S("div", {
|
|
35
35
|
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
37
37
|
className: "text-base font-semibold text-text-primary",
|
|
38
38
|
children: "Webhook log details"
|
|
39
|
-
}), /* @__PURE__ */
|
|
39
|
+
}), /* @__PURE__ */ x("button", {
|
|
40
40
|
type: "button",
|
|
41
41
|
onClick: t,
|
|
42
42
|
className: "p-1 rounded text-text-muted hover:text-text-primary hover:bg-bg-sunken/50",
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ x(b, { className: "size-4" })
|
|
44
44
|
})]
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
}), /* @__PURE__ */ S("div", {
|
|
46
46
|
className: "p-4 space-y-4",
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ S("div", {
|
|
49
49
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
52
52
|
className: "text-text-muted",
|
|
53
53
|
children: "Provider"
|
|
54
|
-
}), /* @__PURE__ */
|
|
54
|
+
}), /* @__PURE__ */ x("p", {
|
|
55
55
|
className: "text-text-primary capitalize",
|
|
56
56
|
children: e.provider
|
|
57
57
|
})] }),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
59
59
|
className: "text-text-muted",
|
|
60
60
|
children: "Event"
|
|
61
|
-
}), /* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ x("p", {
|
|
62
62
|
className: "text-text-primary font-mono text-xs",
|
|
63
63
|
children: e.event
|
|
64
64
|
})] }),
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
66
66
|
className: "text-text-muted",
|
|
67
67
|
children: "Received"
|
|
68
|
-
}), /* @__PURE__ */
|
|
68
|
+
}), /* @__PURE__ */ x("p", {
|
|
69
69
|
className: "text-text-primary",
|
|
70
70
|
children: i(e.createdAt)
|
|
71
71
|
})] }),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
73
73
|
className: "text-text-muted",
|
|
74
74
|
children: "Processed"
|
|
75
|
-
}), /* @__PURE__ */
|
|
75
|
+
}), /* @__PURE__ */ x("p", {
|
|
76
76
|
className: "text-text-primary",
|
|
77
77
|
children: e.processed ? "Yes" : "No"
|
|
78
78
|
})] })
|
|
79
79
|
]
|
|
80
80
|
}),
|
|
81
|
-
e.error && /* @__PURE__ */
|
|
81
|
+
e.error && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
82
82
|
className: "text-sm text-text-muted mb-1",
|
|
83
83
|
children: "Error"
|
|
84
|
-
}), /* @__PURE__ */
|
|
84
|
+
}), /* @__PURE__ */ x("pre", {
|
|
85
85
|
className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border",
|
|
86
86
|
children: e.error
|
|
87
87
|
})] }),
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
|
|
89
89
|
className: "text-sm text-text-muted mb-1",
|
|
90
90
|
children: "Payload"
|
|
91
|
-
}), /* @__PURE__ */
|
|
91
|
+
}), /* @__PURE__ */ x("pre", {
|
|
92
92
|
className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-bg-sunken/60 text-text-secondary max-h-64 overflow-y-auto",
|
|
93
93
|
children: JSON.stringify(e.payload, null, 2)
|
|
94
94
|
})] }),
|
|
95
|
-
!e.processed && a && /* @__PURE__ */
|
|
95
|
+
!e.processed && a && /* @__PURE__ */ S("button", {
|
|
96
96
|
type: "button",
|
|
97
97
|
onClick: () => n(e.id),
|
|
98
98
|
disabled: r,
|
|
99
99
|
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bgHover disabled:opacity-50",
|
|
100
|
-
children: [r ? /* @__PURE__ */
|
|
100
|
+
children: [r ? /* @__PURE__ */ x(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ x(g, { className: "size-4" }), "Create refund from this webhook"]
|
|
101
101
|
})
|
|
102
102
|
]
|
|
103
103
|
})]
|
|
104
104
|
})
|
|
105
105
|
}) : null, O = () => {
|
|
106
|
-
let c = n(), [
|
|
107
|
-
if (!c.isBillingAdmin) return /* @__PURE__ */
|
|
108
|
-
if (M && a(M)) return /* @__PURE__ */
|
|
106
|
+
let c = n(), [f, p] = l(0), [g, v] = l({}), [b, O] = l(null), { logs: k, totalCount: A, isLoading: j, error: M, refetch: N } = o(g, f, C), { createRefundRecordFromWebhook: P, isCreatingFromWebhook: F } = s();
|
|
107
|
+
if (!c.isBillingAdmin) return /* @__PURE__ */ x(e, { message: "You don't have permission to view billing webhook logs." });
|
|
108
|
+
if (M && a(M)) return /* @__PURE__ */ x("div", {
|
|
109
109
|
className: "p-6",
|
|
110
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ x(r, {
|
|
111
111
|
title: "Server Unavailable",
|
|
112
112
|
message: "Unable to load webhook logs. The server might be down or experiencing issues.",
|
|
113
113
|
onRetry: () => N(),
|
|
@@ -115,10 +115,10 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
115
115
|
})
|
|
116
116
|
});
|
|
117
117
|
let I = (e, t) => {
|
|
118
|
-
|
|
118
|
+
v((n) => ({
|
|
119
119
|
...n,
|
|
120
120
|
[e]: t
|
|
121
|
-
})),
|
|
121
|
+
})), p(0);
|
|
122
122
|
}, L = async (e) => {
|
|
123
123
|
await P(e), O(null);
|
|
124
124
|
}, R = [
|
|
@@ -127,12 +127,12 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
127
127
|
header: "Received",
|
|
128
128
|
priority: "primary",
|
|
129
129
|
cellClassName: "whitespace-nowrap",
|
|
130
|
-
cell: (e) => /* @__PURE__ */
|
|
130
|
+
cell: (e) => /* @__PURE__ */ S("div", {
|
|
131
131
|
className: "flex flex-col",
|
|
132
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ x("span", {
|
|
133
133
|
className: "text-sm text-text-primary",
|
|
134
134
|
children: i(e.createdAt).split(" ")[0]
|
|
135
|
-
}), /* @__PURE__ */
|
|
135
|
+
}), /* @__PURE__ */ x("span", {
|
|
136
136
|
className: "text-xs text-text-muted",
|
|
137
137
|
children: i(e.createdAt).split(" ")[1]
|
|
138
138
|
})]
|
|
@@ -144,9 +144,9 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
144
144
|
cellClassName: "whitespace-nowrap",
|
|
145
145
|
cell: (e) => {
|
|
146
146
|
let t = E(e), n = t.icon;
|
|
147
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ S("span", {
|
|
148
148
|
className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${t.className}`,
|
|
149
|
-
children: [/* @__PURE__ */
|
|
149
|
+
children: [/* @__PURE__ */ x(n, { className: "size-3" }), t.label]
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
},
|
|
@@ -155,7 +155,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
155
155
|
header: "Provider",
|
|
156
156
|
priority: "hidden-on-mobile",
|
|
157
157
|
cellClassName: "whitespace-nowrap",
|
|
158
|
-
cell: (e) => /* @__PURE__ */
|
|
158
|
+
cell: (e) => /* @__PURE__ */ x("span", {
|
|
159
159
|
className: "text-sm text-text-primary capitalize",
|
|
160
160
|
children: e.provider
|
|
161
161
|
})
|
|
@@ -164,7 +164,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
164
164
|
key: "event",
|
|
165
165
|
header: "Event",
|
|
166
166
|
cellClassName: "whitespace-nowrap max-w-[220px] truncate",
|
|
167
|
-
cell: (e) => /* @__PURE__ */
|
|
167
|
+
cell: (e) => /* @__PURE__ */ x("span", {
|
|
168
168
|
className: "text-sm font-mono text-text-muted",
|
|
169
169
|
children: e.event
|
|
170
170
|
})
|
|
@@ -174,82 +174,82 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
174
174
|
header: "Error",
|
|
175
175
|
priority: "hidden-on-mobile",
|
|
176
176
|
cellClassName: "max-w-[280px] truncate",
|
|
177
|
-
cell: (e) => /* @__PURE__ */
|
|
177
|
+
cell: (e) => /* @__PURE__ */ x("span", {
|
|
178
178
|
className: "text-sm text-status-error-text",
|
|
179
179
|
children: e.error || "-"
|
|
180
180
|
})
|
|
181
181
|
}
|
|
182
182
|
], z = Math.max(1, Math.ceil(A / C));
|
|
183
|
-
return /* @__PURE__ */
|
|
183
|
+
return /* @__PURE__ */ S("div", {
|
|
184
184
|
className: "space-y-6 p-6",
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ x(t, {
|
|
187
187
|
title: "Billing Webhook Logs",
|
|
188
188
|
description: "Every Stripe/Razorpay webhook delivery — investigate processing failures directly.",
|
|
189
|
-
actions: /* @__PURE__ */
|
|
189
|
+
actions: /* @__PURE__ */ S("button", {
|
|
190
190
|
type: "button",
|
|
191
191
|
onClick: () => N(),
|
|
192
192
|
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",
|
|
193
|
-
children: [/* @__PURE__ */ y
|
|
193
|
+
children: [/* @__PURE__ */ x(y, { className: "size-4" }), "Refresh"]
|
|
194
194
|
})
|
|
195
195
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ S("div", {
|
|
197
197
|
className: "p-4 border border-border-subtle rounded-lg bg-bg-sunken/30 grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
198
198
|
children: [
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
200
200
|
className: "block text-sm font-medium mb-1",
|
|
201
201
|
children: "Processed"
|
|
202
|
-
}), /* @__PURE__ */
|
|
203
|
-
value:
|
|
202
|
+
}), /* @__PURE__ */ S("select", {
|
|
203
|
+
value: g.processed === void 0 ? "" : String(g.processed),
|
|
204
204
|
onChange: (e) => I("processed", e.target.value === "" ? void 0 : e.target.value === "true"),
|
|
205
205
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
206
206
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ x("option", {
|
|
208
208
|
value: "",
|
|
209
209
|
children: "All"
|
|
210
210
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ x("option", {
|
|
212
212
|
value: "false",
|
|
213
213
|
children: "Unprocessed / Failed"
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ x("option", {
|
|
216
216
|
value: "true",
|
|
217
217
|
children: "Processed"
|
|
218
218
|
})
|
|
219
219
|
]
|
|
220
220
|
})] }),
|
|
221
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
222
222
|
className: "block text-sm font-medium mb-1",
|
|
223
223
|
children: "Provider"
|
|
224
|
-
}), /* @__PURE__ */
|
|
225
|
-
value:
|
|
224
|
+
}), /* @__PURE__ */ S("select", {
|
|
225
|
+
value: g.provider || "",
|
|
226
226
|
onChange: (e) => I("provider", e.target.value || void 0),
|
|
227
227
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ x("option", {
|
|
229
229
|
value: "",
|
|
230
230
|
children: "All Providers"
|
|
231
|
-
}), w.map((e) => /* @__PURE__ */
|
|
231
|
+
}), w.map((e) => /* @__PURE__ */ x("option", {
|
|
232
232
|
value: e,
|
|
233
233
|
children: e.charAt(0).toUpperCase() + e.slice(1)
|
|
234
234
|
}, e))]
|
|
235
235
|
})] }),
|
|
236
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
|
|
237
237
|
className: "block text-sm font-medium mb-1",
|
|
238
238
|
children: "Has Error"
|
|
239
|
-
}), /* @__PURE__ */
|
|
240
|
-
value:
|
|
239
|
+
}), /* @__PURE__ */ S("select", {
|
|
240
|
+
value: g.hasError === void 0 ? "" : String(g.hasError),
|
|
241
241
|
onChange: (e) => I("hasError", e.target.value === "" ? void 0 : e.target.value === "true"),
|
|
242
242
|
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
243
243
|
children: [
|
|
244
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ x("option", {
|
|
245
245
|
value: "",
|
|
246
246
|
children: "All"
|
|
247
247
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ x("option", {
|
|
249
249
|
value: "true",
|
|
250
250
|
children: "Has error"
|
|
251
251
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ x("option", {
|
|
253
253
|
value: "false",
|
|
254
254
|
children: "No error"
|
|
255
255
|
})
|
|
@@ -257,7 +257,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
257
257
|
})] })
|
|
258
258
|
]
|
|
259
259
|
}),
|
|
260
|
-
j && k.length === 0 ? /* @__PURE__ */
|
|
260
|
+
j && k.length === 0 ? /* @__PURE__ */ x("div", {
|
|
261
261
|
className: "space-y-2",
|
|
262
262
|
children: [
|
|
263
263
|
1,
|
|
@@ -265,69 +265,69 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
265
265
|
3,
|
|
266
266
|
4,
|
|
267
267
|
5
|
|
268
|
-
].map((e) => /* @__PURE__ */
|
|
269
|
-
}) : k.length === 0 ? /* @__PURE__ */
|
|
268
|
+
].map((e) => /* @__PURE__ */ x("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
|
|
269
|
+
}) : k.length === 0 ? /* @__PURE__ */ x(u, {
|
|
270
270
|
illustration: "empty-data",
|
|
271
271
|
title: "No webhook logs found",
|
|
272
272
|
description: "Nothing matches these filters — try widening them, or check back after the next payment."
|
|
273
|
-
}) : /* @__PURE__ */
|
|
273
|
+
}) : /* @__PURE__ */ x("div", {
|
|
274
274
|
className: "border border-border-subtle rounded-lg overflow-hidden",
|
|
275
|
-
children: /* @__PURE__ */
|
|
275
|
+
children: /* @__PURE__ */ x(d, {
|
|
276
276
|
columns: R,
|
|
277
277
|
data: k,
|
|
278
278
|
rowKey: (e) => e.id,
|
|
279
|
-
rowActions: (e) => /* @__PURE__ */
|
|
279
|
+
rowActions: (e) => /* @__PURE__ */ S("button", {
|
|
280
280
|
type: "button",
|
|
281
281
|
onClick: () => O(e),
|
|
282
282
|
className: "inline-flex items-center gap-1.5 px-2 py-1 text-sm font-medium rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken/60 transition-colors",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
283
|
+
children: [/* @__PURE__ */ x(_, { className: "size-4" }), /* @__PURE__ */ x("span", {
|
|
284
284
|
className: "hidden sm:inline",
|
|
285
285
|
children: "View"
|
|
286
286
|
})]
|
|
287
287
|
})
|
|
288
288
|
})
|
|
289
289
|
}),
|
|
290
|
-
A > 0 && /* @__PURE__ */
|
|
290
|
+
A > 0 && /* @__PURE__ */ S("div", {
|
|
291
291
|
className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ S("p", {
|
|
293
293
|
className: "text-sm text-text-muted text-center sm:text-left",
|
|
294
294
|
children: [
|
|
295
295
|
"Showing ",
|
|
296
|
-
|
|
296
|
+
f * C + 1,
|
|
297
297
|
" to ",
|
|
298
|
-
Math.min((
|
|
298
|
+
Math.min((f + 1) * C, A),
|
|
299
299
|
" of",
|
|
300
300
|
" ",
|
|
301
301
|
A,
|
|
302
302
|
" logs"
|
|
303
303
|
]
|
|
304
|
-
}), /* @__PURE__ */
|
|
304
|
+
}), /* @__PURE__ */ S("div", {
|
|
305
305
|
className: "flex items-center gap-2",
|
|
306
306
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ S("button", {
|
|
308
308
|
type: "button",
|
|
309
|
-
onClick: () =>
|
|
310
|
-
disabled:
|
|
309
|
+
onClick: () => p((e) => Math.max(0, e - 1)),
|
|
310
|
+
disabled: f === 0,
|
|
311
311
|
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",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ x(m, { className: "size-4" }), /* @__PURE__ */ x("span", {
|
|
313
313
|
className: "hidden sm:inline",
|
|
314
314
|
children: "Previous"
|
|
315
315
|
})]
|
|
316
316
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ S("span", {
|
|
318
318
|
className: "text-sm text-text-muted px-2",
|
|
319
319
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ x("span", {
|
|
321
321
|
className: "hidden sm:inline",
|
|
322
322
|
children: "Page "
|
|
323
323
|
}),
|
|
324
|
-
|
|
324
|
+
f + 1,
|
|
325
325
|
" ",
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ x("span", {
|
|
327
327
|
className: "hidden sm:inline",
|
|
328
328
|
children: "of"
|
|
329
329
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ x("span", {
|
|
331
331
|
className: "sm:hidden",
|
|
332
332
|
children: "/"
|
|
333
333
|
}),
|
|
@@ -335,25 +335,25 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
|
|
|
335
335
|
z
|
|
336
336
|
]
|
|
337
337
|
}),
|
|
338
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ S("button", {
|
|
339
339
|
type: "button",
|
|
340
|
-
onClick: () =>
|
|
341
|
-
disabled:
|
|
340
|
+
onClick: () => p((e) => e + 1 < z ? e + 1 : e),
|
|
341
|
+
disabled: f + 1 >= z,
|
|
342
342
|
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",
|
|
343
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ x("span", {
|
|
344
344
|
className: "hidden sm:inline",
|
|
345
345
|
children: "Next"
|
|
346
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ x(h, { className: "size-4" })]
|
|
347
347
|
})
|
|
348
348
|
]
|
|
349
349
|
})]
|
|
350
350
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
log:
|
|
351
|
+
/* @__PURE__ */ x(D, {
|
|
352
|
+
log: b,
|
|
353
353
|
onClose: () => O(null),
|
|
354
354
|
onCreateRefund: L,
|
|
355
355
|
isCreatingRefund: F,
|
|
356
|
-
canCreateRefund:
|
|
356
|
+
canCreateRefund: b ? T.has(b.event) && !!b.error : !1
|
|
357
357
|
})
|
|
358
358
|
]
|
|
359
359
|
});
|