@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.
Files changed (62) hide show
  1. package/dist/billing/modules/addons/pages/AddonCreatePage.js +143 -143
  2. package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonEditPage.js +170 -170
  4. package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
  5. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +148 -148
  6. package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
  7. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +115 -115
  8. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js.map +1 -1
  9. package/dist/billing/modules/billing/pages/InvoicesListPage.js +136 -136
  10. package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
  11. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +129 -129
  12. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js.map +1 -1
  13. package/dist/billing/modules/billing/pages/RefundsPage.js +325 -325
  14. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  15. package/dist/billing/modules/billing/pages/UserRefundsPage.js +149 -149
  16. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  17. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js +99 -98
  18. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
  19. package/dist/billing/modules/checkout/components/StoreShippingSection.js +125 -124
  20. package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
  21. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +61 -60
  22. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
  23. package/dist/billing/modules/coupons/pages/CouponsListPage.js +177 -177
  24. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  25. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +231 -231
  26. package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
  27. package/dist/billing/modules/coupons/pages/EditCouponPage.js +139 -139
  28. package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
  29. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +54 -54
  30. package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
  31. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +65 -65
  32. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  33. package/dist/billing/modules/credits/pages/CreditsPage.js +95 -95
  34. package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
  35. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +232 -231
  36. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
  37. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +328 -328
  38. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  39. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +57 -57
  40. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  41. package/dist/billing/modules/earnings/pages/EarningsPage.js +53 -53
  42. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  43. package/dist/billing/modules/earnings/pages/PayoutsPage.js +100 -100
  44. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  45. package/dist/billing/modules/plans/pages/PlanCreatePage.js +150 -150
  46. package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
  47. package/dist/billing/modules/plans/pages/PlanEditPage.js +125 -125
  48. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  49. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +113 -113
  50. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
  51. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +132 -132
  52. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
  53. package/dist/billing/modules/settings/pages/SettingsPage.js +101 -101
  54. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  55. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +125 -125
  56. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  57. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js +51 -50
  58. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.js.map +1 -1
  59. package/dist/billing/modules/usage/pages/UsagePage.js +107 -107
  60. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  61. package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
  62. 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 c, rawErrorText as l } from "../utils/plainPayoutError.js";
