@burdenoff/microfe-billing 2026.614.1 → 2026.623.2
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/BillingAdminRoutes.js +7 -6
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/BillingRoot.js +1 -1
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +22 -22
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +31 -31
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +39 -39
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +29 -29
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js +91 -91
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +40 -40
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +115 -115
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +75 -72
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +126 -126
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +45 -45
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +25 -25
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +31 -35
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +9 -9
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +31 -31
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +8 -8
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +5 -5
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +9 -9
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +21 -21
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +11 -11
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +31 -31
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +23 -23
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +91 -91
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +62 -62
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +72 -60
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +66 -66
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +46 -46
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +19 -19
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +37 -37
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +90 -90
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +41 -41
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +31 -31
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +35 -35
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +24 -24
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +99 -99
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +23 -23
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +22 -22
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +58 -58
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +126 -126
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +83 -79
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +16 -16
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +40 -40
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +57 -57
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +35 -35
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +57 -57
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js +52 -52
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +40 -39
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js +22 -19
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +34 -34
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +47 -47
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +39 -39
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +52 -52
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +23 -23
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +259 -246
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +88 -85
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +51 -51
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +206 -196
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/ServerError.js +4 -4
- package/dist/billing/shared/components/ServerError.js.map +1 -1
- package/dist/billing/shared/components/StatCard.js +11 -33
- package/dist/billing/shared/components/StatCard.js.map +1 -1
- package/dist/billing/shared/ui/Card.js +15 -0
- package/dist/billing/shared/ui/Card.js.map +1 -0
- package/dist/billing/shared/ui/MetricCard.js +44 -0
- package/dist/billing/shared/ui/MetricCard.js.map +1 -0
- package/dist/billing/shared/ui/ProgressBar.js +30 -0
- package/dist/billing/shared/ui/ProgressBar.js.map +1 -0
- package/dist/billing/shared/ui/SectionHeader.js +2 -0
- package/dist/billing/shared/ui/StatusPill.js +28 -0
- package/dist/billing/shared/ui/StatusPill.js.map +1 -0
- package/dist/billing/shared/ui/index.js +5 -0
- package/dist/billing/shared/utils/tokens.js +13 -30
- package/dist/billing/shared/utils/tokens.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccessDenied as e } from "../../../shared/components/AccessDenied.js";
|
|
2
2
|
import { PageHeader as t } from "../../../shared/components/PageHeader.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { EmptyState as n } from "../../../shared/components/EmptyState.js";
|
|
4
|
+
import { statusTokens as r } from "../../../shared/utils/tokens.js";
|
|
5
5
|
import { ServerError as i } from "../../../shared/components/ServerError.js";
|
|
6
6
|
import "../../../shared/components/index.js";
|
|
7
7
|
import { formatCurrency as a, formatDateTime as o } from "../../../shared/utils/format.js";
|
|
@@ -50,14 +50,14 @@ var L = {
|
|
|
50
50
|
DUPLICATE_PAYMENT: "Duplicate Payment"
|
|
51
51
|
}, re = ["stripe", "razorpay"], z = (e) => {
|
|
52
52
|
let t = {
|
|
53
|
-
yellow: `${
|
|
54
|
-
blue: `${
|
|
55
|
-
green: `${
|
|
56
|
-
red: `${
|
|
57
|
-
gray: `${
|
|
53
|
+
yellow: `${r.warning.bg} ${r.warning.text}`,
|
|
54
|
+
blue: `${r.info.bg} ${r.info.text}`,
|
|
55
|
+
green: `${r.success.bg} ${r.success.text}`,
|
|
56
|
+
red: `${r.error.bg} ${r.error.text}`,
|
|
57
|
+
gray: `${r.neutral.bg} ${r.neutral.text}`
|
|
58
58
|
};
|
|
59
59
|
return t[e] || t.gray;
|
|
60
|
-
}, ie = ({ record: e, onViewDetails: t, onProcess:
|
|
60
|
+
}, ie = ({ record: e, onViewDetails: t, onProcess: n, onSkip: i, onRetry: a, isProcessing: o }) => {
|
|
61
61
|
let [s, c] = h(!1), l = m(null);
|
|
62
62
|
f(() => {
|
|
63
63
|
let e = (e) => {
|
|
@@ -73,26 +73,26 @@ var L = {
|
|
|
73
73
|
type: "button",
|
|
74
74
|
onClick: () => c(!s),
|
|
75
75
|
disabled: o,
|
|
76
|
-
className: "p-1.5 rounded-md hover:bg-
|
|
76
|
+
className: "p-1.5 rounded-md hover:bg-bg-sunken/50 transition-colors disabled:opacity-50",
|
|
77
77
|
"aria-label": "Refund actions",
|
|
78
|
-
children: o ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin text-muted
|
|
78
|
+
children: o ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin text-text-muted" }) : /* @__PURE__ */ P(E, { className: "size-4 text-text-muted" })
|
|
79
79
|
}), s && /* @__PURE__ */ F("div", {
|
|
80
|
-
className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] bg-
|
|
80
|
+
className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] bg-bg-elevated border border-border-subtle rounded-input shadow-[var(--shadow-elevation-3)] py-1",
|
|
81
81
|
children: [
|
|
82
82
|
/* @__PURE__ */ F("button", {
|
|
83
83
|
type: "button",
|
|
84
84
|
onClick: () => {
|
|
85
85
|
t(), c(!1);
|
|
86
86
|
},
|
|
87
|
-
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-
|
|
87
|
+
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-text-primary hover:bg-bg-sunken/50 transition-colors",
|
|
88
88
|
children: [/* @__PURE__ */ P(C, { className: "size-4" }), "View Details"]
|
|
89
89
|
}),
|
|
90
90
|
u && /* @__PURE__ */ F("button", {
|
|
91
91
|
type: "button",
|
|
92
92
|
onClick: () => {
|
|
93
|
-
|
|
93
|
+
n(), c(!1);
|
|
94
94
|
},
|
|
95
|
-
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${
|
|
95
|
+
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${r.success.text} hover:bg-bg-sunken/50 transition-colors`,
|
|
96
96
|
children: [/* @__PURE__ */ P(ee, { className: "size-4" }), "Process Refund"]
|
|
97
97
|
}),
|
|
98
98
|
d && /* @__PURE__ */ F("button", {
|
|
@@ -100,7 +100,7 @@ var L = {
|
|
|
100
100
|
onClick: () => {
|
|
101
101
|
i(), c(!1);
|
|
102
102
|
},
|
|
103
|
-
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${
|
|
103
|
+
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${r.warning.text} hover:bg-bg-sunken/50 transition-colors`,
|
|
104
104
|
children: [/* @__PURE__ */ P(A, { className: "size-4" }), "Skip Refund"]
|
|
105
105
|
}),
|
|
106
106
|
p && /* @__PURE__ */ F("button", {
|
|
@@ -108,7 +108,7 @@ var L = {
|
|
|
108
108
|
onClick: () => {
|
|
109
109
|
a(), c(!1);
|
|
110
110
|
},
|
|
111
|
-
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${
|
|
111
|
+
className: `w-full flex items-center gap-2 px-3 py-2 text-sm ${r.info.text} hover:bg-bg-sunken/50 transition-colors`,
|
|
112
112
|
children: [/* @__PURE__ */ P(O, { className: "size-4" }), "Retry Refund"]
|
|
113
113
|
})
|
|
114
114
|
]
|
|
@@ -180,16 +180,16 @@ var L = {
|
|
|
180
180
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
181
181
|
onClick: x
|
|
182
182
|
}), /* @__PURE__ */ F("div", {
|
|
183
|
-
className: "relative bg-
|
|
183
|
+
className: "relative bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] max-w-lg w-full mx-4 max-h-[90vh] overflow-auto",
|
|
184
184
|
children: [/* @__PURE__ */ F("div", {
|
|
185
|
-
className: "flex items-center justify-between p-4 border-b border-border",
|
|
185
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
186
186
|
children: [/* @__PURE__ */ P("h2", {
|
|
187
187
|
className: "text-lg font-semibold",
|
|
188
188
|
children: "Create Manual Refund"
|
|
189
189
|
}), /* @__PURE__ */ P("button", {
|
|
190
190
|
type: "button",
|
|
191
191
|
onClick: x,
|
|
192
|
-
className: "p-1 rounded-md hover:bg-
|
|
192
|
+
className: "p-1 rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
193
193
|
children: /* @__PURE__ */ P(j, { className: "size-5" })
|
|
194
194
|
})]
|
|
195
195
|
}), /* @__PURE__ */ F("form", {
|
|
@@ -210,14 +210,14 @@ var L = {
|
|
|
210
210
|
s(e.target.value), u(null), p(null);
|
|
211
211
|
},
|
|
212
212
|
onBlur: () => S(o),
|
|
213
|
-
className: "flex-1 px-3 py-2 border border-border rounded-
|
|
213
|
+
className: "flex-1 px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
214
214
|
placeholder: "Paste transaction UUID...",
|
|
215
215
|
required: !0
|
|
216
216
|
}), /* @__PURE__ */ P("button", {
|
|
217
217
|
type: "button",
|
|
218
218
|
onClick: () => S(o),
|
|
219
219
|
disabled: !o.trim() || m,
|
|
220
|
-
className: "px-3 py-2 border border-border rounded-md hover:bg-
|
|
220
|
+
className: "px-3 py-2 border border-border-subtle rounded-md hover:bg-bg-sunken/50 transition-colors disabled:opacity-50 flex items-center gap-1 text-sm",
|
|
221
221
|
children: m ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }) : /* @__PURE__ */ P(k, { className: "size-4" })
|
|
222
222
|
})]
|
|
223
223
|
}),
|
|
@@ -226,7 +226,7 @@ var L = {
|
|
|
226
226
|
children: f
|
|
227
227
|
}),
|
|
228
228
|
m && /* @__PURE__ */ P("p", {
|
|
229
|
-
className: "text-xs text-muted
|
|
229
|
+
className: "text-xs text-text-muted mt-1",
|
|
230
230
|
children: "Looking up transaction…"
|
|
231
231
|
})
|
|
232
232
|
] }),
|
|
@@ -237,13 +237,13 @@ var L = {
|
|
|
237
237
|
className: "flex items-center gap-2 text-status-success-text font-medium",
|
|
238
238
|
children: [/* @__PURE__ */ P(v, { className: "size-4" }), "Transaction found"]
|
|
239
239
|
}), /* @__PURE__ */ F("div", {
|
|
240
|
-
className: "text-muted
|
|
240
|
+
className: "text-text-muted grid grid-cols-2 gap-x-4 gap-y-0.5 mt-1",
|
|
241
241
|
children: [
|
|
242
242
|
/* @__PURE__ */ F("span", { children: [
|
|
243
243
|
"Account:",
|
|
244
244
|
" ",
|
|
245
245
|
/* @__PURE__ */ F("span", {
|
|
246
|
-
className: "text-
|
|
246
|
+
className: "text-text-primary font-mono text-xs",
|
|
247
247
|
children: [c.billingAccountId.slice(0, 16), "…"]
|
|
248
248
|
})
|
|
249
249
|
] }),
|
|
@@ -251,7 +251,7 @@ var L = {
|
|
|
251
251
|
"Paid:",
|
|
252
252
|
" ",
|
|
253
253
|
/* @__PURE__ */ P("span", {
|
|
254
|
-
className: "text-
|
|
254
|
+
className: "text-text-primary",
|
|
255
255
|
children: a(c.totalAmount, c.currency)
|
|
256
256
|
})
|
|
257
257
|
] }),
|
|
@@ -259,12 +259,12 @@ var L = {
|
|
|
259
259
|
"Provider:",
|
|
260
260
|
" ",
|
|
261
261
|
/* @__PURE__ */ P("span", {
|
|
262
|
-
className: "text-
|
|
262
|
+
className: "text-text-primary capitalize",
|
|
263
263
|
children: _.provider
|
|
264
264
|
})
|
|
265
265
|
] }),
|
|
266
266
|
/* @__PURE__ */ F("span", { children: ["Currency: ", /* @__PURE__ */ P("span", {
|
|
267
|
-
className: "text-
|
|
267
|
+
className: "text-text-primary",
|
|
268
268
|
children: c.currency
|
|
269
269
|
})] })
|
|
270
270
|
]
|
|
@@ -273,39 +273,39 @@ var L = {
|
|
|
273
273
|
/* @__PURE__ */ F("div", {
|
|
274
274
|
className: "grid grid-cols-2 gap-3",
|
|
275
275
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
276
|
-
className: "block text-xs font-medium text-muted
|
|
276
|
+
className: "block text-xs font-medium text-text-muted mb-1",
|
|
277
277
|
children: "Provider"
|
|
278
278
|
}), /* @__PURE__ */ P("div", {
|
|
279
|
-
className: "px-3 py-2 border border-border rounded-md bg-
|
|
279
|
+
className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/30 text-sm capitalize",
|
|
280
280
|
children: _.provider
|
|
281
281
|
})] }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
282
|
-
className: "block text-xs font-medium text-muted
|
|
282
|
+
className: "block text-xs font-medium text-text-muted mb-1",
|
|
283
283
|
children: "Currency"
|
|
284
284
|
}), /* @__PURE__ */ P("div", {
|
|
285
|
-
className: "px-3 py-2 border border-border rounded-md bg-
|
|
285
|
+
className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/30 text-sm",
|
|
286
286
|
children: _.currency
|
|
287
287
|
})] })]
|
|
288
288
|
}),
|
|
289
289
|
/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
290
|
-
className: "block text-xs font-medium text-muted
|
|
290
|
+
className: "block text-xs font-medium text-text-muted mb-1",
|
|
291
291
|
children: "Gateway Payment ID"
|
|
292
292
|
}), /* @__PURE__ */ P("div", {
|
|
293
|
-
className: "px-3 py-2 border border-border rounded-md bg-
|
|
293
|
+
className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/30 text-sm font-mono truncate",
|
|
294
294
|
children: _.gatewayPaymentId
|
|
295
295
|
})] }),
|
|
296
296
|
_.purchaseType && /* @__PURE__ */ F("div", {
|
|
297
297
|
className: "grid grid-cols-2 gap-3",
|
|
298
298
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
299
|
-
className: "block text-xs font-medium text-muted
|
|
299
|
+
className: "block text-xs font-medium text-text-muted mb-1",
|
|
300
300
|
children: "Purchase Type"
|
|
301
301
|
}), /* @__PURE__ */ P("div", {
|
|
302
|
-
className: "px-3 py-2 border border-border rounded-md bg-
|
|
302
|
+
className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/30 text-sm",
|
|
303
303
|
children: _.purchaseType
|
|
304
304
|
})] }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
305
|
-
className: "block text-xs font-medium text-muted
|
|
305
|
+
className: "block text-xs font-medium text-text-muted mb-1",
|
|
306
306
|
children: "Purchase Detail"
|
|
307
307
|
}), /* @__PURE__ */ P("div", {
|
|
308
|
-
className: "px-3 py-2 border border-border rounded-md bg-
|
|
308
|
+
className: "px-3 py-2 border border-border-subtle rounded-md bg-bg-sunken/30 text-sm truncate",
|
|
309
309
|
children: _.purchaseDetail || "—"
|
|
310
310
|
})] })]
|
|
311
311
|
}),
|
|
@@ -313,7 +313,7 @@ var L = {
|
|
|
313
313
|
/* @__PURE__ */ F("label", {
|
|
314
314
|
className: "block text-sm font-medium mb-1",
|
|
315
315
|
children: ["Refund Amount *", /* @__PURE__ */ F("span", {
|
|
316
|
-
className: "text-xs text-muted
|
|
316
|
+
className: "text-xs text-text-muted ml-1",
|
|
317
317
|
children: [
|
|
318
318
|
"(max ",
|
|
319
319
|
a(w, _.currency),
|
|
@@ -331,7 +331,7 @@ var L = {
|
|
|
331
331
|
..._,
|
|
332
332
|
amount: parseFloat(e.target.value) || 0
|
|
333
333
|
}),
|
|
334
|
-
className: `w-full px-3 py-2 border rounded-
|
|
334
|
+
className: `w-full px-3 py-2 border rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] ${E ? "border-status-error-text" : "border-border-subtle"}`,
|
|
335
335
|
required: !0
|
|
336
336
|
}),
|
|
337
337
|
E && /* @__PURE__ */ F("p", {
|
|
@@ -353,7 +353,7 @@ var L = {
|
|
|
353
353
|
..._,
|
|
354
354
|
reason: e.target.value
|
|
355
355
|
}),
|
|
356
|
-
className: "w-full px-3 py-2 border border-border rounded-
|
|
356
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
|
|
357
357
|
placeholder: "Reason for refund"
|
|
358
358
|
})] }),
|
|
359
359
|
/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
@@ -365,7 +365,7 @@ var L = {
|
|
|
365
365
|
..._,
|
|
366
366
|
notes: e.target.value
|
|
367
367
|
}),
|
|
368
|
-
className: "w-full px-3 py-2 border border-border rounded-
|
|
368
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-input bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] resize-none",
|
|
369
369
|
rows: 2,
|
|
370
370
|
placeholder: "Internal notes"
|
|
371
371
|
})] })
|
|
@@ -375,12 +375,12 @@ var L = {
|
|
|
375
375
|
children: [/* @__PURE__ */ P("button", {
|
|
376
376
|
type: "button",
|
|
377
377
|
onClick: x,
|
|
378
|
-
className: "flex-1 py-2 px-4 border border-border rounded-md hover:bg-
|
|
378
|
+
className: "flex-1 py-2 px-4 border border-border-subtle rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
379
379
|
children: "Cancel"
|
|
380
380
|
}), /* @__PURE__ */ F("button", {
|
|
381
381
|
type: "submit",
|
|
382
382
|
disabled: r || !c || !_.gatewayPaymentId || _.amount <= 0 || E,
|
|
383
|
-
className: "flex-1 py-2 px-4 bg-primary text-primary-
|
|
383
|
+
className: "flex-1 py-2 px-4 bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bgHover transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",
|
|
384
384
|
children: [r && /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }), "Create Refund"]
|
|
385
385
|
})]
|
|
386
386
|
})
|
|
@@ -388,24 +388,24 @@ var L = {
|
|
|
388
388
|
})]
|
|
389
389
|
})]
|
|
390
390
|
});
|
|
391
|
-
}, oe = ({ isOpen: e, record: t, onClose:
|
|
391
|
+
}, oe = ({ isOpen: e, record: t, onClose: n, onSubmit: i, isSubmitting: o }) => {
|
|
392
392
|
let [s, c] = h("");
|
|
393
393
|
return !e || !t ? null : /* @__PURE__ */ F("div", {
|
|
394
394
|
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
395
395
|
children: [/* @__PURE__ */ P("div", {
|
|
396
396
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
397
|
-
onClick:
|
|
397
|
+
onClick: n
|
|
398
398
|
}), /* @__PURE__ */ F("div", {
|
|
399
|
-
className: "relative bg-
|
|
399
|
+
className: "relative bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] max-w-md w-full mx-4",
|
|
400
400
|
children: [/* @__PURE__ */ F("div", {
|
|
401
|
-
className: "flex items-center justify-between p-4 border-b border-border",
|
|
401
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
402
402
|
children: [/* @__PURE__ */ P("h2", {
|
|
403
403
|
className: "text-lg font-semibold",
|
|
404
404
|
children: "Skip Refund"
|
|
405
405
|
}), /* @__PURE__ */ P("button", {
|
|
406
406
|
type: "button",
|
|
407
|
-
onClick:
|
|
408
|
-
className: "p-1 rounded-md hover:bg-
|
|
407
|
+
onClick: n,
|
|
408
|
+
className: "p-1 rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
409
409
|
children: /* @__PURE__ */ P(j, { className: "size-5" })
|
|
410
410
|
})]
|
|
411
411
|
}), /* @__PURE__ */ F("form", {
|
|
@@ -415,14 +415,14 @@ var L = {
|
|
|
415
415
|
className: "p-4 space-y-4",
|
|
416
416
|
children: [
|
|
417
417
|
/* @__PURE__ */ P("div", {
|
|
418
|
-
className: `p-3 ${
|
|
418
|
+
className: `p-3 ${r.warning.bg} border ${r.warning.border} rounded-md`,
|
|
419
419
|
children: /* @__PURE__ */ F("div", {
|
|
420
420
|
className: "flex items-start gap-2",
|
|
421
|
-
children: [/* @__PURE__ */ P(g, { className: `size-5 ${
|
|
422
|
-
className: `text-sm font-medium ${
|
|
421
|
+
children: [/* @__PURE__ */ P(g, { className: `size-5 ${r.warning.icon} mt-0.5` }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
422
|
+
className: `text-sm font-medium ${r.warning.text}`,
|
|
423
423
|
children: "You are about to skip this refund"
|
|
424
424
|
}), /* @__PURE__ */ F("p", {
|
|
425
|
-
className: `text-sm ${
|
|
425
|
+
className: `text-sm ${r.warning.text} mt-1`,
|
|
426
426
|
children: ["Amount: ", a(t.amount, t.currency)]
|
|
427
427
|
})] })]
|
|
428
428
|
})
|
|
@@ -433,7 +433,7 @@ var L = {
|
|
|
433
433
|
}), /* @__PURE__ */ P("textarea", {
|
|
434
434
|
value: s,
|
|
435
435
|
onChange: (e) => c(e.target.value),
|
|
436
|
-
className: "w-full px-3 py-2 border border-border rounded-md bg-
|
|
436
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface resize-none",
|
|
437
437
|
rows: 3,
|
|
438
438
|
placeholder: "Explain why this refund is being skipped...",
|
|
439
439
|
required: !0
|
|
@@ -442,13 +442,13 @@ var L = {
|
|
|
442
442
|
className: "flex gap-2",
|
|
443
443
|
children: [/* @__PURE__ */ P("button", {
|
|
444
444
|
type: "button",
|
|
445
|
-
onClick:
|
|
446
|
-
className: "flex-1 py-2 px-4 border border-border rounded-md hover:bg-
|
|
445
|
+
onClick: n,
|
|
446
|
+
className: "flex-1 py-2 px-4 border border-border-subtle rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
447
447
|
children: "Cancel"
|
|
448
448
|
}), /* @__PURE__ */ F("button", {
|
|
449
449
|
type: "submit",
|
|
450
450
|
disabled: o || !s.trim(),
|
|
451
|
-
className: `flex-1 py-2 px-4 ${
|
|
451
|
+
className: `flex-1 py-2 px-4 ${r.warning.dot} text-action-primary-text rounded-md hover:opacity-90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2`,
|
|
452
452
|
children: [o && /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }), "Skip Refund"]
|
|
453
453
|
})]
|
|
454
454
|
})
|
|
@@ -458,24 +458,24 @@ var L = {
|
|
|
458
458
|
});
|
|
459
459
|
}, se = ({ record: e, onClose: t }) => {
|
|
460
460
|
if (!e) return null;
|
|
461
|
-
let
|
|
461
|
+
let n = L[e.status].icon;
|
|
462
462
|
return /* @__PURE__ */ F("div", {
|
|
463
463
|
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
464
464
|
children: [/* @__PURE__ */ P("div", {
|
|
465
465
|
className: "absolute inset-0 bg-overlay-scrim",
|
|
466
466
|
onClick: t
|
|
467
467
|
}), /* @__PURE__ */ F("div", {
|
|
468
|
-
className: "relative bg-
|
|
468
|
+
className: "relative bg-bg-elevated border border-border-subtle rounded-card shadow-[var(--shadow-elevation-4)] max-w-lg w-full mx-4 max-h-[90vh] overflow-auto",
|
|
469
469
|
children: [
|
|
470
470
|
/* @__PURE__ */ F("div", {
|
|
471
|
-
className: "flex items-center justify-between p-4 border-b border-border",
|
|
471
|
+
className: "flex items-center justify-between p-4 border-b border-border-subtle",
|
|
472
472
|
children: [/* @__PURE__ */ P("h2", {
|
|
473
473
|
className: "text-lg font-semibold",
|
|
474
474
|
children: "Refund Details"
|
|
475
475
|
}), /* @__PURE__ */ P("button", {
|
|
476
476
|
type: "button",
|
|
477
477
|
onClick: t,
|
|
478
|
-
className: "p-1 rounded-md hover:bg-
|
|
478
|
+
className: "p-1 rounded-md hover:bg-bg-sunken/50 transition-colors",
|
|
479
479
|
children: /* @__PURE__ */ P(j, { className: "size-5" })
|
|
480
480
|
})]
|
|
481
481
|
}),
|
|
@@ -484,7 +484,7 @@ var L = {
|
|
|
484
484
|
children: [
|
|
485
485
|
/* @__PURE__ */ F("div", {
|
|
486
486
|
className: `flex items-center gap-2 p-3 rounded-md ${z(L[e.status].color)}`,
|
|
487
|
-
children: [/* @__PURE__ */ P(
|
|
487
|
+
children: [/* @__PURE__ */ P(n, { className: "size-5" }), /* @__PURE__ */ P("span", {
|
|
488
488
|
className: "font-medium",
|
|
489
489
|
children: L[e.status].label
|
|
490
490
|
})]
|
|
@@ -492,13 +492,13 @@ var L = {
|
|
|
492
492
|
/* @__PURE__ */ F("div", {
|
|
493
493
|
className: "grid grid-cols-2 gap-4",
|
|
494
494
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
495
|
-
className: "text-xs text-muted
|
|
495
|
+
className: "text-xs text-text-muted mb-1",
|
|
496
496
|
children: "Refund ID"
|
|
497
497
|
}), /* @__PURE__ */ P("p", {
|
|
498
498
|
className: "text-sm font-mono break-all",
|
|
499
499
|
children: e.id
|
|
500
500
|
})] }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
501
|
-
className: "text-xs text-muted
|
|
501
|
+
className: "text-xs text-text-muted mb-1",
|
|
502
502
|
children: "Source"
|
|
503
503
|
}), /* @__PURE__ */ P("p", {
|
|
504
504
|
className: "text-sm",
|
|
@@ -508,13 +508,13 @@ var L = {
|
|
|
508
508
|
/* @__PURE__ */ F("div", {
|
|
509
509
|
className: "grid grid-cols-2 gap-4",
|
|
510
510
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
511
|
-
className: "text-xs text-muted
|
|
511
|
+
className: "text-xs text-text-muted mb-1",
|
|
512
512
|
children: "Amount"
|
|
513
513
|
}), /* @__PURE__ */ P("p", {
|
|
514
514
|
className: "text-lg font-semibold",
|
|
515
515
|
children: a(e.amount, e.currency)
|
|
516
516
|
})] }), /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
517
|
-
className: "text-xs text-muted
|
|
517
|
+
className: "text-xs text-text-muted mb-1",
|
|
518
518
|
children: "Provider"
|
|
519
519
|
}), /* @__PURE__ */ P("p", {
|
|
520
520
|
className: "text-sm capitalize",
|
|
@@ -524,13 +524,13 @@ var L = {
|
|
|
524
524
|
/* @__PURE__ */ F("div", {
|
|
525
525
|
className: "grid grid-cols-2 gap-4",
|
|
526
526
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
527
|
-
className: "text-xs text-muted
|
|
527
|
+
className: "text-xs text-text-muted mb-1",
|
|
528
528
|
children: "Gateway Payment ID"
|
|
529
529
|
}), /* @__PURE__ */ P("p", {
|
|
530
530
|
className: "text-sm font-mono break-all",
|
|
531
531
|
children: e.gatewayPaymentId
|
|
532
532
|
})] }), e.gatewayOrderId && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
533
|
-
className: "text-xs text-muted
|
|
533
|
+
className: "text-xs text-text-muted mb-1",
|
|
534
534
|
children: "Gateway Order ID"
|
|
535
535
|
}), /* @__PURE__ */ P("p", {
|
|
536
536
|
className: "text-sm font-mono break-all",
|
|
@@ -538,7 +538,7 @@ var L = {
|
|
|
538
538
|
})] })]
|
|
539
539
|
}),
|
|
540
540
|
e.gatewayRefundId && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
541
|
-
className: "text-xs text-muted
|
|
541
|
+
className: "text-xs text-text-muted mb-1",
|
|
542
542
|
children: "Gateway Refund ID"
|
|
543
543
|
}), /* @__PURE__ */ P("p", {
|
|
544
544
|
className: "text-sm font-mono break-all",
|
|
@@ -547,13 +547,13 @@ var L = {
|
|
|
547
547
|
(e.purchaseType || e.purchaseDetail) && /* @__PURE__ */ F("div", {
|
|
548
548
|
className: "grid grid-cols-2 gap-4",
|
|
549
549
|
children: [e.purchaseType && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
550
|
-
className: "text-xs text-muted
|
|
550
|
+
className: "text-xs text-text-muted mb-1",
|
|
551
551
|
children: "Purchase Type"
|
|
552
552
|
}), /* @__PURE__ */ P("p", {
|
|
553
553
|
className: "text-sm",
|
|
554
554
|
children: e.purchaseType
|
|
555
555
|
})] }), e.purchaseDetail && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
556
|
-
className: "text-xs text-muted
|
|
556
|
+
className: "text-xs text-text-muted mb-1",
|
|
557
557
|
children: "Purchase Detail"
|
|
558
558
|
}), /* @__PURE__ */ P("p", {
|
|
559
559
|
className: "text-sm",
|
|
@@ -561,39 +561,39 @@ var L = {
|
|
|
561
561
|
})] })]
|
|
562
562
|
}),
|
|
563
563
|
e.reason && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
564
|
-
className: "text-xs text-muted
|
|
564
|
+
className: "text-xs text-text-muted mb-1",
|
|
565
565
|
children: "Reason"
|
|
566
566
|
}), /* @__PURE__ */ P("p", {
|
|
567
567
|
className: "text-sm",
|
|
568
568
|
children: e.reason
|
|
569
569
|
})] }),
|
|
570
570
|
e.notes && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
571
|
-
className: "text-xs text-muted
|
|
571
|
+
className: "text-xs text-text-muted mb-1",
|
|
572
572
|
children: "Notes"
|
|
573
573
|
}), /* @__PURE__ */ P("p", {
|
|
574
574
|
className: "text-sm",
|
|
575
575
|
children: e.notes
|
|
576
576
|
})] }),
|
|
577
577
|
e.errorMessage && /* @__PURE__ */ F("div", {
|
|
578
|
-
className: `p-3 ${
|
|
578
|
+
className: `p-3 ${r.error.bg} border ${r.error.border} rounded-md`,
|
|
579
579
|
children: [/* @__PURE__ */ P("p", {
|
|
580
|
-
className: `text-xs ${
|
|
580
|
+
className: `text-xs ${r.error.text} mb-1`,
|
|
581
581
|
children: "Error Message"
|
|
582
582
|
}), /* @__PURE__ */ P("p", {
|
|
583
|
-
className: `text-sm ${
|
|
583
|
+
className: `text-sm ${r.error.text}`,
|
|
584
584
|
children: e.errorMessage
|
|
585
585
|
})]
|
|
586
586
|
}),
|
|
587
587
|
/* @__PURE__ */ F("div", {
|
|
588
|
-
className: "grid grid-cols-2 gap-4 pt-2 border-t border-border",
|
|
588
|
+
className: "grid grid-cols-2 gap-4 pt-2 border-t border-border-subtle",
|
|
589
589
|
children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
590
|
-
className: "text-xs text-muted
|
|
590
|
+
className: "text-xs text-text-muted mb-1",
|
|
591
591
|
children: "Created At"
|
|
592
592
|
}), /* @__PURE__ */ P("p", {
|
|
593
593
|
className: "text-sm",
|
|
594
594
|
children: o(e.createdAt)
|
|
595
595
|
})] }), e.processedAt && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
596
|
-
className: "text-xs text-muted
|
|
596
|
+
className: "text-xs text-text-muted mb-1",
|
|
597
597
|
children: "Processed At"
|
|
598
598
|
}), /* @__PURE__ */ P("p", {
|
|
599
599
|
className: "text-sm",
|
|
@@ -601,7 +601,7 @@ var L = {
|
|
|
601
601
|
})] })]
|
|
602
602
|
}),
|
|
603
603
|
e.retryCount > 0 && /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", {
|
|
604
|
-
className: "text-xs text-muted
|
|
604
|
+
className: "text-xs text-text-muted mb-1",
|
|
605
605
|
children: "Retry Count"
|
|
606
606
|
}), /* @__PURE__ */ P("p", {
|
|
607
607
|
className: "text-sm",
|
|
@@ -610,11 +610,11 @@ var L = {
|
|
|
610
610
|
]
|
|
611
611
|
}),
|
|
612
612
|
/* @__PURE__ */ P("div", {
|
|
613
|
-
className: "p-4 border-t border-border",
|
|
613
|
+
className: "p-4 border-t border-border-subtle",
|
|
614
614
|
children: /* @__PURE__ */ P("button", {
|
|
615
615
|
type: "button",
|
|
616
616
|
onClick: t,
|
|
617
|
-
className: "w-full py-2 px-4 bg-primary text-primary-
|
|
617
|
+
className: "w-full py-2 px-4 bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bgHover transition-colors",
|
|
618
618
|
children: "Close"
|
|
619
619
|
})
|
|
620
620
|
})
|
|
@@ -717,7 +717,7 @@ var L = {
|
|
|
717
717
|
return le ? /* @__PURE__ */ F("div", {
|
|
718
718
|
className: "space-y-6 p-6",
|
|
719
719
|
children: [
|
|
720
|
-
/* @__PURE__ */ P("div", { className: "h-8 w-48 bg-
|
|
720
|
+
/* @__PURE__ */ P("div", { className: "h-8 w-48 bg-bg-sunken animate-pulse rounded" }),
|
|
721
721
|
/* @__PURE__ */ P("div", {
|
|
722
722
|
className: "grid grid-cols-5 gap-4",
|
|
723
723
|
children: [
|
|
@@ -726,7 +726,7 @@ var L = {
|
|
|
726
726
|
3,
|
|
727
727
|
4,
|
|
728
728
|
5
|
|
729
|
-
].map((e) => /* @__PURE__ */ P("div", { className: "h-24 bg-
|
|
729
|
+
].map((e) => /* @__PURE__ */ P("div", { className: "h-24 bg-bg-sunken animate-pulse rounded-lg" }, e))
|
|
730
730
|
}),
|
|
731
731
|
/* @__PURE__ */ P("div", {
|
|
732
732
|
className: "space-y-2",
|
|
@@ -736,7 +736,7 @@ var L = {
|
|
|
736
736
|
3,
|
|
737
737
|
4,
|
|
738
738
|
5
|
|
739
|
-
].map((e) => /* @__PURE__ */ P("div", { className: "h-16 bg-
|
|
739
|
+
].map((e) => /* @__PURE__ */ P("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
|
|
740
740
|
})
|
|
741
741
|
]
|
|
742
742
|
}) : /* @__PURE__ */ F("div", {
|
|
@@ -752,7 +752,7 @@ var L = {
|
|
|
752
752
|
type: "button",
|
|
753
753
|
onClick: we,
|
|
754
754
|
disabled: Q,
|
|
755
|
-
className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border ${
|
|
755
|
+
className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border ${r.warning.border} ${r.warning.bg} ${r.warning.text} hover:opacity-90 transition-colors disabled:opacity-50`,
|
|
756
756
|
children: [
|
|
757
757
|
Q ? /* @__PURE__ */ P(T, { className: "size-4 animate-spin" }) : /* @__PURE__ */ P(S, { className: "size-4" }),
|
|
758
758
|
"Import ",
|
|
@@ -763,20 +763,20 @@ var L = {
|
|
|
763
763
|
/* @__PURE__ */ F("button", {
|
|
764
764
|
type: "button",
|
|
765
765
|
onClick: () => X(),
|
|
766
|
-
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-
|
|
766
|
+
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 transition-colors",
|
|
767
767
|
children: [/* @__PURE__ */ P(D, { className: "size-4" }), "Refresh"]
|
|
768
768
|
}),
|
|
769
769
|
/* @__PURE__ */ F("button", {
|
|
770
770
|
type: "button",
|
|
771
771
|
onClick: () => N(!0),
|
|
772
|
-
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-
|
|
772
|
+
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-button bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bgHover transition-colors",
|
|
773
773
|
children: [/* @__PURE__ */ P(te, { className: "size-4" }), "Create Manual Refund"]
|
|
774
774
|
})
|
|
775
775
|
]
|
|
776
776
|
})
|
|
777
777
|
}),
|
|
778
778
|
/* @__PURE__ */ P("div", {
|
|
779
|
-
className: "border-b border-border",
|
|
779
|
+
className: "border-b border-border-subtle",
|
|
780
780
|
children: /* @__PURE__ */ P("div", {
|
|
781
781
|
className: "flex flex-wrap gap-2 sm:gap-0",
|
|
782
782
|
children: Object.keys(V).map((e) => {
|
|
@@ -784,9 +784,9 @@ var L = {
|
|
|
784
784
|
return /* @__PURE__ */ F("button", {
|
|
785
785
|
type: "button",
|
|
786
786
|
onClick: () => ye(e),
|
|
787
|
-
className: `flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-colors whitespace-nowrap ${t ? "border-primary text-
|
|
787
|
+
className: `flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-colors whitespace-nowrap ${t ? "border-action-primary-bg text-text-link" : "border-transparent text-text-muted hover:text-text-primary hover:border-border-subtle"}`,
|
|
788
788
|
children: [V[e].label, K && /* @__PURE__ */ P("span", {
|
|
789
|
-
className: `px-2 py-0.5 text-xs rounded-full ${t ? "bg-
|
|
789
|
+
className: `px-2 py-0.5 text-xs rounded-full ${t ? "bg-[var(--color-accent-soft)] text-text-link" : "bg-bg-sunken text-text-muted"}`,
|
|
790
790
|
children: n
|
|
791
791
|
})]
|
|
792
792
|
}, e);
|
|
@@ -798,23 +798,23 @@ var L = {
|
|
|
798
798
|
children: [
|
|
799
799
|
/* @__PURE__ */ F("div", {
|
|
800
800
|
className: "relative flex-1",
|
|
801
|
-
children: [/* @__PURE__ */ P(k, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted
|
|
801
|
+
children: [/* @__PURE__ */ P(k, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-text-muted" }), /* @__PURE__ */ P("input", {
|
|
802
802
|
type: "text",
|
|
803
803
|
placeholder: "Search by payment ID, order ID, or reason...",
|
|
804
804
|
value: _,
|
|
805
805
|
onChange: (e) => v(e.target.value),
|
|
806
|
-
className: "w-full pl-[3.25rem] pr-4 py-2 border border-border rounded-md bg-
|
|
806
|
+
className: "w-full pl-[3.25rem] pr-4 py-2 border border-border-subtle rounded-md bg-bg-surface"
|
|
807
807
|
})]
|
|
808
808
|
}),
|
|
809
809
|
/* @__PURE__ */ F("button", {
|
|
810
810
|
type: "button",
|
|
811
811
|
onClick: () => ee(!E),
|
|
812
|
-
className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border transition-colors ${E ? "border-primary bg-
|
|
812
|
+
className: `inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border transition-colors ${E ? "border-action-primary-bg bg-[var(--color-accent-soft)] text-text-link" : "border-border-subtle bg-bg-surface hover:bg-bg-sunken/50"}`,
|
|
813
813
|
children: [
|
|
814
814
|
/* @__PURE__ */ P(w, { className: "size-4" }),
|
|
815
815
|
"Filters",
|
|
816
816
|
Object.values(x).filter(Boolean).length > 0 && /* @__PURE__ */ P("span", {
|
|
817
|
-
className: "px-1.5 py-0.5 text-xs rounded-full bg-primary text-primary-
|
|
817
|
+
className: "px-1.5 py-0.5 text-xs rounded-full bg-action-primary-bg text-action-primary-text",
|
|
818
818
|
children: Object.values(x).filter(Boolean).length
|
|
819
819
|
})
|
|
820
820
|
]
|
|
@@ -824,13 +824,13 @@ var L = {
|
|
|
824
824
|
onClick: () => {
|
|
825
825
|
C({}), Z({});
|
|
826
826
|
},
|
|
827
|
-
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md text-muted
|
|
827
|
+
className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md text-text-muted hover:text-text-primary transition-colors",
|
|
828
828
|
children: [/* @__PURE__ */ P(j, { className: "size-4" }), "Clear"]
|
|
829
829
|
})
|
|
830
830
|
]
|
|
831
831
|
}),
|
|
832
832
|
E && /* @__PURE__ */ F("div", {
|
|
833
|
-
className: "p-4 border border-border rounded-lg bg-
|
|
833
|
+
className: "p-4 border border-border-subtle rounded-lg bg-bg-sunken/30 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
834
834
|
children: [
|
|
835
835
|
/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
|
|
836
836
|
className: "block text-sm font-medium mb-1",
|
|
@@ -838,7 +838,7 @@ var L = {
|
|
|
838
838
|
}), /* @__PURE__ */ F("select", {
|
|
839
839
|
value: x.source || "",
|
|
840
840
|
onChange: (e) => $("source", e.target.value),
|
|
841
|
-
className: "w-full px-3 py-2 border border-border rounded-md bg-
|
|
841
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface",
|
|
842
842
|
children: [/* @__PURE__ */ P("option", {
|
|
843
843
|
value: "",
|
|
844
844
|
children: "All Sources"
|
|
@@ -853,7 +853,7 @@ var L = {
|
|
|
853
853
|
}), /* @__PURE__ */ F("select", {
|
|
854
854
|
value: x.provider || "",
|
|
855
855
|
onChange: (e) => $("provider", e.target.value),
|
|
856
|
-
className: "w-full px-3 py-2 border border-border rounded-md bg-
|
|
856
|
+
className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface",
|
|
857
857
|
children: [/* @__PURE__ */ P("option", {
|
|
858
858
|
value: "",
|
|
859
859
|
children: "All Providers"
|
|
@@ -874,79 +874,79 @@ var L = {
|
|
|
874
874
|
type: "date",
|
|
875
875
|
value: x.fromDate ? x.fromDate.split("T")[0] : "",
|
|
876
876
|
onChange: (e) => $("fromDate", e.target.value ? new Date(e.target.value).toISOString() : void 0),
|
|
877
|
-
className: "w-full sm:flex-1 p-2 border border-border rounded-md bg-
|
|
877
|
+
className: "w-full sm:flex-1 p-2 border border-border-subtle rounded-md bg-bg-surface text-sm"
|
|
878
878
|
}),
|
|
879
879
|
/* @__PURE__ */ P("span", {
|
|
880
|
-
className: "text-muted
|
|
880
|
+
className: "text-text-muted hidden sm:inline",
|
|
881
881
|
children: "-"
|
|
882
882
|
}),
|
|
883
883
|
/* @__PURE__ */ P("input", {
|
|
884
884
|
type: "date",
|
|
885
885
|
value: x.toDate ? x.toDate.split("T")[0] : "",
|
|
886
886
|
onChange: (e) => $("toDate", e.target.value ? new Date(e.target.value).toISOString() : void 0),
|
|
887
|
-
className: "w-full sm:flex-1 p-2 border border-border rounded-md bg-
|
|
887
|
+
className: "w-full sm:flex-1 p-2 border border-border-subtle rounded-md bg-bg-surface text-sm"
|
|
888
888
|
})
|
|
889
889
|
]
|
|
890
890
|
})]
|
|
891
891
|
})
|
|
892
892
|
]
|
|
893
893
|
}),
|
|
894
|
-
Te.length === 0 ? /* @__PURE__ */ P(
|
|
895
|
-
icon: /* @__PURE__ */ P(D, { className: "size-6 text-muted
|
|
894
|
+
Te.length === 0 ? /* @__PURE__ */ P(n, {
|
|
895
|
+
icon: /* @__PURE__ */ P(D, { className: "size-6 text-text-muted" }),
|
|
896
896
|
title: "No refund records found",
|
|
897
897
|
description: Object.values(x).filter(Boolean).length > 0 ? "Try adjusting your filters." : m === "PENDING" ? "No pending refunds to process." : "Refund records will appear here when created."
|
|
898
898
|
}) : /* @__PURE__ */ P("div", {
|
|
899
|
-
className: "border border-border rounded-lg overflow-hidden",
|
|
899
|
+
className: "border border-border-subtle rounded-lg overflow-hidden",
|
|
900
900
|
children: /* @__PURE__ */ P("div", {
|
|
901
901
|
className: "overflow-x-auto",
|
|
902
902
|
children: /* @__PURE__ */ F("table", {
|
|
903
903
|
className: "w-full min-w-[400px]",
|
|
904
904
|
children: [/* @__PURE__ */ P("thead", {
|
|
905
|
-
className: "bg-
|
|
905
|
+
className: "bg-bg-sunken/50",
|
|
906
906
|
children: /* @__PURE__ */ F("tr", { children: [
|
|
907
907
|
/* @__PURE__ */ P("th", {
|
|
908
|
-
className: "text-left text-sm font-medium text-muted
|
|
908
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap",
|
|
909
909
|
children: "Date"
|
|
910
910
|
}),
|
|
911
911
|
/* @__PURE__ */ P("th", {
|
|
912
|
-
className: "text-left text-sm font-medium text-muted
|
|
912
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap",
|
|
913
913
|
children: "Status"
|
|
914
914
|
}),
|
|
915
915
|
/* @__PURE__ */ P("th", {
|
|
916
|
-
className: "text-left text-sm font-medium text-muted
|
|
916
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap hidden sm:table-cell",
|
|
917
917
|
children: "Source"
|
|
918
918
|
}),
|
|
919
919
|
/* @__PURE__ */ P("th", {
|
|
920
|
-
className: "text-left text-sm font-medium text-muted
|
|
920
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap hidden md:table-cell",
|
|
921
921
|
children: "Provider"
|
|
922
922
|
}),
|
|
923
923
|
/* @__PURE__ */ P("th", {
|
|
924
|
-
className: "text-left text-sm font-medium text-muted
|
|
924
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap",
|
|
925
925
|
children: "Payment ID"
|
|
926
926
|
}),
|
|
927
927
|
/* @__PURE__ */ P("th", {
|
|
928
|
-
className: "text-right text-sm font-medium text-muted
|
|
928
|
+
className: "text-right text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap",
|
|
929
929
|
children: "Amount"
|
|
930
930
|
}),
|
|
931
931
|
/* @__PURE__ */ P("th", {
|
|
932
|
-
className: "text-left text-sm font-medium text-muted
|
|
932
|
+
className: "text-left text-sm font-medium text-text-muted px-3 py-2 whitespace-nowrap hidden lg:table-cell",
|
|
933
933
|
children: "Reason"
|
|
934
934
|
}),
|
|
935
935
|
/* @__PURE__ */ P("th", { className: "p-2 w-10" })
|
|
936
936
|
] })
|
|
937
937
|
}), /* @__PURE__ */ P("tbody", {
|
|
938
|
-
className: "divide-y divide-border",
|
|
938
|
+
className: "divide-y divide-border-subtle",
|
|
939
939
|
children: Te.map((e) => {
|
|
940
940
|
let t = L[e.status].icon;
|
|
941
941
|
return /* @__PURE__ */ F("tr", {
|
|
942
|
-
className: "hover:bg-
|
|
942
|
+
className: "hover:bg-bg-sunken/30 transition-colors",
|
|
943
943
|
children: [
|
|
944
944
|
/* @__PURE__ */ P("td", {
|
|
945
|
-
className: "px-3 py-2 text-sm text-
|
|
945
|
+
className: "px-3 py-2 text-sm text-text-primary whitespace-nowrap",
|
|
946
946
|
children: /* @__PURE__ */ F("div", {
|
|
947
947
|
className: "flex flex-col",
|
|
948
948
|
children: [/* @__PURE__ */ P("span", { children: o(e.createdAt).split(" ")[0] }), /* @__PURE__ */ P("span", {
|
|
949
|
-
className: "text-xs text-muted
|
|
949
|
+
className: "text-xs text-text-muted",
|
|
950
950
|
children: o(e.createdAt).split(" ")[1]
|
|
951
951
|
})]
|
|
952
952
|
})
|
|
@@ -962,15 +962,15 @@ var L = {
|
|
|
962
962
|
})
|
|
963
963
|
}),
|
|
964
964
|
/* @__PURE__ */ P("td", {
|
|
965
|
-
className: "px-3 py-2 text-sm text-muted
|
|
965
|
+
className: "px-3 py-2 text-sm text-text-muted whitespace-nowrap hidden sm:table-cell",
|
|
966
966
|
children: R[e.source]
|
|
967
967
|
}),
|
|
968
968
|
/* @__PURE__ */ P("td", {
|
|
969
|
-
className: "px-3 py-2 text-sm text-
|
|
969
|
+
className: "px-3 py-2 text-sm text-text-primary capitalize whitespace-nowrap hidden md:table-cell",
|
|
970
970
|
children: e.provider
|
|
971
971
|
}),
|
|
972
972
|
/* @__PURE__ */ P("td", {
|
|
973
|
-
className: "px-3 py-2 text-sm font-mono text-muted
|
|
973
|
+
className: "px-3 py-2 text-sm font-mono text-text-muted whitespace-nowrap max-w-[120px] sm:max-w-[200px] truncate",
|
|
974
974
|
children: e.gatewayPaymentId
|
|
975
975
|
}),
|
|
976
976
|
/* @__PURE__ */ P("td", {
|
|
@@ -978,7 +978,7 @@ var L = {
|
|
|
978
978
|
children: a(e.amount, e.currency)
|
|
979
979
|
}),
|
|
980
980
|
/* @__PURE__ */ P("td", {
|
|
981
|
-
className: "px-3 py-2 text-sm text-muted
|
|
981
|
+
className: "px-3 py-2 text-sm text-text-muted max-w-[200px] truncate hidden lg:table-cell",
|
|
982
982
|
children: e.reason || "-"
|
|
983
983
|
}),
|
|
984
984
|
/* @__PURE__ */ P("td", {
|
|
@@ -1002,9 +1002,9 @@ var L = {
|
|
|
1002
1002
|
})
|
|
1003
1003
|
}),
|
|
1004
1004
|
q.totalCount > 0 && /* @__PURE__ */ F("div", {
|
|
1005
|
-
className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border pt-4",
|
|
1005
|
+
className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
|
|
1006
1006
|
children: [/* @__PURE__ */ F("p", {
|
|
1007
|
-
className: "text-sm text-muted
|
|
1007
|
+
className: "text-sm text-text-muted text-center sm:text-left",
|
|
1008
1008
|
children: [
|
|
1009
1009
|
"Showing ",
|
|
1010
1010
|
q.page * q.pageSize + 1,
|
|
@@ -1023,14 +1023,14 @@ var L = {
|
|
|
1023
1023
|
type: "button",
|
|
1024
1024
|
onClick: de,
|
|
1025
1025
|
disabled: !q.hasPrevious,
|
|
1026
|
-
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-
|
|
1026
|
+
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",
|
|
1027
1027
|
children: [/* @__PURE__ */ P(y, { className: "size-4" }), /* @__PURE__ */ P("span", {
|
|
1028
1028
|
className: "hidden sm:inline",
|
|
1029
1029
|
children: "Previous"
|
|
1030
1030
|
})]
|
|
1031
1031
|
}),
|
|
1032
1032
|
/* @__PURE__ */ F("span", {
|
|
1033
|
-
className: "text-sm text-muted
|
|
1033
|
+
className: "text-sm text-text-muted px-2",
|
|
1034
1034
|
children: [
|
|
1035
1035
|
/* @__PURE__ */ P("span", {
|
|
1036
1036
|
className: "hidden sm:inline",
|
|
@@ -1054,7 +1054,7 @@ var L = {
|
|
|
1054
1054
|
type: "button",
|
|
1055
1055
|
onClick: ue,
|
|
1056
1056
|
disabled: !q.hasMore,
|
|
1057
|
-
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-
|
|
1057
|
+
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",
|
|
1058
1058
|
children: [/* @__PURE__ */ P("span", {
|
|
1059
1059
|
className: "hidden sm:inline",
|
|
1060
1060
|
children: "Next"
|