@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
@@ -10,9 +10,9 @@ import "../../../shared/utils/index.js";
10
10
  import { useBillingWebhookLogs as o, useRefundMutations as s } from "../hooks/useRefunds.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, DollarSign as m, Eye as h, Loader2 as g, RefreshCw as _, X as v } from "lucide-react";
14
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
15
- import { IllustratedEmptyState as x, ResponsiveTable as S } 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, DollarSign as g, Eye as _, Loader2 as v, RefreshCw as y, X as b } from "lucide-react";
15
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
16
16
  // src/billing/modules/billing/pages/BillingWebhookLogsPage.tsx
17
17
  var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
18
18
  "payment_intent.succeeded",
@@ -22,92 +22,92 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
22
22
  ]), E = (e) => e.processed ? {
23
23
  label: "Processed",
24
24
  className: `${c.success.bg} ${c.success.text}`,
25
- icon: d
25
+ icon: p
26
26
  } : {
27
27
  label: e.error ? "Failed" : "Pending",
28
28
  className: `${c.error.bg} ${c.error.text}`,
29
- icon: u
30
- }, D = ({ log: e, onClose: t, onCreateRefund: n, isCreatingRefund: r, canCreateRefund: a }) => e ? /* @__PURE__ */ y("div", {
29
+ icon: f
30
+ }, D = ({ log: e, onClose: t, onCreateRefund: n, isCreatingRefund: r, canCreateRefund: a }) => e ? /* @__PURE__ */ x("div", {
31
31
  className: "fixed inset-0 z-50 flex items-center justify-center bg-bg-overlay p-4",
32
- children: /* @__PURE__ */ b("div", {
32
+ children: /* @__PURE__ */ S("div", {
33
33
  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)]",
34
- children: [/* @__PURE__ */ b("div", {
34
+ children: [/* @__PURE__ */ S("div", {
35
35
  className: "flex items-center justify-between p-4 border-b border-border-subtle",
36
- children: [/* @__PURE__ */ y("h3", {
36
+ children: [/* @__PURE__ */ x("h3", {
37
37
  className: "text-base font-semibold text-text-primary",
38
38
  children: "Webhook log details"
39
- }), /* @__PURE__ */ y("button", {
39
+ }), /* @__PURE__ */ x("button", {
40
40
  type: "button",
41
41
  onClick: t,
42
42
  className: "p-1 rounded text-text-muted hover:text-text-primary hover:bg-bg-sunken/50",
43
- children: /* @__PURE__ */ y(v, { className: "size-4" })
43
+ children: /* @__PURE__ */ x(b, { className: "size-4" })
44
44
  })]
45
- }), /* @__PURE__ */ b("div", {
45
+ }), /* @__PURE__ */ S("div", {
46
46
  className: "p-4 space-y-4",
47
47
  children: [
48
- /* @__PURE__ */ b("div", {
48
+ /* @__PURE__ */ S("div", {
49
49
  className: "grid grid-cols-2 gap-4 text-sm",
50
50
  children: [
51
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
51
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
52
52
  className: "text-text-muted",
53
53
  children: "Provider"
54
- }), /* @__PURE__ */ y("p", {
54
+ }), /* @__PURE__ */ x("p", {
55
55
  className: "text-text-primary capitalize",
56
56
  children: e.provider
57
57
  })] }),
58
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
58
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
59
59
  className: "text-text-muted",
60
60
  children: "Event"
61
- }), /* @__PURE__ */ y("p", {
61
+ }), /* @__PURE__ */ x("p", {
62
62
  className: "text-text-primary font-mono text-xs",
63
63
  children: e.event
64
64
  })] }),
65
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
65
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
66
66
  className: "text-text-muted",
67
67
  children: "Received"
68
- }), /* @__PURE__ */ y("p", {
68
+ }), /* @__PURE__ */ x("p", {
69
69
  className: "text-text-primary",
70
70
  children: i(e.createdAt)
71
71
  })] }),
72
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
72
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
73
73
  className: "text-text-muted",
74
74
  children: "Processed"
75
- }), /* @__PURE__ */ y("p", {
75
+ }), /* @__PURE__ */ x("p", {
76
76
  className: "text-text-primary",
77
77
  children: e.processed ? "Yes" : "No"
78
78
  })] })
