@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
@@ -10,9 +10,9 @@ import "../../../shared/utils/index.js";
10
10
  import { useOrderCallbackMutations as o, useOrderCallbacks as s } from "../hooks/useOrderCallbacks.js";
11
11
  import { statusTokens as c } from "../../../shared/utils/tokens.js";
12
12
  import { useState as l } from "react";
13
- import { AlertTriangle as u, CheckCircle as d, ChevronLeft as f, ChevronRight as p, Clock as m, Eye as h, Loader2 as g, RefreshCw as _, RotateCw as v, X as y } from "lucide-react";
14
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
15
- import { IllustratedEmptyState as S, ResponsiveTable as C } from "@burdenoff/fe-libs/ui";
13
+ import { IllustratedEmptyState as u, ResponsiveTable as d } from "@burdenoff/fe-libs/ui";
14
+ import { AlertTriangle as f, CheckCircle as p, ChevronLeft as m, ChevronRight as h, Clock as g, Eye as _, Loader2 as v, RefreshCw as y, RotateCw as b, X as x } from "lucide-react";
15
+ import { jsx as S, jsxs as C } from "react/jsx-runtime";
16
16
  // src/billing/modules/billing/pages/OrderCallbackLogsPage.tsx
17
17
  var w = 25, T = [
18
18
  "PENDING",
@@ -21,64 +21,64 @@ var w = 25, T = [
21
21
  ], E = (e) => e.callbackStatus === "FAILED" ? {
22
22
  label: "Failed",
23
23
  className: `${c.error.bg} ${c.error.text}`,
24
- icon: u
24
+ icon: f
25
25
  } : e.callbackStatus === "SUCCESS" ? {
26
26
  label: "Delivered",
27
27
  className: `${c.success.bg} ${c.success.text}`,
28
- icon: d
28
+ icon: p
29
29
  } : {
30
30
  label: e.callbackStatus || "Pending",
31
31
  className: `${c.warning.bg} ${c.warning.text}`,
32
- icon: m
32
+ icon: g
33
33
  }, D = ({ order: e, onClose: t, onRetry: n, isRetrying: r }) => {
34
34
  if (!e) return null;
35
35
  let a = e.callbackStatus === "FAILED" && !!e.billingAccountId;
36
- return /* @__PURE__ */ b("div", {
36
+ return /* @__PURE__ */ S("div", {
37
37
  className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay p-4",
38
- children: /* @__PURE__ */ x("div", {
38
+ children: /* @__PURE__ */ C("div", {
39
39
  className: "w-full max-w-2xl max-h-[85vh] overflow-y-auto rounded-lg bg-bg-surface border border-border-subtle shadow-[var(--shadow-elevation-2)]",
40
- children: [/* @__PURE__ */ x("div", {
40
+ children: [/* @__PURE__ */ C("div", {
41
41
  className: "flex items-center justify-between p-4 border-b border-border-subtle",
42
- children: [/* @__PURE__ */ b("h3", {
42
+ children: [/* @__PURE__ */ S("h3", {
43
43
  className: "text-base font-semibold text-text-primary",
44
44
  children: "Order callback details"
45
- }), /* @__PURE__ */ b("button", {
45
+ }), /* @__PURE__ */ S("button", {
46
46
  type: "button",
47
47
  onClick: t,
48
48
  className: "p-1 rounded text-text-muted hover:text-text-primary hover:bg-bg-sunken/50",
49
- children: /* @__PURE__ */ b(y, { className: "size-4" })
49
+ children: /* @__PURE__ */ S(x, { className: "size-4" })
50
50
  })]
51
- }), /* @__PURE__ */ x("div", {
51
+ }), /* @__PURE__ */ C("div", {
52
52
  className: "p-4 space-y-4",
53
53
  children: [
54
- /* @__PURE__ */ x("div", {
54
+ /* @__PURE__ */ C("div", {
55
55
  className: "grid grid-cols-2 gap-4 text-sm",
56
56
  children: [
57
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
57
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
58
58
  className: "text-text-muted",
59
59
  children: "Order ID"
60
- }), /* @__PURE__ */ b("p", {
60
+ }), /* @__PURE__ */ S("p", {
61
61
  className: "text-text-primary font-mono text-xs break-all",
62
62
  children: e.id
63
63
  })] }),
64
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
64
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
65
65
  className: "text-text-muted",
66
66
  children: "Service"
67
- }), /* @__PURE__ */ b("p", {
67
+ }), /* @__PURE__ */ S("p", {
68
68
  className: "text-text-primary",
69
69
  children: e.externalService
70
70
  })] }),
71
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
71
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
72
72
  className: "text-text-muted",
73
73
  children: "Order status"
74
- }), /* @__PURE__ */ b("p", {
74
+ }), /* @__PURE__ */ S("p", {
75
75
  className: "text-text-primary",
76
76
  children: e.status
77
77
  })] }),
78
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
78
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
79
79
  className: "text-text-muted",
80
80
  children: "Amount"
81
- }), /* @__PURE__ */ x("p", {
81
+ }), /* @__PURE__ */ C("p", {
82
82
  className: "text-text-primary",
83
83
  children: [
84
84
  e.subtotal,
@@ -86,17 +86,17 @@ var w = 25, T = [
86
86
  e.currency
87
87
  ]
88
88
  })] }),
89
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
89
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
90
90
  className: "text-text-muted",
91
91
  children: "Billing account"
92
- }), /* @__PURE__ */ b("p", {
92
+ }), /* @__PURE__ */ S("p", {
93
93
  className: "text-text-primary font-mono text-xs break-all",
94
94
  children: e.billingAccountId || "—"
95
95
  })] }),
96
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
96
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
97
97
  className: "text-text-muted",
98
98
  children: "Payment / Transaction"
99
- }), /* @__PURE__ */ x("p", {
99
+ }), /* @__PURE__ */ C("p", {
100
100
  className: "text-text-primary font-mono text-xs break-all",
101
101
  children: [
102
102
  e.paymentId || "—",
@@ -104,64 +104,64 @@ var w = 25, T = [
104
104
  e.transactionId || "—"
105
105
  ]
106
106
  })] }),
