@burdenoff/microfe-billing 2026.1115.2 → 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/checkout/pages/CheckoutPage.js +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.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 +175 -171
- 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
|
@@ -17,13 +17,13 @@ import { PAYOUT_ACCOUNT_TONE_CLASSES as he, isPayoutAccountPayable as a, payoutA
|
|
|
17
17
|
import { PayoutDestinationList as _e } from "../components/PayoutDestinationList.js";
|
|
18
18
|
import { PayoutErrorNotice as s } from "../components/PayoutErrorNotice.js";
|
|
19
19
|
import { toPayoutDestinations as ve } from "../utils/payoutDestination.js";
|
|
20
|
-
import { plainPayoutError as
|
|
21
|
-
import { useCallback as
|
|
22
|
-
import { AlertDialog as
|
|
23
|
-
import { Landmark as
|
|
20
|
+
import { plainPayoutError as ye, rawErrorText as c } from "../utils/plainPayoutError.js";
|
|
21
|
+
import { useCallback as be, useEffect as xe, useMemo as Se, useState as l } from "react";
|
|
22
|
+
import { AlertDialog as Ce, AlertDialogAction as we, AlertDialogCancel as Te, AlertDialogContent as Ee, AlertDialogDescription as De, AlertDialogFooter as Oe, AlertDialogHeader as ke, AlertDialogTitle as Ae, IllustratedEmptyState as u, PagePurpose as je, ResponsiveTable as Me, ShowTechnicalDetails as d, ThemedSelect as f } from "@burdenoff/fe-libs/ui";
|
|
23
|
+
import { Landmark as Ne, RefreshCw as Pe, Send as Fe } from "lucide-react";
|
|
24
24
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
25
25
|
// src/billing/modules/earnings/pages/PayoutsPage.tsx
|
|
26
|
-
var
|
|
26
|
+
var Ie = [
|
|
27
27
|
{
|
|
28
28
|
key: "amount",
|
|
29
29
|
header: "Amount",
|
|
@@ -54,7 +54,7 @@ var Fe = [
|
|
|
54
54
|
cell: (e) => r(e.createdAt)
|
|
55
55
|
}
|
|
56
56
|
], g = () => {
|
|
57
|
-
let r = e(), g = t(), _ = ie(), [
|
|
57
|
+
let r = e(), g = t(), _ = ie(), [Le, v] = l(!1), [Re, y] = l(!1), [ze, b] = l(null), [x, S] = l(null), [C, w] = l(null), [T, E] = l(null), { emit: D } = ae(), { apiGatewayUrl: O, authToken: k, orgId: A } = oe(), { data: Be } = se({}), j = Be?.getDefaultBillingAccount?.id, [M, Ve] = l([]), [He, Ue] = l([]), [N, P] = l(!0), [F, I] = l(null), [L, R] = l({
|
|
58
58
|
label: "",
|
|
59
59
|
type: "BANK_ACCOUNT",
|
|
60
60
|
providerPreference: "AUTO",
|
|
@@ -66,7 +66,7 @@ var Fe = [
|
|
|
66
66
|
routingNumber: "",
|
|
67
67
|
ifsc: "",
|
|
68
68
|
upiId: ""
|
|
69
|
-
}), [
|
|
69
|
+
}), [z, B] = l(""), [V, H] = l(""), [U, W] = l(null), [G, K] = l(null), [q, J] = l(null), Y = Se(() => ({
|
|
70
70
|
apiGatewayUrl: O,
|
|
71
71
|
authToken: k,
|
|
72
72
|
orgId: A
|
|
@@ -74,34 +74,34 @@ var Fe = [
|
|
|
74
74
|
O,
|
|
75
75
|
k,
|
|
76
76
|
A
|
|
77
|
-
]), X =
|
|
77
|
+
]), X = be(async () => {
|
|
78
78
|
if (j) {
|
|
79
|
-
|
|
79
|
+
P(!0), I(null);
|
|
80
80
|
try {
|
|
81
81
|
let [e, t] = await Promise.all([ue(j, Y), de(j, Y)]);
|
|
82
|
-
|
|
82
|
+
Ve(e), Ue(t), H((t) => ge(e, t));
|
|
83
83
|
} catch (e) {
|
|
84
|
-
|
|
84
|
+
I(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load payout data"));
|
|
85
85
|
} finally {
|
|
86
|
-
|
|
86
|
+
P(!1);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}, [j, Y]);
|
|
90
|
-
if (
|
|
90
|
+
if (xe(() => {
|
|
91
91
|
X();
|
|
92
92
|
}, [X]), !r.canManagePaymentMethods) return /* @__PURE__ */ m(ee, { message: "You don't have permission to manage payout accounts." });
|
|
93
|
-
if (
|
|
93
|
+
if (F && i(F)) {
|
|
94
94
|
let e = /* @__PURE__ */ m(ne, {
|
|
95
95
|
title: "Payout data unavailable",
|
|
96
|
-
message: g ?
|
|
96
|
+
message: g ? ye(F, _) : F.message,
|
|
97
97
|
onRetry: () => void X(),
|
|
98
98
|
showRetry: !0
|
|
99
99
|
});
|
|
100
100
|
return g ? /* @__PURE__ */ h(p, { children: [e, /* @__PURE__ */ m("div", {
|
|
101
101
|
className: "px-6",
|
|
102
|
-
children: /* @__PURE__ */ m(
|
|
102
|
+
children: /* @__PURE__ */ m(d, {
|
|
103
103
|
copyable: !0,
|
|
104
|
-
children:
|
|
104
|
+
children: c(F)
|
|
105
105
|
})
|
|
106
106
|
})] }) : e;
|
|
107
107
|
}
|
|
@@ -113,16 +113,16 @@ var Fe = [
|
|
|
113
113
|
} catch (e) {
|
|
114
114
|
w(e);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, We = async () => {
|
|
117
117
|
if (!j) return;
|
|
118
118
|
J(null);
|
|
119
119
|
let e = {
|
|
120
120
|
billingAccountId: j,
|
|
121
|
-
...
|
|
121
|
+
...L
|
|
122
122
|
};
|
|
123
|
-
if (
|
|
123
|
+
if (U) await me(U, e, Y), D("billing.payout_account.updated", {
|
|
124
124
|
route: "/billing/payouts",
|
|
125
|
-
entityId:
|
|
125
|
+
entityId: U,
|
|
126
126
|
source: "payouts"
|
|
127
127
|
});
|
|
128
128
|
else {
|
|
@@ -133,7 +133,7 @@ var Fe = [
|
|
|
133
133
|
source: "payouts"
|
|
134
134
|
}), J(t.status === "ACTIVE" ? "Payout account saved and ready to receive payouts." : "Payout account saved. It stays pending until the payout processor verifies it; you can request payouts to it once it is verified.");
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
R({
|
|
137
137
|
label: "",
|
|
138
138
|
type: "BANK_ACCOUNT",
|
|
139
139
|
providerPreference: "AUTO",
|
|
@@ -145,8 +145,8 @@ var Fe = [
|
|
|
145
145
|
routingNumber: "",
|
|
146
146
|
ifsc: "",
|
|
147
147
|
upiId: ""
|
|
148
|
-
}),
|
|
149
|
-
},
|
|
148
|
+
}), W(null), await X();
|
|
149
|
+
}, Q = async (e) => {
|
|
150
150
|
J(null), await pe(e, Y), await X();
|
|
151
151
|
}, Ge = async (e) => {
|
|
152
152
|
J(null), await le(e, Y), D("billing.payout_account.archived", {
|
|
@@ -155,7 +155,7 @@ var Fe = [
|
|
|
155
155
|
source: "payouts"
|
|
156
156
|
}), await X();
|
|
157
157
|
}, Ke = (e) => {
|
|
158
|
-
J(null),
|
|
158
|
+
J(null), W(e.id), R((t) => ({
|
|
159
159
|
...t,
|
|
160
160
|
label: e.label,
|
|
161
161
|
type: e.type,
|
|
@@ -169,28 +169,28 @@ var Fe = [
|
|
|
169
169
|
ifsc: "",
|
|
170
170
|
upiId: ""
|
|
171
171
|
}));
|
|
172
|
-
},
|
|
173
|
-
j &&
|
|
172
|
+
}, $ = M.find((e) => e.id === V), qe = M.some(a), Je = async () => {
|
|
173
|
+
j && V && z && $ && a($) && (await fe({
|
|
174
174
|
billingAccountId: j,
|
|
175
|
-
payoutAccountId:
|
|
176
|
-
amount: Number(
|
|
177
|
-
currency:
|
|
175
|
+
payoutAccountId: V,
|
|
176
|
+
amount: Number(z),
|
|
177
|
+
currency: $.currency
|
|
178
178
|
}, Y), D("billing.payout.requested", {
|
|
179
179
|
route: "/billing/payouts",
|
|
180
|
-
entityId:
|
|
180
|
+
entityId: V,
|
|
181
181
|
source: "payouts",
|
|
182
|
-
amount: Number(
|
|
183
|
-
currency:
|
|
184
|
-
}),
|
|
185
|
-
},
|
|
182
|
+
amount: Number(z),
|
|
183
|
+
currency: $.currency
|
|
184
|
+
}), B(""), await X());
|
|
185
|
+
}, Ye = async () => {
|
|
186
186
|
y(!0), b(null), S(null);
|
|
187
187
|
try {
|
|
188
|
-
await
|
|
188
|
+
await Je(), v(!1), E({
|
|
189
189
|
ok: !0,
|
|
190
|
-
message: `Payout of ${n(Number(
|
|
190
|
+
message: `Payout of ${n(Number(z), $?.currency ?? "")} requested. We'll show its status below.`
|
|
191
191
|
});
|
|
192
192
|
} catch (e) {
|
|
193
|
-
S(e), b(
|
|
193
|
+
S(e), b(ye(e, _));
|
|
194
194
|
} finally {
|
|
195
195
|
y(!1);
|
|
196
196
|
}
|
|
@@ -199,31 +199,31 @@ var Fe = [
|
|
|
199
199
|
className: "space-y-6 p-6",
|
|
200
200
|
children: [
|
|
201
201
|
g && /* @__PURE__ */ m(re, {
|
|
202
|
-
open:
|
|
202
|
+
open: Le,
|
|
203
203
|
title: "Review your payout",
|
|
204
204
|
description: "The amount is moved out of your available balance when you confirm.",
|
|
205
205
|
details: [
|
|
206
206
|
{
|
|
207
207
|
label: "Amount",
|
|
208
|
-
value: n(Number(
|
|
208
|
+
value: n(Number(z), $?.currency ?? "")
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
label: "Paid to",
|
|
212
|
-
value:
|
|
212
|
+
value: $ ? `${$.label} · ${$.currency}` : ""
|
|
213
213
|
},
|
|
214
|
-
...x &&
|
|
214
|
+
...x && c(x) ? [{
|
|
215
215
|
label: _("billing.payoutError.technical", "Technical details"),
|
|
216
|
-
value: /* @__PURE__ */ m(
|
|
216
|
+
value: /* @__PURE__ */ m(d, {
|
|
217
217
|
copyable: !0,
|
|
218
|
-
children:
|
|
218
|
+
children: c(x)
|
|
219
219
|
})
|
|
220
220
|
}] : []
|
|
221
221
|
],
|
|
222
222
|
confirmLabel: "Request payout",
|
|
223
223
|
busyLabel: "Requesting…",
|
|
224
|
-
isBusy:
|
|
225
|
-
error:
|
|
226
|
-
onConfirm: () => void
|
|
224
|
+
isBusy: Re,
|
|
225
|
+
error: ze,
|
|
226
|
+
onConfirm: () => void Ye(),
|
|
227
227
|
onCancel: () => v(!1)
|
|
228
228
|
}),
|
|
229
229
|
g && T && /* @__PURE__ */ m("div", {
|
|
@@ -235,15 +235,15 @@ var Fe = [
|
|
|
235
235
|
title: "Payouts",
|
|
236
236
|
description: "Register payout accounts, request withdrawals, and track disbursement status."
|
|
237
237
|
}),
|
|
238
|
-
/* @__PURE__ */ m(
|
|
238
|
+
/* @__PURE__ */ m(je, { children: "Get your earnings paid out to a real bank account or UPI. Register where you want to be paid, request a withdrawal of your available balance, and track each request from submission through to disbursement here." }),
|
|
239
239
|
q ? /* @__PURE__ */ m("div", {
|
|
240
240
|
role: "status",
|
|
241
241
|
className: "rounded-lg border border-border-subtle bg-status-info-bg-subtle p-4 text-sm text-status-info-text",
|
|
242
242
|
children: q
|
|
243
243
|
}) : null,
|
|
244
|
-
|
|
244
|
+
F && !i(F) ? g ? /* @__PURE__ */ m(s, { error: F }) : /* @__PURE__ */ m("div", {
|
|
245
245
|
className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-sm text-status-error-text",
|
|
246
|
-
children:
|
|
246
|
+
children: F.message
|
|
247
247
|
}) : null,
|
|
248
248
|
g && C ? /* @__PURE__ */ m(s, { error: C }) : null,
|
|
249
249
|
/* @__PURE__ */ h("div", {
|
|
@@ -253,14 +253,14 @@ var Fe = [
|
|
|
253
253
|
children: [
|
|
254
254
|
/* @__PURE__ */ m("h2", {
|
|
255
255
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
256
|
-
children:
|
|
256
|
+
children: U ? "Edit payout account" : "Add payout account"
|
|
257
257
|
}),
|
|
258
258
|
/* @__PURE__ */ h("div", {
|
|
259
259
|
className: "space-y-3",
|
|
260
260
|
children: [
|
|
261
261
|
/* @__PURE__ */ m("input", {
|
|
262
|
-
value:
|
|
263
|
-
onChange: (e) =>
|
|
262
|
+
value: L.label,
|
|
263
|
+
onChange: (e) => R((t) => ({
|
|
264
264
|
...t,
|
|
265
265
|
label: e.target.value
|
|
266
266
|
})),
|
|
@@ -269,9 +269,9 @@ var Fe = [
|
|
|
269
269
|
}),
|
|
270
270
|
/* @__PURE__ */ h("div", {
|
|
271
271
|
className: "grid gap-3 md:grid-cols-2",
|
|
272
|
-
children: [/* @__PURE__ */ h(
|
|
273
|
-
value:
|
|
274
|
-
onChange: (e) =>
|
|
272
|
+
children: [/* @__PURE__ */ h(f, {
|
|
273
|
+
value: L.type,
|
|
274
|
+
onChange: (e) => R((t) => ({
|
|
275
275
|
...t,
|
|
276
276
|
type: e.target.value
|
|
277
277
|
})),
|
|
@@ -290,9 +290,9 @@ var Fe = [
|
|
|
290
290
|
children: "Wallet"
|
|
291
291
|
})
|
|
292
292
|
]
|
|
293
|
-
}), /* @__PURE__ */ h(
|
|
294
|
-
value:
|
|
295
|
-
onChange: (e) =>
|
|
293
|
+
}), /* @__PURE__ */ h(f, {
|
|
294
|
+
value: L.providerPreference,
|
|
295
|
+
onChange: (e) => R((t) => ({
|
|
296
296
|
...t,
|
|
297
297
|
providerPreference: e.target.value
|
|
298
298
|
})),
|
|
@@ -320,16 +320,16 @@ var Fe = [
|
|
|
320
320
|
/* @__PURE__ */ h("div", {
|
|
321
321
|
className: "grid gap-3 md:grid-cols-2",
|
|
322
322
|
children: [/* @__PURE__ */ m("input", {
|
|
323
|
-
value:
|
|
324
|
-
onChange: (e) =>
|
|
323
|
+
value: L.country,
|
|
324
|
+
onChange: (e) => R((t) => ({
|
|
325
325
|
...t,
|
|
326
326
|
country: e.target.value.toUpperCase()
|
|
327
327
|
})),
|
|
328
328
|
placeholder: "Country",
|
|
329
329
|
className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
330
330
|
}), /* @__PURE__ */ m("input", {
|
|
331
|
-
value:
|
|
332
|
-
onChange: (e) =>
|
|
331
|
+
value: L.currency,
|
|
332
|
+
onChange: (e) => R((t) => ({
|
|
333
333
|
...t,
|
|
334
334
|
currency: e.target.value.toUpperCase()
|
|
335
335
|
})),
|
|
@@ -338,18 +338,18 @@ var Fe = [
|
|
|
338
338
|
})]
|
|
339
339
|
}),
|
|
340
340
|
/* @__PURE__ */ m("input", {
|
|
341
|
-
value:
|
|
342
|
-
onChange: (e) =>
|
|
341
|
+
value: L.accountHolderName,
|
|
342
|
+
onChange: (e) => R((t) => ({
|
|
343
343
|
...t,
|
|
344
344
|
accountHolderName: e.target.value
|
|
345
345
|
})),
|
|
346
346
|
placeholder: "Account holder name",
|
|
347
347
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
348
348
|
}),
|
|
349
|
-
|
|
349
|
+
L.type === "BANK_ACCOUNT" ? /* @__PURE__ */ h(p, { children: [
|
|
350
350
|
/* @__PURE__ */ m("input", {
|
|
351
|
-
value:
|
|
352
|
-
onChange: (e) =>
|
|
351
|
+
value: L.bankName,
|
|
352
|
+
onChange: (e) => R((t) => ({
|
|
353
353
|
...t,
|
|
354
354
|
bankName: e.target.value
|
|
355
355
|
})),
|
|
@@ -357,8 +357,8 @@ var Fe = [
|
|
|
357
357
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
358
358
|
}),
|
|
359
359
|
/* @__PURE__ */ m("input", {
|
|
360
|
-
value:
|
|
361
|
-
onChange: (e) =>
|
|
360
|
+
value: L.accountNumber,
|
|
361
|
+
onChange: (e) => R((t) => ({
|
|
362
362
|
...t,
|
|
363
363
|
accountNumber: e.target.value
|
|
364
364
|
})),
|
|
@@ -366,20 +366,20 @@ var Fe = [
|
|
|
366
366
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
367
367
|
}),
|
|
368
368
|
/* @__PURE__ */ m("input", {
|
|
369
|
-
value:
|
|
370
|
-
onChange: (e) =>
|
|
369
|
+
value: L.country === "IN" ? L.ifsc : L.routingNumber,
|
|
370
|
+
onChange: (e) => R((t) => t.country === "IN" ? {
|
|
371
371
|
...t,
|
|
372
372
|
ifsc: e.target.value
|
|
373
373
|
} : {
|
|
374
374
|
...t,
|
|
375
375
|
routingNumber: e.target.value
|
|
376
376
|
}),
|
|
377
|
-
placeholder:
|
|
377
|
+
placeholder: L.country === "IN" ? "IFSC" : "Routing number",
|
|
378
378
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
|
|
379
379
|
})
|
|
380
|
-
] }) :
|
|
381
|
-
value:
|
|
382
|
-
onChange: (e) =>
|
|
380
|
+
] }) : L.type === "UPI" ? /* @__PURE__ */ m("input", {
|
|
381
|
+
value: L.upiId,
|
|
382
|
+
onChange: (e) => R((t) => ({
|
|
383
383
|
...t,
|
|
384
384
|
upiId: e.target.value
|
|
385
385
|
})),
|
|
@@ -390,14 +390,14 @@ var Fe = [
|
|
|
390
390
|
}),
|
|
391
391
|
/* @__PURE__ */ h("button", {
|
|
392
392
|
type: "button",
|
|
393
|
-
onClick: () => void Z(
|
|
393
|
+
onClick: () => void Z(We),
|
|
394
394
|
className: "mt-4 inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text",
|
|
395
|
-
children: [/* @__PURE__ */ m(
|
|
395
|
+
children: [/* @__PURE__ */ m(Ne, { className: "size-4" }), U ? "Update payout account" : "Save payout account"]
|
|
396
396
|
}),
|
|
397
|
-
|
|
397
|
+
U ? /* @__PURE__ */ m("button", {
|
|
398
398
|
type: "button",
|
|
399
399
|
onClick: () => {
|
|
400
|
-
|
|
400
|
+
W(null), R({
|
|
401
401
|
label: "",
|
|
402
402
|
type: "BANK_ACCOUNT",
|
|
403
403
|
providerPreference: "AUTO",
|
|
@@ -429,23 +429,23 @@ var Fe = [
|
|
|
429
429
|
type: "button",
|
|
430
430
|
onClick: () => void X(),
|
|
431
431
|
className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary",
|
|
432
|
-
children: [/* @__PURE__ */ m(
|
|
432
|
+
children: [/* @__PURE__ */ m(Pe, { className: "size-4" }), "Refresh"]
|
|
433
433
|
})]
|
|
434
434
|
}),
|
|
435
435
|
g ? /* @__PURE__ */ h("div", {
|
|
436
436
|
className: "space-y-2 text-sm text-text-secondary",
|
|
437
437
|
role: "note",
|
|
438
438
|
children: [/* @__PURE__ */ m("p", { children: "Developer revenue is withdrawn from Developer, then Revenue. Approval adds the amount to your earned credits." }), /* @__PURE__ */ m("p", { children: "Earned credits are withdrawn as cash from Withdraw credits." })]
|
|
439
|
-
}) : M.length === 0 && !
|
|
439
|
+
}) : M.length === 0 && !N ? /* @__PURE__ */ m(u, {
|
|
440
440
|
illustration: "empty-generic",
|
|
441
441
|
title: "No payout accounts yet",
|
|
442
442
|
description: "Add a payout account before requesting a withdrawal."
|
|
443
443
|
}) : /* @__PURE__ */ h("div", {
|
|
444
444
|
className: "space-y-3",
|
|
445
445
|
children: [
|
|
446
|
-
/* @__PURE__ */ h(
|
|
447
|
-
value:
|
|
448
|
-
onChange: (e) =>
|
|
446
|
+
/* @__PURE__ */ h(f, {
|
|
447
|
+
value: V,
|
|
448
|
+
onChange: (e) => H(e.target.value),
|
|
449
449
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
|
|
450
450
|
children: [qe ? null : /* @__PURE__ */ m("option", {
|
|
451
451
|
value: "",
|
|
@@ -470,8 +470,8 @@ var Fe = [
|
|
|
470
470
|
/* @__PURE__ */ h("label", {
|
|
471
471
|
className: "block space-y-1 text-sm font-medium text-text-primary",
|
|
472
472
|
children: [/* @__PURE__ */ m("span", { children: "Amount" }), /* @__PURE__ */ m("input", {
|
|
473
|
-
value:
|
|
474
|
-
onChange: (e) =>
|
|
473
|
+
value: z,
|
|
474
|
+
onChange: (e) => B(e.target.value),
|
|
475
475
|
inputMode: "decimal",
|
|
476
476
|
placeholder: "0.00",
|
|
477
477
|
className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-normal text-text-primary"
|
|
@@ -480,11 +480,11 @@ var Fe = [
|
|
|
480
480
|
/* @__PURE__ */ h("button", {
|
|
481
481
|
type: "button",
|
|
482
482
|
onClick: () => {
|
|
483
|
-
g ? (b(null), S(null), E(null), v(!0)) :
|
|
483
|
+
g ? (b(null), S(null), E(null), v(!0)) : Je();
|
|
484
484
|
},
|
|
485
|
-
disabled:
|
|
485
|
+
disabled: !$ || !a($),
|
|
486
486
|
className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text disabled:cursor-not-allowed disabled:opacity-50",
|
|
487
|
-
children: [/* @__PURE__ */ m(
|
|
487
|
+
children: [/* @__PURE__ */ m(Fe, { className: "size-4" }), "Request payout"]
|
|
488
488
|
})
|
|
489
489
|
]
|
|
490
490
|
}),
|
|
@@ -506,7 +506,7 @@ var Fe = [
|
|
|
506
506
|
}),
|
|
507
507
|
t.isDefault ? null : /* @__PURE__ */ m("button", {
|
|
508
508
|
type: "button",
|
|
509
|
-
onClick: () => void Z(() =>
|
|
509
|
+
onClick: () => void Z(() => Q(t.id)),
|
|
510
510
|
className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary",
|
|
511
511
|
children: _("billing.payouts.makeDefault", "Make default")
|
|
512
512
|
}),
|
|
@@ -558,7 +558,7 @@ var Fe = [
|
|
|
558
558
|
}),
|
|
559
559
|
e.isDefault ? null : /* @__PURE__ */ m("button", {
|
|
560
560
|
type: "button",
|
|
561
|
-
onClick: () => void Z(() =>
|
|
561
|
+
onClick: () => void Z(() => Q(e.id)),
|
|
562
562
|
className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary",
|
|
563
563
|
children: "Make default"
|
|
564
564
|
}),
|
|
@@ -579,26 +579,26 @@ var Fe = [
|
|
|
579
579
|
children: [/* @__PURE__ */ m("h2", {
|
|
580
580
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
581
581
|
children: "Payout requests"
|
|
582
|
-
}),
|
|
582
|
+
}), He.length === 0 && !N ? /* @__PURE__ */ m(u, {
|
|
583
583
|
illustration: "empty-data",
|
|
584
584
|
title: "No payout requests yet",
|
|
585
585
|
description: "Your payout requests and processing updates will appear here."
|
|
586
|
-
}) : /* @__PURE__ */ m(
|
|
587
|
-
data:
|
|
586
|
+
}) : /* @__PURE__ */ m(Me, {
|
|
587
|
+
data: He,
|
|
588
588
|
rowKey: (e) => e.id,
|
|
589
|
-
columns:
|
|
589
|
+
columns: Ie
|
|
590
590
|
})]
|
|
591
591
|
})]
|
|
592
592
|
})]
|
|
593
593
|
}),
|
|
594
|
-
/* @__PURE__ */ m(
|
|
595
|
-
open:
|
|
594
|
+
/* @__PURE__ */ m(Ce, {
|
|
595
|
+
open: G !== null,
|
|
596
596
|
onOpenChange: (e) => {
|
|
597
597
|
e || K(null);
|
|
598
598
|
},
|
|
599
|
-
children: /* @__PURE__ */ h(
|
|
599
|
+
children: /* @__PURE__ */ h(Ee, { children: [/* @__PURE__ */ h(ke, { children: [/* @__PURE__ */ m(Ae, { children: "Archive payout account?" }), /* @__PURE__ */ m(De, { children: "Archive this payout account? You can add a new one at any time." })] }), /* @__PURE__ */ h(Oe, { children: [/* @__PURE__ */ m(Te, { children: "Cancel" }), /* @__PURE__ */ m(we, {
|
|
600
600
|
onClick: () => {
|
|
601
|
-
let e =
|
|
601
|
+
let e = G;
|
|
602
602
|
K(null), e && Z(() => Ge(e));
|
|
603
603
|
},
|
|
604
604
|
children: "Archive"
|