79
79
  ]
80
80
  }),
81
- e.error && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
81
+ e.error && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
82
82
  className: "text-sm text-text-muted mb-1",
83
83
  children: "Error"
84
- }), /* @__PURE__ */ y("pre", {
84
+ }), /* @__PURE__ */ x("pre", {
85
85
  className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-status-error-bg-subtle text-status-error-text border border-status-error-border",
86
86
  children: e.error
87
87
  })] }),
88
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
88
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
89
89
  className: "text-sm text-text-muted mb-1",
90
90
  children: "Payload"
91
- }), /* @__PURE__ */ y("pre", {
91
+ }), /* @__PURE__ */ x("pre", {
92
92
  className: "text-xs whitespace-pre-wrap p-3 rounded-md bg-bg-sunken/60 text-text-secondary max-h-64 overflow-y-auto",
93
93
  children: JSON.stringify(e.payload, null, 2)
94
94
  })] }),
95
- !e.processed && a && /* @__PURE__ */ b("button", {
95
+ !e.processed && a && /* @__PURE__ */ S("button", {
96
96
  type: "button",
97
97
  onClick: () => n(e.id),
98
98
  disabled: r,
99
99
  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",
100
- children: [r ? /* @__PURE__ */ y(g, { className: "size-4 animate-spin" }) : /* @__PURE__ */ y(m, { className: "size-4" }), "Create refund from this webhook"]
100
+ children: [r ? /* @__PURE__ */ x(v, { className: "size-4 animate-spin" }) : /* @__PURE__ */ x(g, { className: "size-4" }), "Create refund from this webhook"]
101
101
  })
102
102
  ]
103
103
  })]
104
104
  })