107
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
107
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
108
108
  className: "text-text-muted",
109
109
  children: "Created"
110
- }), /* @__PURE__ */ b("p", {
110
+ }), /* @__PURE__ */ S("p", {
111
111
  className: "text-text-primary",
112
112
  children: i(e.createdAt)
113
113
  })] }),
114
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
114
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
115
115
  className: "text-text-muted",
116
116
  children: "Last callback attempt"
117
- }), /* @__PURE__ */ b("p", {
117
+ }), /* @__PURE__ */ S("p", {
118
118
  className: "text-text-primary",
119
119
  children: e.callbackLastAttemptAt ? i(e.callbackLastAttemptAt) : "—"
120
120
  })] }),
121
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
121
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
122
122
  className: "text-text-muted",
123
123
  children: "Callback attempts"
124
- }), /* @__PURE__ */ b("p", {
124
+ }), /* @__PURE__ */ S("p", {
125
125
  className: "text-text-primary",
126
126
  children: e.callbackAttempts ?? 0
127
127
  })] }),
128
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
128
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
129
129
  className: "text-text-muted",
130
130
  children: "Callback status"
131
- }), /* @__PURE__ */ b("p", {
131
+ }), /* @__PURE__ */ S("p", {
132
132
  className: "text-text-primary",
133
133
  children: e.callbackStatus || "PENDING"
134
134
  })] })
135
135
  ]
136
136
  }),
137
- e.callbackLastError && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
137
+ e.callbackLastError && /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
138
138
  className: "text-sm text-text-muted mb-1",
139
139
  children: "Last error"
140
- }), /* @__PURE__ */ b("pre", {
140
+ }), /* @__PURE__ */ S("pre", {
141
141
  className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border",
142
142
  children: e.callbackLastError
143
143
  })] }),