21
- import { useCallback as ye, useEffect as be, useMemo as xe, useState as u } from "react";
22
- import { AlertDialog as Se, AlertDialogAction as Ce, AlertDialogCancel as we, AlertDialogContent as Te, AlertDialogDescription as Ee, AlertDialogFooter as De, AlertDialogHeader as Oe, AlertDialogTitle as ke, IllustratedEmptyState as d, PagePurpose as Ae, ResponsiveTable as je, ShowTechnicalDetails as f } from "@burdenoff/fe-libs/ui";
23
- import { Landmark as Me, RefreshCw as Ne, Send as Pe } from "lucide-react";
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 Fe = [
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(), [Ie, v] = u(!1), [Le, y] = u(!1), [Re, b] = u(null), [x, S] = u(null), [C, w] = u(null), [T, E] = u(null), { emit: D } = ae(), { apiGatewayUrl: O, authToken: k, orgId: A } = oe(), { data: ze } = se({}), j = ze?.getDefaultBillingAccount?.id, [M, Be] = u([]), [N, Ve] = u([]), [P, F] = u(!0), [I, L] = u(null), [R, z] = u({
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
- }), [B, V] = u(""), [H, U] = u(""), [W, G] = u(null), [He, K] = u(null), [q, J] = u(null), Y = xe(() => ({
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 = ye(async () => {
77
+ ]), X = be(async () => {
78
78
  if (j) {
79
- F(!0), L(null);
79
+ P(!0), I(null);
80
80
  try {
81
81
  let [e, t] = await Promise.all([ue(j, Y), de(j, Y)]);
82
- Be(e), Ve(t), U((t) => ge(e, t));
82
+ Ve(e), Ue(t), H((t) => ge(e, t));
83
83
  } catch (e) {
84
- L(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load payout data"));
84
+ I(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load payout data"));
85
85
  } finally {
86
- F(!1);
86
+ P(!1);
87
87
  }
88
88
  }
89
89
  }, [j, Y]);
90
- if (be(() => {
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 (I && i(I)) {
93
+ if (F && i(F)) {
94
94
  let e = /* @__PURE__ */ m(ne, {
95
95
  title: "Payout data unavailable",
96
- message: g ? c(I, _) : I.message,
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(f, {
102
+ children: /* @__PURE__ */ m(d, {
103
103
  copyable: !0,
104
- children: l(I)
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
- }, Ue = async () => {
116
+ }, We = async () => {
117
117
  if (!j) return;
118
118
  J(null);
119
119
  let e = {
120
120
  billingAccountId: j,
121
- ...R
121
+ ...L
122
122
  };
123
- if (W) await me(W, e, Y), D("billing.payout_account.updated", {
123
+ if (U) await me(U, e, Y), D("billing.payout_account.updated", {
124
124
  route: "/billing/payouts",
125
- entityId: W,
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
- z({
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
- }), G(null), await X();
149
- }, We = async (e) => {
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), G(e.id), z((t) => ({
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
- }, Q = M.find((e) => e.id === H), qe = M.some(a), $ = async () => {
173
- j && H && B && Q && a(Q) && (await fe({
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: H,
176
- amount: Number(B),
177
- currency: Q.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: H,
180
+ entityId: V,
181
181
  source: "payouts",
182
- amount: Number(B),
183
- currency: Q.currency
184
- }), V(""), await X());
185
- }, Je = async () => {
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 $(), v(!1), E({
188
+ await Je(), v(!1), E({
189
189
  ok: !0,
190
- message: `Payout of ${n(Number(B), Q?.currency ?? "")} requested. We'll show its status below.`
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(c(e, _));
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: Ie,
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(B), Q?.currency ?? "")
208
+ value: n(Number(z), $?.currency ?? "")
209
209
  },
210
210
  {
211
211
  label: "Paid to",
212
- value: Q ? `${Q.label} · ${Q.currency}` : ""
212
+ value: $ ? `${$.label} · ${$.currency}` : ""
213
213
  },
214
- ...x && l(x) ? [{
214
+ ...x && c(x) ? [{
215
215
  label: _("billing.payoutError.technical", "Technical details"),
216
- value: /* @__PURE__ */ m(f, {
216
+ value: /* @__PURE__ */ m(d, {
217
217
  copyable: !0,
218
- children: l(x)
218
+ children: c(x)
219
219
  })
220
220
  }] : []
221
221
  ],
222
222
  confirmLabel: "Request payout",
223
223
  busyLabel: "Requesting…",
224
- isBusy: Le,
225
- error: Re,
226
- onConfirm: () => void Je(),
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(Ae, { 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." }),
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
- I && !i(I) ? g ? /* @__PURE__ */ m(s, { error: I }) : /* @__PURE__ */ m("div", {
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: I.message
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: W ? "Edit payout account" : "Add payout account"
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: R.label,
263
- onChange: (e) => z((t) => ({
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("select", {
273
- value: R.type,
274
- onChange: (e) => z((t) => ({
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("select", {
294
- value: R.providerPreference,
295
- onChange: (e) => z((t) => ({
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: R.country,
324
- onChange: (e) => z((t) => ({
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: R.currency,
332
- onChange: (e) => z((t) => ({
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: R.accountHolderName,
342
- onChange: (e) => z((t) => ({
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
- R.type === "BANK_ACCOUNT" ? /* @__PURE__ */ h(p, { children: [
349
+ L.type === "BANK_ACCOUNT" ? /* @__PURE__ */ h(p, { children: [
350
350
  /* @__PURE__ */ m("input", {
351
- value: R.bankName,
352
- onChange: (e) => z((t) => ({
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: R.accountNumber,
361
- onChange: (e) => z((t) => ({
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: R.country === "IN" ? R.ifsc : R.routingNumber,
370
- onChange: (e) => z((t) => t.country === "IN" ? {
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: R.country === "IN" ? "IFSC" : "Routing number",
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
- ] }) : R.type === "UPI" ? /* @__PURE__ */ m("input", {
381
- value: R.upiId,
382
- onChange: (e) => z((t) => ({
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(Ue),
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(Me, { className: "size-4" }), W ? "Update payout account" : "Save payout account"]
395
+ children: [/* @__PURE__ */ m(Ne, { className: "size-4" }), U ? "Update payout account" : "Save payout account"]
396
396
  }),
397
- W ? /* @__PURE__ */ m("button", {
397
+ U ? /* @__PURE__ */ m("button", {
398
398
  type: "button",
399
399
  onClick: () => {
400
- G(null), z({
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(Ne, { className: "size-4" }), "Refresh"]
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 && !P ? /* @__PURE__ */ m(d, {
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("select", {
447
- value: H,
448
- onChange: (e) => U(e.target.value),
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: B,
474
- onChange: (e) => V(e.target.value),
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: !Q || !a(Q),
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(Pe, { className: "size-4" }), "Request payout"]
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(() => We(t.id)),
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(() => We(e.id)),
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
- }), N.length === 0 && !P ? /* @__PURE__ */ m(d, {
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(je, {
587
- data: N,
586
+ }) : /* @__PURE__ */ m(Me, {
587
+ data: He,
588
588
  rowKey: (e) => e.id,
589
- columns: Fe
589
+ columns: Ie
590
590
  })]
591
591
  })]
592
592
  })]
593
593
  }),
594
- /* @__PURE__ */ m(Se, {
595
- open: He !== null,
594
+ /* @__PURE__ */ m(Ce, {
595
+ open: G !== null,
596
596
  onOpenChange: (e) => {
597
597
  e || K(null);
598
598
  },
599
- children: /* @__PURE__ */ h(Te, { children: [/* @__PURE__ */ h(Oe, { children: [/* @__PURE__ */ m(ke, { children: "Archive payout account?" }), /* @__PURE__ */ m(Ee, { children: "Archive this payout account? You can add a new one at any time." })] }), /* @__PURE__ */ h(De, { children: [/* @__PURE__ */ m(we, { children: "Cancel" }), /* @__PURE__ */ m(Ce, {
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 = He;
601
+ let e = G;
602
602
  K(null), e && Z(() => Ge(e));
603
603
  },
604
604
  children: "Archive"