105
105
  }) : null, O = () => {
106
- let c = n(), [u, d] = l(0), [m, g] = l({}), [v, O] = l(null), { logs: k, totalCount: A, isLoading: j, error: M, refetch: N } = o(m, u, C), { createRefundRecordFromWebhook: P, isCreatingFromWebhook: F } = s();
107
- if (!c.isBillingAdmin) return /* @__PURE__ */ y(e, { message: "You don't have permission to view billing webhook logs." });
108
- if (M && a(M)) return /* @__PURE__ */ y("div", {
106
+ let c = n(), [f, p] = l(0), [g, v] = l({}), [b, O] = l(null), { logs: k, totalCount: A, isLoading: j, error: M, refetch: N } = o(g, f, C), { createRefundRecordFromWebhook: P, isCreatingFromWebhook: F } = s();
107
+ if (!c.isBillingAdmin) return /* @__PURE__ */ x(e, { message: "You don't have permission to view billing webhook logs." });
108
+ if (M && a(M)) return /* @__PURE__ */ x("div", {
109
109
  className: "p-6",
110
- children: /* @__PURE__ */ y(r, {
110
+ children: /* @__PURE__ */ x(r, {
111
111
  title: "Server Unavailable",
112
112
  message: "Unable to load webhook logs. The server might be down or experiencing issues.",
113
113
  onRetry: () => N(),
@@ -115,10 +115,10 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
115
115
  })
116
116
  });
117
117
  let I = (e, t) => {
118
- g((n) => ({
118
+ v((n) => ({
119
119
  ...n,
120
120
  [e]: t
121
- })), d(0);
121
+ })), p(0);
122
122
  }, L = async (e) => {
123
123
  await P(e), O(null);
124
124
  }, R = [
@@ -127,12 +127,12 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
127
127
  header: "Received",
128
128
  priority: "primary",
129
129
  cellClassName: "whitespace-nowrap",
130
- cell: (e) => /* @__PURE__ */ b("div", {
130
+ cell: (e) => /* @__PURE__ */ S("div", {
131
131
  className: "flex flex-col",
132
- children: [/* @__PURE__ */ y("span", {
132
+ children: [/* @__PURE__ */ x("span", {
133
133
  className: "text-sm text-text-primary",
134
134
  children: i(e.createdAt).split(" ")[0]
135
- }), /* @__PURE__ */ y("span", {
135
+ }), /* @__PURE__ */ x("span", {
136
136
  className: "text-xs text-text-muted",
137
137
  children: i(e.createdAt).split(" ")[1]
138
138
  })]
@@ -144,9 +144,9 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
144
144
  cellClassName: "whitespace-nowrap",
145
145
  cell: (e) => {
146
146
  let t = E(e), n = t.icon;
147
- return /* @__PURE__ */ b("span", {
147
+ return /* @__PURE__ */ S("span", {
148
148
  className: `inline-flex items-center gap-1 px-2 py-0.5 text-xs font-medium rounded ${t.className}`,
149
- children: [/* @__PURE__ */ y(n, { className: "size-3" }), t.label]
149
+ children: [/* @__PURE__ */ x(n, { className: "size-3" }), t.label]
150
150
  });
151
151
  }
152
152
  },
@@ -155,7 +155,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
155
155
  header: "Provider",
156
156
  priority: "hidden-on-mobile",
157
157
  cellClassName: "whitespace-nowrap",
158
- cell: (e) => /* @__PURE__ */ y("span", {
158
+ cell: (e) => /* @__PURE__ */ x("span", {
159
159
  className: "text-sm text-text-primary capitalize",
160
160
  children: e.provider
161
161
  })
@@ -164,7 +164,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
164
164
  key: "event",
165
165
  header: "Event",
166
166
  cellClassName: "whitespace-nowrap max-w-[220px] truncate",
167
- cell: (e) => /* @__PURE__ */ y("span", {
167
+ cell: (e) => /* @__PURE__ */ x("span", {
168
168
  className: "text-sm font-mono text-text-muted",
169
169
  children: e.event
170
170
  })
@@ -174,82 +174,82 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
174
174
  header: "Error",
175
175
  priority: "hidden-on-mobile",
176
176
  cellClassName: "max-w-[280px] truncate",
177
- cell: (e) => /* @__PURE__ */ y("span", {
177
+ cell: (e) => /* @__PURE__ */ x("span", {
178
178
  className: "text-sm text-status-error-text",
179
179
  children: e.error || "-"
180
180
  })
181
181
  }
182
182
  ], z = Math.max(1, Math.ceil(A / C));
183
- return /* @__PURE__ */ b("div", {
183
+ return /* @__PURE__ */ S("div", {
184
184
  className: "space-y-6 p-6",
185
185
  children: [
186
- /* @__PURE__ */ y(t, {
186
+ /* @__PURE__ */ x(t, {
187
187
  title: "Billing Webhook Logs",
188
188
  description: "Every Stripe/Razorpay webhook delivery — investigate processing failures directly.",
189
- actions: /* @__PURE__ */ b("button", {
189
+ actions: /* @__PURE__ */ S("button", {
190
190
  type: "button",
191
191
  onClick: () => N(),
192
192
  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",
193
- children: [/* @__PURE__ */ y(_, { className: "size-4" }), "Refresh"]
193
+ children: [/* @__PURE__ */ x(y, { className: "size-4" }), "Refresh"]
194
194
  })
195
195
  }),
196
- /* @__PURE__ */ b("div", {
196
+ /* @__PURE__ */ S("div", {
197
197
  className: "p-4 border border-border-subtle rounded-lg bg-bg-sunken/30 grid grid-cols-1 sm:grid-cols-3 gap-4",
198
198
  children: [
199
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
199
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
200
200
  className: "block text-sm font-medium mb-1",
201
201
  children: "Processed"
202
- }), /* @__PURE__ */ b("select", {
203
- value: m.processed === void 0 ? "" : String(m.processed),
202
+ }), /* @__PURE__ */ S("select", {
203
+ value: g.processed === void 0 ? "" : String(g.processed),
204
204
  onChange: (e) => I("processed", e.target.value === "" ? void 0 : e.target.value === "true"),
205
205
  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",
206
206
  children: [
207
- /* @__PURE__ */ y("option", {
207
+ /* @__PURE__ */ x("option", {
208
208
  value: "",
209
209
  children: "All"
210
210
  }),
211
- /* @__PURE__ */ y("option", {
211
+ /* @__PURE__ */ x("option", {
212
212
  value: "false",
213
213
  children: "Unprocessed / Failed"
214
214
  }),
215
- /* @__PURE__ */ y("option", {
215
+ /* @__PURE__ */ x("option", {
216
216
  value: "true",
217
217
  children: "Processed"
218
218
  })
219
219
  ]
220
220
  })] }),
221
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
221
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
222
222
  className: "block text-sm font-medium mb-1",
223
223
  children: "Provider"
224
- }), /* @__PURE__ */ b("select", {
225
- value: m.provider || "",
224
+ }), /* @__PURE__ */ S("select", {
225
+ value: g.provider || "",
226
226
  onChange: (e) => I("provider", e.target.value || void 0),
227
227
  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",
228
- children: [/* @__PURE__ */ y("option", {
228
+ children: [/* @__PURE__ */ x("option", {
229
229
  value: "",
230
230
  children: "All Providers"
231
- }), w.map((e) => /* @__PURE__ */ y("option", {
231
+ }), w.map((e) => /* @__PURE__ */ x("option", {
232
232
  value: e,
233
233
  children: e.charAt(0).toUpperCase() + e.slice(1)
234
234
  }, e))]
235
235
  })] }),
236
- /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
236
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("label", {
237
237
  className: "block text-sm font-medium mb-1",
238
238
  children: "Has Error"
239
- }), /* @__PURE__ */ b("select", {
240
- value: m.hasError === void 0 ? "" : String(m.hasError),
239
+ }), /* @__PURE__ */ S("select", {
240
+ value: g.hasError === void 0 ? "" : String(g.hasError),
241
241
  onChange: (e) => I("hasError", e.target.value === "" ? void 0 : e.target.value === "true"),
242
242
  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",
243
243
  children: [
244
- /* @__PURE__ */ y("option", {
244
+ /* @__PURE__ */ x("option", {
245
245
  value: "",
246
246
  children: "All"
247
247
  }),
248
- /* @__PURE__ */ y("option", {
248
+ /* @__PURE__ */ x("option", {
249
249
  value: "true",
250
250
  children: "Has error"
251
251
  }),
252
- /* @__PURE__ */ y("option", {
252
+ /* @__PURE__ */ x("option", {
253
253
  value: "false",
254
254
  children: "No error"
255
255
  })
@@ -257,7 +257,7 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
257
257
  })] })
258
258
  ]
259
259
  }),
260
- j && k.length === 0 ? /* @__PURE__ */ y("div", {
260
+ j && k.length === 0 ? /* @__PURE__ */ x("div", {
261
261
  className: "space-y-2",
262
262
  children: [
263
263
  1,
@@ -265,69 +265,69 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
265
265
  3,
266
266
  4,
267
267
  5
268
- ].map((e) => /* @__PURE__ */ y("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
269
- }) : k.length === 0 ? /* @__PURE__ */ y(x, {
268
+ ].map((e) => /* @__PURE__ */ x("div", { className: "h-16 bg-bg-sunken animate-pulse rounded" }, e))
269
+ }) : k.length === 0 ? /* @__PURE__ */ x(u, {
270
270
  illustration: "empty-data",
271
271
  title: "No webhook logs found",
272
272
  description: "Nothing matches these filters — try widening them, or check back after the next payment."
273
- }) : /* @__PURE__ */ y("div", {
273
+ }) : /* @__PURE__ */ x("div", {
274
274
  className: "border border-border-subtle rounded-lg overflow-hidden",
275
- children: /* @__PURE__ */ y(S, {
275
+ children: /* @__PURE__ */ x(d, {
276
276
  columns: R,
277
277
  data: k,
278
278
  rowKey: (e) => e.id,
279
- rowActions: (e) => /* @__PURE__ */ b("button", {
279
+ rowActions: (e) => /* @__PURE__ */ S("button", {
280
280
  type: "button",
281
281
  onClick: () => O(e),
282
282
  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",
283
- children: [/* @__PURE__ */ y(h, { className: "size-4" }), /* @__PURE__ */ y("span", {
283
+ children: [/* @__PURE__ */ x(_, { className: "size-4" }), /* @__PURE__ */ x("span", {
284
284
  className: "hidden sm:inline",
285
285
  children: "View"
286
286
  })]
287
287
  })
288
288
  })
289
289
  }),
290
- A > 0 && /* @__PURE__ */ b("div", {
290
+ A > 0 && /* @__PURE__ */ S("div", {
291
291
  className: "flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-border-subtle pt-4",
292
- children: [/* @__PURE__ */ b("p", {
292
+ children: [/* @__PURE__ */ S("p", {
293
293
  className: "text-sm text-text-muted text-center sm:text-left",
294
294
  children: [
295
295
  "Showing ",
296
- u * C + 1,
296
+ f * C + 1,
297
297
  " to ",
298
- Math.min((u + 1) * C, A),
298
+ Math.min((f + 1) * C, A),
299
299
  " of",
300
300
  " ",
301
301
  A,
302
302
  " logs"
303
303
  ]
304
- }), /* @__PURE__ */ b("div", {
304
+ }), /* @__PURE__ */ S("div", {
305
305
  className: "flex items-center gap-2",
306
306
  children: [
307
- /* @__PURE__ */ b("button", {
307
+ /* @__PURE__ */ S("button", {
308
308
  type: "button",
309
- onClick: () => d((e) => Math.max(0, e - 1)),
310
- disabled: u === 0,
309
+ onClick: () => p((e) => Math.max(0, e - 1)),
310
+ disabled: f === 0,
311
311
  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",
312
- children: [/* @__PURE__ */ y(f, { className: "size-4" }), /* @__PURE__ */ y("span", {
312
+ children: [/* @__PURE__ */ x(m, { className: "size-4" }), /* @__PURE__ */ x("span", {
313
313
  className: "hidden sm:inline",
314
314
  children: "Previous"
315
315
  })]
316
316
  }),
317
- /* @__PURE__ */ b("span", {
317
+ /* @__PURE__ */ S("span", {
318
318
  className: "text-sm text-text-muted px-2",
319
319
  children: [
320
- /* @__PURE__ */ y("span", {
320
+ /* @__PURE__ */ x("span", {
321
321
  className: "hidden sm:inline",
322
322
  children: "Page "
323
323
  }),
324
- u + 1,
324
+ f + 1,
325
325
  " ",
326
- /* @__PURE__ */ y("span", {
326
+ /* @__PURE__ */ x("span", {
327
327
  className: "hidden sm:inline",
328
328
  children: "of"
329
329
  }),
330
- /* @__PURE__ */ y("span", {
330
+ /* @__PURE__ */ x("span", {
331
331
  className: "sm:hidden",
332
332
  children: "/"
333
333
  }),
@@ -335,25 +335,25 @@ var C = 25, w = ["stripe", "razorpay"], T = /* @__PURE__ */ new Set([
335
335
  z
336
336
  ]
337
337
  }),
338
- /* @__PURE__ */ b("button", {
338
+ /* @__PURE__ */ S("button", {
339
339
  type: "button",
340
- onClick: () => d((e) => e + 1 < z ? e + 1 : e),
341
- disabled: u + 1 >= z,
340
+ onClick: () => p((e) => e + 1 < z ? e + 1 : e),
341
+ disabled: f + 1 >= z,
342
342
  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",
343
- children: [/* @__PURE__ */ y("span", {
343
+ children: [/* @__PURE__ */ x("span", {
344
344
  className: "hidden sm:inline",
345
345
  children: "Next"
346
- }), /* @__PURE__ */ y(p, { className: "size-4" })]
346
+ }), /* @__PURE__ */ x(h, { className: "size-4" })]
347
347
  })
348
348
  ]
349
349
  })]
350
350
  }),
351
- /* @__PURE__ */ y(D, {
352
- log: v,
351
+ /* @__PURE__ */ x(D, {
352
+ log: b,
353
353
  onClose: () => O(null),
354
354
  onCreateRefund: L,
355
355
  isCreatingRefund: F,
356
- canCreateRefund: v ? T.has(v.event) && !!v.error : !1
356
+ canCreateRefund: b ? T.has(b.event) && !!b.error : !1
357
357
  })
358
358
  ]
359
359
  });