@burdenoff/microfe-billing 2026.1113.1 → 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 (109) 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 +143 -143
  67. package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
  68. package/dist/billing/modules/plans/pages/PlansListPage.js +88 -88
  69. package/dist/billing/modules/plans/utils/planAction.d.ts +9 -0
  70. package/dist/billing/modules/plans/utils/planAction.js +4 -1
  71. package/dist/billing/modules/plans/utils/planAction.js.map +1 -1
  72. package/dist/billing/modules/promotions/pages/CreatePromotionPage.js +60 -60
  73. package/dist/billing/modules/promotions/pages/PromotionsListPage.js +37 -37
  74. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js +62 -62
  75. package/dist/billing/modules/quota/pages/QuotaPage.js +1 -1
  76. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +69 -69
  77. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +76 -76
  78. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +80 -80
  79. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +95 -95
  80. package/dist/billing/modules/settings/pages/SettingsPage.js +134 -134
  81. package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
  82. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +62 -62
  83. package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
  84. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +36 -36
  85. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +534 -410
  86. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
  87. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +111 -111
  88. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +166 -160
  89. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
  90. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.d.ts +30 -0
  91. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js +20 -0
  92. package/dist/billing/modules/subscriptions/utils/subscriptionDetailView.js.map +1 -0
  93. package/dist/billing/modules/subscriptions/utils/upgradeAccess.d.ts +10 -0
  94. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js +7 -0
  95. package/dist/billing/modules/subscriptions/utils/upgradeAccess.js.map +1 -0
  96. package/dist/billing/modules/usage/pages/UsagePage.js +722 -591
  97. package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
  98. package/dist/billing/modules/usage/utils/usageHealth.d.ts +63 -0
  99. package/dist/billing/modules/usage/utils/usageHealth.js +43 -0
  100. package/dist/billing/modules/usage/utils/usageHealth.js.map +1 -0
  101. package/dist/billing/shared/components/EmptyState.js +3 -3
  102. package/dist/billing/shared/components/MoneyActionDialog.js +12 -12
  103. package/dist/billing/shared/ui/MetricCard.js +13 -13
  104. package/dist/billing/shared/utils/format.js +16 -4
  105. package/dist/billing/shared/utils/format.js.map +1 -1
  106. package/dist/billing/shared/utils/index.js +8 -8
  107. package/dist/generated/global-operations.js +294 -286
  108. package/dist/generated/global-operations.js.map +1 -1
  109. package/package.json +2 -2
@@ -1,31 +1,31 @@
1
1
  import { useBillingPermissions as e } from "../../../hooks/useBillingPermissions.js";
2
2
  import { AccessDenied as t } from "../../../shared/components/AccessDenied.js";
3
- import { PageHeader as n } from "../../../shared/components/PageHeader.js";
4
- import { ServerError as r } from "../../../shared/components/ServerError.js";
5
- import { MoneyActionDialog as ee } from "../../../shared/components/MoneyActionDialog.js";
6
- import { useIsFluidgridsVariant as te } from "../../../hooks/useBillingVariant.js";
3
+ import { PageHeader as ee } from "../../../shared/components/PageHeader.js";
4
+ import { ServerError as te } from "../../../shared/components/ServerError.js";
5
+ import { MoneyActionDialog as ne } from "../../../shared/components/MoneyActionDialog.js";
6
+ import { useIsFluidgridsVariant as re } from "../../../hooks/useBillingVariant.js";
7
7
  import "../../../shared/components/index.js";
8
- import { formatCurrency as i, formatDateTime as a } from "../../../shared/utils/format.js";
9
- import { isServerError as o } from "../../../shared/utils/error.js";
10
- import { useBillingEventEmitter as s } from "../../../hooks/useBillingEventEmitter.js";
11
- import { useBilling as c } from "../../../providers/BillingProvider.js";
8
+ import { formatCurrency as n, formatDateTime as r } from "../../../shared/utils/format.js";
9
+ import { isServerError as i } from "../../../shared/utils/error.js";
10
+ import { useBillingEventEmitter as a } from "../../../hooks/useBillingEventEmitter.js";
11
+ import { useBilling as o } from "../../../providers/BillingProvider.js";
12
12
  import "../../../shared/utils/index.js";
