@burdenoff/microfe-billing 2026.1113.2 → 2026.1113.3

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 (105) 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 +144 -144
  43. package/dist/billing/modules/credits/pages/CreditsPage.js +67 -67
  44. package/dist/billing/modules/dashboard/pages/OverviewPage.js +594 -442
  45. package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
  46. package/dist/billing/modules/dashboard/utils/overviewSummary.d.ts +46 -0
  47. package/dist/billing/modules/dashboard/utils/overviewSummary.js +37 -0
  48. package/dist/billing/modules/dashboard/utils/overviewSummary.js.map +1 -0
  49. package/dist/billing/modules/discounts/pages/DiscountsListPage.js +199 -199
  50. package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
  51. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +64 -64
  52. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +122 -122
  53. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -1
  54. package/dist/billing/modules/earnings/pages/EarningsPage.js +102 -102
  55. package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
  56. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +178 -178
  57. package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
  58. package/dist/billing/modules/earnings/pages/PayoutsPage.js +107 -107
  59. package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
  60. package/dist/billing/modules/plans/pages/PlanAssignFreePage.js +54 -54
  61. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +94 -94
  62. package/dist/billing/modules/plans/pages/PlanCreatePage.js +73 -73
  63. package/dist/billing/modules/plans/pages/PlanDetailPage.js +96 -96
  64. package/dist/billing/modules/plans/pages/PlanEditPage.js +16 -16
  65. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  66. package/dist/billing/modules/plans/pages/PlansBrowsePage.js +100 -100
  67. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  68. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  69. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  70. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  71. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  72. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  73. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  74. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  75. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  76. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  77. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  78. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  79. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  80. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  81. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  82. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  83. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  84. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  85. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  86. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  87. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  88. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  89. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  90. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  91. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  92. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  93. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  94. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  95. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  96. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  97. package/dist/billing/shared/components/EmptyState.js +3 -3
  98. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  99. package/dist/billing/shared/ui/MetricCard.js +13 -13
  100. package/dist/billing/shared/utils/format.js +16 -4
  101. package/dist/billing/shared/utils/format.js.map +1 -1
  102. package/dist/billing/shared/utils/index.js +8 -8
  103. package/dist/generated/global-operations.js +294 -286
  104. package/dist/generated/global-operations.js.map +1 -1
  105. package/package.json +2 -2
