@burdenoff/microfe-billing 2026.1113.2 → 2026.1113.4

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 (118) hide show
  1. package/dist/billing/BillingRoot.js +83 -77
  2. package/dist/billing/BillingRoot.js.map +1 -1
  3. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +78 -78
  4. package/dist/billing/modules/addons/pages/AddonCreatePage.js +70 -70
  5. package/dist/billing/modules/addons/pages/AddonDetailPage.js +72 -72
  6. package/dist/billing/modules/addons/pages/AddonEditPage.js +79 -79
  7. package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +224 -224
  8. package/dist/billing/modules/addons/pages/AddonsListPage.js +186 -186
  9. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +168 -168
  10. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
  11. package/dist/billing/modules/analytics/pages/AnalyticsPage.js +88 -88
  12. package/dist/billing/modules/billing/hooks/index.js +5 -5
  13. package/dist/billing/modules/billing/hooks/useInvoices.js +39 -20
  14. package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
  15. package/dist/billing/modules/billing/index.js +14 -14
  16. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.js +92 -92
  17. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +160 -160
  18. package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
  19. package/dist/billing/modules/billing/pages/InvoicesListPage.js +100 -100
  20. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.js +105 -105
  21. package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +37 -37
  22. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +41 -41
  23. package/dist/billing/modules/billing/pages/RefundsPage.js +334 -334
  24. package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
  25. package/dist/billing/modules/billing/pages/TransactionsPage.js +174 -174
  26. package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
  27. package/dist/billing/modules/billing/pages/UserRefundsPage.js +24 -24
  28. package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
  29. package/dist/billing/modules/checkout/components/OrderSummary.js +71 -71
  30. package/dist/billing/modules/checkout/pages/CheckoutPage.js +646 -625
  31. package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
  32. package/dist/billing/modules/checkout/utils/checkoutOptions.d.ts +23 -0
  33. package/dist/billing/modules/checkout/utils/checkoutOptions.js +8 -0
  34. package/dist/billing/modules/checkout/utils/checkoutOptions.js.map +1 -0
  35. package/dist/billing/modules/coupons/pages/CouponDetailPage.js +112 -112
  36. package/dist/billing/modules/coupons/pages/CouponsListPage.js +118 -118
  37. package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
  38. package/dist/billing/modules/coupons/pages/CreateCouponPage.js +119 -119
  39. package/dist/billing/modules/coupons/pages/EditCouponPage.js +82 -82
  40. package/dist/billing/modules/credits/pages/AdminCreditsPage.js +30 -30
  41. package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +77 -77
  42. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +187 -164
  43. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
  44. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  46. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  49. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  51. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  52. package/dist/billing/modules/earnings/components/PayoutDestinationList.d.ts +15 -0
  53. package/dist/billing/modules/earnings/components/PayoutDestinationList.js +66 -0
  54. package/dist/billing/modules/earnings/components/PayoutDestinationList.js.map +1 -0
  55. package/dist/billing/modules/earnings/components/PayoutErrorNotice.d.ts +7 -0
  56. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js +19 -0
  57. package/dist/billing/modules/earnings/components/PayoutErrorNotice.js.map +1 -0
  58. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  59. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  60. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  61. package/dist/billing/modules/earnings/pages/EarningsPage.js +123 -110
  62. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  63. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  64. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  65. package/dist/billing/modules/earnings/pages/PayoutsPage.js +215 -157
  66. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  67. package/dist/billing/modules/earnings/utils/payoutDestination.d.ts +20 -0
  68. package/dist/billing/modules/earnings/utils/payoutDestination.js +27 -0
  69. package/dist/billing/modules/earnings/utils/payoutDestination.js.map +1 -0
  70. package/dist/billing/modules/earnings/utils/plainPayoutError.d.ts +10 -0
  71. package/dist/billing/modules/earnings/utils/plainPayoutError.js +50 -0
  72. package/dist/billing/modules/earnings/utils/plainPayoutError.js.map +1 -0
  73. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  74. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  75. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  76. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  77. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  78. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  79. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +100 -100
  80. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  81. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  82. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  83. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  84. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  85. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  86. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  87. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  88. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  89. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  90. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  91. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  92. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  93. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  94. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  95. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  96. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  97. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  98. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  99. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  100. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  101. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  102. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  103. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  104. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  105. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  106. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  107. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  108. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  109. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  110. package/dist/billing/shared/components/EmptyState.js +3 -3
  111. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  112. package/dist/billing/shared/ui/MetricCard.js +13 -13
  113. package/dist/billing/shared/utils/format.js +16 -4
  114. package/dist/billing/shared/utils/format.js.map +1 -1
  115. package/dist/billing/shared/utils/index.js +8 -8
  116. package/dist/generated/global-operations.js +294 -286
  117. package/dist/generated/global-operations.js.map +1 -1
  118. package/package.json +2 -2
@@ -1,43 +1,48 @@
1
1
  import { CreditWithdrawalHistoryDocument as e, GetCreditBalanceByTypeDocument as t, RequestCreditWithdrawalDocument as n, useGetCostOfCreditsCheckoutQuery as r } from "../../../../generated/global-operations.js";
2
2
  import { useBillingPermissions as i } from "../../../hooks/useBillingPermissions.js";
