@burdenoff/microfe-billing 2026.1116.1 → 2026.1119.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +143 -143
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js +170 -170
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +148 -148
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +115 -115
- package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +136 -136
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +129 -129
- package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js +325 -325
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +149 -149
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +99 -98
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.js +125 -124
- package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +61 -60
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +177 -177
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +231 -231
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +139 -139
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +54 -54
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +65 -65
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js +95 -95
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +232 -231
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +328 -328
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +57 -57
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +53 -53
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +100 -100
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +150 -150
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js +125 -125
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +113 -113
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +132 -132
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js +101 -101
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +125 -125
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +51 -50
- package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +107 -107
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
- package/package.json +2 -2
|
@@ -18,24 +18,24 @@ import { PayoutErrorNotice as s } from "../../earnings/components/PayoutErrorNot
|
|
|
18
18
|
import { toPayoutDestinations as pe } from "../../earnings/utils/payoutDestination.js";
|
|
19
19
|
import { plainPayoutError as me, rawErrorText as he } from "../../earnings/utils/plainPayoutError.js";
|
|
20
20
|
import { useEffect as c, useState as l } from "react";
|
|
21
|
-
import { EmphasisPanel as ge, IllustratedEmptyState as _e, PagePurpose as ve, ShowTechnicalDetails as ye } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { EmphasisPanel as ge, IllustratedEmptyState as _e, PagePurpose as ve, ShowTechnicalDetails as ye, ThemedSelect as be } from "@burdenoff/fe-libs/ui";
|
|
22
22
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
23
23
|
// src/billing/modules/credits/pages/CreditWithdrawalPage.tsx
|
|
24
|
-
async function
|
|
24
|
+
async function xe(e, n) {
|
|
25
25
|
return (await a({
|
|
26
26
|
...n,
|
|
27
27
|
query: t,
|
|
28
28
|
variables: { billingAccountId: e }
|
|
29
29
|
})).getCreditBalanceByType;
|
|
30
30
|
}
|
|
31
|
-
async function
|
|
31
|
+
async function Se(e, t) {
|
|
32
32
|
return (await a({
|
|
33
33
|
...t,
|
|
34
34
|
query: n,
|
|
35
35
|
variables: { input: e }
|
|
36
36
|
})).requestCreditWithdrawal;
|
|
37
37
|
}
|
|
38
|
-
async function
|
|
38
|
+
async function Ce(t, n) {
|
|
39
39
|
return (await a({
|
|
40
40
|
...n,
|
|
41
41
|
query: e,
|
|
@@ -72,7 +72,7 @@ var p = ({ label: e, value: t, description: n, highlight: r }) => {
|
|
|
72
72
|
children: i
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
|
-
function
|
|
75
|
+
function we(e) {
|
|
76
76
|
switch (e.toUpperCase()) {
|
|
77
77
|
case "PAID": return o.success.text;
|
|
78
78
|
case "APPROVED":
|
|
@@ -84,7 +84,7 @@ function Ce(e) {
|
|
|
84
84
|
default: return "text-text-secondary";
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Te(e) {
|
|
88
88
|
switch (e.toUpperCase()) {
|
|
89
89
|
case "PAID": return `${o.success.bg} ${o.success.text}`;
|
|
90
90
|
case "APPROVED":
|
|
@@ -96,8 +96,8 @@ function we(e) {
|
|
|
96
96
|
default: return "bg-bg-sunken text-text-secondary";
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
let e = i(), { billingAccounts: t } = le(), [n, a] = l(void 0), { billingAccount: ge, isLoading:
|
|
99
|
+
var Ee = () => {
|
|
100
|
+
let e = i(), { billingAccounts: t } = le(), [n, a] = l(void 0), { billingAccount: ge, isLoading: Ee } = ue(), { billingAccount: De, isLoading: Oe } = ce(n), m = n ? De : ge, h = n ? Oe : Ee, { apiGatewayUrl: ke, authToken: Ae, orgId: je } = ne(), { emit: g } = ee(), [_, Me] = l(null), [Ne, v] = l(!1), [y, b] = l(null), [Pe, Fe] = l([]), [Ie, x] = l(!1), [S, Le] = l([]), [Re, C] = l(!1), [w, T] = l(""), [E, D] = l(""), [O, k] = l(""), [A, j] = l(!1), [M, N] = l(null), [P, F] = l(null), [ze, Be] = l(null), [Ve, He] = l(null), [I, L] = l(!1), R = re(), Ue = de(), [We, z] = l(!1);
|
|
101
101
|
c(() => {
|
|
102
102
|
I && z(!1);
|
|
103
103
|
}, [I]);
|
|
@@ -111,28 +111,28 @@ var Te = () => {
|
|
|
111
111
|
upiId: "",
|
|
112
112
|
country: "",
|
|
113
113
|
currency: "USD"
|
|
114
|
-
}), [
|
|
115
|
-
apiGatewayUrl:
|
|
116
|
-
authToken:
|
|
117
|
-
orgId:
|
|
114
|
+
}), [Ge, Ke] = l(!1), [W, qe] = l(null), G = m?.id, K = () => ({
|
|
115
|
+
apiGatewayUrl: ke,
|
|
116
|
+
authToken: Ae,
|
|
117
|
+
orgId: je
|
|
118
118
|
}), Je = async () => {
|
|
119
|
-
if (
|
|
120
|
-
v(!0), b(null),
|
|
119
|
+
if (G) {
|
|
120
|
+
v(!0), b(null), Be(null);
|
|
121
121
|
try {
|
|
122
|
-
let e = await
|
|
123
|
-
|
|
122
|
+
let e = await xe(G, K());
|
|
123
|
+
Me(e);
|
|
124
124
|
} catch (e) {
|
|
125
|
-
|
|
125
|
+
Be(e), b(e instanceof Error ? e.message : "Failed to load balance");
|
|
126
126
|
} finally {
|
|
127
127
|
v(!1);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
},
|
|
131
|
-
if (
|
|
130
|
+
}, Ye = async () => {
|
|
131
|
+
if (G) {
|
|
132
132
|
x(!0);
|
|
133
133
|
try {
|
|
134
|
-
let e = await ae(
|
|
135
|
-
|
|
134
|
+
let e = await ae(G, K());
|
|
135
|
+
Fe(e);
|
|
136
136
|
let t = e.find((e) => e.isDefault) ?? e[0];
|
|
137
137
|
t && T(t.id);
|
|
138
138
|
} catch {} finally {
|
|
@@ -140,31 +140,31 @@ var Te = () => {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}, q = async () => {
|
|
143
|
-
if (
|
|
143
|
+
if (G) {
|
|
144
144
|
C(!0);
|
|
145
145
|
try {
|
|
146
|
-
let e = await
|
|
147
|
-
|
|
146
|
+
let e = await Ce(G, K());
|
|
147
|
+
Le(e);
|
|
148
148
|
} catch {} finally {
|
|
149
149
|
C(!1);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
c(() => {
|
|
154
|
-
|
|
155
|
-
}, [
|
|
154
|
+
G && (Je(), Ye(), q());
|
|
155
|
+
}, [G]), c(() => {
|
|
156
156
|
m?.currency && U((e) => ({
|
|
157
157
|
...e,
|
|
158
158
|
currency: m.currency ?? "USD"
|
|
159
159
|
}));
|
|
160
160
|
}, [m?.currency]);
|
|
161
|
-
let
|
|
162
|
-
if (
|
|
163
|
-
qe(null),
|
|
161
|
+
let Xe = async () => {
|
|
162
|
+
if (G) {
|
|
163
|
+
qe(null), He(null), Ke(!0);
|
|
164
164
|
try {
|
|
165
165
|
let e = H.country.trim().toUpperCase() === "IN" || H.country.trim().toLowerCase() === "india";
|
|
166
166
|
await ie({
|
|
167
|
-
billingAccountId:
|
|
167
|
+
billingAccountId: G,
|
|
168
168
|
label: H.label,
|
|
169
169
|
type: H.type,
|
|
170
170
|
accountHolderName: H.accountHolderName,
|
|
@@ -175,11 +175,11 @@ var Te = () => {
|
|
|
175
175
|
...e ? { ifsc: H.ifscCode } : { routingNumber: H.routingNumber }
|
|
176
176
|
},
|
|
177
177
|
...H.type === "UPI" && { upiId: H.upiId }
|
|
178
|
-
},
|
|
178
|
+
}, K()), g("billing.payout_account.added", {
|
|
179
179
|
route: "/billing/credits/withdraw",
|
|
180
|
-
entityId:
|
|
180
|
+
entityId: G,
|
|
181
181
|
source: "credit-withdrawal"
|
|
182
|
-
}), await
|
|
182
|
+
}), await Ye(), V(!1), U({
|
|
183
183
|
label: "",
|
|
184
184
|
type: "BANK_ACCOUNT",
|
|
185
185
|
accountHolderName: "",
|
|
@@ -191,23 +191,23 @@ var Te = () => {
|
|
|
191
191
|
currency: "USD"
|
|
192
192
|
});
|
|
193
193
|
} catch (e) {
|
|
194
|
-
|
|
194
|
+
He(e), qe(e instanceof Error ? e.message : "Failed to add account");
|
|
195
195
|
} finally {
|
|
196
|
-
|
|
196
|
+
Ke(!1);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
},
|
|
200
|
-
if (!
|
|
199
|
+
}, Ze = async () => {
|
|
200
|
+
if (!G || !w) return;
|
|
201
201
|
let e = parseFloat(E);
|
|
202
202
|
if (!(!e || e <= 0)) {
|
|
203
203
|
N(null), F(null), j(!0);
|
|
204
204
|
try {
|
|
205
|
-
let t = await
|
|
206
|
-
billingAccountId:
|
|
205
|
+
let t = await Se({
|
|
206
|
+
billingAccountId: G,
|
|
207
207
|
creditAmount: e,
|
|
208
208
|
payoutAccountId: w,
|
|
209
209
|
notes: O || void 0
|
|
210
|
-
},
|
|
210
|
+
}, K());
|
|
211
211
|
g("billing.credits.withdrawal_requested", {
|
|
212
212
|
route: "/billing/credits/withdraw",
|
|
213
213
|
entityId: t.id,
|
|
@@ -220,13 +220,13 @@ var Te = () => {
|
|
|
220
220
|
j(!1);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
}, J = m?.currency ?? "USD", Y = parseFloat(E) || 0, { data:
|
|
223
|
+
}, J = m?.currency ?? "USD", Y = parseFloat(E) || 0, { data: Qe, loading: $e } = r({
|
|
224
224
|
variables: {
|
|
225
225
|
creditAmount: Y,
|
|
226
226
|
currency: J
|
|
227
227
|
},
|
|
228
228
|
skip: Y <= 0 || !m
|
|
229
|
-
}),
|
|
229
|
+
}), et = Qe?.getCostOfCredits?.amount;
|
|
230
230
|
if (!e.canWithdrawCredits) return /* @__PURE__ */ d("div", {
|
|
231
231
|
className: "flex items-center justify-center h-full min-h-[400px]",
|
|
232
232
|
children: /* @__PURE__ */ f("div", {
|
|
@@ -286,12 +286,12 @@ var Te = () => {
|
|
|
286
286
|
}, e))
|
|
287
287
|
})]
|
|
288
288
|
});
|
|
289
|
-
let X = _?.withdrawable ?? 0, Z = .005,
|
|
289
|
+
let X = _?.withdrawable ?? 0, Z = .005, tt = Y > 0 && Y <= X + Z, Q = Pe.filter((e) => e.status !== "ARCHIVED"), $ = A ? null : Q.length === 0 ? "Add a payout method above before requesting a withdrawal." : w ? Y > 0 ? Y > X + Z ? `Amount exceeds your withdrawable balance of ${X.toLocaleString()} credits.` : null : "Enter an amount to withdraw." : "Select a payout method above.";
|
|
290
290
|
return /* @__PURE__ */ f("div", {
|
|
291
291
|
className: "space-y-6 px-6 lg:px-8 py-6",
|
|
292
292
|
children: [
|
|
293
293
|
R && /* @__PURE__ */ d(te, {
|
|
294
|
-
open:
|
|
294
|
+
open: We,
|
|
295
295
|
title: "Review your withdrawal",
|
|
296
296
|
description: "These credits are converted to a payout when you confirm.",
|
|
297
297
|
details: [
|
|
@@ -304,7 +304,7 @@ var Te = () => {
|
|
|
304
304
|
value: Q.find((e) => e.id === w)?.label ?? ""
|
|
305
305
|
},
|
|
306
306
|
...P && he(P) ? [{
|
|
307
|
-
label:
|
|
307
|
+
label: Ue("billing.payoutError.technical", "Technical details"),
|
|
308
308
|
value: /* @__PURE__ */ d(ye, {
|
|
309
309
|
copyable: !0,
|
|
310
310
|
children: he(P)
|
|
@@ -314,8 +314,8 @@ var Te = () => {
|
|
|
314
314
|
confirmLabel: "Request withdrawal",
|
|
315
315
|
busyLabel: "Requesting…",
|
|
316
316
|
isBusy: A,
|
|
317
|
-
error: M ? me(P,
|
|
318
|
-
onConfirm: () => void
|
|
317
|
+
error: M ? me(P, Ue) : null,
|
|
318
|
+
onConfirm: () => void Ze(),
|
|
319
319
|
onCancel: () => z(!1)
|
|
320
320
|
}),
|
|
321
321
|
/* @__PURE__ */ f("div", {
|
|
@@ -333,7 +333,7 @@ var Te = () => {
|
|
|
333
333
|
className: "mt-3",
|
|
334
334
|
children: "Turn the credits you bought or earned (from sales and referrals) back into real money. Add a bank account or UPI as a payout destination, request a withdrawal for any amount up to your withdrawable balance, and track each request here until it is paid. Granted credits (coupons, admin grants) are not withdrawable."
|
|
335
335
|
})
|
|
336
|
-
] }), t.length > 1 && /* @__PURE__ */ d(
|
|
336
|
+
] }), t.length > 1 && /* @__PURE__ */ d(be, {
|
|
337
337
|
value: m?.id ?? "",
|
|
338
338
|
onChange: (e) => a(e.target.value),
|
|
339
339
|
"aria-label": "Switch billing account",
|
|
@@ -346,7 +346,7 @@ var Te = () => {
|
|
|
346
346
|
}),
|
|
347
347
|
/* @__PURE__ */ d("div", {
|
|
348
348
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
|
|
349
|
-
children:
|
|
349
|
+
children: Ne ? [
|
|
350
350
|
1,
|
|
351
351
|
2,
|
|
352
352
|
3,
|
|
@@ -355,7 +355,7 @@ var Te = () => {
|
|
|
355
355
|
className: "border border-border-subtle rounded-lg p-5",
|
|
356
356
|
children: [/* @__PURE__ */ d("div", { className: "h-4 w-20 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ d("div", { className: "h-8 w-28 bg-bg-sunken animate-pulse rounded" })]
|
|
357
357
|
}, e)) : y ? R ? /* @__PURE__ */ d(s, {
|
|
358
|
-
error:
|
|
358
|
+
error: ze,
|
|
359
359
|
className: "col-span-4"
|
|
360
360
|
}) : /* @__PURE__ */ d("div", {
|
|
361
361
|
className: "col-span-4 text-sm text-status-error-text",
|
|
@@ -480,7 +480,7 @@ var Te = () => {
|
|
|
480
480
|
children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
|
|
481
481
|
className: "block text-xs text-text-secondary mb-1",
|
|
482
482
|
children: "Type"
|
|
483
|
-
}), /* @__PURE__ */ f(
|
|
483
|
+
}), /* @__PURE__ */ f(be, {
|
|
484
484
|
value: H.type,
|
|
485
485
|
onChange: (e) => U((t) => ({
|
|
486
486
|
...t,
|
|
@@ -558,20 +558,20 @@ var Te = () => {
|
|
|
558
558
|
placeholder: "yourname@upi",
|
|
559
559
|
className: "w-full px-3 py-2 text-sm border border-border-subtle rounded-button bg-bg-surface text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
|
|
560
560
|
})] }),
|
|
561
|
-
|
|
561
|
+
W && (R ? /* @__PURE__ */ d(s, { error: Ve }) : /* @__PURE__ */ d("p", {
|
|
562
562
|
className: "text-xs text-status-error-text",
|
|
563
|
-
children:
|
|
563
|
+
children: W
|
|
564
564
|
})),
|
|
565
565
|
/* @__PURE__ */ d("button", {
|
|
566
566
|
type: "button",
|
|
567
|
-
onClick: () => void
|
|
568
|
-
disabled:
|
|
567
|
+
onClick: () => void Xe(),
|
|
568
|
+
disabled: Ge || !H.label || !H.accountHolderName,
|
|
569
569
|
className: "w-full py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
570
|
-
children:
|
|
570
|
+
children: Ge ? "Saving…" : "Save Account"
|
|
571
571
|
})
|
|
572
572
|
]
|
|
573
573
|
}),
|
|
574
|
-
|
|
574
|
+
Ie ? /* @__PURE__ */ d("div", {
|
|
575
575
|
className: "space-y-2",
|
|
576
576
|
children: [1, 2].map((e) => /* @__PURE__ */ d("div", { className: "h-16 border border-border-subtle rounded-lg bg-bg-sunken animate-pulse" }, e))
|
|
577
577
|
}) : Q.length === 0 && !B ? /* @__PURE__ */ d(_e, {
|
|
@@ -672,12 +672,12 @@ var Te = () => {
|
|
|
672
672
|
}),
|
|
673
673
|
Y > 0 && Y <= X + Z && /* @__PURE__ */ d("p", {
|
|
674
674
|
className: "text-xs text-text-secondary mt-1",
|
|
675
|
-
children:
|
|
675
|
+
children: $e ? "Calculating…" : et == null ? null : /* @__PURE__ */ f(u, { children: [
|
|
676
676
|
"Estimated payout:",
|
|
677
677
|
" ",
|
|
678
678
|
/* @__PURE__ */ d("span", {
|
|
679
679
|
className: "font-semibold text-text-primary",
|
|
680
|
-
children:
|
|
680
|
+
children: et.toLocaleString(void 0, {
|
|
681
681
|
style: "currency",
|
|
682
682
|
currency: J,
|
|
683
683
|
minimumFractionDigits: 2,
|
|
@@ -732,9 +732,9 @@ var Te = () => {
|
|
|
732
732
|
/* @__PURE__ */ d("button", {
|
|
733
733
|
type: "button",
|
|
734
734
|
onClick: () => {
|
|
735
|
-
R ? (N(null), L(!1), z(!0)) :
|
|
735
|
+
R ? (N(null), L(!1), z(!0)) : Ze();
|
|
736
736
|
},
|
|
737
|
-
disabled: A || !
|
|
737
|
+
disabled: A || !tt || !w || Q.length === 0,
|
|
738
738
|
className: "w-full py-2.5 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
739
739
|
children: A ? "Submitting…" : "Request Withdrawal"
|
|
740
740
|
})
|
|
@@ -769,7 +769,7 @@ var Te = () => {
|
|
|
769
769
|
})
|
|
770
770
|
})
|
|
771
771
|
})]
|
|
772
|
-
}),
|
|
772
|
+
}), Re ? /* @__PURE__ */ d("div", {
|
|
773
773
|
className: "space-y-2",
|
|
774
774
|
children: [
|
|
775
775
|
1,
|
|
@@ -824,7 +824,7 @@ var Te = () => {
|
|
|
824
824
|
/* @__PURE__ */ f("td", {
|
|
825
825
|
className: "px-4 py-3",
|
|
826
826
|
children: [/* @__PURE__ */ d("span", {
|
|
827
|
-
className: `inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${
|
|
827
|
+
className: `inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${Te(e.status)}`,
|
|
828
828
|
children: e.status.charAt(0) + e.status.slice(1).toLowerCase()
|
|
829
829
|
}), e.failureReason && /* @__PURE__ */ d("p", {
|
|
830
830
|
className: "text-xs text-status-error-text mt-0.5 max-w-[180px] truncate",
|
|
@@ -846,7 +846,7 @@ var Te = () => {
|
|
|
846
846
|
/* @__PURE__ */ d("td", {
|
|
847
847
|
className: "px-4 py-3 text-text-secondary hidden md:table-cell",
|
|
848
848
|
children: e.paidAt ? /* @__PURE__ */ d("span", {
|
|
849
|
-
className:
|
|
849
|
+
className: we("PAID"),
|
|
850
850
|
children: oe(e.paidAt, "short")
|
|
851
851
|
}) : "—"
|
|
852
852
|
})
|
|
@@ -859,6 +859,6 @@ var Te = () => {
|
|
|
859
859
|
]
|
|
860
860
|
});
|
|
861
861
|
};
|
|
862
|
-
export {
|
|
862
|
+
export { Ee as CreditWithdrawalPage };
|
|
863
863
|
|
|
864
864
|
//# sourceMappingURL=CreditWithdrawalPage.js.map
|