@@ -13,8 +13,8 @@ import { useBillingAccount as oe, useBillingAccounts as se, useDefaultBillingAcc
13
13
  import { formatDate as o, formatRelativeTime as le } from "../../../shared/utils/format.js";
14
14
  import { statusTokens as s } from "../../../shared/utils/tokens.js";
15
15
  import { useEffect as c, useState as l } from "react";
16
- 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";
16
+ import { EmphasisPanel as u, IllustratedEmptyState as d, PagePurpose as ue } from "@burdenoff/fe-libs/ui";
17
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
18
18
  // src/billing/modules/credits/pages/CreditWithdrawalPage.tsx
19
19
  async function de(e, n) {
20
20
  return (await a({
@@ -38,31 +38,31 @@ async function pe(t, n) {
38
38
  })).myPayoutRequests.items;
39
39
  }
40
40
  var h = ({ label: e, value: t, description: n, highlight: r }) => {
41
- let i = /* @__PURE__ */ f(u, { children: [
42
- /* @__PURE__ */ d("p", {
41
+ let i = /* @__PURE__ */ m(f, { children: [
42
+ /* @__PURE__ */ p("p", {
43
43
  className: "text-sm text-text-secondary",
44
44
  children: e
45
45
  }),
46
- /* @__PURE__ */ f("p", {
46
+ /* @__PURE__ */ m("p", {
47
47
  className: `text-2xl font-bold mt-1 ${r ? "text-text-link" : "text-text-primary"}`,
48
48
  children: [
49
49
  t.toLocaleString(),
50
50
  " ",
51
- /* @__PURE__ */ d("span", {
51
+ /* @__PURE__ */ p("span", {
52
52
  className: "text-base font-normal",
53
53
  children: "credits"
54
54
  })
55
55
  ]
56
56
  }),
57
- n && /* @__PURE__ */ d("p", {
57
+ n && /* @__PURE__ */ p("p", {
58
58
  className: "text-xs text-text-secondary mt-1",
59
59
  children: n
60
60
  })
61
61
  ] });
62
- return r ? /* @__PURE__ */ d(p, {
62
+ return r ? /* @__PURE__ */ p(u, {
63
63
  className: "p-5",
64
64
  children: i
65
- }) : /* @__PURE__ */ d("div", {
65
+ }) : /* @__PURE__ */ p("div", {
66
66
  className: "border border-border-subtle rounded-lg p-5 bg-bg-surface",
67
67
  children: i
68
68
  });
@@ -92,7 +92,7 @@ function he(e) {
92
92
  }
93
93
  }
94
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);
95
+ let e = i(), { billingAccounts: t } = se(), [n, a] = l(void 0), { billingAccount: u, isLoading: ge } = ce(), { billingAccount: _e, isLoading: ve } = oe(n), g = n ? _e : u, 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);
96
96
  c(() => {
97
97
  F && R(!1);
98
98
  }, [F]);
@@ -222,19 +222,19 @@ var ge = () => {
222
222
  },
223
223
  skip: Y <= 0 || !g
224
224
  }), ze = Le?.getCostOfCredits?.amount;
225
- if (!e.canWithdrawCredits) return /* @__PURE__ */ d("div", {
225
+ if (!e.canWithdrawCredits) return /* @__PURE__ */ p("div", {
226
226
  className: "flex items-center justify-center h-full min-h-[400px]",
227
- children: /* @__PURE__ */ f("div", {
227
+ children: /* @__PURE__ */ m("div", {
228
228
  className: "text-center space-y-2",
229
229
  children: [
230
- /* @__PURE__ */ d("div", {
230
+ /* @__PURE__ */ p("div", {
231
231
  className: "size-12 mx-auto rounded-full bg-bg-sunken flex items-center justify-center",
232
- children: /* @__PURE__ */ d("svg", {
232
+ children: /* @__PURE__ */ p("svg", {
233
233
  className: "size-6 text-text-secondary",
234
234
  fill: "none",
235
235
  viewBox: "0 0 24 24",
236
236
  stroke: "currentColor",
237
- children: /* @__PURE__ */ d("path", {
237
+ children: /* @__PURE__ */ p("path", {
238
238
  strokeLinecap: "round",
239
239
  strokeLinejoin: "round",
240
240
  strokeWidth: 2,
@@ -242,50 +242,50 @@ var ge = () => {
242
242
  })
243
243
  })
244
244
  }),
245
- /* @__PURE__ */ d("h2", {
245
+ /* @__PURE__ */ p("h2", {
246
246
  className: "text-lg font-semibold text-text-primary",
247
247
  children: "Access Denied"
248
248
  }),
249
- /* @__PURE__ */ d("p", {
249
+ /* @__PURE__ */ p("p", {
250
250
  className: "text-sm text-text-secondary",
251
251
  children: "You don't have permission to withdraw credits."
252
252
  })
253
253
  ]
254
254
  })
255
255
  });
256
- if (!ye && !g) return /* @__PURE__ */ d("div", {
256
+ if (!ye && !g) return /* @__PURE__ */ p("div", {
257
257
  className: "flex items-center justify-center h-full min-h-[400px]",
258
- children: /* @__PURE__ */ f("div", {
258
+ children: /* @__PURE__ */ m("div", {
259
259
  className: "text-center space-y-2",
260
- children: [/* @__PURE__ */ d("h2", {
260
+ children: [/* @__PURE__ */ p("h2", {
261
261
  className: "text-lg font-semibold text-text-primary",
262
262
  children: "No Billing Account"
263
- }), /* @__PURE__ */ d("p", {
263
+ }), /* @__PURE__ */ p("p", {
264
264
  className: "text-sm text-text-secondary",
265
265
  children: "You need a billing account to withdraw credits."
266
266
  })]
267
267
  })
268
268
  });
269
- if (ye && !g) return /* @__PURE__ */ f("div", {
269
+ if (ye && !g) return /* @__PURE__ */ m("div", {
270
270
  className: "space-y-6 px-6 lg:px-8 py-6",
271
- children: [/* @__PURE__ */ d("div", { className: "h-8 w-64 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ d("div", {
271
+ children: [/* @__PURE__ */ p("div", { className: "h-8 w-64 bg-bg-sunken animate-pulse rounded" }), /* @__PURE__ */ p("div", {
272
272
  className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
273
273
  children: [
274
274
  1,
275
275
  2,
276
276
  3,
277
277
  4
278
- ].map((e) => /* @__PURE__ */ f("div", {
278
+ ].map((e) => /* @__PURE__ */ m("div", {
279
279
  className: "border border-border-subtle rounded-lg p-5",
280
- children: [/* @__PURE__ */ d("div", { className: "h-4 w-24 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ d("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" })]
280
+ children: [/* @__PURE__ */ p("div", { className: "h-4 w-24 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ p("div", { className: "h-8 w-32 bg-bg-sunken animate-pulse rounded" })]
281
281
  }, e))
282
282
  })]
283
283
  });
284
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.";
285
- return /* @__PURE__ */ f("div", {
285
+ return /* @__PURE__ */ m("div", {
286
286
  className: "space-y-6 px-6 lg:px-8 py-6",
287
287
  children: [
288
- L && /* @__PURE__ */ d(ee, {
288
+ L && /* @__PURE__ */ p(ee, {
289
289
  open: Ae,
290
290
  title: "Review your withdrawal",
291
291
  description: "These credits are converted to a payout when you confirm.",
@@ -303,62 +303,62 @@ var ge = () => {
303
303
  onConfirm: () => void Ie(),
304
304
  onCancel: () => R(!1)
305
305
  }),
306
- /* @__PURE__ */ f("div", {
306
+ /* @__PURE__ */ m("div", {
307
307
  className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
308
- children: [/* @__PURE__ */ f("div", { children: [
309
- /* @__PURE__ */ d("h1", {
308
+ children: [/* @__PURE__ */ m("div", { children: [
309
+ /* @__PURE__ */ p("h1", {
310
310
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
311
311
  children: "Withdraw Credits"
312
312
  }),
313
- /* @__PURE__ */ d("p", {
313
+ /* @__PURE__ */ p("p", {
314
314
  className: "text-sm text-text-secondary mt-1",
315
315
  children: "Convert your withdrawable credits (purchased & earned) to a payout"
316
316
  }),
317
- /* @__PURE__ */ d(ue, {
317
+ /* @__PURE__ */ p(ue, {
318
318
  className: "mt-3",
319
319
  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
320
  })
321
- ] }), t.length > 1 && /* @__PURE__ */ d("select", {
321
+ ] }), t.length > 1 && /* @__PURE__ */ p("select", {
322
322
  value: g?.id ?? "",
323
323
  onChange: (e) => a(e.target.value),
324
324
  "aria-label": "Switch billing account",
325
325
  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",
326
- children: t.map((e) => /* @__PURE__ */ d("option", {
326
+ children: t.map((e) => /* @__PURE__ */ p("option", {
327
327
  value: e.id,
328
328
  children: e.name
329
329
  }, e.id))
330
330
  })]
331
331
  }),
332
- /* @__PURE__ */ d("div", {
332
+ /* @__PURE__ */ p("div", {
333
333
  className: "grid grid-cols-2 lg:grid-cols-4 gap-4",
334
334
  children: we ? [
335
335
  1,
336
336
  2,
337
337
  3,
338
338
  4
339
- ].map((e) => /* @__PURE__ */ f("div", {
339
+ ].map((e) => /* @__PURE__ */ m("div", {
340
340
  className: "border border-border-subtle rounded-lg p-5",
341
- 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", {
341
+ children: [/* @__PURE__ */ p("div", { className: "h-4 w-20 bg-bg-sunken animate-pulse rounded mb-2" }), /* @__PURE__ */ p("div", { className: "h-8 w-28 bg-bg-sunken animate-pulse rounded" })]
342
+ }, e)) : b ? /* @__PURE__ */ p("div", {
343
343
  className: "col-span-4 text-sm text-status-error-text",
344
344
  children: b
345
- }) : /* @__PURE__ */ f(u, { children: [
346
- /* @__PURE__ */ d(h, {
345
+ }) : /* @__PURE__ */ m(f, { children: [
346
+ /* @__PURE__ */ p(h, {
347
347
  label: "Purchased",
348
348
  value: v?.purchased ?? 0,
349
349
  description: "From credit purchases"
350
350
  }),
351
- /* @__PURE__ */ d(h, {
351
+ /* @__PURE__ */ p(h, {
352
352
  label: "Earned",
353
353
  value: v?.earned ?? 0,
354
354
  description: "From sales & referrals"
355
355
  }),
356
- /* @__PURE__ */ d(h, {
356
+ /* @__PURE__ */ p(h, {
357
357
  label: "Granted",
358
358
  value: v?.granted ?? 0,
359
359
  description: "Coupons & admin grants — non-withdrawable"
360
360
  }),
361
- /* @__PURE__ */ d(h, {
361
+ /* @__PURE__ */ p(h, {
362
362
  label: "Withdrawable",
363
363
  value: X,
364
364
  description: "Purchased + earned",
@@ -366,38 +366,38 @@ var ge = () => {
366
366
  })
367
367
  ] })
368
368
  }),
369
- F && /* @__PURE__ */ f("div", {
369
+ F && /* @__PURE__ */ m("div", {
370
370
  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
371
  children: [
372
- /* @__PURE__ */ d("svg", {
372
+ /* @__PURE__ */ p("svg", {
373
373
  className: "size-5 shrink-0",
374
374
  fill: "none",
375
375
  viewBox: "0 0 24 24",
376
376
  stroke: "currentColor",
377
- children: /* @__PURE__ */ d("path", {
377
+ children: /* @__PURE__ */ p("path", {
378
378
  strokeLinecap: "round",
379
379
  strokeLinejoin: "round",
380
380
  strokeWidth: 2,
381
381
  d: "M5 13l4 4L19 7"
382
382
  })
383
383
  }),
384
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
384
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
385
385
  className: "font-medium",
386
386
  children: "Withdrawal request submitted"
387
- }), /* @__PURE__ */ d("p", {
387
+ }), /* @__PURE__ */ p("p", {
388
388
  className: "text-sm opacity-80",
389
389
  children: "Our team will review and process your request."
390
390
  })] }),
391
- /* @__PURE__ */ d("button", {
391
+ /* @__PURE__ */ p("button", {
392
392
  type: "button",
393
393
  onClick: () => I(!1),
394
394
  className: "ml-auto text-current opacity-60 hover:opacity-100",
395
- children: /* @__PURE__ */ d("svg", {
395
+ children: /* @__PURE__ */ p("svg", {
396
396
  className: "size-4",
397
397
  fill: "none",
398
398
  viewBox: "0 0 24 24",
399
399
  stroke: "currentColor",
400
- children: /* @__PURE__ */ d("path", {
400
+ children: /* @__PURE__ */ p("path", {
401
401
  strokeLinecap: "round",
402
402
  strokeLinejoin: "round",
403
403
  strokeWidth: 2,
@@ -407,34 +407,34 @@ var ge = () => {
407
407
  })
408
408
  ]
409
409
  }),
410
- /* @__PURE__ */ f("div", {
410
+ /* @__PURE__ */ m("div", {
411
411
  className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
412
- children: [/* @__PURE__ */ f("div", {
412
+ children: [/* @__PURE__ */ m("div", {
413
413
  className: "space-y-4",
414
414
  children: [
415
- /* @__PURE__ */ f("div", {
415
+ /* @__PURE__ */ m("div", {
416
416
  className: "flex items-center justify-between",
417
- children: [/* @__PURE__ */ d("h2", {
417
+ children: [/* @__PURE__ */ p("h2", {
418
418
  className: "text-base font-semibold text-text-primary",
419
419
  children: "Payout Account"
420
- }), /* @__PURE__ */ d("button", {
420
+ }), /* @__PURE__ */ p("button", {
421
421
  type: "button",
422
422
  onClick: () => B((e) => !e),
423
423
  className: "text-sm text-text-link hover:underline",
424
424
  children: z ? "Cancel" : "+ Add new"
425
425
  })]
426
426
  }),
427
- z && /* @__PURE__ */ f("div", {
427
+ z && /* @__PURE__ */ m("div", {
428
428
  className: "border border-border-subtle rounded-lg p-4 space-y-3 bg-bg-sunken",
429
429
  children: [
430
- /* @__PURE__ */ d("h3", {
430
+ /* @__PURE__ */ p("h3", {
431
431
  className: "text-sm font-medium text-text-primary",
432
432
  children: "New Payout Account"
433
433
  }),
434
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
434
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
435
435
  className: "block text-xs text-text-secondary mb-1",
436
436
  children: "Label"
437
- }), /* @__PURE__ */ d("input", {
437
+ }), /* @__PURE__ */ p("input", {
438
438
  type: "text",
439
439
  value: V.label,
440
440
  onChange: (e) => H((t) => ({
@@ -444,10 +444,10 @@ var ge = () => {
444
444
  placeholder: "e.g. My Bank Account",
445
445
  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)]"
446
446
  })] }),
447
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
447
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
448
448
  className: "block text-xs text-text-secondary mb-1",
449
449
  children: "Account Holder Name"
450
- }), /* @__PURE__ */ d("input", {
450
+ }), /* @__PURE__ */ p("input", {
451
451
  type: "text",
452
452
  value: V.accountHolderName,
453
453
  onChange: (e) => H((t) => ({
@@ -457,29 +457,29 @@ var ge = () => {
457
457
  placeholder: "Full name as on bank account",
458
458
  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)]"
459
459
  })] }),
460
- /* @__PURE__ */ f("div", {
460
+ /* @__PURE__ */ m("div", {
461
461
  className: "grid grid-cols-2 gap-3",
462
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
462
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
463
463
  className: "block text-xs text-text-secondary mb-1",
464
464
  children: "Type"
465
- }), /* @__PURE__ */ f("select", {
465
+ }), /* @__PURE__ */ m("select", {
466
466
  value: V.type,
467
467
  onChange: (e) => H((t) => ({
468
468
  ...t,
469
469
  type: e.target.value
470
470
  })),
471
471
  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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
472
- children: [/* @__PURE__ */ d("option", {
472
+ children: [/* @__PURE__ */ p("option", {
473
473
  value: "BANK_ACCOUNT",
474
474
  children: "Bank Account"
475
- }), /* @__PURE__ */ d("option", {
475
+ }), /* @__PURE__ */ p("option", {
476
476
  value: "UPI",
477
477
  children: "UPI"
478
478
  })]
479
- })] }), /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
479
+ })] }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
480
480
  className: "block text-xs text-text-secondary mb-1",
481
481
  children: "Country"
482
- }), /* @__PURE__ */ d("input", {
482
+ }), /* @__PURE__ */ p("input", {
483
483
  type: "text",
484
484
  value: V.country,
485
485
  onChange: (e) => H((t) => ({
@@ -490,10 +490,10 @@ var ge = () => {
490
490
  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
491
  })] })]
492
492
  }),
493
- V.type === "BANK_ACCOUNT" && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
493
+ V.type === "BANK_ACCOUNT" && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
494
494
  className: "block text-xs text-text-secondary mb-1",
495
495
  children: "Account Number"
496
- }), /* @__PURE__ */ d("input", {
496
+ }), /* @__PURE__ */ p("input", {
497
497
  type: "text",
498
498
  value: V.accountNumber,
499
499
  onChange: (e) => H((t) => ({
@@ -502,10 +502,10 @@ var ge = () => {
502
502
  })),
503
503
  placeholder: "Account number",
504
504
  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", {
505
+ })] }), V.country.trim().toUpperCase() === "IN" || V.country.trim().toLowerCase() === "india" ? /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
506
506
  className: "block text-xs text-text-secondary mb-1",
507
507
  children: "IFSC Code"
508
- }), /* @__PURE__ */ d("input", {
508
+ }), /* @__PURE__ */ p("input", {
509
509
  type: "text",
510
510
  value: V.ifscCode,
511
511
  onChange: (e) => H((t) => ({
@@ -514,10 +514,10 @@ var ge = () => {
514
514
  })),
515
515
  placeholder: "e.g. SBIN0001234",
516
516
  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)]"
517
- })] }) : /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
517
+ })] }) : /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
518
518
  className: "block text-xs text-text-secondary mb-1",
519
519
  children: "Routing Number"
520
- }), /* @__PURE__ */ d("input", {
520
+ }), /* @__PURE__ */ p("input", {
521
521
  type: "text",
522
522
  value: V.routingNumber,
523
523
  onChange: (e) => H((t) => ({
@@ -527,10 +527,10 @@ var ge = () => {
527
527
  placeholder: "Routing / sort code",
528
528
  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
529
  })] })] }),
530
- V.type === "UPI" && /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("label", {
530
+ V.type === "UPI" && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
531
531
  className: "block text-xs text-text-secondary mb-1",
532
532
  children: "UPI ID"
533
- }), /* @__PURE__ */ d("input", {
533
+ }), /* @__PURE__ */ p("input", {
534
534
  type: "text",
535
535
  value: V.upiId,
536
536
  onChange: (e) => H((t) => ({
@@ -540,11 +540,11 @@ var ge = () => {
540
540
  placeholder: "yourname@upi",
541
541
  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
542
  })] }),
543
- Me && /* @__PURE__ */ d("p", {
543
+ Me && /* @__PURE__ */ p("p", {
544
544
  className: "text-xs text-status-error-text",
545
545
  children: Me
546
546
  }),
547
- /* @__PURE__ */ d("button", {
547
+ /* @__PURE__ */ p("button", {
548
548
  type: "button",
549
549
  onClick: () => void Fe(),
550
550
  disabled: U || !V.label || !V.accountHolderName,
@@ -553,31 +553,31 @@ var ge = () => {
553
553
  })
554
554
  ]
555
555
  }),
556
- De ? /* @__PURE__ */ d("div", {
556
+ De ? /* @__PURE__ */ p("div", {
557
557
  className: "space-y-2",
558
- 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, {
558
+ children: [1, 2].map((e) => /* @__PURE__ */ p("div", { className: "h-16 border border-border-subtle rounded-lg bg-bg-sunken animate-pulse" }, e))
559
+ }) : Q.length === 0 && !z ? /* @__PURE__ */ p(d, {
560
560
  illustration: "empty-generic",
561
561
  title: "No payout accounts yet",
562
562
  description: "Add a bank account or UPI to receive your withdrawn credits.",
563
- action: /* @__PURE__ */ d("button", {
563
+ action: /* @__PURE__ */ p("button", {
564
564
  type: "button",
565
565
  onClick: () => B(!0),
566
566
  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
567
  children: "Add a bank account or UPI"
568
568
  })
569
- }) : /* @__PURE__ */ d("div", {
569
+ }) : /* @__PURE__ */ p("div", {
570
570
  className: "space-y-2",
571
- children: Q.map((e) => /* @__PURE__ */ d("button", {
571
+ children: Q.map((e) => /* @__PURE__ */ p("button", {
572
572
  type: "button",
573
573
  onClick: () => E(e.id),
574
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"}`,
575
- children: /* @__PURE__ */ f("div", {
575
+ children: /* @__PURE__ */ m("div", {
576
576
  className: "flex items-center justify-between",
577
- children: [/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
577
+ children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("p", {
578
578
  className: "text-sm font-medium text-text-primary",
579
579
  children: e.label
580
- }), /* @__PURE__ */ f("p", {
580
+ }), /* @__PURE__ */ m("p", {
581
581
  className: "text-xs text-text-secondary mt-0.5",
582
582
  children: [
583
583
  e.type.replaceAll("_", " "),
@@ -585,23 +585,23 @@ var ge = () => {
585
585
  e.accountLast4 ? ` ···${e.accountLast4}` : "",
586
586
  e.country ? ` · ${e.country}` : ""
587
587
  ]
588
- })] }), /* @__PURE__ */ f("div", {
588
+ })] }), /* @__PURE__ */ m("div", {
589
589
  className: "flex items-center gap-2",
590
590
  children: [
591
- e.isDefault && /* @__PURE__ */ d("span", {
591
+ e.isDefault && /* @__PURE__ */ p("span", {
592
592
  className: "text-xs px-2 py-0.5 rounded bg-[var(--color-accent-soft)] text-text-link font-medium",
593
593
  children: "Default"
594
594
  }),
595
- /* @__PURE__ */ d("span", {
595
+ /* @__PURE__ */ p("span", {
596
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}`}`,
597
597
  children: e.status.replaceAll("_", " ").toLowerCase()
598
598
  }),
599
- T === e.id && /* @__PURE__ */ d("svg", {
599
+ T === e.id && /* @__PURE__ */ p("svg", {
600
600
  className: "size-4 text-text-link shrink-0",
601
601
  fill: "none",
602
602
  viewBox: "0 0 24 24",
603
603
  stroke: "currentColor",
604
- children: /* @__PURE__ */ d("path", {
604
+ children: /* @__PURE__ */ p("path", {
605
605
  strokeLinecap: "round",
606
606
  strokeLinejoin: "round",
607
607
  strokeWidth: 2,
@@ -614,20 +614,20 @@ var ge = () => {
614
614
  }, e.id))
615
615
  })
616
616
  ]
617
- }), /* @__PURE__ */ f("div", {
617
+ }), /* @__PURE__ */ m("div", {
618
618
  className: "space-y-4",
619
- children: [/* @__PURE__ */ d("h2", {
619
+ children: [/* @__PURE__ */ p("h2", {
620
620
  className: "text-base font-semibold text-text-primary",
621
621
  children: "Request Withdrawal"
622
- }), /* @__PURE__ */ f("div", {
622
+ }), /* @__PURE__ */ m("div", {
623
623
  className: "border border-border-subtle rounded-lg p-5 bg-bg-surface space-y-4",
624
624
  children: [
625
- /* @__PURE__ */ f("div", { children: [
626
- /* @__PURE__ */ d("label", {
625
+ /* @__PURE__ */ m("div", { children: [
626
+ /* @__PURE__ */ p("label", {
627
627
  className: "block text-sm font-medium text-text-primary mb-1",
628
628
  children: "Credits to Withdraw"
629
629
  }),
630
- /* @__PURE__ */ d("input", {
630
+ /* @__PURE__ */ p("input", {
631
631
  type: "number",
632
632
  min: 1,
633
633
  max: X,
@@ -637,23 +637,23 @@ var ge = () => {
637
637
  placeholder: "Enter credit amount",
638
638
  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
639
  }),
640
- /* @__PURE__ */ f("p", {
640
+ /* @__PURE__ */ m("p", {
641
641
  className: "text-xs text-text-secondary mt-1",
642
642
  children: [
643
643
  "Max withdrawable:",
644
644
  " ",
645
- /* @__PURE__ */ f("span", {
645
+ /* @__PURE__ */ m("span", {
646
646
  className: "font-medium",
647
647
  children: [X.toLocaleString(), " credits"]
648
648
  })
649
649
  ]
650
650
  }),
651
- Y > 0 && Y <= X + Z && /* @__PURE__ */ d("p", {
651
+ Y > 0 && Y <= X + Z && /* @__PURE__ */ p("p", {
652
652
  className: "text-xs text-text-secondary mt-1",
653
- children: Re ? "Calculating…" : ze == null ? null : /* @__PURE__ */ f(u, { children: [
653
+ children: Re ? "Calculating…" : ze == null ? null : /* @__PURE__ */ m(f, { children: [
654
654
  "Estimated payout:",
655
655
  " ",
656
- /* @__PURE__ */ d("span", {
656
+ /* @__PURE__ */ p("span", {
657
657
  className: "font-semibold text-text-primary",
658
658
  children: ze.toLocaleString(void 0, {
659
659
  style: "currency",
@@ -666,35 +666,35 @@ var ge = () => {
666
666
  "at the current credit rate"
667
667
  ] })
668
668
  }),
669
- Y > 0 && Y > X + Z && /* @__PURE__ */ d("p", {
669
+ Y > 0 && Y > X + Z && /* @__PURE__ */ p("p", {
670
670
  className: "text-xs text-status-error-text mt-1",
671
671
  children: "Amount exceeds your withdrawable balance"
672
672
  })
673
673
  ] }),
674
- /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("label", {
674
+ /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
675
675
  className: "block text-sm font-medium text-text-primary mb-1",
676
- children: ["Notes ", /* @__PURE__ */ d("span", {
676
+ children: ["Notes ", /* @__PURE__ */ p("span", {
677
677
  className: "text-text-secondary font-normal",
678
678
  children: "(optional)"
679
679
  })]
680
- }), /* @__PURE__ */ d("textarea", {
680
+ }), /* @__PURE__ */ p("textarea", {
681
681
  value: k,
682
682
  onChange: (e) => A(e.target.value),
683
683
  placeholder: "Any notes for this withdrawal request",
684
684
  rows: 2,
685
685
  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
686
  })] }),
687
- N && /* @__PURE__ */ d("div", {
687
+ N && /* @__PURE__ */ p("div", {
688
688
  className: "p-3 rounded-button bg-status-error-bg-subtle border border-status-error-border",
689
- children: /* @__PURE__ */ d("p", {
689
+ children: /* @__PURE__ */ p("p", {
690
690
  className: "text-sm text-status-error-text",
691
691
  children: N
692
692
  })
693
693
  }),
694
- /* @__PURE__ */ f("div", {
694
+ /* @__PURE__ */ m("div", {
695
695
  className: "pt-1 border-t border-border-subtle",
696
696
  children: [
697
- /* @__PURE__ */ f("p", {
697
+ /* @__PURE__ */ m("p", {
698
698
  className: "text-xs text-text-secondary mb-3",
699
699
  children: [
700
700
  "Credits will be converted to ",
@@ -702,11 +702,11 @@ var ge = () => {
702
702
  " at the current credit rate. Withdrawals are reviewed before processing and may take 3–5 business days."
703
703
  ]
704
704
  }),
705
- $ && /* @__PURE__ */ d("p", {
705
+ $ && /* @__PURE__ */ p("p", {
706
706
  className: "text-xs text-status-warning-text mb-2",
707
707
  children: $
708
708
  }),
709
- /* @__PURE__ */ d("button", {
709
+ /* @__PURE__ */ p("button", {
710
710
  type: "button",
711
711
  onClick: () => {
712
712
  L ? (P(null), I(!1), R(!0)) : Ie();
@@ -721,24 +721,24 @@ var ge = () => {
721
721
  })]
722
722
  })]
723
723
  }),
724
- /* @__PURE__ */ f("div", {
724
+ /* @__PURE__ */ m("div", {
725
725
  className: "space-y-3",
726
- children: [/* @__PURE__ */ f("div", {
726
+ children: [/* @__PURE__ */ m("div", {
727
727
  className: "flex items-center justify-between",
728
- children: [/* @__PURE__ */ d("h2", {
728
+ children: [/* @__PURE__ */ p("h2", {
729
729
  className: "text-base font-semibold text-text-primary",
730
730
  children: "Withdrawal History"
731
- }), /* @__PURE__ */ d("button", {
731
+ }), /* @__PURE__ */ p("button", {
732
732
  type: "button",
733
733
  onClick: () => void q(),
734
734
  className: "text-sm text-text-secondary hover:text-text-primary transition-colors",
735
735
  "aria-label": "Refresh withdrawal history",
736
- children: /* @__PURE__ */ d("svg", {
736
+ children: /* @__PURE__ */ p("svg", {
737
737
  className: "size-4",
738
738
  fill: "none",
739
739
  viewBox: "0 0 24 24",
740
740
  stroke: "currentColor",
741
- children: /* @__PURE__ */ d("path", {
741
+ children: /* @__PURE__ */ p("path", {
742
742
  strokeLinecap: "round",
743
743
  strokeLinejoin: "round",
744
744
  strokeWidth: 2,
@@ -746,51 +746,51 @@ var ge = () => {
746
746
  })
747
747
  })
748
748
  })]
749
- }), ke ? /* @__PURE__ */ d("div", {
749
+ }), ke ? /* @__PURE__ */ p("div", {
750
750
  className: "space-y-2",
751
751
  children: [
752
752
  1,
753
753
  2,
754
754
  3
755
- ].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, {
755
+ ].map((e) => /* @__PURE__ */ p("div", { className: "h-16 border border-border-subtle rounded-lg bg-bg-sunken animate-pulse" }, e))
756
+ }) : C.length === 0 ? /* @__PURE__ */ p(d, {
757
757
  illustration: "empty-data",
758
758
  title: "No withdrawal requests yet",
759
759
  description: "Once you request a withdrawal, its status will appear here."
760
- }) : /* @__PURE__ */ d("div", {
760
+ }) : /* @__PURE__ */ p("div", {
761
761
  className: "border border-border-subtle rounded-lg overflow-hidden",
762
- children: /* @__PURE__ */ f("table", {
762
+ children: /* @__PURE__ */ m("table", {
763
763
  className: "w-full text-sm",
764
- children: [/* @__PURE__ */ d("thead", {
764
+ children: [/* @__PURE__ */ p("thead", {
765
765
  className: "bg-bg-sunken border-b border-border-subtle",
766
- children: /* @__PURE__ */ f("tr", { children: [
767
- /* @__PURE__ */ d("th", {
766
+ children: /* @__PURE__ */ m("tr", { children: [
767
+ /* @__PURE__ */ p("th", {
768
768
  className: "text-left px-4 py-3 text-xs font-medium text-text-secondary uppercase tracking-wide",
769
769
  children: "Amount"
770
770
  }),
771
- /* @__PURE__ */ d("th", {
771
+ /* @__PURE__ */ p("th", {
772
772
  className: "text-left px-4 py-3 text-xs font-medium text-text-secondary uppercase tracking-wide",
773
773
  children: "Status"
774
774
  }),
775
- /* @__PURE__ */ d("th", {
775
+ /* @__PURE__ */ p("th", {
776
776
  className: "text-left px-4 py-3 text-xs font-medium text-text-secondary uppercase tracking-wide hidden sm:table-cell",
777
777
  children: "Payout Account"
778
778
  }),
779
- /* @__PURE__ */ d("th", {
779
+ /* @__PURE__ */ p("th", {
780
780
  className: "text-left px-4 py-3 text-xs font-medium text-text-secondary uppercase tracking-wide hidden md:table-cell",
781
781
  children: "Requested"
782
782
  }),
783
- /* @__PURE__ */ d("th", {
783
+ /* @__PURE__ */ p("th", {
784
784
  className: "text-left px-4 py-3 text-xs font-medium text-text-secondary uppercase tracking-wide hidden md:table-cell",
785
785
  children: "Completed"
786
786
  })
787
787
  ] })
788
- }), /* @__PURE__ */ d("tbody", {
788
+ }), /* @__PURE__ */ p("tbody", {
789
789
  className: "divide-y divide-border-subtle",
790
- children: C.map((e) => /* @__PURE__ */ f("tr", {
790
+ children: C.map((e) => /* @__PURE__ */ m("tr", {
791
791
  className: "hover:bg-bg-sunken transition-colors",
792
792
  children: [
793
- /* @__PURE__ */ f("td", {
793
+ /* @__PURE__ */ m("td", {
794
794
  className: "px-4 py-3 font-medium text-text-primary",
795
795
  children: [
796
796
  e.requestedAmount.toLocaleString(),
@@ -798,31 +798,31 @@ var ge = () => {
798
798
  e.currency
799
799
  ]
800
800
  }),
801
- /* @__PURE__ */ f("td", {
801
+ /* @__PURE__ */ m("td", {
802
802
  className: "px-4 py-3",
803
- children: [/* @__PURE__ */ d("span", {
803
+ children: [/* @__PURE__ */ p("span", {
804
804
  className: `inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${he(e.status)}`,
805
805
  children: e.status.charAt(0) + e.status.slice(1).toLowerCase()
806
- }), e.failureReason && /* @__PURE__ */ d("p", {
806
+ }), e.failureReason && /* @__PURE__ */ p("p", {
807
807
  className: "text-xs text-status-error-text mt-0.5 max-w-[180px] truncate",
808
808
  title: e.failureReason,
809
809
  children: e.failureReason
810
810
  })]
811
811
  }),
812
- /* @__PURE__ */ d("td", {
812
+ /* @__PURE__ */ p("td", {
813
813
  className: "px-4 py-3 text-text-secondary hidden sm:table-cell",
814
- children: e.payoutAccount ? /* @__PURE__ */ f("span", { children: [e.payoutAccount.label, e.payoutAccount.accountLast4 ? ` ···${e.payoutAccount.accountLast4}` : ""] }) : "—"
814
+ children: e.payoutAccount ? /* @__PURE__ */ m("span", { children: [e.payoutAccount.label, e.payoutAccount.accountLast4 ? ` ···${e.payoutAccount.accountLast4}` : ""] }) : "—"
815
815
  }),
816
- /* @__PURE__ */ d("td", {
816
+ /* @__PURE__ */ p("td", {
817
817
  className: "px-4 py-3 text-text-secondary hidden md:table-cell",
818
- children: /* @__PURE__ */ d("span", {
818
+ children: /* @__PURE__ */ p("span", {
819
819
  title: o(e.createdAt, "long"),
820
820
  children: le(e.createdAt)
821
821
  })
822
822
  }),
823
- /* @__PURE__ */ d("td", {
823
+ /* @__PURE__ */ p("td", {
824
824
  className: "px-4 py-3 text-text-secondary hidden md:table-cell",
825
- children: e.paidAt ? /* @__PURE__ */ d("span", {
825
+ children: e.paidAt ? /* @__PURE__ */ p("span", {
826
826
  className: me("PAID"),
827
827
  children: o(e.paidAt, "short")
828
828
  }) : "—"