3
- import { MoneyActionDialog as ee } from "../../../shared/components/MoneyActionDialog.js";
4
- import { useBillingEventEmitter as te } from "../../../hooks/useBillingEventEmitter.js";
3
+ import { useBillingEventEmitter as ee } from "../../../hooks/useBillingEventEmitter.js";
4
+ import { MoneyActionDialog as te } from "../../../shared/components/MoneyActionDialog.js";
5
5
  import { useBilling as ne } from "../../../providers/BillingProvider.js";
6
6
  import { useIsFluidgridsVariant as re } from "../../../hooks/useBillingVariant.js";
7
- import { directBillingGraphqlRequest as a } from "../../../shared/utils/directBillingGraphql.js";
8
7
  import "../../../shared/components/index.js";
8
+ import { directBillingGraphqlRequest as a } from "../../../shared/utils/directBillingGraphql.js";
9
9
  import "../../subscriptions/hooks/index.js";
10
10
  import "../../../shared/utils/index.js";
11
11
  import { addPayoutAccount as ie, fetchPayoutAccounts as ae } from "../../earnings/api.js";
12
- import { useBillingAccount as oe, useBillingAccounts as se, useDefaultBillingAccount as ce } from "../../subscriptions/hooks/useSubscriptions.js";
13
- import { formatDate as o, formatRelativeTime as le } from "../../../shared/utils/format.js";
14
- import { statusTokens as s } from "../../../shared/utils/tokens.js";
12
+ import { formatDate as oe, formatRelativeTime as se } from "../../../shared/utils/format.js";
13
+ import { useBillingAccount as ce, useBillingAccounts as le, useDefaultBillingAccount as ue } from "../../subscriptions/hooks/useSubscriptions.js";
14
+ import { statusTokens as o } from "../../../shared/utils/tokens.js";
15
+ import { useTr as de } from "../../../shared/hooks/useTr.js";
16
+ import { PayoutDestinationList as fe } from "../../earnings/components/PayoutDestinationList.js";
17
+ import { PayoutErrorNotice as s } from "../../earnings/components/PayoutErrorNotice.js";
18
+ import { toPayoutDestinations as pe } from "../../earnings/utils/payoutDestination.js";
19
+ import { plainPayoutError as me, rawErrorText as he } from "../../earnings/utils/plainPayoutError.js";
15
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";
16
22
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
17
- import { EmphasisPanel as p, IllustratedEmptyState as m, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
18
23
  // src/billing/modules/credits/pages/CreditWithdrawalPage.tsx
19
- async function de(e, n) {
24
+ async function be(e, n) {
20
25
  return (await a({
21
26
  ...n,
22
27
  query: t,
23
28
  variables: { billingAccountId: e }
24
29
  })).getCreditBalanceByType;
25
30
  }
26
- async function fe(e, t) {
31
+ async function xe(e, t) {
27
32
  return (await a({
28
33
  ...t,
29
34
  query: n,
30
35
  variables: { input: e }
31
36
  })).requestCreditWithdrawal;
32
37
  }
33
- async function pe(t, n) {
38
+ async function Se(t, n) {
34
39
  return (await a({
35
40
  ...n,
36
41
  query: e,
37
42
  variables: { billingAccountId: t }
38
43
  })).myPayoutRequests.items;
39
44
  }
40
- var h = ({ label: e, value: t, description: n, highlight: r }) => {
45
+ var p = ({ label: e, value: t, description: n, highlight: r }) => {
41
46
  let i = /* @__PURE__ */ f(u, { children: [
42
47
  /* @__PURE__ */ d("p", {
43
48
  className: "text-sm text-text-secondary",
@@ -59,7 +64,7 @@ var h = ({ label: e, value: t, description: n, highlight: r }) => {
59
64
  children: n
60
65
  })
61
66
  ] });
62
- return r ? /* @__PURE__ */ d(p, {
67
+ return r ? /* @__PURE__ */ d(ge, {
63
68
  className: "p-5",
64
69
  children: i
65
70
  }) : /* @__PURE__ */ d("div", {
@@ -67,36 +72,36 @@ var h = ({ label: e, value: t, description: n, highlight: r }) => {
67
72
  children: i
68
73
  });
69
74
  };
70
- function me(e) {
75
+ function Ce(e) {
71
76
  switch (e.toUpperCase()) {
72
- case "PAID": return s.success.text;
77
+ case "PAID": return o.success.text;
73
78
  case "APPROVED":
74
- case "PROCESSING": return s.info.text;
75
- case "REQUESTED": return s.warning.text;
79
+ case "PROCESSING": return o.info.text;
80
+ case "REQUESTED": return o.warning.text;
76
81
  case "REJECTED":
77
82
  case "FAILED":
78
- case "CANCELED": return s.error.text;
83
+ case "CANCELED": return o.error.text;
79
84
  default: return "text-text-secondary";
80
85
  }
81
86
  }
82
- function he(e) {
87
+ function we(e) {
83
88
  switch (e.toUpperCase()) {
84
- case "PAID": return `${s.success.bg} ${s.success.text}`;
89
+ case "PAID": return `${o.success.bg} ${o.success.text}`;
85
90
  case "APPROVED":
86
- case "PROCESSING": return `${s.info.bg} ${s.info.text}`;
87
- case "REQUESTED": return `${s.warning.bg} ${s.warning.text}`;
91
+ case "PROCESSING": return `${o.info.bg} ${o.info.text}`;
92
+ case "REQUESTED": return `${o.warning.bg} ${o.warning.text}`;
88
93
  case "REJECTED":
89
94
  case "FAILED":
90
- case "CANCELED": return `${s.error.bg} ${s.error.text}`;
95
+ case "CANCELED": return `${o.error.bg} ${o.error.text}`;
91
96
  default: return "bg-bg-sunken text-text-secondary";
92
97
  }
93
98
  }
94
- var ge = () => {
95
- let e = i(), { billingAccounts: t } = se(), [n, a] = l(void 0), { billingAccount: p, isLoading: ge } = ce(), { billingAccount: _e, isLoading: ve } = oe(n), g = n ? _e : p, ye = n ? ve : ge, { apiGatewayUrl: be, authToken: xe, orgId: Se } = ne(), { emit: _ } = te(), [v, Ce] = l(null), [we, y] = l(!1), [b, x] = l(null), [Te, Ee] = l([]), [De, S] = l(!1), [C, Oe] = l([]), [ke, w] = l(!1), [T, E] = l(""), [D, O] = l(""), [k, A] = l(""), [j, M] = l(!1), [N, P] = l(null), [F, I] = l(!1), L = re(), [Ae, R] = l(!1);
99
+ var Te = () => {
100
+ let e = i(), { billingAccounts: t } = le(), [n, a] = l(void 0), { billingAccount: ge, isLoading: Te } = ue(), { billingAccount: Ee, isLoading: De } = ce(n), m = n ? Ee : ge, h = n ? De : Te, { apiGatewayUrl: Oe, authToken: ke, orgId: Ae } = ne(), { emit: g } = ee(), [_, je] = l(null), [Me, v] = l(!1), [y, b] = l(null), [Ne, Pe] = l([]), [Fe, x] = l(!1), [S, Ie] = l([]), [Le, C] = l(!1), [w, T] = l(""), [E, D] = l(""), [O, k] = l(""), [A, j] = l(!1), [M, N] = l(null), [P, F] = l(null), [Re, ze] = l(null), [Be, Ve] = l(null), [I, L] = l(!1), R = re(), He = de(), [Ue, z] = l(!1);
96
101
  c(() => {
97
- F && R(!1);
98
- }, [F]);
99
- let [z, B] = l(!1), [V, H] = l({
102
+ I && z(!1);
103
+ }, [I]);
104
+ let [B, V] = l(!1), [H, U] = l({
100
105
  label: "",
101
106
  type: "BANK_ACCOUNT",
102
107
  accountHolderName: "",
@@ -106,75 +111,75 @@ var ge = () => {
106
111
  upiId: "",
107
112
  country: "",
108
113
  currency: "USD"
109
- }), [U, je] = l(!1), [Me, Ne] = l(null), W = g?.id, G = () => ({
110
- apiGatewayUrl: be,
111
- authToken: xe,
112
- orgId: Se
113
- }), Pe = async () => {
114
+ }), [We, Ge] = l(!1), [Ke, qe] = l(null), W = m?.id, G = () => ({
115
+ apiGatewayUrl: Oe,
116
+ authToken: ke,
117
+ orgId: Ae
118
+ }), Je = async () => {
114
119
  if (W) {
115
- y(!0), x(null);
120
+ v(!0), b(null), ze(null);
116
121
  try {
117
- let e = await de(W, G());
118
- Ce(e);
122
+ let e = await be(W, G());
123
+ je(e);
119
124
  } catch (e) {
120
- x(e instanceof Error ? e.message : "Failed to load balance");
125
+ ze(e), b(e instanceof Error ? e.message : "Failed to load balance");
121
126
  } finally {
122
- y(!1);
127
+ v(!1);
123
128
  }
124
129
  }
125
130
  }, K = async () => {
126
131
  if (W) {
127
- S(!0);
132
+ x(!0);
128
133
  try {
129
134
  let e = await ae(W, G());
130
- Ee(e);
135
+ Pe(e);
131
136
  let t = e.find((e) => e.isDefault) ?? e[0];
132
- t && E(t.id);
137
+ t && T(t.id);
133
138
  } catch {} finally {
134
- S(!1);
139
+ x(!1);
135
140
  }
136
141
  }
137
142
  }, q = async () => {
138
143
  if (W) {
139
- w(!0);
144
+ C(!0);
140
145
  try {
141
- let e = await pe(W, G());
142
- Oe(e);
146
+ let e = await Se(W, G());
147
+ Ie(e);
143
148
  } catch {} finally {
144
- w(!1);
149
+ C(!1);
145
150
  }
146
151
  }
147
152
  };
148
153
  c(() => {
149
- W && (Pe(), K(), q());
154
+ W && (Je(), K(), q());
150
155
  }, [W]), c(() => {
151
- g?.currency && H((e) => ({
156
+ m?.currency && U((e) => ({
152
157
  ...e,
153
- currency: g.currency ?? "USD"
158
+ currency: m.currency ?? "USD"
154
159
  }));
155
- }, [g?.currency]);
156
- let Fe = async () => {
160
+ }, [m?.currency]);
161
+ let Ye = async () => {
157
162
  if (W) {
158
- Ne(null), je(!0);
163
+ qe(null), Ve(null), Ge(!0);
159
164
  try {
160
- let e = V.country.trim().toUpperCase() === "IN" || V.country.trim().toLowerCase() === "india";
165
+ let e = H.country.trim().toUpperCase() === "IN" || H.country.trim().toLowerCase() === "india";
161
166
  await ie({
162
167
  billingAccountId: W,
163
- label: V.label,
164
- type: V.type,
165
- accountHolderName: V.accountHolderName,
166
- country: V.country || void 0,
167
- currency: V.currency,
168
- ...V.type === "BANK_ACCOUNT" && {
169
- accountNumber: V.accountNumber,
170
- ...e ? { ifsc: V.ifscCode } : { routingNumber: V.routingNumber }
168
+ label: H.label,
169
+ type: H.type,
170
+ accountHolderName: H.accountHolderName,
171
+ country: H.country || void 0,
172
+ currency: H.currency,
173
+ ...H.type === "BANK_ACCOUNT" && {
174
+ accountNumber: H.accountNumber,
175
+ ...e ? { ifsc: H.ifscCode } : { routingNumber: H.routingNumber }
171
176
  },
172
- ...V.type === "UPI" && { upiId: V.upiId }
173
- }, G()), _("billing.payout_account.added", {
177
+ ...H.type === "UPI" && { upiId: H.upiId }
178
+ }, G()), g("billing.payout_account.added", {
174
179
  route: "/billing/credits/withdraw",
175
180
  entityId: W,
176
181
  source: "credit-withdrawal"
177
- }), await K(), B(!1), H({
182
+ }), await K(), V(!1), U({
178
183
  label: "",
179
184
  type: "BANK_ACCOUNT",
180
185
  accountHolderName: "",
@@ -186,42 +191,42 @@ var ge = () => {
186
191
  currency: "USD"
187
192
  });
188
193
  } catch (e) {
189
- Ne(e instanceof Error ? e.message : "Failed to add account");
194
+ Ve(e), qe(e instanceof Error ? e.message : "Failed to add account");
190
195
  } finally {
191
- je(!1);
196
+ Ge(!1);
192
197
  }
193
198
  }
194
- }, Ie = async () => {
195
- if (!W || !T) return;
196
- let e = parseFloat(D);
199
+ }, Xe = async () => {
200
+ if (!W || !w) return;
201
+ let e = parseFloat(E);
197
202
  if (!(!e || e <= 0)) {
198
- P(null), M(!0);
203
+ N(null), F(null), j(!0);
199
204
  try {
200
- let t = await fe({
205
+ let t = await xe({
201
206
  billingAccountId: W,
202
207
  creditAmount: e,
203
- payoutAccountId: T,
204
- notes: k || void 0
208
+ payoutAccountId: w,
209
+ notes: O || void 0
205
210
  }, G());
206
- _("billing.credits.withdrawal_requested", {
211
+ g("billing.credits.withdrawal_requested", {
207
212
  route: "/billing/credits/withdraw",
208
213
  entityId: t.id,
209
214
  source: "credit-withdrawal",
210
215
  amount: e
211
- }), I(!0), O(""), A(""), await Pe(), await q();
216
+ }), L(!0), D(""), k(""), await Je(), await q();
212
217
  } catch (e) {
213
- P(e instanceof Error ? e.message : "Withdrawal request failed");
218
+ F(e), N(e instanceof Error ? e.message : "Withdrawal request failed");
214
219
  } finally {
215
- M(!1);
220
+ j(!1);
216
221
  }
217
222
  }
218
- }, J = g?.currency ?? "USD", Y = parseFloat(D) || 0, { data: Le, loading: Re } = r({
223
+ }, J = m?.currency ?? "USD", Y = parseFloat(E) || 0, { data: Ze, loading: Qe } = r({
219
224
  variables: {
220
225
  creditAmount: Y,
221
226
  currency: J
222
227
  },
223
- skip: Y <= 0 || !g
224
- }), ze = Le?.getCostOfCredits?.amount;
228
+ skip: Y <= 0 || !m
229
+ }), $e = Ze?.getCostOfCredits?.amount;
225
230
  if (!e.canWithdrawCredits) return /* @__PURE__ */ d("div", {
226
231
  className: "flex items-center justify-center h-full min-h-[400px]",
227
232
  children: /* @__PURE__ */ f("div", {
@@ -253,7 +258,7 @@ var ge = () => {
253
258
  ]
254
259
  })
255
260
  });
256
- if (!ye && !g) return /* @__PURE__ */ d("div", {
261
+ if (!h && !m) return /* @__PURE__ */ d("div", {
257
262
  className: "flex items-center justify-center h-full min-h-[400px]",
258
263
  children: /* @__PURE__ */ f("div", {
259
264
  className: "text-center space-y-2",
@@ -266,7 +271,7 @@ var ge = () => {
266
271
  })]
267
272
  })
268
273
  });
269
- if (ye && !g) return /* @__PURE__ */ f("div", {
274
+ if (h && !m) return /* @__PURE__ */ f("div", {
270
275
  className: "space-y-6 px-6 lg:px-8 py-6",
271
276
  children: [/* @__PURE__ */ d("div", { className: "h-8 w-64 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ d("div", {
272
277
  className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
@@ -281,27 +286,37 @@ var ge = () => {
281
286
  }, e))
282
287
  })]
283
288
  });
284
- let X = v?.withdrawable ?? 0, Z = .005, Be = Y > 0 && Y <= X + Z, Q = Te.filter((e) => e.status !== "ARCHIVED"), $ = j ? null : Q.length === 0 ? "Add a payout method above before requesting a withdrawal." : T ? 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.";
289
+ let X = _?.withdrawable ?? 0, Z = .005, et = Y > 0 && Y <= X + Z, Q = Ne.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.";
285
290
  return /* @__PURE__ */ f("div", {
286
291
  className: "space-y-6 px-6 lg:px-8 py-6",
287
292
  children: [
288
- L && /* @__PURE__ */ d(ee, {
289
- open: Ae,
293
+ R && /* @__PURE__ */ d(te, {
294
+ open: Ue,
290
295
  title: "Review your withdrawal",
291
296
  description: "These credits are converted to a payout when you confirm.",
292
- details: [{
293
- label: "Credits",
294
- value: D
295
- }, {
296
- label: "Paid to",
297
- value: Q.find((e) => e.id === T)?.label ?? ""
298
- }],
297
+ details: [
298
+ {
299
+ label: "Credits",
300
+ value: E
301
+ },
302
+ {
303
+ label: "Paid to",
304
+ value: Q.find((e) => e.id === w)?.label ?? ""
305
+ },
306
+ ...P && he(P) ? [{
307
+ label: He("billing.payoutError.technical", "Technical details"),
308
+ value: /* @__PURE__ */ d(ye, {
309
+ copyable: !0,
310
+ children: he(P)
311
+ })
312
+ }] : []
313
+ ],
299
314
  confirmLabel: "Request withdrawal",
300
315
  busyLabel: "Requesting…",
301
- isBusy: j,
302
- error: N,
303
- onConfirm: () => void Ie(),
304
- onCancel: () => R(!1)
316
+ isBusy: A,
317
+ error: M ? me(P, He) : null,
318
+ onConfirm: () => void Xe(),
319
+ onCancel: () => z(!1)
305
320
  }),
306
321
  /* @__PURE__ */ f("div", {
307
322
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
@@ -314,12 +329,12 @@ var ge = () => {
314
329
  className: "text-sm text-text-secondary mt-1",
315
330
  children: "Convert your withdrawable credits (purchased & earned) to a payout"
316
331
  }),
317
- /* @__PURE__ */ d(ue, {
332
+ /* @__PURE__ */ d(ve, {
318
333
  className: "mt-3",
319
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."
320
335
  })
321
336
  ] }), t.length > 1 && /* @__PURE__ */ d("select", {
322
- value: g?.id ?? "",
337
+ value: m?.id ?? "",
323
338
  onChange: (e) => a(e.target.value),
324
339
  "aria-label": "Switch billing account",
325
340
  className: "px-3 py-2 text-sm border border-border-subtle rounded-input bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] w-full sm:min-w-[200px] sm:w-auto",
@@ -331,7 +346,7 @@ var ge = () => {
331
346
  }),
332
347
  /* @__PURE__ */ d("div", {
333
348
  className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
334
- children: we ? [
349
+ children: Me ? [
335
350
  1,
336
351
  2,
337
352
  3,
@@ -339,26 +354,29 @@ var ge = () => {
339
354
  ].map((e) => /* @__PURE__ */ f("div", {
340
355
  className: "border border-border-subtle rounded-lg p-5",
341
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" })]
342
- }, e)) : b ? /* @__PURE__ */ d("div", {
357
+ }, e)) : y ? R ? /* @__PURE__ */ d(s, {
358
+ error: Re,
359
+ className: "col-span-4"
360
+ }) : /* @__PURE__ */ d("div", {
343
361
  className: "col-span-4 text-sm text-status-error-text",
344
- children: b
362
+ children: y
345
363
  }) : /* @__PURE__ */ f(u, { children: [
346
- /* @__PURE__ */ d(h, {
364
+ /* @__PURE__ */ d(p, {
347
365
  label: "Purchased",
348
- value: v?.purchased ?? 0,
366
+ value: _?.purchased ?? 0,
349
367
  description: "From credit purchases"
350
368
  }),
351
- /* @__PURE__ */ d(h, {
369
+ /* @__PURE__ */ d(p, {
352
370
  label: "Earned",
353
- value: v?.earned ?? 0,
371
+ value: _?.earned ?? 0,
354
372
  description: "From sales & referrals"
355
373
  }),
356
- /* @__PURE__ */ d(h, {
374
+ /* @__PURE__ */ d(p, {
357
375
  label: "Granted",
358
- value: v?.granted ?? 0,
376
+ value: _?.granted ?? 0,
359
377
  description: "Coupons & admin grants — non-withdrawable"
360
378
  }),
361
- /* @__PURE__ */ d(h, {
379
+ /* @__PURE__ */ d(p, {
362
380
  label: "Withdrawable",
363
381
  value: X,
364
382
  description: "Purchased + earned",
@@ -366,7 +384,7 @@ var ge = () => {
366
384
  })
367
385
  ] })
368
386
  }),
369
- F && /* @__PURE__ */ f("div", {
387
+ I && /* @__PURE__ */ f("div", {
370
388
  className: "flex items-center gap-3 p-4 rounded-lg bg-status-success-bg-subtle border border-status-success-border text-status-success-text",
371
389
  children: [
372
390
  /* @__PURE__ */ d("svg", {
@@ -390,7 +408,7 @@ var ge = () => {
390
408
  })] }),
391
409
  /* @__PURE__ */ d("button", {
392
410
  type: "button",
393
- onClick: () => I(!1),
411
+ onClick: () => L(!1),
394
412
  className: "ml-auto text-current opacity-60 hover:opacity-100",
395
413
  children: /* @__PURE__ */ d("svg", {
396
414
  className: "size-4",
@@ -419,12 +437,12 @@ var ge = () => {
419
437
  children: "Payout Account"
420
438
  }), /* @__PURE__ */ d("button", {
421
439
  type: "button",
422
- onClick: () => B((e) => !e),
440
+ onClick: () => V((e) => !e),
423
441
  className: "text-sm text-text-link hover:underline",
424
- children: z ? "Cancel" : "+ Add new"
442
+ children: B ? "Cancel" : "+ Add new"
425
443
  })]
426
444
  }),
427
- z && /* @__PURE__ */ f("div", {
445
+ B && /* @__PURE__ */ f("div", {
428
446
  className: "border border-border-subtle rounded-lg p-4 space-y-3 bg-bg-sunken",
429
447
  children: [
430
448
  /* @__PURE__ */ d("h3", {
@@ -436,8 +454,8 @@ var ge = () => {
436
454
  children: "Label"
437
455
  }), /* @__PURE__ */ d("input", {
438
456
  type: "text",
439
- value: V.label,
440
- onChange: (e) => H((t) => ({
457
+ value: H.label,
458
+ onChange: (e) => U((t) => ({
441
459
  ...t,
442
460
  label: e.target.value
443
461
  })),
@@ -449,8 +467,8 @@ var ge = () => {
449
467
  children: "Account Holder Name"
450
468
  }), /* @__PURE__ */ d("input", {
451
469
  type: "text",
452
- value: V.accountHolderName,
453
- onChange: (e) => H((t) => ({
470
+ value: H.accountHolderName,
471
+ onChange: (e) => U((t) => ({
454
472
  ...t,
455
473
  accountHolderName: e.target.value
456
474
  })),
@@ -463,8 +481,8 @@ var ge = () => {
463
481
  className: "block text-xs text-text-secondary mb-1",
464
482
  children: "Type"
465
483
  }), /* @__PURE__ */ f("select", {
466
- value: V.type,
467
- onChange: (e) => H((t) => ({
484
+ value: H.type,
485
+ onChange: (e) => U((t) => ({
468
486
  ...t,
469
487
  type: e.target.value
470
488
  })),
@@ -481,8 +499,8 @@ var ge = () => {
481
499
  children: "Country"
482
500
  }), /* @__PURE__ */ d("input", {
483
501
  type: "text",
484
- value: V.country,
485
- onChange: (e) => H((t) => ({
502
+ value: H.country,
503
+ onChange: (e) => U((t) => ({
486
504
  ...t,
487
505
  country: e.target.value
488
506
  })),
@@ -490,25 +508,25 @@ var ge = () => {
490
508
  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)]"
491
509
  })] })]
492
510
  }),
493
- V.type === "BANK_ACCOUNT" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
511
+ H.type === "BANK_ACCOUNT" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
494
512
  className: "block text-xs text-text-secondary mb-1",
495
513
  children: "Account Number"
496
514
  }), /* @__PURE__ */ d("input", {
497
515
  type: "text",
498
- value: V.accountNumber,
499
- onChange: (e) => H((t) => ({
516
+ value: H.accountNumber,
517
+ onChange: (e) => U((t) => ({
500
518
  ...t,
501
519
  accountNumber: e.target.value
502
520
  })),
503
521
  placeholder: "Account number",
504
522
  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)]"
505
- })] }), V.country.trim().toUpperCase() === "IN" || V.country.trim().toLowerCase() === "india" ? /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
523
+ })] }), H.country.trim().toUpperCase() === "IN" || H.country.trim().toLowerCase() === "india" ? /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
506
524
  className: "block text-xs text-text-secondary mb-1",
507
525
  children: "IFSC Code"
508
526
  }), /* @__PURE__ */ d("input", {
509
527
  type: "text",
510
- value: V.ifscCode,
511
- onChange: (e) => H((t) => ({
528
+ value: H.ifscCode,
529
+ onChange: (e) => U((t) => ({
512
530
  ...t,
513
531
  ifscCode: e.target.value.toUpperCase()
514
532
  })),
@@ -519,59 +537,63 @@ var ge = () => {
519
537
  children: "Routing Number"
520
538
  }), /* @__PURE__ */ d("input", {
521
539
  type: "text",
522
- value: V.routingNumber,
523
- onChange: (e) => H((t) => ({
540
+ value: H.routingNumber,
541
+ onChange: (e) => U((t) => ({
524
542
  ...t,
525
543
  routingNumber: e.target.value
526
544
  })),
527
545
  placeholder: "Routing / sort code",
528
546
  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)]"
529
547
  })] })] }),
530
- V.type === "UPI" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
548
+ H.type === "UPI" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
531
549
  className: "block text-xs text-text-secondary mb-1",
532
550
  children: "UPI ID"
533
551
  }), /* @__PURE__ */ d("input", {
534
552
  type: "text",
535
- value: V.upiId,
536
- onChange: (e) => H((t) => ({
553
+ value: H.upiId,
554
+ onChange: (e) => U((t) => ({
537
555
  ...t,
538
556
  upiId: e.target.value
539
557
  })),
540
558
  placeholder: "yourname@upi",
541
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)]"
542
560
  })] }),
543
- Me && /* @__PURE__ */ d("p", {
561
+ Ke && (R ? /* @__PURE__ */ d(s, { error: Be }) : /* @__PURE__ */ d("p", {
544
562
  className: "text-xs text-status-error-text",
545
- children: Me
546
- }),
563
+ children: Ke
564
+ })),
547
565
  /* @__PURE__ */ d("button", {
548
566
  type: "button",
549
- onClick: () => void Fe(),
550
- disabled: U || !V.label || !V.accountHolderName,
567
+ onClick: () => void Ye(),
568
+ disabled: We || !H.label || !H.accountHolderName,
551
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",
552
- children: U ? "Saving…" : "Save Account"
570
+ children: We ? "Saving…" : "Save Account"
553
571
  })
554
572
  ]
555
573
  }),
556
- De ? /* @__PURE__ */ d("div", {
574
+ Fe ? /* @__PURE__ */ d("div", {
557
575
  className: "space-y-2",
558
576
  children: [1, 2].map((e) => /* @__PURE__ */ d("div", { className: "h-16 border border-border-subtle rounded-lg bg-bg-sunken animate-pulse" }, e))
559
- }) : Q.length === 0 && !z ? /* @__PURE__ */ d(m, {
577
+ }) : Q.length === 0 && !B ? /* @__PURE__ */ d(_e, {
560
578
  illustration: "empty-generic",
561
579
  title: "No payout accounts yet",
562
580
  description: "Add a bank account or UPI to receive your withdrawn credits.",
563
581
  action: /* @__PURE__ */ d("button", {
564
582
  type: "button",
565
- onClick: () => B(!0),
583
+ onClick: () => V(!0),
566
584
  className: "px-4 py-2 text-sm font-medium bg-action-primary-bg text-action-primary-text rounded-button hover:bg-action-primary-bgHover transition-colors",
567
585
  children: "Add a bank account or UPI"
568
586
  })
587
+ }) : R ? /* @__PURE__ */ d(fe, {
588
+ destinations: pe(Q),
589
+ selectedId: w,
590
+ onSelect: T
569
591
  }) : /* @__PURE__ */ d("div", {
570
592
  className: "space-y-2",
571
593
  children: Q.map((e) => /* @__PURE__ */ d("button", {
572
594
  type: "button",
573
- onClick: () => E(e.id),
574
- className: `w-full text-left p-4 border rounded-lg transition-colors ${T === e.id ? "border-border-strong bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface hover:border-border-strong"}`,
595
+ onClick: () => T(e.id),
596
+ className: `w-full text-left p-4 border rounded-lg transition-colors ${w === e.id ? "border-border-strong bg-[var(--color-accent-soft)]" : "border-border-subtle bg-bg-surface hover:border-border-strong"}`,
575
597
  children: /* @__PURE__ */ f("div", {
576
598
  className: "flex items-center justify-between",
577
599
  children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
@@ -593,10 +615,10 @@ var ge = () => {
593
615
  children: "Default"
594
616
  }),
595
617
  /* @__PURE__ */ d("span", {
596
- className: `text-xs px-2 py-0.5 rounded font-medium ${e.status === "ACTIVE" ? `${s.success.bg} ${s.success.text}` : e.status === "PENDING_VERIFICATION" ? `${s.warning.bg} ${s.warning.text}` : `${s.error.bg} ${s.error.text}`}`,
618
+ className: `text-xs px-2 py-0.5 rounded font-medium ${e.status === "ACTIVE" ? `${o.success.bg} ${o.success.text}` : e.status === "PENDING_VERIFICATION" ? `${o.warning.bg} ${o.warning.text}` : `${o.error.bg} ${o.error.text}`}`,
597
619
  children: e.status.replaceAll("_", " ").toLowerCase()
598
620
  }),
599
- T === e.id && /* @__PURE__ */ d("svg", {
621
+ w === e.id && /* @__PURE__ */ d("svg", {
600
622
  className: "size-4 text-text-link shrink-0",
601
623
  fill: "none",
602
624
  viewBox: "0 0 24 24",
@@ -632,8 +654,8 @@ var ge = () => {
632
654
  min: 1,
633
655
  max: X,
634
656
  step: 1,
635
- value: D,
636
- onChange: (e) => O(e.target.value),
657
+ value: E,
658
+ onChange: (e) => D(e.target.value),
637
659
  placeholder: "Enter credit amount",
638
660
  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)]"
639
661
  }),
@@ -650,12 +672,12 @@ var ge = () => {
650
672
  }),
651
673
  Y > 0 && Y <= X + Z && /* @__PURE__ */ d("p", {
652
674
  className: "text-xs text-text-secondary mt-1",
653
- children: Re ? "Calculating…" : ze == null ? null : /* @__PURE__ */ f(u, { children: [
675
+ children: Qe ? "Calculating…" : $e == null ? null : /* @__PURE__ */ f(u, { children: [
654
676
  "Estimated payout:",
655
677
  " ",
656
678
  /* @__PURE__ */ d("span", {
657
679
  className: "font-semibold text-text-primary",
658
- children: ze.toLocaleString(void 0, {
680
+ children: $e.toLocaleString(void 0, {
659
681
  style: "currency",
660
682
  currency: J,
661
683
  minimumFractionDigits: 2,
@@ -678,17 +700,18 @@ var ge = () => {
678
700
  children: "(optional)"
679
701
  })]
680
702
  }), /* @__PURE__ */ d("textarea", {
681
- value: k,
682
- onChange: (e) => A(e.target.value),
703
+ value: O,
704
+ onChange: (e) => k(e.target.value),
683
705
  placeholder: "Any notes for this withdrawal request",
684
706
  rows: 2,
685
707
  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)] resize-none"
686
708
  })] }),
687
- N && /* @__PURE__ */ d("div", {
709
+ M && R && /* @__PURE__ */ d(s, { error: P }),
710
+ M && !R && /* @__PURE__ */ d("div", {
688
711
  className: "p-3 rounded-button bg-status-error-bg-subtle border border-status-error-border",
689
712
  children: /* @__PURE__ */ d("p", {
690
713
  className: "text-sm text-status-error-text",
691
- children: N
714
+ children: M
692
715
  })
693
716
  }),
694
717
  /* @__PURE__ */ f("div", {
@@ -709,11 +732,11 @@ var ge = () => {
709
732
  /* @__PURE__ */ d("button", {
710
733
  type: "button",
711
734
  onClick: () => {
712
- L ? (P(null), I(!1), R(!0)) : Ie();
735
+ R ? (N(null), L(!1), z(!0)) : Xe();
713
736
  },
714
- disabled: j || !Be || !T || Q.length === 0,
737
+ disabled: A || !et || !w || Q.length === 0,
715
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",
716
- children: j ? "Submitting…" : "Request Withdrawal"
739
+ children: A ? "Submitting…" : "Request Withdrawal"
717
740
  })
718
741
  ]
719
742
  })
@@ -746,14 +769,14 @@ var ge = () => {
746
769
  })
747
770
  })
748
771
  })]
749
- }), ke ? /* @__PURE__ */ d("div", {
772
+ }), Le ? /* @__PURE__ */ d("div", {
750
773
  className: "space-y-2",
751
774
  children: [
752
775
  1,
753
776
  2,
754
777
  3
755
778
  ].map((e) => /* @__PURE__ */ d("div", { className: "h-16 border border-border-subtle rounded-lg bg-bg-sunken animate-pulse" }, e))
756
- }) : C.length === 0 ? /* @__PURE__ */ d(m, {
779
+ }) : S.length === 0 ? /* @__PURE__ */ d(_e, {
757
780
  illustration: "empty-data",
758
781
  title: "No withdrawal requests yet",
759
782
  description: "Once you request a withdrawal, its status will appear here."
@@ -787,7 +810,7 @@ var ge = () => {
787
810
  ] })
788
811
  }), /* @__PURE__ */ d("tbody", {
789
812
  className: "divide-y divide-border-subtle",
790
- children: C.map((e) => /* @__PURE__ */ f("tr", {
813
+ children: S.map((e) => /* @__PURE__ */ f("tr", {
791
814
  className: "hover:bg-bg-sunken transition-colors",
792
815
  children: [
793
816
  /* @__PURE__ */ f("td", {
@@ -801,7 +824,7 @@ var ge = () => {
801
824
  /* @__PURE__ */ f("td", {
802
825
  className: "px-4 py-3",
803
826
  children: [/* @__PURE__ */ d("span", {
804
- className: `inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${he(e.status)}`,
827
+ className: `inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${we(e.status)}`,
805
828
  children: e.status.charAt(0) + e.status.slice(1).toLowerCase()
806
829
  }), e.failureReason && /* @__PURE__ */ d("p", {
807
830
  className: "text-xs text-status-error-text mt-0.5 max-w-[180px] truncate",
@@ -816,15 +839,15 @@ var ge = () => {
816
839
  /* @__PURE__ */ d("td", {
817
840
  className: "px-4 py-3 text-text-secondary hidden md:table-cell",
818
841
  children: /* @__PURE__ */ d("span", {
819
- title: o(e.createdAt, "long"),
820
- children: le(e.createdAt)
842
+ title: oe(e.createdAt, "long"),
843
+ children: se(e.createdAt)
821
844
  })
822
845
  }),
823
846
  /* @__PURE__ */ d("td", {
824
847
  className: "px-4 py-3 text-text-secondary hidden md:table-cell",
825
848
  children: e.paidAt ? /* @__PURE__ */ d("span", {
826
- className: me("PAID"),
827
- children: o(e.paidAt, "short")
849
+ className: Ce("PAID"),
850
+ children: oe(e.paidAt, "short")
828
851
  }) : "—"
829
852
  })
830
853
  ]
@@ -836,6 +859,6 @@ var ge = () => {
836
859
  ]
837
860
  });
838
861
  };
839
- export { ge as CreditWithdrawalPage };
862
+ export { Te as CreditWithdrawalPage };
840
863
 
841
864
  //# sourceMappingURL=CreditWithdrawalPage.js.map