144
- e.callbackStatus === "FAILED" && !e.billingAccountId && /* @__PURE__ */ b("p", {
144
+ e.callbackStatus === "FAILED" && !e.billingAccountId && /* @__PURE__ */ S("p", {
145
145
  className: "text-xs text-text-muted",
146
146
  children: "No billing account was resolved on this order, so it can't be retried from here — the callback was never able to identify who paid."
147
147
  }),
148
- e.callbackStatus === "FAILED" && /* @__PURE__ */ x("button", {
148
+ e.callbackStatus === "FAILED" && /* @__PURE__ */ C("button", {
149
149
  type: "button",
150
150
  onClick: () => n(e),
151
151
  disabled: !a || r,
152
152
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bgHover disabled:opacity-50",
153
- children: [r ? /* @__PURE__ */ b(g, { className: "size-4 animate-spin" }) : /* @__PURE__ */ b(v, { className: "size-4" }), "Retry callback"]
153
+ children: [r ? /* @__PURE__ */ S(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ S(b, { className: "size-4" }), "Retry callback"]
154
154
  })
155
155
  ]
156
156
  })]
157
157
  })
158
158
  });
159
159
  }, O = () => {
160
- let c = n(), [u, d] = l(0), [m, g] = l({}), [v, y] = l(null), [O, k] = l(null), { orders: A, totalCount: j, isLoading: M, error: N, refetch: P } = s(m, u, w), { retryOrderCallback: F, isRetrying: I } = o();
161
- if (!c.isBillingAdmin) return /* @__PURE__ */ b(e, { message: "You don't have permission to view order callback logs." });
162
- if (N && a(N)) return /* @__PURE__ */ b("div", {
160
+ let c = n(), [f, p] = l(0), [g, v] = l({}), [b, x] = l(null), [O, k] = l(null), { orders: A, totalCount: j, isLoading: M, error: N, refetch: P } = s(g, f, w), { retryOrderCallback: F, isRetrying: I } = o();
161
+ if (!c.isBillingAdmin) return /* @__PURE__ */ S(e, { message: "You don't have permission to view order callback logs." });
162
+ if (N && a(N)) return /* @__PURE__ */ S("div", {
163
163
  className: "p-6",
164
- children: /* @__PURE__ */ b(r, {
164
+ children: /* @__PURE__ */ S(r, {
165
165
  title: "Server Unavailable",
166
166
  message: "Unable to load order callback logs. The server might be down or experiencing issues.",
167
167
  onRetry: () => P(),
@@ -169,15 +169,15 @@ var w = 25, T = [
169
169
  })
170
170
  });
171
171
  let L = (e, t) => {
172
- g((n) => ({
172
+ v((n) => ({
173
173
  ...n,
174
174
  [e]: t
175
- })), d(0);
175
+ })), p(0);
176
176
  }, R = async (e) => {
177
177
  if (e.billingAccountId) {
178
178
  k(null);
179
179
  try {
180
- await F(e.id, e.billingAccountId), await P(), y(null);
180
+ await F(e.id, e.billingAccountId), await P(), x(null);
181
181
  } catch (e) {
182
182
  k(e instanceof Error ? e.message : "Failed to retry callback");
183
183
  }
@@ -188,12 +188,12 @@ var w = 25, T = [
188
188
  header: "Created",
189
189
  priority: "primary",
190
190
  cellClassName: "whitespace-nowrap",
191
- cell: (e) => /* @__PURE__ */ x("div", {
191
+ cell: (e) => /* @__PURE__ */ C("div", {
192
192
  className: "flex flex-col",
193
- children: [/* @__PURE__ */ b("span", {
193
+ children: [/* @__PURE__ */ S("span", {
194
194
  className: "text-sm text-text-primary",
195
195
  children: i(e.createdAt).split(" ")[0]
196
- }), /* @__PURE__ */ b("span", {
196
+ }), /* @__PURE__ */ S("span", {
197
197
  className: "text-xs text-text-muted",
198
198
  children: i(e.createdAt).split(" ")[1]
199
199
  })]
@@ -205,9 +205,9 @@ var w = 25, T = [
205
205
  cellClassName: "whitespace-nowrap",
206
206
  cell: (e) => {
207
207
  let t = E(e), n = t.icon;
208
- return /* @__PURE__ */ x("span", {
208
+ return /* @__PURE__ */ C("span", {
209
209
  className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${t.className}`,
210
- children: [/* @__PURE__ */ b(n, { className: "size-3" }), t.label]
210
+ children: [/* @__PURE__ */ S(n, { className: "size-3" }), t.label]
211
211
  });
212
212
  }
213
213
  },
@@ -216,7 +216,7 @@ var w = 25, T = [
216
216
  header: "Service",
217
217
  priority: "hidden-on-mobile",
218
218
  cellClassName: "whitespace-nowrap",
219
- cell: (e) => /* @__PURE__ */ b("span", {
219
+ cell: (e) => /* @__PURE__ */ S("span", {
220
220
  className: "text-sm text-text-primary",
221
221
  children: e.externalService
222
222
  })
@@ -225,7 +225,7 @@ var w = 25, T = [
225
225
  key: "orderId",
226
226
  header: "Order ID",
227
227
  cellClassName: "whitespace-nowrap max-w-[220px] truncate",
228
- cell: (e) => /* @__PURE__ */ b("span", {
228
+ cell: (e) => /* @__PURE__ */ S("span", {
229
229
  className: "text-sm font-mono text-text-muted",
230
230
  title: e.id,
231
231
  children: e.id
@@ -236,7 +236,7 @@ var w = 25, T = [
236
236
  header: "Attempts",
237
237
  priority: "hidden-on-mobile",
238
238
  cellClassName: "whitespace-nowrap",
239
- cell: (e) => /* @__PURE__ */ b("span", {
239
+ cell: (e) => /* @__PURE__ */ S("span", {
240
240
  className: "text-sm text-text-secondary",
241
241
  children: e.callbackAttempts ?? 0
242
242
  })
@@ -246,74 +246,74 @@ var w = 25, T = [
246
246
  header: "Error",
247
247
  priority: "hidden-on-mobile",
248
248
  cellClassName: "max-w-[280px] truncate",
249
- cell: (e) => /* @__PURE__ */ b("span", {
249
+ cell: (e) => /* @__PURE__ */ S("span", {
250
250
  className: "text-sm text-status-error-text",
251
251
  children: e.callbackLastError || "-"
252
252
  })
253
253
  }
254
254
  ], B = Math.max(1, Math.ceil(j / w));
255
- return /* @__PURE__ */ x("div", {
255
+ return /* @__PURE__ */ C("div", {
256
256
  className: "space-y-6 p-6",
257
257
  children: [
258
- /* @__PURE__ */ b(t, {
258
+ /* @__PURE__ */ S(t, {
259
259
  title: "Order Callback Logs",
260
260
  description: "Every billing→store (and other external service) order-completion callback — investigate a stuck handoff directly.",
261
- actions: /* @__PURE__ */ x("button", {
261
+ actions: /* @__PURE__ */ C("button", {
262
262
  type: "button",
263
263
  onClick: () => P(),
264
264
  className: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50",
265
- children: [/* @__PURE__ */ b(_, { className: "size-4" }), "Refresh"]
265
+ children: [/* @__PURE__ */ S(y, { className: "size-4" }), "Refresh"]
266
266
  })
267
267
  }),
268
- O && /* @__PURE__ */ b("div", {
268
+ O && /* @__PURE__ */ S("div", {
269
269
  className: "p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border text-sm",
270
270
  children: O
271
271
  }),
272
- /* @__PURE__ */ x("div", {
272
+ /* @__PURE__ */ C("div", {
273
273
  className: "p-4 border border-border-subtle rounded-lg bg-bg-sunken/30 grid grid-cols-1 sm:grid-cols-3 gap-4",
274
274
  children: [
275
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
275
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
276
276
  className: "block text-sm font-medium mb-1",
277
277
  children: "Callback status"
278
- }), /* @__PURE__ */ x("select", {
279
- value: m.callbackStatus || "",
278
+ }), /* @__PURE__ */ C("select", {
279
+ value: g.callbackStatus || "",
280
280
  onChange: (e) => L("callbackStatus", e.target.value || void 0),
281
281
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
282
- children: [/* @__PURE__ */ b("option", {
282
+ children: [/* @__PURE__ */ S("option", {
283
283
  value: "",
284
284
  children: "All"
285
- }), T.map((e) => /* @__PURE__ */ b("option", {
285
+ }), T.map((e) => /* @__PURE__ */ S("option", {
286
286
  value: e,
287
287
  children: e
288
288
  }, e))]
289
289
  })] }),
290
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
290
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
291
291
  className: "block text-sm font-medium mb-1",
292
292
  children: "Service"
293
- }), /* @__PURE__ */ b("input", {
293
+ }), /* @__PURE__ */ S("input", {
294
294
  type: "text",
295
- value: m.externalService || "",
295
+ value: g.externalService || "",
296
296
  onChange: (e) => L("externalService", e.target.value || void 0),
297
297
  placeholder: "e.g. STORE",
298
298
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface"
299
299
  })] }),
300
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
300
+ /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
301
301
  className: "block text-sm font-medium mb-1",
302
302
  children: "Has Error"
303
- }), /* @__PURE__ */ x("select", {
304
- value: m.hasError === void 0 ? "" : String(m.hasError),
303
+ }), /* @__PURE__ */ C("select", {
304
+ value: g.hasError === void 0 ? "" : String(g.hasError),
305
305
  onChange: (e) => L("hasError", e.target.value === "" ? void 0 : e.target.value === "true"),
306
306
  className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary",
307
307
  children: [
308
- /* @__PURE__ */ b("option", {
308
+ /* @__PURE__ */ S("option", {
309
309
  value: "",
310
310
  children: "All"
311
311
  }),
312
- /* @__PURE__ */ b("option", {
312
+ /* @__PURE__ */ S("option", {
313
313
  value: "true",
314
314
  children: "Has error"
315
315
  }),
316
- /* @__PURE__ */ b("option", {
316
+ /* @__PURE__ */ S("option", {
317
317
  value: "false",
318
318
  children: "No error"
319
319
  })
@@ -321,7 +321,7 @@ var w = 25, T = [
321
321
  })] })
322
322
  ]
323
323
  }),
324
- M && A.length === 0 ? /* @__PURE__ */ b("div", {
324
+ M && A.length === 0 ? /* @__PURE__ */ S("div", {
325
325
  className: "space-y-2",
326
326
  children: [
327
327
  1,
@@ -329,69 +329,69 @@ var w = 25, T = [
329
329
  3,
330
330
  4,
331
331
  5
332
- ].map((e) => /* @__PURE__ */ b("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
333
- }) : A.length === 0 ? /* @__PURE__ */ b(S, {
332
+ ].map((e) => /* @__PURE__ */ S("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
333
+ }) : A.length === 0 ? /* @__PURE__ */ S(u, {
334
334
  illustration: "empty-data",
335
335
  title: "No order callbacks found",
336
336
  description: "Nothing matches these filters — try widening them, or check back after the next store purchase."
337
- }) : /* @__PURE__ */ b("div", {
337
+ }) : /* @__PURE__ */ S("div", {
338
338
  className: "border border-border-subtle rounded-lg overflow-hidden",
339
- children: /* @__PURE__ */ b(C, {
339
+ children: /* @__PURE__ */ S(d, {
340
340
  columns: z,
341
341
  data: A,
342
342
  rowKey: (e) => e.id,
343
- rowActions: (e) => /* @__PURE__ */ x("button", {
343
+ rowActions: (e) => /* @__PURE__ */ C("button", {
344
344
  type: "button",
345
- onClick: () => y(e),
345
+ onClick: () => x(e),
346
346
  className: "inline-flex items-center gap-1.5 px-2 py-1 text-sm font-medium rounded-button text-text-secondary hover:text-text-primary hover:bg-bg-sunken/60 transition-colors",
347
- children: [/* @__PURE__ */ b(h, { className: "size-4" }), /* @__PURE__ */ b("span", {
347
+ children: [/* @__PURE__ */ S(_, { className: "size-4" }), /* @__PURE__ */ S("span", {
348
348
  className: "hidden sm:inline",
349
349
  children: "View"
350
350
  })]
351
351
  })
352
352
  })
353
353
  }),
354
- j > 0 && /* @__PURE__ */ x("div", {
354
+ j > 0 && /* @__PURE__ */ C("div", {
355
355
  className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
356
- children: [/* @__PURE__ */ x("p", {
356
+ children: [/* @__PURE__ */ C("p", {
357
357
  className: "text-sm text-text-muted text-center sm:text-left",
358
358
  children: [
359
359
  "Showing ",
360
- u * w + 1,
360
+ f * w + 1,
361
361
  " to ",
362
- Math.min((u + 1) * w, j),
362
+ Math.min((f + 1) * w, j),
363
363
  " of",
364
364
  " ",
365
365
  j,
366
366
  " orders"
367
367
  ]
368
- }), /* @__PURE__ */ x("div", {
368
+ }), /* @__PURE__ */ C("div", {
369
369
  className: "flex items-center gap-2",
370
370
  children: [
371
- /* @__PURE__ */ x("button", {
371
+ /* @__PURE__ */ C("button", {
372
372
  type: "button",
373
- onClick: () => d((e) => Math.max(0, e - 1)),
374
- disabled: u === 0,
373
+ onClick: () => p((e) => Math.max(0, e - 1)),
374
+ disabled: f === 0,
375
375
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
376
- children: [/* @__PURE__ */ b(f, { className: "size-4" }), /* @__PURE__ */ b("span", {
376
+ children: [/* @__PURE__ */ S(m, { className: "size-4" }), /* @__PURE__ */ S("span", {
377
377
  className: "hidden sm:inline",
378
378
  children: "Previous"
379
379
  })]
380
380
  }),
381
- /* @__PURE__ */ x("span", {
381
+ /* @__PURE__ */ C("span", {
382
382
  className: "text-sm text-text-muted px-2",
383
383
  children: [
384
- /* @__PURE__ */ b("span", {
384
+ /* @__PURE__ */ S("span", {
385
385
  className: "hidden sm:inline",
386
386
  children: "Page "
387
387
  }),
388
- u + 1,
388
+ f + 1,
389
389
  " ",
390
- /* @__PURE__ */ b("span", {
390
+ /* @__PURE__ */ S("span", {
391
391
  className: "hidden sm:inline",
392
392
  children: "of"
393
393
  }),
394
- /* @__PURE__ */ b("span", {
394
+ /* @__PURE__ */ S("span", {
395
395
  className: "sm:hidden",
396
396
  children: "/"
397
397
  }),
@@ -399,22 +399,22 @@ var w = 25, T = [
399
399
  B
400
400
  ]
401
401
  }),
402
- /* @__PURE__ */ x("button", {
402
+ /* @__PURE__ */ C("button", {
403
403
  type: "button",
404
- onClick: () => d((e) => e + 1 < B ? e + 1 : e),
405
- disabled: u + 1 >= B,
404
+ onClick: () => p((e) => e + 1 < B ? e + 1 : e),
405
+ disabled: f + 1 >= B,
406
406
  className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-button border border-border-subtle bg-bg-surface hover:bg-bg-sunken/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
407
- children: [/* @__PURE__ */ b("span", {
407
+ children: [/* @__PURE__ */ S("span", {
408
408
  className: "hidden sm:inline",
409
409
  children: "Next"
410
- }), /* @__PURE__ */ b(p, { className: "size-4" })]
410
+ }), /* @__PURE__ */ S(h, { className: "size-4" })]
411
411
  })
412
412
  ]
413
413
  })]
414
414
  }),
415
- /* @__PURE__ */ b(D, {
416
- order: v,
417
- onClose: () => y(null),
415
+ /* @__PURE__ */ S(D, {
416
+ order: b,
417
+ onClose: () => x(null),
418
418
  onRetry: R,
419
419
  isRetrying: I
420
420
  })