13
- import { useGetDefaultBillingAccountSettingsQuery as l } from "../../../../generated/global-operations.js";
14
- import { addPayoutAccount as u, archivePayoutAccount as ne, fetchPayoutAccounts as re, fetchPayoutRequests as ie, requestPayout as ae, setDefaultPayoutAccount as oe, updatePayoutAccount as se } from "../api.js";
15
- import { PAYOUT_ACCOUNT_TONE_CLASSES as ce, isPayoutAccountPayable as d, payoutAccountStatusView as f, pickPayableAccountId as le } from "../payoutAccountStatus.js";
16
- import { useCallback as ue, useEffect as de, useMemo as fe, useState as p } from "react";
17
- import { Landmark as pe, RefreshCw as me, Send as he } from "lucide-react";
18
- import { Fragment as ge, jsx as m, jsxs as h } from "react/jsx-runtime";
19
- import { AlertDialog as _e, AlertDialogAction as ve, AlertDialogCancel as ye, AlertDialogContent as be, AlertDialogDescription as g, AlertDialogFooter as xe, AlertDialogHeader as Se, AlertDialogTitle as Ce, IllustratedEmptyState as _, PagePurpose as we, ResponsiveTable as Te } from "@burdenoff/fe-libs/ui";
13
+ import { useGetDefaultBillingAccountSettingsQuery as s } from "../../../../generated/global-operations.js";
14
+ import { addPayoutAccount as c, archivePayoutAccount as ie, fetchPayoutAccounts as ae, fetchPayoutRequests as oe, requestPayout as se, setDefaultPayoutAccount as ce, updatePayoutAccount as le } from "../api.js";
15
+ import { PAYOUT_ACCOUNT_TONE_CLASSES as ue, isPayoutAccountPayable as l, payoutAccountStatusView as u, pickPayableAccountId as de } from "../payoutAccountStatus.js";
16
+ import { useCallback as fe, useEffect as pe, useMemo as me, useState as d } from "react";
17
+ import { AlertDialog as he, AlertDialogAction as ge, AlertDialogCancel as _e, AlertDialogContent as ve, AlertDialogDescription as f, AlertDialogFooter as p, AlertDialogHeader as ye, AlertDialogTitle as be, IllustratedEmptyState as m, PagePurpose as xe, ResponsiveTable as h } from "@burdenoff/fe-libs/ui";
18
+ import { Landmark as Se, RefreshCw as Ce, Send as we } from "lucide-react";
19
+ import { Fragment as Te, jsx as g, jsxs as _ } from "react/jsx-runtime";
20
20
  // src/billing/modules/earnings/pages/PayoutsPage.tsx
21
21
  var Ee = [
22
22
  {
23
23
  key: "amount",
24
24
  header: "Amount",
25
25
  priority: "primary",
26
- cell: (e) => /* @__PURE__ */ m("span", {
26
+ cell: (e) => /* @__PURE__ */ g("span", {
27
27
  className: "tabular-nums",
28
- children: i(e.requestedAmount, e.currency)
28
+ children: n(e.requestedAmount, e.currency)
29
29
  })
30
30
  },
31
31
  {
@@ -46,10 +46,10 @@ var Ee = [
46
46
  {
47
47
  key: "created",
48
48
  header: "Created",
49
- cell: (e) => a(e.createdAt)
49
+ cell: (e) => r(e.createdAt)
50
50
  }
51
51
  ], v = () => {
52
- let a = e(), v = te(), [De, y] = p(!1), [b, x] = p(!1), [S, C] = p(null), [w, T] = p(null), { emit: E } = s(), { apiGatewayUrl: D, authToken: O, orgId: k } = c(), { data: Oe } = l({}), A = Oe?.getDefaultBillingAccount?.id, [j, ke] = p([]), [M, Ae] = p([]), [N, P] = p(!0), [F, I] = p(null), [L, R] = p({
52
+ let r = e(), v = re(), [De, y] = d(!1), [b, x] = d(!1), [S, C] = d(null), [w, T] = d(null), { emit: E } = a(), { apiGatewayUrl: D, authToken: O, orgId: k } = o(), { data: Oe } = s({}), A = Oe?.getDefaultBillingAccount?.id, [j, ke] = d([]), [M, Ae] = d([]), [N, P] = d(!0), [F, I] = d(null), [L, R] = d({
53
53
  label: "",
54
54
  type: "BANK_ACCOUNT",
55
55
  providerPreference: "AUTO",
@@ -61,7 +61,7 @@ var Ee = [
61
61
  routingNumber: "",
62
62
  ifsc: "",
63
63
  upiId: ""
64
- }), [z, B] = p(""), [V, H] = p(""), [U, W] = p(null), [G, K] = p(null), [q, J] = p(null), Y = fe(() => ({
64
+ }), [z, B] = d(""), [V, H] = d(""), [U, W] = d(null), [G, K] = d(null), [q, J] = d(null), Y = me(() => ({
65
65
  apiGatewayUrl: D,
66
66
  authToken: O,
67
67
  orgId: k
@@ -69,12 +69,12 @@ var Ee = [
69
69
  D,
70
70
  O,
71
71
  k
72
- ]), X = ue(async () => {
72
+ ]), X = fe(async () => {
73
73
  if (A) {
74
74
  P(!0), I(null);
75
75
  try {
76
- let [e, t] = await Promise.all([re(A, Y), ie(A, Y)]);
77
- ke(e), Ae(t), H((t) => le(e, t));
76
+ let [e, t] = await Promise.all([ae(A, Y), oe(A, Y)]);
77
+ ke(e), Ae(t), H((t) => de(e, t));
78
78
  } catch (e) {
79
79
  I(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load payout data"));
80
80
  } finally {
@@ -82,10 +82,10 @@ var Ee = [
82
82
  }
83
83
  }
84
84
  }, [A, Y]);
85
- if (de(() => {
85
+ if (pe(() => {
86
86
  X();
87
- }, [X]), !a.canManagePaymentMethods) return /* @__PURE__ */ m(t, { message: "You don't have permission to manage payout accounts." });
88
- if (F && o(F)) return /* @__PURE__ */ m(r, {
87
+ }, [X]), !r.canManagePaymentMethods) return /* @__PURE__ */ g(t, { message: "You don't have permission to manage payout accounts." });
88
+ if (F && i(F)) return /* @__PURE__ */ g(te, {
89
89
  title: "Payout data unavailable",
90
90
  message: F.message,
91
91
  onRetry: () => void X(),
@@ -98,13 +98,13 @@ var Ee = [
98
98
  billingAccountId: A,
99
99
  ...L
100
100
  };
101
- if (U) await se(U, e, Y), E("billing.payout_account.updated", {
101
+ if (U) await le(U, e, Y), E("billing.payout_account.updated", {
102
102
  route: "/billing/payouts",
103
103
  entityId: U,
104
104
  source: "payouts"
105
105
  });
106
106
  else {
107
- let t = await u(e, Y);
107
+ let t = await c(e, Y);
108
108
  E("billing.payout_account.added", {
109
109
  route: "/billing/payouts",
110
110
  entityId: A,
@@ -125,9 +125,9 @@ var Ee = [
125
125
  upiId: ""
126
126
  }), W(null), await X();
127
127
  }, Me = async (e) => {
128
- J(null), await oe(e, Y), await X();
128
+ J(null), await ce(e, Y), await X();
129
129
  }, Ne = async (e) => {
130
- J(null), await ne(e, Y), E("billing.payout_account.archived", {
130
+ J(null), await ie(e, Y), E("billing.payout_account.archived", {
131
131
  route: "/billing/payouts",
132
132
  entityId: e,
133
133
  source: "payouts"
@@ -147,8 +147,8 @@ var Ee = [
147
147
  ifsc: "",
148
148
  upiId: ""
149
149
  }));
150
- }, Z = j.find((e) => e.id === V), Q = j.some(d), $ = async () => {
151
- A && V && z && Z && d(Z) && (await ae({
150
+ }, Z = j.find((e) => e.id === V), Q = j.some(l), $ = async () => {
151
+ A && V && z && Z && l(Z) && (await se({
152
152
  billingAccountId: A,
153
153
  payoutAccountId: V,
154
154
  amount: Number(z),
@@ -165,7 +165,7 @@ var Ee = [
165
165
  try {
166
166
  await $(), y(!1), T({
167
167
  ok: !0,
168
- message: `Payout of ${i(Number(z), Z?.currency ?? "")} requested. We'll show its status below.`
168
+ message: `Payout of ${n(Number(z), Z?.currency ?? "")} requested. We'll show its status below.`
169
169
  });
170
170
  } catch (e) {
171
171
  C(e instanceof Error ? e.message : "The payout request failed.");
@@ -173,16 +173,16 @@ var Ee = [
173
173
  x(!1);
174
174
  }
175
175
  };
176
- return /* @__PURE__ */ h("div", {
176
+ return /* @__PURE__ */ _("div", {
177
177
  className: "space-y-6 p-6",
178
178
  children: [
179
- v && /* @__PURE__ */ m(ee, {
179
+ v && /* @__PURE__ */ g(ne, {
180
180
  open: De,
181
181
  title: "Review your payout",
182
182
  description: "The amount is moved out of your available balance when you confirm.",
183
183
  details: [{
184
184
  label: "Amount",
185
- value: i(Number(z), Z?.currency ?? "")
185
+ value: n(Number(z), Z?.currency ?? "")
186
186
  }, {
187
187
  label: "Paid to",
188
188
  value: Z ? `${Z.label} · ${Z.currency}` : ""
@@ -194,38 +194,38 @@ var Ee = [
194
194
  onConfirm: () => void Fe(),
195
195
  onCancel: () => y(!1)
196
196
  }),
197
- v && w && /* @__PURE__ */ m("div", {
197
+ v && w && /* @__PURE__ */ g("div", {
198
198
  role: w.ok ? "status" : "alert",
199
199
  className: `rounded-md border p-3 text-sm ${w.ok ? "border-status-success-border text-status-success-text" : "border-status-error-border text-status-error-text"}`,
200
200
  children: w.message
201
201
  }),
202
- /* @__PURE__ */ m(n, {
202
+ /* @__PURE__ */ g(ee, {
203
203
  title: "Payouts",
204
204
  description: "Register payout accounts, request withdrawals, and track disbursement status."
205
205
  }),
206
- /* @__PURE__ */ m(we, { 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." }),
207
- q ? /* @__PURE__ */ m("div", {
206
+ /* @__PURE__ */ g(xe, { 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." }),
207
+ q ? /* @__PURE__ */ g("div", {
208
208
  role: "status",
209
209
  className: "rounded-lg border border-border-subtle bg-status-info-bg-subtle p-4 text-sm text-status-info-text",
210
210
  children: q
211
211
  }) : null,
212
- F && !o(F) ? /* @__PURE__ */ m("div", {
212
+ F && !i(F) ? /* @__PURE__ */ g("div", {
213
213
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4 text-sm text-status-error-text",
214
214
  children: F.message
215
215
  }) : null,
216
- /* @__PURE__ */ h("div", {
216
+ /* @__PURE__ */ _("div", {
217
217
  className: "grid gap-6 xl:grid-cols-[1.05fr,1.95fr]",
218
- children: [/* @__PURE__ */ h("section", {
218
+ children: [/* @__PURE__ */ _("section", {
219
219
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
220
220
  children: [
221
- /* @__PURE__ */ m("h2", {
221
+ /* @__PURE__ */ g("h2", {
222
222
  className: "mb-4 text-lg font-semibold text-text-primary",
223
223
  children: U ? "Edit payout account" : "Add payout account"
224
224
  }),
225
- /* @__PURE__ */ h("div", {
225
+ /* @__PURE__ */ _("div", {
226
226
  className: "space-y-3",
227
227
  children: [
228
- /* @__PURE__ */ m("input", {
228
+ /* @__PURE__ */ g("input", {
229
229
  value: L.label,
230
230
  onChange: (e) => R((t) => ({
231
231
  ...t,
@@ -234,9 +234,9 @@ var Ee = [
234
234
  placeholder: "Label",
235
235
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
236
236
  }),
237
- /* @__PURE__ */ h("div", {
237
+ /* @__PURE__ */ _("div", {
238
238
  className: "grid gap-3 md:grid-cols-2",
239
- children: [/* @__PURE__ */ h("select", {
239
+ children: [/* @__PURE__ */ _("select", {
240
240
  value: L.type,
241
241
  onChange: (e) => R((t) => ({
242
242
  ...t,
@@ -244,20 +244,20 @@ var Ee = [
244
244
  })),
245
245
  className: "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",
246
246
  children: [
247
- /* @__PURE__ */ m("option", {
247
+ /* @__PURE__ */ g("option", {
248
248
  value: "BANK_ACCOUNT",
249
249
  children: "Bank account"
250
250
  }),
251
- /* @__PURE__ */ m("option", {
251
+ /* @__PURE__ */ g("option", {
252
252
  value: "UPI",
253
253
  children: "UPI"
254
254
  }),
255
- /* @__PURE__ */ m("option", {
255
+ /* @__PURE__ */ g("option", {
256
256
  value: "WALLET",
257
257
  children: "Wallet"
258
258
  })
259
259
  ]
260
- }), /* @__PURE__ */ h("select", {
260
+ }), /* @__PURE__ */ _("select", {
261
261
  value: L.providerPreference,
262
262
  onChange: (e) => R((t) => ({
263
263
  ...t,
@@ -265,28 +265,28 @@ var Ee = [
265
265
  })),
266
266
  className: "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",
267
267
  children: [
268
- /* @__PURE__ */ m("option", {
268
+ /* @__PURE__ */ g("option", {
269
269
  value: "AUTO",
270
270
  children: "Auto"
271
271
  }),
272
- /* @__PURE__ */ m("option", {
272
+ /* @__PURE__ */ g("option", {
273
273
  value: "STRIPE",
274
274
  children: "Stripe"
275
275
  }),
276
- /* @__PURE__ */ m("option", {
276
+ /* @__PURE__ */ g("option", {
277
277
  value: "RAZORPAY",
278
278
  children: "Razorpay"
279
279
  }),
280
- /* @__PURE__ */ m("option", {
280
+ /* @__PURE__ */ g("option", {
281
281
  value: "MANUAL",
282
282
  children: "Manual"
283
283
  })
284
284
  ]
285
285
  })]
286
286
  }),
287
- /* @__PURE__ */ h("div", {
287
+ /* @__PURE__ */ _("div", {
288
288
  className: "grid gap-3 md:grid-cols-2",
289
- children: [/* @__PURE__ */ m("input", {
289
+ children: [/* @__PURE__ */ g("input", {
290
290
  value: L.country,
291
291
  onChange: (e) => R((t) => ({
292
292
  ...t,
@@ -294,7 +294,7 @@ var Ee = [
294
294
  })),
295
295
  placeholder: "Country",
296
296
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
297
- }), /* @__PURE__ */ m("input", {
297
+ }), /* @__PURE__ */ g("input", {
298
298
  value: L.currency,
299
299
  onChange: (e) => R((t) => ({
300
300
  ...t,
@@ -304,7 +304,7 @@ var Ee = [
304
304
  className: "rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
305
305
  })]
306
306
  }),
307
- /* @__PURE__ */ m("input", {
307
+ /* @__PURE__ */ g("input", {
308
308
  value: L.accountHolderName,
309
309
  onChange: (e) => R((t) => ({
310
310
  ...t,
@@ -313,8 +313,8 @@ var Ee = [
313
313
  placeholder: "Account holder name",
314
314
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
315
315
  }),
316
- L.type === "BANK_ACCOUNT" ? /* @__PURE__ */ h(ge, { children: [
317
- /* @__PURE__ */ m("input", {
316
+ L.type === "BANK_ACCOUNT" ? /* @__PURE__ */ _(Te, { children: [
317
+ /* @__PURE__ */ g("input", {
318
318
  value: L.bankName,
319
319
  onChange: (e) => R((t) => ({
320
320
  ...t,
@@ -323,7 +323,7 @@ var Ee = [
323
323
  placeholder: "Bank name",
324
324
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
325
325
  }),
326
- /* @__PURE__ */ m("input", {
326
+ /* @__PURE__ */ g("input", {
327
327
  value: L.accountNumber,
328
328
  onChange: (e) => R((t) => ({
329
329
  ...t,
@@ -332,7 +332,7 @@ var Ee = [
332
332
  placeholder: "Account number",
333
333
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
334
334
  }),
335
- /* @__PURE__ */ m("input", {
335
+ /* @__PURE__ */ g("input", {
336
336
  value: L.country === "IN" ? L.ifsc : L.routingNumber,
337
337
  onChange: (e) => R((t) => t.country === "IN" ? {
338
338
  ...t,
@@ -344,7 +344,7 @@ var Ee = [
344
344
  placeholder: L.country === "IN" ? "IFSC" : "Routing number",
345
345
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary"
346
346
  })
347
- ] }) : L.type === "UPI" ? /* @__PURE__ */ m("input", {
347
+ ] }) : L.type === "UPI" ? /* @__PURE__ */ g("input", {
348
348
  value: L.upiId,
349
349
  onChange: (e) => R((t) => ({
350
350
  ...t,
@@ -355,13 +355,13 @@ var Ee = [
355
355
  }) : null
356
356
  ]
357
357
  }),
358
- /* @__PURE__ */ h("button", {
358
+ /* @__PURE__ */ _("button", {
359
359
  type: "button",
360
360
  onClick: () => void je(),
361
361
  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",
362
- children: [/* @__PURE__ */ m(pe, { className: "size-4" }), U ? "Update payout account" : "Save payout account"]
362
+ children: [/* @__PURE__ */ g(Se, { className: "size-4" }), U ? "Update payout account" : "Save payout account"]
363
363
  }),
364
- U ? /* @__PURE__ */ m("button", {
364
+ U ? /* @__PURE__ */ g("button", {
365
365
  type: "button",
366
366
  onClick: () => {
367
367
  W(null), R({
@@ -382,57 +382,57 @@ var Ee = [
382
382
  children: "Cancel edit"
383
383
  }) : null
384
384
  ]
385
- }), /* @__PURE__ */ h("section", {
385
+ }), /* @__PURE__ */ _("section", {
386
386
  className: "space-y-4",
387
- children: [/* @__PURE__ */ h("div", {
387
+ children: [/* @__PURE__ */ _("div", {
388
388
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
389
389
  children: [
390
- /* @__PURE__ */ h("div", {
390
+ /* @__PURE__ */ _("div", {
391
391
  className: "mb-4 flex items-center justify-between",
392
- children: [/* @__PURE__ */ m("h2", {
392
+ children: [/* @__PURE__ */ g("h2", {
393
393
  className: "text-lg font-semibold text-text-primary",
394
394
  children: "Request payout"
395
- }), /* @__PURE__ */ h("button", {
395
+ }), /* @__PURE__ */ _("button", {
396
396
  type: "button",
397
397
  onClick: () => void X(),
398
398
  className: "inline-flex items-center gap-2 rounded-md border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary",
399
- children: [/* @__PURE__ */ m(me, { className: "size-4" }), "Refresh"]
399
+ children: [/* @__PURE__ */ g(Ce, { className: "size-4" }), "Refresh"]
400
400
  })]
401
401
  }),
402
- j.length === 0 && !N ? /* @__PURE__ */ m(_, {
402
+ j.length === 0 && !N ? /* @__PURE__ */ g(m, {
403
403
  illustration: "empty-generic",
404
404
  title: "No payout accounts yet",
405
405
  description: "Add a payout account before requesting a withdrawal."
406
- }) : /* @__PURE__ */ h("div", {
406
+ }) : /* @__PURE__ */ _("div", {
407
407
  className: "space-y-3",
408
408
  children: [
409
- /* @__PURE__ */ h("select", {
409
+ /* @__PURE__ */ _("select", {
410
410
  value: V,
411
411
  onChange: (e) => H(e.target.value),
412
412
  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",
413
- children: [Q ? null : /* @__PURE__ */ m("option", {
413
+ children: [Q ? null : /* @__PURE__ */ g("option", {
414
414
  value: "",
415
415
  children: "No verified payout account yet"
416
- }), j.map((e) => /* @__PURE__ */ h("option", {
416
+ }), j.map((e) => /* @__PURE__ */ _("option", {
417
417
  value: e.id,
418
- disabled: !d(e),
418
+ disabled: !l(e),
419
419
  children: [
420
420
  e.label,
421
421
  " · ",
422
422
  e.currency,
423
423
  " ·",
424
424
  " ",
425
- f(e.status).label
425
+ u(e.status).label
426
426
  ]
427
427
  }, e.id))]
428
428
  }),
429
- Q ? null : /* @__PURE__ */ m("p", {
429
+ Q ? null : /* @__PURE__ */ g("p", {
430
430
  className: "text-sm text-text-secondary",
431
431
  children: "Payouts can be requested once one of your payout accounts is verified."
432
432
  }),
433
- /* @__PURE__ */ h("label", {
433
+ /* @__PURE__ */ _("label", {
434
434
  className: "block space-y-1 text-sm font-medium text-text-primary",
435
- children: [/* @__PURE__ */ m("span", { children: "Amount" }), /* @__PURE__ */ m("input", {
435
+ children: [/* @__PURE__ */ g("span", { children: "Amount" }), /* @__PURE__ */ g("input", {
436
436
  value: z,
437
437
  onChange: (e) => B(e.target.value),
438
438
  inputMode: "decimal",
@@ -440,40 +440,40 @@ var Ee = [
440
440
  className: "w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm font-normal text-text-primary"
441
441
  })]
442
442
  }),
443
- /* @__PURE__ */ h("button", {
443
+ /* @__PURE__ */ _("button", {
444
444
  type: "button",
445
445
  onClick: () => {
446
446
  v ? (C(null), T(null), y(!0)) : $();
447
447
  },
448
- disabled: !Z || !d(Z),
448
+ disabled: !Z || !l(Z),
449
449
  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",
450
- children: [/* @__PURE__ */ m(he, { className: "size-4" }), "Request payout"]
450
+ children: [/* @__PURE__ */ g(we, { className: "size-4" }), "Request payout"]
451
451
  })
452
452
  ]
453
453
  }),
454
- j.length > 0 ? /* @__PURE__ */ h("div", {
454
+ j.length > 0 ? /* @__PURE__ */ _("div", {
455
455
  className: "mt-4 space-y-3 rounded-md border border-border-subtle bg-bg-surface/60 p-3",
456
- children: [/* @__PURE__ */ m("h3", {
456
+ children: [/* @__PURE__ */ g("h3", {
457
457
  className: "text-sm font-semibold text-text-primary",
458
458
  children: "Saved payout accounts"
459
459
  }), j.map((e) => {
460
- let t = f(e.status);
461
- return /* @__PURE__ */ h("div", {
460
+ let t = u(e.status);
461
+ return /* @__PURE__ */ _("div", {
462
462
  className: "flex flex-wrap items-center justify-between gap-3 rounded-md border border-border-subtle/70 bg-bg-surface px-3 py-2 text-sm",
463
- children: [/* @__PURE__ */ h("div", { children: [
464
- /* @__PURE__ */ h("p", {
463
+ children: [/* @__PURE__ */ _("div", { children: [
464
+ /* @__PURE__ */ _("p", {
465
465
  className: "flex flex-wrap items-center gap-2 font-medium text-text-primary",
466
466
  children: [
467
467
  e.label,
468
468
  " ",
469
469
  e.isDefault ? "• Default" : "",
470
- /* @__PURE__ */ m("span", {
471
- className: `inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${ce[t.tone]}`,
470
+ /* @__PURE__ */ g("span", {
471
+ className: `inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${ue[t.tone]}`,
472
472
  children: t.label
473
473
  })
474
474
  ]
475
475
  }),
476
- /* @__PURE__ */ h("p", {
476
+ /* @__PURE__ */ _("p", {
477
477
  className: "text-text-secondary",
478
478
  children: [
479
479
  e.providerPreference,
@@ -481,26 +481,26 @@ var Ee = [
481
481
  e.currency
482
482
  ]
483
483
  }),
484
- t.hint ? /* @__PURE__ */ m("p", {
484
+ t.hint ? /* @__PURE__ */ g("p", {
485
485
  className: "mt-1 text-xs text-text-secondary",
486
486
  children: t.hint
487
487
  }) : null
488
- ] }), /* @__PURE__ */ h("div", {
488
+ ] }), /* @__PURE__ */ _("div", {
489
489
  className: "flex flex-wrap gap-2",
490
490
  children: [
491
- /* @__PURE__ */ m("button", {
491
+ /* @__PURE__ */ g("button", {
492
492
  type: "button",
493
493
  onClick: () => Pe(e),
494
494
  className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary",
495
495
  children: "Edit"
496
496
  }),
497
- e.isDefault ? null : /* @__PURE__ */ m("button", {
497
+ e.isDefault ? null : /* @__PURE__ */ g("button", {
498
498
  type: "button",
499
499
  onClick: () => void Me(e.id),
500
500
  className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary",
501
501
  children: "Make default"
502
502
  }),
503
- /* @__PURE__ */ m("button", {
503
+ /* @__PURE__ */ g("button", {
504
504
  type: "button",
505
505
  onClick: () => K(e.id),
506
506
  className: "rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-status-error-text",
@@ -512,16 +512,16 @@ var Ee = [
512
512
  })]
513
513
  }) : null
514
514
  ]
515
- }), /* @__PURE__ */ h("div", {
515
+ }), /* @__PURE__ */ _("div", {
516
516
  className: "rounded-lg border border-border-subtle bg-bg-surface p-4",
517
- children: [/* @__PURE__ */ m("h2", {
517
+ children: [/* @__PURE__ */ g("h2", {
518
518
  className: "mb-4 text-lg font-semibold text-text-primary",
519
519
  children: "Payout requests"
520
- }), M.length === 0 && !N ? /* @__PURE__ */ m(_, {
520
+ }), M.length === 0 && !N ? /* @__PURE__ */ g(m, {
521
521
  illustration: "empty-data",
522
522
  title: "No payout requests yet",
523
523
  description: "Your payout requests and processing updates will appear here."
524
- }) : /* @__PURE__ */ m(Te, {
524
+ }) : /* @__PURE__ */ g(h, {
525
525
  data: M,
526
526
  rowKey: (e) => e.id,
527
527
  columns: Ee
@@ -529,12 +529,12 @@ var Ee = [
529
529
  })]
530
530
  })]
531
531
  }),
532
- /* @__PURE__ */ m(_e, {
532
+ /* @__PURE__ */ g(he, {
533
533
  open: G !== null,
534
534
  onOpenChange: (e) => {
535
535
  e || K(null);
536
536
  },
537
- children: /* @__PURE__ */ h(be, { children: [/* @__PURE__ */ h(Se, { children: [/* @__PURE__ */ m(Ce, { children: "Archive payout account?" }), /* @__PURE__ */ m(g, { children: "Archive this payout account? You can add a new one at any time." })] }), /* @__PURE__ */ h(xe, { children: [/* @__PURE__ */ m(ye, { children: "Cancel" }), /* @__PURE__ */ m(ve, {
537
+ children: /* @__PURE__ */ _(ve, { children: [/* @__PURE__ */ _(ye, { children: [/* @__PURE__ */ g(be, { children: "Archive payout account?" }), /* @__PURE__ */ g(f, { children: "Archive this payout account? You can add a new one at any time." })] }), /* @__PURE__ */ _(p, { children: [/* @__PURE__ */ g(_e, { children: "Cancel" }), /* @__PURE__ */ g(ge, {
538
538
  onClick: () => {
539
539
  let e = G;
540
540
  K(null), e && Ne(e);